2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.631.2.11 2008/09/03 20:58:05 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_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 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-constraint Attribute Constraint overlay no|yes|mod [no]
1053 --enable-dds Dynamic Directory Services overlay no|yes|mod [no]
1054 --enable-dyngroup Dynamic Group overlay no|yes|mod [no]
1055 --enable-dynlist Dynamic List overlay no|yes|mod [no]
1056 --enable-memberof Reverse Group Membership overlay no|yes|mod [no]
1057 --enable-ppolicy Password Policy overlay no|yes|mod [no]
1058 --enable-proxycache Proxy Cache overlay no|yes|mod [no]
1059 --enable-refint Referential Integrity overlay no|yes|mod [no]
1060 --enable-retcode Return Code testing overlay no|yes|mod [no]
1061 --enable-rwm Rewrite/Remap overlay no|yes|mod [no]
1062 --enable-seqmod Sequential Modify overlay no|yes|mod [yes]
1063 --enable-syncprov Syncrepl Provider overlay no|yes|mod [yes]
1064 --enable-translucent Translucent Proxy overlay no|yes|mod [no]
1065 --enable-unique Attribute Uniqueness overlay no|yes|mod [no]
1066 --enable-valsort Value Sorting overlay no|yes|mod [no]
1068 Library Generation & Linking Options
1069 --enable-static[=PKGS]
1070 build static libraries [default=yes]
1071 --enable-shared[=PKGS]
1072 build shared libraries [default=yes]
1073 --enable-fast-install[=PKGS]
1074 optimize for fast installation [default=yes]
1075 --disable-dependency-tracking speeds up one-time build
1076 --enable-dependency-tracking do not reject slow dependency extractors
1077 --disable-libtool-lock avoid locking (might break parallel builds)
1080 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1081 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1082 --with-subdir=DIR change default subdirectory used for installs
1083 --with-cyrus-sasl with Cyrus SASL support [auto]
1084 --with-fetch with fetch(3) URL support [auto]
1085 --with-threads with threads [auto]
1086 --with-tls with TLS/SSL support auto|openssl|gnutls [auto]
1087 --with-yielding-select with implicitly yielding select [auto]
1088 --with-mp with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1089 --with-odbc with specific ODBC support iodbc|unixodbc|odbc32|auto [auto]
1090 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1091 --with-pic try to use only PIC/non-PIC objects [default=use
1094 include additional configurations [automatic]
1096 See INSTALL file for further details.
1098 Some influential environment variables:
1099 CC C compiler command
1100 CFLAGS C compiler flags
1101 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1102 nonstandard directory <lib dir>
1103 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1104 headers in a nonstandard directory <include dir>
1107 Use these variables to override the choices made by `configure' or to help
1108 it to find libraries and programs with nonstandard names/locations.
1113 if test "$ac_init_help" = "recursive"; then
1114 # If there are subdirs, report their specific --help.
1116 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1117 test -d $ac_dir || continue
1120 if test "$ac_dir" != .; then
1121 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1122 # A "../" for each directory in $ac_dir_suffix.
1123 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1125 ac_dir_suffix= ac_top_builddir=
1129 .) # No --srcdir option. We are building in place.
1131 if test -z "$ac_top_builddir"; then
1134 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1136 [\\/]* | ?:[\\/]* ) # Absolute path.
1137 ac_srcdir=$srcdir$ac_dir_suffix;
1138 ac_top_srcdir=$srcdir ;;
1140 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1141 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1144 # Do not use `cd foo && pwd` to compute absolute paths, because
1145 # the directories may not exist.
1147 .) ac_abs_builddir="$ac_dir";;
1150 .) ac_abs_builddir=`pwd`;;
1151 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1152 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1155 case $ac_abs_builddir in
1156 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1158 case ${ac_top_builddir}. in
1159 .) ac_abs_top_builddir=$ac_abs_builddir;;
1160 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1161 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1164 case $ac_abs_builddir in
1165 .) ac_abs_srcdir=$ac_srcdir;;
1168 .) ac_abs_srcdir=$ac_abs_builddir;;
1169 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1170 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1173 case $ac_abs_builddir in
1174 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1176 case $ac_top_srcdir in
1177 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1178 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1179 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1184 # Check for guested configure; otherwise get Cygnus style configure.
1185 if test -f $ac_srcdir/configure.gnu; then
1187 $SHELL $ac_srcdir/configure.gnu --help=recursive
1188 elif test -f $ac_srcdir/configure; then
1190 $SHELL $ac_srcdir/configure --help=recursive
1191 elif test -f $ac_srcdir/configure.ac ||
1192 test -f $ac_srcdir/configure.in; then
1194 $ac_configure --help
1196 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1202 test -n "$ac_init_help" && exit 0
1203 if $ac_init_version; then
1206 Copyright (C) 2003 Free Software Foundation, Inc.
1207 This configure script is free software; the Free Software Foundation
1208 gives unlimited permission to copy, distribute and modify it.
1210 Copyright 1998-2008 The OpenLDAP Foundation. All rights reserved.
1211 Restrictions apply, see COPYRIGHT and LICENSE files.
1217 This file contains any messages produced by compilers while
1218 running configure, to aid debugging if configure makes a mistake.
1220 It was created by $as_me, which was
1221 generated by GNU Autoconf 2.59. Invocation command line was
1232 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1233 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1234 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1235 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1236 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1238 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1239 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1241 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1242 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1243 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1244 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1245 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1246 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1247 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1255 test -z "$as_dir" && as_dir=.
1256 echo "PATH: $as_dir"
1271 # Keep a trace of the command line.
1272 # Strip out --no-create and --no-recursion so they do not pile up.
1273 # Strip out --silent because we don't want to record it for future runs.
1274 # Also quote any args containing shell meta-characters.
1275 # Make two passes to allow for proper duplicate-argument suppression.
1280 ac_must_keep_next=false
1286 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1287 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1288 | -silent | --silent | --silen | --sile | --sil)
1290 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1291 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1294 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1296 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1297 if test $ac_must_keep_next = true; then
1298 ac_must_keep_next=false # Got value, back to normal.
1301 *=* | --config-cache | -C | -disable-* | --disable-* \
1302 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1303 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1304 | -with-* | --with-* | -without-* | --without-* | --x)
1305 case "$ac_configure_args0 " in
1306 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1309 -* ) ac_must_keep_next=true ;;
1312 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1313 # Get rid of the leading space.
1319 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1320 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1322 # When interrupted or exit'd, cleanup temporary files, and complete
1323 # config.log. We remove comments because anyway the quotes in there
1324 # would cause problems or look ugly.
1325 # WARNING: Be sure not to use single quotes in there, as some shells,
1326 # such as our DU 5.0 friend, will then `close' the trap.
1327 trap 'exit_status=$?
1328 # Save into config.log some information that might help in debugging.
1333 ## ---------------- ##
1334 ## Cache variables. ##
1335 ## ---------------- ##
1338 # The following way of writing the cache mishandles newlines in values,
1341 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1344 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1345 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1349 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1356 ## ----------------- ##
1357 ## Output variables. ##
1358 ## ----------------- ##
1361 for ac_var in $ac_subst_vars
1363 eval ac_val=$`echo $ac_var`
1364 echo "$ac_var='"'"'$ac_val'"'"'"
1368 if test -n "$ac_subst_files"; then
1375 for ac_var in $ac_subst_files
1377 eval ac_val=$`echo $ac_var`
1378 echo "$ac_var='"'"'$ac_val'"'"'"
1383 if test -s confdefs.h; then
1390 sed "/^$/d" confdefs.h | sort
1393 test "$ac_signal" != 0 &&
1394 echo "$as_me: caught signal $ac_signal"
1395 echo "$as_me: exit $exit_status"
1397 rm -f core *.core &&
1398 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1401 for ac_signal in 1 2 13 15; do
1402 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1406 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1407 rm -rf conftest* confdefs.h
1408 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1411 # Predefined preprocessor variables.
1413 cat >>confdefs.h <<_ACEOF
1414 #define PACKAGE_NAME "$PACKAGE_NAME"
1418 cat >>confdefs.h <<_ACEOF
1419 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1423 cat >>confdefs.h <<_ACEOF
1424 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1428 cat >>confdefs.h <<_ACEOF
1429 #define PACKAGE_STRING "$PACKAGE_STRING"
1433 cat >>confdefs.h <<_ACEOF
1434 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1438 # Let the site file select an alternate cache file if it wants to.
1439 # Prefer explicitly selected file to automatically selected ones.
1440 if test -z "$CONFIG_SITE"; then
1441 if test "x$prefix" != xNONE; then
1442 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1444 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1447 for ac_site_file in $CONFIG_SITE; do
1448 if test -r "$ac_site_file"; then
1449 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1450 echo "$as_me: loading site script $ac_site_file" >&6;}
1451 sed 's/^/| /' "$ac_site_file" >&5
1457 # Check that the precious variables saved in the cache have kept the same
1459 ac_cache_corrupted=false
1460 for ac_var in `(set) 2>&1 |
1461 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1462 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1463 eval ac_new_set=\$ac_env_${ac_var}_set
1464 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1465 eval ac_new_val="\$ac_env_${ac_var}_value"
1466 case $ac_old_set,$ac_new_set in
1468 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1469 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1470 ac_cache_corrupted=: ;;
1472 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1473 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1474 ac_cache_corrupted=: ;;
1477 if test "x$ac_old_val" != "x$ac_new_val"; then
1478 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1479 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1480 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1481 echo "$as_me: former value: $ac_old_val" >&2;}
1482 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1483 echo "$as_me: current value: $ac_new_val" >&2;}
1484 ac_cache_corrupted=:
1487 # Pass precious variables to config.status.
1488 if test "$ac_new_set" = set; then
1490 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1491 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1492 *) ac_arg=$ac_var=$ac_new_val ;;
1494 case " $ac_configure_args " in
1495 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1496 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1500 if $ac_cache_corrupted; then
1501 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1502 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1503 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1504 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1505 { (exit 1); exit 1; }; }
1509 ac_cpp='$CPP $CPPFLAGS'
1510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1557 for ac_dir in build $srcdir/build; do
1558 if test -f $ac_dir/install-sh; then
1560 ac_install_sh="$ac_aux_dir/install-sh -c"
1562 elif test -f $ac_dir/install.sh; then
1564 ac_install_sh="$ac_aux_dir/install.sh -c"
1566 elif test -f $ac_dir/shtool; then
1568 ac_install_sh="$ac_aux_dir/shtool install -c"
1572 if test -z "$ac_aux_dir"; then
1573 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1574 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1575 { (exit 1); exit 1; }; }
1577 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1578 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1579 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1581 eval `$ac_aux_dir/version.sh`
1582 if test -z "$OL_STRING"; then
1583 { { echo "$as_me:$LINENO: error: could not determine version" >&5
1584 echo "$as_me: error: could not determine version" >&2;}
1585 { (exit 1); exit 1; }; }
1588 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
1589 ac_cv_shtool="$ac_aux_dir/shtool"
1591 { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1592 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1593 { (exit 1); exit 1; }; }
1596 SHTOOL="$ac_cv_shtool"
1600 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1601 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1605 if test -d $ac_aux_dir/CVS; then
1606 OPENLDAP_CVS="(from CVS sources) "
1609 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1611 # Make sure we can run config.sub.
1612 $ac_config_sub sun4 >/dev/null 2>&1 ||
1613 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1614 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1615 { (exit 1); exit 1; }; }
1617 echo "$as_me:$LINENO: checking build system type" >&5
1618 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1619 if test "${ac_cv_build+set}" = set; then
1620 echo $ECHO_N "(cached) $ECHO_C" >&6
1622 ac_cv_build_alias=$build_alias
1623 test -z "$ac_cv_build_alias" &&
1624 ac_cv_build_alias=`$ac_config_guess`
1625 test -z "$ac_cv_build_alias" &&
1626 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1627 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1628 { (exit 1); exit 1; }; }
1629 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1630 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1631 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1632 { (exit 1); exit 1; }; }
1635 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1636 echo "${ECHO_T}$ac_cv_build" >&6
1638 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1639 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1640 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1643 echo "$as_me:$LINENO: checking host system type" >&5
1644 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1645 if test "${ac_cv_host+set}" = set; then
1646 echo $ECHO_N "(cached) $ECHO_C" >&6
1648 ac_cv_host_alias=$host_alias
1649 test -z "$ac_cv_host_alias" &&
1650 ac_cv_host_alias=$ac_cv_build_alias
1651 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1652 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1653 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1654 { (exit 1); exit 1; }; }
1657 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1658 echo "${ECHO_T}$ac_cv_host" >&6
1660 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1661 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1662 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1665 echo "$as_me:$LINENO: checking target system type" >&5
1666 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1667 if test "${ac_cv_target+set}" = set; then
1668 echo $ECHO_N "(cached) $ECHO_C" >&6
1670 ac_cv_target_alias=$target_alias
1671 test "x$ac_cv_target_alias" = "x" &&
1672 ac_cv_target_alias=$ac_cv_host_alias
1673 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1674 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1675 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1676 { (exit 1); exit 1; }; }
1679 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1680 echo "${ECHO_T}$ac_cv_target" >&6
1681 target=$ac_cv_target
1682 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1683 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1684 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1687 # The aliases save the names the user supplied, while $host etc.
1688 # will get canonicalized.
1689 test -n "$target_alias" &&
1690 test "$program_prefix$program_suffix$program_transform_name" = \
1692 program_prefix=${target_alias}-
1694 am__api_version="1.9"
1695 # Find a good install program. We prefer a C program (faster),
1696 # so one script is as good as another. But avoid the broken or
1697 # incompatible versions:
1698 # SysV /etc/install, /usr/sbin/install
1699 # SunOS /usr/etc/install
1700 # IRIX /sbin/install
1702 # AmigaOS /C/install, which installs bootblocks on floppy discs
1703 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1704 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1705 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1706 # OS/2's system install, which has a completely different semantic
1707 # ./install, which can be erroneously created by make from ./install.sh.
1708 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1709 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1710 if test -z "$INSTALL"; then
1711 if test "${ac_cv_path_install+set}" = set; then
1712 echo $ECHO_N "(cached) $ECHO_C" >&6
1714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1718 test -z "$as_dir" && as_dir=.
1719 # Account for people who put trailing slashes in PATH elements.
1721 ./ | .// | /cC/* | \
1722 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1723 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1726 # OSF1 and SCO ODT 3.0 have their own names for install.
1727 # Don't use installbsd from OSF since it installs stuff as root
1729 for ac_prog in ginstall scoinst install; do
1730 for ac_exec_ext in '' $ac_executable_extensions; do
1731 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1732 if test $ac_prog = install &&
1733 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1734 # AIX install. It has an incompatible calling convention.
1736 elif test $ac_prog = install &&
1737 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1738 # program-specific install script used by HP pwplus--don't use.
1741 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1753 if test "${ac_cv_path_install+set}" = set; then
1754 INSTALL=$ac_cv_path_install
1756 # As a last resort, use the slow shell script. We don't cache a
1757 # path for INSTALL within a source directory, because that will
1758 # break other packages using the cache if that directory is
1759 # removed, or if the path is relative.
1760 INSTALL=$ac_install_sh
1763 echo "$as_me:$LINENO: result: $INSTALL" >&5
1764 echo "${ECHO_T}$INSTALL" >&6
1766 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1767 # It thinks the first close brace ends the variable substitution.
1768 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1770 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1772 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1774 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1775 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1778 echo timestamp > conftest.file
1779 # Do `set' in a subshell so we don't clobber the current shell's
1780 # arguments. Must try -L first in case configure is actually a
1781 # symlink; some systems play weird games with the mod time of symlinks
1782 # (eg FreeBSD returns the mod time of the symlink's containing
1785 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1786 if test "$*" = "X"; then
1788 set X `ls -t $srcdir/configure conftest.file`
1791 if test "$*" != "X $srcdir/configure conftest.file" \
1792 && test "$*" != "X conftest.file $srcdir/configure"; then
1794 # If neither matched, then we have a broken ls. This can happen
1795 # if, for instance, CONFIG_SHELL is bash and it inherits a
1796 # broken ls alias from the environment. This has actually
1797 # happened. Such a system could not be considered "sane".
1798 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1799 alias in your environment" >&5
1800 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1801 alias in your environment" >&2;}
1802 { (exit 1); exit 1; }; }
1805 test "$2" = conftest.file
1811 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1812 Check your system clock" >&5
1813 echo "$as_me: error: newly created file is older than distributed files!
1814 Check your system clock" >&2;}
1815 { (exit 1); exit 1; }; }
1817 echo "$as_me:$LINENO: result: yes" >&5
1818 echo "${ECHO_T}yes" >&6
1819 test "$program_prefix" != NONE &&
1820 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1821 # Use a double $ so make ignores it.
1822 test "$program_suffix" != NONE &&
1823 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1824 # Double any \ or $. echo might interpret backslashes.
1825 # By default was `s,x,x', remove it if useless.
1826 cat <<\_ACEOF >conftest.sed
1827 s/[\\$]/&&/g;s/;s,x,x,$//
1829 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1832 # expand $ac_aux_dir to an absolute path
1833 am_aux_dir=`cd $ac_aux_dir && pwd`
1835 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1836 # Use eval to expand $SHELL
1837 if eval "$MISSING --run true"; then
1838 am_missing_run="$MISSING --run "
1841 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1842 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1845 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1846 # We used to keeping the `.' as first argument, in order to
1847 # allow $(mkdir_p) to be used without argument. As in
1848 # $(mkdir_p) $(somedir)
1849 # where $(somedir) is conditionally defined. However this is wrong
1851 # 1. if the package is installed by a user who cannot write `.'
1852 # make install will fail,
1853 # 2. the above comment should most certainly read
1854 # $(mkdir_p) $(DESTDIR)$(somedir)
1855 # so it does not work when $(somedir) is undefined and
1856 # $(DESTDIR) is not.
1857 # To support the latter case, we have to write
1858 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1859 # so the `.' trick is pointless.
1860 mkdir_p='mkdir -p --'
1862 # On NextStep and OpenStep, the `mkdir' command does not
1863 # recognize any option. It will interpret all options as
1864 # directories to create, and then abort because `.' already
1866 for d in ./-p ./--version;
1868 test -d $d && rmdir $d
1870 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1871 if test -f "$ac_aux_dir/mkinstalldirs"; then
1872 mkdir_p='$(mkinstalldirs)'
1874 mkdir_p='$(install_sh) -d'
1878 for ac_prog in gawk mawk nawk awk
1880 # Extract the first word of "$ac_prog", so it can be a program name with args.
1881 set dummy $ac_prog; ac_word=$2
1882 echo "$as_me:$LINENO: checking for $ac_word" >&5
1883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1884 if test "${ac_cv_prog_AWK+set}" = set; then
1885 echo $ECHO_N "(cached) $ECHO_C" >&6
1887 if test -n "$AWK"; then
1888 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1894 test -z "$as_dir" && as_dir=.
1895 for ac_exec_ext in '' $ac_executable_extensions; do
1896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1897 ac_cv_prog_AWK="$ac_prog"
1898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1907 if test -n "$AWK"; then
1908 echo "$as_me:$LINENO: result: $AWK" >&5
1909 echo "${ECHO_T}$AWK" >&6
1911 echo "$as_me:$LINENO: result: no" >&5
1912 echo "${ECHO_T}no" >&6
1915 test -n "$AWK" && break
1918 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1919 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1920 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1921 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1922 echo $ECHO_N "(cached) $ECHO_C" >&6
1924 cat >conftest.make <<\_ACEOF
1926 @echo 'ac_maketemp="$(MAKE)"'
1928 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1929 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1930 if test -n "$ac_maketemp"; then
1931 eval ac_cv_prog_make_${ac_make}_set=yes
1933 eval ac_cv_prog_make_${ac_make}_set=no
1937 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1938 echo "$as_me:$LINENO: result: yes" >&5
1939 echo "${ECHO_T}yes" >&6
1942 echo "$as_me:$LINENO: result: no" >&5
1943 echo "${ECHO_T}no" >&6
1944 SET_MAKE="MAKE=${MAKE-make}"
1947 rm -rf .tst 2>/dev/null
1948 mkdir .tst 2>/dev/null
1949 if test -d .tst; then
1954 rmdir .tst 2>/dev/null
1956 # test to see if srcdir already configured
1957 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1958 test -f $srcdir/config.status; then
1959 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1960 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1961 { (exit 1); exit 1; }; }
1964 # test whether we have cygpath
1965 if test -z "$CYGPATH_W"; then
1966 if (cygpath --version) >/dev/null 2>/dev/null; then
1967 CYGPATH_W='cygpath -w'
1974 # Define the identity of the package.
1979 # Some tools Automake needs.
1981 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1984 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1987 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1990 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1993 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1995 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1997 # Installed binaries are usually stripped using `strip' when the user
1998 # run `make install-strip'. However `strip' might not be the right
1999 # tool to use in cross-compilation environments, therefore Automake
2000 # will honor the `STRIP' environment variable to overrule this program.
2001 if test "$cross_compiling" != no; then
2002 if test -n "$ac_tool_prefix"; then
2003 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2004 set dummy ${ac_tool_prefix}strip; ac_word=$2
2005 echo "$as_me:$LINENO: checking for $ac_word" >&5
2006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2007 if test "${ac_cv_prog_STRIP+set}" = set; then
2008 echo $ECHO_N "(cached) $ECHO_C" >&6
2010 if test -n "$STRIP"; then
2011 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017 test -z "$as_dir" && as_dir=.
2018 for ac_exec_ext in '' $ac_executable_extensions; do
2019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2020 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2029 STRIP=$ac_cv_prog_STRIP
2030 if test -n "$STRIP"; then
2031 echo "$as_me:$LINENO: result: $STRIP" >&5
2032 echo "${ECHO_T}$STRIP" >&6
2034 echo "$as_me:$LINENO: result: no" >&5
2035 echo "${ECHO_T}no" >&6
2039 if test -z "$ac_cv_prog_STRIP"; then
2041 # Extract the first word of "strip", so it can be a program name with args.
2042 set dummy strip; ac_word=$2
2043 echo "$as_me:$LINENO: checking for $ac_word" >&5
2044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2045 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2046 echo $ECHO_N "(cached) $ECHO_C" >&6
2048 if test -n "$ac_ct_STRIP"; then
2049 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2055 test -z "$as_dir" && as_dir=.
2056 for ac_exec_ext in '' $ac_executable_extensions; do
2057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2058 ac_cv_prog_ac_ct_STRIP="strip"
2059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2065 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2068 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2069 if test -n "$ac_ct_STRIP"; then
2070 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2071 echo "${ECHO_T}$ac_ct_STRIP" >&6
2073 echo "$as_me:$LINENO: result: no" >&5
2074 echo "${ECHO_T}no" >&6
2079 STRIP="$ac_cv_prog_STRIP"
2083 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2085 # We need awk for the "check" target. The system "awk" is bad on
2087 # Always define AMTAR for backward compatibility.
2089 AMTAR=${AMTAR-"${am_missing_run}tar"}
2091 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2097 cat >>confdefs.h <<_ACEOF
2098 #define OPENLDAP_PACKAGE "$PACKAGE"
2102 cat >>confdefs.h <<_ACEOF
2103 #define OPENLDAP_VERSION "$VERSION"
2108 cat >>confdefs.h <<_ACEOF
2109 #define LDAP_VENDOR_VERSION $OL_API_INC
2113 cat >>confdefs.h <<_ACEOF
2114 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2118 cat >>confdefs.h <<_ACEOF
2119 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2123 cat >>confdefs.h <<_ACEOF
2124 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2128 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2130 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2132 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2140 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2142 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2144 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2147 echo "$as_me:$LINENO: checking configure arguments" >&5
2148 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2153 ldap_subdir="/openldap"
2156 # Check whether --with-subdir or --without-subdir was given.
2157 if test "${with_subdir+set}" = set; then
2158 withval="$with_subdir"
2165 ldap_subdir="$withval"
2168 ldap_subdir="/$withval"
2174 # OpenLDAP --enable-debug
2176 # Check whether --enable-debug or --disable-debug was given.
2177 if test "${enable_debug+set}" = set; then
2178 enableval="$enable_debug"
2181 for ol_val in no yes traditional ; do
2182 if test "$enableval" = "$ol_val" ; then
2186 if test "$ol_arg" = "invalid" ; then
2187 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2188 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2189 { (exit 1); exit 1; }; }
2191 ol_enable_debug="$ol_arg"
2196 # end --enable-debug
2197 # OpenLDAP --enable-dynamic
2199 # Check whether --enable-dynamic or --disable-dynamic was given.
2200 if test "${enable_dynamic+set}" = set; then
2201 enableval="$enable_dynamic"
2204 for ol_val in auto yes no ; do
2205 if test "$enableval" = "$ol_val" ; then
2209 if test "$ol_arg" = "invalid" ; then
2210 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2211 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2212 { (exit 1); exit 1; }; }
2214 ol_enable_dynamic="$ol_arg"
2217 ol_enable_dynamic=no
2219 # end --enable-dynamic
2220 # OpenLDAP --enable-syslog
2222 # Check whether --enable-syslog or --disable-syslog was given.
2223 if test "${enable_syslog+set}" = set; then
2224 enableval="$enable_syslog"
2227 for ol_val in auto yes no ; do
2228 if test "$enableval" = "$ol_val" ; then
2232 if test "$ol_arg" = "invalid" ; then
2233 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2234 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2235 { (exit 1); exit 1; }; }
2237 ol_enable_syslog="$ol_arg"
2240 ol_enable_syslog=auto
2242 # end --enable-syslog
2243 # OpenLDAP --enable-proctitle
2245 # Check whether --enable-proctitle or --disable-proctitle was given.
2246 if test "${enable_proctitle+set}" = set; then
2247 enableval="$enable_proctitle"
2250 for ol_val in auto yes no ; do
2251 if test "$enableval" = "$ol_val" ; then
2255 if test "$ol_arg" = "invalid" ; then
2256 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2257 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2258 { (exit 1); exit 1; }; }
2260 ol_enable_proctitle="$ol_arg"
2263 ol_enable_proctitle=yes
2265 # end --enable-proctitle
2266 ol_enable_referrals=${ol_enable_referrals-no}
2267 # OpenLDAP --enable-ipv6
2269 # Check whether --enable-ipv6 or --disable-ipv6 was given.
2270 if test "${enable_ipv6+set}" = set; then
2271 enableval="$enable_ipv6"
2274 for ol_val in auto yes no ; do
2275 if test "$enableval" = "$ol_val" ; then
2279 if test "$ol_arg" = "invalid" ; then
2280 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2281 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2282 { (exit 1); exit 1; }; }
2284 ol_enable_ipv6="$ol_arg"
2290 # OpenLDAP --enable-local
2292 # Check whether --enable-local or --disable-local was given.
2293 if test "${enable_local+set}" = set; then
2294 enableval="$enable_local"
2297 for ol_val in auto yes no ; do
2298 if test "$enableval" = "$ol_val" ; then
2302 if test "$ol_arg" = "invalid" ; then
2303 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2304 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2305 { (exit 1); exit 1; }; }
2307 ol_enable_local="$ol_arg"
2310 ol_enable_local=auto
2312 # end --enable-local
2314 # OpenLDAP --with-cyrus_sasl
2316 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2317 if test "${with_cyrus_sasl+set}" = set; then
2318 withval="$with_cyrus_sasl"
2321 for ol_val in auto yes no ; do
2322 if test "$withval" = "$ol_val" ; then
2326 if test "$ol_arg" = "invalid" ; then
2327 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2328 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2329 { (exit 1); exit 1; }; }
2331 ol_with_cyrus_sasl="$ol_arg"
2334 ol_with_cyrus_sasl="auto"
2335 fi; # end --with-cyrus_sasl
2337 # OpenLDAP --with-fetch
2339 # Check whether --with-fetch or --without-fetch was given.
2340 if test "${with_fetch+set}" = set; then
2341 withval="$with_fetch"
2344 for ol_val in auto yes no ; do
2345 if test "$withval" = "$ol_val" ; then
2349 if test "$ol_arg" = "invalid" ; then
2350 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2351 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2352 { (exit 1); exit 1; }; }
2354 ol_with_fetch="$ol_arg"
2357 ol_with_fetch="auto"
2358 fi; # end --with-fetch
2360 # OpenLDAP --with-threads
2362 # Check whether --with-threads or --without-threads was given.
2363 if test "${with_threads+set}" = set; then
2364 withval="$with_threads"
2367 for ol_val in auto nt posix mach pth lwp yes no manual ; do
2368 if test "$withval" = "$ol_val" ; then
2372 if test "$ol_arg" = "invalid" ; then
2373 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2374 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2375 { (exit 1); exit 1; }; }
2377 ol_with_threads="$ol_arg"
2380 ol_with_threads="auto"
2381 fi; # end --with-threads
2383 # OpenLDAP --with-tls
2385 # Check whether --with-tls or --without-tls was given.
2386 if test "${with_tls+set}" = set; then
2390 for ol_val in auto openssl gnutls yes no ; do
2391 if test "$withval" = "$ol_val" ; then
2395 if test "$ol_arg" = "invalid" ; then
2396 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2397 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2398 { (exit 1); exit 1; }; }
2400 ol_with_tls="$ol_arg"
2404 fi; # end --with-tls
2406 # OpenLDAP --with-yielding_select
2408 # Check whether --with-yielding_select or --without-yielding_select was given.
2409 if test "${with_yielding_select+set}" = set; then
2410 withval="$with_yielding_select"
2413 for ol_val in auto yes no manual ; do
2414 if test "$withval" = "$ol_val" ; then
2418 if test "$ol_arg" = "invalid" ; then
2419 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2420 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2421 { (exit 1); exit 1; }; }
2423 ol_with_yielding_select="$ol_arg"
2426 ol_with_yielding_select="auto"
2427 fi; # end --with-yielding_select
2429 # OpenLDAP --with-mp
2431 # Check whether --with-mp or --without-mp was given.
2432 if test "${with_mp+set}" = set; then
2436 for ol_val in auto longlong long bignum gmp yes no ; do
2437 if test "$withval" = "$ol_val" ; then
2441 if test "$ol_arg" = "invalid" ; then
2442 { { echo "$as_me:$LINENO: error: bad value $withval for --with-mp" >&5
2443 echo "$as_me: error: bad value $withval for --with-mp" >&2;}
2444 { (exit 1); exit 1; }; }
2446 ol_with_mp="$ol_arg"
2452 # OpenLDAP --with-odbc
2454 # Check whether --with-odbc or --without-odbc was given.
2455 if test "${with_odbc+set}" = set; then
2456 withval="$with_odbc"
2459 for ol_val in auto iodbc unixodbc odbc32 ; do
2460 if test "$withval" = "$ol_val" ; then
2464 if test "$ol_arg" = "invalid" ; then
2465 { { echo "$as_me:$LINENO: error: bad value $withval for --with-odbc" >&5
2466 echo "$as_me: error: bad value $withval for --with-odbc" >&2;}
2467 { (exit 1); exit 1; }; }
2469 ol_with_odbc="$ol_arg"
2473 fi; # end --with-odbc
2477 # Check whether --enable-xxslapdoptions or --disable-xxslapdoptions was given.
2478 if test "${enable_xxslapdoptions+set}" = set; then
2479 enableval="$enable_xxslapdoptions"
2482 # OpenLDAP --enable-slapd
2484 # Check whether --enable-slapd or --disable-slapd was given.
2485 if test "${enable_slapd+set}" = set; then
2486 enableval="$enable_slapd"
2489 for ol_val in auto yes no ; do
2490 if test "$enableval" = "$ol_val" ; then
2494 if test "$ol_arg" = "invalid" ; then
2495 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2496 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2497 { (exit 1); exit 1; }; }
2499 ol_enable_slapd="$ol_arg"
2504 # end --enable-slapd
2505 # OpenLDAP --enable-dynacl
2507 # Check whether --enable-dynacl or --disable-dynacl was given.
2508 if test "${enable_dynacl+set}" = set; then
2509 enableval="$enable_dynacl"
2512 for ol_val in auto yes no ; do
2513 if test "$enableval" = "$ol_val" ; then
2517 if test "$ol_arg" = "invalid" ; then
2518 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynacl" >&5
2519 echo "$as_me: error: bad value $enableval for --enable-dynacl" >&2;}
2520 { (exit 1); exit 1; }; }
2522 ol_enable_dynacl="$ol_arg"
2527 # end --enable-dynacl
2528 # OpenLDAP --enable-aci
2530 # Check whether --enable-aci or --disable-aci was given.
2531 if test "${enable_aci+set}" = set; then
2532 enableval="$enable_aci"
2535 for ol_val in no yes mod ; do
2536 if test "$enableval" = "$ol_val" ; then
2540 if test "$ol_arg" = "invalid" ; then
2541 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2542 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2543 { (exit 1); exit 1; }; }
2545 ol_enable_aci="$ol_arg"
2551 # OpenLDAP --enable-cleartext
2553 # Check whether --enable-cleartext or --disable-cleartext was given.
2554 if test "${enable_cleartext+set}" = set; then
2555 enableval="$enable_cleartext"
2558 for ol_val in auto yes no ; do
2559 if test "$enableval" = "$ol_val" ; then
2563 if test "$ol_arg" = "invalid" ; then
2564 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2565 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2566 { (exit 1); exit 1; }; }
2568 ol_enable_cleartext="$ol_arg"
2571 ol_enable_cleartext=yes
2573 # end --enable-cleartext
2574 # OpenLDAP --enable-crypt
2576 # Check whether --enable-crypt or --disable-crypt was given.
2577 if test "${enable_crypt+set}" = set; then
2578 enableval="$enable_crypt"
2581 for ol_val in auto yes no ; do
2582 if test "$enableval" = "$ol_val" ; then
2586 if test "$ol_arg" = "invalid" ; then
2587 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2588 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2589 { (exit 1); exit 1; }; }
2591 ol_enable_crypt="$ol_arg"
2596 # end --enable-crypt
2597 # OpenLDAP --enable-lmpasswd
2599 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2600 if test "${enable_lmpasswd+set}" = set; then
2601 enableval="$enable_lmpasswd"
2604 for ol_val in auto yes no ; do
2605 if test "$enableval" = "$ol_val" ; then
2609 if test "$ol_arg" = "invalid" ; then
2610 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2611 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2612 { (exit 1); exit 1; }; }
2614 ol_enable_lmpasswd="$ol_arg"
2617 ol_enable_lmpasswd=no
2619 # end --enable-lmpasswd
2620 # OpenLDAP --enable-spasswd
2622 # Check whether --enable-spasswd or --disable-spasswd was given.
2623 if test "${enable_spasswd+set}" = set; then
2624 enableval="$enable_spasswd"
2627 for ol_val in auto yes no ; do
2628 if test "$enableval" = "$ol_val" ; then
2632 if test "$ol_arg" = "invalid" ; then
2633 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2634 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2635 { (exit 1); exit 1; }; }
2637 ol_enable_spasswd="$ol_arg"
2640 ol_enable_spasswd=no
2642 # end --enable-spasswd
2643 # OpenLDAP --enable-modules
2645 # Check whether --enable-modules or --disable-modules was given.
2646 if test "${enable_modules+set}" = set; then
2647 enableval="$enable_modules"
2650 for ol_val in auto yes no ; do
2651 if test "$enableval" = "$ol_val" ; then
2655 if test "$ol_arg" = "invalid" ; then
2656 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2657 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2658 { (exit 1); exit 1; }; }
2660 ol_enable_modules="$ol_arg"
2663 ol_enable_modules=no
2665 # end --enable-modules
2666 # OpenLDAP --enable-rewrite
2668 # Check whether --enable-rewrite or --disable-rewrite was given.
2669 if test "${enable_rewrite+set}" = set; then
2670 enableval="$enable_rewrite"
2673 for ol_val in auto yes no ; do
2674 if test "$enableval" = "$ol_val" ; then
2678 if test "$ol_arg" = "invalid" ; then
2679 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2680 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2681 { (exit 1); exit 1; }; }
2683 ol_enable_rewrite="$ol_arg"
2686 ol_enable_rewrite=auto
2688 # end --enable-rewrite
2689 # OpenLDAP --enable-rlookups
2691 # Check whether --enable-rlookups or --disable-rlookups was given.
2692 if test "${enable_rlookups+set}" = set; then
2693 enableval="$enable_rlookups"
2696 for ol_val in auto yes no ; do
2697 if test "$enableval" = "$ol_val" ; then
2701 if test "$ol_arg" = "invalid" ; then
2702 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2703 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2704 { (exit 1); exit 1; }; }
2706 ol_enable_rlookups="$ol_arg"
2709 ol_enable_rlookups=no
2711 # end --enable-rlookups
2712 # OpenLDAP --enable-slapi
2714 # Check whether --enable-slapi or --disable-slapi was given.
2715 if test "${enable_slapi+set}" = set; then
2716 enableval="$enable_slapi"
2719 for ol_val in auto yes no ; do
2720 if test "$enableval" = "$ol_val" ; then
2724 if test "$ol_arg" = "invalid" ; then
2725 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2726 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2727 { (exit 1); exit 1; }; }
2729 ol_enable_slapi="$ol_arg"
2734 # end --enable-slapi
2735 # OpenLDAP --enable-slp
2737 # Check whether --enable-slp or --disable-slp was given.
2738 if test "${enable_slp+set}" = set; then
2739 enableval="$enable_slp"
2742 for ol_val in auto yes no ; do
2743 if test "$enableval" = "$ol_val" ; then
2747 if test "$ol_arg" = "invalid" ; then
2748 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2749 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2750 { (exit 1); exit 1; }; }
2752 ol_enable_slp="$ol_arg"
2758 # OpenLDAP --enable-wrappers
2760 # Check whether --enable-wrappers or --disable-wrappers was given.
2761 if test "${enable_wrappers+set}" = set; then
2762 enableval="$enable_wrappers"
2765 for ol_val in auto yes no ; do
2766 if test "$enableval" = "$ol_val" ; then
2770 if test "$ol_arg" = "invalid" ; then
2771 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2772 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2773 { (exit 1); exit 1; }; }
2775 ol_enable_wrappers="$ol_arg"
2778 ol_enable_wrappers=no
2780 # end --enable-wrappers
2797 # Check whether --enable-xxslapbackends or --disable-xxslapbackends was given.
2798 if test "${enable_xxslapbackends+set}" = set; then
2799 enableval="$enable_xxslapbackends"
2803 # OpenLDAP --enable-backends
2805 # Check whether --enable-backends or --disable-backends was given.
2806 if test "${enable_backends+set}" = set; then
2807 enableval="$enable_backends"
2810 for ol_val in no yes mod ; do
2811 if test "$enableval" = "$ol_val" ; then
2815 if test "$ol_arg" = "invalid" ; then
2816 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2817 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2818 { (exit 1); exit 1; }; }
2820 ol_enable_backends="$ol_arg"
2823 # end --enable-backends
2824 # OpenLDAP --enable-bdb
2826 # Check whether --enable-bdb or --disable-bdb was given.
2827 if test "${enable_bdb+set}" = set; then
2828 enableval="$enable_bdb"
2831 for ol_val in no yes mod ; do
2832 if test "$enableval" = "$ol_val" ; then
2836 if test "$ol_arg" = "invalid" ; then
2837 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2838 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2839 { (exit 1); exit 1; }; }
2841 ol_enable_bdb="$ol_arg"
2844 ol_enable_bdb=${ol_enable_backends:-yes}
2847 # OpenLDAP --enable-dnssrv
2849 # Check whether --enable-dnssrv or --disable-dnssrv was given.
2850 if test "${enable_dnssrv+set}" = set; then
2851 enableval="$enable_dnssrv"
2854 for ol_val in no yes mod ; do
2855 if test "$enableval" = "$ol_val" ; then
2859 if test "$ol_arg" = "invalid" ; then
2860 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2861 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2862 { (exit 1); exit 1; }; }
2864 ol_enable_dnssrv="$ol_arg"
2867 ol_enable_dnssrv=${ol_enable_backends:-no}
2869 # end --enable-dnssrv
2870 # OpenLDAP --enable-hdb
2872 # Check whether --enable-hdb or --disable-hdb was given.
2873 if test "${enable_hdb+set}" = set; then
2874 enableval="$enable_hdb"
2877 for ol_val in no yes mod ; do
2878 if test "$enableval" = "$ol_val" ; then
2882 if test "$ol_arg" = "invalid" ; then
2883 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2884 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2885 { (exit 1); exit 1; }; }
2887 ol_enable_hdb="$ol_arg"
2890 ol_enable_hdb=${ol_enable_backends:-yes}
2893 # OpenLDAP --enable-ldap
2895 # Check whether --enable-ldap or --disable-ldap was given.
2896 if test "${enable_ldap+set}" = set; then
2897 enableval="$enable_ldap"
2900 for ol_val in no yes mod ; do
2901 if test "$enableval" = "$ol_val" ; then
2905 if test "$ol_arg" = "invalid" ; then
2906 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2907 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2908 { (exit 1); exit 1; }; }
2910 ol_enable_ldap="$ol_arg"
2913 ol_enable_ldap=${ol_enable_backends:-no}
2916 # OpenLDAP --enable-meta
2918 # Check whether --enable-meta or --disable-meta was given.
2919 if test "${enable_meta+set}" = set; then
2920 enableval="$enable_meta"
2923 for ol_val in no yes mod ; do
2924 if test "$enableval" = "$ol_val" ; then
2928 if test "$ol_arg" = "invalid" ; then
2929 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2930 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2931 { (exit 1); exit 1; }; }
2933 ol_enable_meta="$ol_arg"
2936 ol_enable_meta=${ol_enable_backends:-no}
2939 # OpenLDAP --enable-monitor
2941 # Check whether --enable-monitor or --disable-monitor was given.
2942 if test "${enable_monitor+set}" = set; then
2943 enableval="$enable_monitor"
2946 for ol_val in no yes mod ; do
2947 if test "$enableval" = "$ol_val" ; then
2951 if test "$ol_arg" = "invalid" ; then
2952 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
2953 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
2954 { (exit 1); exit 1; }; }
2956 ol_enable_monitor="$ol_arg"
2959 ol_enable_monitor=${ol_enable_backends:-yes}
2961 # end --enable-monitor
2962 # OpenLDAP --enable-ndb
2964 # Check whether --enable-ndb or --disable-ndb was given.
2965 if test "${enable_ndb+set}" = set; then
2966 enableval="$enable_ndb"
2969 for ol_val in no yes mod ; do
2970 if test "$enableval" = "$ol_val" ; then
2974 if test "$ol_arg" = "invalid" ; then
2975 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ndb" >&5
2976 echo "$as_me: error: bad value $enableval for --enable-ndb" >&2;}
2977 { (exit 1); exit 1; }; }
2979 ol_enable_ndb="$ol_arg"
2982 ol_enable_ndb=${ol_enable_backends:-no}
2985 # OpenLDAP --enable-null
2987 # Check whether --enable-null or --disable-null was given.
2988 if test "${enable_null+set}" = set; then
2989 enableval="$enable_null"
2992 for ol_val in no yes mod ; do
2993 if test "$enableval" = "$ol_val" ; then
2997 if test "$ol_arg" = "invalid" ; then
2998 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
2999 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3000 { (exit 1); exit 1; }; }
3002 ol_enable_null="$ol_arg"
3005 ol_enable_null=${ol_enable_backends:-no}
3008 # OpenLDAP --enable-passwd
3010 # Check whether --enable-passwd or --disable-passwd was given.
3011 if test "${enable_passwd+set}" = set; then
3012 enableval="$enable_passwd"
3015 for ol_val in no yes mod ; do
3016 if test "$enableval" = "$ol_val" ; then
3020 if test "$ol_arg" = "invalid" ; then
3021 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3022 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3023 { (exit 1); exit 1; }; }
3025 ol_enable_passwd="$ol_arg"
3028 ol_enable_passwd=${ol_enable_backends:-no}
3030 # end --enable-passwd
3031 # OpenLDAP --enable-perl
3033 # Check whether --enable-perl or --disable-perl was given.
3034 if test "${enable_perl+set}" = set; then
3035 enableval="$enable_perl"
3038 for ol_val in no yes mod ; do
3039 if test "$enableval" = "$ol_val" ; then
3043 if test "$ol_arg" = "invalid" ; then
3044 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3045 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3046 { (exit 1); exit 1; }; }
3048 ol_enable_perl="$ol_arg"
3051 ol_enable_perl=${ol_enable_backends:-no}
3054 # OpenLDAP --enable-relay
3056 # Check whether --enable-relay or --disable-relay was given.
3057 if test "${enable_relay+set}" = set; then
3058 enableval="$enable_relay"
3061 for ol_val in no yes mod ; do
3062 if test "$enableval" = "$ol_val" ; then
3066 if test "$ol_arg" = "invalid" ; then
3067 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3068 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3069 { (exit 1); exit 1; }; }
3071 ol_enable_relay="$ol_arg"
3074 ol_enable_relay=${ol_enable_backends:-yes}
3076 # end --enable-relay
3077 # OpenLDAP --enable-shell
3079 # Check whether --enable-shell or --disable-shell was given.
3080 if test "${enable_shell+set}" = set; then
3081 enableval="$enable_shell"
3084 for ol_val in no yes mod ; do
3085 if test "$enableval" = "$ol_val" ; then
3089 if test "$ol_arg" = "invalid" ; then
3090 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3091 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3092 { (exit 1); exit 1; }; }
3094 ol_enable_shell="$ol_arg"
3097 ol_enable_shell=${ol_enable_backends:-no}
3099 # end --enable-shell
3100 # OpenLDAP --enable-sock
3102 # Check whether --enable-sock or --disable-sock was given.
3103 if test "${enable_sock+set}" = set; then
3104 enableval="$enable_sock"
3107 for ol_val in no yes mod ; do
3108 if test "$enableval" = "$ol_val" ; then
3112 if test "$ol_arg" = "invalid" ; then
3113 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sock" >&5
3114 echo "$as_me: error: bad value $enableval for --enable-sock" >&2;}
3115 { (exit 1); exit 1; }; }
3117 ol_enable_sock="$ol_arg"
3120 ol_enable_sock=${ol_enable_backends:-no}
3123 # OpenLDAP --enable-sql
3125 # Check whether --enable-sql or --disable-sql was given.
3126 if test "${enable_sql+set}" = set; then
3127 enableval="$enable_sql"
3130 for ol_val in no yes mod ; do
3131 if test "$enableval" = "$ol_val" ; then
3135 if test "$ol_arg" = "invalid" ; then
3136 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3137 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3138 { (exit 1); exit 1; }; }
3140 ol_enable_sql="$ol_arg"
3143 ol_enable_sql=${ol_enable_backends:-no}
3147 Overlays="accesslog \
3165 # Check whether --enable-xxslapoverlays or --disable-xxslapoverlays was given.
3166 if test "${enable_xxslapoverlays+set}" = set; then
3167 enableval="$enable_xxslapoverlays"
3171 # OpenLDAP --enable-overlays
3173 # Check whether --enable-overlays or --disable-overlays was given.
3174 if test "${enable_overlays+set}" = set; then
3175 enableval="$enable_overlays"
3178 for ol_val in no yes mod ; do
3179 if test "$enableval" = "$ol_val" ; then
3183 if test "$ol_arg" = "invalid" ; then
3184 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3185 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3186 { (exit 1); exit 1; }; }
3188 ol_enable_overlays="$ol_arg"
3191 # end --enable-overlays
3192 # OpenLDAP --enable-accesslog
3194 # Check whether --enable-accesslog or --disable-accesslog was given.
3195 if test "${enable_accesslog+set}" = set; then
3196 enableval="$enable_accesslog"
3199 for ol_val in no yes mod ; do
3200 if test "$enableval" = "$ol_val" ; then
3204 if test "$ol_arg" = "invalid" ; then
3205 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3206 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3207 { (exit 1); exit 1; }; }
3209 ol_enable_accesslog="$ol_arg"
3212 ol_enable_accesslog=${ol_enable_overlays:-no}
3214 # end --enable-accesslog
3216 # OpenLDAP --enable-auditlog
3218 # Check whether --enable-auditlog or --disable-auditlog was given.
3219 if test "${enable_auditlog+set}" = set; then
3220 enableval="$enable_auditlog"
3223 for ol_val in no yes mod ; do
3224 if test "$enableval" = "$ol_val" ; then
3228 if test "$ol_arg" = "invalid" ; then
3229 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-auditlog" >&5
3230 echo "$as_me: error: bad value $enableval for --enable-auditlog" >&2;}
3231 { (exit 1); exit 1; }; }
3233 ol_enable_auditlog="$ol_arg"
3236 ol_enable_auditlog=${ol_enable_overlays:-no}
3238 # end --enable-auditlog
3240 # OpenLDAP --enable-constraint
3242 # Check whether --enable-constraint or --disable-constraint was given.
3243 if test "${enable_constraint+set}" = set; then
3244 enableval="$enable_constraint"
3247 for ol_val in no yes mod ; do
3248 if test "$enableval" = "$ol_val" ; then
3252 if test "$ol_arg" = "invalid" ; then
3253 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-constraint" >&5
3254 echo "$as_me: error: bad value $enableval for --enable-constraint" >&2;}
3255 { (exit 1); exit 1; }; }
3257 ol_enable_constraint="$ol_arg"
3260 ol_enable_constraint=${ol_enable_overlays:-no}
3262 # end --enable-constraint
3264 # OpenLDAP --enable-dds
3266 # Check whether --enable-dds or --disable-dds was given.
3267 if test "${enable_dds+set}" = set; then
3268 enableval="$enable_dds"
3271 for ol_val in no yes mod ; do
3272 if test "$enableval" = "$ol_val" ; then
3276 if test "$ol_arg" = "invalid" ; then
3277 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dds" >&5
3278 echo "$as_me: error: bad value $enableval for --enable-dds" >&2;}
3279 { (exit 1); exit 1; }; }
3281 ol_enable_dds="$ol_arg"
3284 ol_enable_dds=${ol_enable_overlays:-no}
3288 # OpenLDAP --enable-dyngroup
3290 # Check whether --enable-dyngroup or --disable-dyngroup was given.
3291 if test "${enable_dyngroup+set}" = set; then
3292 enableval="$enable_dyngroup"
3295 for ol_val in no yes mod ; do
3296 if test "$enableval" = "$ol_val" ; then
3300 if test "$ol_arg" = "invalid" ; then
3301 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3302 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3303 { (exit 1); exit 1; }; }
3305 ol_enable_dyngroup="$ol_arg"
3308 ol_enable_dyngroup=${ol_enable_overlays:-no}
3310 # end --enable-dyngroup
3312 # OpenLDAP --enable-dynlist
3314 # Check whether --enable-dynlist or --disable-dynlist was given.
3315 if test "${enable_dynlist+set}" = set; then
3316 enableval="$enable_dynlist"
3319 for ol_val in no yes mod ; do
3320 if test "$enableval" = "$ol_val" ; then
3324 if test "$ol_arg" = "invalid" ; then
3325 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3326 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3327 { (exit 1); exit 1; }; }
3329 ol_enable_dynlist="$ol_arg"
3332 ol_enable_dynlist=${ol_enable_overlays:-no}
3334 # end --enable-dynlist
3336 # OpenLDAP --enable-memberof
3338 # Check whether --enable-memberof or --disable-memberof was given.
3339 if test "${enable_memberof+set}" = set; then
3340 enableval="$enable_memberof"
3343 for ol_val in no yes mod ; do
3344 if test "$enableval" = "$ol_val" ; then
3348 if test "$ol_arg" = "invalid" ; then
3349 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-memberof" >&5
3350 echo "$as_me: error: bad value $enableval for --enable-memberof" >&2;}
3351 { (exit 1); exit 1; }; }
3353 ol_enable_memberof="$ol_arg"
3356 ol_enable_memberof=${ol_enable_overlays:-no}
3358 # end --enable-memberof
3360 # OpenLDAP --enable-ppolicy
3362 # Check whether --enable-ppolicy or --disable-ppolicy was given.
3363 if test "${enable_ppolicy+set}" = set; then
3364 enableval="$enable_ppolicy"
3367 for ol_val in no yes mod ; do
3368 if test "$enableval" = "$ol_val" ; then
3372 if test "$ol_arg" = "invalid" ; then
3373 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3374 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3375 { (exit 1); exit 1; }; }
3377 ol_enable_ppolicy="$ol_arg"
3380 ol_enable_ppolicy=${ol_enable_overlays:-no}
3382 # end --enable-ppolicy
3384 # OpenLDAP --enable-proxycache
3386 # Check whether --enable-proxycache or --disable-proxycache was given.
3387 if test "${enable_proxycache+set}" = set; then
3388 enableval="$enable_proxycache"
3391 for ol_val in no yes mod ; do
3392 if test "$enableval" = "$ol_val" ; then
3396 if test "$ol_arg" = "invalid" ; then
3397 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3398 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3399 { (exit 1); exit 1; }; }
3401 ol_enable_proxycache="$ol_arg"
3404 ol_enable_proxycache=${ol_enable_overlays:-no}
3406 # end --enable-proxycache
3408 # OpenLDAP --enable-refint
3410 # Check whether --enable-refint or --disable-refint was given.
3411 if test "${enable_refint+set}" = set; then
3412 enableval="$enable_refint"
3415 for ol_val in no yes mod ; do
3416 if test "$enableval" = "$ol_val" ; then
3420 if test "$ol_arg" = "invalid" ; then
3421 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3422 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3423 { (exit 1); exit 1; }; }
3425 ol_enable_refint="$ol_arg"
3428 ol_enable_refint=${ol_enable_overlays:-no}
3430 # end --enable-refint
3432 # OpenLDAP --enable-retcode
3434 # Check whether --enable-retcode or --disable-retcode was given.
3435 if test "${enable_retcode+set}" = set; then
3436 enableval="$enable_retcode"
3439 for ol_val in no yes mod ; do
3440 if test "$enableval" = "$ol_val" ; then
3444 if test "$ol_arg" = "invalid" ; then
3445 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3446 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3447 { (exit 1); exit 1; }; }
3449 ol_enable_retcode="$ol_arg"
3452 ol_enable_retcode=${ol_enable_overlays:-no}
3454 # end --enable-retcode
3456 # OpenLDAP --enable-rwm
3458 # Check whether --enable-rwm or --disable-rwm was given.
3459 if test "${enable_rwm+set}" = set; then
3460 enableval="$enable_rwm"
3463 for ol_val in no yes mod ; do
3464 if test "$enableval" = "$ol_val" ; then
3468 if test "$ol_arg" = "invalid" ; then
3469 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3470 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3471 { (exit 1); exit 1; }; }
3473 ol_enable_rwm="$ol_arg"
3476 ol_enable_rwm=${ol_enable_overlays:-no}
3480 # OpenLDAP --enable-seqmod
3482 # Check whether --enable-seqmod or --disable-seqmod was given.
3483 if test "${enable_seqmod+set}" = set; then
3484 enableval="$enable_seqmod"
3487 for ol_val in no yes mod ; do
3488 if test "$enableval" = "$ol_val" ; then
3492 if test "$ol_arg" = "invalid" ; then
3493 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-seqmod" >&5
3494 echo "$as_me: error: bad value $enableval for --enable-seqmod" >&2;}
3495 { (exit 1); exit 1; }; }
3497 ol_enable_seqmod="$ol_arg"
3500 ol_enable_seqmod=${ol_enable_overlays:-yes}
3502 # end --enable-seqmod
3504 # OpenLDAP --enable-syncprov
3506 # Check whether --enable-syncprov or --disable-syncprov was given.
3507 if test "${enable_syncprov+set}" = set; then
3508 enableval="$enable_syncprov"
3511 for ol_val in no yes mod ; do
3512 if test "$enableval" = "$ol_val" ; then
3516 if test "$ol_arg" = "invalid" ; then
3517 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3518 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3519 { (exit 1); exit 1; }; }
3521 ol_enable_syncprov="$ol_arg"
3524 ol_enable_syncprov=${ol_enable_overlays:-yes}
3526 # end --enable-syncprov
3528 # OpenLDAP --enable-translucent
3530 # Check whether --enable-translucent or --disable-translucent was given.
3531 if test "${enable_translucent+set}" = set; then
3532 enableval="$enable_translucent"
3535 for ol_val in no yes mod ; do
3536 if test "$enableval" = "$ol_val" ; then
3540 if test "$ol_arg" = "invalid" ; then
3541 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3542 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3543 { (exit 1); exit 1; }; }
3545 ol_enable_translucent="$ol_arg"
3548 ol_enable_translucent=${ol_enable_overlays:-no}
3550 # end --enable-translucent
3552 # OpenLDAP --enable-unique
3554 # Check whether --enable-unique or --disable-unique was given.
3555 if test "${enable_unique+set}" = set; then
3556 enableval="$enable_unique"
3559 for ol_val in no yes mod ; do
3560 if test "$enableval" = "$ol_val" ; then
3564 if test "$ol_arg" = "invalid" ; then
3565 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3566 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3567 { (exit 1); exit 1; }; }
3569 ol_enable_unique="$ol_arg"
3572 ol_enable_unique=${ol_enable_overlays:-no}
3574 # end --enable-unique
3576 # OpenLDAP --enable-valsort
3578 # Check whether --enable-valsort or --disable-valsort was given.
3579 if test "${enable_valsort+set}" = set; then
3580 enableval="$enable_valsort"
3583 for ol_val in no yes mod ; do
3584 if test "$enableval" = "$ol_val" ; then
3588 if test "$ol_arg" = "invalid" ; then
3589 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
3590 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
3591 { (exit 1); exit 1; }; }
3593 ol_enable_valsort="$ol_arg"
3596 ol_enable_valsort=${ol_enable_overlays:-no}
3598 # end --enable-valsort
3601 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3602 if test "${enable_xxliboptions+set}" = set; then
3603 enableval="$enable_xxliboptions"
3606 # Check whether --enable-static or --disable-static was given.
3607 if test "${enable_static+set}" = set; then
3608 enableval="$enable_static"
3609 p=${PACKAGE-default}
3611 yes) enable_static=yes ;;
3612 no) enable_static=no ;;
3615 # Look at the argument we got. We use all the common list separators.
3616 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3617 for pkg in $enableval; do
3619 if test "X$pkg" = "X$p"; then
3630 # Check whether --enable-shared or --disable-shared was given.
3631 if test "${enable_shared+set}" = set; then
3632 enableval="$enable_shared"
3633 p=${PACKAGE-default}
3635 yes) enable_shared=yes ;;
3636 no) enable_shared=no ;;
3639 # Look at the argument we got. We use all the common list separators.
3640 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3641 for pkg in $enableval; do
3643 if test "X$pkg" = "X$p"; then
3657 if test $ol_enable_slapd = no ; then
3658 if test $ol_enable_slapi = yes ; then
3659 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3660 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3662 case "$ol_enable_backends" in yes | mod)
3663 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3664 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3666 for i in $Backends; do
3667 eval "ol_tmp=\$ol_enable_$i"
3668 if test $ol_tmp != no ; then
3669 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3670 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3671 eval "ol_enable_$i=no"
3674 if test $ol_enable_modules = yes ; then
3675 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3676 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3678 if test $ol_enable_wrappers = yes ; then
3679 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3680 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3682 if test $ol_enable_rlookups = yes ; then
3683 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3684 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3686 if test $ol_enable_dynacl = yes ; then
3687 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
3688 echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
3690 if test $ol_enable_aci != no ; then
3691 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3692 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3694 if test $ol_enable_rewrite = yes ; then
3695 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3696 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3698 case "$ol_enable_overlays" in yes | mod)
3699 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3700 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3702 for i in $Overlays; do
3703 eval "ol_tmp=\$ol_enable_$i"
3704 if test $ol_tmp != no ; then
3705 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3706 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3707 eval "ol_enable_$i=no"
3711 # force settings to no
3716 ol_enable_modules=no
3717 ol_enable_rlookups=no
3720 ol_enable_wrappers=no
3722 ol_enable_rewrite=no
3724 elif test $ol_enable_modules != yes &&
3725 test $ol_enable_bdb = no &&
3726 test $ol_enable_dnssrv = no &&
3727 test $ol_enable_hdb = no &&
3728 test $ol_enable_ldap = no &&
3729 test $ol_enable_meta = no &&
3730 test $ol_enable_monitor = no &&
3731 test $ol_enable_ndb = no &&
3732 test $ol_enable_null = no &&
3733 test $ol_enable_passwd = no &&
3734 test $ol_enable_perl = no &&
3735 test $ol_enable_relay = no &&
3736 test $ol_enable_shell = no &&
3737 test $ol_enable_sock = no &&
3738 test $ol_enable_sql = no ; then
3740 if test $ol_enable_slapd = yes ; then
3741 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3742 echo "$as_me: error: slapd requires a backend" >&2;}
3743 { (exit 1); exit 1; }; }
3745 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3746 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3751 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
3752 { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3753 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3754 { (exit 1); exit 1; }; }
3757 if test $ol_enable_lmpasswd = yes ; then
3758 if test $ol_with_tls = no ; then
3759 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3760 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3761 { (exit 1); exit 1; }; }
3765 if test $ol_enable_spasswd = yes ; then
3766 if test $ol_with_cyrus_sasl = no ; then
3767 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3768 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3769 { (exit 1); exit 1; }; }
3771 ol_with_cyrus_sasl=yes
3774 echo "$as_me:$LINENO: result: done" >&5
3775 echo "${ECHO_T}done" >&6
3824 BUILD_TRANSLUCENT=no
3828 SLAPD_STATIC_OVERLAYS=
3829 SLAPD_DYNAMIC_OVERLAYS=
3831 SLAPD_MODULES_LDFLAGS=
3832 SLAPD_MODULES_CPPFLAGS=
3834 SLAPD_STATIC_BACKENDS=back-ldif
3835 SLAPD_DYNAMIC_BACKENDS=
3861 cat >>confdefs.h <<\_ACEOF
3862 #define HAVE_MKVERSION 1
3870 *-*-aix*) if test -z "$CC" ; then
3871 case "$ol_with_threads" in
3872 auto | yes | posix) ol_aix_threads=yes ;;
3878 if test $ol_aix_threads = yes ; then
3879 if test -z "${CC}" ; then
3880 for ac_prog in cc_r xlc_r cc
3882 # Extract the first word of "$ac_prog", so it can be a program name with args.
3883 set dummy $ac_prog; ac_word=$2
3884 echo "$as_me:$LINENO: checking for $ac_word" >&5
3885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3886 if test "${ac_cv_prog_CC+set}" = set; then
3887 echo $ECHO_N "(cached) $ECHO_C" >&6
3889 if test -n "$CC"; then
3890 ac_cv_prog_CC="$CC" # Let the user override the test.
3892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3896 test -z "$as_dir" && as_dir=.
3897 for ac_exec_ext in '' $ac_executable_extensions; do
3898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3899 ac_cv_prog_CC="$ac_prog"
3900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3909 if test -n "$CC"; then
3910 echo "$as_me:$LINENO: result: $CC" >&5
3911 echo "${ECHO_T}$CC" >&6
3913 echo "$as_me:$LINENO: result: no" >&5
3914 echo "${ECHO_T}no" >&6
3917 test -n "$CC" && break
3921 if test "$CC" = cc ; then
3922 if test $ol_with_threads != auto ; then
3923 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3924 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3925 { (exit 1); exit 1; }; }
3927 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
3928 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
3934 case ${CC} in cc_r | xlc_r)
3935 ol_with_threads=posix
3936 ol_cv_pthread_create=yes
3941 if test -z "${CC}"; then
3942 for ac_prog in cc gcc
3944 # Extract the first word of "$ac_prog", so it can be a program name with args.
3945 set dummy $ac_prog; ac_word=$2
3946 echo "$as_me:$LINENO: checking for $ac_word" >&5
3947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3948 if test "${ac_cv_prog_CC+set}" = set; then
3949 echo $ECHO_N "(cached) $ECHO_C" >&6
3951 if test -n "$CC"; then
3952 ac_cv_prog_CC="$CC" # Let the user override the test.
3954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3958 test -z "$as_dir" && as_dir=.
3959 for ac_exec_ext in '' $ac_executable_extensions; do
3960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3961 ac_cv_prog_CC="$ac_prog"
3962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3971 if test -n "$CC"; then
3972 echo "$as_me:$LINENO: result: $CC" >&5
3973 echo "${ECHO_T}$CC" >&6
3975 echo "$as_me:$LINENO: result: no" >&5
3976 echo "${ECHO_T}no" >&6
3979 test -n "$CC" && break
3981 test -n "$CC" || CC="missing"
3984 if test "${CC}" = "missing" ; then
3985 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&5
3986 echo "$as_me: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&2;}
3987 { (exit 1); exit 1; }; }
3991 if test -z "${AR}"; then
3992 for ac_prog in ar gar
3994 # Extract the first word of "$ac_prog", so it can be a program name with args.
3995 set dummy $ac_prog; ac_word=$2
3996 echo "$as_me:$LINENO: checking for $ac_word" >&5
3997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3998 if test "${ac_cv_prog_AR+set}" = set; then
3999 echo $ECHO_N "(cached) $ECHO_C" >&6
4001 if test -n "$AR"; then
4002 ac_cv_prog_AR="$AR" # Let the user override the test.
4004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4008 test -z "$as_dir" && as_dir=.
4009 for ac_exec_ext in '' $ac_executable_extensions; do
4010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4011 ac_cv_prog_AR="$ac_prog"
4012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4021 if test -n "$AR"; then
4022 echo "$as_me:$LINENO: result: $AR" >&5
4023 echo "${ECHO_T}$AR" >&6
4025 echo "$as_me:$LINENO: result: no" >&5
4026 echo "${ECHO_T}no" >&6
4029 test -n "$AR" && break
4031 test -n "$AR" || AR="missing"
4034 if test "${AR}" = "missing" ; then
4035 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&5
4036 echo "$as_me: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&2;}
4037 { (exit 1); exit 1; }; }
4045 # Check whether --enable-fast-install or --disable-fast-install was given.
4046 if test "${enable_fast_install+set}" = set; then
4047 enableval="$enable_fast_install"
4048 p=${PACKAGE-default}
4050 yes) enable_fast_install=yes ;;
4051 no) enable_fast_install=no ;;
4053 enable_fast_install=no
4054 # Look at the argument we got. We use all the common list separators.
4055 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4056 for pkg in $enableval; do
4058 if test "X$pkg" = "X$p"; then
4059 enable_fast_install=yes
4066 enable_fast_install=yes
4069 DEPDIR="${am__leading_dot}deps"
4071 ac_config_commands="$ac_config_commands depfiles"
4074 am_make=${MAKE-make}
4075 cat > confinc << 'END'
4080 # If we don't find an include directive, just comment out the code.
4081 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4082 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4086 # First try GNU make style include.
4087 echo "include confinc" > confmf
4088 # We grep out `Entering directory' and `Leaving directory'
4089 # messages which can occur if `w' ends up in MAKEFLAGS.
4090 # In particular we don't look at `^make:' because GNU make might
4091 # be invoked under some other name (usually "gmake"), in which
4092 # case it prints its new name instead of `make'.
4093 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4098 # Now try BSD make style include.
4099 if test "$am__include" = "#"; then
4100 echo '.include "confinc"' > confmf
4101 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4102 am__include=.include
4109 echo "$as_me:$LINENO: result: $_am_result" >&5
4110 echo "${ECHO_T}$_am_result" >&6
4111 rm -f confinc confmf
4113 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4114 if test "${enable_dependency_tracking+set}" = set; then
4115 enableval="$enable_dependency_tracking"
4118 if test "x$enable_dependency_tracking" != xno; then
4119 am_depcomp="$ac_aux_dir/depcomp"
4124 if test "x$enable_dependency_tracking" != xno; then
4135 ac_cpp='$CPP $CPPFLAGS'
4136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4139 if test -n "$ac_tool_prefix"; then
4140 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4141 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4142 echo "$as_me:$LINENO: checking for $ac_word" >&5
4143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4144 if test "${ac_cv_prog_CC+set}" = set; then
4145 echo $ECHO_N "(cached) $ECHO_C" >&6
4147 if test -n "$CC"; then
4148 ac_cv_prog_CC="$CC" # Let the user override the test.
4150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4154 test -z "$as_dir" && as_dir=.
4155 for ac_exec_ext in '' $ac_executable_extensions; do
4156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4157 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4167 if test -n "$CC"; then
4168 echo "$as_me:$LINENO: result: $CC" >&5
4169 echo "${ECHO_T}$CC" >&6
4171 echo "$as_me:$LINENO: result: no" >&5
4172 echo "${ECHO_T}no" >&6
4176 if test -z "$ac_cv_prog_CC"; then
4178 # Extract the first word of "gcc", so it can be a program name with args.
4179 set dummy gcc; ac_word=$2
4180 echo "$as_me:$LINENO: checking for $ac_word" >&5
4181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4182 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4183 echo $ECHO_N "(cached) $ECHO_C" >&6
4185 if test -n "$ac_ct_CC"; then
4186 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4192 test -z "$as_dir" && as_dir=.
4193 for ac_exec_ext in '' $ac_executable_extensions; do
4194 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4195 ac_cv_prog_ac_ct_CC="gcc"
4196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4204 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4205 if test -n "$ac_ct_CC"; then
4206 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4207 echo "${ECHO_T}$ac_ct_CC" >&6
4209 echo "$as_me:$LINENO: result: no" >&5
4210 echo "${ECHO_T}no" >&6
4218 if test -z "$CC"; then
4219 if test -n "$ac_tool_prefix"; then
4220 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4221 set dummy ${ac_tool_prefix}cc; ac_word=$2
4222 echo "$as_me:$LINENO: checking for $ac_word" >&5
4223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4224 if test "${ac_cv_prog_CC+set}" = set; then
4225 echo $ECHO_N "(cached) $ECHO_C" >&6
4227 if test -n "$CC"; then
4228 ac_cv_prog_CC="$CC" # Let the user override the test.
4230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234 test -z "$as_dir" && as_dir=.
4235 for ac_exec_ext in '' $ac_executable_extensions; do
4236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4237 ac_cv_prog_CC="${ac_tool_prefix}cc"
4238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4247 if test -n "$CC"; then
4248 echo "$as_me:$LINENO: result: $CC" >&5
4249 echo "${ECHO_T}$CC" >&6
4251 echo "$as_me:$LINENO: result: no" >&5
4252 echo "${ECHO_T}no" >&6
4256 if test -z "$ac_cv_prog_CC"; then
4258 # Extract the first word of "cc", so it can be a program name with args.
4259 set dummy cc; ac_word=$2
4260 echo "$as_me:$LINENO: checking for $ac_word" >&5
4261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4262 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4263 echo $ECHO_N "(cached) $ECHO_C" >&6
4265 if test -n "$ac_ct_CC"; then
4266 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272 test -z "$as_dir" && as_dir=.
4273 for ac_exec_ext in '' $ac_executable_extensions; do
4274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4275 ac_cv_prog_ac_ct_CC="cc"
4276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4284 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4285 if test -n "$ac_ct_CC"; then
4286 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4287 echo "${ECHO_T}$ac_ct_CC" >&6
4289 echo "$as_me:$LINENO: result: no" >&5
4290 echo "${ECHO_T}no" >&6
4299 if test -z "$CC"; then
4300 # Extract the first word of "cc", so it can be a program name with args.
4301 set dummy cc; ac_word=$2
4302 echo "$as_me:$LINENO: checking for $ac_word" >&5
4303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4304 if test "${ac_cv_prog_CC+set}" = set; then
4305 echo $ECHO_N "(cached) $ECHO_C" >&6
4307 if test -n "$CC"; then
4308 ac_cv_prog_CC="$CC" # Let the user override the test.
4311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4315 test -z "$as_dir" && as_dir=.
4316 for ac_exec_ext in '' $ac_executable_extensions; do
4317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4318 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4319 ac_prog_rejected=yes
4323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4329 if test $ac_prog_rejected = yes; then
4330 # We found a bogon in the path, so make sure we never use it.
4331 set dummy $ac_cv_prog_CC
4333 if test $# != 0; then
4334 # We chose a different compiler from the bogus one.
4335 # However, it has the same basename, so the bogon will be chosen
4336 # first if we set CC to just the basename; use the full file name.
4338 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4344 if test -n "$CC"; then
4345 echo "$as_me:$LINENO: result: $CC" >&5
4346 echo "${ECHO_T}$CC" >&6
4348 echo "$as_me:$LINENO: result: no" >&5
4349 echo "${ECHO_T}no" >&6
4353 if test -z "$CC"; then
4354 if test -n "$ac_tool_prefix"; then
4357 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4358 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4359 echo "$as_me:$LINENO: checking for $ac_word" >&5
4360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4361 if test "${ac_cv_prog_CC+set}" = set; then
4362 echo $ECHO_N "(cached) $ECHO_C" >&6
4364 if test -n "$CC"; then
4365 ac_cv_prog_CC="$CC" # Let the user override the test.
4367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4371 test -z "$as_dir" && as_dir=.
4372 for ac_exec_ext in '' $ac_executable_extensions; do
4373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4374 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4384 if test -n "$CC"; then
4385 echo "$as_me:$LINENO: result: $CC" >&5
4386 echo "${ECHO_T}$CC" >&6
4388 echo "$as_me:$LINENO: result: no" >&5
4389 echo "${ECHO_T}no" >&6
4392 test -n "$CC" && break
4395 if test -z "$CC"; then
4399 # Extract the first word of "$ac_prog", so it can be a program name with args.
4400 set dummy $ac_prog; ac_word=$2
4401 echo "$as_me:$LINENO: checking for $ac_word" >&5
4402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4403 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4404 echo $ECHO_N "(cached) $ECHO_C" >&6
4406 if test -n "$ac_ct_CC"; then
4407 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4413 test -z "$as_dir" && as_dir=.
4414 for ac_exec_ext in '' $ac_executable_extensions; do
4415 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4416 ac_cv_prog_ac_ct_CC="$ac_prog"
4417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4425 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4426 if test -n "$ac_ct_CC"; then
4427 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4428 echo "${ECHO_T}$ac_ct_CC" >&6
4430 echo "$as_me:$LINENO: result: no" >&5
4431 echo "${ECHO_T}no" >&6
4434 test -n "$ac_ct_CC" && break
4443 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4444 See \`config.log' for more details." >&5
4445 echo "$as_me: error: no acceptable C compiler found in \$PATH
4446 See \`config.log' for more details." >&2;}
4447 { (exit 1); exit 1; }; }
4449 # Provide some information about the compiler.
4450 echo "$as_me:$LINENO:" \
4451 "checking for C compiler version" >&5
4452 ac_compiler=`set X $ac_compile; echo $2`
4453 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4454 (eval $ac_compiler --version </dev/null >&5) 2>&5
4456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457 (exit $ac_status); }
4458 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4459 (eval $ac_compiler -v </dev/null >&5) 2>&5
4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462 (exit $ac_status); }
4463 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4464 (eval $ac_compiler -V </dev/null >&5) 2>&5
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); }
4469 cat >conftest.$ac_ext <<_ACEOF
4472 cat confdefs.h >>conftest.$ac_ext
4473 cat >>conftest.$ac_ext <<_ACEOF
4474 /* end confdefs.h. */
4484 ac_clean_files_save=$ac_clean_files
4485 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4486 # Try to create an executable without -o first, disregard a.out.
4487 # It will help us diagnose broken compilers, and finding out an intuition
4489 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4490 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4491 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4492 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4493 (eval $ac_link_default) 2>&5
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); }; then
4497 # Find the output, starting from the most likely. This scheme is
4498 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4501 # Be careful to initialize this variable, since it used to be cached.
4502 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4504 # b.out is created by i960 compilers.
4505 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4507 test -f "$ac_file" || continue
4509 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4512 # This is the source file.
4515 # We found the default executable, but exeext='' is most
4519 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4520 # FIXME: I believe we export ac_cv_exeext for Libtool,
4521 # but it would be cool to find out if it's true. Does anybody
4522 # maintain Libtool? --akim.
4530 echo "$as_me: failed program was:" >&5
4531 sed 's/^/| /' conftest.$ac_ext >&5
4533 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4534 See \`config.log' for more details." >&5
4535 echo "$as_me: error: C compiler cannot create executables
4536 See \`config.log' for more details." >&2;}
4537 { (exit 77); exit 77; }; }
4540 ac_exeext=$ac_cv_exeext
4541 echo "$as_me:$LINENO: result: $ac_file" >&5
4542 echo "${ECHO_T}$ac_file" >&6
4544 # Check the compiler produces executables we can run. If not, either
4545 # the compiler is broken, or we cross compile.
4546 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4547 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4548 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4549 # If not cross compiling, check that we can run a simple program.
4550 if test "$cross_compiling" != yes; then
4551 if { ac_try='./$ac_file'
4552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); }; }; then
4559 if test "$cross_compiling" = maybe; then
4562 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4563 If you meant to cross compile, use \`--host'.
4564 See \`config.log' for more details." >&5
4565 echo "$as_me: error: cannot run C compiled programs.
4566 If you meant to cross compile, use \`--host'.
4567 See \`config.log' for more details." >&2;}
4568 { (exit 1); exit 1; }; }
4572 echo "$as_me:$LINENO: result: yes" >&5
4573 echo "${ECHO_T}yes" >&6
4575 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4576 ac_clean_files=$ac_clean_files_save
4577 # Check the compiler produces executables we can run. If not, either
4578 # the compiler is broken, or we cross compile.
4579 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4580 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4581 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4582 echo "${ECHO_T}$cross_compiling" >&6
4584 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4585 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4587 (eval $ac_link) 2>&5
4589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590 (exit $ac_status); }; then
4591 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4592 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4593 # work properly (i.e., refer to `conftest.exe'), while it won't with
4595 for ac_file in conftest.exe conftest conftest.*; do
4596 test -f "$ac_file" || continue
4598 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4599 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4606 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4607 See \`config.log' for more details." >&5
4608 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4609 See \`config.log' for more details." >&2;}
4610 { (exit 1); exit 1; }; }
4613 rm -f conftest$ac_cv_exeext
4614 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4615 echo "${ECHO_T}$ac_cv_exeext" >&6
4617 rm -f conftest.$ac_ext
4618 EXEEXT=$ac_cv_exeext
4620 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4621 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4622 if test "${ac_cv_objext+set}" = set; then
4623 echo $ECHO_N "(cached) $ECHO_C" >&6
4625 cat >conftest.$ac_ext <<_ACEOF
4628 cat confdefs.h >>conftest.$ac_ext
4629 cat >>conftest.$ac_ext <<_ACEOF
4630 /* end confdefs.h. */
4640 rm -f conftest.o conftest.obj
4641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4642 (eval $ac_compile) 2>&5
4644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645 (exit $ac_status); }; then
4646 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4648 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4649 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4654 echo "$as_me: failed program was:" >&5
4655 sed 's/^/| /' conftest.$ac_ext >&5
4657 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4658 See \`config.log' for more details." >&5
4659 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4660 See \`config.log' for more details." >&2;}
4661 { (exit 1); exit 1; }; }
4664 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4666 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4667 echo "${ECHO_T}$ac_cv_objext" >&6
4668 OBJEXT=$ac_cv_objext
4670 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4671 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4672 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4673 echo $ECHO_N "(cached) $ECHO_C" >&6
4675 cat >conftest.$ac_ext <<_ACEOF
4678 cat confdefs.h >>conftest.$ac_ext
4679 cat >>conftest.$ac_ext <<_ACEOF
4680 /* end confdefs.h. */
4693 rm -f conftest.$ac_objext
4694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4695 (eval $ac_compile) 2>conftest.er1
4697 grep -v '^ *+' conftest.er1 >conftest.err
4699 cat conftest.err >&5
4700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701 (exit $ac_status); } &&
4702 { ac_try='test -z "$ac_c_werror_flag"
4703 || test ! -s conftest.err'
4704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); }; } &&
4709 { ac_try='test -s conftest.$ac_objext'
4710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); }; }; then
4717 echo "$as_me: failed program was:" >&5
4718 sed 's/^/| /' conftest.$ac_ext >&5
4722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4723 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4726 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4727 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4728 GCC=`test $ac_compiler_gnu = yes && echo yes`
4729 ac_test_CFLAGS=${CFLAGS+set}
4730 ac_save_CFLAGS=$CFLAGS
4732 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4733 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4734 if test "${ac_cv_prog_cc_g+set}" = set; then
4735 echo $ECHO_N "(cached) $ECHO_C" >&6
4737 cat >conftest.$ac_ext <<_ACEOF
4740 cat confdefs.h >>conftest.$ac_ext
4741 cat >>conftest.$ac_ext <<_ACEOF
4742 /* end confdefs.h. */
4752 rm -f conftest.$ac_objext
4753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4754 (eval $ac_compile) 2>conftest.er1
4756 grep -v '^ *+' conftest.er1 >conftest.err
4758 cat conftest.err >&5
4759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760 (exit $ac_status); } &&
4761 { ac_try='test -z "$ac_c_werror_flag"
4762 || test ! -s conftest.err'
4763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); }; } &&
4768 { ac_try='test -s conftest.$ac_objext'
4769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); }; }; then
4776 echo "$as_me: failed program was:" >&5
4777 sed 's/^/| /' conftest.$ac_ext >&5
4781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4783 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4784 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4785 if test "$ac_test_CFLAGS" = set; then
4786 CFLAGS=$ac_save_CFLAGS
4787 elif test $ac_cv_prog_cc_g = yes; then
4788 if test "$GCC" = yes; then
4794 if test "$GCC" = yes; then
4800 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4801 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4802 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4803 echo $ECHO_N "(cached) $ECHO_C" >&6
4805 ac_cv_prog_cc_stdc=no
4807 cat >conftest.$ac_ext <<_ACEOF
4810 cat confdefs.h >>conftest.$ac_ext
4811 cat >>conftest.$ac_ext <<_ACEOF
4812 /* end confdefs.h. */
4815 #include <sys/types.h>
4816 #include <sys/stat.h>
4817 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4818 struct buf { int x; };
4819 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4820 static char *e (p, i)
4826 static char *f (char * (*g) (char **, int), char **p, ...)
4831 s = g (p, va_arg (v,int));
4836 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4837 function prototypes and stuff, but not '\xHH' hex character constants.
4838 These don't provoke an error unfortunately, instead are silently treated
4839 as 'x'. The following induces an error, until -std1 is added to get
4840 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4841 array size at least. It's necessary to write '\x00'==0 to get something
4842 that's true only with -std1. */
4843 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4845 int test (int i, double x);
4846 struct s1 {int (*f) (int a);};
4847 struct s2 {int (*f) (double a);};
4848 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4854 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4859 # Don't try gcc -ansi; that turns off useful extensions and
4860 # breaks some systems' header files.
4861 # AIX -qlanglvl=ansi
4862 # Ultrix and OSF/1 -std1
4863 # HP-UX 10.20 and later -Ae
4864 # HP-UX older versions -Aa -D_HPUX_SOURCE
4865 # SVR4 -Xc -D__EXTENSIONS__
4866 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4868 CC="$ac_save_CC $ac_arg"
4869 rm -f conftest.$ac_objext
4870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4871 (eval $ac_compile) 2>conftest.er1
4873 grep -v '^ *+' conftest.er1 >conftest.err
4875 cat conftest.err >&5
4876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); } &&
4878 { ac_try='test -z "$ac_c_werror_flag"
4879 || test ! -s conftest.err'
4880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884 (exit $ac_status); }; } &&
4885 { ac_try='test -s conftest.$ac_objext'
4886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); }; }; then
4891 ac_cv_prog_cc_stdc=$ac_arg
4894 echo "$as_me: failed program was:" >&5
4895 sed 's/^/| /' conftest.$ac_ext >&5
4898 rm -f conftest.err conftest.$ac_objext
4900 rm -f conftest.$ac_ext conftest.$ac_objext
4905 case "x$ac_cv_prog_cc_stdc" in
4907 echo "$as_me:$LINENO: result: none needed" >&5
4908 echo "${ECHO_T}none needed" >&6 ;;
4910 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4911 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4912 CC="$CC $ac_cv_prog_cc_stdc" ;;
4915 # Some people use a C++ compiler to compile C. Since we use `exit',
4916 # in C++ we need to declare it. In case someone uses the same compiler
4917 # for both compiling C and C++ we need to have the C++ compiler decide
4918 # the declaration of exit, since it's the most demanding environment.
4919 cat >conftest.$ac_ext <<_ACEOF
4924 rm -f conftest.$ac_objext
4925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4926 (eval $ac_compile) 2>conftest.er1
4928 grep -v '^ *+' conftest.er1 >conftest.err
4930 cat conftest.err >&5
4931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932 (exit $ac_status); } &&
4933 { ac_try='test -z "$ac_c_werror_flag"
4934 || test ! -s conftest.err'
4935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); }; } &&
4940 { ac_try='test -s conftest.$ac_objext'
4941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); }; }; then
4946 for ac_declaration in \
4948 'extern "C" void std::exit (int) throw (); using std::exit;' \
4949 'extern "C" void std::exit (int); using std::exit;' \
4950 'extern "C" void exit (int) throw ();' \
4951 'extern "C" void exit (int);' \
4954 cat >conftest.$ac_ext <<_ACEOF
4957 cat confdefs.h >>conftest.$ac_ext
4958 cat >>conftest.$ac_ext <<_ACEOF
4959 /* end confdefs.h. */
4970 rm -f conftest.$ac_objext
4971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4972 (eval $ac_compile) 2>conftest.er1
4974 grep -v '^ *+' conftest.er1 >conftest.err
4976 cat conftest.err >&5
4977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); } &&
4979 { ac_try='test -z "$ac_c_werror_flag"
4980 || test ! -s conftest.err'
4981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); }; } &&
4986 { ac_try='test -s conftest.$ac_objext'
4987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991 (exit $ac_status); }; }; then
4994 echo "$as_me: failed program was:" >&5
4995 sed 's/^/| /' conftest.$ac_ext >&5
4999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5000 cat >conftest.$ac_ext <<_ACEOF
5003 cat confdefs.h >>conftest.$ac_ext
5004 cat >>conftest.$ac_ext <<_ACEOF
5005 /* end confdefs.h. */
5015 rm -f conftest.$ac_objext
5016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5017 (eval $ac_compile) 2>conftest.er1
5019 grep -v '^ *+' conftest.er1 >conftest.err
5021 cat conftest.err >&5
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); } &&
5024 { ac_try='test -z "$ac_c_werror_flag"
5025 || test ! -s conftest.err'
5026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030 (exit $ac_status); }; } &&
5031 { ac_try='test -s conftest.$ac_objext'
5032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); }; }; then
5039 echo "$as_me: failed program was:" >&5
5040 sed 's/^/| /' conftest.$ac_ext >&5
5043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5046 if test -n "$ac_declaration"; then
5047 echo '#ifdef __cplusplus' >>confdefs.h
5048 echo $ac_declaration >>confdefs.h
5049 echo '#endif' >>confdefs.h
5053 echo "$as_me: failed program was:" >&5
5054 sed 's/^/| /' conftest.$ac_ext >&5
5057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5059 ac_cpp='$CPP $CPPFLAGS'
5060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5064 depcc="$CC" am_compiler_list=
5066 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5067 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5068 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5069 echo $ECHO_N "(cached) $ECHO_C" >&6
5071 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5072 # We make a subdir and do the tests there. Otherwise we can end up
5073 # making bogus files that we don't know about and never remove. For
5074 # instance it was reported that on HP-UX the gcc test will end up
5075 # making a dummy file named `D' -- because `-MD' means `put the output
5078 # Copy depcomp to subdir because otherwise we won't find it if we're
5079 # using a relative directory.
5080 cp "$am_depcomp" conftest.dir
5082 # We will build objects and dependencies in a subdirectory because
5083 # it helps to detect inapplicable dependency modes. For instance
5084 # both Tru64's cc and ICC support -MD to output dependencies as a
5085 # side effect of compilation, but ICC will put the dependencies in
5086 # the current directory while Tru64 will put them in the object
5090 am_cv_CC_dependencies_compiler_type=none
5091 if test "$am_compiler_list" = ""; then
5092 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5094 for depmode in $am_compiler_list; do
5095 # Setup a source with many dependencies, because some compilers
5096 # like to wrap large dependency lists on column 80 (with \), and
5097 # we should not choose a depcomp mode which is confused by this.
5099 # We need to recreate these files for each test, as the compiler may
5100 # overwrite some of them when testing with obscure command lines.
5101 # This happens at least with the AIX C compiler.
5103 for i in 1 2 3 4 5 6; do
5104 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5105 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5106 # Solaris 8's {/usr,}/bin/sh.
5107 touch sub/conftst$i.h
5109 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5113 # after this tag, mechanisms are not by side-effect, so they'll
5114 # only be used when explicitly requested
5115 if test "x$enable_dependency_tracking" = xyes; then
5123 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5124 # mode. It turns out that the SunPro C++ compiler does not properly
5125 # handle `-M -o', and we need to detect this.
5126 if depmode=$depmode \
5127 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5128 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5129 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5130 >/dev/null 2>conftest.err &&
5131 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5132 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5133 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5134 # icc doesn't choke on unknown options, it will just issue warnings
5135 # or remarks (even with -Werror). So we grep stderr for any message
5136 # that says an option was ignored or not supported.
5137 # When given -MP, icc 7.0 and 7.1 complain thusly:
5138 # icc: Command line warning: ignoring option '-M'; no argument required
5139 # The diagnosis changed in icc 8.0:
5140 # icc: Command line remark: option '-MP' not supported
5141 if (grep 'ignoring option' conftest.err ||
5142 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5143 am_cv_CC_dependencies_compiler_type=$depmode
5152 am_cv_CC_dependencies_compiler_type=none
5156 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5157 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5158 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5163 test "x$enable_dependency_tracking" != xno \
5164 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5166 am__fastdepCC_FALSE='#'
5168 am__fastdepCC_TRUE='#'
5169 am__fastdepCC_FALSE=
5173 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5174 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5175 if test "${lt_cv_path_SED+set}" = set; then
5176 echo $ECHO_N "(cached) $ECHO_C" >&6
5178 # Loop through the user's path and test for sed and gsed.
5179 # Then use that list of sed's as ones to test for truncation.
5180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5184 test -z "$as_dir" && as_dir=.
5185 for lt_ac_prog in sed gsed; do
5186 for ac_exec_ext in '' $ac_executable_extensions; do
5187 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5188 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5195 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5196 # along with /bin/sed that truncates output.
5197 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5198 test ! -f $lt_ac_sed && continue
5199 cat /dev/null > conftest.in
5201 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5202 # Check for GNU sed and select it if it is found.
5203 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5204 lt_cv_path_SED=$lt_ac_sed
5208 cat conftest.in conftest.in >conftest.tmp
5209 mv conftest.tmp conftest.in
5210 cp conftest.in conftest.nl
5212 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5213 cmp -s conftest.out conftest.nl || break
5214 # 10000 chars as input seems more than enough
5215 test $lt_ac_count -gt 10 && break
5216 lt_ac_count=`expr $lt_ac_count + 1`
5217 if test $lt_ac_count -gt $lt_ac_max; then
5218 lt_ac_max=$lt_ac_count
5219 lt_cv_path_SED=$lt_ac_sed
5227 echo "$as_me:$LINENO: result: $SED" >&5
5228 echo "${ECHO_T}$SED" >&6
5230 echo "$as_me:$LINENO: checking for egrep" >&5
5231 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5232 if test "${ac_cv_prog_egrep+set}" = set; then
5233 echo $ECHO_N "(cached) $ECHO_C" >&6
5235 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5236 then ac_cv_prog_egrep='grep -E'
5237 else ac_cv_prog_egrep='egrep'
5240 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5241 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5242 EGREP=$ac_cv_prog_egrep
5246 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5247 if test "${with_gnu_ld+set}" = set; then
5248 withval="$with_gnu_ld"
5249 test "$withval" = no || with_gnu_ld=yes
5254 if test "$GCC" = yes; then
5255 # Check if gcc -print-prog-name=ld gives a path.
5256 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5257 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5260 # gcc leaves a trailing carriage return which upsets mingw
5261 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5263 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5266 # Accept absolute paths.
5268 re_direlt='/[^/][^/]*/\.\./'
5269 # Canonicalize the pathname of ld
5270 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5271 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5272 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5274 test -z "$LD" && LD="$ac_prog"
5277 # If it fails, then pretend we aren't using GCC.
5281 # If it is relative, then search for the first ld in PATH.
5285 elif test "$with_gnu_ld" = yes; then
5286 echo "$as_me:$LINENO: checking for GNU ld" >&5
5287 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5289 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5290 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5292 if test "${lt_cv_path_LD+set}" = set; then
5293 echo $ECHO_N "(cached) $ECHO_C" >&6
5295 if test -z "$LD"; then
5296 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5297 for ac_dir in $PATH; do
5299 test -z "$ac_dir" && ac_dir=.
5300 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5301 lt_cv_path_LD="$ac_dir/$ac_prog"
5302 # Check to see if the program is GNU ld. I'd rather use --version,
5303 # but apparently some variants of GNU ld only accept -v.
5304 # Break only if it was the GNU/non-GNU ld that we prefer.
5305 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5306 *GNU* | *'with BFD'*)
5307 test "$with_gnu_ld" != no && break
5310 test "$with_gnu_ld" != yes && break
5317 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5322 if test -n "$LD"; then
5323 echo "$as_me:$LINENO: result: $LD" >&5
5324 echo "${ECHO_T}$LD" >&6
5326 echo "$as_me:$LINENO: result: no" >&5
5327 echo "${ECHO_T}no" >&6
5329 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5330 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5331 { (exit 1); exit 1; }; }
5332 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5333 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5334 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5335 echo $ECHO_N "(cached) $ECHO_C" >&6
5337 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5338 case `$LD -v 2>&1 </dev/null` in
5339 *GNU* | *'with BFD'*)
5340 lt_cv_prog_gnu_ld=yes
5343 lt_cv_prog_gnu_ld=no
5347 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5348 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5349 with_gnu_ld=$lt_cv_prog_gnu_ld
5352 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5353 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5354 if test "${lt_cv_ld_reload_flag+set}" = set; then
5355 echo $ECHO_N "(cached) $ECHO_C" >&6
5357 lt_cv_ld_reload_flag='-r'
5359 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5360 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5361 reload_flag=$lt_cv_ld_reload_flag
5362 case $reload_flag in
5364 *) reload_flag=" $reload_flag" ;;
5366 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5369 if test "$GCC" = yes; then
5370 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5372 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5377 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5378 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5379 if test "${lt_cv_path_NM+set}" = set; then
5380 echo $ECHO_N "(cached) $ECHO_C" >&6
5382 if test -n "$NM"; then
5383 # Let the user override the test.
5386 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5387 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5389 test -z "$ac_dir" && ac_dir=.
5390 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5391 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5392 # Check to see if the nm accepts a BSD-compat flag.
5393 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5394 # nm: unknown option "B" ignored
5395 # Tru64's nm complains that /dev/null is an invalid object file
5396 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5397 */dev/null* | *'Invalid file or object type'*)
5398 lt_cv_path_NM="$tmp_nm -B"
5402 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5404 lt_cv_path_NM="$tmp_nm -p"
5408 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5409 continue # so that we can try to find one that supports BSD flags
5416 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5419 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5420 echo "${ECHO_T}$lt_cv_path_NM" >&6
5423 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5424 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5426 if test "$LN_S" = "ln -s"; then
5427 echo "$as_me:$LINENO: result: yes" >&5
5428 echo "${ECHO_T}yes" >&6
5430 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5431 echo "${ECHO_T}no, using $LN_S" >&6
5434 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5435 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5436 if test "${lt_cv_deplibs_check_method+set}" = set; then
5437 echo $ECHO_N "(cached) $ECHO_C" >&6
5439 lt_cv_file_magic_cmd='$MAGIC_CMD'
5440 lt_cv_file_magic_test_file=
5441 lt_cv_deplibs_check_method='unknown'
5442 # Need to set the preceding variable on all platforms that support
5443 # interlibrary dependencies.
5444 # 'none' -- dependencies not supported.
5445 # `unknown' -- same as none, but documents that we really don't know.
5446 # 'pass_all' -- all dependencies passed with no checks.
5447 # 'test_compile' -- check by making test program.
5448 # 'file_magic [[regex]]' -- check by looking for files in library path
5449 # which responds to the $file_magic_cmd with a given extended regex.
5450 # If you have `file' or equivalent on your system and you're not sure
5451 # whether `pass_all' will *always* work, you probably want this one.
5455 lt_cv_deplibs_check_method=pass_all
5459 lt_cv_deplibs_check_method=pass_all
5463 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5464 lt_cv_file_magic_cmd='/usr/bin/file -L'
5465 lt_cv_file_magic_test_file=/shlib/libc.so
5469 # func_win32_libid is a shell function defined in ltmain.sh
5470 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5471 lt_cv_file_magic_cmd='func_win32_libid'
5475 # Base MSYS/MinGW do not provide the 'file' command needed by
5476 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5477 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5478 lt_cv_file_magic_cmd='$OBJDUMP -f'
5481 darwin* | rhapsody*)
5482 lt_cv_deplibs_check_method=pass_all
5485 freebsd* | kfreebsd*-gnu | dragonfly*)
5486 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5489 # Not sure whether the presence of OpenBSD here was a mistake.
5490 # Let's accept both of them until this is cleared up.
5491 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5492 lt_cv_file_magic_cmd=/usr/bin/file
5493 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5497 lt_cv_deplibs_check_method=pass_all
5502 lt_cv_deplibs_check_method=pass_all
5505 hpux10.20* | hpux11*)
5506 lt_cv_file_magic_cmd=/usr/bin/file
5509 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5510 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5513 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]'
5514 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5517 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5518 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5523 irix5* | irix6* | nonstopux*)
5525 *-32|*"-32 ") libmagic=32-bit;;
5526 *-n32|*"-n32 ") libmagic=N32;;
5527 *-64|*"-64 ") libmagic=64-bit;;
5528 *) libmagic=never-match;;
5530 lt_cv_deplibs_check_method=pass_all
5533 # This must be Linux ELF.
5535 lt_cv_deplibs_check_method=pass_all
5539 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5540 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5542 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5547 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5548 lt_cv_file_magic_cmd=/usr/bin/file
5549 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5553 lt_cv_deplibs_check_method=unknown
5557 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5558 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5560 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5564 osf3* | osf4* | osf5*)
5565 lt_cv_deplibs_check_method=pass_all
5569 lt_cv_deplibs_check_method=pass_all
5573 lt_cv_deplibs_check_method=pass_all
5576 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5577 case $host_vendor in
5579 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]'
5580 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5583 lt_cv_deplibs_check_method=pass_all
5586 lt_cv_file_magic_cmd='/bin/file'
5587 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5590 lt_cv_file_magic_cmd='/bin/file'
5591 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5592 lt_cv_file_magic_test_file=/lib/libc.so
5595 lt_cv_deplibs_check_method=pass_all
5600 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5601 lt_cv_deplibs_check_method=pass_all
5606 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5607 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5608 file_magic_cmd=$lt_cv_file_magic_cmd
5609 deplibs_check_method=$lt_cv_deplibs_check_method
5610 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5615 # If no C compiler was specified, use CC.
5618 # Allow CC to be a program name with arguments.
5622 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5623 if test "${enable_libtool_lock+set}" = set; then
5624 enableval="$enable_libtool_lock"
5627 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5629 # Some flags need to be propagated to the compiler or linker for good
5633 # Find out which ABI we are using.
5634 echo 'int i;' > conftest.$ac_ext
5635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5636 (eval $ac_compile) 2>&5
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); }; then
5640 case `/usr/bin/file conftest.$ac_objext` in
5652 # Find out which ABI we are using.
5653 echo '#line 5653 "configure"' > conftest.$ac_ext
5654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5655 (eval $ac_compile) 2>&5
5657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658 (exit $ac_status); }; then
5659 if test "$lt_cv_prog_gnu_ld" = yes; then
5660 case `/usr/bin/file conftest.$ac_objext` in
5662 LD="${LD-ld} -melf32bsmip"
5665 LD="${LD-ld} -melf32bmipn32"
5668 LD="${LD-ld} -melf64bmip"
5672 case `/usr/bin/file conftest.$ac_objext` in
5688 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5689 # Find out which ABI we are using.
5690 echo 'int i;' > conftest.$ac_ext
5691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5692 (eval $ac_compile) 2>&5
5694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695 (exit $ac_status); }; then
5696 case `/usr/bin/file conftest.o` in
5700 LD="${LD-ld} -m elf_i386"
5702 ppc64-*linux*|powerpc64-*linux*)
5703 LD="${LD-ld} -m elf32ppclinux"
5706 LD="${LD-ld} -m elf_s390"
5709 LD="${LD-ld} -m elf32_sparc"
5716 LD="${LD-ld} -m elf_x86_64"
5718 ppc*-*linux*|powerpc*-*linux*)
5719 LD="${LD-ld} -m elf64ppc"
5722 LD="${LD-ld} -m elf64_s390"
5725 LD="${LD-ld} -m elf64_sparc"
5735 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5736 SAVE_CFLAGS="$CFLAGS"
5737 CFLAGS="$CFLAGS -belf"
5738 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5739 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5740 if test "${lt_cv_cc_needs_belf+set}" = set; then
5741 echo $ECHO_N "(cached) $ECHO_C" >&6
5744 ac_cpp='$CPP $CPPFLAGS'
5745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5749 cat >conftest.$ac_ext <<_ACEOF
5752 cat confdefs.h >>conftest.$ac_ext
5753 cat >>conftest.$ac_ext <<_ACEOF
5754 /* end confdefs.h. */
5764 rm -f conftest.$ac_objext conftest$ac_exeext
5765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5766 (eval $ac_link) 2>conftest.er1
5768 grep -v '^ *+' conftest.er1 >conftest.err
5770 cat conftest.err >&5
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); } &&
5773 { ac_try='test -z "$ac_c_werror_flag"
5774 || test ! -s conftest.err'
5775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); }; } &&
5780 { ac_try='test -s conftest$ac_exeext'
5781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); }; }; then
5786 lt_cv_cc_needs_belf=yes
5788 echo "$as_me: failed program was:" >&5
5789 sed 's/^/| /' conftest.$ac_ext >&5
5791 lt_cv_cc_needs_belf=no
5793 rm -f conftest.err conftest.$ac_objext \
5794 conftest$ac_exeext conftest.$ac_ext
5796 ac_cpp='$CPP $CPPFLAGS'
5797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5802 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5803 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5804 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5805 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5806 CFLAGS="$SAVE_CFLAGS"
5809 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5810 if test -n "$ac_tool_prefix"; then
5811 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5812 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5813 echo "$as_me:$LINENO: checking for $ac_word" >&5
5814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5815 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5816 echo $ECHO_N "(cached) $ECHO_C" >&6
5818 if test -n "$DLLTOOL"; then
5819 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5825 test -z "$as_dir" && as_dir=.
5826 for ac_exec_ext in '' $ac_executable_extensions; do
5827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5828 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5837 DLLTOOL=$ac_cv_prog_DLLTOOL
5838 if test -n "$DLLTOOL"; then
5839 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5840 echo "${ECHO_T}$DLLTOOL" >&6
5842 echo "$as_me:$LINENO: result: no" >&5
5843 echo "${ECHO_T}no" >&6
5847 if test -z "$ac_cv_prog_DLLTOOL"; then
5848 ac_ct_DLLTOOL=$DLLTOOL
5849 # Extract the first word of "dlltool", so it can be a program name with args.
5850 set dummy dlltool; ac_word=$2
5851 echo "$as_me:$LINENO: checking for $ac_word" >&5
5852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5853 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5854 echo $ECHO_N "(cached) $ECHO_C" >&6
5856 if test -n "$ac_ct_DLLTOOL"; then
5857 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5863 test -z "$as_dir" && as_dir=.
5864 for ac_exec_ext in '' $ac_executable_extensions; do
5865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5866 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5873 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5876 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5877 if test -n "$ac_ct_DLLTOOL"; then
5878 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5879 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5881 echo "$as_me:$LINENO: result: no" >&5
5882 echo "${ECHO_T}no" >&6
5885 DLLTOOL=$ac_ct_DLLTOOL
5887 DLLTOOL="$ac_cv_prog_DLLTOOL"
5890 if test -n "$ac_tool_prefix"; then
5891 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5892 set dummy ${ac_tool_prefix}as; ac_word=$2
5893 echo "$as_me:$LINENO: checking for $ac_word" >&5
5894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5895 if test "${ac_cv_prog_AS+set}" = set; then
5896 echo $ECHO_N "(cached) $ECHO_C" >&6
5898 if test -n "$AS"; then
5899 ac_cv_prog_AS="$AS" # Let the user override the test.
5901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5905 test -z "$as_dir" && as_dir=.
5906 for ac_exec_ext in '' $ac_executable_extensions; do
5907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5908 ac_cv_prog_AS="${ac_tool_prefix}as"
5909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5918 if test -n "$AS"; then
5919 echo "$as_me:$LINENO: result: $AS" >&5
5920 echo "${ECHO_T}$AS" >&6
5922 echo "$as_me:$LINENO: result: no" >&5
5923 echo "${ECHO_T}no" >&6
5927 if test -z "$ac_cv_prog_AS"; then
5929 # Extract the first word of "as", so it can be a program name with args.
5930 set dummy as; ac_word=$2
5931 echo "$as_me:$LINENO: checking for $ac_word" >&5
5932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5933 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5934 echo $ECHO_N "(cached) $ECHO_C" >&6
5936 if test -n "$ac_ct_AS"; then
5937 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5943 test -z "$as_dir" && as_dir=.
5944 for ac_exec_ext in '' $ac_executable_extensions; do
5945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5946 ac_cv_prog_ac_ct_AS="as"
5947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5953 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
5956 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5957 if test -n "$ac_ct_AS"; then
5958 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5959 echo "${ECHO_T}$ac_ct_AS" >&6
5961 echo "$as_me:$LINENO: result: no" >&5
5962 echo "${ECHO_T}no" >&6
5970 if test -n "$ac_tool_prefix"; then
5971 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5972 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5973 echo "$as_me:$LINENO: checking for $ac_word" >&5
5974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5975 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5976 echo $ECHO_N "(cached) $ECHO_C" >&6
5978 if test -n "$OBJDUMP"; then
5979 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5985 test -z "$as_dir" && as_dir=.
5986 for ac_exec_ext in '' $ac_executable_extensions; do
5987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5988 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5997 OBJDUMP=$ac_cv_prog_OBJDUMP
5998 if test -n "$OBJDUMP"; then
5999 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6000 echo "${ECHO_T}$OBJDUMP" >&6
6002 echo "$as_me:$LINENO: result: no" >&5
6003 echo "${ECHO_T}no" >&6
6007 if test -z "$ac_cv_prog_OBJDUMP"; then
6008 ac_ct_OBJDUMP=$OBJDUMP
6009 # Extract the first word of "objdump", so it can be a program name with args.
6010 set dummy objdump; ac_word=$2
6011 echo "$as_me:$LINENO: checking for $ac_word" >&5
6012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6013 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6014 echo $ECHO_N "(cached) $ECHO_C" >&6
6016 if test -n "$ac_ct_OBJDUMP"; then
6017 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6023 test -z "$as_dir" && as_dir=.
6024 for ac_exec_ext in '' $ac_executable_extensions; do
6025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6026 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6033 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6036 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6037 if test -n "$ac_ct_OBJDUMP"; then
6038 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6039 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6041 echo "$as_me:$LINENO: result: no" >&5
6042 echo "${ECHO_T}no" >&6
6045 OBJDUMP=$ac_ct_OBJDUMP
6047 OBJDUMP="$ac_cv_prog_OBJDUMP"
6054 need_locks="$enable_libtool_lock"
6058 ac_cpp='$CPP $CPPFLAGS'
6059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6062 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6063 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6064 # On Suns, sometimes $CPP names a directory.
6065 if test -n "$CPP" && test -d "$CPP"; then
6068 if test -z "$CPP"; then
6069 if test "${ac_cv_prog_CPP+set}" = set; then
6070 echo $ECHO_N "(cached) $ECHO_C" >&6
6072 # Double quotes because CPP needs to be expanded
6073 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6076 for ac_c_preproc_warn_flag in '' yes
6078 # Use a header file that comes with gcc, so configuring glibc
6079 # with a fresh cross-compiler works.
6080 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6081 # <limits.h> exists even on freestanding compilers.
6082 # On the NeXT, cc -E runs the code through the compiler's parser,
6083 # not just through cpp. "Syntax error" is here to catch this case.
6084 cat >conftest.$ac_ext <<_ACEOF
6087 cat confdefs.h >>conftest.$ac_ext
6088 cat >>conftest.$ac_ext <<_ACEOF
6089 /* end confdefs.h. */
6091 # include <limits.h>
6093 # include <assert.h>
6097 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6098 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6100 grep -v '^ *+' conftest.er1 >conftest.err
6102 cat conftest.err >&5
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); } >/dev/null; then
6105 if test -s conftest.err; then
6106 ac_cpp_err=$ac_c_preproc_warn_flag
6107 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6114 if test -z "$ac_cpp_err"; then
6117 echo "$as_me: failed program was:" >&5
6118 sed 's/^/| /' conftest.$ac_ext >&5
6120 # Broken: fails on valid input.
6123 rm -f conftest.err conftest.$ac_ext
6125 # OK, works on sane cases. Now check whether non-existent headers
6126 # can be detected and how.
6127 cat >conftest.$ac_ext <<_ACEOF
6130 cat confdefs.h >>conftest.$ac_ext
6131 cat >>conftest.$ac_ext <<_ACEOF
6132 /* end confdefs.h. */
6133 #include <ac_nonexistent.h>
6135 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6136 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6138 grep -v '^ *+' conftest.er1 >conftest.err
6140 cat conftest.err >&5
6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142 (exit $ac_status); } >/dev/null; then
6143 if test -s conftest.err; then
6144 ac_cpp_err=$ac_c_preproc_warn_flag
6145 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6152 if test -z "$ac_cpp_err"; then
6153 # Broken: success on invalid input.
6156 echo "$as_me: failed program was:" >&5
6157 sed 's/^/| /' conftest.$ac_ext >&5
6159 # Passes both tests.
6163 rm -f conftest.err conftest.$ac_ext
6166 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6167 rm -f conftest.err conftest.$ac_ext
6168 if $ac_preproc_ok; then
6180 echo "$as_me:$LINENO: result: $CPP" >&5
6181 echo "${ECHO_T}$CPP" >&6
6183 for ac_c_preproc_warn_flag in '' yes
6185 # Use a header file that comes with gcc, so configuring glibc
6186 # with a fresh cross-compiler works.
6187 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6188 # <limits.h> exists even on freestanding compilers.
6189 # On the NeXT, cc -E runs the code through the compiler's parser,
6190 # not just through cpp. "Syntax error" is here to catch this case.
6191 cat >conftest.$ac_ext <<_ACEOF
6194 cat confdefs.h >>conftest.$ac_ext
6195 cat >>conftest.$ac_ext <<_ACEOF
6196 /* end confdefs.h. */
6198 # include <limits.h>
6200 # include <assert.h>
6204 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6205 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6207 grep -v '^ *+' conftest.er1 >conftest.err
6209 cat conftest.err >&5
6210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211 (exit $ac_status); } >/dev/null; then
6212 if test -s conftest.err; then
6213 ac_cpp_err=$ac_c_preproc_warn_flag
6214 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6221 if test -z "$ac_cpp_err"; then
6224 echo "$as_me: failed program was:" >&5
6225 sed 's/^/| /' conftest.$ac_ext >&5
6227 # Broken: fails on valid input.
6230 rm -f conftest.err conftest.$ac_ext
6232 # OK, works on sane cases. Now check whether non-existent headers
6233 # can be detected and how.
6234 cat >conftest.$ac_ext <<_ACEOF
6237 cat confdefs.h >>conftest.$ac_ext
6238 cat >>conftest.$ac_ext <<_ACEOF
6239 /* end confdefs.h. */
6240 #include <ac_nonexistent.h>
6242 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6243 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6245 grep -v '^ *+' conftest.er1 >conftest.err
6247 cat conftest.err >&5
6248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249 (exit $ac_status); } >/dev/null; then
6250 if test -s conftest.err; then
6251 ac_cpp_err=$ac_c_preproc_warn_flag
6252 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6259 if test -z "$ac_cpp_err"; then
6260 # Broken: success on invalid input.
6263 echo "$as_me: failed program was:" >&5
6264 sed 's/^/| /' conftest.$ac_ext >&5
6266 # Passes both tests.
6270 rm -f conftest.err conftest.$ac_ext
6273 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6274 rm -f conftest.err conftest.$ac_ext
6275 if $ac_preproc_ok; then
6278 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6279 See \`config.log' for more details." >&5
6280 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6281 See \`config.log' for more details." >&2;}
6282 { (exit 1); exit 1; }; }
6286 ac_cpp='$CPP $CPPFLAGS'
6287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6292 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6293 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6294 if test "${ac_cv_header_stdc+set}" = set; then
6295 echo $ECHO_N "(cached) $ECHO_C" >&6
6297 cat >conftest.$ac_ext <<_ACEOF
6300 cat confdefs.h >>conftest.$ac_ext
6301 cat >>conftest.$ac_ext <<_ACEOF
6302 /* end confdefs.h. */
6316 rm -f conftest.$ac_objext
6317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6318 (eval $ac_compile) 2>conftest.er1
6320 grep -v '^ *+' conftest.er1 >conftest.err
6322 cat conftest.err >&5
6323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324 (exit $ac_status); } &&
6325 { ac_try='test -z "$ac_c_werror_flag"
6326 || test ! -s conftest.err'
6327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331 (exit $ac_status); }; } &&
6332 { ac_try='test -s conftest.$ac_objext'
6333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337 (exit $ac_status); }; }; then
6338 ac_cv_header_stdc=yes
6340 echo "$as_me: failed program was:" >&5
6341 sed 's/^/| /' conftest.$ac_ext >&5
6343 ac_cv_header_stdc=no
6345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6347 if test $ac_cv_header_stdc = yes; then
6348 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6349 cat >conftest.$ac_ext <<_ACEOF
6352 cat confdefs.h >>conftest.$ac_ext
6353 cat >>conftest.$ac_ext <<_ACEOF
6354 /* end confdefs.h. */
6358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6359 $EGREP "memchr" >/dev/null 2>&1; then
6362 ac_cv_header_stdc=no
6368 if test $ac_cv_header_stdc = yes; then
6369 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6370 cat >conftest.$ac_ext <<_ACEOF
6373 cat confdefs.h >>conftest.$ac_ext
6374 cat >>conftest.$ac_ext <<_ACEOF
6375 /* end confdefs.h. */
6379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6380 $EGREP "free" >/dev/null 2>&1; then
6383 ac_cv_header_stdc=no
6389 if test $ac_cv_header_stdc = yes; then
6390 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6391 if test "$cross_compiling" = yes; then
6394 cat >conftest.$ac_ext <<_ACEOF
6397 cat confdefs.h >>conftest.$ac_ext
6398 cat >>conftest.$ac_ext <<_ACEOF
6399 /* end confdefs.h. */
6401 #if ((' ' & 0x0FF) == 0x020)
6402 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6403 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6405 # define ISLOWER(c) \
6406 (('a' <= (c) && (c) <= 'i') \
6407 || ('j' <= (c) && (c) <= 'r') \
6408 || ('s' <= (c) && (c) <= 'z'))
6409 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6412 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6417 for (i = 0; i < 256; i++)
6418 if (XOR (islower (i), ISLOWER (i))
6419 || toupper (i) != TOUPPER (i))
6424 rm -f conftest$ac_exeext
6425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6426 (eval $ac_link) 2>&5
6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434 (exit $ac_status); }; }; then
6437 echo "$as_me: program exited with status $ac_status" >&5
6438 echo "$as_me: failed program was:" >&5
6439 sed 's/^/| /' conftest.$ac_ext >&5
6442 ac_cv_header_stdc=no
6444 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6448 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6449 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6450 if test $ac_cv_header_stdc = yes; then
6452 cat >>confdefs.h <<\_ACEOF
6453 #define STDC_HEADERS 1
6458 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6468 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6469 inttypes.h stdint.h unistd.h
6471 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6472 echo "$as_me:$LINENO: checking for $ac_header" >&5
6473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6474 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6475 echo $ECHO_N "(cached) $ECHO_C" >&6
6477 cat >conftest.$ac_ext <<_ACEOF
6480 cat confdefs.h >>conftest.$ac_ext
6481 cat >>conftest.$ac_ext <<_ACEOF
6482 /* end confdefs.h. */
6483 $ac_includes_default
6485 #include <$ac_header>
6487 rm -f conftest.$ac_objext
6488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6489 (eval $ac_compile) 2>conftest.er1
6491 grep -v '^ *+' conftest.er1 >conftest.err
6493 cat conftest.err >&5
6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); } &&
6496 { ac_try='test -z "$ac_c_werror_flag"
6497 || test ! -s conftest.err'
6498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); }; } &&
6503 { ac_try='test -s conftest.$ac_objext'
6504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); }; }; then
6509 eval "$as_ac_Header=yes"
6511 echo "$as_me: failed program was:" >&5
6512 sed 's/^/| /' conftest.$ac_ext >&5
6514 eval "$as_ac_Header=no"
6516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6519 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6520 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6521 cat >>confdefs.h <<_ACEOF
6522 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6531 for ac_header in dlfcn.h
6533 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6535 echo "$as_me:$LINENO: checking for $ac_header" >&5
6536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6538 echo $ECHO_N "(cached) $ECHO_C" >&6
6540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6541 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6543 # Is the header compilable?
6544 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6545 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6546 cat >conftest.$ac_ext <<_ACEOF
6549 cat confdefs.h >>conftest.$ac_ext
6550 cat >>conftest.$ac_ext <<_ACEOF
6551 /* end confdefs.h. */
6552 $ac_includes_default
6553 #include <$ac_header>
6555 rm -f conftest.$ac_objext
6556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6557 (eval $ac_compile) 2>conftest.er1
6559 grep -v '^ *+' conftest.er1 >conftest.err
6561 cat conftest.err >&5
6562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); } &&
6564 { ac_try='test -z "$ac_c_werror_flag"
6565 || test ! -s conftest.err'
6566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570 (exit $ac_status); }; } &&
6571 { ac_try='test -s conftest.$ac_objext'
6572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576 (exit $ac_status); }; }; then
6577 ac_header_compiler=yes
6579 echo "$as_me: failed program was:" >&5
6580 sed 's/^/| /' conftest.$ac_ext >&5
6582 ac_header_compiler=no
6584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6585 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6586 echo "${ECHO_T}$ac_header_compiler" >&6
6588 # Is the header present?
6589 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6590 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6591 cat >conftest.$ac_ext <<_ACEOF
6594 cat confdefs.h >>conftest.$ac_ext
6595 cat >>conftest.$ac_ext <<_ACEOF
6596 /* end confdefs.h. */
6597 #include <$ac_header>
6599 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6600 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6602 grep -v '^ *+' conftest.er1 >conftest.err
6604 cat conftest.err >&5
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); } >/dev/null; then
6607 if test -s conftest.err; then
6608 ac_cpp_err=$ac_c_preproc_warn_flag
6609 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6616 if test -z "$ac_cpp_err"; then
6617 ac_header_preproc=yes
6619 echo "$as_me: failed program was:" >&5
6620 sed 's/^/| /' conftest.$ac_ext >&5
6622 ac_header_preproc=no
6624 rm -f conftest.err conftest.$ac_ext
6625 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6626 echo "${ECHO_T}$ac_header_preproc" >&6
6628 # So? What about this header?
6629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6631 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6632 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6634 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6635 ac_header_preproc=yes
6638 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6639 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6640 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6641 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6642 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6643 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6644 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6645 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6647 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6648 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6649 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6652 ## --------------------------------------------- ##
6653 ## Report this to <http://www.openldap.org/its/> ##
6654 ## --------------------------------------------- ##
6657 sed "s/^/$as_me: WARNING: /" >&2
6660 echo "$as_me:$LINENO: checking for $ac_header" >&5
6661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6663 echo $ECHO_N "(cached) $ECHO_C" >&6
6665 eval "$as_ac_Header=\$ac_header_preproc"
6667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6668 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6671 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6672 cat >>confdefs.h <<_ACEOF
6673 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6681 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6683 # find the maximum length of command line arguments
6684 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6685 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6686 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6687 echo $ECHO_N "(cached) $ECHO_C" >&6
6694 # On DJGPP, this test can blow up pretty badly due to problems in libc
6695 # (any single argument exceeding 2000 bytes causes a buffer overrun
6696 # during glob expansion). Even if it were fixed, the result of this
6697 # check would be larger than it should be.
6698 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6702 # Under GNU Hurd, this test is not required because there is
6703 # no limit to the length of command line arguments.
6704 # Libtool will interpret -1 as no limit whatsoever
6705 lt_cv_sys_max_cmd_len=-1;
6709 # On Win9x/ME, this test blows up -- it succeeds, but takes
6710 # about 5 minutes as the teststring grows exponentially.
6711 # Worse, since 9x/ME are not pre-emptively multitasking,
6712 # you end up with a "frozen" computer, even though with patience
6713 # the test eventually succeeds (with a max line length of 256k).
6714 # Instead, let's just punt: use the minimum linelength reported by
6715 # all of the supported platforms: 8192 (on NT/2K/XP).
6716 lt_cv_sys_max_cmd_len=8192;
6720 # On AmigaOS with pdksh, this test takes hours, literally.
6721 # So we just punt and use a minimum line length of 8192.
6722 lt_cv_sys_max_cmd_len=8192;
6725 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6726 # This has been around since 386BSD, at least. Likely further.
6727 if test -x /sbin/sysctl; then
6728 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6729 elif test -x /usr/sbin/sysctl; then
6730 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6732 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6734 # And add a safety zone
6735 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6736 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6739 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6740 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6741 # nice to cause kernel panics so lets avoid the loop below.
6742 # First set a reasonable default.
6743 lt_cv_sys_max_cmd_len=16384
6745 if test -x /sbin/sysconfig; then
6746 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6747 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6752 # If test is not a shell built-in, we'll probably end up computing a
6753 # maximum length that is only half of the actual maximum length, but
6755 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6756 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6757 = "XX$teststring") >/dev/null 2>&1 &&
6758 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6759 lt_cv_sys_max_cmd_len=$new_result &&
6760 test $i != 17 # 1/2 MB should be enough
6763 teststring=$teststring$teststring
6766 # Add a significant safety factor because C++ compilers can tack on massive
6767 # amounts of additional arguments before passing them to the linker.
6768 # It appears as though 1/2 is a usable value.
6769 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6775 if test -n $lt_cv_sys_max_cmd_len ; then
6776 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6777 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6779 echo "$as_me:$LINENO: result: none" >&5
6780 echo "${ECHO_T}none" >&6
6786 # Check for command to grab the raw symbol name followed by C symbol from nm.
6787 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6788 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6789 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6790 echo $ECHO_N "(cached) $ECHO_C" >&6
6793 # These are sane defaults that work on at least a few old systems.
6794 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6796 # Character class describing NM global symbol codes.
6797 symcode='[BCDEGRST]'
6799 # Regexp to match symbols that can be accessed directly from C.
6800 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6802 # Transform an extracted symbol line into a proper C declaration
6803 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6805 # Transform an extracted symbol line into symbol name and symbol address
6806 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6808 # Define system-specific variables.
6813 cygwin* | mingw* | pw32*)
6814 symcode='[ABCDGISTW]'
6816 hpux*) # Its linker distinguishes data from code symbols
6817 if test "$host_cpu" = ia64; then
6818 symcode='[ABCDEGRST]'
6820 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6821 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'"
6824 if test "$host_cpu" = ia64; then
6825 symcode='[ABCDGIRSTW]'
6826 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6827 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'"
6831 symcode='[BCDEGRST]'
6834 symcode='[BCDEGQRST]'
6844 # Handle CRLF in mingw tool chain
6848 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6852 # If we're using GNU nm, then use its standard symbol codes.
6853 case `$NM -V 2>&1` in
6854 *GNU* | *'with BFD'*)
6855 symcode='[ABCDGIRSTW]' ;;
6858 # Try without a prefix undercore, then with it.
6859 for ac_symprfx in "" "_"; do
6861 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6862 symxfrm="\\1 $ac_symprfx\\2 \\2"
6864 # Write the raw and C identifiers.
6865 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6867 # Check to see that the pipe works correctly.
6871 cat > conftest.$ac_ext <<EOF
6876 void nm_test_func(){}
6880 int main(){nm_test_var='a';nm_test_func();return(0);}
6883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6884 (eval $ac_compile) 2>&5
6886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887 (exit $ac_status); }; then
6888 # Now try to grab the symbols.
6890 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6891 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); } && test -s "$nlist"; then
6895 # Try sorting and uniquifying the output.
6896 if sort "$nlist" | uniq > "$nlist"T; then
6897 mv -f "$nlist"T "$nlist"
6902 # Make sure that we snagged all the symbols we need.
6903 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6904 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6905 cat <<EOF > conftest.$ac_ext
6911 # Now generate the symbol file.
6912 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6914 cat <<EOF >> conftest.$ac_ext
6915 #if defined (__STDC__) && __STDC__
6916 # define lt_ptr_t void *
6918 # define lt_ptr_t char *
6922 /* The mapping between symbol names and symbols. */
6927 lt_preloaded_symbols[] =
6930 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6931 cat <<\EOF >> conftest.$ac_ext
6939 # Now try linking the two files.
6940 mv conftest.$ac_objext conftstm.$ac_objext
6941 lt_save_LIBS="$LIBS"
6942 lt_save_CFLAGS="$CFLAGS"
6943 LIBS="conftstm.$ac_objext"
6944 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6946 (eval $ac_link) 2>&5
6948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6952 LIBS="$lt_save_LIBS"
6953 CFLAGS="$lt_save_CFLAGS"
6955 echo "cannot find nm_test_func in $nlist" >&5
6958 echo "cannot find nm_test_var in $nlist" >&5
6961 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6964 echo "$progname: failed program was:" >&5
6965 cat conftest.$ac_ext >&5
6967 rm -f conftest* conftst*
6969 # Do not use the global_symbol_pipe unless it works.
6970 if test "$pipe_works" = yes; then
6973 lt_cv_sys_global_symbol_pipe=
6979 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6980 lt_cv_sys_global_symbol_to_cdecl=
6982 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6983 echo "$as_me:$LINENO: result: failed" >&5
6984 echo "${ECHO_T}failed" >&6
6986 echo "$as_me:$LINENO: result: ok" >&5
6987 echo "${ECHO_T}ok" >&6
6990 echo "$as_me:$LINENO: checking for objdir" >&5
6991 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6992 if test "${lt_cv_objdir+set}" = set; then
6993 echo $ECHO_N "(cached) $ECHO_C" >&6
6995 rm -f .libs 2>/dev/null
6996 mkdir .libs 2>/dev/null
6997 if test -d .libs; then
7000 # MS-DOS does not allow filenames that begin with a dot.
7003 rmdir .libs 2>/dev/null
7005 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7006 echo "${ECHO_T}$lt_cv_objdir" >&6
7007 objdir=$lt_cv_objdir
7015 # AIX sometimes has problems with the GCC collect2 program. For some
7016 # reason, if we set the COLLECT_NAMES environment variable, the problems
7017 # vanish in a puff of smoke.
7018 if test "X${COLLECT_NAMES+set}" != Xset; then
7020 export COLLECT_NAMES
7025 # Sed substitution that helps us do robust quoting. It backslashifies
7026 # metacharacters that are still active within double-quoted strings.
7027 Xsed='sed -e 1s/^X//'
7028 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7030 # Same as above, but do not quote variable references.
7031 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7033 # Sed substitution to delay expansion of an escaped shell variable in a
7034 # double_quote_subst'ed string.
7035 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7037 # Sed substitution to avoid accidental globbing in evaled expressions
7038 no_glob_subst='s/\*/\\\*/g'
7044 default_ofile=libtool
7045 can_build_shared=yes
7047 # All known linkers require a `.a' archive for static linking (except MSVC,
7048 # which needs '.lib').
7050 ltmain="$ac_aux_dir/ltmain.sh"
7051 ofile="$default_ofile"
7052 with_gnu_ld="$lt_cv_prog_gnu_ld"
7054 if test -n "$ac_tool_prefix"; then
7055 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7056 set dummy ${ac_tool_prefix}ar; ac_word=$2
7057 echo "$as_me:$LINENO: checking for $ac_word" >&5
7058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7059 if test "${ac_cv_prog_AR+set}" = set; then
7060 echo $ECHO_N "(cached) $ECHO_C" >&6
7062 if test -n "$AR"; then
7063 ac_cv_prog_AR="$AR" # Let the user override the test.
7065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7069 test -z "$as_dir" && as_dir=.
7070 for ac_exec_ext in '' $ac_executable_extensions; do
7071 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7072 ac_cv_prog_AR="${ac_tool_prefix}ar"
7073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7082 if test -n "$AR"; then
7083 echo "$as_me:$LINENO: result: $AR" >&5
7084 echo "${ECHO_T}$AR" >&6
7086 echo "$as_me:$LINENO: result: no" >&5
7087 echo "${ECHO_T}no" >&6
7091 if test -z "$ac_cv_prog_AR"; then
7093 # Extract the first word of "ar", so it can be a program name with args.
7094 set dummy ar; ac_word=$2
7095 echo "$as_me:$LINENO: checking for $ac_word" >&5
7096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7097 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7098 echo $ECHO_N "(cached) $ECHO_C" >&6
7100 if test -n "$ac_ct_AR"; then
7101 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7107 test -z "$as_dir" && as_dir=.
7108 for ac_exec_ext in '' $ac_executable_extensions; do
7109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7110 ac_cv_prog_ac_ct_AR="ar"
7111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7117 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7120 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7121 if test -n "$ac_ct_AR"; then
7122 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7123 echo "${ECHO_T}$ac_ct_AR" >&6
7125 echo "$as_me:$LINENO: result: no" >&5
7126 echo "${ECHO_T}no" >&6
7134 if test -n "$ac_tool_prefix"; then
7135 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7136 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7137 echo "$as_me:$LINENO: checking for $ac_word" >&5
7138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7139 if test "${ac_cv_prog_RANLIB+set}" = set; then
7140 echo $ECHO_N "(cached) $ECHO_C" >&6
7142 if test -n "$RANLIB"; then
7143 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7149 test -z "$as_dir" && as_dir=.
7150 for ac_exec_ext in '' $ac_executable_extensions; do
7151 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7152 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7161 RANLIB=$ac_cv_prog_RANLIB
7162 if test -n "$RANLIB"; then
7163 echo "$as_me:$LINENO: result: $RANLIB" >&5
7164 echo "${ECHO_T}$RANLIB" >&6
7166 echo "$as_me:$LINENO: result: no" >&5
7167 echo "${ECHO_T}no" >&6
7171 if test -z "$ac_cv_prog_RANLIB"; then
7172 ac_ct_RANLIB=$RANLIB
7173 # Extract the first word of "ranlib", so it can be a program name with args.
7174 set dummy ranlib; ac_word=$2
7175 echo "$as_me:$LINENO: checking for $ac_word" >&5
7176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7177 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7178 echo $ECHO_N "(cached) $ECHO_C" >&6
7180 if test -n "$ac_ct_RANLIB"; then
7181 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7187 test -z "$as_dir" && as_dir=.
7188 for ac_exec_ext in '' $ac_executable_extensions; do
7189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7190 ac_cv_prog_ac_ct_RANLIB="ranlib"
7191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7197 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7200 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7201 if test -n "$ac_ct_RANLIB"; then
7202 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7203 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7205 echo "$as_me:$LINENO: result: no" >&5
7206 echo "${ECHO_T}no" >&6
7209 RANLIB=$ac_ct_RANLIB
7211 RANLIB="$ac_cv_prog_RANLIB"
7214 if test -n "$ac_tool_prefix"; then
7215 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7216 set dummy ${ac_tool_prefix}strip; ac_word=$2
7217 echo "$as_me:$LINENO: checking for $ac_word" >&5
7218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7219 if test "${ac_cv_prog_STRIP+set}" = set; then
7220 echo $ECHO_N "(cached) $ECHO_C" >&6
7222 if test -n "$STRIP"; then
7223 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7229 test -z "$as_dir" && as_dir=.
7230 for ac_exec_ext in '' $ac_executable_extensions; do
7231 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7232 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7241 STRIP=$ac_cv_prog_STRIP
7242 if test -n "$STRIP"; then
7243 echo "$as_me:$LINENO: result: $STRIP" >&5
7244 echo "${ECHO_T}$STRIP" >&6
7246 echo "$as_me:$LINENO: result: no" >&5
7247 echo "${ECHO_T}no" >&6
7251 if test -z "$ac_cv_prog_STRIP"; then
7253 # Extract the first word of "strip", so it can be a program name with args.
7254 set dummy strip; ac_word=$2
7255 echo "$as_me:$LINENO: checking for $ac_word" >&5
7256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7257 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7258 echo $ECHO_N "(cached) $ECHO_C" >&6
7260 if test -n "$ac_ct_STRIP"; then
7261 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7267 test -z "$as_dir" && as_dir=.
7268 for ac_exec_ext in '' $ac_executable_extensions; do
7269 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7270 ac_cv_prog_ac_ct_STRIP="strip"
7271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7277 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7280 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7281 if test -n "$ac_ct_STRIP"; then
7282 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7283 echo "${ECHO_T}$ac_ct_STRIP" >&6
7285 echo "$as_me:$LINENO: result: no" >&5
7286 echo "${ECHO_T}no" >&6
7291 STRIP="$ac_cv_prog_STRIP"
7296 old_CFLAGS="$CFLAGS"
7298 # Set sane defaults for various variables
7299 test -z "$AR" && AR=ar
7300 test -z "$AR_FLAGS" && AR_FLAGS=cru
7301 test -z "$AS" && AS=as
7302 test -z "$CC" && CC=cc
7303 test -z "$LTCC" && LTCC=$CC
7304 test -z "$DLLTOOL" && DLLTOOL=dlltool
7305 test -z "$LD" && LD=ld
7306 test -z "$LN_S" && LN_S="ln -s"
7307 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7308 test -z "$NM" && NM=nm
7309 test -z "$SED" && SED=sed
7310 test -z "$OBJDUMP" && OBJDUMP=objdump
7311 test -z "$RANLIB" && RANLIB=:
7312 test -z "$STRIP" && STRIP=:
7313 test -z "$ac_objext" && ac_objext=o
7315 # Determine commands to create old-style static archives.
7316 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7317 old_postinstall_cmds='chmod 644 $oldlib'
7318 old_postuninstall_cmds=
7320 if test -n "$RANLIB"; then
7323 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7326 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7329 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7332 for cc_temp in $compiler""; do
7334 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7335 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7340 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7343 # Only perform the check for file, if the check method requires it
7344 case $deplibs_check_method in
7346 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7347 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7348 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7349 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7350 echo $ECHO_N "(cached) $ECHO_C" >&6
7354 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7357 lt_save_MAGIC_CMD="$MAGIC_CMD"
7358 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7359 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7360 for ac_dir in $ac_dummy; do
7362 test -z "$ac_dir" && ac_dir=.
7363 if test -f $ac_dir/${ac_tool_prefix}file; then
7364 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7365 if test -n "$file_magic_test_file"; then
7366 case $deplibs_check_method in
7368 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7369 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7370 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7371 $EGREP "$file_magic_regex" > /dev/null; then
7376 *** Warning: the command libtool uses to detect shared libraries,
7377 *** $file_magic_cmd, produces output that libtool cannot recognize.
7378 *** The result is that libtool may fail to recognize shared libraries
7379 *** as such. This will affect the creation of libtool libraries that
7380 *** depend on shared libraries, but programs linked with such libtool
7381 *** libraries will work regardless of this problem. Nevertheless, you
7382 *** may want to report the problem to your system manager and/or to
7383 *** bug-libtool@gnu.org
7393 MAGIC_CMD="$lt_save_MAGIC_CMD"
7398 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7399 if test -n "$MAGIC_CMD"; then
7400 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7401 echo "${ECHO_T}$MAGIC_CMD" >&6
7403 echo "$as_me:$LINENO: result: no" >&5
7404 echo "${ECHO_T}no" >&6
7407 if test -z "$lt_cv_path_MAGIC_CMD"; then
7408 if test -n "$ac_tool_prefix"; then
7409 echo "$as_me:$LINENO: checking for file" >&5
7410 echo $ECHO_N "checking for file... $ECHO_C" >&6
7411 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7412 echo $ECHO_N "(cached) $ECHO_C" >&6
7416 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7419 lt_save_MAGIC_CMD="$MAGIC_CMD"
7420 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7421 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7422 for ac_dir in $ac_dummy; do
7424 test -z "$ac_dir" && ac_dir=.
7425 if test -f $ac_dir/file; then
7426 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7427 if test -n "$file_magic_test_file"; then
7428 case $deplibs_check_method in
7430 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7431 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7432 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7433 $EGREP "$file_magic_regex" > /dev/null; then
7438 *** Warning: the command libtool uses to detect shared libraries,
7439 *** $file_magic_cmd, produces output that libtool cannot recognize.
7440 *** The result is that libtool may fail to recognize shared libraries
7441 *** as such. This will affect the creation of libtool libraries that
7442 *** depend on shared libraries, but programs linked with such libtool
7443 *** libraries will work regardless of this problem. Nevertheless, you
7444 *** may want to report the problem to your system manager and/or to
7445 *** bug-libtool@gnu.org
7455 MAGIC_CMD="$lt_save_MAGIC_CMD"
7460 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7461 if test -n "$MAGIC_CMD"; then
7462 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7463 echo "${ECHO_T}$MAGIC_CMD" >&6
7465 echo "$as_me:$LINENO: result: no" >&5
7466 echo "${ECHO_T}no" >&6
7479 enable_win32_dll=yes
7481 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7482 if test "${enable_libtool_lock+set}" = set; then
7483 enableval="$enable_libtool_lock"
7486 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7489 # Check whether --with-pic or --without-pic was given.
7490 if test "${with_pic+set}" = set; then
7496 test -z "$pic_mode" && pic_mode=default
7498 # Use C for the default configuration in the libtool script
7502 ac_cpp='$CPP $CPPFLAGS'
7503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7508 # Source file extension for C test sources.
7511 # Object file extension for compiled C test sources.
7515 # Code to be used in simple compile tests
7516 lt_simple_compile_test_code="int some_variable = 0;\n"
7518 # Code to be used in simple link tests
7519 lt_simple_link_test_code='int main(){return(0);}\n'
7522 # If no C compiler was specified, use CC.
7525 # Allow CC to be a program name with arguments.
7529 # save warnings/boilerplate of simple test code
7530 ac_outfile=conftest.$ac_objext
7531 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7532 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7533 _lt_compiler_boilerplate=`cat conftest.err`
7536 ac_outfile=conftest.$ac_objext
7537 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7538 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7539 _lt_linker_boilerplate=`cat conftest.err`
7544 # Check for any special shared library compilation flags.
7547 if test "$GCC" = no; then
7550 lt_prog_cc_shlib='-belf'
7554 if test -n "$lt_prog_cc_shlib"; then
7555 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7556 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7557 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
7559 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7560 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7561 lt_cv_prog_cc_can_build_shared=no
7567 # Check to make sure the static flag actually works.
7569 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7570 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7571 if test "${lt_prog_compiler_static_works+set}" = set; then
7572 echo $ECHO_N "(cached) $ECHO_C" >&6
7574 lt_prog_compiler_static_works=no
7575 save_LDFLAGS="$LDFLAGS"
7576 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7577 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7578 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7579 # The linker can only warn and ignore the option if not recognized
7580 # So say no if there are warnings
7581 if test -s conftest.err; then
7582 # Append any errors to the config.log.
7583 cat conftest.err 1>&5
7584 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7585 $SED '/^$/d' conftest.err >conftest.er2
7586 if diff conftest.exp conftest.er2 >/dev/null; then
7587 lt_prog_compiler_static_works=yes
7590 lt_prog_compiler_static_works=yes
7594 LDFLAGS="$save_LDFLAGS"
7597 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7598 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7600 if test x"$lt_prog_compiler_static_works" = xyes; then
7603 lt_prog_compiler_static=
7609 lt_prog_compiler_no_builtin_flag=
7611 if test "$GCC" = yes; then
7612 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7615 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7616 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7617 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7618 echo $ECHO_N "(cached) $ECHO_C" >&6
7620 lt_cv_prog_compiler_rtti_exceptions=no
7621 ac_outfile=conftest.$ac_objext
7622 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7623 lt_compiler_flag="-fno-rtti -fno-exceptions"
7624 # Insert the option either (1) after the last *FLAGS variable, or
7625 # (2) before a word containing "conftest.", or (3) at the end.
7626 # Note that $ac_compile itself does not contain backslashes and begins
7627 # with a dollar sign (not a hyphen), so the echo should work correctly.
7628 # The option is referenced via a variable to avoid confusing sed.
7629 lt_compile=`echo "$ac_compile" | $SED \
7630 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7631 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7632 -e 's:$: $lt_compiler_flag:'`
7633 (eval echo "\"\$as_me:7633: $lt_compile\"" >&5)
7634 (eval "$lt_compile" 2>conftest.err)
7636 cat conftest.err >&5
7637 echo "$as_me:7637: \$? = $ac_status" >&5
7638 if (exit $ac_status) && test -s "$ac_outfile"; then
7639 # The compiler can only warn and ignore the option if not recognized
7640 # So say no if there are warnings other than the usual output.
7641 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7642 $SED '/^$/d' conftest.err >conftest.er2
7643 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7644 lt_cv_prog_compiler_rtti_exceptions=yes
7650 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7651 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7653 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7654 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7661 lt_prog_compiler_wl=
7662 lt_prog_compiler_pic=
7663 lt_prog_compiler_static=
7665 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7666 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7668 if test "$GCC" = yes; then
7669 lt_prog_compiler_wl='-Wl,'
7670 lt_prog_compiler_static='-static'
7674 # All AIX code is PIC.
7675 if test "$host_cpu" = ia64; then
7676 # AIX 5 now supports IA64 processor
7677 lt_prog_compiler_static='-Bstatic'
7682 # FIXME: we need at least 68020 code to build shared libraries, but
7683 # adding the `-m68020' flag to GCC prevents building anything better,
7685 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7688 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7689 # PIC is the default for these OSes.
7692 mingw* | pw32* | os2*)
7693 # This hack is so that the source file can tell whether it is being
7694 # built for inclusion in a dll (and should export symbols for example).
7695 lt_prog_compiler_pic='-DDLL_EXPORT'
7698 darwin* | rhapsody*)
7699 # PIC is the default on this platform
7700 # Common symbols not allowed in MH_DYLIB files
7701 lt_prog_compiler_pic='-fno-common'
7705 # Just because we use GCC doesn't mean we suddenly get shared libraries
7706 # on systems that don't support them.
7707 lt_prog_compiler_can_build_shared=no
7712 if test -d /usr/nec; then
7713 lt_prog_compiler_pic=-Kconform_pic
7718 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7725 lt_prog_compiler_pic='-fPIC'
7731 lt_prog_compiler_pic='-fPIC'
7735 # PORTME Check for flag to pass linker flags through the system compiler.
7738 lt_prog_compiler_wl='-Wl,'
7739 if test "$host_cpu" = ia64; then
7740 # AIX 5 now supports IA64 processor
7741 lt_prog_compiler_static='-Bstatic'
7743 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7747 # PIC is the default on this platform
7748 # Common symbols not allowed in MH_DYLIB files
7749 case $cc_basename in
7751 lt_prog_compiler_pic='-qnocommon'
7752 lt_prog_compiler_wl='-Wl,'
7757 mingw* | pw32* | os2*)
7758 # This hack is so that the source file can tell whether it is being
7759 # built for inclusion in a dll (and should export symbols for example).
7760 lt_prog_compiler_pic='-DDLL_EXPORT'
7763 hpux9* | hpux10* | hpux11*)
7764 lt_prog_compiler_wl='-Wl,'
7765 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7772 lt_prog_compiler_pic='+Z'
7775 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7776 lt_prog_compiler_static='${wl}-a ${wl}archive'
7779 irix5* | irix6* | nonstopux*)
7780 lt_prog_compiler_wl='-Wl,'
7781 # PIC (with -KPIC) is the default.
7782 lt_prog_compiler_static='-non_shared'
7786 lt_prog_compiler_pic='-KPIC'
7787 lt_prog_compiler_static='-Bstatic'
7791 case $cc_basename in
7793 lt_prog_compiler_wl='-Wl,'
7794 lt_prog_compiler_pic='-KPIC'
7795 lt_prog_compiler_static='-static'
7797 pgcc* | pgf77* | pgf90* | pgf95*)
7798 # Portland Group compilers (*not* the Pentium gcc compiler,
7799 # which looks to be a dead project)
7800 lt_prog_compiler_wl='-Wl,'
7801 lt_prog_compiler_pic='-fpic'
7802 lt_prog_compiler_static='-Bstatic'
7805 lt_prog_compiler_wl='-Wl,'
7806 # All Alpha code is PIC.
7807 lt_prog_compiler_static='-non_shared'
7812 osf3* | osf4* | osf5*)
7813 lt_prog_compiler_wl='-Wl,'
7814 # All OSF/1 code is PIC.
7815 lt_prog_compiler_static='-non_shared'
7819 lt_prog_compiler_pic='-Kpic'
7820 lt_prog_compiler_static='-dn'
7824 lt_prog_compiler_pic='-KPIC'
7825 lt_prog_compiler_static='-Bstatic'
7826 case $cc_basename in
7828 lt_prog_compiler_wl='-Qoption ld ';;
7830 lt_prog_compiler_wl='-Wl,';;
7835 lt_prog_compiler_wl='-Qoption ld '
7836 lt_prog_compiler_pic='-PIC'
7837 lt_prog_compiler_static='-Bstatic'
7840 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7841 lt_prog_compiler_wl='-Wl,'
7842 lt_prog_compiler_pic='-KPIC'
7843 lt_prog_compiler_static='-Bstatic'
7847 if test -d /usr/nec ;then
7848 lt_prog_compiler_pic='-Kconform_pic'
7849 lt_prog_compiler_static='-Bstatic'
7854 lt_prog_compiler_wl='-Wl,'
7855 lt_prog_compiler_can_build_shared=no
7859 lt_prog_compiler_pic='-pic'
7860 lt_prog_compiler_static='-Bstatic'
7864 lt_prog_compiler_can_build_shared=no
7869 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7870 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7873 # Check to make sure the PIC flag actually works.
7875 if test -n "$lt_prog_compiler_pic"; then
7877 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7878 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7879 if test "${lt_prog_compiler_pic_works+set}" = set; then
7880 echo $ECHO_N "(cached) $ECHO_C" >&6
7882 lt_prog_compiler_pic_works=no
7883 ac_outfile=conftest.$ac_objext
7884 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7885 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7886 # Insert the option either (1) after the last *FLAGS variable, or
7887 # (2) before a word containing "conftest.", or (3) at the end.
7888 # Note that $ac_compile itself does not contain backslashes and begins
7889 # with a dollar sign (not a hyphen), so the echo should work correctly.
7890 # The option is referenced via a variable to avoid confusing sed.
7891 lt_compile=`echo "$ac_compile" | $SED \
7892 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7893 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7894 -e 's:$: $lt_compiler_flag:'`
7895 (eval echo "\"\$as_me:7895: $lt_compile\"" >&5)
7896 (eval "$lt_compile" 2>conftest.err)
7898 cat conftest.err >&5
7899 echo "$as_me:7899: \$? = $ac_status" >&5
7900 if (exit $ac_status) && test -s "$ac_outfile"; then
7901 # The compiler can only warn and ignore the option if not recognized
7902 # So say no if there are warnings other than the usual output.
7903 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7904 $SED '/^$/d' conftest.err >conftest.er2
7905 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7906 lt_prog_compiler_pic_works=yes
7912 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7913 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7915 if test x"$lt_prog_compiler_pic_works" = xyes; then
7916 case $lt_prog_compiler_pic in
7918 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7921 lt_prog_compiler_pic=
7922 lt_prog_compiler_can_build_shared=no
7927 # For platforms which do not support PIC, -DPIC is meaningless:
7929 lt_prog_compiler_pic=
7932 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7936 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7937 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7938 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7939 echo $ECHO_N "(cached) $ECHO_C" >&6
7941 lt_cv_prog_compiler_c_o=no
7942 $rm -r conftest 2>/dev/null
7946 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7948 lt_compiler_flag="-o out/conftest2.$ac_objext"
7949 # Insert the option either (1) after the last *FLAGS variable, or
7950 # (2) before a word containing "conftest.", or (3) at the end.
7951 # Note that $ac_compile itself does not contain backslashes and begins
7952 # with a dollar sign (not a hyphen), so the echo should work correctly.
7953 lt_compile=`echo "$ac_compile" | $SED \
7954 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7955 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7956 -e 's:$: $lt_compiler_flag:'`
7957 (eval echo "\"\$as_me:7957: $lt_compile\"" >&5)
7958 (eval "$lt_compile" 2>out/conftest.err)
7960 cat out/conftest.err >&5
7961 echo "$as_me:7961: \$? = $ac_status" >&5
7962 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7964 # The compiler can only warn and ignore the option if not recognized
7965 # So say no if there are warnings
7966 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
7967 $SED '/^$/d' out/conftest.err >out/conftest.er2
7968 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7969 lt_cv_prog_compiler_c_o=yes
7974 # SGI C++ compiler will create directory out/ii_files/ for
7975 # template instantiation
7976 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7977 $rm out/* && rmdir out
7983 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7984 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7987 hard_links="nottested"
7988 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7989 # do not overwrite the value of need_locks provided by the user
7990 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7991 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7994 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7996 ln conftest.a conftest.b 2>&5 || hard_links=no
7997 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7998 echo "$as_me:$LINENO: result: $hard_links" >&5
7999 echo "${ECHO_T}$hard_links" >&6
8000 if test "$hard_links" = no; then
8001 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8002 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8009 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8010 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8013 allow_undefined_flag=
8014 enable_shared_with_static_runtimes=no
8016 archive_expsym_cmds=
8017 old_archive_From_new_cmds=
8018 old_archive_from_expsyms_cmds=
8019 export_dynamic_flag_spec=
8020 whole_archive_flag_spec=
8021 thread_safe_flag_spec=
8022 hardcode_libdir_flag_spec=
8023 hardcode_libdir_flag_spec_ld=
8024 hardcode_libdir_separator=
8027 hardcode_shlibpath_var=unsupported
8028 link_all_deplibs=unknown
8029 hardcode_automatic=no
8032 always_export_symbols=no
8033 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8034 # include_expsyms should be a list of space-separated symbols to be *always*
8035 # included in the symbol list
8037 # exclude_expsyms can be an extended regexp of symbols to exclude
8038 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8039 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8040 # as well as any symbol that contains `d'.
8041 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8042 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8043 # platforms (ab)use it in PIC code, but their linkers get confused if
8044 # the symbol is explicitly referenced. Since portable code cannot
8045 # rely on this symbol name, it's probably fine to never include it in
8046 # preloaded symbol tables.
8047 extract_expsyms_cmds=
8048 # Just being paranoid about ensuring that cc_basename is set.
8049 for cc_temp in $compiler""; do
8051 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8052 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8057 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8060 cygwin* | mingw* | pw32*)
8061 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8062 # When not using gcc, we currently assume that we are using
8063 # Microsoft Visual C++.
8064 if test "$GCC" != yes; then
8074 if test "$with_gnu_ld" = yes; then
8075 # If archive_cmds runs LD, not CC, wlarc should be empty
8078 # Set some defaults for GNU ld with shared library support. These
8079 # are reset later if shared libraries are not supported. Putting them
8080 # here allows them to be overridden if necessary.
8081 runpath_var=LD_RUN_PATH
8082 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8083 export_dynamic_flag_spec='${wl}--export-dynamic'
8084 # ancient GNU ld didn't support --whole-archive et. al.
8085 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8086 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8088 whole_archive_flag_spec=
8090 supports_anon_versioning=no
8091 case `$LD -v 2>/dev/null` in
8092 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8093 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8094 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8095 *\ 2.11.*) ;; # other 2.11 versions
8096 *) supports_anon_versioning=yes ;;
8099 # See if GNU ld supports shared libraries.
8101 aix3* | aix4* | aix5*)
8102 # On AIX/PPC, the GNU linker is very broken
8103 if test "$host_cpu" != ia64; then
8107 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8108 *** to be unable to reliably create shared libraries on AIX.
8109 *** Therefore, libtool is disabling shared libraries support. If you
8110 *** really care for shared libraries, you may want to modify your PATH
8111 *** so that a non-GNU linker is found, and then restart.
8118 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)'
8119 hardcode_libdir_flag_spec='-L$libdir'
8120 hardcode_minus_L=yes
8122 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8123 # that the semantics of dynamic libraries on AmigaOS, at least up
8124 # to version 4, is to share data among multiple programs linked
8125 # with the same dynamic library. Since this doesn't match the
8126 # behavior of shared libraries on other platforms, we can't use
8132 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8133 allow_undefined_flag=unsupported
8134 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8135 # support --undefined. This deserves some investigation. FIXME
8136 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8142 cygwin* | mingw* | pw32*)
8143 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8144 # as there is no search path for DLLs.
8145 hardcode_libdir_flag_spec='-L$libdir'
8146 allow_undefined_flag=unsupported
8147 always_export_symbols=no
8148 enable_shared_with_static_runtimes=yes
8149 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8151 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8152 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8153 # If the export-symbols file already is a .def file (1st line
8154 # is EXPORTS), use it as is; otherwise, prepend...
8155 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8156 cp $export_symbols $output_objdir/$soname.def;
8158 echo EXPORTS > $output_objdir/$soname.def;
8159 cat $export_symbols >> $output_objdir/$soname.def;
8161 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8168 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8170 case $cc_basename,$host_cpu in
8171 pgcc*) # Portland Group C compiler
8172 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'
8173 tmp_addflag=' $pic_flag'
8175 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8176 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'
8177 tmp_addflag=' $pic_flag -Mnomain' ;;
8178 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8179 tmp_addflag=' -i_dynamic' ;;
8180 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8181 tmp_addflag=' -i_dynamic -nofor_main' ;;
8182 ifc* | ifort*) # Intel Fortran compiler
8183 tmp_addflag=' -nofor_main' ;;
8185 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8187 if test $supports_anon_versioning = yes; then
8188 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8189 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8190 $echo "local: *; };" >> $output_objdir/$libname.ver~
8191 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8199 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8200 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8203 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8204 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8209 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8213 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8214 *** create shared libraries on Solaris systems. Therefore, libtool
8215 *** is disabling shared libraries support. We urge you to upgrade GNU
8216 *** binutils to release 2.9.1 or newer. Another option is to modify
8217 *** your PATH or compiler configuration so that the native linker is
8218 *** used, and then restart.
8221 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8222 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8223 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8230 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8233 hardcode_shlibpath_var=no
8237 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8238 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8239 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8246 if test "$ld_shlibs" = no; then
8248 hardcode_libdir_flag_spec=
8249 export_dynamic_flag_spec=
8250 whole_archive_flag_spec=
8253 # PORTME fill in a description of your system's linker (not GNU ld)
8256 allow_undefined_flag=unsupported
8257 always_export_symbols=yes
8258 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'
8259 # Note: this linker hardcodes the directories in LIBPATH if there
8260 # are no directories specified by -L.
8261 hardcode_minus_L=yes
8262 if test "$GCC" = yes && test -z "$link_static_flag"; then
8263 # Neither direct hardcoding nor static linking is supported with a
8265 hardcode_direct=unsupported
8270 if test "$host_cpu" = ia64; then
8271 # On IA64, the linker does run time linking by default, so we don't
8272 # have to do anything special.
8273 aix_use_runtimelinking=no
8274 exp_sym_flag='-Bexport'
8277 # If we're using GNU nm, then we don't want the "-C" option.
8278 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8279 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8280 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'
8282 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'
8284 aix_use_runtimelinking=no
8286 # Test if we are trying to use run time linking or normal
8287 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8288 # need to do runtime linking.
8289 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8290 for ld_flag in $LDFLAGS; do
8291 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8292 aix_use_runtimelinking=yes
8298 exp_sym_flag='-bexport'
8299 no_entry_flag='-bnoentry'
8302 # When large executables or shared objects are built, AIX ld can
8303 # have problems creating the table of contents. If linking a library
8304 # or program results in "error TOC overflow" add -mminimal-toc to
8305 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8306 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8310 hardcode_libdir_separator=':'
8311 link_all_deplibs=yes
8313 if test "$GCC" = yes; then
8314 case $host_os in aix4.[012]|aix4.[012].*)
8315 # We only want to do this on AIX 4.2 and lower, the check
8316 # below for broken collect2 doesn't work under 4.3+
8317 collect2name=`${CC} -print-prog-name=collect2`
8318 if test -f "$collect2name" && \
8319 strings "$collect2name" | grep resolve_lib_name >/dev/null
8321 # We have reworked collect2
8324 # We have old collect2
8325 hardcode_direct=unsupported
8326 # It fails to find uninstalled libraries when the uninstalled
8327 # path is not listed in the libpath. Setting hardcode_minus_L
8328 # to unsupported forces relinking
8329 hardcode_minus_L=yes
8330 hardcode_libdir_flag_spec='-L$libdir'
8331 hardcode_libdir_separator=
8334 shared_flag='-shared'
8335 if test "$aix_use_runtimelinking" = yes; then
8336 shared_flag="$shared_flag "'${wl}-G'
8340 if test "$host_cpu" = ia64; then
8341 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8342 # chokes on -Wl,-G. The following line is correct:
8345 if test "$aix_use_runtimelinking" = yes; then
8346 shared_flag='${wl}-G'
8348 shared_flag='${wl}-bM:SRE'
8353 # It seems that -bexpall does not export symbols beginning with
8354 # underscore (_), so it is better to generate a list of symbols to export.
8355 always_export_symbols=yes
8356 if test "$aix_use_runtimelinking" = yes; then
8357 # Warning - without using the other runtime loading flags (-brtl),
8358 # -berok will link without error, but may produce a broken library.
8359 allow_undefined_flag='-berok'
8360 # Determine the default libpath from the value encoded in an empty executable.
8361 cat >conftest.$ac_ext <<_ACEOF
8364 cat confdefs.h >>conftest.$ac_ext
8365 cat >>conftest.$ac_ext <<_ACEOF
8366 /* end confdefs.h. */
8376 rm -f conftest.$ac_objext conftest$ac_exeext
8377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8378 (eval $ac_link) 2>conftest.er1
8380 grep -v '^ *+' conftest.er1 >conftest.err
8382 cat conftest.err >&5
8383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 (exit $ac_status); } &&
8385 { ac_try='test -z "$ac_c_werror_flag"
8386 || test ! -s conftest.err'
8387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 (exit $ac_status); }; } &&
8392 { ac_try='test -s conftest$ac_exeext'
8393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 (exit $ac_status); }; }; then
8399 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8401 # Check for a 64-bit object if we didn't find anything.
8402 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; }
8405 echo "$as_me: failed program was:" >&5
8406 sed 's/^/| /' conftest.$ac_ext >&5
8409 rm -f conftest.err conftest.$ac_objext \
8410 conftest$ac_exeext conftest.$ac_ext
8411 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8413 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8414 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"
8416 if test "$host_cpu" = ia64; then
8417 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8418 allow_undefined_flag="-z nodefs"
8419 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"
8421 # Determine the default libpath from the value encoded in an empty executable.
8422 cat >conftest.$ac_ext <<_ACEOF
8425 cat confdefs.h >>conftest.$ac_ext
8426 cat >>conftest.$ac_ext <<_ACEOF
8427 /* end confdefs.h. */
8437 rm -f conftest.$ac_objext conftest$ac_exeext
8438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8439 (eval $ac_link) 2>conftest.er1
8441 grep -v '^ *+' conftest.er1 >conftest.err
8443 cat conftest.err >&5
8444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445 (exit $ac_status); } &&
8446 { ac_try='test -z "$ac_c_werror_flag"
8447 || test ! -s conftest.err'
8448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); }; } &&
8453 { ac_try='test -s conftest$ac_exeext'
8454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458 (exit $ac_status); }; }; then
8460 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8462 # Check for a 64-bit object if we didn't find anything.
8463 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; }
8466 echo "$as_me: failed program was:" >&5
8467 sed 's/^/| /' conftest.$ac_ext >&5
8470 rm -f conftest.err conftest.$ac_objext \
8471 conftest$ac_exeext conftest.$ac_ext
8472 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8474 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8475 # Warning - without using the other run time loading flags,
8476 # -berok will link without error, but may produce a broken library.
8477 no_undefined_flag=' ${wl}-bernotok'
8478 allow_undefined_flag=' ${wl}-berok'
8479 # -bexpall does not export symbols beginning with underscore (_)
8480 always_export_symbols=yes
8481 # Exported symbols can be pulled into shared objects from archives
8482 whole_archive_flag_spec=' '
8483 archive_cmds_need_lc=yes
8484 # This is similar to how AIX traditionally builds its shared libraries.
8485 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'
8491 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)'
8492 hardcode_libdir_flag_spec='-L$libdir'
8493 hardcode_minus_L=yes
8494 # see comment about different semantics on the GNU ld section
8499 export_dynamic_flag_spec=-rdynamic
8502 cygwin* | mingw* | pw32*)
8503 # When not using gcc, we currently assume that we are using
8504 # Microsoft Visual C++.
8505 # hardcode_libdir_flag_spec is actually meaningless, as there is
8506 # no search path for DLLs.
8507 hardcode_libdir_flag_spec=' '
8508 allow_undefined_flag=unsupported
8509 # Tell ltmain to make .lib files, not .a files.
8511 # Tell ltmain to make .dll files, not .so files.
8513 # FIXME: Setting linknames here is a bad hack.
8514 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8515 # The linker will automatically build a .lib file if we build a DLL.
8516 old_archive_From_new_cmds='true'
8517 # FIXME: Should let the user specify the lib program.
8518 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8519 fix_srcfile_path='`cygpath -w "$srcfile"`'
8520 enable_shared_with_static_runtimes=yes
8523 darwin* | rhapsody*)
8525 rhapsody* | darwin1.[012])
8526 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8529 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8530 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8532 case ${MACOSX_DEPLOYMENT_TARGET} in
8534 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8537 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8543 archive_cmds_need_lc=no
8545 hardcode_automatic=yes
8546 hardcode_shlibpath_var=unsupported
8547 whole_archive_flag_spec=''
8548 link_all_deplibs=yes
8549 if test "$GCC" = yes ; then
8550 output_verbose_link_cmd='echo'
8551 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8552 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8553 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8554 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}'
8555 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}'
8557 case $cc_basename in
8559 output_verbose_link_cmd='echo'
8560 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8561 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8562 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8563 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}'
8564 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}'
8574 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8575 hardcode_libdir_flag_spec='-L$libdir'
8576 hardcode_shlibpath_var=no
8583 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8584 # support. Future versions do this automatically, but an explicit c++rt0.o
8585 # does not break anything, and helps significantly (at the cost of a little
8588 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8589 hardcode_libdir_flag_spec='-R$libdir'
8591 hardcode_shlibpath_var=no
8594 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8596 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8598 hardcode_minus_L=yes
8599 hardcode_shlibpath_var=no
8602 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8603 freebsd* | kfreebsd*-gnu | dragonfly*)
8604 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8605 hardcode_libdir_flag_spec='-R$libdir'
8607 hardcode_shlibpath_var=no
8611 if test "$GCC" = yes; then
8612 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'
8614 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'
8616 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8617 hardcode_libdir_separator=:
8620 # hardcode_minus_L: Not really in the search PATH,
8621 # but as the default location of the library.
8622 hardcode_minus_L=yes
8623 export_dynamic_flag_spec='${wl}-E'
8627 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8630 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8633 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8639 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8642 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8646 if test "$with_gnu_ld" = no; then
8649 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8650 hardcode_libdir_flag_spec_ld='+b $libdir'
8651 hardcode_libdir_separator=:
8653 hardcode_shlibpath_var=no
8656 hardcode_libdir_flag_spec='-L$libdir'
8658 hardcode_shlibpath_var=no
8660 # hardcode_minus_L: Not really in the search PATH,
8661 # but as the default location of the library.
8662 hardcode_minus_L=yes
8665 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8666 hardcode_libdir_separator=:
8668 export_dynamic_flag_spec='${wl}-E'
8670 # hardcode_minus_L: Not really in the search PATH,
8671 # but as the default location of the library.
8672 hardcode_minus_L=yes
8678 irix5* | irix6* | nonstopux*)
8679 if test "$GCC" = yes; then
8680 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'
8682 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'
8683 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8685 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8686 hardcode_libdir_separator=:
8687 link_all_deplibs=yes
8691 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8692 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8694 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8696 hardcode_libdir_flag_spec='-R$libdir'
8698 hardcode_shlibpath_var=no
8702 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8704 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8705 hardcode_libdir_separator=:
8706 hardcode_shlibpath_var=no
8711 hardcode_shlibpath_var=no
8712 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8713 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8714 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8715 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8716 export_dynamic_flag_spec='${wl}-E'
8719 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8720 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8721 hardcode_libdir_flag_spec='-R$libdir'
8724 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8725 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8732 hardcode_libdir_flag_spec='-L$libdir'
8733 hardcode_minus_L=yes
8734 allow_undefined_flag=unsupported
8735 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'
8736 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8740 if test "$GCC" = yes; then
8741 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8742 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'
8744 allow_undefined_flag=' -expect_unresolved \*'
8745 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'
8747 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8748 hardcode_libdir_separator=:
8751 osf4* | osf5*) # as osf3* with the addition of -msym flag
8752 if test "$GCC" = yes; then
8753 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8754 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'
8755 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8757 allow_undefined_flag=' -expect_unresolved \*'
8758 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'
8759 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8760 $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'
8762 # Both c and cxx compiler support -rpath directly
8763 hardcode_libdir_flag_spec='-rpath $libdir'
8765 hardcode_libdir_separator=:
8769 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8770 hardcode_shlibpath_var=no
8771 export_dynamic_flag_spec='${wl}-Bexport'
8772 runpath_var=LD_RUN_PATH
8773 hardcode_runpath_var=yes
8777 no_undefined_flag=' -z text'
8778 if test "$GCC" = yes; then
8780 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8781 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8782 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8785 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8786 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8787 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8789 hardcode_libdir_flag_spec='-R$libdir'
8790 hardcode_shlibpath_var=no
8792 solaris2.[0-5] | solaris2.[0-5].*) ;;
8794 # The compiler driver will combine linker options so we
8795 # cannot just pass the convience library names through
8796 # without $wl, iff we do not link with $LD.
8797 # Luckily, gcc supports the same syntax we need for Sun Studio.
8798 # Supported since Solaris 2.6 (maybe 2.5.1?)
8801 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8803 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' ;;
8806 link_all_deplibs=yes
8810 if test "x$host_vendor" = xsequent; then
8811 # Use $CC to link under sequent, because it throws in some extra .o
8812 # files that make .init and .fini sections work.
8813 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8815 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8817 hardcode_libdir_flag_spec='-L$libdir'
8819 hardcode_minus_L=yes
8820 hardcode_shlibpath_var=no
8824 case $host_vendor in
8826 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8827 hardcode_direct=yes # is this really true???
8830 ## LD is ld it makes a PLAMLIB
8831 ## CC just makes a GrossModule.
8832 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8833 reload_cmds='$CC -r -o $output$reload_objs'
8837 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8838 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8841 runpath_var='LD_RUN_PATH'
8842 hardcode_shlibpath_var=no
8846 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8847 hardcode_shlibpath_var=no
8848 export_dynamic_flag_spec='-Bexport'
8852 if test -d /usr/nec; then
8853 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8854 hardcode_shlibpath_var=no
8855 runpath_var=LD_RUN_PATH
8856 hardcode_runpath_var=yes
8862 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8865 hardcode_shlibpath_var=no
8866 hardcode_runpath_var=yes
8867 runpath_var=LD_RUN_PATH
8870 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8871 no_undefined_flag='${wl}-z ${wl}text'
8872 if test "$GCC" = yes; then
8873 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8875 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8877 runpath_var='LD_RUN_PATH'
8878 hardcode_shlibpath_var=no
8882 no_undefined_flag=' -z text'
8883 # $CC -shared without GNU ld will not create a library from C++
8884 # object files and a static libstdc++, better avoid it by now
8885 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8886 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8887 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8888 hardcode_libdir_flag_spec=
8889 hardcode_shlibpath_var=no
8890 runpath_var='LD_RUN_PATH'
8894 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8895 hardcode_libdir_flag_spec='-L$libdir'
8896 hardcode_shlibpath_var=no
8905 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8906 echo "${ECHO_T}$ld_shlibs" >&6
8907 test "$ld_shlibs" = no && can_build_shared=no
8909 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8910 if test "$GCC" = yes; then
8911 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8915 # Do we need to explicitly link libc?
8917 case "x$archive_cmds_need_lc" in
8919 # Assume -lc should be added
8920 archive_cmds_need_lc=yes
8922 if test "$enable_shared" = yes && test "$GCC" = yes; then
8923 case $archive_cmds in
8925 # FIXME: we may have to deal with multi-command sequences.
8928 # Test whether the compiler implicitly links with -lc since on some
8929 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8930 # to ld, don't add -lc before -lgcc.
8931 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8932 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8934 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8937 (eval $ac_compile) 2>&5
8939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940 (exit $ac_status); } 2>conftest.err; then
8943 libobjs=conftest.$ac_objext
8945 wl=$lt_prog_compiler_wl
8951 lt_save_allow_undefined_flag=$allow_undefined_flag
8952 allow_undefined_flag=
8953 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8954 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957 (exit $ac_status); }
8959 archive_cmds_need_lc=no
8961 archive_cmds_need_lc=yes
8963 allow_undefined_flag=$lt_save_allow_undefined_flag
8965 cat conftest.err 1>&5
8968 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8969 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8976 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8977 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8979 libname_spec='lib$name'
8987 shlibpath_overrides_runpath=unknown
8989 dynamic_linker="$host_os ld.so"
8990 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8991 if test "$GCC" = yes; then
8992 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8993 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8994 # if the path contains ";" then we assume it to be the separator
8995 # otherwise default to the standard path separator (i.e. ":") - it is
8996 # assumed that no part of a normal pathname contains ";" but that should
8997 # okay in the real world where ";" in dirpaths is itself problematic.
8998 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9000 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9003 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9005 need_lib_prefix=unknown
9006 hardcode_into_libs=no
9008 # when you set need_version to no, make sure it does not cause -set_version
9009 # flags to be left without arguments
9010 need_version=unknown
9015 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9016 shlibpath_var=LIBPATH
9018 # AIX 3 has no versioning support, so we append a major version to the name.
9019 soname_spec='${libname}${release}${shared_ext}$major'
9026 hardcode_into_libs=yes
9027 if test "$host_cpu" = ia64; then
9028 # AIX 5 supports IA64
9029 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9030 shlibpath_var=LD_LIBRARY_PATH
9032 # With GCC up to 2.95.x, collect2 would create an import file
9033 # for dependence libraries. The import file would start with
9034 # the line `#! .'. This would cause the generated library to
9035 # depend on `.', always an invalid library. This was fixed in
9036 # development snapshots of GCC prior to 3.0.
9038 aix4 | aix4.[01] | aix4.[01].*)
9039 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9041 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9048 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9049 # soname into executable. Probably we can add versioning support to
9050 # collect2, so additional links can be useful in future.
9051 if test "$aix_use_runtimelinking" = yes; then
9052 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9053 # instead of lib<name>.a to let people know that these are not
9054 # typical AIX shared libraries.
9055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9057 # We preserve .a as extension for shared libraries through AIX4.2
9058 # and later when we are not doing run time linking.
9059 library_names_spec='${libname}${release}.a $libname.a'
9060 soname_spec='${libname}${release}${shared_ext}$major'
9062 shlibpath_var=LIBPATH
9067 library_names_spec='$libname.ixlibrary $libname.a'
9068 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9069 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'
9073 library_names_spec='${libname}${shared_ext}'
9074 dynamic_linker="$host_os ld.so"
9075 shlibpath_var=LIBRARY_PATH
9081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9082 soname_spec='${libname}${release}${shared_ext}$major'
9083 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9084 shlibpath_var=LD_LIBRARY_PATH
9085 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9086 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9087 # the default ld.so.conf also contains /usr/contrib/lib and
9088 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9089 # libtool to hard-code these into programs
9092 cygwin* | mingw* | pw32*)
9093 version_type=windows
9098 case $GCC,$host_os in
9099 yes,cygwin* | yes,mingw* | yes,pw32*)
9100 library_names_spec='$libname.dll.a'
9101 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9102 postinstall_cmds='base_file=`basename \${file}`~
9103 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9104 dldir=$destdir/`dirname \$dlpath`~
9105 test -d \$dldir || mkdir -p \$dldir~
9106 $install_prog $dir/$dlname \$dldir/$dlname~
9107 chmod a+x \$dldir/$dlname'
9108 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9109 dlpath=$dir/\$dldll~
9111 shlibpath_overrides_runpath=yes
9115 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9116 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9117 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9120 # MinGW DLLs use traditional 'lib' prefix
9121 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9122 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9123 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9124 # It is most probably a Windows format PATH printed by
9125 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9126 # path with ; separators, and with drive letters. We can handle the
9127 # drive letters (cygwin fileutils understands them), so leave them,
9128 # especially as we might pass files found there to a mingw objdump,
9129 # which wouldn't understand a cygwinified path. Ahh.
9130 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9132 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9136 # pw32 DLLs use 'pw' prefix rather than 'lib'
9137 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9143 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9146 dynamic_linker='Win32 ld.exe'
9147 # FIXME: first we should search . and the directory the executable is in
9151 darwin* | rhapsody*)
9152 dynamic_linker="$host_os dyld"
9156 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9157 soname_spec='${libname}${release}${major}$shared_ext'
9158 shlibpath_overrides_runpath=yes
9159 shlibpath_var=DYLD_LIBRARY_PATH
9160 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9161 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9162 if test "$GCC" = yes; then
9163 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"`
9165 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9167 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9175 soname_spec='${libname}${release}${shared_ext}$major'
9176 shlibpath_var=LD_LIBRARY_PATH
9187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9188 soname_spec='${libname}${release}${shared_ext}$major'
9189 shlibpath_var=LD_LIBRARY_PATH
9190 shlibpath_overrides_runpath=no
9191 hardcode_into_libs=yes
9192 dynamic_linker='GNU ld.so'
9195 freebsd* | dragonfly*)
9196 # DragonFly does not have aout. When/if they implement a new
9197 # versioning mechanism, adjust this.
9198 if test -x /usr/bin/objformat; then
9199 objformat=`/usr/bin/objformat`
9202 freebsd[123]*) objformat=aout ;;
9206 version_type=freebsd-$objformat
9207 case $version_type in
9209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9214 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9218 shlibpath_var=LD_LIBRARY_PATH
9221 shlibpath_overrides_runpath=yes
9223 freebsd3.[01]* | freebsdelf3.[01]*)
9224 shlibpath_overrides_runpath=yes
9225 hardcode_into_libs=yes
9228 shlibpath_overrides_runpath=no
9229 hardcode_into_libs=yes
9238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9239 soname_spec='${libname}${release}${shared_ext}$major'
9240 shlibpath_var=LD_LIBRARY_PATH
9241 hardcode_into_libs=yes
9244 hpux9* | hpux10* | hpux11*)
9245 # Give a soname corresponding to the major version so that dld.sl refuses to
9246 # link against other versions.
9253 hardcode_into_libs=yes
9254 dynamic_linker="$host_os dld.so"
9255 shlibpath_var=LD_LIBRARY_PATH
9256 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9258 soname_spec='${libname}${release}${shared_ext}$major'
9259 if test "X$HPUX_IA64_MODE" = X32; then
9260 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9262 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9264 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9268 hardcode_into_libs=yes
9269 dynamic_linker="$host_os dld.sl"
9270 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9271 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9273 soname_spec='${libname}${release}${shared_ext}$major'
9274 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9275 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9279 dynamic_linker="$host_os dld.sl"
9280 shlibpath_var=SHLIB_PATH
9281 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9283 soname_spec='${libname}${release}${shared_ext}$major'
9286 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9287 postinstall_cmds='chmod 555 $lib'
9290 irix5* | irix6* | nonstopux*)
9292 nonstopux*) version_type=nonstopux ;;
9294 if test "$lt_cv_prog_gnu_ld" = yes; then
9302 soname_spec='${libname}${release}${shared_ext}$major'
9303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9305 irix5* | nonstopux*)
9309 case $LD in # libtool.m4 will add one of these switches to LD
9310 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9311 libsuff= shlibsuff= libmagic=32-bit;;
9312 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9313 libsuff=32 shlibsuff=N32 libmagic=N32;;
9314 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9315 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9316 *) libsuff= shlibsuff= libmagic=never-match;;
9320 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9321 shlibpath_overrides_runpath=no
9322 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9323 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9324 hardcode_into_libs=yes
9327 # No shared lib support for Linux oldld, aout, or coff.
9328 linux*oldld* | linux*aout* | linux*coff*)
9332 # This must be Linux ELF.
9337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9338 soname_spec='${libname}${release}${shared_ext}$major'
9339 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9340 shlibpath_var=LD_LIBRARY_PATH
9341 shlibpath_overrides_runpath=no
9342 # This implies no fast_install, which is unacceptable.
9343 # Some rework will be needed to allow for fast_install
9344 # before this can be enabled.
9345 hardcode_into_libs=yes
9347 # Append ld.so.conf contents to the search path
9348 if test -f /etc/ld.so.conf; then
9349 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' ' '`
9350 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9353 # We used to test for /lib/ld.so.1 and disable shared libraries on
9354 # powerpc, because MkLinux only supported shared libraries with the
9355 # GNU dynamic linker. Since this was broken with cross compilers,
9356 # most powerpc-linux boxes support dynamic linking these days and
9357 # people can always --disable-shared, the test was removed, and we
9358 # assume the GNU/Linux dynamic linker is in use.
9359 dynamic_linker='GNU/Linux ld.so'
9366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9367 soname_spec='${libname}${release}${shared_ext}$major'
9368 shlibpath_var=LD_LIBRARY_PATH
9369 shlibpath_overrides_runpath=no
9370 hardcode_into_libs=yes
9371 dynamic_linker='GNU ld.so'
9378 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9380 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9381 dynamic_linker='NetBSD (a.out) ld.so'
9383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9384 soname_spec='${libname}${release}${shared_ext}$major'
9385 dynamic_linker='NetBSD ld.elf_so'
9387 shlibpath_var=LD_LIBRARY_PATH
9388 shlibpath_overrides_runpath=yes
9389 hardcode_into_libs=yes
9394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9395 shlibpath_var=LD_LIBRARY_PATH
9396 shlibpath_overrides_runpath=yes
9403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9404 soname_spec='${libname}${release}${shared_ext}$major'
9405 shlibpath_var=LD_LIBRARY_PATH
9406 shlibpath_overrides_runpath=yes
9412 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9414 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9415 *) need_version=no ;;
9417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9418 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9419 shlibpath_var=LD_LIBRARY_PATH
9420 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9422 openbsd2.[89] | openbsd2.[89].*)
9423 shlibpath_overrides_runpath=no
9426 shlibpath_overrides_runpath=yes
9430 shlibpath_overrides_runpath=yes
9435 libname_spec='$name'
9438 library_names_spec='$libname${shared_ext} $libname.a'
9439 dynamic_linker='OS/2 ld.exe'
9440 shlibpath_var=LIBPATH
9443 osf3* | osf4* | osf5*)
9447 soname_spec='${libname}${release}${shared_ext}$major'
9448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9449 shlibpath_var=LD_LIBRARY_PATH
9450 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9451 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9456 soname_spec='${libname}${release}${shared_ext}$major'
9457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9458 shlibpath_var=LD_LIBRARY_PATH
9465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9466 soname_spec='${libname}${release}${shared_ext}$major'
9467 shlibpath_var=LD_LIBRARY_PATH
9468 shlibpath_overrides_runpath=yes
9469 hardcode_into_libs=yes
9470 # ldd complains unless libraries are executable
9471 postinstall_cmds='chmod +x $lib'
9476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9477 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9478 shlibpath_var=LD_LIBRARY_PATH
9479 shlibpath_overrides_runpath=yes
9480 if test "$with_gnu_ld" = yes; then
9486 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9489 soname_spec='${libname}${release}${shared_ext}$major'
9490 shlibpath_var=LD_LIBRARY_PATH
9491 case $host_vendor in
9493 shlibpath_overrides_runpath=no
9495 export_dynamic_flag_spec='${wl}-Blargedynsym'
9496 runpath_var=LD_RUN_PATH
9504 shlibpath_overrides_runpath=no
9505 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9511 if test -d /usr/nec ;then
9513 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9514 soname_spec='$libname${shared_ext}.$major'
9515 shlibpath_var=LD_LIBRARY_PATH
9521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9522 soname_spec='${libname}${release}${shared_ext}$major'
9523 shlibpath_var=LD_LIBRARY_PATH
9530 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9531 echo "${ECHO_T}$dynamic_linker" >&6
9532 test "$dynamic_linker" = no && can_build_shared=no
9534 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9535 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9537 if test -n "$hardcode_libdir_flag_spec" || \
9538 test -n "$runpath_var" || \
9539 test "X$hardcode_automatic" = "Xyes" ; then
9541 # We can hardcode non-existant directories.
9542 if test "$hardcode_direct" != no &&
9543 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9544 # have to relink, otherwise we might link with an installed library
9545 # when we should be linking with a yet-to-be-installed one
9546 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9547 test "$hardcode_minus_L" != no; then
9548 # Linking always hardcodes the temporary library directory.
9549 hardcode_action=relink
9551 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9552 hardcode_action=immediate
9555 # We cannot hardcode anything, or else we can only hardcode existing
9557 hardcode_action=unsupported
9559 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9560 echo "${ECHO_T}$hardcode_action" >&6
9562 if test "$hardcode_action" = relink; then
9563 # Fast installation is not supported
9564 enable_fast_install=no
9565 elif test "$shlibpath_overrides_runpath" = yes ||
9566 test "$enable_shared" = no; then
9567 # Fast installation is not necessary
9568 enable_fast_install=needless
9573 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9574 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9575 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9576 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9577 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9578 echo "$as_me:$LINENO: result: yes" >&5
9579 echo "${ECHO_T}yes" >&6
9581 # FIXME - insert some real tests, host_os isn't really good enough
9584 if test -n "$STRIP" ; then
9585 striplib="$STRIP -x"
9586 echo "$as_me:$LINENO: result: yes" >&5
9587 echo "${ECHO_T}yes" >&6
9589 echo "$as_me:$LINENO: result: no" >&5
9590 echo "${ECHO_T}no" >&6
9594 echo "$as_me:$LINENO: result: no" >&5
9595 echo "${ECHO_T}no" >&6
9600 if test "x$enable_dlopen" != xyes; then
9601 enable_dlopen=unknown
9602 enable_dlopen_self=unknown
9603 enable_dlopen_self_static=unknown
9610 lt_cv_dlopen="load_add_on"
9612 lt_cv_dlopen_self=yes
9616 lt_cv_dlopen="LoadLibrary"
9621 lt_cv_dlopen="dlopen"
9626 # if libdl is installed we need to link against it
9627 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9628 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9629 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9630 echo $ECHO_N "(cached) $ECHO_C" >&6
9632 ac_check_lib_save_LIBS=$LIBS
9634 cat >conftest.$ac_ext <<_ACEOF
9637 cat confdefs.h >>conftest.$ac_ext
9638 cat >>conftest.$ac_ext <<_ACEOF
9639 /* end confdefs.h. */
9641 /* Override any gcc2 internal prototype to avoid an error. */
9645 /* We use char because int might match the return type of a gcc2
9646 builtin and then its argument prototype would still apply. */
9656 rm -f conftest.$ac_objext conftest$ac_exeext
9657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9658 (eval $ac_link) 2>conftest.er1
9660 grep -v '^ *+' conftest.er1 >conftest.err
9662 cat conftest.err >&5
9663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664 (exit $ac_status); } &&
9665 { ac_try='test -z "$ac_c_werror_flag"
9666 || test ! -s conftest.err'
9667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671 (exit $ac_status); }; } &&
9672 { ac_try='test -s conftest$ac_exeext'
9673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677 (exit $ac_status); }; }; then
9678 ac_cv_lib_dl_dlopen=yes
9680 echo "$as_me: failed program was:" >&5
9681 sed 's/^/| /' conftest.$ac_ext >&5
9683 ac_cv_lib_dl_dlopen=no
9685 rm -f conftest.err conftest.$ac_objext \
9686 conftest$ac_exeext conftest.$ac_ext
9687 LIBS=$ac_check_lib_save_LIBS
9689 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9690 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9691 if test $ac_cv_lib_dl_dlopen = yes; then
9692 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9697 lt_cv_dlopen_self=yes
9704 echo "$as_me:$LINENO: checking for shl_load" >&5
9705 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9706 if test "${ac_cv_func_shl_load+set}" = set; then
9707 echo $ECHO_N "(cached) $ECHO_C" >&6
9709 cat >conftest.$ac_ext <<_ACEOF
9712 cat confdefs.h >>conftest.$ac_ext
9713 cat >>conftest.$ac_ext <<_ACEOF
9714 /* end confdefs.h. */
9715 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9717 #define shl_load innocuous_shl_load
9719 /* System header to define __stub macros and hopefully few prototypes,
9720 which can conflict with char shl_load (); below.
9721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9722 <limits.h> exists even on freestanding compilers. */
9725 # include <limits.h>
9727 # include <assert.h>
9732 /* Override any gcc2 internal prototype to avoid an error. */
9737 /* We use char because int might match the return type of a gcc2
9738 builtin and then its argument prototype would still apply. */
9740 /* The GNU C library defines this for functions which it implements
9741 to always fail with ENOSYS. Some functions are actually named
9742 something starting with __ and the normal name is an alias. */
9743 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9746 char (*f) () = shl_load;
9755 return f != shl_load;
9760 rm -f conftest.$ac_objext conftest$ac_exeext
9761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9762 (eval $ac_link) 2>conftest.er1
9764 grep -v '^ *+' conftest.er1 >conftest.err
9766 cat conftest.err >&5
9767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768 (exit $ac_status); } &&
9769 { ac_try='test -z "$ac_c_werror_flag"
9770 || test ! -s conftest.err'
9771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); }; } &&
9776 { ac_try='test -s conftest$ac_exeext'
9777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); }; }; then
9782 ac_cv_func_shl_load=yes
9784 echo "$as_me: failed program was:" >&5
9785 sed 's/^/| /' conftest.$ac_ext >&5
9787 ac_cv_func_shl_load=no
9789 rm -f conftest.err conftest.$ac_objext \
9790 conftest$ac_exeext conftest.$ac_ext
9792 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9793 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9794 if test $ac_cv_func_shl_load = yes; then
9795 lt_cv_dlopen="shl_load"
9797 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9798 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9799 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9800 echo $ECHO_N "(cached) $ECHO_C" >&6
9802 ac_check_lib_save_LIBS=$LIBS
9804 cat >conftest.$ac_ext <<_ACEOF
9807 cat confdefs.h >>conftest.$ac_ext
9808 cat >>conftest.$ac_ext <<_ACEOF
9809 /* end confdefs.h. */
9811 /* Override any gcc2 internal prototype to avoid an error. */
9815 /* We use char because int might match the return type of a gcc2
9816 builtin and then its argument prototype would still apply. */
9826 rm -f conftest.$ac_objext conftest$ac_exeext
9827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9828 (eval $ac_link) 2>conftest.er1
9830 grep -v '^ *+' conftest.er1 >conftest.err
9832 cat conftest.err >&5
9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834 (exit $ac_status); } &&
9835 { ac_try='test -z "$ac_c_werror_flag"
9836 || test ! -s conftest.err'
9837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841 (exit $ac_status); }; } &&
9842 { ac_try='test -s conftest$ac_exeext'
9843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847 (exit $ac_status); }; }; then
9848 ac_cv_lib_dld_shl_load=yes
9850 echo "$as_me: failed program was:" >&5
9851 sed 's/^/| /' conftest.$ac_ext >&5
9853 ac_cv_lib_dld_shl_load=no
9855 rm -f conftest.err conftest.$ac_objext \
9856 conftest$ac_exeext conftest.$ac_ext
9857 LIBS=$ac_check_lib_save_LIBS
9859 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9860 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9861 if test $ac_cv_lib_dld_shl_load = yes; then
9862 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9864 echo "$as_me:$LINENO: checking for dlopen" >&5
9865 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9866 if test "${ac_cv_func_dlopen+set}" = set; then
9867 echo $ECHO_N "(cached) $ECHO_C" >&6
9869 cat >conftest.$ac_ext <<_ACEOF
9872 cat confdefs.h >>conftest.$ac_ext
9873 cat >>conftest.$ac_ext <<_ACEOF
9874 /* end confdefs.h. */
9875 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9877 #define dlopen innocuous_dlopen
9879 /* System header to define __stub macros and hopefully few prototypes,
9880 which can conflict with char dlopen (); below.
9881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9882 <limits.h> exists even on freestanding compilers. */
9885 # include <limits.h>
9887 # include <assert.h>
9892 /* Override any gcc2 internal prototype to avoid an error. */
9897 /* We use char because int might match the return type of a gcc2
9898 builtin and then its argument prototype would still apply. */
9900 /* The GNU C library defines this for functions which it implements
9901 to always fail with ENOSYS. Some functions are actually named
9902 something starting with __ and the normal name is an alias. */
9903 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9906 char (*f) () = dlopen;
9920 rm -f conftest.$ac_objext conftest$ac_exeext
9921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9922 (eval $ac_link) 2>conftest.er1
9924 grep -v '^ *+' conftest.er1 >conftest.err
9926 cat conftest.err >&5
9927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928 (exit $ac_status); } &&
9929 { ac_try='test -z "$ac_c_werror_flag"
9930 || test ! -s conftest.err'
9931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935 (exit $ac_status); }; } &&
9936 { ac_try='test -s conftest$ac_exeext'
9937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941 (exit $ac_status); }; }; then
9942 ac_cv_func_dlopen=yes
9944 echo "$as_me: failed program was:" >&5
9945 sed 's/^/| /' conftest.$ac_ext >&5
9947 ac_cv_func_dlopen=no
9949 rm -f conftest.err conftest.$ac_objext \
9950 conftest$ac_exeext conftest.$ac_ext
9952 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9953 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9954 if test $ac_cv_func_dlopen = yes; then
9955 lt_cv_dlopen="dlopen"
9957 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9958 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9959 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9960 echo $ECHO_N "(cached) $ECHO_C" >&6
9962 ac_check_lib_save_LIBS=$LIBS
9964 cat >conftest.$ac_ext <<_ACEOF
9967 cat confdefs.h >>conftest.$ac_ext
9968 cat >>conftest.$ac_ext <<_ACEOF
9969 /* end confdefs.h. */
9971 /* Override any gcc2 internal prototype to avoid an error. */
9975 /* We use char because int might match the return type of a gcc2
9976 builtin and then its argument prototype would still apply. */
9986 rm -f conftest.$ac_objext conftest$ac_exeext
9987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9988 (eval $ac_link) 2>conftest.er1
9990 grep -v '^ *+' conftest.er1 >conftest.err
9992 cat conftest.err >&5
9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994 (exit $ac_status); } &&
9995 { ac_try='test -z "$ac_c_werror_flag"
9996 || test ! -s conftest.err'
9997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001 (exit $ac_status); }; } &&
10002 { ac_try='test -s conftest$ac_exeext'
10003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10004 (eval $ac_try) 2>&5
10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007 (exit $ac_status); }; }; then
10008 ac_cv_lib_dl_dlopen=yes
10010 echo "$as_me: failed program was:" >&5
10011 sed 's/^/| /' conftest.$ac_ext >&5
10013 ac_cv_lib_dl_dlopen=no
10015 rm -f conftest.err conftest.$ac_objext \
10016 conftest$ac_exeext conftest.$ac_ext
10017 LIBS=$ac_check_lib_save_LIBS
10019 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10020 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10021 if test $ac_cv_lib_dl_dlopen = yes; then
10022 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10024 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10025 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10026 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10027 echo $ECHO_N "(cached) $ECHO_C" >&6
10029 ac_check_lib_save_LIBS=$LIBS
10030 LIBS="-lsvld $LIBS"
10031 cat >conftest.$ac_ext <<_ACEOF
10034 cat confdefs.h >>conftest.$ac_ext
10035 cat >>conftest.$ac_ext <<_ACEOF
10036 /* end confdefs.h. */
10038 /* Override any gcc2 internal prototype to avoid an error. */
10042 /* We use char because int might match the return type of a gcc2
10043 builtin and then its argument prototype would still apply. */
10053 rm -f conftest.$ac_objext conftest$ac_exeext
10054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10055 (eval $ac_link) 2>conftest.er1
10057 grep -v '^ *+' conftest.er1 >conftest.err
10059 cat conftest.err >&5
10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061 (exit $ac_status); } &&
10062 { ac_try='test -z "$ac_c_werror_flag"
10063 || test ! -s conftest.err'
10064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10065 (eval $ac_try) 2>&5
10067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068 (exit $ac_status); }; } &&
10069 { ac_try='test -s conftest$ac_exeext'
10070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10071 (eval $ac_try) 2>&5
10073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074 (exit $ac_status); }; }; then
10075 ac_cv_lib_svld_dlopen=yes
10077 echo "$as_me: failed program was:" >&5
10078 sed 's/^/| /' conftest.$ac_ext >&5
10080 ac_cv_lib_svld_dlopen=no
10082 rm -f conftest.err conftest.$ac_objext \
10083 conftest$ac_exeext conftest.$ac_ext
10084 LIBS=$ac_check_lib_save_LIBS
10086 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10087 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10088 if test $ac_cv_lib_svld_dlopen = yes; then
10089 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10091 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10092 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10093 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10094 echo $ECHO_N "(cached) $ECHO_C" >&6
10096 ac_check_lib_save_LIBS=$LIBS
10098 cat >conftest.$ac_ext <<_ACEOF
10101 cat confdefs.h >>conftest.$ac_ext
10102 cat >>conftest.$ac_ext <<_ACEOF
10103 /* end confdefs.h. */
10105 /* Override any gcc2 internal prototype to avoid an error. */
10109 /* We use char because int might match the return type of a gcc2
10110 builtin and then its argument prototype would still apply. */
10120 rm -f conftest.$ac_objext conftest$ac_exeext
10121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10122 (eval $ac_link) 2>conftest.er1
10124 grep -v '^ *+' conftest.er1 >conftest.err
10126 cat conftest.err >&5
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); } &&
10129 { ac_try='test -z "$ac_c_werror_flag"
10130 || test ! -s conftest.err'
10131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10132 (eval $ac_try) 2>&5
10134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135 (exit $ac_status); }; } &&
10136 { ac_try='test -s conftest$ac_exeext'
10137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10138 (eval $ac_try) 2>&5
10140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141 (exit $ac_status); }; }; then
10142 ac_cv_lib_dld_dld_link=yes
10144 echo "$as_me: failed program was:" >&5
10145 sed 's/^/| /' conftest.$ac_ext >&5
10147 ac_cv_lib_dld_dld_link=no
10149 rm -f conftest.err conftest.$ac_objext \
10150 conftest$ac_exeext conftest.$ac_ext
10151 LIBS=$ac_check_lib_save_LIBS
10153 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10154 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10155 if test $ac_cv_lib_dld_dld_link = yes; then
10156 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10177 if test "x$lt_cv_dlopen" != xno; then
10183 case $lt_cv_dlopen in
10185 save_CPPFLAGS="$CPPFLAGS"
10186 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10188 save_LDFLAGS="$LDFLAGS"
10189 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10192 LIBS="$lt_cv_dlopen_libs $LIBS"
10194 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10195 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10196 if test "${lt_cv_dlopen_self+set}" = set; then
10197 echo $ECHO_N "(cached) $ECHO_C" >&6
10199 if test "$cross_compiling" = yes; then :
10200 lt_cv_dlopen_self=cross
10202 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10203 lt_status=$lt_dlunknown
10204 cat > conftest.$ac_ext <<EOF
10205 #line 10205 "configure"
10206 #include "confdefs.h"
10215 # define LT_DLGLOBAL RTLD_GLOBAL
10218 # define LT_DLGLOBAL DL_GLOBAL
10220 # define LT_DLGLOBAL 0
10224 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10225 find out it does not work in some platform. */
10226 #ifndef LT_DLLAZY_OR_NOW
10228 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10231 # define LT_DLLAZY_OR_NOW DL_LAZY
10234 # define LT_DLLAZY_OR_NOW RTLD_NOW
10237 # define LT_DLLAZY_OR_NOW DL_NOW
10239 # define LT_DLLAZY_OR_NOW 0
10247 extern "C" void exit (int);
10250 void fnord() { int i=42;}
10253 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10254 int status = $lt_dlunknown;
10258 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10259 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10260 /* dlclose (self); */
10266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10267 (eval $ac_link) 2>&5
10269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10271 (./conftest; exit; ) >&5 2>/dev/null
10273 case x$lt_status in
10274 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10275 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10276 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10279 # compilation failed
10280 lt_cv_dlopen_self=no
10287 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10288 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10290 if test "x$lt_cv_dlopen_self" = xyes; then
10291 LDFLAGS="$LDFLAGS $link_static_flag"
10292 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10293 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10294 if test "${lt_cv_dlopen_self_static+set}" = set; then
10295 echo $ECHO_N "(cached) $ECHO_C" >&6
10297 if test "$cross_compiling" = yes; then :
10298 lt_cv_dlopen_self_static=cross
10300 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10301 lt_status=$lt_dlunknown
10302 cat > conftest.$ac_ext <<EOF
10303 #line 10303 "configure"
10304 #include "confdefs.h"
10313 # define LT_DLGLOBAL RTLD_GLOBAL
10316 # define LT_DLGLOBAL DL_GLOBAL
10318 # define LT_DLGLOBAL 0
10322 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10323 find out it does not work in some platform. */
10324 #ifndef LT_DLLAZY_OR_NOW
10326 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10329 # define LT_DLLAZY_OR_NOW DL_LAZY
10332 # define LT_DLLAZY_OR_NOW RTLD_NOW
10335 # define LT_DLLAZY_OR_NOW DL_NOW
10337 # define LT_DLLAZY_OR_NOW 0
10345 extern "C" void exit (int);
10348 void fnord() { int i=42;}
10351 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10352 int status = $lt_dlunknown;
10356 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10357 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10358 /* dlclose (self); */
10364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10365 (eval $ac_link) 2>&5
10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10369 (./conftest; exit; ) >&5 2>/dev/null
10371 case x$lt_status in
10372 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10373 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10374 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10377 # compilation failed
10378 lt_cv_dlopen_self_static=no
10385 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10386 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10389 CPPFLAGS="$save_CPPFLAGS"
10390 LDFLAGS="$save_LDFLAGS"
10395 case $lt_cv_dlopen_self in
10396 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10397 *) enable_dlopen_self=unknown ;;
10400 case $lt_cv_dlopen_self_static in
10401 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10402 *) enable_dlopen_self_static=unknown ;;
10407 # Report which librarie types wil actually be built
10408 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10409 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10410 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10411 echo "${ECHO_T}$can_build_shared" >&6
10413 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10414 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10415 test "$can_build_shared" = "no" && enable_shared=no
10417 # On AIX, shared libraries and static libraries use the same namespace, and
10418 # are all built from PIC.
10421 test "$enable_shared" = yes && enable_static=no
10422 if test -n "$RANLIB"; then
10423 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10424 postinstall_cmds='$RANLIB $lib'
10429 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10430 test "$enable_shared" = yes && enable_static=no
10434 echo "$as_me:$LINENO: result: $enable_shared" >&5
10435 echo "${ECHO_T}$enable_shared" >&6
10437 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10438 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10439 # Make sure either enable_shared or enable_static is yes.
10440 test "$enable_shared" = yes || enable_static=yes
10441 echo "$as_me:$LINENO: result: $enable_static" >&5
10442 echo "${ECHO_T}$enable_static" >&6
10444 # The else clause should only fire when bootstrapping the
10445 # libtool distribution, otherwise you forgot to ship ltmain.sh
10446 # with your package, and you will get complaints that there are
10447 # no rules to generate ltmain.sh.
10448 if test -f "$ltmain"; then
10449 # See if we are running on zsh, and set the options which allow our commands through
10450 # without removal of \ escapes.
10451 if test -n "${ZSH_VERSION+set}" ; then
10452 setopt NO_GLOB_SUBST
10454 # Now quote all the things that may contain metacharacters while being
10455 # careful not to overquote the AC_SUBSTed values. We take copies of the
10456 # variables and quote the copies for generation of the libtool script.
10457 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10459 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10460 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10461 deplibs_check_method reload_flag reload_cmds need_locks \
10462 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10463 lt_cv_sys_global_symbol_to_c_name_address \
10464 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10465 old_postinstall_cmds old_postuninstall_cmds \
10469 lt_prog_compiler_wl \
10470 lt_prog_compiler_pic \
10471 lt_prog_compiler_static \
10472 lt_prog_compiler_no_builtin_flag \
10473 export_dynamic_flag_spec \
10474 thread_safe_flag_spec \
10475 whole_archive_flag_spec \
10476 enable_shared_with_static_runtimes \
10478 old_archive_from_new_cmds \
10483 compiler_lib_search_path \
10485 archive_expsym_cmds \
10487 postuninstall_cmds \
10488 old_archive_from_expsyms_cmds \
10489 allow_undefined_flag \
10490 no_undefined_flag \
10491 export_symbols_cmds \
10492 hardcode_libdir_flag_spec \
10493 hardcode_libdir_flag_spec_ld \
10494 hardcode_libdir_separator \
10495 hardcode_automatic \
10497 module_expsym_cmds \
10498 lt_cv_prog_compiler_c_o \
10500 include_expsyms; do
10503 old_archive_cmds | \
10504 old_archive_from_new_cmds | \
10506 archive_expsym_cmds | \
10508 module_expsym_cmds | \
10509 old_archive_from_expsyms_cmds | \
10510 export_symbols_cmds | \
10511 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10512 postinstall_cmds | postuninstall_cmds | \
10513 old_postinstall_cmds | old_postuninstall_cmds | \
10514 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10515 # Double-quote double-evaled strings.
10516 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10519 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10525 *'\$0 --fallback-echo"')
10526 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10530 cfgfile="${ofile}T"
10531 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10533 { echo "$as_me:$LINENO: creating $ofile" >&5
10534 echo "$as_me: creating $ofile" >&6;}
10536 cat <<__EOF__ >> "$cfgfile"
10539 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10540 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10541 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10543 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10544 # Free Software Foundation, Inc.
10546 # This file is part of GNU Libtool:
10547 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10549 # This program is free software; you can redistribute it and/or modify
10550 # it under the terms of the GNU General Public License as published by
10551 # the Free Software Foundation; either version 2 of the License, or
10552 # (at your option) any later version.
10554 # This program is distributed in the hope that it will be useful, but
10555 # WITHOUT ANY WARRANTY; without even the implied warranty of
10556 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10557 # General Public License for more details.
10559 # You should have received a copy of the GNU General Public License
10560 # along with this program; if not, write to the Free Software
10561 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10563 # As a special exception to the GNU General Public License, if you
10564 # distribute this file as part of a program that contains a
10565 # configuration script generated by Autoconf, you may include it under
10566 # the same distribution terms that you use for the rest of that program.
10568 # A sed program that does not truncate output.
10571 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10572 Xsed="$SED -e 1s/^X//"
10574 # The HP-UX ksh and POSIX shell print the target directory to stdout
10575 # if CDPATH is set.
10576 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10578 # The names of the tagged configurations supported by this script.
10581 # ### BEGIN LIBTOOL CONFIG
10583 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10585 # Shell to use when invoking shell scripts.
10588 # Whether or not to build shared libraries.
10589 build_libtool_libs=$enable_shared
10591 # Whether or not to build static libraries.
10592 build_old_libs=$enable_static
10594 # Whether or not to add -lc for building shared libraries.
10595 build_libtool_need_lc=$archive_cmds_need_lc
10597 # Whether or not to disallow shared libs when runtime libs are static
10598 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10600 # Whether or not to optimize for fast installation.
10601 fast_install=$enable_fast_install
10604 host_alias=$host_alias
10608 # The build system.
10609 build_alias=$build_alias
10613 # An echo program that does not interpret backslashes.
10618 AR_FLAGS=$lt_AR_FLAGS
10623 # A language-specific compiler.
10626 # Is the compiler the GNU C compiler?
10632 # The linker used to build libraries.
10635 # Whether we need hard or soft links.
10638 # A BSD-compatible nm program.
10641 # A symbol stripping program
10644 # Used to examine libraries when file_magic_cmd begins "file"
10645 MAGIC_CMD=$MAGIC_CMD
10647 # Used on cygwin: DLL creation program.
10650 # Used on cygwin: object dumper.
10653 # Used on cygwin: assembler.
10656 # The name of the directory that contains temporary libtool files.
10659 # How to create reloadable object files.
10660 reload_flag=$lt_reload_flag
10661 reload_cmds=$lt_reload_cmds
10663 # How to pass a linker flag through the compiler.
10664 wl=$lt_lt_prog_compiler_wl
10666 # Object file suffix (normally "o").
10667 objext="$ac_objext"
10669 # Old archive suffix (normally "a").
10672 # Shared library suffix (normally ".so").
10673 shrext_cmds='$shrext_cmds'
10675 # Executable file suffix (normally "").
10678 # Additional compiler flags for building library objects.
10679 pic_flag=$lt_lt_prog_compiler_pic
10682 # What is the maximum length of a command?
10683 max_cmd_len=$lt_cv_sys_max_cmd_len
10685 # Does compiler simultaneously support -c and -o options?
10686 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10688 # Must we lock files when doing compilation?
10689 need_locks=$lt_need_locks
10691 # Do we need the lib prefix for modules?
10692 need_lib_prefix=$need_lib_prefix
10694 # Do we need a version for libraries?
10695 need_version=$need_version
10697 # Whether dlopen is supported.
10698 dlopen_support=$enable_dlopen
10700 # Whether dlopen of programs is supported.
10701 dlopen_self=$enable_dlopen_self
10703 # Whether dlopen of statically linked programs is supported.
10704 dlopen_self_static=$enable_dlopen_self_static
10706 # Compiler flag to prevent dynamic linking.
10707 link_static_flag=$lt_lt_prog_compiler_static
10709 # Compiler flag to turn off builtin functions.
10710 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10712 # Compiler flag to allow reflexive dlopens.
10713 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10715 # Compiler flag to generate shared objects directly from archives.
10716 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10718 # Compiler flag to generate thread-safe objects.
10719 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10721 # Library versioning type.
10722 version_type=$version_type
10724 # Format of library name prefix.
10725 libname_spec=$lt_libname_spec
10727 # List of archive names. First name is the real one, the rest are links.
10728 # The last name is the one that the linker finds with -lNAME.
10729 library_names_spec=$lt_library_names_spec
10731 # The coded name of the library, if different from the real name.
10732 soname_spec=$lt_soname_spec
10734 # Commands used to build and install an old-style archive.
10736 old_archive_cmds=$lt_old_archive_cmds
10737 old_postinstall_cmds=$lt_old_postinstall_cmds
10738 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10740 # Create an old-style archive from a shared archive.
10741 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10743 # Create a temporary old-style archive to link instead of a shared archive.
10744 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10746 # Commands used to build and install a shared archive.
10747 archive_cmds=$lt_archive_cmds
10748 archive_expsym_cmds=$lt_archive_expsym_cmds
10749 postinstall_cmds=$lt_postinstall_cmds
10750 postuninstall_cmds=$lt_postuninstall_cmds
10752 # Commands used to build a loadable module (assumed same as above if empty)
10753 module_cmds=$lt_module_cmds
10754 module_expsym_cmds=$lt_module_expsym_cmds
10756 # Commands to strip libraries.
10757 old_striplib=$lt_old_striplib
10758 striplib=$lt_striplib
10760 # Dependencies to place before the objects being linked to create a
10762 predep_objects=$lt_predep_objects
10764 # Dependencies to place after the objects being linked to create a
10766 postdep_objects=$lt_postdep_objects
10768 # Dependencies to place before the objects being linked to create a
10770 predeps=$lt_predeps
10772 # Dependencies to place after the objects being linked to create a
10774 postdeps=$lt_postdeps
10776 # The library search path used internally by the compiler when linking
10777 # a shared library.
10778 compiler_lib_search_path=$lt_compiler_lib_search_path
10780 # Method to check whether dependent libraries are shared objects.
10781 deplibs_check_method=$lt_deplibs_check_method
10783 # Command to use when deplibs_check_method == file_magic.
10784 file_magic_cmd=$lt_file_magic_cmd
10786 # Flag that allows shared libraries with undefined symbols to be built.
10787 allow_undefined_flag=$lt_allow_undefined_flag
10789 # Flag that forces no undefined symbols.
10790 no_undefined_flag=$lt_no_undefined_flag
10792 # Commands used to finish a libtool library installation in a directory.
10793 finish_cmds=$lt_finish_cmds
10795 # Same as above, but a single script fragment to be evaled but not shown.
10796 finish_eval=$lt_finish_eval
10798 # Take the output of nm and produce a listing of raw symbols and C names.
10799 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10801 # Transform the output of nm in a proper C declaration
10802 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10804 # Transform the output of nm in a C name address pair
10805 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10807 # This is the shared library runtime path variable.
10808 runpath_var=$runpath_var
10810 # This is the shared library path variable.
10811 shlibpath_var=$shlibpath_var
10813 # Is shlibpath searched before the hard-coded library search path?
10814 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10816 # How to hardcode a shared library path into an executable.
10817 hardcode_action=$hardcode_action
10819 # Whether we should hardcode library paths into libraries.
10820 hardcode_into_libs=$hardcode_into_libs
10822 # Flag to hardcode \$libdir into a binary during linking.
10823 # This must work even if \$libdir does not exist.
10824 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10826 # If ld is used when linking, flag to hardcode \$libdir into
10827 # a binary during linking. This must work even if \$libdir does
10829 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10831 # Whether we need a single -rpath flag with a separated argument.
10832 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10834 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10835 # resulting binary.
10836 hardcode_direct=$hardcode_direct
10838 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10839 # resulting binary.
10840 hardcode_minus_L=$hardcode_minus_L
10842 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10843 # the resulting binary.
10844 hardcode_shlibpath_var=$hardcode_shlibpath_var
10846 # Set to yes if building a shared library automatically hardcodes DIR into the library
10847 # and all subsequent libraries and executables linked against it.
10848 hardcode_automatic=$hardcode_automatic
10850 # Variables whose values should be saved in libtool wrapper scripts and
10851 # restored at relink time.
10852 variables_saved_for_relink="$variables_saved_for_relink"
10854 # Whether libtool must link a program against all its dependency libraries.
10855 link_all_deplibs=$link_all_deplibs
10857 # Compile-time system search path for libraries
10858 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10860 # Run-time system search path for libraries
10861 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10863 # Fix the shell variable \$srcfile for the compiler.
10864 fix_srcfile_path="$fix_srcfile_path"
10866 # Set to yes if exported symbols are required.
10867 always_export_symbols=$always_export_symbols
10869 # The commands to list exported symbols.
10870 export_symbols_cmds=$lt_export_symbols_cmds
10872 # The commands to extract the exported symbol list from a shared archive.
10873 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10875 # Symbols that should not be listed in the preloaded symbols.
10876 exclude_expsyms=$lt_exclude_expsyms
10878 # Symbols that must always be exported.
10879 include_expsyms=$lt_include_expsyms
10881 # ### END LIBTOOL CONFIG
10888 cat <<\EOF >> "$cfgfile"
10890 # AIX sometimes has problems with the GCC collect2 program. For some
10891 # reason, if we set the COLLECT_NAMES environment variable, the problems
10892 # vanish in a puff of smoke.
10893 if test "X${COLLECT_NAMES+set}" != Xset; then
10895 export COLLECT_NAMES
10901 # We use sed instead of cat because bash on DJGPP gets confused if
10902 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10903 # text mode, it properly converts lines to CR/LF. This bash problem
10904 # is reportedly fixed, but why not run on old versions too?
10905 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10907 mv -f "$cfgfile" "$ofile" || \
10908 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10912 # If there is no Makefile yet, we rely on a make rule to execute
10913 # `config.status --recheck' to rerun these tests and create the
10914 # libtool script then.
10915 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10916 if test -f "$ltmain_in"; then
10917 test -f Makefile && make "$ltmain"
10923 ac_cpp='$CPP $CPPFLAGS'
10924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10931 # Check whether --with-tags or --without-tags was given.
10932 if test "${with_tags+set}" = set; then
10933 withval="$with_tags"
10934 tagnames="$withval"
10937 if test -f "$ltmain" && test -n "$tagnames"; then
10938 if test ! -f "${ofile}"; then
10939 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10940 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10943 if test -z "$LTCC"; then
10944 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10945 if test -z "$LTCC"; then
10946 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10947 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10949 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10950 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10954 # Extract list of available tagged configurations in $ofile.
10955 # Note that this assumes the entire list is on one line.
10956 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10958 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10959 for tagname in $tagnames; do
10961 # Check whether tagname contains only valid characters
10962 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10964 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10965 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10966 { (exit 1); exit 1; }; }
10970 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10972 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10973 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10974 { (exit 1); exit 1; }; }
10977 # Update the list of available tags.
10978 if test -n "$tagname"; then
10979 echo appending configuration tag \"$tagname\" to $ofile
10983 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10984 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10985 (test "X$CXX" != "Xg++"))) ; then
10993 if test -n "$F77" && test "X$F77" != "Xno"; then
11001 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11012 # Source file extension for RC test sources.
11015 # Object file extension for compiled RC test sources.
11019 # Code to be used in simple compile tests
11020 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11022 # Code to be used in simple link tests
11023 lt_simple_link_test_code="$lt_simple_compile_test_code"
11025 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11027 # If no C compiler was specified, use CC.
11030 # Allow CC to be a program name with arguments.
11034 # save warnings/boilerplate of simple test code
11035 ac_outfile=conftest.$ac_objext
11036 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11037 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11038 _lt_compiler_boilerplate=`cat conftest.err`
11041 ac_outfile=conftest.$ac_objext
11042 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11043 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11044 _lt_linker_boilerplate=`cat conftest.err`
11048 # Allow CC to be a program name with arguments.
11053 for cc_temp in $compiler""; do
11055 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11056 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11061 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11063 lt_cv_prog_compiler_c_o_RC=yes
11065 # The else clause should only fire when bootstrapping the
11066 # libtool distribution, otherwise you forgot to ship ltmain.sh
11067 # with your package, and you will get complaints that there are
11068 # no rules to generate ltmain.sh.
11069 if test -f "$ltmain"; then
11070 # See if we are running on zsh, and set the options which allow our commands through
11071 # without removal of \ escapes.
11072 if test -n "${ZSH_VERSION+set}" ; then
11073 setopt NO_GLOB_SUBST
11075 # Now quote all the things that may contain metacharacters while being
11076 # careful not to overquote the AC_SUBSTed values. We take copies of the
11077 # variables and quote the copies for generation of the libtool script.
11078 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11080 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11081 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11082 deplibs_check_method reload_flag reload_cmds need_locks \
11083 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11084 lt_cv_sys_global_symbol_to_c_name_address \
11085 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11086 old_postinstall_cmds old_postuninstall_cmds \
11090 lt_prog_compiler_wl_RC \
11091 lt_prog_compiler_pic_RC \
11092 lt_prog_compiler_static_RC \
11093 lt_prog_compiler_no_builtin_flag_RC \
11094 export_dynamic_flag_spec_RC \
11095 thread_safe_flag_spec_RC \
11096 whole_archive_flag_spec_RC \
11097 enable_shared_with_static_runtimes_RC \
11098 old_archive_cmds_RC \
11099 old_archive_from_new_cmds_RC \
11100 predep_objects_RC \
11101 postdep_objects_RC \
11104 compiler_lib_search_path_RC \
11106 archive_expsym_cmds_RC \
11107 postinstall_cmds_RC \
11108 postuninstall_cmds_RC \
11109 old_archive_from_expsyms_cmds_RC \
11110 allow_undefined_flag_RC \
11111 no_undefined_flag_RC \
11112 export_symbols_cmds_RC \
11113 hardcode_libdir_flag_spec_RC \
11114 hardcode_libdir_flag_spec_ld_RC \
11115 hardcode_libdir_separator_RC \
11116 hardcode_automatic_RC \
11118 module_expsym_cmds_RC \
11119 lt_cv_prog_compiler_c_o_RC \
11120 exclude_expsyms_RC \
11121 include_expsyms_RC; do
11124 old_archive_cmds_RC | \
11125 old_archive_from_new_cmds_RC | \
11126 archive_cmds_RC | \
11127 archive_expsym_cmds_RC | \
11129 module_expsym_cmds_RC | \
11130 old_archive_from_expsyms_cmds_RC | \
11131 export_symbols_cmds_RC | \
11132 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11133 postinstall_cmds | postuninstall_cmds | \
11134 old_postinstall_cmds | old_postuninstall_cmds | \
11135 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11136 # Double-quote double-evaled strings.
11137 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11140 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11146 *'\$0 --fallback-echo"')
11147 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11153 cat <<__EOF__ >> "$cfgfile"
11154 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11156 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11158 # Shell to use when invoking shell scripts.
11161 # Whether or not to build shared libraries.
11162 build_libtool_libs=$enable_shared
11164 # Whether or not to build static libraries.
11165 build_old_libs=$enable_static
11167 # Whether or not to add -lc for building shared libraries.
11168 build_libtool_need_lc=$archive_cmds_need_lc_RC
11170 # Whether or not to disallow shared libs when runtime libs are static
11171 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11173 # Whether or not to optimize for fast installation.
11174 fast_install=$enable_fast_install
11177 host_alias=$host_alias
11181 # The build system.
11182 build_alias=$build_alias
11186 # An echo program that does not interpret backslashes.
11191 AR_FLAGS=$lt_AR_FLAGS
11196 # A language-specific compiler.
11199 # Is the compiler the GNU C compiler?
11205 # The linker used to build libraries.
11208 # Whether we need hard or soft links.
11211 # A BSD-compatible nm program.
11214 # A symbol stripping program
11217 # Used to examine libraries when file_magic_cmd begins "file"
11218 MAGIC_CMD=$MAGIC_CMD
11220 # Used on cygwin: DLL creation program.
11223 # Used on cygwin: object dumper.
11226 # Used on cygwin: assembler.
11229 # The name of the directory that contains temporary libtool files.
11232 # How to create reloadable object files.
11233 reload_flag=$lt_reload_flag
11234 reload_cmds=$lt_reload_cmds
11236 # How to pass a linker flag through the compiler.
11237 wl=$lt_lt_prog_compiler_wl_RC
11239 # Object file suffix (normally "o").
11240 objext="$ac_objext"
11242 # Old archive suffix (normally "a").
11245 # Shared library suffix (normally ".so").
11246 shrext_cmds='$shrext_cmds'
11248 # Executable file suffix (normally "").
11251 # Additional compiler flags for building library objects.
11252 pic_flag=$lt_lt_prog_compiler_pic_RC
11255 # What is the maximum length of a command?
11256 max_cmd_len=$lt_cv_sys_max_cmd_len
11258 # Does compiler simultaneously support -c and -o options?
11259 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11261 # Must we lock files when doing compilation?
11262 need_locks=$lt_need_locks
11264 # Do we need the lib prefix for modules?
11265 need_lib_prefix=$need_lib_prefix
11267 # Do we need a version for libraries?
11268 need_version=$need_version
11270 # Whether dlopen is supported.
11271 dlopen_support=$enable_dlopen
11273 # Whether dlopen of programs is supported.
11274 dlopen_self=$enable_dlopen_self
11276 # Whether dlopen of statically linked programs is supported.
11277 dlopen_self_static=$enable_dlopen_self_static
11279 # Compiler flag to prevent dynamic linking.
11280 link_static_flag=$lt_lt_prog_compiler_static_RC
11282 # Compiler flag to turn off builtin functions.
11283 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11285 # Compiler flag to allow reflexive dlopens.
11286 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11288 # Compiler flag to generate shared objects directly from archives.
11289 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11291 # Compiler flag to generate thread-safe objects.
11292 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11294 # Library versioning type.
11295 version_type=$version_type
11297 # Format of library name prefix.
11298 libname_spec=$lt_libname_spec
11300 # List of archive names. First name is the real one, the rest are links.
11301 # The last name is the one that the linker finds with -lNAME.
11302 library_names_spec=$lt_library_names_spec
11304 # The coded name of the library, if different from the real name.
11305 soname_spec=$lt_soname_spec
11307 # Commands used to build and install an old-style archive.
11309 old_archive_cmds=$lt_old_archive_cmds_RC
11310 old_postinstall_cmds=$lt_old_postinstall_cmds
11311 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11313 # Create an old-style archive from a shared archive.
11314 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11316 # Create a temporary old-style archive to link instead of a shared archive.
11317 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11319 # Commands used to build and install a shared archive.
11320 archive_cmds=$lt_archive_cmds_RC
11321 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11322 postinstall_cmds=$lt_postinstall_cmds
11323 postuninstall_cmds=$lt_postuninstall_cmds
11325 # Commands used to build a loadable module (assumed same as above if empty)
11326 module_cmds=$lt_module_cmds_RC
11327 module_expsym_cmds=$lt_module_expsym_cmds_RC
11329 # Commands to strip libraries.
11330 old_striplib=$lt_old_striplib
11331 striplib=$lt_striplib
11333 # Dependencies to place before the objects being linked to create a
11335 predep_objects=$lt_predep_objects_RC
11337 # Dependencies to place after the objects being linked to create a
11339 postdep_objects=$lt_postdep_objects_RC
11341 # Dependencies to place before the objects being linked to create a
11343 predeps=$lt_predeps_RC
11345 # Dependencies to place after the objects being linked to create a
11347 postdeps=$lt_postdeps_RC
11349 # The library search path used internally by the compiler when linking
11350 # a shared library.
11351 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11353 # Method to check whether dependent libraries are shared objects.
11354 deplibs_check_method=$lt_deplibs_check_method
11356 # Command to use when deplibs_check_method == file_magic.
11357 file_magic_cmd=$lt_file_magic_cmd
11359 # Flag that allows shared libraries with undefined symbols to be built.
11360 allow_undefined_flag=$lt_allow_undefined_flag_RC
11362 # Flag that forces no undefined symbols.
11363 no_undefined_flag=$lt_no_undefined_flag_RC
11365 # Commands used to finish a libtool library installation in a directory.
11366 finish_cmds=$lt_finish_cmds
11368 # Same as above, but a single script fragment to be evaled but not shown.
11369 finish_eval=$lt_finish_eval
11371 # Take the output of nm and produce a listing of raw symbols and C names.
11372 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11374 # Transform the output of nm in a proper C declaration
11375 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11377 # Transform the output of nm in a C name address pair
11378 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11380 # This is the shared library runtime path variable.
11381 runpath_var=$runpath_var
11383 # This is the shared library path variable.
11384 shlibpath_var=$shlibpath_var
11386 # Is shlibpath searched before the hard-coded library search path?
11387 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11389 # How to hardcode a shared library path into an executable.
11390 hardcode_action=$hardcode_action_RC
11392 # Whether we should hardcode library paths into libraries.
11393 hardcode_into_libs=$hardcode_into_libs
11395 # Flag to hardcode \$libdir into a binary during linking.
11396 # This must work even if \$libdir does not exist.
11397 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11399 # If ld is used when linking, flag to hardcode \$libdir into
11400 # a binary during linking. This must work even if \$libdir does
11402 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11404 # Whether we need a single -rpath flag with a separated argument.
11405 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11407 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11408 # resulting binary.
11409 hardcode_direct=$hardcode_direct_RC
11411 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11412 # resulting binary.
11413 hardcode_minus_L=$hardcode_minus_L_RC
11415 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11416 # the resulting binary.
11417 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
11419 # Set to yes if building a shared library automatically hardcodes DIR into the library
11420 # and all subsequent libraries and executables linked against it.
11421 hardcode_automatic=$hardcode_automatic_RC
11423 # Variables whose values should be saved in libtool wrapper scripts and
11424 # restored at relink time.
11425 variables_saved_for_relink="$variables_saved_for_relink"
11427 # Whether libtool must link a program against all its dependency libraries.
11428 link_all_deplibs=$link_all_deplibs_RC
11430 # Compile-time system search path for libraries
11431 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11433 # Run-time system search path for libraries
11434 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11436 # Fix the shell variable \$srcfile for the compiler.
11437 fix_srcfile_path="$fix_srcfile_path_RC"
11439 # Set to yes if exported symbols are required.
11440 always_export_symbols=$always_export_symbols_RC
11442 # The commands to list exported symbols.
11443 export_symbols_cmds=$lt_export_symbols_cmds_RC
11445 # The commands to extract the exported symbol list from a shared archive.
11446 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11448 # Symbols that should not be listed in the preloaded symbols.
11449 exclude_expsyms=$lt_exclude_expsyms_RC
11451 # Symbols that must always be exported.
11452 include_expsyms=$lt_include_expsyms_RC
11454 # ### END LIBTOOL TAG CONFIG: $tagname
11460 # If there is no Makefile yet, we rely on a make rule to execute
11461 # `config.status --recheck' to rerun these tests and create the
11462 # libtool script then.
11463 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11464 if test -f "$ltmain_in"; then
11465 test -f Makefile && make "$ltmain"
11471 ac_cpp='$CPP $CPPFLAGS'
11472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11481 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
11482 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
11483 { (exit 1); exit 1; }; }
11487 # Append the new tag name to the list of available tags.
11488 if test -n "$tagname" ; then
11489 available_tags="$available_tags $tagname"
11495 # Now substitute the updated list of available tags.
11496 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
11497 mv "${ofile}T" "$ofile"
11501 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
11502 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
11503 { (exit 1); exit 1; }; }
11509 # This can be used to rebuild libtool when needed
11510 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11512 # Always use our own libtool.
11513 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11515 # Prevent multiple expansion
11527 if test $ol_enable_perl != no ; then
11528 # Extract the first word of "perl", so it can be a program name with args.
11529 set dummy perl; ac_word=$2
11530 echo "$as_me:$LINENO: checking for $ac_word" >&5
11531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11532 if test "${ac_cv_path_PERLBIN+set}" = set; then
11533 echo $ECHO_N "(cached) $ECHO_C" >&6
11537 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
11540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11541 for as_dir in $PATH
11544 test -z "$as_dir" && as_dir=.
11545 for ac_exec_ext in '' $ac_executable_extensions; do
11546 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11547 ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
11548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11554 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
11558 PERLBIN=$ac_cv_path_PERLBIN
11560 if test -n "$PERLBIN"; then
11561 echo "$as_me:$LINENO: result: $PERLBIN" >&5
11562 echo "${ECHO_T}$PERLBIN" >&6
11564 echo "$as_me:$LINENO: result: no" >&5
11565 echo "${ECHO_T}no" >&6
11569 if test "no$PERLBIN" = "no" ; then
11570 if test $ol_enable_perl = yes ; then
11571 { { echo "$as_me:$LINENO: error: could not locate perl" >&5
11572 echo "$as_me: error: could not locate perl" >&2;}
11573 { (exit 1); exit 1; }; }
11577 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
11578 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
11580 if test x"$ol_enable_perl" = "xyes" ; then
11581 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
11583 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
11590 ac_cpp='$CPP $CPPFLAGS'
11591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11594 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11595 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11596 # On Suns, sometimes $CPP names a directory.
11597 if test -n "$CPP" && test -d "$CPP"; then
11600 if test -z "$CPP"; then
11601 if test "${ac_cv_prog_CPP+set}" = set; then
11602 echo $ECHO_N "(cached) $ECHO_C" >&6
11604 # Double quotes because CPP needs to be expanded
11605 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11607 ac_preproc_ok=false
11608 for ac_c_preproc_warn_flag in '' yes
11610 # Use a header file that comes with gcc, so configuring glibc
11611 # with a fresh cross-compiler works.
11612 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11613 # <limits.h> exists even on freestanding compilers.
11614 # On the NeXT, cc -E runs the code through the compiler's parser,
11615 # not just through cpp. "Syntax error" is here to catch this case.
11616 cat >conftest.$ac_ext <<_ACEOF
11619 cat confdefs.h >>conftest.$ac_ext
11620 cat >>conftest.$ac_ext <<_ACEOF
11621 /* end confdefs.h. */
11623 # include <limits.h>
11625 # include <assert.h>
11629 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11630 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11632 grep -v '^ *+' conftest.er1 >conftest.err
11634 cat conftest.err >&5
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); } >/dev/null; then
11637 if test -s conftest.err; then
11638 ac_cpp_err=$ac_c_preproc_warn_flag
11639 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11646 if test -z "$ac_cpp_err"; then
11649 echo "$as_me: failed program was:" >&5
11650 sed 's/^/| /' conftest.$ac_ext >&5
11652 # Broken: fails on valid input.
11655 rm -f conftest.err conftest.$ac_ext
11657 # OK, works on sane cases. Now check whether non-existent headers
11658 # can be detected and how.
11659 cat >conftest.$ac_ext <<_ACEOF
11662 cat confdefs.h >>conftest.$ac_ext
11663 cat >>conftest.$ac_ext <<_ACEOF
11664 /* end confdefs.h. */
11665 #include <ac_nonexistent.h>
11667 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11668 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11670 grep -v '^ *+' conftest.er1 >conftest.err
11672 cat conftest.err >&5
11673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 (exit $ac_status); } >/dev/null; then
11675 if test -s conftest.err; then
11676 ac_cpp_err=$ac_c_preproc_warn_flag
11677 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11684 if test -z "$ac_cpp_err"; then
11685 # Broken: success on invalid input.
11688 echo "$as_me: failed program was:" >&5
11689 sed 's/^/| /' conftest.$ac_ext >&5
11691 # Passes both tests.
11695 rm -f conftest.err conftest.$ac_ext
11698 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11699 rm -f conftest.err conftest.$ac_ext
11700 if $ac_preproc_ok; then
11705 ac_cv_prog_CPP=$CPP
11708 CPP=$ac_cv_prog_CPP
11710 ac_cv_prog_CPP=$CPP
11712 echo "$as_me:$LINENO: result: $CPP" >&5
11713 echo "${ECHO_T}$CPP" >&6
11714 ac_preproc_ok=false
11715 for ac_c_preproc_warn_flag in '' yes
11717 # Use a header file that comes with gcc, so configuring glibc
11718 # with a fresh cross-compiler works.
11719 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11720 # <limits.h> exists even on freestanding compilers.
11721 # On the NeXT, cc -E runs the code through the compiler's parser,
11722 # not just through cpp. "Syntax error" is here to catch this case.
11723 cat >conftest.$ac_ext <<_ACEOF
11726 cat confdefs.h >>conftest.$ac_ext
11727 cat >>conftest.$ac_ext <<_ACEOF
11728 /* end confdefs.h. */
11730 # include <limits.h>
11732 # include <assert.h>
11736 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11737 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11739 grep -v '^ *+' conftest.er1 >conftest.err
11741 cat conftest.err >&5
11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 (exit $ac_status); } >/dev/null; then
11744 if test -s conftest.err; then
11745 ac_cpp_err=$ac_c_preproc_warn_flag
11746 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11753 if test -z "$ac_cpp_err"; then
11756 echo "$as_me: failed program was:" >&5
11757 sed 's/^/| /' conftest.$ac_ext >&5
11759 # Broken: fails on valid input.
11762 rm -f conftest.err conftest.$ac_ext
11764 # OK, works on sane cases. Now check whether non-existent headers
11765 # can be detected and how.
11766 cat >conftest.$ac_ext <<_ACEOF
11769 cat confdefs.h >>conftest.$ac_ext
11770 cat >>conftest.$ac_ext <<_ACEOF
11771 /* end confdefs.h. */
11772 #include <ac_nonexistent.h>
11774 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11775 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11777 grep -v '^ *+' conftest.er1 >conftest.err
11779 cat conftest.err >&5
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); } >/dev/null; then
11782 if test -s conftest.err; then
11783 ac_cpp_err=$ac_c_preproc_warn_flag
11784 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11791 if test -z "$ac_cpp_err"; then
11792 # Broken: success on invalid input.
11795 echo "$as_me: failed program was:" >&5
11796 sed 's/^/| /' conftest.$ac_ext >&5
11798 # Passes both tests.
11802 rm -f conftest.err conftest.$ac_ext
11805 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11806 rm -f conftest.err conftest.$ac_ext
11807 if $ac_preproc_ok; then
11810 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11811 See \`config.log' for more details." >&5
11812 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11813 See \`config.log' for more details." >&2;}
11814 { (exit 1); exit 1; }; }
11818 ac_cpp='$CPP $CPPFLAGS'
11819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11825 *mingw32* ) ac_cv_mingw32=yes ;;
11826 *cygwin* ) ac_cv_cygwin=yes ;;
11832 cat >>confdefs.h <<_ACEOF
11833 #define EXEEXT "${EXEEXT}"
11837 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
11838 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
11839 if test "${ac_cv_lib_be_be_app+set}" = set; then
11840 echo $ECHO_N "(cached) $ECHO_C" >&6
11842 ac_check_lib_save_LIBS=$LIBS
11843 LIBS="-lbe -lroot -lnet $LIBS"
11844 cat >conftest.$ac_ext <<_ACEOF
11847 cat confdefs.h >>conftest.$ac_ext
11848 cat >>conftest.$ac_ext <<_ACEOF
11849 /* end confdefs.h. */
11851 /* Override any gcc2 internal prototype to avoid an error. */
11855 /* We use char because int might match the return type of a gcc2
11856 builtin and then its argument prototype would still apply. */
11866 rm -f conftest.$ac_objext conftest$ac_exeext
11867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11868 (eval $ac_link) 2>conftest.er1
11870 grep -v '^ *+' conftest.er1 >conftest.err
11872 cat conftest.err >&5
11873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874 (exit $ac_status); } &&
11875 { ac_try='test -z "$ac_c_werror_flag"
11876 || test ! -s conftest.err'
11877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11878 (eval $ac_try) 2>&5
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); }; } &&
11882 { ac_try='test -s conftest$ac_exeext'
11883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11884 (eval $ac_try) 2>&5
11886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887 (exit $ac_status); }; }; then
11888 ac_cv_lib_be_be_app=yes
11890 echo "$as_me: failed program was:" >&5
11891 sed 's/^/| /' conftest.$ac_ext >&5
11893 ac_cv_lib_be_be_app=no
11895 rm -f conftest.err conftest.$ac_objext \
11896 conftest$ac_exeext conftest.$ac_ext
11897 LIBS=$ac_check_lib_save_LIBS
11899 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
11900 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
11901 if test $ac_cv_lib_be_be_app = yes; then
11902 LIBS="$LIBS -lbe -lroot -lnet"
11909 ac_cpp='$CPP $CPPFLAGS'
11910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11913 if test -n "$ac_tool_prefix"; then
11914 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11915 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11916 echo "$as_me:$LINENO: checking for $ac_word" >&5
11917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11918 if test "${ac_cv_prog_CC+set}" = set; then
11919 echo $ECHO_N "(cached) $ECHO_C" >&6
11921 if test -n "$CC"; then
11922 ac_cv_prog_CC="$CC" # Let the user override the test.
11924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11925 for as_dir in $PATH
11928 test -z "$as_dir" && as_dir=.
11929 for ac_exec_ext in '' $ac_executable_extensions; do
11930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11931 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11941 if test -n "$CC"; then
11942 echo "$as_me:$LINENO: result: $CC" >&5
11943 echo "${ECHO_T}$CC" >&6
11945 echo "$as_me:$LINENO: result: no" >&5
11946 echo "${ECHO_T}no" >&6
11950 if test -z "$ac_cv_prog_CC"; then
11952 # Extract the first word of "gcc", so it can be a program name with args.
11953 set dummy gcc; ac_word=$2
11954 echo "$as_me:$LINENO: checking for $ac_word" >&5
11955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11956 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11957 echo $ECHO_N "(cached) $ECHO_C" >&6
11959 if test -n "$ac_ct_CC"; then
11960 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11963 for as_dir in $PATH
11966 test -z "$as_dir" && as_dir=.
11967 for ac_exec_ext in '' $ac_executable_extensions; do
11968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11969 ac_cv_prog_ac_ct_CC="gcc"
11970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11978 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11979 if test -n "$ac_ct_CC"; then
11980 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11981 echo "${ECHO_T}$ac_ct_CC" >&6
11983 echo "$as_me:$LINENO: result: no" >&5
11984 echo "${ECHO_T}no" >&6
11989 CC="$ac_cv_prog_CC"
11992 if test -z "$CC"; then
11993 if test -n "$ac_tool_prefix"; then
11994 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11995 set dummy ${ac_tool_prefix}cc; ac_word=$2
11996 echo "$as_me:$LINENO: checking for $ac_word" >&5
11997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11998 if test "${ac_cv_prog_CC+set}" = set; then
11999 echo $ECHO_N "(cached) $ECHO_C" >&6
12001 if test -n "$CC"; then
12002 ac_cv_prog_CC="$CC" # Let the user override the test.
12004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12005 for as_dir in $PATH
12008 test -z "$as_dir" && as_dir=.
12009 for ac_exec_ext in '' $ac_executable_extensions; do
12010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12011 ac_cv_prog_CC="${ac_tool_prefix}cc"
12012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12021 if test -n "$CC"; then
12022 echo "$as_me:$LINENO: result: $CC" >&5
12023 echo "${ECHO_T}$CC" >&6
12025 echo "$as_me:$LINENO: result: no" >&5
12026 echo "${ECHO_T}no" >&6
12030 if test -z "$ac_cv_prog_CC"; then
12032 # Extract the first word of "cc", so it can be a program name with args.
12033 set dummy cc; ac_word=$2
12034 echo "$as_me:$LINENO: checking for $ac_word" >&5
12035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12036 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12037 echo $ECHO_N "(cached) $ECHO_C" >&6
12039 if test -n "$ac_ct_CC"; then
12040 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12043 for as_dir in $PATH
12046 test -z "$as_dir" && as_dir=.
12047 for ac_exec_ext in '' $ac_executable_extensions; do
12048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12049 ac_cv_prog_ac_ct_CC="cc"
12050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12058 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12059 if test -n "$ac_ct_CC"; then
12060 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12061 echo "${ECHO_T}$ac_ct_CC" >&6
12063 echo "$as_me:$LINENO: result: no" >&5
12064 echo "${ECHO_T}no" >&6
12069 CC="$ac_cv_prog_CC"
12073 if test -z "$CC"; then
12074 # Extract the first word of "cc", so it can be a program name with args.
12075 set dummy cc; ac_word=$2
12076 echo "$as_me:$LINENO: checking for $ac_word" >&5
12077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12078 if test "${ac_cv_prog_CC+set}" = set; then
12079 echo $ECHO_N "(cached) $ECHO_C" >&6
12081 if test -n "$CC"; then
12082 ac_cv_prog_CC="$CC" # Let the user override the test.
12084 ac_prog_rejected=no
12085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12086 for as_dir in $PATH
12089 test -z "$as_dir" && as_dir=.
12090 for ac_exec_ext in '' $ac_executable_extensions; do
12091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12092 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12093 ac_prog_rejected=yes
12097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12103 if test $ac_prog_rejected = yes; then
12104 # We found a bogon in the path, so make sure we never use it.
12105 set dummy $ac_cv_prog_CC
12107 if test $# != 0; then
12108 # We chose a different compiler from the bogus one.
12109 # However, it has the same basename, so the bogon will be chosen
12110 # first if we set CC to just the basename; use the full file name.
12112 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12118 if test -n "$CC"; then
12119 echo "$as_me:$LINENO: result: $CC" >&5
12120 echo "${ECHO_T}$CC" >&6
12122 echo "$as_me:$LINENO: result: no" >&5
12123 echo "${ECHO_T}no" >&6
12127 if test -z "$CC"; then
12128 if test -n "$ac_tool_prefix"; then
12131 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12132 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12133 echo "$as_me:$LINENO: checking for $ac_word" >&5
12134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12135 if test "${ac_cv_prog_CC+set}" = set; then
12136 echo $ECHO_N "(cached) $ECHO_C" >&6
12138 if test -n "$CC"; then
12139 ac_cv_prog_CC="$CC" # Let the user override the test.
12141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12142 for as_dir in $PATH
12145 test -z "$as_dir" && as_dir=.
12146 for ac_exec_ext in '' $ac_executable_extensions; do
12147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12148 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12158 if test -n "$CC"; then
12159 echo "$as_me:$LINENO: result: $CC" >&5
12160 echo "${ECHO_T}$CC" >&6
12162 echo "$as_me:$LINENO: result: no" >&5
12163 echo "${ECHO_T}no" >&6
12166 test -n "$CC" && break
12169 if test -z "$CC"; then
12173 # Extract the first word of "$ac_prog", so it can be a program name with args.
12174 set dummy $ac_prog; ac_word=$2
12175 echo "$as_me:$LINENO: checking for $ac_word" >&5
12176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12177 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12178 echo $ECHO_N "(cached) $ECHO_C" >&6
12180 if test -n "$ac_ct_CC"; then
12181 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12184 for as_dir in $PATH
12187 test -z "$as_dir" && as_dir=.
12188 for ac_exec_ext in '' $ac_executable_extensions; do
12189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12190 ac_cv_prog_ac_ct_CC="$ac_prog"
12191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12199 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12200 if test -n "$ac_ct_CC"; then
12201 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12202 echo "${ECHO_T}$ac_ct_CC" >&6
12204 echo "$as_me:$LINENO: result: no" >&5
12205 echo "${ECHO_T}no" >&6
12208 test -n "$ac_ct_CC" && break
12217 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12218 See \`config.log' for more details." >&5
12219 echo "$as_me: error: no acceptable C compiler found in \$PATH
12220 See \`config.log' for more details." >&2;}
12221 { (exit 1); exit 1; }; }
12223 # Provide some information about the compiler.
12224 echo "$as_me:$LINENO:" \
12225 "checking for C compiler version" >&5
12226 ac_compiler=`set X $ac_compile; echo $2`
12227 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12228 (eval $ac_compiler --version </dev/null >&5) 2>&5
12230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231 (exit $ac_status); }
12232 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12233 (eval $ac_compiler -v </dev/null >&5) 2>&5
12235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12236 (exit $ac_status); }
12237 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12238 (eval $ac_compiler -V </dev/null >&5) 2>&5
12240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241 (exit $ac_status); }
12243 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12244 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12245 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12246 echo $ECHO_N "(cached) $ECHO_C" >&6
12248 cat >conftest.$ac_ext <<_ACEOF
12251 cat confdefs.h >>conftest.$ac_ext
12252 cat >>conftest.$ac_ext <<_ACEOF
12253 /* end confdefs.h. */
12266 rm -f conftest.$ac_objext
12267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12268 (eval $ac_compile) 2>conftest.er1
12270 grep -v '^ *+' conftest.er1 >conftest.err
12272 cat conftest.err >&5
12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 (exit $ac_status); } &&
12275 { ac_try='test -z "$ac_c_werror_flag"
12276 || test ! -s conftest.err'
12277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12278 (eval $ac_try) 2>&5
12280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281 (exit $ac_status); }; } &&
12282 { ac_try='test -s conftest.$ac_objext'
12283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12284 (eval $ac_try) 2>&5
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); }; }; then
12288 ac_compiler_gnu=yes
12290 echo "$as_me: failed program was:" >&5
12291 sed 's/^/| /' conftest.$ac_ext >&5
12295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12296 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12299 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12300 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12301 GCC=`test $ac_compiler_gnu = yes && echo yes`
12302 ac_test_CFLAGS=${CFLAGS+set}
12303 ac_save_CFLAGS=$CFLAGS
12305 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12306 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12307 if test "${ac_cv_prog_cc_g+set}" = set; then
12308 echo $ECHO_N "(cached) $ECHO_C" >&6
12310 cat >conftest.$ac_ext <<_ACEOF
12313 cat confdefs.h >>conftest.$ac_ext
12314 cat >>conftest.$ac_ext <<_ACEOF
12315 /* end confdefs.h. */
12325 rm -f conftest.$ac_objext
12326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12327 (eval $ac_compile) 2>conftest.er1
12329 grep -v '^ *+' conftest.er1 >conftest.err
12331 cat conftest.err >&5
12332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333 (exit $ac_status); } &&
12334 { ac_try='test -z "$ac_c_werror_flag"
12335 || test ! -s conftest.err'
12336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12337 (eval $ac_try) 2>&5
12339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340 (exit $ac_status); }; } &&
12341 { ac_try='test -s conftest.$ac_objext'
12342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12343 (eval $ac_try) 2>&5
12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 (exit $ac_status); }; }; then
12347 ac_cv_prog_cc_g=yes
12349 echo "$as_me: failed program was:" >&5
12350 sed 's/^/| /' conftest.$ac_ext >&5
12354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12356 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12357 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12358 if test "$ac_test_CFLAGS" = set; then
12359 CFLAGS=$ac_save_CFLAGS
12360 elif test $ac_cv_prog_cc_g = yes; then
12361 if test "$GCC" = yes; then
12367 if test "$GCC" = yes; then
12373 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12374 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12375 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12376 echo $ECHO_N "(cached) $ECHO_C" >&6
12378 ac_cv_prog_cc_stdc=no
12380 cat >conftest.$ac_ext <<_ACEOF
12383 cat confdefs.h >>conftest.$ac_ext
12384 cat >>conftest.$ac_ext <<_ACEOF
12385 /* end confdefs.h. */
12386 #include <stdarg.h>
12388 #include <sys/types.h>
12389 #include <sys/stat.h>
12390 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12391 struct buf { int x; };
12392 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12393 static char *e (p, i)
12399 static char *f (char * (*g) (char **, int), char **p, ...)
12404 s = g (p, va_arg (v,int));
12409 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12410 function prototypes and stuff, but not '\xHH' hex character constants.
12411 These don't provoke an error unfortunately, instead are silently treated
12412 as 'x'. The following induces an error, until -std1 is added to get
12413 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12414 array size at least. It's necessary to write '\x00'==0 to get something
12415 that's true only with -std1. */
12416 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12418 int test (int i, double x);
12419 struct s1 {int (*f) (int a);};
12420 struct s2 {int (*f) (double a);};
12421 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12427 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12432 # Don't try gcc -ansi; that turns off useful extensions and
12433 # breaks some systems' header files.
12434 # AIX -qlanglvl=ansi
12435 # Ultrix and OSF/1 -std1
12436 # HP-UX 10.20 and later -Ae
12437 # HP-UX older versions -Aa -D_HPUX_SOURCE
12438 # SVR4 -Xc -D__EXTENSIONS__
12439 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12441 CC="$ac_save_CC $ac_arg"
12442 rm -f conftest.$ac_objext
12443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12444 (eval $ac_compile) 2>conftest.er1
12446 grep -v '^ *+' conftest.er1 >conftest.err
12448 cat conftest.err >&5
12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450 (exit $ac_status); } &&
12451 { ac_try='test -z "$ac_c_werror_flag"
12452 || test ! -s conftest.err'
12453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12454 (eval $ac_try) 2>&5
12456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457 (exit $ac_status); }; } &&
12458 { ac_try='test -s conftest.$ac_objext'
12459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12460 (eval $ac_try) 2>&5
12462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463 (exit $ac_status); }; }; then
12464 ac_cv_prog_cc_stdc=$ac_arg
12467 echo "$as_me: failed program was:" >&5
12468 sed 's/^/| /' conftest.$ac_ext >&5
12471 rm -f conftest.err conftest.$ac_objext
12473 rm -f conftest.$ac_ext conftest.$ac_objext
12478 case "x$ac_cv_prog_cc_stdc" in
12480 echo "$as_me:$LINENO: result: none needed" >&5
12481 echo "${ECHO_T}none needed" >&6 ;;
12483 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12484 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12485 CC="$CC $ac_cv_prog_cc_stdc" ;;
12488 # Some people use a C++ compiler to compile C. Since we use `exit',
12489 # in C++ we need to declare it. In case someone uses the same compiler
12490 # for both compiling C and C++ we need to have the C++ compiler decide
12491 # the declaration of exit, since it's the most demanding environment.
12492 cat >conftest.$ac_ext <<_ACEOF
12493 #ifndef __cplusplus
12497 rm -f conftest.$ac_objext
12498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12499 (eval $ac_compile) 2>conftest.er1
12501 grep -v '^ *+' conftest.er1 >conftest.err
12503 cat conftest.err >&5
12504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505 (exit $ac_status); } &&
12506 { ac_try='test -z "$ac_c_werror_flag"
12507 || test ! -s conftest.err'
12508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12509 (eval $ac_try) 2>&5
12511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512 (exit $ac_status); }; } &&
12513 { ac_try='test -s conftest.$ac_objext'
12514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12515 (eval $ac_try) 2>&5
12517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518 (exit $ac_status); }; }; then
12519 for ac_declaration in \
12521 'extern "C" void std::exit (int) throw (); using std::exit;' \
12522 'extern "C" void std::exit (int); using std::exit;' \
12523 'extern "C" void exit (int) throw ();' \
12524 'extern "C" void exit (int);' \
12527 cat >conftest.$ac_ext <<_ACEOF
12530 cat confdefs.h >>conftest.$ac_ext
12531 cat >>conftest.$ac_ext <<_ACEOF
12532 /* end confdefs.h. */
12534 #include <stdlib.h>
12543 rm -f conftest.$ac_objext
12544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12545 (eval $ac_compile) 2>conftest.er1
12547 grep -v '^ *+' conftest.er1 >conftest.err
12549 cat conftest.err >&5
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); } &&
12552 { ac_try='test -z "$ac_c_werror_flag"
12553 || test ! -s conftest.err'
12554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12555 (eval $ac_try) 2>&5
12557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558 (exit $ac_status); }; } &&
12559 { ac_try='test -s conftest.$ac_objext'
12560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12561 (eval $ac_try) 2>&5
12563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564 (exit $ac_status); }; }; then
12567 echo "$as_me: failed program was:" >&5
12568 sed 's/^/| /' conftest.$ac_ext >&5
12572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12573 cat >conftest.$ac_ext <<_ACEOF
12576 cat confdefs.h >>conftest.$ac_ext
12577 cat >>conftest.$ac_ext <<_ACEOF
12578 /* end confdefs.h. */
12588 rm -f conftest.$ac_objext
12589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12590 (eval $ac_compile) 2>conftest.er1
12592 grep -v '^ *+' conftest.er1 >conftest.err
12594 cat conftest.err >&5
12595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596 (exit $ac_status); } &&
12597 { ac_try='test -z "$ac_c_werror_flag"
12598 || test ! -s conftest.err'
12599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12600 (eval $ac_try) 2>&5
12602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603 (exit $ac_status); }; } &&
12604 { ac_try='test -s conftest.$ac_objext'
12605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12606 (eval $ac_try) 2>&5
12608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609 (exit $ac_status); }; }; then
12612 echo "$as_me: failed program was:" >&5
12613 sed 's/^/| /' conftest.$ac_ext >&5
12616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12619 if test -n "$ac_declaration"; then
12620 echo '#ifdef __cplusplus' >>confdefs.h
12621 echo $ac_declaration >>confdefs.h
12622 echo '#endif' >>confdefs.h
12626 echo "$as_me: failed program was:" >&5
12627 sed 's/^/| /' conftest.$ac_ext >&5
12630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12632 ac_cpp='$CPP $CPPFLAGS'
12633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12637 depcc="$CC" am_compiler_list=
12639 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12640 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12641 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12642 echo $ECHO_N "(cached) $ECHO_C" >&6
12644 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12645 # We make a subdir and do the tests there. Otherwise we can end up
12646 # making bogus files that we don't know about and never remove. For
12647 # instance it was reported that on HP-UX the gcc test will end up
12648 # making a dummy file named `D' -- because `-MD' means `put the output
12651 # Copy depcomp to subdir because otherwise we won't find it if we're
12652 # using a relative directory.
12653 cp "$am_depcomp" conftest.dir
12655 # We will build objects and dependencies in a subdirectory because
12656 # it helps to detect inapplicable dependency modes. For instance
12657 # both Tru64's cc and ICC support -MD to output dependencies as a
12658 # side effect of compilation, but ICC will put the dependencies in
12659 # the current directory while Tru64 will put them in the object
12663 am_cv_CC_dependencies_compiler_type=none
12664 if test "$am_compiler_list" = ""; then
12665 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12667 for depmode in $am_compiler_list; do
12668 # Setup a source with many dependencies, because some compilers
12669 # like to wrap large dependency lists on column 80 (with \), and
12670 # we should not choose a depcomp mode which is confused by this.
12672 # We need to recreate these files for each test, as the compiler may
12673 # overwrite some of them when testing with obscure command lines.
12674 # This happens at least with the AIX C compiler.
12676 for i in 1 2 3 4 5 6; do
12677 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12678 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12679 # Solaris 8's {/usr,}/bin/sh.
12680 touch sub/conftst$i.h
12682 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12686 # after this tag, mechanisms are not by side-effect, so they'll
12687 # only be used when explicitly requested
12688 if test "x$enable_dependency_tracking" = xyes; then
12696 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12697 # mode. It turns out that the SunPro C++ compiler does not properly
12698 # handle `-M -o', and we need to detect this.
12699 if depmode=$depmode \
12700 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12701 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12702 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12703 >/dev/null 2>conftest.err &&
12704 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12705 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12706 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12707 # icc doesn't choke on unknown options, it will just issue warnings
12708 # or remarks (even with -Werror). So we grep stderr for any message
12709 # that says an option was ignored or not supported.
12710 # When given -MP, icc 7.0 and 7.1 complain thusly:
12711 # icc: Command line warning: ignoring option '-M'; no argument required
12712 # The diagnosis changed in icc 8.0:
12713 # icc: Command line remark: option '-MP' not supported
12714 if (grep 'ignoring option' conftest.err ||
12715 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12716 am_cv_CC_dependencies_compiler_type=$depmode
12723 rm -rf conftest.dir
12725 am_cv_CC_dependencies_compiler_type=none
12729 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12730 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12731 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12736 test "x$enable_dependency_tracking" != xno \
12737 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12738 am__fastdepCC_TRUE=
12739 am__fastdepCC_FALSE='#'
12741 am__fastdepCC_TRUE='#'
12742 am__fastdepCC_FALSE=
12746 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
12747 { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
12748 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
12749 { (exit 1); exit 1; }; }
12752 # test for make depend flag
12755 if test -z "${MKDEP}"; then
12756 OL_MKDEP="${CC-cc}"
12757 if test -z "${MKDEP_FLAGS}"; then
12758 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
12759 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
12760 if test "${ol_cv_mkdep+set}" = set; then
12761 echo $ECHO_N "(cached) $ECHO_C" >&6
12765 for flag in "-M" "-xM"; do
12766 cat > conftest.c <<EOF
12769 if { ac_try='$OL_MKDEP $flag conftest.c'
12770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12771 (eval $ac_try) 2>&5
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); }; } \
12775 | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
12777 if test ! -f conftest."${ac_object}" ; then
12779 OL_MKDEP_FLAGS="$flag"
12787 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
12788 echo "${ECHO_T}$ol_cv_mkdep" >&6
12789 test "$ol_cv_mkdep" = no && OL_MKDEP=":"
12792 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12796 OL_MKDEP="${MKDEP}"
12797 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12802 if test "${ol_cv_mkdep}" = no ; then
12803 # this will soon become an error
12804 { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
12805 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
12808 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
12809 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
12810 if test "${ac_cv_lib_s_afopen+set}" = set; then
12811 echo $ECHO_N "(cached) $ECHO_C" >&6
12813 ac_check_lib_save_LIBS=$LIBS
12815 cat >conftest.$ac_ext <<_ACEOF
12818 cat confdefs.h >>conftest.$ac_ext
12819 cat >>conftest.$ac_ext <<_ACEOF
12820 /* end confdefs.h. */
12822 /* Override any gcc2 internal prototype to avoid an error. */
12826 /* We use char because int might match the return type of a gcc2
12827 builtin and then its argument prototype would still apply. */
12837 rm -f conftest.$ac_objext conftest$ac_exeext
12838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12839 (eval $ac_link) 2>conftest.er1
12841 grep -v '^ *+' conftest.er1 >conftest.err
12843 cat conftest.err >&5
12844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845 (exit $ac_status); } &&
12846 { ac_try='test -z "$ac_c_werror_flag"
12847 || test ! -s conftest.err'
12848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12849 (eval $ac_try) 2>&5
12851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12852 (exit $ac_status); }; } &&
12853 { ac_try='test -s conftest$ac_exeext'
12854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12855 (eval $ac_try) 2>&5
12857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858 (exit $ac_status); }; }; then
12859 ac_cv_lib_s_afopen=yes
12861 echo "$as_me: failed program was:" >&5
12862 sed 's/^/| /' conftest.$ac_ext >&5
12864 ac_cv_lib_s_afopen=no
12866 rm -f conftest.err conftest.$ac_objext \
12867 conftest$ac_exeext conftest.$ac_ext
12868 LIBS=$ac_check_lib_save_LIBS
12870 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
12871 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
12872 if test $ac_cv_lib_s_afopen = yes; then
12876 cat >>confdefs.h <<\_ACEOF
12877 #define HAVE_AIX_SECURITY 1
12886 ac_cv_func_getopt=no
12888 cat >>confdefs.h <<\_ACEOF
12889 #define BOTH_STRINGS_H 1
12896 WITH_MODULES_ENABLED=no
12897 if test $ol_enable_modules != no ; then
12899 for ac_header in ltdl.h
12901 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12902 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12903 echo "$as_me:$LINENO: checking for $ac_header" >&5
12904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12905 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12906 echo $ECHO_N "(cached) $ECHO_C" >&6
12908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12909 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12911 # Is the header compilable?
12912 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12913 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12914 cat >conftest.$ac_ext <<_ACEOF
12917 cat confdefs.h >>conftest.$ac_ext
12918 cat >>conftest.$ac_ext <<_ACEOF
12919 /* end confdefs.h. */
12920 $ac_includes_default
12921 #include <$ac_header>
12923 rm -f conftest.$ac_objext
12924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12925 (eval $ac_compile) 2>conftest.er1
12927 grep -v '^ *+' conftest.er1 >conftest.err
12929 cat conftest.err >&5
12930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931 (exit $ac_status); } &&
12932 { ac_try='test -z "$ac_c_werror_flag"
12933 || test ! -s conftest.err'
12934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12935 (eval $ac_try) 2>&5
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); }; } &&
12939 { ac_try='test -s conftest.$ac_objext'
12940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12941 (eval $ac_try) 2>&5
12943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944 (exit $ac_status); }; }; then
12945 ac_header_compiler=yes
12947 echo "$as_me: failed program was:" >&5
12948 sed 's/^/| /' conftest.$ac_ext >&5
12950 ac_header_compiler=no
12952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12953 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12954 echo "${ECHO_T}$ac_header_compiler" >&6
12956 # Is the header present?
12957 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12958 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12959 cat >conftest.$ac_ext <<_ACEOF
12962 cat confdefs.h >>conftest.$ac_ext
12963 cat >>conftest.$ac_ext <<_ACEOF
12964 /* end confdefs.h. */
12965 #include <$ac_header>
12967 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12968 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12970 grep -v '^ *+' conftest.er1 >conftest.err
12972 cat conftest.err >&5
12973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974 (exit $ac_status); } >/dev/null; then
12975 if test -s conftest.err; then
12976 ac_cpp_err=$ac_c_preproc_warn_flag
12977 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12984 if test -z "$ac_cpp_err"; then
12985 ac_header_preproc=yes
12987 echo "$as_me: failed program was:" >&5
12988 sed 's/^/| /' conftest.$ac_ext >&5
12990 ac_header_preproc=no
12992 rm -f conftest.err conftest.$ac_ext
12993 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12994 echo "${ECHO_T}$ac_header_preproc" >&6
12996 # So? What about this header?
12997 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12999 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13000 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13002 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13003 ac_header_preproc=yes
13006 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13007 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13008 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13009 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13010 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13011 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13012 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13013 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13014 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13015 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13016 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13017 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13020 ## --------------------------------------------- ##
13021 ## Report this to <http://www.openldap.org/its/> ##
13022 ## --------------------------------------------- ##
13025 sed "s/^/$as_me: WARNING: /" >&2
13028 echo "$as_me:$LINENO: checking for $ac_header" >&5
13029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13031 echo $ECHO_N "(cached) $ECHO_C" >&6
13033 eval "$as_ac_Header=\$ac_header_preproc"
13035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13036 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13039 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13040 cat >>confdefs.h <<_ACEOF
13041 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13049 if test $ac_cv_header_ltdl_h = no ; then
13050 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13051 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13052 { (exit 1); exit 1; }; }
13055 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13056 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
13057 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13058 echo $ECHO_N "(cached) $ECHO_C" >&6
13060 ac_check_lib_save_LIBS=$LIBS
13061 LIBS="-lltdl $LIBS"
13062 cat >conftest.$ac_ext <<_ACEOF
13065 cat confdefs.h >>conftest.$ac_ext
13066 cat >>conftest.$ac_ext <<_ACEOF
13067 /* end confdefs.h. */
13069 /* Override any gcc2 internal prototype to avoid an error. */
13073 /* We use char because int might match the return type of a gcc2
13074 builtin and then its argument prototype would still apply. */
13084 rm -f conftest.$ac_objext conftest$ac_exeext
13085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13086 (eval $ac_link) 2>conftest.er1
13088 grep -v '^ *+' conftest.er1 >conftest.err
13090 cat conftest.err >&5
13091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092 (exit $ac_status); } &&
13093 { ac_try='test -z "$ac_c_werror_flag"
13094 || test ! -s conftest.err'
13095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13096 (eval $ac_try) 2>&5
13098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099 (exit $ac_status); }; } &&
13100 { ac_try='test -s conftest$ac_exeext'
13101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13102 (eval $ac_try) 2>&5
13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); }; }; then
13106 ac_cv_lib_ltdl_lt_dlinit=yes
13108 echo "$as_me: failed program was:" >&5
13109 sed 's/^/| /' conftest.$ac_ext >&5
13111 ac_cv_lib_ltdl_lt_dlinit=no
13113 rm -f conftest.err conftest.$ac_objext \
13114 conftest$ac_exeext conftest.$ac_ext
13115 LIBS=$ac_check_lib_save_LIBS
13117 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13118 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
13119 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13121 MODULES_LIBS=-lltdl
13123 cat >>confdefs.h <<\_ACEOF
13124 #define HAVE_LIBLTDL 1
13131 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13132 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13133 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13134 { (exit 1); exit 1; }; }
13136 ol_link_modules=yes
13137 WITH_MODULES_ENABLED=yes
13140 for i in $Backends; do
13141 eval "ol_tmp=\$ol_enable_$i"
13142 if test $ol_tmp = mod ; then
13143 { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13144 echo "$as_me: WARNING: building static $i backend" >&2;}
13145 eval "ol_enable_$i=yes"
13148 for i in $Overlays; do
13149 eval "ol_tmp=\$ol_enable_$i"
13150 if test $ol_tmp = mod ; then
13151 { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13152 echo "$as_me: WARNING: building static $i overlay" >&2;}
13153 eval "ol_enable_$i=yes"
13159 echo "$as_me:$LINENO: checking for EBCDIC" >&5
13160 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
13161 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13162 echo $ECHO_N "(cached) $ECHO_C" >&6
13165 cat >conftest.$ac_ext <<_ACEOF
13168 cat confdefs.h >>conftest.$ac_ext
13169 cat >>conftest.$ac_ext <<_ACEOF
13170 /* end confdefs.h. */
13173 #include <__ASCII__/generate_error.h>
13177 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13178 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13180 grep -v '^ *+' conftest.er1 >conftest.err
13182 cat conftest.err >&5
13183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184 (exit $ac_status); } >/dev/null; then
13185 if test -s conftest.err; then
13186 ac_cpp_err=$ac_c_preproc_warn_flag
13187 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13194 if test -z "$ac_cpp_err"; then
13195 ol_cv_cpp_ebcdic=yes
13197 echo "$as_me: failed program was:" >&5
13198 sed 's/^/| /' conftest.$ac_ext >&5
13200 ol_cv_cpp_ebcdic=no
13202 rm -f conftest.err conftest.$ac_ext
13204 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
13205 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
13206 if test $ol_cv_cpp_ebcdic = yes ; then
13208 cat >>confdefs.h <<\_ACEOF
13209 #define HAVE_EBCDIC 1
13214 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13215 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13216 if test "${ol_cv_header_stdc+set}" = set; then
13217 echo $ECHO_N "(cached) $ECHO_C" >&6
13219 cat >conftest.$ac_ext <<_ACEOF
13222 cat confdefs.h >>conftest.$ac_ext
13223 cat >>conftest.$ac_ext <<_ACEOF
13224 /* end confdefs.h. */
13225 #include <stdlib.h>
13226 #include <stdarg.h>
13227 #include <string.h>
13230 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13231 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13233 grep -v '^ *+' conftest.er1 >conftest.err
13235 cat conftest.err >&5
13236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237 (exit $ac_status); } >/dev/null; then
13238 if test -s conftest.err; then
13239 ac_cpp_err=$ac_c_preproc_warn_flag
13240 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13247 if test -z "$ac_cpp_err"; then
13248 ol_cv_header_stdc=yes
13250 echo "$as_me: failed program was:" >&5
13251 sed 's/^/| /' conftest.$ac_ext >&5
13253 ol_cv_header_stdc=no
13255 rm -f conftest.err conftest.$ac_ext
13257 if test $ol_cv_header_stdc = yes; then
13258 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13259 cat >conftest.$ac_ext <<_ACEOF
13262 cat confdefs.h >>conftest.$ac_ext
13263 cat >>conftest.$ac_ext <<_ACEOF
13264 /* end confdefs.h. */
13265 #include <string.h>
13268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13269 $EGREP "memchr" >/dev/null 2>&1; then
13272 ol_cv_header_stdc=no
13278 if test $ol_cv_header_stdc = yes; then
13279 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13280 cat >conftest.$ac_ext <<_ACEOF
13283 cat confdefs.h >>conftest.$ac_ext
13284 cat >>conftest.$ac_ext <<_ACEOF
13285 /* end confdefs.h. */
13286 #include <stdlib.h>
13289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13290 $EGREP "free" >/dev/null 2>&1; then
13293 ol_cv_header_stdc=no
13299 if test $ol_cv_header_stdc = yes; then
13300 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13301 if test "$cross_compiling" = yes; then
13304 cat >conftest.$ac_ext <<_ACEOF
13307 cat confdefs.h >>conftest.$ac_ext
13308 cat >>conftest.$ac_ext <<_ACEOF
13309 /* end confdefs.h. */
13311 #ifndef HAVE_EBCDIC
13312 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13313 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13315 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13316 || ('j' <= (c) && (c) <= 'r') \
13317 || ('s' <= (c) && (c) <= 'z'))
13318 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13320 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13321 int main () { int i; for (i = 0; i < 256; i++)
13322 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13326 rm -f conftest$ac_exeext
13327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13328 (eval $ac_link) 2>&5
13330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13333 (eval $ac_try) 2>&5
13335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336 (exit $ac_status); }; }; then
13339 echo "$as_me: program exited with status $ac_status" >&5
13340 echo "$as_me: failed program was:" >&5
13341 sed 's/^/| /' conftest.$ac_ext >&5
13343 ( exit $ac_status )
13344 ol_cv_header_stdc=no
13346 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13350 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
13351 echo "${ECHO_T}$ol_cv_header_stdc" >&6
13352 if test $ol_cv_header_stdc = yes; then
13353 cat >>confdefs.h <<\_ACEOF
13354 #define STDC_HEADERS 1
13358 ac_cv_header_stdc=disable
13361 if test $ol_cv_header_stdc != yes; then
13362 { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
13363 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13371 ac_header_dirent=no
13372 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13373 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13374 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13375 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13377 echo $ECHO_N "(cached) $ECHO_C" >&6
13379 cat >conftest.$ac_ext <<_ACEOF
13382 cat confdefs.h >>conftest.$ac_ext
13383 cat >>conftest.$ac_ext <<_ACEOF
13384 /* end confdefs.h. */
13385 #include <sys/types.h>
13397 rm -f conftest.$ac_objext
13398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13399 (eval $ac_compile) 2>conftest.er1
13401 grep -v '^ *+' conftest.er1 >conftest.err
13403 cat conftest.err >&5
13404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405 (exit $ac_status); } &&
13406 { ac_try='test -z "$ac_c_werror_flag"
13407 || test ! -s conftest.err'
13408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13409 (eval $ac_try) 2>&5
13411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13412 (exit $ac_status); }; } &&
13413 { ac_try='test -s conftest.$ac_objext'
13414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13415 (eval $ac_try) 2>&5
13417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418 (exit $ac_status); }; }; then
13419 eval "$as_ac_Header=yes"
13421 echo "$as_me: failed program was:" >&5
13422 sed 's/^/| /' conftest.$ac_ext >&5
13424 eval "$as_ac_Header=no"
13426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13430 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13431 cat >>confdefs.h <<_ACEOF
13432 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13435 ac_header_dirent=$ac_hdr; break
13439 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13440 if test $ac_header_dirent = dirent.h; then
13441 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13442 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13443 if test "${ac_cv_search_opendir+set}" = set; then
13444 echo $ECHO_N "(cached) $ECHO_C" >&6
13446 ac_func_search_save_LIBS=$LIBS
13447 ac_cv_search_opendir=no
13448 cat >conftest.$ac_ext <<_ACEOF
13451 cat confdefs.h >>conftest.$ac_ext
13452 cat >>conftest.$ac_ext <<_ACEOF
13453 /* end confdefs.h. */
13455 /* Override any gcc2 internal prototype to avoid an error. */
13459 /* We use char because int might match the return type of a gcc2
13460 builtin and then its argument prototype would still apply. */
13470 rm -f conftest.$ac_objext conftest$ac_exeext
13471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13472 (eval $ac_link) 2>conftest.er1
13474 grep -v '^ *+' conftest.er1 >conftest.err
13476 cat conftest.err >&5
13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478 (exit $ac_status); } &&
13479 { ac_try='test -z "$ac_c_werror_flag"
13480 || test ! -s conftest.err'
13481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13482 (eval $ac_try) 2>&5
13484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485 (exit $ac_status); }; } &&
13486 { ac_try='test -s conftest$ac_exeext'
13487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13488 (eval $ac_try) 2>&5
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); }; }; then
13492 ac_cv_search_opendir="none required"
13494 echo "$as_me: failed program was:" >&5
13495 sed 's/^/| /' conftest.$ac_ext >&5
13498 rm -f conftest.err conftest.$ac_objext \
13499 conftest$ac_exeext conftest.$ac_ext
13500 if test "$ac_cv_search_opendir" = no; then
13501 for ac_lib in dir; do
13502 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13503 cat >conftest.$ac_ext <<_ACEOF
13506 cat confdefs.h >>conftest.$ac_ext
13507 cat >>conftest.$ac_ext <<_ACEOF
13508 /* end confdefs.h. */
13510 /* Override any gcc2 internal prototype to avoid an error. */
13514 /* We use char because int might match the return type of a gcc2
13515 builtin and then its argument prototype would still apply. */
13525 rm -f conftest.$ac_objext conftest$ac_exeext
13526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13527 (eval $ac_link) 2>conftest.er1
13529 grep -v '^ *+' conftest.er1 >conftest.err
13531 cat conftest.err >&5
13532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13533 (exit $ac_status); } &&
13534 { ac_try='test -z "$ac_c_werror_flag"
13535 || test ! -s conftest.err'
13536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13537 (eval $ac_try) 2>&5
13539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540 (exit $ac_status); }; } &&
13541 { ac_try='test -s conftest$ac_exeext'
13542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13543 (eval $ac_try) 2>&5
13545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13546 (exit $ac_status); }; }; then
13547 ac_cv_search_opendir="-l$ac_lib"
13550 echo "$as_me: failed program was:" >&5
13551 sed 's/^/| /' conftest.$ac_ext >&5
13554 rm -f conftest.err conftest.$ac_objext \
13555 conftest$ac_exeext conftest.$ac_ext
13558 LIBS=$ac_func_search_save_LIBS
13560 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13561 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13562 if test "$ac_cv_search_opendir" != no; then
13563 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13568 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13569 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13570 if test "${ac_cv_search_opendir+set}" = set; then
13571 echo $ECHO_N "(cached) $ECHO_C" >&6
13573 ac_func_search_save_LIBS=$LIBS
13574 ac_cv_search_opendir=no
13575 cat >conftest.$ac_ext <<_ACEOF
13578 cat confdefs.h >>conftest.$ac_ext
13579 cat >>conftest.$ac_ext <<_ACEOF
13580 /* end confdefs.h. */
13582 /* Override any gcc2 internal prototype to avoid an error. */
13586 /* We use char because int might match the return type of a gcc2
13587 builtin and then its argument prototype would still apply. */
13597 rm -f conftest.$ac_objext conftest$ac_exeext
13598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13599 (eval $ac_link) 2>conftest.er1
13601 grep -v '^ *+' conftest.er1 >conftest.err
13603 cat conftest.err >&5
13604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605 (exit $ac_status); } &&
13606 { ac_try='test -z "$ac_c_werror_flag"
13607 || test ! -s conftest.err'
13608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13609 (eval $ac_try) 2>&5
13611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612 (exit $ac_status); }; } &&
13613 { ac_try='test -s conftest$ac_exeext'
13614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13615 (eval $ac_try) 2>&5
13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); }; }; then
13619 ac_cv_search_opendir="none required"
13621 echo "$as_me: failed program was:" >&5
13622 sed 's/^/| /' conftest.$ac_ext >&5
13625 rm -f conftest.err conftest.$ac_objext \
13626 conftest$ac_exeext conftest.$ac_ext
13627 if test "$ac_cv_search_opendir" = no; then
13628 for ac_lib in x; do
13629 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13630 cat >conftest.$ac_ext <<_ACEOF
13633 cat confdefs.h >>conftest.$ac_ext
13634 cat >>conftest.$ac_ext <<_ACEOF
13635 /* end confdefs.h. */
13637 /* Override any gcc2 internal prototype to avoid an error. */
13641 /* We use char because int might match the return type of a gcc2
13642 builtin and then its argument prototype would still apply. */
13652 rm -f conftest.$ac_objext conftest$ac_exeext
13653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13654 (eval $ac_link) 2>conftest.er1
13656 grep -v '^ *+' conftest.er1 >conftest.err
13658 cat conftest.err >&5
13659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660 (exit $ac_status); } &&
13661 { ac_try='test -z "$ac_c_werror_flag"
13662 || test ! -s conftest.err'
13663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13664 (eval $ac_try) 2>&5
13666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667 (exit $ac_status); }; } &&
13668 { ac_try='test -s conftest$ac_exeext'
13669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13670 (eval $ac_try) 2>&5
13672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673 (exit $ac_status); }; }; then
13674 ac_cv_search_opendir="-l$ac_lib"
13677 echo "$as_me: failed program was:" >&5
13678 sed 's/^/| /' conftest.$ac_ext >&5
13681 rm -f conftest.err conftest.$ac_objext \
13682 conftest$ac_exeext conftest.$ac_ext
13685 LIBS=$ac_func_search_save_LIBS
13687 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13688 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13689 if test "$ac_cv_search_opendir" != no; then
13690 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13696 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13697 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13698 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13699 echo $ECHO_N "(cached) $ECHO_C" >&6
13701 cat >conftest.$ac_ext <<_ACEOF
13704 cat confdefs.h >>conftest.$ac_ext
13705 cat >>conftest.$ac_ext <<_ACEOF
13706 /* end confdefs.h. */
13707 #include <sys/types.h>
13708 #include <sys/wait.h>
13709 #ifndef WEXITSTATUS
13710 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13713 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13721 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13726 rm -f conftest.$ac_objext
13727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13728 (eval $ac_compile) 2>conftest.er1
13730 grep -v '^ *+' conftest.er1 >conftest.err
13732 cat conftest.err >&5
13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); } &&
13735 { ac_try='test -z "$ac_c_werror_flag"
13736 || test ! -s conftest.err'
13737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13738 (eval $ac_try) 2>&5
13740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741 (exit $ac_status); }; } &&
13742 { ac_try='test -s conftest.$ac_objext'
13743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13744 (eval $ac_try) 2>&5
13746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747 (exit $ac_status); }; }; then
13748 ac_cv_header_sys_wait_h=yes
13750 echo "$as_me: failed program was:" >&5
13751 sed 's/^/| /' conftest.$ac_ext >&5
13753 ac_cv_header_sys_wait_h=no
13755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13757 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13758 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13759 if test $ac_cv_header_sys_wait_h = yes; then
13761 cat >>confdefs.h <<\_ACEOF
13762 #define HAVE_SYS_WAIT_H 1
13767 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
13768 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
13769 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
13770 echo $ECHO_N "(cached) $ECHO_C" >&6
13772 cat >conftest.$ac_ext <<_ACEOF
13775 cat confdefs.h >>conftest.$ac_ext
13776 cat >>conftest.$ac_ext <<_ACEOF
13777 /* end confdefs.h. */
13778 #include <sys/types.h>
13779 #include <termios.h>
13785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13786 $EGREP "yes" >/dev/null 2>&1; then
13787 ac_cv_sys_tiocgwinsz_in_termios_h=yes
13789 ac_cv_sys_tiocgwinsz_in_termios_h=no
13794 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13795 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
13797 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13798 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13799 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
13800 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
13801 echo $ECHO_N "(cached) $ECHO_C" >&6
13803 cat >conftest.$ac_ext <<_ACEOF
13806 cat confdefs.h >>conftest.$ac_ext
13807 cat >>conftest.$ac_ext <<_ACEOF
13808 /* end confdefs.h. */
13809 #include <sys/types.h>
13810 #include <sys/ioctl.h>
13816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13817 $EGREP "yes" >/dev/null 2>&1; then
13818 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13820 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13825 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13826 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
13828 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13830 cat >>confdefs.h <<\_ACEOF
13831 #define GWINSZ_IN_SYS_IOCTL 1
13935 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13937 echo "$as_me:$LINENO: checking for $ac_header" >&5
13938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13940 echo $ECHO_N "(cached) $ECHO_C" >&6
13942 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13943 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13945 # Is the header compilable?
13946 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13947 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13948 cat >conftest.$ac_ext <<_ACEOF
13951 cat confdefs.h >>conftest.$ac_ext
13952 cat >>conftest.$ac_ext <<_ACEOF
13953 /* end confdefs.h. */
13954 $ac_includes_default
13955 #include <$ac_header>
13957 rm -f conftest.$ac_objext
13958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13959 (eval $ac_compile) 2>conftest.er1
13961 grep -v '^ *+' conftest.er1 >conftest.err
13963 cat conftest.err >&5
13964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965 (exit $ac_status); } &&
13966 { ac_try='test -z "$ac_c_werror_flag"
13967 || test ! -s conftest.err'
13968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13969 (eval $ac_try) 2>&5
13971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972 (exit $ac_status); }; } &&
13973 { ac_try='test -s conftest.$ac_objext'
13974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13975 (eval $ac_try) 2>&5
13977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13978 (exit $ac_status); }; }; then
13979 ac_header_compiler=yes
13981 echo "$as_me: failed program was:" >&5
13982 sed 's/^/| /' conftest.$ac_ext >&5
13984 ac_header_compiler=no
13986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13987 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13988 echo "${ECHO_T}$ac_header_compiler" >&6
13990 # Is the header present?
13991 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13992 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13993 cat >conftest.$ac_ext <<_ACEOF
13996 cat confdefs.h >>conftest.$ac_ext
13997 cat >>conftest.$ac_ext <<_ACEOF
13998 /* end confdefs.h. */
13999 #include <$ac_header>
14001 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14002 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14004 grep -v '^ *+' conftest.er1 >conftest.err
14006 cat conftest.err >&5
14007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14008 (exit $ac_status); } >/dev/null; then
14009 if test -s conftest.err; then
14010 ac_cpp_err=$ac_c_preproc_warn_flag
14011 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14018 if test -z "$ac_cpp_err"; then
14019 ac_header_preproc=yes
14021 echo "$as_me: failed program was:" >&5
14022 sed 's/^/| /' conftest.$ac_ext >&5
14024 ac_header_preproc=no
14026 rm -f conftest.err conftest.$ac_ext
14027 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14028 echo "${ECHO_T}$ac_header_preproc" >&6
14030 # So? What about this header?
14031 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14033 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14034 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14036 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14037 ac_header_preproc=yes
14040 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14041 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14042 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14043 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14044 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14045 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14046 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14047 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14049 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14050 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14051 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14054 ## --------------------------------------------- ##
14055 ## Report this to <http://www.openldap.org/its/> ##
14056 ## --------------------------------------------- ##
14059 sed "s/^/$as_me: WARNING: /" >&2
14062 echo "$as_me:$LINENO: checking for $ac_header" >&5
14063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14064 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14065 echo $ECHO_N "(cached) $ECHO_C" >&6
14067 eval "$as_ac_Header=\$ac_header_preproc"
14069 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14070 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14073 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14074 cat >>confdefs.h <<_ACEOF
14075 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14083 if test "$ac_cv_mingw32" = yes ; then
14086 for ac_header in winsock.h winsock2.h
14088 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14089 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14090 echo "$as_me:$LINENO: checking for $ac_header" >&5
14091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14093 echo $ECHO_N "(cached) $ECHO_C" >&6
14095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14096 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14098 # Is the header compilable?
14099 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14100 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14101 cat >conftest.$ac_ext <<_ACEOF
14104 cat confdefs.h >>conftest.$ac_ext
14105 cat >>conftest.$ac_ext <<_ACEOF
14106 /* end confdefs.h. */
14107 $ac_includes_default
14108 #include <$ac_header>
14110 rm -f conftest.$ac_objext
14111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14112 (eval $ac_compile) 2>conftest.er1
14114 grep -v '^ *+' conftest.er1 >conftest.err
14116 cat conftest.err >&5
14117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14118 (exit $ac_status); } &&
14119 { ac_try='test -z "$ac_c_werror_flag"
14120 || test ! -s conftest.err'
14121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14122 (eval $ac_try) 2>&5
14124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125 (exit $ac_status); }; } &&
14126 { ac_try='test -s conftest.$ac_objext'
14127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14128 (eval $ac_try) 2>&5
14130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131 (exit $ac_status); }; }; then
14132 ac_header_compiler=yes
14134 echo "$as_me: failed program was:" >&5
14135 sed 's/^/| /' conftest.$ac_ext >&5
14137 ac_header_compiler=no
14139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14140 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14141 echo "${ECHO_T}$ac_header_compiler" >&6
14143 # Is the header present?
14144 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14145 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14146 cat >conftest.$ac_ext <<_ACEOF
14149 cat confdefs.h >>conftest.$ac_ext
14150 cat >>conftest.$ac_ext <<_ACEOF
14151 /* end confdefs.h. */
14152 #include <$ac_header>
14154 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14155 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14157 grep -v '^ *+' conftest.er1 >conftest.err
14159 cat conftest.err >&5
14160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161 (exit $ac_status); } >/dev/null; then
14162 if test -s conftest.err; then
14163 ac_cpp_err=$ac_c_preproc_warn_flag
14164 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14171 if test -z "$ac_cpp_err"; then
14172 ac_header_preproc=yes
14174 echo "$as_me: failed program was:" >&5
14175 sed 's/^/| /' conftest.$ac_ext >&5
14177 ac_header_preproc=no
14179 rm -f conftest.err conftest.$ac_ext
14180 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14181 echo "${ECHO_T}$ac_header_preproc" >&6
14183 # So? What about this header?
14184 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14186 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14187 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14188 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14189 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14190 ac_header_preproc=yes
14193 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14194 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14195 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14196 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14197 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14198 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14199 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14200 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14201 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14202 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14203 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14204 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14207 ## --------------------------------------------- ##
14208 ## Report this to <http://www.openldap.org/its/> ##
14209 ## --------------------------------------------- ##
14212 sed "s/^/$as_me: WARNING: /" >&2
14215 echo "$as_me:$LINENO: checking for $ac_header" >&5
14216 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14217 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14218 echo $ECHO_N "(cached) $ECHO_C" >&6
14220 eval "$as_ac_Header=\$ac_header_preproc"
14222 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14223 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14226 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14227 cat >>confdefs.h <<_ACEOF
14228 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14238 for ac_header in resolv.h
14240 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14241 echo "$as_me:$LINENO: checking for $ac_header" >&5
14242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14244 echo $ECHO_N "(cached) $ECHO_C" >&6
14246 cat >conftest.$ac_ext <<_ACEOF
14249 cat confdefs.h >>conftest.$ac_ext
14250 cat >>conftest.$ac_ext <<_ACEOF
14251 /* end confdefs.h. */
14252 $ac_includes_default
14253 #include <netinet/in.h>
14256 #include <$ac_header>
14258 rm -f conftest.$ac_objext
14259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14260 (eval $ac_compile) 2>conftest.er1
14262 grep -v '^ *+' conftest.er1 >conftest.err
14264 cat conftest.err >&5
14265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266 (exit $ac_status); } &&
14267 { ac_try='test -z "$ac_c_werror_flag"
14268 || test ! -s conftest.err'
14269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14270 (eval $ac_try) 2>&5
14272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273 (exit $ac_status); }; } &&
14274 { ac_try='test -s conftest.$ac_objext'
14275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14276 (eval $ac_try) 2>&5
14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 (exit $ac_status); }; }; then
14280 eval "$as_ac_Header=yes"
14282 echo "$as_me: failed program was:" >&5
14283 sed 's/^/| /' conftest.$ac_ext >&5
14285 eval "$as_ac_Header=no"
14287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14290 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14291 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14292 cat >>confdefs.h <<_ACEOF
14293 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14302 for ac_header in netinet/tcp.h
14304 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14305 echo "$as_me:$LINENO: checking for $ac_header" >&5
14306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14308 echo $ECHO_N "(cached) $ECHO_C" >&6
14310 cat >conftest.$ac_ext <<_ACEOF
14313 cat confdefs.h >>conftest.$ac_ext
14314 cat >>conftest.$ac_ext <<_ACEOF
14315 /* end confdefs.h. */
14316 $ac_includes_default
14317 #include <netinet/in.h>
14320 #include <$ac_header>
14322 rm -f conftest.$ac_objext
14323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14324 (eval $ac_compile) 2>conftest.er1
14326 grep -v '^ *+' conftest.er1 >conftest.err
14328 cat conftest.err >&5
14329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330 (exit $ac_status); } &&
14331 { ac_try='test -z "$ac_c_werror_flag"
14332 || test ! -s conftest.err'
14333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14334 (eval $ac_try) 2>&5
14336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14337 (exit $ac_status); }; } &&
14338 { ac_try='test -s conftest.$ac_objext'
14339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14340 (eval $ac_try) 2>&5
14342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14343 (exit $ac_status); }; }; then
14344 eval "$as_ac_Header=yes"
14346 echo "$as_me: failed program was:" >&5
14347 sed 's/^/| /' conftest.$ac_ext >&5
14349 eval "$as_ac_Header=no"
14351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14353 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14354 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14355 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14356 cat >>confdefs.h <<_ACEOF
14357 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14366 for ac_header in sys/ucred.h
14368 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14369 echo "$as_me:$LINENO: checking for $ac_header" >&5
14370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14371 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14372 echo $ECHO_N "(cached) $ECHO_C" >&6
14374 cat >conftest.$ac_ext <<_ACEOF
14377 cat confdefs.h >>conftest.$ac_ext
14378 cat >>conftest.$ac_ext <<_ACEOF
14379 /* end confdefs.h. */
14380 $ac_includes_default
14381 #ifdef HAVE_SYS_PARAM_H
14382 #include <sys/param.h>
14386 #include <$ac_header>
14388 rm -f conftest.$ac_objext
14389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14390 (eval $ac_compile) 2>conftest.er1
14392 grep -v '^ *+' conftest.er1 >conftest.err
14394 cat conftest.err >&5
14395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396 (exit $ac_status); } &&
14397 { ac_try='test -z "$ac_c_werror_flag"
14398 || test ! -s conftest.err'
14399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14400 (eval $ac_try) 2>&5
14402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403 (exit $ac_status); }; } &&
14404 { ac_try='test -s conftest.$ac_objext'
14405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14406 (eval $ac_try) 2>&5
14408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409 (exit $ac_status); }; }; then
14410 eval "$as_ac_Header=yes"
14412 echo "$as_me: failed program was:" >&5
14413 sed 's/^/| /' conftest.$ac_ext >&5
14415 eval "$as_ac_Header=no"
14417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14420 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14421 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14422 cat >>confdefs.h <<_ACEOF
14423 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14434 for ac_func in sigaction sigset
14436 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14437 echo "$as_me:$LINENO: checking for $ac_func" >&5
14438 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14439 if eval "test \"\${$as_ac_var+set}\" = set"; then
14440 echo $ECHO_N "(cached) $ECHO_C" >&6
14442 cat >conftest.$ac_ext <<_ACEOF
14445 cat confdefs.h >>conftest.$ac_ext
14446 cat >>conftest.$ac_ext <<_ACEOF
14447 /* end confdefs.h. */
14448 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14449 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14450 #define $ac_func innocuous_$ac_func
14452 /* System header to define __stub macros and hopefully few prototypes,
14453 which can conflict with char $ac_func (); below.
14454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14455 <limits.h> exists even on freestanding compilers. */
14458 # include <limits.h>
14460 # include <assert.h>
14465 /* Override any gcc2 internal prototype to avoid an error. */
14470 /* We use char because int might match the return type of a gcc2
14471 builtin and then its argument prototype would still apply. */
14473 /* The GNU C library defines this for functions which it implements
14474 to always fail with ENOSYS. Some functions are actually named
14475 something starting with __ and the normal name is an alias. */
14476 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14479 char (*f) () = $ac_func;
14488 return f != $ac_func;
14493 rm -f conftest.$ac_objext conftest$ac_exeext
14494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14495 (eval $ac_link) 2>conftest.er1
14497 grep -v '^ *+' conftest.er1 >conftest.err
14499 cat conftest.err >&5
14500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14501 (exit $ac_status); } &&
14502 { ac_try='test -z "$ac_c_werror_flag"
14503 || test ! -s conftest.err'
14504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14505 (eval $ac_try) 2>&5
14507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14508 (exit $ac_status); }; } &&
14509 { ac_try='test -s conftest$ac_exeext'
14510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14511 (eval $ac_try) 2>&5
14513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14514 (exit $ac_status); }; }; then
14515 eval "$as_ac_var=yes"
14517 echo "$as_me: failed program was:" >&5
14518 sed 's/^/| /' conftest.$ac_ext >&5
14520 eval "$as_ac_var=no"
14522 rm -f conftest.err conftest.$ac_objext \
14523 conftest$ac_exeext conftest.$ac_ext
14525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14526 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14527 if test `eval echo '${'$as_ac_var'}'` = yes; then
14528 cat >>confdefs.h <<_ACEOF
14529 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14536 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
14538 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
14539 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
14540 if test "${ac_cv_lib_V3_sigset+set}" = set; then
14541 echo $ECHO_N "(cached) $ECHO_C" >&6
14543 ac_check_lib_save_LIBS=$LIBS
14545 cat >conftest.$ac_ext <<_ACEOF
14548 cat confdefs.h >>conftest.$ac_ext
14549 cat >>conftest.$ac_ext <<_ACEOF
14550 /* end confdefs.h. */
14552 /* Override any gcc2 internal prototype to avoid an error. */
14556 /* We use char because int might match the return type of a gcc2
14557 builtin and then its argument prototype would still apply. */
14567 rm -f conftest.$ac_objext conftest$ac_exeext
14568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14569 (eval $ac_link) 2>conftest.er1
14571 grep -v '^ *+' conftest.er1 >conftest.err
14573 cat conftest.err >&5
14574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575 (exit $ac_status); } &&
14576 { ac_try='test -z "$ac_c_werror_flag"
14577 || test ! -s conftest.err'
14578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14579 (eval $ac_try) 2>&5
14581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582 (exit $ac_status); }; } &&
14583 { ac_try='test -s conftest$ac_exeext'
14584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14585 (eval $ac_try) 2>&5
14587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588 (exit $ac_status); }; }; then
14589 ac_cv_lib_V3_sigset=yes
14591 echo "$as_me: failed program was:" >&5
14592 sed 's/^/| /' conftest.$ac_ext >&5
14594 ac_cv_lib_V3_sigset=no
14596 rm -f conftest.err conftest.$ac_objext \
14597 conftest$ac_exeext conftest.$ac_ext
14598 LIBS=$ac_check_lib_save_LIBS
14600 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
14601 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
14602 if test $ac_cv_lib_V3_sigset = yes; then
14603 cat >>confdefs.h <<_ACEOF
14604 #define HAVE_LIBV3 1
14613 if test "$ac_cv_header_winsock_h" = yes; then
14614 echo "$as_me:$LINENO: checking for winsock" >&5
14615 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
14616 if test "${ol_cv_winsock+set}" = set; then
14617 echo $ECHO_N "(cached) $ECHO_C" >&6
14620 for curlib in ws2_32 wsock32; do
14621 LIBS="$LIBS -l$curlib"
14622 cat >conftest.$ac_ext <<_ACEOF
14625 cat confdefs.h >>conftest.$ac_ext
14626 cat >>conftest.$ac_ext <<_ACEOF
14627 /* end confdefs.h. */
14628 #include <winsock.h>
14635 select(0,NULL,NULL,NULL,NULL);
14637 gethostname(NULL,0);
14643 rm -f conftest.$ac_objext conftest$ac_exeext
14644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14645 (eval $ac_link) 2>conftest.er1
14647 grep -v '^ *+' conftest.er1 >conftest.err
14649 cat conftest.err >&5
14650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651 (exit $ac_status); } &&
14652 { ac_try='test -z "$ac_c_werror_flag"
14653 || test ! -s conftest.err'
14654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14655 (eval $ac_try) 2>&5
14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); }; } &&
14659 { ac_try='test -s conftest$ac_exeext'
14660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14661 (eval $ac_try) 2>&5
14663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664 (exit $ac_status); }; }; then
14667 echo "$as_me: failed program was:" >&5
14668 sed 's/^/| /' conftest.$ac_ext >&5
14672 rm -f conftest.err conftest.$ac_objext \
14673 conftest$ac_exeext conftest.$ac_ext
14675 if test $ol_cv_winsock = yes; then
14677 cat >>confdefs.h <<\_ACEOF
14678 #define HAVE_WINSOCK 1
14681 ac_cv_func_socket=yes
14682 ac_cv_func_select=yes
14683 ac_cv_func_closesocket=yes
14684 ac_cv_func_gethostname=yes
14685 if test $curlib = ws2_32; then
14686 ol_cv_winsock=winsock2
14688 cat >>confdefs.h <<\_ACEOF
14689 #define HAVE_WINSOCK2 1
14698 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
14699 echo "${ECHO_T}$ol_cv_winsock" >&6
14703 echo "$as_me:$LINENO: checking for socket" >&5
14704 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14705 if test "${ac_cv_func_socket+set}" = set; then
14706 echo $ECHO_N "(cached) $ECHO_C" >&6
14708 cat >conftest.$ac_ext <<_ACEOF
14711 cat confdefs.h >>conftest.$ac_ext
14712 cat >>conftest.$ac_ext <<_ACEOF
14713 /* end confdefs.h. */
14714 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
14715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14716 #define socket innocuous_socket
14718 /* System header to define __stub macros and hopefully few prototypes,
14719 which can conflict with char socket (); below.
14720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14721 <limits.h> exists even on freestanding compilers. */
14724 # include <limits.h>
14726 # include <assert.h>
14731 /* Override any gcc2 internal prototype to avoid an error. */
14736 /* We use char because int might match the return type of a gcc2
14737 builtin and then its argument prototype would still apply. */
14739 /* The GNU C library defines this for functions which it implements
14740 to always fail with ENOSYS. Some functions are actually named
14741 something starting with __ and the normal name is an alias. */
14742 #if defined (__stub_socket) || defined (__stub___socket)
14745 char (*f) () = socket;
14754 return f != socket;
14759 rm -f conftest.$ac_objext conftest$ac_exeext
14760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14761 (eval $ac_link) 2>conftest.er1
14763 grep -v '^ *+' conftest.er1 >conftest.err
14765 cat conftest.err >&5
14766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767 (exit $ac_status); } &&
14768 { ac_try='test -z "$ac_c_werror_flag"
14769 || test ! -s conftest.err'
14770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14771 (eval $ac_try) 2>&5
14773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774 (exit $ac_status); }; } &&
14775 { ac_try='test -s conftest$ac_exeext'
14776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14777 (eval $ac_try) 2>&5
14779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780 (exit $ac_status); }; }; then
14781 ac_cv_func_socket=yes
14783 echo "$as_me: failed program was:" >&5
14784 sed 's/^/| /' conftest.$ac_ext >&5
14786 ac_cv_func_socket=no
14788 rm -f conftest.err conftest.$ac_objext \
14789 conftest$ac_exeext conftest.$ac_ext
14791 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14792 echo "${ECHO_T}$ac_cv_func_socket" >&6
14793 if test $ac_cv_func_socket = yes; then
14798 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
14799 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
14800 if test "${ac_cv_lib_socket_main+set}" = set; then
14801 echo $ECHO_N "(cached) $ECHO_C" >&6
14803 ac_check_lib_save_LIBS=$LIBS
14804 LIBS="-lsocket $LIBS"
14805 cat >conftest.$ac_ext <<_ACEOF
14808 cat confdefs.h >>conftest.$ac_ext
14809 cat >>conftest.$ac_ext <<_ACEOF
14810 /* end confdefs.h. */
14821 rm -f conftest.$ac_objext conftest$ac_exeext
14822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14823 (eval $ac_link) 2>conftest.er1
14825 grep -v '^ *+' conftest.er1 >conftest.err
14827 cat conftest.err >&5
14828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829 (exit $ac_status); } &&
14830 { ac_try='test -z "$ac_c_werror_flag"
14831 || test ! -s conftest.err'
14832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14833 (eval $ac_try) 2>&5
14835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836 (exit $ac_status); }; } &&
14837 { ac_try='test -s conftest$ac_exeext'
14838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14839 (eval $ac_try) 2>&5
14841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842 (exit $ac_status); }; }; then
14843 ac_cv_lib_socket_main=yes
14845 echo "$as_me: failed program was:" >&5
14846 sed 's/^/| /' conftest.$ac_ext >&5
14848 ac_cv_lib_socket_main=no
14850 rm -f conftest.err conftest.$ac_objext \
14851 conftest$ac_exeext conftest.$ac_ext
14852 LIBS=$ac_check_lib_save_LIBS
14854 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
14855 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
14856 if test $ac_cv_lib_socket_main = yes; then
14857 cat >>confdefs.h <<_ACEOF
14858 #define HAVE_LIBSOCKET 1
14861 LIBS="-lsocket $LIBS"
14866 echo "$as_me:$LINENO: checking for main in -lnet" >&5
14867 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
14868 if test "${ac_cv_lib_net_main+set}" = set; then
14869 echo $ECHO_N "(cached) $ECHO_C" >&6
14871 ac_check_lib_save_LIBS=$LIBS
14873 cat >conftest.$ac_ext <<_ACEOF
14876 cat confdefs.h >>conftest.$ac_ext
14877 cat >>conftest.$ac_ext <<_ACEOF
14878 /* end confdefs.h. */
14889 rm -f conftest.$ac_objext conftest$ac_exeext
14890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14891 (eval $ac_link) 2>conftest.er1
14893 grep -v '^ *+' conftest.er1 >conftest.err
14895 cat conftest.err >&5
14896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14897 (exit $ac_status); } &&
14898 { ac_try='test -z "$ac_c_werror_flag"
14899 || test ! -s conftest.err'
14900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14901 (eval $ac_try) 2>&5
14903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904 (exit $ac_status); }; } &&
14905 { ac_try='test -s conftest$ac_exeext'
14906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14907 (eval $ac_try) 2>&5
14909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910 (exit $ac_status); }; }; then
14911 ac_cv_lib_net_main=yes
14913 echo "$as_me: failed program was:" >&5
14914 sed 's/^/| /' conftest.$ac_ext >&5
14916 ac_cv_lib_net_main=no
14918 rm -f conftest.err conftest.$ac_objext \
14919 conftest$ac_exeext conftest.$ac_ext
14920 LIBS=$ac_check_lib_save_LIBS
14922 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
14923 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
14924 if test $ac_cv_lib_net_main = yes; then
14925 cat >>confdefs.h <<_ACEOF
14926 #define HAVE_LIBNET 1
14934 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
14935 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
14936 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
14937 echo $ECHO_N "(cached) $ECHO_C" >&6
14939 ac_check_lib_save_LIBS=$LIBS
14940 LIBS="-lnsl_s $LIBS"
14941 cat >conftest.$ac_ext <<_ACEOF
14944 cat confdefs.h >>conftest.$ac_ext
14945 cat >>conftest.$ac_ext <<_ACEOF
14946 /* end confdefs.h. */
14957 rm -f conftest.$ac_objext conftest$ac_exeext
14958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14959 (eval $ac_link) 2>conftest.er1
14961 grep -v '^ *+' conftest.er1 >conftest.err
14963 cat conftest.err >&5
14964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14965 (exit $ac_status); } &&
14966 { ac_try='test -z "$ac_c_werror_flag"
14967 || test ! -s conftest.err'
14968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14969 (eval $ac_try) 2>&5
14971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972 (exit $ac_status); }; } &&
14973 { ac_try='test -s conftest$ac_exeext'
14974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14975 (eval $ac_try) 2>&5
14977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978 (exit $ac_status); }; }; then
14979 ac_cv_lib_nsl_s_main=yes
14981 echo "$as_me: failed program was:" >&5
14982 sed 's/^/| /' conftest.$ac_ext >&5
14984 ac_cv_lib_nsl_s_main=no
14986 rm -f conftest.err conftest.$ac_objext \
14987 conftest$ac_exeext conftest.$ac_ext
14988 LIBS=$ac_check_lib_save_LIBS
14990 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
14991 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
14992 if test $ac_cv_lib_nsl_s_main = yes; then
14993 cat >>confdefs.h <<_ACEOF
14994 #define HAVE_LIBNSL_S 1
14997 LIBS="-lnsl_s $LIBS"
15002 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
15003 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
15004 if test "${ac_cv_lib_nsl_main+set}" = set; then
15005 echo $ECHO_N "(cached) $ECHO_C" >&6
15007 ac_check_lib_save_LIBS=$LIBS
15009 cat >conftest.$ac_ext <<_ACEOF
15012 cat confdefs.h >>conftest.$ac_ext
15013 cat >>conftest.$ac_ext <<_ACEOF
15014 /* end confdefs.h. */
15025 rm -f conftest.$ac_objext conftest$ac_exeext
15026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15027 (eval $ac_link) 2>conftest.er1
15029 grep -v '^ *+' conftest.er1 >conftest.err
15031 cat conftest.err >&5
15032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033 (exit $ac_status); } &&
15034 { ac_try='test -z "$ac_c_werror_flag"
15035 || test ! -s conftest.err'
15036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15037 (eval $ac_try) 2>&5
15039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15040 (exit $ac_status); }; } &&
15041 { ac_try='test -s conftest$ac_exeext'
15042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15043 (eval $ac_try) 2>&5
15045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046 (exit $ac_status); }; }; then
15047 ac_cv_lib_nsl_main=yes
15049 echo "$as_me: failed program was:" >&5
15050 sed 's/^/| /' conftest.$ac_ext >&5
15052 ac_cv_lib_nsl_main=no
15054 rm -f conftest.err conftest.$ac_objext \
15055 conftest$ac_exeext conftest.$ac_ext
15056 LIBS=$ac_check_lib_save_LIBS
15058 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
15059 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
15060 if test $ac_cv_lib_nsl_main = yes; then
15061 cat >>confdefs.h <<_ACEOF
15062 #define HAVE_LIBNSL 1
15070 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15071 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15072 if test "${ac_cv_lib_inet_socket+set}" = set; then
15073 echo $ECHO_N "(cached) $ECHO_C" >&6
15075 ac_check_lib_save_LIBS=$LIBS
15076 LIBS="-linet $LIBS"
15077 cat >conftest.$ac_ext <<_ACEOF
15080 cat confdefs.h >>conftest.$ac_ext
15081 cat >>conftest.$ac_ext <<_ACEOF
15082 /* end confdefs.h. */
15084 /* Override any gcc2 internal prototype to avoid an error. */
15088 /* We use char because int might match the return type of a gcc2
15089 builtin and then its argument prototype would still apply. */
15099 rm -f conftest.$ac_objext conftest$ac_exeext
15100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15101 (eval $ac_link) 2>conftest.er1
15103 grep -v '^ *+' conftest.er1 >conftest.err
15105 cat conftest.err >&5
15106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107 (exit $ac_status); } &&
15108 { ac_try='test -z "$ac_c_werror_flag"
15109 || test ! -s conftest.err'
15110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15111 (eval $ac_try) 2>&5
15113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114 (exit $ac_status); }; } &&
15115 { ac_try='test -s conftest$ac_exeext'
15116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15117 (eval $ac_try) 2>&5
15119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120 (exit $ac_status); }; }; then
15121 ac_cv_lib_inet_socket=yes
15123 echo "$as_me: failed program was:" >&5
15124 sed 's/^/| /' conftest.$ac_ext >&5
15126 ac_cv_lib_inet_socket=no
15128 rm -f conftest.err conftest.$ac_objext \
15129 conftest$ac_exeext conftest.$ac_ext
15130 LIBS=$ac_check_lib_save_LIBS
15132 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15133 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15134 if test $ac_cv_lib_inet_socket = yes; then
15135 cat >>confdefs.h <<_ACEOF
15136 #define HAVE_LIBINET 1
15139 LIBS="-linet $LIBS"
15144 echo "$as_me:$LINENO: checking for main in -lgen" >&5
15145 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
15146 if test "${ac_cv_lib_gen_main+set}" = set; then
15147 echo $ECHO_N "(cached) $ECHO_C" >&6
15149 ac_check_lib_save_LIBS=$LIBS
15151 cat >conftest.$ac_ext <<_ACEOF
15154 cat confdefs.h >>conftest.$ac_ext
15155 cat >>conftest.$ac_ext <<_ACEOF
15156 /* end confdefs.h. */
15167 rm -f conftest.$ac_objext conftest$ac_exeext
15168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15169 (eval $ac_link) 2>conftest.er1
15171 grep -v '^ *+' conftest.er1 >conftest.err
15173 cat conftest.err >&5
15174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15175 (exit $ac_status); } &&
15176 { ac_try='test -z "$ac_c_werror_flag"
15177 || test ! -s conftest.err'
15178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15179 (eval $ac_try) 2>&5
15181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182 (exit $ac_status); }; } &&
15183 { ac_try='test -s conftest$ac_exeext'
15184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15185 (eval $ac_try) 2>&5
15187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188 (exit $ac_status); }; }; then
15189 ac_cv_lib_gen_main=yes
15191 echo "$as_me: failed program was:" >&5
15192 sed 's/^/| /' conftest.$ac_ext >&5
15194 ac_cv_lib_gen_main=no
15196 rm -f conftest.err conftest.$ac_objext \
15197 conftest$ac_exeext conftest.$ac_ext
15198 LIBS=$ac_check_lib_save_LIBS
15200 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15201 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
15202 if test $ac_cv_lib_gen_main = yes; then
15203 cat >>confdefs.h <<_ACEOF
15204 #define HAVE_LIBGEN 1
15215 echo "$as_me:$LINENO: checking for select" >&5
15216 echo $ECHO_N "checking for select... $ECHO_C" >&6
15217 if test "${ac_cv_func_select+set}" = set; then
15218 echo $ECHO_N "(cached) $ECHO_C" >&6
15220 cat >conftest.$ac_ext <<_ACEOF
15223 cat confdefs.h >>conftest.$ac_ext
15224 cat >>conftest.$ac_ext <<_ACEOF
15225 /* end confdefs.h. */
15226 /* Define select to an innocuous variant, in case <limits.h> declares select.
15227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15228 #define select innocuous_select
15230 /* System header to define __stub macros and hopefully few prototypes,
15231 which can conflict with char select (); below.
15232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15233 <limits.h> exists even on freestanding compilers. */
15236 # include <limits.h>
15238 # include <assert.h>
15243 /* Override any gcc2 internal prototype to avoid an error. */
15248 /* We use char because int might match the return type of a gcc2
15249 builtin and then its argument prototype would still apply. */
15251 /* The GNU C library defines this for functions which it implements
15252 to always fail with ENOSYS. Some functions are actually named
15253 something starting with __ and the normal name is an alias. */
15254 #if defined (__stub_select) || defined (__stub___select)
15257 char (*f) () = select;
15266 return f != select;
15271 rm -f conftest.$ac_objext conftest$ac_exeext
15272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15273 (eval $ac_link) 2>conftest.er1
15275 grep -v '^ *+' conftest.er1 >conftest.err
15277 cat conftest.err >&5
15278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279 (exit $ac_status); } &&
15280 { ac_try='test -z "$ac_c_werror_flag"
15281 || test ! -s conftest.err'
15282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15283 (eval $ac_try) 2>&5
15285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286 (exit $ac_status); }; } &&
15287 { ac_try='test -s conftest$ac_exeext'
15288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15289 (eval $ac_try) 2>&5
15291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292 (exit $ac_status); }; }; then
15293 ac_cv_func_select=yes
15295 echo "$as_me: failed program was:" >&5
15296 sed 's/^/| /' conftest.$ac_ext >&5
15298 ac_cv_func_select=no
15300 rm -f conftest.err conftest.$ac_objext \
15301 conftest$ac_exeext conftest.$ac_ext
15303 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15304 echo "${ECHO_T}$ac_cv_func_select" >&6
15305 if test $ac_cv_func_select = yes; then
15308 { { echo "$as_me:$LINENO: error: select() required." >&5
15309 echo "$as_me: error: select() required." >&2;}
15310 { (exit 1); exit 1; }; }
15314 if test "${ac_cv_header_winsock_h}" != yes; then
15317 for ac_header in sys/select.h sys/socket.h
15319 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15321 echo "$as_me:$LINENO: checking for $ac_header" >&5
15322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15324 echo $ECHO_N "(cached) $ECHO_C" >&6
15326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15327 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15329 # Is the header compilable?
15330 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15331 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15332 cat >conftest.$ac_ext <<_ACEOF
15335 cat confdefs.h >>conftest.$ac_ext
15336 cat >>conftest.$ac_ext <<_ACEOF
15337 /* end confdefs.h. */
15338 $ac_includes_default
15339 #include <$ac_header>
15341 rm -f conftest.$ac_objext
15342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15343 (eval $ac_compile) 2>conftest.er1
15345 grep -v '^ *+' conftest.er1 >conftest.err
15347 cat conftest.err >&5
15348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15349 (exit $ac_status); } &&
15350 { ac_try='test -z "$ac_c_werror_flag"
15351 || test ! -s conftest.err'
15352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15353 (eval $ac_try) 2>&5
15355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356 (exit $ac_status); }; } &&
15357 { ac_try='test -s conftest.$ac_objext'
15358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15359 (eval $ac_try) 2>&5
15361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362 (exit $ac_status); }; }; then
15363 ac_header_compiler=yes
15365 echo "$as_me: failed program was:" >&5
15366 sed 's/^/| /' conftest.$ac_ext >&5
15368 ac_header_compiler=no
15370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15371 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15372 echo "${ECHO_T}$ac_header_compiler" >&6
15374 # Is the header present?
15375 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15376 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15377 cat >conftest.$ac_ext <<_ACEOF
15380 cat confdefs.h >>conftest.$ac_ext
15381 cat >>conftest.$ac_ext <<_ACEOF
15382 /* end confdefs.h. */
15383 #include <$ac_header>
15385 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15386 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15388 grep -v '^ *+' conftest.er1 >conftest.err
15390 cat conftest.err >&5
15391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392 (exit $ac_status); } >/dev/null; then
15393 if test -s conftest.err; then
15394 ac_cpp_err=$ac_c_preproc_warn_flag
15395 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15402 if test -z "$ac_cpp_err"; then
15403 ac_header_preproc=yes
15405 echo "$as_me: failed program was:" >&5
15406 sed 's/^/| /' conftest.$ac_ext >&5
15408 ac_header_preproc=no
15410 rm -f conftest.err conftest.$ac_ext
15411 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15412 echo "${ECHO_T}$ac_header_preproc" >&6
15414 # So? What about this header?
15415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15417 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15418 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15420 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15421 ac_header_preproc=yes
15424 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15425 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15426 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15427 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15428 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15429 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15430 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15431 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15433 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15434 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15435 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15438 ## --------------------------------------------- ##
15439 ## Report this to <http://www.openldap.org/its/> ##
15440 ## --------------------------------------------- ##
15443 sed "s/^/$as_me: WARNING: /" >&2
15446 echo "$as_me:$LINENO: checking for $ac_header" >&5
15447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15449 echo $ECHO_N "(cached) $ECHO_C" >&6
15451 eval "$as_ac_Header=\$ac_header_preproc"
15453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15454 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15458 cat >>confdefs.h <<_ACEOF
15459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15466 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15467 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15468 if test "${ac_cv_func_select_args+set}" = set; then
15469 echo $ECHO_N "(cached) $ECHO_C" >&6
15471 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15472 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15473 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15474 cat >conftest.$ac_ext <<_ACEOF
15477 cat confdefs.h >>conftest.$ac_ext
15478 cat >>conftest.$ac_ext <<_ACEOF
15479 /* end confdefs.h. */
15480 $ac_includes_default
15481 #if HAVE_SYS_SELECT_H
15482 # include <sys/select.h>
15484 #if HAVE_SYS_SOCKET_H
15485 # include <sys/socket.h>
15491 extern int select ($ac_arg1,
15492 $ac_arg234, $ac_arg234, $ac_arg234,
15498 rm -f conftest.$ac_objext
15499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15500 (eval $ac_compile) 2>conftest.er1
15502 grep -v '^ *+' conftest.er1 >conftest.err
15504 cat conftest.err >&5
15505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506 (exit $ac_status); } &&
15507 { ac_try='test -z "$ac_c_werror_flag"
15508 || test ! -s conftest.err'
15509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15510 (eval $ac_try) 2>&5
15512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513 (exit $ac_status); }; } &&
15514 { ac_try='test -s conftest.$ac_objext'
15515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15516 (eval $ac_try) 2>&5
15518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519 (exit $ac_status); }; }; then
15520 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15522 echo "$as_me: failed program was:" >&5
15523 sed 's/^/| /' conftest.$ac_ext >&5
15526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15530 # Provide a safe default value.
15531 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
15534 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
15535 echo "${ECHO_T}$ac_cv_func_select_args" >&6
15536 ac_save_IFS=$IFS; IFS=','
15537 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15541 cat >>confdefs.h <<_ACEOF
15542 #define SELECT_TYPE_ARG1 $1
15546 cat >>confdefs.h <<_ACEOF
15547 #define SELECT_TYPE_ARG234 ($2)
15551 cat >>confdefs.h <<_ACEOF
15552 #define SELECT_TYPE_ARG5 ($3)
15561 for ac_func in poll
15563 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15564 echo "$as_me:$LINENO: checking for $ac_func" >&5
15565 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15566 if eval "test \"\${$as_ac_var+set}\" = set"; then
15567 echo $ECHO_N "(cached) $ECHO_C" >&6
15569 cat >conftest.$ac_ext <<_ACEOF
15572 cat confdefs.h >>conftest.$ac_ext
15573 cat >>conftest.$ac_ext <<_ACEOF
15574 /* end confdefs.h. */
15575 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15576 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15577 #define $ac_func innocuous_$ac_func
15579 /* System header to define __stub macros and hopefully few prototypes,
15580 which can conflict with char $ac_func (); below.
15581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15582 <limits.h> exists even on freestanding compilers. */
15585 # include <limits.h>
15587 # include <assert.h>
15592 /* Override any gcc2 internal prototype to avoid an error. */
15597 /* We use char because int might match the return type of a gcc2
15598 builtin and then its argument prototype would still apply. */
15600 /* The GNU C library defines this for functions which it implements
15601 to always fail with ENOSYS. Some functions are actually named
15602 something starting with __ and the normal name is an alias. */
15603 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15606 char (*f) () = $ac_func;
15615 return f != $ac_func;
15620 rm -f conftest.$ac_objext conftest$ac_exeext
15621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15622 (eval $ac_link) 2>conftest.er1
15624 grep -v '^ *+' conftest.er1 >conftest.err
15626 cat conftest.err >&5
15627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15628 (exit $ac_status); } &&
15629 { ac_try='test -z "$ac_c_werror_flag"
15630 || test ! -s conftest.err'
15631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15632 (eval $ac_try) 2>&5
15634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15635 (exit $ac_status); }; } &&
15636 { ac_try='test -s conftest$ac_exeext'
15637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15638 (eval $ac_try) 2>&5
15640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15641 (exit $ac_status); }; }; then
15642 eval "$as_ac_var=yes"
15644 echo "$as_me: failed program was:" >&5
15645 sed 's/^/| /' conftest.$ac_ext >&5
15647 eval "$as_ac_var=no"
15649 rm -f conftest.err conftest.$ac_objext \
15650 conftest$ac_exeext conftest.$ac_ext
15652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15653 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15654 if test `eval echo '${'$as_ac_var'}'` = yes; then
15655 cat >>confdefs.h <<_ACEOF
15656 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15662 if test $ac_cv_func_poll = yes; then
15665 for ac_header in poll.h sys/poll.h
15667 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15668 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15669 echo "$as_me:$LINENO: checking for $ac_header" >&5
15670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15671 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15672 echo $ECHO_N "(cached) $ECHO_C" >&6
15674 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15675 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15677 # Is the header compilable?
15678 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15679 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15680 cat >conftest.$ac_ext <<_ACEOF
15683 cat confdefs.h >>conftest.$ac_ext
15684 cat >>conftest.$ac_ext <<_ACEOF
15685 /* end confdefs.h. */
15686 $ac_includes_default
15687 #include <$ac_header>
15689 rm -f conftest.$ac_objext
15690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15691 (eval $ac_compile) 2>conftest.er1
15693 grep -v '^ *+' conftest.er1 >conftest.err
15695 cat conftest.err >&5
15696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697 (exit $ac_status); } &&
15698 { ac_try='test -z "$ac_c_werror_flag"
15699 || test ! -s conftest.err'
15700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15701 (eval $ac_try) 2>&5
15703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704 (exit $ac_status); }; } &&
15705 { ac_try='test -s conftest.$ac_objext'
15706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15707 (eval $ac_try) 2>&5
15709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15710 (exit $ac_status); }; }; then
15711 ac_header_compiler=yes
15713 echo "$as_me: failed program was:" >&5
15714 sed 's/^/| /' conftest.$ac_ext >&5
15716 ac_header_compiler=no
15718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15719 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15720 echo "${ECHO_T}$ac_header_compiler" >&6
15722 # Is the header present?
15723 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15724 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15725 cat >conftest.$ac_ext <<_ACEOF
15728 cat confdefs.h >>conftest.$ac_ext
15729 cat >>conftest.$ac_ext <<_ACEOF
15730 /* end confdefs.h. */
15731 #include <$ac_header>
15733 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15734 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15736 grep -v '^ *+' conftest.er1 >conftest.err
15738 cat conftest.err >&5
15739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15740 (exit $ac_status); } >/dev/null; then
15741 if test -s conftest.err; then
15742 ac_cpp_err=$ac_c_preproc_warn_flag
15743 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15750 if test -z "$ac_cpp_err"; then
15751 ac_header_preproc=yes
15753 echo "$as_me: failed program was:" >&5
15754 sed 's/^/| /' conftest.$ac_ext >&5
15756 ac_header_preproc=no
15758 rm -f conftest.err conftest.$ac_ext
15759 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15760 echo "${ECHO_T}$ac_header_preproc" >&6
15762 # So? What about this header?
15763 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15765 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15766 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15768 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15769 ac_header_preproc=yes
15772 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15773 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15774 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15775 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15776 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15777 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15778 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15779 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15780 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15781 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15782 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15783 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15786 ## --------------------------------------------- ##
15787 ## Report this to <http://www.openldap.org/its/> ##
15788 ## --------------------------------------------- ##
15791 sed "s/^/$as_me: WARNING: /" >&2
15794 echo "$as_me:$LINENO: checking for $ac_header" >&5
15795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15797 echo $ECHO_N "(cached) $ECHO_C" >&6
15799 eval "$as_ac_Header=\$ac_header_preproc"
15801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15802 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15805 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15806 cat >>confdefs.h <<_ACEOF
15807 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15817 for ac_header in sys/epoll.h
15819 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15821 echo "$as_me:$LINENO: checking for $ac_header" >&5
15822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15823 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15824 echo $ECHO_N "(cached) $ECHO_C" >&6
15826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15827 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15829 # Is the header compilable?
15830 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15831 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15832 cat >conftest.$ac_ext <<_ACEOF
15835 cat confdefs.h >>conftest.$ac_ext
15836 cat >>conftest.$ac_ext <<_ACEOF
15837 /* end confdefs.h. */
15838 $ac_includes_default
15839 #include <$ac_header>
15841 rm -f conftest.$ac_objext
15842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15843 (eval $ac_compile) 2>conftest.er1
15845 grep -v '^ *+' conftest.er1 >conftest.err
15847 cat conftest.err >&5
15848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849 (exit $ac_status); } &&
15850 { ac_try='test -z "$ac_c_werror_flag"
15851 || test ! -s conftest.err'
15852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15853 (eval $ac_try) 2>&5
15855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856 (exit $ac_status); }; } &&
15857 { ac_try='test -s conftest.$ac_objext'
15858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15859 (eval $ac_try) 2>&5
15861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862 (exit $ac_status); }; }; then
15863 ac_header_compiler=yes
15865 echo "$as_me: failed program was:" >&5
15866 sed 's/^/| /' conftest.$ac_ext >&5
15868 ac_header_compiler=no
15870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15871 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15872 echo "${ECHO_T}$ac_header_compiler" >&6
15874 # Is the header present?
15875 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15876 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15877 cat >conftest.$ac_ext <<_ACEOF
15880 cat confdefs.h >>conftest.$ac_ext
15881 cat >>conftest.$ac_ext <<_ACEOF
15882 /* end confdefs.h. */
15883 #include <$ac_header>
15885 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15886 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15888 grep -v '^ *+' conftest.er1 >conftest.err
15890 cat conftest.err >&5
15891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892 (exit $ac_status); } >/dev/null; then
15893 if test -s conftest.err; then
15894 ac_cpp_err=$ac_c_preproc_warn_flag
15895 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15902 if test -z "$ac_cpp_err"; then
15903 ac_header_preproc=yes
15905 echo "$as_me: failed program was:" >&5
15906 sed 's/^/| /' conftest.$ac_ext >&5
15908 ac_header_preproc=no
15910 rm -f conftest.err conftest.$ac_ext
15911 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15912 echo "${ECHO_T}$ac_header_preproc" >&6
15914 # So? What about this header?
15915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15917 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15918 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15920 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15921 ac_header_preproc=yes
15924 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15925 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15926 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15927 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15928 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15929 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15930 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15931 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15933 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15934 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15935 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15938 ## --------------------------------------------- ##
15939 ## Report this to <http://www.openldap.org/its/> ##
15940 ## --------------------------------------------- ##
15943 sed "s/^/$as_me: WARNING: /" >&2
15946 echo "$as_me:$LINENO: checking for $ac_header" >&5
15947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15948 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15949 echo $ECHO_N "(cached) $ECHO_C" >&6
15951 eval "$as_ac_Header=\$ac_header_preproc"
15953 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15954 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15957 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15958 cat >>confdefs.h <<_ACEOF
15959 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15966 if test "${ac_cv_header_sys_epoll_h}" = yes; then
15967 echo "$as_me:$LINENO: checking for epoll system call" >&5
15968 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
15969 if test "$cross_compiling" = yes; then
15970 echo "$as_me:$LINENO: result: no" >&5
15971 echo "${ECHO_T}no" >&6
15973 cat >conftest.$ac_ext <<_ACEOF
15976 cat confdefs.h >>conftest.$ac_ext
15977 cat >>conftest.$ac_ext <<_ACEOF
15978 /* end confdefs.h. */
15979 int main(int argc, char **argv)
15981 int epfd = epoll_create(256);
15982 exit (epfd == -1 ? 1 : 0);
15985 rm -f conftest$ac_exeext
15986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15987 (eval $ac_link) 2>&5
15989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15990 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15992 (eval $ac_try) 2>&5
15994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15995 (exit $ac_status); }; }; then
15996 echo "$as_me:$LINENO: result: yes" >&5
15997 echo "${ECHO_T}yes" >&6
15999 cat >>confdefs.h <<\_ACEOF
16000 #define HAVE_EPOLL 1
16004 echo "$as_me: program exited with status $ac_status" >&5
16005 echo "$as_me: failed program was:" >&5
16006 sed 's/^/| /' conftest.$ac_ext >&5
16008 ( exit $ac_status )
16009 echo "$as_me:$LINENO: result: no" >&5
16010 echo "${ECHO_T}no" >&6
16012 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16017 for ac_header in sys/devpoll.h
16019 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16020 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16021 echo "$as_me:$LINENO: checking for $ac_header" >&5
16022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16023 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16024 echo $ECHO_N "(cached) $ECHO_C" >&6
16026 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16027 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16029 # Is the header compilable?
16030 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16031 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16032 cat >conftest.$ac_ext <<_ACEOF
16035 cat confdefs.h >>conftest.$ac_ext
16036 cat >>conftest.$ac_ext <<_ACEOF
16037 /* end confdefs.h. */
16038 $ac_includes_default
16039 #include <$ac_header>
16041 rm -f conftest.$ac_objext
16042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16043 (eval $ac_compile) 2>conftest.er1
16045 grep -v '^ *+' conftest.er1 >conftest.err
16047 cat conftest.err >&5
16048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16049 (exit $ac_status); } &&
16050 { ac_try='test -z "$ac_c_werror_flag"
16051 || test ! -s conftest.err'
16052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16053 (eval $ac_try) 2>&5
16055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056 (exit $ac_status); }; } &&
16057 { ac_try='test -s conftest.$ac_objext'
16058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16059 (eval $ac_try) 2>&5
16061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16062 (exit $ac_status); }; }; then
16063 ac_header_compiler=yes
16065 echo "$as_me: failed program was:" >&5
16066 sed 's/^/| /' conftest.$ac_ext >&5
16068 ac_header_compiler=no
16070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16071 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16072 echo "${ECHO_T}$ac_header_compiler" >&6
16074 # Is the header present?
16075 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16076 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16077 cat >conftest.$ac_ext <<_ACEOF
16080 cat confdefs.h >>conftest.$ac_ext
16081 cat >>conftest.$ac_ext <<_ACEOF
16082 /* end confdefs.h. */
16083 #include <$ac_header>
16085 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16086 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16088 grep -v '^ *+' conftest.er1 >conftest.err
16090 cat conftest.err >&5
16091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092 (exit $ac_status); } >/dev/null; then
16093 if test -s conftest.err; then
16094 ac_cpp_err=$ac_c_preproc_warn_flag
16095 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16102 if test -z "$ac_cpp_err"; then
16103 ac_header_preproc=yes
16105 echo "$as_me: failed program was:" >&5
16106 sed 's/^/| /' conftest.$ac_ext >&5
16108 ac_header_preproc=no
16110 rm -f conftest.err conftest.$ac_ext
16111 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16112 echo "${ECHO_T}$ac_header_preproc" >&6
16114 # So? What about this header?
16115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16117 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16118 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16120 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16121 ac_header_preproc=yes
16124 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16125 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16126 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16127 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16128 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16129 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16130 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16131 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16133 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16134 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16135 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16138 ## --------------------------------------------- ##
16139 ## Report this to <http://www.openldap.org/its/> ##
16140 ## --------------------------------------------- ##
16143 sed "s/^/$as_me: WARNING: /" >&2
16146 echo "$as_me:$LINENO: checking for $ac_header" >&5
16147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16149 echo $ECHO_N "(cached) $ECHO_C" >&6
16151 eval "$as_ac_Header=\$ac_header_preproc"
16153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16154 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16158 cat >>confdefs.h <<_ACEOF
16159 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16166 if test "${ac_cv_header_sys_devpoll_h}" = yes \
16167 -a "${ac_cv_header_poll_h}" = yes ; \
16169 echo "$as_me:$LINENO: checking for /dev/poll" >&5
16170 echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6
16171 if test "$cross_compiling" = yes; then
16172 echo "$as_me:$LINENO: result: no" >&5
16173 echo "${ECHO_T}no" >&6
16175 cat >conftest.$ac_ext <<_ACEOF
16178 cat confdefs.h >>conftest.$ac_ext
16179 cat >>conftest.$ac_ext <<_ACEOF
16180 /* end confdefs.h. */
16181 int main(int argc, char **argv)
16183 int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
16184 exit (devpollfd == -1 ? 1 : 0);
16187 rm -f conftest$ac_exeext
16188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16189 (eval $ac_link) 2>&5
16191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16194 (eval $ac_try) 2>&5
16196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197 (exit $ac_status); }; }; then
16198 echo "$as_me:$LINENO: result: yes" >&5
16199 echo "${ECHO_T}yes" >&6
16201 cat >>confdefs.h <<\_ACEOF
16202 #define HAVE_DEVPOLL 1
16206 echo "$as_me: program exited with status $ac_status" >&5
16207 echo "$as_me: failed program was:" >&5
16208 sed 's/^/| /' conftest.$ac_ext >&5
16210 ( exit $ac_status )
16211 echo "$as_me:$LINENO: result: no" >&5
16212 echo "${ECHO_T}no" >&6
16214 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16219 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16220 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16221 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16222 echo $ECHO_N "(cached) $ECHO_C" >&6
16225 cat >conftest.$ac_ext <<_ACEOF
16228 cat confdefs.h >>conftest.$ac_ext
16229 cat >>conftest.$ac_ext <<_ACEOF
16230 /* end confdefs.h. */
16233 #include <sys/types.h>
16236 #include <stdlib.h>
16241 char *c = (char *) *sys_errlist
16246 rm -f conftest.$ac_objext
16247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16248 (eval $ac_compile) 2>conftest.er1
16250 grep -v '^ *+' conftest.er1 >conftest.err
16252 cat conftest.err >&5
16253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254 (exit $ac_status); } &&
16255 { ac_try='test -z "$ac_c_werror_flag"
16256 || test ! -s conftest.err'
16257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16258 (eval $ac_try) 2>&5
16260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261 (exit $ac_status); }; } &&
16262 { ac_try='test -s conftest.$ac_objext'
16263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16264 (eval $ac_try) 2>&5
16266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267 (exit $ac_status); }; }; then
16268 ol_cv_dcl_sys_errlist=yes
16269 ol_cv_have_sys_errlist=yes
16271 echo "$as_me: failed program was:" >&5
16272 sed 's/^/| /' conftest.$ac_ext >&5
16274 ol_cv_dcl_sys_errlist=no
16276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16278 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16279 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16281 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16282 if test $ol_cv_dcl_sys_errlist = no ; then
16284 cat >>confdefs.h <<\_ACEOF
16285 #define DECL_SYS_ERRLIST 1
16289 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16290 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16291 if test "${ol_cv_have_sys_errlist+set}" = set; then
16292 echo $ECHO_N "(cached) $ECHO_C" >&6
16295 cat >conftest.$ac_ext <<_ACEOF
16298 cat confdefs.h >>conftest.$ac_ext
16299 cat >>conftest.$ac_ext <<_ACEOF
16300 /* end confdefs.h. */
16305 char *c = (char *) *sys_errlist
16310 rm -f conftest.$ac_objext conftest$ac_exeext
16311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16312 (eval $ac_link) 2>conftest.er1
16314 grep -v '^ *+' conftest.er1 >conftest.err
16316 cat conftest.err >&5
16317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318 (exit $ac_status); } &&
16319 { ac_try='test -z "$ac_c_werror_flag"
16320 || test ! -s conftest.err'
16321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16322 (eval $ac_try) 2>&5
16324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325 (exit $ac_status); }; } &&
16326 { ac_try='test -s conftest$ac_exeext'
16327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16328 (eval $ac_try) 2>&5
16330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331 (exit $ac_status); }; }; then
16332 ol_cv_have_sys_errlist=yes
16334 echo "$as_me: failed program was:" >&5
16335 sed 's/^/| /' conftest.$ac_ext >&5
16337 ol_cv_have_sys_errlist=no
16339 rm -f conftest.err conftest.$ac_objext \
16340 conftest$ac_exeext conftest.$ac_ext
16342 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16343 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16345 if test $ol_cv_have_sys_errlist = yes ; then
16347 cat >>confdefs.h <<\_ACEOF
16348 #define HAVE_SYS_ERRLIST 1
16354 for ac_func in strerror strerror_r
16356 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16357 echo "$as_me:$LINENO: checking for $ac_func" >&5
16358 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16359 if eval "test \"\${$as_ac_var+set}\" = set"; then
16360 echo $ECHO_N "(cached) $ECHO_C" >&6
16362 cat >conftest.$ac_ext <<_ACEOF
16365 cat confdefs.h >>conftest.$ac_ext
16366 cat >>conftest.$ac_ext <<_ACEOF
16367 /* end confdefs.h. */
16368 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16369 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16370 #define $ac_func innocuous_$ac_func
16372 /* System header to define __stub macros and hopefully few prototypes,
16373 which can conflict with char $ac_func (); below.
16374 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16375 <limits.h> exists even on freestanding compilers. */
16378 # include <limits.h>
16380 # include <assert.h>
16385 /* Override any gcc2 internal prototype to avoid an error. */
16390 /* We use char because int might match the return type of a gcc2
16391 builtin and then its argument prototype would still apply. */
16393 /* The GNU C library defines this for functions which it implements
16394 to always fail with ENOSYS. Some functions are actually named
16395 something starting with __ and the normal name is an alias. */
16396 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16399 char (*f) () = $ac_func;
16408 return f != $ac_func;
16413 rm -f conftest.$ac_objext conftest$ac_exeext
16414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16415 (eval $ac_link) 2>conftest.er1
16417 grep -v '^ *+' conftest.er1 >conftest.err
16419 cat conftest.err >&5
16420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421 (exit $ac_status); } &&
16422 { ac_try='test -z "$ac_c_werror_flag"
16423 || test ! -s conftest.err'
16424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16425 (eval $ac_try) 2>&5
16427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16428 (exit $ac_status); }; } &&
16429 { ac_try='test -s conftest$ac_exeext'
16430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16431 (eval $ac_try) 2>&5
16433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16434 (exit $ac_status); }; }; then
16435 eval "$as_ac_var=yes"
16437 echo "$as_me: failed program was:" >&5
16438 sed 's/^/| /' conftest.$ac_ext >&5
16440 eval "$as_ac_var=no"
16442 rm -f conftest.err conftest.$ac_objext \
16443 conftest$ac_exeext conftest.$ac_ext
16445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16446 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16447 if test `eval echo '${'$as_ac_var'}'` = yes; then
16448 cat >>confdefs.h <<_ACEOF
16449 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16455 ol_cv_func_strerror_r=no
16456 if test "${ac_cv_func_strerror_r}" = yes ; then
16457 echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
16458 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
16459 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
16460 echo $ECHO_N "(cached) $ECHO_C" >&6
16463 cat >conftest.$ac_ext <<_ACEOF
16466 cat confdefs.h >>conftest.$ac_ext
16467 cat >>conftest.$ac_ext <<_ACEOF
16468 /* end confdefs.h. */
16469 #include <string.h>
16471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16472 $EGREP "strerror_r" >/dev/null 2>&1; then
16473 ol_decl_strerror_r=yes
16475 ol_decl_strerror_r=no
16479 if test $ol_decl_strerror_r = yes ; then
16480 cat >conftest.$ac_ext <<_ACEOF
16483 cat confdefs.h >>conftest.$ac_ext
16484 cat >>conftest.$ac_ext <<_ACEOF
16485 /* end confdefs.h. */
16486 #include <string.h>
16490 /* from autoconf 2.59 */
16492 char x = *strerror_r (0, buf, sizeof buf);
16493 char *p = strerror_r (0, buf, sizeof buf);
16499 rm -f conftest.$ac_objext
16500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16501 (eval $ac_compile) 2>conftest.er1
16503 grep -v '^ *+' conftest.er1 >conftest.err
16505 cat conftest.err >&5
16506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16507 (exit $ac_status); } &&
16508 { ac_try='test -z "$ac_c_werror_flag"
16509 || test ! -s conftest.err'
16510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16511 (eval $ac_try) 2>&5
16513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16514 (exit $ac_status); }; } &&
16515 { ac_try='test -s conftest.$ac_objext'
16516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16517 (eval $ac_try) 2>&5
16519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16520 (exit $ac_status); }; }; then
16521 ol_cv_nonposix_strerror_r=yes
16523 echo "$as_me: failed program was:" >&5
16524 sed 's/^/| /' conftest.$ac_ext >&5
16526 ol_cv_nonposix_strerror_r=no
16528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16530 if test "$cross_compiling" = yes; then
16531 ol_cv_nonposix_strerror=no
16533 cat >conftest.$ac_ext <<_ACEOF
16536 cat confdefs.h >>conftest.$ac_ext
16537 cat >>conftest.$ac_ext <<_ACEOF
16538 /* end confdefs.h. */
16543 strerror_r( 1, buf, sizeof buf );
16544 exit( buf[0] == 0 );
16548 rm -f conftest$ac_exeext
16549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16550 (eval $ac_link) 2>&5
16552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16553 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16555 (eval $ac_try) 2>&5
16557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558 (exit $ac_status); }; }; then
16559 ol_cv_nonposix_strerror_r=yes
16561 echo "$as_me: program exited with status $ac_status" >&5
16562 echo "$as_me: failed program was:" >&5
16563 sed 's/^/| /' conftest.$ac_ext >&5
16565 ( exit $ac_status )
16566 ol_cv_nonposix_strerror=no
16568 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16573 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
16574 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
16575 if test $ol_cv_nonposix_strerror_r = yes ; then
16577 cat >>confdefs.h <<\_ACEOF
16578 #define HAVE_NONPOSIX_STRERROR_R 1
16583 elif test "${ac_cv_func_strerror}" = no ; then
16584 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16585 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16586 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16587 echo $ECHO_N "(cached) $ECHO_C" >&6
16590 cat >conftest.$ac_ext <<_ACEOF
16593 cat confdefs.h >>conftest.$ac_ext
16594 cat >>conftest.$ac_ext <<_ACEOF
16595 /* end confdefs.h. */
16598 #include <sys/types.h>
16601 #include <stdlib.h>
16606 char *c = (char *) *sys_errlist
16611 rm -f conftest.$ac_objext
16612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16613 (eval $ac_compile) 2>conftest.er1
16615 grep -v '^ *+' conftest.er1 >conftest.err
16617 cat conftest.err >&5
16618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619 (exit $ac_status); } &&
16620 { ac_try='test -z "$ac_c_werror_flag"
16621 || test ! -s conftest.err'
16622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16623 (eval $ac_try) 2>&5
16625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16626 (exit $ac_status); }; } &&
16627 { ac_try='test -s conftest.$ac_objext'
16628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16629 (eval $ac_try) 2>&5
16631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632 (exit $ac_status); }; }; then
16633 ol_cv_dcl_sys_errlist=yes
16634 ol_cv_have_sys_errlist=yes
16636 echo "$as_me: failed program was:" >&5
16637 sed 's/^/| /' conftest.$ac_ext >&5
16639 ol_cv_dcl_sys_errlist=no
16641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16643 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16644 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16646 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16647 if test $ol_cv_dcl_sys_errlist = no ; then
16649 cat >>confdefs.h <<\_ACEOF
16650 #define DECL_SYS_ERRLIST 1
16654 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16655 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16656 if test "${ol_cv_have_sys_errlist+set}" = set; then
16657 echo $ECHO_N "(cached) $ECHO_C" >&6
16660 cat >conftest.$ac_ext <<_ACEOF
16663 cat confdefs.h >>conftest.$ac_ext
16664 cat >>conftest.$ac_ext <<_ACEOF
16665 /* end confdefs.h. */
16670 char *c = (char *) *sys_errlist
16675 rm -f conftest.$ac_objext conftest$ac_exeext
16676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16677 (eval $ac_link) 2>conftest.er1
16679 grep -v '^ *+' conftest.er1 >conftest.err
16681 cat conftest.err >&5
16682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683 (exit $ac_status); } &&
16684 { ac_try='test -z "$ac_c_werror_flag"
16685 || test ! -s conftest.err'
16686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16687 (eval $ac_try) 2>&5
16689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690 (exit $ac_status); }; } &&
16691 { ac_try='test -s conftest$ac_exeext'
16692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16693 (eval $ac_try) 2>&5
16695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696 (exit $ac_status); }; }; then
16697 ol_cv_have_sys_errlist=yes
16699 echo "$as_me: failed program was:" >&5
16700 sed 's/^/| /' conftest.$ac_ext >&5
16702 ol_cv_have_sys_errlist=no
16704 rm -f conftest.err conftest.$ac_objext \
16705 conftest$ac_exeext conftest.$ac_ext
16707 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16708 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16710 if test $ol_cv_have_sys_errlist = yes ; then
16712 cat >>confdefs.h <<\_ACEOF
16713 #define HAVE_SYS_ERRLIST 1
16722 for ac_header in regex.h
16724 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16725 echo "$as_me:$LINENO: checking for $ac_header" >&5
16726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16727 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16728 echo $ECHO_N "(cached) $ECHO_C" >&6
16730 cat >conftest.$ac_ext <<_ACEOF
16733 cat confdefs.h >>conftest.$ac_ext
16734 cat >>conftest.$ac_ext <<_ACEOF
16735 /* end confdefs.h. */
16736 $ac_includes_default
16737 #ifdef HAVE_SYS_TYPES_H
16738 #include <sys/types.h>
16742 #include <$ac_header>
16744 rm -f conftest.$ac_objext
16745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16746 (eval $ac_compile) 2>conftest.er1
16748 grep -v '^ *+' conftest.er1 >conftest.err
16750 cat conftest.err >&5
16751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16752 (exit $ac_status); } &&
16753 { ac_try='test -z "$ac_c_werror_flag"
16754 || test ! -s conftest.err'
16755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16756 (eval $ac_try) 2>&5
16758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759 (exit $ac_status); }; } &&
16760 { ac_try='test -s conftest.$ac_objext'
16761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16762 (eval $ac_try) 2>&5
16764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765 (exit $ac_status); }; }; then
16766 eval "$as_ac_Header=yes"
16768 echo "$as_me: failed program was:" >&5
16769 sed 's/^/| /' conftest.$ac_ext >&5
16771 eval "$as_ac_Header=no"
16773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16776 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16778 cat >>confdefs.h <<_ACEOF
16779 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16787 if test "$ac_cv_header_regex_h" != yes ; then
16788 { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
16789 echo "$as_me: error: POSIX regex.h required." >&2;}
16790 { (exit 1); exit 1; }; }
16792 echo "$as_me:$LINENO: checking for library containing regfree" >&5
16793 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
16794 if test "${ac_cv_search_regfree+set}" = set; then
16795 echo $ECHO_N "(cached) $ECHO_C" >&6
16797 ac_func_search_save_LIBS=$LIBS
16798 ac_cv_search_regfree=no
16799 cat >conftest.$ac_ext <<_ACEOF
16802 cat confdefs.h >>conftest.$ac_ext
16803 cat >>conftest.$ac_ext <<_ACEOF
16804 /* end confdefs.h. */
16806 /* Override any gcc2 internal prototype to avoid an error. */
16810 /* We use char because int might match the return type of a gcc2
16811 builtin and then its argument prototype would still apply. */
16821 rm -f conftest.$ac_objext conftest$ac_exeext
16822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16823 (eval $ac_link) 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_exeext'
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 ac_cv_search_regfree="none required"
16845 echo "$as_me: failed program was:" >&5
16846 sed 's/^/| /' conftest.$ac_ext >&5
16849 rm -f conftest.err conftest.$ac_objext \
16850 conftest$ac_exeext conftest.$ac_ext
16851 if test "$ac_cv_search_regfree" = no; then
16852 for ac_lib in regex gnuregex; do
16853 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16854 cat >conftest.$ac_ext <<_ACEOF
16857 cat confdefs.h >>conftest.$ac_ext
16858 cat >>conftest.$ac_ext <<_ACEOF
16859 /* end confdefs.h. */
16861 /* Override any gcc2 internal prototype to avoid an error. */
16865 /* We use char because int might match the return type of a gcc2
16866 builtin and then its argument prototype would still apply. */
16876 rm -f conftest.$ac_objext conftest$ac_exeext
16877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16878 (eval $ac_link) 2>conftest.er1
16880 grep -v '^ *+' conftest.er1 >conftest.err
16882 cat conftest.err >&5
16883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884 (exit $ac_status); } &&
16885 { ac_try='test -z "$ac_c_werror_flag"
16886 || test ! -s conftest.err'
16887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16888 (eval $ac_try) 2>&5
16890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891 (exit $ac_status); }; } &&
16892 { ac_try='test -s conftest$ac_exeext'
16893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16894 (eval $ac_try) 2>&5
16896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16897 (exit $ac_status); }; }; then
16898 ac_cv_search_regfree="-l$ac_lib"
16901 echo "$as_me: failed program was:" >&5
16902 sed 's/^/| /' conftest.$ac_ext >&5
16905 rm -f conftest.err conftest.$ac_objext \
16906 conftest$ac_exeext conftest.$ac_ext
16909 LIBS=$ac_func_search_save_LIBS
16911 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
16912 echo "${ECHO_T}$ac_cv_search_regfree" >&6
16913 if test "$ac_cv_search_regfree" != no; then
16914 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
16917 { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
16918 echo "$as_me: error: POSIX regex required." >&2;}
16919 { (exit 1); exit 1; }; }
16924 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
16925 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
16926 if test "${ol_cv_c_posix_regex+set}" = set; then
16927 echo $ECHO_N "(cached) $ECHO_C" >&6
16930 if test "$cross_compiling" = yes; then
16931 ol_cv_c_posix_regex=cross
16933 cat >conftest.$ac_ext <<_ACEOF
16936 cat confdefs.h >>conftest.$ac_ext
16937 cat >>conftest.$ac_ext <<_ACEOF
16938 /* end confdefs.h. */
16940 #include <sys/types.h>
16942 static char *pattern, *string;
16950 if(regcomp(&re, pattern, 0)) {
16954 string = "ALL MATCH";
16956 rc = regexec(&re, string, 0, (void*)0, 0);
16963 rm -f conftest$ac_exeext
16964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16965 (eval $ac_link) 2>&5
16967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16968 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16970 (eval $ac_try) 2>&5
16972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16973 (exit $ac_status); }; }; then
16974 ol_cv_c_posix_regex=yes
16976 echo "$as_me: program exited with status $ac_status" >&5
16977 echo "$as_me: failed program was:" >&5
16978 sed 's/^/| /' conftest.$ac_ext >&5
16980 ( exit $ac_status )
16981 ol_cv_c_posix_regex=no
16983 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16986 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
16987 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
16989 if test "$ol_cv_c_posix_regex" = no ; then
16990 { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
16991 echo "$as_me: error: broken POSIX regex!" >&2;}
16992 { (exit 1); exit 1; }; }
16998 for ac_header in sys/uuid.h
17000 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17002 echo "$as_me:$LINENO: checking for $ac_header" >&5
17003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17004 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17005 echo $ECHO_N "(cached) $ECHO_C" >&6
17007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17008 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17010 # Is the header compilable?
17011 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17012 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17013 cat >conftest.$ac_ext <<_ACEOF
17016 cat confdefs.h >>conftest.$ac_ext
17017 cat >>conftest.$ac_ext <<_ACEOF
17018 /* end confdefs.h. */
17019 $ac_includes_default
17020 #include <$ac_header>
17022 rm -f conftest.$ac_objext
17023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17024 (eval $ac_compile) 2>conftest.er1
17026 grep -v '^ *+' conftest.er1 >conftest.err
17028 cat conftest.err >&5
17029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030 (exit $ac_status); } &&
17031 { ac_try='test -z "$ac_c_werror_flag"
17032 || test ! -s conftest.err'
17033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17034 (eval $ac_try) 2>&5
17036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037 (exit $ac_status); }; } &&
17038 { ac_try='test -s conftest.$ac_objext'
17039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17040 (eval $ac_try) 2>&5
17042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043 (exit $ac_status); }; }; then
17044 ac_header_compiler=yes
17046 echo "$as_me: failed program was:" >&5
17047 sed 's/^/| /' conftest.$ac_ext >&5
17049 ac_header_compiler=no
17051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17052 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17053 echo "${ECHO_T}$ac_header_compiler" >&6
17055 # Is the header present?
17056 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17057 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17058 cat >conftest.$ac_ext <<_ACEOF
17061 cat confdefs.h >>conftest.$ac_ext
17062 cat >>conftest.$ac_ext <<_ACEOF
17063 /* end confdefs.h. */
17064 #include <$ac_header>
17066 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17067 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17069 grep -v '^ *+' conftest.er1 >conftest.err
17071 cat conftest.err >&5
17072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17073 (exit $ac_status); } >/dev/null; then
17074 if test -s conftest.err; then
17075 ac_cpp_err=$ac_c_preproc_warn_flag
17076 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17083 if test -z "$ac_cpp_err"; then
17084 ac_header_preproc=yes
17086 echo "$as_me: failed program was:" >&5
17087 sed 's/^/| /' conftest.$ac_ext >&5
17089 ac_header_preproc=no
17091 rm -f conftest.err conftest.$ac_ext
17092 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17093 echo "${ECHO_T}$ac_header_preproc" >&6
17095 # So? What about this header?
17096 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17098 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17099 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17101 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17102 ac_header_preproc=yes
17105 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17106 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17107 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17108 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17109 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17110 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17111 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17112 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17113 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17114 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17115 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17116 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17119 ## --------------------------------------------- ##
17120 ## Report this to <http://www.openldap.org/its/> ##
17121 ## --------------------------------------------- ##
17124 sed "s/^/$as_me: WARNING: /" >&2
17127 echo "$as_me:$LINENO: checking for $ac_header" >&5
17128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17130 echo $ECHO_N "(cached) $ECHO_C" >&6
17132 eval "$as_ac_Header=\$ac_header_preproc"
17134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17135 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17138 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17139 cat >>confdefs.h <<_ACEOF
17140 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17147 if test $ac_cv_header_sys_uuid_h = yes ; then
17149 echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
17150 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
17151 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17152 echo $ECHO_N "(cached) $ECHO_C" >&6
17154 ac_func_search_save_LIBS=$LIBS
17155 ac_cv_search_uuid_to_str=no
17156 cat >conftest.$ac_ext <<_ACEOF
17159 cat confdefs.h >>conftest.$ac_ext
17160 cat >>conftest.$ac_ext <<_ACEOF
17161 /* end confdefs.h. */
17163 /* Override any gcc2 internal prototype to avoid an error. */
17167 /* We use char because int might match the return type of a gcc2
17168 builtin and then its argument prototype would still apply. */
17169 char uuid_to_str ();
17178 rm -f conftest.$ac_objext conftest$ac_exeext
17179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17180 (eval $ac_link) 2>conftest.er1
17182 grep -v '^ *+' conftest.er1 >conftest.err
17184 cat conftest.err >&5
17185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17186 (exit $ac_status); } &&
17187 { ac_try='test -z "$ac_c_werror_flag"
17188 || test ! -s conftest.err'
17189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17190 (eval $ac_try) 2>&5
17192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193 (exit $ac_status); }; } &&
17194 { ac_try='test -s conftest$ac_exeext'
17195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17196 (eval $ac_try) 2>&5
17198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199 (exit $ac_status); }; }; then
17200 ac_cv_search_uuid_to_str="none required"
17202 echo "$as_me: failed program was:" >&5
17203 sed 's/^/| /' conftest.$ac_ext >&5
17206 rm -f conftest.err conftest.$ac_objext \
17207 conftest$ac_exeext conftest.$ac_ext
17208 if test "$ac_cv_search_uuid_to_str" = no; then
17209 for ac_lib in uuid; do
17210 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17211 cat >conftest.$ac_ext <<_ACEOF
17214 cat confdefs.h >>conftest.$ac_ext
17215 cat >>conftest.$ac_ext <<_ACEOF
17216 /* end confdefs.h. */
17218 /* Override any gcc2 internal prototype to avoid an error. */
17222 /* We use char because int might match the return type of a gcc2
17223 builtin and then its argument prototype would still apply. */
17224 char uuid_to_str ();
17233 rm -f conftest.$ac_objext conftest$ac_exeext
17234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17235 (eval $ac_link) 2>conftest.er1
17237 grep -v '^ *+' conftest.er1 >conftest.err
17239 cat conftest.err >&5
17240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241 (exit $ac_status); } &&
17242 { ac_try='test -z "$ac_c_werror_flag"
17243 || test ! -s conftest.err'
17244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17245 (eval $ac_try) 2>&5
17247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17248 (exit $ac_status); }; } &&
17249 { ac_try='test -s conftest$ac_exeext'
17250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17251 (eval $ac_try) 2>&5
17253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254 (exit $ac_status); }; }; then
17255 ac_cv_search_uuid_to_str="-l$ac_lib"
17258 echo "$as_me: failed program was:" >&5
17259 sed 's/^/| /' conftest.$ac_ext >&5
17262 rm -f conftest.err conftest.$ac_objext \
17263 conftest$ac_exeext conftest.$ac_ext
17266 LIBS=$ac_func_search_save_LIBS
17268 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
17269 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
17270 if test "$ac_cv_search_uuid_to_str" != no; then
17271 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
17279 if test have_uuid = yes ; then
17281 cat >>confdefs.h <<\_ACEOF
17282 #define HAVE_UUID_TO_STR 1
17286 test "$ac_cv_search_uuid_to_str" = "none required" || \
17287 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17291 if test $have_uuid = no ; then
17293 for ac_header in uuid/uuid.h
17295 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17297 echo "$as_me:$LINENO: checking for $ac_header" >&5
17298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17300 echo $ECHO_N "(cached) $ECHO_C" >&6
17302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17303 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17305 # Is the header compilable?
17306 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17307 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17308 cat >conftest.$ac_ext <<_ACEOF
17311 cat confdefs.h >>conftest.$ac_ext
17312 cat >>conftest.$ac_ext <<_ACEOF
17313 /* end confdefs.h. */
17314 $ac_includes_default
17315 #include <$ac_header>
17317 rm -f conftest.$ac_objext
17318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17319 (eval $ac_compile) 2>conftest.er1
17321 grep -v '^ *+' conftest.er1 >conftest.err
17323 cat conftest.err >&5
17324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325 (exit $ac_status); } &&
17326 { ac_try='test -z "$ac_c_werror_flag"
17327 || test ! -s conftest.err'
17328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17329 (eval $ac_try) 2>&5
17331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17332 (exit $ac_status); }; } &&
17333 { ac_try='test -s conftest.$ac_objext'
17334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17335 (eval $ac_try) 2>&5
17337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17338 (exit $ac_status); }; }; then
17339 ac_header_compiler=yes
17341 echo "$as_me: failed program was:" >&5
17342 sed 's/^/| /' conftest.$ac_ext >&5
17344 ac_header_compiler=no
17346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17347 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17348 echo "${ECHO_T}$ac_header_compiler" >&6
17350 # Is the header present?
17351 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17352 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17353 cat >conftest.$ac_ext <<_ACEOF
17356 cat confdefs.h >>conftest.$ac_ext
17357 cat >>conftest.$ac_ext <<_ACEOF
17358 /* end confdefs.h. */
17359 #include <$ac_header>
17361 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17362 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17364 grep -v '^ *+' conftest.er1 >conftest.err
17366 cat conftest.err >&5
17367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17368 (exit $ac_status); } >/dev/null; then
17369 if test -s conftest.err; then
17370 ac_cpp_err=$ac_c_preproc_warn_flag
17371 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17378 if test -z "$ac_cpp_err"; then
17379 ac_header_preproc=yes
17381 echo "$as_me: failed program was:" >&5
17382 sed 's/^/| /' conftest.$ac_ext >&5
17384 ac_header_preproc=no
17386 rm -f conftest.err conftest.$ac_ext
17387 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17388 echo "${ECHO_T}$ac_header_preproc" >&6
17390 # So? What about this header?
17391 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17393 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17394 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17396 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17397 ac_header_preproc=yes
17400 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17401 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17402 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17403 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17404 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17405 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17406 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17407 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17409 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17410 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17411 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17414 ## --------------------------------------------- ##
17415 ## Report this to <http://www.openldap.org/its/> ##
17416 ## --------------------------------------------- ##
17419 sed "s/^/$as_me: WARNING: /" >&2
17422 echo "$as_me:$LINENO: checking for $ac_header" >&5
17423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17425 echo $ECHO_N "(cached) $ECHO_C" >&6
17427 eval "$as_ac_Header=\$ac_header_preproc"
17429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17433 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17434 cat >>confdefs.h <<_ACEOF
17435 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17442 if test $ac_cv_header_uuid_uuid_h = yes ; then
17444 echo "$as_me:$LINENO: checking for library containing uuid_generate" >&5
17445 echo $ECHO_N "checking for library containing uuid_generate... $ECHO_C" >&6
17446 if test "${ac_cv_search_uuid_generate+set}" = set; then
17447 echo $ECHO_N "(cached) $ECHO_C" >&6
17449 ac_func_search_save_LIBS=$LIBS
17450 ac_cv_search_uuid_generate=no
17451 cat >conftest.$ac_ext <<_ACEOF
17454 cat confdefs.h >>conftest.$ac_ext
17455 cat >>conftest.$ac_ext <<_ACEOF
17456 /* end confdefs.h. */
17458 /* Override any gcc2 internal prototype to avoid an error. */
17462 /* We use char because int might match the return type of a gcc2
17463 builtin and then its argument prototype would still apply. */
17464 char uuid_generate ();
17473 rm -f conftest.$ac_objext conftest$ac_exeext
17474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17475 (eval $ac_link) 2>conftest.er1
17477 grep -v '^ *+' conftest.er1 >conftest.err
17479 cat conftest.err >&5
17480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17481 (exit $ac_status); } &&
17482 { ac_try='test -z "$ac_c_werror_flag"
17483 || test ! -s conftest.err'
17484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17485 (eval $ac_try) 2>&5
17487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488 (exit $ac_status); }; } &&
17489 { ac_try='test -s conftest$ac_exeext'
17490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17491 (eval $ac_try) 2>&5
17493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17494 (exit $ac_status); }; }; then
17495 ac_cv_search_uuid_generate="none required"
17497 echo "$as_me: failed program was:" >&5
17498 sed 's/^/| /' conftest.$ac_ext >&5
17501 rm -f conftest.err conftest.$ac_objext \
17502 conftest$ac_exeext conftest.$ac_ext
17503 if test "$ac_cv_search_uuid_generate" = no; then
17504 for ac_lib in uuid; do
17505 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17506 cat >conftest.$ac_ext <<_ACEOF
17509 cat confdefs.h >>conftest.$ac_ext
17510 cat >>conftest.$ac_ext <<_ACEOF
17511 /* end confdefs.h. */
17513 /* Override any gcc2 internal prototype to avoid an error. */
17517 /* We use char because int might match the return type of a gcc2
17518 builtin and then its argument prototype would still apply. */
17519 char uuid_generate ();
17528 rm -f conftest.$ac_objext conftest$ac_exeext
17529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17530 (eval $ac_link) 2>conftest.er1
17532 grep -v '^ *+' conftest.er1 >conftest.err
17534 cat conftest.err >&5
17535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17536 (exit $ac_status); } &&
17537 { ac_try='test -z "$ac_c_werror_flag"
17538 || test ! -s conftest.err'
17539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17540 (eval $ac_try) 2>&5
17542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17543 (exit $ac_status); }; } &&
17544 { ac_try='test -s conftest$ac_exeext'
17545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17546 (eval $ac_try) 2>&5
17548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549 (exit $ac_status); }; }; then
17550 ac_cv_search_uuid_generate="-l$ac_lib"
17553 echo "$as_me: failed program was:" >&5
17554 sed 's/^/| /' conftest.$ac_ext >&5
17557 rm -f conftest.err conftest.$ac_objext \
17558 conftest$ac_exeext conftest.$ac_ext
17561 LIBS=$ac_func_search_save_LIBS
17563 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_generate" >&5
17564 echo "${ECHO_T}$ac_cv_search_uuid_generate" >&6
17565 if test "$ac_cv_search_uuid_generate" != no; then
17566 test "$ac_cv_search_uuid_generate" = "none required" || LIBS="$ac_cv_search_uuid_generate $LIBS"
17574 if test have_uuid = yes ; then
17576 cat >>confdefs.h <<\_ACEOF
17577 #define HAVE_UUID_GENERATE 1
17581 test "$ac_cv_search_uuid_generate" = "none required" || \
17582 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_generate"
17587 if test $have_uuid = no ; then
17588 echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
17589 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
17591 LIBS="$LIBS -lrpcrt4"
17592 cat >conftest.$ac_ext <<_ACEOF
17595 cat confdefs.h >>conftest.$ac_ext
17596 cat >>conftest.$ac_ext <<_ACEOF
17597 /* end confdefs.h. */
17599 int __stdcall UuidCreate(void *);
17600 int __stdcall UuidToStringA(void *,void **);
17607 UuidToStringA(0,0);
17613 rm -f conftest.$ac_objext conftest$ac_exeext
17614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17615 (eval $ac_link) 2>conftest.er1
17617 grep -v '^ *+' conftest.er1 >conftest.err
17619 cat conftest.err >&5
17620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621 (exit $ac_status); } &&
17622 { ac_try='test -z "$ac_c_werror_flag"
17623 || test ! -s conftest.err'
17624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17625 (eval $ac_try) 2>&5
17627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628 (exit $ac_status); }; } &&
17629 { ac_try='test -s conftest$ac_exeext'
17630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17631 (eval $ac_try) 2>&5
17633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634 (exit $ac_status); }; }; then
17637 echo "$as_me: failed program was:" >&5
17638 sed 's/^/| /' conftest.$ac_ext >&5
17642 rm -f conftest.err conftest.$ac_objext \
17643 conftest$ac_exeext conftest.$ac_ext
17644 if test $need_rpcrt = yes; then
17645 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
17648 echo "$as_me:$LINENO: result: $need_rpcrt" >&5
17649 echo "${ECHO_T}$need_rpcrt" >&6
17652 ol_cv_lib_resolver=no
17653 if test $ol_cv_lib_resolver = no ; then
17654 echo "$as_me:$LINENO: checking for resolver link (default)" >&5
17655 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
17656 if test "${ol_cv_resolver_none+set}" = set; then
17657 echo $ECHO_N "(cached) $ECHO_C" >&6
17662 LIBS="$ol_RESOLVER_LIB $LIBS"
17664 cat >conftest.$ac_ext <<_ACEOF
17667 cat confdefs.h >>conftest.$ac_ext
17668 cat >>conftest.$ac_ext <<_ACEOF
17669 /* end confdefs.h. */
17671 #ifdef HAVE_SYS_TYPES_H
17672 # include <sys/types.h>
17674 #include <netinet/in.h>
17675 #ifdef HAVE_ARPA_NAMESER_H
17676 # include <arpa/nameser.h>
17678 #ifdef HAVE_RESOLV_H
17679 # include <resolv.h>
17687 char *request = NULL;
17688 unsigned char reply[64*1024];
17689 unsigned char host[64*1024];
17693 /* Bind 8/9 interface */
17694 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17696 /* Bind 4 interface */
17700 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17704 /* Bind 8/9 interface */
17706 #elif defined(HFIXEDSZ)
17707 /* Bind 4 interface w/ HFIXEDSZ */
17710 /* Bind 4 interface w/o HFIXEDSZ */
17711 p += sizeof(HEADER);
17713 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17719 rm -f conftest.$ac_objext conftest$ac_exeext
17720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17721 (eval $ac_link) 2>conftest.er1
17723 grep -v '^ *+' conftest.er1 >conftest.err
17725 cat conftest.err >&5
17726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727 (exit $ac_status); } &&
17728 { ac_try='test -z "$ac_c_werror_flag"
17729 || test ! -s conftest.err'
17730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17731 (eval $ac_try) 2>&5
17733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734 (exit $ac_status); }; } &&
17735 { ac_try='test -s conftest$ac_exeext'
17736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17737 (eval $ac_try) 2>&5
17739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17740 (exit $ac_status); }; }; then
17741 ol_cv_resolver_none=yes
17743 echo "$as_me: failed program was:" >&5
17744 sed 's/^/| /' conftest.$ac_ext >&5
17746 ol_cv_resolver_none=no
17748 rm -f conftest.err conftest.$ac_objext \
17749 conftest$ac_exeext conftest.$ac_ext
17754 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
17755 echo "${ECHO_T}$ol_cv_resolver_none" >&6
17757 if test $ol_cv_resolver_none = yes ; then
17758 ol_cv_lib_resolver=yes
17762 if test $ol_cv_lib_resolver = no ; then
17763 echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
17764 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
17765 if test "${ol_cv_resolver_resolv+set}" = set; then
17766 echo $ECHO_N "(cached) $ECHO_C" >&6
17769 ol_RESOLVER_LIB=-lresolv
17771 LIBS="$ol_RESOLVER_LIB $LIBS"
17773 cat >conftest.$ac_ext <<_ACEOF
17776 cat confdefs.h >>conftest.$ac_ext
17777 cat >>conftest.$ac_ext <<_ACEOF
17778 /* end confdefs.h. */
17780 #ifdef HAVE_SYS_TYPES_H
17781 # include <sys/types.h>
17783 #include <netinet/in.h>
17784 #ifdef HAVE_ARPA_NAMESER_H
17785 # include <arpa/nameser.h>
17787 #ifdef HAVE_RESOLV_H
17788 # include <resolv.h>
17796 char *request = NULL;
17797 unsigned char reply[64*1024];
17798 unsigned char host[64*1024];
17802 /* Bind 8/9 interface */
17803 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17805 /* Bind 4 interface */
17809 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17813 /* Bind 8/9 interface */
17815 #elif defined(HFIXEDSZ)
17816 /* Bind 4 interface w/ HFIXEDSZ */
17819 /* Bind 4 interface w/o HFIXEDSZ */
17820 p += sizeof(HEADER);
17822 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17828 rm -f conftest.$ac_objext conftest$ac_exeext
17829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17830 (eval $ac_link) 2>conftest.er1
17832 grep -v '^ *+' conftest.er1 >conftest.err
17834 cat conftest.err >&5
17835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836 (exit $ac_status); } &&
17837 { ac_try='test -z "$ac_c_werror_flag"
17838 || test ! -s conftest.err'
17839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17840 (eval $ac_try) 2>&5
17842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843 (exit $ac_status); }; } &&
17844 { ac_try='test -s conftest$ac_exeext'
17845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17846 (eval $ac_try) 2>&5
17848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); }; }; then
17850 ol_cv_resolver_resolv=yes
17852 echo "$as_me: failed program was:" >&5
17853 sed 's/^/| /' conftest.$ac_ext >&5
17855 ol_cv_resolver_resolv=no
17857 rm -f conftest.err conftest.$ac_objext \
17858 conftest$ac_exeext conftest.$ac_ext
17863 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
17864 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
17866 if test $ol_cv_resolver_resolv = yes ; then
17867 ol_cv_lib_resolver=-lresolv
17871 if test $ol_cv_lib_resolver = no ; then
17872 echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
17873 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
17874 if test "${ol_cv_resolver_bind+set}" = set; then
17875 echo $ECHO_N "(cached) $ECHO_C" >&6
17878 ol_RESOLVER_LIB=-lbind
17880 LIBS="$ol_RESOLVER_LIB $LIBS"
17882 cat >conftest.$ac_ext <<_ACEOF
17885 cat confdefs.h >>conftest.$ac_ext
17886 cat >>conftest.$ac_ext <<_ACEOF
17887 /* end confdefs.h. */
17889 #ifdef HAVE_SYS_TYPES_H
17890 # include <sys/types.h>
17892 #include <netinet/in.h>
17893 #ifdef HAVE_ARPA_NAMESER_H
17894 # include <arpa/nameser.h>
17896 #ifdef HAVE_RESOLV_H
17897 # include <resolv.h>
17905 char *request = NULL;
17906 unsigned char reply[64*1024];
17907 unsigned char host[64*1024];
17911 /* Bind 8/9 interface */
17912 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17914 /* Bind 4 interface */
17918 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17922 /* Bind 8/9 interface */
17924 #elif defined(HFIXEDSZ)
17925 /* Bind 4 interface w/ HFIXEDSZ */
17928 /* Bind 4 interface w/o HFIXEDSZ */
17929 p += sizeof(HEADER);
17931 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17937 rm -f conftest.$ac_objext conftest$ac_exeext
17938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17939 (eval $ac_link) 2>conftest.er1
17941 grep -v '^ *+' conftest.er1 >conftest.err
17943 cat conftest.err >&5
17944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17945 (exit $ac_status); } &&
17946 { ac_try='test -z "$ac_c_werror_flag"
17947 || test ! -s conftest.err'
17948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17949 (eval $ac_try) 2>&5
17951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17952 (exit $ac_status); }; } &&
17953 { ac_try='test -s conftest$ac_exeext'
17954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17955 (eval $ac_try) 2>&5
17957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17958 (exit $ac_status); }; }; then
17959 ol_cv_resolver_bind=yes
17961 echo "$as_me: failed program was:" >&5
17962 sed 's/^/| /' conftest.$ac_ext >&5
17964 ol_cv_resolver_bind=no
17966 rm -f conftest.err conftest.$ac_objext \
17967 conftest$ac_exeext conftest.$ac_ext
17972 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
17973 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
17975 if test $ol_cv_resolver_bind = yes ; then
17976 ol_cv_lib_resolver=-lbind
17983 if test "$ol_cv_lib_resolver" != no ; then
17985 cat >>confdefs.h <<\_ACEOF
17986 #define HAVE_RES_QUERY 1
17990 if test "$ol_enable_dnssrv" != no ; then
17994 if test "$ol_cv_lib_resolver" != yes ; then
17995 LIBS="$ol_cv_lib_resolver $LIBS"
17999 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
18000 if test "$ol_link_dnssrv" = no ; then
18001 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
18002 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
18003 { (exit 1); exit 1; }; }
18006 ol_enable_dnssrv=no
18010 for ac_func in hstrerror
18012 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18013 echo "$as_me:$LINENO: checking for $ac_func" >&5
18014 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18015 if eval "test \"\${$as_ac_var+set}\" = set"; then
18016 echo $ECHO_N "(cached) $ECHO_C" >&6
18018 cat >conftest.$ac_ext <<_ACEOF
18021 cat confdefs.h >>conftest.$ac_ext
18022 cat >>conftest.$ac_ext <<_ACEOF
18023 /* end confdefs.h. */
18024 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18026 #define $ac_func innocuous_$ac_func
18028 /* System header to define __stub macros and hopefully few prototypes,
18029 which can conflict with char $ac_func (); below.
18030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18031 <limits.h> exists even on freestanding compilers. */
18034 # include <limits.h>
18036 # include <assert.h>
18041 /* Override any gcc2 internal prototype to avoid an error. */
18046 /* We use char because int might match the return type of a gcc2
18047 builtin and then its argument prototype would still apply. */
18049 /* The GNU C library defines this for functions which it implements
18050 to always fail with ENOSYS. Some functions are actually named
18051 something starting with __ and the normal name is an alias. */
18052 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18055 char (*f) () = $ac_func;
18064 return f != $ac_func;
18069 rm -f conftest.$ac_objext conftest$ac_exeext
18070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18071 (eval $ac_link) 2>conftest.er1
18073 grep -v '^ *+' conftest.er1 >conftest.err
18075 cat conftest.err >&5
18076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18077 (exit $ac_status); } &&
18078 { ac_try='test -z "$ac_c_werror_flag"
18079 || test ! -s conftest.err'
18080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18081 (eval $ac_try) 2>&5
18083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084 (exit $ac_status); }; } &&
18085 { ac_try='test -s conftest$ac_exeext'
18086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18087 (eval $ac_try) 2>&5
18089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090 (exit $ac_status); }; }; then
18091 eval "$as_ac_var=yes"
18093 echo "$as_me: failed program was:" >&5
18094 sed 's/^/| /' conftest.$ac_ext >&5
18096 eval "$as_ac_var=no"
18098 rm -f conftest.err conftest.$ac_objext \
18099 conftest$ac_exeext conftest.$ac_ext
18101 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18102 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18103 if test `eval echo '${'$as_ac_var'}'` = yes; then
18104 cat >>confdefs.h <<_ACEOF
18105 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18116 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
18118 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18119 echo "$as_me:$LINENO: checking for $ac_func" >&5
18120 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18121 if eval "test \"\${$as_ac_var+set}\" = set"; then
18122 echo $ECHO_N "(cached) $ECHO_C" >&6
18124 cat >conftest.$ac_ext <<_ACEOF
18127 cat confdefs.h >>conftest.$ac_ext
18128 cat >>conftest.$ac_ext <<_ACEOF
18129 /* end confdefs.h. */
18130 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18131 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18132 #define $ac_func innocuous_$ac_func
18134 /* System header to define __stub macros and hopefully few prototypes,
18135 which can conflict with char $ac_func (); below.
18136 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18137 <limits.h> exists even on freestanding compilers. */
18140 # include <limits.h>
18142 # include <assert.h>
18147 /* Override any gcc2 internal prototype to avoid an error. */
18152 /* We use char because int might match the return type of a gcc2
18153 builtin and then its argument prototype would still apply. */
18155 /* The GNU C library defines this for functions which it implements
18156 to always fail with ENOSYS. Some functions are actually named
18157 something starting with __ and the normal name is an alias. */
18158 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18161 char (*f) () = $ac_func;
18170 return f != $ac_func;
18175 rm -f conftest.$ac_objext conftest$ac_exeext
18176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18177 (eval $ac_link) 2>conftest.er1
18179 grep -v '^ *+' conftest.er1 >conftest.err
18181 cat conftest.err >&5
18182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183 (exit $ac_status); } &&
18184 { ac_try='test -z "$ac_c_werror_flag"
18185 || test ! -s conftest.err'
18186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18187 (eval $ac_try) 2>&5
18189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190 (exit $ac_status); }; } &&
18191 { ac_try='test -s conftest$ac_exeext'
18192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18193 (eval $ac_try) 2>&5
18195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18196 (exit $ac_status); }; }; then
18197 eval "$as_ac_var=yes"
18199 echo "$as_me: failed program was:" >&5
18200 sed 's/^/| /' conftest.$ac_ext >&5
18202 eval "$as_ac_var=no"
18204 rm -f conftest.err conftest.$ac_objext \
18205 conftest$ac_exeext conftest.$ac_ext
18207 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18208 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18209 if test `eval echo '${'$as_ac_var'}'` = yes; then
18210 cat >>confdefs.h <<_ACEOF
18211 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18219 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
18220 if test $ol_enable_ipv6 = yes ; then
18221 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
18222 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
18223 { (exit 1); exit 1; }; }
18225 elif test $ol_enable_ipv6 != no ; then
18226 echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
18227 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
18228 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
18229 echo $ECHO_N "(cached) $ECHO_C" >&6
18232 cat >conftest.$ac_ext <<_ACEOF
18235 cat confdefs.h >>conftest.$ac_ext
18236 cat >>conftest.$ac_ext <<_ACEOF
18237 /* end confdefs.h. */
18239 # include <netinet/in.h>
18240 # ifdef INET6_ADDRSTRLEN
18241 __has_inet6_addrstrlen__;
18245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18246 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
18247 ol_cv_inet6_addrstrlen=yes
18249 ol_cv_inet6_addrstrlen=no
18254 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
18255 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
18258 echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
18259 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
18260 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
18261 echo $ECHO_N "(cached) $ECHO_C" >&6
18264 cat >conftest.$ac_ext <<_ACEOF
18267 cat confdefs.h >>conftest.$ac_ext
18268 cat >>conftest.$ac_ext <<_ACEOF
18269 /* end confdefs.h. */
18271 #include <sys/types.h>
18272 #include <sys/socket.h>
18278 struct sockaddr_storage ss;
18284 rm -f conftest.$ac_objext
18285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18286 (eval $ac_compile) 2>conftest.er1
18288 grep -v '^ *+' conftest.er1 >conftest.err
18290 cat conftest.err >&5
18291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292 (exit $ac_status); } &&
18293 { ac_try='test -z "$ac_c_werror_flag"
18294 || test ! -s conftest.err'
18295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18296 (eval $ac_try) 2>&5
18298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299 (exit $ac_status); }; } &&
18300 { ac_try='test -s conftest.$ac_objext'
18301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18302 (eval $ac_try) 2>&5
18304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305 (exit $ac_status); }; }; then
18306 ol_cv_struct_sockaddr_storage=yes
18308 echo "$as_me: failed program was:" >&5
18309 sed 's/^/| /' conftest.$ac_ext >&5
18311 ol_cv_struct_sockaddr_storage=no
18313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18315 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
18316 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
18318 if test $ol_cv_inet6_addrstrlen = yes &&
18319 test $ol_cv_struct_sockaddr_storage = yes ; then
18321 elif test $ol_enable_ipv6 = yes &&
18322 test $ol_cv_inet6_addrstrlen = no ; then
18323 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
18324 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
18325 { (exit 1); exit 1; }; }
18326 elif test $ol_enable_ipv6 = yes &&
18327 test $ol_cv_struct_sockaddr_storage = no ; then
18328 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
18329 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
18330 { (exit 1); exit 1; }; }
18334 if test $ol_enable_local != no ; then
18336 for ac_header in sys/un.h
18338 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18339 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18340 echo "$as_me:$LINENO: checking for $ac_header" >&5
18341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18342 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18343 echo $ECHO_N "(cached) $ECHO_C" >&6
18345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18346 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18348 # Is the header compilable?
18349 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18350 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18351 cat >conftest.$ac_ext <<_ACEOF
18354 cat confdefs.h >>conftest.$ac_ext
18355 cat >>conftest.$ac_ext <<_ACEOF
18356 /* end confdefs.h. */
18357 $ac_includes_default
18358 #include <$ac_header>
18360 rm -f conftest.$ac_objext
18361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18362 (eval $ac_compile) 2>conftest.er1
18364 grep -v '^ *+' conftest.er1 >conftest.err
18366 cat conftest.err >&5
18367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18368 (exit $ac_status); } &&
18369 { ac_try='test -z "$ac_c_werror_flag"
18370 || test ! -s conftest.err'
18371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18372 (eval $ac_try) 2>&5
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); }; } &&
18376 { ac_try='test -s conftest.$ac_objext'
18377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18378 (eval $ac_try) 2>&5
18380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381 (exit $ac_status); }; }; then
18382 ac_header_compiler=yes
18384 echo "$as_me: failed program was:" >&5
18385 sed 's/^/| /' conftest.$ac_ext >&5
18387 ac_header_compiler=no
18389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18390 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18391 echo "${ECHO_T}$ac_header_compiler" >&6
18393 # Is the header present?
18394 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18395 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18396 cat >conftest.$ac_ext <<_ACEOF
18399 cat confdefs.h >>conftest.$ac_ext
18400 cat >>conftest.$ac_ext <<_ACEOF
18401 /* end confdefs.h. */
18402 #include <$ac_header>
18404 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18405 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18407 grep -v '^ *+' conftest.er1 >conftest.err
18409 cat conftest.err >&5
18410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18411 (exit $ac_status); } >/dev/null; then
18412 if test -s conftest.err; then
18413 ac_cpp_err=$ac_c_preproc_warn_flag
18414 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18421 if test -z "$ac_cpp_err"; then
18422 ac_header_preproc=yes
18424 echo "$as_me: failed program was:" >&5
18425 sed 's/^/| /' conftest.$ac_ext >&5
18427 ac_header_preproc=no
18429 rm -f conftest.err conftest.$ac_ext
18430 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18431 echo "${ECHO_T}$ac_header_preproc" >&6
18433 # So? What about this header?
18434 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18436 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18437 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18439 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18440 ac_header_preproc=yes
18443 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18444 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18445 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18446 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18447 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18448 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18449 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18450 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18452 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18453 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18454 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18457 ## --------------------------------------------- ##
18458 ## Report this to <http://www.openldap.org/its/> ##
18459 ## --------------------------------------------- ##
18462 sed "s/^/$as_me: WARNING: /" >&2
18465 echo "$as_me:$LINENO: checking for $ac_header" >&5
18466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18468 echo $ECHO_N "(cached) $ECHO_C" >&6
18470 eval "$as_ac_Header=\$ac_header_preproc"
18472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18473 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18476 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18477 cat >>confdefs.h <<_ACEOF
18478 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18486 if test $ol_enable_local = auto ; then
18487 ol_enable_local=$ac_cv_header_sys_un_h
18488 elif test $ac_cv_header_sys_un_h = no ; then
18489 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
18490 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
18491 { (exit 1); exit 1; }; }
18496 if test $ol_with_tls = yes ; then
18501 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
18503 for ac_header in openssl/ssl.h
18505 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18506 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18507 echo "$as_me:$LINENO: checking for $ac_header" >&5
18508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18509 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18510 echo $ECHO_N "(cached) $ECHO_C" >&6
18512 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18513 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18515 # Is the header compilable?
18516 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18517 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18518 cat >conftest.$ac_ext <<_ACEOF
18521 cat confdefs.h >>conftest.$ac_ext
18522 cat >>conftest.$ac_ext <<_ACEOF
18523 /* end confdefs.h. */
18524 $ac_includes_default
18525 #include <$ac_header>
18527 rm -f conftest.$ac_objext
18528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18529 (eval $ac_compile) 2>conftest.er1
18531 grep -v '^ *+' conftest.er1 >conftest.err
18533 cat conftest.err >&5
18534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535 (exit $ac_status); } &&
18536 { ac_try='test -z "$ac_c_werror_flag"
18537 || test ! -s conftest.err'
18538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18539 (eval $ac_try) 2>&5
18541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542 (exit $ac_status); }; } &&
18543 { ac_try='test -s conftest.$ac_objext'
18544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18545 (eval $ac_try) 2>&5
18547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); }; }; then
18549 ac_header_compiler=yes
18551 echo "$as_me: failed program was:" >&5
18552 sed 's/^/| /' conftest.$ac_ext >&5
18554 ac_header_compiler=no
18556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18557 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18558 echo "${ECHO_T}$ac_header_compiler" >&6
18560 # Is the header present?
18561 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18562 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18563 cat >conftest.$ac_ext <<_ACEOF
18566 cat confdefs.h >>conftest.$ac_ext
18567 cat >>conftest.$ac_ext <<_ACEOF
18568 /* end confdefs.h. */
18569 #include <$ac_header>
18571 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18572 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18574 grep -v '^ *+' conftest.er1 >conftest.err
18576 cat conftest.err >&5
18577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18578 (exit $ac_status); } >/dev/null; then
18579 if test -s conftest.err; then
18580 ac_cpp_err=$ac_c_preproc_warn_flag
18581 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18588 if test -z "$ac_cpp_err"; then
18589 ac_header_preproc=yes
18591 echo "$as_me: failed program was:" >&5
18592 sed 's/^/| /' conftest.$ac_ext >&5
18594 ac_header_preproc=no
18596 rm -f conftest.err conftest.$ac_ext
18597 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18598 echo "${ECHO_T}$ac_header_preproc" >&6
18600 # So? What about this header?
18601 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18603 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18604 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18605 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18606 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18607 ac_header_preproc=yes
18610 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18611 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18612 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18613 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18614 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18615 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18616 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18617 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18619 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18620 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18621 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18624 ## --------------------------------------------- ##
18625 ## Report this to <http://www.openldap.org/its/> ##
18626 ## --------------------------------------------- ##
18629 sed "s/^/$as_me: WARNING: /" >&2
18632 echo "$as_me:$LINENO: checking for $ac_header" >&5
18633 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18634 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18635 echo $ECHO_N "(cached) $ECHO_C" >&6
18637 eval "$as_ac_Header=\$ac_header_preproc"
18639 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18640 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18643 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18644 cat >>confdefs.h <<_ACEOF
18645 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18653 if test $ac_cv_header_openssl_ssl_h = yes ; then
18654 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
18655 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
18656 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
18657 echo $ECHO_N "(cached) $ECHO_C" >&6
18659 ac_check_lib_save_LIBS=$LIBS
18660 LIBS="-lssl -lcrypto $LIBS"
18661 cat >conftest.$ac_ext <<_ACEOF
18664 cat confdefs.h >>conftest.$ac_ext
18665 cat >>conftest.$ac_ext <<_ACEOF
18666 /* end confdefs.h. */
18668 /* Override any gcc2 internal prototype to avoid an error. */
18672 /* We use char because int might match the return type of a gcc2
18673 builtin and then its argument prototype would still apply. */
18674 char SSL_library_init ();
18678 SSL_library_init ();
18683 rm -f conftest.$ac_objext conftest$ac_exeext
18684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18685 (eval $ac_link) 2>conftest.er1
18687 grep -v '^ *+' conftest.er1 >conftest.err
18689 cat conftest.err >&5
18690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18691 (exit $ac_status); } &&
18692 { ac_try='test -z "$ac_c_werror_flag"
18693 || test ! -s conftest.err'
18694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18695 (eval $ac_try) 2>&5
18697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18698 (exit $ac_status); }; } &&
18699 { ac_try='test -s conftest$ac_exeext'
18700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18701 (eval $ac_try) 2>&5
18703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18704 (exit $ac_status); }; }; then
18705 ac_cv_lib_ssl_SSL_library_init=yes
18707 echo "$as_me: failed program was:" >&5
18708 sed 's/^/| /' conftest.$ac_ext >&5
18710 ac_cv_lib_ssl_SSL_library_init=no
18712 rm -f conftest.err conftest.$ac_objext \
18713 conftest$ac_exeext conftest.$ac_ext
18714 LIBS=$ac_check_lib_save_LIBS
18716 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
18717 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
18718 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
18726 if test $have_openssl = no ; then
18727 echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
18728 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
18729 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
18730 echo $ECHO_N "(cached) $ECHO_C" >&6
18732 ac_check_lib_save_LIBS=$LIBS
18733 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
18734 cat >conftest.$ac_ext <<_ACEOF
18737 cat confdefs.h >>conftest.$ac_ext
18738 cat >>conftest.$ac_ext <<_ACEOF
18739 /* end confdefs.h. */
18741 /* Override any gcc2 internal prototype to avoid an error. */
18745 /* We use char because int might match the return type of a gcc2
18746 builtin and then its argument prototype would still apply. */
18747 char ssl3_accept ();
18756 rm -f conftest.$ac_objext conftest$ac_exeext
18757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18758 (eval $ac_link) 2>conftest.er1
18760 grep -v '^ *+' conftest.er1 >conftest.err
18762 cat conftest.err >&5
18763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18764 (exit $ac_status); } &&
18765 { ac_try='test -z "$ac_c_werror_flag"
18766 || test ! -s conftest.err'
18767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18768 (eval $ac_try) 2>&5
18770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18771 (exit $ac_status); }; } &&
18772 { ac_try='test -s conftest$ac_exeext'
18773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18774 (eval $ac_try) 2>&5
18776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18777 (exit $ac_status); }; }; then
18778 ac_cv_lib_ssl_ssl3_accept=yes
18780 echo "$as_me: failed program was:" >&5
18781 sed 's/^/| /' conftest.$ac_ext >&5
18783 ac_cv_lib_ssl_ssl3_accept=no
18785 rm -f conftest.err conftest.$ac_objext \
18786 conftest$ac_exeext conftest.$ac_ext
18787 LIBS=$ac_check_lib_save_LIBS
18789 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
18790 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
18791 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
18800 if test $have_openssl = yes ; then
18801 ol_with_tls=openssl
18805 cat >>confdefs.h <<\_ACEOF
18806 #define HAVE_OPENSSL 1
18810 if test $need_rsaref = yes; then
18812 cat >>confdefs.h <<\_ACEOF
18813 #define HAVE_RSAREF 1
18817 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
18819 TLS_LIBS="-lssl -lcrypto"
18822 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
18823 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
18824 if test "${ol_cv_ssl_crl_compat+set}" = set; then
18825 echo $ECHO_N "(cached) $ECHO_C" >&6
18828 cat >conftest.$ac_ext <<_ACEOF
18831 cat confdefs.h >>conftest.$ac_ext
18832 cat >>conftest.$ac_ext <<_ACEOF
18833 /* end confdefs.h. */
18835 #ifdef HAVE_OPENSSL_SSL_H
18836 #include <openssl/ssl.h>
18839 /* Require 0.9.7d+ */
18840 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
18841 char *__ssl_compat = "0.9.7d";
18845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18846 $EGREP "__ssl_compat" >/dev/null 2>&1; then
18847 ol_cv_ssl_crl_compat=yes
18849 ol_cv_ssl_crl_compat=no
18854 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
18855 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
18857 if test $ol_cv_ssl_crl_compat = yes ; then
18859 cat >>confdefs.h <<\_ACEOF
18860 #define HAVE_OPENSSL_CRL 1
18868 if test $ol_link_tls = no ; then
18869 if test $ol_with_tls = gnutls || test $ol_with_tls = auto ; then
18871 for ac_header in gnutls/gnutls.h
18873 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18874 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18875 echo "$as_me:$LINENO: checking for $ac_header" >&5
18876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18878 echo $ECHO_N "(cached) $ECHO_C" >&6
18880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18881 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18883 # Is the header compilable?
18884 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18885 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18886 cat >conftest.$ac_ext <<_ACEOF
18889 cat confdefs.h >>conftest.$ac_ext
18890 cat >>conftest.$ac_ext <<_ACEOF
18891 /* end confdefs.h. */
18892 $ac_includes_default
18893 #include <$ac_header>
18895 rm -f conftest.$ac_objext
18896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18897 (eval $ac_compile) 2>conftest.er1
18899 grep -v '^ *+' conftest.er1 >conftest.err
18901 cat conftest.err >&5
18902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903 (exit $ac_status); } &&
18904 { ac_try='test -z "$ac_c_werror_flag"
18905 || test ! -s conftest.err'
18906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18907 (eval $ac_try) 2>&5
18909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18910 (exit $ac_status); }; } &&
18911 { ac_try='test -s conftest.$ac_objext'
18912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18913 (eval $ac_try) 2>&5
18915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18916 (exit $ac_status); }; }; then
18917 ac_header_compiler=yes
18919 echo "$as_me: failed program was:" >&5
18920 sed 's/^/| /' conftest.$ac_ext >&5
18922 ac_header_compiler=no
18924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18925 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18926 echo "${ECHO_T}$ac_header_compiler" >&6
18928 # Is the header present?
18929 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18930 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18931 cat >conftest.$ac_ext <<_ACEOF
18934 cat confdefs.h >>conftest.$ac_ext
18935 cat >>conftest.$ac_ext <<_ACEOF
18936 /* end confdefs.h. */
18937 #include <$ac_header>
18939 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18940 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18942 grep -v '^ *+' conftest.er1 >conftest.err
18944 cat conftest.err >&5
18945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946 (exit $ac_status); } >/dev/null; then
18947 if test -s conftest.err; then
18948 ac_cpp_err=$ac_c_preproc_warn_flag
18949 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18956 if test -z "$ac_cpp_err"; then
18957 ac_header_preproc=yes
18959 echo "$as_me: failed program was:" >&5
18960 sed 's/^/| /' conftest.$ac_ext >&5
18962 ac_header_preproc=no
18964 rm -f conftest.err conftest.$ac_ext
18965 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18966 echo "${ECHO_T}$ac_header_preproc" >&6
18968 # So? What about this header?
18969 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18971 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18972 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18974 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18975 ac_header_preproc=yes
18978 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18979 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18980 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18981 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18982 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18983 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18984 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18985 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18987 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18988 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18989 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18992 ## --------------------------------------------- ##
18993 ## Report this to <http://www.openldap.org/its/> ##
18994 ## --------------------------------------------- ##
18997 sed "s/^/$as_me: WARNING: /" >&2
19000 echo "$as_me:$LINENO: checking for $ac_header" >&5
19001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19003 echo $ECHO_N "(cached) $ECHO_C" >&6
19005 eval "$as_ac_Header=\$ac_header_preproc"
19007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19008 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19011 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19012 cat >>confdefs.h <<_ACEOF
19013 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19021 if test $ac_cv_header_gnutls_gnutls_h = yes ; then
19022 echo "$as_me:$LINENO: checking for gnutls_init in -lgnutls" >&5
19023 echo $ECHO_N "checking for gnutls_init in -lgnutls... $ECHO_C" >&6
19024 if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then
19025 echo $ECHO_N "(cached) $ECHO_C" >&6
19027 ac_check_lib_save_LIBS=$LIBS
19028 LIBS="-lgnutls $LIBS"
19029 cat >conftest.$ac_ext <<_ACEOF
19032 cat confdefs.h >>conftest.$ac_ext
19033 cat >>conftest.$ac_ext <<_ACEOF
19034 /* end confdefs.h. */
19036 /* Override any gcc2 internal prototype to avoid an error. */
19040 /* We use char because int might match the return type of a gcc2
19041 builtin and then its argument prototype would still apply. */
19042 char gnutls_init ();
19051 rm -f conftest.$ac_objext conftest$ac_exeext
19052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19053 (eval $ac_link) 2>conftest.er1
19055 grep -v '^ *+' conftest.er1 >conftest.err
19057 cat conftest.err >&5
19058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19059 (exit $ac_status); } &&
19060 { ac_try='test -z "$ac_c_werror_flag"
19061 || test ! -s conftest.err'
19062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19063 (eval $ac_try) 2>&5
19065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066 (exit $ac_status); }; } &&
19067 { ac_try='test -s conftest$ac_exeext'
19068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19069 (eval $ac_try) 2>&5
19071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072 (exit $ac_status); }; }; then
19073 ac_cv_lib_gnutls_gnutls_init=yes
19075 echo "$as_me: failed program was:" >&5
19076 sed 's/^/| /' conftest.$ac_ext >&5
19078 ac_cv_lib_gnutls_gnutls_init=no
19080 rm -f conftest.err conftest.$ac_objext \
19081 conftest$ac_exeext conftest.$ac_ext
19082 LIBS=$ac_check_lib_save_LIBS
19084 echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_init" >&5
19085 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_init" >&6
19086 if test $ac_cv_lib_gnutls_gnutls_init = yes; then
19093 if test $have_gnutls = yes ; then
19097 TLS_LIBS="-lgnutls"
19100 cat >>confdefs.h <<\_ACEOF
19101 #define HAVE_GNUTLS 1
19110 if test $ol_link_tls = yes ; then
19112 cat >>confdefs.h <<\_ACEOF
19117 elif test $ol_with_tls = auto ; then
19118 { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19119 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19120 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19121 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19122 elif test $ol_with_tls != no ; then
19123 { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19124 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19125 { (exit 1); exit 1; }; }
19127 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19128 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19131 if test $ol_enable_lmpasswd != no; then
19132 if test $ol_link_tls != yes ; then
19133 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
19134 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
19135 { (exit 1); exit 1; }; }
19139 cat >>confdefs.h <<\_ACEOF
19140 #define SLAPD_LMHASH 1
19147 case $ol_with_threads in auto | yes | nt)
19150 echo "$as_me:$LINENO: checking for _beginthread" >&5
19151 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
19152 if test "${ac_cv_func__beginthread+set}" = set; then
19153 echo $ECHO_N "(cached) $ECHO_C" >&6
19155 cat >conftest.$ac_ext <<_ACEOF
19158 cat confdefs.h >>conftest.$ac_ext
19159 cat >>conftest.$ac_ext <<_ACEOF
19160 /* end confdefs.h. */
19161 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
19162 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19163 #define _beginthread innocuous__beginthread
19165 /* System header to define __stub macros and hopefully few prototypes,
19166 which can conflict with char _beginthread (); below.
19167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19168 <limits.h> exists even on freestanding compilers. */
19171 # include <limits.h>
19173 # include <assert.h>
19176 #undef _beginthread
19178 /* Override any gcc2 internal prototype to avoid an error. */
19183 /* We use char because int might match the return type of a gcc2
19184 builtin and then its argument prototype would still apply. */
19185 char _beginthread ();
19186 /* The GNU C library defines this for functions which it implements
19187 to always fail with ENOSYS. Some functions are actually named
19188 something starting with __ and the normal name is an alias. */
19189 #if defined (__stub__beginthread) || defined (__stub____beginthread)
19192 char (*f) () = _beginthread;
19201 return f != _beginthread;
19206 rm -f conftest.$ac_objext conftest$ac_exeext
19207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19208 (eval $ac_link) 2>conftest.er1
19210 grep -v '^ *+' conftest.er1 >conftest.err
19212 cat conftest.err >&5
19213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214 (exit $ac_status); } &&
19215 { ac_try='test -z "$ac_c_werror_flag"
19216 || test ! -s conftest.err'
19217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19218 (eval $ac_try) 2>&5
19220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19221 (exit $ac_status); }; } &&
19222 { ac_try='test -s conftest$ac_exeext'
19223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19224 (eval $ac_try) 2>&5
19226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19227 (exit $ac_status); }; }; then
19228 ac_cv_func__beginthread=yes
19230 echo "$as_me: failed program was:" >&5
19231 sed 's/^/| /' conftest.$ac_ext >&5
19233 ac_cv_func__beginthread=no
19235 rm -f conftest.err conftest.$ac_objext \
19236 conftest$ac_exeext conftest.$ac_ext
19238 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
19239 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
19242 if test $ac_cv_func__beginthread = yes ; then
19244 cat >>confdefs.h <<\_ACEOF
19245 #define HAVE_NT_THREADS 1
19248 ol_cv_nt_threads=yes
19252 if test "$ol_cv_nt_threads" = yes ; then
19254 ol_with_threads=found
19255 ol_with_yielding_select=yes
19258 cat >>confdefs.h <<\_ACEOF
19259 #define HAVE_NT_SERVICE_MANAGER 1
19263 cat >>confdefs.h <<\_ACEOF
19264 #define HAVE_NT_EVENT_LOG 1
19269 if test $ol_with_threads = nt ; then
19270 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
19271 echo "$as_me: error: could not locate NT Threads" >&2;}
19272 { (exit 1); exit 1; }; }
19277 case $ol_with_threads in auto | yes | posix)
19280 for ac_header in pthread.h
19282 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19283 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19284 echo "$as_me:$LINENO: checking for $ac_header" >&5
19285 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19286 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19287 echo $ECHO_N "(cached) $ECHO_C" >&6
19289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19290 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19292 # Is the header compilable?
19293 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19294 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19295 cat >conftest.$ac_ext <<_ACEOF
19298 cat confdefs.h >>conftest.$ac_ext
19299 cat >>conftest.$ac_ext <<_ACEOF
19300 /* end confdefs.h. */
19301 $ac_includes_default
19302 #include <$ac_header>
19304 rm -f conftest.$ac_objext
19305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19306 (eval $ac_compile) 2>conftest.er1
19308 grep -v '^ *+' conftest.er1 >conftest.err
19310 cat conftest.err >&5
19311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19312 (exit $ac_status); } &&
19313 { ac_try='test -z "$ac_c_werror_flag"
19314 || test ! -s conftest.err'
19315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19316 (eval $ac_try) 2>&5
19318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319 (exit $ac_status); }; } &&
19320 { ac_try='test -s conftest.$ac_objext'
19321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19322 (eval $ac_try) 2>&5
19324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325 (exit $ac_status); }; }; then
19326 ac_header_compiler=yes
19328 echo "$as_me: failed program was:" >&5
19329 sed 's/^/| /' conftest.$ac_ext >&5
19331 ac_header_compiler=no
19333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19334 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19335 echo "${ECHO_T}$ac_header_compiler" >&6
19337 # Is the header present?
19338 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19339 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19340 cat >conftest.$ac_ext <<_ACEOF
19343 cat confdefs.h >>conftest.$ac_ext
19344 cat >>conftest.$ac_ext <<_ACEOF
19345 /* end confdefs.h. */
19346 #include <$ac_header>
19348 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19349 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19351 grep -v '^ *+' conftest.er1 >conftest.err
19353 cat conftest.err >&5
19354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19355 (exit $ac_status); } >/dev/null; then
19356 if test -s conftest.err; then
19357 ac_cpp_err=$ac_c_preproc_warn_flag
19358 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19365 if test -z "$ac_cpp_err"; then
19366 ac_header_preproc=yes
19368 echo "$as_me: failed program was:" >&5
19369 sed 's/^/| /' conftest.$ac_ext >&5
19371 ac_header_preproc=no
19373 rm -f conftest.err conftest.$ac_ext
19374 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19375 echo "${ECHO_T}$ac_header_preproc" >&6
19377 # So? What about this header?
19378 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19380 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19381 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19383 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19384 ac_header_preproc=yes
19387 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19388 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19389 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19390 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19391 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19392 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19393 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19394 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19396 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19397 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19398 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19401 ## --------------------------------------------- ##
19402 ## Report this to <http://www.openldap.org/its/> ##
19403 ## --------------------------------------------- ##
19406 sed "s/^/$as_me: WARNING: /" >&2
19409 echo "$as_me:$LINENO: checking for $ac_header" >&5
19410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19412 echo $ECHO_N "(cached) $ECHO_C" >&6
19414 eval "$as_ac_Header=\$ac_header_preproc"
19416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19417 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19421 cat >>confdefs.h <<_ACEOF
19422 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19430 if test $ac_cv_header_pthread_h = yes ; then
19431 echo "$as_me:$LINENO: checking POSIX thread version" >&5
19432 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
19433 if test "${ol_cv_pthread_version+set}" = set; then
19434 echo $ECHO_N "(cached) $ECHO_C" >&6
19437 cat >conftest.$ac_ext <<_ACEOF
19440 cat confdefs.h >>conftest.$ac_ext
19441 cat >>conftest.$ac_ext <<_ACEOF
19442 /* end confdefs.h. */
19444 # include <pthread.h>
19450 int i = PTHREAD_CREATE_JOINABLE;
19456 rm -f conftest.$ac_objext
19457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19458 (eval $ac_compile) 2>conftest.er1
19460 grep -v '^ *+' conftest.er1 >conftest.err
19462 cat conftest.err >&5
19463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19464 (exit $ac_status); } &&
19465 { ac_try='test -z "$ac_c_werror_flag"
19466 || test ! -s conftest.err'
19467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19468 (eval $ac_try) 2>&5
19470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471 (exit $ac_status); }; } &&
19472 { ac_try='test -s conftest.$ac_objext'
19473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19474 (eval $ac_try) 2>&5
19476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477 (exit $ac_status); }; }; then
19479 cat >conftest.$ac_ext <<_ACEOF
19482 cat confdefs.h >>conftest.$ac_ext
19483 cat >>conftest.$ac_ext <<_ACEOF
19484 /* end confdefs.h. */
19485 #include <pthread.h>
19488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19489 $EGREP "pthread_detach" >/dev/null 2>&1; then
19490 ol_cv_pthread_version=10
19492 ol_cv_pthread_version=8
19497 echo "$as_me: failed program was:" >&5
19498 sed 's/^/| /' conftest.$ac_ext >&5
19501 cat >conftest.$ac_ext <<_ACEOF
19504 cat confdefs.h >>conftest.$ac_ext
19505 cat >>conftest.$ac_ext <<_ACEOF
19506 /* end confdefs.h. */
19508 # include <pthread.h>
19509 # ifdef PTHREAD_CREATE_UNDETACHED
19514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19515 $EGREP "draft7" >/dev/null 2>&1; then
19516 ol_cv_pthread_version=7
19519 cat >conftest.$ac_ext <<_ACEOF
19522 cat confdefs.h >>conftest.$ac_ext
19523 cat >>conftest.$ac_ext <<_ACEOF
19524 /* end confdefs.h. */
19525 #include <pthread.h>
19528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19529 $EGREP "pthread_attr_init" >/dev/null 2>&1; then
19530 ol_cv_pthread_version=6
19533 cat >conftest.$ac_ext <<_ACEOF
19536 cat confdefs.h >>conftest.$ac_ext
19537 cat >>conftest.$ac_ext <<_ACEOF
19538 /* end confdefs.h. */
19540 # include <pthread.h>
19541 #ifdef PTHREAD_MUTEX_INITIALIZER
19546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19547 $EGREP "draft5" >/dev/null 2>&1; then
19548 ol_cv_pthread_version=5
19550 ol_cv_pthread_version=4
19561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19564 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
19565 echo "${ECHO_T}$ol_cv_pthread_version" >&6
19568 if test $ol_cv_pthread_version != 0 ; then
19570 cat >>confdefs.h <<_ACEOF
19571 #define HAVE_PTHREADS $ol_cv_pthread_version
19575 { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
19576 echo "$as_me: error: unknown pthread version" >&2;}
19577 { (exit 1); exit 1; }; }
19580 # consider threads found
19581 ol_with_threads=found
19584 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
19585 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
19586 if test "${ol_cv_header_linux_threads+set}" = set; then
19587 echo $ECHO_N "(cached) $ECHO_C" >&6
19589 cat >conftest.$ac_ext <<_ACEOF
19592 cat confdefs.h >>conftest.$ac_ext
19593 cat >>conftest.$ac_ext <<_ACEOF
19594 /* end confdefs.h. */
19595 #include <pthread.h>
19597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19598 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
19599 ol_cv_header_linux_threads=yes
19601 ol_cv_header_linux_threads=no
19607 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
19608 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
19609 if test $ol_cv_header_linux_threads = yes; then
19611 cat >>confdefs.h <<\_ACEOF
19612 #define HAVE_LINUX_THREADS 1
19618 echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
19619 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
19620 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
19621 echo $ECHO_N "(cached) $ECHO_C" >&6
19623 cat >conftest.$ac_ext <<_ACEOF
19626 cat confdefs.h >>conftest.$ac_ext
19627 cat >>conftest.$ac_ext <<_ACEOF
19628 /* end confdefs.h. */
19629 #include <pthread.h>
19630 #ifdef _POSIX_THREAD_IS_GNU_PTH
19635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19636 $EGREP "__gnu_pth__" >/dev/null 2>&1; then
19637 ol_cv_header_gnu_pth_pthread_h=yes
19639 ol_cv_header_gnu_pth_pthread_h=no
19645 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
19646 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
19649 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
19651 for ac_header in sched.h
19653 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19654 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19655 echo "$as_me:$LINENO: checking for $ac_header" >&5
19656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19657 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19658 echo $ECHO_N "(cached) $ECHO_C" >&6
19660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19661 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19663 # Is the header compilable?
19664 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19665 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19666 cat >conftest.$ac_ext <<_ACEOF
19669 cat confdefs.h >>conftest.$ac_ext
19670 cat >>conftest.$ac_ext <<_ACEOF
19671 /* end confdefs.h. */
19672 $ac_includes_default
19673 #include <$ac_header>
19675 rm -f conftest.$ac_objext
19676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19677 (eval $ac_compile) 2>conftest.er1
19679 grep -v '^ *+' conftest.er1 >conftest.err
19681 cat conftest.err >&5
19682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683 (exit $ac_status); } &&
19684 { ac_try='test -z "$ac_c_werror_flag"
19685 || test ! -s conftest.err'
19686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19687 (eval $ac_try) 2>&5
19689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19690 (exit $ac_status); }; } &&
19691 { ac_try='test -s conftest.$ac_objext'
19692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19693 (eval $ac_try) 2>&5
19695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19696 (exit $ac_status); }; }; then
19697 ac_header_compiler=yes
19699 echo "$as_me: failed program was:" >&5
19700 sed 's/^/| /' conftest.$ac_ext >&5
19702 ac_header_compiler=no
19704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19705 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19706 echo "${ECHO_T}$ac_header_compiler" >&6
19708 # Is the header present?
19709 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19710 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19711 cat >conftest.$ac_ext <<_ACEOF
19714 cat confdefs.h >>conftest.$ac_ext
19715 cat >>conftest.$ac_ext <<_ACEOF
19716 /* end confdefs.h. */
19717 #include <$ac_header>
19719 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19720 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19722 grep -v '^ *+' conftest.er1 >conftest.err
19724 cat conftest.err >&5
19725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19726 (exit $ac_status); } >/dev/null; then
19727 if test -s conftest.err; then
19728 ac_cpp_err=$ac_c_preproc_warn_flag
19729 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19736 if test -z "$ac_cpp_err"; then
19737 ac_header_preproc=yes
19739 echo "$as_me: failed program was:" >&5
19740 sed 's/^/| /' conftest.$ac_ext >&5
19742 ac_header_preproc=no
19744 rm -f conftest.err conftest.$ac_ext
19745 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19746 echo "${ECHO_T}$ac_header_preproc" >&6
19748 # So? What about this header?
19749 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19751 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19752 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19754 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19755 ac_header_preproc=yes
19758 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19759 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19760 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19761 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19762 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19763 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19764 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19765 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19767 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19768 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19769 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19772 ## --------------------------------------------- ##
19773 ## Report this to <http://www.openldap.org/its/> ##
19774 ## --------------------------------------------- ##
19777 sed "s/^/$as_me: WARNING: /" >&2
19780 echo "$as_me:$LINENO: checking for $ac_header" >&5
19781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19783 echo $ECHO_N "(cached) $ECHO_C" >&6
19785 eval "$as_ac_Header=\$ac_header_preproc"
19787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19791 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19792 cat >>confdefs.h <<_ACEOF
19793 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19803 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
19804 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
19805 if test "${ol_cv_pthread_create+set}" = set; then
19806 echo $ECHO_N "(cached) $ECHO_C" >&6
19809 if test "$cross_compiling" = yes; then
19810 cat >conftest.$ac_ext <<_ACEOF
19813 cat confdefs.h >>conftest.$ac_ext
19814 cat >>conftest.$ac_ext <<_ACEOF
19815 /* end confdefs.h. */
19817 /* pthread test headers */
19818 #include <pthread.h>
19819 #if HAVE_PTHREADS < 7
19823 #define NULL (void*)0
19826 static void *task(p)
19829 return (void *) (p == NULL);
19836 /* pthread test function */
19837 #ifndef PTHREAD_CREATE_DETACHED
19838 #define PTHREAD_CREATE_DETACHED 1
19842 int detach = PTHREAD_CREATE_DETACHED;
19844 #if HAVE_PTHREADS > 4
19845 /* Final pthreads */
19846 pthread_attr_t attr;
19848 status = pthread_attr_init(&attr);
19849 if( status ) return status;
19851 #if HAVE_PTHREADS < 7
19852 status = pthread_attr_setdetachstate(&attr, &detach);
19853 if( status < 0 ) status = errno;
19855 status = pthread_attr_setdetachstate(&attr, detach);
19857 if( status ) return status;
19858 status = pthread_create( &t, &attr, task, NULL );
19859 #if HAVE_PTHREADS < 7
19860 if( status < 0 ) status = errno;
19862 if( status ) return status;
19864 /* Draft 4 pthreads */
19865 status = pthread_create( &t, pthread_attr_default, task, NULL );
19866 if( status ) return errno;
19868 /* give thread a chance to complete */
19869 /* it should remain joinable and hence detachable */
19872 status = pthread_detach( &t );
19873 if( status ) return errno;
19876 #ifdef HAVE_LINUX_THREADS
19877 pthread_kill_other_threads_np();
19886 rm -f conftest.$ac_objext conftest$ac_exeext
19887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19888 (eval $ac_link) 2>conftest.er1
19890 grep -v '^ *+' conftest.er1 >conftest.err
19892 cat conftest.err >&5
19893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894 (exit $ac_status); } &&
19895 { ac_try='test -z "$ac_c_werror_flag"
19896 || test ! -s conftest.err'
19897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19898 (eval $ac_try) 2>&5
19900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901 (exit $ac_status); }; } &&
19902 { ac_try='test -s conftest$ac_exeext'
19903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19904 (eval $ac_try) 2>&5
19906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19907 (exit $ac_status); }; }; then
19908 ol_cv_pthread_create=yes
19910 echo "$as_me: failed program was:" >&5
19911 sed 's/^/| /' conftest.$ac_ext >&5
19913 ol_cv_pthread_create=no
19915 rm -f conftest.err conftest.$ac_objext \
19916 conftest$ac_exeext conftest.$ac_ext
19918 cat >conftest.$ac_ext <<_ACEOF
19921 cat confdefs.h >>conftest.$ac_ext
19922 cat >>conftest.$ac_ext <<_ACEOF
19923 /* end confdefs.h. */
19925 /* pthread test headers */
19926 #include <pthread.h>
19927 #if HAVE_PTHREADS < 7
19931 #define NULL (void*)0
19934 static void *task(p)
19937 return (void *) (p == NULL);
19941 int main(argc, argv)
19946 /* pthread test function */
19947 #ifndef PTHREAD_CREATE_DETACHED
19948 #define PTHREAD_CREATE_DETACHED 1
19952 int detach = PTHREAD_CREATE_DETACHED;
19954 #if HAVE_PTHREADS > 4
19955 /* Final pthreads */
19956 pthread_attr_t attr;
19958 status = pthread_attr_init(&attr);
19959 if( status ) return status;
19961 #if HAVE_PTHREADS < 7
19962 status = pthread_attr_setdetachstate(&attr, &detach);
19963 if( status < 0 ) status = errno;
19965 status = pthread_attr_setdetachstate(&attr, detach);
19967 if( status ) return status;
19968 status = pthread_create( &t, &attr, task, NULL );
19969 #if HAVE_PTHREADS < 7
19970 if( status < 0 ) status = errno;
19972 if( status ) return status;
19974 /* Draft 4 pthreads */
19975 status = pthread_create( &t, pthread_attr_default, task, NULL );
19976 if( status ) return errno;
19978 /* give thread a chance to complete */
19979 /* it should remain joinable and hence detachable */
19982 status = pthread_detach( &t );
19983 if( status ) return errno;
19986 #ifdef HAVE_LINUX_THREADS
19987 pthread_kill_other_threads_np();
19995 rm -f conftest$ac_exeext
19996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19997 (eval $ac_link) 2>&5
19999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20002 (eval $ac_try) 2>&5
20004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005 (exit $ac_status); }; }; then
20006 ol_cv_pthread_create=yes
20008 echo "$as_me: program exited with status $ac_status" >&5
20009 echo "$as_me: failed program was:" >&5
20010 sed 's/^/| /' conftest.$ac_ext >&5
20012 ( exit $ac_status )
20013 ol_cv_pthread_create=no
20015 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20018 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20019 echo "${ECHO_T}$ol_cv_pthread_create" >&6
20021 if test $ol_cv_pthread_create != no ; then
20022 ol_link_threads=posix
20023 ol_link_pthreads=""
20026 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20027 if test "$ol_link_threads" = no ; then
20029 echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20030 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
20031 if test "${ol_cv_pthread_kthread+set}" = set; then
20032 echo $ECHO_N "(cached) $ECHO_C" >&6
20037 LIBS="-kthread $LIBS"
20039 if test "$cross_compiling" = yes; then
20040 cat >conftest.$ac_ext <<_ACEOF
20043 cat confdefs.h >>conftest.$ac_ext
20044 cat >>conftest.$ac_ext <<_ACEOF
20045 /* end confdefs.h. */
20047 /* pthread test headers */
20048 #include <pthread.h>
20049 #if HAVE_PTHREADS < 7
20053 #define NULL (void*)0
20056 static void *task(p)
20059 return (void *) (p == NULL);
20066 /* pthread test function */
20067 #ifndef PTHREAD_CREATE_DETACHED
20068 #define PTHREAD_CREATE_DETACHED 1
20072 int detach = PTHREAD_CREATE_DETACHED;
20074 #if HAVE_PTHREADS > 4
20075 /* Final pthreads */
20076 pthread_attr_t attr;
20078 status = pthread_attr_init(&attr);
20079 if( status ) return status;
20081 #if HAVE_PTHREADS < 7
20082 status = pthread_attr_setdetachstate(&attr, &detach);
20083 if( status < 0 ) status = errno;
20085 status = pthread_attr_setdetachstate(&attr, detach);
20087 if( status ) return status;
20088 status = pthread_create( &t, &attr, task, NULL );
20089 #if HAVE_PTHREADS < 7
20090 if( status < 0 ) status = errno;
20092 if( status ) return status;
20094 /* Draft 4 pthreads */
20095 status = pthread_create( &t, pthread_attr_default, task, NULL );
20096 if( status ) return errno;
20098 /* give thread a chance to complete */
20099 /* it should remain joinable and hence detachable */
20102 status = pthread_detach( &t );
20103 if( status ) return errno;
20106 #ifdef HAVE_LINUX_THREADS
20107 pthread_kill_other_threads_np();
20116 rm -f conftest.$ac_objext conftest$ac_exeext
20117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20118 (eval $ac_link) 2>conftest.er1
20120 grep -v '^ *+' conftest.er1 >conftest.err
20122 cat conftest.err >&5
20123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20124 (exit $ac_status); } &&
20125 { ac_try='test -z "$ac_c_werror_flag"
20126 || test ! -s conftest.err'
20127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20128 (eval $ac_try) 2>&5
20130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20131 (exit $ac_status); }; } &&
20132 { ac_try='test -s conftest$ac_exeext'
20133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20134 (eval $ac_try) 2>&5
20136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20137 (exit $ac_status); }; }; then
20138 ol_cv_pthread_kthread=yes
20140 echo "$as_me: failed program was:" >&5
20141 sed 's/^/| /' conftest.$ac_ext >&5
20143 ol_cv_pthread_kthread=no
20145 rm -f conftest.err conftest.$ac_objext \
20146 conftest$ac_exeext conftest.$ac_ext
20148 cat >conftest.$ac_ext <<_ACEOF
20151 cat confdefs.h >>conftest.$ac_ext
20152 cat >>conftest.$ac_ext <<_ACEOF
20153 /* end confdefs.h. */
20155 /* pthread test headers */
20156 #include <pthread.h>
20157 #if HAVE_PTHREADS < 7
20161 #define NULL (void*)0
20164 static void *task(p)
20167 return (void *) (p == NULL);
20171 int main(argc, argv)
20176 /* pthread test function */
20177 #ifndef PTHREAD_CREATE_DETACHED
20178 #define PTHREAD_CREATE_DETACHED 1
20182 int detach = PTHREAD_CREATE_DETACHED;
20184 #if HAVE_PTHREADS > 4
20185 /* Final pthreads */
20186 pthread_attr_t attr;
20188 status = pthread_attr_init(&attr);
20189 if( status ) return status;
20191 #if HAVE_PTHREADS < 7
20192 status = pthread_attr_setdetachstate(&attr, &detach);
20193 if( status < 0 ) status = errno;
20195 status = pthread_attr_setdetachstate(&attr, detach);
20197 if( status ) return status;
20198 status = pthread_create( &t, &attr, task, NULL );
20199 #if HAVE_PTHREADS < 7
20200 if( status < 0 ) status = errno;
20202 if( status ) return status;
20204 /* Draft 4 pthreads */
20205 status = pthread_create( &t, pthread_attr_default, task, NULL );
20206 if( status ) return errno;
20208 /* give thread a chance to complete */
20209 /* it should remain joinable and hence detachable */
20212 status = pthread_detach( &t );
20213 if( status ) return errno;
20216 #ifdef HAVE_LINUX_THREADS
20217 pthread_kill_other_threads_np();
20225 rm -f conftest$ac_exeext
20226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20227 (eval $ac_link) 2>&5
20229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20232 (eval $ac_try) 2>&5
20234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20235 (exit $ac_status); }; }; then
20236 ol_cv_pthread_kthread=yes
20238 echo "$as_me: program exited with status $ac_status" >&5
20239 echo "$as_me: failed program was:" >&5
20240 sed 's/^/| /' conftest.$ac_ext >&5
20242 ( exit $ac_status )
20243 ol_cv_pthread_kthread=no
20245 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20252 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
20253 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
20255 if test $ol_cv_pthread_kthread = yes ; then
20256 ol_link_pthreads="-kthread"
20257 ol_link_threads=posix
20261 # Pthread try link: -pthread (ol_cv_pthread_pthread)
20262 if test "$ol_link_threads" = no ; then
20264 echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
20265 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
20266 if test "${ol_cv_pthread_pthread+set}" = set; then
20267 echo $ECHO_N "(cached) $ECHO_C" >&6
20272 LIBS="-pthread $LIBS"
20274 if test "$cross_compiling" = yes; then
20275 cat >conftest.$ac_ext <<_ACEOF
20278 cat confdefs.h >>conftest.$ac_ext
20279 cat >>conftest.$ac_ext <<_ACEOF
20280 /* end confdefs.h. */
20282 /* pthread test headers */
20283 #include <pthread.h>
20284 #if HAVE_PTHREADS < 7
20288 #define NULL (void*)0
20291 static void *task(p)
20294 return (void *) (p == NULL);
20301 /* pthread test function */
20302 #ifndef PTHREAD_CREATE_DETACHED
20303 #define PTHREAD_CREATE_DETACHED 1
20307 int detach = PTHREAD_CREATE_DETACHED;
20309 #if HAVE_PTHREADS > 4
20310 /* Final pthreads */
20311 pthread_attr_t attr;
20313 status = pthread_attr_init(&attr);
20314 if( status ) return status;
20316 #if HAVE_PTHREADS < 7
20317 status = pthread_attr_setdetachstate(&attr, &detach);
20318 if( status < 0 ) status = errno;
20320 status = pthread_attr_setdetachstate(&attr, detach);
20322 if( status ) return status;
20323 status = pthread_create( &t, &attr, task, NULL );
20324 #if HAVE_PTHREADS < 7
20325 if( status < 0 ) status = errno;
20327 if( status ) return status;
20329 /* Draft 4 pthreads */
20330 status = pthread_create( &t, pthread_attr_default, task, NULL );
20331 if( status ) return errno;
20333 /* give thread a chance to complete */
20334 /* it should remain joinable and hence detachable */
20337 status = pthread_detach( &t );
20338 if( status ) return errno;
20341 #ifdef HAVE_LINUX_THREADS
20342 pthread_kill_other_threads_np();
20351 rm -f conftest.$ac_objext conftest$ac_exeext
20352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20353 (eval $ac_link) 2>conftest.er1
20355 grep -v '^ *+' conftest.er1 >conftest.err
20357 cat conftest.err >&5
20358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20359 (exit $ac_status); } &&
20360 { ac_try='test -z "$ac_c_werror_flag"
20361 || test ! -s conftest.err'
20362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20363 (eval $ac_try) 2>&5
20365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20366 (exit $ac_status); }; } &&
20367 { ac_try='test -s conftest$ac_exeext'
20368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20369 (eval $ac_try) 2>&5
20371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372 (exit $ac_status); }; }; then
20373 ol_cv_pthread_pthread=yes
20375 echo "$as_me: failed program was:" >&5
20376 sed 's/^/| /' conftest.$ac_ext >&5
20378 ol_cv_pthread_pthread=no
20380 rm -f conftest.err conftest.$ac_objext \
20381 conftest$ac_exeext conftest.$ac_ext
20383 cat >conftest.$ac_ext <<_ACEOF
20386 cat confdefs.h >>conftest.$ac_ext
20387 cat >>conftest.$ac_ext <<_ACEOF
20388 /* end confdefs.h. */
20390 /* pthread test headers */
20391 #include <pthread.h>
20392 #if HAVE_PTHREADS < 7
20396 #define NULL (void*)0
20399 static void *task(p)
20402 return (void *) (p == NULL);
20406 int main(argc, argv)
20411 /* pthread test function */
20412 #ifndef PTHREAD_CREATE_DETACHED
20413 #define PTHREAD_CREATE_DETACHED 1
20417 int detach = PTHREAD_CREATE_DETACHED;
20419 #if HAVE_PTHREADS > 4
20420 /* Final pthreads */
20421 pthread_attr_t attr;
20423 status = pthread_attr_init(&attr);
20424 if( status ) return status;
20426 #if HAVE_PTHREADS < 7
20427 status = pthread_attr_setdetachstate(&attr, &detach);
20428 if( status < 0 ) status = errno;
20430 status = pthread_attr_setdetachstate(&attr, detach);
20432 if( status ) return status;
20433 status = pthread_create( &t, &attr, task, NULL );
20434 #if HAVE_PTHREADS < 7
20435 if( status < 0 ) status = errno;
20437 if( status ) return status;
20439 /* Draft 4 pthreads */
20440 status = pthread_create( &t, pthread_attr_default, task, NULL );
20441 if( status ) return errno;
20443 /* give thread a chance to complete */
20444 /* it should remain joinable and hence detachable */
20447 status = pthread_detach( &t );
20448 if( status ) return errno;
20451 #ifdef HAVE_LINUX_THREADS
20452 pthread_kill_other_threads_np();
20460 rm -f conftest$ac_exeext
20461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20462 (eval $ac_link) 2>&5
20464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20467 (eval $ac_try) 2>&5
20469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470 (exit $ac_status); }; }; then
20471 ol_cv_pthread_pthread=yes
20473 echo "$as_me: program exited with status $ac_status" >&5
20474 echo "$as_me: failed program was:" >&5
20475 sed 's/^/| /' conftest.$ac_ext >&5
20477 ( exit $ac_status )
20478 ol_cv_pthread_pthread=no
20480 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20487 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
20488 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
20490 if test $ol_cv_pthread_pthread = yes ; then
20491 ol_link_pthreads="-pthread"
20492 ol_link_threads=posix
20496 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
20497 if test "$ol_link_threads" = no ; then
20499 echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
20500 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
20501 if test "${ol_cv_pthread_pthreads+set}" = set; then
20502 echo $ECHO_N "(cached) $ECHO_C" >&6
20507 LIBS="-pthreads $LIBS"
20509 if test "$cross_compiling" = yes; then
20510 cat >conftest.$ac_ext <<_ACEOF
20513 cat confdefs.h >>conftest.$ac_ext
20514 cat >>conftest.$ac_ext <<_ACEOF
20515 /* end confdefs.h. */
20517 /* pthread test headers */
20518 #include <pthread.h>
20519 #if HAVE_PTHREADS < 7
20523 #define NULL (void*)0
20526 static void *task(p)
20529 return (void *) (p == NULL);
20536 /* pthread test function */
20537 #ifndef PTHREAD_CREATE_DETACHED
20538 #define PTHREAD_CREATE_DETACHED 1
20542 int detach = PTHREAD_CREATE_DETACHED;
20544 #if HAVE_PTHREADS > 4
20545 /* Final pthreads */
20546 pthread_attr_t attr;
20548 status = pthread_attr_init(&attr);
20549 if( status ) return status;
20551 #if HAVE_PTHREADS < 7
20552 status = pthread_attr_setdetachstate(&attr, &detach);
20553 if( status < 0 ) status = errno;
20555 status = pthread_attr_setdetachstate(&attr, detach);
20557 if( status ) return status;
20558 status = pthread_create( &t, &attr, task, NULL );
20559 #if HAVE_PTHREADS < 7
20560 if( status < 0 ) status = errno;
20562 if( status ) return status;
20564 /* Draft 4 pthreads */
20565 status = pthread_create( &t, pthread_attr_default, task, NULL );
20566 if( status ) return errno;
20568 /* give thread a chance to complete */
20569 /* it should remain joinable and hence detachable */
20572 status = pthread_detach( &t );
20573 if( status ) return errno;
20576 #ifdef HAVE_LINUX_THREADS
20577 pthread_kill_other_threads_np();
20586 rm -f conftest.$ac_objext conftest$ac_exeext
20587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20588 (eval $ac_link) 2>conftest.er1
20590 grep -v '^ *+' conftest.er1 >conftest.err
20592 cat conftest.err >&5
20593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20594 (exit $ac_status); } &&
20595 { ac_try='test -z "$ac_c_werror_flag"
20596 || test ! -s conftest.err'
20597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20598 (eval $ac_try) 2>&5
20600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20601 (exit $ac_status); }; } &&
20602 { ac_try='test -s conftest$ac_exeext'
20603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20604 (eval $ac_try) 2>&5
20606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20607 (exit $ac_status); }; }; then
20608 ol_cv_pthread_pthreads=yes
20610 echo "$as_me: failed program was:" >&5
20611 sed 's/^/| /' conftest.$ac_ext >&5
20613 ol_cv_pthread_pthreads=no
20615 rm -f conftest.err conftest.$ac_objext \
20616 conftest$ac_exeext conftest.$ac_ext
20618 cat >conftest.$ac_ext <<_ACEOF
20621 cat confdefs.h >>conftest.$ac_ext
20622 cat >>conftest.$ac_ext <<_ACEOF
20623 /* end confdefs.h. */
20625 /* pthread test headers */
20626 #include <pthread.h>
20627 #if HAVE_PTHREADS < 7
20631 #define NULL (void*)0
20634 static void *task(p)
20637 return (void *) (p == NULL);
20641 int main(argc, argv)
20646 /* pthread test function */
20647 #ifndef PTHREAD_CREATE_DETACHED
20648 #define PTHREAD_CREATE_DETACHED 1
20652 int detach = PTHREAD_CREATE_DETACHED;
20654 #if HAVE_PTHREADS > 4
20655 /* Final pthreads */
20656 pthread_attr_t attr;
20658 status = pthread_attr_init(&attr);
20659 if( status ) return status;
20661 #if HAVE_PTHREADS < 7
20662 status = pthread_attr_setdetachstate(&attr, &detach);
20663 if( status < 0 ) status = errno;
20665 status = pthread_attr_setdetachstate(&attr, detach);
20667 if( status ) return status;
20668 status = pthread_create( &t, &attr, task, NULL );
20669 #if HAVE_PTHREADS < 7
20670 if( status < 0 ) status = errno;
20672 if( status ) return status;
20674 /* Draft 4 pthreads */
20675 status = pthread_create( &t, pthread_attr_default, task, NULL );
20676 if( status ) return errno;
20678 /* give thread a chance to complete */
20679 /* it should remain joinable and hence detachable */
20682 status = pthread_detach( &t );
20683 if( status ) return errno;
20686 #ifdef HAVE_LINUX_THREADS
20687 pthread_kill_other_threads_np();
20695 rm -f conftest$ac_exeext
20696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20697 (eval $ac_link) 2>&5
20699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20702 (eval $ac_try) 2>&5
20704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705 (exit $ac_status); }; }; then
20706 ol_cv_pthread_pthreads=yes
20708 echo "$as_me: program exited with status $ac_status" >&5
20709 echo "$as_me: failed program was:" >&5
20710 sed 's/^/| /' conftest.$ac_ext >&5
20712 ( exit $ac_status )
20713 ol_cv_pthread_pthreads=no
20715 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20722 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
20723 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
20725 if test $ol_cv_pthread_pthreads = yes ; then
20726 ol_link_pthreads="-pthreads"
20727 ol_link_threads=posix
20731 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
20732 if test "$ol_link_threads" = no ; then
20734 echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
20735 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
20736 if test "${ol_cv_pthread_mthreads+set}" = set; then
20737 echo $ECHO_N "(cached) $ECHO_C" >&6
20742 LIBS="-mthreads $LIBS"
20744 if test "$cross_compiling" = yes; then
20745 cat >conftest.$ac_ext <<_ACEOF
20748 cat confdefs.h >>conftest.$ac_ext
20749 cat >>conftest.$ac_ext <<_ACEOF
20750 /* end confdefs.h. */
20752 /* pthread test headers */
20753 #include <pthread.h>
20754 #if HAVE_PTHREADS < 7
20758 #define NULL (void*)0
20761 static void *task(p)
20764 return (void *) (p == NULL);
20771 /* pthread test function */
20772 #ifndef PTHREAD_CREATE_DETACHED
20773 #define PTHREAD_CREATE_DETACHED 1
20777 int detach = PTHREAD_CREATE_DETACHED;
20779 #if HAVE_PTHREADS > 4
20780 /* Final pthreads */
20781 pthread_attr_t attr;
20783 status = pthread_attr_init(&attr);
20784 if( status ) return status;
20786 #if HAVE_PTHREADS < 7
20787 status = pthread_attr_setdetachstate(&attr, &detach);
20788 if( status < 0 ) status = errno;
20790 status = pthread_attr_setdetachstate(&attr, detach);
20792 if( status ) return status;
20793 status = pthread_create( &t, &attr, task, NULL );
20794 #if HAVE_PTHREADS < 7
20795 if( status < 0 ) status = errno;
20797 if( status ) return status;
20799 /* Draft 4 pthreads */
20800 status = pthread_create( &t, pthread_attr_default, task, NULL );
20801 if( status ) return errno;
20803 /* give thread a chance to complete */
20804 /* it should remain joinable and hence detachable */
20807 status = pthread_detach( &t );
20808 if( status ) return errno;
20811 #ifdef HAVE_LINUX_THREADS
20812 pthread_kill_other_threads_np();
20821 rm -f conftest.$ac_objext conftest$ac_exeext
20822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20823 (eval $ac_link) 2>conftest.er1
20825 grep -v '^ *+' conftest.er1 >conftest.err
20827 cat conftest.err >&5
20828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829 (exit $ac_status); } &&
20830 { ac_try='test -z "$ac_c_werror_flag"
20831 || test ! -s conftest.err'
20832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20833 (eval $ac_try) 2>&5
20835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836 (exit $ac_status); }; } &&
20837 { ac_try='test -s conftest$ac_exeext'
20838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20839 (eval $ac_try) 2>&5
20841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20842 (exit $ac_status); }; }; then
20843 ol_cv_pthread_mthreads=yes
20845 echo "$as_me: failed program was:" >&5
20846 sed 's/^/| /' conftest.$ac_ext >&5
20848 ol_cv_pthread_mthreads=no
20850 rm -f conftest.err conftest.$ac_objext \
20851 conftest$ac_exeext conftest.$ac_ext
20853 cat >conftest.$ac_ext <<_ACEOF
20856 cat confdefs.h >>conftest.$ac_ext
20857 cat >>conftest.$ac_ext <<_ACEOF
20858 /* end confdefs.h. */
20860 /* pthread test headers */
20861 #include <pthread.h>
20862 #if HAVE_PTHREADS < 7
20866 #define NULL (void*)0
20869 static void *task(p)
20872 return (void *) (p == NULL);
20876 int main(argc, argv)
20881 /* pthread test function */
20882 #ifndef PTHREAD_CREATE_DETACHED
20883 #define PTHREAD_CREATE_DETACHED 1
20887 int detach = PTHREAD_CREATE_DETACHED;
20889 #if HAVE_PTHREADS > 4
20890 /* Final pthreads */
20891 pthread_attr_t attr;
20893 status = pthread_attr_init(&attr);
20894 if( status ) return status;
20896 #if HAVE_PTHREADS < 7
20897 status = pthread_attr_setdetachstate(&attr, &detach);
20898 if( status < 0 ) status = errno;
20900 status = pthread_attr_setdetachstate(&attr, detach);
20902 if( status ) return status;
20903 status = pthread_create( &t, &attr, task, NULL );
20904 #if HAVE_PTHREADS < 7
20905 if( status < 0 ) status = errno;
20907 if( status ) return status;
20909 /* Draft 4 pthreads */
20910 status = pthread_create( &t, pthread_attr_default, task, NULL );
20911 if( status ) return errno;
20913 /* give thread a chance to complete */
20914 /* it should remain joinable and hence detachable */
20917 status = pthread_detach( &t );
20918 if( status ) return errno;
20921 #ifdef HAVE_LINUX_THREADS
20922 pthread_kill_other_threads_np();
20930 rm -f conftest$ac_exeext
20931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20932 (eval $ac_link) 2>&5
20934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20935 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20937 (eval $ac_try) 2>&5
20939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20940 (exit $ac_status); }; }; then
20941 ol_cv_pthread_mthreads=yes
20943 echo "$as_me: program exited with status $ac_status" >&5
20944 echo "$as_me: failed program was:" >&5
20945 sed 's/^/| /' conftest.$ac_ext >&5
20947 ( exit $ac_status )
20948 ol_cv_pthread_mthreads=no
20950 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20957 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
20958 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
20960 if test $ol_cv_pthread_mthreads = yes ; then
20961 ol_link_pthreads="-mthreads"
20962 ol_link_threads=posix
20966 # Pthread try link: -thread (ol_cv_pthread_thread)
20967 if test "$ol_link_threads" = no ; then
20969 echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
20970 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
20971 if test "${ol_cv_pthread_thread+set}" = set; then
20972 echo $ECHO_N "(cached) $ECHO_C" >&6
20977 LIBS="-thread $LIBS"
20979 if test "$cross_compiling" = yes; then
20980 cat >conftest.$ac_ext <<_ACEOF
20983 cat confdefs.h >>conftest.$ac_ext
20984 cat >>conftest.$ac_ext <<_ACEOF
20985 /* end confdefs.h. */
20987 /* pthread test headers */
20988 #include <pthread.h>
20989 #if HAVE_PTHREADS < 7
20993 #define NULL (void*)0
20996 static void *task(p)
20999 return (void *) (p == NULL);
21006 /* pthread test function */
21007 #ifndef PTHREAD_CREATE_DETACHED
21008 #define PTHREAD_CREATE_DETACHED 1
21012 int detach = PTHREAD_CREATE_DETACHED;
21014 #if HAVE_PTHREADS > 4
21015 /* Final pthreads */
21016 pthread_attr_t attr;
21018 status = pthread_attr_init(&attr);
21019 if( status ) return status;
21021 #if HAVE_PTHREADS < 7
21022 status = pthread_attr_setdetachstate(&attr, &detach);
21023 if( status < 0 ) status = errno;
21025 status = pthread_attr_setdetachstate(&attr, detach);
21027 if( status ) return status;
21028 status = pthread_create( &t, &attr, task, NULL );
21029 #if HAVE_PTHREADS < 7
21030 if( status < 0 ) status = errno;
21032 if( status ) return status;
21034 /* Draft 4 pthreads */
21035 status = pthread_create( &t, pthread_attr_default, task, NULL );
21036 if( status ) return errno;
21038 /* give thread a chance to complete */
21039 /* it should remain joinable and hence detachable */
21042 status = pthread_detach( &t );
21043 if( status ) return errno;
21046 #ifdef HAVE_LINUX_THREADS
21047 pthread_kill_other_threads_np();
21056 rm -f conftest.$ac_objext conftest$ac_exeext
21057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21058 (eval $ac_link) 2>conftest.er1
21060 grep -v '^ *+' conftest.er1 >conftest.err
21062 cat conftest.err >&5
21063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21064 (exit $ac_status); } &&
21065 { ac_try='test -z "$ac_c_werror_flag"
21066 || test ! -s conftest.err'
21067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21068 (eval $ac_try) 2>&5
21070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21071 (exit $ac_status); }; } &&
21072 { ac_try='test -s conftest$ac_exeext'
21073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21074 (eval $ac_try) 2>&5
21076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21077 (exit $ac_status); }; }; then
21078 ol_cv_pthread_thread=yes
21080 echo "$as_me: failed program was:" >&5
21081 sed 's/^/| /' conftest.$ac_ext >&5
21083 ol_cv_pthread_thread=no
21085 rm -f conftest.err conftest.$ac_objext \
21086 conftest$ac_exeext conftest.$ac_ext
21088 cat >conftest.$ac_ext <<_ACEOF
21091 cat confdefs.h >>conftest.$ac_ext
21092 cat >>conftest.$ac_ext <<_ACEOF
21093 /* end confdefs.h. */
21095 /* pthread test headers */
21096 #include <pthread.h>
21097 #if HAVE_PTHREADS < 7
21101 #define NULL (void*)0
21104 static void *task(p)
21107 return (void *) (p == NULL);
21111 int main(argc, argv)
21116 /* pthread test function */
21117 #ifndef PTHREAD_CREATE_DETACHED
21118 #define PTHREAD_CREATE_DETACHED 1
21122 int detach = PTHREAD_CREATE_DETACHED;
21124 #if HAVE_PTHREADS > 4
21125 /* Final pthreads */
21126 pthread_attr_t attr;
21128 status = pthread_attr_init(&attr);
21129 if( status ) return status;
21131 #if HAVE_PTHREADS < 7
21132 status = pthread_attr_setdetachstate(&attr, &detach);
21133 if( status < 0 ) status = errno;
21135 status = pthread_attr_setdetachstate(&attr, detach);
21137 if( status ) return status;
21138 status = pthread_create( &t, &attr, task, NULL );
21139 #if HAVE_PTHREADS < 7
21140 if( status < 0 ) status = errno;
21142 if( status ) return status;
21144 /* Draft 4 pthreads */
21145 status = pthread_create( &t, pthread_attr_default, task, NULL );
21146 if( status ) return errno;
21148 /* give thread a chance to complete */
21149 /* it should remain joinable and hence detachable */
21152 status = pthread_detach( &t );
21153 if( status ) return errno;
21156 #ifdef HAVE_LINUX_THREADS
21157 pthread_kill_other_threads_np();
21165 rm -f conftest$ac_exeext
21166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21167 (eval $ac_link) 2>&5
21169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21172 (eval $ac_try) 2>&5
21174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21175 (exit $ac_status); }; }; then
21176 ol_cv_pthread_thread=yes
21178 echo "$as_me: program exited with status $ac_status" >&5
21179 echo "$as_me: failed program was:" >&5
21180 sed 's/^/| /' conftest.$ac_ext >&5
21182 ( exit $ac_status )
21183 ol_cv_pthread_thread=no
21185 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21192 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
21193 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
21195 if test $ol_cv_pthread_thread = yes ; then
21196 ol_link_pthreads="-thread"
21197 ol_link_threads=posix
21202 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
21203 if test "$ol_link_threads" = no ; then
21204 # try -lpthread -lmach -lexc -lc_r
21205 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
21206 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
21207 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
21208 echo $ECHO_N "(cached) $ECHO_C" >&6
21213 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
21215 if test "$cross_compiling" = yes; then
21216 cat >conftest.$ac_ext <<_ACEOF
21219 cat confdefs.h >>conftest.$ac_ext
21220 cat >>conftest.$ac_ext <<_ACEOF
21221 /* end confdefs.h. */
21223 /* pthread test headers */
21224 #include <pthread.h>
21225 #if HAVE_PTHREADS < 7
21229 #define NULL (void*)0
21232 static void *task(p)
21235 return (void *) (p == NULL);
21242 /* pthread test function */
21243 #ifndef PTHREAD_CREATE_DETACHED
21244 #define PTHREAD_CREATE_DETACHED 1
21248 int detach = PTHREAD_CREATE_DETACHED;
21250 #if HAVE_PTHREADS > 4
21251 /* Final pthreads */
21252 pthread_attr_t attr;
21254 status = pthread_attr_init(&attr);
21255 if( status ) return status;
21257 #if HAVE_PTHREADS < 7
21258 status = pthread_attr_setdetachstate(&attr, &detach);
21259 if( status < 0 ) status = errno;
21261 status = pthread_attr_setdetachstate(&attr, detach);
21263 if( status ) return status;
21264 status = pthread_create( &t, &attr, task, NULL );
21265 #if HAVE_PTHREADS < 7
21266 if( status < 0 ) status = errno;
21268 if( status ) return status;
21270 /* Draft 4 pthreads */
21271 status = pthread_create( &t, pthread_attr_default, task, NULL );
21272 if( status ) return errno;
21274 /* give thread a chance to complete */
21275 /* it should remain joinable and hence detachable */
21278 status = pthread_detach( &t );
21279 if( status ) return errno;
21282 #ifdef HAVE_LINUX_THREADS
21283 pthread_kill_other_threads_np();
21292 rm -f conftest.$ac_objext conftest$ac_exeext
21293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21294 (eval $ac_link) 2>conftest.er1
21296 grep -v '^ *+' conftest.er1 >conftest.err
21298 cat conftest.err >&5
21299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21300 (exit $ac_status); } &&
21301 { ac_try='test -z "$ac_c_werror_flag"
21302 || test ! -s conftest.err'
21303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21304 (eval $ac_try) 2>&5
21306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307 (exit $ac_status); }; } &&
21308 { ac_try='test -s conftest$ac_exeext'
21309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21310 (eval $ac_try) 2>&5
21312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21313 (exit $ac_status); }; }; then
21314 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21316 echo "$as_me: failed program was:" >&5
21317 sed 's/^/| /' conftest.$ac_ext >&5
21319 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21321 rm -f conftest.err conftest.$ac_objext \
21322 conftest$ac_exeext conftest.$ac_ext
21324 cat >conftest.$ac_ext <<_ACEOF
21327 cat confdefs.h >>conftest.$ac_ext
21328 cat >>conftest.$ac_ext <<_ACEOF
21329 /* end confdefs.h. */
21331 /* pthread test headers */
21332 #include <pthread.h>
21333 #if HAVE_PTHREADS < 7
21337 #define NULL (void*)0
21340 static void *task(p)
21343 return (void *) (p == NULL);
21347 int main(argc, argv)
21352 /* pthread test function */
21353 #ifndef PTHREAD_CREATE_DETACHED
21354 #define PTHREAD_CREATE_DETACHED 1
21358 int detach = PTHREAD_CREATE_DETACHED;
21360 #if HAVE_PTHREADS > 4
21361 /* Final pthreads */
21362 pthread_attr_t attr;
21364 status = pthread_attr_init(&attr);
21365 if( status ) return status;
21367 #if HAVE_PTHREADS < 7
21368 status = pthread_attr_setdetachstate(&attr, &detach);
21369 if( status < 0 ) status = errno;
21371 status = pthread_attr_setdetachstate(&attr, detach);
21373 if( status ) return status;
21374 status = pthread_create( &t, &attr, task, NULL );
21375 #if HAVE_PTHREADS < 7
21376 if( status < 0 ) status = errno;
21378 if( status ) return status;
21380 /* Draft 4 pthreads */
21381 status = pthread_create( &t, pthread_attr_default, task, NULL );
21382 if( status ) return errno;
21384 /* give thread a chance to complete */
21385 /* it should remain joinable and hence detachable */
21388 status = pthread_detach( &t );
21389 if( status ) return errno;
21392 #ifdef HAVE_LINUX_THREADS
21393 pthread_kill_other_threads_np();
21401 rm -f conftest$ac_exeext
21402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21403 (eval $ac_link) 2>&5
21405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21406 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21408 (eval $ac_try) 2>&5
21410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21411 (exit $ac_status); }; }; then
21412 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21414 echo "$as_me: program exited with status $ac_status" >&5
21415 echo "$as_me: failed program was:" >&5
21416 sed 's/^/| /' conftest.$ac_ext >&5
21418 ( exit $ac_status )
21419 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21421 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21428 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
21429 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
21431 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
21432 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
21433 ol_link_threads=posix
21437 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
21438 if test "$ol_link_threads" = no ; then
21439 # try -lpthread -lmach -lexc
21440 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
21441 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
21442 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
21443 echo $ECHO_N "(cached) $ECHO_C" >&6
21448 LIBS="-lpthread -lmach -lexc $LIBS"
21450 if test "$cross_compiling" = yes; then
21451 cat >conftest.$ac_ext <<_ACEOF
21454 cat confdefs.h >>conftest.$ac_ext
21455 cat >>conftest.$ac_ext <<_ACEOF
21456 /* end confdefs.h. */
21458 /* pthread test headers */
21459 #include <pthread.h>
21460 #if HAVE_PTHREADS < 7
21464 #define NULL (void*)0
21467 static void *task(p)
21470 return (void *) (p == NULL);
21477 /* pthread test function */
21478 #ifndef PTHREAD_CREATE_DETACHED
21479 #define PTHREAD_CREATE_DETACHED 1
21483 int detach = PTHREAD_CREATE_DETACHED;
21485 #if HAVE_PTHREADS > 4
21486 /* Final pthreads */
21487 pthread_attr_t attr;
21489 status = pthread_attr_init(&attr);
21490 if( status ) return status;
21492 #if HAVE_PTHREADS < 7
21493 status = pthread_attr_setdetachstate(&attr, &detach);
21494 if( status < 0 ) status = errno;
21496 status = pthread_attr_setdetachstate(&attr, detach);
21498 if( status ) return status;
21499 status = pthread_create( &t, &attr, task, NULL );
21500 #if HAVE_PTHREADS < 7
21501 if( status < 0 ) status = errno;
21503 if( status ) return status;
21505 /* Draft 4 pthreads */
21506 status = pthread_create( &t, pthread_attr_default, task, NULL );
21507 if( status ) return errno;
21509 /* give thread a chance to complete */
21510 /* it should remain joinable and hence detachable */
21513 status = pthread_detach( &t );
21514 if( status ) return errno;
21517 #ifdef HAVE_LINUX_THREADS
21518 pthread_kill_other_threads_np();
21527 rm -f conftest.$ac_objext conftest$ac_exeext
21528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21529 (eval $ac_link) 2>conftest.er1
21531 grep -v '^ *+' conftest.er1 >conftest.err
21533 cat conftest.err >&5
21534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21535 (exit $ac_status); } &&
21536 { ac_try='test -z "$ac_c_werror_flag"
21537 || test ! -s conftest.err'
21538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21539 (eval $ac_try) 2>&5
21541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21542 (exit $ac_status); }; } &&
21543 { ac_try='test -s conftest$ac_exeext'
21544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21545 (eval $ac_try) 2>&5
21547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21548 (exit $ac_status); }; }; then
21549 ol_cv_pthread_lpthread_lmach_lexc=yes
21551 echo "$as_me: failed program was:" >&5
21552 sed 's/^/| /' conftest.$ac_ext >&5
21554 ol_cv_pthread_lpthread_lmach_lexc=no
21556 rm -f conftest.err conftest.$ac_objext \
21557 conftest$ac_exeext conftest.$ac_ext
21559 cat >conftest.$ac_ext <<_ACEOF
21562 cat confdefs.h >>conftest.$ac_ext
21563 cat >>conftest.$ac_ext <<_ACEOF
21564 /* end confdefs.h. */
21566 /* pthread test headers */
21567 #include <pthread.h>
21568 #if HAVE_PTHREADS < 7
21572 #define NULL (void*)0
21575 static void *task(p)
21578 return (void *) (p == NULL);
21582 int main(argc, argv)
21587 /* pthread test function */
21588 #ifndef PTHREAD_CREATE_DETACHED
21589 #define PTHREAD_CREATE_DETACHED 1
21593 int detach = PTHREAD_CREATE_DETACHED;
21595 #if HAVE_PTHREADS > 4
21596 /* Final pthreads */
21597 pthread_attr_t attr;
21599 status = pthread_attr_init(&attr);
21600 if( status ) return status;
21602 #if HAVE_PTHREADS < 7
21603 status = pthread_attr_setdetachstate(&attr, &detach);
21604 if( status < 0 ) status = errno;
21606 status = pthread_attr_setdetachstate(&attr, detach);
21608 if( status ) return status;
21609 status = pthread_create( &t, &attr, task, NULL );
21610 #if HAVE_PTHREADS < 7
21611 if( status < 0 ) status = errno;
21613 if( status ) return status;
21615 /* Draft 4 pthreads */
21616 status = pthread_create( &t, pthread_attr_default, task, NULL );
21617 if( status ) return errno;
21619 /* give thread a chance to complete */
21620 /* it should remain joinable and hence detachable */
21623 status = pthread_detach( &t );
21624 if( status ) return errno;
21627 #ifdef HAVE_LINUX_THREADS
21628 pthread_kill_other_threads_np();
21636 rm -f conftest$ac_exeext
21637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21638 (eval $ac_link) 2>&5
21640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21641 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21643 (eval $ac_try) 2>&5
21645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21646 (exit $ac_status); }; }; then
21647 ol_cv_pthread_lpthread_lmach_lexc=yes
21649 echo "$as_me: program exited with status $ac_status" >&5
21650 echo "$as_me: failed program was:" >&5
21651 sed 's/^/| /' conftest.$ac_ext >&5
21653 ( exit $ac_status )
21654 ol_cv_pthread_lpthread_lmach_lexc=no
21656 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21663 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
21664 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
21666 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
21667 ol_link_pthreads="-lpthread -lmach -lexc"
21668 ol_link_threads=posix
21673 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
21674 if test "$ol_link_threads" = no ; then
21675 # try -lpthread -Wl,-woff,85
21676 echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
21677 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
21678 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
21679 echo $ECHO_N "(cached) $ECHO_C" >&6
21684 LIBS="-lpthread -Wl,-woff,85 $LIBS"
21686 if test "$cross_compiling" = yes; then
21687 cat >conftest.$ac_ext <<_ACEOF
21690 cat confdefs.h >>conftest.$ac_ext
21691 cat >>conftest.$ac_ext <<_ACEOF
21692 /* end confdefs.h. */
21694 /* pthread test headers */
21695 #include <pthread.h>
21696 #if HAVE_PTHREADS < 7
21700 #define NULL (void*)0
21703 static void *task(p)
21706 return (void *) (p == NULL);
21713 /* pthread test function */
21714 #ifndef PTHREAD_CREATE_DETACHED
21715 #define PTHREAD_CREATE_DETACHED 1
21719 int detach = PTHREAD_CREATE_DETACHED;
21721 #if HAVE_PTHREADS > 4
21722 /* Final pthreads */
21723 pthread_attr_t attr;
21725 status = pthread_attr_init(&attr);
21726 if( status ) return status;
21728 #if HAVE_PTHREADS < 7
21729 status = pthread_attr_setdetachstate(&attr, &detach);
21730 if( status < 0 ) status = errno;
21732 status = pthread_attr_setdetachstate(&attr, detach);
21734 if( status ) return status;
21735 status = pthread_create( &t, &attr, task, NULL );
21736 #if HAVE_PTHREADS < 7
21737 if( status < 0 ) status = errno;
21739 if( status ) return status;
21741 /* Draft 4 pthreads */
21742 status = pthread_create( &t, pthread_attr_default, task, NULL );
21743 if( status ) return errno;
21745 /* give thread a chance to complete */
21746 /* it should remain joinable and hence detachable */
21749 status = pthread_detach( &t );
21750 if( status ) return errno;
21753 #ifdef HAVE_LINUX_THREADS
21754 pthread_kill_other_threads_np();
21763 rm -f conftest.$ac_objext conftest$ac_exeext
21764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21765 (eval $ac_link) 2>conftest.er1
21767 grep -v '^ *+' conftest.er1 >conftest.err
21769 cat conftest.err >&5
21770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21771 (exit $ac_status); } &&
21772 { ac_try='test -z "$ac_c_werror_flag"
21773 || test ! -s conftest.err'
21774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21775 (eval $ac_try) 2>&5
21777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21778 (exit $ac_status); }; } &&
21779 { ac_try='test -s conftest$ac_exeext'
21780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21781 (eval $ac_try) 2>&5
21783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21784 (exit $ac_status); }; }; then
21785 ol_cv_pthread_lib_lpthread_woff=yes
21787 echo "$as_me: failed program was:" >&5
21788 sed 's/^/| /' conftest.$ac_ext >&5
21790 ol_cv_pthread_lib_lpthread_woff=no
21792 rm -f conftest.err conftest.$ac_objext \
21793 conftest$ac_exeext conftest.$ac_ext
21795 cat >conftest.$ac_ext <<_ACEOF
21798 cat confdefs.h >>conftest.$ac_ext
21799 cat >>conftest.$ac_ext <<_ACEOF
21800 /* end confdefs.h. */
21802 /* pthread test headers */
21803 #include <pthread.h>
21804 #if HAVE_PTHREADS < 7
21808 #define NULL (void*)0
21811 static void *task(p)
21814 return (void *) (p == NULL);
21818 int main(argc, argv)
21823 /* pthread test function */
21824 #ifndef PTHREAD_CREATE_DETACHED
21825 #define PTHREAD_CREATE_DETACHED 1
21829 int detach = PTHREAD_CREATE_DETACHED;
21831 #if HAVE_PTHREADS > 4
21832 /* Final pthreads */
21833 pthread_attr_t attr;
21835 status = pthread_attr_init(&attr);
21836 if( status ) return status;
21838 #if HAVE_PTHREADS < 7
21839 status = pthread_attr_setdetachstate(&attr, &detach);
21840 if( status < 0 ) status = errno;
21842 status = pthread_attr_setdetachstate(&attr, detach);
21844 if( status ) return status;
21845 status = pthread_create( &t, &attr, task, NULL );
21846 #if HAVE_PTHREADS < 7
21847 if( status < 0 ) status = errno;
21849 if( status ) return status;
21851 /* Draft 4 pthreads */
21852 status = pthread_create( &t, pthread_attr_default, task, NULL );
21853 if( status ) return errno;
21855 /* give thread a chance to complete */
21856 /* it should remain joinable and hence detachable */
21859 status = pthread_detach( &t );
21860 if( status ) return errno;
21863 #ifdef HAVE_LINUX_THREADS
21864 pthread_kill_other_threads_np();
21872 rm -f conftest$ac_exeext
21873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21874 (eval $ac_link) 2>&5
21876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21877 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21879 (eval $ac_try) 2>&5
21881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21882 (exit $ac_status); }; }; then
21883 ol_cv_pthread_lib_lpthread_woff=yes
21885 echo "$as_me: program exited with status $ac_status" >&5
21886 echo "$as_me: failed program was:" >&5
21887 sed 's/^/| /' conftest.$ac_ext >&5
21889 ( exit $ac_status )
21890 ol_cv_pthread_lib_lpthread_woff=no
21892 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21899 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
21900 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
21902 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
21903 ol_link_pthreads="-lpthread -Wl,-woff,85"
21904 ol_link_threads=posix
21909 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
21910 if test "$ol_link_threads" = no ; then
21912 echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
21913 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
21914 if test "${ol_cv_pthread_lpthread+set}" = set; then
21915 echo $ECHO_N "(cached) $ECHO_C" >&6
21920 LIBS="-lpthread $LIBS"
21922 if test "$cross_compiling" = yes; then
21923 cat >conftest.$ac_ext <<_ACEOF
21926 cat confdefs.h >>conftest.$ac_ext
21927 cat >>conftest.$ac_ext <<_ACEOF
21928 /* end confdefs.h. */
21930 /* pthread test headers */
21931 #include <pthread.h>
21932 #if HAVE_PTHREADS < 7
21936 #define NULL (void*)0
21939 static void *task(p)
21942 return (void *) (p == NULL);
21949 /* pthread test function */
21950 #ifndef PTHREAD_CREATE_DETACHED
21951 #define PTHREAD_CREATE_DETACHED 1
21955 int detach = PTHREAD_CREATE_DETACHED;
21957 #if HAVE_PTHREADS > 4
21958 /* Final pthreads */
21959 pthread_attr_t attr;
21961 status = pthread_attr_init(&attr);
21962 if( status ) return status;
21964 #if HAVE_PTHREADS < 7
21965 status = pthread_attr_setdetachstate(&attr, &detach);
21966 if( status < 0 ) status = errno;
21968 status = pthread_attr_setdetachstate(&attr, detach);
21970 if( status ) return status;
21971 status = pthread_create( &t, &attr, task, NULL );
21972 #if HAVE_PTHREADS < 7
21973 if( status < 0 ) status = errno;
21975 if( status ) return status;
21977 /* Draft 4 pthreads */
21978 status = pthread_create( &t, pthread_attr_default, task, NULL );
21979 if( status ) return errno;
21981 /* give thread a chance to complete */
21982 /* it should remain joinable and hence detachable */
21985 status = pthread_detach( &t );
21986 if( status ) return errno;
21989 #ifdef HAVE_LINUX_THREADS
21990 pthread_kill_other_threads_np();
21999 rm -f conftest.$ac_objext conftest$ac_exeext
22000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22001 (eval $ac_link) 2>conftest.er1
22003 grep -v '^ *+' conftest.er1 >conftest.err
22005 cat conftest.err >&5
22006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22007 (exit $ac_status); } &&
22008 { ac_try='test -z "$ac_c_werror_flag"
22009 || test ! -s conftest.err'
22010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22011 (eval $ac_try) 2>&5
22013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22014 (exit $ac_status); }; } &&
22015 { ac_try='test -s conftest$ac_exeext'
22016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22017 (eval $ac_try) 2>&5
22019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22020 (exit $ac_status); }; }; then
22021 ol_cv_pthread_lpthread=yes
22023 echo "$as_me: failed program was:" >&5
22024 sed 's/^/| /' conftest.$ac_ext >&5
22026 ol_cv_pthread_lpthread=no
22028 rm -f conftest.err conftest.$ac_objext \
22029 conftest$ac_exeext conftest.$ac_ext
22031 cat >conftest.$ac_ext <<_ACEOF
22034 cat confdefs.h >>conftest.$ac_ext
22035 cat >>conftest.$ac_ext <<_ACEOF
22036 /* end confdefs.h. */
22038 /* pthread test headers */
22039 #include <pthread.h>
22040 #if HAVE_PTHREADS < 7
22044 #define NULL (void*)0
22047 static void *task(p)
22050 return (void *) (p == NULL);
22054 int main(argc, argv)
22059 /* pthread test function */
22060 #ifndef PTHREAD_CREATE_DETACHED
22061 #define PTHREAD_CREATE_DETACHED 1
22065 int detach = PTHREAD_CREATE_DETACHED;
22067 #if HAVE_PTHREADS > 4
22068 /* Final pthreads */
22069 pthread_attr_t attr;
22071 status = pthread_attr_init(&attr);
22072 if( status ) return status;
22074 #if HAVE_PTHREADS < 7
22075 status = pthread_attr_setdetachstate(&attr, &detach);
22076 if( status < 0 ) status = errno;
22078 status = pthread_attr_setdetachstate(&attr, detach);
22080 if( status ) return status;
22081 status = pthread_create( &t, &attr, task, NULL );
22082 #if HAVE_PTHREADS < 7
22083 if( status < 0 ) status = errno;
22085 if( status ) return status;
22087 /* Draft 4 pthreads */
22088 status = pthread_create( &t, pthread_attr_default, task, NULL );
22089 if( status ) return errno;
22091 /* give thread a chance to complete */
22092 /* it should remain joinable and hence detachable */
22095 status = pthread_detach( &t );
22096 if( status ) return errno;
22099 #ifdef HAVE_LINUX_THREADS
22100 pthread_kill_other_threads_np();
22108 rm -f conftest$ac_exeext
22109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22110 (eval $ac_link) 2>&5
22112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22113 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22115 (eval $ac_try) 2>&5
22117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22118 (exit $ac_status); }; }; then
22119 ol_cv_pthread_lpthread=yes
22121 echo "$as_me: program exited with status $ac_status" >&5
22122 echo "$as_me: failed program was:" >&5
22123 sed 's/^/| /' conftest.$ac_ext >&5
22125 ( exit $ac_status )
22126 ol_cv_pthread_lpthread=no
22128 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22135 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
22136 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
22138 if test $ol_cv_pthread_lpthread = yes ; then
22139 ol_link_pthreads="-lpthread"
22140 ol_link_threads=posix
22144 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
22145 if test "$ol_link_threads" = no ; then
22147 echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
22148 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
22149 if test "${ol_cv_pthread_lc_r+set}" = set; then
22150 echo $ECHO_N "(cached) $ECHO_C" >&6
22157 if test "$cross_compiling" = yes; then
22158 cat >conftest.$ac_ext <<_ACEOF
22161 cat confdefs.h >>conftest.$ac_ext
22162 cat >>conftest.$ac_ext <<_ACEOF
22163 /* end confdefs.h. */
22165 /* pthread test headers */
22166 #include <pthread.h>
22167 #if HAVE_PTHREADS < 7
22171 #define NULL (void*)0
22174 static void *task(p)
22177 return (void *) (p == NULL);
22184 /* pthread test function */
22185 #ifndef PTHREAD_CREATE_DETACHED
22186 #define PTHREAD_CREATE_DETACHED 1
22190 int detach = PTHREAD_CREATE_DETACHED;
22192 #if HAVE_PTHREADS > 4
22193 /* Final pthreads */
22194 pthread_attr_t attr;
22196 status = pthread_attr_init(&attr);
22197 if( status ) return status;
22199 #if HAVE_PTHREADS < 7
22200 status = pthread_attr_setdetachstate(&attr, &detach);
22201 if( status < 0 ) status = errno;
22203 status = pthread_attr_setdetachstate(&attr, detach);
22205 if( status ) return status;
22206 status = pthread_create( &t, &attr, task, NULL );
22207 #if HAVE_PTHREADS < 7
22208 if( status < 0 ) status = errno;
22210 if( status ) return status;
22212 /* Draft 4 pthreads */
22213 status = pthread_create( &t, pthread_attr_default, task, NULL );
22214 if( status ) return errno;
22216 /* give thread a chance to complete */
22217 /* it should remain joinable and hence detachable */
22220 status = pthread_detach( &t );
22221 if( status ) return errno;
22224 #ifdef HAVE_LINUX_THREADS
22225 pthread_kill_other_threads_np();
22234 rm -f conftest.$ac_objext conftest$ac_exeext
22235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22236 (eval $ac_link) 2>conftest.er1
22238 grep -v '^ *+' conftest.er1 >conftest.err
22240 cat conftest.err >&5
22241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22242 (exit $ac_status); } &&
22243 { ac_try='test -z "$ac_c_werror_flag"
22244 || test ! -s conftest.err'
22245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22246 (eval $ac_try) 2>&5
22248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22249 (exit $ac_status); }; } &&
22250 { ac_try='test -s conftest$ac_exeext'
22251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22252 (eval $ac_try) 2>&5
22254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22255 (exit $ac_status); }; }; then
22256 ol_cv_pthread_lc_r=yes
22258 echo "$as_me: failed program was:" >&5
22259 sed 's/^/| /' conftest.$ac_ext >&5
22261 ol_cv_pthread_lc_r=no
22263 rm -f conftest.err conftest.$ac_objext \
22264 conftest$ac_exeext conftest.$ac_ext
22266 cat >conftest.$ac_ext <<_ACEOF
22269 cat confdefs.h >>conftest.$ac_ext
22270 cat >>conftest.$ac_ext <<_ACEOF
22271 /* end confdefs.h. */
22273 /* pthread test headers */
22274 #include <pthread.h>
22275 #if HAVE_PTHREADS < 7
22279 #define NULL (void*)0
22282 static void *task(p)
22285 return (void *) (p == NULL);
22289 int main(argc, argv)
22294 /* pthread test function */
22295 #ifndef PTHREAD_CREATE_DETACHED
22296 #define PTHREAD_CREATE_DETACHED 1
22300 int detach = PTHREAD_CREATE_DETACHED;
22302 #if HAVE_PTHREADS > 4
22303 /* Final pthreads */
22304 pthread_attr_t attr;
22306 status = pthread_attr_init(&attr);
22307 if( status ) return status;
22309 #if HAVE_PTHREADS < 7
22310 status = pthread_attr_setdetachstate(&attr, &detach);
22311 if( status < 0 ) status = errno;
22313 status = pthread_attr_setdetachstate(&attr, detach);
22315 if( status ) return status;
22316 status = pthread_create( &t, &attr, task, NULL );
22317 #if HAVE_PTHREADS < 7
22318 if( status < 0 ) status = errno;
22320 if( status ) return status;
22322 /* Draft 4 pthreads */
22323 status = pthread_create( &t, pthread_attr_default, task, NULL );
22324 if( status ) return errno;
22326 /* give thread a chance to complete */
22327 /* it should remain joinable and hence detachable */
22330 status = pthread_detach( &t );
22331 if( status ) return errno;
22334 #ifdef HAVE_LINUX_THREADS
22335 pthread_kill_other_threads_np();
22343 rm -f conftest$ac_exeext
22344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22345 (eval $ac_link) 2>&5
22347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22348 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22350 (eval $ac_try) 2>&5
22352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22353 (exit $ac_status); }; }; then
22354 ol_cv_pthread_lc_r=yes
22356 echo "$as_me: program exited with status $ac_status" >&5
22357 echo "$as_me: failed program was:" >&5
22358 sed 's/^/| /' conftest.$ac_ext >&5
22360 ( exit $ac_status )
22361 ol_cv_pthread_lc_r=no
22363 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22370 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
22371 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
22373 if test $ol_cv_pthread_lc_r = yes ; then
22374 ol_link_pthreads="-lc_r"
22375 ol_link_threads=posix
22380 # Pthread try link: -threads (ol_cv_pthread_threads)
22381 if test "$ol_link_threads" = no ; then
22383 echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
22384 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
22385 if test "${ol_cv_pthread_threads+set}" = set; then
22386 echo $ECHO_N "(cached) $ECHO_C" >&6
22391 LIBS="-threads $LIBS"
22393 if test "$cross_compiling" = yes; then
22394 cat >conftest.$ac_ext <<_ACEOF
22397 cat confdefs.h >>conftest.$ac_ext
22398 cat >>conftest.$ac_ext <<_ACEOF
22399 /* end confdefs.h. */
22401 /* pthread test headers */
22402 #include <pthread.h>
22403 #if HAVE_PTHREADS < 7
22407 #define NULL (void*)0
22410 static void *task(p)
22413 return (void *) (p == NULL);
22420 /* pthread test function */
22421 #ifndef PTHREAD_CREATE_DETACHED
22422 #define PTHREAD_CREATE_DETACHED 1
22426 int detach = PTHREAD_CREATE_DETACHED;
22428 #if HAVE_PTHREADS > 4
22429 /* Final pthreads */
22430 pthread_attr_t attr;
22432 status = pthread_attr_init(&attr);
22433 if( status ) return status;
22435 #if HAVE_PTHREADS < 7
22436 status = pthread_attr_setdetachstate(&attr, &detach);
22437 if( status < 0 ) status = errno;
22439 status = pthread_attr_setdetachstate(&attr, detach);
22441 if( status ) return status;
22442 status = pthread_create( &t, &attr, task, NULL );
22443 #if HAVE_PTHREADS < 7
22444 if( status < 0 ) status = errno;
22446 if( status ) return status;
22448 /* Draft 4 pthreads */
22449 status = pthread_create( &t, pthread_attr_default, task, NULL );
22450 if( status ) return errno;
22452 /* give thread a chance to complete */
22453 /* it should remain joinable and hence detachable */
22456 status = pthread_detach( &t );
22457 if( status ) return errno;
22460 #ifdef HAVE_LINUX_THREADS
22461 pthread_kill_other_threads_np();
22470 rm -f conftest.$ac_objext conftest$ac_exeext
22471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22472 (eval $ac_link) 2>conftest.er1
22474 grep -v '^ *+' conftest.er1 >conftest.err
22476 cat conftest.err >&5
22477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22478 (exit $ac_status); } &&
22479 { ac_try='test -z "$ac_c_werror_flag"
22480 || test ! -s conftest.err'
22481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22482 (eval $ac_try) 2>&5
22484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22485 (exit $ac_status); }; } &&
22486 { ac_try='test -s conftest$ac_exeext'
22487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22488 (eval $ac_try) 2>&5
22490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22491 (exit $ac_status); }; }; then
22492 ol_cv_pthread_threads=yes
22494 echo "$as_me: failed program was:" >&5
22495 sed 's/^/| /' conftest.$ac_ext >&5
22497 ol_cv_pthread_threads=no
22499 rm -f conftest.err conftest.$ac_objext \
22500 conftest$ac_exeext conftest.$ac_ext
22502 cat >conftest.$ac_ext <<_ACEOF
22505 cat confdefs.h >>conftest.$ac_ext
22506 cat >>conftest.$ac_ext <<_ACEOF
22507 /* end confdefs.h. */
22509 /* pthread test headers */
22510 #include <pthread.h>
22511 #if HAVE_PTHREADS < 7
22515 #define NULL (void*)0
22518 static void *task(p)
22521 return (void *) (p == NULL);
22525 int main(argc, argv)
22530 /* pthread test function */
22531 #ifndef PTHREAD_CREATE_DETACHED
22532 #define PTHREAD_CREATE_DETACHED 1
22536 int detach = PTHREAD_CREATE_DETACHED;
22538 #if HAVE_PTHREADS > 4
22539 /* Final pthreads */
22540 pthread_attr_t attr;
22542 status = pthread_attr_init(&attr);
22543 if( status ) return status;
22545 #if HAVE_PTHREADS < 7
22546 status = pthread_attr_setdetachstate(&attr, &detach);
22547 if( status < 0 ) status = errno;
22549 status = pthread_attr_setdetachstate(&attr, detach);
22551 if( status ) return status;
22552 status = pthread_create( &t, &attr, task, NULL );
22553 #if HAVE_PTHREADS < 7
22554 if( status < 0 ) status = errno;
22556 if( status ) return status;
22558 /* Draft 4 pthreads */
22559 status = pthread_create( &t, pthread_attr_default, task, NULL );
22560 if( status ) return errno;
22562 /* give thread a chance to complete */
22563 /* it should remain joinable and hence detachable */
22566 status = pthread_detach( &t );
22567 if( status ) return errno;
22570 #ifdef HAVE_LINUX_THREADS
22571 pthread_kill_other_threads_np();
22579 rm -f conftest$ac_exeext
22580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22581 (eval $ac_link) 2>&5
22583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22584 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22586 (eval $ac_try) 2>&5
22588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22589 (exit $ac_status); }; }; then
22590 ol_cv_pthread_threads=yes
22592 echo "$as_me: program exited with status $ac_status" >&5
22593 echo "$as_me: failed program was:" >&5
22594 sed 's/^/| /' conftest.$ac_ext >&5
22596 ( exit $ac_status )
22597 ol_cv_pthread_threads=no
22599 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22606 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
22607 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
22609 if test $ol_cv_pthread_threads = yes ; then
22610 ol_link_pthreads="-threads"
22611 ol_link_threads=posix
22616 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
22617 if test "$ol_link_threads" = no ; then
22618 # try -lpthreads -lmach -lexc -lc_r
22619 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
22620 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
22621 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
22622 echo $ECHO_N "(cached) $ECHO_C" >&6
22627 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
22629 if test "$cross_compiling" = yes; then
22630 cat >conftest.$ac_ext <<_ACEOF
22633 cat confdefs.h >>conftest.$ac_ext
22634 cat >>conftest.$ac_ext <<_ACEOF
22635 /* end confdefs.h. */
22637 /* pthread test headers */
22638 #include <pthread.h>
22639 #if HAVE_PTHREADS < 7
22643 #define NULL (void*)0
22646 static void *task(p)
22649 return (void *) (p == NULL);
22656 /* pthread test function */
22657 #ifndef PTHREAD_CREATE_DETACHED
22658 #define PTHREAD_CREATE_DETACHED 1
22662 int detach = PTHREAD_CREATE_DETACHED;
22664 #if HAVE_PTHREADS > 4
22665 /* Final pthreads */
22666 pthread_attr_t attr;
22668 status = pthread_attr_init(&attr);
22669 if( status ) return status;
22671 #if HAVE_PTHREADS < 7
22672 status = pthread_attr_setdetachstate(&attr, &detach);
22673 if( status < 0 ) status = errno;
22675 status = pthread_attr_setdetachstate(&attr, detach);
22677 if( status ) return status;
22678 status = pthread_create( &t, &attr, task, NULL );
22679 #if HAVE_PTHREADS < 7
22680 if( status < 0 ) status = errno;
22682 if( status ) return status;
22684 /* Draft 4 pthreads */
22685 status = pthread_create( &t, pthread_attr_default, task, NULL );
22686 if( status ) return errno;
22688 /* give thread a chance to complete */
22689 /* it should remain joinable and hence detachable */
22692 status = pthread_detach( &t );
22693 if( status ) return errno;
22696 #ifdef HAVE_LINUX_THREADS
22697 pthread_kill_other_threads_np();
22706 rm -f conftest.$ac_objext conftest$ac_exeext
22707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22708 (eval $ac_link) 2>conftest.er1
22710 grep -v '^ *+' conftest.er1 >conftest.err
22712 cat conftest.err >&5
22713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22714 (exit $ac_status); } &&
22715 { ac_try='test -z "$ac_c_werror_flag"
22716 || test ! -s conftest.err'
22717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22718 (eval $ac_try) 2>&5
22720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22721 (exit $ac_status); }; } &&
22722 { ac_try='test -s conftest$ac_exeext'
22723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22724 (eval $ac_try) 2>&5
22726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22727 (exit $ac_status); }; }; then
22728 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
22730 echo "$as_me: failed program was:" >&5
22731 sed 's/^/| /' conftest.$ac_ext >&5
22733 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
22735 rm -f conftest.err conftest.$ac_objext \
22736 conftest$ac_exeext conftest.$ac_ext
22738 cat >conftest.$ac_ext <<_ACEOF
22741 cat confdefs.h >>conftest.$ac_ext
22742 cat >>conftest.$ac_ext <<_ACEOF
22743 /* end confdefs.h. */
22745 /* pthread test headers */
22746 #include <pthread.h>
22747 #if HAVE_PTHREADS < 7
22751 #define NULL (void*)0
22754 static void *task(p)
22757 return (void *) (p == NULL);
22761 int main(argc, argv)
22766 /* pthread test function */
22767 #ifndef PTHREAD_CREATE_DETACHED
22768 #define PTHREAD_CREATE_DETACHED 1
22772 int detach = PTHREAD_CREATE_DETACHED;
22774 #if HAVE_PTHREADS > 4
22775 /* Final pthreads */
22776 pthread_attr_t attr;
22778 status = pthread_attr_init(&attr);
22779 if( status ) return status;
22781 #if HAVE_PTHREADS < 7
22782 status = pthread_attr_setdetachstate(&attr, &detach);
22783 if( status < 0 ) status = errno;
22785 status = pthread_attr_setdetachstate(&attr, detach);
22787 if( status ) return status;
22788 status = pthread_create( &t, &attr, task, NULL );
22789 #if HAVE_PTHREADS < 7
22790 if( status < 0 ) status = errno;
22792 if( status ) return status;
22794 /* Draft 4 pthreads */
22795 status = pthread_create( &t, pthread_attr_default, task, NULL );
22796 if( status ) return errno;
22798 /* give thread a chance to complete */
22799 /* it should remain joinable and hence detachable */
22802 status = pthread_detach( &t );
22803 if( status ) return errno;
22806 #ifdef HAVE_LINUX_THREADS
22807 pthread_kill_other_threads_np();
22815 rm -f conftest$ac_exeext
22816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22817 (eval $ac_link) 2>&5
22819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22820 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22822 (eval $ac_try) 2>&5
22824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22825 (exit $ac_status); }; }; then
22826 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
22828 echo "$as_me: program exited with status $ac_status" >&5
22829 echo "$as_me: failed program was:" >&5
22830 sed 's/^/| /' conftest.$ac_ext >&5
22832 ( exit $ac_status )
22833 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
22835 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22842 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
22843 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
22845 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
22846 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
22847 ol_link_threads=posix
22851 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
22852 if test "$ol_link_threads" = no ; then
22853 # try -lpthreads -lmach -lexc
22854 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
22855 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
22856 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
22857 echo $ECHO_N "(cached) $ECHO_C" >&6
22862 LIBS="-lpthreads -lmach -lexc $LIBS"
22864 if test "$cross_compiling" = yes; then
22865 cat >conftest.$ac_ext <<_ACEOF
22868 cat confdefs.h >>conftest.$ac_ext
22869 cat >>conftest.$ac_ext <<_ACEOF
22870 /* end confdefs.h. */
22872 /* pthread test headers */
22873 #include <pthread.h>
22874 #if HAVE_PTHREADS < 7
22878 #define NULL (void*)0
22881 static void *task(p)
22884 return (void *) (p == NULL);
22891 /* pthread test function */
22892 #ifndef PTHREAD_CREATE_DETACHED
22893 #define PTHREAD_CREATE_DETACHED 1
22897 int detach = PTHREAD_CREATE_DETACHED;
22899 #if HAVE_PTHREADS > 4
22900 /* Final pthreads */
22901 pthread_attr_t attr;
22903 status = pthread_attr_init(&attr);
22904 if( status ) return status;
22906 #if HAVE_PTHREADS < 7
22907 status = pthread_attr_setdetachstate(&attr, &detach);
22908 if( status < 0 ) status = errno;
22910 status = pthread_attr_setdetachstate(&attr, detach);
22912 if( status ) return status;
22913 status = pthread_create( &t, &attr, task, NULL );
22914 #if HAVE_PTHREADS < 7
22915 if( status < 0 ) status = errno;
22917 if( status ) return status;
22919 /* Draft 4 pthreads */
22920 status = pthread_create( &t, pthread_attr_default, task, NULL );
22921 if( status ) return errno;
22923 /* give thread a chance to complete */
22924 /* it should remain joinable and hence detachable */
22927 status = pthread_detach( &t );
22928 if( status ) return errno;
22931 #ifdef HAVE_LINUX_THREADS
22932 pthread_kill_other_threads_np();
22941 rm -f conftest.$ac_objext conftest$ac_exeext
22942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22943 (eval $ac_link) 2>conftest.er1
22945 grep -v '^ *+' conftest.er1 >conftest.err
22947 cat conftest.err >&5
22948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22949 (exit $ac_status); } &&
22950 { ac_try='test -z "$ac_c_werror_flag"
22951 || test ! -s conftest.err'
22952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22953 (eval $ac_try) 2>&5
22955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22956 (exit $ac_status); }; } &&
22957 { ac_try='test -s conftest$ac_exeext'
22958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22959 (eval $ac_try) 2>&5
22961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22962 (exit $ac_status); }; }; then
22963 ol_cv_pthread_lpthreads_lmach_lexc=yes
22965 echo "$as_me: failed program was:" >&5
22966 sed 's/^/| /' conftest.$ac_ext >&5
22968 ol_cv_pthread_lpthreads_lmach_lexc=no
22970 rm -f conftest.err conftest.$ac_objext \
22971 conftest$ac_exeext conftest.$ac_ext
22973 cat >conftest.$ac_ext <<_ACEOF
22976 cat confdefs.h >>conftest.$ac_ext
22977 cat >>conftest.$ac_ext <<_ACEOF
22978 /* end confdefs.h. */
22980 /* pthread test headers */
22981 #include <pthread.h>
22982 #if HAVE_PTHREADS < 7
22986 #define NULL (void*)0
22989 static void *task(p)
22992 return (void *) (p == NULL);
22996 int main(argc, argv)
23001 /* pthread test function */
23002 #ifndef PTHREAD_CREATE_DETACHED
23003 #define PTHREAD_CREATE_DETACHED 1
23007 int detach = PTHREAD_CREATE_DETACHED;
23009 #if HAVE_PTHREADS > 4
23010 /* Final pthreads */
23011 pthread_attr_t attr;
23013 status = pthread_attr_init(&attr);
23014 if( status ) return status;
23016 #if HAVE_PTHREADS < 7
23017 status = pthread_attr_setdetachstate(&attr, &detach);
23018 if( status < 0 ) status = errno;
23020 status = pthread_attr_setdetachstate(&attr, detach);
23022 if( status ) return status;
23023 status = pthread_create( &t, &attr, task, NULL );
23024 #if HAVE_PTHREADS < 7
23025 if( status < 0 ) status = errno;
23027 if( status ) return status;
23029 /* Draft 4 pthreads */
23030 status = pthread_create( &t, pthread_attr_default, task, NULL );
23031 if( status ) return errno;
23033 /* give thread a chance to complete */
23034 /* it should remain joinable and hence detachable */
23037 status = pthread_detach( &t );
23038 if( status ) return errno;
23041 #ifdef HAVE_LINUX_THREADS
23042 pthread_kill_other_threads_np();
23050 rm -f conftest$ac_exeext
23051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23052 (eval $ac_link) 2>&5
23054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23055 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23057 (eval $ac_try) 2>&5
23059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23060 (exit $ac_status); }; }; then
23061 ol_cv_pthread_lpthreads_lmach_lexc=yes
23063 echo "$as_me: program exited with status $ac_status" >&5
23064 echo "$as_me: failed program was:" >&5
23065 sed 's/^/| /' conftest.$ac_ext >&5
23067 ( exit $ac_status )
23068 ol_cv_pthread_lpthreads_lmach_lexc=no
23070 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23077 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
23078 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
23080 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
23081 ol_link_pthreads="-lpthreads -lmach -lexc"
23082 ol_link_threads=posix
23086 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
23087 if test "$ol_link_threads" = no ; then
23088 # try -lpthreads -lexc
23089 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
23090 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
23091 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
23092 echo $ECHO_N "(cached) $ECHO_C" >&6
23097 LIBS="-lpthreads -lexc $LIBS"
23099 if test "$cross_compiling" = yes; then
23100 cat >conftest.$ac_ext <<_ACEOF
23103 cat confdefs.h >>conftest.$ac_ext
23104 cat >>conftest.$ac_ext <<_ACEOF
23105 /* end confdefs.h. */
23107 /* pthread test headers */
23108 #include <pthread.h>
23109 #if HAVE_PTHREADS < 7
23113 #define NULL (void*)0
23116 static void *task(p)
23119 return (void *) (p == NULL);
23126 /* pthread test function */
23127 #ifndef PTHREAD_CREATE_DETACHED
23128 #define PTHREAD_CREATE_DETACHED 1
23132 int detach = PTHREAD_CREATE_DETACHED;
23134 #if HAVE_PTHREADS > 4
23135 /* Final pthreads */
23136 pthread_attr_t attr;
23138 status = pthread_attr_init(&attr);
23139 if( status ) return status;
23141 #if HAVE_PTHREADS < 7
23142 status = pthread_attr_setdetachstate(&attr, &detach);
23143 if( status < 0 ) status = errno;
23145 status = pthread_attr_setdetachstate(&attr, detach);
23147 if( status ) return status;
23148 status = pthread_create( &t, &attr, task, NULL );
23149 #if HAVE_PTHREADS < 7
23150 if( status < 0 ) status = errno;
23152 if( status ) return status;
23154 /* Draft 4 pthreads */
23155 status = pthread_create( &t, pthread_attr_default, task, NULL );
23156 if( status ) return errno;
23158 /* give thread a chance to complete */
23159 /* it should remain joinable and hence detachable */
23162 status = pthread_detach( &t );
23163 if( status ) return errno;
23166 #ifdef HAVE_LINUX_THREADS
23167 pthread_kill_other_threads_np();
23176 rm -f conftest.$ac_objext conftest$ac_exeext
23177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23178 (eval $ac_link) 2>conftest.er1
23180 grep -v '^ *+' conftest.er1 >conftest.err
23182 cat conftest.err >&5
23183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23184 (exit $ac_status); } &&
23185 { ac_try='test -z "$ac_c_werror_flag"
23186 || test ! -s conftest.err'
23187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23188 (eval $ac_try) 2>&5
23190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23191 (exit $ac_status); }; } &&
23192 { ac_try='test -s conftest$ac_exeext'
23193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23194 (eval $ac_try) 2>&5
23196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23197 (exit $ac_status); }; }; then
23198 ol_cv_pthread_lpthreads_lexc=yes
23200 echo "$as_me: failed program was:" >&5
23201 sed 's/^/| /' conftest.$ac_ext >&5
23203 ol_cv_pthread_lpthreads_lexc=no
23205 rm -f conftest.err conftest.$ac_objext \
23206 conftest$ac_exeext conftest.$ac_ext
23208 cat >conftest.$ac_ext <<_ACEOF
23211 cat confdefs.h >>conftest.$ac_ext
23212 cat >>conftest.$ac_ext <<_ACEOF
23213 /* end confdefs.h. */
23215 /* pthread test headers */
23216 #include <pthread.h>
23217 #if HAVE_PTHREADS < 7
23221 #define NULL (void*)0
23224 static void *task(p)
23227 return (void *) (p == NULL);
23231 int main(argc, argv)
23236 /* pthread test function */
23237 #ifndef PTHREAD_CREATE_DETACHED
23238 #define PTHREAD_CREATE_DETACHED 1
23242 int detach = PTHREAD_CREATE_DETACHED;
23244 #if HAVE_PTHREADS > 4
23245 /* Final pthreads */
23246 pthread_attr_t attr;
23248 status = pthread_attr_init(&attr);
23249 if( status ) return status;
23251 #if HAVE_PTHREADS < 7
23252 status = pthread_attr_setdetachstate(&attr, &detach);
23253 if( status < 0 ) status = errno;
23255 status = pthread_attr_setdetachstate(&attr, detach);
23257 if( status ) return status;
23258 status = pthread_create( &t, &attr, task, NULL );
23259 #if HAVE_PTHREADS < 7
23260 if( status < 0 ) status = errno;
23262 if( status ) return status;
23264 /* Draft 4 pthreads */
23265 status = pthread_create( &t, pthread_attr_default, task, NULL );
23266 if( status ) return errno;
23268 /* give thread a chance to complete */
23269 /* it should remain joinable and hence detachable */
23272 status = pthread_detach( &t );
23273 if( status ) return errno;
23276 #ifdef HAVE_LINUX_THREADS
23277 pthread_kill_other_threads_np();
23285 rm -f conftest$ac_exeext
23286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23287 (eval $ac_link) 2>&5
23289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23290 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23292 (eval $ac_try) 2>&5
23294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23295 (exit $ac_status); }; }; then
23296 ol_cv_pthread_lpthreads_lexc=yes
23298 echo "$as_me: program exited with status $ac_status" >&5
23299 echo "$as_me: failed program was:" >&5
23300 sed 's/^/| /' conftest.$ac_ext >&5
23302 ( exit $ac_status )
23303 ol_cv_pthread_lpthreads_lexc=no
23305 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23312 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
23313 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
23315 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
23316 ol_link_pthreads="-lpthreads -lexc"
23317 ol_link_threads=posix
23322 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
23323 if test "$ol_link_threads" = no ; then
23325 echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
23326 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
23327 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
23328 echo $ECHO_N "(cached) $ECHO_C" >&6
23333 LIBS="-lpthreads $LIBS"
23335 if test "$cross_compiling" = yes; then
23336 cat >conftest.$ac_ext <<_ACEOF
23339 cat confdefs.h >>conftest.$ac_ext
23340 cat >>conftest.$ac_ext <<_ACEOF
23341 /* end confdefs.h. */
23343 /* pthread test headers */
23344 #include <pthread.h>
23345 #if HAVE_PTHREADS < 7
23349 #define NULL (void*)0
23352 static void *task(p)
23355 return (void *) (p == NULL);
23362 /* pthread test function */
23363 #ifndef PTHREAD_CREATE_DETACHED
23364 #define PTHREAD_CREATE_DETACHED 1
23368 int detach = PTHREAD_CREATE_DETACHED;
23370 #if HAVE_PTHREADS > 4
23371 /* Final pthreads */
23372 pthread_attr_t attr;
23374 status = pthread_attr_init(&attr);
23375 if( status ) return status;
23377 #if HAVE_PTHREADS < 7
23378 status = pthread_attr_setdetachstate(&attr, &detach);
23379 if( status < 0 ) status = errno;
23381 status = pthread_attr_setdetachstate(&attr, detach);
23383 if( status ) return status;
23384 status = pthread_create( &t, &attr, task, NULL );
23385 #if HAVE_PTHREADS < 7
23386 if( status < 0 ) status = errno;
23388 if( status ) return status;
23390 /* Draft 4 pthreads */
23391 status = pthread_create( &t, pthread_attr_default, task, NULL );
23392 if( status ) return errno;
23394 /* give thread a chance to complete */
23395 /* it should remain joinable and hence detachable */
23398 status = pthread_detach( &t );
23399 if( status ) return errno;
23402 #ifdef HAVE_LINUX_THREADS
23403 pthread_kill_other_threads_np();
23412 rm -f conftest.$ac_objext conftest$ac_exeext
23413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23414 (eval $ac_link) 2>conftest.er1
23416 grep -v '^ *+' conftest.er1 >conftest.err
23418 cat conftest.err >&5
23419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23420 (exit $ac_status); } &&
23421 { ac_try='test -z "$ac_c_werror_flag"
23422 || test ! -s conftest.err'
23423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23424 (eval $ac_try) 2>&5
23426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23427 (exit $ac_status); }; } &&
23428 { ac_try='test -s conftest$ac_exeext'
23429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23430 (eval $ac_try) 2>&5
23432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23433 (exit $ac_status); }; }; then
23434 ol_cv_pthread_lib_lpthreads=yes
23436 echo "$as_me: failed program was:" >&5
23437 sed 's/^/| /' conftest.$ac_ext >&5
23439 ol_cv_pthread_lib_lpthreads=no
23441 rm -f conftest.err conftest.$ac_objext \
23442 conftest$ac_exeext conftest.$ac_ext
23444 cat >conftest.$ac_ext <<_ACEOF
23447 cat confdefs.h >>conftest.$ac_ext
23448 cat >>conftest.$ac_ext <<_ACEOF
23449 /* end confdefs.h. */
23451 /* pthread test headers */
23452 #include <pthread.h>
23453 #if HAVE_PTHREADS < 7
23457 #define NULL (void*)0
23460 static void *task(p)
23463 return (void *) (p == NULL);
23467 int main(argc, argv)
23472 /* pthread test function */
23473 #ifndef PTHREAD_CREATE_DETACHED
23474 #define PTHREAD_CREATE_DETACHED 1
23478 int detach = PTHREAD_CREATE_DETACHED;
23480 #if HAVE_PTHREADS > 4
23481 /* Final pthreads */
23482 pthread_attr_t attr;
23484 status = pthread_attr_init(&attr);
23485 if( status ) return status;
23487 #if HAVE_PTHREADS < 7
23488 status = pthread_attr_setdetachstate(&attr, &detach);
23489 if( status < 0 ) status = errno;
23491 status = pthread_attr_setdetachstate(&attr, detach);
23493 if( status ) return status;
23494 status = pthread_create( &t, &attr, task, NULL );
23495 #if HAVE_PTHREADS < 7
23496 if( status < 0 ) status = errno;
23498 if( status ) return status;
23500 /* Draft 4 pthreads */
23501 status = pthread_create( &t, pthread_attr_default, task, NULL );
23502 if( status ) return errno;
23504 /* give thread a chance to complete */
23505 /* it should remain joinable and hence detachable */
23508 status = pthread_detach( &t );
23509 if( status ) return errno;
23512 #ifdef HAVE_LINUX_THREADS
23513 pthread_kill_other_threads_np();
23521 rm -f conftest$ac_exeext
23522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23523 (eval $ac_link) 2>&5
23525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23526 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23528 (eval $ac_try) 2>&5
23530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23531 (exit $ac_status); }; }; then
23532 ol_cv_pthread_lib_lpthreads=yes
23534 echo "$as_me: program exited with status $ac_status" >&5
23535 echo "$as_me: failed program was:" >&5
23536 sed 's/^/| /' conftest.$ac_ext >&5
23538 ( exit $ac_status )
23539 ol_cv_pthread_lib_lpthreads=no
23541 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23548 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
23549 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
23551 if test $ol_cv_pthread_lib_lpthreads = yes ; then
23552 ol_link_pthreads="-lpthreads"
23553 ol_link_threads=posix
23558 if test $ol_link_threads != no ; then
23559 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
23561 save_CPPFLAGS="$CPPFLAGS"
23563 LIBS="$LTHREAD_LIBS $LIBS"
23568 for ac_func in sched_yield pthread_yield thr_yield
23570 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23571 echo "$as_me:$LINENO: checking for $ac_func" >&5
23572 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23573 if eval "test \"\${$as_ac_var+set}\" = set"; then
23574 echo $ECHO_N "(cached) $ECHO_C" >&6
23576 cat >conftest.$ac_ext <<_ACEOF
23579 cat confdefs.h >>conftest.$ac_ext
23580 cat >>conftest.$ac_ext <<_ACEOF
23581 /* end confdefs.h. */
23582 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23583 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23584 #define $ac_func innocuous_$ac_func
23586 /* System header to define __stub macros and hopefully few prototypes,
23587 which can conflict with char $ac_func (); below.
23588 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23589 <limits.h> exists even on freestanding compilers. */
23592 # include <limits.h>
23594 # include <assert.h>
23599 /* Override any gcc2 internal prototype to avoid an error. */
23604 /* We use char because int might match the return type of a gcc2
23605 builtin and then its argument prototype would still apply. */
23607 /* The GNU C library defines this for functions which it implements
23608 to always fail with ENOSYS. Some functions are actually named
23609 something starting with __ and the normal name is an alias. */
23610 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23613 char (*f) () = $ac_func;
23622 return f != $ac_func;
23627 rm -f conftest.$ac_objext conftest$ac_exeext
23628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23629 (eval $ac_link) 2>conftest.er1
23631 grep -v '^ *+' conftest.er1 >conftest.err
23633 cat conftest.err >&5
23634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23635 (exit $ac_status); } &&
23636 { ac_try='test -z "$ac_c_werror_flag"
23637 || test ! -s conftest.err'
23638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23639 (eval $ac_try) 2>&5
23641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23642 (exit $ac_status); }; } &&
23643 { ac_try='test -s conftest$ac_exeext'
23644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23645 (eval $ac_try) 2>&5
23647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23648 (exit $ac_status); }; }; then
23649 eval "$as_ac_var=yes"
23651 echo "$as_me: failed program was:" >&5
23652 sed 's/^/| /' conftest.$ac_ext >&5
23654 eval "$as_ac_var=no"
23656 rm -f conftest.err conftest.$ac_objext \
23657 conftest$ac_exeext conftest.$ac_ext
23659 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23660 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23661 if test `eval echo '${'$as_ac_var'}'` = yes; then
23662 cat >>confdefs.h <<_ACEOF
23663 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23670 if test $ac_cv_func_sched_yield = no &&
23671 test $ac_cv_func_pthread_yield = no &&
23672 test $ac_cv_func_thr_yield = no ; then
23673 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
23674 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
23675 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
23676 echo $ECHO_N "(cached) $ECHO_C" >&6
23678 ac_check_lib_save_LIBS=$LIBS
23680 cat >conftest.$ac_ext <<_ACEOF
23683 cat confdefs.h >>conftest.$ac_ext
23684 cat >>conftest.$ac_ext <<_ACEOF
23685 /* end confdefs.h. */
23687 /* Override any gcc2 internal prototype to avoid an error. */
23691 /* We use char because int might match the return type of a gcc2
23692 builtin and then its argument prototype would still apply. */
23693 char sched_yield ();
23702 rm -f conftest.$ac_objext conftest$ac_exeext
23703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23704 (eval $ac_link) 2>conftest.er1
23706 grep -v '^ *+' conftest.er1 >conftest.err
23708 cat conftest.err >&5
23709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23710 (exit $ac_status); } &&
23711 { ac_try='test -z "$ac_c_werror_flag"
23712 || test ! -s conftest.err'
23713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23714 (eval $ac_try) 2>&5
23716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23717 (exit $ac_status); }; } &&
23718 { ac_try='test -s 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 ac_cv_lib_rt_sched_yield=yes
23726 echo "$as_me: failed program was:" >&5
23727 sed 's/^/| /' conftest.$ac_ext >&5
23729 ac_cv_lib_rt_sched_yield=no
23731 rm -f conftest.err conftest.$ac_objext \
23732 conftest$ac_exeext conftest.$ac_ext
23733 LIBS=$ac_check_lib_save_LIBS
23735 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
23736 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
23737 if test $ac_cv_lib_rt_sched_yield = yes; then
23738 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
23740 cat >>confdefs.h <<\_ACEOF
23741 #define HAVE_SCHED_YIELD 1
23744 ac_cv_func_sched_yield=yes
23746 ac_cv_func_sched_yield=no
23750 if test $ac_cv_func_sched_yield = no &&
23751 test $ac_cv_func_pthread_yield = no &&
23752 test "$ac_cv_func_thr_yield" = no ; then
23753 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
23754 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
23758 for ac_func in pthread_kill
23760 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23761 echo "$as_me:$LINENO: checking for $ac_func" >&5
23762 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23763 if eval "test \"\${$as_ac_var+set}\" = set"; then
23764 echo $ECHO_N "(cached) $ECHO_C" >&6
23766 cat >conftest.$ac_ext <<_ACEOF
23769 cat confdefs.h >>conftest.$ac_ext
23770 cat >>conftest.$ac_ext <<_ACEOF
23771 /* end confdefs.h. */
23772 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23773 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23774 #define $ac_func innocuous_$ac_func
23776 /* System header to define __stub macros and hopefully few prototypes,
23777 which can conflict with char $ac_func (); below.
23778 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23779 <limits.h> exists even on freestanding compilers. */
23782 # include <limits.h>
23784 # include <assert.h>
23789 /* Override any gcc2 internal prototype to avoid an error. */
23794 /* We use char because int might match the return type of a gcc2
23795 builtin and then its argument prototype would still apply. */
23797 /* The GNU C library defines this for functions which it implements
23798 to always fail with ENOSYS. Some functions are actually named
23799 something starting with __ and the normal name is an alias. */
23800 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23803 char (*f) () = $ac_func;
23812 return f != $ac_func;
23817 rm -f conftest.$ac_objext conftest$ac_exeext
23818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23819 (eval $ac_link) 2>conftest.er1
23821 grep -v '^ *+' conftest.er1 >conftest.err
23823 cat conftest.err >&5
23824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23825 (exit $ac_status); } &&
23826 { ac_try='test -z "$ac_c_werror_flag"
23827 || test ! -s conftest.err'
23828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23829 (eval $ac_try) 2>&5
23831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23832 (exit $ac_status); }; } &&
23833 { ac_try='test -s conftest$ac_exeext'
23834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23835 (eval $ac_try) 2>&5
23837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23838 (exit $ac_status); }; }; then
23839 eval "$as_ac_var=yes"
23841 echo "$as_me: failed program was:" >&5
23842 sed 's/^/| /' conftest.$ac_ext >&5
23844 eval "$as_ac_var=no"
23846 rm -f conftest.err conftest.$ac_objext \
23847 conftest$ac_exeext conftest.$ac_ext
23849 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23850 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23851 if test `eval echo '${'$as_ac_var'}'` = yes; then
23852 cat >>confdefs.h <<_ACEOF
23853 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23860 echo "$as_me:$LINENO: checking for pthread_rwlock_destroy with <pthread.h>" >&5
23861 echo $ECHO_N "checking for pthread_rwlock_destroy with <pthread.h>... $ECHO_C" >&6
23862 if test "${ol_cv_func_pthread_rwlock_destroy+set}" = set; then
23863 echo $ECHO_N "(cached) $ECHO_C" >&6
23866 cat >conftest.$ac_ext <<_ACEOF
23869 cat confdefs.h >>conftest.$ac_ext
23870 cat >>conftest.$ac_ext <<_ACEOF
23871 /* end confdefs.h. */
23873 #include <pthread.h>
23874 pthread_rwlock_t rwlock;
23879 pthread_rwlock_destroy(&rwlock);
23884 rm -f conftest.$ac_objext conftest$ac_exeext
23885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23886 (eval $ac_link) 2>conftest.er1
23888 grep -v '^ *+' conftest.er1 >conftest.err
23890 cat conftest.err >&5
23891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23892 (exit $ac_status); } &&
23893 { ac_try='test -z "$ac_c_werror_flag"
23894 || test ! -s conftest.err'
23895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23896 (eval $ac_try) 2>&5
23898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23899 (exit $ac_status); }; } &&
23900 { ac_try='test -s conftest$ac_exeext'
23901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23902 (eval $ac_try) 2>&5
23904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23905 (exit $ac_status); }; }; then
23906 ol_cv_func_pthread_rwlock_destroy=yes
23908 echo "$as_me: failed program was:" >&5
23909 sed 's/^/| /' conftest.$ac_ext >&5
23911 ol_cv_func_pthread_rwlock_destroy=no
23913 rm -f conftest.err conftest.$ac_objext \
23914 conftest$ac_exeext conftest.$ac_ext
23917 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_rwlock_destroy" >&5
23918 echo "${ECHO_T}$ol_cv_func_pthread_rwlock_destroy" >&6
23919 if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
23921 cat >>confdefs.h <<\_ACEOF
23922 #define HAVE_PTHREAD_RWLOCK_DESTROY 1
23927 echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
23928 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
23929 if test "${ol_cv_func_pthread_detach+set}" = set; then
23930 echo $ECHO_N "(cached) $ECHO_C" >&6
23933 cat >conftest.$ac_ext <<_ACEOF
23936 cat confdefs.h >>conftest.$ac_ext
23937 cat >>conftest.$ac_ext <<_ACEOF
23938 /* end confdefs.h. */
23940 #include <pthread.h>
23942 #define NULL (void*)0
23948 pthread_detach(NULL);
23953 rm -f conftest.$ac_objext conftest$ac_exeext
23954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23955 (eval $ac_link) 2>conftest.er1
23957 grep -v '^ *+' conftest.er1 >conftest.err
23959 cat conftest.err >&5
23960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23961 (exit $ac_status); } &&
23962 { ac_try='test -z "$ac_c_werror_flag"
23963 || test ! -s conftest.err'
23964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23965 (eval $ac_try) 2>&5
23967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23968 (exit $ac_status); }; } &&
23969 { ac_try='test -s conftest$ac_exeext'
23970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23971 (eval $ac_try) 2>&5
23973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23974 (exit $ac_status); }; }; then
23975 ol_cv_func_pthread_detach=yes
23977 echo "$as_me: failed program was:" >&5
23978 sed 's/^/| /' conftest.$ac_ext >&5
23980 ol_cv_func_pthread_detach=no
23982 rm -f conftest.err conftest.$ac_objext \
23983 conftest$ac_exeext conftest.$ac_ext
23986 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
23987 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
23989 if test $ol_cv_func_pthread_detach = no ; then
23990 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
23991 echo "$as_me: error: could not locate pthread_detach()" >&2;}
23992 { (exit 1); exit 1; }; }
23996 cat >>confdefs.h <<\_ACEOF
23997 #define HAVE_PTHREAD_DETACH 1
24006 pthread_setconcurrency \
24007 pthread_getconcurrency \
24008 thr_setconcurrency \
24009 thr_getconcurrency \
24012 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24013 echo "$as_me:$LINENO: checking for $ac_func" >&5
24014 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24015 if eval "test \"\${$as_ac_var+set}\" = set"; then
24016 echo $ECHO_N "(cached) $ECHO_C" >&6
24018 cat >conftest.$ac_ext <<_ACEOF
24021 cat confdefs.h >>conftest.$ac_ext
24022 cat >>conftest.$ac_ext <<_ACEOF
24023 /* end confdefs.h. */
24024 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24026 #define $ac_func innocuous_$ac_func
24028 /* System header to define __stub macros and hopefully few prototypes,
24029 which can conflict with char $ac_func (); below.
24030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24031 <limits.h> exists even on freestanding compilers. */
24034 # include <limits.h>
24036 # include <assert.h>
24041 /* Override any gcc2 internal prototype to avoid an error. */
24046 /* We use char because int might match the return type of a gcc2
24047 builtin and then its argument prototype would still apply. */
24049 /* The GNU C library defines this for functions which it implements
24050 to always fail with ENOSYS. Some functions are actually named
24051 something starting with __ and the normal name is an alias. */
24052 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24055 char (*f) () = $ac_func;
24064 return f != $ac_func;
24069 rm -f conftest.$ac_objext conftest$ac_exeext
24070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24071 (eval $ac_link) 2>conftest.er1
24073 grep -v '^ *+' conftest.er1 >conftest.err
24075 cat conftest.err >&5
24076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24077 (exit $ac_status); } &&
24078 { ac_try='test -z "$ac_c_werror_flag"
24079 || test ! -s conftest.err'
24080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24081 (eval $ac_try) 2>&5
24083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24084 (exit $ac_status); }; } &&
24085 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
24091 eval "$as_ac_var=yes"
24093 echo "$as_me: failed program was:" >&5
24094 sed 's/^/| /' conftest.$ac_ext >&5
24096 eval "$as_ac_var=no"
24098 rm -f conftest.err conftest.$ac_objext \
24099 conftest$ac_exeext conftest.$ac_ext
24101 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24102 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24103 if test `eval echo '${'$as_ac_var'}'` = yes; then
24104 cat >>confdefs.h <<_ACEOF
24105 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24114 for ac_func in pthread_kill_other_threads_np
24116 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24117 echo "$as_me:$LINENO: checking for $ac_func" >&5
24118 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24119 if eval "test \"\${$as_ac_var+set}\" = set"; then
24120 echo $ECHO_N "(cached) $ECHO_C" >&6
24122 cat >conftest.$ac_ext <<_ACEOF
24125 cat confdefs.h >>conftest.$ac_ext
24126 cat >>conftest.$ac_ext <<_ACEOF
24127 /* end confdefs.h. */
24128 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24129 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24130 #define $ac_func innocuous_$ac_func
24132 /* System header to define __stub macros and hopefully few prototypes,
24133 which can conflict with char $ac_func (); below.
24134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24135 <limits.h> exists even on freestanding compilers. */
24138 # include <limits.h>
24140 # include <assert.h>
24145 /* Override any gcc2 internal prototype to avoid an error. */
24150 /* We use char because int might match the return type of a gcc2
24151 builtin and then its argument prototype would still apply. */
24153 /* The GNU C library defines this for functions which it implements
24154 to always fail with ENOSYS. Some functions are actually named
24155 something starting with __ and the normal name is an alias. */
24156 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24159 char (*f) () = $ac_func;
24168 return f != $ac_func;
24173 rm -f conftest.$ac_objext conftest$ac_exeext
24174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24175 (eval $ac_link) 2>conftest.er1
24177 grep -v '^ *+' conftest.er1 >conftest.err
24179 cat conftest.err >&5
24180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24181 (exit $ac_status); } &&
24182 { ac_try='test -z "$ac_c_werror_flag"
24183 || test ! -s conftest.err'
24184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24185 (eval $ac_try) 2>&5
24187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24188 (exit $ac_status); }; } &&
24189 { ac_try='test -s 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 eval "$as_ac_var=yes"
24197 echo "$as_me: failed program was:" >&5
24198 sed 's/^/| /' conftest.$ac_ext >&5
24200 eval "$as_ac_var=no"
24202 rm -f conftest.err conftest.$ac_objext \
24203 conftest$ac_exeext conftest.$ac_ext
24205 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24206 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24207 if test `eval echo '${'$as_ac_var'}'` = yes; then
24208 cat >>confdefs.h <<_ACEOF
24209 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24215 echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
24216 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
24217 if test "${ol_cv_sys_linux_threads+set}" = set; then
24218 echo $ECHO_N "(cached) $ECHO_C" >&6
24220 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
24222 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
24223 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
24228 echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
24229 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
24230 if test "${ol_cv_linux_threads+set}" = set; then
24231 echo $ECHO_N "(cached) $ECHO_C" >&6
24234 if test $ol_cv_header_linux_threads = yes &&
24235 test $ol_cv_sys_linux_threads = yes; then
24236 ol_cv_linux_threads=yes
24237 elif test $ol_cv_header_linux_threads = no &&
24238 test $ol_cv_sys_linux_threads = no; then
24239 ol_cv_linux_threads=no
24241 ol_cv_linux_threads=error
24245 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
24246 echo "${ECHO_T}$ol_cv_linux_threads" >&6
24249 if test $ol_cv_linux_threads = error; then
24250 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
24251 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
24252 { (exit 1); exit 1; }; };
24255 echo "$as_me:$LINENO: checking if pthread_create() works" >&5
24256 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
24257 if test "${ol_cv_pthread_create_works+set}" = set; then
24258 echo $ECHO_N "(cached) $ECHO_C" >&6
24261 if test "$cross_compiling" = yes; then
24262 ol_cv_pthread_create_works=yes
24264 cat >conftest.$ac_ext <<_ACEOF
24267 cat confdefs.h >>conftest.$ac_ext
24268 cat >>conftest.$ac_ext <<_ACEOF
24269 /* end confdefs.h. */
24271 /* pthread test headers */
24272 #include <pthread.h>
24273 #if HAVE_PTHREADS < 7
24277 #define NULL (void*)0
24280 static void *task(p)
24283 return (void *) (p == NULL);
24287 int main(argc, argv)
24292 /* pthread test function */
24293 #ifndef PTHREAD_CREATE_DETACHED
24294 #define PTHREAD_CREATE_DETACHED 1
24298 int detach = PTHREAD_CREATE_DETACHED;
24300 #if HAVE_PTHREADS > 4
24301 /* Final pthreads */
24302 pthread_attr_t attr;
24304 status = pthread_attr_init(&attr);
24305 if( status ) return status;
24307 #if HAVE_PTHREADS < 7
24308 status = pthread_attr_setdetachstate(&attr, &detach);
24309 if( status < 0 ) status = errno;
24311 status = pthread_attr_setdetachstate(&attr, detach);
24313 if( status ) return status;
24314 status = pthread_create( &t, &attr, task, NULL );
24315 #if HAVE_PTHREADS < 7
24316 if( status < 0 ) status = errno;
24318 if( status ) return status;
24320 /* Draft 4 pthreads */
24321 status = pthread_create( &t, pthread_attr_default, task, NULL );
24322 if( status ) return errno;
24324 /* give thread a chance to complete */
24325 /* it should remain joinable and hence detachable */
24328 status = pthread_detach( &t );
24329 if( status ) return errno;
24332 #ifdef HAVE_LINUX_THREADS
24333 pthread_kill_other_threads_np();
24341 rm -f conftest$ac_exeext
24342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24343 (eval $ac_link) 2>&5
24345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24346 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24348 (eval $ac_try) 2>&5
24350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24351 (exit $ac_status); }; }; then
24352 ol_cv_pthread_create_works=yes
24354 echo "$as_me: program exited with status $ac_status" >&5
24355 echo "$as_me: failed program was:" >&5
24356 sed 's/^/| /' conftest.$ac_ext >&5
24358 ( exit $ac_status )
24359 ol_cv_pthread_create_works=no
24361 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24364 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
24365 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
24367 if test $ol_cv_pthread_create_works = no ; then
24368 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
24369 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
24370 { (exit 1); exit 1; }; }
24373 ol_replace_broken_yield=no
24375 if test $ol_replace_broken_yield = yes ; then
24377 cat >>confdefs.h <<\_ACEOF
24378 #define REPLACE_BROKEN_YIELD 1
24383 if test $ol_with_yielding_select = auto ; then
24384 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
24385 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
24386 if test "${ol_cv_pthread_select_yields+set}" = set; then
24387 echo $ECHO_N "(cached) $ECHO_C" >&6
24390 if test "$cross_compiling" = yes; then
24391 ol_cv_pthread_select_yields=cross
24393 cat >conftest.$ac_ext <<_ACEOF
24396 cat confdefs.h >>conftest.$ac_ext
24397 cat >>conftest.$ac_ext <<_ACEOF
24398 /* end confdefs.h. */
24400 #include <sys/types.h>
24401 #include <sys/time.h>
24402 #include <unistd.h>
24403 #include <pthread.h>
24405 #define NULL (void*) 0
24408 static int fildes[2];
24410 static void *task(p)
24422 FD_SET(fildes[0], &rfds);
24424 /* we're not interested in any fds */
24425 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
24432 exit(0); /* if we exit here, the select blocked the whole process */
24435 int main(argc, argv)
24441 /* create a pipe to select */
24442 if(pipe(&fildes[0])) {
24447 #ifdef HAVE_PTHREAD_SETCONCURRENCY
24448 (void) pthread_setconcurrency(2);
24450 #ifdef HAVE_THR_SETCONCURRENCY
24451 /* Set Solaris LWP concurrency to 2 */
24452 thr_setconcurrency(2);
24456 #if HAVE_PTHREADS < 6
24457 pthread_create(&t, pthread_attr_default, task, NULL);
24459 pthread_create(&t, NULL, task, NULL);
24462 /* make sure task runs first */
24463 #ifdef HAVE_THR_YIELD
24465 #elif defined( HAVE_SCHED_YIELD )
24467 #elif defined( HAVE_PTHREAD_YIELD )
24474 rm -f conftest$ac_exeext
24475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24476 (eval $ac_link) 2>&5
24478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24479 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24481 (eval $ac_try) 2>&5
24483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24484 (exit $ac_status); }; }; then
24485 ol_cv_pthread_select_yields=no
24487 echo "$as_me: program exited with status $ac_status" >&5
24488 echo "$as_me: failed program was:" >&5
24489 sed 's/^/| /' conftest.$ac_ext >&5
24491 ( exit $ac_status )
24492 ol_cv_pthread_select_yields=yes
24494 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24497 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
24498 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
24500 if test $ol_cv_pthread_select_yields = cross ; then
24501 { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
24502 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
24503 { (exit 1); exit 1; }; }
24506 if test $ol_cv_pthread_select_yields = yes ; then
24507 ol_with_yielding_select=yes
24511 CPPFLAGS="$save_CPPFLAGS"
24514 { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
24515 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
24516 { (exit 1); exit 1; }; }
24520 if test $ol_with_threads = posix ; then
24521 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
24522 echo "$as_me: error: could not locate POSIX Threads" >&2;}
24523 { (exit 1); exit 1; }; }
24528 case $ol_with_threads in auto | yes | mach)
24532 for ac_header in mach/cthreads.h cthreads.h
24534 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24535 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24536 echo "$as_me:$LINENO: checking for $ac_header" >&5
24537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24538 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24539 echo $ECHO_N "(cached) $ECHO_C" >&6
24541 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24542 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24544 # Is the header compilable?
24545 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24546 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24547 cat >conftest.$ac_ext <<_ACEOF
24550 cat confdefs.h >>conftest.$ac_ext
24551 cat >>conftest.$ac_ext <<_ACEOF
24552 /* end confdefs.h. */
24553 $ac_includes_default
24554 #include <$ac_header>
24556 rm -f conftest.$ac_objext
24557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24558 (eval $ac_compile) 2>conftest.er1
24560 grep -v '^ *+' conftest.er1 >conftest.err
24562 cat conftest.err >&5
24563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24564 (exit $ac_status); } &&
24565 { ac_try='test -z "$ac_c_werror_flag"
24566 || test ! -s conftest.err'
24567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24568 (eval $ac_try) 2>&5
24570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24571 (exit $ac_status); }; } &&
24572 { ac_try='test -s conftest.$ac_objext'
24573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24574 (eval $ac_try) 2>&5
24576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24577 (exit $ac_status); }; }; then
24578 ac_header_compiler=yes
24580 echo "$as_me: failed program was:" >&5
24581 sed 's/^/| /' conftest.$ac_ext >&5
24583 ac_header_compiler=no
24585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24586 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24587 echo "${ECHO_T}$ac_header_compiler" >&6
24589 # Is the header present?
24590 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24591 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24592 cat >conftest.$ac_ext <<_ACEOF
24595 cat confdefs.h >>conftest.$ac_ext
24596 cat >>conftest.$ac_ext <<_ACEOF
24597 /* end confdefs.h. */
24598 #include <$ac_header>
24600 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24601 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24603 grep -v '^ *+' conftest.er1 >conftest.err
24605 cat conftest.err >&5
24606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24607 (exit $ac_status); } >/dev/null; then
24608 if test -s conftest.err; then
24609 ac_cpp_err=$ac_c_preproc_warn_flag
24610 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24617 if test -z "$ac_cpp_err"; then
24618 ac_header_preproc=yes
24620 echo "$as_me: failed program was:" >&5
24621 sed 's/^/| /' conftest.$ac_ext >&5
24623 ac_header_preproc=no
24625 rm -f conftest.err conftest.$ac_ext
24626 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24627 echo "${ECHO_T}$ac_header_preproc" >&6
24629 # So? What about this header?
24630 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24632 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24633 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24635 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24636 ac_header_preproc=yes
24639 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24640 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24641 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24642 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24643 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24644 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24645 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24646 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24648 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24649 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24650 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24653 ## --------------------------------------------- ##
24654 ## Report this to <http://www.openldap.org/its/> ##
24655 ## --------------------------------------------- ##
24658 sed "s/^/$as_me: WARNING: /" >&2
24661 echo "$as_me:$LINENO: checking for $ac_header" >&5
24662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24663 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24664 echo $ECHO_N "(cached) $ECHO_C" >&6
24666 eval "$as_ac_Header=\$ac_header_preproc"
24668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24669 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24672 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24673 cat >>confdefs.h <<_ACEOF
24674 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24681 if test $ac_cv_header_mach_cthreads_h = yes ; then
24682 ol_with_threads=found
24684 echo "$as_me:$LINENO: checking for cthread_fork" >&5
24685 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
24686 if test "${ac_cv_func_cthread_fork+set}" = set; then
24687 echo $ECHO_N "(cached) $ECHO_C" >&6
24689 cat >conftest.$ac_ext <<_ACEOF
24692 cat confdefs.h >>conftest.$ac_ext
24693 cat >>conftest.$ac_ext <<_ACEOF
24694 /* end confdefs.h. */
24695 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
24696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24697 #define cthread_fork innocuous_cthread_fork
24699 /* System header to define __stub macros and hopefully few prototypes,
24700 which can conflict with char cthread_fork (); below.
24701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24702 <limits.h> exists even on freestanding compilers. */
24705 # include <limits.h>
24707 # include <assert.h>
24710 #undef cthread_fork
24712 /* Override any gcc2 internal prototype to avoid an error. */
24717 /* We use char because int might match the return type of a gcc2
24718 builtin and then its argument prototype would still apply. */
24719 char cthread_fork ();
24720 /* The GNU C library defines this for functions which it implements
24721 to always fail with ENOSYS. Some functions are actually named
24722 something starting with __ and the normal name is an alias. */
24723 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
24726 char (*f) () = cthread_fork;
24735 return f != cthread_fork;
24740 rm -f conftest.$ac_objext conftest$ac_exeext
24741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24742 (eval $ac_link) 2>conftest.er1
24744 grep -v '^ *+' conftest.er1 >conftest.err
24746 cat conftest.err >&5
24747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24748 (exit $ac_status); } &&
24749 { ac_try='test -z "$ac_c_werror_flag"
24750 || test ! -s conftest.err'
24751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24752 (eval $ac_try) 2>&5
24754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24755 (exit $ac_status); }; } &&
24756 { ac_try='test -s conftest$ac_exeext'
24757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24758 (eval $ac_try) 2>&5
24760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24761 (exit $ac_status); }; }; then
24762 ac_cv_func_cthread_fork=yes
24764 echo "$as_me: failed program was:" >&5
24765 sed 's/^/| /' conftest.$ac_ext >&5
24767 ac_cv_func_cthread_fork=no
24769 rm -f conftest.err conftest.$ac_objext \
24770 conftest$ac_exeext conftest.$ac_ext
24772 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
24773 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
24774 if test $ac_cv_func_cthread_fork = yes; then
24775 ol_link_threads=yes
24779 if test $ol_link_threads = no ; then
24780 echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
24781 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
24782 if test "${ol_cv_cthread_all_load+set}" = set; then
24783 echo $ECHO_N "(cached) $ECHO_C" >&6
24787 LIBS="-all_load $LIBS"
24788 cat >conftest.$ac_ext <<_ACEOF
24791 cat confdefs.h >>conftest.$ac_ext
24792 cat >>conftest.$ac_ext <<_ACEOF
24793 /* end confdefs.h. */
24794 #include <mach/cthreads.h>
24799 cthread_fork((void *)0, (void *)0);
24805 rm -f conftest.$ac_objext conftest$ac_exeext
24806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24807 (eval $ac_link) 2>conftest.er1
24809 grep -v '^ *+' conftest.er1 >conftest.err
24811 cat conftest.err >&5
24812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24813 (exit $ac_status); } &&
24814 { ac_try='test -z "$ac_c_werror_flag"
24815 || test ! -s conftest.err'
24816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24817 (eval $ac_try) 2>&5
24819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24820 (exit $ac_status); }; } &&
24821 { ac_try='test -s conftest$ac_exeext'
24822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24823 (eval $ac_try) 2>&5
24825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24826 (exit $ac_status); }; }; then
24827 ol_cv_cthread_all_load=yes
24829 echo "$as_me: failed program was:" >&5
24830 sed 's/^/| /' conftest.$ac_ext >&5
24832 ol_cv_cthread_all_load=no
24834 rm -f conftest.err conftest.$ac_objext \
24835 conftest$ac_exeext conftest.$ac_ext
24839 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
24840 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
24842 if test $ol_cv_cthread_all_load = yes ; then
24843 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
24844 ol_link_threads=mach
24845 ol_with_threads=found
24849 elif test $ac_cv_header_cthreads_h = yes ; then
24851 ol_with_threads=found
24854 LIBS="$LIBS -lthreads"
24855 echo "$as_me:$LINENO: checking for cthread_fork" >&5
24856 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
24857 if test "${ac_cv_func_cthread_fork+set}" = set; then
24858 echo $ECHO_N "(cached) $ECHO_C" >&6
24860 cat >conftest.$ac_ext <<_ACEOF
24863 cat confdefs.h >>conftest.$ac_ext
24864 cat >>conftest.$ac_ext <<_ACEOF
24865 /* end confdefs.h. */
24866 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
24867 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24868 #define cthread_fork innocuous_cthread_fork
24870 /* System header to define __stub macros and hopefully few prototypes,
24871 which can conflict with char cthread_fork (); below.
24872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24873 <limits.h> exists even on freestanding compilers. */
24876 # include <limits.h>
24878 # include <assert.h>
24881 #undef cthread_fork
24883 /* Override any gcc2 internal prototype to avoid an error. */
24888 /* We use char because int might match the return type of a gcc2
24889 builtin and then its argument prototype would still apply. */
24890 char cthread_fork ();
24891 /* The GNU C library defines this for functions which it implements
24892 to always fail with ENOSYS. Some functions are actually named
24893 something starting with __ and the normal name is an alias. */
24894 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
24897 char (*f) () = cthread_fork;
24906 return f != cthread_fork;
24911 rm -f conftest.$ac_objext conftest$ac_exeext
24912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24913 (eval $ac_link) 2>conftest.er1
24915 grep -v '^ *+' conftest.er1 >conftest.err
24917 cat conftest.err >&5
24918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24919 (exit $ac_status); } &&
24920 { ac_try='test -z "$ac_c_werror_flag"
24921 || test ! -s conftest.err'
24922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24923 (eval $ac_try) 2>&5
24925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24926 (exit $ac_status); }; } &&
24927 { ac_try='test -s conftest$ac_exeext'
24928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24929 (eval $ac_try) 2>&5
24931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24932 (exit $ac_status); }; }; then
24933 ac_cv_func_cthread_fork=yes
24935 echo "$as_me: failed program was:" >&5
24936 sed 's/^/| /' conftest.$ac_ext >&5
24938 ac_cv_func_cthread_fork=no
24940 rm -f conftest.err conftest.$ac_objext \
24941 conftest$ac_exeext conftest.$ac_ext
24943 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
24944 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
24945 if test $ac_cv_func_cthread_fork = yes; then
24946 ol_link_threads=yes
24951 if test $ol_link_threads = yes ; then
24952 LTHREAD_LIBS="-lthreads"
24953 ol_link_threads=mach
24954 ol_with_threads=found
24956 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
24957 echo "$as_me: error: could not link with Mach CThreads" >&2;}
24958 { (exit 1); exit 1; }; }
24961 elif test $ol_with_threads = mach ; then
24962 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
24963 echo "$as_me: error: could not locate Mach CThreads" >&2;}
24964 { (exit 1); exit 1; }; }
24967 if test $ol_link_threads = mach ; then
24969 cat >>confdefs.h <<\_ACEOF
24970 #define HAVE_MACH_CTHREADS 1
24973 elif test $ol_with_threads = found ; then
24974 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
24975 echo "$as_me: error: could not link with Mach CThreads" >&2;}
24976 { (exit 1); exit 1; }; }
24981 case $ol_with_threads in auto | yes | pth)
24984 for ac_header in pth.h
24986 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24987 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24988 echo "$as_me:$LINENO: checking for $ac_header" >&5
24989 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24991 echo $ECHO_N "(cached) $ECHO_C" >&6
24993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24994 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24996 # Is the header compilable?
24997 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24998 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24999 cat >conftest.$ac_ext <<_ACEOF
25002 cat confdefs.h >>conftest.$ac_ext
25003 cat >>conftest.$ac_ext <<_ACEOF
25004 /* end confdefs.h. */
25005 $ac_includes_default
25006 #include <$ac_header>
25008 rm -f conftest.$ac_objext
25009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25010 (eval $ac_compile) 2>conftest.er1
25012 grep -v '^ *+' conftest.er1 >conftest.err
25014 cat conftest.err >&5
25015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25016 (exit $ac_status); } &&
25017 { ac_try='test -z "$ac_c_werror_flag"
25018 || test ! -s conftest.err'
25019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25020 (eval $ac_try) 2>&5
25022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25023 (exit $ac_status); }; } &&
25024 { ac_try='test -s conftest.$ac_objext'
25025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25026 (eval $ac_try) 2>&5
25028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25029 (exit $ac_status); }; }; then
25030 ac_header_compiler=yes
25032 echo "$as_me: failed program was:" >&5
25033 sed 's/^/| /' conftest.$ac_ext >&5
25035 ac_header_compiler=no
25037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25038 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25039 echo "${ECHO_T}$ac_header_compiler" >&6
25041 # Is the header present?
25042 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25043 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25044 cat >conftest.$ac_ext <<_ACEOF
25047 cat confdefs.h >>conftest.$ac_ext
25048 cat >>conftest.$ac_ext <<_ACEOF
25049 /* end confdefs.h. */
25050 #include <$ac_header>
25052 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25053 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25055 grep -v '^ *+' conftest.er1 >conftest.err
25057 cat conftest.err >&5
25058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25059 (exit $ac_status); } >/dev/null; then
25060 if test -s conftest.err; then
25061 ac_cpp_err=$ac_c_preproc_warn_flag
25062 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25069 if test -z "$ac_cpp_err"; then
25070 ac_header_preproc=yes
25072 echo "$as_me: failed program was:" >&5
25073 sed 's/^/| /' conftest.$ac_ext >&5
25075 ac_header_preproc=no
25077 rm -f conftest.err conftest.$ac_ext
25078 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25079 echo "${ECHO_T}$ac_header_preproc" >&6
25081 # So? What about this header?
25082 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25084 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25085 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25086 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25087 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25088 ac_header_preproc=yes
25091 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25092 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25093 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25094 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25095 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25096 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25097 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25098 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25100 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25101 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25102 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25105 ## --------------------------------------------- ##
25106 ## Report this to <http://www.openldap.org/its/> ##
25107 ## --------------------------------------------- ##
25110 sed "s/^/$as_me: WARNING: /" >&2
25113 echo "$as_me:$LINENO: checking for $ac_header" >&5
25114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25115 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25116 echo $ECHO_N "(cached) $ECHO_C" >&6
25118 eval "$as_ac_Header=\$ac_header_preproc"
25120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25121 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25124 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25125 cat >>confdefs.h <<_ACEOF
25126 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25134 if test $ac_cv_header_pth_h = yes ; then
25135 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
25136 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
25137 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
25138 echo $ECHO_N "(cached) $ECHO_C" >&6
25140 ac_check_lib_save_LIBS=$LIBS
25142 cat >conftest.$ac_ext <<_ACEOF
25145 cat confdefs.h >>conftest.$ac_ext
25146 cat >>conftest.$ac_ext <<_ACEOF
25147 /* end confdefs.h. */
25149 /* Override any gcc2 internal prototype to avoid an error. */
25153 /* We use char because int might match the return type of a gcc2
25154 builtin and then its argument prototype would still apply. */
25155 char pth_version ();
25164 rm -f conftest.$ac_objext conftest$ac_exeext
25165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25166 (eval $ac_link) 2>conftest.er1
25168 grep -v '^ *+' conftest.er1 >conftest.err
25170 cat conftest.err >&5
25171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25172 (exit $ac_status); } &&
25173 { ac_try='test -z "$ac_c_werror_flag"
25174 || test ! -s conftest.err'
25175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25176 (eval $ac_try) 2>&5
25178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25179 (exit $ac_status); }; } &&
25180 { ac_try='test -s conftest$ac_exeext'
25181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25182 (eval $ac_try) 2>&5
25184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25185 (exit $ac_status); }; }; then
25186 ac_cv_lib_pth_pth_version=yes
25188 echo "$as_me: failed program was:" >&5
25189 sed 's/^/| /' conftest.$ac_ext >&5
25191 ac_cv_lib_pth_pth_version=no
25193 rm -f conftest.err conftest.$ac_objext \
25194 conftest$ac_exeext conftest.$ac_ext
25195 LIBS=$ac_check_lib_save_LIBS
25197 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
25198 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
25199 if test $ac_cv_lib_pth_pth_version = yes; then
25206 if test $have_pth = yes ; then
25208 cat >>confdefs.h <<\_ACEOF
25209 #define HAVE_GNU_PTH 1
25212 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
25213 ol_link_threads=pth
25214 ol_with_threads=found
25216 if test $ol_with_yielding_select = auto ; then
25217 ol_with_yielding_select=yes
25224 case $ol_with_threads in auto | yes | lwp)
25228 for ac_header in thread.h synch.h
25230 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25232 echo "$as_me:$LINENO: checking for $ac_header" >&5
25233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25235 echo $ECHO_N "(cached) $ECHO_C" >&6
25237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25238 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25240 # Is the header compilable?
25241 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25242 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25243 cat >conftest.$ac_ext <<_ACEOF
25246 cat confdefs.h >>conftest.$ac_ext
25247 cat >>conftest.$ac_ext <<_ACEOF
25248 /* end confdefs.h. */
25249 $ac_includes_default
25250 #include <$ac_header>
25252 rm -f conftest.$ac_objext
25253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25254 (eval $ac_compile) 2>conftest.er1
25256 grep -v '^ *+' conftest.er1 >conftest.err
25258 cat conftest.err >&5
25259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25260 (exit $ac_status); } &&
25261 { ac_try='test -z "$ac_c_werror_flag"
25262 || test ! -s conftest.err'
25263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25264 (eval $ac_try) 2>&5
25266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25267 (exit $ac_status); }; } &&
25268 { ac_try='test -s conftest.$ac_objext'
25269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25270 (eval $ac_try) 2>&5
25272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25273 (exit $ac_status); }; }; then
25274 ac_header_compiler=yes
25276 echo "$as_me: failed program was:" >&5
25277 sed 's/^/| /' conftest.$ac_ext >&5
25279 ac_header_compiler=no
25281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25282 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25283 echo "${ECHO_T}$ac_header_compiler" >&6
25285 # Is the header present?
25286 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25287 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25288 cat >conftest.$ac_ext <<_ACEOF
25291 cat confdefs.h >>conftest.$ac_ext
25292 cat >>conftest.$ac_ext <<_ACEOF
25293 /* end confdefs.h. */
25294 #include <$ac_header>
25296 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25297 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25299 grep -v '^ *+' conftest.er1 >conftest.err
25301 cat conftest.err >&5
25302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25303 (exit $ac_status); } >/dev/null; then
25304 if test -s conftest.err; then
25305 ac_cpp_err=$ac_c_preproc_warn_flag
25306 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25313 if test -z "$ac_cpp_err"; then
25314 ac_header_preproc=yes
25316 echo "$as_me: failed program was:" >&5
25317 sed 's/^/| /' conftest.$ac_ext >&5
25319 ac_header_preproc=no
25321 rm -f conftest.err conftest.$ac_ext
25322 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25323 echo "${ECHO_T}$ac_header_preproc" >&6
25325 # So? What about this header?
25326 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25328 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25329 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25331 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25332 ac_header_preproc=yes
25335 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25336 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25337 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25338 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25339 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25340 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25341 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25342 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25343 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25344 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25345 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25346 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25349 ## --------------------------------------------- ##
25350 ## Report this to <http://www.openldap.org/its/> ##
25351 ## --------------------------------------------- ##
25354 sed "s/^/$as_me: WARNING: /" >&2
25357 echo "$as_me:$LINENO: checking for $ac_header" >&5
25358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25359 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25360 echo $ECHO_N "(cached) $ECHO_C" >&6
25362 eval "$as_ac_Header=\$ac_header_preproc"
25364 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25365 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25368 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25369 cat >>confdefs.h <<_ACEOF
25370 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25377 if test $ac_cv_header_thread_h = yes &&
25378 test $ac_cv_header_synch_h = yes ; then
25379 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
25380 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
25381 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
25382 echo $ECHO_N "(cached) $ECHO_C" >&6
25384 ac_check_lib_save_LIBS=$LIBS
25385 LIBS="-lthread $LIBS"
25386 cat >conftest.$ac_ext <<_ACEOF
25389 cat confdefs.h >>conftest.$ac_ext
25390 cat >>conftest.$ac_ext <<_ACEOF
25391 /* end confdefs.h. */
25393 /* Override any gcc2 internal prototype to avoid an error. */
25397 /* We use char because int might match the return type of a gcc2
25398 builtin and then its argument prototype would still apply. */
25399 char thr_create ();
25408 rm -f conftest.$ac_objext conftest$ac_exeext
25409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25410 (eval $ac_link) 2>conftest.er1
25412 grep -v '^ *+' conftest.er1 >conftest.err
25414 cat conftest.err >&5
25415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25416 (exit $ac_status); } &&
25417 { ac_try='test -z "$ac_c_werror_flag"
25418 || test ! -s conftest.err'
25419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25420 (eval $ac_try) 2>&5
25422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25423 (exit $ac_status); }; } &&
25424 { ac_try='test -s conftest$ac_exeext'
25425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25426 (eval $ac_try) 2>&5
25428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25429 (exit $ac_status); }; }; then
25430 ac_cv_lib_thread_thr_create=yes
25432 echo "$as_me: failed program was:" >&5
25433 sed 's/^/| /' conftest.$ac_ext >&5
25435 ac_cv_lib_thread_thr_create=no
25437 rm -f conftest.err conftest.$ac_objext \
25438 conftest$ac_exeext conftest.$ac_ext
25439 LIBS=$ac_check_lib_save_LIBS
25441 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
25442 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
25443 if test $ac_cv_lib_thread_thr_create = yes; then
25450 if test $have_thr = yes ; then
25452 cat >>confdefs.h <<\_ACEOF
25456 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
25457 ol_link_threads=thr
25459 if test $ol_with_yielding_select = auto ; then
25460 ol_with_yielding_select=yes
25466 thr_setconcurrency \
25467 thr_getconcurrency \
25470 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25471 echo "$as_me:$LINENO: checking for $ac_func" >&5
25472 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25473 if eval "test \"\${$as_ac_var+set}\" = set"; then
25474 echo $ECHO_N "(cached) $ECHO_C" >&6
25476 cat >conftest.$ac_ext <<_ACEOF
25479 cat confdefs.h >>conftest.$ac_ext
25480 cat >>conftest.$ac_ext <<_ACEOF
25481 /* end confdefs.h. */
25482 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25484 #define $ac_func innocuous_$ac_func
25486 /* System header to define __stub macros and hopefully few prototypes,
25487 which can conflict with char $ac_func (); below.
25488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25489 <limits.h> exists even on freestanding compilers. */
25492 # include <limits.h>
25494 # include <assert.h>
25499 /* Override any gcc2 internal prototype to avoid an error. */
25504 /* We use char because int might match the return type of a gcc2
25505 builtin and then its argument prototype would still apply. */
25507 /* The GNU C library defines this for functions which it implements
25508 to always fail with ENOSYS. Some functions are actually named
25509 something starting with __ and the normal name is an alias. */
25510 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25513 char (*f) () = $ac_func;
25522 return f != $ac_func;
25527 rm -f conftest.$ac_objext conftest$ac_exeext
25528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25529 (eval $ac_link) 2>conftest.er1
25531 grep -v '^ *+' conftest.er1 >conftest.err
25533 cat conftest.err >&5
25534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25535 (exit $ac_status); } &&
25536 { ac_try='test -z "$ac_c_werror_flag"
25537 || test ! -s conftest.err'
25538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25539 (eval $ac_try) 2>&5
25541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25542 (exit $ac_status); }; } &&
25543 { ac_try='test -s conftest$ac_exeext'
25544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25545 (eval $ac_try) 2>&5
25547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25548 (exit $ac_status); }; }; then
25549 eval "$as_ac_var=yes"
25551 echo "$as_me: failed program was:" >&5
25552 sed 's/^/| /' conftest.$ac_ext >&5
25554 eval "$as_ac_var=no"
25556 rm -f conftest.err conftest.$ac_objext \
25557 conftest$ac_exeext conftest.$ac_ext
25559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25560 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25561 if test `eval echo '${'$as_ac_var'}'` = yes; then
25562 cat >>confdefs.h <<_ACEOF
25563 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25573 for ac_header in lwp/lwp.h
25575 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25576 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25577 echo "$as_me:$LINENO: checking for $ac_header" >&5
25578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25580 echo $ECHO_N "(cached) $ECHO_C" >&6
25582 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25583 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25585 # Is the header compilable?
25586 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25587 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25588 cat >conftest.$ac_ext <<_ACEOF
25591 cat confdefs.h >>conftest.$ac_ext
25592 cat >>conftest.$ac_ext <<_ACEOF
25593 /* end confdefs.h. */
25594 $ac_includes_default
25595 #include <$ac_header>
25597 rm -f conftest.$ac_objext
25598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25599 (eval $ac_compile) 2>conftest.er1
25601 grep -v '^ *+' conftest.er1 >conftest.err
25603 cat conftest.err >&5
25604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25605 (exit $ac_status); } &&
25606 { ac_try='test -z "$ac_c_werror_flag"
25607 || test ! -s conftest.err'
25608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25609 (eval $ac_try) 2>&5
25611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25612 (exit $ac_status); }; } &&
25613 { ac_try='test -s conftest.$ac_objext'
25614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25615 (eval $ac_try) 2>&5
25617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25618 (exit $ac_status); }; }; then
25619 ac_header_compiler=yes
25621 echo "$as_me: failed program was:" >&5
25622 sed 's/^/| /' conftest.$ac_ext >&5
25624 ac_header_compiler=no
25626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25627 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25628 echo "${ECHO_T}$ac_header_compiler" >&6
25630 # Is the header present?
25631 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25632 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25633 cat >conftest.$ac_ext <<_ACEOF
25636 cat confdefs.h >>conftest.$ac_ext
25637 cat >>conftest.$ac_ext <<_ACEOF
25638 /* end confdefs.h. */
25639 #include <$ac_header>
25641 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25642 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25644 grep -v '^ *+' conftest.er1 >conftest.err
25646 cat conftest.err >&5
25647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25648 (exit $ac_status); } >/dev/null; then
25649 if test -s conftest.err; then
25650 ac_cpp_err=$ac_c_preproc_warn_flag
25651 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25658 if test -z "$ac_cpp_err"; then
25659 ac_header_preproc=yes
25661 echo "$as_me: failed program was:" >&5
25662 sed 's/^/| /' conftest.$ac_ext >&5
25664 ac_header_preproc=no
25666 rm -f conftest.err conftest.$ac_ext
25667 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25668 echo "${ECHO_T}$ac_header_preproc" >&6
25670 # So? What about this header?
25671 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25673 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25674 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25675 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25676 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25677 ac_header_preproc=yes
25680 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25681 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25682 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25683 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25684 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25685 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25686 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25687 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25689 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25690 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25691 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25694 ## --------------------------------------------- ##
25695 ## Report this to <http://www.openldap.org/its/> ##
25696 ## --------------------------------------------- ##
25699 sed "s/^/$as_me: WARNING: /" >&2
25702 echo "$as_me:$LINENO: checking for $ac_header" >&5
25703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25704 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25705 echo $ECHO_N "(cached) $ECHO_C" >&6
25707 eval "$as_ac_Header=\$ac_header_preproc"
25709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25710 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25713 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25714 cat >>confdefs.h <<_ACEOF
25715 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25722 if test $ac_cv_header_lwp_lwp_h = yes ; then
25723 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
25724 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
25725 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
25726 echo $ECHO_N "(cached) $ECHO_C" >&6
25728 ac_check_lib_save_LIBS=$LIBS
25730 cat >conftest.$ac_ext <<_ACEOF
25733 cat confdefs.h >>conftest.$ac_ext
25734 cat >>conftest.$ac_ext <<_ACEOF
25735 /* end confdefs.h. */
25737 /* Override any gcc2 internal prototype to avoid an error. */
25741 /* We use char because int might match the return type of a gcc2
25742 builtin and then its argument prototype would still apply. */
25743 char lwp_create ();
25752 rm -f conftest.$ac_objext conftest$ac_exeext
25753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25754 (eval $ac_link) 2>conftest.er1
25756 grep -v '^ *+' conftest.er1 >conftest.err
25758 cat conftest.err >&5
25759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25760 (exit $ac_status); } &&
25761 { ac_try='test -z "$ac_c_werror_flag"
25762 || test ! -s conftest.err'
25763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25764 (eval $ac_try) 2>&5
25766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25767 (exit $ac_status); }; } &&
25768 { ac_try='test -s conftest$ac_exeext'
25769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25770 (eval $ac_try) 2>&5
25772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25773 (exit $ac_status); }; }; then
25774 ac_cv_lib_lwp_lwp_create=yes
25776 echo "$as_me: failed program was:" >&5
25777 sed 's/^/| /' conftest.$ac_ext >&5
25779 ac_cv_lib_lwp_lwp_create=no
25781 rm -f conftest.err conftest.$ac_objext \
25782 conftest$ac_exeext conftest.$ac_ext
25783 LIBS=$ac_check_lib_save_LIBS
25785 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
25786 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
25787 if test $ac_cv_lib_lwp_lwp_create = yes; then
25794 if test $have_lwp = yes ; then
25796 cat >>confdefs.h <<\_ACEOF
25800 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
25801 ol_link_threads=lwp
25803 if test $ol_with_yielding_select = auto ; then
25804 ol_with_yielding_select=no
25811 if test $ol_with_yielding_select = yes ; then
25813 cat >>confdefs.h <<\_ACEOF
25814 #define HAVE_YIELDING_SELECT 1
25819 if test $ol_with_threads = manual ; then
25820 ol_link_threads=yes
25822 { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
25823 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
25827 for ac_header in pthread.h sched.h
25829 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25830 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25831 echo "$as_me:$LINENO: checking for $ac_header" >&5
25832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25834 echo $ECHO_N "(cached) $ECHO_C" >&6
25836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25837 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25839 # Is the header compilable?
25840 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25841 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25842 cat >conftest.$ac_ext <<_ACEOF
25845 cat confdefs.h >>conftest.$ac_ext
25846 cat >>conftest.$ac_ext <<_ACEOF
25847 /* end confdefs.h. */
25848 $ac_includes_default
25849 #include <$ac_header>
25851 rm -f conftest.$ac_objext
25852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25853 (eval $ac_compile) 2>conftest.er1
25855 grep -v '^ *+' conftest.er1 >conftest.err
25857 cat conftest.err >&5
25858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25859 (exit $ac_status); } &&
25860 { ac_try='test -z "$ac_c_werror_flag"
25861 || test ! -s conftest.err'
25862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25863 (eval $ac_try) 2>&5
25865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25866 (exit $ac_status); }; } &&
25867 { ac_try='test -s conftest.$ac_objext'
25868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25869 (eval $ac_try) 2>&5
25871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25872 (exit $ac_status); }; }; then
25873 ac_header_compiler=yes
25875 echo "$as_me: failed program was:" >&5
25876 sed 's/^/| /' conftest.$ac_ext >&5
25878 ac_header_compiler=no
25880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25881 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25882 echo "${ECHO_T}$ac_header_compiler" >&6
25884 # Is the header present?
25885 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25886 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25887 cat >conftest.$ac_ext <<_ACEOF
25890 cat confdefs.h >>conftest.$ac_ext
25891 cat >>conftest.$ac_ext <<_ACEOF
25892 /* end confdefs.h. */
25893 #include <$ac_header>
25895 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25896 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25898 grep -v '^ *+' conftest.er1 >conftest.err
25900 cat conftest.err >&5
25901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25902 (exit $ac_status); } >/dev/null; then
25903 if test -s conftest.err; then
25904 ac_cpp_err=$ac_c_preproc_warn_flag
25905 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25912 if test -z "$ac_cpp_err"; then
25913 ac_header_preproc=yes
25915 echo "$as_me: failed program was:" >&5
25916 sed 's/^/| /' conftest.$ac_ext >&5
25918 ac_header_preproc=no
25920 rm -f conftest.err conftest.$ac_ext
25921 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25922 echo "${ECHO_T}$ac_header_preproc" >&6
25924 # So? What about this header?
25925 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25927 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25928 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25929 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25930 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25931 ac_header_preproc=yes
25934 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25935 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25936 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25937 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25938 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25939 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25940 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25941 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25942 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25943 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25944 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25945 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25948 ## --------------------------------------------- ##
25949 ## Report this to <http://www.openldap.org/its/> ##
25950 ## --------------------------------------------- ##
25953 sed "s/^/$as_me: WARNING: /" >&2
25956 echo "$as_me:$LINENO: checking for $ac_header" >&5
25957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25958 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25959 echo $ECHO_N "(cached) $ECHO_C" >&6
25961 eval "$as_ac_Header=\$ac_header_preproc"
25963 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25964 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25967 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25968 cat >>confdefs.h <<_ACEOF
25969 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25978 for ac_func in sched_yield pthread_yield
25980 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25981 echo "$as_me:$LINENO: checking for $ac_func" >&5
25982 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25983 if eval "test \"\${$as_ac_var+set}\" = set"; then
25984 echo $ECHO_N "(cached) $ECHO_C" >&6
25986 cat >conftest.$ac_ext <<_ACEOF
25989 cat confdefs.h >>conftest.$ac_ext
25990 cat >>conftest.$ac_ext <<_ACEOF
25991 /* end confdefs.h. */
25992 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25994 #define $ac_func innocuous_$ac_func
25996 /* System header to define __stub macros and hopefully few prototypes,
25997 which can conflict with char $ac_func (); below.
25998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25999 <limits.h> exists even on freestanding compilers. */
26002 # include <limits.h>
26004 # include <assert.h>
26009 /* Override any gcc2 internal prototype to avoid an error. */
26014 /* We use char because int might match the return type of a gcc2
26015 builtin and then its argument prototype would still apply. */
26017 /* The GNU C library defines this for functions which it implements
26018 to always fail with ENOSYS. Some functions are actually named
26019 something starting with __ and the normal name is an alias. */
26020 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26023 char (*f) () = $ac_func;
26032 return f != $ac_func;
26037 rm -f conftest.$ac_objext conftest$ac_exeext
26038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26039 (eval $ac_link) 2>conftest.er1
26041 grep -v '^ *+' conftest.er1 >conftest.err
26043 cat conftest.err >&5
26044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26045 (exit $ac_status); } &&
26046 { ac_try='test -z "$ac_c_werror_flag"
26047 || test ! -s conftest.err'
26048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26049 (eval $ac_try) 2>&5
26051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26052 (exit $ac_status); }; } &&
26053 { ac_try='test -s conftest$ac_exeext'
26054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26055 (eval $ac_try) 2>&5
26057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26058 (exit $ac_status); }; }; then
26059 eval "$as_ac_var=yes"
26061 echo "$as_me: failed program was:" >&5
26062 sed 's/^/| /' conftest.$ac_ext >&5
26064 eval "$as_ac_var=no"
26066 rm -f conftest.err conftest.$ac_objext \
26067 conftest$ac_exeext conftest.$ac_ext
26069 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26070 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26071 if test `eval echo '${'$as_ac_var'}'` = yes; then
26072 cat >>confdefs.h <<_ACEOF
26073 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26080 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26081 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
26082 if test "${ol_cv_header_linux_threads+set}" = set; then
26083 echo $ECHO_N "(cached) $ECHO_C" >&6
26085 cat >conftest.$ac_ext <<_ACEOF
26088 cat confdefs.h >>conftest.$ac_ext
26089 cat >>conftest.$ac_ext <<_ACEOF
26090 /* end confdefs.h. */
26091 #include <pthread.h>
26093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26094 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26095 ol_cv_header_linux_threads=yes
26097 ol_cv_header_linux_threads=no
26103 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26104 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
26105 if test $ol_cv_header_linux_threads = yes; then
26107 cat >>confdefs.h <<\_ACEOF
26108 #define HAVE_LINUX_THREADS 1
26115 for ac_header in mach/cthreads.h
26117 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26119 echo "$as_me:$LINENO: checking for $ac_header" >&5
26120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26121 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26122 echo $ECHO_N "(cached) $ECHO_C" >&6
26124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26125 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26127 # Is the header compilable?
26128 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26129 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26130 cat >conftest.$ac_ext <<_ACEOF
26133 cat confdefs.h >>conftest.$ac_ext
26134 cat >>conftest.$ac_ext <<_ACEOF
26135 /* end confdefs.h. */
26136 $ac_includes_default
26137 #include <$ac_header>
26139 rm -f conftest.$ac_objext
26140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26141 (eval $ac_compile) 2>conftest.er1
26143 grep -v '^ *+' conftest.er1 >conftest.err
26145 cat conftest.err >&5
26146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26147 (exit $ac_status); } &&
26148 { ac_try='test -z "$ac_c_werror_flag"
26149 || test ! -s conftest.err'
26150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26151 (eval $ac_try) 2>&5
26153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26154 (exit $ac_status); }; } &&
26155 { ac_try='test -s conftest.$ac_objext'
26156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26157 (eval $ac_try) 2>&5
26159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26160 (exit $ac_status); }; }; then
26161 ac_header_compiler=yes
26163 echo "$as_me: failed program was:" >&5
26164 sed 's/^/| /' conftest.$ac_ext >&5
26166 ac_header_compiler=no
26168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26169 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26170 echo "${ECHO_T}$ac_header_compiler" >&6
26172 # Is the header present?
26173 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26174 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26175 cat >conftest.$ac_ext <<_ACEOF
26178 cat confdefs.h >>conftest.$ac_ext
26179 cat >>conftest.$ac_ext <<_ACEOF
26180 /* end confdefs.h. */
26181 #include <$ac_header>
26183 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26184 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26186 grep -v '^ *+' conftest.er1 >conftest.err
26188 cat conftest.err >&5
26189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26190 (exit $ac_status); } >/dev/null; then
26191 if test -s conftest.err; then
26192 ac_cpp_err=$ac_c_preproc_warn_flag
26193 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26200 if test -z "$ac_cpp_err"; then
26201 ac_header_preproc=yes
26203 echo "$as_me: failed program was:" >&5
26204 sed 's/^/| /' conftest.$ac_ext >&5
26206 ac_header_preproc=no
26208 rm -f conftest.err conftest.$ac_ext
26209 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26210 echo "${ECHO_T}$ac_header_preproc" >&6
26212 # So? What about this header?
26213 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26215 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26216 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26217 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26218 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26219 ac_header_preproc=yes
26222 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26223 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26224 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26225 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26226 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26227 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26228 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26229 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26230 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26231 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26232 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26233 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26236 ## --------------------------------------------- ##
26237 ## Report this to <http://www.openldap.org/its/> ##
26238 ## --------------------------------------------- ##
26241 sed "s/^/$as_me: WARNING: /" >&2
26244 echo "$as_me:$LINENO: checking for $ac_header" >&5
26245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26247 echo $ECHO_N "(cached) $ECHO_C" >&6
26249 eval "$as_ac_Header=\$ac_header_preproc"
26251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26252 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26255 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26256 cat >>confdefs.h <<_ACEOF
26257 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26265 for ac_header in lwp/lwp.h
26267 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26268 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26269 echo "$as_me:$LINENO: checking for $ac_header" >&5
26270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26271 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26272 echo $ECHO_N "(cached) $ECHO_C" >&6
26274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26275 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26277 # Is the header compilable?
26278 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26279 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26280 cat >conftest.$ac_ext <<_ACEOF
26283 cat confdefs.h >>conftest.$ac_ext
26284 cat >>conftest.$ac_ext <<_ACEOF
26285 /* end confdefs.h. */
26286 $ac_includes_default
26287 #include <$ac_header>
26289 rm -f conftest.$ac_objext
26290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26291 (eval $ac_compile) 2>conftest.er1
26293 grep -v '^ *+' conftest.er1 >conftest.err
26295 cat conftest.err >&5
26296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26297 (exit $ac_status); } &&
26298 { ac_try='test -z "$ac_c_werror_flag"
26299 || test ! -s conftest.err'
26300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26301 (eval $ac_try) 2>&5
26303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26304 (exit $ac_status); }; } &&
26305 { ac_try='test -s conftest.$ac_objext'
26306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26307 (eval $ac_try) 2>&5
26309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26310 (exit $ac_status); }; }; then
26311 ac_header_compiler=yes
26313 echo "$as_me: failed program was:" >&5
26314 sed 's/^/| /' conftest.$ac_ext >&5
26316 ac_header_compiler=no
26318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26319 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26320 echo "${ECHO_T}$ac_header_compiler" >&6
26322 # Is the header present?
26323 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26324 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26325 cat >conftest.$ac_ext <<_ACEOF
26328 cat confdefs.h >>conftest.$ac_ext
26329 cat >>conftest.$ac_ext <<_ACEOF
26330 /* end confdefs.h. */
26331 #include <$ac_header>
26333 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26334 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26336 grep -v '^ *+' conftest.er1 >conftest.err
26338 cat conftest.err >&5
26339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26340 (exit $ac_status); } >/dev/null; then
26341 if test -s conftest.err; then
26342 ac_cpp_err=$ac_c_preproc_warn_flag
26343 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26350 if test -z "$ac_cpp_err"; then
26351 ac_header_preproc=yes
26353 echo "$as_me: failed program was:" >&5
26354 sed 's/^/| /' conftest.$ac_ext >&5
26356 ac_header_preproc=no
26358 rm -f conftest.err conftest.$ac_ext
26359 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26360 echo "${ECHO_T}$ac_header_preproc" >&6
26362 # So? What about this header?
26363 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26365 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26366 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26367 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26368 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26369 ac_header_preproc=yes
26372 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26373 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26374 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26375 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26376 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26377 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26378 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26379 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26380 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26381 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26382 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26383 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26386 ## --------------------------------------------- ##
26387 ## Report this to <http://www.openldap.org/its/> ##
26388 ## --------------------------------------------- ##
26391 sed "s/^/$as_me: WARNING: /" >&2
26394 echo "$as_me:$LINENO: checking for $ac_header" >&5
26395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26397 echo $ECHO_N "(cached) $ECHO_C" >&6
26399 eval "$as_ac_Header=\$ac_header_preproc"
26401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26402 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26405 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26406 cat >>confdefs.h <<_ACEOF
26407 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26416 for ac_header in thread.h synch.h
26418 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26419 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26420 echo "$as_me:$LINENO: checking for $ac_header" >&5
26421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26423 echo $ECHO_N "(cached) $ECHO_C" >&6
26425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26426 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26428 # Is the header compilable?
26429 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26430 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26431 cat >conftest.$ac_ext <<_ACEOF
26434 cat confdefs.h >>conftest.$ac_ext
26435 cat >>conftest.$ac_ext <<_ACEOF
26436 /* end confdefs.h. */
26437 $ac_includes_default
26438 #include <$ac_header>
26440 rm -f conftest.$ac_objext
26441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26442 (eval $ac_compile) 2>conftest.er1
26444 grep -v '^ *+' conftest.er1 >conftest.err
26446 cat conftest.err >&5
26447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26448 (exit $ac_status); } &&
26449 { ac_try='test -z "$ac_c_werror_flag"
26450 || test ! -s conftest.err'
26451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26452 (eval $ac_try) 2>&5
26454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26455 (exit $ac_status); }; } &&
26456 { ac_try='test -s conftest.$ac_objext'
26457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26458 (eval $ac_try) 2>&5
26460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26461 (exit $ac_status); }; }; then
26462 ac_header_compiler=yes
26464 echo "$as_me: failed program was:" >&5
26465 sed 's/^/| /' conftest.$ac_ext >&5
26467 ac_header_compiler=no
26469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26470 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26471 echo "${ECHO_T}$ac_header_compiler" >&6
26473 # Is the header present?
26474 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26475 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26476 cat >conftest.$ac_ext <<_ACEOF
26479 cat confdefs.h >>conftest.$ac_ext
26480 cat >>conftest.$ac_ext <<_ACEOF
26481 /* end confdefs.h. */
26482 #include <$ac_header>
26484 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26485 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26487 grep -v '^ *+' conftest.er1 >conftest.err
26489 cat conftest.err >&5
26490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26491 (exit $ac_status); } >/dev/null; then
26492 if test -s conftest.err; then
26493 ac_cpp_err=$ac_c_preproc_warn_flag
26494 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26501 if test -z "$ac_cpp_err"; then
26502 ac_header_preproc=yes
26504 echo "$as_me: failed program was:" >&5
26505 sed 's/^/| /' conftest.$ac_ext >&5
26507 ac_header_preproc=no
26509 rm -f conftest.err conftest.$ac_ext
26510 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26511 echo "${ECHO_T}$ac_header_preproc" >&6
26513 # So? What about this header?
26514 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26516 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26517 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26519 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26520 ac_header_preproc=yes
26523 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26524 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26525 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26526 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26527 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26528 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26529 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26530 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26532 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26533 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26534 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26537 ## --------------------------------------------- ##
26538 ## Report this to <http://www.openldap.org/its/> ##
26539 ## --------------------------------------------- ##
26542 sed "s/^/$as_me: WARNING: /" >&2
26545 echo "$as_me:$LINENO: checking for $ac_header" >&5
26546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26548 echo $ECHO_N "(cached) $ECHO_C" >&6
26550 eval "$as_ac_Header=\$ac_header_preproc"
26552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26553 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26556 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26557 cat >>confdefs.h <<_ACEOF
26558 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26567 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
26568 cat >>confdefs.h <<\_ACEOF
26569 #define REENTRANT 1
26572 cat >>confdefs.h <<\_ACEOF
26573 #define _REENTRANT 1
26576 cat >>confdefs.h <<\_ACEOF
26577 #define THREAD_SAFE 1
26580 cat >>confdefs.h <<\_ACEOF
26581 #define _THREAD_SAFE 1
26584 cat >>confdefs.h <<\_ACEOF
26585 #define THREADSAFE 1
26588 cat >>confdefs.h <<\_ACEOF
26589 #define _THREADSAFE 1
26592 cat >>confdefs.h <<\_ACEOF
26593 #define _SGI_MP_SOURCE 1
26597 echo "$as_me:$LINENO: checking for thread specific errno" >&5
26598 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
26599 if test "${ol_cv_errno_thread_specific+set}" = set; then
26600 echo $ECHO_N "(cached) $ECHO_C" >&6
26603 cat >conftest.$ac_ext <<_ACEOF
26606 cat confdefs.h >>conftest.$ac_ext
26607 cat >>conftest.$ac_ext <<_ACEOF
26608 /* end confdefs.h. */
26618 rm -f conftest.$ac_objext conftest$ac_exeext
26619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26620 (eval $ac_link) 2>conftest.er1
26622 grep -v '^ *+' conftest.er1 >conftest.err
26624 cat conftest.err >&5
26625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26626 (exit $ac_status); } &&
26627 { ac_try='test -z "$ac_c_werror_flag"
26628 || test ! -s conftest.err'
26629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26630 (eval $ac_try) 2>&5
26632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26633 (exit $ac_status); }; } &&
26634 { ac_try='test -s conftest$ac_exeext'
26635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26636 (eval $ac_try) 2>&5
26638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26639 (exit $ac_status); }; }; then
26640 ol_cv_errno_thread_specific=yes
26642 echo "$as_me: failed program was:" >&5
26643 sed 's/^/| /' conftest.$ac_ext >&5
26645 ol_cv_errno_thread_specific=no
26647 rm -f conftest.err conftest.$ac_objext \
26648 conftest$ac_exeext conftest.$ac_ext
26651 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
26652 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
26654 echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
26655 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
26656 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
26657 echo $ECHO_N "(cached) $ECHO_C" >&6
26660 cat >conftest.$ac_ext <<_ACEOF
26663 cat confdefs.h >>conftest.$ac_ext
26664 cat >>conftest.$ac_ext <<_ACEOF
26665 /* end confdefs.h. */
26675 rm -f conftest.$ac_objext conftest$ac_exeext
26676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26677 (eval $ac_link) 2>conftest.er1
26679 grep -v '^ *+' conftest.er1 >conftest.err
26681 cat conftest.err >&5
26682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26683 (exit $ac_status); } &&
26684 { ac_try='test -z "$ac_c_werror_flag"
26685 || test ! -s conftest.err'
26686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26687 (eval $ac_try) 2>&5
26689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26690 (exit $ac_status); }; } &&
26691 { ac_try='test -s conftest$ac_exeext'
26692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26693 (eval $ac_try) 2>&5
26695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26696 (exit $ac_status); }; }; then
26697 ol_cv_h_errno_thread_specific=yes
26699 echo "$as_me: failed program was:" >&5
26700 sed 's/^/| /' conftest.$ac_ext >&5
26702 ol_cv_h_errno_thread_specific=no
26704 rm -f conftest.err conftest.$ac_objext \
26705 conftest$ac_exeext conftest.$ac_ext
26708 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
26709 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
26711 if test $ol_cv_errno_thread_specific != yes ||
26712 test $ol_cv_h_errno_thread_specific != yes ; then
26713 LIBS="$LTHREAD_LIBS $LIBS"
26719 if test $ol_link_threads = no ; then
26720 if test $ol_with_threads = yes ; then
26721 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
26722 echo "$as_me: error: no suitable thread support" >&2;}
26723 { (exit 1); exit 1; }; }
26726 if test $ol_with_threads = auto ; then
26727 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
26728 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
26733 cat >>confdefs.h <<\_ACEOF
26734 #define NO_THREADS 1
26743 if test $ol_link_threads != no ; then
26745 cat >>confdefs.h <<\_ACEOF
26746 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
26756 gethostbyname_r gethostbyaddr_r \
26759 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26760 echo "$as_me:$LINENO: checking for $ac_func" >&5
26761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26762 if eval "test \"\${$as_ac_var+set}\" = set"; then
26763 echo $ECHO_N "(cached) $ECHO_C" >&6
26765 cat >conftest.$ac_ext <<_ACEOF
26768 cat confdefs.h >>conftest.$ac_ext
26769 cat >>conftest.$ac_ext <<_ACEOF
26770 /* end confdefs.h. */
26771 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26773 #define $ac_func innocuous_$ac_func
26775 /* System header to define __stub macros and hopefully few prototypes,
26776 which can conflict with char $ac_func (); below.
26777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26778 <limits.h> exists even on freestanding compilers. */
26781 # include <limits.h>
26783 # include <assert.h>
26788 /* Override any gcc2 internal prototype to avoid an error. */
26793 /* We use char because int might match the return type of a gcc2
26794 builtin and then its argument prototype would still apply. */
26796 /* The GNU C library defines this for functions which it implements
26797 to always fail with ENOSYS. Some functions are actually named
26798 something starting with __ and the normal name is an alias. */
26799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26802 char (*f) () = $ac_func;
26811 return f != $ac_func;
26816 rm -f conftest.$ac_objext conftest$ac_exeext
26817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26818 (eval $ac_link) 2>conftest.er1
26820 grep -v '^ *+' conftest.er1 >conftest.err
26822 cat conftest.err >&5
26823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26824 (exit $ac_status); } &&
26825 { ac_try='test -z "$ac_c_werror_flag"
26826 || test ! -s conftest.err'
26827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26828 (eval $ac_try) 2>&5
26830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26831 (exit $ac_status); }; } &&
26832 { ac_try='test -s conftest$ac_exeext'
26833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26834 (eval $ac_try) 2>&5
26836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26837 (exit $ac_status); }; }; then
26838 eval "$as_ac_var=yes"
26840 echo "$as_me: failed program was:" >&5
26841 sed 's/^/| /' conftest.$ac_ext >&5
26843 eval "$as_ac_var=no"
26845 rm -f conftest.err conftest.$ac_objext \
26846 conftest$ac_exeext conftest.$ac_ext
26848 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26849 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26850 if test `eval echo '${'$as_ac_var'}'` = yes; then
26851 cat >>confdefs.h <<_ACEOF
26852 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26859 if test "$ac_cv_func_ctime_r" = no ; then
26860 ol_cv_func_ctime_r_nargs=0
26862 echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
26863 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
26864 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
26865 echo $ECHO_N "(cached) $ECHO_C" >&6
26867 cat >conftest.$ac_ext <<_ACEOF
26870 cat confdefs.h >>conftest.$ac_ext
26871 cat >>conftest.$ac_ext <<_ACEOF
26872 /* end confdefs.h. */
26877 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
26882 rm -f conftest.$ac_objext
26883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26884 (eval $ac_compile) 2>conftest.er1
26886 grep -v '^ *+' conftest.er1 >conftest.err
26888 cat conftest.err >&5
26889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26890 (exit $ac_status); } &&
26891 { ac_try='test -z "$ac_c_werror_flag"
26892 || test ! -s conftest.err'
26893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26894 (eval $ac_try) 2>&5
26896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26897 (exit $ac_status); }; } &&
26898 { ac_try='test -s conftest.$ac_objext'
26899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26900 (eval $ac_try) 2>&5
26902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26903 (exit $ac_status); }; }; then
26904 ol_cv_func_ctime_r_nargs3=yes
26906 echo "$as_me: failed program was:" >&5
26907 sed 's/^/| /' conftest.$ac_ext >&5
26909 ol_cv_func_ctime_r_nargs3=no
26911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26913 cat >conftest.$ac_ext <<_ACEOF
26916 cat confdefs.h >>conftest.$ac_ext
26917 cat >>conftest.$ac_ext <<_ACEOF
26918 /* end confdefs.h. */
26923 time_t ti; char *buffer; ctime_r(&ti,buffer);
26928 rm -f conftest.$ac_objext
26929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26930 (eval $ac_compile) 2>conftest.er1
26932 grep -v '^ *+' conftest.er1 >conftest.err
26934 cat conftest.err >&5
26935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26936 (exit $ac_status); } &&
26937 { ac_try='test -z "$ac_c_werror_flag"
26938 || test ! -s conftest.err'
26939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26940 (eval $ac_try) 2>&5
26942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26943 (exit $ac_status); }; } &&
26944 { ac_try='test -s conftest.$ac_objext'
26945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26946 (eval $ac_try) 2>&5
26948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26949 (exit $ac_status); }; }; then
26950 ol_cv_func_ctime_r_nargs2=yes
26952 echo "$as_me: failed program was:" >&5
26953 sed 's/^/| /' conftest.$ac_ext >&5
26955 ol_cv_func_ctime_r_nargs2=no
26957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26959 if test $ol_cv_func_ctime_r_nargs3 = yes &&
26960 test $ol_cv_func_ctime_r_nargs2 = no ; then
26962 ol_cv_func_ctime_r_nargs=3
26964 elif test $ol_cv_func_ctime_r_nargs3 = no &&
26965 test $ol_cv_func_ctime_r_nargs2 = yes ; then
26967 ol_cv_func_ctime_r_nargs=2
26970 ol_cv_func_ctime_r_nargs=0
26974 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
26975 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
26977 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
26979 cat >>confdefs.h <<_ACEOF
26980 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
26987 if test "$ac_cv_func_gethostbyname_r" = yes ; then
26988 echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
26989 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
26990 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
26991 echo $ECHO_N "(cached) $ECHO_C" >&6
26993 cat >conftest.$ac_ext <<_ACEOF
26996 cat confdefs.h >>conftest.$ac_ext
26997 cat >>conftest.$ac_ext <<_ACEOF
26998 /* end confdefs.h. */
26999 #include <sys/types.h>
27000 #include <sys/socket.h>
27001 #include <netinet/in.h>
27003 #define BUFSIZE (sizeof(struct hostent)+10)
27007 struct hostent hent; char buffer[BUFSIZE];
27008 int bufsize=BUFSIZE;int h_errno;
27009 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27010 buffer, bufsize, &h_errno);
27015 rm -f conftest.$ac_objext
27016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27017 (eval $ac_compile) 2>conftest.er1
27019 grep -v '^ *+' conftest.er1 >conftest.err
27021 cat conftest.err >&5
27022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27023 (exit $ac_status); } &&
27024 { ac_try='test -z "$ac_c_werror_flag"
27025 || test ! -s conftest.err'
27026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27027 (eval $ac_try) 2>&5
27029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27030 (exit $ac_status); }; } &&
27031 { ac_try='test -s conftest.$ac_objext'
27032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27033 (eval $ac_try) 2>&5
27035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27036 (exit $ac_status); }; }; then
27037 ol_cv_func_gethostbyname_r_nargs5=yes
27039 echo "$as_me: failed program was:" >&5
27040 sed 's/^/| /' conftest.$ac_ext >&5
27042 ol_cv_func_gethostbyname_r_nargs5=no
27044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27046 cat >conftest.$ac_ext <<_ACEOF
27049 cat confdefs.h >>conftest.$ac_ext
27050 cat >>conftest.$ac_ext <<_ACEOF
27051 /* end confdefs.h. */
27052 #include <sys/types.h>
27053 #include <sys/socket.h>
27054 #include <netinet/in.h>
27056 #define BUFSIZE (sizeof(struct hostent)+10)
27060 struct hostent hent;struct hostent *rhent;
27061 char buffer[BUFSIZE];
27062 int bufsize=BUFSIZE;int h_errno;
27063 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27069 rm -f conftest.$ac_objext
27070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27071 (eval $ac_compile) 2>conftest.er1
27073 grep -v '^ *+' conftest.er1 >conftest.err
27075 cat conftest.err >&5
27076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27077 (exit $ac_status); } &&
27078 { ac_try='test -z "$ac_c_werror_flag"
27079 || test ! -s conftest.err'
27080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27081 (eval $ac_try) 2>&5
27083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27084 (exit $ac_status); }; } &&
27085 { ac_try='test -s conftest.$ac_objext'
27086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27087 (eval $ac_try) 2>&5
27089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27090 (exit $ac_status); }; }; then
27091 ol_cv_func_gethostbyname_r_nargs6=yes
27093 echo "$as_me: failed program was:" >&5
27094 sed 's/^/| /' conftest.$ac_ext >&5
27096 ol_cv_func_gethostbyname_r_nargs6=no
27098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27100 if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27101 test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27103 ol_cv_func_gethostbyname_r_nargs=5
27105 elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27106 test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27108 ol_cv_func_gethostbyname_r_nargs=6
27111 ol_cv_func_gethostbyname_r_nargs=0
27115 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27116 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
27117 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27119 cat >>confdefs.h <<_ACEOF
27120 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27126 ol_cv_func_gethostbyname_r_nargs=0
27129 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27130 echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27131 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
27132 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27133 echo $ECHO_N "(cached) $ECHO_C" >&6
27135 cat >conftest.$ac_ext <<_ACEOF
27138 cat confdefs.h >>conftest.$ac_ext
27139 cat >>conftest.$ac_ext <<_ACEOF
27140 /* end confdefs.h. */
27141 #include <sys/types.h>
27142 #include <sys/socket.h>
27143 #include <netinet/in.h>
27145 #define BUFSIZE (sizeof(struct hostent)+10)
27149 struct hostent hent; char buffer[BUFSIZE];
27150 struct in_addr add;
27151 size_t alen=sizeof(struct in_addr);
27152 int bufsize=BUFSIZE;int h_errno;
27153 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27154 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27159 rm -f conftest.$ac_objext
27160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27161 (eval $ac_compile) 2>conftest.er1
27163 grep -v '^ *+' conftest.er1 >conftest.err
27165 cat conftest.err >&5
27166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27167 (exit $ac_status); } &&
27168 { ac_try='test -z "$ac_c_werror_flag"
27169 || test ! -s conftest.err'
27170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27171 (eval $ac_try) 2>&5
27173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27174 (exit $ac_status); }; } &&
27175 { ac_try='test -s conftest.$ac_objext'
27176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27177 (eval $ac_try) 2>&5
27179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27180 (exit $ac_status); }; }; then
27181 ol_cv_func_gethostbyaddr_r_nargs7=yes
27183 echo "$as_me: failed program was:" >&5
27184 sed 's/^/| /' conftest.$ac_ext >&5
27186 ol_cv_func_gethostbyaddr_r_nargs7=no
27188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27190 cat >conftest.$ac_ext <<_ACEOF
27193 cat confdefs.h >>conftest.$ac_ext
27194 cat >>conftest.$ac_ext <<_ACEOF
27195 /* end confdefs.h. */
27196 #include <sys/types.h>
27197 #include <sys/socket.h>
27198 #include <netinet/in.h>
27200 #define BUFSIZE (sizeof(struct hostent)+10)
27204 struct hostent hent;
27205 struct hostent *rhent; char buffer[BUFSIZE];
27206 struct in_addr add;
27207 size_t alen=sizeof(struct in_addr);
27208 int bufsize=BUFSIZE;int h_errno;
27209 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27210 alen, AF_INET, &hent, buffer, bufsize,
27216 rm -f conftest.$ac_objext
27217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27218 (eval $ac_compile) 2>conftest.er1
27220 grep -v '^ *+' conftest.er1 >conftest.err
27222 cat conftest.err >&5
27223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27224 (exit $ac_status); } &&
27225 { ac_try='test -z "$ac_c_werror_flag"
27226 || test ! -s conftest.err'
27227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27228 (eval $ac_try) 2>&5
27230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27231 (exit $ac_status); }; } &&
27232 { ac_try='test -s conftest.$ac_objext'
27233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27234 (eval $ac_try) 2>&5
27236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27237 (exit $ac_status); }; }; then
27238 ol_cv_func_gethostbyaddr_r_nargs8=yes
27240 echo "$as_me: failed program was:" >&5
27241 sed 's/^/| /' conftest.$ac_ext >&5
27243 ol_cv_func_gethostbyaddr_r_nargs8=no
27245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27247 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
27248 test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27250 ol_cv_func_gethostbyaddr_r_nargs=7
27252 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
27253 test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27255 ol_cv_func_gethostbyaddr_r_nargs=8
27258 ol_cv_func_gethostbyaddr_r_nargs=0
27262 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27263 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
27264 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27266 cat >>confdefs.h <<_ACEOF
27267 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27273 ol_cv_func_gethostbyaddr_r_nargs=0
27278 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
27279 ol_cv_berkeley_db=no
27281 for ac_header in db.h
27283 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27284 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27285 echo "$as_me:$LINENO: checking for $ac_header" >&5
27286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27287 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27288 echo $ECHO_N "(cached) $ECHO_C" >&6
27290 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27291 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27293 # Is the header compilable?
27294 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27295 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27296 cat >conftest.$ac_ext <<_ACEOF
27299 cat confdefs.h >>conftest.$ac_ext
27300 cat >>conftest.$ac_ext <<_ACEOF
27301 /* end confdefs.h. */
27302 $ac_includes_default
27303 #include <$ac_header>
27305 rm -f conftest.$ac_objext
27306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27307 (eval $ac_compile) 2>conftest.er1
27309 grep -v '^ *+' conftest.er1 >conftest.err
27311 cat conftest.err >&5
27312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27313 (exit $ac_status); } &&
27314 { ac_try='test -z "$ac_c_werror_flag"
27315 || test ! -s conftest.err'
27316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27317 (eval $ac_try) 2>&5
27319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27320 (exit $ac_status); }; } &&
27321 { ac_try='test -s conftest.$ac_objext'
27322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27323 (eval $ac_try) 2>&5
27325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27326 (exit $ac_status); }; }; then
27327 ac_header_compiler=yes
27329 echo "$as_me: failed program was:" >&5
27330 sed 's/^/| /' conftest.$ac_ext >&5
27332 ac_header_compiler=no
27334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27335 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27336 echo "${ECHO_T}$ac_header_compiler" >&6
27338 # Is the header present?
27339 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27340 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27341 cat >conftest.$ac_ext <<_ACEOF
27344 cat confdefs.h >>conftest.$ac_ext
27345 cat >>conftest.$ac_ext <<_ACEOF
27346 /* end confdefs.h. */
27347 #include <$ac_header>
27349 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27350 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27352 grep -v '^ *+' conftest.er1 >conftest.err
27354 cat conftest.err >&5
27355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27356 (exit $ac_status); } >/dev/null; then
27357 if test -s conftest.err; then
27358 ac_cpp_err=$ac_c_preproc_warn_flag
27359 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27366 if test -z "$ac_cpp_err"; then
27367 ac_header_preproc=yes
27369 echo "$as_me: failed program was:" >&5
27370 sed 's/^/| /' conftest.$ac_ext >&5
27372 ac_header_preproc=no
27374 rm -f conftest.err conftest.$ac_ext
27375 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27376 echo "${ECHO_T}$ac_header_preproc" >&6
27378 # So? What about this header?
27379 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27381 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27382 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27383 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27384 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27385 ac_header_preproc=yes
27388 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27389 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27390 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27391 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27392 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27393 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27394 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27395 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27397 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27398 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27399 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27402 ## --------------------------------------------- ##
27403 ## Report this to <http://www.openldap.org/its/> ##
27404 ## --------------------------------------------- ##
27407 sed "s/^/$as_me: WARNING: /" >&2
27410 echo "$as_me:$LINENO: checking for $ac_header" >&5
27411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27413 echo $ECHO_N "(cached) $ECHO_C" >&6
27415 eval "$as_ac_Header=\$ac_header_preproc"
27417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27421 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27422 cat >>confdefs.h <<_ACEOF
27423 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27430 if test $ac_cv_header_db_h = yes; then
27433 echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
27434 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6
27435 if test "${ol_cv_bdb_major+set}" = set; then
27436 echo $ECHO_N "(cached) $ECHO_C" >&6
27440 if test $ol_cv_bdb_major = 0 ; then
27441 cat >conftest.$ac_ext <<_ACEOF
27444 cat confdefs.h >>conftest.$ac_ext
27445 cat >>conftest.$ac_ext <<_ACEOF
27446 /* end confdefs.h. */
27449 #ifndef DB_VERSION_MAJOR
27450 # define DB_VERSION_MAJOR 1
27452 #if DB_VERSION_MAJOR == 4
27457 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27458 $EGREP "__db_version" >/dev/null 2>&1; then
27466 if test $ol_cv_bdb_major = 0 ; then
27467 cat >conftest.$ac_ext <<_ACEOF
27470 cat confdefs.h >>conftest.$ac_ext
27471 cat >>conftest.$ac_ext <<_ACEOF
27472 /* end confdefs.h. */
27475 #ifndef DB_VERSION_MAJOR
27476 # define DB_VERSION_MAJOR 1
27478 #if DB_VERSION_MAJOR == 3
27483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27484 $EGREP "__db_version" >/dev/null 2>&1; then
27492 if test $ol_cv_bdb_major = 0 ; then
27493 cat >conftest.$ac_ext <<_ACEOF
27496 cat confdefs.h >>conftest.$ac_ext
27497 cat >>conftest.$ac_ext <<_ACEOF
27498 /* end confdefs.h. */
27501 #ifndef DB_VERSION_MAJOR
27502 # define DB_VERSION_MAJOR 1
27504 #if DB_VERSION_MAJOR == 2
27509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27510 $EGREP "__db_version" >/dev/null 2>&1; then
27518 if test $ol_cv_bdb_major = 0 ; then
27519 cat >conftest.$ac_ext <<_ACEOF
27522 cat confdefs.h >>conftest.$ac_ext
27523 cat >>conftest.$ac_ext <<_ACEOF
27524 /* end confdefs.h. */
27527 #ifndef DB_VERSION_MAJOR
27528 # define DB_VERSION_MAJOR 1
27530 #if DB_VERSION_MAJOR == 1
27535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27536 $EGREP "__db_version" >/dev/null 2>&1; then
27545 if test $ol_cv_bdb_major = 0 ; then
27546 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
27547 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
27548 { (exit 1); exit 1; }; }
27552 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
27553 echo "${ECHO_T}$ol_cv_bdb_major" >&6
27555 echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
27556 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6
27557 if test "${ol_cv_bdb_minor+set}" = set; then
27558 echo $ECHO_N "(cached) $ECHO_C" >&6
27562 if test $ol_cv_bdb_minor = 0 ; then
27563 cat >conftest.$ac_ext <<_ACEOF
27566 cat confdefs.h >>conftest.$ac_ext
27567 cat >>conftest.$ac_ext <<_ACEOF
27568 /* end confdefs.h. */
27571 #ifndef DB_VERSION_MINOR
27572 # define DB_VERSION_MINOR 0
27574 #if DB_VERSION_MINOR == 9
27579 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27580 $EGREP "__db_version" >/dev/null 2>&1; then
27588 if test $ol_cv_bdb_minor = 0 ; then
27589 cat >conftest.$ac_ext <<_ACEOF
27592 cat confdefs.h >>conftest.$ac_ext
27593 cat >>conftest.$ac_ext <<_ACEOF
27594 /* end confdefs.h. */
27597 #ifndef DB_VERSION_MINOR
27598 # define DB_VERSION_MINOR 0
27600 #if DB_VERSION_MINOR == 8
27605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27606 $EGREP "__db_version" >/dev/null 2>&1; then
27614 if test $ol_cv_bdb_minor = 0 ; then
27615 cat >conftest.$ac_ext <<_ACEOF
27618 cat confdefs.h >>conftest.$ac_ext
27619 cat >>conftest.$ac_ext <<_ACEOF
27620 /* end confdefs.h. */
27623 #ifndef DB_VERSION_MINOR
27624 # define DB_VERSION_MINOR 0
27626 #if DB_VERSION_MINOR == 7
27631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27632 $EGREP "__db_version" >/dev/null 2>&1; then
27640 if test $ol_cv_bdb_minor = 0 ; then
27641 cat >conftest.$ac_ext <<_ACEOF
27644 cat confdefs.h >>conftest.$ac_ext
27645 cat >>conftest.$ac_ext <<_ACEOF
27646 /* end confdefs.h. */
27649 #ifndef DB_VERSION_MINOR
27650 # define DB_VERSION_MINOR 0
27652 #if DB_VERSION_MINOR == 6
27657 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27658 $EGREP "__db_version" >/dev/null 2>&1; then
27666 if test $ol_cv_bdb_minor = 0 ; then
27667 cat >conftest.$ac_ext <<_ACEOF
27670 cat confdefs.h >>conftest.$ac_ext
27671 cat >>conftest.$ac_ext <<_ACEOF
27672 /* end confdefs.h. */
27675 #ifndef DB_VERSION_MINOR
27676 # define DB_VERSION_MINOR 0
27678 #if DB_VERSION_MINOR == 5
27683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27684 $EGREP "__db_version" >/dev/null 2>&1; then
27692 if test $ol_cv_bdb_minor = 0 ; then
27693 cat >conftest.$ac_ext <<_ACEOF
27696 cat confdefs.h >>conftest.$ac_ext
27697 cat >>conftest.$ac_ext <<_ACEOF
27698 /* end confdefs.h. */
27701 #ifndef DB_VERSION_MINOR
27702 # define DB_VERSION_MINOR 0
27704 #if DB_VERSION_MINOR == 4
27709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27710 $EGREP "__db_version" >/dev/null 2>&1; then
27718 if test $ol_cv_bdb_minor = 0 ; then
27719 cat >conftest.$ac_ext <<_ACEOF
27722 cat confdefs.h >>conftest.$ac_ext
27723 cat >>conftest.$ac_ext <<_ACEOF
27724 /* end confdefs.h. */
27727 #ifndef DB_VERSION_MINOR
27728 # define DB_VERSION_MINOR 0
27730 #if DB_VERSION_MINOR == 3
27735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27736 $EGREP "__db_version" >/dev/null 2>&1; then
27744 if test $ol_cv_bdb_minor = 0 ; then
27745 cat >conftest.$ac_ext <<_ACEOF
27748 cat confdefs.h >>conftest.$ac_ext
27749 cat >>conftest.$ac_ext <<_ACEOF
27750 /* end confdefs.h. */
27753 #ifndef DB_VERSION_MINOR
27754 # define DB_VERSION_MINOR 0
27756 #if DB_VERSION_MINOR == 2
27761 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27762 $EGREP "__db_version" >/dev/null 2>&1; then
27770 if test $ol_cv_bdb_minor = 0 ; then
27771 cat >conftest.$ac_ext <<_ACEOF
27774 cat confdefs.h >>conftest.$ac_ext
27775 cat >>conftest.$ac_ext <<_ACEOF
27776 /* end confdefs.h. */
27779 #ifndef DB_VERSION_MINOR
27780 # define DB_VERSION_MINOR 0
27782 #if DB_VERSION_MINOR == 1
27787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27788 $EGREP "__db_version" >/dev/null 2>&1; then
27798 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
27799 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
27801 if test $ol_cv_bdb_major = 4 ; then
27802 if test $ol_cv_lib_db = no ; then
27803 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)" >&5
27804 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)... $ECHO_C" >&6
27805 if test "${ol_cv_db_db_4_dot_m+set}" = set; then
27806 echo $ECHO_N "(cached) $ECHO_C" >&6
27809 ol_DB_LIB=-ldb-4.$ol_cv_bdb_minor
27811 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27813 cat >conftest.$ac_ext <<_ACEOF
27816 cat confdefs.h >>conftest.$ac_ext
27817 cat >>conftest.$ac_ext <<_ACEOF
27818 /* end confdefs.h. */
27820 #ifdef HAVE_DB_185_H
27821 # include <db_185.h>
27826 #ifndef DB_VERSION_MAJOR
27827 # define DB_VERSION_MAJOR 1
27831 #define NULL ((void*)0)
27838 #if DB_VERSION_MAJOR > 1
27841 int major, minor, patch;
27843 version = db_version( &major, &minor, &patch );
27845 if( major != DB_VERSION_MAJOR ||
27846 minor < DB_VERSION_MINOR )
27848 printf("Berkeley DB version mismatch\n"
27849 "\theader: %s\n\tlibrary: %s\n",
27850 DB_VERSION_STRING, version);
27856 #if DB_VERSION_MAJOR > 2
27857 db_env_create( NULL, 0 );
27858 #elif DB_VERSION_MAJOR > 1
27859 db_appexit( NULL );
27861 (void) dbopen( NULL, 0, 0, 0, NULL);
27868 rm -f conftest.$ac_objext conftest$ac_exeext
27869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27870 (eval $ac_link) 2>conftest.er1
27872 grep -v '^ *+' conftest.er1 >conftest.err
27874 cat conftest.err >&5
27875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27876 (exit $ac_status); } &&
27877 { ac_try='test -z "$ac_c_werror_flag"
27878 || test ! -s conftest.err'
27879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27880 (eval $ac_try) 2>&5
27882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27883 (exit $ac_status); }; } &&
27884 { ac_try='test -s conftest$ac_exeext'
27885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27886 (eval $ac_try) 2>&5
27888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27889 (exit $ac_status); }; }; then
27890 ol_cv_db_db_4_dot_m=yes
27892 echo "$as_me: failed program was:" >&5
27893 sed 's/^/| /' conftest.$ac_ext >&5
27895 ol_cv_db_db_4_dot_m=no
27897 rm -f conftest.err conftest.$ac_objext \
27898 conftest$ac_exeext conftest.$ac_ext
27903 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_m" >&5
27904 echo "${ECHO_T}$ol_cv_db_db_4_dot_m" >&6
27906 if test $ol_cv_db_db_4_dot_m = yes ; then
27907 ol_cv_lib_db=-ldb-4.$ol_cv_bdb_minor
27911 if test $ol_cv_lib_db = no ; then
27912 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)" >&5
27913 echo $ECHO_N "checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)... $ECHO_C" >&6
27914 if test "${ol_cv_db_db4m+set}" = set; then
27915 echo $ECHO_N "(cached) $ECHO_C" >&6
27918 ol_DB_LIB=-ldb4$ol_cv_bdb_minor
27920 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27922 cat >conftest.$ac_ext <<_ACEOF
27925 cat confdefs.h >>conftest.$ac_ext
27926 cat >>conftest.$ac_ext <<_ACEOF
27927 /* end confdefs.h. */
27929 #ifdef HAVE_DB_185_H
27930 # include <db_185.h>
27935 #ifndef DB_VERSION_MAJOR
27936 # define DB_VERSION_MAJOR 1
27940 #define NULL ((void*)0)
27947 #if DB_VERSION_MAJOR > 1
27950 int major, minor, patch;
27952 version = db_version( &major, &minor, &patch );
27954 if( major != DB_VERSION_MAJOR ||
27955 minor < DB_VERSION_MINOR )
27957 printf("Berkeley DB version mismatch\n"
27958 "\theader: %s\n\tlibrary: %s\n",
27959 DB_VERSION_STRING, version);
27965 #if DB_VERSION_MAJOR > 2
27966 db_env_create( NULL, 0 );
27967 #elif DB_VERSION_MAJOR > 1
27968 db_appexit( NULL );
27970 (void) dbopen( NULL, 0, 0, 0, NULL);
27977 rm -f conftest.$ac_objext conftest$ac_exeext
27978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27979 (eval $ac_link) 2>conftest.er1
27981 grep -v '^ *+' conftest.er1 >conftest.err
27983 cat conftest.err >&5
27984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27985 (exit $ac_status); } &&
27986 { ac_try='test -z "$ac_c_werror_flag"
27987 || test ! -s conftest.err'
27988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27989 (eval $ac_try) 2>&5
27991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27992 (exit $ac_status); }; } &&
27993 { ac_try='test -s conftest$ac_exeext'
27994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27995 (eval $ac_try) 2>&5
27997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27998 (exit $ac_status); }; }; then
28001 echo "$as_me: failed program was:" >&5
28002 sed 's/^/| /' conftest.$ac_ext >&5
28006 rm -f conftest.err conftest.$ac_objext \
28007 conftest$ac_exeext conftest.$ac_ext
28012 echo "$as_me:$LINENO: result: $ol_cv_db_db4m" >&5
28013 echo "${ECHO_T}$ol_cv_db_db4m" >&6
28015 if test $ol_cv_db_db4m = yes ; then
28016 ol_cv_lib_db=-ldb4$ol_cv_bdb_minor
28020 if test $ol_cv_lib_db = no ; then
28021 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)" >&5
28022 echo $ECHO_N "checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)... $ECHO_C" >&6
28023 if test "${ol_cv_db_db_4m+set}" = set; then
28024 echo $ECHO_N "(cached) $ECHO_C" >&6
28027 ol_DB_LIB=-ldb-4$ol_cv_bdb_minor
28029 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28031 cat >conftest.$ac_ext <<_ACEOF
28034 cat confdefs.h >>conftest.$ac_ext
28035 cat >>conftest.$ac_ext <<_ACEOF
28036 /* end confdefs.h. */
28038 #ifdef HAVE_DB_185_H
28039 # include <db_185.h>
28044 #ifndef DB_VERSION_MAJOR
28045 # define DB_VERSION_MAJOR 1
28049 #define NULL ((void*)0)
28056 #if DB_VERSION_MAJOR > 1
28059 int major, minor, patch;
28061 version = db_version( &major, &minor, &patch );
28063 if( major != DB_VERSION_MAJOR ||
28064 minor < DB_VERSION_MINOR )
28066 printf("Berkeley DB version mismatch\n"
28067 "\theader: %s\n\tlibrary: %s\n",
28068 DB_VERSION_STRING, version);
28074 #if DB_VERSION_MAJOR > 2
28075 db_env_create( NULL, 0 );
28076 #elif DB_VERSION_MAJOR > 1
28077 db_appexit( NULL );
28079 (void) dbopen( NULL, 0, 0, 0, NULL);
28086 rm -f conftest.$ac_objext conftest$ac_exeext
28087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28088 (eval $ac_link) 2>conftest.er1
28090 grep -v '^ *+' conftest.er1 >conftest.err
28092 cat conftest.err >&5
28093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28094 (exit $ac_status); } &&
28095 { ac_try='test -z "$ac_c_werror_flag"
28096 || test ! -s conftest.err'
28097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28098 (eval $ac_try) 2>&5
28100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28101 (exit $ac_status); }; } &&
28102 { ac_try='test -s conftest$ac_exeext'
28103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28104 (eval $ac_try) 2>&5
28106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28107 (exit $ac_status); }; }; then
28110 echo "$as_me: failed program was:" >&5
28111 sed 's/^/| /' conftest.$ac_ext >&5
28115 rm -f conftest.err conftest.$ac_objext \
28116 conftest$ac_exeext conftest.$ac_ext
28121 echo "$as_me:$LINENO: result: $ol_cv_db_db_4m" >&5
28122 echo "${ECHO_T}$ol_cv_db_db_4m" >&6
28124 if test $ol_cv_db_db_4m = yes ; then
28125 ol_cv_lib_db=-ldb-4$ol_cv_bdb_minor
28129 if test $ol_cv_lib_db = no ; then
28130 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)" >&5
28131 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)... $ECHO_C" >&6
28132 if test "${ol_cv_db_db_4_m+set}" = set; then
28133 echo $ECHO_N "(cached) $ECHO_C" >&6
28136 ol_DB_LIB=-ldb-4-$ol_cv_bdb_minor
28138 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28140 cat >conftest.$ac_ext <<_ACEOF
28143 cat confdefs.h >>conftest.$ac_ext
28144 cat >>conftest.$ac_ext <<_ACEOF
28145 /* end confdefs.h. */
28147 #ifdef HAVE_DB_185_H
28148 # include <db_185.h>
28153 #ifndef DB_VERSION_MAJOR
28154 # define DB_VERSION_MAJOR 1
28158 #define NULL ((void*)0)
28165 #if DB_VERSION_MAJOR > 1
28168 int major, minor, patch;
28170 version = db_version( &major, &minor, &patch );
28172 if( major != DB_VERSION_MAJOR ||
28173 minor < DB_VERSION_MINOR )
28175 printf("Berkeley DB version mismatch\n"
28176 "\theader: %s\n\tlibrary: %s\n",
28177 DB_VERSION_STRING, version);
28183 #if DB_VERSION_MAJOR > 2
28184 db_env_create( NULL, 0 );
28185 #elif DB_VERSION_MAJOR > 1
28186 db_appexit( NULL );
28188 (void) dbopen( NULL, 0, 0, 0, NULL);
28195 rm -f conftest.$ac_objext conftest$ac_exeext
28196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28197 (eval $ac_link) 2>conftest.er1
28199 grep -v '^ *+' conftest.er1 >conftest.err
28201 cat conftest.err >&5
28202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28203 (exit $ac_status); } &&
28204 { ac_try='test -z "$ac_c_werror_flag"
28205 || test ! -s conftest.err'
28206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28207 (eval $ac_try) 2>&5
28209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28210 (exit $ac_status); }; } &&
28211 { ac_try='test -s conftest$ac_exeext'
28212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28213 (eval $ac_try) 2>&5
28215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28216 (exit $ac_status); }; }; then
28217 ol_cv_db_db_4_m=yes
28219 echo "$as_me: failed program was:" >&5
28220 sed 's/^/| /' conftest.$ac_ext >&5
28224 rm -f conftest.err conftest.$ac_objext \
28225 conftest$ac_exeext conftest.$ac_ext
28230 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_m" >&5
28231 echo "${ECHO_T}$ol_cv_db_db_4_m" >&6
28233 if test $ol_cv_db_db_4_m = yes ; then
28234 ol_cv_lib_db=-ldb-4-$ol_cv_bdb_minor
28238 if test $ol_cv_lib_db = no ; then
28239 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
28240 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
28241 if test "${ol_cv_db_db_4+set}" = set; then
28242 echo $ECHO_N "(cached) $ECHO_C" >&6
28247 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28249 cat >conftest.$ac_ext <<_ACEOF
28252 cat confdefs.h >>conftest.$ac_ext
28253 cat >>conftest.$ac_ext <<_ACEOF
28254 /* end confdefs.h. */
28256 #ifdef HAVE_DB_185_H
28257 # include <db_185.h>
28262 #ifndef DB_VERSION_MAJOR
28263 # define DB_VERSION_MAJOR 1
28267 #define NULL ((void*)0)
28274 #if DB_VERSION_MAJOR > 1
28277 int major, minor, patch;
28279 version = db_version( &major, &minor, &patch );
28281 if( major != DB_VERSION_MAJOR ||
28282 minor < DB_VERSION_MINOR )
28284 printf("Berkeley DB version mismatch\n"
28285 "\theader: %s\n\tlibrary: %s\n",
28286 DB_VERSION_STRING, version);
28292 #if DB_VERSION_MAJOR > 2
28293 db_env_create( NULL, 0 );
28294 #elif DB_VERSION_MAJOR > 1
28295 db_appexit( NULL );
28297 (void) dbopen( NULL, 0, 0, 0, NULL);
28304 rm -f conftest.$ac_objext conftest$ac_exeext
28305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28306 (eval $ac_link) 2>conftest.er1
28308 grep -v '^ *+' conftest.er1 >conftest.err
28310 cat conftest.err >&5
28311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28312 (exit $ac_status); } &&
28313 { ac_try='test -z "$ac_c_werror_flag"
28314 || test ! -s conftest.err'
28315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28316 (eval $ac_try) 2>&5
28318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28319 (exit $ac_status); }; } &&
28320 { ac_try='test -s conftest$ac_exeext'
28321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28322 (eval $ac_try) 2>&5
28324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28325 (exit $ac_status); }; }; then
28328 echo "$as_me: failed program was:" >&5
28329 sed 's/^/| /' conftest.$ac_ext >&5
28333 rm -f conftest.err conftest.$ac_objext \
28334 conftest$ac_exeext conftest.$ac_ext
28339 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
28340 echo "${ECHO_T}$ol_cv_db_db_4" >&6
28342 if test $ol_cv_db_db_4 = yes ; then
28343 ol_cv_lib_db=-ldb-4
28347 if test $ol_cv_lib_db = no ; then
28348 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
28349 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
28350 if test "${ol_cv_db_db4+set}" = set; then
28351 echo $ECHO_N "(cached) $ECHO_C" >&6
28356 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28358 cat >conftest.$ac_ext <<_ACEOF
28361 cat confdefs.h >>conftest.$ac_ext
28362 cat >>conftest.$ac_ext <<_ACEOF
28363 /* end confdefs.h. */
28365 #ifdef HAVE_DB_185_H
28366 # include <db_185.h>
28371 #ifndef DB_VERSION_MAJOR
28372 # define DB_VERSION_MAJOR 1
28376 #define NULL ((void*)0)
28383 #if DB_VERSION_MAJOR > 1
28386 int major, minor, patch;
28388 version = db_version( &major, &minor, &patch );
28390 if( major != DB_VERSION_MAJOR ||
28391 minor < DB_VERSION_MINOR )
28393 printf("Berkeley DB version mismatch\n"
28394 "\theader: %s\n\tlibrary: %s\n",
28395 DB_VERSION_STRING, version);
28401 #if DB_VERSION_MAJOR > 2
28402 db_env_create( NULL, 0 );
28403 #elif DB_VERSION_MAJOR > 1
28404 db_appexit( NULL );
28406 (void) dbopen( NULL, 0, 0, 0, NULL);
28413 rm -f conftest.$ac_objext conftest$ac_exeext
28414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28415 (eval $ac_link) 2>conftest.er1
28417 grep -v '^ *+' conftest.er1 >conftest.err
28419 cat conftest.err >&5
28420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28421 (exit $ac_status); } &&
28422 { ac_try='test -z "$ac_c_werror_flag"
28423 || test ! -s conftest.err'
28424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28425 (eval $ac_try) 2>&5
28427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28428 (exit $ac_status); }; } &&
28429 { ac_try='test -s conftest$ac_exeext'
28430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28431 (eval $ac_try) 2>&5
28433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28434 (exit $ac_status); }; }; then
28437 echo "$as_me: failed program was:" >&5
28438 sed 's/^/| /' conftest.$ac_ext >&5
28442 rm -f conftest.err conftest.$ac_objext \
28443 conftest$ac_exeext conftest.$ac_ext
28448 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
28449 echo "${ECHO_T}$ol_cv_db_db4" >&6
28451 if test $ol_cv_db_db4 = yes ; then
28456 if test $ol_cv_lib_db = no ; then
28457 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
28458 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
28459 if test "${ol_cv_db_db+set}" = set; then
28460 echo $ECHO_N "(cached) $ECHO_C" >&6
28465 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28467 cat >conftest.$ac_ext <<_ACEOF
28470 cat confdefs.h >>conftest.$ac_ext
28471 cat >>conftest.$ac_ext <<_ACEOF
28472 /* end confdefs.h. */
28474 #ifdef HAVE_DB_185_H
28475 # include <db_185.h>
28480 #ifndef DB_VERSION_MAJOR
28481 # define DB_VERSION_MAJOR 1
28485 #define NULL ((void*)0)
28492 #if DB_VERSION_MAJOR > 1
28495 int major, minor, patch;
28497 version = db_version( &major, &minor, &patch );
28499 if( major != DB_VERSION_MAJOR ||
28500 minor < DB_VERSION_MINOR )
28502 printf("Berkeley DB version mismatch\n"
28503 "\theader: %s\n\tlibrary: %s\n",
28504 DB_VERSION_STRING, version);
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
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" >&5
28558 echo "${ECHO_T}$ol_cv_db_db" >&6
28560 if test $ol_cv_db_db = yes ; then
28566 elif test $ol_cv_bdb_major = 3 ; then
28567 if test $ol_cv_lib_db = no ; then
28568 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
28569 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
28570 if test "${ol_cv_db_db3+set}" = set; then
28571 echo $ECHO_N "(cached) $ECHO_C" >&6
28576 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28578 cat >conftest.$ac_ext <<_ACEOF
28581 cat confdefs.h >>conftest.$ac_ext
28582 cat >>conftest.$ac_ext <<_ACEOF
28583 /* end confdefs.h. */
28585 #ifdef HAVE_DB_185_H
28586 # include <db_185.h>
28591 #ifndef DB_VERSION_MAJOR
28592 # define DB_VERSION_MAJOR 1
28596 #define NULL ((void*)0)
28603 #if DB_VERSION_MAJOR > 1
28606 int major, minor, patch;
28608 version = db_version( &major, &minor, &patch );
28610 if( major != DB_VERSION_MAJOR ||
28611 minor < DB_VERSION_MINOR )
28613 printf("Berkeley DB version mismatch\n"
28614 "\theader: %s\n\tlibrary: %s\n",
28615 DB_VERSION_STRING, version);
28621 #if DB_VERSION_MAJOR > 2
28622 db_env_create( NULL, 0 );
28623 #elif DB_VERSION_MAJOR > 1
28624 db_appexit( NULL );
28626 (void) dbopen( NULL, 0, 0, 0, NULL);
28633 rm -f conftest.$ac_objext conftest$ac_exeext
28634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28635 (eval $ac_link) 2>conftest.er1
28637 grep -v '^ *+' conftest.er1 >conftest.err
28639 cat conftest.err >&5
28640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28641 (exit $ac_status); } &&
28642 { ac_try='test -z "$ac_c_werror_flag"
28643 || test ! -s conftest.err'
28644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28645 (eval $ac_try) 2>&5
28647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28648 (exit $ac_status); }; } &&
28649 { ac_try='test -s conftest$ac_exeext'
28650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28651 (eval $ac_try) 2>&5
28653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28654 (exit $ac_status); }; }; then
28657 echo "$as_me: failed program was:" >&5
28658 sed 's/^/| /' conftest.$ac_ext >&5
28662 rm -f conftest.err conftest.$ac_objext \
28663 conftest$ac_exeext conftest.$ac_ext
28668 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
28669 echo "${ECHO_T}$ol_cv_db_db3" >&6
28671 if test $ol_cv_db_db3 = yes ; then
28676 if test $ol_cv_lib_db = no ; then
28677 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
28678 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
28679 if test "${ol_cv_db_db_3+set}" = set; then
28680 echo $ECHO_N "(cached) $ECHO_C" >&6
28685 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28687 cat >conftest.$ac_ext <<_ACEOF
28690 cat confdefs.h >>conftest.$ac_ext
28691 cat >>conftest.$ac_ext <<_ACEOF
28692 /* end confdefs.h. */
28694 #ifdef HAVE_DB_185_H
28695 # include <db_185.h>
28700 #ifndef DB_VERSION_MAJOR
28701 # define DB_VERSION_MAJOR 1
28705 #define NULL ((void*)0)
28712 #if DB_VERSION_MAJOR > 1
28715 int major, minor, patch;
28717 version = db_version( &major, &minor, &patch );
28719 if( major != DB_VERSION_MAJOR ||
28720 minor < DB_VERSION_MINOR )
28722 printf("Berkeley DB version mismatch\n"
28723 "\theader: %s\n\tlibrary: %s\n",
28724 DB_VERSION_STRING, version);
28730 #if DB_VERSION_MAJOR > 2
28731 db_env_create( NULL, 0 );
28732 #elif DB_VERSION_MAJOR > 1
28733 db_appexit( NULL );
28735 (void) dbopen( NULL, 0, 0, 0, NULL);
28742 rm -f conftest.$ac_objext conftest$ac_exeext
28743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28744 (eval $ac_link) 2>conftest.er1
28746 grep -v '^ *+' conftest.er1 >conftest.err
28748 cat conftest.err >&5
28749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28750 (exit $ac_status); } &&
28751 { ac_try='test -z "$ac_c_werror_flag"
28752 || test ! -s conftest.err'
28753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28754 (eval $ac_try) 2>&5
28756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28757 (exit $ac_status); }; } &&
28758 { ac_try='test -s conftest$ac_exeext'
28759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28760 (eval $ac_try) 2>&5
28762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28763 (exit $ac_status); }; }; then
28766 echo "$as_me: failed program was:" >&5
28767 sed 's/^/| /' conftest.$ac_ext >&5
28771 rm -f conftest.err conftest.$ac_objext \
28772 conftest$ac_exeext conftest.$ac_ext
28777 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
28778 echo "${ECHO_T}$ol_cv_db_db_3" >&6
28780 if test $ol_cv_db_db_3 = yes ; then
28781 ol_cv_lib_db=-ldb-3
28786 elif test $ol_cv_bdb_major = 2 ; then
28787 if test $ol_cv_lib_db = no ; then
28788 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
28789 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
28790 if test "${ol_cv_db_db2+set}" = set; then
28791 echo $ECHO_N "(cached) $ECHO_C" >&6
28796 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28798 cat >conftest.$ac_ext <<_ACEOF
28801 cat confdefs.h >>conftest.$ac_ext
28802 cat >>conftest.$ac_ext <<_ACEOF
28803 /* end confdefs.h. */
28805 #ifdef HAVE_DB_185_H
28806 # include <db_185.h>
28811 #ifndef DB_VERSION_MAJOR
28812 # define DB_VERSION_MAJOR 1
28816 #define NULL ((void*)0)
28823 #if DB_VERSION_MAJOR > 1
28826 int major, minor, patch;
28828 version = db_version( &major, &minor, &patch );
28830 if( major != DB_VERSION_MAJOR ||
28831 minor < DB_VERSION_MINOR )
28833 printf("Berkeley DB version mismatch\n"
28834 "\theader: %s\n\tlibrary: %s\n",
28835 DB_VERSION_STRING, version);
28841 #if DB_VERSION_MAJOR > 2
28842 db_env_create( NULL, 0 );
28843 #elif DB_VERSION_MAJOR > 1
28844 db_appexit( NULL );
28846 (void) dbopen( NULL, 0, 0, 0, NULL);
28853 rm -f conftest.$ac_objext conftest$ac_exeext
28854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28855 (eval $ac_link) 2>conftest.er1
28857 grep -v '^ *+' conftest.er1 >conftest.err
28859 cat conftest.err >&5
28860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28861 (exit $ac_status); } &&
28862 { ac_try='test -z "$ac_c_werror_flag"
28863 || test ! -s conftest.err'
28864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28865 (eval $ac_try) 2>&5
28867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28868 (exit $ac_status); }; } &&
28869 { ac_try='test -s conftest$ac_exeext'
28870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28871 (eval $ac_try) 2>&5
28873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28874 (exit $ac_status); }; }; then
28877 echo "$as_me: failed program was:" >&5
28878 sed 's/^/| /' conftest.$ac_ext >&5
28882 rm -f conftest.err conftest.$ac_objext \
28883 conftest$ac_exeext conftest.$ac_ext
28888 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
28889 echo "${ECHO_T}$ol_cv_db_db2" >&6
28891 if test $ol_cv_db_db2 = yes ; then
28896 if test $ol_cv_lib_db = no ; then
28897 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
28898 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
28899 if test "${ol_cv_db_db_2+set}" = set; then
28900 echo $ECHO_N "(cached) $ECHO_C" >&6
28905 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28907 cat >conftest.$ac_ext <<_ACEOF
28910 cat confdefs.h >>conftest.$ac_ext
28911 cat >>conftest.$ac_ext <<_ACEOF
28912 /* end confdefs.h. */
28914 #ifdef HAVE_DB_185_H
28915 # include <db_185.h>
28920 #ifndef DB_VERSION_MAJOR
28921 # define DB_VERSION_MAJOR 1
28925 #define NULL ((void*)0)
28932 #if DB_VERSION_MAJOR > 1
28935 int major, minor, patch;
28937 version = db_version( &major, &minor, &patch );
28939 if( major != DB_VERSION_MAJOR ||
28940 minor < DB_VERSION_MINOR )
28942 printf("Berkeley DB version mismatch\n"
28943 "\theader: %s\n\tlibrary: %s\n",
28944 DB_VERSION_STRING, version);
28950 #if DB_VERSION_MAJOR > 2
28951 db_env_create( NULL, 0 );
28952 #elif DB_VERSION_MAJOR > 1
28953 db_appexit( NULL );
28955 (void) dbopen( NULL, 0, 0, 0, NULL);
28962 rm -f conftest.$ac_objext conftest$ac_exeext
28963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28964 (eval $ac_link) 2>conftest.er1
28966 grep -v '^ *+' conftest.er1 >conftest.err
28968 cat conftest.err >&5
28969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28970 (exit $ac_status); } &&
28971 { ac_try='test -z "$ac_c_werror_flag"
28972 || test ! -s conftest.err'
28973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28974 (eval $ac_try) 2>&5
28976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28977 (exit $ac_status); }; } &&
28978 { ac_try='test -s conftest$ac_exeext'
28979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28980 (eval $ac_try) 2>&5
28982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28983 (exit $ac_status); }; }; then
28986 echo "$as_me: failed program was:" >&5
28987 sed 's/^/| /' conftest.$ac_ext >&5
28991 rm -f conftest.err conftest.$ac_objext \
28992 conftest$ac_exeext conftest.$ac_ext
28997 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
28998 echo "${ECHO_T}$ol_cv_db_db_2" >&6
29000 if test $ol_cv_db_db_2 = yes ; then
29001 ol_cv_lib_db=-ldb-2
29006 elif test $ol_cv_bdb_major = 1 ; then
29007 if test $ol_cv_lib_db = no ; then
29008 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
29009 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
29010 if test "${ol_cv_db_db1+set}" = set; then
29011 echo $ECHO_N "(cached) $ECHO_C" >&6
29016 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29018 cat >conftest.$ac_ext <<_ACEOF
29021 cat confdefs.h >>conftest.$ac_ext
29022 cat >>conftest.$ac_ext <<_ACEOF
29023 /* end confdefs.h. */
29025 #ifdef HAVE_DB_185_H
29026 # include <db_185.h>
29031 #ifndef DB_VERSION_MAJOR
29032 # define DB_VERSION_MAJOR 1
29036 #define NULL ((void*)0)
29043 #if DB_VERSION_MAJOR > 1
29046 int major, minor, patch;
29048 version = db_version( &major, &minor, &patch );
29050 if( major != DB_VERSION_MAJOR ||
29051 minor < DB_VERSION_MINOR )
29053 printf("Berkeley DB version mismatch\n"
29054 "\theader: %s\n\tlibrary: %s\n",
29055 DB_VERSION_STRING, version);
29061 #if DB_VERSION_MAJOR > 2
29062 db_env_create( NULL, 0 );
29063 #elif DB_VERSION_MAJOR > 1
29064 db_appexit( NULL );
29066 (void) dbopen( NULL, 0, 0, 0, NULL);
29073 rm -f conftest.$ac_objext conftest$ac_exeext
29074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29075 (eval $ac_link) 2>conftest.er1
29077 grep -v '^ *+' conftest.er1 >conftest.err
29079 cat conftest.err >&5
29080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29081 (exit $ac_status); } &&
29082 { ac_try='test -z "$ac_c_werror_flag"
29083 || test ! -s conftest.err'
29084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29085 (eval $ac_try) 2>&5
29087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29088 (exit $ac_status); }; } &&
29089 { ac_try='test -s conftest$ac_exeext'
29090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29091 (eval $ac_try) 2>&5
29093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29094 (exit $ac_status); }; }; then
29097 echo "$as_me: failed program was:" >&5
29098 sed 's/^/| /' conftest.$ac_ext >&5
29102 rm -f conftest.err conftest.$ac_objext \
29103 conftest$ac_exeext conftest.$ac_ext
29108 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
29109 echo "${ECHO_T}$ol_cv_db_db1" >&6
29111 if test $ol_cv_db_db1 = yes ; then
29116 if test $ol_cv_lib_db = no ; then
29117 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
29118 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
29119 if test "${ol_cv_db_db_1+set}" = set; then
29120 echo $ECHO_N "(cached) $ECHO_C" >&6
29125 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29127 cat >conftest.$ac_ext <<_ACEOF
29130 cat confdefs.h >>conftest.$ac_ext
29131 cat >>conftest.$ac_ext <<_ACEOF
29132 /* end confdefs.h. */
29134 #ifdef HAVE_DB_185_H
29135 # include <db_185.h>
29140 #ifndef DB_VERSION_MAJOR
29141 # define DB_VERSION_MAJOR 1
29145 #define NULL ((void*)0)
29152 #if DB_VERSION_MAJOR > 1
29155 int major, minor, patch;
29157 version = db_version( &major, &minor, &patch );
29159 if( major != DB_VERSION_MAJOR ||
29160 minor < DB_VERSION_MINOR )
29162 printf("Berkeley DB version mismatch\n"
29163 "\theader: %s\n\tlibrary: %s\n",
29164 DB_VERSION_STRING, version);
29170 #if DB_VERSION_MAJOR > 2
29171 db_env_create( NULL, 0 );
29172 #elif DB_VERSION_MAJOR > 1
29173 db_appexit( NULL );
29175 (void) dbopen( NULL, 0, 0, 0, NULL);
29182 rm -f conftest.$ac_objext conftest$ac_exeext
29183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29184 (eval $ac_link) 2>conftest.er1
29186 grep -v '^ *+' conftest.er1 >conftest.err
29188 cat conftest.err >&5
29189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29190 (exit $ac_status); } &&
29191 { ac_try='test -z "$ac_c_werror_flag"
29192 || test ! -s conftest.err'
29193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29194 (eval $ac_try) 2>&5
29196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29197 (exit $ac_status); }; } &&
29198 { ac_try='test -s conftest$ac_exeext'
29199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29200 (eval $ac_try) 2>&5
29202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29203 (exit $ac_status); }; }; then
29206 echo "$as_me: failed program was:" >&5
29207 sed 's/^/| /' conftest.$ac_ext >&5
29211 rm -f conftest.err conftest.$ac_objext \
29212 conftest$ac_exeext conftest.$ac_ext
29217 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
29218 echo "${ECHO_T}$ol_cv_db_db_1" >&6
29220 if test $ol_cv_db_db_1 = yes ; then
29221 ol_cv_lib_db=-ldb-1
29226 if test $ol_cv_lib_db = no ; then
29227 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
29228 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
29229 if test "${ol_cv_db_none+set}" = set; then
29230 echo $ECHO_N "(cached) $ECHO_C" >&6
29235 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29237 cat >conftest.$ac_ext <<_ACEOF
29240 cat confdefs.h >>conftest.$ac_ext
29241 cat >>conftest.$ac_ext <<_ACEOF
29242 /* end confdefs.h. */
29244 #ifdef HAVE_DB_185_H
29245 # include <db_185.h>
29250 #ifndef DB_VERSION_MAJOR
29251 # define DB_VERSION_MAJOR 1
29255 #define NULL ((void*)0)
29262 #if DB_VERSION_MAJOR > 1
29265 int major, minor, patch;
29267 version = db_version( &major, &minor, &patch );
29269 if( major != DB_VERSION_MAJOR ||
29270 minor < DB_VERSION_MINOR )
29272 printf("Berkeley DB version mismatch\n"
29273 "\theader: %s\n\tlibrary: %s\n",
29274 DB_VERSION_STRING, version);
29280 #if DB_VERSION_MAJOR > 2
29281 db_env_create( NULL, 0 );
29282 #elif DB_VERSION_MAJOR > 1
29283 db_appexit( NULL );
29285 (void) dbopen( NULL, 0, 0, 0, NULL);
29292 rm -f conftest.$ac_objext conftest$ac_exeext
29293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29294 (eval $ac_link) 2>conftest.er1
29296 grep -v '^ *+' conftest.er1 >conftest.err
29298 cat conftest.err >&5
29299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29300 (exit $ac_status); } &&
29301 { ac_try='test -z "$ac_c_werror_flag"
29302 || test ! -s conftest.err'
29303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29304 (eval $ac_try) 2>&5
29306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29307 (exit $ac_status); }; } &&
29308 { ac_try='test -s conftest$ac_exeext'
29309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29310 (eval $ac_try) 2>&5
29312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29313 (exit $ac_status); }; }; then
29316 echo "$as_me: failed program was:" >&5
29317 sed 's/^/| /' conftest.$ac_ext >&5
29321 rm -f conftest.err conftest.$ac_objext \
29322 conftest$ac_exeext conftest.$ac_ext
29327 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
29328 echo "${ECHO_T}$ol_cv_db_none" >&6
29330 if test $ol_cv_db_none = yes ; then
29336 if test "$ol_cv_lib_db" != no ; then
29337 ol_cv_berkeley_db=yes
29338 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
29339 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
29340 if test "${ol_cv_berkeley_db_version+set}" = set; then
29341 echo $ECHO_N "(cached) $ECHO_C" >&6
29345 LIBS="$LTHREAD_LIBS $LIBS"
29346 if test $ol_cv_lib_db != yes ; then
29347 LIBS="$ol_cv_lib_db $LIBS"
29350 if test "$cross_compiling" = yes; then
29351 ol_cv_berkeley_db_version=cross
29353 cat >conftest.$ac_ext <<_ACEOF
29356 cat confdefs.h >>conftest.$ac_ext
29357 cat >>conftest.$ac_ext <<_ACEOF
29358 /* end confdefs.h. */
29360 #ifdef HAVE_DB_185_H
29365 #ifndef DB_VERSION_MAJOR
29366 # define DB_VERSION_MAJOR 1
29369 #define NULL ((void *)0)
29373 #if DB_VERSION_MAJOR > 1
29375 int major, minor, patch;
29377 version = db_version( &major, &minor, &patch );
29379 if( major != DB_VERSION_MAJOR ||
29380 minor != DB_VERSION_MINOR ||
29381 patch != DB_VERSION_PATCH )
29383 printf("Berkeley DB version mismatch\n"
29384 "\theader: %s\n\tlibrary: %s\n",
29385 DB_VERSION_STRING, version);
29393 rm -f conftest$ac_exeext
29394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29395 (eval $ac_link) 2>&5
29397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29398 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29400 (eval $ac_try) 2>&5
29402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29403 (exit $ac_status); }; }; then
29404 ol_cv_berkeley_db_version=yes
29406 echo "$as_me: program exited with status $ac_status" >&5
29407 echo "$as_me: failed program was:" >&5
29408 sed 's/^/| /' conftest.$ac_ext >&5
29410 ( exit $ac_status )
29411 ol_cv_berkeley_db_version=no
29413 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29419 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
29420 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
29422 if test $ol_cv_berkeley_db_version = no ; then
29423 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
29424 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
29425 { (exit 1); exit 1; }; }
29428 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
29429 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
29430 if test "${ol_cv_berkeley_db_thread+set}" = set; then
29431 echo $ECHO_N "(cached) $ECHO_C" >&6
29435 LIBS="$LTHREAD_LIBS $LIBS"
29436 if test $ol_cv_lib_db != yes ; then
29437 LIBS="$ol_cv_lib_db $LIBS"
29440 if test "$cross_compiling" = yes; then
29441 ol_cv_berkeley_db_thread=cross
29443 cat >conftest.$ac_ext <<_ACEOF
29446 cat confdefs.h >>conftest.$ac_ext
29447 cat >>conftest.$ac_ext <<_ACEOF
29448 /* end confdefs.h. */
29450 #ifdef HAVE_DB_185_H
29456 #define NULL ((void *)0)
29461 u_int32_t flags = DB_CREATE |
29467 #if DB_VERSION_MAJOR > 2
29468 DB_ENV *env = NULL;
29470 rc = db_env_create( &env, 0 );
29472 flags |= DB_INIT_MPOOL;
29473 #ifdef DB_MPOOL_PRIVATE
29474 flags |= DB_MPOOL_PRIVATE;
29478 printf("BerkeleyDB: %s\n", db_strerror(rc) );
29482 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
29483 rc = (env->open)( env, NULL, flags, 0 );
29485 rc = (env->open)( env, NULL, NULL, flags, 0 );
29489 rc = env->close( env, 0 );
29493 printf("BerkeleyDB: %s\n", db_strerror(rc) );
29499 memset( &env, '\0', sizeof(env) );
29501 rc = db_appinit( NULL, NULL, &env, flags );
29504 db_appexit( &env );
29507 unlink("__db_mpool.share");
29508 unlink("__db_lock.share");
29514 rm -f conftest$ac_exeext
29515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29516 (eval $ac_link) 2>&5
29518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29519 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29521 (eval $ac_try) 2>&5
29523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29524 (exit $ac_status); }; }; then
29525 ol_cv_berkeley_db_thread=yes
29527 echo "$as_me: program exited with status $ac_status" >&5
29528 echo "$as_me: failed program was:" >&5
29529 sed 's/^/| /' conftest.$ac_ext >&5
29531 ( exit $ac_status )
29532 ol_cv_berkeley_db_thread=no
29534 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29540 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
29541 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
29543 if test $ol_cv_berkeley_db_thread != no ; then
29545 cat >>confdefs.h <<\_ACEOF
29546 #define HAVE_BERKELEY_DB_THREAD 1
29555 if test $ol_cv_berkeley_db = no ; then
29556 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
29557 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
29558 { (exit 1); exit 1; }; }
29562 cat >>confdefs.h <<\_ACEOF
29563 #define HAVE_BERKELEY_DB 1
29567 if test $ol_cv_lib_db != yes ; then
29568 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
29571 echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
29572 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
29573 if test "${ol_cv_bdb_compat+set}" = set; then
29574 echo $ECHO_N "(cached) $ECHO_C" >&6
29577 cat >conftest.$ac_ext <<_ACEOF
29580 cat confdefs.h >>conftest.$ac_ext
29581 cat >>conftest.$ac_ext <<_ACEOF
29582 /* end confdefs.h. */
29586 /* this check could be improved */
29587 #ifndef DB_VERSION_MAJOR
29588 # define DB_VERSION_MAJOR 1
29590 #ifndef DB_VERSION_MINOR
29591 # define DB_VERSION_MINOR 0
29594 #define DB_VERSION_MM ((DB_VERSION_MAJOR<<8)|DB_VERSION_MINOR)
29596 /* require 4.4 or later */
29597 #if DB_VERSION_MM >= 0x0404
29598 __db_version_compat
29602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29603 $EGREP "__db_version_compat" >/dev/null 2>&1; then
29604 ol_cv_bdb_compat=yes
29606 ol_cv_bdb_compat=no
29611 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
29612 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
29615 if test $ol_cv_bdb_compat != yes ; then
29616 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
29617 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
29618 { (exit 1); exit 1; }; }
29621 SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
29627 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
29628 BUILD_LIBS_DYNAMIC=shared
29630 cat >>confdefs.h <<\_ACEOF
29631 #define LDAP_LIBS_DYNAMIC 1
29636 BUILD_LIBS_DYNAMIC=static
29640 if test $ol_enable_wrappers != no ; then
29642 for ac_header in tcpd.h
29644 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29646 echo "$as_me:$LINENO: checking for $ac_header" >&5
29647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29649 echo $ECHO_N "(cached) $ECHO_C" >&6
29651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29652 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29654 # Is the header compilable?
29655 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29656 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29657 cat >conftest.$ac_ext <<_ACEOF
29660 cat confdefs.h >>conftest.$ac_ext
29661 cat >>conftest.$ac_ext <<_ACEOF
29662 /* end confdefs.h. */
29663 $ac_includes_default
29664 #include <$ac_header>
29666 rm -f conftest.$ac_objext
29667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29668 (eval $ac_compile) 2>conftest.er1
29670 grep -v '^ *+' conftest.er1 >conftest.err
29672 cat conftest.err >&5
29673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29674 (exit $ac_status); } &&
29675 { ac_try='test -z "$ac_c_werror_flag"
29676 || test ! -s conftest.err'
29677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29678 (eval $ac_try) 2>&5
29680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29681 (exit $ac_status); }; } &&
29682 { ac_try='test -s conftest.$ac_objext'
29683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29684 (eval $ac_try) 2>&5
29686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29687 (exit $ac_status); }; }; then
29688 ac_header_compiler=yes
29690 echo "$as_me: failed program was:" >&5
29691 sed 's/^/| /' conftest.$ac_ext >&5
29693 ac_header_compiler=no
29695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29696 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29697 echo "${ECHO_T}$ac_header_compiler" >&6
29699 # Is the header present?
29700 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29701 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29702 cat >conftest.$ac_ext <<_ACEOF
29705 cat confdefs.h >>conftest.$ac_ext
29706 cat >>conftest.$ac_ext <<_ACEOF
29707 /* end confdefs.h. */
29708 #include <$ac_header>
29710 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29711 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29713 grep -v '^ *+' conftest.er1 >conftest.err
29715 cat conftest.err >&5
29716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29717 (exit $ac_status); } >/dev/null; then
29718 if test -s conftest.err; then
29719 ac_cpp_err=$ac_c_preproc_warn_flag
29720 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29727 if test -z "$ac_cpp_err"; then
29728 ac_header_preproc=yes
29730 echo "$as_me: failed program was:" >&5
29731 sed 's/^/| /' conftest.$ac_ext >&5
29733 ac_header_preproc=no
29735 rm -f conftest.err conftest.$ac_ext
29736 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29737 echo "${ECHO_T}$ac_header_preproc" >&6
29739 # So? What about this header?
29740 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29742 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29743 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29744 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29745 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29746 ac_header_preproc=yes
29749 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29750 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29751 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29752 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29753 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29754 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29755 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29756 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29757 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29758 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29759 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29760 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29763 ## --------------------------------------------- ##
29764 ## Report this to <http://www.openldap.org/its/> ##
29765 ## --------------------------------------------- ##
29768 sed "s/^/$as_me: WARNING: /" >&2
29771 echo "$as_me:$LINENO: checking for $ac_header" >&5
29772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29773 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29774 echo $ECHO_N "(cached) $ECHO_C" >&6
29776 eval "$as_ac_Header=\$ac_header_preproc"
29778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29779 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29782 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29783 cat >>confdefs.h <<_ACEOF
29784 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29787 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
29788 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
29790 LIBS="$LIBS -lwrap"
29791 cat >conftest.$ac_ext <<_ACEOF
29794 cat confdefs.h >>conftest.$ac_ext
29795 cat >>conftest.$ac_ext <<_ACEOF
29796 /* end confdefs.h. */
29799 int allow_severity = 0;
29800 int deny_severity = 0;
29802 struct request_info *req;
29814 rm -f conftest.$ac_objext conftest$ac_exeext
29815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29816 (eval $ac_link) 2>conftest.er1
29818 grep -v '^ *+' conftest.er1 >conftest.err
29820 cat conftest.err >&5
29821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29822 (exit $ac_status); } &&
29823 { ac_try='test -z "$ac_c_werror_flag"
29824 || test ! -s conftest.err'
29825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29826 (eval $ac_try) 2>&5
29828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29829 (exit $ac_status); }; } &&
29830 { ac_try='test -s conftest$ac_exeext'
29831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29832 (eval $ac_try) 2>&5
29834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29835 (exit $ac_status); }; }; then
29836 echo "$as_me:$LINENO: result: -lwrap" >&5
29837 echo "${ECHO_T}-lwrap" >&6
29841 echo "$as_me: failed program was:" >&5
29842 sed 's/^/| /' conftest.$ac_ext >&5
29846 cat >conftest.$ac_ext <<_ACEOF
29849 cat confdefs.h >>conftest.$ac_ext
29850 cat >>conftest.$ac_ext <<_ACEOF
29851 /* end confdefs.h. */
29854 int allow_severity = 0;
29855 int deny_severity = 0;
29857 struct request_info *req;
29869 rm -f conftest.$ac_objext conftest$ac_exeext
29870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29871 (eval $ac_link) 2>conftest.er1
29873 grep -v '^ *+' conftest.er1 >conftest.err
29875 cat conftest.err >&5
29876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29877 (exit $ac_status); } &&
29878 { ac_try='test -z "$ac_c_werror_flag"
29879 || test ! -s conftest.err'
29880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29881 (eval $ac_try) 2>&5
29883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29884 (exit $ac_status); }; } &&
29885 { ac_try='test -s conftest$ac_exeext'
29886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29887 (eval $ac_try) 2>&5
29889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29890 (exit $ac_status); }; }; then
29891 echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
29892 echo "${ECHO_T}-lwrap -lnsl" >&6
29894 LIBS="$save_LIBS -lnsl"
29896 echo "$as_me: failed program was:" >&5
29897 sed 's/^/| /' conftest.$ac_ext >&5
29900 echo "$as_me:$LINENO: result: no" >&5
29901 echo "${ECHO_T}no" >&6
29905 rm -f conftest.err conftest.$ac_objext \
29906 conftest$ac_exeext conftest.$ac_ext
29908 rm -f conftest.err conftest.$ac_objext \
29909 conftest$ac_exeext conftest.$ac_ext
29917 if test $have_wrappers = yes ; then
29919 cat >>confdefs.h <<\_ACEOF
29920 #define HAVE_TCPD 1
29924 elif test $ol_enable_wrappers = yes ; then
29925 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
29926 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
29927 { (exit 1); exit 1; }; }
29929 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
29930 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
29935 if test $ol_enable_syslog != no ; then
29936 echo "$as_me:$LINENO: checking for openlog" >&5
29937 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
29938 if test "${ac_cv_func_openlog+set}" = set; then
29939 echo $ECHO_N "(cached) $ECHO_C" >&6
29941 cat >conftest.$ac_ext <<_ACEOF
29944 cat confdefs.h >>conftest.$ac_ext
29945 cat >>conftest.$ac_ext <<_ACEOF
29946 /* end confdefs.h. */
29947 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
29948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29949 #define openlog innocuous_openlog
29951 /* System header to define __stub macros and hopefully few prototypes,
29952 which can conflict with char openlog (); below.
29953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29954 <limits.h> exists even on freestanding compilers. */
29957 # include <limits.h>
29959 # include <assert.h>
29964 /* Override any gcc2 internal prototype to avoid an error. */
29969 /* We use char because int might match the return type of a gcc2
29970 builtin and then its argument prototype would still apply. */
29972 /* The GNU C library defines this for functions which it implements
29973 to always fail with ENOSYS. Some functions are actually named
29974 something starting with __ and the normal name is an alias. */
29975 #if defined (__stub_openlog) || defined (__stub___openlog)
29978 char (*f) () = openlog;
29987 return f != openlog;
29992 rm -f conftest.$ac_objext conftest$ac_exeext
29993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29994 (eval $ac_link) 2>conftest.er1
29996 grep -v '^ *+' conftest.er1 >conftest.err
29998 cat conftest.err >&5
29999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30000 (exit $ac_status); } &&
30001 { ac_try='test -z "$ac_c_werror_flag"
30002 || test ! -s conftest.err'
30003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30004 (eval $ac_try) 2>&5
30006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30007 (exit $ac_status); }; } &&
30008 { ac_try='test -s conftest$ac_exeext'
30009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30010 (eval $ac_try) 2>&5
30012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30013 (exit $ac_status); }; }; then
30014 ac_cv_func_openlog=yes
30016 echo "$as_me: failed program was:" >&5
30017 sed 's/^/| /' conftest.$ac_ext >&5
30019 ac_cv_func_openlog=no
30021 rm -f conftest.err conftest.$ac_objext \
30022 conftest$ac_exeext conftest.$ac_ext
30024 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
30025 echo "${ECHO_T}$ac_cv_func_openlog" >&6
30027 if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
30028 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
30029 echo "$as_me: error: could not find syslog" >&2;}
30030 { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
30032 ol_enable_syslog=$ac_cv_func_openlog
30036 if test $ol_enable_sql != no ; then
30039 for ac_header in sql.h sqlext.h
30041 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30043 echo "$as_me:$LINENO: checking for $ac_header" >&5
30044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30046 echo $ECHO_N "(cached) $ECHO_C" >&6
30048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30051 # Is the header compilable?
30052 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30053 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30054 cat >conftest.$ac_ext <<_ACEOF
30057 cat confdefs.h >>conftest.$ac_ext
30058 cat >>conftest.$ac_ext <<_ACEOF
30059 /* end confdefs.h. */
30060 $ac_includes_default
30061 #include <$ac_header>
30063 rm -f conftest.$ac_objext
30064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30065 (eval $ac_compile) 2>conftest.er1
30067 grep -v '^ *+' conftest.er1 >conftest.err
30069 cat conftest.err >&5
30070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30071 (exit $ac_status); } &&
30072 { ac_try='test -z "$ac_c_werror_flag"
30073 || test ! -s conftest.err'
30074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30075 (eval $ac_try) 2>&5
30077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30078 (exit $ac_status); }; } &&
30079 { ac_try='test -s conftest.$ac_objext'
30080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30081 (eval $ac_try) 2>&5
30083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30084 (exit $ac_status); }; }; then
30085 ac_header_compiler=yes
30087 echo "$as_me: failed program was:" >&5
30088 sed 's/^/| /' conftest.$ac_ext >&5
30090 ac_header_compiler=no
30092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30093 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30094 echo "${ECHO_T}$ac_header_compiler" >&6
30096 # Is the header present?
30097 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30098 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30099 cat >conftest.$ac_ext <<_ACEOF
30102 cat confdefs.h >>conftest.$ac_ext
30103 cat >>conftest.$ac_ext <<_ACEOF
30104 /* end confdefs.h. */
30105 #include <$ac_header>
30107 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30108 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30110 grep -v '^ *+' conftest.er1 >conftest.err
30112 cat conftest.err >&5
30113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30114 (exit $ac_status); } >/dev/null; then
30115 if test -s conftest.err; then
30116 ac_cpp_err=$ac_c_preproc_warn_flag
30117 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30124 if test -z "$ac_cpp_err"; then
30125 ac_header_preproc=yes
30127 echo "$as_me: failed program was:" >&5
30128 sed 's/^/| /' conftest.$ac_ext >&5
30130 ac_header_preproc=no
30132 rm -f conftest.err conftest.$ac_ext
30133 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30134 echo "${ECHO_T}$ac_header_preproc" >&6
30136 # So? What about this header?
30137 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30139 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30140 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30142 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30143 ac_header_preproc=yes
30146 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30147 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30148 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30149 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30150 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30151 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30152 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30153 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30155 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30156 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30157 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30160 ## --------------------------------------------- ##
30161 ## Report this to <http://www.openldap.org/its/> ##
30162 ## --------------------------------------------- ##
30165 sed "s/^/$as_me: WARNING: /" >&2
30168 echo "$as_me:$LINENO: checking for $ac_header" >&5
30169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30171 echo $ECHO_N "(cached) $ECHO_C" >&6
30173 eval "$as_ac_Header=\$ac_header_preproc"
30175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30176 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30179 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30180 cat >>confdefs.h <<_ACEOF
30181 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30186 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
30187 echo "$as_me: error: could not locate SQL headers" >&2;}
30188 { (exit 1); exit 1; }; }
30196 LIBS="$LTHREAD_LIBS"
30198 if test $ol_with_odbc = auto ; then
30199 ol_with_odbc="iodbc unixodbc odbc32"
30202 for odbc in $ol_with_odbc ; do
30203 if test $ol_link_sql = no ; then
30206 echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
30207 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
30208 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
30209 echo $ECHO_N "(cached) $ECHO_C" >&6
30211 ac_check_lib_save_LIBS=$LIBS
30212 LIBS="-liodbc $LIBS"
30213 cat >conftest.$ac_ext <<_ACEOF
30216 cat confdefs.h >>conftest.$ac_ext
30217 cat >>conftest.$ac_ext <<_ACEOF
30218 /* end confdefs.h. */
30220 /* Override any gcc2 internal prototype to avoid an error. */
30224 /* We use char because int might match the return type of a gcc2
30225 builtin and then its argument prototype would still apply. */
30226 char SQLDriverConnect ();
30230 SQLDriverConnect ();
30235 rm -f conftest.$ac_objext conftest$ac_exeext
30236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30237 (eval $ac_link) 2>conftest.er1
30239 grep -v '^ *+' conftest.er1 >conftest.err
30241 cat conftest.err >&5
30242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30243 (exit $ac_status); } &&
30244 { ac_try='test -z "$ac_c_werror_flag"
30245 || test ! -s conftest.err'
30246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30247 (eval $ac_try) 2>&5
30249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30250 (exit $ac_status); }; } &&
30251 { ac_try='test -s conftest$ac_exeext'
30252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30253 (eval $ac_try) 2>&5
30255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30256 (exit $ac_status); }; }; then
30257 ac_cv_lib_iodbc_SQLDriverConnect=yes
30259 echo "$as_me: failed program was:" >&5
30260 sed 's/^/| /' conftest.$ac_ext >&5
30262 ac_cv_lib_iodbc_SQLDriverConnect=no
30264 rm -f conftest.err conftest.$ac_objext \
30265 conftest$ac_exeext conftest.$ac_ext
30266 LIBS=$ac_check_lib_save_LIBS
30268 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
30269 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
30270 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
30276 if test $have_iodbc = yes ; then
30277 ol_link_sql="-liodbc"
30282 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
30283 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
30284 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
30285 echo $ECHO_N "(cached) $ECHO_C" >&6
30287 ac_check_lib_save_LIBS=$LIBS
30288 LIBS="-lodbc $LIBS"
30289 cat >conftest.$ac_ext <<_ACEOF
30292 cat confdefs.h >>conftest.$ac_ext
30293 cat >>conftest.$ac_ext <<_ACEOF
30294 /* end confdefs.h. */
30296 /* Override any gcc2 internal prototype to avoid an error. */
30300 /* We use char because int might match the return type of a gcc2
30301 builtin and then its argument prototype would still apply. */
30302 char SQLDriverConnect ();
30306 SQLDriverConnect ();
30311 rm -f conftest.$ac_objext conftest$ac_exeext
30312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30313 (eval $ac_link) 2>conftest.er1
30315 grep -v '^ *+' conftest.er1 >conftest.err
30317 cat conftest.err >&5
30318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30319 (exit $ac_status); } &&
30320 { ac_try='test -z "$ac_c_werror_flag"
30321 || test ! -s conftest.err'
30322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30323 (eval $ac_try) 2>&5
30325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30326 (exit $ac_status); }; } &&
30327 { ac_try='test -s conftest$ac_exeext'
30328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30329 (eval $ac_try) 2>&5
30331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30332 (exit $ac_status); }; }; then
30333 ac_cv_lib_odbc_SQLDriverConnect=yes
30335 echo "$as_me: failed program was:" >&5
30336 sed 's/^/| /' conftest.$ac_ext >&5
30338 ac_cv_lib_odbc_SQLDriverConnect=no
30340 rm -f conftest.err conftest.$ac_objext \
30341 conftest$ac_exeext conftest.$ac_ext
30342 LIBS=$ac_check_lib_save_LIBS
30344 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
30345 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
30346 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
30352 if test $have_odbc = yes ; then
30353 ol_link_sql="-lodbc"
30358 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc32" >&5
30359 echo $ECHO_N "checking for SQLDriverConnect in -lodbc32... $ECHO_C" >&6
30360 if test "${ac_cv_lib_odbc32_SQLDriverConnect+set}" = set; then
30361 echo $ECHO_N "(cached) $ECHO_C" >&6
30363 ac_check_lib_save_LIBS=$LIBS
30364 LIBS="-lodbc32 $LIBS"
30365 cat >conftest.$ac_ext <<_ACEOF
30368 cat confdefs.h >>conftest.$ac_ext
30369 cat >>conftest.$ac_ext <<_ACEOF
30370 /* end confdefs.h. */
30372 /* Override any gcc2 internal prototype to avoid an error. */
30376 /* We use char because int might match the return type of a gcc2
30377 builtin and then its argument prototype would still apply. */
30378 char SQLDriverConnect ();
30382 SQLDriverConnect ();
30387 rm -f conftest.$ac_objext conftest$ac_exeext
30388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30389 (eval $ac_link) 2>conftest.er1
30391 grep -v '^ *+' conftest.er1 >conftest.err
30393 cat conftest.err >&5
30394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30395 (exit $ac_status); } &&
30396 { ac_try='test -z "$ac_c_werror_flag"
30397 || test ! -s conftest.err'
30398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30399 (eval $ac_try) 2>&5
30401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30402 (exit $ac_status); }; } &&
30403 { ac_try='test -s conftest$ac_exeext'
30404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30405 (eval $ac_try) 2>&5
30407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30408 (exit $ac_status); }; }; then
30409 ac_cv_lib_odbc32_SQLDriverConnect=yes
30411 echo "$as_me: failed program was:" >&5
30412 sed 's/^/| /' conftest.$ac_ext >&5
30414 ac_cv_lib_odbc32_SQLDriverConnect=no
30416 rm -f conftest.err conftest.$ac_objext \
30417 conftest$ac_exeext conftest.$ac_ext
30418 LIBS=$ac_check_lib_save_LIBS
30420 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc32_SQLDriverConnect" >&5
30421 echo "${ECHO_T}$ac_cv_lib_odbc32_SQLDriverConnect" >&6
30422 if test $ac_cv_lib_odbc32_SQLDriverConnect = yes; then
30428 if test $have_odbc32 = yes ; then
30429 ol_link_sql="-lodbc32"
30434 { { echo "$as_me:$LINENO: error: unknown ODBC library" >&5
30435 echo "$as_me: error: unknown ODBC library" >&2;}
30436 { (exit 1); exit 1; }; }
30444 if test $ol_link_sql != no ; then
30445 SLAPD_SQL_LIBS="$ol_link_sql"
30447 elif test $ol_enable_sql != auto ; then
30448 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
30449 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
30450 { (exit 1); exit 1; }; }
30455 if test $ol_enable_ndb != no ; then
30456 # Extract the first word of "mysql_config", so it can be a program name with args.
30457 set dummy mysql_config; ac_word=$2
30458 echo "$as_me:$LINENO: checking for $ac_word" >&5
30459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30460 if test "${ac_cv_prog_MYSQL+set}" = set; then
30461 echo $ECHO_N "(cached) $ECHO_C" >&6
30463 if test -n "$MYSQL"; then
30464 ac_cv_prog_MYSQL="$MYSQL" # Let the user override the test.
30466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30467 for as_dir in $PATH
30470 test -z "$as_dir" && as_dir=.
30471 for ac_exec_ext in '' $ac_executable_extensions; do
30472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30473 ac_cv_prog_MYSQL="yes"
30474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30482 MYSQL=$ac_cv_prog_MYSQL
30483 if test -n "$MYSQL"; then
30484 echo "$as_me:$LINENO: result: $MYSQL" >&5
30485 echo "${ECHO_T}$MYSQL" >&6
30487 echo "$as_me:$LINENO: result: no" >&5
30488 echo "${ECHO_T}no" >&6
30491 if test "$MYSQL" != yes ; then
30492 { { echo "$as_me:$LINENO: error: could not locate mysql_config" >&5
30493 echo "$as_me: error: could not locate mysql_config" >&2;}
30494 { (exit 1); exit 1; }; }
30497 SQL_INC=`mysql_config --include`
30498 SLAPD_NDB_INCS="$SQL_INC $SQL_INC/storage/ndb $SQL_INC/storage/ndb/ndbapi"
30500 save_CPPFLAGS="$CPPFLAGS"
30501 CPPFLAGS="$SLAPD_NDB_INCS"
30502 echo "$as_me:$LINENO: checking for NdbApi.hpp" >&5
30503 echo $ECHO_N "checking for NdbApi.hpp... $ECHO_C" >&6
30504 cat >conftest.$ac_ext <<_ACEOF
30507 cat confdefs.h >>conftest.$ac_ext
30508 cat >>conftest.$ac_ext <<_ACEOF
30509 /* end confdefs.h. */
30510 #include <NdbApi.hpp>
30512 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30513 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30515 grep -v '^ *+' conftest.er1 >conftest.err
30517 cat conftest.err >&5
30518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30519 (exit $ac_status); } >/dev/null; then
30520 if test -s conftest.err; then
30521 ac_cpp_err=$ac_c_preproc_warn_flag
30522 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30529 if test -z "$ac_cpp_err"; then
30530 echo "$as_me:$LINENO: result: yes" >&5
30531 echo "${ECHO_T}yes" >&6
30533 echo "$as_me: failed program was:" >&5
30534 sed 's/^/| /' conftest.$ac_ext >&5
30536 { { echo "$as_me:$LINENO: error: could not locate NdbApi headers" >&5
30537 echo "$as_me: error: could not locate NdbApi headers" >&2;}
30538 { (exit 1); exit 1; }; }
30541 rm -f conftest.err conftest.$ac_ext
30542 CPPFLAGS="$save_CPPFLAGS"
30544 SQL_LIB=`mysql_config --libs_r`
30545 SLAPD_NDB_LIBS="$SQL_LIB -lndbclient -lstdc++"
30547 save_LDFLAGS="$LDFLAGS"
30551 echo "$as_me:$LINENO: checking for ndb_init in -lndbclient" >&5
30552 echo $ECHO_N "checking for ndb_init in -lndbclient... $ECHO_C" >&6
30553 if test "${ac_cv_lib_ndbclient_ndb_init+set}" = set; then
30554 echo $ECHO_N "(cached) $ECHO_C" >&6
30556 ac_check_lib_save_LIBS=$LIBS
30557 LIBS="-lndbclient -lstdc++ $LIBS"
30558 cat >conftest.$ac_ext <<_ACEOF
30561 cat confdefs.h >>conftest.$ac_ext
30562 cat >>conftest.$ac_ext <<_ACEOF
30563 /* end confdefs.h. */
30565 /* Override any gcc2 internal prototype to avoid an error. */
30569 /* We use char because int might match the return type of a gcc2
30570 builtin and then its argument prototype would still apply. */
30580 rm -f conftest.$ac_objext conftest$ac_exeext
30581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30582 (eval $ac_link) 2>conftest.er1
30584 grep -v '^ *+' conftest.er1 >conftest.err
30586 cat conftest.err >&5
30587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30588 (exit $ac_status); } &&
30589 { ac_try='test -z "$ac_c_werror_flag"
30590 || test ! -s conftest.err'
30591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30592 (eval $ac_try) 2>&5
30594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30595 (exit $ac_status); }; } &&
30596 { ac_try='test -s conftest$ac_exeext'
30597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30598 (eval $ac_try) 2>&5
30600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30601 (exit $ac_status); }; }; then
30602 ac_cv_lib_ndbclient_ndb_init=yes
30604 echo "$as_me: failed program was:" >&5
30605 sed 's/^/| /' conftest.$ac_ext >&5
30607 ac_cv_lib_ndbclient_ndb_init=no
30609 rm -f conftest.err conftest.$ac_objext \
30610 conftest$ac_exeext conftest.$ac_ext
30611 LIBS=$ac_check_lib_save_LIBS
30613 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbclient_ndb_init" >&5
30614 echo "${ECHO_T}$ac_cv_lib_ndbclient_ndb_init" >&6
30615 if test $ac_cv_lib_ndbclient_ndb_init = yes; then
30616 cat >>confdefs.h <<_ACEOF
30617 #define HAVE_LIBNDBCLIENT 1
30620 LIBS="-lndbclient $LIBS"
30624 { { echo "$as_me:$LINENO: error: could not locate ndbclient library" >&5
30625 echo "$as_me: error: could not locate ndbclient library" >&2;}
30626 { (exit 1); exit 1; }; }
30631 LDFLAGS="$save_LDFLAGS"
30633 if test "$ol_enable_ndb" = yes ; then
30634 SLAPD_LIBS="$SLAPD_LIBS \$(SLAPD_NDB_LIBS)"
30640 for ac_header in unicode/utypes.h
30642 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30643 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30644 echo "$as_me:$LINENO: checking for $ac_header" >&5
30645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30647 echo $ECHO_N "(cached) $ECHO_C" >&6
30649 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30650 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30652 # Is the header compilable?
30653 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30654 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30655 cat >conftest.$ac_ext <<_ACEOF
30658 cat confdefs.h >>conftest.$ac_ext
30659 cat >>conftest.$ac_ext <<_ACEOF
30660 /* end confdefs.h. */
30661 $ac_includes_default
30662 #include <$ac_header>
30664 rm -f conftest.$ac_objext
30665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30666 (eval $ac_compile) 2>conftest.er1
30668 grep -v '^ *+' conftest.er1 >conftest.err
30670 cat conftest.err >&5
30671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30672 (exit $ac_status); } &&
30673 { ac_try='test -z "$ac_c_werror_flag"
30674 || test ! -s conftest.err'
30675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30676 (eval $ac_try) 2>&5
30678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30679 (exit $ac_status); }; } &&
30680 { ac_try='test -s conftest.$ac_objext'
30681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30682 (eval $ac_try) 2>&5
30684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30685 (exit $ac_status); }; }; then
30686 ac_header_compiler=yes
30688 echo "$as_me: failed program was:" >&5
30689 sed 's/^/| /' conftest.$ac_ext >&5
30691 ac_header_compiler=no
30693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30694 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30695 echo "${ECHO_T}$ac_header_compiler" >&6
30697 # Is the header present?
30698 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30699 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30700 cat >conftest.$ac_ext <<_ACEOF
30703 cat confdefs.h >>conftest.$ac_ext
30704 cat >>conftest.$ac_ext <<_ACEOF
30705 /* end confdefs.h. */
30706 #include <$ac_header>
30708 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30709 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30711 grep -v '^ *+' conftest.er1 >conftest.err
30713 cat conftest.err >&5
30714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30715 (exit $ac_status); } >/dev/null; then
30716 if test -s conftest.err; then
30717 ac_cpp_err=$ac_c_preproc_warn_flag
30718 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30725 if test -z "$ac_cpp_err"; then
30726 ac_header_preproc=yes
30728 echo "$as_me: failed program was:" >&5
30729 sed 's/^/| /' conftest.$ac_ext >&5
30731 ac_header_preproc=no
30733 rm -f conftest.err conftest.$ac_ext
30734 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30735 echo "${ECHO_T}$ac_header_preproc" >&6
30737 # So? What about this header?
30738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30740 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30741 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30743 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30744 ac_header_preproc=yes
30747 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30748 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30749 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30750 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30751 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30752 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30753 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30754 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30756 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30757 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30758 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30761 ## --------------------------------------------- ##
30762 ## Report this to <http://www.openldap.org/its/> ##
30763 ## --------------------------------------------- ##
30766 sed "s/^/$as_me: WARNING: /" >&2
30769 echo "$as_me:$LINENO: checking for $ac_header" >&5
30770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30771 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30772 echo $ECHO_N "(cached) $ECHO_C" >&6
30774 eval "$as_ac_Header=\$ac_header_preproc"
30776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30777 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30780 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30781 cat >>confdefs.h <<_ACEOF
30782 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30789 if test $ac_cv_header_unicode_utypes_h = yes ; then
30790 OL_ICULIBS="-licuuc -licudata"
30792 echo "$as_me:$LINENO: checking for ICU libraries" >&5
30793 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6
30794 if test "${ol_cv_lib_icu+set}" = set; then
30795 echo $ECHO_N "(cached) $ECHO_C" >&6
30799 LIBS="$OL_ICULIBS $LIBS"
30800 cat >conftest.$ac_ext <<_ACEOF
30803 cat confdefs.h >>conftest.$ac_ext
30804 cat >>conftest.$ac_ext <<_ACEOF
30805 /* end confdefs.h. */
30807 #include <unicode/utypes.h>
30813 (void) u_errorName(0);
30819 rm -f conftest.$ac_objext conftest$ac_exeext
30820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30821 (eval $ac_link) 2>conftest.er1
30823 grep -v '^ *+' conftest.er1 >conftest.err
30825 cat conftest.err >&5
30826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30827 (exit $ac_status); } &&
30828 { ac_try='test -z "$ac_c_werror_flag"
30829 || test ! -s conftest.err'
30830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30831 (eval $ac_try) 2>&5
30833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30834 (exit $ac_status); }; } &&
30835 { ac_try='test -s conftest$ac_exeext'
30836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30837 (eval $ac_try) 2>&5
30839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30840 (exit $ac_status); }; }; then
30843 echo "$as_me: failed program was:" >&5
30844 sed 's/^/| /' conftest.$ac_ext >&5
30848 rm -f conftest.err conftest.$ac_objext \
30849 conftest$ac_exeext conftest.$ac_ext
30853 echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
30854 echo "${ECHO_T}$ol_cv_lib_icu" >&6
30856 if test $ol_cv_lib_icu != no ; then
30857 ol_icu="$OL_ICULIBS"
30859 cat >>confdefs.h <<\_ACEOF
30866 if test "$ol_icu" = no ; then
30867 { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
30868 echo "$as_me: WARNING: ICU not available" >&2;}
30875 if test $ol_with_cyrus_sasl != no ; then
30878 for ac_header in sasl/sasl.h sasl.h
30880 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30881 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30882 echo "$as_me:$LINENO: checking for $ac_header" >&5
30883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30884 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30885 echo $ECHO_N "(cached) $ECHO_C" >&6
30887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30888 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30890 # Is the header compilable?
30891 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30892 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30893 cat >conftest.$ac_ext <<_ACEOF
30896 cat confdefs.h >>conftest.$ac_ext
30897 cat >>conftest.$ac_ext <<_ACEOF
30898 /* end confdefs.h. */
30899 $ac_includes_default
30900 #include <$ac_header>
30902 rm -f conftest.$ac_objext
30903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30904 (eval $ac_compile) 2>conftest.er1
30906 grep -v '^ *+' conftest.er1 >conftest.err
30908 cat conftest.err >&5
30909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30910 (exit $ac_status); } &&
30911 { ac_try='test -z "$ac_c_werror_flag"
30912 || test ! -s conftest.err'
30913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30914 (eval $ac_try) 2>&5
30916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30917 (exit $ac_status); }; } &&
30918 { ac_try='test -s conftest.$ac_objext'
30919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30920 (eval $ac_try) 2>&5
30922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30923 (exit $ac_status); }; }; then
30924 ac_header_compiler=yes
30926 echo "$as_me: failed program was:" >&5
30927 sed 's/^/| /' conftest.$ac_ext >&5
30929 ac_header_compiler=no
30931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30932 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30933 echo "${ECHO_T}$ac_header_compiler" >&6
30935 # Is the header present?
30936 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30937 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30938 cat >conftest.$ac_ext <<_ACEOF
30941 cat confdefs.h >>conftest.$ac_ext
30942 cat >>conftest.$ac_ext <<_ACEOF
30943 /* end confdefs.h. */
30944 #include <$ac_header>
30946 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30947 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30949 grep -v '^ *+' conftest.er1 >conftest.err
30951 cat conftest.err >&5
30952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30953 (exit $ac_status); } >/dev/null; then
30954 if test -s conftest.err; then
30955 ac_cpp_err=$ac_c_preproc_warn_flag
30956 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30963 if test -z "$ac_cpp_err"; then
30964 ac_header_preproc=yes
30966 echo "$as_me: failed program was:" >&5
30967 sed 's/^/| /' conftest.$ac_ext >&5
30969 ac_header_preproc=no
30971 rm -f conftest.err conftest.$ac_ext
30972 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30973 echo "${ECHO_T}$ac_header_preproc" >&6
30975 # So? What about this header?
30976 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30978 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30979 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30981 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30982 ac_header_preproc=yes
30985 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30986 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30987 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30988 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30989 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30990 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30991 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30992 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30993 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30994 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30995 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30996 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30999 ## --------------------------------------------- ##
31000 ## Report this to <http://www.openldap.org/its/> ##
31001 ## --------------------------------------------- ##
31004 sed "s/^/$as_me: WARNING: /" >&2
31007 echo "$as_me:$LINENO: checking for $ac_header" >&5
31008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31009 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31010 echo $ECHO_N "(cached) $ECHO_C" >&6
31012 eval "$as_ac_Header=\$ac_header_preproc"
31014 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31015 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31018 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31019 cat >>confdefs.h <<_ACEOF
31020 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31028 if test $ac_cv_header_sasl_sasl_h = yes ||
31029 test $ac_cv_header_sasl_h = yes; then
31030 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
31031 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
31032 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
31033 echo $ECHO_N "(cached) $ECHO_C" >&6
31035 ac_check_lib_save_LIBS=$LIBS
31036 LIBS="-lsasl2 $LIBS"
31037 cat >conftest.$ac_ext <<_ACEOF
31040 cat confdefs.h >>conftest.$ac_ext
31041 cat >>conftest.$ac_ext <<_ACEOF
31042 /* end confdefs.h. */
31044 /* Override any gcc2 internal prototype to avoid an error. */
31048 /* We use char because int might match the return type of a gcc2
31049 builtin and then its argument prototype would still apply. */
31050 char sasl_client_init ();
31054 sasl_client_init ();
31059 rm -f conftest.$ac_objext conftest$ac_exeext
31060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31061 (eval $ac_link) 2>conftest.er1
31063 grep -v '^ *+' conftest.er1 >conftest.err
31065 cat conftest.err >&5
31066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31067 (exit $ac_status); } &&
31068 { ac_try='test -z "$ac_c_werror_flag"
31069 || test ! -s conftest.err'
31070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31071 (eval $ac_try) 2>&5
31073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31074 (exit $ac_status); }; } &&
31075 { ac_try='test -s conftest$ac_exeext'
31076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31077 (eval $ac_try) 2>&5
31079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31080 (exit $ac_status); }; }; then
31081 ac_cv_lib_sasl2_sasl_client_init=yes
31083 echo "$as_me: failed program was:" >&5
31084 sed 's/^/| /' conftest.$ac_ext >&5
31086 ac_cv_lib_sasl2_sasl_client_init=no
31088 rm -f conftest.err conftest.$ac_objext \
31089 conftest$ac_exeext conftest.$ac_ext
31090 LIBS=$ac_check_lib_save_LIBS
31092 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
31093 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
31094 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
31095 ol_link_sasl="-lsasl2"
31097 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
31098 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
31099 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
31100 echo $ECHO_N "(cached) $ECHO_C" >&6
31102 ac_check_lib_save_LIBS=$LIBS
31103 LIBS="-lsasl $LIBS"
31104 cat >conftest.$ac_ext <<_ACEOF
31107 cat confdefs.h >>conftest.$ac_ext
31108 cat >>conftest.$ac_ext <<_ACEOF
31109 /* end confdefs.h. */
31111 /* Override any gcc2 internal prototype to avoid an error. */
31115 /* We use char because int might match the return type of a gcc2
31116 builtin and then its argument prototype would still apply. */
31117 char sasl_client_init ();
31121 sasl_client_init ();
31126 rm -f conftest.$ac_objext conftest$ac_exeext
31127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31128 (eval $ac_link) 2>conftest.er1
31130 grep -v '^ *+' conftest.er1 >conftest.err
31132 cat conftest.err >&5
31133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31134 (exit $ac_status); } &&
31135 { ac_try='test -z "$ac_c_werror_flag"
31136 || test ! -s conftest.err'
31137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31138 (eval $ac_try) 2>&5
31140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31141 (exit $ac_status); }; } &&
31142 { ac_try='test -s conftest$ac_exeext'
31143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31144 (eval $ac_try) 2>&5
31146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31147 (exit $ac_status); }; }; then
31148 ac_cv_lib_sasl_sasl_client_init=yes
31150 echo "$as_me: failed program was:" >&5
31151 sed 's/^/| /' conftest.$ac_ext >&5
31153 ac_cv_lib_sasl_sasl_client_init=no
31155 rm -f conftest.err conftest.$ac_objext \
31156 conftest$ac_exeext conftest.$ac_ext
31157 LIBS=$ac_check_lib_save_LIBS
31159 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
31160 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
31161 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
31162 ol_link_sasl="-lsasl"
31169 if test $ol_link_sasl = no ; then
31170 if test $ol_with_cyrus_sasl != auto ; then
31171 { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
31172 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
31173 { (exit 1); exit 1; }; }
31175 { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
31176 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
31177 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
31178 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
31179 if test $ol_link_tls = no ; then
31180 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
31181 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
31185 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
31186 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
31187 if test "${ol_cv_sasl_compat+set}" = set; then
31188 echo $ECHO_N "(cached) $ECHO_C" >&6
31191 cat >conftest.$ac_ext <<_ACEOF
31194 cat confdefs.h >>conftest.$ac_ext
31195 cat >>conftest.$ac_ext <<_ACEOF
31196 /* end confdefs.h. */
31198 #ifdef HAVE_SASL_SASL_H
31199 #include <sasl/sasl.h>
31204 /* Require 2.1.15+ */
31205 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
31206 char *__sasl_compat = "2.2+ or better okay (we guess)";
31207 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
31208 && SASL_VERSION_STEP >=15
31209 char *__sasl_compat = "2.1.15+ or better okay";
31213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31214 $EGREP "__sasl_compat" >/dev/null 2>&1; then
31215 ol_cv_sasl_compat=yes
31217 ol_cv_sasl_compat=no
31222 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
31223 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
31225 if test $ol_cv_sasl_compat = no ; then
31227 { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
31228 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
31229 { (exit 1); exit 1; }; }
31233 cat >>confdefs.h <<\_ACEOF
31234 #define HAVE_CYRUS_SASL 1
31237 SASL_LIBS="$ol_link_sasl"
31238 if test $ol_enable_spasswd != no ; then
31239 ol_link_spasswd=yes
31242 ac_save_LIBS="$LIBS"
31243 LIBS="$LIBS $ol_link_sasl"
31244 echo "$as_me:$LINENO: checking for sasl_version" >&5
31245 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
31246 if test "${ac_cv_func_sasl_version+set}" = set; then
31247 echo $ECHO_N "(cached) $ECHO_C" >&6
31249 cat >conftest.$ac_ext <<_ACEOF
31252 cat confdefs.h >>conftest.$ac_ext
31253 cat >>conftest.$ac_ext <<_ACEOF
31254 /* end confdefs.h. */
31255 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
31256 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31257 #define sasl_version innocuous_sasl_version
31259 /* System header to define __stub macros and hopefully few prototypes,
31260 which can conflict with char sasl_version (); below.
31261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31262 <limits.h> exists even on freestanding compilers. */
31265 # include <limits.h>
31267 # include <assert.h>
31270 #undef sasl_version
31272 /* Override any gcc2 internal prototype to avoid an error. */
31277 /* We use char because int might match the return type of a gcc2
31278 builtin and then its argument prototype would still apply. */
31279 char sasl_version ();
31280 /* The GNU C library defines this for functions which it implements
31281 to always fail with ENOSYS. Some functions are actually named
31282 something starting with __ and the normal name is an alias. */
31283 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
31286 char (*f) () = sasl_version;
31295 return f != sasl_version;
31300 rm -f conftest.$ac_objext conftest$ac_exeext
31301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31302 (eval $ac_link) 2>conftest.er1
31304 grep -v '^ *+' conftest.er1 >conftest.err
31306 cat conftest.err >&5
31307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31308 (exit $ac_status); } &&
31309 { ac_try='test -z "$ac_c_werror_flag"
31310 || test ! -s conftest.err'
31311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31312 (eval $ac_try) 2>&5
31314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31315 (exit $ac_status); }; } &&
31316 { ac_try='test -s conftest$ac_exeext'
31317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31318 (eval $ac_try) 2>&5
31320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31321 (exit $ac_status); }; }; then
31322 ac_cv_func_sasl_version=yes
31324 echo "$as_me: failed program was:" >&5
31325 sed 's/^/| /' conftest.$ac_ext >&5
31327 ac_cv_func_sasl_version=no
31329 rm -f conftest.err conftest.$ac_objext \
31330 conftest$ac_exeext conftest.$ac_ext
31332 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
31333 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
31334 if test $ac_cv_func_sasl_version = yes; then
31336 cat >>confdefs.h <<\_ACEOF
31337 #define HAVE_SASL_VERSION 1
31342 LIBS="$ac_save_LIBS"
31348 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
31349 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
31350 if test $ol_link_tls = no ; then
31351 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
31352 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
31356 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
31358 if test -r /dev/urandom ; then
31359 dev="/dev/urandom";
31360 elif test -r /idev/urandom ; then
31361 dev="/idev/urandom";
31362 elif test -r /dev/srandom ; then
31363 dev="/dev/srandom";
31364 elif test -r /dev/random ; then
31366 elif test -r /idev/random ; then
31367 dev="/idev/random";
31370 if test $dev != no ; then
31372 cat >>confdefs.h <<_ACEOF
31373 #define URANDOM_DEVICE "$dev"
31380 if test $ol_with_fetch != no ; then
31382 LIBS="-lfetch -lcom_err $LIBS"
31383 echo "$as_me:$LINENO: checking fetch(3) library" >&5
31384 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
31385 if test "${ol_cv_lib_fetch+set}" = set; then
31386 echo $ECHO_N "(cached) $ECHO_C" >&6
31389 cat >conftest.$ac_ext <<_ACEOF
31392 cat confdefs.h >>conftest.$ac_ext
31393 cat >>conftest.$ac_ext <<_ACEOF
31394 /* end confdefs.h. */
31396 #include <sys/param.h>
31402 struct url *u = fetchParseURL("file:///");
31407 rm -f conftest.$ac_objext conftest$ac_exeext
31408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31409 (eval $ac_link) 2>conftest.er1
31411 grep -v '^ *+' conftest.er1 >conftest.err
31413 cat conftest.err >&5
31414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31415 (exit $ac_status); } &&
31416 { ac_try='test -z "$ac_c_werror_flag"
31417 || test ! -s conftest.err'
31418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31419 (eval $ac_try) 2>&5
31421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31422 (exit $ac_status); }; } &&
31423 { ac_try='test -s conftest$ac_exeext'
31424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31425 (eval $ac_try) 2>&5
31427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31428 (exit $ac_status); }; }; then
31429 ol_cv_lib_fetch=yes
31431 echo "$as_me: failed program was:" >&5
31432 sed 's/^/| /' conftest.$ac_ext >&5
31436 rm -f conftest.err conftest.$ac_objext \
31437 conftest$ac_exeext conftest.$ac_ext
31439 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
31440 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
31442 if test $ol_cv_lib_fetch != no ; then
31443 ol_link_fetch="-lfetch -lcom_err"
31445 cat >>confdefs.h <<\_ACEOF
31446 #define HAVE_FETCH 1
31452 if test $ol_cv_lib_fetch != no ; then
31453 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
31454 ol_link_fetch=freebsd
31456 elif test $ol_with_fetch != auto ; then
31457 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
31458 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
31459 { (exit 1); exit 1; }; }
31463 if test $ol_enable_crypt != no ; then
31465 LIBS="$TLS_LIBS $LIBS"
31467 echo "$as_me:$LINENO: checking for crypt" >&5
31468 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
31469 if test "${ac_cv_func_crypt+set}" = set; then
31470 echo $ECHO_N "(cached) $ECHO_C" >&6
31472 cat >conftest.$ac_ext <<_ACEOF
31475 cat confdefs.h >>conftest.$ac_ext
31476 cat >>conftest.$ac_ext <<_ACEOF
31477 /* end confdefs.h. */
31478 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
31479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31480 #define crypt innocuous_crypt
31482 /* System header to define __stub macros and hopefully few prototypes,
31483 which can conflict with char crypt (); below.
31484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31485 <limits.h> exists even on freestanding compilers. */
31488 # include <limits.h>
31490 # include <assert.h>
31495 /* Override any gcc2 internal prototype to avoid an error. */
31500 /* We use char because int might match the return type of a gcc2
31501 builtin and then its argument prototype would still apply. */
31503 /* The GNU C library defines this for functions which it implements
31504 to always fail with ENOSYS. Some functions are actually named
31505 something starting with __ and the normal name is an alias. */
31506 #if defined (__stub_crypt) || defined (__stub___crypt)
31509 char (*f) () = crypt;
31523 rm -f conftest.$ac_objext conftest$ac_exeext
31524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31525 (eval $ac_link) 2>conftest.er1
31527 grep -v '^ *+' conftest.er1 >conftest.err
31529 cat conftest.err >&5
31530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31531 (exit $ac_status); } &&
31532 { ac_try='test -z "$ac_c_werror_flag"
31533 || test ! -s conftest.err'
31534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31535 (eval $ac_try) 2>&5
31537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31538 (exit $ac_status); }; } &&
31539 { ac_try='test -s conftest$ac_exeext'
31540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31541 (eval $ac_try) 2>&5
31543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31544 (exit $ac_status); }; }; then
31545 ac_cv_func_crypt=yes
31547 echo "$as_me: failed program was:" >&5
31548 sed 's/^/| /' conftest.$ac_ext >&5
31550 ac_cv_func_crypt=no
31552 rm -f conftest.err conftest.$ac_objext \
31553 conftest$ac_exeext conftest.$ac_ext
31555 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
31556 echo "${ECHO_T}$ac_cv_func_crypt" >&6
31557 if test $ac_cv_func_crypt = yes; then
31562 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
31563 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
31564 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
31565 echo $ECHO_N "(cached) $ECHO_C" >&6
31567 ac_check_lib_save_LIBS=$LIBS
31568 LIBS="-lcrypt $LIBS"
31569 cat >conftest.$ac_ext <<_ACEOF
31572 cat confdefs.h >>conftest.$ac_ext
31573 cat >>conftest.$ac_ext <<_ACEOF
31574 /* end confdefs.h. */
31576 /* Override any gcc2 internal prototype to avoid an error. */
31580 /* We use char because int might match the return type of a gcc2
31581 builtin and then its argument prototype would still apply. */
31591 rm -f conftest.$ac_objext conftest$ac_exeext
31592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31593 (eval $ac_link) 2>conftest.er1
31595 grep -v '^ *+' conftest.er1 >conftest.err
31597 cat conftest.err >&5
31598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31599 (exit $ac_status); } &&
31600 { ac_try='test -z "$ac_c_werror_flag"
31601 || test ! -s conftest.err'
31602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31603 (eval $ac_try) 2>&5
31605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31606 (exit $ac_status); }; } &&
31607 { ac_try='test -s conftest$ac_exeext'
31608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31609 (eval $ac_try) 2>&5
31611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31612 (exit $ac_status); }; }; then
31613 ac_cv_lib_crypt_crypt=yes
31615 echo "$as_me: failed program was:" >&5
31616 sed 's/^/| /' conftest.$ac_ext >&5
31618 ac_cv_lib_crypt_crypt=no
31620 rm -f conftest.err conftest.$ac_objext \
31621 conftest$ac_exeext conftest.$ac_ext
31622 LIBS=$ac_check_lib_save_LIBS
31624 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
31625 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
31626 if test $ac_cv_lib_crypt_crypt = yes; then
31627 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
31638 if test $have_crypt = yes ; then
31640 cat >>confdefs.h <<\_ACEOF
31641 #define HAVE_CRYPT 1
31645 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
31646 echo "$as_me: WARNING: could not find crypt" >&2;}
31647 if test $ol_enable_crypt = yes ; then
31648 { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
31649 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
31650 { (exit 1); exit 1; }; }
31653 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
31654 echo "$as_me: WARNING: disabling crypt support" >&2;}
31659 if test $ol_enable_proctitle != no ; then
31660 echo "$as_me:$LINENO: checking for setproctitle" >&5
31661 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
31662 if test "${ac_cv_func_setproctitle+set}" = set; then
31663 echo $ECHO_N "(cached) $ECHO_C" >&6
31665 cat >conftest.$ac_ext <<_ACEOF
31668 cat confdefs.h >>conftest.$ac_ext
31669 cat >>conftest.$ac_ext <<_ACEOF
31670 /* end confdefs.h. */
31671 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
31672 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31673 #define setproctitle innocuous_setproctitle
31675 /* System header to define __stub macros and hopefully few prototypes,
31676 which can conflict with char setproctitle (); below.
31677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31678 <limits.h> exists even on freestanding compilers. */
31681 # include <limits.h>
31683 # include <assert.h>
31686 #undef setproctitle
31688 /* Override any gcc2 internal prototype to avoid an error. */
31693 /* We use char because int might match the return type of a gcc2
31694 builtin and then its argument prototype would still apply. */
31695 char setproctitle ();
31696 /* The GNU C library defines this for functions which it implements
31697 to always fail with ENOSYS. Some functions are actually named
31698 something starting with __ and the normal name is an alias. */
31699 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
31702 char (*f) () = setproctitle;
31711 return f != setproctitle;
31716 rm -f conftest.$ac_objext conftest$ac_exeext
31717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31718 (eval $ac_link) 2>conftest.er1
31720 grep -v '^ *+' conftest.er1 >conftest.err
31722 cat conftest.err >&5
31723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31724 (exit $ac_status); } &&
31725 { ac_try='test -z "$ac_c_werror_flag"
31726 || test ! -s conftest.err'
31727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31728 (eval $ac_try) 2>&5
31730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31731 (exit $ac_status); }; } &&
31732 { ac_try='test -s conftest$ac_exeext'
31733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31734 (eval $ac_try) 2>&5
31736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31737 (exit $ac_status); }; }; then
31738 ac_cv_func_setproctitle=yes
31740 echo "$as_me: failed program was:" >&5
31741 sed 's/^/| /' conftest.$ac_ext >&5
31743 ac_cv_func_setproctitle=no
31745 rm -f conftest.err conftest.$ac_objext \
31746 conftest$ac_exeext conftest.$ac_ext
31748 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
31749 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
31750 if test $ac_cv_func_setproctitle = yes; then
31751 have_setproctitle=yes
31754 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
31755 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
31756 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
31757 echo $ECHO_N "(cached) $ECHO_C" >&6
31759 ac_check_lib_save_LIBS=$LIBS
31760 LIBS="-lutil $LIBS"
31761 cat >conftest.$ac_ext <<_ACEOF
31764 cat confdefs.h >>conftest.$ac_ext
31765 cat >>conftest.$ac_ext <<_ACEOF
31766 /* end confdefs.h. */
31768 /* Override any gcc2 internal prototype to avoid an error. */
31772 /* We use char because int might match the return type of a gcc2
31773 builtin and then its argument prototype would still apply. */
31774 char setproctitle ();
31783 rm -f conftest.$ac_objext conftest$ac_exeext
31784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31785 (eval $ac_link) 2>conftest.er1
31787 grep -v '^ *+' conftest.er1 >conftest.err
31789 cat conftest.err >&5
31790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31791 (exit $ac_status); } &&
31792 { ac_try='test -z "$ac_c_werror_flag"
31793 || test ! -s conftest.err'
31794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31795 (eval $ac_try) 2>&5
31797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31798 (exit $ac_status); }; } &&
31799 { ac_try='test -s conftest$ac_exeext'
31800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31801 (eval $ac_try) 2>&5
31803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31804 (exit $ac_status); }; }; then
31805 ac_cv_lib_util_setproctitle=yes
31807 echo "$as_me: failed program was:" >&5
31808 sed 's/^/| /' conftest.$ac_ext >&5
31810 ac_cv_lib_util_setproctitle=no
31812 rm -f conftest.err conftest.$ac_objext \
31813 conftest$ac_exeext conftest.$ac_ext
31814 LIBS=$ac_check_lib_save_LIBS
31816 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
31817 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
31818 if test $ac_cv_lib_util_setproctitle = yes; then
31819 have_setproctitle=yes
31820 LUTIL_LIBS="$LUTIL_LIBS -lutil"
31822 have_setproctitle=no
31824 "setproctitle.$ac_objext" | \
31825 *" setproctitle.$ac_objext" | \
31826 "setproctitle.$ac_objext "* | \
31827 *" setproctitle.$ac_objext "* ) ;;
31828 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
31831 LIBSRCS="$LIBSRCS setproctitle.c"
31837 if test $have_setproctitle = yes ; then
31839 cat >>confdefs.h <<\_ACEOF
31840 #define HAVE_SETPROCTITLE 1
31846 if test $ol_enable_slp != no ; then
31848 for ac_header in slp.h
31850 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31852 echo "$as_me:$LINENO: checking for $ac_header" >&5
31853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31855 echo $ECHO_N "(cached) $ECHO_C" >&6
31857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31858 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31860 # Is the header compilable?
31861 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31862 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31863 cat >conftest.$ac_ext <<_ACEOF
31866 cat confdefs.h >>conftest.$ac_ext
31867 cat >>conftest.$ac_ext <<_ACEOF
31868 /* end confdefs.h. */
31869 $ac_includes_default
31870 #include <$ac_header>
31872 rm -f conftest.$ac_objext
31873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31874 (eval $ac_compile) 2>conftest.er1
31876 grep -v '^ *+' conftest.er1 >conftest.err
31878 cat conftest.err >&5
31879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31880 (exit $ac_status); } &&
31881 { ac_try='test -z "$ac_c_werror_flag"
31882 || test ! -s conftest.err'
31883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31884 (eval $ac_try) 2>&5
31886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31887 (exit $ac_status); }; } &&
31888 { ac_try='test -s conftest.$ac_objext'
31889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31890 (eval $ac_try) 2>&5
31892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31893 (exit $ac_status); }; }; then
31894 ac_header_compiler=yes
31896 echo "$as_me: failed program was:" >&5
31897 sed 's/^/| /' conftest.$ac_ext >&5
31899 ac_header_compiler=no
31901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31902 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31903 echo "${ECHO_T}$ac_header_compiler" >&6
31905 # Is the header present?
31906 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31907 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31908 cat >conftest.$ac_ext <<_ACEOF
31911 cat confdefs.h >>conftest.$ac_ext
31912 cat >>conftest.$ac_ext <<_ACEOF
31913 /* end confdefs.h. */
31914 #include <$ac_header>
31916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31917 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31919 grep -v '^ *+' conftest.er1 >conftest.err
31921 cat conftest.err >&5
31922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31923 (exit $ac_status); } >/dev/null; then
31924 if test -s conftest.err; then
31925 ac_cpp_err=$ac_c_preproc_warn_flag
31926 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31933 if test -z "$ac_cpp_err"; then
31934 ac_header_preproc=yes
31936 echo "$as_me: failed program was:" >&5
31937 sed 's/^/| /' conftest.$ac_ext >&5
31939 ac_header_preproc=no
31941 rm -f conftest.err conftest.$ac_ext
31942 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31943 echo "${ECHO_T}$ac_header_preproc" >&6
31945 # So? What about this header?
31946 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31948 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31949 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31950 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31951 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31952 ac_header_preproc=yes
31955 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31956 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31957 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31958 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31959 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31960 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31961 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31962 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31964 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31965 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31966 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31969 ## --------------------------------------------- ##
31970 ## Report this to <http://www.openldap.org/its/> ##
31971 ## --------------------------------------------- ##
31974 sed "s/^/$as_me: WARNING: /" >&2
31977 echo "$as_me:$LINENO: checking for $ac_header" >&5
31978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31980 echo $ECHO_N "(cached) $ECHO_C" >&6
31982 eval "$as_ac_Header=\$ac_header_preproc"
31984 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31985 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31988 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31989 cat >>confdefs.h <<_ACEOF
31990 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31998 if test $ac_cv_header_slp_h = yes ; then
31999 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
32000 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
32001 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
32002 echo $ECHO_N "(cached) $ECHO_C" >&6
32004 ac_check_lib_save_LIBS=$LIBS
32006 cat >conftest.$ac_ext <<_ACEOF
32009 cat confdefs.h >>conftest.$ac_ext
32010 cat >>conftest.$ac_ext <<_ACEOF
32011 /* end confdefs.h. */
32013 /* Override any gcc2 internal prototype to avoid an error. */
32017 /* We use char because int might match the return type of a gcc2
32018 builtin and then its argument prototype would still apply. */
32028 rm -f conftest.$ac_objext conftest$ac_exeext
32029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32030 (eval $ac_link) 2>conftest.er1
32032 grep -v '^ *+' conftest.er1 >conftest.err
32034 cat conftest.err >&5
32035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32036 (exit $ac_status); } &&
32037 { ac_try='test -z "$ac_c_werror_flag"
32038 || test ! -s conftest.err'
32039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32040 (eval $ac_try) 2>&5
32042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32043 (exit $ac_status); }; } &&
32044 { ac_try='test -s conftest$ac_exeext'
32045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32046 (eval $ac_try) 2>&5
32048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32049 (exit $ac_status); }; }; then
32050 ac_cv_lib_slp_SLPOpen=yes
32052 echo "$as_me: failed program was:" >&5
32053 sed 's/^/| /' conftest.$ac_ext >&5
32055 ac_cv_lib_slp_SLPOpen=no
32057 rm -f conftest.err conftest.$ac_objext \
32058 conftest$ac_exeext conftest.$ac_ext
32059 LIBS=$ac_check_lib_save_LIBS
32061 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
32062 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
32063 if test $ac_cv_lib_slp_SLPOpen = yes; then
32069 if test $have_slp = yes ; then
32071 cat >>confdefs.h <<\_ACEOF
32075 SLAPD_SLP_LIBS=-lslp
32078 elif test $ol_enable_slp = yes ; then
32079 { { echo "$as_me:$LINENO: error: SLP not found" >&5
32080 echo "$as_me: error: SLP not found" >&2;}
32081 { (exit 1); exit 1; }; }
32086 echo "$as_me:$LINENO: checking for mode_t" >&5
32087 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
32088 if test "${ac_cv_type_mode_t+set}" = set; then
32089 echo $ECHO_N "(cached) $ECHO_C" >&6
32091 cat >conftest.$ac_ext <<_ACEOF
32094 cat confdefs.h >>conftest.$ac_ext
32095 cat >>conftest.$ac_ext <<_ACEOF
32096 /* end confdefs.h. */
32097 $ac_includes_default
32103 if (sizeof (mode_t))
32109 rm -f conftest.$ac_objext
32110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32111 (eval $ac_compile) 2>conftest.er1
32113 grep -v '^ *+' conftest.er1 >conftest.err
32115 cat conftest.err >&5
32116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32117 (exit $ac_status); } &&
32118 { ac_try='test -z "$ac_c_werror_flag"
32119 || test ! -s conftest.err'
32120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32121 (eval $ac_try) 2>&5
32123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32124 (exit $ac_status); }; } &&
32125 { ac_try='test -s conftest.$ac_objext'
32126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32127 (eval $ac_try) 2>&5
32129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32130 (exit $ac_status); }; }; then
32131 ac_cv_type_mode_t=yes
32133 echo "$as_me: failed program was:" >&5
32134 sed 's/^/| /' conftest.$ac_ext >&5
32136 ac_cv_type_mode_t=no
32138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32140 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
32141 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
32142 if test $ac_cv_type_mode_t = yes; then
32146 cat >>confdefs.h <<_ACEOF
32152 echo "$as_me:$LINENO: checking for off_t" >&5
32153 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
32154 if test "${ac_cv_type_off_t+set}" = set; then
32155 echo $ECHO_N "(cached) $ECHO_C" >&6
32157 cat >conftest.$ac_ext <<_ACEOF
32160 cat confdefs.h >>conftest.$ac_ext
32161 cat >>conftest.$ac_ext <<_ACEOF
32162 /* end confdefs.h. */
32163 $ac_includes_default
32169 if (sizeof (off_t))
32175 rm -f conftest.$ac_objext
32176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32177 (eval $ac_compile) 2>conftest.er1
32179 grep -v '^ *+' conftest.er1 >conftest.err
32181 cat conftest.err >&5
32182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32183 (exit $ac_status); } &&
32184 { ac_try='test -z "$ac_c_werror_flag"
32185 || test ! -s conftest.err'
32186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32187 (eval $ac_try) 2>&5
32189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32190 (exit $ac_status); }; } &&
32191 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
32197 ac_cv_type_off_t=yes
32199 echo "$as_me: failed program was:" >&5
32200 sed 's/^/| /' conftest.$ac_ext >&5
32202 ac_cv_type_off_t=no
32204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32206 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
32207 echo "${ECHO_T}$ac_cv_type_off_t" >&6
32208 if test $ac_cv_type_off_t = yes; then
32212 cat >>confdefs.h <<_ACEOF
32218 echo "$as_me:$LINENO: checking for pid_t" >&5
32219 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
32220 if test "${ac_cv_type_pid_t+set}" = set; then
32221 echo $ECHO_N "(cached) $ECHO_C" >&6
32223 cat >conftest.$ac_ext <<_ACEOF
32226 cat confdefs.h >>conftest.$ac_ext
32227 cat >>conftest.$ac_ext <<_ACEOF
32228 /* end confdefs.h. */
32229 $ac_includes_default
32235 if (sizeof (pid_t))
32241 rm -f conftest.$ac_objext
32242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32243 (eval $ac_compile) 2>conftest.er1
32245 grep -v '^ *+' conftest.er1 >conftest.err
32247 cat conftest.err >&5
32248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32249 (exit $ac_status); } &&
32250 { ac_try='test -z "$ac_c_werror_flag"
32251 || test ! -s conftest.err'
32252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32253 (eval $ac_try) 2>&5
32255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32256 (exit $ac_status); }; } &&
32257 { ac_try='test -s conftest.$ac_objext'
32258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32259 (eval $ac_try) 2>&5
32261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32262 (exit $ac_status); }; }; then
32263 ac_cv_type_pid_t=yes
32265 echo "$as_me: failed program was:" >&5
32266 sed 's/^/| /' conftest.$ac_ext >&5
32268 ac_cv_type_pid_t=no
32270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32272 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
32273 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
32274 if test $ac_cv_type_pid_t = yes; then
32278 cat >>confdefs.h <<_ACEOF
32284 echo "$as_me:$LINENO: checking for ssize_t" >&5
32285 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
32286 if test "${ac_cv_type_ssize_t+set}" = set; then
32287 echo $ECHO_N "(cached) $ECHO_C" >&6
32289 cat >conftest.$ac_ext <<_ACEOF
32292 cat confdefs.h >>conftest.$ac_ext
32293 cat >>conftest.$ac_ext <<_ACEOF
32294 /* end confdefs.h. */
32295 $ac_includes_default
32301 if (sizeof (ssize_t))
32307 rm -f conftest.$ac_objext
32308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32309 (eval $ac_compile) 2>conftest.er1
32311 grep -v '^ *+' conftest.er1 >conftest.err
32313 cat conftest.err >&5
32314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32315 (exit $ac_status); } &&
32316 { ac_try='test -z "$ac_c_werror_flag"
32317 || test ! -s conftest.err'
32318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32319 (eval $ac_try) 2>&5
32321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32322 (exit $ac_status); }; } &&
32323 { ac_try='test -s conftest.$ac_objext'
32324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32325 (eval $ac_try) 2>&5
32327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32328 (exit $ac_status); }; }; then
32329 ac_cv_type_ssize_t=yes
32331 echo "$as_me: failed program was:" >&5
32332 sed 's/^/| /' conftest.$ac_ext >&5
32334 ac_cv_type_ssize_t=no
32336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32338 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
32339 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
32340 if test $ac_cv_type_ssize_t = yes; then
32344 cat >>confdefs.h <<_ACEOF
32345 #define ssize_t signed int
32350 echo "$as_me:$LINENO: checking for caddr_t" >&5
32351 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
32352 if test "${ac_cv_type_caddr_t+set}" = set; then
32353 echo $ECHO_N "(cached) $ECHO_C" >&6
32355 cat >conftest.$ac_ext <<_ACEOF
32358 cat confdefs.h >>conftest.$ac_ext
32359 cat >>conftest.$ac_ext <<_ACEOF
32360 /* end confdefs.h. */
32361 $ac_includes_default
32367 if (sizeof (caddr_t))
32373 rm -f conftest.$ac_objext
32374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32375 (eval $ac_compile) 2>conftest.er1
32377 grep -v '^ *+' conftest.er1 >conftest.err
32379 cat conftest.err >&5
32380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32381 (exit $ac_status); } &&
32382 { ac_try='test -z "$ac_c_werror_flag"
32383 || test ! -s conftest.err'
32384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32385 (eval $ac_try) 2>&5
32387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32388 (exit $ac_status); }; } &&
32389 { ac_try='test -s conftest.$ac_objext'
32390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32391 (eval $ac_try) 2>&5
32393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32394 (exit $ac_status); }; }; then
32395 ac_cv_type_caddr_t=yes
32397 echo "$as_me: failed program was:" >&5
32398 sed 's/^/| /' conftest.$ac_ext >&5
32400 ac_cv_type_caddr_t=no
32402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32404 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
32405 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
32406 if test $ac_cv_type_caddr_t = yes; then
32410 cat >>confdefs.h <<_ACEOF
32411 #define caddr_t char *
32416 echo "$as_me:$LINENO: checking for size_t" >&5
32417 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
32418 if test "${ac_cv_type_size_t+set}" = set; then
32419 echo $ECHO_N "(cached) $ECHO_C" >&6
32421 cat >conftest.$ac_ext <<_ACEOF
32424 cat confdefs.h >>conftest.$ac_ext
32425 cat >>conftest.$ac_ext <<_ACEOF
32426 /* end confdefs.h. */
32427 $ac_includes_default
32433 if (sizeof (size_t))
32439 rm -f conftest.$ac_objext
32440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32441 (eval $ac_compile) 2>conftest.er1
32443 grep -v '^ *+' conftest.er1 >conftest.err
32445 cat conftest.err >&5
32446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32447 (exit $ac_status); } &&
32448 { ac_try='test -z "$ac_c_werror_flag"
32449 || test ! -s conftest.err'
32450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32451 (eval $ac_try) 2>&5
32453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32454 (exit $ac_status); }; } &&
32455 { ac_try='test -s conftest.$ac_objext'
32456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32457 (eval $ac_try) 2>&5
32459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32460 (exit $ac_status); }; }; then
32461 ac_cv_type_size_t=yes
32463 echo "$as_me: failed program was:" >&5
32464 sed 's/^/| /' conftest.$ac_ext >&5
32466 ac_cv_type_size_t=no
32468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32470 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
32471 echo "${ECHO_T}$ac_cv_type_size_t" >&6
32472 if test $ac_cv_type_size_t = yes; then
32476 cat >>confdefs.h <<_ACEOF
32477 #define size_t unsigned
32483 echo "$as_me:$LINENO: checking for long long" >&5
32484 echo $ECHO_N "checking for long long... $ECHO_C" >&6
32485 if test "${ac_cv_type_long_long+set}" = set; then
32486 echo $ECHO_N "(cached) $ECHO_C" >&6
32488 cat >conftest.$ac_ext <<_ACEOF
32491 cat confdefs.h >>conftest.$ac_ext
32492 cat >>conftest.$ac_ext <<_ACEOF
32493 /* end confdefs.h. */
32494 $ac_includes_default
32498 if ((long long *) 0)
32500 if (sizeof (long long))
32506 rm -f conftest.$ac_objext
32507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32508 (eval $ac_compile) 2>conftest.er1
32510 grep -v '^ *+' conftest.er1 >conftest.err
32512 cat conftest.err >&5
32513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32514 (exit $ac_status); } &&
32515 { ac_try='test -z "$ac_c_werror_flag"
32516 || test ! -s conftest.err'
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); }; } &&
32522 { ac_try='test -s conftest.$ac_objext'
32523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32524 (eval $ac_try) 2>&5
32526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32527 (exit $ac_status); }; }; then
32528 ac_cv_type_long_long=yes
32530 echo "$as_me: failed program was:" >&5
32531 sed 's/^/| /' conftest.$ac_ext >&5
32533 ac_cv_type_long_long=no
32535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32537 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
32538 echo "${ECHO_T}$ac_cv_type_long_long" >&6
32539 if test $ac_cv_type_long_long = yes; then
32541 cat >>confdefs.h <<_ACEOF
32542 #define HAVE_LONG_LONG 1
32548 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
32549 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
32550 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
32551 echo $ECHO_N "(cached) $ECHO_C" >&6
32553 cat >conftest.$ac_ext <<_ACEOF
32556 cat confdefs.h >>conftest.$ac_ext
32557 cat >>conftest.$ac_ext <<_ACEOF
32558 /* end confdefs.h. */
32559 $ac_includes_default
32563 if ((ptrdiff_t *) 0)
32565 if (sizeof (ptrdiff_t))
32571 rm -f conftest.$ac_objext
32572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32573 (eval $ac_compile) 2>conftest.er1
32575 grep -v '^ *+' conftest.er1 >conftest.err
32577 cat conftest.err >&5
32578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32579 (exit $ac_status); } &&
32580 { ac_try='test -z "$ac_c_werror_flag"
32581 || test ! -s conftest.err'
32582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32583 (eval $ac_try) 2>&5
32585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32586 (exit $ac_status); }; } &&
32587 { ac_try='test -s conftest.$ac_objext'
32588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32589 (eval $ac_try) 2>&5
32591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32592 (exit $ac_status); }; }; then
32593 ac_cv_type_ptrdiff_t=yes
32595 echo "$as_me: failed program was:" >&5
32596 sed 's/^/| /' conftest.$ac_ext >&5
32598 ac_cv_type_ptrdiff_t=no
32600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32602 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
32603 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
32604 if test $ac_cv_type_ptrdiff_t = yes; then
32606 cat >>confdefs.h <<_ACEOF
32607 #define HAVE_PTRDIFF_T 1
32615 echo "$as_me:$LINENO: checking for socklen_t" >&5
32616 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
32617 if test "${ac_cv_type_socklen_t+set}" = set; then
32618 echo $ECHO_N "(cached) $ECHO_C" >&6
32620 cat >conftest.$ac_ext <<_ACEOF
32623 cat confdefs.h >>conftest.$ac_ext
32624 cat >>conftest.$ac_ext <<_ACEOF
32625 /* end confdefs.h. */
32626 $ac_includes_default
32627 #ifdef HAVE_SYS_SOCKET_H
32628 #include <sys/socket.h>
32634 if ((socklen_t *) 0)
32636 if (sizeof (socklen_t))
32642 rm -f conftest.$ac_objext
32643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32644 (eval $ac_compile) 2>conftest.er1
32646 grep -v '^ *+' conftest.er1 >conftest.err
32648 cat conftest.err >&5
32649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32650 (exit $ac_status); } &&
32651 { ac_try='test -z "$ac_c_werror_flag"
32652 || test ! -s conftest.err'
32653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32654 (eval $ac_try) 2>&5
32656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32657 (exit $ac_status); }; } &&
32658 { ac_try='test -s conftest.$ac_objext'
32659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32660 (eval $ac_try) 2>&5
32662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32663 (exit $ac_status); }; }; then
32664 ac_cv_type_socklen_t=yes
32666 echo "$as_me: failed program was:" >&5
32667 sed 's/^/| /' conftest.$ac_ext >&5
32669 ac_cv_type_socklen_t=no
32671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32673 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
32674 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
32677 echo "$as_me:$LINENO: checking the type of arg 3 to accept()" >&5
32678 echo $ECHO_N "checking the type of arg 3 to accept()... $ECHO_C" >&6
32679 if test "${ol_cv_type_ber_socklen_t+set}" = set; then
32680 echo $ECHO_N "(cached) $ECHO_C" >&6
32683 set socklen_t int unsigned "unsigned long" long size_t
32684 test "$ac_cv_type_socklen_t" = yes || shift
32685 ol_cv_type_ber_socklen_t=$1 guessing="guessing "
32686 for lentype in "$@" ; do for addrtype in "struct sockaddr" void ; do
32687 cat >conftest.$ac_ext <<_ACEOF
32690 cat confdefs.h >>conftest.$ac_ext
32691 cat >>conftest.$ac_ext <<_ACEOF
32692 /* end confdefs.h. */
32693 $ac_includes_default
32694 #ifdef HAVE_SYS_SOCKET_H
32695 #include <sys/socket.h>
32697 extern int accept(int s, $addrtype *ap, $lentype *lp);
32703 accept(0, (struct sockaddr *) 0, ($lentype *) 0);
32709 rm -f conftest.$ac_objext
32710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32711 (eval $ac_compile) 2>conftest.er1
32713 grep -v '^ *+' conftest.er1 >conftest.err
32715 cat conftest.err >&5
32716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32717 (exit $ac_status); } &&
32718 { ac_try='test -z "$ac_c_werror_flag"
32719 || test ! -s conftest.err'
32720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32721 (eval $ac_try) 2>&5
32723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32724 (exit $ac_status); }; } &&
32725 { ac_try='test -s conftest.$ac_objext'
32726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32727 (eval $ac_try) 2>&5
32729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32730 (exit $ac_status); }; }; then
32731 ol_cv_type_ber_socklen_t=$lentype guessing= ; break 2
32733 echo "$as_me: failed program was:" >&5
32734 sed 's/^/| /' conftest.$ac_ext >&5
32737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32741 echo "$as_me:$LINENO: result: $guessing$ol_cv_type_ber_socklen_t *" >&5
32742 echo "${ECHO_T}$guessing$ol_cv_type_ber_socklen_t *" >&6
32744 cat >>confdefs.h <<_ACEOF
32745 #define ber_socklen_t $ol_cv_type_ber_socklen_t
32749 if test "$ac_cv_type_socklen_t" != yes; then
32751 cat >>confdefs.h <<_ACEOF
32752 #define socklen_t $ol_cv_type_ber_socklen_t
32758 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
32759 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
32760 if test "${ac_cv_type_signal+set}" = set; then
32761 echo $ECHO_N "(cached) $ECHO_C" >&6
32763 cat >conftest.$ac_ext <<_ACEOF
32766 cat confdefs.h >>conftest.$ac_ext
32767 cat >>conftest.$ac_ext <<_ACEOF
32768 /* end confdefs.h. */
32769 #include <sys/types.h>
32770 #include <signal.h>
32775 extern "C" void (*signal (int, void (*)(int)))(int);
32777 void (*signal ()) ();
32788 rm -f conftest.$ac_objext
32789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32790 (eval $ac_compile) 2>conftest.er1
32792 grep -v '^ *+' conftest.er1 >conftest.err
32794 cat conftest.err >&5
32795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32796 (exit $ac_status); } &&
32797 { ac_try='test -z "$ac_c_werror_flag"
32798 || test ! -s conftest.err'
32799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32800 (eval $ac_try) 2>&5
32802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32803 (exit $ac_status); }; } &&
32804 { ac_try='test -s conftest.$ac_objext'
32805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32806 (eval $ac_try) 2>&5
32808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32809 (exit $ac_status); }; }; then
32810 ac_cv_type_signal=void
32812 echo "$as_me: failed program was:" >&5
32813 sed 's/^/| /' conftest.$ac_ext >&5
32815 ac_cv_type_signal=int
32817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32819 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
32820 echo "${ECHO_T}$ac_cv_type_signal" >&6
32822 cat >>confdefs.h <<_ACEOF
32823 #define RETSIGTYPE $ac_cv_type_signal
32828 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
32829 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
32830 if test "${ac_cv_type_sig_atomic_t+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
32840 #include <signal.h>
32846 if ((sig_atomic_t *) 0)
32848 if (sizeof (sig_atomic_t))
32854 rm -f conftest.$ac_objext
32855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32856 (eval $ac_compile) 2>conftest.er1
32858 grep -v '^ *+' conftest.er1 >conftest.err
32860 cat conftest.err >&5
32861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32862 (exit $ac_status); } &&
32863 { ac_try='test -z "$ac_c_werror_flag"
32864 || test ! -s conftest.err'
32865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32866 (eval $ac_try) 2>&5
32868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32869 (exit $ac_status); }; } &&
32870 { ac_try='test -s conftest.$ac_objext'
32871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32872 (eval $ac_try) 2>&5
32874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32875 (exit $ac_status); }; }; then
32876 ac_cv_type_sig_atomic_t=yes
32878 echo "$as_me: failed program was:" >&5
32879 sed 's/^/| /' conftest.$ac_ext >&5
32881 ac_cv_type_sig_atomic_t=no
32883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32885 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
32886 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
32887 if test $ac_cv_type_sig_atomic_t = yes; then
32891 cat >>confdefs.h <<_ACEOF
32892 #define sig_atomic_t int
32898 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
32899 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
32900 if test "${ac_cv_type_uid_t+set}" = set; then
32901 echo $ECHO_N "(cached) $ECHO_C" >&6
32903 cat >conftest.$ac_ext <<_ACEOF
32906 cat confdefs.h >>conftest.$ac_ext
32907 cat >>conftest.$ac_ext <<_ACEOF
32908 /* end confdefs.h. */
32909 #include <sys/types.h>
32912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32913 $EGREP "uid_t" >/dev/null 2>&1; then
32914 ac_cv_type_uid_t=yes
32916 ac_cv_type_uid_t=no
32921 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
32922 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
32923 if test $ac_cv_type_uid_t = no; then
32925 cat >>confdefs.h <<\_ACEOF
32930 cat >>confdefs.h <<\_ACEOF
32937 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
32938 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
32939 if test "${ac_cv_header_time+set}" = set; then
32940 echo $ECHO_N "(cached) $ECHO_C" >&6
32942 cat >conftest.$ac_ext <<_ACEOF
32945 cat confdefs.h >>conftest.$ac_ext
32946 cat >>conftest.$ac_ext <<_ACEOF
32947 /* end confdefs.h. */
32948 #include <sys/types.h>
32949 #include <sys/time.h>
32955 if ((struct tm *) 0)
32961 rm -f conftest.$ac_objext
32962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32963 (eval $ac_compile) 2>conftest.er1
32965 grep -v '^ *+' conftest.er1 >conftest.err
32967 cat conftest.err >&5
32968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32969 (exit $ac_status); } &&
32970 { ac_try='test -z "$ac_c_werror_flag"
32971 || test ! -s conftest.err'
32972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32973 (eval $ac_try) 2>&5
32975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32976 (exit $ac_status); }; } &&
32977 { ac_try='test -s conftest.$ac_objext'
32978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32979 (eval $ac_try) 2>&5
32981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32982 (exit $ac_status); }; }; then
32983 ac_cv_header_time=yes
32985 echo "$as_me: failed program was:" >&5
32986 sed 's/^/| /' conftest.$ac_ext >&5
32988 ac_cv_header_time=no
32990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32992 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
32993 echo "${ECHO_T}$ac_cv_header_time" >&6
32994 if test $ac_cv_header_time = yes; then
32996 cat >>confdefs.h <<\_ACEOF
32997 #define TIME_WITH_SYS_TIME 1
33002 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
33003 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
33004 if test "${ac_cv_struct_tm+set}" = set; then
33005 echo $ECHO_N "(cached) $ECHO_C" >&6
33007 cat >conftest.$ac_ext <<_ACEOF
33010 cat confdefs.h >>conftest.$ac_ext
33011 cat >>conftest.$ac_ext <<_ACEOF
33012 /* end confdefs.h. */
33013 #include <sys/types.h>
33019 struct tm *tp; tp->tm_sec;
33024 rm -f conftest.$ac_objext
33025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33026 (eval $ac_compile) 2>conftest.er1
33028 grep -v '^ *+' conftest.er1 >conftest.err
33030 cat conftest.err >&5
33031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33032 (exit $ac_status); } &&
33033 { ac_try='test -z "$ac_c_werror_flag"
33034 || test ! -s conftest.err'
33035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33036 (eval $ac_try) 2>&5
33038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33039 (exit $ac_status); }; } &&
33040 { ac_try='test -s conftest.$ac_objext'
33041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33042 (eval $ac_try) 2>&5
33044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33045 (exit $ac_status); }; }; then
33046 ac_cv_struct_tm=time.h
33048 echo "$as_me: failed program was:" >&5
33049 sed 's/^/| /' conftest.$ac_ext >&5
33051 ac_cv_struct_tm=sys/time.h
33053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33055 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
33056 echo "${ECHO_T}$ac_cv_struct_tm" >&6
33057 if test $ac_cv_struct_tm = sys/time.h; then
33059 cat >>confdefs.h <<\_ACEOF
33060 #define TM_IN_SYS_TIME 1
33065 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
33066 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
33067 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
33068 echo $ECHO_N "(cached) $ECHO_C" >&6
33070 cat >conftest.$ac_ext <<_ACEOF
33073 cat confdefs.h >>conftest.$ac_ext
33074 cat >>conftest.$ac_ext <<_ACEOF
33075 /* end confdefs.h. */
33076 $ac_includes_default
33080 static struct stat ac_aggr;
33081 if (ac_aggr.st_blksize)
33087 rm -f conftest.$ac_objext
33088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33089 (eval $ac_compile) 2>conftest.er1
33091 grep -v '^ *+' conftest.er1 >conftest.err
33093 cat conftest.err >&5
33094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33095 (exit $ac_status); } &&
33096 { ac_try='test -z "$ac_c_werror_flag"
33097 || test ! -s conftest.err'
33098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33099 (eval $ac_try) 2>&5
33101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33102 (exit $ac_status); }; } &&
33103 { ac_try='test -s conftest.$ac_objext'
33104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33105 (eval $ac_try) 2>&5
33107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33108 (exit $ac_status); }; }; then
33109 ac_cv_member_struct_stat_st_blksize=yes
33111 echo "$as_me: failed program was:" >&5
33112 sed 's/^/| /' conftest.$ac_ext >&5
33114 cat >conftest.$ac_ext <<_ACEOF
33117 cat confdefs.h >>conftest.$ac_ext
33118 cat >>conftest.$ac_ext <<_ACEOF
33119 /* end confdefs.h. */
33120 $ac_includes_default
33124 static struct stat ac_aggr;
33125 if (sizeof ac_aggr.st_blksize)
33131 rm -f conftest.$ac_objext
33132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33133 (eval $ac_compile) 2>conftest.er1
33135 grep -v '^ *+' conftest.er1 >conftest.err
33137 cat conftest.err >&5
33138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33139 (exit $ac_status); } &&
33140 { ac_try='test -z "$ac_c_werror_flag"
33141 || test ! -s conftest.err'
33142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33143 (eval $ac_try) 2>&5
33145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33146 (exit $ac_status); }; } &&
33147 { ac_try='test -s conftest.$ac_objext'
33148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33149 (eval $ac_try) 2>&5
33151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33152 (exit $ac_status); }; }; then
33153 ac_cv_member_struct_stat_st_blksize=yes
33155 echo "$as_me: failed program was:" >&5
33156 sed 's/^/| /' conftest.$ac_ext >&5
33158 ac_cv_member_struct_stat_st_blksize=no
33160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33164 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
33165 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
33166 if test $ac_cv_member_struct_stat_st_blksize = yes; then
33168 cat >>confdefs.h <<_ACEOF
33169 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
33175 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
33176 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
33177 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
33178 echo $ECHO_N "(cached) $ECHO_C" >&6
33180 cat >conftest.$ac_ext <<_ACEOF
33183 cat confdefs.h >>conftest.$ac_ext
33184 cat >>conftest.$ac_ext <<_ACEOF
33185 /* end confdefs.h. */
33186 $ac_includes_default
33192 static struct passwd ac_aggr;
33193 if (ac_aggr.pw_gecos)
33199 rm -f conftest.$ac_objext
33200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33201 (eval $ac_compile) 2>conftest.er1
33203 grep -v '^ *+' conftest.er1 >conftest.err
33205 cat conftest.err >&5
33206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33207 (exit $ac_status); } &&
33208 { ac_try='test -z "$ac_c_werror_flag"
33209 || test ! -s conftest.err'
33210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33211 (eval $ac_try) 2>&5
33213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33214 (exit $ac_status); }; } &&
33215 { ac_try='test -s conftest.$ac_objext'
33216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33217 (eval $ac_try) 2>&5
33219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33220 (exit $ac_status); }; }; then
33221 ac_cv_member_struct_passwd_pw_gecos=yes
33223 echo "$as_me: failed program was:" >&5
33224 sed 's/^/| /' conftest.$ac_ext >&5
33226 cat >conftest.$ac_ext <<_ACEOF
33229 cat confdefs.h >>conftest.$ac_ext
33230 cat >>conftest.$ac_ext <<_ACEOF
33231 /* end confdefs.h. */
33232 $ac_includes_default
33238 static struct passwd ac_aggr;
33239 if (sizeof ac_aggr.pw_gecos)
33245 rm -f conftest.$ac_objext
33246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33247 (eval $ac_compile) 2>conftest.er1
33249 grep -v '^ *+' conftest.er1 >conftest.err
33251 cat conftest.err >&5
33252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33253 (exit $ac_status); } &&
33254 { ac_try='test -z "$ac_c_werror_flag"
33255 || test ! -s conftest.err'
33256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33257 (eval $ac_try) 2>&5
33259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33260 (exit $ac_status); }; } &&
33261 { ac_try='test -s conftest.$ac_objext'
33262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33263 (eval $ac_try) 2>&5
33265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33266 (exit $ac_status); }; }; then
33267 ac_cv_member_struct_passwd_pw_gecos=yes
33269 echo "$as_me: failed program was:" >&5
33270 sed 's/^/| /' conftest.$ac_ext >&5
33272 ac_cv_member_struct_passwd_pw_gecos=no
33274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33278 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
33279 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
33280 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
33282 cat >>confdefs.h <<_ACEOF
33283 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
33289 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
33290 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
33291 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
33292 echo $ECHO_N "(cached) $ECHO_C" >&6
33294 cat >conftest.$ac_ext <<_ACEOF
33297 cat confdefs.h >>conftest.$ac_ext
33298 cat >>conftest.$ac_ext <<_ACEOF
33299 /* end confdefs.h. */
33300 $ac_includes_default
33306 static struct passwd ac_aggr;
33307 if (ac_aggr.pw_passwd)
33313 rm -f conftest.$ac_objext
33314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33315 (eval $ac_compile) 2>conftest.er1
33317 grep -v '^ *+' conftest.er1 >conftest.err
33319 cat conftest.err >&5
33320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33321 (exit $ac_status); } &&
33322 { ac_try='test -z "$ac_c_werror_flag"
33323 || test ! -s conftest.err'
33324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33325 (eval $ac_try) 2>&5
33327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33328 (exit $ac_status); }; } &&
33329 { ac_try='test -s conftest.$ac_objext'
33330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33331 (eval $ac_try) 2>&5
33333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33334 (exit $ac_status); }; }; then
33335 ac_cv_member_struct_passwd_pw_passwd=yes
33337 echo "$as_me: failed program was:" >&5
33338 sed 's/^/| /' conftest.$ac_ext >&5
33340 cat >conftest.$ac_ext <<_ACEOF
33343 cat confdefs.h >>conftest.$ac_ext
33344 cat >>conftest.$ac_ext <<_ACEOF
33345 /* end confdefs.h. */
33346 $ac_includes_default
33352 static struct passwd ac_aggr;
33353 if (sizeof ac_aggr.pw_passwd)
33359 rm -f conftest.$ac_objext
33360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33361 (eval $ac_compile) 2>conftest.er1
33363 grep -v '^ *+' conftest.er1 >conftest.err
33365 cat conftest.err >&5
33366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33367 (exit $ac_status); } &&
33368 { ac_try='test -z "$ac_c_werror_flag"
33369 || test ! -s conftest.err'
33370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33371 (eval $ac_try) 2>&5
33373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33374 (exit $ac_status); }; } &&
33375 { ac_try='test -s conftest.$ac_objext'
33376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33377 (eval $ac_try) 2>&5
33379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33380 (exit $ac_status); }; }; then
33381 ac_cv_member_struct_passwd_pw_passwd=yes
33383 echo "$as_me: failed program was:" >&5
33384 sed 's/^/| /' conftest.$ac_ext >&5
33386 ac_cv_member_struct_passwd_pw_passwd=no
33388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33392 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
33393 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
33394 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
33396 cat >>confdefs.h <<_ACEOF
33397 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
33404 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
33405 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
33406 if test "${ol_cv_c_upper_lower+set}" = set; then
33407 echo $ECHO_N "(cached) $ECHO_C" >&6
33410 if test "$cross_compiling" = yes; then
33411 ol_cv_c_upper_lower=safe
33413 cat >conftest.$ac_ext <<_ACEOF
33416 cat confdefs.h >>conftest.$ac_ext
33417 cat >>conftest.$ac_ext <<_ACEOF
33418 /* end confdefs.h. */
33423 if ('C' == toupper('C'))
33429 rm -f conftest$ac_exeext
33430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33431 (eval $ac_link) 2>&5
33433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33434 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33436 (eval $ac_try) 2>&5
33438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33439 (exit $ac_status); }; }; then
33440 ol_cv_c_upper_lower=no
33442 echo "$as_me: program exited with status $ac_status" >&5
33443 echo "$as_me: failed program was:" >&5
33444 sed 's/^/| /' conftest.$ac_ext >&5
33446 ( exit $ac_status )
33447 ol_cv_c_upper_lower=yes
33449 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33452 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
33453 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
33454 if test $ol_cv_c_upper_lower != no ; then
33456 cat >>confdefs.h <<\_ACEOF
33457 #define C_UPPER_LOWER 1
33462 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
33463 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
33464 if test "${ac_cv_c_const+set}" = set; then
33465 echo $ECHO_N "(cached) $ECHO_C" >&6
33467 cat >conftest.$ac_ext <<_ACEOF
33470 cat confdefs.h >>conftest.$ac_ext
33471 cat >>conftest.$ac_ext <<_ACEOF
33472 /* end confdefs.h. */
33477 /* FIXME: Include the comments suggested by Paul. */
33478 #ifndef __cplusplus
33479 /* Ultrix mips cc rejects this. */
33480 typedef int charset[2];
33482 /* SunOS 4.1.1 cc rejects this. */
33483 char const *const *ccp;
33485 /* NEC SVR4.0.2 mips cc rejects this. */
33486 struct point {int x, y;};
33487 static struct point const zero = {0,0};
33488 /* AIX XL C 1.02.0.0 rejects this.
33489 It does not let you subtract one const X* pointer from another in
33490 an arm of an if-expression whose if-part is not a constant
33492 const char *g = "string";
33493 ccp = &g + (g ? g-g : 0);
33494 /* HPUX 7.0 cc rejects these. */
33497 ccp = (char const *const *) p;
33498 { /* SCO 3.2v4 cc rejects this. */
33500 char const *s = 0 ? (char *) 0 : (char const *) 0;
33504 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
33505 int x[] = {25, 17};
33506 const int *foo = &x[0];
33509 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
33510 typedef const int *iptr;
33514 { /* AIX XL C 1.02.0.0 rejects this saying
33515 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
33516 struct s { int j; const int *ap[3]; };
33517 struct s *b; b->j = 5;
33519 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
33520 const int foo = 10;
33528 rm -f conftest.$ac_objext
33529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33530 (eval $ac_compile) 2>conftest.er1
33532 grep -v '^ *+' conftest.er1 >conftest.err
33534 cat conftest.err >&5
33535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33536 (exit $ac_status); } &&
33537 { ac_try='test -z "$ac_c_werror_flag"
33538 || test ! -s conftest.err'
33539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33540 (eval $ac_try) 2>&5
33542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33543 (exit $ac_status); }; } &&
33544 { ac_try='test -s conftest.$ac_objext'
33545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33546 (eval $ac_try) 2>&5
33548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33549 (exit $ac_status); }; }; then
33552 echo "$as_me: failed program was:" >&5
33553 sed 's/^/| /' conftest.$ac_ext >&5
33557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33559 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
33560 echo "${ECHO_T}$ac_cv_c_const" >&6
33561 if test $ac_cv_c_const = no; then
33563 cat >>confdefs.h <<\_ACEOF
33569 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
33570 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
33571 if test "${ol_cv_c_volatile+set}" = set; then
33572 echo $ECHO_N "(cached) $ECHO_C" >&6
33574 cat >conftest.$ac_ext <<_ACEOF
33577 cat confdefs.h >>conftest.$ac_ext
33578 cat >>conftest.$ac_ext <<_ACEOF
33579 /* end confdefs.h. */
33584 volatile int a; int * volatile b = x ? &y : &z;
33585 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
33591 rm -f conftest.$ac_objext
33592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33593 (eval $ac_compile) 2>conftest.er1
33595 grep -v '^ *+' conftest.er1 >conftest.err
33597 cat conftest.err >&5
33598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33599 (exit $ac_status); } &&
33600 { ac_try='test -z "$ac_c_werror_flag"
33601 || test ! -s conftest.err'
33602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33603 (eval $ac_try) 2>&5
33605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33606 (exit $ac_status); }; } &&
33607 { ac_try='test -s conftest.$ac_objext'
33608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33609 (eval $ac_try) 2>&5
33611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33612 (exit $ac_status); }; }; then
33613 ol_cv_c_volatile=yes
33615 echo "$as_me: failed program was:" >&5
33616 sed 's/^/| /' conftest.$ac_ext >&5
33618 ol_cv_c_volatile=no
33620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33622 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
33623 echo "${ECHO_T}$ol_cv_c_volatile" >&6
33624 if test $ol_cv_c_volatile = yes; then
33628 cat >>confdefs.h <<\_ACEOF
33635 if test $cross_compiling = yes ; then
33636 { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
33637 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
33639 cat >>confdefs.h <<\_ACEOF
33640 #define CROSS_COMPILING 1
33644 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
33645 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
33646 if test "${ac_cv_c_bigendian+set}" = set; then
33647 echo $ECHO_N "(cached) $ECHO_C" >&6
33649 # See if sys/param.h defines the BYTE_ORDER macro.
33650 cat >conftest.$ac_ext <<_ACEOF
33653 cat confdefs.h >>conftest.$ac_ext
33654 cat >>conftest.$ac_ext <<_ACEOF
33655 /* end confdefs.h. */
33656 #include <sys/types.h>
33657 #include <sys/param.h>
33662 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
33663 bogus endian macros
33670 rm -f conftest.$ac_objext
33671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33672 (eval $ac_compile) 2>conftest.er1
33674 grep -v '^ *+' conftest.er1 >conftest.err
33676 cat conftest.err >&5
33677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33678 (exit $ac_status); } &&
33679 { ac_try='test -z "$ac_c_werror_flag"
33680 || test ! -s conftest.err'
33681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33682 (eval $ac_try) 2>&5
33684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33685 (exit $ac_status); }; } &&
33686 { ac_try='test -s conftest.$ac_objext'
33687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33688 (eval $ac_try) 2>&5
33690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33691 (exit $ac_status); }; }; then
33692 # It does; now see whether it defined to BIG_ENDIAN or not.
33693 cat >conftest.$ac_ext <<_ACEOF
33696 cat confdefs.h >>conftest.$ac_ext
33697 cat >>conftest.$ac_ext <<_ACEOF
33698 /* end confdefs.h. */
33699 #include <sys/types.h>
33700 #include <sys/param.h>
33705 #if BYTE_ORDER != BIG_ENDIAN
33713 rm -f conftest.$ac_objext
33714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33715 (eval $ac_compile) 2>conftest.er1
33717 grep -v '^ *+' conftest.er1 >conftest.err
33719 cat conftest.err >&5
33720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33721 (exit $ac_status); } &&
33722 { ac_try='test -z "$ac_c_werror_flag"
33723 || test ! -s conftest.err'
33724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33725 (eval $ac_try) 2>&5
33727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33728 (exit $ac_status); }; } &&
33729 { ac_try='test -s conftest.$ac_objext'
33730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33731 (eval $ac_try) 2>&5
33733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33734 (exit $ac_status); }; }; then
33735 ac_cv_c_bigendian=yes
33737 echo "$as_me: failed program was:" >&5
33738 sed 's/^/| /' conftest.$ac_ext >&5
33740 ac_cv_c_bigendian=no
33742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33744 echo "$as_me: failed program was:" >&5
33745 sed 's/^/| /' conftest.$ac_ext >&5
33747 # It does not; compile a test program.
33748 if test "$cross_compiling" = yes; then
33749 # try to guess the endianness by grepping values into an object file
33750 ac_cv_c_bigendian=unknown
33751 cat >conftest.$ac_ext <<_ACEOF
33754 cat confdefs.h >>conftest.$ac_ext
33755 cat >>conftest.$ac_ext <<_ACEOF
33756 /* end confdefs.h. */
33757 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
33758 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
33759 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
33760 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
33761 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
33762 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
33766 _ascii (); _ebcdic ();
33771 rm -f conftest.$ac_objext
33772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33773 (eval $ac_compile) 2>conftest.er1
33775 grep -v '^ *+' conftest.er1 >conftest.err
33777 cat conftest.err >&5
33778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33779 (exit $ac_status); } &&
33780 { ac_try='test -z "$ac_c_werror_flag"
33781 || test ! -s conftest.err'
33782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33783 (eval $ac_try) 2>&5
33785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33786 (exit $ac_status); }; } &&
33787 { ac_try='test -s conftest.$ac_objext'
33788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33789 (eval $ac_try) 2>&5
33791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33792 (exit $ac_status); }; }; then
33793 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
33794 ac_cv_c_bigendian=yes
33796 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
33797 if test "$ac_cv_c_bigendian" = unknown; then
33798 ac_cv_c_bigendian=no
33800 # finding both strings is unlikely to happen, but who knows?
33801 ac_cv_c_bigendian=unknown
33805 echo "$as_me: failed program was:" >&5
33806 sed 's/^/| /' conftest.$ac_ext >&5
33809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33811 cat >conftest.$ac_ext <<_ACEOF
33814 cat confdefs.h >>conftest.$ac_ext
33815 cat >>conftest.$ac_ext <<_ACEOF
33816 /* end confdefs.h. */
33820 /* Are we little or big endian? From Harbison&Steele. */
33824 char c[sizeof (long)];
33827 exit (u.c[sizeof (long) - 1] == 1);
33830 rm -f conftest$ac_exeext
33831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33832 (eval $ac_link) 2>&5
33834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33835 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33837 (eval $ac_try) 2>&5
33839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33840 (exit $ac_status); }; }; then
33841 ac_cv_c_bigendian=no
33843 echo "$as_me: program exited with status $ac_status" >&5
33844 echo "$as_me: failed program was:" >&5
33845 sed 's/^/| /' conftest.$ac_ext >&5
33847 ( exit $ac_status )
33848 ac_cv_c_bigendian=yes
33850 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33855 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
33856 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
33857 case $ac_cv_c_bigendian in
33860 cat >>confdefs.h <<\_ACEOF
33861 #define WORDS_BIGENDIAN 1
33867 { { echo "$as_me:$LINENO: error: unknown endianness
33868 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
33869 echo "$as_me: error: unknown endianness
33870 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
33871 { (exit 1); exit 1; }; } ;;
33876 echo "$as_me:$LINENO: checking for short" >&5
33877 echo $ECHO_N "checking for short... $ECHO_C" >&6
33878 if test "${ac_cv_type_short+set}" = set; then
33879 echo $ECHO_N "(cached) $ECHO_C" >&6
33881 cat >conftest.$ac_ext <<_ACEOF
33884 cat confdefs.h >>conftest.$ac_ext
33885 cat >>conftest.$ac_ext <<_ACEOF
33886 /* end confdefs.h. */
33887 $ac_includes_default
33893 if (sizeof (short))
33899 rm -f conftest.$ac_objext
33900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33901 (eval $ac_compile) 2>conftest.er1
33903 grep -v '^ *+' conftest.er1 >conftest.err
33905 cat conftest.err >&5
33906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33907 (exit $ac_status); } &&
33908 { ac_try='test -z "$ac_c_werror_flag"
33909 || test ! -s conftest.err'
33910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33911 (eval $ac_try) 2>&5
33913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33914 (exit $ac_status); }; } &&
33915 { ac_try='test -s conftest.$ac_objext'
33916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33917 (eval $ac_try) 2>&5
33919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33920 (exit $ac_status); }; }; then
33921 ac_cv_type_short=yes
33923 echo "$as_me: failed program was:" >&5
33924 sed 's/^/| /' conftest.$ac_ext >&5
33926 ac_cv_type_short=no
33928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33930 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
33931 echo "${ECHO_T}$ac_cv_type_short" >&6
33933 echo "$as_me:$LINENO: checking size of short" >&5
33934 echo $ECHO_N "checking size of short... $ECHO_C" >&6
33935 if test "${ac_cv_sizeof_short+set}" = set; then
33936 echo $ECHO_N "(cached) $ECHO_C" >&6
33938 if test "$ac_cv_type_short" = yes; then
33939 # The cast to unsigned long works around a bug in the HP C Compiler
33940 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33941 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33942 # This bug is HP SR number 8606223364.
33943 if test "$cross_compiling" = yes; then
33944 # Depending upon the size, compute the lo and hi bounds.
33945 cat >conftest.$ac_ext <<_ACEOF
33948 cat confdefs.h >>conftest.$ac_ext
33949 cat >>conftest.$ac_ext <<_ACEOF
33950 /* end confdefs.h. */
33951 $ac_includes_default
33955 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
33962 rm -f conftest.$ac_objext
33963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33964 (eval $ac_compile) 2>conftest.er1
33966 grep -v '^ *+' conftest.er1 >conftest.err
33968 cat conftest.err >&5
33969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33970 (exit $ac_status); } &&
33971 { ac_try='test -z "$ac_c_werror_flag"
33972 || test ! -s conftest.err'
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); }; } &&
33978 { ac_try='test -s conftest.$ac_objext'
33979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33980 (eval $ac_try) 2>&5
33982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33983 (exit $ac_status); }; }; then
33986 cat >conftest.$ac_ext <<_ACEOF
33989 cat confdefs.h >>conftest.$ac_ext
33990 cat >>conftest.$ac_ext <<_ACEOF
33991 /* end confdefs.h. */
33992 $ac_includes_default
33996 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
34003 rm -f conftest.$ac_objext
34004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34005 (eval $ac_compile) 2>conftest.er1
34007 grep -v '^ *+' conftest.er1 >conftest.err
34009 cat conftest.err >&5
34010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34011 (exit $ac_status); } &&
34012 { ac_try='test -z "$ac_c_werror_flag"
34013 || test ! -s conftest.err'
34014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34015 (eval $ac_try) 2>&5
34017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34018 (exit $ac_status); }; } &&
34019 { ac_try='test -s conftest.$ac_objext'
34020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34021 (eval $ac_try) 2>&5
34023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34024 (exit $ac_status); }; }; then
34025 ac_hi=$ac_mid; break
34027 echo "$as_me: failed program was:" >&5
34028 sed 's/^/| /' conftest.$ac_ext >&5
34030 ac_lo=`expr $ac_mid + 1`
34031 if test $ac_lo -le $ac_mid; then
34035 ac_mid=`expr 2 '*' $ac_mid + 1`
34037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34040 echo "$as_me: failed program was:" >&5
34041 sed 's/^/| /' conftest.$ac_ext >&5
34043 cat >conftest.$ac_ext <<_ACEOF
34046 cat confdefs.h >>conftest.$ac_ext
34047 cat >>conftest.$ac_ext <<_ACEOF
34048 /* end confdefs.h. */
34049 $ac_includes_default
34053 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
34060 rm -f conftest.$ac_objext
34061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34062 (eval $ac_compile) 2>conftest.er1
34064 grep -v '^ *+' conftest.er1 >conftest.err
34066 cat conftest.err >&5
34067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34068 (exit $ac_status); } &&
34069 { ac_try='test -z "$ac_c_werror_flag"
34070 || test ! -s conftest.err'
34071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34072 (eval $ac_try) 2>&5
34074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34075 (exit $ac_status); }; } &&
34076 { ac_try='test -s conftest.$ac_objext'
34077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34078 (eval $ac_try) 2>&5
34080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34081 (exit $ac_status); }; }; then
34084 cat >conftest.$ac_ext <<_ACEOF
34087 cat confdefs.h >>conftest.$ac_ext
34088 cat >>conftest.$ac_ext <<_ACEOF
34089 /* end confdefs.h. */
34090 $ac_includes_default
34094 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
34101 rm -f conftest.$ac_objext
34102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34103 (eval $ac_compile) 2>conftest.er1
34105 grep -v '^ *+' conftest.er1 >conftest.err
34107 cat conftest.err >&5
34108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34109 (exit $ac_status); } &&
34110 { ac_try='test -z "$ac_c_werror_flag"
34111 || test ! -s conftest.err'
34112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34113 (eval $ac_try) 2>&5
34115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34116 (exit $ac_status); }; } &&
34117 { ac_try='test -s conftest.$ac_objext'
34118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34119 (eval $ac_try) 2>&5
34121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34122 (exit $ac_status); }; }; then
34123 ac_lo=$ac_mid; break
34125 echo "$as_me: failed program was:" >&5
34126 sed 's/^/| /' conftest.$ac_ext >&5
34128 ac_hi=`expr '(' $ac_mid ')' - 1`
34129 if test $ac_mid -le $ac_hi; then
34133 ac_mid=`expr 2 '*' $ac_mid`
34135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34138 echo "$as_me: failed program was:" >&5
34139 sed 's/^/| /' conftest.$ac_ext >&5
34143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34146 # Binary search between lo and hi bounds.
34147 while test "x$ac_lo" != "x$ac_hi"; do
34148 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34149 cat >conftest.$ac_ext <<_ACEOF
34152 cat confdefs.h >>conftest.$ac_ext
34153 cat >>conftest.$ac_ext <<_ACEOF
34154 /* end confdefs.h. */
34155 $ac_includes_default
34159 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
34166 rm -f conftest.$ac_objext
34167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34168 (eval $ac_compile) 2>conftest.er1
34170 grep -v '^ *+' conftest.er1 >conftest.err
34172 cat conftest.err >&5
34173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34174 (exit $ac_status); } &&
34175 { ac_try='test -z "$ac_c_werror_flag"
34176 || test ! -s conftest.err'
34177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34178 (eval $ac_try) 2>&5
34180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34181 (exit $ac_status); }; } &&
34182 { ac_try='test -s conftest.$ac_objext'
34183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34184 (eval $ac_try) 2>&5
34186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34187 (exit $ac_status); }; }; then
34190 echo "$as_me: failed program was:" >&5
34191 sed 's/^/| /' conftest.$ac_ext >&5
34193 ac_lo=`expr '(' $ac_mid ')' + 1`
34195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34198 ?*) ac_cv_sizeof_short=$ac_lo;;
34199 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
34200 See \`config.log' for more details." >&5
34201 echo "$as_me: error: cannot compute sizeof (short), 77
34202 See \`config.log' for more details." >&2;}
34203 { (exit 1); exit 1; }; } ;;
34206 if test "$cross_compiling" = yes; then
34207 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
34208 See \`config.log' for more details." >&5
34209 echo "$as_me: error: cannot run test program while cross compiling
34210 See \`config.log' for more details." >&2;}
34211 { (exit 1); exit 1; }; }
34213 cat >conftest.$ac_ext <<_ACEOF
34216 cat confdefs.h >>conftest.$ac_ext
34217 cat >>conftest.$ac_ext <<_ACEOF
34218 /* end confdefs.h. */
34219 $ac_includes_default
34220 long longval () { return (long) (sizeof (short)); }
34221 unsigned long ulongval () { return (long) (sizeof (short)); }
34223 #include <stdlib.h>
34228 FILE *f = fopen ("conftest.val", "w");
34231 if (((long) (sizeof (short))) < 0)
34233 long i = longval ();
34234 if (i != ((long) (sizeof (short))))
34236 fprintf (f, "%ld\n", i);
34240 unsigned long i = ulongval ();
34241 if (i != ((long) (sizeof (short))))
34243 fprintf (f, "%lu\n", i);
34245 exit (ferror (f) || fclose (f) != 0);
34251 rm -f conftest$ac_exeext
34252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34253 (eval $ac_link) 2>&5
34255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34256 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34258 (eval $ac_try) 2>&5
34260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34261 (exit $ac_status); }; }; then
34262 ac_cv_sizeof_short=`cat conftest.val`
34264 echo "$as_me: program exited with status $ac_status" >&5
34265 echo "$as_me: failed program was:" >&5
34266 sed 's/^/| /' conftest.$ac_ext >&5
34268 ( exit $ac_status )
34269 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
34270 See \`config.log' for more details." >&5
34271 echo "$as_me: error: cannot compute sizeof (short), 77
34272 See \`config.log' for more details." >&2;}
34273 { (exit 1); exit 1; }; }
34275 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34280 ac_cv_sizeof_short=0
34283 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
34284 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
34285 cat >>confdefs.h <<_ACEOF
34286 #define SIZEOF_SHORT $ac_cv_sizeof_short
34290 echo "$as_me:$LINENO: checking for int" >&5
34291 echo $ECHO_N "checking for int... $ECHO_C" >&6
34292 if test "${ac_cv_type_int+set}" = set; then
34293 echo $ECHO_N "(cached) $ECHO_C" >&6
34295 cat >conftest.$ac_ext <<_ACEOF
34298 cat confdefs.h >>conftest.$ac_ext
34299 cat >>conftest.$ac_ext <<_ACEOF
34300 /* end confdefs.h. */
34301 $ac_includes_default
34313 rm -f conftest.$ac_objext
34314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34315 (eval $ac_compile) 2>conftest.er1
34317 grep -v '^ *+' conftest.er1 >conftest.err
34319 cat conftest.err >&5
34320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34321 (exit $ac_status); } &&
34322 { ac_try='test -z "$ac_c_werror_flag"
34323 || test ! -s conftest.err'
34324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34325 (eval $ac_try) 2>&5
34327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34328 (exit $ac_status); }; } &&
34329 { ac_try='test -s conftest.$ac_objext'
34330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34331 (eval $ac_try) 2>&5
34333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34334 (exit $ac_status); }; }; then
34337 echo "$as_me: failed program was:" >&5
34338 sed 's/^/| /' conftest.$ac_ext >&5
34342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34344 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
34345 echo "${ECHO_T}$ac_cv_type_int" >&6
34347 echo "$as_me:$LINENO: checking size of int" >&5
34348 echo $ECHO_N "checking size of int... $ECHO_C" >&6
34349 if test "${ac_cv_sizeof_int+set}" = set; then
34350 echo $ECHO_N "(cached) $ECHO_C" >&6
34352 if test "$ac_cv_type_int" = yes; then
34353 # The cast to unsigned long works around a bug in the HP C Compiler
34354 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34355 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34356 # This bug is HP SR number 8606223364.
34357 if test "$cross_compiling" = yes; then
34358 # Depending upon the size, compute the lo and hi bounds.
34359 cat >conftest.$ac_ext <<_ACEOF
34362 cat confdefs.h >>conftest.$ac_ext
34363 cat >>conftest.$ac_ext <<_ACEOF
34364 /* end confdefs.h. */
34365 $ac_includes_default
34369 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
34376 rm -f conftest.$ac_objext
34377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34378 (eval $ac_compile) 2>conftest.er1
34380 grep -v '^ *+' conftest.er1 >conftest.err
34382 cat conftest.err >&5
34383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34384 (exit $ac_status); } &&
34385 { ac_try='test -z "$ac_c_werror_flag"
34386 || test ! -s conftest.err'
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); }; } &&
34392 { ac_try='test -s conftest.$ac_objext'
34393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34394 (eval $ac_try) 2>&5
34396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34397 (exit $ac_status); }; }; then
34400 cat >conftest.$ac_ext <<_ACEOF
34403 cat confdefs.h >>conftest.$ac_ext
34404 cat >>conftest.$ac_ext <<_ACEOF
34405 /* end confdefs.h. */
34406 $ac_includes_default
34410 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
34417 rm -f conftest.$ac_objext
34418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34419 (eval $ac_compile) 2>conftest.er1
34421 grep -v '^ *+' conftest.er1 >conftest.err
34423 cat conftest.err >&5
34424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34425 (exit $ac_status); } &&
34426 { ac_try='test -z "$ac_c_werror_flag"
34427 || test ! -s conftest.err'
34428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34429 (eval $ac_try) 2>&5
34431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34432 (exit $ac_status); }; } &&
34433 { ac_try='test -s conftest.$ac_objext'
34434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34435 (eval $ac_try) 2>&5
34437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34438 (exit $ac_status); }; }; then
34439 ac_hi=$ac_mid; break
34441 echo "$as_me: failed program was:" >&5
34442 sed 's/^/| /' conftest.$ac_ext >&5
34444 ac_lo=`expr $ac_mid + 1`
34445 if test $ac_lo -le $ac_mid; then
34449 ac_mid=`expr 2 '*' $ac_mid + 1`
34451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34454 echo "$as_me: failed program was:" >&5
34455 sed 's/^/| /' conftest.$ac_ext >&5
34457 cat >conftest.$ac_ext <<_ACEOF
34460 cat confdefs.h >>conftest.$ac_ext
34461 cat >>conftest.$ac_ext <<_ACEOF
34462 /* end confdefs.h. */
34463 $ac_includes_default
34467 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
34474 rm -f conftest.$ac_objext
34475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34476 (eval $ac_compile) 2>conftest.er1
34478 grep -v '^ *+' conftest.er1 >conftest.err
34480 cat conftest.err >&5
34481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34482 (exit $ac_status); } &&
34483 { ac_try='test -z "$ac_c_werror_flag"
34484 || test ! -s conftest.err'
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); }; } &&
34490 { ac_try='test -s conftest.$ac_objext'
34491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34492 (eval $ac_try) 2>&5
34494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34495 (exit $ac_status); }; }; then
34498 cat >conftest.$ac_ext <<_ACEOF
34501 cat confdefs.h >>conftest.$ac_ext
34502 cat >>conftest.$ac_ext <<_ACEOF
34503 /* end confdefs.h. */
34504 $ac_includes_default
34508 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
34515 rm -f conftest.$ac_objext
34516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34517 (eval $ac_compile) 2>conftest.er1
34519 grep -v '^ *+' conftest.er1 >conftest.err
34521 cat conftest.err >&5
34522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34523 (exit $ac_status); } &&
34524 { ac_try='test -z "$ac_c_werror_flag"
34525 || test ! -s conftest.err'
34526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34527 (eval $ac_try) 2>&5
34529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34530 (exit $ac_status); }; } &&
34531 { ac_try='test -s conftest.$ac_objext'
34532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34533 (eval $ac_try) 2>&5
34535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34536 (exit $ac_status); }; }; then
34537 ac_lo=$ac_mid; break
34539 echo "$as_me: failed program was:" >&5
34540 sed 's/^/| /' conftest.$ac_ext >&5
34542 ac_hi=`expr '(' $ac_mid ')' - 1`
34543 if test $ac_mid -le $ac_hi; then
34547 ac_mid=`expr 2 '*' $ac_mid`
34549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34552 echo "$as_me: failed program was:" >&5
34553 sed 's/^/| /' conftest.$ac_ext >&5
34557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34560 # Binary search between lo and hi bounds.
34561 while test "x$ac_lo" != "x$ac_hi"; do
34562 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34563 cat >conftest.$ac_ext <<_ACEOF
34566 cat confdefs.h >>conftest.$ac_ext
34567 cat >>conftest.$ac_ext <<_ACEOF
34568 /* end confdefs.h. */
34569 $ac_includes_default
34573 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
34580 rm -f conftest.$ac_objext
34581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34582 (eval $ac_compile) 2>conftest.er1
34584 grep -v '^ *+' conftest.er1 >conftest.err
34586 cat conftest.err >&5
34587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34588 (exit $ac_status); } &&
34589 { ac_try='test -z "$ac_c_werror_flag"
34590 || test ! -s conftest.err'
34591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34592 (eval $ac_try) 2>&5
34594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34595 (exit $ac_status); }; } &&
34596 { ac_try='test -s conftest.$ac_objext'
34597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34598 (eval $ac_try) 2>&5
34600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34601 (exit $ac_status); }; }; then
34604 echo "$as_me: failed program was:" >&5
34605 sed 's/^/| /' conftest.$ac_ext >&5
34607 ac_lo=`expr '(' $ac_mid ')' + 1`
34609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34612 ?*) ac_cv_sizeof_int=$ac_lo;;
34613 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
34614 See \`config.log' for more details." >&5
34615 echo "$as_me: error: cannot compute sizeof (int), 77
34616 See \`config.log' for more details." >&2;}
34617 { (exit 1); exit 1; }; } ;;
34620 if test "$cross_compiling" = yes; then
34621 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
34622 See \`config.log' for more details." >&5
34623 echo "$as_me: error: cannot run test program while cross compiling
34624 See \`config.log' for more details." >&2;}
34625 { (exit 1); exit 1; }; }
34627 cat >conftest.$ac_ext <<_ACEOF
34630 cat confdefs.h >>conftest.$ac_ext
34631 cat >>conftest.$ac_ext <<_ACEOF
34632 /* end confdefs.h. */
34633 $ac_includes_default
34634 long longval () { return (long) (sizeof (int)); }
34635 unsigned long ulongval () { return (long) (sizeof (int)); }
34637 #include <stdlib.h>
34642 FILE *f = fopen ("conftest.val", "w");
34645 if (((long) (sizeof (int))) < 0)
34647 long i = longval ();
34648 if (i != ((long) (sizeof (int))))
34650 fprintf (f, "%ld\n", i);
34654 unsigned long i = ulongval ();
34655 if (i != ((long) (sizeof (int))))
34657 fprintf (f, "%lu\n", i);
34659 exit (ferror (f) || fclose (f) != 0);
34665 rm -f conftest$ac_exeext
34666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34667 (eval $ac_link) 2>&5
34669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34670 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34672 (eval $ac_try) 2>&5
34674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34675 (exit $ac_status); }; }; then
34676 ac_cv_sizeof_int=`cat conftest.val`
34678 echo "$as_me: program exited with status $ac_status" >&5
34679 echo "$as_me: failed program was:" >&5
34680 sed 's/^/| /' conftest.$ac_ext >&5
34682 ( exit $ac_status )
34683 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
34684 See \`config.log' for more details." >&5
34685 echo "$as_me: error: cannot compute sizeof (int), 77
34686 See \`config.log' for more details." >&2;}
34687 { (exit 1); exit 1; }; }
34689 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34697 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
34698 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
34699 cat >>confdefs.h <<_ACEOF
34700 #define SIZEOF_INT $ac_cv_sizeof_int
34704 echo "$as_me:$LINENO: checking for long" >&5
34705 echo $ECHO_N "checking for long... $ECHO_C" >&6
34706 if test "${ac_cv_type_long+set}" = set; then
34707 echo $ECHO_N "(cached) $ECHO_C" >&6
34709 cat >conftest.$ac_ext <<_ACEOF
34712 cat confdefs.h >>conftest.$ac_ext
34713 cat >>conftest.$ac_ext <<_ACEOF
34714 /* end confdefs.h. */
34715 $ac_includes_default
34727 rm -f conftest.$ac_objext
34728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34729 (eval $ac_compile) 2>conftest.er1
34731 grep -v '^ *+' conftest.er1 >conftest.err
34733 cat conftest.err >&5
34734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34735 (exit $ac_status); } &&
34736 { ac_try='test -z "$ac_c_werror_flag"
34737 || test ! -s conftest.err'
34738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34739 (eval $ac_try) 2>&5
34741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34742 (exit $ac_status); }; } &&
34743 { ac_try='test -s conftest.$ac_objext'
34744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34745 (eval $ac_try) 2>&5
34747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34748 (exit $ac_status); }; }; then
34749 ac_cv_type_long=yes
34751 echo "$as_me: failed program was:" >&5
34752 sed 's/^/| /' conftest.$ac_ext >&5
34756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34758 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
34759 echo "${ECHO_T}$ac_cv_type_long" >&6
34761 echo "$as_me:$LINENO: checking size of long" >&5
34762 echo $ECHO_N "checking size of long... $ECHO_C" >&6
34763 if test "${ac_cv_sizeof_long+set}" = set; then
34764 echo $ECHO_N "(cached) $ECHO_C" >&6
34766 if test "$ac_cv_type_long" = yes; then
34767 # The cast to unsigned long works around a bug in the HP C Compiler
34768 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34769 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34770 # This bug is HP SR number 8606223364.
34771 if test "$cross_compiling" = yes; then
34772 # Depending upon the size, compute the lo and hi bounds.
34773 cat >conftest.$ac_ext <<_ACEOF
34776 cat confdefs.h >>conftest.$ac_ext
34777 cat >>conftest.$ac_ext <<_ACEOF
34778 /* end confdefs.h. */
34779 $ac_includes_default
34783 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
34790 rm -f conftest.$ac_objext
34791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34792 (eval $ac_compile) 2>conftest.er1
34794 grep -v '^ *+' conftest.er1 >conftest.err
34796 cat conftest.err >&5
34797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34798 (exit $ac_status); } &&
34799 { ac_try='test -z "$ac_c_werror_flag"
34800 || test ! -s conftest.err'
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); }; } &&
34806 { ac_try='test -s conftest.$ac_objext'
34807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34808 (eval $ac_try) 2>&5
34810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34811 (exit $ac_status); }; }; then
34814 cat >conftest.$ac_ext <<_ACEOF
34817 cat confdefs.h >>conftest.$ac_ext
34818 cat >>conftest.$ac_ext <<_ACEOF
34819 /* end confdefs.h. */
34820 $ac_includes_default
34824 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
34831 rm -f conftest.$ac_objext
34832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34833 (eval $ac_compile) 2>conftest.er1
34835 grep -v '^ *+' conftest.er1 >conftest.err
34837 cat conftest.err >&5
34838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34839 (exit $ac_status); } &&
34840 { ac_try='test -z "$ac_c_werror_flag"
34841 || test ! -s conftest.err'
34842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34843 (eval $ac_try) 2>&5
34845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34846 (exit $ac_status); }; } &&
34847 { ac_try='test -s conftest.$ac_objext'
34848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34849 (eval $ac_try) 2>&5
34851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34852 (exit $ac_status); }; }; then
34853 ac_hi=$ac_mid; break
34855 echo "$as_me: failed program was:" >&5
34856 sed 's/^/| /' conftest.$ac_ext >&5
34858 ac_lo=`expr $ac_mid + 1`
34859 if test $ac_lo -le $ac_mid; then
34863 ac_mid=`expr 2 '*' $ac_mid + 1`
34865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34868 echo "$as_me: failed program was:" >&5
34869 sed 's/^/| /' conftest.$ac_ext >&5
34871 cat >conftest.$ac_ext <<_ACEOF
34874 cat confdefs.h >>conftest.$ac_ext
34875 cat >>conftest.$ac_ext <<_ACEOF
34876 /* end confdefs.h. */
34877 $ac_includes_default
34881 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
34888 rm -f conftest.$ac_objext
34889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34890 (eval $ac_compile) 2>conftest.er1
34892 grep -v '^ *+' conftest.er1 >conftest.err
34894 cat conftest.err >&5
34895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34896 (exit $ac_status); } &&
34897 { ac_try='test -z "$ac_c_werror_flag"
34898 || test ! -s conftest.err'
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); }; } &&
34904 { ac_try='test -s conftest.$ac_objext'
34905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34906 (eval $ac_try) 2>&5
34908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34909 (exit $ac_status); }; }; then
34912 cat >conftest.$ac_ext <<_ACEOF
34915 cat confdefs.h >>conftest.$ac_ext
34916 cat >>conftest.$ac_ext <<_ACEOF
34917 /* end confdefs.h. */
34918 $ac_includes_default
34922 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
34929 rm -f conftest.$ac_objext
34930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34931 (eval $ac_compile) 2>conftest.er1
34933 grep -v '^ *+' conftest.er1 >conftest.err
34935 cat conftest.err >&5
34936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34937 (exit $ac_status); } &&
34938 { ac_try='test -z "$ac_c_werror_flag"
34939 || test ! -s conftest.err'
34940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34941 (eval $ac_try) 2>&5
34943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34944 (exit $ac_status); }; } &&
34945 { ac_try='test -s conftest.$ac_objext'
34946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34947 (eval $ac_try) 2>&5
34949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34950 (exit $ac_status); }; }; then
34951 ac_lo=$ac_mid; break
34953 echo "$as_me: failed program was:" >&5
34954 sed 's/^/| /' conftest.$ac_ext >&5
34956 ac_hi=`expr '(' $ac_mid ')' - 1`
34957 if test $ac_mid -le $ac_hi; then
34961 ac_mid=`expr 2 '*' $ac_mid`
34963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34966 echo "$as_me: failed program was:" >&5
34967 sed 's/^/| /' conftest.$ac_ext >&5
34971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34974 # Binary search between lo and hi bounds.
34975 while test "x$ac_lo" != "x$ac_hi"; do
34976 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34977 cat >conftest.$ac_ext <<_ACEOF
34980 cat confdefs.h >>conftest.$ac_ext
34981 cat >>conftest.$ac_ext <<_ACEOF
34982 /* end confdefs.h. */
34983 $ac_includes_default
34987 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
34994 rm -f conftest.$ac_objext
34995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34996 (eval $ac_compile) 2>conftest.er1
34998 grep -v '^ *+' conftest.er1 >conftest.err
35000 cat conftest.err >&5
35001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35002 (exit $ac_status); } &&
35003 { ac_try='test -z "$ac_c_werror_flag"
35004 || test ! -s conftest.err'
35005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35006 (eval $ac_try) 2>&5
35008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35009 (exit $ac_status); }; } &&
35010 { ac_try='test -s conftest.$ac_objext'
35011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35012 (eval $ac_try) 2>&5
35014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35015 (exit $ac_status); }; }; then
35018 echo "$as_me: failed program was:" >&5
35019 sed 's/^/| /' conftest.$ac_ext >&5
35021 ac_lo=`expr '(' $ac_mid ')' + 1`
35023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35026 ?*) ac_cv_sizeof_long=$ac_lo;;
35027 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
35028 See \`config.log' for more details." >&5
35029 echo "$as_me: error: cannot compute sizeof (long), 77
35030 See \`config.log' for more details." >&2;}
35031 { (exit 1); exit 1; }; } ;;
35034 if test "$cross_compiling" = yes; then
35035 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
35036 See \`config.log' for more details." >&5
35037 echo "$as_me: error: cannot run test program while cross compiling
35038 See \`config.log' for more details." >&2;}
35039 { (exit 1); exit 1; }; }
35041 cat >conftest.$ac_ext <<_ACEOF
35044 cat confdefs.h >>conftest.$ac_ext
35045 cat >>conftest.$ac_ext <<_ACEOF
35046 /* end confdefs.h. */
35047 $ac_includes_default
35048 long longval () { return (long) (sizeof (long)); }
35049 unsigned long ulongval () { return (long) (sizeof (long)); }
35051 #include <stdlib.h>
35056 FILE *f = fopen ("conftest.val", "w");
35059 if (((long) (sizeof (long))) < 0)
35061 long i = longval ();
35062 if (i != ((long) (sizeof (long))))
35064 fprintf (f, "%ld\n", i);
35068 unsigned long i = ulongval ();
35069 if (i != ((long) (sizeof (long))))
35071 fprintf (f, "%lu\n", i);
35073 exit (ferror (f) || fclose (f) != 0);
35079 rm -f conftest$ac_exeext
35080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35081 (eval $ac_link) 2>&5
35083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35084 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35086 (eval $ac_try) 2>&5
35088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35089 (exit $ac_status); }; }; then
35090 ac_cv_sizeof_long=`cat conftest.val`
35092 echo "$as_me: program exited with status $ac_status" >&5
35093 echo "$as_me: failed program was:" >&5
35094 sed 's/^/| /' conftest.$ac_ext >&5
35096 ( exit $ac_status )
35097 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
35098 See \`config.log' for more details." >&5
35099 echo "$as_me: error: cannot compute sizeof (long), 77
35100 See \`config.log' for more details." >&2;}
35101 { (exit 1); exit 1; }; }
35103 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35108 ac_cv_sizeof_long=0
35111 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
35112 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
35113 cat >>confdefs.h <<_ACEOF
35114 #define SIZEOF_LONG $ac_cv_sizeof_long
35118 echo "$as_me:$LINENO: checking for long long" >&5
35119 echo $ECHO_N "checking for long long... $ECHO_C" >&6
35120 if test "${ac_cv_type_long_long+set}" = set; then
35121 echo $ECHO_N "(cached) $ECHO_C" >&6
35123 cat >conftest.$ac_ext <<_ACEOF
35126 cat confdefs.h >>conftest.$ac_ext
35127 cat >>conftest.$ac_ext <<_ACEOF
35128 /* end confdefs.h. */
35129 $ac_includes_default
35133 if ((long long *) 0)
35135 if (sizeof (long long))
35141 rm -f conftest.$ac_objext
35142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35143 (eval $ac_compile) 2>conftest.er1
35145 grep -v '^ *+' conftest.er1 >conftest.err
35147 cat conftest.err >&5
35148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35149 (exit $ac_status); } &&
35150 { ac_try='test -z "$ac_c_werror_flag"
35151 || test ! -s conftest.err'
35152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35153 (eval $ac_try) 2>&5
35155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35156 (exit $ac_status); }; } &&
35157 { ac_try='test -s conftest.$ac_objext'
35158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35159 (eval $ac_try) 2>&5
35161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35162 (exit $ac_status); }; }; then
35163 ac_cv_type_long_long=yes
35165 echo "$as_me: failed program was:" >&5
35166 sed 's/^/| /' conftest.$ac_ext >&5
35168 ac_cv_type_long_long=no
35170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35172 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
35173 echo "${ECHO_T}$ac_cv_type_long_long" >&6
35175 echo "$as_me:$LINENO: checking size of long long" >&5
35176 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
35177 if test "${ac_cv_sizeof_long_long+set}" = set; then
35178 echo $ECHO_N "(cached) $ECHO_C" >&6
35180 if test "$ac_cv_type_long_long" = yes; then
35181 # The cast to unsigned long works around a bug in the HP C Compiler
35182 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35183 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35184 # This bug is HP SR number 8606223364.
35185 if test "$cross_compiling" = yes; then
35186 # Depending upon the size, compute the lo and hi bounds.
35187 cat >conftest.$ac_ext <<_ACEOF
35190 cat confdefs.h >>conftest.$ac_ext
35191 cat >>conftest.$ac_ext <<_ACEOF
35192 /* end confdefs.h. */
35193 $ac_includes_default
35197 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
35204 rm -f conftest.$ac_objext
35205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35206 (eval $ac_compile) 2>conftest.er1
35208 grep -v '^ *+' conftest.er1 >conftest.err
35210 cat conftest.err >&5
35211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35212 (exit $ac_status); } &&
35213 { ac_try='test -z "$ac_c_werror_flag"
35214 || test ! -s conftest.err'
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); }; } &&
35220 { ac_try='test -s conftest.$ac_objext'
35221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35222 (eval $ac_try) 2>&5
35224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35225 (exit $ac_status); }; }; then
35228 cat >conftest.$ac_ext <<_ACEOF
35231 cat confdefs.h >>conftest.$ac_ext
35232 cat >>conftest.$ac_ext <<_ACEOF
35233 /* end confdefs.h. */
35234 $ac_includes_default
35238 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
35245 rm -f conftest.$ac_objext
35246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35247 (eval $ac_compile) 2>conftest.er1
35249 grep -v '^ *+' conftest.er1 >conftest.err
35251 cat conftest.err >&5
35252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35253 (exit $ac_status); } &&
35254 { ac_try='test -z "$ac_c_werror_flag"
35255 || test ! -s conftest.err'
35256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35257 (eval $ac_try) 2>&5
35259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35260 (exit $ac_status); }; } &&
35261 { ac_try='test -s conftest.$ac_objext'
35262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35263 (eval $ac_try) 2>&5
35265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35266 (exit $ac_status); }; }; then
35267 ac_hi=$ac_mid; break
35269 echo "$as_me: failed program was:" >&5
35270 sed 's/^/| /' conftest.$ac_ext >&5
35272 ac_lo=`expr $ac_mid + 1`
35273 if test $ac_lo -le $ac_mid; then
35277 ac_mid=`expr 2 '*' $ac_mid + 1`
35279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35282 echo "$as_me: failed program was:" >&5
35283 sed 's/^/| /' conftest.$ac_ext >&5
35285 cat >conftest.$ac_ext <<_ACEOF
35288 cat confdefs.h >>conftest.$ac_ext
35289 cat >>conftest.$ac_ext <<_ACEOF
35290 /* end confdefs.h. */
35291 $ac_includes_default
35295 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
35302 rm -f conftest.$ac_objext
35303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35304 (eval $ac_compile) 2>conftest.er1
35306 grep -v '^ *+' conftest.er1 >conftest.err
35308 cat conftest.err >&5
35309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35310 (exit $ac_status); } &&
35311 { ac_try='test -z "$ac_c_werror_flag"
35312 || test ! -s conftest.err'
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); }; } &&
35318 { ac_try='test -s conftest.$ac_objext'
35319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35320 (eval $ac_try) 2>&5
35322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35323 (exit $ac_status); }; }; then
35326 cat >conftest.$ac_ext <<_ACEOF
35329 cat confdefs.h >>conftest.$ac_ext
35330 cat >>conftest.$ac_ext <<_ACEOF
35331 /* end confdefs.h. */
35332 $ac_includes_default
35336 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
35343 rm -f conftest.$ac_objext
35344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35345 (eval $ac_compile) 2>conftest.er1
35347 grep -v '^ *+' conftest.er1 >conftest.err
35349 cat conftest.err >&5
35350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35351 (exit $ac_status); } &&
35352 { ac_try='test -z "$ac_c_werror_flag"
35353 || test ! -s conftest.err'
35354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35355 (eval $ac_try) 2>&5
35357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35358 (exit $ac_status); }; } &&
35359 { ac_try='test -s conftest.$ac_objext'
35360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35361 (eval $ac_try) 2>&5
35363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35364 (exit $ac_status); }; }; then
35365 ac_lo=$ac_mid; break
35367 echo "$as_me: failed program was:" >&5
35368 sed 's/^/| /' conftest.$ac_ext >&5
35370 ac_hi=`expr '(' $ac_mid ')' - 1`
35371 if test $ac_mid -le $ac_hi; then
35375 ac_mid=`expr 2 '*' $ac_mid`
35377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35380 echo "$as_me: failed program was:" >&5
35381 sed 's/^/| /' conftest.$ac_ext >&5
35385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35388 # Binary search between lo and hi bounds.
35389 while test "x$ac_lo" != "x$ac_hi"; do
35390 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35391 cat >conftest.$ac_ext <<_ACEOF
35394 cat confdefs.h >>conftest.$ac_ext
35395 cat >>conftest.$ac_ext <<_ACEOF
35396 /* end confdefs.h. */
35397 $ac_includes_default
35401 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
35408 rm -f conftest.$ac_objext
35409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35410 (eval $ac_compile) 2>conftest.er1
35412 grep -v '^ *+' conftest.er1 >conftest.err
35414 cat conftest.err >&5
35415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35416 (exit $ac_status); } &&
35417 { ac_try='test -z "$ac_c_werror_flag"
35418 || test ! -s conftest.err'
35419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35420 (eval $ac_try) 2>&5
35422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35423 (exit $ac_status); }; } &&
35424 { ac_try='test -s conftest.$ac_objext'
35425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35426 (eval $ac_try) 2>&5
35428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35429 (exit $ac_status); }; }; then
35432 echo "$as_me: failed program was:" >&5
35433 sed 's/^/| /' conftest.$ac_ext >&5
35435 ac_lo=`expr '(' $ac_mid ')' + 1`
35437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35440 ?*) ac_cv_sizeof_long_long=$ac_lo;;
35441 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
35442 See \`config.log' for more details." >&5
35443 echo "$as_me: error: cannot compute sizeof (long long), 77
35444 See \`config.log' for more details." >&2;}
35445 { (exit 1); exit 1; }; } ;;
35448 if test "$cross_compiling" = yes; then
35449 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
35450 See \`config.log' for more details." >&5
35451 echo "$as_me: error: cannot run test program while cross compiling
35452 See \`config.log' for more details." >&2;}
35453 { (exit 1); exit 1; }; }
35455 cat >conftest.$ac_ext <<_ACEOF
35458 cat confdefs.h >>conftest.$ac_ext
35459 cat >>conftest.$ac_ext <<_ACEOF
35460 /* end confdefs.h. */
35461 $ac_includes_default
35462 long longval () { return (long) (sizeof (long long)); }
35463 unsigned long ulongval () { return (long) (sizeof (long long)); }
35465 #include <stdlib.h>
35470 FILE *f = fopen ("conftest.val", "w");
35473 if (((long) (sizeof (long long))) < 0)
35475 long i = longval ();
35476 if (i != ((long) (sizeof (long long))))
35478 fprintf (f, "%ld\n", i);
35482 unsigned long i = ulongval ();
35483 if (i != ((long) (sizeof (long long))))
35485 fprintf (f, "%lu\n", i);
35487 exit (ferror (f) || fclose (f) != 0);
35493 rm -f conftest$ac_exeext
35494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35495 (eval $ac_link) 2>&5
35497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35498 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35500 (eval $ac_try) 2>&5
35502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35503 (exit $ac_status); }; }; then
35504 ac_cv_sizeof_long_long=`cat conftest.val`
35506 echo "$as_me: program exited with status $ac_status" >&5
35507 echo "$as_me: failed program was:" >&5
35508 sed 's/^/| /' conftest.$ac_ext >&5
35510 ( exit $ac_status )
35511 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
35512 See \`config.log' for more details." >&5
35513 echo "$as_me: error: cannot compute sizeof (long long), 77
35514 See \`config.log' for more details." >&2;}
35515 { (exit 1); exit 1; }; }
35517 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35522 ac_cv_sizeof_long_long=0
35525 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
35526 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
35527 cat >>confdefs.h <<_ACEOF
35528 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
35532 echo "$as_me:$LINENO: checking for wchar_t" >&5
35533 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
35534 if test "${ac_cv_type_wchar_t+set}" = set; then
35535 echo $ECHO_N "(cached) $ECHO_C" >&6
35537 cat >conftest.$ac_ext <<_ACEOF
35540 cat confdefs.h >>conftest.$ac_ext
35541 cat >>conftest.$ac_ext <<_ACEOF
35542 /* end confdefs.h. */
35543 $ac_includes_default
35549 if (sizeof (wchar_t))
35555 rm -f conftest.$ac_objext
35556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35557 (eval $ac_compile) 2>conftest.er1
35559 grep -v '^ *+' conftest.er1 >conftest.err
35561 cat conftest.err >&5
35562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35563 (exit $ac_status); } &&
35564 { ac_try='test -z "$ac_c_werror_flag"
35565 || test ! -s conftest.err'
35566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35567 (eval $ac_try) 2>&5
35569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35570 (exit $ac_status); }; } &&
35571 { ac_try='test -s conftest.$ac_objext'
35572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35573 (eval $ac_try) 2>&5
35575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35576 (exit $ac_status); }; }; then
35577 ac_cv_type_wchar_t=yes
35579 echo "$as_me: failed program was:" >&5
35580 sed 's/^/| /' conftest.$ac_ext >&5
35582 ac_cv_type_wchar_t=no
35584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35586 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
35587 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
35589 echo "$as_me:$LINENO: checking size of wchar_t" >&5
35590 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
35591 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
35592 echo $ECHO_N "(cached) $ECHO_C" >&6
35594 if test "$ac_cv_type_wchar_t" = yes; then
35595 # The cast to unsigned long works around a bug in the HP C Compiler
35596 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35597 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35598 # This bug is HP SR number 8606223364.
35599 if test "$cross_compiling" = yes; then
35600 # Depending upon the size, compute the lo and hi bounds.
35601 cat >conftest.$ac_ext <<_ACEOF
35604 cat confdefs.h >>conftest.$ac_ext
35605 cat >>conftest.$ac_ext <<_ACEOF
35606 /* end confdefs.h. */
35607 $ac_includes_default
35611 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
35618 rm -f conftest.$ac_objext
35619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35620 (eval $ac_compile) 2>conftest.er1
35622 grep -v '^ *+' conftest.er1 >conftest.err
35624 cat conftest.err >&5
35625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35626 (exit $ac_status); } &&
35627 { ac_try='test -z "$ac_c_werror_flag"
35628 || test ! -s conftest.err'
35629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35630 (eval $ac_try) 2>&5
35632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35633 (exit $ac_status); }; } &&
35634 { ac_try='test -s conftest.$ac_objext'
35635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35636 (eval $ac_try) 2>&5
35638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35639 (exit $ac_status); }; }; then
35642 cat >conftest.$ac_ext <<_ACEOF
35645 cat confdefs.h >>conftest.$ac_ext
35646 cat >>conftest.$ac_ext <<_ACEOF
35647 /* end confdefs.h. */
35648 $ac_includes_default
35652 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
35659 rm -f conftest.$ac_objext
35660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35661 (eval $ac_compile) 2>conftest.er1
35663 grep -v '^ *+' conftest.er1 >conftest.err
35665 cat conftest.err >&5
35666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35667 (exit $ac_status); } &&
35668 { ac_try='test -z "$ac_c_werror_flag"
35669 || test ! -s conftest.err'
35670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35671 (eval $ac_try) 2>&5
35673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35674 (exit $ac_status); }; } &&
35675 { ac_try='test -s conftest.$ac_objext'
35676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35677 (eval $ac_try) 2>&5
35679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35680 (exit $ac_status); }; }; then
35681 ac_hi=$ac_mid; break
35683 echo "$as_me: failed program was:" >&5
35684 sed 's/^/| /' conftest.$ac_ext >&5
35686 ac_lo=`expr $ac_mid + 1`
35687 if test $ac_lo -le $ac_mid; then
35691 ac_mid=`expr 2 '*' $ac_mid + 1`
35693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35696 echo "$as_me: failed program was:" >&5
35697 sed 's/^/| /' conftest.$ac_ext >&5
35699 cat >conftest.$ac_ext <<_ACEOF
35702 cat confdefs.h >>conftest.$ac_ext
35703 cat >>conftest.$ac_ext <<_ACEOF
35704 /* end confdefs.h. */
35705 $ac_includes_default
35709 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
35716 rm -f conftest.$ac_objext
35717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35718 (eval $ac_compile) 2>conftest.er1
35720 grep -v '^ *+' conftest.er1 >conftest.err
35722 cat conftest.err >&5
35723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35724 (exit $ac_status); } &&
35725 { ac_try='test -z "$ac_c_werror_flag"
35726 || test ! -s conftest.err'
35727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35728 (eval $ac_try) 2>&5
35730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35731 (exit $ac_status); }; } &&
35732 { ac_try='test -s conftest.$ac_objext'
35733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35734 (eval $ac_try) 2>&5
35736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35737 (exit $ac_status); }; }; then
35740 cat >conftest.$ac_ext <<_ACEOF
35743 cat confdefs.h >>conftest.$ac_ext
35744 cat >>conftest.$ac_ext <<_ACEOF
35745 /* end confdefs.h. */
35746 $ac_includes_default
35750 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
35757 rm -f conftest.$ac_objext
35758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35759 (eval $ac_compile) 2>conftest.er1
35761 grep -v '^ *+' conftest.er1 >conftest.err
35763 cat conftest.err >&5
35764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35765 (exit $ac_status); } &&
35766 { ac_try='test -z "$ac_c_werror_flag"
35767 || test ! -s conftest.err'
35768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35769 (eval $ac_try) 2>&5
35771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35772 (exit $ac_status); }; } &&
35773 { ac_try='test -s conftest.$ac_objext'
35774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35775 (eval $ac_try) 2>&5
35777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35778 (exit $ac_status); }; }; then
35779 ac_lo=$ac_mid; break
35781 echo "$as_me: failed program was:" >&5
35782 sed 's/^/| /' conftest.$ac_ext >&5
35784 ac_hi=`expr '(' $ac_mid ')' - 1`
35785 if test $ac_mid -le $ac_hi; then
35789 ac_mid=`expr 2 '*' $ac_mid`
35791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35794 echo "$as_me: failed program was:" >&5
35795 sed 's/^/| /' conftest.$ac_ext >&5
35799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35802 # Binary search between lo and hi bounds.
35803 while test "x$ac_lo" != "x$ac_hi"; do
35804 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35805 cat >conftest.$ac_ext <<_ACEOF
35808 cat confdefs.h >>conftest.$ac_ext
35809 cat >>conftest.$ac_ext <<_ACEOF
35810 /* end confdefs.h. */
35811 $ac_includes_default
35815 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
35822 rm -f conftest.$ac_objext
35823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35824 (eval $ac_compile) 2>conftest.er1
35826 grep -v '^ *+' conftest.er1 >conftest.err
35828 cat conftest.err >&5
35829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35830 (exit $ac_status); } &&
35831 { ac_try='test -z "$ac_c_werror_flag"
35832 || test ! -s conftest.err'
35833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35834 (eval $ac_try) 2>&5
35836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35837 (exit $ac_status); }; } &&
35838 { ac_try='test -s conftest.$ac_objext'
35839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35840 (eval $ac_try) 2>&5
35842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35843 (exit $ac_status); }; }; then
35846 echo "$as_me: failed program was:" >&5
35847 sed 's/^/| /' conftest.$ac_ext >&5
35849 ac_lo=`expr '(' $ac_mid ')' + 1`
35851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35854 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
35855 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
35856 See \`config.log' for more details." >&5
35857 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
35858 See \`config.log' for more details." >&2;}
35859 { (exit 1); exit 1; }; } ;;
35862 if test "$cross_compiling" = yes; then
35863 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
35864 See \`config.log' for more details." >&5
35865 echo "$as_me: error: cannot run test program while cross compiling
35866 See \`config.log' for more details." >&2;}
35867 { (exit 1); exit 1; }; }
35869 cat >conftest.$ac_ext <<_ACEOF
35872 cat confdefs.h >>conftest.$ac_ext
35873 cat >>conftest.$ac_ext <<_ACEOF
35874 /* end confdefs.h. */
35875 $ac_includes_default
35876 long longval () { return (long) (sizeof (wchar_t)); }
35877 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
35879 #include <stdlib.h>
35884 FILE *f = fopen ("conftest.val", "w");
35887 if (((long) (sizeof (wchar_t))) < 0)
35889 long i = longval ();
35890 if (i != ((long) (sizeof (wchar_t))))
35892 fprintf (f, "%ld\n", i);
35896 unsigned long i = ulongval ();
35897 if (i != ((long) (sizeof (wchar_t))))
35899 fprintf (f, "%lu\n", i);
35901 exit (ferror (f) || fclose (f) != 0);
35907 rm -f conftest$ac_exeext
35908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35909 (eval $ac_link) 2>&5
35911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35912 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35914 (eval $ac_try) 2>&5
35916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35917 (exit $ac_status); }; }; then
35918 ac_cv_sizeof_wchar_t=`cat conftest.val`
35920 echo "$as_me: program exited with status $ac_status" >&5
35921 echo "$as_me: failed program was:" >&5
35922 sed 's/^/| /' conftest.$ac_ext >&5
35924 ( exit $ac_status )
35925 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
35926 See \`config.log' for more details." >&5
35927 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
35928 See \`config.log' for more details." >&2;}
35929 { (exit 1); exit 1; }; }
35931 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35936 ac_cv_sizeof_wchar_t=0
35939 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
35940 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
35941 cat >>confdefs.h <<_ACEOF
35942 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
35947 if test "$ac_cv_sizeof_int" -lt 4 ; then
35948 { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
35949 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
35952 cat >>confdefs.h <<\_ACEOF
35953 #define LBER_INT_T long
35958 cat >>confdefs.h <<\_ACEOF
35959 #define LBER_INT_T int
35965 cat >>confdefs.h <<\_ACEOF
35966 #define LBER_LEN_T long
35970 cat >>confdefs.h <<\_ACEOF
35971 #define LBER_SOCKET_T int
35975 cat >>confdefs.h <<\_ACEOF
35976 #define LBER_TAG_T long
35980 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
35981 if test $ac_cv_sizeof_long_long -gt 4 ; then
35982 ol_with_mp=longlong
35984 cat >>confdefs.h <<\_ACEOF
35985 #define USE_MP_LONG_LONG 1
35988 elif test $ol_with_mp = longlong ; then
35989 { { echo "$as_me:$LINENO: error: long long unusable for multiple precision" >&5
35990 echo "$as_me: error: long long unusable for multiple precision" >&2;}
35991 { (exit 1); exit 1; }; }
35994 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
35995 if test $ac_cv_sizeof_long -gt 4 ; then
35998 cat >>confdefs.h <<\_ACEOF
35999 #define USE_MP_LONG 1
36002 elif test $ol_with_mp = long ; then
36003 { { echo "$as_me:$LINENO: error: long unusable for multiple precision" >&5
36004 echo "$as_me: error: long unusable for multiple precision" >&2;}
36005 { (exit 1); exit 1; }; }
36008 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
36010 for ac_header in openssl/bn.h
36012 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36014 echo "$as_me:$LINENO: checking for $ac_header" >&5
36015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36017 echo $ECHO_N "(cached) $ECHO_C" >&6
36019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36020 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36022 # Is the header compilable?
36023 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36024 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36025 cat >conftest.$ac_ext <<_ACEOF
36028 cat confdefs.h >>conftest.$ac_ext
36029 cat >>conftest.$ac_ext <<_ACEOF
36030 /* end confdefs.h. */
36031 $ac_includes_default
36032 #include <$ac_header>
36034 rm -f conftest.$ac_objext
36035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36036 (eval $ac_compile) 2>conftest.er1
36038 grep -v '^ *+' conftest.er1 >conftest.err
36040 cat conftest.err >&5
36041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36042 (exit $ac_status); } &&
36043 { ac_try='test -z "$ac_c_werror_flag"
36044 || test ! -s conftest.err'
36045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36046 (eval $ac_try) 2>&5
36048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36049 (exit $ac_status); }; } &&
36050 { ac_try='test -s conftest.$ac_objext'
36051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36052 (eval $ac_try) 2>&5
36054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36055 (exit $ac_status); }; }; then
36056 ac_header_compiler=yes
36058 echo "$as_me: failed program was:" >&5
36059 sed 's/^/| /' conftest.$ac_ext >&5
36061 ac_header_compiler=no
36063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36064 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36065 echo "${ECHO_T}$ac_header_compiler" >&6
36067 # Is the header present?
36068 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36069 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36070 cat >conftest.$ac_ext <<_ACEOF
36073 cat confdefs.h >>conftest.$ac_ext
36074 cat >>conftest.$ac_ext <<_ACEOF
36075 /* end confdefs.h. */
36076 #include <$ac_header>
36078 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36079 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36081 grep -v '^ *+' conftest.er1 >conftest.err
36083 cat conftest.err >&5
36084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36085 (exit $ac_status); } >/dev/null; then
36086 if test -s conftest.err; then
36087 ac_cpp_err=$ac_c_preproc_warn_flag
36088 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36095 if test -z "$ac_cpp_err"; then
36096 ac_header_preproc=yes
36098 echo "$as_me: failed program was:" >&5
36099 sed 's/^/| /' conftest.$ac_ext >&5
36101 ac_header_preproc=no
36103 rm -f conftest.err conftest.$ac_ext
36104 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36105 echo "${ECHO_T}$ac_header_preproc" >&6
36107 # So? What about this header?
36108 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36110 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36111 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36113 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36114 ac_header_preproc=yes
36117 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36118 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36119 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36120 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36121 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36122 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36123 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36124 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36126 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36127 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36128 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36131 ## --------------------------------------------- ##
36132 ## Report this to <http://www.openldap.org/its/> ##
36133 ## --------------------------------------------- ##
36136 sed "s/^/$as_me: WARNING: /" >&2
36139 echo "$as_me:$LINENO: checking for $ac_header" >&5
36140 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36141 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36142 echo $ECHO_N "(cached) $ECHO_C" >&6
36144 eval "$as_ac_Header=\$ac_header_preproc"
36146 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36147 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36150 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36151 cat >>confdefs.h <<_ACEOF
36152 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36160 for ac_header in openssl/crypto.h
36162 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36163 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36164 echo "$as_me:$LINENO: checking for $ac_header" >&5
36165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36166 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36167 echo $ECHO_N "(cached) $ECHO_C" >&6
36169 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36170 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36172 # Is the header compilable?
36173 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36174 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36175 cat >conftest.$ac_ext <<_ACEOF
36178 cat confdefs.h >>conftest.$ac_ext
36179 cat >>conftest.$ac_ext <<_ACEOF
36180 /* end confdefs.h. */
36181 $ac_includes_default
36182 #include <$ac_header>
36184 rm -f conftest.$ac_objext
36185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36186 (eval $ac_compile) 2>conftest.er1
36188 grep -v '^ *+' conftest.er1 >conftest.err
36190 cat conftest.err >&5
36191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36192 (exit $ac_status); } &&
36193 { ac_try='test -z "$ac_c_werror_flag"
36194 || test ! -s conftest.err'
36195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36196 (eval $ac_try) 2>&5
36198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36199 (exit $ac_status); }; } &&
36200 { ac_try='test -s conftest.$ac_objext'
36201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36202 (eval $ac_try) 2>&5
36204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36205 (exit $ac_status); }; }; then
36206 ac_header_compiler=yes
36208 echo "$as_me: failed program was:" >&5
36209 sed 's/^/| /' conftest.$ac_ext >&5
36211 ac_header_compiler=no
36213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36214 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36215 echo "${ECHO_T}$ac_header_compiler" >&6
36217 # Is the header present?
36218 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36219 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36220 cat >conftest.$ac_ext <<_ACEOF
36223 cat confdefs.h >>conftest.$ac_ext
36224 cat >>conftest.$ac_ext <<_ACEOF
36225 /* end confdefs.h. */
36226 #include <$ac_header>
36228 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36229 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36231 grep -v '^ *+' conftest.er1 >conftest.err
36233 cat conftest.err >&5
36234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36235 (exit $ac_status); } >/dev/null; then
36236 if test -s conftest.err; then
36237 ac_cpp_err=$ac_c_preproc_warn_flag
36238 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36245 if test -z "$ac_cpp_err"; then
36246 ac_header_preproc=yes
36248 echo "$as_me: failed program was:" >&5
36249 sed 's/^/| /' conftest.$ac_ext >&5
36251 ac_header_preproc=no
36253 rm -f conftest.err conftest.$ac_ext
36254 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36255 echo "${ECHO_T}$ac_header_preproc" >&6
36257 # So? What about this header?
36258 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36260 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36261 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36262 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36263 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36264 ac_header_preproc=yes
36267 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36268 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36269 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36270 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36271 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36272 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36273 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36274 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36276 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36277 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36278 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36281 ## --------------------------------------------- ##
36282 ## Report this to <http://www.openldap.org/its/> ##
36283 ## --------------------------------------------- ##
36286 sed "s/^/$as_me: WARNING: /" >&2
36289 echo "$as_me:$LINENO: checking for $ac_header" >&5
36290 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36291 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36292 echo $ECHO_N "(cached) $ECHO_C" >&6
36294 eval "$as_ac_Header=\$ac_header_preproc"
36296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36297 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36300 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36301 cat >>confdefs.h <<_ACEOF
36302 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36309 if test "$ac_cv_header_openssl_bn_h" = "yes" &&
36310 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
36311 test "$ol_with_tls" = "found" ; then
36314 cat >>confdefs.h <<\_ACEOF
36315 #define USE_MP_BIGNUM 1
36318 elif test $ol_with_mp = bignum ; then
36319 { { echo "$as_me:$LINENO: error: bignum not available" >&5
36320 echo "$as_me: error: bignum not available" >&2;}
36321 { (exit 1); exit 1; }; }
36324 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
36326 for ac_header in gmp.h
36328 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36329 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36330 echo "$as_me:$LINENO: checking for $ac_header" >&5
36331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36333 echo $ECHO_N "(cached) $ECHO_C" >&6
36335 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36336 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36338 # Is the header compilable?
36339 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36340 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36341 cat >conftest.$ac_ext <<_ACEOF
36344 cat confdefs.h >>conftest.$ac_ext
36345 cat >>conftest.$ac_ext <<_ACEOF
36346 /* end confdefs.h. */
36347 $ac_includes_default
36348 #include <$ac_header>
36350 rm -f conftest.$ac_objext
36351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36352 (eval $ac_compile) 2>conftest.er1
36354 grep -v '^ *+' conftest.er1 >conftest.err
36356 cat conftest.err >&5
36357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36358 (exit $ac_status); } &&
36359 { ac_try='test -z "$ac_c_werror_flag"
36360 || test ! -s conftest.err'
36361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36362 (eval $ac_try) 2>&5
36364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36365 (exit $ac_status); }; } &&
36366 { ac_try='test -s conftest.$ac_objext'
36367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36368 (eval $ac_try) 2>&5
36370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36371 (exit $ac_status); }; }; then
36372 ac_header_compiler=yes
36374 echo "$as_me: failed program was:" >&5
36375 sed 's/^/| /' conftest.$ac_ext >&5
36377 ac_header_compiler=no
36379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36380 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36381 echo "${ECHO_T}$ac_header_compiler" >&6
36383 # Is the header present?
36384 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36385 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36386 cat >conftest.$ac_ext <<_ACEOF
36389 cat confdefs.h >>conftest.$ac_ext
36390 cat >>conftest.$ac_ext <<_ACEOF
36391 /* end confdefs.h. */
36392 #include <$ac_header>
36394 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36395 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36397 grep -v '^ *+' conftest.er1 >conftest.err
36399 cat conftest.err >&5
36400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36401 (exit $ac_status); } >/dev/null; then
36402 if test -s conftest.err; then
36403 ac_cpp_err=$ac_c_preproc_warn_flag
36404 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36411 if test -z "$ac_cpp_err"; then
36412 ac_header_preproc=yes
36414 echo "$as_me: failed program was:" >&5
36415 sed 's/^/| /' conftest.$ac_ext >&5
36417 ac_header_preproc=no
36419 rm -f conftest.err conftest.$ac_ext
36420 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36421 echo "${ECHO_T}$ac_header_preproc" >&6
36423 # So? What about this header?
36424 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36426 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36427 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36428 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36429 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36430 ac_header_preproc=yes
36433 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36434 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36435 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36436 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36437 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36438 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36439 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36440 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36441 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36442 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36443 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36444 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36447 ## --------------------------------------------- ##
36448 ## Report this to <http://www.openldap.org/its/> ##
36449 ## --------------------------------------------- ##
36452 sed "s/^/$as_me: WARNING: /" >&2
36455 echo "$as_me:$LINENO: checking for $ac_header" >&5
36456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36457 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36458 echo $ECHO_N "(cached) $ECHO_C" >&6
36460 eval "$as_ac_Header=\$ac_header_preproc"
36462 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36463 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36466 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36467 cat >>confdefs.h <<_ACEOF
36468 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36476 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
36477 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
36478 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
36479 echo $ECHO_N "(cached) $ECHO_C" >&6
36481 ac_check_lib_save_LIBS=$LIBS
36483 cat >conftest.$ac_ext <<_ACEOF
36486 cat confdefs.h >>conftest.$ac_ext
36487 cat >>conftest.$ac_ext <<_ACEOF
36488 /* end confdefs.h. */
36490 /* Override any gcc2 internal prototype to avoid an error. */
36494 /* We use char because int might match the return type of a gcc2
36495 builtin and then its argument prototype would still apply. */
36496 char __gmpz_add_ui ();
36505 rm -f conftest.$ac_objext conftest$ac_exeext
36506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36507 (eval $ac_link) 2>conftest.er1
36509 grep -v '^ *+' conftest.er1 >conftest.err
36511 cat conftest.err >&5
36512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36513 (exit $ac_status); } &&
36514 { ac_try='test -z "$ac_c_werror_flag"
36515 || test ! -s conftest.err'
36516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36517 (eval $ac_try) 2>&5
36519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36520 (exit $ac_status); }; } &&
36521 { ac_try='test -s conftest$ac_exeext'
36522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36523 (eval $ac_try) 2>&5
36525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36526 (exit $ac_status); }; }; then
36527 ac_cv_lib_gmp___gmpz_add_ui=yes
36529 echo "$as_me: failed program was:" >&5
36530 sed 's/^/| /' conftest.$ac_ext >&5
36532 ac_cv_lib_gmp___gmpz_add_ui=no
36534 rm -f conftest.err conftest.$ac_objext \
36535 conftest$ac_exeext conftest.$ac_ext
36536 LIBS=$ac_check_lib_save_LIBS
36538 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
36539 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
36540 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
36541 cat >>confdefs.h <<_ACEOF
36542 #define HAVE_LIBGMP 1
36549 if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
36551 cat >>confdefs.h <<\_ACEOF
36552 #define USE_MP_GMP 1
36556 elif test $ol_with_mp = gmp ; then
36557 { { echo "$as_me:$LINENO: error: gmp not available" >&5
36558 echo "$as_me: error: gmp not available" >&2;}
36559 { (exit 1); exit 1; }; }
36562 if test $ol_with_mp = auto ; then
36566 echo "$as_me:$LINENO: checking for working memcmp" >&5
36567 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
36568 if test "${ac_cv_func_memcmp_working+set}" = set; then
36569 echo $ECHO_N "(cached) $ECHO_C" >&6
36571 if test "$cross_compiling" = yes; then
36572 ac_cv_func_memcmp_working=no
36574 cat >conftest.$ac_ext <<_ACEOF
36577 cat confdefs.h >>conftest.$ac_ext
36578 cat >>conftest.$ac_ext <<_ACEOF
36579 /* end confdefs.h. */
36580 $ac_includes_default
36585 /* Some versions of memcmp are not 8-bit clean. */
36586 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
36587 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
36590 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
36591 or more and with at least one buffer not starting on a 4-byte boundary.
36592 William Lewis provided this test program. */
36597 for (i = 0; i < 4; i++)
36601 strcpy (a, "--------01111111");
36602 strcpy (b, "--------10000000");
36603 if (memcmp (a, b, 16) >= 0)
36613 rm -f conftest$ac_exeext
36614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36615 (eval $ac_link) 2>&5
36617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36618 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36620 (eval $ac_try) 2>&5
36622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36623 (exit $ac_status); }; }; then
36624 ac_cv_func_memcmp_working=yes
36626 echo "$as_me: program exited with status $ac_status" >&5
36627 echo "$as_me: failed program was:" >&5
36628 sed 's/^/| /' conftest.$ac_ext >&5
36630 ( exit $ac_status )
36631 ac_cv_func_memcmp_working=no
36633 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36636 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
36637 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
36638 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
36639 "memcmp.$ac_objext" | \
36640 *" memcmp.$ac_objext" | \
36641 "memcmp.$ac_objext "* | \
36642 *" memcmp.$ac_objext "* ) ;;
36643 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
36648 if test $ac_cv_func_memcmp_working = no ; then
36650 cat >>confdefs.h <<\_ACEOF
36651 #define NEED_MEMCMP_REPLACEMENT 1
36657 for ac_func in strftime
36659 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36660 echo "$as_me:$LINENO: checking for $ac_func" >&5
36661 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36662 if eval "test \"\${$as_ac_var+set}\" = set"; then
36663 echo $ECHO_N "(cached) $ECHO_C" >&6
36665 cat >conftest.$ac_ext <<_ACEOF
36668 cat confdefs.h >>conftest.$ac_ext
36669 cat >>conftest.$ac_ext <<_ACEOF
36670 /* end confdefs.h. */
36671 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36672 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36673 #define $ac_func innocuous_$ac_func
36675 /* System header to define __stub macros and hopefully few prototypes,
36676 which can conflict with char $ac_func (); below.
36677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36678 <limits.h> exists even on freestanding compilers. */
36681 # include <limits.h>
36683 # include <assert.h>
36688 /* Override any gcc2 internal prototype to avoid an error. */
36693 /* We use char because int might match the return type of a gcc2
36694 builtin and then its argument prototype would still apply. */
36696 /* The GNU C library defines this for functions which it implements
36697 to always fail with ENOSYS. Some functions are actually named
36698 something starting with __ and the normal name is an alias. */
36699 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36702 char (*f) () = $ac_func;
36711 return f != $ac_func;
36716 rm -f conftest.$ac_objext conftest$ac_exeext
36717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36718 (eval $ac_link) 2>conftest.er1
36720 grep -v '^ *+' conftest.er1 >conftest.err
36722 cat conftest.err >&5
36723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36724 (exit $ac_status); } &&
36725 { ac_try='test -z "$ac_c_werror_flag"
36726 || test ! -s conftest.err'
36727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36728 (eval $ac_try) 2>&5
36730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36731 (exit $ac_status); }; } &&
36732 { ac_try='test -s conftest$ac_exeext'
36733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36734 (eval $ac_try) 2>&5
36736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36737 (exit $ac_status); }; }; then
36738 eval "$as_ac_var=yes"
36740 echo "$as_me: failed program was:" >&5
36741 sed 's/^/| /' conftest.$ac_ext >&5
36743 eval "$as_ac_var=no"
36745 rm -f conftest.err conftest.$ac_objext \
36746 conftest$ac_exeext conftest.$ac_ext
36748 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36749 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36750 if test `eval echo '${'$as_ac_var'}'` = yes; then
36751 cat >>confdefs.h <<_ACEOF
36752 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36756 # strftime is in -lintl on SCO UNIX.
36757 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
36758 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
36759 if test "${ac_cv_lib_intl_strftime+set}" = set; then
36760 echo $ECHO_N "(cached) $ECHO_C" >&6
36762 ac_check_lib_save_LIBS=$LIBS
36763 LIBS="-lintl $LIBS"
36764 cat >conftest.$ac_ext <<_ACEOF
36767 cat confdefs.h >>conftest.$ac_ext
36768 cat >>conftest.$ac_ext <<_ACEOF
36769 /* end confdefs.h. */
36771 /* Override any gcc2 internal prototype to avoid an error. */
36775 /* We use char because int might match the return type of a gcc2
36776 builtin and then its argument prototype would still apply. */
36786 rm -f conftest.$ac_objext conftest$ac_exeext
36787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36788 (eval $ac_link) 2>conftest.er1
36790 grep -v '^ *+' conftest.er1 >conftest.err
36792 cat conftest.err >&5
36793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36794 (exit $ac_status); } &&
36795 { ac_try='test -z "$ac_c_werror_flag"
36796 || test ! -s conftest.err'
36797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36798 (eval $ac_try) 2>&5
36800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36801 (exit $ac_status); }; } &&
36802 { ac_try='test -s conftest$ac_exeext'
36803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36804 (eval $ac_try) 2>&5
36806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36807 (exit $ac_status); }; }; then
36808 ac_cv_lib_intl_strftime=yes
36810 echo "$as_me: failed program was:" >&5
36811 sed 's/^/| /' conftest.$ac_ext >&5
36813 ac_cv_lib_intl_strftime=no
36815 rm -f conftest.err conftest.$ac_objext \
36816 conftest$ac_exeext conftest.$ac_ext
36817 LIBS=$ac_check_lib_save_LIBS
36819 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
36820 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
36821 if test $ac_cv_lib_intl_strftime = yes; then
36822 cat >>confdefs.h <<\_ACEOF
36823 #define HAVE_STRFTIME 1
36826 LIBS="-lintl $LIBS"
36833 echo "$as_me:$LINENO: checking for inet_aton()" >&5
36834 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
36835 if test "${ol_cv_func_inet_aton+set}" = set; then
36836 echo $ECHO_N "(cached) $ECHO_C" >&6
36838 cat >conftest.$ac_ext <<_ACEOF
36841 cat confdefs.h >>conftest.$ac_ext
36842 cat >>conftest.$ac_ext <<_ACEOF
36843 /* end confdefs.h. */
36845 #ifdef HAVE_SYS_TYPES_H
36846 # include <sys/types.h>
36848 #ifdef HAVE_SYS_SOCKET_H
36849 # include <sys/socket.h>
36850 # ifdef HAVE_SYS_SELECT_H
36851 # include <sys/select.h>
36853 # include <netinet/in.h>
36854 # ifdef HAVE_ARPA_INET_H
36855 # include <arpa/inet.h>
36863 int rc = inet_aton( "255.255.255.255", &in );
36868 rm -f conftest.$ac_objext conftest$ac_exeext
36869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36870 (eval $ac_link) 2>conftest.er1
36872 grep -v '^ *+' conftest.er1 >conftest.err
36874 cat conftest.err >&5
36875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36876 (exit $ac_status); } &&
36877 { ac_try='test -z "$ac_c_werror_flag"
36878 || test ! -s conftest.err'
36879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36880 (eval $ac_try) 2>&5
36882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36883 (exit $ac_status); }; } &&
36884 { ac_try='test -s conftest$ac_exeext'
36885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36886 (eval $ac_try) 2>&5
36888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36889 (exit $ac_status); }; }; then
36890 ol_cv_func_inet_aton=yes
36892 echo "$as_me: failed program was:" >&5
36893 sed 's/^/| /' conftest.$ac_ext >&5
36895 ol_cv_func_inet_aton=no
36897 rm -f conftest.err conftest.$ac_objext \
36898 conftest$ac_exeext conftest.$ac_ext
36900 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
36901 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
36902 if test $ol_cv_func_inet_aton != no; then
36904 cat >>confdefs.h <<\_ACEOF
36905 #define HAVE_INET_ATON 1
36911 echo "$as_me:$LINENO: checking for _spawnlp" >&5
36912 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
36913 if test "${ac_cv_func__spawnlp+set}" = set; then
36914 echo $ECHO_N "(cached) $ECHO_C" >&6
36916 cat >conftest.$ac_ext <<_ACEOF
36919 cat confdefs.h >>conftest.$ac_ext
36920 cat >>conftest.$ac_ext <<_ACEOF
36921 /* end confdefs.h. */
36922 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
36923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36924 #define _spawnlp innocuous__spawnlp
36926 /* System header to define __stub macros and hopefully few prototypes,
36927 which can conflict with char _spawnlp (); below.
36928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36929 <limits.h> exists even on freestanding compilers. */
36932 # include <limits.h>
36934 # include <assert.h>
36939 /* Override any gcc2 internal prototype to avoid an error. */
36944 /* We use char because int might match the return type of a gcc2
36945 builtin and then its argument prototype would still apply. */
36947 /* The GNU C library defines this for functions which it implements
36948 to always fail with ENOSYS. Some functions are actually named
36949 something starting with __ and the normal name is an alias. */
36950 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
36953 char (*f) () = _spawnlp;
36962 return f != _spawnlp;
36967 rm -f conftest.$ac_objext conftest$ac_exeext
36968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36969 (eval $ac_link) 2>conftest.er1
36971 grep -v '^ *+' conftest.er1 >conftest.err
36973 cat conftest.err >&5
36974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36975 (exit $ac_status); } &&
36976 { ac_try='test -z "$ac_c_werror_flag"
36977 || test ! -s conftest.err'
36978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36979 (eval $ac_try) 2>&5
36981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36982 (exit $ac_status); }; } &&
36983 { ac_try='test -s conftest$ac_exeext'
36984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36985 (eval $ac_try) 2>&5
36987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36988 (exit $ac_status); }; }; then
36989 ac_cv_func__spawnlp=yes
36991 echo "$as_me: failed program was:" >&5
36992 sed 's/^/| /' conftest.$ac_ext >&5
36994 ac_cv_func__spawnlp=no
36996 rm -f conftest.err conftest.$ac_objext \
36997 conftest$ac_exeext conftest.$ac_ext
36999 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
37000 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
37001 if test $ac_cv_func__spawnlp = yes; then
37003 cat >>confdefs.h <<\_ACEOF
37004 #define HAVE_SPAWNLP 1
37010 echo "$as_me:$LINENO: checking for _snprintf" >&5
37011 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
37012 if test "${ac_cv_func__snprintf+set}" = set; then
37013 echo $ECHO_N "(cached) $ECHO_C" >&6
37015 cat >conftest.$ac_ext <<_ACEOF
37018 cat confdefs.h >>conftest.$ac_ext
37019 cat >>conftest.$ac_ext <<_ACEOF
37020 /* end confdefs.h. */
37021 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
37022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37023 #define _snprintf innocuous__snprintf
37025 /* System header to define __stub macros and hopefully few prototypes,
37026 which can conflict with char _snprintf (); below.
37027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37028 <limits.h> exists even on freestanding compilers. */
37031 # include <limits.h>
37033 # include <assert.h>
37038 /* Override any gcc2 internal prototype to avoid an error. */
37043 /* We use char because int might match the return type of a gcc2
37044 builtin and then its argument prototype would still apply. */
37046 /* The GNU C library defines this for functions which it implements
37047 to always fail with ENOSYS. Some functions are actually named
37048 something starting with __ and the normal name is an alias. */
37049 #if defined (__stub__snprintf) || defined (__stub____snprintf)
37052 char (*f) () = _snprintf;
37061 return f != _snprintf;
37066 rm -f conftest.$ac_objext conftest$ac_exeext
37067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37068 (eval $ac_link) 2>conftest.er1
37070 grep -v '^ *+' conftest.er1 >conftest.err
37072 cat conftest.err >&5
37073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37074 (exit $ac_status); } &&
37075 { ac_try='test -z "$ac_c_werror_flag"
37076 || test ! -s conftest.err'
37077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37078 (eval $ac_try) 2>&5
37080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37081 (exit $ac_status); }; } &&
37082 { ac_try='test -s conftest$ac_exeext'
37083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37084 (eval $ac_try) 2>&5
37086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37087 (exit $ac_status); }; }; then
37088 ac_cv_func__snprintf=yes
37090 echo "$as_me: failed program was:" >&5
37091 sed 's/^/| /' conftest.$ac_ext >&5
37093 ac_cv_func__snprintf=no
37095 rm -f conftest.err conftest.$ac_objext \
37096 conftest$ac_exeext conftest.$ac_ext
37098 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
37099 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
37100 if test $ac_cv_func__snprintf = yes; then
37101 ac_cv_func_snprintf=yes
37103 cat >>confdefs.h <<\_ACEOF
37104 #define snprintf _snprintf
37111 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
37112 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
37113 if test "${ac_cv_func__vsnprintf+set}" = set; then
37114 echo $ECHO_N "(cached) $ECHO_C" >&6
37116 cat >conftest.$ac_ext <<_ACEOF
37119 cat confdefs.h >>conftest.$ac_ext
37120 cat >>conftest.$ac_ext <<_ACEOF
37121 /* end confdefs.h. */
37122 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
37123 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37124 #define _vsnprintf innocuous__vsnprintf
37126 /* System header to define __stub macros and hopefully few prototypes,
37127 which can conflict with char _vsnprintf (); below.
37128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37129 <limits.h> exists even on freestanding compilers. */
37132 # include <limits.h>
37134 # include <assert.h>
37139 /* Override any gcc2 internal prototype to avoid an error. */
37144 /* We use char because int might match the return type of a gcc2
37145 builtin and then its argument prototype would still apply. */
37146 char _vsnprintf ();
37147 /* The GNU C library defines this for functions which it implements
37148 to always fail with ENOSYS. Some functions are actually named
37149 something starting with __ and the normal name is an alias. */
37150 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
37153 char (*f) () = _vsnprintf;
37162 return f != _vsnprintf;
37167 rm -f conftest.$ac_objext conftest$ac_exeext
37168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37169 (eval $ac_link) 2>conftest.er1
37171 grep -v '^ *+' conftest.er1 >conftest.err
37173 cat conftest.err >&5
37174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37175 (exit $ac_status); } &&
37176 { ac_try='test -z "$ac_c_werror_flag"
37177 || test ! -s conftest.err'
37178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37179 (eval $ac_try) 2>&5
37181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37182 (exit $ac_status); }; } &&
37183 { ac_try='test -s conftest$ac_exeext'
37184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37185 (eval $ac_try) 2>&5
37187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37188 (exit $ac_status); }; }; then
37189 ac_cv_func__vsnprintf=yes
37191 echo "$as_me: failed program was:" >&5
37192 sed 's/^/| /' conftest.$ac_ext >&5
37194 ac_cv_func__vsnprintf=no
37196 rm -f conftest.err conftest.$ac_objext \
37197 conftest$ac_exeext conftest.$ac_ext
37199 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
37200 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
37201 if test $ac_cv_func__vsnprintf = yes; then
37202 ac_cv_func_vsnprintf=yes
37204 cat >>confdefs.h <<\_ACEOF
37205 #define vsnprintf _vsnprintf
37213 for ac_func in vprintf
37215 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37216 echo "$as_me:$LINENO: checking for $ac_func" >&5
37217 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37218 if eval "test \"\${$as_ac_var+set}\" = set"; then
37219 echo $ECHO_N "(cached) $ECHO_C" >&6
37221 cat >conftest.$ac_ext <<_ACEOF
37224 cat confdefs.h >>conftest.$ac_ext
37225 cat >>conftest.$ac_ext <<_ACEOF
37226 /* end confdefs.h. */
37227 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37229 #define $ac_func innocuous_$ac_func
37231 /* System header to define __stub macros and hopefully few prototypes,
37232 which can conflict with char $ac_func (); below.
37233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37234 <limits.h> exists even on freestanding compilers. */
37237 # include <limits.h>
37239 # include <assert.h>
37244 /* Override any gcc2 internal prototype to avoid an error. */
37249 /* We use char because int might match the return type of a gcc2
37250 builtin and then its argument prototype would still apply. */
37252 /* The GNU C library defines this for functions which it implements
37253 to always fail with ENOSYS. Some functions are actually named
37254 something starting with __ and the normal name is an alias. */
37255 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37258 char (*f) () = $ac_func;
37267 return f != $ac_func;
37272 rm -f conftest.$ac_objext conftest$ac_exeext
37273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37274 (eval $ac_link) 2>conftest.er1
37276 grep -v '^ *+' conftest.er1 >conftest.err
37278 cat conftest.err >&5
37279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37280 (exit $ac_status); } &&
37281 { ac_try='test -z "$ac_c_werror_flag"
37282 || test ! -s conftest.err'
37283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37284 (eval $ac_try) 2>&5
37286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37287 (exit $ac_status); }; } &&
37288 { ac_try='test -s conftest$ac_exeext'
37289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37290 (eval $ac_try) 2>&5
37292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37293 (exit $ac_status); }; }; then
37294 eval "$as_ac_var=yes"
37296 echo "$as_me: failed program was:" >&5
37297 sed 's/^/| /' conftest.$ac_ext >&5
37299 eval "$as_ac_var=no"
37301 rm -f conftest.err conftest.$ac_objext \
37302 conftest$ac_exeext conftest.$ac_ext
37304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37305 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37306 if test `eval echo '${'$as_ac_var'}'` = yes; then
37307 cat >>confdefs.h <<_ACEOF
37308 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37311 echo "$as_me:$LINENO: checking for _doprnt" >&5
37312 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
37313 if test "${ac_cv_func__doprnt+set}" = set; then
37314 echo $ECHO_N "(cached) $ECHO_C" >&6
37316 cat >conftest.$ac_ext <<_ACEOF
37319 cat confdefs.h >>conftest.$ac_ext
37320 cat >>conftest.$ac_ext <<_ACEOF
37321 /* end confdefs.h. */
37322 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
37323 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37324 #define _doprnt innocuous__doprnt
37326 /* System header to define __stub macros and hopefully few prototypes,
37327 which can conflict with char _doprnt (); below.
37328 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37329 <limits.h> exists even on freestanding compilers. */
37332 # include <limits.h>
37334 # include <assert.h>
37339 /* Override any gcc2 internal prototype to avoid an error. */
37344 /* We use char because int might match the return type of a gcc2
37345 builtin and then its argument prototype would still apply. */
37347 /* The GNU C library defines this for functions which it implements
37348 to always fail with ENOSYS. Some functions are actually named
37349 something starting with __ and the normal name is an alias. */
37350 #if defined (__stub__doprnt) || defined (__stub____doprnt)
37353 char (*f) () = _doprnt;
37362 return f != _doprnt;
37367 rm -f conftest.$ac_objext conftest$ac_exeext
37368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37369 (eval $ac_link) 2>conftest.er1
37371 grep -v '^ *+' conftest.er1 >conftest.err
37373 cat conftest.err >&5
37374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37375 (exit $ac_status); } &&
37376 { ac_try='test -z "$ac_c_werror_flag"
37377 || test ! -s conftest.err'
37378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37379 (eval $ac_try) 2>&5
37381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37382 (exit $ac_status); }; } &&
37383 { ac_try='test -s conftest$ac_exeext'
37384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37385 (eval $ac_try) 2>&5
37387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37388 (exit $ac_status); }; }; then
37389 ac_cv_func__doprnt=yes
37391 echo "$as_me: failed program was:" >&5
37392 sed 's/^/| /' conftest.$ac_ext >&5
37394 ac_cv_func__doprnt=no
37396 rm -f conftest.err conftest.$ac_objext \
37397 conftest$ac_exeext conftest.$ac_ext
37399 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
37400 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
37401 if test $ac_cv_func__doprnt = yes; then
37403 cat >>confdefs.h <<\_ACEOF
37404 #define HAVE_DOPRNT 1
37414 if test $ac_cv_func_vprintf = yes ; then
37417 for ac_func in snprintf vsnprintf
37419 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37420 echo "$as_me:$LINENO: checking for $ac_func" >&5
37421 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37422 if eval "test \"\${$as_ac_var+set}\" = set"; then
37423 echo $ECHO_N "(cached) $ECHO_C" >&6
37425 cat >conftest.$ac_ext <<_ACEOF
37428 cat confdefs.h >>conftest.$ac_ext
37429 cat >>conftest.$ac_ext <<_ACEOF
37430 /* end confdefs.h. */
37431 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37433 #define $ac_func innocuous_$ac_func
37435 /* System header to define __stub macros and hopefully few prototypes,
37436 which can conflict with char $ac_func (); below.
37437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37438 <limits.h> exists even on freestanding compilers. */
37441 # include <limits.h>
37443 # include <assert.h>
37448 /* Override any gcc2 internal prototype to avoid an error. */
37453 /* We use char because int might match the return type of a gcc2
37454 builtin and then its argument prototype would still apply. */
37456 /* The GNU C library defines this for functions which it implements
37457 to always fail with ENOSYS. Some functions are actually named
37458 something starting with __ and the normal name is an alias. */
37459 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37462 char (*f) () = $ac_func;
37471 return f != $ac_func;
37476 rm -f conftest.$ac_objext conftest$ac_exeext
37477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37478 (eval $ac_link) 2>conftest.er1
37480 grep -v '^ *+' conftest.er1 >conftest.err
37482 cat conftest.err >&5
37483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37484 (exit $ac_status); } &&
37485 { ac_try='test -z "$ac_c_werror_flag"
37486 || test ! -s conftest.err'
37487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37488 (eval $ac_try) 2>&5
37490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37491 (exit $ac_status); }; } &&
37492 { ac_try='test -s conftest$ac_exeext'
37493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37494 (eval $ac_try) 2>&5
37496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37497 (exit $ac_status); }; }; then
37498 eval "$as_ac_var=yes"
37500 echo "$as_me: failed program was:" >&5
37501 sed 's/^/| /' conftest.$ac_ext >&5
37503 eval "$as_ac_var=no"
37505 rm -f conftest.err conftest.$ac_objext \
37506 conftest$ac_exeext conftest.$ac_ext
37508 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37509 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37510 if test `eval echo '${'$as_ac_var'}'` = yes; then
37511 cat >>confdefs.h <<_ACEOF
37512 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37633 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37634 echo "$as_me:$LINENO: checking for $ac_func" >&5
37635 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37636 if eval "test \"\${$as_ac_var+set}\" = set"; then
37637 echo $ECHO_N "(cached) $ECHO_C" >&6
37639 cat >conftest.$ac_ext <<_ACEOF
37642 cat confdefs.h >>conftest.$ac_ext
37643 cat >>conftest.$ac_ext <<_ACEOF
37644 /* end confdefs.h. */
37645 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37646 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37647 #define $ac_func innocuous_$ac_func
37649 /* System header to define __stub macros and hopefully few prototypes,
37650 which can conflict with char $ac_func (); below.
37651 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37652 <limits.h> exists even on freestanding compilers. */
37655 # include <limits.h>
37657 # include <assert.h>
37662 /* Override any gcc2 internal prototype to avoid an error. */
37667 /* We use char because int might match the return type of a gcc2
37668 builtin and then its argument prototype would still apply. */
37670 /* The GNU C library defines this for functions which it implements
37671 to always fail with ENOSYS. Some functions are actually named
37672 something starting with __ and the normal name is an alias. */
37673 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37676 char (*f) () = $ac_func;
37685 return f != $ac_func;
37690 rm -f conftest.$ac_objext conftest$ac_exeext
37691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37692 (eval $ac_link) 2>conftest.er1
37694 grep -v '^ *+' conftest.er1 >conftest.err
37696 cat conftest.err >&5
37697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37698 (exit $ac_status); } &&
37699 { ac_try='test -z "$ac_c_werror_flag"
37700 || test ! -s conftest.err'
37701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37702 (eval $ac_try) 2>&5
37704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37705 (exit $ac_status); }; } &&
37706 { ac_try='test -s conftest$ac_exeext'
37707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37708 (eval $ac_try) 2>&5
37710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37711 (exit $ac_status); }; }; then
37712 eval "$as_ac_var=yes"
37714 echo "$as_me: failed program was:" >&5
37715 sed 's/^/| /' conftest.$ac_ext >&5
37717 eval "$as_ac_var=no"
37719 rm -f conftest.err conftest.$ac_objext \
37720 conftest$ac_exeext conftest.$ac_ext
37722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37723 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37724 if test `eval echo '${'$as_ac_var'}'` = yes; then
37725 cat >>confdefs.h <<_ACEOF
37726 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37735 for ac_func in getopt getpeereid
37737 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37738 echo "$as_me:$LINENO: checking for $ac_func" >&5
37739 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37740 if eval "test \"\${$as_ac_var+set}\" = set"; then
37741 echo $ECHO_N "(cached) $ECHO_C" >&6
37743 cat >conftest.$ac_ext <<_ACEOF
37746 cat confdefs.h >>conftest.$ac_ext
37747 cat >>conftest.$ac_ext <<_ACEOF
37748 /* end confdefs.h. */
37749 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37751 #define $ac_func innocuous_$ac_func
37753 /* System header to define __stub macros and hopefully few prototypes,
37754 which can conflict with char $ac_func (); below.
37755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37756 <limits.h> exists even on freestanding compilers. */
37759 # include <limits.h>
37761 # include <assert.h>
37766 /* Override any gcc2 internal prototype to avoid an error. */
37771 /* We use char because int might match the return type of a gcc2
37772 builtin and then its argument prototype would still apply. */
37774 /* The GNU C library defines this for functions which it implements
37775 to always fail with ENOSYS. Some functions are actually named
37776 something starting with __ and the normal name is an alias. */
37777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37780 char (*f) () = $ac_func;
37789 return f != $ac_func;
37794 rm -f conftest.$ac_objext conftest$ac_exeext
37795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37796 (eval $ac_link) 2>conftest.er1
37798 grep -v '^ *+' conftest.er1 >conftest.err
37800 cat conftest.err >&5
37801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37802 (exit $ac_status); } &&
37803 { ac_try='test -z "$ac_c_werror_flag"
37804 || test ! -s conftest.err'
37805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37806 (eval $ac_try) 2>&5
37808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37809 (exit $ac_status); }; } &&
37810 { ac_try='test -s conftest$ac_exeext'
37811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37812 (eval $ac_try) 2>&5
37814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37815 (exit $ac_status); }; }; then
37816 eval "$as_ac_var=yes"
37818 echo "$as_me: failed program was:" >&5
37819 sed 's/^/| /' conftest.$ac_ext >&5
37821 eval "$as_ac_var=no"
37823 rm -f conftest.err conftest.$ac_objext \
37824 conftest$ac_exeext conftest.$ac_ext
37826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37827 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37828 if test `eval echo '${'$as_ac_var'}'` = yes; then
37829 cat >>confdefs.h <<_ACEOF
37830 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37835 "$ac_func.$ac_objext" | \
37836 *" $ac_func.$ac_objext" | \
37837 "$ac_func.$ac_objext "* | \
37838 *" $ac_func.$ac_objext "* ) ;;
37839 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
37847 if test "$ac_cv_func_getopt" != yes; then
37848 LIBSRCS="$LIBSRCS getopt.c"
37851 if test "$ac_cv_func_getpeereid" != yes; then
37853 for ac_func in getpeerucred
37855 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37856 echo "$as_me:$LINENO: checking for $ac_func" >&5
37857 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37858 if eval "test \"\${$as_ac_var+set}\" = set"; then
37859 echo $ECHO_N "(cached) $ECHO_C" >&6
37861 cat >conftest.$ac_ext <<_ACEOF
37864 cat confdefs.h >>conftest.$ac_ext
37865 cat >>conftest.$ac_ext <<_ACEOF
37866 /* end confdefs.h. */
37867 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37869 #define $ac_func innocuous_$ac_func
37871 /* System header to define __stub macros and hopefully few prototypes,
37872 which can conflict with char $ac_func (); below.
37873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37874 <limits.h> exists even on freestanding compilers. */
37877 # include <limits.h>
37879 # include <assert.h>
37884 /* Override any gcc2 internal prototype to avoid an error. */
37889 /* We use char because int might match the return type of a gcc2
37890 builtin and then its argument prototype would still apply. */
37892 /* The GNU C library defines this for functions which it implements
37893 to always fail with ENOSYS. Some functions are actually named
37894 something starting with __ and the normal name is an alias. */
37895 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37898 char (*f) () = $ac_func;
37907 return f != $ac_func;
37912 rm -f conftest.$ac_objext conftest$ac_exeext
37913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37914 (eval $ac_link) 2>conftest.er1
37916 grep -v '^ *+' conftest.er1 >conftest.err
37918 cat conftest.err >&5
37919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37920 (exit $ac_status); } &&
37921 { ac_try='test -z "$ac_c_werror_flag"
37922 || test ! -s conftest.err'
37923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37924 (eval $ac_try) 2>&5
37926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37927 (exit $ac_status); }; } &&
37928 { ac_try='test -s conftest$ac_exeext'
37929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37930 (eval $ac_try) 2>&5
37932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37933 (exit $ac_status); }; }; then
37934 eval "$as_ac_var=yes"
37936 echo "$as_me: failed program was:" >&5
37937 sed 's/^/| /' conftest.$ac_ext >&5
37939 eval "$as_ac_var=no"
37941 rm -f conftest.err conftest.$ac_objext \
37942 conftest$ac_exeext conftest.$ac_ext
37944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37945 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37946 if test `eval echo '${'$as_ac_var'}'` = yes; then
37947 cat >>confdefs.h <<_ACEOF
37948 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37954 if test "$ac_cv_func_getpeerucred" != yes ; then
37955 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
37956 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
37957 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
37958 echo $ECHO_N "(cached) $ECHO_C" >&6
37960 cat >conftest.$ac_ext <<_ACEOF
37963 cat confdefs.h >>conftest.$ac_ext
37964 cat >>conftest.$ac_ext <<_ACEOF
37965 /* end confdefs.h. */
37966 $ac_includes_default
37967 #ifdef HAVE_SYS_SOCKET_H
37968 #include <sys/socket.h>
37974 static struct msghdr ac_aggr;
37975 if (ac_aggr.msg_accrightslen)
37981 rm -f conftest.$ac_objext
37982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37983 (eval $ac_compile) 2>conftest.er1
37985 grep -v '^ *+' conftest.er1 >conftest.err
37987 cat conftest.err >&5
37988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37989 (exit $ac_status); } &&
37990 { ac_try='test -z "$ac_c_werror_flag"
37991 || test ! -s conftest.err'
37992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37993 (eval $ac_try) 2>&5
37995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37996 (exit $ac_status); }; } &&
37997 { ac_try='test -s conftest.$ac_objext'
37998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37999 (eval $ac_try) 2>&5
38001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38002 (exit $ac_status); }; }; then
38003 ac_cv_member_struct_msghdr_msg_accrightslen=yes
38005 echo "$as_me: failed program was:" >&5
38006 sed 's/^/| /' conftest.$ac_ext >&5
38008 cat >conftest.$ac_ext <<_ACEOF
38011 cat confdefs.h >>conftest.$ac_ext
38012 cat >>conftest.$ac_ext <<_ACEOF
38013 /* end confdefs.h. */
38014 $ac_includes_default
38015 #ifdef HAVE_SYS_SOCKET_H
38016 #include <sys/socket.h>
38022 static struct msghdr ac_aggr;
38023 if (sizeof ac_aggr.msg_accrightslen)
38029 rm -f conftest.$ac_objext
38030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38031 (eval $ac_compile) 2>conftest.er1
38033 grep -v '^ *+' conftest.er1 >conftest.err
38035 cat conftest.err >&5
38036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38037 (exit $ac_status); } &&
38038 { ac_try='test -z "$ac_c_werror_flag"
38039 || test ! -s conftest.err'
38040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38041 (eval $ac_try) 2>&5
38043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38044 (exit $ac_status); }; } &&
38045 { ac_try='test -s conftest.$ac_objext'
38046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38047 (eval $ac_try) 2>&5
38049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38050 (exit $ac_status); }; }; then
38051 ac_cv_member_struct_msghdr_msg_accrightslen=yes
38053 echo "$as_me: failed program was:" >&5
38054 sed 's/^/| /' conftest.$ac_ext >&5
38056 ac_cv_member_struct_msghdr_msg_accrightslen=no
38058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38062 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
38063 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
38064 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
38066 cat >>confdefs.h <<_ACEOF
38067 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
38073 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
38074 echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
38075 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
38076 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
38077 echo $ECHO_N "(cached) $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 $ac_includes_default
38086 #ifdef HAVE_SYS_SOCKET_H
38087 #include <sys/socket.h>
38093 static struct msghdr ac_aggr;
38094 if (ac_aggr.msg_control)
38100 rm -f conftest.$ac_objext
38101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38102 (eval $ac_compile) 2>conftest.er1
38104 grep -v '^ *+' conftest.er1 >conftest.err
38106 cat conftest.err >&5
38107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38108 (exit $ac_status); } &&
38109 { ac_try='test -z "$ac_c_werror_flag"
38110 || test ! -s conftest.err'
38111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38112 (eval $ac_try) 2>&5
38114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38115 (exit $ac_status); }; } &&
38116 { ac_try='test -s conftest.$ac_objext'
38117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38118 (eval $ac_try) 2>&5
38120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38121 (exit $ac_status); }; }; then
38122 ac_cv_member_struct_msghdr_msg_control=yes
38124 echo "$as_me: failed program was:" >&5
38125 sed 's/^/| /' conftest.$ac_ext >&5
38127 cat >conftest.$ac_ext <<_ACEOF
38130 cat confdefs.h >>conftest.$ac_ext
38131 cat >>conftest.$ac_ext <<_ACEOF
38132 /* end confdefs.h. */
38133 $ac_includes_default
38134 #ifdef HAVE_SYS_SOCKET_H
38135 #include <sys/socket.h>
38141 static struct msghdr ac_aggr;
38142 if (sizeof ac_aggr.msg_control)
38148 rm -f conftest.$ac_objext
38149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38150 (eval $ac_compile) 2>conftest.er1
38152 grep -v '^ *+' conftest.er1 >conftest.err
38154 cat conftest.err >&5
38155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38156 (exit $ac_status); } &&
38157 { ac_try='test -z "$ac_c_werror_flag"
38158 || test ! -s conftest.err'
38159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38160 (eval $ac_try) 2>&5
38162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38163 (exit $ac_status); }; } &&
38164 { ac_try='test -s conftest.$ac_objext'
38165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38166 (eval $ac_try) 2>&5
38168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38169 (exit $ac_status); }; }; then
38170 ac_cv_member_struct_msghdr_msg_control=yes
38172 echo "$as_me: failed program was:" >&5
38173 sed 's/^/| /' conftest.$ac_ext >&5
38175 ac_cv_member_struct_msghdr_msg_control=no
38177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38181 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
38182 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
38183 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
38185 cat >>confdefs.h <<_ACEOF
38186 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
38193 echo "$as_me:$LINENO: checking for struct stat.st_fstype" >&5
38194 echo $ECHO_N "checking for struct stat.st_fstype... $ECHO_C" >&6
38195 if test "${ac_cv_member_struct_stat_st_fstype+set}" = set; then
38196 echo $ECHO_N "(cached) $ECHO_C" >&6
38198 cat >conftest.$ac_ext <<_ACEOF
38201 cat confdefs.h >>conftest.$ac_ext
38202 cat >>conftest.$ac_ext <<_ACEOF
38203 /* end confdefs.h. */
38204 $ac_includes_default
38208 static struct stat ac_aggr;
38209 if (ac_aggr.st_fstype)
38215 rm -f conftest.$ac_objext
38216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38217 (eval $ac_compile) 2>conftest.er1
38219 grep -v '^ *+' conftest.er1 >conftest.err
38221 cat conftest.err >&5
38222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38223 (exit $ac_status); } &&
38224 { ac_try='test -z "$ac_c_werror_flag"
38225 || test ! -s conftest.err'
38226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38227 (eval $ac_try) 2>&5
38229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38230 (exit $ac_status); }; } &&
38231 { ac_try='test -s conftest.$ac_objext'
38232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38233 (eval $ac_try) 2>&5
38235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38236 (exit $ac_status); }; }; then
38237 ac_cv_member_struct_stat_st_fstype=yes
38239 echo "$as_me: failed program was:" >&5
38240 sed 's/^/| /' conftest.$ac_ext >&5
38242 cat >conftest.$ac_ext <<_ACEOF
38245 cat confdefs.h >>conftest.$ac_ext
38246 cat >>conftest.$ac_ext <<_ACEOF
38247 /* end confdefs.h. */
38248 $ac_includes_default
38252 static struct stat ac_aggr;
38253 if (sizeof ac_aggr.st_fstype)
38259 rm -f conftest.$ac_objext
38260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38261 (eval $ac_compile) 2>conftest.er1
38263 grep -v '^ *+' conftest.er1 >conftest.err
38265 cat conftest.err >&5
38266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38267 (exit $ac_status); } &&
38268 { ac_try='test -z "$ac_c_werror_flag"
38269 || test ! -s conftest.err'
38270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38271 (eval $ac_try) 2>&5
38273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38274 (exit $ac_status); }; } &&
38275 { ac_try='test -s conftest.$ac_objext'
38276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38277 (eval $ac_try) 2>&5
38279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38280 (exit $ac_status); }; }; then
38281 ac_cv_member_struct_stat_st_fstype=yes
38283 echo "$as_me: failed program was:" >&5
38284 sed 's/^/| /' conftest.$ac_ext >&5
38286 ac_cv_member_struct_stat_st_fstype=no
38288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38292 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_fstype" >&5
38293 echo "${ECHO_T}$ac_cv_member_struct_stat_st_fstype" >&6
38294 if test $ac_cv_member_struct_stat_st_fstype = yes; then
38296 cat >>confdefs.h <<_ACEOF
38297 #define HAVE_STRUCT_STAT_ST_FSTYPE 1
38302 echo "$as_me:$LINENO: checking for struct stat.st_vfstype" >&5
38303 echo $ECHO_N "checking for struct stat.st_vfstype... $ECHO_C" >&6
38304 if test "${ac_cv_member_struct_stat_st_vfstype+set}" = set; then
38305 echo $ECHO_N "(cached) $ECHO_C" >&6
38307 cat >conftest.$ac_ext <<_ACEOF
38310 cat confdefs.h >>conftest.$ac_ext
38311 cat >>conftest.$ac_ext <<_ACEOF
38312 /* end confdefs.h. */
38313 $ac_includes_default
38317 static struct stat ac_aggr;
38318 if (ac_aggr.st_vfstype)
38324 rm -f conftest.$ac_objext
38325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38326 (eval $ac_compile) 2>conftest.er1
38328 grep -v '^ *+' conftest.er1 >conftest.err
38330 cat conftest.err >&5
38331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38332 (exit $ac_status); } &&
38333 { ac_try='test -z "$ac_c_werror_flag"
38334 || test ! -s conftest.err'
38335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38336 (eval $ac_try) 2>&5
38338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38339 (exit $ac_status); }; } &&
38340 { ac_try='test -s conftest.$ac_objext'
38341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38342 (eval $ac_try) 2>&5
38344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38345 (exit $ac_status); }; }; then
38346 ac_cv_member_struct_stat_st_vfstype=yes
38348 echo "$as_me: failed program was:" >&5
38349 sed 's/^/| /' conftest.$ac_ext >&5
38351 cat >conftest.$ac_ext <<_ACEOF
38354 cat confdefs.h >>conftest.$ac_ext
38355 cat >>conftest.$ac_ext <<_ACEOF
38356 /* end confdefs.h. */
38357 $ac_includes_default
38361 static struct stat ac_aggr;
38362 if (sizeof ac_aggr.st_vfstype)
38368 rm -f conftest.$ac_objext
38369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38370 (eval $ac_compile) 2>conftest.er1
38372 grep -v '^ *+' conftest.er1 >conftest.err
38374 cat conftest.err >&5
38375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38376 (exit $ac_status); } &&
38377 { ac_try='test -z "$ac_c_werror_flag"
38378 || test ! -s conftest.err'
38379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38380 (eval $ac_try) 2>&5
38382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38383 (exit $ac_status); }; } &&
38384 { ac_try='test -s conftest.$ac_objext'
38385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38386 (eval $ac_try) 2>&5
38388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38389 (exit $ac_status); }; }; then
38390 ac_cv_member_struct_stat_st_vfstype=yes
38392 echo "$as_me: failed program was:" >&5
38393 sed 's/^/| /' conftest.$ac_ext >&5
38395 ac_cv_member_struct_stat_st_vfstype=no
38397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38401 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_vfstype" >&5
38402 echo "${ECHO_T}$ac_cv_member_struct_stat_st_vfstype" >&6
38403 if test $ac_cv_member_struct_stat_st_vfstype = yes; then
38405 cat >>confdefs.h <<_ACEOF
38406 #define HAVE_STRUCT_STAT_ST_VFSTYPE 1
38412 if test "$ac_cv_member_struct_stat_st_fstype" = yes; then
38413 cat >conftest.$ac_ext <<_ACEOF
38414 struct stat st; char *ptr=st.st_fstype;
38416 rm -f conftest.$ac_objext
38417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38418 (eval $ac_compile) 2>conftest.er1
38420 grep -v '^ *+' conftest.er1 >conftest.err
38422 cat conftest.err >&5
38423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38424 (exit $ac_status); } &&
38425 { ac_try='test -z "$ac_c_werror_flag"
38426 || test ! -s conftest.err'
38427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38428 (eval $ac_try) 2>&5
38430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38431 (exit $ac_status); }; } &&
38432 { ac_try='test -s conftest.$ac_objext'
38433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38434 (eval $ac_try) 2>&5
38436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38437 (exit $ac_status); }; }; then
38439 cat >>confdefs.h <<\_ACEOF
38440 #define HAVE_STRUCT_STAT_ST_FSTYPE_CHAR 1
38444 echo "$as_me: failed program was:" >&5
38445 sed 's/^/| /' conftest.$ac_ext >&5
38448 cat >>confdefs.h <<\_ACEOF
38449 #define HAVE_STRUCT_STAT_ST_FSTYPE_INT 1
38453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38456 LIBSRCS="$LIBSRCS getpeereid.c"
38459 if test "$ac_cv_func_snprintf" != yes ||
38460 test "$ac_cv_func_vsnprintf" != yes; then
38461 if test "$ac_cv_func_snprintf" != yes; then
38463 cat >>confdefs.h <<\_ACEOF
38464 #define snprintf ber_pvt_snprintf
38468 if test "$ac_cv_func_vsnprintf" != yes; then
38470 cat >>confdefs.h <<\_ACEOF
38471 #define vsnprintf ber_pvt_vsnprintf
38478 if test "$ol_enable_slapi" != no ; then
38480 for ac_header in ltdl.h
38482 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38484 echo "$as_me:$LINENO: checking for $ac_header" >&5
38485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38487 echo $ECHO_N "(cached) $ECHO_C" >&6
38489 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38490 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38492 # Is the header compilable?
38493 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38494 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38495 cat >conftest.$ac_ext <<_ACEOF
38498 cat confdefs.h >>conftest.$ac_ext
38499 cat >>conftest.$ac_ext <<_ACEOF
38500 /* end confdefs.h. */
38501 $ac_includes_default
38502 #include <$ac_header>
38504 rm -f conftest.$ac_objext
38505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38506 (eval $ac_compile) 2>conftest.er1
38508 grep -v '^ *+' conftest.er1 >conftest.err
38510 cat conftest.err >&5
38511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38512 (exit $ac_status); } &&
38513 { ac_try='test -z "$ac_c_werror_flag"
38514 || test ! -s conftest.err'
38515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38516 (eval $ac_try) 2>&5
38518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38519 (exit $ac_status); }; } &&
38520 { ac_try='test -s conftest.$ac_objext'
38521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38522 (eval $ac_try) 2>&5
38524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38525 (exit $ac_status); }; }; then
38526 ac_header_compiler=yes
38528 echo "$as_me: failed program was:" >&5
38529 sed 's/^/| /' conftest.$ac_ext >&5
38531 ac_header_compiler=no
38533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38534 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38535 echo "${ECHO_T}$ac_header_compiler" >&6
38537 # Is the header present?
38538 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38539 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38540 cat >conftest.$ac_ext <<_ACEOF
38543 cat confdefs.h >>conftest.$ac_ext
38544 cat >>conftest.$ac_ext <<_ACEOF
38545 /* end confdefs.h. */
38546 #include <$ac_header>
38548 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38549 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38551 grep -v '^ *+' conftest.er1 >conftest.err
38553 cat conftest.err >&5
38554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38555 (exit $ac_status); } >/dev/null; then
38556 if test -s conftest.err; then
38557 ac_cpp_err=$ac_c_preproc_warn_flag
38558 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38565 if test -z "$ac_cpp_err"; then
38566 ac_header_preproc=yes
38568 echo "$as_me: failed program was:" >&5
38569 sed 's/^/| /' conftest.$ac_ext >&5
38571 ac_header_preproc=no
38573 rm -f conftest.err conftest.$ac_ext
38574 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38575 echo "${ECHO_T}$ac_header_preproc" >&6
38577 # So? What about this header?
38578 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38580 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38581 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38582 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38583 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38584 ac_header_preproc=yes
38587 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38588 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38589 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38590 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38591 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38592 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38593 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38594 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38595 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38596 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38597 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38598 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38601 ## --------------------------------------------- ##
38602 ## Report this to <http://www.openldap.org/its/> ##
38603 ## --------------------------------------------- ##
38606 sed "s/^/$as_me: WARNING: /" >&2
38609 echo "$as_me:$LINENO: checking for $ac_header" >&5
38610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38611 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38612 echo $ECHO_N "(cached) $ECHO_C" >&6
38614 eval "$as_ac_Header=\$ac_header_preproc"
38616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38617 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38620 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38621 cat >>confdefs.h <<_ACEOF
38622 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38630 if test $ac_cv_header_ltdl_h != yes ; then
38631 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
38632 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
38633 { (exit 1); exit 1; }; }
38635 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
38636 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
38637 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
38638 echo $ECHO_N "(cached) $ECHO_C" >&6
38640 ac_check_lib_save_LIBS=$LIBS
38641 LIBS="-lltdl $LIBS"
38642 cat >conftest.$ac_ext <<_ACEOF
38645 cat confdefs.h >>conftest.$ac_ext
38646 cat >>conftest.$ac_ext <<_ACEOF
38647 /* end confdefs.h. */
38649 /* Override any gcc2 internal prototype to avoid an error. */
38653 /* We use char because int might match the return type of a gcc2
38654 builtin and then its argument prototype would still apply. */
38664 rm -f conftest.$ac_objext conftest$ac_exeext
38665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38666 (eval $ac_link) 2>conftest.er1
38668 grep -v '^ *+' conftest.er1 >conftest.err
38670 cat conftest.err >&5
38671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38672 (exit $ac_status); } &&
38673 { ac_try='test -z "$ac_c_werror_flag"
38674 || test ! -s conftest.err'
38675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38676 (eval $ac_try) 2>&5
38678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38679 (exit $ac_status); }; } &&
38680 { ac_try='test -s conftest$ac_exeext'
38681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38682 (eval $ac_try) 2>&5
38684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38685 (exit $ac_status); }; }; then
38686 ac_cv_lib_ltdl_lt_dlinit=yes
38688 echo "$as_me: failed program was:" >&5
38689 sed 's/^/| /' conftest.$ac_ext >&5
38691 ac_cv_lib_ltdl_lt_dlinit=no
38693 rm -f conftest.err conftest.$ac_objext \
38694 conftest$ac_exeext conftest.$ac_ext
38695 LIBS=$ac_check_lib_save_LIBS
38697 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
38698 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
38699 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
38702 LIBSLAPI=libslapi.a
38703 LIBSLAPITOOLS=../libslapi.a
38705 cat >>confdefs.h <<\_ACEOF
38706 #define HAVE_LIBLTDL 1
38711 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
38712 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
38713 { (exit 1); exit 1; }; }
38718 cat >>confdefs.h <<\_ACEOF
38719 #define LDAP_SLAPI 1
38724 if test "$ol_enable_debug" != no ; then
38725 if test "$ol_enable_debug" = traditional; then
38727 cat >>confdefs.h <<\_ACEOF
38728 #define OLD_DEBUG 1
38733 cat >>confdefs.h <<\_ACEOF
38734 #define LDAP_DEBUG 1
38738 if test "$ol_enable_syslog" = yes ; then
38740 cat >>confdefs.h <<\_ACEOF
38741 #define LDAP_SYSLOG 1
38745 if test "$ol_enable_proctitle" != no ; then
38747 cat >>confdefs.h <<\_ACEOF
38748 #define LDAP_PROCTITLE 1
38752 if test "$ol_enable_referrals" != no ; then
38754 cat >>confdefs.h <<\_ACEOF
38755 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
38759 if test "$ol_enable_local" != no; then
38761 cat >>confdefs.h <<\_ACEOF
38762 #define LDAP_PF_LOCAL 1
38766 if test "$ol_link_ipv6" != no; then
38768 cat >>confdefs.h <<\_ACEOF
38769 #define LDAP_PF_INET6 1
38773 if test "$ol_enable_cleartext" != no ; then
38775 cat >>confdefs.h <<\_ACEOF
38776 #define SLAPD_CLEARTEXT 1
38780 if test "$ol_enable_crypt" != no ; then
38782 cat >>confdefs.h <<\_ACEOF
38783 #define SLAPD_CRYPT 1
38787 if test "$ol_link_spasswd" != no ; then
38789 cat >>confdefs.h <<\_ACEOF
38790 #define SLAPD_SPASSWD 1
38794 if test "$ol_enable_rlookups" != no ; then
38796 cat >>confdefs.h <<\_ACEOF
38797 #define SLAPD_RLOOKUPS 1
38801 if test "$ol_enable_aci" != no ; then
38802 if test $ol_enable_dynacl = no ; then
38803 ol_enable_dynacl=yes
38804 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
38805 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
38807 if test "$ol_enable_aci" = mod ; then
38808 MFLAG=SLAPD_MOD_DYNAMIC
38809 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
38810 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
38811 { (exit 1); exit 1; }; }
38813 MFLAG=SLAPD_MOD_STATIC
38815 WITH_ACI_ENABLED=$ol_enable_aci
38817 cat >>confdefs.h <<_ACEOF
38818 #define SLAPD_ACI_ENABLED $MFLAG
38822 WITH_ACI_ENABLED=no
38824 if test "$ol_enable_dynacl" != no ; then
38826 cat >>confdefs.h <<\_ACEOF
38827 #define SLAP_DYNACL 1
38832 if test "$ol_link_modules" != no ; then
38834 cat >>confdefs.h <<\_ACEOF
38835 #define SLAPD_MODULES 1
38839 SLAPD_MODULES_LDFLAGS="-dlopen self"
38843 cat >>confdefs.h <<\_ACEOF
38844 #define SLAPD_MOD_STATIC 1
38848 cat >>confdefs.h <<\_ACEOF
38849 #define SLAPD_MOD_DYNAMIC 2
38853 if test "$ol_enable_monitor" != no ; then
38855 BUILD_MONITOR=$ol_enable_monitor
38856 if test "$ol_enable_monitor" = mod ; then
38857 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
38858 MFLAG=SLAPD_MOD_DYNAMIC
38860 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
38861 MFLAG=SLAPD_MOD_STATIC
38864 cat >>confdefs.h <<_ACEOF
38865 #define SLAPD_MONITOR $MFLAG
38870 if test "$ol_enable_bdb" != no ; then
38872 BUILD_BDB=$ol_enable_bdb
38873 if test "$ol_enable_bdb" = mod ; then
38874 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
38875 MFLAG=SLAPD_MOD_DYNAMIC
38877 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
38878 MFLAG=SLAPD_MOD_STATIC
38881 cat >>confdefs.h <<_ACEOF
38882 #define SLAPD_BDB $MFLAG
38887 if test "$ol_enable_dnssrv" != no ; then
38889 BUILD_DNSSRV=$ol_enable_dnssrv
38890 if test "$ol_enable_dnssrv" = mod ; then
38891 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
38892 MFLAG=SLAPD_MOD_DYNAMIC
38894 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
38895 MFLAG=SLAPD_MOD_STATIC
38898 cat >>confdefs.h <<_ACEOF
38899 #define SLAPD_DNSSRV $MFLAG
38904 if test "$ol_enable_hdb" != no ; then
38906 BUILD_HDB=$ol_enable_hdb
38907 if test "$ol_enable_hdb" = mod ; then
38908 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
38909 MFLAG=SLAPD_MOD_DYNAMIC
38911 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
38912 MFLAG=SLAPD_MOD_STATIC
38915 cat >>confdefs.h <<_ACEOF
38916 #define SLAPD_HDB $MFLAG
38921 if test "$ol_enable_ldap" != no ; then
38923 BUILD_LDAP=$ol_enable_ldap
38924 if test "$ol_enable_ldap" = mod ; then
38925 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
38926 MFLAG=SLAPD_MOD_DYNAMIC
38928 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
38929 MFLAG=SLAPD_MOD_STATIC
38932 cat >>confdefs.h <<_ACEOF
38933 #define SLAPD_LDAP $MFLAG
38938 if test "$ol_enable_meta" != no ; then
38940 BUILD_META=$ol_enable_meta
38942 if test "$ol_enable_meta" = mod ; then
38943 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
38944 MFLAG=SLAPD_MOD_DYNAMIC
38946 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
38947 MFLAG=SLAPD_MOD_STATIC
38950 cat >>confdefs.h <<_ACEOF
38951 #define SLAPD_META $MFLAG
38956 if test "$ol_enable_ndb" != no ; then
38958 BUILD_NDB=$ol_enable_ndb
38959 if test "$ol_enable_ndb" = mod ; then
38960 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ndb"
38961 MFLAG=SLAPD_MOD_DYNAMIC
38963 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ndb"
38964 MFLAG=SLAPD_MOD_STATIC
38967 cat >>confdefs.h <<_ACEOF
38968 #define SLAPD_NDB $MFLAG
38973 if test "$ol_enable_null" != no ; then
38975 BUILD_NULL=$ol_enable_null
38976 if test "$ol_enable_null" = mod ; then
38977 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
38978 MFLAG=SLAPD_MOD_DYNAMIC
38980 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
38981 MFLAG=SLAPD_MOD_STATIC
38984 cat >>confdefs.h <<_ACEOF
38985 #define SLAPD_NULL $MFLAG
38990 if test "$ol_enable_passwd" != no ; then
38992 BUILD_PASSWD=$ol_enable_passwd
38993 if test "$ol_enable_passwd" = mod ; then
38994 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
38995 MFLAG=SLAPD_MOD_DYNAMIC
38997 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
38998 MFLAG=SLAPD_MOD_STATIC
39001 cat >>confdefs.h <<_ACEOF
39002 #define SLAPD_PASSWD $MFLAG
39007 if test "$ol_link_perl" != no ; then
39009 BUILD_PERL=$ol_enable_perl
39010 if test "$ol_enable_perl" = mod ; then
39011 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
39012 MFLAG=SLAPD_MOD_DYNAMIC
39014 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
39015 MFLAG=SLAPD_MOD_STATIC
39018 cat >>confdefs.h <<_ACEOF
39019 #define SLAPD_PERL $MFLAG
39024 if test "$ol_enable_relay" != no ; then
39026 BUILD_RELAY=$ol_enable_relay
39027 if test "$ol_enable_relay" = mod ; then
39028 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
39029 MFLAG=SLAPD_MOD_DYNAMIC
39031 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
39032 MFLAG=SLAPD_MOD_STATIC
39035 cat >>confdefs.h <<_ACEOF
39036 #define SLAPD_RELAY $MFLAG
39041 if test "$ol_enable_shell" != no ; then
39042 if test "$ol_link_threads" != no ; then
39043 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
39044 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
39047 BUILD_SHELL=$ol_enable_shell
39048 if test "$ol_enable_shell" = mod ; then
39049 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
39050 MFLAG=SLAPD_MOD_DYNAMIC
39052 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
39053 MFLAG=SLAPD_MOD_STATIC
39056 cat >>confdefs.h <<_ACEOF
39057 #define SLAPD_SHELL $MFLAG
39062 if test "$ol_enable_sock" != no ; then
39064 BUILD_SOCK=$ol_enable_sock
39065 if test "$ol_enable_sock" = mod ; then
39066 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sock"
39067 MFLAG=SLAPD_MOD_DYNAMIC
39069 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sock"
39070 MFLAG=SLAPD_MOD_STATIC
39073 cat >>confdefs.h <<_ACEOF
39074 #define SLAPD_SOCK $MFLAG
39079 if test "$ol_link_sql" != no ; then
39081 BUILD_SQL=$ol_enable_sql
39082 if test "$ol_enable_sql" = mod; then
39083 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
39084 MFLAG=SLAPD_MOD_DYNAMIC
39086 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
39087 MFLAG=SLAPD_MOD_STATIC
39090 cat >>confdefs.h <<_ACEOF
39091 #define SLAPD_SQL $MFLAG
39096 if test "$ol_enable_accesslog" != no ; then
39097 BUILD_ACCESSLOG=$ol_enable_accesslog
39098 if test "$ol_enable_accesslog" = mod ; then
39099 MFLAG=SLAPD_MOD_DYNAMIC
39100 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
39102 MFLAG=SLAPD_MOD_STATIC
39103 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
39106 cat >>confdefs.h <<_ACEOF
39107 #define SLAPD_OVER_ACCESSLOG $MFLAG
39112 if test "$ol_enable_auditlog" != no ; then
39113 BUILD_AUDITLOG=$ol_enable_auditlog
39114 if test "$ol_enable_auditlog" = mod ; then
39115 MFLAG=SLAPD_MOD_DYNAMIC
39116 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
39118 MFLAG=SLAPD_MOD_STATIC
39119 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
39122 cat >>confdefs.h <<_ACEOF
39123 #define SLAPD_OVER_AUDITLOG $MFLAG
39128 if test "$ol_enable_constraint" != no ; then
39129 BUILD_CONSTRAINT=$ol_enable_constraint
39130 if test "$ol_enable_constraint" = mod ; then
39131 MFLAG=SLAPD_MOD_DYNAMIC
39132 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
39134 MFLAG=SLAPD_MOD_STATIC
39135 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
39138 cat >>confdefs.h <<_ACEOF
39139 #define SLAPD_OVER_CONSTRAINT $MFLAG
39144 if test "$ol_enable_dds" != no ; then
39145 BUILD_DDS=$ol_enable_dds
39146 if test "$ol_enable_dds" = mod ; then
39147 MFLAG=SLAPD_MOD_DYNAMIC
39148 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
39150 MFLAG=SLAPD_MOD_STATIC
39151 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
39154 cat >>confdefs.h <<_ACEOF
39155 #define SLAPD_OVER_DDS $MFLAG
39160 if test "$ol_enable_dyngroup" != no ; then
39161 BUILD_DYNGROUP=$ol_enable_dyngroup
39162 if test "$ol_enable_dyngroup" = mod ; then
39163 MFLAG=SLAPD_MOD_DYNAMIC
39164 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
39166 MFLAG=SLAPD_MOD_STATIC
39167 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
39170 cat >>confdefs.h <<_ACEOF
39171 #define SLAPD_OVER_DYNGROUP $MFLAG
39176 if test "$ol_enable_dynlist" != no ; then
39177 BUILD_DYNLIST=$ol_enable_dynlist
39178 if test "$ol_enable_dynlist" = mod ; then
39179 MFLAG=SLAPD_MOD_DYNAMIC
39180 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
39182 MFLAG=SLAPD_MOD_STATIC
39183 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
39186 cat >>confdefs.h <<_ACEOF
39187 #define SLAPD_OVER_DYNLIST $MFLAG
39192 if test "$ol_enable_memberof" != no ; then
39193 BUILD_MEMBEROF=$ol_enable_memberof
39194 if test "$ol_enable_memberof" = mod ; then
39195 MFLAG=SLAPD_MOD_DYNAMIC
39196 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS memberof.la"
39198 MFLAG=SLAPD_MOD_STATIC
39199 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS memberof.o"
39202 cat >>confdefs.h <<_ACEOF
39203 #define SLAPD_OVER_MEMBEROF $MFLAG
39208 if test "$ol_enable_ppolicy" != no ; then
39209 BUILD_PPOLICY=$ol_enable_ppolicy
39210 if test "$ol_enable_ppolicy" = mod ; then
39211 MFLAG=SLAPD_MOD_DYNAMIC
39212 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
39214 MFLAG=SLAPD_MOD_STATIC
39215 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
39218 cat >>confdefs.h <<_ACEOF
39219 #define SLAPD_OVER_PPOLICY $MFLAG
39224 if test "$ol_enable_proxycache" != no ; then
39225 BUILD_PROXYCACHE=$ol_enable_proxycache
39226 if test "$ol_enable_proxycache" = mod ; then
39227 MFLAG=SLAPD_MOD_DYNAMIC
39228 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
39230 MFLAG=SLAPD_MOD_STATIC
39231 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
39234 cat >>confdefs.h <<_ACEOF
39235 #define SLAPD_OVER_PROXYCACHE $MFLAG
39240 if test "$ol_enable_refint" != no ; then
39241 BUILD_REFINT=$ol_enable_refint
39242 if test "$ol_enable_refint" = mod ; then
39243 MFLAG=SLAPD_MOD_DYNAMIC
39244 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
39246 MFLAG=SLAPD_MOD_STATIC
39247 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
39250 cat >>confdefs.h <<_ACEOF
39251 #define SLAPD_OVER_REFINT $MFLAG
39256 if test "$ol_enable_retcode" != no ; then
39257 BUILD_RETCODE=$ol_enable_retcode
39258 if test "$ol_enable_retcode" = mod ; then
39259 MFLAG=SLAPD_MOD_DYNAMIC
39260 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
39262 MFLAG=SLAPD_MOD_STATIC
39263 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
39266 cat >>confdefs.h <<_ACEOF
39267 #define SLAPD_OVER_RETCODE $MFLAG
39272 if test "$ol_enable_rwm" != no ; then
39274 BUILD_RWM=$ol_enable_rwm
39275 if test "$ol_enable_rwm" = mod ; then
39276 MFLAG=SLAPD_MOD_DYNAMIC
39277 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
39279 MFLAG=SLAPD_MOD_STATIC
39280 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
39283 cat >>confdefs.h <<_ACEOF
39284 #define SLAPD_OVER_RWM $MFLAG
39289 if test "$ol_enable_seqmod" != no ; then
39290 BUILD_SEQMOD=$ol_enable_seqmod
39291 if test "$ol_enable_seqmod" = mod ; then
39292 MFLAG=SLAPD_MOD_DYNAMIC
39293 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
39295 MFLAG=SLAPD_MOD_STATIC
39296 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
39299 cat >>confdefs.h <<_ACEOF
39300 #define SLAPD_OVER_SEQMOD $MFLAG
39305 if test "$ol_enable_syncprov" != no ; then
39306 BUILD_SYNCPROV=$ol_enable_syncprov
39307 if test "$ol_enable_syncprov" = mod ; then
39308 MFLAG=SLAPD_MOD_DYNAMIC
39309 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
39311 MFLAG=SLAPD_MOD_STATIC
39312 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
39315 cat >>confdefs.h <<_ACEOF
39316 #define SLAPD_OVER_SYNCPROV $MFLAG
39321 if test "$ol_enable_translucent" != no ; then
39322 BUILD_TRANSLUCENT=$ol_enable_translucent
39323 if test "$ol_enable_translucent" = mod ; then
39324 MFLAG=SLAPD_MOD_DYNAMIC
39325 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
39327 MFLAG=SLAPD_MOD_STATIC
39328 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
39331 cat >>confdefs.h <<_ACEOF
39332 #define SLAPD_OVER_TRANSLUCENT $MFLAG
39337 if test "$ol_enable_unique" != no ; then
39338 BUILD_UNIQUE=$ol_enable_unique
39339 if test "$ol_enable_unique" = mod ; then
39340 MFLAG=SLAPD_MOD_DYNAMIC
39341 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
39343 MFLAG=SLAPD_MOD_STATIC
39344 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
39347 cat >>confdefs.h <<_ACEOF
39348 #define SLAPD_OVER_UNIQUE $MFLAG
39353 if test "$ol_enable_valsort" != no ; then
39354 BUILD_VALSORT=$ol_enable_valsort
39355 if test "$ol_enable_valsort" = mod ; then
39356 MFLAG=SLAPD_MOD_DYNAMIC
39357 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
39359 MFLAG=SLAPD_MOD_STATIC
39360 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
39363 cat >>confdefs.h <<_ACEOF
39364 #define SLAPD_OVER_VALSORT $MFLAG
39369 if test "$ol_enable_rewrite" != no ; then
39371 cat >>confdefs.h <<\_ACEOF
39372 #define ENABLE_REWRITE 1
39378 if test "$ol_enable_slapi" != no ; then
39380 cat >>confdefs.h <<\_ACEOF
39381 #define ENABLE_SLAPI 1
39385 SLAPD_SLAPI_DEPEND=libslapi.a
39390 if test "$ac_cv_mingw32" = yes ; then
39392 SLAPD_MODULES_LDFLAGS=
39484 # Check whether --with-xxinstall or --without-xxinstall was given.
39485 if test "${with_xxinstall+set}" = set; then
39486 withval="$with_xxinstall"
39491 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"
39494 ac_config_commands="$ac_config_commands default"
39498 test "x$prefix" = xNONE && prefix=$ac_default_prefix
39499 # Let make expand exec_prefix.
39500 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
39502 # VPATH may cause trouble with some makes, so we remove $(srcdir),
39503 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
39504 # trailing colons and then remove the whole line if VPATH becomes empty
39505 # (actually we leave an empty line to preserve line numbers).
39506 if test "x$srcdir" = x.; then
39507 ac_vpsub='/^[ ]*VPATH[ ]*=/{
39508 s/:*\$(srcdir):*/:/;
39509 s/:*\${srcdir}:*/:/;
39511 s/^\([^=]*=[ ]*\):*/\1/;
39517 DEFS=-DHAVE_CONFIG_H
39521 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
39522 # 1. Remove the extension, and $U if already installed.
39523 ac_i=`echo "$ac_i" |
39524 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
39526 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
39527 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
39529 LIBOBJS=$ac_libobjs
39531 LTLIBOBJS=$ac_ltlibobjs
39534 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
39535 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
39536 Usually this means the macro was only invoked conditionally." >&5
39537 echo "$as_me: error: conditional \"AMDEP\" was never defined.
39538 Usually this means the macro was only invoked conditionally." >&2;}
39539 { (exit 1); exit 1; }; }
39541 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
39542 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
39543 Usually this means the macro was only invoked conditionally." >&5
39544 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
39545 Usually this means the macro was only invoked conditionally." >&2;}
39546 { (exit 1); exit 1; }; }
39548 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
39549 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
39550 Usually this means the macro was only invoked conditionally." >&5
39551 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
39552 Usually this means the macro was only invoked conditionally." >&2;}
39553 { (exit 1); exit 1; }; }
39556 : ${CONFIG_STATUS=./config.status}
39557 ac_clean_files_save=$ac_clean_files
39558 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
39559 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
39560 echo "$as_me: creating $CONFIG_STATUS" >&6;}
39561 cat >$CONFIG_STATUS <<_ACEOF
39563 # Generated by $as_me.
39564 # Run this file to recreate the current configuration.
39565 # Compiler output produced by configure, useful for debugging
39566 # configure, is in config.log if it exists.
39569 ac_cs_recheck=false
39571 SHELL=\${CONFIG_SHELL-$SHELL}
39574 cat >>$CONFIG_STATUS <<\_ACEOF
39575 ## --------------------- ##
39576 ## M4sh Initialization. ##
39577 ## --------------------- ##
39579 # Be Bourne compatible
39580 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
39583 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
39584 # is contrary to our usage. Disable this feature.
39585 alias -g '${1+"$@"}'='"$@"'
39586 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
39589 DUALCASE=1; export DUALCASE # for MKS sh
39591 # Support unset when possible.
39592 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
39599 # Work around bugs in pre-3.0 UWIN ksh.
39600 $as_unset ENV MAIL MAILPATH
39607 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
39608 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
39609 LC_TELEPHONE LC_TIME
39611 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
39612 eval $as_var=C; export $as_var
39618 # Required to use basename.
39619 if expr a : '\(a\)' >/dev/null 2>&1; then
39625 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
39626 as_basename=basename
39632 # Name of the executable.
39633 as_me=`$as_basename "$0" ||
39634 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
39635 X"$0" : 'X\(//\)$' \| \
39636 X"$0" : 'X\(/\)$' \| \
39637 . : '\(.\)' 2>/dev/null ||
39639 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
39640 /^X\/\(\/\/\)$/{ s//\1/; q; }
39641 /^X\/\(\/\).*/{ s//\1/; q; }
39645 # PATH needs CR, and LINENO needs CR and PATH.
39646 # Avoid depending upon Character Ranges.
39647 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39648 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39649 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39650 as_cr_digits='0123456789'
39651 as_cr_alnum=$as_cr_Letters$as_cr_digits
39653 # The user is always right.
39654 if test "${PATH_SEPARATOR+set}" != set; then
39655 echo "#! /bin/sh" >conf$$.sh
39656 echo "exit 0" >>conf$$.sh
39658 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
39667 as_lineno_1=$LINENO
39668 as_lineno_2=$LINENO
39669 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
39670 test "x$as_lineno_1" != "x$as_lineno_2" &&
39671 test "x$as_lineno_3" = "x$as_lineno_2" || {
39672 # Find who we are. Look in the path if we contain no path at all
39675 *[\\/]* ) as_myself=$0 ;;
39676 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39677 for as_dir in $PATH
39680 test -z "$as_dir" && as_dir=.
39681 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
39686 # We did not find ourselves, most probably we were run as `sh COMMAND'
39687 # in which case we are not to be found in the path.
39688 if test "x$as_myself" = x; then
39691 if test ! -f "$as_myself"; then
39692 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
39693 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
39694 { (exit 1); exit 1; }; }
39696 case $CONFIG_SHELL in
39698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39699 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
39702 test -z "$as_dir" && as_dir=.
39703 for as_base in sh bash ksh sh5; do
39706 if ("$as_dir/$as_base" -c '
39707 as_lineno_1=$LINENO
39708 as_lineno_2=$LINENO
39709 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
39710 test "x$as_lineno_1" != "x$as_lineno_2" &&
39711 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
39712 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
39713 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
39714 CONFIG_SHELL=$as_dir/$as_base
39715 export CONFIG_SHELL
39716 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
39724 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
39725 # uniformly replaced by the line number. The first 'sed' inserts a
39726 # line-number line before each line; the second 'sed' does the real
39727 # work. The second script uses 'N' to pair each line-number line
39728 # with the numbered line, and appends trailing '-' during
39729 # substitution so that $LINENO is not a special case at line end.
39730 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
39731 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
39732 sed '=' <$as_myself |
39737 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
39740 s,^['$as_cr_digits']*\n,,
39741 ' >$as_me.lineno &&
39742 chmod +x $as_me.lineno ||
39743 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
39744 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
39745 { (exit 1); exit 1; }; }
39747 # Don't try to exec as it changes $[0], causing all sort of problems
39748 # (the dirname of $[0] is not the place where we might find the
39749 # original and so on. Autoconf is especially sensible to this).
39751 # Exit status is that of the last command.
39756 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
39757 *c*,-n*) ECHO_N= ECHO_C='
39759 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
39760 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
39763 if expr a : '\(a\)' >/dev/null 2>&1; then
39769 rm -f conf$$ conf$$.exe conf$$.file
39771 if ln -s conf$$.file conf$$ 2>/dev/null; then
39772 # We could just check for DJGPP; but this test a) works b) is more generic
39773 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
39774 if test -f conf$$.exe; then
39775 # Don't use ln at all; we don't have any links
39780 elif ln conf$$.file conf$$ 2>/dev/null; then
39785 rm -f conf$$ conf$$.exe conf$$.file
39787 if mkdir -p . 2>/dev/null; then
39790 test -d ./-p && rmdir ./-p
39794 as_executable_p="test -f"
39796 # Sed expression to map a string onto a valid CPP name.
39797 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
39799 # Sed expression to map a string onto a valid variable name.
39800 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
39804 # We need space, tab and new line, in precisely that order.
39814 # Open the log real soon, to keep \$[0] and so on meaningful, and to
39815 # report actual input values of CONFIG_FILES etc. instead of their
39816 # values after options handling. Logging --version etc. is OK.
39820 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
39821 ## Running $as_me. ##
39826 This file was extended by $as_me, which was
39827 generated by GNU Autoconf 2.59. Invocation command line was
39829 CONFIG_FILES = $CONFIG_FILES
39830 CONFIG_HEADERS = $CONFIG_HEADERS
39831 CONFIG_LINKS = $CONFIG_LINKS
39832 CONFIG_COMMANDS = $CONFIG_COMMANDS
39836 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
39840 # Files that config.status was made for.
39841 if test -n "$ac_config_files"; then
39842 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
39845 if test -n "$ac_config_headers"; then
39846 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
39849 if test -n "$ac_config_links"; then
39850 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
39853 if test -n "$ac_config_commands"; then
39854 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
39857 cat >>$CONFIG_STATUS <<\_ACEOF
39860 \`$as_me' instantiates files from templates according to the
39861 current configuration.
39863 Usage: $0 [OPTIONS] [FILE]...
39865 -h, --help print this help, then exit
39866 -V, --version print version number, then exit
39867 -q, --quiet do not print progress messages
39868 -d, --debug don't remove temporary files
39869 --recheck update $as_me by reconfiguring in the same conditions
39870 --file=FILE[:TEMPLATE]
39871 instantiate the configuration file FILE
39872 --header=FILE[:TEMPLATE]
39873 instantiate the configuration header FILE
39875 Configuration files:
39878 Configuration headers:
39881 Configuration commands:
39884 Report bugs to <bug-autoconf@gnu.org>."
39887 cat >>$CONFIG_STATUS <<_ACEOF
39890 configured by $0, generated by GNU Autoconf 2.59,
39891 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
39893 Copyright (C) 2003 Free Software Foundation, Inc.
39894 This config.status script is free software; the Free Software Foundation
39895 gives unlimited permission to copy, distribute and modify it."
39900 cat >>$CONFIG_STATUS <<\_ACEOF
39901 # If no file are specified by the user, then we need to provide default
39902 # value. By we need to know if files were specified by the user.
39908 ac_option=`expr "x$1" : 'x\([^=]*\)='`
39909 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
39917 *) # This is not an option, so the user has probably given explicit
39920 ac_need_defaults=false;;
39924 # Handling of the options.
39926 cat >>$CONFIG_STATUS <<\_ACEOF
39927 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
39929 --version | --vers* | -V )
39930 echo "$ac_cs_version"; exit 0 ;;
39932 # Conflict between --help and --header
39933 { { echo "$as_me:$LINENO: error: ambiguous option: $1
39934 Try \`$0 --help' for more information." >&5
39935 echo "$as_me: error: ambiguous option: $1
39936 Try \`$0 --help' for more information." >&2;}
39937 { (exit 1); exit 1; }; };;
39938 --help | --hel | -h )
39939 echo "$ac_cs_usage"; exit 0 ;;
39940 --debug | --d* | -d )
39942 --file | --fil | --fi | --f )
39944 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
39945 ac_need_defaults=false;;
39946 --header | --heade | --head | --hea )
39948 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
39949 ac_need_defaults=false;;
39950 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
39951 | -silent | --silent | --silen | --sile | --sil | --si | --s)
39954 # This is an error.
39955 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
39956 Try \`$0 --help' for more information." >&5
39957 echo "$as_me: error: unrecognized option: $1
39958 Try \`$0 --help' for more information." >&2;}
39959 { (exit 1); exit 1; }; } ;;
39961 *) ac_config_targets="$ac_config_targets $1" ;;
39967 ac_configure_extra_args=
39969 if $ac_cs_silent; then
39971 ac_configure_extra_args="$ac_configure_extra_args --silent"
39975 cat >>$CONFIG_STATUS <<_ACEOF
39976 if \$ac_cs_recheck; then
39977 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
39978 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
39983 cat >>$CONFIG_STATUS <<_ACEOF
39985 # INIT-COMMANDS section.
39988 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
39990 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
39991 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
39998 cat >>$CONFIG_STATUS <<\_ACEOF
39999 for ac_config_target in $ac_config_targets
40001 case "$ac_config_target" in
40002 # Handling of arguments.
40003 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
40004 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
40005 "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
40006 "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
40007 "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
40008 "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
40009 "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
40010 "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
40011 "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
40012 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
40013 "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
40014 "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
40015 "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
40016 "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" ;;
40017 "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
40018 "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
40019 "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
40020 "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
40021 "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
40022 "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" ;;
40023 "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" ;;
40024 "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" ;;
40025 "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" ;;
40026 "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" ;;
40027 "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" ;;
40028 "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" ;;
40029 "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" ;;
40030 "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" ;;
40031 "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" ;;
40032 "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" ;;
40033 "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" ;;
40034 "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" ;;
40035 "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" ;;
40036 "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" ;;
40037 "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" ;;
40038 "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" ;;
40039 "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
40040 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
40041 "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
40042 "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
40043 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
40044 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
40045 "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
40046 "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
40047 "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
40048 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
40049 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
40050 { (exit 1); exit 1; }; };;
40054 # If the user did not use the arguments to specify the items to instantiate,
40055 # then the envvar interface is used. Set only those that are not.
40056 # We use the long form for the default assignment because of an extremely
40057 # bizarre bug on SunOS 4.1.3.
40058 if $ac_need_defaults; then
40059 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
40060 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
40061 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
40064 # Have a temporary directory for convenience. Make it in the build tree
40065 # simply because there is no reason to put it here, and in addition,
40066 # creating and moving files from /tmp can sometimes cause problems.
40067 # Create a temporary directory, and hook for its removal unless debugging.
40070 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
40071 trap '{ (exit 1); exit 1; }' 1 2 13 15
40074 # Create a (secure) tmp directory for tmp files.
40077 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
40078 test -n "$tmp" && test -d "$tmp"
40081 tmp=./confstat$$-$RANDOM
40082 (umask 077 && mkdir $tmp)
40085 echo "$me: cannot create a temporary directory in ." >&2
40086 { (exit 1); exit 1; }
40091 cat >>$CONFIG_STATUS <<_ACEOF
40094 # CONFIG_FILES section.
40097 # No need to generate the scripts if there are no CONFIG_FILES.
40098 # This happens for instance when ./config.status config.h
40099 if test -n "\$CONFIG_FILES"; then
40100 # Protect against being on the right side of a sed subst in config.status.
40101 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
40102 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
40103 s,@SHELL@,$SHELL,;t t
40104 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
40105 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
40106 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
40107 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
40108 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
40109 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
40110 s,@exec_prefix@,$exec_prefix,;t t
40111 s,@prefix@,$prefix,;t t
40112 s,@program_transform_name@,$program_transform_name,;t t
40113 s,@bindir@,$bindir,;t t
40114 s,@sbindir@,$sbindir,;t t
40115 s,@libexecdir@,$libexecdir,;t t
40116 s,@datadir@,$datadir,;t t
40117 s,@sysconfdir@,$sysconfdir,;t t
40118 s,@sharedstatedir@,$sharedstatedir,;t t
40119 s,@localstatedir@,$localstatedir,;t t
40120 s,@libdir@,$libdir,;t t
40121 s,@includedir@,$includedir,;t t
40122 s,@oldincludedir@,$oldincludedir,;t t
40123 s,@infodir@,$infodir,;t t
40124 s,@mandir@,$mandir,;t t
40125 s,@build_alias@,$build_alias,;t t
40126 s,@host_alias@,$host_alias,;t t
40127 s,@target_alias@,$target_alias,;t t
40128 s,@DEFS@,$DEFS,;t t
40129 s,@ECHO_C@,$ECHO_C,;t t
40130 s,@ECHO_N@,$ECHO_N,;t t
40131 s,@ECHO_T@,$ECHO_T,;t t
40132 s,@LIBS@,$LIBS,;t t
40133 s,@build@,$build,;t t
40134 s,@build_cpu@,$build_cpu,;t t
40135 s,@build_vendor@,$build_vendor,;t t
40136 s,@build_os@,$build_os,;t t
40137 s,@host@,$host,;t t
40138 s,@host_cpu@,$host_cpu,;t t
40139 s,@host_vendor@,$host_vendor,;t t
40140 s,@host_os@,$host_os,;t t
40141 s,@target@,$target,;t t
40142 s,@target_cpu@,$target_cpu,;t t
40143 s,@target_vendor@,$target_vendor,;t t
40144 s,@target_os@,$target_os,;t t
40145 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
40146 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
40147 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
40148 s,@CYGPATH_W@,$CYGPATH_W,;t t
40149 s,@PACKAGE@,$PACKAGE,;t t
40150 s,@VERSION@,$VERSION,;t t
40151 s,@ACLOCAL@,$ACLOCAL,;t t
40152 s,@AUTOCONF@,$AUTOCONF,;t t
40153 s,@AUTOMAKE@,$AUTOMAKE,;t t
40154 s,@AUTOHEADER@,$AUTOHEADER,;t t
40155 s,@MAKEINFO@,$MAKEINFO,;t t
40156 s,@install_sh@,$install_sh,;t t
40157 s,@STRIP@,$STRIP,;t t
40158 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
40159 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
40160 s,@mkdir_p@,$mkdir_p,;t t
40162 s,@SET_MAKE@,$SET_MAKE,;t t
40163 s,@am__leading_dot@,$am__leading_dot,;t t
40164 s,@AMTAR@,$AMTAR,;t t
40165 s,@am__tar@,$am__tar,;t t
40166 s,@am__untar@,$am__untar,;t t
40167 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
40168 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
40169 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
40170 s,@top_builddir@,$top_builddir,;t t
40171 s,@ldap_subdir@,$ldap_subdir,;t t
40174 s,@CFLAGS@,$CFLAGS,;t t
40175 s,@LDFLAGS@,$LDFLAGS,;t t
40176 s,@CPPFLAGS@,$CPPFLAGS,;t t
40177 s,@ac_ct_CC@,$ac_ct_CC,;t t
40178 s,@EXEEXT@,$EXEEXT,;t t
40179 s,@OBJEXT@,$OBJEXT,;t t
40180 s,@DEPDIR@,$DEPDIR,;t t
40181 s,@am__include@,$am__include,;t t
40182 s,@am__quote@,$am__quote,;t t
40183 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
40184 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
40185 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
40186 s,@CCDEPMODE@,$CCDEPMODE,;t t
40187 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
40188 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
40189 s,@EGREP@,$EGREP,;t t
40190 s,@LN_S@,$LN_S,;t t
40191 s,@ECHO@,$ECHO,;t t
40192 s,@ac_ct_AR@,$ac_ct_AR,;t t
40193 s,@RANLIB@,$RANLIB,;t t
40194 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
40195 s,@DLLTOOL@,$DLLTOOL,;t t
40196 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
40198 s,@ac_ct_AS@,$ac_ct_AS,;t t
40199 s,@OBJDUMP@,$OBJDUMP,;t t
40200 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
40202 s,@LIBTOOL@,$LIBTOOL,;t t
40203 s,@PERLBIN@,$PERLBIN,;t t
40204 s,@OL_MKDEP@,$OL_MKDEP,;t t
40205 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
40206 s,@LTSTATIC@,$LTSTATIC,;t t
40207 s,@MYSQL@,$MYSQL,;t t
40208 s,@LIBOBJS@,$LIBOBJS,;t t
40209 s,@LIBSRCS@,$LIBSRCS,;t t
40210 s,@PLAT@,$PLAT,;t t
40211 s,@WITH_SASL@,$WITH_SASL,;t t
40212 s,@WITH_TLS@,$WITH_TLS,;t t
40213 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
40214 s,@WITH_ACI_ENABLED@,$WITH_ACI_ENABLED,;t t
40215 s,@BUILD_THREAD@,$BUILD_THREAD,;t t
40216 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
40217 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
40218 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
40219 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
40220 s,@BUILD_BDB@,$BUILD_BDB,;t t
40221 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
40222 s,@BUILD_HDB@,$BUILD_HDB,;t t
40223 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
40224 s,@BUILD_META@,$BUILD_META,;t t
40225 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
40226 s,@BUILD_NDB@,$BUILD_NDB,;t t
40227 s,@BUILD_NULL@,$BUILD_NULL,;t t
40228 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
40229 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
40230 s,@BUILD_PERL@,$BUILD_PERL,;t t
40231 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
40232 s,@BUILD_SOCK@,$BUILD_SOCK,;t t
40233 s,@BUILD_SQL@,$BUILD_SQL,;t t
40234 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
40235 s,@BUILD_AUDITLOG@,$BUILD_AUDITLOG,;t t
40236 s,@BUILD_CONSTRAINT@,$BUILD_CONSTRAINT,;t t
40237 s,@BUILD_DDS@,$BUILD_DDS,;t t
40238 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
40239 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
40240 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
40241 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
40242 s,@BUILD_MEMBEROF@,$BUILD_MEMBEROF,;t t
40243 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
40244 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
40245 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
40246 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
40247 s,@BUILD_RWM@,$BUILD_RWM,;t t
40248 s,@BUILD_SEQMOD@,$BUILD_SEQMOD,;t t
40249 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
40250 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
40251 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
40252 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
40253 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
40254 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
40255 s,@BDB_LIBS@,$BDB_LIBS,;t t
40256 s,@SLAPD_NDB_LIBS@,$SLAPD_NDB_LIBS,;t t
40257 s,@SLAPD_NDB_INCS@,$SLAPD_NDB_INCS,;t t
40258 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
40259 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
40260 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
40261 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
40262 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
40263 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
40264 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
40265 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
40266 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
40267 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
40268 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
40269 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
40270 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
40271 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
40272 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
40273 s,@SASL_LIBS@,$SASL_LIBS,;t t
40274 s,@TLS_LIBS@,$TLS_LIBS,;t t
40275 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
40276 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
40277 s,@LIBSLAPI@,$LIBSLAPI,;t t
40278 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
40279 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
40280 s,@ICU_LIBS@,$ICU_LIBS,;t t
40281 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
40282 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
40283 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
40284 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
40285 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
40286 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
40291 cat >>$CONFIG_STATUS <<\_ACEOF
40292 # Split the substitutions into bite-sized pieces for seds with
40293 # small command number limits, like on Digital OSF/1 and HP-UX.
40294 ac_max_sed_lines=48
40295 ac_sed_frag=1 # Number of current file.
40296 ac_beg=1 # First line for current file.
40297 ac_end=$ac_max_sed_lines # Line after last line for current file.
40300 while $ac_more_lines; do
40301 if test $ac_beg -gt 1; then
40302 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
40304 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
40306 if test ! -s $tmp/subs.frag; then
40307 ac_more_lines=false
40309 # The purpose of the label and of the branching condition is to
40310 # speed up the sed processing (if there are no `@' at all, there
40311 # is no need to browse any of the substitutions).
40312 # These are the two extra sed commands mentioned above.
40314 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
40315 if test -z "$ac_sed_cmds"; then
40316 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
40318 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
40320 ac_sed_frag=`expr $ac_sed_frag + 1`
40322 ac_end=`expr $ac_end + $ac_max_sed_lines`
40325 if test -z "$ac_sed_cmds"; then
40328 fi # test -n "$CONFIG_FILES"
40331 cat >>$CONFIG_STATUS <<\_ACEOF
40332 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
40333 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
40335 - | *:- | *:-:* ) # input from stdin
40337 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40338 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40339 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40340 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40341 * ) ac_file_in=$ac_file.in ;;
40344 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
40345 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
40346 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40347 X"$ac_file" : 'X\(//\)[^/]' \| \
40348 X"$ac_file" : 'X\(//\)$' \| \
40349 X"$ac_file" : 'X\(/\)' \| \
40350 . : '\(.\)' 2>/dev/null ||
40352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40353 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40354 /^X\(\/\/\)$/{ s//\1/; q; }
40355 /^X\(\/\).*/{ s//\1/; q; }
40357 { if $as_mkdir_p; then
40362 while test ! -d "$as_dir"; do
40363 as_dirs="$as_dir $as_dirs"
40364 as_dir=`(dirname "$as_dir") 2>/dev/null ||
40365 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40366 X"$as_dir" : 'X\(//\)[^/]' \| \
40367 X"$as_dir" : 'X\(//\)$' \| \
40368 X"$as_dir" : 'X\(/\)' \| \
40369 . : '\(.\)' 2>/dev/null ||
40371 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40372 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40373 /^X\(\/\/\)$/{ s//\1/; q; }
40374 /^X\(\/\).*/{ s//\1/; q; }
40377 test ! -n "$as_dirs" || mkdir $as_dirs
40378 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40379 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40380 { (exit 1); exit 1; }; }; }
40384 if test "$ac_dir" != .; then
40385 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40386 # A "../" for each directory in $ac_dir_suffix.
40387 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
40389 ac_dir_suffix= ac_top_builddir=
40393 .) # No --srcdir option. We are building in place.
40395 if test -z "$ac_top_builddir"; then
40398 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
40400 [\\/]* | ?:[\\/]* ) # Absolute path.
40401 ac_srcdir=$srcdir$ac_dir_suffix;
40402 ac_top_srcdir=$srcdir ;;
40403 *) # Relative path.
40404 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
40405 ac_top_srcdir=$ac_top_builddir$srcdir ;;
40408 # Do not use `cd foo && pwd` to compute absolute paths, because
40409 # the directories may not exist.
40411 .) ac_abs_builddir="$ac_dir";;
40414 .) ac_abs_builddir=`pwd`;;
40415 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
40416 *) ac_abs_builddir=`pwd`/"$ac_dir";;
40419 case $ac_abs_builddir in
40420 .) ac_abs_top_builddir=${ac_top_builddir}.;;
40422 case ${ac_top_builddir}. in
40423 .) ac_abs_top_builddir=$ac_abs_builddir;;
40424 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
40425 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
40428 case $ac_abs_builddir in
40429 .) ac_abs_srcdir=$ac_srcdir;;
40432 .) ac_abs_srcdir=$ac_abs_builddir;;
40433 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
40434 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
40437 case $ac_abs_builddir in
40438 .) ac_abs_top_srcdir=$ac_top_srcdir;;
40440 case $ac_top_srcdir in
40441 .) ac_abs_top_srcdir=$ac_abs_builddir;;
40442 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
40443 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
40449 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
40450 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
40453 if test x"$ac_file" != x-; then
40454 { echo "$as_me:$LINENO: creating $ac_file" >&5
40455 echo "$as_me: creating $ac_file" >&6;}
40458 # Let's still pretend it is `configure' which instantiates (i.e., don't
40459 # use $as_me), people would be surprised to read:
40460 # /* config.h. Generated by config.status. */
40461 if test x"$ac_file" = x-; then
40464 configure_input="$ac_file. "
40466 configure_input=$configure_input"Generated from `echo $ac_file_in |
40467 sed 's,.*/,,'` by configure."
40469 # First look for the input files in the build tree, otherwise in the
40471 ac_file_inputs=`IFS=:
40472 for f in $ac_file_in; do
40474 -) echo $tmp/stdin ;;
40476 # Absolute (can't be DOS-style, as IFS=:)
40477 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40478 echo "$as_me: error: cannot find input file: $f" >&2;}
40479 { (exit 1); exit 1; }; }
40482 if test -f "$f"; then
40485 elif test -f "$srcdir/$f"; then
40490 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40491 echo "$as_me: error: cannot find input file: $f" >&2;}
40492 { (exit 1); exit 1; }; }
40495 done` || { (exit 1); exit 1; }
40497 cat >>$CONFIG_STATUS <<_ACEOF
40501 cat >>$CONFIG_STATUS <<\_ACEOF
40503 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
40504 s,@configure_input@,$configure_input,;t t
40505 s,@srcdir@,$ac_srcdir,;t t
40506 s,@abs_srcdir@,$ac_abs_srcdir,;t t
40507 s,@top_srcdir@,$ac_top_srcdir,;t t
40508 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
40509 s,@builddir@,$ac_builddir,;t t
40510 s,@abs_builddir@,$ac_abs_builddir,;t t
40511 s,@top_builddir@,$ac_top_builddir,;t t
40512 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
40513 s,@INSTALL@,$ac_INSTALL,;t t
40514 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
40516 if test x"$ac_file" != x-; then
40517 mv $tmp/out $ac_file
40525 cat >>$CONFIG_STATUS <<\_ACEOF
40528 # CONFIG_HEADER section.
40531 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
40532 # NAME is the cpp macro being defined and VALUE is the value it is being given.
40534 # ac_d sets the value in "#define NAME VALUE" lines.
40535 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
40536 ac_dB='[ ].*$,\1#\2'
40539 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
40540 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
40541 ac_uB='$,\1#\2define\3'
40545 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
40546 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
40548 - | *:- | *:-:* ) # input from stdin
40550 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40551 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40552 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40553 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40554 * ) ac_file_in=$ac_file.in ;;
40557 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
40558 echo "$as_me: creating $ac_file" >&6;}
40560 # First look for the input files in the build tree, otherwise in the
40562 ac_file_inputs=`IFS=:
40563 for f in $ac_file_in; do
40565 -) echo $tmp/stdin ;;
40567 # Absolute (can't be DOS-style, as IFS=:)
40568 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40569 echo "$as_me: error: cannot find input file: $f" >&2;}
40570 { (exit 1); exit 1; }; }
40571 # Do quote $f, to prevent DOS paths from being IFS'd.
40574 if test -f "$f"; then
40577 elif test -f "$srcdir/$f"; then
40582 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40583 echo "$as_me: error: cannot find input file: $f" >&2;}
40584 { (exit 1); exit 1; }; }
40587 done` || { (exit 1); exit 1; }
40588 # Remove the trailing spaces.
40589 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
40593 # Transform confdefs.h into two sed scripts, `conftest.defines' and
40594 # `conftest.undefs', that substitutes the proper values into
40595 # config.h.in to produce config.h. The first handles `#define'
40596 # templates, and the second `#undef' templates.
40597 # And first: Protect against being on the right side of a sed subst in
40598 # config.status. Protect against being in an unquoted here document
40599 # in config.status.
40600 rm -f conftest.defines conftest.undefs
40601 # Using a here document instead of a string reduces the quoting nightmare.
40602 # Putting comments in sed scripts is not portable.
40604 # `end' is used to avoid that the second main sed command (meant for
40605 # 0-ary CPP macros) applies to n-ary macro definitions.
40606 # See the Autoconf documentation for `clear'.
40607 cat >confdef2sed.sed <<\_ACEOF
40612 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
40614 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
40617 # If some macros were called several times there might be several times
40618 # the same #defines, which is useless. Nevertheless, we may not want to
40619 # sort them, since we want the *last* AC-DEFINE to be honored.
40620 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
40621 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
40622 rm -f confdef2sed.sed
40624 # This sed command replaces #undef with comments. This is necessary, for
40625 # example, in the case of _POSIX_SOURCE, which is predefined and required
40626 # on some systems where configure will not decide to define it.
40627 cat >>conftest.undefs <<\_ACEOF
40628 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
40631 # Break up conftest.defines because some shells have a limit on the size
40632 # of here documents, and old seds have small limits too (100 cmds).
40633 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
40634 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
40635 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
40636 echo ' :' >>$CONFIG_STATUS
40637 rm -f conftest.tail
40638 while grep . conftest.defines >/dev/null
40640 # Write a limited-size here document to $tmp/defines.sed.
40641 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
40642 # Speed up: don't consider the non `#define' lines.
40643 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
40644 # Work around the forget-to-reset-the-flag bug.
40645 echo 't clr' >>$CONFIG_STATUS
40646 echo ': clr' >>$CONFIG_STATUS
40647 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
40649 sed -f $tmp/defines.sed $tmp/in >$tmp/out
40651 mv $tmp/out $tmp/in
40653 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
40654 rm -f conftest.defines
40655 mv conftest.tail conftest.defines
40657 rm -f conftest.defines
40658 echo ' fi # grep' >>$CONFIG_STATUS
40659 echo >>$CONFIG_STATUS
40661 # Break up conftest.undefs because some shells have a limit on the size
40662 # of here documents, and old seds have small limits too (100 cmds).
40663 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
40664 rm -f conftest.tail
40665 while grep . conftest.undefs >/dev/null
40667 # Write a limited-size here document to $tmp/undefs.sed.
40668 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
40669 # Speed up: don't consider the non `#undef'
40670 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
40671 # Work around the forget-to-reset-the-flag bug.
40672 echo 't clr' >>$CONFIG_STATUS
40673 echo ': clr' >>$CONFIG_STATUS
40674 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
40676 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
40678 mv $tmp/out $tmp/in
40680 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
40681 rm -f conftest.undefs
40682 mv conftest.tail conftest.undefs
40684 rm -f conftest.undefs
40686 cat >>$CONFIG_STATUS <<\_ACEOF
40687 # Let's still pretend it is `configure' which instantiates (i.e., don't
40688 # use $as_me), people would be surprised to read:
40689 # /* config.h. Generated by config.status. */
40690 if test x"$ac_file" = x-; then
40691 echo "/* Generated by configure. */" >$tmp/config.h
40693 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
40695 cat $tmp/in >>$tmp/config.h
40697 if test x"$ac_file" != x-; then
40698 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
40699 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
40700 echo "$as_me: $ac_file is unchanged" >&6;}
40702 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
40703 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40704 X"$ac_file" : 'X\(//\)[^/]' \| \
40705 X"$ac_file" : 'X\(//\)$' \| \
40706 X"$ac_file" : 'X\(/\)' \| \
40707 . : '\(.\)' 2>/dev/null ||
40709 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40710 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40711 /^X\(\/\/\)$/{ s//\1/; q; }
40712 /^X\(\/\).*/{ s//\1/; q; }
40714 { if $as_mkdir_p; then
40719 while test ! -d "$as_dir"; do
40720 as_dirs="$as_dir $as_dirs"
40721 as_dir=`(dirname "$as_dir") 2>/dev/null ||
40722 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40723 X"$as_dir" : 'X\(//\)[^/]' \| \
40724 X"$as_dir" : 'X\(//\)$' \| \
40725 X"$as_dir" : 'X\(/\)' \| \
40726 . : '\(.\)' 2>/dev/null ||
40728 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40729 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40730 /^X\(\/\/\)$/{ s//\1/; q; }
40731 /^X\(\/\).*/{ s//\1/; q; }
40734 test ! -n "$as_dirs" || mkdir $as_dirs
40735 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40736 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40737 { (exit 1); exit 1; }; }; }
40740 mv $tmp/config.h $ac_file
40744 rm -f $tmp/config.h
40746 # Compute $ac_file's index in $config_headers.
40748 for _am_header in $config_headers :; do
40749 case $_am_header in
40750 $ac_file | $ac_file:* )
40753 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
40756 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
40757 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40758 X$ac_file : 'X\(//\)[^/]' \| \
40759 X$ac_file : 'X\(//\)$' \| \
40760 X$ac_file : 'X\(/\)' \| \
40761 . : '\(.\)' 2>/dev/null ||
40763 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40764 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40765 /^X\(\/\/\)$/{ s//\1/; q; }
40766 /^X\(\/\).*/{ s//\1/; q; }
40767 s/.*/./; q'`/stamp-h$_am_stamp_count
40770 cat >>$CONFIG_STATUS <<\_ACEOF
40773 # CONFIG_COMMANDS section.
40775 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
40776 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
40777 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
40778 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
40779 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40780 X"$ac_dest" : 'X\(//\)[^/]' \| \
40781 X"$ac_dest" : 'X\(//\)$' \| \
40782 X"$ac_dest" : 'X\(/\)' \| \
40783 . : '\(.\)' 2>/dev/null ||
40785 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40786 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40787 /^X\(\/\/\)$/{ s//\1/; q; }
40788 /^X\(\/\).*/{ s//\1/; q; }
40790 { if $as_mkdir_p; then
40795 while test ! -d "$as_dir"; do
40796 as_dirs="$as_dir $as_dirs"
40797 as_dir=`(dirname "$as_dir") 2>/dev/null ||
40798 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40799 X"$as_dir" : 'X\(//\)[^/]' \| \
40800 X"$as_dir" : 'X\(//\)$' \| \
40801 X"$as_dir" : 'X\(/\)' \| \
40802 . : '\(.\)' 2>/dev/null ||
40804 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40805 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40806 /^X\(\/\/\)$/{ s//\1/; q; }
40807 /^X\(\/\).*/{ s//\1/; q; }
40810 test ! -n "$as_dirs" || mkdir $as_dirs
40811 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40812 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40813 { (exit 1); exit 1; }; }; }
40817 if test "$ac_dir" != .; then
40818 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40819 # A "../" for each directory in $ac_dir_suffix.
40820 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
40822 ac_dir_suffix= ac_top_builddir=
40826 .) # No --srcdir option. We are building in place.
40828 if test -z "$ac_top_builddir"; then
40831 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
40833 [\\/]* | ?:[\\/]* ) # Absolute path.
40834 ac_srcdir=$srcdir$ac_dir_suffix;
40835 ac_top_srcdir=$srcdir ;;
40836 *) # Relative path.
40837 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
40838 ac_top_srcdir=$ac_top_builddir$srcdir ;;
40841 # Do not use `cd foo && pwd` to compute absolute paths, because
40842 # the directories may not exist.
40844 .) ac_abs_builddir="$ac_dir";;
40847 .) ac_abs_builddir=`pwd`;;
40848 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
40849 *) ac_abs_builddir=`pwd`/"$ac_dir";;
40852 case $ac_abs_builddir in
40853 .) ac_abs_top_builddir=${ac_top_builddir}.;;
40855 case ${ac_top_builddir}. in
40856 .) ac_abs_top_builddir=$ac_abs_builddir;;
40857 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
40858 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
40861 case $ac_abs_builddir in
40862 .) ac_abs_srcdir=$ac_srcdir;;
40865 .) ac_abs_srcdir=$ac_abs_builddir;;
40866 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
40867 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
40870 case $ac_abs_builddir in
40871 .) ac_abs_top_srcdir=$ac_top_srcdir;;
40873 case $ac_top_srcdir in
40874 .) ac_abs_top_srcdir=$ac_abs_builddir;;
40875 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
40876 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
40881 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
40882 echo "$as_me: executing $ac_dest commands" >&6;}
40884 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
40885 # Strip MF so we end up with the name of the file.
40886 mf=`echo "$mf" | sed -e 's/:.*$//'`
40887 # Check whether this is an Automake generated Makefile or not.
40888 # We used to match only the files named `Makefile.in', but
40889 # some people rename them; so instead we look at the file content.
40890 # Grep'ing the first line is not enough: some people post-process
40891 # each Makefile.in and add a new line on top of each file to say so.
40892 # So let's grep whole file.
40893 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
40894 dirpart=`(dirname "$mf") 2>/dev/null ||
40895 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40896 X"$mf" : 'X\(//\)[^/]' \| \
40897 X"$mf" : 'X\(//\)$' \| \
40898 X"$mf" : 'X\(/\)' \| \
40899 . : '\(.\)' 2>/dev/null ||
40901 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40902 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40903 /^X\(\/\/\)$/{ s//\1/; q; }
40904 /^X\(\/\).*/{ s//\1/; q; }
40909 # Extract the definition of DEPDIR, am__include, and am__quote
40910 # from the Makefile without running `make'.
40911 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
40912 test -z "$DEPDIR" && continue
40913 am__include=`sed -n 's/^am__include = //p' < "$mf"`
40914 test -z "am__include" && continue
40915 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
40916 # When using ansi2knr, U may be empty or an underscore; expand it
40917 U=`sed -n 's/^U = //p' < "$mf"`
40918 # Find all dependency output files, they are included files with
40919 # $(DEPDIR) in their names. We invoke sed twice because it is the
40920 # simplest approach to changing $(DEPDIR) to its actual value in the
40922 for file in `sed -n "
40923 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
40924 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
40925 # Make sure the directory exists.
40926 test -f "$dirpart/$file" && continue
40927 fdir=`(dirname "$file") 2>/dev/null ||
40928 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40929 X"$file" : 'X\(//\)[^/]' \| \
40930 X"$file" : 'X\(//\)$' \| \
40931 X"$file" : 'X\(/\)' \| \
40932 . : '\(.\)' 2>/dev/null ||
40934 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40935 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40936 /^X\(\/\/\)$/{ s//\1/; q; }
40937 /^X\(\/\).*/{ s//\1/; q; }
40939 { if $as_mkdir_p; then
40940 mkdir -p $dirpart/$fdir
40942 as_dir=$dirpart/$fdir
40944 while test ! -d "$as_dir"; do
40945 as_dirs="$as_dir $as_dirs"
40946 as_dir=`(dirname "$as_dir") 2>/dev/null ||
40947 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40948 X"$as_dir" : 'X\(//\)[^/]' \| \
40949 X"$as_dir" : 'X\(//\)$' \| \
40950 X"$as_dir" : 'X\(/\)' \| \
40951 . : '\(.\)' 2>/dev/null ||
40953 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40954 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40955 /^X\(\/\/\)$/{ s//\1/; q; }
40956 /^X\(\/\).*/{ s//\1/; q; }
40959 test ! -n "$as_dirs" || mkdir $as_dirs
40960 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
40961 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
40962 { (exit 1); exit 1; }; }; }
40964 # echo "creating $dirpart/$file"
40965 echo '# dummy' > "$dirpart/$file"
40972 BACKENDSC="servers/slapd/backends.c"
40973 echo "Making $BACKENDSC"
40975 cat > $BACKENDSC << ENDX
40976 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
40978 * Copyright 1998-2008 The OpenLDAP Foundation.
40979 * All rights reserved.
40981 * Redistribution and use in source and binary forms, with or without
40982 * modification, are permitted only as authorized by the OpenLDAP
40985 * A copy of this license is available in the file LICENSE in the
40986 * top-level directory of the distribution or, alternatively, at
40987 * <http://www.OpenLDAP.org/license.html>.
40989 /* This file is automatically generated by configure; please do not edit. */
40991 #include "portable.h"
40995 if test "${STATIC_BACKENDS}"; then
40996 for b in config ${STATIC_BACKENDS}; do
40997 bb=`echo "${b}" | sed -e 's/back-//'`
40998 cat >> $BACKENDSC << ENDX
40999 extern BI_init ${bb}_back_initialize;
41003 cat >> $BACKENDSC << ENDX
41005 BackendInfo slap_binfo[] = {
41008 for b in config ${STATIC_BACKENDS}; do
41009 bb=`echo "${b}" | sed -e 's/back-//'`
41010 echo " Add ${bb} ..."
41011 cat >> $BACKENDSC << ENDX
41012 { "${bb}", ${bb}_back_initialize },
41016 cat >> $BACKENDSC << ENDX
41020 /* end of generated file */
41023 OVERLAYSC="servers/slapd/overlays/statover.c"
41024 echo "Making $OVERLAYSC"
41026 cat > $OVERLAYSC << ENDX
41027 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
41029 * Copyright 1998-2008 The OpenLDAP Foundation.
41030 * All rights reserved.
41032 * Redistribution and use in source and binary forms, with or without
41033 * modification, are permitted only as authorized by the OpenLDAP
41036 * A copy of this license is available in the file LICENSE in the
41037 * top-level directory of the distribution or, alternatively, at
41038 * <http://www.OpenLDAP.org/license.html>.
41040 /* This file is automatically generated by configure; please do not edit. */
41042 #include "portable.h"
41046 if test "${STATIC_OVERLAYS}"; then
41047 for o in ${STATIC_OVERLAYS}; do
41048 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
41049 cat >> $OVERLAYSC << ENDX
41050 extern OV_init ${oo}_initialize;
41055 cat >> $OVERLAYSC << ENDX
41057 OverlayInit slap_oinfo[] = {
41060 if test "${STATIC_OVERLAYS}"; then
41061 for o in ${STATIC_OVERLAYS}; do
41062 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
41063 echo " Add ${oo} ..."
41064 cat >> $OVERLAYSC << ENDX
41065 { "${oo}", ${oo}_initialize },
41070 cat >> $OVERLAYSC << ENDX
41074 /* end of generated file */
41077 if test "${ol_cv_mkdep}" = no; then
41078 echo '(Do not "make depend"; we do not know how to build dependencies)'
41080 echo 'Please run "make depend" to build dependencies'
41087 cat >>$CONFIG_STATUS <<\_ACEOF
41089 { (exit 0); exit 0; }
41091 chmod +x $CONFIG_STATUS
41092 ac_clean_files=$ac_clean_files_save
41095 # configure is writing to config.log, and then calls config.status.
41096 # config.status does its own redirection, appending to config.log.
41097 # Unfortunately, on DOS this fails, as config.log is still kept open
41098 # by configure, so config.status won't be able to write to it; its
41099 # output is simply discarded. So we exec the FD to /dev/null,
41100 # effectively closing config.log, so it can be properly (re)opened and
41101 # appended to by config.status. When coming back to configure, we
41102 # need to make the FD available again.
41103 if test "$no_create" != yes; then
41105 ac_config_status_args=
41106 test "$silent" = yes &&
41107 ac_config_status_args="$ac_config_status_args --quiet"
41109 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
41111 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
41112 # would make configure fail if this is the last instruction.
41113 $ac_cs_success || { (exit 1); exit 1; }