2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.586.2.16 2005/08/13 00:17:19 kurt Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
6 # Copyright 1998-2005 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"
398 tagnames=${tagnames+${tagnames},}CXX
400 tagnames=${tagnames+${tagnames},}F77
403 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404 # so uname gets run too.
405 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
412 ac_default_prefix=/usr/local
413 ac_config_libobj_dir=.
418 SHELL=${CONFIG_SHELL-/bin/sh}
420 # Maximum number of lines to put in a shell here document.
421 # This variable seems obsolete. It should probably be removed, and
422 # only ac_max_sed_lines should be used.
423 : ${ac_max_here_lines=38}
425 # Identity of this package.
432 ac_unique_file="OpenLDAP"
433 ac_unique_file="build/version.sh"
434 ac_default_prefix=/usr/local
435 # Factoring default headers for most tests.
436 ac_includes_default="\
439 # include <sys/types.h>
442 # include <sys/stat.h>
453 # if !STDC_HEADERS && HAVE_MEMORY_H
459 # include <strings.h>
462 # include <inttypes.h>
472 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 CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PERLBIN OL_MKDEP OL_MKDEP_FLAGS LTSTATIC LIBOBJS LIBSRCS PLAT WITH_SASL WITH_TLS WITH_MODULES_ENABLED BUILD_LIBS_DYNAMIC BUILD_SLAPD BUILD_SLAPI SLAPD_SLAPI_DEPEND BUILD_BDB BUILD_DNSSRV BUILD_HDB BUILD_LDAP BUILD_LDBM BUILD_META BUILD_MONITOR BUILD_NULL BUILD_PASSWD BUILD_RELAY BUILD_PERL BUILD_SHELL BUILD_SQL BUILD_ACCESSLOG BUILD_DENYOP BUILD_DYNGROUP BUILD_DYNLIST BUILD_GLUE BUILD_LASTMOD BUILD_PPOLICY BUILD_PROXYCACHE BUILD_REFINT BUILD_RETCODE BUILD_RWM BUILD_SYNCPROV BUILD_TRANSLUCENT BUILD_UNIQUE BUILD_SLURPD LDAP_LIBS SLAPD_LIBS SLURPD_LIBS LDBM_LIBS LTHREAD_LIBS LUTIL_LIBS WRAP_LIBS SLAPD_MODULES_CPPFLAGS SLAPD_MODULES_LDFLAGS SLAPD_NO_STATIC SLAPD_STATIC_BACKENDS SLAPD_DYNAMIC_BACKENDS SLAPD_STATIC_OVERLAYS SLAPD_DYNAMIC_OVERLAYS PERL_CPPFLAGS SLAPD_PERL_LDFLAGS MOD_PERL_LDFLAGS KRB4_LIBS KRB5_LIBS SASL_LIBS TLS_LIBS MODULES_LIBS SLAPI_LIBS LIBSLAPI LIBSLAPITOOLS AUTH_LIBS SLAPD_SLP_LIBS SLAPD_GMP_LIBS SLAPD_SQL_LDFLAGS SLAPD_SQL_LIBS SLAPD_SQL_INCLUDES LTLIBOBJS'
475 # Initialize some variables set by options.
477 ac_init_version=false
478 # The variables have the same names as the options, with
479 # dashes changed to underlines.
487 program_transform_name=s,x,x,
495 # Installation directory options.
496 # These are left unexpanded so users can "make install exec_prefix=/foo"
497 # and all the variables that are supposed to be based on exec_prefix
498 # by default will actually change.
499 # Use braces instead of parens because sh, perl, etc. also accept them.
500 bindir='${exec_prefix}/bin'
501 sbindir='${exec_prefix}/sbin'
502 libexecdir='${exec_prefix}/libexec'
503 datadir='${prefix}/share'
504 sysconfdir='${prefix}/etc'
505 sharedstatedir='${prefix}/com'
506 localstatedir='${prefix}/var'
507 libdir='${exec_prefix}/lib'
508 includedir='${prefix}/include'
509 oldincludedir='/usr/include'
510 infodir='${prefix}/info'
511 mandir='${prefix}/man'
516 # If the previous option needs an argument, assign it.
517 if test -n "$ac_prev"; then
518 eval "$ac_prev=\$ac_option"
523 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
525 # Accept the important Cygnus configure options, so we can diagnose typos.
529 -bindir | --bindir | --bindi | --bind | --bin | --bi)
531 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
534 -build | --build | --buil | --bui | --bu)
535 ac_prev=build_alias ;;
536 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
537 build_alias=$ac_optarg ;;
539 -cache-file | --cache-file | --cache-fil | --cache-fi \
540 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
541 ac_prev=cache_file ;;
542 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
543 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
544 cache_file=$ac_optarg ;;
547 cache_file=config.cache ;;
549 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
551 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
553 datadir=$ac_optarg ;;
555 -disable-* | --disable-*)
556 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
557 # Reject names that are not valid shell variable names.
558 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
559 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
560 { (exit 1); exit 1; }; }
561 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
562 eval "enable_$ac_feature=no" ;;
564 -enable-* | --enable-*)
565 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
566 # Reject names that are not valid shell variable names.
567 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
568 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
569 { (exit 1); exit 1; }; }
570 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
572 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
575 eval "enable_$ac_feature='$ac_optarg'" ;;
577 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
578 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
579 | --exec | --exe | --ex)
580 ac_prev=exec_prefix ;;
581 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
582 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
583 | --exec=* | --exe=* | --ex=*)
584 exec_prefix=$ac_optarg ;;
586 -gas | --gas | --ga | --g)
587 # Obsolete; use --with-gas.
590 -help | --help | --hel | --he | -h)
592 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
593 ac_init_help=recursive ;;
594 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
595 ac_init_help=short ;;
597 -host | --host | --hos | --ho)
598 ac_prev=host_alias ;;
599 -host=* | --host=* | --hos=* | --ho=*)
600 host_alias=$ac_optarg ;;
602 -includedir | --includedir | --includedi | --included | --include \
603 | --includ | --inclu | --incl | --inc)
604 ac_prev=includedir ;;
605 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
606 | --includ=* | --inclu=* | --incl=* | --inc=*)
607 includedir=$ac_optarg ;;
609 -infodir | --infodir | --infodi | --infod | --info | --inf)
611 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
612 infodir=$ac_optarg ;;
614 -libdir | --libdir | --libdi | --libd)
616 -libdir=* | --libdir=* | --libdi=* | --libd=*)
619 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
620 | --libexe | --libex | --libe)
621 ac_prev=libexecdir ;;
622 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
623 | --libexe=* | --libex=* | --libe=*)
624 libexecdir=$ac_optarg ;;
626 -localstatedir | --localstatedir | --localstatedi | --localstated \
627 | --localstate | --localstat | --localsta | --localst \
628 | --locals | --local | --loca | --loc | --lo)
629 ac_prev=localstatedir ;;
630 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
631 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
632 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
633 localstatedir=$ac_optarg ;;
635 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
637 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641 # Obsolete; use --without-fp.
644 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
645 | --no-cr | --no-c | -n)
648 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
649 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
652 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
653 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
654 | --oldin | --oldi | --old | --ol | --o)
655 ac_prev=oldincludedir ;;
656 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
657 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
658 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
659 oldincludedir=$ac_optarg ;;
661 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
663 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
666 -program-prefix | --program-prefix | --program-prefi | --program-pref \
667 | --program-pre | --program-pr | --program-p)
668 ac_prev=program_prefix ;;
669 -program-prefix=* | --program-prefix=* | --program-prefi=* \
670 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
671 program_prefix=$ac_optarg ;;
673 -program-suffix | --program-suffix | --program-suffi | --program-suff \
674 | --program-suf | --program-su | --program-s)
675 ac_prev=program_suffix ;;
676 -program-suffix=* | --program-suffix=* | --program-suffi=* \
677 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
678 program_suffix=$ac_optarg ;;
680 -program-transform-name | --program-transform-name \
681 | --program-transform-nam | --program-transform-na \
682 | --program-transform-n | --program-transform- \
683 | --program-transform | --program-transfor \
684 | --program-transfo | --program-transf \
685 | --program-trans | --program-tran \
686 | --progr-tra | --program-tr | --program-t)
687 ac_prev=program_transform_name ;;
688 -program-transform-name=* | --program-transform-name=* \
689 | --program-transform-nam=* | --program-transform-na=* \
690 | --program-transform-n=* | --program-transform-=* \
691 | --program-transform=* | --program-transfor=* \
692 | --program-transfo=* | --program-transf=* \
693 | --program-trans=* | --program-tran=* \
694 | --progr-tra=* | --program-tr=* | --program-t=*)
695 program_transform_name=$ac_optarg ;;
697 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
698 | -silent | --silent | --silen | --sile | --sil)
701 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
703 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
705 sbindir=$ac_optarg ;;
707 -sharedstatedir | --sharedstatedir | --sharedstatedi \
708 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
709 | --sharedst | --shareds | --shared | --share | --shar \
711 ac_prev=sharedstatedir ;;
712 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
713 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
714 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
716 sharedstatedir=$ac_optarg ;;
718 -site | --site | --sit)
720 -site=* | --site=* | --sit=*)
723 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
725 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
728 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
729 | --syscon | --sysco | --sysc | --sys | --sy)
730 ac_prev=sysconfdir ;;
731 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
732 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
733 sysconfdir=$ac_optarg ;;
735 -target | --target | --targe | --targ | --tar | --ta | --t)
736 ac_prev=target_alias ;;
737 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
738 target_alias=$ac_optarg ;;
740 -v | -verbose | --verbose | --verbos | --verbo | --verb)
743 -version | --version | --versio | --versi | --vers | -V)
747 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
748 # Reject names that are not valid shell variable names.
749 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
750 { echo "$as_me: error: invalid package name: $ac_package" >&2
751 { (exit 1); exit 1; }; }
752 ac_package=`echo $ac_package| sed 's/-/_/g'`
754 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
757 eval "with_$ac_package='$ac_optarg'" ;;
759 -without-* | --without-*)
760 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
761 # Reject names that are not valid shell variable names.
762 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
763 { echo "$as_me: error: invalid package name: $ac_package" >&2
764 { (exit 1); exit 1; }; }
765 ac_package=`echo $ac_package | sed 's/-/_/g'`
766 eval "with_$ac_package=no" ;;
769 # Obsolete; use --with-x.
772 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
773 | --x-incl | --x-inc | --x-in | --x-i)
774 ac_prev=x_includes ;;
775 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
776 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
777 x_includes=$ac_optarg ;;
779 -x-libraries | --x-libraries | --x-librarie | --x-librari \
780 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
781 ac_prev=x_libraries ;;
782 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
783 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
784 x_libraries=$ac_optarg ;;
786 -*) { echo "$as_me: error: unrecognized option: $ac_option
787 Try \`$0 --help' for more information." >&2
788 { (exit 1); exit 1; }; }
792 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
793 # Reject names that are not valid shell variable names.
794 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
795 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
796 { (exit 1); exit 1; }; }
797 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
798 eval "$ac_envvar='$ac_optarg'"
802 # FIXME: should be removed in autoconf 3.0.
803 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
804 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
805 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
806 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
812 if test -n "$ac_prev"; then
813 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
814 { echo "$as_me: error: missing argument to $ac_option" >&2
815 { (exit 1); exit 1; }; }
818 # Be sure to have absolute paths.
819 for ac_var in exec_prefix prefix
821 eval ac_val=$`echo $ac_var`
823 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
824 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
825 { (exit 1); exit 1; }; };;
829 # Be sure to have absolute paths.
830 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
831 localstatedir libdir includedir oldincludedir infodir mandir
833 eval ac_val=$`echo $ac_var`
835 [\\/$]* | ?:[\\/]* ) ;;
836 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
837 { (exit 1); exit 1; }; };;
841 # There might be people who depend on the old broken behavior: `$host'
842 # used to hold the argument of --host etc.
843 # FIXME: To remove some day.
848 # FIXME: To remove some day.
849 if test "x$host_alias" != x; then
850 if test "x$build_alias" = x; then
851 cross_compiling=maybe
852 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
853 If a cross compiler is detected then cross compile mode will be used." >&2
854 elif test "x$build_alias" != "x$host_alias"; then
860 test -n "$host_alias" && ac_tool_prefix=$host_alias-
862 test "$silent" = yes && exec 6>/dev/null
865 # Find the source files, if location was not specified.
866 if test -z "$srcdir"; then
867 ac_srcdir_defaulted=yes
868 # Try the directory containing this script, then its parent.
869 ac_confdir=`(dirname "$0") 2>/dev/null ||
870 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
871 X"$0" : 'X\(//\)[^/]' \| \
872 X"$0" : 'X\(//\)$' \| \
873 X"$0" : 'X\(/\)' \| \
874 . : '\(.\)' 2>/dev/null ||
876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
877 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
878 /^X\(\/\/\)$/{ s//\1/; q; }
879 /^X\(\/\).*/{ s//\1/; q; }
882 if test ! -r $srcdir/$ac_unique_file; then
886 ac_srcdir_defaulted=no
888 if test ! -r $srcdir/$ac_unique_file; then
889 if test "$ac_srcdir_defaulted" = yes; then
890 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
891 { (exit 1); exit 1; }; }
893 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
894 { (exit 1); exit 1; }; }
897 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
898 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
899 { (exit 1); exit 1; }; }
900 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
901 ac_env_build_alias_set=${build_alias+set}
902 ac_env_build_alias_value=$build_alias
903 ac_cv_env_build_alias_set=${build_alias+set}
904 ac_cv_env_build_alias_value=$build_alias
905 ac_env_host_alias_set=${host_alias+set}
906 ac_env_host_alias_value=$host_alias
907 ac_cv_env_host_alias_set=${host_alias+set}
908 ac_cv_env_host_alias_value=$host_alias
909 ac_env_target_alias_set=${target_alias+set}
910 ac_env_target_alias_value=$target_alias
911 ac_cv_env_target_alias_set=${target_alias+set}
912 ac_cv_env_target_alias_value=$target_alias
913 ac_env_CC_set=${CC+set}
915 ac_cv_env_CC_set=${CC+set}
916 ac_cv_env_CC_value=$CC
917 ac_env_CFLAGS_set=${CFLAGS+set}
918 ac_env_CFLAGS_value=$CFLAGS
919 ac_cv_env_CFLAGS_set=${CFLAGS+set}
920 ac_cv_env_CFLAGS_value=$CFLAGS
921 ac_env_LDFLAGS_set=${LDFLAGS+set}
922 ac_env_LDFLAGS_value=$LDFLAGS
923 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
924 ac_cv_env_LDFLAGS_value=$LDFLAGS
925 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
926 ac_env_CPPFLAGS_value=$CPPFLAGS
927 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
928 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
929 ac_env_CPP_set=${CPP+set}
930 ac_env_CPP_value=$CPP
931 ac_cv_env_CPP_set=${CPP+set}
932 ac_cv_env_CPP_value=$CPP
933 ac_env_CXX_set=${CXX+set}
934 ac_env_CXX_value=$CXX
935 ac_cv_env_CXX_set=${CXX+set}
936 ac_cv_env_CXX_value=$CXX
937 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
938 ac_env_CXXFLAGS_value=$CXXFLAGS
939 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
940 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
941 ac_env_CXXCPP_set=${CXXCPP+set}
942 ac_env_CXXCPP_value=$CXXCPP
943 ac_cv_env_CXXCPP_set=${CXXCPP+set}
944 ac_cv_env_CXXCPP_value=$CXXCPP
945 ac_env_F77_set=${F77+set}
946 ac_env_F77_value=$F77
947 ac_cv_env_F77_set=${F77+set}
948 ac_cv_env_F77_value=$F77
949 ac_env_FFLAGS_set=${FFLAGS+set}
950 ac_env_FFLAGS_value=$FFLAGS
951 ac_cv_env_FFLAGS_set=${FFLAGS+set}
952 ac_cv_env_FFLAGS_value=$FFLAGS
955 # Report the --help message.
957 if test "$ac_init_help" = "long"; then
958 # Omit some internal or obsolete options to make the list less imposing.
959 # This message is too long to be a string in the A/UX 3.1 sh.
961 \`configure' configures this package to adapt to many kinds of systems.
963 Usage: $0 [OPTION]... [VAR=VALUE]...
965 To assign environment variables (e.g., CC, CFLAGS...), specify them as
966 VAR=VALUE. See below for descriptions of some of the useful variables.
968 Defaults for the options are specified in brackets.
971 -h, --help display this help and exit
972 --help=short display options specific to this package
973 --help=recursive display the short help of all the included packages
974 -V, --version display version information and exit
975 -q, --quiet, --silent do not print \`checking...' messages
976 --cache-file=FILE cache test results in FILE [disabled]
977 -C, --config-cache alias for \`--cache-file=config.cache'
978 -n, --no-create do not create output files
979 --srcdir=DIR find the sources in DIR [configure dir or \`..']
984 Installation directories:
985 --prefix=PREFIX install architecture-independent files in PREFIX
987 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
990 By default, \`make install' will install all the files in
991 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
992 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
993 for instance \`--prefix=\$HOME'.
995 For better control, use the options below.
997 Fine tuning of the installation directories:
998 --bindir=DIR user executables [EPREFIX/bin]
999 --sbindir=DIR system admin executables [EPREFIX/sbin]
1000 --libexecdir=DIR program executables [EPREFIX/libexec]
1001 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1002 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1003 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1004 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1005 --libdir=DIR object code libraries [EPREFIX/lib]
1006 --includedir=DIR C header files [PREFIX/include]
1007 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1008 --infodir=DIR info documentation [PREFIX/info]
1009 --mandir=DIR man documentation [PREFIX/man]
1015 --program-prefix=PREFIX prepend PREFIX to installed program names
1016 --program-suffix=SUFFIX append SUFFIX to installed program names
1017 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1020 --build=BUILD configure for building on BUILD [guessed]
1021 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1022 --target=TARGET configure for building compilers for TARGET [HOST]
1026 if test -n "$ac_init_help"; then
1031 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1032 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1033 --enable-debug enable debugging yes
1034 --enable-dynamic enable linking built binaries with dynamic libs no
1035 --enable-syslog enable syslog support auto
1036 --enable-proctitle enable proctitle support yes
1037 --enable-ipv6 enable IPv6 support auto
1038 --enable-local enable AF_LOCAL (AF_UNIX) socket support auto
1039 --enable-slapd enable building slapd yes
1040 --enable-aci enable per-object ACIs (experimental) no
1041 --enable-cleartext enable cleartext passwords yes
1042 --enable-crypt enable crypt(3) passwords no
1043 --enable-lmpasswd enable LAN Manager passwords no
1044 --enable-spasswd enable (Cyrus) SASL password verification no
1045 --enable-modules enable dynamic module support no
1046 --enable-rewrite enable DN rewriting in back-ldap and rwm overlay auto
1047 --enable-rlookups enable reverse lookups of client hostnames no
1048 --enable-slapi enable SLAPI support (experimental) no
1049 --enable-slp enable SLPv2 support no
1050 --enable-wrappers enable tcp wrapper support no
1051 --enable-backends enable all available backends no|yes|mod
1052 --enable-bdb enable Berkeley DB backend no|yes|mod ${ol_dflt_backends-yes}
1053 --enable-dnssrv enable dnssrv backend no|yes|mod ${ol_dflt_backends-no}
1054 --enable-hdb enable Hierarchical DB backend no|yes|mod ${ol_dflt_backends-yes}
1055 --enable-ldap enable ldap backend no|yes|mod ${ol_dflt_backends-no}
1056 --enable-ldbm enable ldbm backend no|yes|mod ${ol_dflt_backends-no}
1057 --enable-meta enable metadirectory backend no|yes|mod ${ol_dflt_backends-no}
1058 --enable-monitor enable monitor backend no|yes|mod ${ol_dflt_backends-yes}
1059 --enable-null enable null backend no|yes|mod ${ol_dflt_backends-no}
1060 --enable-passwd enable passwd backend no|yes|mod ${ol_dflt_backends-no}
1061 --enable-perl enable perl backend no|yes|mod ${ol_dflt_backends-no}
1062 --enable-relay enable relay backend no|yes|mod ${ol_dflt_backends-yes}
1063 --enable-shell enable shell backend no|yes|mod ${ol_dflt_backends-no}
1064 --enable-sql enable sql backend no|yes|mod ${ol_dflt_backends-no}
1065 --enable-overlays enable all available overlays no|yes|mod
1066 --enable-accesslog In-Directory Access Logging overlay no|yes|mod ${ol_dflt_overlays-no}
1067 --enable-denyop Deny Operation overlay no|yes|mod ${ol_dflt_overlays-no}
1068 --enable-dyngroup Dynamic Group overlay no|yes|mod ${ol_dflt_overlays-no}
1069 --enable-dynlist Dynamic List overlay no|yes|mod ${ol_dflt_overlays-no}
1070 --enable-glue Backend Glue overlay no|yes|mod ${ol_dflt_overlays-yes}
1071 --enable-lastmod Last Modification overlay no|yes|mod ${ol_dflt_overlays-no}
1072 --enable-ppolicy Password Policy overlay no|yes|mod ${ol_dflt_overlays-no}
1073 --enable-proxycache Proxy Cache overlay no|yes|mod ${ol_dflt_overlays-no}
1074 --enable-refint Referential Integrity overlay no|yes|mod ${ol_dflt_overlays-no}
1075 --enable-retcode Return Code testing overlay no|yes|mod ${ol_dflt_overlays-no}
1076 --enable-rwm Rewrite/Remap overlay no|yes|mod ${ol_dflt_overlays-no}
1077 --enable-syncprov Syncrepl Provider overlay no|yes|mod ${ol_dflt_overlays-yes}
1078 --enable-translucent Translucent Proxy overlay no|yes|mod ${ol_dflt_overlays-no}
1079 --enable-unique Attribute Uniqueness overlay no|yes|mod ${ol_dflt_overlays-no}
1080 --enable-slurpd enable building slurpd auto
1081 --enable-static[=PKGS]
1082 build static libraries [default=yes]
1083 --enable-shared[=PKGS]
1084 build shared libraries [default=yes]
1085 --enable-fast-install[=PKGS]
1086 optimize for fast installation [default=yes]
1087 --disable-dependency-tracking speeds up one-time build
1088 --enable-dependency-tracking do not reject slow dependency extractors
1089 --disable-libtool-lock avoid locking (might break parallel builds)
1092 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1093 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1094 --with-subdir=DIR change default subdirectory used for installs
1095 --with-cyrus-sasl with Cyrus SASL support auto
1096 --with-fetch with fetch(3) URL support auto
1097 --with-threads with threads auto
1098 --with-tls with TLS/SSL support auto
1099 --with-yielding-select with implicitly yielding select auto
1100 --with-multiple-precision
1101 multiple precision support for statistics
1102 auto|bignum|gmp auto
1104 SLAPD (Standalone LDAP Daemon) Options:
1106 SLAPD Backend Options:
1107 --with-ldbm-api with LDBM API auto|berkeley|bcompat|mdbm|gdbm auto
1108 --with-ldbm-type use LDBM type auto|btree|hash auto
1110 SLAPD Overlay Options:
1112 SLURPD (Replication Daemon) Options:
1114 Library Generation & Linking Options
1115 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1116 --with-pic try to use only PIC/non-PIC objects [default=use
1119 include additional configurations [automatic]
1121 See INSTALL file for further details.
1123 Some influential environment variables:
1124 CC C compiler command
1125 CFLAGS C compiler flags
1126 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1127 nonstandard directory <lib dir>
1128 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1129 headers in a nonstandard directory <include dir>
1131 CXX C++ compiler command
1132 CXXFLAGS C++ compiler flags
1133 CXXCPP C++ preprocessor
1134 F77 Fortran 77 compiler command
1135 FFLAGS Fortran 77 compiler flags
1137 Use these variables to override the choices made by `configure' or to help
1138 it to find libraries and programs with nonstandard names/locations.
1143 if test "$ac_init_help" = "recursive"; then
1144 # If there are subdirs, report their specific --help.
1146 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1147 test -d $ac_dir || continue
1150 if test "$ac_dir" != .; then
1151 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1152 # A "../" for each directory in $ac_dir_suffix.
1153 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1155 ac_dir_suffix= ac_top_builddir=
1159 .) # No --srcdir option. We are building in place.
1161 if test -z "$ac_top_builddir"; then
1164 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1166 [\\/]* | ?:[\\/]* ) # Absolute path.
1167 ac_srcdir=$srcdir$ac_dir_suffix;
1168 ac_top_srcdir=$srcdir ;;
1170 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1171 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1174 # Do not use `cd foo && pwd` to compute absolute paths, because
1175 # the directories may not exist.
1177 .) ac_abs_builddir="$ac_dir";;
1180 .) ac_abs_builddir=`pwd`;;
1181 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1182 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1185 case $ac_abs_builddir in
1186 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1188 case ${ac_top_builddir}. in
1189 .) ac_abs_top_builddir=$ac_abs_builddir;;
1190 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1191 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1194 case $ac_abs_builddir in
1195 .) ac_abs_srcdir=$ac_srcdir;;
1198 .) ac_abs_srcdir=$ac_abs_builddir;;
1199 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1200 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1203 case $ac_abs_builddir in
1204 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1206 case $ac_top_srcdir in
1207 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1208 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1209 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1214 # Check for guested configure; otherwise get Cygnus style configure.
1215 if test -f $ac_srcdir/configure.gnu; then
1217 $SHELL $ac_srcdir/configure.gnu --help=recursive
1218 elif test -f $ac_srcdir/configure; then
1220 $SHELL $ac_srcdir/configure --help=recursive
1221 elif test -f $ac_srcdir/configure.ac ||
1222 test -f $ac_srcdir/configure.in; then
1224 $ac_configure --help
1226 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1232 test -n "$ac_init_help" && exit 0
1233 if $ac_init_version; then
1236 Copyright (C) 2003 Free Software Foundation, Inc.
1237 This configure script is free software; the Free Software Foundation
1238 gives unlimited permission to copy, distribute and modify it.
1240 Copyright 1998-2005 The OpenLDAP Foundation. All rights reserved.
1241 Restrictions apply, see COPYRIGHT and LICENSE files.
1247 This file contains any messages produced by compilers while
1248 running configure, to aid debugging if configure makes a mistake.
1250 It was created by $as_me, which was
1251 generated by GNU Autoconf 2.59. Invocation command line was
1262 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1263 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1264 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1265 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1266 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1268 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1269 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1271 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1272 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1273 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1274 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1275 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1276 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1277 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1285 test -z "$as_dir" && as_dir=.
1286 echo "PATH: $as_dir"
1301 # Keep a trace of the command line.
1302 # Strip out --no-create and --no-recursion so they do not pile up.
1303 # Strip out --silent because we don't want to record it for future runs.
1304 # Also quote any args containing shell meta-characters.
1305 # Make two passes to allow for proper duplicate-argument suppression.
1310 ac_must_keep_next=false
1316 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1317 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1318 | -silent | --silent | --silen | --sile | --sil)
1320 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1321 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1324 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1326 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1327 if test $ac_must_keep_next = true; then
1328 ac_must_keep_next=false # Got value, back to normal.
1331 *=* | --config-cache | -C | -disable-* | --disable-* \
1332 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1333 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1334 | -with-* | --with-* | -without-* | --without-* | --x)
1335 case "$ac_configure_args0 " in
1336 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1339 -* ) ac_must_keep_next=true ;;
1342 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1343 # Get rid of the leading space.
1349 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1350 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1352 # When interrupted or exit'd, cleanup temporary files, and complete
1353 # config.log. We remove comments because anyway the quotes in there
1354 # would cause problems or look ugly.
1355 # WARNING: Be sure not to use single quotes in there, as some shells,
1356 # such as our DU 5.0 friend, will then `close' the trap.
1357 trap 'exit_status=$?
1358 # Save into config.log some information that might help in debugging.
1363 ## ---------------- ##
1364 ## Cache variables. ##
1365 ## ---------------- ##
1368 # The following way of writing the cache mishandles newlines in values,
1371 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1374 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1375 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1379 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1386 ## ----------------- ##
1387 ## Output variables. ##
1388 ## ----------------- ##
1391 for ac_var in $ac_subst_vars
1393 eval ac_val=$`echo $ac_var`
1394 echo "$ac_var='"'"'$ac_val'"'"'"
1398 if test -n "$ac_subst_files"; then
1405 for ac_var in $ac_subst_files
1407 eval ac_val=$`echo $ac_var`
1408 echo "$ac_var='"'"'$ac_val'"'"'"
1413 if test -s confdefs.h; then
1420 sed "/^$/d" confdefs.h | sort
1423 test "$ac_signal" != 0 &&
1424 echo "$as_me: caught signal $ac_signal"
1425 echo "$as_me: exit $exit_status"
1427 rm -f core *.core &&
1428 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1431 for ac_signal in 1 2 13 15; do
1432 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1436 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1437 rm -rf conftest* confdefs.h
1438 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1441 # Predefined preprocessor variables.
1443 cat >>confdefs.h <<_ACEOF
1444 #define PACKAGE_NAME "$PACKAGE_NAME"
1448 cat >>confdefs.h <<_ACEOF
1449 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1453 cat >>confdefs.h <<_ACEOF
1454 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1458 cat >>confdefs.h <<_ACEOF
1459 #define PACKAGE_STRING "$PACKAGE_STRING"
1463 cat >>confdefs.h <<_ACEOF
1464 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1468 # Let the site file select an alternate cache file if it wants to.
1469 # Prefer explicitly selected file to automatically selected ones.
1470 if test -z "$CONFIG_SITE"; then
1471 if test "x$prefix" != xNONE; then
1472 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1474 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1477 for ac_site_file in $CONFIG_SITE; do
1478 if test -r "$ac_site_file"; then
1479 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1480 echo "$as_me: loading site script $ac_site_file" >&6;}
1481 sed 's/^/| /' "$ac_site_file" >&5
1487 # Check that the precious variables saved in the cache have kept the same
1489 ac_cache_corrupted=false
1490 for ac_var in `(set) 2>&1 |
1491 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1492 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1493 eval ac_new_set=\$ac_env_${ac_var}_set
1494 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1495 eval ac_new_val="\$ac_env_${ac_var}_value"
1496 case $ac_old_set,$ac_new_set in
1498 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1499 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1500 ac_cache_corrupted=: ;;
1502 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1503 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1504 ac_cache_corrupted=: ;;
1507 if test "x$ac_old_val" != "x$ac_new_val"; then
1508 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1509 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1510 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1511 echo "$as_me: former value: $ac_old_val" >&2;}
1512 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1513 echo "$as_me: current value: $ac_new_val" >&2;}
1514 ac_cache_corrupted=:
1517 # Pass precious variables to config.status.
1518 if test "$ac_new_set" = set; then
1520 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1521 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1522 *) ac_arg=$ac_var=$ac_new_val ;;
1524 case " $ac_configure_args " in
1525 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1526 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1530 if $ac_cache_corrupted; then
1531 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1532 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1533 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1534 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1535 { (exit 1); exit 1; }; }
1539 ac_cpp='$CPP $CPPFLAGS'
1540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1584 # set unset (borrowed from autoconf 2.49c)
1585 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
1591 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
1594 for ac_dir in build $srcdir/build; do
1595 if test -f $ac_dir/install-sh; then
1597 ac_install_sh="$ac_aux_dir/install-sh -c"
1599 elif test -f $ac_dir/install.sh; then
1601 ac_install_sh="$ac_aux_dir/install.sh -c"
1603 elif test -f $ac_dir/shtool; then
1605 ac_install_sh="$ac_aux_dir/shtool install -c"
1609 if test -z "$ac_aux_dir"; then
1610 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1611 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1612 { (exit 1); exit 1; }; }
1614 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1615 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1616 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1618 eval `$ac_aux_dir/version.sh`
1619 if test -z "$OL_STRING"; then
1620 { { echo "$as_me:$LINENO: error: could not determine version" >&5
1621 echo "$as_me: error: could not determine version" >&2;}
1622 { (exit 1); exit 1; }; }
1625 if test -f "$ac_aux_dir/shtool" -a ! -d $ac_aux_dir/shtool; then
1626 ac_cv_shtool="$ac_aux_dir/shtool"
1628 { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1629 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1630 { (exit 1); exit 1; }; }
1633 SHTOOL="$ac_cv_shtool"
1635 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1636 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1639 if test -d $ac_aux_dir/CVS; then
1640 OPENLDAP_CVS="(from CVS sources) "
1643 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1645 # Make sure we can run config.sub.
1646 $ac_config_sub sun4 >/dev/null 2>&1 ||
1647 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1648 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1649 { (exit 1); exit 1; }; }
1651 echo "$as_me:$LINENO: checking build system type" >&5
1652 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1653 if test "${ac_cv_build+set}" = set; then
1654 echo $ECHO_N "(cached) $ECHO_C" >&6
1656 ac_cv_build_alias=$build_alias
1657 test -z "$ac_cv_build_alias" &&
1658 ac_cv_build_alias=`$ac_config_guess`
1659 test -z "$ac_cv_build_alias" &&
1660 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1661 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1662 { (exit 1); exit 1; }; }
1663 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1664 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1665 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1666 { (exit 1); exit 1; }; }
1669 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1670 echo "${ECHO_T}$ac_cv_build" >&6
1672 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1673 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1674 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1677 echo "$as_me:$LINENO: checking host system type" >&5
1678 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1679 if test "${ac_cv_host+set}" = set; then
1680 echo $ECHO_N "(cached) $ECHO_C" >&6
1682 ac_cv_host_alias=$host_alias
1683 test -z "$ac_cv_host_alias" &&
1684 ac_cv_host_alias=$ac_cv_build_alias
1685 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1686 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1687 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1688 { (exit 1); exit 1; }; }
1691 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1692 echo "${ECHO_T}$ac_cv_host" >&6
1694 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1695 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1696 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1699 echo "$as_me:$LINENO: checking target system type" >&5
1700 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1701 if test "${ac_cv_target+set}" = set; then
1702 echo $ECHO_N "(cached) $ECHO_C" >&6
1704 ac_cv_target_alias=$target_alias
1705 test "x$ac_cv_target_alias" = "x" &&
1706 ac_cv_target_alias=$ac_cv_host_alias
1707 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1708 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1709 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1710 { (exit 1); exit 1; }; }
1713 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1714 echo "${ECHO_T}$ac_cv_target" >&6
1715 target=$ac_cv_target
1716 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1717 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1718 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1721 # The aliases save the names the user supplied, while $host etc.
1722 # will get canonicalized.
1723 test -n "$target_alias" &&
1724 test "$program_prefix$program_suffix$program_transform_name" = \
1726 program_prefix=${target_alias}-
1728 am__api_version="1.9"
1729 # Find a good install program. We prefer a C program (faster),
1730 # so one script is as good as another. But avoid the broken or
1731 # incompatible versions:
1732 # SysV /etc/install, /usr/sbin/install
1733 # SunOS /usr/etc/install
1734 # IRIX /sbin/install
1736 # AmigaOS /C/install, which installs bootblocks on floppy discs
1737 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1738 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1739 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1740 # OS/2's system install, which has a completely different semantic
1741 # ./install, which can be erroneously created by make from ./install.sh.
1742 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1743 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1744 if test -z "$INSTALL"; then
1745 if test "${ac_cv_path_install+set}" = set; then
1746 echo $ECHO_N "(cached) $ECHO_C" >&6
1748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1752 test -z "$as_dir" && as_dir=.
1753 # Account for people who put trailing slashes in PATH elements.
1755 ./ | .// | /cC/* | \
1756 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1757 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1760 # OSF1 and SCO ODT 3.0 have their own names for install.
1761 # Don't use installbsd from OSF since it installs stuff as root
1763 for ac_prog in ginstall scoinst install; do
1764 for ac_exec_ext in '' $ac_executable_extensions; do
1765 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1766 if test $ac_prog = install &&
1767 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1768 # AIX install. It has an incompatible calling convention.
1770 elif test $ac_prog = install &&
1771 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1772 # program-specific install script used by HP pwplus--don't use.
1775 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1787 if test "${ac_cv_path_install+set}" = set; then
1788 INSTALL=$ac_cv_path_install
1790 # As a last resort, use the slow shell script. We don't cache a
1791 # path for INSTALL within a source directory, because that will
1792 # break other packages using the cache if that directory is
1793 # removed, or if the path is relative.
1794 INSTALL=$ac_install_sh
1797 echo "$as_me:$LINENO: result: $INSTALL" >&5
1798 echo "${ECHO_T}$INSTALL" >&6
1800 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1801 # It thinks the first close brace ends the variable substitution.
1802 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1804 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1806 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1808 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1809 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1812 echo timestamp > conftest.file
1813 # Do `set' in a subshell so we don't clobber the current shell's
1814 # arguments. Must try -L first in case configure is actually a
1815 # symlink; some systems play weird games with the mod time of symlinks
1816 # (eg FreeBSD returns the mod time of the symlink's containing
1819 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1820 if test "$*" = "X"; then
1822 set X `ls -t $srcdir/configure conftest.file`
1825 if test "$*" != "X $srcdir/configure conftest.file" \
1826 && test "$*" != "X conftest.file $srcdir/configure"; then
1828 # If neither matched, then we have a broken ls. This can happen
1829 # if, for instance, CONFIG_SHELL is bash and it inherits a
1830 # broken ls alias from the environment. This has actually
1831 # happened. Such a system could not be considered "sane".
1832 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1833 alias in your environment" >&5
1834 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1835 alias in your environment" >&2;}
1836 { (exit 1); exit 1; }; }
1839 test "$2" = conftest.file
1845 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1846 Check your system clock" >&5
1847 echo "$as_me: error: newly created file is older than distributed files!
1848 Check your system clock" >&2;}
1849 { (exit 1); exit 1; }; }
1851 echo "$as_me:$LINENO: result: yes" >&5
1852 echo "${ECHO_T}yes" >&6
1853 test "$program_prefix" != NONE &&
1854 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1855 # Use a double $ so make ignores it.
1856 test "$program_suffix" != NONE &&
1857 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1858 # Double any \ or $. echo might interpret backslashes.
1859 # By default was `s,x,x', remove it if useless.
1860 cat <<\_ACEOF >conftest.sed
1861 s/[\\$]/&&/g;s/;s,x,x,$//
1863 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1866 # expand $ac_aux_dir to an absolute path
1867 am_aux_dir=`cd $ac_aux_dir && pwd`
1869 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1870 # Use eval to expand $SHELL
1871 if eval "$MISSING --run true"; then
1872 am_missing_run="$MISSING --run "
1875 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1876 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1879 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1880 # We used to keeping the `.' as first argument, in order to
1881 # allow $(mkdir_p) to be used without argument. As in
1882 # $(mkdir_p) $(somedir)
1883 # where $(somedir) is conditionally defined. However this is wrong
1885 # 1. if the package is installed by a user who cannot write `.'
1886 # make install will fail,
1887 # 2. the above comment should most certainly read
1888 # $(mkdir_p) $(DESTDIR)$(somedir)
1889 # so it does not work when $(somedir) is undefined and
1890 # $(DESTDIR) is not.
1891 # To support the latter case, we have to write
1892 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1893 # so the `.' trick is pointless.
1894 mkdir_p='mkdir -p --'
1896 # On NextStep and OpenStep, the `mkdir' command does not
1897 # recognize any option. It will interpret all options as
1898 # directories to create, and then abort because `.' already
1900 for d in ./-p ./--version;
1902 test -d $d && rmdir $d
1904 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1905 if test -f "$ac_aux_dir/mkinstalldirs"; then
1906 mkdir_p='$(mkinstalldirs)'
1908 mkdir_p='$(install_sh) -d'
1912 for ac_prog in gawk mawk nawk awk
1914 # Extract the first word of "$ac_prog", so it can be a program name with args.
1915 set dummy $ac_prog; ac_word=$2
1916 echo "$as_me:$LINENO: checking for $ac_word" >&5
1917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1918 if test "${ac_cv_prog_AWK+set}" = set; then
1919 echo $ECHO_N "(cached) $ECHO_C" >&6
1921 if test -n "$AWK"; then
1922 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1928 test -z "$as_dir" && as_dir=.
1929 for ac_exec_ext in '' $ac_executable_extensions; do
1930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1931 ac_cv_prog_AWK="$ac_prog"
1932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1941 if test -n "$AWK"; then
1942 echo "$as_me:$LINENO: result: $AWK" >&5
1943 echo "${ECHO_T}$AWK" >&6
1945 echo "$as_me:$LINENO: result: no" >&5
1946 echo "${ECHO_T}no" >&6
1949 test -n "$AWK" && break
1952 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1953 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1954 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1955 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1956 echo $ECHO_N "(cached) $ECHO_C" >&6
1958 cat >conftest.make <<\_ACEOF
1960 @echo 'ac_maketemp="$(MAKE)"'
1962 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1963 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1964 if test -n "$ac_maketemp"; then
1965 eval ac_cv_prog_make_${ac_make}_set=yes
1967 eval ac_cv_prog_make_${ac_make}_set=no
1971 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1972 echo "$as_me:$LINENO: result: yes" >&5
1973 echo "${ECHO_T}yes" >&6
1976 echo "$as_me:$LINENO: result: no" >&5
1977 echo "${ECHO_T}no" >&6
1978 SET_MAKE="MAKE=${MAKE-make}"
1981 rm -rf .tst 2>/dev/null
1982 mkdir .tst 2>/dev/null
1983 if test -d .tst; then
1988 rmdir .tst 2>/dev/null
1990 # test to see if srcdir already configured
1991 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1992 test -f $srcdir/config.status; then
1993 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1994 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1995 { (exit 1); exit 1; }; }
1998 # test whether we have cygpath
1999 if test -z "$CYGPATH_W"; then
2000 if (cygpath --version) >/dev/null 2>/dev/null; then
2001 CYGPATH_W='cygpath -w'
2008 # Define the identity of the package.
2013 # Some tools Automake needs.
2015 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2018 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2021 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2024 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2027 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2029 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2031 # Installed binaries are usually stripped using `strip' when the user
2032 # run `make install-strip'. However `strip' might not be the right
2033 # tool to use in cross-compilation environments, therefore Automake
2034 # will honor the `STRIP' environment variable to overrule this program.
2035 if test "$cross_compiling" != no; then
2036 if test -n "$ac_tool_prefix"; then
2037 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2038 set dummy ${ac_tool_prefix}strip; ac_word=$2
2039 echo "$as_me:$LINENO: checking for $ac_word" >&5
2040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2041 if test "${ac_cv_prog_STRIP+set}" = set; then
2042 echo $ECHO_N "(cached) $ECHO_C" >&6
2044 if test -n "$STRIP"; then
2045 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2051 test -z "$as_dir" && as_dir=.
2052 for ac_exec_ext in '' $ac_executable_extensions; do
2053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2054 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2063 STRIP=$ac_cv_prog_STRIP
2064 if test -n "$STRIP"; then
2065 echo "$as_me:$LINENO: result: $STRIP" >&5
2066 echo "${ECHO_T}$STRIP" >&6
2068 echo "$as_me:$LINENO: result: no" >&5
2069 echo "${ECHO_T}no" >&6
2073 if test -z "$ac_cv_prog_STRIP"; then
2075 # Extract the first word of "strip", so it can be a program name with args.
2076 set dummy strip; ac_word=$2
2077 echo "$as_me:$LINENO: checking for $ac_word" >&5
2078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2079 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2080 echo $ECHO_N "(cached) $ECHO_C" >&6
2082 if test -n "$ac_ct_STRIP"; then
2083 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2089 test -z "$as_dir" && as_dir=.
2090 for ac_exec_ext in '' $ac_executable_extensions; do
2091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2092 ac_cv_prog_ac_ct_STRIP="strip"
2093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2099 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2102 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2103 if test -n "$ac_ct_STRIP"; then
2104 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2105 echo "${ECHO_T}$ac_ct_STRIP" >&6
2107 echo "$as_me:$LINENO: result: no" >&5
2108 echo "${ECHO_T}no" >&6
2113 STRIP="$ac_cv_prog_STRIP"
2117 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2119 # We need awk for the "check" target. The system "awk" is bad on
2121 # Always define AMTAR for backward compatibility.
2123 AMTAR=${AMTAR-"${am_missing_run}tar"}
2125 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2131 cat >>confdefs.h <<_ACEOF
2132 #define OPENLDAP_PACKAGE "$PACKAGE"
2136 cat >>confdefs.h <<_ACEOF
2137 #define OPENLDAP_VERSION "$VERSION"
2142 cat >>confdefs.h <<_ACEOF
2143 #define LDAP_VENDOR_VERSION $OL_API_INC
2147 cat >>confdefs.h <<_ACEOF
2148 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2152 cat >>confdefs.h <<_ACEOF
2153 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2157 cat >>confdefs.h <<_ACEOF
2158 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2162 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2164 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2166 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2174 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2176 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2178 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2181 echo "$as_me:$LINENO: checking configure arguments" >&5
2182 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2187 ldap_subdir="/openldap"
2190 # Check whether --with-subdir or --without-subdir was given.
2191 if test "${with_subdir+set}" = set; then
2192 withval="$with_subdir"
2199 ldap_subdir="$withval"
2202 ldap_subdir="/$withval"
2208 # OpenLDAP --enable-debug
2209 # Check whether --enable-debug or --disable-debug was given.
2210 if test "${enable_debug+set}" = set; then
2211 enableval="$enable_debug"
2214 for ol_val in auto yes no ; do
2215 if test "$enableval" = "$ol_val" ; then
2219 if test "$ol_arg" = "invalid" ; then
2220 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2221 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2222 { (exit 1); exit 1; }; }
2224 ol_enable_debug="$ol_arg"
2227 ol_enable_debug="yes"
2228 fi; # end --enable-debug
2229 # OpenLDAP --enable-dynamic
2230 # Check whether --enable-dynamic or --disable-dynamic was given.
2231 if test "${enable_dynamic+set}" = set; then
2232 enableval="$enable_dynamic"
2235 for ol_val in auto yes no ; do
2236 if test "$enableval" = "$ol_val" ; then
2240 if test "$ol_arg" = "invalid" ; then
2241 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2242 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2243 { (exit 1); exit 1; }; }
2245 ol_enable_dynamic="$ol_arg"
2248 ol_enable_dynamic="no"
2249 fi; # end --enable-dynamic
2250 # OpenLDAP --enable-syslog
2251 # Check whether --enable-syslog or --disable-syslog was given.
2252 if test "${enable_syslog+set}" = set; then
2253 enableval="$enable_syslog"
2256 for ol_val in auto yes no ; do
2257 if test "$enableval" = "$ol_val" ; then
2261 if test "$ol_arg" = "invalid" ; then
2262 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2263 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2264 { (exit 1); exit 1; }; }
2266 ol_enable_syslog="$ol_arg"
2269 ol_enable_syslog="auto"
2270 fi; # end --enable-syslog
2271 # OpenLDAP --enable-proctitle
2272 # Check whether --enable-proctitle or --disable-proctitle was given.
2273 if test "${enable_proctitle+set}" = set; then
2274 enableval="$enable_proctitle"
2277 for ol_val in auto yes no ; do
2278 if test "$enableval" = "$ol_val" ; then
2282 if test "$ol_arg" = "invalid" ; then
2283 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2284 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2285 { (exit 1); exit 1; }; }
2287 ol_enable_proctitle="$ol_arg"
2290 ol_enable_proctitle="yes"
2291 fi; # end --enable-proctitle
2292 ol_enable_referrals=${ol_enable_referrals-no}
2293 ol_enable_kbind=${ol_enable_kbind-no}
2294 # OpenLDAP --enable-ipv6
2295 # Check whether --enable-ipv6 or --disable-ipv6 was given.
2296 if test "${enable_ipv6+set}" = set; then
2297 enableval="$enable_ipv6"
2300 for ol_val in auto yes no ; do
2301 if test "$enableval" = "$ol_val" ; then
2305 if test "$ol_arg" = "invalid" ; then
2306 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2307 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2308 { (exit 1); exit 1; }; }
2310 ol_enable_ipv6="$ol_arg"
2313 ol_enable_ipv6="auto"
2314 fi; # end --enable-ipv6
2315 # OpenLDAP --enable-local
2316 # Check whether --enable-local or --disable-local was given.
2317 if test "${enable_local+set}" = set; then
2318 enableval="$enable_local"
2321 for ol_val in auto yes no ; do
2322 if test "$enableval" = "$ol_val" ; then
2326 if test "$ol_arg" = "invalid" ; then
2327 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2328 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2329 { (exit 1); exit 1; }; }
2331 ol_enable_local="$ol_arg"
2334 ol_enable_local="auto"
2335 fi; # end --enable-local
2337 # OpenLDAP --with-cyrus_sasl
2339 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2340 if test "${with_cyrus_sasl+set}" = set; then
2341 withval="$with_cyrus_sasl"
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-cyrus_sasl" >&5
2351 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2352 { (exit 1); exit 1; }; }
2354 ol_with_cyrus_sasl="$ol_arg"
2357 ol_with_cyrus_sasl="auto"
2358 fi; # end --with-cyrus_sasl
2360 # OpenLDAP --with-fetch
2362 # Check whether --with-fetch or --without-fetch was given.
2363 if test "${with_fetch+set}" = set; then
2364 withval="$with_fetch"
2367 for ol_val in auto yes no ; 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-fetch" >&5
2374 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2375 { (exit 1); exit 1; }; }
2377 ol_with_fetch="$ol_arg"
2380 ol_with_fetch="auto"
2381 fi; # end --with-fetch
2383 ol_with_kerberos=${ol_with_kerberos-auto}
2384 # OpenLDAP --with-threads
2386 # Check whether --with-threads or --without-threads was given.
2387 if test "${with_threads+set}" = set; then
2388 withval="$with_threads"
2391 for ol_val in auto nt posix mach pth lwp yes no manual ; do
2392 if test "$withval" = "$ol_val" ; then
2396 if test "$ol_arg" = "invalid" ; then
2397 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2398 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2399 { (exit 1); exit 1; }; }
2401 ol_with_threads="$ol_arg"
2404 ol_with_threads="auto"
2405 fi; # end --with-threads
2407 # OpenLDAP --with-tls
2409 # Check whether --with-tls or --without-tls was given.
2410 if test "${with_tls+set}" = set; then
2414 for ol_val in auto ssleay openssl yes no ; do
2415 if test "$withval" = "$ol_val" ; then
2419 if test "$ol_arg" = "invalid" ; then
2420 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2421 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2422 { (exit 1); exit 1; }; }
2424 ol_with_tls="$ol_arg"
2428 fi; # end --with-tls
2430 # OpenLDAP --with-yielding_select
2432 # Check whether --with-yielding_select or --without-yielding_select was given.
2433 if test "${with_yielding_select+set}" = set; then
2434 withval="$with_yielding_select"
2437 for ol_val in auto yes no manual ; do
2438 if test "$withval" = "$ol_val" ; then
2442 if test "$ol_arg" = "invalid" ; then
2443 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2444 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2445 { (exit 1); exit 1; }; }
2447 ol_with_yielding_select="$ol_arg"
2450 ol_with_yielding_select="auto"
2451 fi; # end --with-yielding_select
2453 # OpenLDAP --with-multiple_precision
2455 # Check whether --with-multiple_precision or --without-multiple_precision was given.
2456 if test "${with_multiple_precision+set}" = set; then
2457 withval="$with_multiple_precision"
2460 for ol_val in auto bignum gmp yes no ; do
2461 if test "$withval" = "$ol_val" ; then
2465 if test "$ol_arg" = "invalid" ; then
2466 { { echo "$as_me:$LINENO: error: bad value $withval for --with-multiple_precision" >&5
2467 echo "$as_me: error: bad value $withval for --with-multiple_precision" >&2;}
2468 { (exit 1); exit 1; }; }
2470 ol_with_multiple_precision="$ol_arg"
2473 ol_with_multiple_precision="auto"
2474 fi; # end --with-multiple_precision
2479 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
2480 if test "${with_xxslapdoptions+set}" = set; then
2481 withval="$with_xxslapdoptions"
2484 # OpenLDAP --enable-slapd
2485 # Check whether --enable-slapd or --disable-slapd was given.
2486 if test "${enable_slapd+set}" = set; then
2487 enableval="$enable_slapd"
2490 for ol_val in auto yes no ; do
2491 if test "$enableval" = "$ol_val" ; then
2495 if test "$ol_arg" = "invalid" ; then
2496 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2497 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2498 { (exit 1); exit 1; }; }
2500 ol_enable_slapd="$ol_arg"
2503 ol_enable_slapd="yes"
2504 fi; # end --enable-slapd
2505 # OpenLDAP --enable-aci
2506 # Check whether --enable-aci or --disable-aci was given.
2507 if test "${enable_aci+set}" = set; then
2508 enableval="$enable_aci"
2511 for ol_val in auto yes no ; do
2512 if test "$enableval" = "$ol_val" ; then
2516 if test "$ol_arg" = "invalid" ; then
2517 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2518 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2519 { (exit 1); exit 1; }; }
2521 ol_enable_aci="$ol_arg"
2525 fi; # end --enable-aci
2526 # OpenLDAP --enable-cleartext
2527 # Check whether --enable-cleartext or --disable-cleartext was given.
2528 if test "${enable_cleartext+set}" = set; then
2529 enableval="$enable_cleartext"
2532 for ol_val in auto yes no ; do
2533 if test "$enableval" = "$ol_val" ; then
2537 if test "$ol_arg" = "invalid" ; then
2538 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2539 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2540 { (exit 1); exit 1; }; }
2542 ol_enable_cleartext="$ol_arg"
2545 ol_enable_cleartext="yes"
2546 fi; # end --enable-cleartext
2547 # OpenLDAP --enable-crypt
2548 # Check whether --enable-crypt or --disable-crypt was given.
2549 if test "${enable_crypt+set}" = set; then
2550 enableval="$enable_crypt"
2553 for ol_val in auto yes no ; do
2554 if test "$enableval" = "$ol_val" ; then
2558 if test "$ol_arg" = "invalid" ; then
2559 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2560 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2561 { (exit 1); exit 1; }; }
2563 ol_enable_crypt="$ol_arg"
2566 ol_enable_crypt="no"
2567 fi; # end --enable-crypt
2568 # OpenLDAP --enable-lmpasswd
2569 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2570 if test "${enable_lmpasswd+set}" = set; then
2571 enableval="$enable_lmpasswd"
2574 for ol_val in auto yes no ; do
2575 if test "$enableval" = "$ol_val" ; then
2579 if test "$ol_arg" = "invalid" ; then
2580 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2581 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2582 { (exit 1); exit 1; }; }
2584 ol_enable_lmpasswd="$ol_arg"
2587 ol_enable_lmpasswd="no"
2588 fi; # end --enable-lmpasswd
2589 # OpenLDAP --enable-spasswd
2590 # Check whether --enable-spasswd or --disable-spasswd was given.
2591 if test "${enable_spasswd+set}" = set; then
2592 enableval="$enable_spasswd"
2595 for ol_val in auto yes no ; do
2596 if test "$enableval" = "$ol_val" ; then
2600 if test "$ol_arg" = "invalid" ; then
2601 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2602 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2603 { (exit 1); exit 1; }; }
2605 ol_enable_spasswd="$ol_arg"
2608 ol_enable_spasswd="no"
2609 fi; # end --enable-spasswd
2610 # OpenLDAP --enable-modules
2611 # Check whether --enable-modules or --disable-modules was given.
2612 if test "${enable_modules+set}" = set; then
2613 enableval="$enable_modules"
2616 for ol_val in auto yes no ; do
2617 if test "$enableval" = "$ol_val" ; then
2621 if test "$ol_arg" = "invalid" ; then
2622 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2623 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2624 { (exit 1); exit 1; }; }
2626 ol_enable_modules="$ol_arg"
2629 ol_enable_modules="no"
2630 fi; # end --enable-modules
2631 ol_enable_multimaster=${ol_enable_multimaster-no}
2632 # OpenLDAP --enable-rewrite
2633 # Check whether --enable-rewrite or --disable-rewrite was given.
2634 if test "${enable_rewrite+set}" = set; then
2635 enableval="$enable_rewrite"
2638 for ol_val in auto yes no ; do
2639 if test "$enableval" = "$ol_val" ; then
2643 if test "$ol_arg" = "invalid" ; then
2644 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2645 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2646 { (exit 1); exit 1; }; }
2648 ol_enable_rewrite="$ol_arg"
2651 ol_enable_rewrite="auto"
2652 fi; # end --enable-rewrite
2653 # OpenLDAP --enable-rlookups
2654 # Check whether --enable-rlookups or --disable-rlookups was given.
2655 if test "${enable_rlookups+set}" = set; then
2656 enableval="$enable_rlookups"
2659 for ol_val in auto yes no ; do
2660 if test "$enableval" = "$ol_val" ; then
2664 if test "$ol_arg" = "invalid" ; then
2665 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2666 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2667 { (exit 1); exit 1; }; }
2669 ol_enable_rlookups="$ol_arg"
2672 ol_enable_rlookups="no"
2673 fi; # end --enable-rlookups
2674 # OpenLDAP --enable-slapi
2675 # Check whether --enable-slapi or --disable-slapi was given.
2676 if test "${enable_slapi+set}" = set; then
2677 enableval="$enable_slapi"
2680 for ol_val in auto yes no ; do
2681 if test "$enableval" = "$ol_val" ; then
2685 if test "$ol_arg" = "invalid" ; then
2686 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2687 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2688 { (exit 1); exit 1; }; }
2690 ol_enable_slapi="$ol_arg"
2693 ol_enable_slapi="no"
2694 fi; # end --enable-slapi
2695 # OpenLDAP --enable-slp
2696 # Check whether --enable-slp or --disable-slp was given.
2697 if test "${enable_slp+set}" = set; then
2698 enableval="$enable_slp"
2701 for ol_val in auto yes no ; do
2702 if test "$enableval" = "$ol_val" ; then
2706 if test "$ol_arg" = "invalid" ; then
2707 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2708 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2709 { (exit 1); exit 1; }; }
2711 ol_enable_slp="$ol_arg"
2715 fi; # end --enable-slp
2716 # OpenLDAP --enable-wrappers
2717 # Check whether --enable-wrappers or --disable-wrappers was given.
2718 if test "${enable_wrappers+set}" = set; then
2719 enableval="$enable_wrappers"
2722 for ol_val in auto yes no ; do
2723 if test "$enableval" = "$ol_val" ; then
2727 if test "$ol_arg" = "invalid" ; then
2728 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2729 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2730 { (exit 1); exit 1; }; }
2732 ol_enable_wrappers="$ol_arg"
2735 ol_enable_wrappers="no"
2736 fi; # end --enable-wrappers
2738 Backends="bdb dnssrv hdb ldap ldbm meta monitor null \
2739 passwd perl relay shell sql"
2742 # Check whether --with-xxslapbackends or --without-xxslapbackends was given.
2743 if test "${with_xxslapbackends+set}" = set; then
2744 withval="$with_xxslapbackends"
2748 # OpenLDAP --enable-backends
2749 # Check whether --enable-backends or --disable-backends was given.
2750 if test "${enable_backends+set}" = set; then
2751 enableval="$enable_backends"
2754 for ol_val in no yes mod ; do
2755 if test "$enableval" = "$ol_val" ; then
2759 if test "$ol_arg" = "invalid" ; then
2760 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2761 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2762 { (exit 1); exit 1; }; }
2764 ol_enable_backends="$ol_arg"
2766 fi; # end --enable-backends
2767 test -n "$ol_enable_backends" && ol_dflt_backends="$ol_enable_backends"
2768 # OpenLDAP --enable-bdb
2769 # Check whether --enable-bdb or --disable-bdb was given.
2770 if test "${enable_bdb+set}" = set; then
2771 enableval="$enable_bdb"
2774 for ol_val in no yes mod ; do
2775 if test "$enableval" = "$ol_val" ; then
2779 if test "$ol_arg" = "invalid" ; then
2780 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2781 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2782 { (exit 1); exit 1; }; }
2784 ol_enable_bdb="$ol_arg"
2787 ol_enable_bdb="${ol_dflt_backends-yes}"
2788 fi; # end --enable-bdb
2789 # OpenLDAP --enable-dnssrv
2790 # Check whether --enable-dnssrv or --disable-dnssrv was given.
2791 if test "${enable_dnssrv+set}" = set; then
2792 enableval="$enable_dnssrv"
2795 for ol_val in no yes mod ; do
2796 if test "$enableval" = "$ol_val" ; then
2800 if test "$ol_arg" = "invalid" ; then
2801 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2802 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2803 { (exit 1); exit 1; }; }
2805 ol_enable_dnssrv="$ol_arg"
2808 ol_enable_dnssrv="${ol_dflt_backends-no}"
2809 fi; # end --enable-dnssrv
2810 # OpenLDAP --enable-hdb
2811 # Check whether --enable-hdb or --disable-hdb was given.
2812 if test "${enable_hdb+set}" = set; then
2813 enableval="$enable_hdb"
2816 for ol_val in no yes mod ; do
2817 if test "$enableval" = "$ol_val" ; then
2821 if test "$ol_arg" = "invalid" ; then
2822 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2823 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2824 { (exit 1); exit 1; }; }
2826 ol_enable_hdb="$ol_arg"
2829 ol_enable_hdb="${ol_dflt_backends-yes}"
2830 fi; # end --enable-hdb
2831 # OpenLDAP --enable-ldap
2832 # Check whether --enable-ldap or --disable-ldap was given.
2833 if test "${enable_ldap+set}" = set; then
2834 enableval="$enable_ldap"
2837 for ol_val in no yes mod ; do
2838 if test "$enableval" = "$ol_val" ; then
2842 if test "$ol_arg" = "invalid" ; then
2843 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2844 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2845 { (exit 1); exit 1; }; }
2847 ol_enable_ldap="$ol_arg"
2850 ol_enable_ldap="${ol_dflt_backends-no}"
2851 fi; # end --enable-ldap
2852 # OpenLDAP --enable-ldbm
2853 # Check whether --enable-ldbm or --disable-ldbm was given.
2854 if test "${enable_ldbm+set}" = set; then
2855 enableval="$enable_ldbm"
2858 for ol_val in no yes mod ; do
2859 if test "$enableval" = "$ol_val" ; then
2863 if test "$ol_arg" = "invalid" ; then
2864 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm" >&5
2865 echo "$as_me: error: bad value $enableval for --enable-ldbm" >&2;}
2866 { (exit 1); exit 1; }; }
2868 ol_enable_ldbm="$ol_arg"
2871 ol_enable_ldbm="${ol_dflt_backends-no}"
2872 fi; # end --enable-ldbm
2873 # OpenLDAP --with-ldbm_api
2875 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2876 if test "${with_ldbm_api+set}" = set; then
2877 withval="$with_ldbm_api"
2880 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2881 if test "$withval" = "$ol_val" ; then
2885 if test "$ol_arg" = "invalid" ; then
2886 { { echo "$as_me:$LINENO: error: bad value $withval for --with-ldbm_api" >&5
2887 echo "$as_me: error: bad value $withval for --with-ldbm_api" >&2;}
2888 { (exit 1); exit 1; }; }
2890 ol_with_ldbm_api="$ol_arg"
2893 ol_with_ldbm_api="auto"
2894 fi; # end --with-ldbm_api
2896 # OpenLDAP --with-ldbm_type
2898 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2899 if test "${with_ldbm_type+set}" = set; then
2900 withval="$with_ldbm_type"
2903 for ol_val in auto btree hash ; do
2904 if test "$withval" = "$ol_val" ; then
2908 if test "$ol_arg" = "invalid" ; then
2909 { { echo "$as_me:$LINENO: error: bad value $withval for --with-ldbm_type" >&5
2910 echo "$as_me: error: bad value $withval for --with-ldbm_type" >&2;}
2911 { (exit 1); exit 1; }; }
2913 ol_with_ldbm_type="$ol_arg"
2916 ol_with_ldbm_type="auto"
2917 fi; # end --with-ldbm_type
2919 # OpenLDAP --enable-meta
2920 # Check whether --enable-meta or --disable-meta was given.
2921 if test "${enable_meta+set}" = set; then
2922 enableval="$enable_meta"
2925 for ol_val in no yes mod ; do
2926 if test "$enableval" = "$ol_val" ; then
2930 if test "$ol_arg" = "invalid" ; then
2931 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2932 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2933 { (exit 1); exit 1; }; }
2935 ol_enable_meta="$ol_arg"
2938 ol_enable_meta="${ol_dflt_backends-no}"
2939 fi; # end --enable-meta
2940 # 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_dflt_backends-yes}"
2960 fi; # end --enable-monitor
2961 # OpenLDAP --enable-null
2962 # Check whether --enable-null or --disable-null was given.
2963 if test "${enable_null+set}" = set; then
2964 enableval="$enable_null"
2967 for ol_val in no yes mod ; do
2968 if test "$enableval" = "$ol_val" ; then
2972 if test "$ol_arg" = "invalid" ; then
2973 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
2974 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
2975 { (exit 1); exit 1; }; }
2977 ol_enable_null="$ol_arg"
2980 ol_enable_null="${ol_dflt_backends-no}"
2981 fi; # end --enable-null
2982 # OpenLDAP --enable-passwd
2983 # Check whether --enable-passwd or --disable-passwd was given.
2984 if test "${enable_passwd+set}" = set; then
2985 enableval="$enable_passwd"
2988 for ol_val in no yes mod ; do
2989 if test "$enableval" = "$ol_val" ; then
2993 if test "$ol_arg" = "invalid" ; then
2994 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
2995 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
2996 { (exit 1); exit 1; }; }
2998 ol_enable_passwd="$ol_arg"
3001 ol_enable_passwd="${ol_dflt_backends-no}"
3002 fi; # end --enable-passwd
3003 # OpenLDAP --enable-perl
3004 # Check whether --enable-perl or --disable-perl was given.
3005 if test "${enable_perl+set}" = set; then
3006 enableval="$enable_perl"
3009 for ol_val in no yes mod ; do
3010 if test "$enableval" = "$ol_val" ; then
3014 if test "$ol_arg" = "invalid" ; then
3015 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3016 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3017 { (exit 1); exit 1; }; }
3019 ol_enable_perl="$ol_arg"
3022 ol_enable_perl="${ol_dflt_backends-no}"
3023 fi; # end --enable-perl
3024 # OpenLDAP --enable-relay
3025 # Check whether --enable-relay or --disable-relay was given.
3026 if test "${enable_relay+set}" = set; then
3027 enableval="$enable_relay"
3030 for ol_val in no yes mod ; do
3031 if test "$enableval" = "$ol_val" ; then
3035 if test "$ol_arg" = "invalid" ; then
3036 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3037 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3038 { (exit 1); exit 1; }; }
3040 ol_enable_relay="$ol_arg"
3043 ol_enable_relay="${ol_dflt_backends-yes}"
3044 fi; # end --enable-relay
3045 # OpenLDAP --enable-shell
3046 # Check whether --enable-shell or --disable-shell was given.
3047 if test "${enable_shell+set}" = set; then
3048 enableval="$enable_shell"
3051 for ol_val in no yes mod ; do
3052 if test "$enableval" = "$ol_val" ; then
3056 if test "$ol_arg" = "invalid" ; then
3057 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3058 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3059 { (exit 1); exit 1; }; }
3061 ol_enable_shell="$ol_arg"
3064 ol_enable_shell="${ol_dflt_backends-no}"
3065 fi; # end --enable-shell
3066 # OpenLDAP --enable-sql
3067 # Check whether --enable-sql or --disable-sql was given.
3068 if test "${enable_sql+set}" = set; then
3069 enableval="$enable_sql"
3072 for ol_val in no yes mod ; do
3073 if test "$enableval" = "$ol_val" ; then
3077 if test "$ol_arg" = "invalid" ; then
3078 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3079 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3080 { (exit 1); exit 1; }; }
3082 ol_enable_sql="$ol_arg"
3085 ol_enable_sql="${ol_dflt_backends-no}"
3086 fi; # end --enable-sql
3088 Overlays="accesslog denyop dyngroup dynlist glue lastmod ppolicy proxycache \
3089 refint retcode rwm syncprov translucent unique"
3092 # Check whether --with-xxslapoverlays or --without-xxslapoverlays was given.
3093 if test "${with_xxslapoverlays+set}" = set; then
3094 withval="$with_xxslapoverlays"
3098 # OpenLDAP --enable-overlays
3099 # Check whether --enable-overlays or --disable-overlays was given.
3100 if test "${enable_overlays+set}" = set; then
3101 enableval="$enable_overlays"
3104 for ol_val in no yes mod ; do
3105 if test "$enableval" = "$ol_val" ; then
3109 if test "$ol_arg" = "invalid" ; then
3110 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3111 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3112 { (exit 1); exit 1; }; }
3114 ol_enable_overlays="$ol_arg"
3116 fi; # end --enable-overlays
3117 test -n "$ol_enable_overlays" && ol_dflt_overlays="$ol_enable_overlays"
3118 # OpenLDAP --enable-accesslog
3119 # Check whether --enable-accesslog or --disable-accesslog was given.
3120 if test "${enable_accesslog+set}" = set; then
3121 enableval="$enable_accesslog"
3124 for ol_val in no yes mod ; do
3125 if test "$enableval" = "$ol_val" ; then
3129 if test "$ol_arg" = "invalid" ; then
3130 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3131 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3132 { (exit 1); exit 1; }; }
3134 ol_enable_accesslog="$ol_arg"
3137 ol_enable_accesslog="${ol_dflt_overlays-no}"
3138 fi; # end --enable-accesslog
3140 # OpenLDAP --enable-denyop
3141 # Check whether --enable-denyop or --disable-denyop was given.
3142 if test "${enable_denyop+set}" = set; then
3143 enableval="$enable_denyop"
3146 for ol_val in no yes mod ; do
3147 if test "$enableval" = "$ol_val" ; then
3151 if test "$ol_arg" = "invalid" ; then
3152 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-denyop" >&5
3153 echo "$as_me: error: bad value $enableval for --enable-denyop" >&2;}
3154 { (exit 1); exit 1; }; }
3156 ol_enable_denyop="$ol_arg"
3159 ol_enable_denyop="${ol_dflt_overlays-no}"
3160 fi; # end --enable-denyop
3162 # OpenLDAP --enable-dyngroup
3163 # Check whether --enable-dyngroup or --disable-dyngroup was given.
3164 if test "${enable_dyngroup+set}" = set; then
3165 enableval="$enable_dyngroup"
3168 for ol_val in no yes mod ; do
3169 if test "$enableval" = "$ol_val" ; then
3173 if test "$ol_arg" = "invalid" ; then
3174 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3175 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3176 { (exit 1); exit 1; }; }
3178 ol_enable_dyngroup="$ol_arg"
3181 ol_enable_dyngroup="${ol_dflt_overlays-no}"
3182 fi; # end --enable-dyngroup
3184 # OpenLDAP --enable-dynlist
3185 # Check whether --enable-dynlist or --disable-dynlist was given.
3186 if test "${enable_dynlist+set}" = set; then
3187 enableval="$enable_dynlist"
3190 for ol_val in no yes mod ; do
3191 if test "$enableval" = "$ol_val" ; then
3195 if test "$ol_arg" = "invalid" ; then
3196 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3197 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3198 { (exit 1); exit 1; }; }
3200 ol_enable_dynlist="$ol_arg"
3203 ol_enable_dynlist="${ol_dflt_overlays-no}"
3204 fi; # end --enable-dynlist
3206 # OpenLDAP --enable-glue
3207 # Check whether --enable-glue or --disable-glue was given.
3208 if test "${enable_glue+set}" = set; then
3209 enableval="$enable_glue"
3212 for ol_val in no yes mod ; do
3213 if test "$enableval" = "$ol_val" ; then
3217 if test "$ol_arg" = "invalid" ; then
3218 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-glue" >&5
3219 echo "$as_me: error: bad value $enableval for --enable-glue" >&2;}
3220 { (exit 1); exit 1; }; }
3222 ol_enable_glue="$ol_arg"
3225 ol_enable_glue="${ol_dflt_overlays-yes}"
3226 fi; # end --enable-glue
3228 # OpenLDAP --enable-lastmod
3229 # Check whether --enable-lastmod or --disable-lastmod was given.
3230 if test "${enable_lastmod+set}" = set; then
3231 enableval="$enable_lastmod"
3234 for ol_val in no yes mod ; do
3235 if test "$enableval" = "$ol_val" ; then
3239 if test "$ol_arg" = "invalid" ; then
3240 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lastmod" >&5
3241 echo "$as_me: error: bad value $enableval for --enable-lastmod" >&2;}
3242 { (exit 1); exit 1; }; }
3244 ol_enable_lastmod="$ol_arg"
3247 ol_enable_lastmod="${ol_dflt_overlays-no}"
3248 fi; # end --enable-lastmod
3250 # OpenLDAP --enable-ppolicy
3251 # Check whether --enable-ppolicy or --disable-ppolicy was given.
3252 if test "${enable_ppolicy+set}" = set; then
3253 enableval="$enable_ppolicy"
3256 for ol_val in no yes mod ; do
3257 if test "$enableval" = "$ol_val" ; then
3261 if test "$ol_arg" = "invalid" ; then
3262 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3263 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3264 { (exit 1); exit 1; }; }
3266 ol_enable_ppolicy="$ol_arg"
3269 ol_enable_ppolicy="${ol_dflt_overlays-no}"
3270 fi; # end --enable-ppolicy
3272 # OpenLDAP --enable-proxycache
3273 # Check whether --enable-proxycache or --disable-proxycache was given.
3274 if test "${enable_proxycache+set}" = set; then
3275 enableval="$enable_proxycache"
3278 for ol_val in no yes mod ; do
3279 if test "$enableval" = "$ol_val" ; then
3283 if test "$ol_arg" = "invalid" ; then
3284 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3285 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3286 { (exit 1); exit 1; }; }
3288 ol_enable_proxycache="$ol_arg"
3291 ol_enable_proxycache="${ol_dflt_overlays-no}"
3292 fi; # end --enable-proxycache
3294 # OpenLDAP --enable-refint
3295 # Check whether --enable-refint or --disable-refint was given.
3296 if test "${enable_refint+set}" = set; then
3297 enableval="$enable_refint"
3300 for ol_val in no yes mod ; do
3301 if test "$enableval" = "$ol_val" ; then
3305 if test "$ol_arg" = "invalid" ; then
3306 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3307 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3308 { (exit 1); exit 1; }; }
3310 ol_enable_refint="$ol_arg"
3313 ol_enable_refint="${ol_dflt_overlays-no}"
3314 fi; # end --enable-refint
3316 # OpenLDAP --enable-retcode
3317 # Check whether --enable-retcode or --disable-retcode was given.
3318 if test "${enable_retcode+set}" = set; then
3319 enableval="$enable_retcode"
3322 for ol_val in no yes mod ; do
3323 if test "$enableval" = "$ol_val" ; then
3327 if test "$ol_arg" = "invalid" ; then
3328 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3329 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3330 { (exit 1); exit 1; }; }
3332 ol_enable_retcode="$ol_arg"
3335 ol_enable_retcode="${ol_dflt_overlays-no}"
3336 fi; # end --enable-retcode
3338 # OpenLDAP --enable-rwm
3339 # Check whether --enable-rwm or --disable-rwm was given.
3340 if test "${enable_rwm+set}" = set; then
3341 enableval="$enable_rwm"
3344 for ol_val in no yes mod ; do
3345 if test "$enableval" = "$ol_val" ; then
3349 if test "$ol_arg" = "invalid" ; then
3350 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3351 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3352 { (exit 1); exit 1; }; }
3354 ol_enable_rwm="$ol_arg"
3357 ol_enable_rwm="${ol_dflt_overlays-no}"
3358 fi; # end --enable-rwm
3360 # OpenLDAP --enable-syncprov
3361 # Check whether --enable-syncprov or --disable-syncprov was given.
3362 if test "${enable_syncprov+set}" = set; then
3363 enableval="$enable_syncprov"
3366 for ol_val in no yes mod ; do
3367 if test "$enableval" = "$ol_val" ; then
3371 if test "$ol_arg" = "invalid" ; then
3372 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3373 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3374 { (exit 1); exit 1; }; }
3376 ol_enable_syncprov="$ol_arg"
3379 ol_enable_syncprov="${ol_dflt_overlays-yes}"
3380 fi; # end --enable-syncprov
3382 # OpenLDAP --enable-translucent
3383 # Check whether --enable-translucent or --disable-translucent was given.
3384 if test "${enable_translucent+set}" = set; then
3385 enableval="$enable_translucent"
3388 for ol_val in no yes mod ; do
3389 if test "$enableval" = "$ol_val" ; then
3393 if test "$ol_arg" = "invalid" ; then
3394 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3395 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3396 { (exit 1); exit 1; }; }
3398 ol_enable_translucent="$ol_arg"
3401 ol_enable_translucent="${ol_dflt_overlays-no}"
3402 fi; # end --enable-translucent
3404 # OpenLDAP --enable-unique
3405 # Check whether --enable-unique or --disable-unique was given.
3406 if test "${enable_unique+set}" = set; then
3407 enableval="$enable_unique"
3410 for ol_val in no yes mod ; do
3411 if test "$enableval" = "$ol_val" ; then
3415 if test "$ol_arg" = "invalid" ; then
3416 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3417 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3418 { (exit 1); exit 1; }; }
3420 ol_enable_unique="$ol_arg"
3423 ol_enable_unique="${ol_dflt_overlays-no}"
3424 fi; # end --enable-unique
3429 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
3430 if test "${with_xxslurpdoptions+set}" = set; then
3431 withval="$with_xxslurpdoptions"
3434 # OpenLDAP --enable-slurpd
3435 # Check whether --enable-slurpd or --disable-slurpd was given.
3436 if test "${enable_slurpd+set}" = set; then
3437 enableval="$enable_slurpd"
3440 for ol_val in auto yes no ; do
3441 if test "$enableval" = "$ol_val" ; then
3445 if test "$ol_arg" = "invalid" ; then
3446 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slurpd" >&5
3447 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
3448 { (exit 1); exit 1; }; }
3450 ol_enable_slurpd="$ol_arg"
3453 ol_enable_slurpd="auto"
3454 fi; # end --enable-slurpd
3457 # Check whether --with-xxliboptions or --without-xxliboptions was given.
3458 if test "${with_xxliboptions+set}" = set; then
3459 withval="$with_xxliboptions"
3462 # Check whether --enable-static or --disable-static was given.
3463 if test "${enable_static+set}" = set; then
3464 enableval="$enable_static"
3465 p=${PACKAGE-default}
3467 yes) enable_static=yes ;;
3468 no) enable_static=no ;;
3471 # Look at the argument we got. We use all the common list separators.
3472 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3473 for pkg in $enableval; do
3475 if test "X$pkg" = "X$p"; then
3486 # Check whether --enable-shared or --disable-shared was given.
3487 if test "${enable_shared+set}" = set; then
3488 enableval="$enable_shared"
3489 p=${PACKAGE-default}
3491 yes) enable_shared=yes ;;
3492 no) enable_shared=no ;;
3495 # Look at the argument we got. We use all the common list separators.
3496 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3497 for pkg in $enableval; do
3499 if test "X$pkg" = "X$p"; then
3513 if test $ol_enable_slapd = no ; then
3514 if test $ol_enable_slapi = yes ; then
3515 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3516 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3518 case "$ol_enable_backends" in yes | mod)
3519 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3520 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3522 for i in $Backends; do
3523 eval "ol_tmp=\$ol_enable_$i"
3524 if test $ol_tmp != no ; then
3525 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3526 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3527 eval "ol_enable_$i=no"
3530 if test $ol_enable_modules = yes ; then
3531 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3532 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3534 if test $ol_enable_multimaster = yes ; then
3535 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&5
3536 echo "$as_me: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&2;}
3538 if test $ol_enable_wrappers = yes ; then
3539 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3540 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3542 if test $ol_enable_rlookups = yes ; then
3543 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3544 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3546 if test $ol_enable_aci = yes ; then
3547 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3548 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3550 if test $ol_with_ldbm_api != auto ; then
3551 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --with-ldbm-api argument" >&5
3552 echo "$as_me: WARNING: slapd disabled, ignoring --with-ldbm-api argument" >&2;}
3554 if test $ol_with_ldbm_type != auto ; then
3555 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --with-ldbm-type argument" >&5
3556 echo "$as_me: WARNING: slapd disabled, ignoring --with-ldbm-type argument" >&2;}
3558 if test $ol_enable_slurpd = yes ; then
3559 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3560 echo "$as_me: error: slurpd requires slapd" >&2;}
3561 { (exit 1); exit 1; }; }
3563 if test $ol_enable_rewrite = yes ; then
3564 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3565 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3567 case "$ol_enable_overlays" in yes | mod)
3568 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3569 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3571 for i in $Overlays; do
3572 eval "ol_tmp=\$ol_enable_$i"
3573 if test $ol_tmp != no ; then
3574 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3575 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3576 eval "ol_enable_$i=no"
3580 # force settings to no
3585 ol_enable_modules=no
3586 ol_enable_multimaster=no
3587 ol_enable_rlookups=no
3589 ol_enable_wrappers=no
3592 ol_with_ldbm_type=no
3596 ol_enable_rewrite=no
3598 elif test $ol_enable_ldbm = no ; then
3600 if test $ol_with_ldbm_api != auto ; then
3601 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --with-ldbm-api argument" >&5
3602 echo "$as_me: WARNING: LDBM disabled, ignoring --with-ldbm-api argument" >&2;}
3605 if test $ol_with_ldbm_type != auto ; then
3606 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --with-ldbm-type argument" >&5
3607 echo "$as_me: WARNING: LDBM disabled, ignoring --with-ldbm-type argument" >&2;}
3610 if test $ol_enable_modules != yes -a \
3611 $ol_enable_bdb = no -a \
3612 $ol_enable_dnssrv = no -a \
3613 $ol_enable_hdb = no -a \
3614 $ol_enable_ldap = no -a \
3615 $ol_enable_meta = no -a \
3616 $ol_enable_monitor = no -a \
3617 $ol_enable_null = no -a \
3618 $ol_enable_passwd = no -a \
3619 $ol_enable_perl = no -a \
3620 $ol_enable_relay = no -a \
3621 $ol_enable_shell = no -a \
3622 $ol_enable_sql = no ; then
3624 if test $ol_enable_slapd = yes ; then
3625 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3626 echo "$as_me: error: slapd requires a backend" >&2;}
3627 { (exit 1); exit 1; }; }
3629 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3630 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3636 ol_with_ldbm_type=no
3638 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
3639 ol_with_ldbm_api=berkeley
3643 if test $ol_with_ldbm_api = gdbm -a \
3644 $ol_with_ldbm_type = btree ; then
3645 { { echo "$as_me:$LINENO: error: GDBM only supports LDBM type hash" >&5
3646 echo "$as_me: error: GDBM only supports LDBM type hash" >&2;}
3647 { (exit 1); exit 1; }; }
3649 if test $ol_with_ldbm_api = mdbm -a \
3650 $ol_with_ldbm_type = btree ; then
3651 { { echo "$as_me:$LINENO: error: MDBM only supports LDBM type hash" >&5
3652 echo "$as_me: error: MDBM only supports LDBM type hash" >&2;}
3653 { (exit 1); exit 1; }; }
3655 if test $ol_with_ldbm_api = ndbm -a \
3656 $ol_with_ldbm_type = btree ; then
3657 { { echo "$as_me:$LINENO: error: NDBM only supports LDBM type hash" >&5
3658 echo "$as_me: error: NDBM only supports LDBM type hash" >&2;}
3659 { (exit 1); exit 1; }; }
3662 if test $ol_enable_bdb != no -o $ol_enable_hdb != no ; then
3663 if test $ol_with_ldbm_api = auto ; then
3664 ol_with_ldbm_api=berkeley
3665 elif test $ol_with_ldbm_api != berkeley ; then
3666 { { echo "$as_me:$LINENO: error: LDBM API not compatible with BDB/HDB" >&5
3667 echo "$as_me: error: LDBM API not compatible with BDB/HDB" >&2;}
3668 { (exit 1); exit 1; }; }
3673 if test $ol_enable_meta = yes -a $ol_enable_ldap = no ; then
3674 { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3675 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3676 { (exit 1); exit 1; }; }
3679 if test $ol_enable_slurpd = yes ; then
3680 if test $ol_with_threads = no ; then
3681 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3682 echo "$as_me: error: slurpd requires threads" >&2;}
3683 { (exit 1); exit 1; }; }
3687 if test $ol_enable_lmpasswd = yes ; then
3688 if test $ol_with_tls = no ; then
3689 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3690 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3691 { (exit 1); exit 1; }; }
3695 if test $ol_enable_kbind = yes ; then
3696 if test $ol_with_kerberos = no ; then
3697 { { echo "$as_me:$LINENO: error: options require --with-kerberos" >&5
3698 echo "$as_me: error: options require --with-kerberos" >&2;}
3699 { (exit 1); exit 1; }; }
3700 elif test $ol_with_kerberos = auto ; then
3701 ol_with_kerberos=yes
3704 elif test $ol_enable_kbind = no ; then
3705 if test $ol_with_kerberos = auto ; then
3707 elif test $ol_with_kerberos != no ; then
3708 { echo "$as_me:$LINENO: WARNING: Kerberos detection enabled unnecessarily" >&5
3709 echo "$as_me: WARNING: Kerberos detection enabled unnecessarily" >&2;};
3714 if test $ol_enable_spasswd = yes ; then
3715 if test $ol_with_cyrus_sasl = no ; then
3716 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3717 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3718 { (exit 1); exit 1; }; }
3720 ol_with_cyrus_sasl=yes
3723 echo "$as_me:$LINENO: result: done" >&5
3724 echo "${ECHO_T}done" >&6
3768 BUILD_TRANSLUCENT=no
3771 SLAPD_STATIC_OVERLAYS=
3772 SLAPD_DYNAMIC_OVERLAYS=
3774 SLAPD_MODULES_LDFLAGS=
3775 SLAPD_MODULES_CPPFLAGS=
3777 SLAPD_STATIC_BACKENDS=back-ldif
3778 SLAPD_DYNAMIC_BACKENDS=
3803 cat >>confdefs.h <<\_ACEOF
3804 #define HAVE_MKVERSION 1
3812 *-*-aix*) if test -z "$CC" ; then
3813 case "$ol_with_threads" in
3814 auto | yes | posix) ol_aix_threads=yes ;;
3820 if test $ol_aix_threads = yes ; then
3821 if test -z "${CC}" ; then
3822 for ac_prog in cc_r xlc_r cc
3824 # Extract the first word of "$ac_prog", so it can be a program name with args.
3825 set dummy $ac_prog; ac_word=$2
3826 echo "$as_me:$LINENO: checking for $ac_word" >&5
3827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3828 if test "${ac_cv_prog_CC+set}" = set; then
3829 echo $ECHO_N "(cached) $ECHO_C" >&6
3831 if test -n "$CC"; then
3832 ac_cv_prog_CC="$CC" # Let the user override the test.
3834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3838 test -z "$as_dir" && as_dir=.
3839 for ac_exec_ext in '' $ac_executable_extensions; do
3840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3841 ac_cv_prog_CC="$ac_prog"
3842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3851 if test -n "$CC"; then
3852 echo "$as_me:$LINENO: result: $CC" >&5
3853 echo "${ECHO_T}$CC" >&6
3855 echo "$as_me:$LINENO: result: no" >&5
3856 echo "${ECHO_T}no" >&6
3859 test -n "$CC" && break
3863 if test "$CC" = cc ; then
3864 if test $ol_with_threads != auto ; then
3865 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3866 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3867 { (exit 1); exit 1; }; }
3869 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
3870 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
3876 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
3877 ol_with_threads=posix
3878 ol_cv_pthread_create=yes
3882 if test -z "${CC}"; then
3883 for ac_prog in cc gcc
3885 # Extract the first word of "$ac_prog", so it can be a program name with args.
3886 set dummy $ac_prog; ac_word=$2
3887 echo "$as_me:$LINENO: checking for $ac_word" >&5
3888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3889 if test "${ac_cv_prog_CC+set}" = set; then
3890 echo $ECHO_N "(cached) $ECHO_C" >&6
3892 if test -n "$CC"; then
3893 ac_cv_prog_CC="$CC" # Let the user override the test.
3895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3899 test -z "$as_dir" && as_dir=.
3900 for ac_exec_ext in '' $ac_executable_extensions; do
3901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3902 ac_cv_prog_CC="$ac_prog"
3903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3912 if test -n "$CC"; then
3913 echo "$as_me:$LINENO: result: $CC" >&5
3914 echo "${ECHO_T}$CC" >&6
3916 echo "$as_me:$LINENO: result: no" >&5
3917 echo "${ECHO_T}no" >&6
3920 test -n "$CC" && break
3922 test -n "$CC" || CC="missing"
3925 if test "${CC}" = "missing" ; then
3926 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&5
3927 echo "$as_me: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&2;}
3928 { (exit 1); exit 1; }; }
3932 if test -z "${AR}"; then
3933 for ac_prog in ar gar
3935 # Extract the first word of "$ac_prog", so it can be a program name with args.
3936 set dummy $ac_prog; ac_word=$2
3937 echo "$as_me:$LINENO: checking for $ac_word" >&5
3938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3939 if test "${ac_cv_prog_AR+set}" = set; then
3940 echo $ECHO_N "(cached) $ECHO_C" >&6
3942 if test -n "$AR"; then
3943 ac_cv_prog_AR="$AR" # Let the user override the test.
3945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3949 test -z "$as_dir" && as_dir=.
3950 for ac_exec_ext in '' $ac_executable_extensions; do
3951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3952 ac_cv_prog_AR="$ac_prog"
3953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3962 if test -n "$AR"; then
3963 echo "$as_me:$LINENO: result: $AR" >&5
3964 echo "${ECHO_T}$AR" >&6
3966 echo "$as_me:$LINENO: result: no" >&5
3967 echo "${ECHO_T}no" >&6
3970 test -n "$AR" && break
3972 test -n "$AR" || AR="missing"
3975 if test "${AR}" = "missing" ; then
3976 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&5
3977 echo "$as_me: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&2;}
3978 { (exit 1); exit 1; }; }
3986 # Check whether --enable-fast-install or --disable-fast-install was given.
3987 if test "${enable_fast_install+set}" = set; then
3988 enableval="$enable_fast_install"
3989 p=${PACKAGE-default}
3991 yes) enable_fast_install=yes ;;
3992 no) enable_fast_install=no ;;
3994 enable_fast_install=no
3995 # Look at the argument we got. We use all the common list separators.
3996 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3997 for pkg in $enableval; do
3999 if test "X$pkg" = "X$p"; then
4000 enable_fast_install=yes
4007 enable_fast_install=yes
4010 DEPDIR="${am__leading_dot}deps"
4012 ac_config_commands="$ac_config_commands depfiles"
4015 am_make=${MAKE-make}
4016 cat > confinc << 'END'
4021 # If we don't find an include directive, just comment out the code.
4022 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4023 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4027 # First try GNU make style include.
4028 echo "include confinc" > confmf
4029 # We grep out `Entering directory' and `Leaving directory'
4030 # messages which can occur if `w' ends up in MAKEFLAGS.
4031 # In particular we don't look at `^make:' because GNU make might
4032 # be invoked under some other name (usually "gmake"), in which
4033 # case it prints its new name instead of `make'.
4034 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4039 # Now try BSD make style include.
4040 if test "$am__include" = "#"; then
4041 echo '.include "confinc"' > confmf
4042 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4043 am__include=.include
4050 echo "$as_me:$LINENO: result: $_am_result" >&5
4051 echo "${ECHO_T}$_am_result" >&6
4052 rm -f confinc confmf
4054 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4055 if test "${enable_dependency_tracking+set}" = set; then
4056 enableval="$enable_dependency_tracking"
4059 if test "x$enable_dependency_tracking" != xno; then
4060 am_depcomp="$ac_aux_dir/depcomp"
4065 if test "x$enable_dependency_tracking" != xno; then
4076 ac_cpp='$CPP $CPPFLAGS'
4077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4080 if test -n "$ac_tool_prefix"; then
4081 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4082 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4083 echo "$as_me:$LINENO: checking for $ac_word" >&5
4084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4085 if test "${ac_cv_prog_CC+set}" = set; then
4086 echo $ECHO_N "(cached) $ECHO_C" >&6
4088 if test -n "$CC"; then
4089 ac_cv_prog_CC="$CC" # Let the user override the test.
4091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4095 test -z "$as_dir" && as_dir=.
4096 for ac_exec_ext in '' $ac_executable_extensions; do
4097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4098 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4108 if test -n "$CC"; then
4109 echo "$as_me:$LINENO: result: $CC" >&5
4110 echo "${ECHO_T}$CC" >&6
4112 echo "$as_me:$LINENO: result: no" >&5
4113 echo "${ECHO_T}no" >&6
4117 if test -z "$ac_cv_prog_CC"; then
4119 # Extract the first word of "gcc", so it can be a program name with args.
4120 set dummy gcc; ac_word=$2
4121 echo "$as_me:$LINENO: checking for $ac_word" >&5
4122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4123 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4124 echo $ECHO_N "(cached) $ECHO_C" >&6
4126 if test -n "$ac_ct_CC"; then
4127 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4133 test -z "$as_dir" && as_dir=.
4134 for ac_exec_ext in '' $ac_executable_extensions; do
4135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4136 ac_cv_prog_ac_ct_CC="gcc"
4137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4145 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4146 if test -n "$ac_ct_CC"; then
4147 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4148 echo "${ECHO_T}$ac_ct_CC" >&6
4150 echo "$as_me:$LINENO: result: no" >&5
4151 echo "${ECHO_T}no" >&6
4159 if test -z "$CC"; then
4160 if test -n "$ac_tool_prefix"; then
4161 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4162 set dummy ${ac_tool_prefix}cc; ac_word=$2
4163 echo "$as_me:$LINENO: checking for $ac_word" >&5
4164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4165 if test "${ac_cv_prog_CC+set}" = set; then
4166 echo $ECHO_N "(cached) $ECHO_C" >&6
4168 if test -n "$CC"; then
4169 ac_cv_prog_CC="$CC" # Let the user override the test.
4171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4175 test -z "$as_dir" && as_dir=.
4176 for ac_exec_ext in '' $ac_executable_extensions; do
4177 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4178 ac_cv_prog_CC="${ac_tool_prefix}cc"
4179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4188 if test -n "$CC"; then
4189 echo "$as_me:$LINENO: result: $CC" >&5
4190 echo "${ECHO_T}$CC" >&6
4192 echo "$as_me:$LINENO: result: no" >&5
4193 echo "${ECHO_T}no" >&6
4197 if test -z "$ac_cv_prog_CC"; then
4199 # Extract the first word of "cc", so it can be a program name with args.
4200 set dummy cc; ac_word=$2
4201 echo "$as_me:$LINENO: checking for $ac_word" >&5
4202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4203 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4204 echo $ECHO_N "(cached) $ECHO_C" >&6
4206 if test -n "$ac_ct_CC"; then
4207 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213 test -z "$as_dir" && as_dir=.
4214 for ac_exec_ext in '' $ac_executable_extensions; do
4215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4216 ac_cv_prog_ac_ct_CC="cc"
4217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4225 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4226 if test -n "$ac_ct_CC"; then
4227 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4228 echo "${ECHO_T}$ac_ct_CC" >&6
4230 echo "$as_me:$LINENO: result: no" >&5
4231 echo "${ECHO_T}no" >&6
4240 if test -z "$CC"; then
4241 # Extract the first word of "cc", so it can be a program name with args.
4242 set dummy cc; ac_word=$2
4243 echo "$as_me:$LINENO: checking for $ac_word" >&5
4244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4245 if test "${ac_cv_prog_CC+set}" = set; then
4246 echo $ECHO_N "(cached) $ECHO_C" >&6
4248 if test -n "$CC"; then
4249 ac_cv_prog_CC="$CC" # Let the user override the test.
4252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4256 test -z "$as_dir" && as_dir=.
4257 for ac_exec_ext in '' $ac_executable_extensions; do
4258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4259 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4260 ac_prog_rejected=yes
4264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4270 if test $ac_prog_rejected = yes; then
4271 # We found a bogon in the path, so make sure we never use it.
4272 set dummy $ac_cv_prog_CC
4274 if test $# != 0; then
4275 # We chose a different compiler from the bogus one.
4276 # However, it has the same basename, so the bogon will be chosen
4277 # first if we set CC to just the basename; use the full file name.
4279 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4285 if test -n "$CC"; then
4286 echo "$as_me:$LINENO: result: $CC" >&5
4287 echo "${ECHO_T}$CC" >&6
4289 echo "$as_me:$LINENO: result: no" >&5
4290 echo "${ECHO_T}no" >&6
4294 if test -z "$CC"; then
4295 if test -n "$ac_tool_prefix"; then
4298 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4299 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4300 echo "$as_me:$LINENO: checking for $ac_word" >&5
4301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4302 if test "${ac_cv_prog_CC+set}" = set; then
4303 echo $ECHO_N "(cached) $ECHO_C" >&6
4305 if test -n "$CC"; then
4306 ac_cv_prog_CC="$CC" # Let the user override the test.
4308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4312 test -z "$as_dir" && as_dir=.
4313 for ac_exec_ext in '' $ac_executable_extensions; do
4314 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4315 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4325 if test -n "$CC"; then
4326 echo "$as_me:$LINENO: result: $CC" >&5
4327 echo "${ECHO_T}$CC" >&6
4329 echo "$as_me:$LINENO: result: no" >&5
4330 echo "${ECHO_T}no" >&6
4333 test -n "$CC" && break
4336 if test -z "$CC"; then
4340 # Extract the first word of "$ac_prog", so it can be a program name with args.
4341 set dummy $ac_prog; ac_word=$2
4342 echo "$as_me:$LINENO: checking for $ac_word" >&5
4343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4344 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4345 echo $ECHO_N "(cached) $ECHO_C" >&6
4347 if test -n "$ac_ct_CC"; then
4348 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4354 test -z "$as_dir" && as_dir=.
4355 for ac_exec_ext in '' $ac_executable_extensions; do
4356 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4357 ac_cv_prog_ac_ct_CC="$ac_prog"
4358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4366 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4367 if test -n "$ac_ct_CC"; then
4368 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4369 echo "${ECHO_T}$ac_ct_CC" >&6
4371 echo "$as_me:$LINENO: result: no" >&5
4372 echo "${ECHO_T}no" >&6
4375 test -n "$ac_ct_CC" && break
4384 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4385 See \`config.log' for more details." >&5
4386 echo "$as_me: error: no acceptable C compiler found in \$PATH
4387 See \`config.log' for more details." >&2;}
4388 { (exit 1); exit 1; }; }
4390 # Provide some information about the compiler.
4391 echo "$as_me:$LINENO:" \
4392 "checking for C compiler version" >&5
4393 ac_compiler=`set X $ac_compile; echo $2`
4394 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4395 (eval $ac_compiler --version </dev/null >&5) 2>&5
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); }
4399 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4400 (eval $ac_compiler -v </dev/null >&5) 2>&5
4402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403 (exit $ac_status); }
4404 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4405 (eval $ac_compiler -V </dev/null >&5) 2>&5
4407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408 (exit $ac_status); }
4410 cat >conftest.$ac_ext <<_ACEOF
4413 cat confdefs.h >>conftest.$ac_ext
4414 cat >>conftest.$ac_ext <<_ACEOF
4415 /* end confdefs.h. */
4425 ac_clean_files_save=$ac_clean_files
4426 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4427 # Try to create an executable without -o first, disregard a.out.
4428 # It will help us diagnose broken compilers, and finding out an intuition
4430 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4431 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4432 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4433 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4434 (eval $ac_link_default) 2>&5
4436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437 (exit $ac_status); }; then
4438 # Find the output, starting from the most likely. This scheme is
4439 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4442 # Be careful to initialize this variable, since it used to be cached.
4443 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4445 # b.out is created by i960 compilers.
4446 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4448 test -f "$ac_file" || continue
4450 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4453 # This is the source file.
4456 # We found the default executable, but exeext='' is most
4460 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4461 # FIXME: I believe we export ac_cv_exeext for Libtool,
4462 # but it would be cool to find out if it's true. Does anybody
4463 # maintain Libtool? --akim.
4471 echo "$as_me: failed program was:" >&5
4472 sed 's/^/| /' conftest.$ac_ext >&5
4474 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4475 See \`config.log' for more details." >&5
4476 echo "$as_me: error: C compiler cannot create executables
4477 See \`config.log' for more details." >&2;}
4478 { (exit 77); exit 77; }; }
4481 ac_exeext=$ac_cv_exeext
4482 echo "$as_me:$LINENO: result: $ac_file" >&5
4483 echo "${ECHO_T}$ac_file" >&6
4485 # Check the compiler produces executables we can run. If not, either
4486 # the compiler is broken, or we cross compile.
4487 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4488 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4489 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4490 # If not cross compiling, check that we can run a simple program.
4491 if test "$cross_compiling" != yes; then
4492 if { ac_try='./$ac_file'
4493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); }; }; then
4500 if test "$cross_compiling" = maybe; then
4503 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4504 If you meant to cross compile, use \`--host'.
4505 See \`config.log' for more details." >&5
4506 echo "$as_me: error: cannot run C compiled programs.
4507 If you meant to cross compile, use \`--host'.
4508 See \`config.log' for more details." >&2;}
4509 { (exit 1); exit 1; }; }
4513 echo "$as_me:$LINENO: result: yes" >&5
4514 echo "${ECHO_T}yes" >&6
4516 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4517 ac_clean_files=$ac_clean_files_save
4518 # Check the compiler produces executables we can run. If not, either
4519 # the compiler is broken, or we cross compile.
4520 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4521 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4522 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4523 echo "${ECHO_T}$cross_compiling" >&6
4525 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4526 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4528 (eval $ac_link) 2>&5
4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531 (exit $ac_status); }; then
4532 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4533 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4534 # work properly (i.e., refer to `conftest.exe'), while it won't with
4536 for ac_file in conftest.exe conftest conftest.*; do
4537 test -f "$ac_file" || continue
4539 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4540 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4547 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4548 See \`config.log' for more details." >&5
4549 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4550 See \`config.log' for more details." >&2;}
4551 { (exit 1); exit 1; }; }
4554 rm -f conftest$ac_cv_exeext
4555 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4556 echo "${ECHO_T}$ac_cv_exeext" >&6
4558 rm -f conftest.$ac_ext
4559 EXEEXT=$ac_cv_exeext
4561 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4562 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4563 if test "${ac_cv_objext+set}" = set; then
4564 echo $ECHO_N "(cached) $ECHO_C" >&6
4566 cat >conftest.$ac_ext <<_ACEOF
4569 cat confdefs.h >>conftest.$ac_ext
4570 cat >>conftest.$ac_ext <<_ACEOF
4571 /* end confdefs.h. */
4581 rm -f conftest.o conftest.obj
4582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4583 (eval $ac_compile) 2>&5
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); }; then
4587 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4589 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4590 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4595 echo "$as_me: failed program was:" >&5
4596 sed 's/^/| /' conftest.$ac_ext >&5
4598 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4599 See \`config.log' for more details." >&5
4600 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4601 See \`config.log' for more details." >&2;}
4602 { (exit 1); exit 1; }; }
4605 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4607 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4608 echo "${ECHO_T}$ac_cv_objext" >&6
4609 OBJEXT=$ac_cv_objext
4611 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4612 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4613 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4614 echo $ECHO_N "(cached) $ECHO_C" >&6
4616 cat >conftest.$ac_ext <<_ACEOF
4619 cat confdefs.h >>conftest.$ac_ext
4620 cat >>conftest.$ac_ext <<_ACEOF
4621 /* end confdefs.h. */
4634 rm -f conftest.$ac_objext
4635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4636 (eval $ac_compile) 2>conftest.er1
4638 grep -v '^ *+' conftest.er1 >conftest.err
4640 cat conftest.err >&5
4641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); } &&
4643 { ac_try='test -z "$ac_c_werror_flag"
4644 || test ! -s conftest.err'
4645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); }; } &&
4650 { ac_try='test -s conftest.$ac_objext'
4651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655 (exit $ac_status); }; }; then
4658 echo "$as_me: failed program was:" >&5
4659 sed 's/^/| /' conftest.$ac_ext >&5
4663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4664 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4667 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4668 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4669 GCC=`test $ac_compiler_gnu = yes && echo yes`
4670 ac_test_CFLAGS=${CFLAGS+set}
4671 ac_save_CFLAGS=$CFLAGS
4673 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4674 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4675 if test "${ac_cv_prog_cc_g+set}" = set; then
4676 echo $ECHO_N "(cached) $ECHO_C" >&6
4678 cat >conftest.$ac_ext <<_ACEOF
4681 cat confdefs.h >>conftest.$ac_ext
4682 cat >>conftest.$ac_ext <<_ACEOF
4683 /* 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
4724 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4725 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4726 if test "$ac_test_CFLAGS" = set; then
4727 CFLAGS=$ac_save_CFLAGS
4728 elif test $ac_cv_prog_cc_g = yes; then
4729 if test "$GCC" = yes; then
4735 if test "$GCC" = yes; then
4741 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4742 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4743 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4744 echo $ECHO_N "(cached) $ECHO_C" >&6
4746 ac_cv_prog_cc_stdc=no
4748 cat >conftest.$ac_ext <<_ACEOF
4751 cat confdefs.h >>conftest.$ac_ext
4752 cat >>conftest.$ac_ext <<_ACEOF
4753 /* end confdefs.h. */
4756 #include <sys/types.h>
4757 #include <sys/stat.h>
4758 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4759 struct buf { int x; };
4760 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4761 static char *e (p, i)
4767 static char *f (char * (*g) (char **, int), char **p, ...)
4772 s = g (p, va_arg (v,int));
4777 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4778 function prototypes and stuff, but not '\xHH' hex character constants.
4779 These don't provoke an error unfortunately, instead are silently treated
4780 as 'x'. The following induces an error, until -std1 is added to get
4781 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4782 array size at least. It's necessary to write '\x00'==0 to get something
4783 that's true only with -std1. */
4784 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4786 int test (int i, double x);
4787 struct s1 {int (*f) (int a);};
4788 struct s2 {int (*f) (double a);};
4789 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4795 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4800 # Don't try gcc -ansi; that turns off useful extensions and
4801 # breaks some systems' header files.
4802 # AIX -qlanglvl=ansi
4803 # Ultrix and OSF/1 -std1
4804 # HP-UX 10.20 and later -Ae
4805 # HP-UX older versions -Aa -D_HPUX_SOURCE
4806 # SVR4 -Xc -D__EXTENSIONS__
4807 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4809 CC="$ac_save_CC $ac_arg"
4810 rm -f conftest.$ac_objext
4811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4812 (eval $ac_compile) 2>conftest.er1
4814 grep -v '^ *+' conftest.er1 >conftest.err
4816 cat conftest.err >&5
4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); } &&
4819 { ac_try='test -z "$ac_c_werror_flag"
4820 || test ! -s conftest.err'
4821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825 (exit $ac_status); }; } &&
4826 { ac_try='test -s conftest.$ac_objext'
4827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); }; }; then
4832 ac_cv_prog_cc_stdc=$ac_arg
4835 echo "$as_me: failed program was:" >&5
4836 sed 's/^/| /' conftest.$ac_ext >&5
4839 rm -f conftest.err conftest.$ac_objext
4841 rm -f conftest.$ac_ext conftest.$ac_objext
4846 case "x$ac_cv_prog_cc_stdc" in
4848 echo "$as_me:$LINENO: result: none needed" >&5
4849 echo "${ECHO_T}none needed" >&6 ;;
4851 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4852 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4853 CC="$CC $ac_cv_prog_cc_stdc" ;;
4856 # Some people use a C++ compiler to compile C. Since we use `exit',
4857 # in C++ we need to declare it. In case someone uses the same compiler
4858 # for both compiling C and C++ we need to have the C++ compiler decide
4859 # the declaration of exit, since it's the most demanding environment.
4860 cat >conftest.$ac_ext <<_ACEOF
4865 rm -f conftest.$ac_objext
4866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4867 (eval $ac_compile) 2>conftest.er1
4869 grep -v '^ *+' conftest.er1 >conftest.err
4871 cat conftest.err >&5
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); } &&
4874 { ac_try='test -z "$ac_c_werror_flag"
4875 || test ! -s conftest.err'
4876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); }; } &&
4881 { ac_try='test -s conftest.$ac_objext'
4882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); }; }; then
4887 for ac_declaration in \
4889 'extern "C" void std::exit (int) throw (); using std::exit;' \
4890 'extern "C" void std::exit (int); using std::exit;' \
4891 'extern "C" void exit (int) throw ();' \
4892 'extern "C" void exit (int);' \
4895 cat >conftest.$ac_ext <<_ACEOF
4898 cat confdefs.h >>conftest.$ac_ext
4899 cat >>conftest.$ac_ext <<_ACEOF
4900 /* end confdefs.h. */
4911 rm -f conftest.$ac_objext
4912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4913 (eval $ac_compile) 2>conftest.er1
4915 grep -v '^ *+' conftest.er1 >conftest.err
4917 cat conftest.err >&5
4918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919 (exit $ac_status); } &&
4920 { ac_try='test -z "$ac_c_werror_flag"
4921 || test ! -s conftest.err'
4922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); }; } &&
4927 { ac_try='test -s conftest.$ac_objext'
4928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932 (exit $ac_status); }; }; then
4935 echo "$as_me: failed program was:" >&5
4936 sed 's/^/| /' conftest.$ac_ext >&5
4940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4941 cat >conftest.$ac_ext <<_ACEOF
4944 cat confdefs.h >>conftest.$ac_ext
4945 cat >>conftest.$ac_ext <<_ACEOF
4946 /* end confdefs.h. */
4956 rm -f conftest.$ac_objext
4957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4958 (eval $ac_compile) 2>conftest.er1
4960 grep -v '^ *+' conftest.er1 >conftest.err
4962 cat conftest.err >&5
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); } &&
4965 { ac_try='test -z "$ac_c_werror_flag"
4966 || test ! -s conftest.err'
4967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971 (exit $ac_status); }; } &&
4972 { ac_try='test -s conftest.$ac_objext'
4973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); }; }; then
4980 echo "$as_me: failed program was:" >&5
4981 sed 's/^/| /' conftest.$ac_ext >&5
4984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4987 if test -n "$ac_declaration"; then
4988 echo '#ifdef __cplusplus' >>confdefs.h
4989 echo $ac_declaration >>confdefs.h
4990 echo '#endif' >>confdefs.h
4994 echo "$as_me: failed program was:" >&5
4995 sed 's/^/| /' conftest.$ac_ext >&5
4998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5000 ac_cpp='$CPP $CPPFLAGS'
5001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5005 depcc="$CC" am_compiler_list=
5007 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5008 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5009 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5010 echo $ECHO_N "(cached) $ECHO_C" >&6
5012 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5013 # We make a subdir and do the tests there. Otherwise we can end up
5014 # making bogus files that we don't know about and never remove. For
5015 # instance it was reported that on HP-UX the gcc test will end up
5016 # making a dummy file named `D' -- because `-MD' means `put the output
5019 # Copy depcomp to subdir because otherwise we won't find it if we're
5020 # using a relative directory.
5021 cp "$am_depcomp" conftest.dir
5023 # We will build objects and dependencies in a subdirectory because
5024 # it helps to detect inapplicable dependency modes. For instance
5025 # both Tru64's cc and ICC support -MD to output dependencies as a
5026 # side effect of compilation, but ICC will put the dependencies in
5027 # the current directory while Tru64 will put them in the object
5031 am_cv_CC_dependencies_compiler_type=none
5032 if test "$am_compiler_list" = ""; then
5033 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5035 for depmode in $am_compiler_list; do
5036 # Setup a source with many dependencies, because some compilers
5037 # like to wrap large dependency lists on column 80 (with \), and
5038 # we should not choose a depcomp mode which is confused by this.
5040 # We need to recreate these files for each test, as the compiler may
5041 # overwrite some of them when testing with obscure command lines.
5042 # This happens at least with the AIX C compiler.
5044 for i in 1 2 3 4 5 6; do
5045 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5046 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5047 # Solaris 8's {/usr,}/bin/sh.
5048 touch sub/conftst$i.h
5050 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5054 # after this tag, mechanisms are not by side-effect, so they'll
5055 # only be used when explicitly requested
5056 if test "x$enable_dependency_tracking" = xyes; then
5064 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5065 # mode. It turns out that the SunPro C++ compiler does not properly
5066 # handle `-M -o', and we need to detect this.
5067 if depmode=$depmode \
5068 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5069 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5070 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5071 >/dev/null 2>conftest.err &&
5072 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5073 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5074 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5075 # icc doesn't choke on unknown options, it will just issue warnings
5076 # or remarks (even with -Werror). So we grep stderr for any message
5077 # that says an option was ignored or not supported.
5078 # When given -MP, icc 7.0 and 7.1 complain thusly:
5079 # icc: Command line warning: ignoring option '-M'; no argument required
5080 # The diagnosis changed in icc 8.0:
5081 # icc: Command line remark: option '-MP' not supported
5082 if (grep 'ignoring option' conftest.err ||
5083 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5084 am_cv_CC_dependencies_compiler_type=$depmode
5093 am_cv_CC_dependencies_compiler_type=none
5097 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5098 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5099 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5104 test "x$enable_dependency_tracking" != xno \
5105 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5107 am__fastdepCC_FALSE='#'
5109 am__fastdepCC_TRUE='#'
5110 am__fastdepCC_FALSE=
5114 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5115 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5116 if test "${lt_cv_path_SED+set}" = set; then
5117 echo $ECHO_N "(cached) $ECHO_C" >&6
5119 # Loop through the user's path and test for sed and gsed.
5120 # Then use that list of sed's as ones to test for truncation.
5121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5125 test -z "$as_dir" && as_dir=.
5126 for lt_ac_prog in sed gsed; do
5127 for ac_exec_ext in '' $ac_executable_extensions; do
5128 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5129 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5136 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5137 # along with /bin/sed that truncates output.
5138 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5139 test ! -f $lt_ac_sed && continue
5140 cat /dev/null > conftest.in
5142 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5143 # Check for GNU sed and select it if it is found.
5144 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5145 lt_cv_path_SED=$lt_ac_sed
5149 cat conftest.in conftest.in >conftest.tmp
5150 mv conftest.tmp conftest.in
5151 cp conftest.in conftest.nl
5153 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5154 cmp -s conftest.out conftest.nl || break
5155 # 10000 chars as input seems more than enough
5156 test $lt_ac_count -gt 10 && break
5157 lt_ac_count=`expr $lt_ac_count + 1`
5158 if test $lt_ac_count -gt $lt_ac_max; then
5159 lt_ac_max=$lt_ac_count
5160 lt_cv_path_SED=$lt_ac_sed
5168 echo "$as_me:$LINENO: result: $SED" >&5
5169 echo "${ECHO_T}$SED" >&6
5171 echo "$as_me:$LINENO: checking for egrep" >&5
5172 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5173 if test "${ac_cv_prog_egrep+set}" = set; then
5174 echo $ECHO_N "(cached) $ECHO_C" >&6
5176 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5177 then ac_cv_prog_egrep='grep -E'
5178 else ac_cv_prog_egrep='egrep'
5181 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5182 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5183 EGREP=$ac_cv_prog_egrep
5187 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5188 if test "${with_gnu_ld+set}" = set; then
5189 withval="$with_gnu_ld"
5190 test "$withval" = no || with_gnu_ld=yes
5195 if test "$GCC" = yes; then
5196 # Check if gcc -print-prog-name=ld gives a path.
5197 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5198 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5201 # gcc leaves a trailing carriage return which upsets mingw
5202 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5204 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5207 # Accept absolute paths.
5209 re_direlt='/[^/][^/]*/\.\./'
5210 # Canonicalize the pathname of ld
5211 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5212 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5213 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5215 test -z "$LD" && LD="$ac_prog"
5218 # If it fails, then pretend we aren't using GCC.
5222 # If it is relative, then search for the first ld in PATH.
5226 elif test "$with_gnu_ld" = yes; then
5227 echo "$as_me:$LINENO: checking for GNU ld" >&5
5228 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5230 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5231 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5233 if test "${lt_cv_path_LD+set}" = set; then
5234 echo $ECHO_N "(cached) $ECHO_C" >&6
5236 if test -z "$LD"; then
5237 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5238 for ac_dir in $PATH; do
5240 test -z "$ac_dir" && ac_dir=.
5241 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5242 lt_cv_path_LD="$ac_dir/$ac_prog"
5243 # Check to see if the program is GNU ld. I'd rather use --version,
5244 # but apparently some GNU ld's only accept -v.
5245 # Break only if it was the GNU/non-GNU ld that we prefer.
5246 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5247 *GNU* | *'with BFD'*)
5248 test "$with_gnu_ld" != no && break
5251 test "$with_gnu_ld" != yes && break
5258 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5263 if test -n "$LD"; then
5264 echo "$as_me:$LINENO: result: $LD" >&5
5265 echo "${ECHO_T}$LD" >&6
5267 echo "$as_me:$LINENO: result: no" >&5
5268 echo "${ECHO_T}no" >&6
5270 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5271 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5272 { (exit 1); exit 1; }; }
5273 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5274 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5275 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5276 echo $ECHO_N "(cached) $ECHO_C" >&6
5278 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5279 case `$LD -v 2>&1 </dev/null` in
5280 *GNU* | *'with BFD'*)
5281 lt_cv_prog_gnu_ld=yes
5284 lt_cv_prog_gnu_ld=no
5288 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5289 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5290 with_gnu_ld=$lt_cv_prog_gnu_ld
5293 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5294 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5295 if test "${lt_cv_ld_reload_flag+set}" = set; then
5296 echo $ECHO_N "(cached) $ECHO_C" >&6
5298 lt_cv_ld_reload_flag='-r'
5300 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5301 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5302 reload_flag=$lt_cv_ld_reload_flag
5303 case $reload_flag in
5305 *) reload_flag=" $reload_flag" ;;
5307 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5310 if test "$GCC" = yes; then
5311 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5313 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5318 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5319 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5320 if test "${lt_cv_path_NM+set}" = set; then
5321 echo $ECHO_N "(cached) $ECHO_C" >&6
5323 if test -n "$NM"; then
5324 # Let the user override the test.
5327 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5328 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5330 test -z "$ac_dir" && ac_dir=.
5331 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5332 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5333 # Check to see if the nm accepts a BSD-compat flag.
5334 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5335 # nm: unknown option "B" ignored
5336 # Tru64's nm complains that /dev/null is an invalid object file
5337 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5338 */dev/null* | *'Invalid file or object type'*)
5339 lt_cv_path_NM="$tmp_nm -B"
5343 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5345 lt_cv_path_NM="$tmp_nm -p"
5349 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5350 continue # so that we can try to find one that supports BSD flags
5357 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5360 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5361 echo "${ECHO_T}$lt_cv_path_NM" >&6
5364 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5365 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5367 if test "$LN_S" = "ln -s"; then
5368 echo "$as_me:$LINENO: result: yes" >&5
5369 echo "${ECHO_T}yes" >&6
5371 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5372 echo "${ECHO_T}no, using $LN_S" >&6
5375 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5376 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5377 if test "${lt_cv_deplibs_check_method+set}" = set; then
5378 echo $ECHO_N "(cached) $ECHO_C" >&6
5380 lt_cv_file_magic_cmd='$MAGIC_CMD'
5381 lt_cv_file_magic_test_file=
5382 lt_cv_deplibs_check_method='unknown'
5383 # Need to set the preceding variable on all platforms that support
5384 # interlibrary dependencies.
5385 # 'none' -- dependencies not supported.
5386 # `unknown' -- same as none, but documents that we really don't know.
5387 # 'pass_all' -- all dependencies passed with no checks.
5388 # 'test_compile' -- check by making test program.
5389 # 'file_magic [[regex]]' -- check by looking for files in library path
5390 # which responds to the $file_magic_cmd with a given extended regex.
5391 # If you have `file' or equivalent on your system and you're not sure
5392 # whether `pass_all' will *always* work, you probably want this one.
5396 lt_cv_deplibs_check_method=pass_all
5400 lt_cv_deplibs_check_method=pass_all
5404 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5405 lt_cv_file_magic_cmd='/usr/bin/file -L'
5406 lt_cv_file_magic_test_file=/shlib/libc.so
5410 # func_win32_libid is a shell function defined in ltmain.sh
5411 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5412 lt_cv_file_magic_cmd='func_win32_libid'
5416 # Base MSYS/MinGW do not provide the 'file' command needed by
5417 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5418 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5419 lt_cv_file_magic_cmd='$OBJDUMP -f'
5422 darwin* | rhapsody*)
5423 lt_cv_deplibs_check_method=pass_all
5426 freebsd* | kfreebsd*-gnu | dragonfly*)
5427 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5430 # Not sure whether the presence of OpenBSD here was a mistake.
5431 # Let's accept both of them until this is cleared up.
5432 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5433 lt_cv_file_magic_cmd=/usr/bin/file
5434 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5438 lt_cv_deplibs_check_method=pass_all
5443 lt_cv_deplibs_check_method=pass_all
5446 hpux10.20* | hpux11*)
5447 lt_cv_file_magic_cmd=/usr/bin/file
5450 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5451 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5454 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]'
5455 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5458 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5459 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5464 irix5* | irix6* | nonstopux*)
5466 *-32|*"-32 ") libmagic=32-bit;;
5467 *-n32|*"-n32 ") libmagic=N32;;
5468 *-64|*"-64 ") libmagic=64-bit;;
5469 *) libmagic=never-match;;
5471 lt_cv_deplibs_check_method=pass_all
5474 # This must be Linux ELF.
5476 lt_cv_deplibs_check_method=pass_all
5480 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5481 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5483 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5488 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5489 lt_cv_file_magic_cmd=/usr/bin/file
5490 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5494 lt_cv_deplibs_check_method=unknown
5498 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5499 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5501 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5505 osf3* | osf4* | osf5*)
5506 lt_cv_deplibs_check_method=pass_all
5510 lt_cv_deplibs_check_method=pass_all
5514 lt_cv_deplibs_check_method=pass_all
5517 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5518 case $host_vendor in
5520 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]'
5521 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5524 lt_cv_deplibs_check_method=pass_all
5527 lt_cv_file_magic_cmd='/bin/file'
5528 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5531 lt_cv_file_magic_cmd='/bin/file'
5532 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5533 lt_cv_file_magic_test_file=/lib/libc.so
5536 lt_cv_deplibs_check_method=pass_all
5541 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5542 lt_cv_deplibs_check_method=pass_all
5547 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5548 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5549 file_magic_cmd=$lt_cv_file_magic_cmd
5550 deplibs_check_method=$lt_cv_deplibs_check_method
5551 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5556 # If no C compiler was specified, use CC.
5559 # Allow CC to be a program name with arguments.
5563 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5564 if test "${enable_libtool_lock+set}" = set; then
5565 enableval="$enable_libtool_lock"
5568 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5570 # Some flags need to be propagated to the compiler or linker for good
5574 # Find out which ABI we are using.
5575 echo 'int i;' > conftest.$ac_ext
5576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5577 (eval $ac_compile) 2>&5
5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); }; then
5581 case `/usr/bin/file conftest.$ac_objext` in
5593 # Find out which ABI we are using.
5594 echo '#line 5594 "configure"' > conftest.$ac_ext
5595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5596 (eval $ac_compile) 2>&5
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); }; then
5600 if test "$lt_cv_prog_gnu_ld" = yes; then
5601 case `/usr/bin/file conftest.$ac_objext` in
5603 LD="${LD-ld} -melf32bsmip"
5606 LD="${LD-ld} -melf32bmipn32"
5609 LD="${LD-ld} -melf64bmip"
5613 case `/usr/bin/file conftest.$ac_objext` in
5629 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5630 # Find out which ABI we are using.
5631 echo 'int i;' > conftest.$ac_ext
5632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5633 (eval $ac_compile) 2>&5
5635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636 (exit $ac_status); }; then
5637 case "`/usr/bin/file conftest.o`" in
5641 LD="${LD-ld} -m elf_i386"
5643 ppc64-*linux*|powerpc64-*linux*)
5644 LD="${LD-ld} -m elf32ppclinux"
5647 LD="${LD-ld} -m elf_s390"
5650 LD="${LD-ld} -m elf32_sparc"
5657 LD="${LD-ld} -m elf_x86_64"
5659 ppc*-*linux*|powerpc*-*linux*)
5660 LD="${LD-ld} -m elf64ppc"
5663 LD="${LD-ld} -m elf64_s390"
5666 LD="${LD-ld} -m elf64_sparc"
5676 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5677 SAVE_CFLAGS="$CFLAGS"
5678 CFLAGS="$CFLAGS -belf"
5679 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5680 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5681 if test "${lt_cv_cc_needs_belf+set}" = set; then
5682 echo $ECHO_N "(cached) $ECHO_C" >&6
5685 ac_cpp='$CPP $CPPFLAGS'
5686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5690 cat >conftest.$ac_ext <<_ACEOF
5693 cat confdefs.h >>conftest.$ac_ext
5694 cat >>conftest.$ac_ext <<_ACEOF
5695 /* end confdefs.h. */
5705 rm -f conftest.$ac_objext conftest$ac_exeext
5706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5707 (eval $ac_link) 2>conftest.er1
5709 grep -v '^ *+' conftest.er1 >conftest.err
5711 cat conftest.err >&5
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); } &&
5714 { ac_try='test -z "$ac_c_werror_flag"
5715 || test ! -s conftest.err'
5716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); }; } &&
5721 { ac_try='test -s conftest$ac_exeext'
5722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); }; }; then
5727 lt_cv_cc_needs_belf=yes
5729 echo "$as_me: failed program was:" >&5
5730 sed 's/^/| /' conftest.$ac_ext >&5
5732 lt_cv_cc_needs_belf=no
5734 rm -f conftest.err conftest.$ac_objext \
5735 conftest$ac_exeext conftest.$ac_ext
5737 ac_cpp='$CPP $CPPFLAGS'
5738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5743 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5744 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5745 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5746 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5747 CFLAGS="$SAVE_CFLAGS"
5750 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5751 if test -n "$ac_tool_prefix"; then
5752 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5753 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5754 echo "$as_me:$LINENO: checking for $ac_word" >&5
5755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5756 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5757 echo $ECHO_N "(cached) $ECHO_C" >&6
5759 if test -n "$DLLTOOL"; then
5760 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5766 test -z "$as_dir" && as_dir=.
5767 for ac_exec_ext in '' $ac_executable_extensions; do
5768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5769 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5778 DLLTOOL=$ac_cv_prog_DLLTOOL
5779 if test -n "$DLLTOOL"; then
5780 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5781 echo "${ECHO_T}$DLLTOOL" >&6
5783 echo "$as_me:$LINENO: result: no" >&5
5784 echo "${ECHO_T}no" >&6
5788 if test -z "$ac_cv_prog_DLLTOOL"; then
5789 ac_ct_DLLTOOL=$DLLTOOL
5790 # Extract the first word of "dlltool", so it can be a program name with args.
5791 set dummy dlltool; ac_word=$2
5792 echo "$as_me:$LINENO: checking for $ac_word" >&5
5793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5794 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5795 echo $ECHO_N "(cached) $ECHO_C" >&6
5797 if test -n "$ac_ct_DLLTOOL"; then
5798 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804 test -z "$as_dir" && as_dir=.
5805 for ac_exec_ext in '' $ac_executable_extensions; do
5806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5807 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5814 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5817 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5818 if test -n "$ac_ct_DLLTOOL"; then
5819 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5820 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5822 echo "$as_me:$LINENO: result: no" >&5
5823 echo "${ECHO_T}no" >&6
5826 DLLTOOL=$ac_ct_DLLTOOL
5828 DLLTOOL="$ac_cv_prog_DLLTOOL"
5831 if test -n "$ac_tool_prefix"; then
5832 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5833 set dummy ${ac_tool_prefix}as; ac_word=$2
5834 echo "$as_me:$LINENO: checking for $ac_word" >&5
5835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5836 if test "${ac_cv_prog_AS+set}" = set; then
5837 echo $ECHO_N "(cached) $ECHO_C" >&6
5839 if test -n "$AS"; then
5840 ac_cv_prog_AS="$AS" # Let the user override the test.
5842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5846 test -z "$as_dir" && as_dir=.
5847 for ac_exec_ext in '' $ac_executable_extensions; do
5848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5849 ac_cv_prog_AS="${ac_tool_prefix}as"
5850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5859 if test -n "$AS"; then
5860 echo "$as_me:$LINENO: result: $AS" >&5
5861 echo "${ECHO_T}$AS" >&6
5863 echo "$as_me:$LINENO: result: no" >&5
5864 echo "${ECHO_T}no" >&6
5868 if test -z "$ac_cv_prog_AS"; then
5870 # Extract the first word of "as", so it can be a program name with args.
5871 set dummy as; ac_word=$2
5872 echo "$as_me:$LINENO: checking for $ac_word" >&5
5873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5874 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5875 echo $ECHO_N "(cached) $ECHO_C" >&6
5877 if test -n "$ac_ct_AS"; then
5878 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5884 test -z "$as_dir" && as_dir=.
5885 for ac_exec_ext in '' $ac_executable_extensions; do
5886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5887 ac_cv_prog_ac_ct_AS="as"
5888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5894 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
5897 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5898 if test -n "$ac_ct_AS"; then
5899 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5900 echo "${ECHO_T}$ac_ct_AS" >&6
5902 echo "$as_me:$LINENO: result: no" >&5
5903 echo "${ECHO_T}no" >&6
5911 if test -n "$ac_tool_prefix"; then
5912 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5913 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5914 echo "$as_me:$LINENO: checking for $ac_word" >&5
5915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5916 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5917 echo $ECHO_N "(cached) $ECHO_C" >&6
5919 if test -n "$OBJDUMP"; then
5920 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5926 test -z "$as_dir" && as_dir=.
5927 for ac_exec_ext in '' $ac_executable_extensions; do
5928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5929 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5938 OBJDUMP=$ac_cv_prog_OBJDUMP
5939 if test -n "$OBJDUMP"; then
5940 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5941 echo "${ECHO_T}$OBJDUMP" >&6
5943 echo "$as_me:$LINENO: result: no" >&5
5944 echo "${ECHO_T}no" >&6
5948 if test -z "$ac_cv_prog_OBJDUMP"; then
5949 ac_ct_OBJDUMP=$OBJDUMP
5950 # Extract the first word of "objdump", so it can be a program name with args.
5951 set dummy objdump; ac_word=$2
5952 echo "$as_me:$LINENO: checking for $ac_word" >&5
5953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5954 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5955 echo $ECHO_N "(cached) $ECHO_C" >&6
5957 if test -n "$ac_ct_OBJDUMP"; then
5958 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5964 test -z "$as_dir" && as_dir=.
5965 for ac_exec_ext in '' $ac_executable_extensions; do
5966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5967 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5974 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
5977 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5978 if test -n "$ac_ct_OBJDUMP"; then
5979 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5980 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
5982 echo "$as_me:$LINENO: result: no" >&5
5983 echo "${ECHO_T}no" >&6
5986 OBJDUMP=$ac_ct_OBJDUMP
5988 OBJDUMP="$ac_cv_prog_OBJDUMP"
5995 need_locks="$enable_libtool_lock"
5999 ac_cpp='$CPP $CPPFLAGS'
6000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6003 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6004 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6005 # On Suns, sometimes $CPP names a directory.
6006 if test -n "$CPP" && test -d "$CPP"; then
6009 if test -z "$CPP"; then
6010 if test "${ac_cv_prog_CPP+set}" = set; then
6011 echo $ECHO_N "(cached) $ECHO_C" >&6
6013 # Double quotes because CPP needs to be expanded
6014 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6017 for ac_c_preproc_warn_flag in '' yes
6019 # Use a header file that comes with gcc, so configuring glibc
6020 # with a fresh cross-compiler works.
6021 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6022 # <limits.h> exists even on freestanding compilers.
6023 # On the NeXT, cc -E runs the code through the compiler's parser,
6024 # not just through cpp. "Syntax error" is here to catch this case.
6025 cat >conftest.$ac_ext <<_ACEOF
6028 cat confdefs.h >>conftest.$ac_ext
6029 cat >>conftest.$ac_ext <<_ACEOF
6030 /* end confdefs.h. */
6032 # include <limits.h>
6034 # include <assert.h>
6038 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6039 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6041 grep -v '^ *+' conftest.er1 >conftest.err
6043 cat conftest.err >&5
6044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045 (exit $ac_status); } >/dev/null; then
6046 if test -s conftest.err; then
6047 ac_cpp_err=$ac_c_preproc_warn_flag
6048 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6055 if test -z "$ac_cpp_err"; then
6058 echo "$as_me: failed program was:" >&5
6059 sed 's/^/| /' conftest.$ac_ext >&5
6061 # Broken: fails on valid input.
6064 rm -f conftest.err conftest.$ac_ext
6066 # OK, works on sane cases. Now check whether non-existent headers
6067 # can be detected and how.
6068 cat >conftest.$ac_ext <<_ACEOF
6071 cat confdefs.h >>conftest.$ac_ext
6072 cat >>conftest.$ac_ext <<_ACEOF
6073 /* end confdefs.h. */
6074 #include <ac_nonexistent.h>
6076 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6077 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6079 grep -v '^ *+' conftest.er1 >conftest.err
6081 cat conftest.err >&5
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); } >/dev/null; then
6084 if test -s conftest.err; then
6085 ac_cpp_err=$ac_c_preproc_warn_flag
6086 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6093 if test -z "$ac_cpp_err"; then
6094 # Broken: success on invalid input.
6097 echo "$as_me: failed program was:" >&5
6098 sed 's/^/| /' conftest.$ac_ext >&5
6100 # Passes both tests.
6104 rm -f conftest.err conftest.$ac_ext
6107 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6108 rm -f conftest.err conftest.$ac_ext
6109 if $ac_preproc_ok; then
6121 echo "$as_me:$LINENO: result: $CPP" >&5
6122 echo "${ECHO_T}$CPP" >&6
6124 for ac_c_preproc_warn_flag in '' yes
6126 # Use a header file that comes with gcc, so configuring glibc
6127 # with a fresh cross-compiler works.
6128 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6129 # <limits.h> exists even on freestanding compilers.
6130 # On the NeXT, cc -E runs the code through the compiler's parser,
6131 # not just through cpp. "Syntax error" is here to catch this case.
6132 cat >conftest.$ac_ext <<_ACEOF
6135 cat confdefs.h >>conftest.$ac_ext
6136 cat >>conftest.$ac_ext <<_ACEOF
6137 /* end confdefs.h. */
6139 # include <limits.h>
6141 # include <assert.h>
6145 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6146 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6148 grep -v '^ *+' conftest.er1 >conftest.err
6150 cat conftest.err >&5
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); } >/dev/null; then
6153 if test -s conftest.err; then
6154 ac_cpp_err=$ac_c_preproc_warn_flag
6155 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6162 if test -z "$ac_cpp_err"; then
6165 echo "$as_me: failed program was:" >&5
6166 sed 's/^/| /' conftest.$ac_ext >&5
6168 # Broken: fails on valid input.
6171 rm -f conftest.err conftest.$ac_ext
6173 # OK, works on sane cases. Now check whether non-existent headers
6174 # can be detected and how.
6175 cat >conftest.$ac_ext <<_ACEOF
6178 cat confdefs.h >>conftest.$ac_ext
6179 cat >>conftest.$ac_ext <<_ACEOF
6180 /* end confdefs.h. */
6181 #include <ac_nonexistent.h>
6183 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6184 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6186 grep -v '^ *+' conftest.er1 >conftest.err
6188 cat conftest.err >&5
6189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190 (exit $ac_status); } >/dev/null; then
6191 if test -s conftest.err; then
6192 ac_cpp_err=$ac_c_preproc_warn_flag
6193 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6200 if test -z "$ac_cpp_err"; then
6201 # Broken: success on invalid input.
6204 echo "$as_me: failed program was:" >&5
6205 sed 's/^/| /' conftest.$ac_ext >&5
6207 # Passes both tests.
6211 rm -f conftest.err conftest.$ac_ext
6214 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6215 rm -f conftest.err conftest.$ac_ext
6216 if $ac_preproc_ok; then
6219 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6220 See \`config.log' for more details." >&5
6221 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6222 See \`config.log' for more details." >&2;}
6223 { (exit 1); exit 1; }; }
6227 ac_cpp='$CPP $CPPFLAGS'
6228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6233 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6234 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6235 if test "${ac_cv_header_stdc+set}" = set; then
6236 echo $ECHO_N "(cached) $ECHO_C" >&6
6238 cat >conftest.$ac_ext <<_ACEOF
6241 cat confdefs.h >>conftest.$ac_ext
6242 cat >>conftest.$ac_ext <<_ACEOF
6243 /* end confdefs.h. */
6257 rm -f conftest.$ac_objext
6258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6259 (eval $ac_compile) 2>conftest.er1
6261 grep -v '^ *+' conftest.er1 >conftest.err
6263 cat conftest.err >&5
6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); } &&
6266 { ac_try='test -z "$ac_c_werror_flag"
6267 || test ! -s conftest.err'
6268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272 (exit $ac_status); }; } &&
6273 { ac_try='test -s conftest.$ac_objext'
6274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278 (exit $ac_status); }; }; then
6279 ac_cv_header_stdc=yes
6281 echo "$as_me: failed program was:" >&5
6282 sed 's/^/| /' conftest.$ac_ext >&5
6284 ac_cv_header_stdc=no
6286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6288 if test $ac_cv_header_stdc = yes; then
6289 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6290 cat >conftest.$ac_ext <<_ACEOF
6293 cat confdefs.h >>conftest.$ac_ext
6294 cat >>conftest.$ac_ext <<_ACEOF
6295 /* end confdefs.h. */
6299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6300 $EGREP "memchr" >/dev/null 2>&1; then
6303 ac_cv_header_stdc=no
6309 if test $ac_cv_header_stdc = yes; then
6310 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6311 cat >conftest.$ac_ext <<_ACEOF
6314 cat confdefs.h >>conftest.$ac_ext
6315 cat >>conftest.$ac_ext <<_ACEOF
6316 /* end confdefs.h. */
6320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6321 $EGREP "free" >/dev/null 2>&1; then
6324 ac_cv_header_stdc=no
6330 if test $ac_cv_header_stdc = yes; then
6331 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6332 if test "$cross_compiling" = yes; then
6335 cat >conftest.$ac_ext <<_ACEOF
6338 cat confdefs.h >>conftest.$ac_ext
6339 cat >>conftest.$ac_ext <<_ACEOF
6340 /* end confdefs.h. */
6342 #if ((' ' & 0x0FF) == 0x020)
6343 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6344 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6346 # define ISLOWER(c) \
6347 (('a' <= (c) && (c) <= 'i') \
6348 || ('j' <= (c) && (c) <= 'r') \
6349 || ('s' <= (c) && (c) <= 'z'))
6350 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6353 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6358 for (i = 0; i < 256; i++)
6359 if (XOR (islower (i), ISLOWER (i))
6360 || toupper (i) != TOUPPER (i))
6365 rm -f conftest$ac_exeext
6366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6367 (eval $ac_link) 2>&5
6369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); }; }; then
6378 echo "$as_me: program exited with status $ac_status" >&5
6379 echo "$as_me: failed program was:" >&5
6380 sed 's/^/| /' conftest.$ac_ext >&5
6383 ac_cv_header_stdc=no
6385 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6389 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6390 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6391 if test $ac_cv_header_stdc = yes; then
6393 cat >>confdefs.h <<\_ACEOF
6394 #define STDC_HEADERS 1
6399 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6409 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6410 inttypes.h stdint.h unistd.h
6412 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6413 echo "$as_me:$LINENO: checking for $ac_header" >&5
6414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6416 echo $ECHO_N "(cached) $ECHO_C" >&6
6418 cat >conftest.$ac_ext <<_ACEOF
6421 cat confdefs.h >>conftest.$ac_ext
6422 cat >>conftest.$ac_ext <<_ACEOF
6423 /* end confdefs.h. */
6424 $ac_includes_default
6426 #include <$ac_header>
6428 rm -f conftest.$ac_objext
6429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6430 (eval $ac_compile) 2>conftest.er1
6432 grep -v '^ *+' conftest.er1 >conftest.err
6434 cat conftest.err >&5
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); } &&
6437 { ac_try='test -z "$ac_c_werror_flag"
6438 || test ! -s conftest.err'
6439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); }; } &&
6444 { ac_try='test -s conftest.$ac_objext'
6445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); }; }; then
6450 eval "$as_ac_Header=yes"
6452 echo "$as_me: failed program was:" >&5
6453 sed 's/^/| /' conftest.$ac_ext >&5
6455 eval "$as_ac_Header=no"
6457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6460 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6461 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6462 cat >>confdefs.h <<_ACEOF
6463 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6472 for ac_header in dlfcn.h
6474 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6476 echo "$as_me:$LINENO: checking for $ac_header" >&5
6477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6479 echo $ECHO_N "(cached) $ECHO_C" >&6
6481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6482 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6484 # Is the header compilable?
6485 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6486 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6487 cat >conftest.$ac_ext <<_ACEOF
6490 cat confdefs.h >>conftest.$ac_ext
6491 cat >>conftest.$ac_ext <<_ACEOF
6492 /* end confdefs.h. */
6493 $ac_includes_default
6494 #include <$ac_header>
6496 rm -f conftest.$ac_objext
6497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6498 (eval $ac_compile) 2>conftest.er1
6500 grep -v '^ *+' conftest.er1 >conftest.err
6502 cat conftest.err >&5
6503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504 (exit $ac_status); } &&
6505 { ac_try='test -z "$ac_c_werror_flag"
6506 || test ! -s conftest.err'
6507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); }; } &&
6512 { ac_try='test -s conftest.$ac_objext'
6513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); }; }; then
6518 ac_header_compiler=yes
6520 echo "$as_me: failed program was:" >&5
6521 sed 's/^/| /' conftest.$ac_ext >&5
6523 ac_header_compiler=no
6525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6526 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6527 echo "${ECHO_T}$ac_header_compiler" >&6
6529 # Is the header present?
6530 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6531 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6532 cat >conftest.$ac_ext <<_ACEOF
6535 cat confdefs.h >>conftest.$ac_ext
6536 cat >>conftest.$ac_ext <<_ACEOF
6537 /* end confdefs.h. */
6538 #include <$ac_header>
6540 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6541 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6543 grep -v '^ *+' conftest.er1 >conftest.err
6545 cat conftest.err >&5
6546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6547 (exit $ac_status); } >/dev/null; then
6548 if test -s conftest.err; then
6549 ac_cpp_err=$ac_c_preproc_warn_flag
6550 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6557 if test -z "$ac_cpp_err"; then
6558 ac_header_preproc=yes
6560 echo "$as_me: failed program was:" >&5
6561 sed 's/^/| /' conftest.$ac_ext >&5
6563 ac_header_preproc=no
6565 rm -f conftest.err conftest.$ac_ext
6566 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6567 echo "${ECHO_T}$ac_header_preproc" >&6
6569 # So? What about this header?
6570 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6572 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6573 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6575 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6576 ac_header_preproc=yes
6579 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6580 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6581 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6582 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6583 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6584 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6585 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6586 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6588 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6589 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6590 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6593 ## ------------------------------------------ ##
6594 ## Report this to the AC_PACKAGE_NAME lists. ##
6595 ## ------------------------------------------ ##
6598 sed "s/^/$as_me: WARNING: /" >&2
6601 echo "$as_me:$LINENO: checking for $ac_header" >&5
6602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6604 echo $ECHO_N "(cached) $ECHO_C" >&6
6606 eval "$as_ac_Header=\$ac_header_preproc"
6608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6609 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6612 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6613 cat >>confdefs.h <<_ACEOF
6614 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6622 ac_cpp='$CXXCPP $CPPFLAGS'
6623 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6624 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6625 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6626 if test -n "$ac_tool_prefix"; then
6627 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6629 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6630 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6631 echo "$as_me:$LINENO: checking for $ac_word" >&5
6632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6633 if test "${ac_cv_prog_CXX+set}" = set; then
6634 echo $ECHO_N "(cached) $ECHO_C" >&6
6636 if test -n "$CXX"; then
6637 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6643 test -z "$as_dir" && as_dir=.
6644 for ac_exec_ext in '' $ac_executable_extensions; do
6645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6646 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6656 if test -n "$CXX"; then
6657 echo "$as_me:$LINENO: result: $CXX" >&5
6658 echo "${ECHO_T}$CXX" >&6
6660 echo "$as_me:$LINENO: result: no" >&5
6661 echo "${ECHO_T}no" >&6
6664 test -n "$CXX" && break
6667 if test -z "$CXX"; then
6669 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6671 # Extract the first word of "$ac_prog", so it can be a program name with args.
6672 set dummy $ac_prog; ac_word=$2
6673 echo "$as_me:$LINENO: checking for $ac_word" >&5
6674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6675 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6676 echo $ECHO_N "(cached) $ECHO_C" >&6
6678 if test -n "$ac_ct_CXX"; then
6679 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6685 test -z "$as_dir" && as_dir=.
6686 for ac_exec_ext in '' $ac_executable_extensions; do
6687 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6688 ac_cv_prog_ac_ct_CXX="$ac_prog"
6689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6697 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6698 if test -n "$ac_ct_CXX"; then
6699 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6700 echo "${ECHO_T}$ac_ct_CXX" >&6
6702 echo "$as_me:$LINENO: result: no" >&5
6703 echo "${ECHO_T}no" >&6
6706 test -n "$ac_ct_CXX" && break
6708 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6714 # Provide some information about the compiler.
6715 echo "$as_me:$LINENO:" \
6716 "checking for C++ compiler version" >&5
6717 ac_compiler=`set X $ac_compile; echo $2`
6718 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6719 (eval $ac_compiler --version </dev/null >&5) 2>&5
6721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722 (exit $ac_status); }
6723 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6724 (eval $ac_compiler -v </dev/null >&5) 2>&5
6726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727 (exit $ac_status); }
6728 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6729 (eval $ac_compiler -V </dev/null >&5) 2>&5
6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); }
6734 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6735 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6736 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6737 echo $ECHO_N "(cached) $ECHO_C" >&6
6739 cat >conftest.$ac_ext <<_ACEOF
6742 cat confdefs.h >>conftest.$ac_ext
6743 cat >>conftest.$ac_ext <<_ACEOF
6744 /* end confdefs.h. */
6757 rm -f conftest.$ac_objext
6758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6759 (eval $ac_compile) 2>conftest.er1
6761 grep -v '^ *+' conftest.er1 >conftest.err
6763 cat conftest.err >&5
6764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765 (exit $ac_status); } &&
6766 { ac_try='test -z "$ac_cxx_werror_flag"
6767 || test ! -s conftest.err'
6768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772 (exit $ac_status); }; } &&
6773 { ac_try='test -s conftest.$ac_objext'
6774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778 (exit $ac_status); }; }; then
6781 echo "$as_me: failed program was:" >&5
6782 sed 's/^/| /' conftest.$ac_ext >&5
6786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6787 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6790 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6791 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6792 GXX=`test $ac_compiler_gnu = yes && echo yes`
6793 ac_test_CXXFLAGS=${CXXFLAGS+set}
6794 ac_save_CXXFLAGS=$CXXFLAGS
6796 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6797 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6798 if test "${ac_cv_prog_cxx_g+set}" = set; then
6799 echo $ECHO_N "(cached) $ECHO_C" >&6
6801 cat >conftest.$ac_ext <<_ACEOF
6804 cat confdefs.h >>conftest.$ac_ext
6805 cat >>conftest.$ac_ext <<_ACEOF
6806 /* end confdefs.h. */
6816 rm -f conftest.$ac_objext
6817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6818 (eval $ac_compile) 2>conftest.er1
6820 grep -v '^ *+' conftest.er1 >conftest.err
6822 cat conftest.err >&5
6823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824 (exit $ac_status); } &&
6825 { ac_try='test -z "$ac_cxx_werror_flag"
6826 || test ! -s conftest.err'
6827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); }; } &&
6832 { ac_try='test -s conftest.$ac_objext'
6833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837 (exit $ac_status); }; }; then
6838 ac_cv_prog_cxx_g=yes
6840 echo "$as_me: failed program was:" >&5
6841 sed 's/^/| /' conftest.$ac_ext >&5
6845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6847 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6848 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6849 if test "$ac_test_CXXFLAGS" = set; then
6850 CXXFLAGS=$ac_save_CXXFLAGS
6851 elif test $ac_cv_prog_cxx_g = yes; then
6852 if test "$GXX" = yes; then
6858 if test "$GXX" = yes; then
6864 for ac_declaration in \
6866 'extern "C" void std::exit (int) throw (); using std::exit;' \
6867 'extern "C" void std::exit (int); using std::exit;' \
6868 'extern "C" void exit (int) throw ();' \
6869 'extern "C" void exit (int);' \
6872 cat >conftest.$ac_ext <<_ACEOF
6875 cat confdefs.h >>conftest.$ac_ext
6876 cat >>conftest.$ac_ext <<_ACEOF
6877 /* end confdefs.h. */
6888 rm -f conftest.$ac_objext
6889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6890 (eval $ac_compile) 2>conftest.er1
6892 grep -v '^ *+' conftest.er1 >conftest.err
6894 cat conftest.err >&5
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); } &&
6897 { ac_try='test -z "$ac_cxx_werror_flag"
6898 || test ! -s conftest.err'
6899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903 (exit $ac_status); }; } &&
6904 { ac_try='test -s conftest.$ac_objext'
6905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909 (exit $ac_status); }; }; then
6912 echo "$as_me: failed program was:" >&5
6913 sed 's/^/| /' conftest.$ac_ext >&5
6917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6918 cat >conftest.$ac_ext <<_ACEOF
6921 cat confdefs.h >>conftest.$ac_ext
6922 cat >>conftest.$ac_ext <<_ACEOF
6923 /* end confdefs.h. */
6933 rm -f conftest.$ac_objext
6934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6935 (eval $ac_compile) 2>conftest.er1
6937 grep -v '^ *+' conftest.er1 >conftest.err
6939 cat conftest.err >&5
6940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941 (exit $ac_status); } &&
6942 { ac_try='test -z "$ac_cxx_werror_flag"
6943 || test ! -s conftest.err'
6944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948 (exit $ac_status); }; } &&
6949 { ac_try='test -s conftest.$ac_objext'
6950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954 (exit $ac_status); }; }; then
6957 echo "$as_me: failed program was:" >&5
6958 sed 's/^/| /' conftest.$ac_ext >&5
6961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6964 if test -n "$ac_declaration"; then
6965 echo '#ifdef __cplusplus' >>confdefs.h
6966 echo $ac_declaration >>confdefs.h
6967 echo '#endif' >>confdefs.h
6971 ac_cpp='$CXXCPP $CPPFLAGS'
6972 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6973 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6974 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6976 depcc="$CXX" am_compiler_list=
6978 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6979 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6980 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6981 echo $ECHO_N "(cached) $ECHO_C" >&6
6983 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6984 # We make a subdir and do the tests there. Otherwise we can end up
6985 # making bogus files that we don't know about and never remove. For
6986 # instance it was reported that on HP-UX the gcc test will end up
6987 # making a dummy file named `D' -- because `-MD' means `put the output
6990 # Copy depcomp to subdir because otherwise we won't find it if we're
6991 # using a relative directory.
6992 cp "$am_depcomp" conftest.dir
6994 # We will build objects and dependencies in a subdirectory because
6995 # it helps to detect inapplicable dependency modes. For instance
6996 # both Tru64's cc and ICC support -MD to output dependencies as a
6997 # side effect of compilation, but ICC will put the dependencies in
6998 # the current directory while Tru64 will put them in the object
7002 am_cv_CXX_dependencies_compiler_type=none
7003 if test "$am_compiler_list" = ""; then
7004 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7006 for depmode in $am_compiler_list; do
7007 # Setup a source with many dependencies, because some compilers
7008 # like to wrap large dependency lists on column 80 (with \), and
7009 # we should not choose a depcomp mode which is confused by this.
7011 # We need to recreate these files for each test, as the compiler may
7012 # overwrite some of them when testing with obscure command lines.
7013 # This happens at least with the AIX C compiler.
7015 for i in 1 2 3 4 5 6; do
7016 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7017 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7018 # Solaris 8's {/usr,}/bin/sh.
7019 touch sub/conftst$i.h
7021 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7025 # after this tag, mechanisms are not by side-effect, so they'll
7026 # only be used when explicitly requested
7027 if test "x$enable_dependency_tracking" = xyes; then
7035 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7036 # mode. It turns out that the SunPro C++ compiler does not properly
7037 # handle `-M -o', and we need to detect this.
7038 if depmode=$depmode \
7039 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7040 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7041 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7042 >/dev/null 2>conftest.err &&
7043 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7044 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7045 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7046 # icc doesn't choke on unknown options, it will just issue warnings
7047 # or remarks (even with -Werror). So we grep stderr for any message
7048 # that says an option was ignored or not supported.
7049 # When given -MP, icc 7.0 and 7.1 complain thusly:
7050 # icc: Command line warning: ignoring option '-M'; no argument required
7051 # The diagnosis changed in icc 8.0:
7052 # icc: Command line remark: option '-MP' not supported
7053 if (grep 'ignoring option' conftest.err ||
7054 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7055 am_cv_CXX_dependencies_compiler_type=$depmode
7064 am_cv_CXX_dependencies_compiler_type=none
7068 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7069 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7070 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7075 test "x$enable_dependency_tracking" != xno \
7076 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7077 am__fastdepCXX_TRUE=
7078 am__fastdepCXX_FALSE='#'
7080 am__fastdepCXX_TRUE='#'
7081 am__fastdepCXX_FALSE=
7087 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7088 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7089 (test "X$CXX" != "Xg++"))) ; then
7091 ac_cpp='$CXXCPP $CPPFLAGS'
7092 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7093 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7094 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7095 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7096 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7097 if test -z "$CXXCPP"; then
7098 if test "${ac_cv_prog_CXXCPP+set}" = set; then
7099 echo $ECHO_N "(cached) $ECHO_C" >&6
7101 # Double quotes because CXXCPP needs to be expanded
7102 for CXXCPP in "$CXX -E" "/lib/cpp"
7105 for ac_cxx_preproc_warn_flag in '' yes
7107 # Use a header file that comes with gcc, so configuring glibc
7108 # with a fresh cross-compiler works.
7109 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7110 # <limits.h> exists even on freestanding compilers.
7111 # On the NeXT, cc -E runs the code through the compiler's parser,
7112 # not just through cpp. "Syntax error" is here to catch this case.
7113 cat >conftest.$ac_ext <<_ACEOF
7116 cat confdefs.h >>conftest.$ac_ext
7117 cat >>conftest.$ac_ext <<_ACEOF
7118 /* end confdefs.h. */
7120 # include <limits.h>
7122 # include <assert.h>
7126 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7127 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7129 grep -v '^ *+' conftest.er1 >conftest.err
7131 cat conftest.err >&5
7132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 (exit $ac_status); } >/dev/null; then
7134 if test -s conftest.err; then
7135 ac_cpp_err=$ac_cxx_preproc_warn_flag
7136 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7143 if test -z "$ac_cpp_err"; then
7146 echo "$as_me: failed program was:" >&5
7147 sed 's/^/| /' conftest.$ac_ext >&5
7149 # Broken: fails on valid input.
7152 rm -f conftest.err conftest.$ac_ext
7154 # OK, works on sane cases. Now check whether non-existent headers
7155 # can be detected and how.
7156 cat >conftest.$ac_ext <<_ACEOF
7159 cat confdefs.h >>conftest.$ac_ext
7160 cat >>conftest.$ac_ext <<_ACEOF
7161 /* end confdefs.h. */
7162 #include <ac_nonexistent.h>
7164 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7165 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7167 grep -v '^ *+' conftest.er1 >conftest.err
7169 cat conftest.err >&5
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); } >/dev/null; then
7172 if test -s conftest.err; then
7173 ac_cpp_err=$ac_cxx_preproc_warn_flag
7174 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7181 if test -z "$ac_cpp_err"; then
7182 # Broken: success on invalid input.
7185 echo "$as_me: failed program was:" >&5
7186 sed 's/^/| /' conftest.$ac_ext >&5
7188 # Passes both tests.
7192 rm -f conftest.err conftest.$ac_ext
7195 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7196 rm -f conftest.err conftest.$ac_ext
7197 if $ac_preproc_ok; then
7202 ac_cv_prog_CXXCPP=$CXXCPP
7205 CXXCPP=$ac_cv_prog_CXXCPP
7207 ac_cv_prog_CXXCPP=$CXXCPP
7209 echo "$as_me:$LINENO: result: $CXXCPP" >&5
7210 echo "${ECHO_T}$CXXCPP" >&6
7212 for ac_cxx_preproc_warn_flag in '' yes
7214 # Use a header file that comes with gcc, so configuring glibc
7215 # with a fresh cross-compiler works.
7216 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7217 # <limits.h> exists even on freestanding compilers.
7218 # On the NeXT, cc -E runs the code through the compiler's parser,
7219 # not just through cpp. "Syntax error" is here to catch this case.
7220 cat >conftest.$ac_ext <<_ACEOF
7223 cat confdefs.h >>conftest.$ac_ext
7224 cat >>conftest.$ac_ext <<_ACEOF
7225 /* end confdefs.h. */
7227 # include <limits.h>
7229 # include <assert.h>
7233 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7234 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7236 grep -v '^ *+' conftest.er1 >conftest.err
7238 cat conftest.err >&5
7239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240 (exit $ac_status); } >/dev/null; then
7241 if test -s conftest.err; then
7242 ac_cpp_err=$ac_cxx_preproc_warn_flag
7243 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7250 if test -z "$ac_cpp_err"; then
7253 echo "$as_me: failed program was:" >&5
7254 sed 's/^/| /' conftest.$ac_ext >&5
7256 # Broken: fails on valid input.
7259 rm -f conftest.err conftest.$ac_ext
7261 # OK, works on sane cases. Now check whether non-existent headers
7262 # can be detected and how.
7263 cat >conftest.$ac_ext <<_ACEOF
7266 cat confdefs.h >>conftest.$ac_ext
7267 cat >>conftest.$ac_ext <<_ACEOF
7268 /* end confdefs.h. */
7269 #include <ac_nonexistent.h>
7271 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7272 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7274 grep -v '^ *+' conftest.er1 >conftest.err
7276 cat conftest.err >&5
7277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278 (exit $ac_status); } >/dev/null; then
7279 if test -s conftest.err; then
7280 ac_cpp_err=$ac_cxx_preproc_warn_flag
7281 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7288 if test -z "$ac_cpp_err"; then
7289 # Broken: success on invalid input.
7292 echo "$as_me: failed program was:" >&5
7293 sed 's/^/| /' conftest.$ac_ext >&5
7295 # Passes both tests.
7299 rm -f conftest.err conftest.$ac_ext
7302 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7303 rm -f conftest.err conftest.$ac_ext
7304 if $ac_preproc_ok; then
7307 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7308 See \`config.log' for more details." >&5
7309 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7310 See \`config.log' for more details." >&2;}
7311 { (exit 1); exit 1; }; }
7315 ac_cpp='$CXXCPP $CPPFLAGS'
7316 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7317 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7318 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7324 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7325 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7326 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7327 if test -n "$ac_tool_prefix"; then
7328 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7330 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7331 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7332 echo "$as_me:$LINENO: checking for $ac_word" >&5
7333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7334 if test "${ac_cv_prog_F77+set}" = set; then
7335 echo $ECHO_N "(cached) $ECHO_C" >&6
7337 if test -n "$F77"; then
7338 ac_cv_prog_F77="$F77" # Let the user override the test.
7340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7344 test -z "$as_dir" && as_dir=.
7345 for ac_exec_ext in '' $ac_executable_extensions; do
7346 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7347 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7357 if test -n "$F77"; then
7358 echo "$as_me:$LINENO: result: $F77" >&5
7359 echo "${ECHO_T}$F77" >&6
7361 echo "$as_me:$LINENO: result: no" >&5
7362 echo "${ECHO_T}no" >&6
7365 test -n "$F77" && break
7368 if test -z "$F77"; then
7370 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7372 # Extract the first word of "$ac_prog", so it can be a program name with args.
7373 set dummy $ac_prog; ac_word=$2
7374 echo "$as_me:$LINENO: checking for $ac_word" >&5
7375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7376 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7377 echo $ECHO_N "(cached) $ECHO_C" >&6
7379 if test -n "$ac_ct_F77"; then
7380 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7386 test -z "$as_dir" && as_dir=.
7387 for ac_exec_ext in '' $ac_executable_extensions; do
7388 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7389 ac_cv_prog_ac_ct_F77="$ac_prog"
7390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7398 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7399 if test -n "$ac_ct_F77"; then
7400 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7401 echo "${ECHO_T}$ac_ct_F77" >&6
7403 echo "$as_me:$LINENO: result: no" >&5
7404 echo "${ECHO_T}no" >&6
7407 test -n "$ac_ct_F77" && break
7414 # Provide some information about the compiler.
7415 echo "$as_me:7415:" \
7416 "checking for Fortran 77 compiler version" >&5
7417 ac_compiler=`set X $ac_compile; echo $2`
7418 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7419 (eval $ac_compiler --version </dev/null >&5) 2>&5
7421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422 (exit $ac_status); }
7423 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7424 (eval $ac_compiler -v </dev/null >&5) 2>&5
7426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427 (exit $ac_status); }
7428 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7429 (eval $ac_compiler -V </dev/null >&5) 2>&5
7431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7432 (exit $ac_status); }
7435 # If we don't use `.F' as extension, the preprocessor is not run on the
7436 # input file. (Note that this only needs to work for GNU compilers.)
7439 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7440 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7441 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7442 echo $ECHO_N "(cached) $ECHO_C" >&6
7444 cat >conftest.$ac_ext <<_ACEOF
7452 rm -f conftest.$ac_objext
7453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7454 (eval $ac_compile) 2>conftest.er1
7456 grep -v '^ *+' conftest.er1 >conftest.err
7458 cat conftest.err >&5
7459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460 (exit $ac_status); } &&
7461 { ac_try='test -z "$ac_f77_werror_flag"
7462 || test ! -s conftest.err'
7463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467 (exit $ac_status); }; } &&
7468 { ac_try='test -s conftest.$ac_objext'
7469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473 (exit $ac_status); }; }; then
7476 echo "$as_me: failed program was:" >&5
7477 sed 's/^/| /' conftest.$ac_ext >&5
7481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7482 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7485 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7486 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7488 ac_test_FFLAGS=${FFLAGS+set}
7489 ac_save_FFLAGS=$FFLAGS
7491 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7492 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7493 if test "${ac_cv_prog_f77_g+set}" = set; then
7494 echo $ECHO_N "(cached) $ECHO_C" >&6
7497 cat >conftest.$ac_ext <<_ACEOF
7502 rm -f conftest.$ac_objext
7503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7504 (eval $ac_compile) 2>conftest.er1
7506 grep -v '^ *+' conftest.er1 >conftest.err
7508 cat conftest.err >&5
7509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7510 (exit $ac_status); } &&
7511 { ac_try='test -z "$ac_f77_werror_flag"
7512 || test ! -s conftest.err'
7513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517 (exit $ac_status); }; } &&
7518 { ac_try='test -s conftest.$ac_objext'
7519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7523 (exit $ac_status); }; }; then
7524 ac_cv_prog_f77_g=yes
7526 echo "$as_me: failed program was:" >&5
7527 sed 's/^/| /' conftest.$ac_ext >&5
7531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7534 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7535 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7536 if test "$ac_test_FFLAGS" = set; then
7537 FFLAGS=$ac_save_FFLAGS
7538 elif test $ac_cv_prog_f77_g = yes; then
7539 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7545 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7552 G77=`test $ac_compiler_gnu = yes && echo yes`
7554 ac_cpp='$CPP $CPPFLAGS'
7555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7561 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7563 # find the maximum length of command line arguments
7564 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7565 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7566 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7567 echo $ECHO_N "(cached) $ECHO_C" >&6
7574 # On DJGPP, this test can blow up pretty badly due to problems in libc
7575 # (any single argument exceeding 2000 bytes causes a buffer overrun
7576 # during glob expansion). Even if it were fixed, the result of this
7577 # check would be larger than it should be.
7578 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7582 # Under GNU Hurd, this test is not required because there is
7583 # no limit to the length of command line arguments.
7584 # Libtool will interpret -1 as no limit whatsoever
7585 lt_cv_sys_max_cmd_len=-1;
7589 # On Win9x/ME, this test blows up -- it succeeds, but takes
7590 # about 5 minutes as the teststring grows exponentially.
7591 # Worse, since 9x/ME are not pre-emptively multitasking,
7592 # you end up with a "frozen" computer, even though with patience
7593 # the test eventually succeeds (with a max line length of 256k).
7594 # Instead, let's just punt: use the minimum linelength reported by
7595 # all of the supported platforms: 8192 (on NT/2K/XP).
7596 lt_cv_sys_max_cmd_len=8192;
7600 # On AmigaOS with pdksh, this test takes hours, literally.
7601 # So we just punt and use a minimum line length of 8192.
7602 lt_cv_sys_max_cmd_len=8192;
7605 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7606 # This has been around since 386BSD, at least. Likely further.
7607 if test -x /sbin/sysctl; then
7608 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7609 elif test -x /usr/sbin/sysctl; then
7610 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7612 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
7614 # And add a safety zone
7615 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7616 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7619 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7620 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7621 # nice to cause kernel panics so lets avoid the loop below.
7622 # First set a reasonable default.
7623 lt_cv_sys_max_cmd_len=16384
7625 if test -x /sbin/sysconfig; then
7626 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7627 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7632 # If test is not a shell built-in, we'll probably end up computing a
7633 # maximum length that is only half of the actual maximum length, but
7635 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7636 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7637 = "XX$teststring") >/dev/null 2>&1 &&
7638 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7639 lt_cv_sys_max_cmd_len=$new_result &&
7640 test $i != 17 # 1/2 MB should be enough
7643 teststring=$teststring$teststring
7646 # Add a significant safety factor because C++ compilers can tack on massive
7647 # amounts of additional arguments before passing them to the linker.
7648 # It appears as though 1/2 is a usable value.
7649 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7655 if test -n $lt_cv_sys_max_cmd_len ; then
7656 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7657 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7659 echo "$as_me:$LINENO: result: none" >&5
7660 echo "${ECHO_T}none" >&6
7666 # Check for command to grab the raw symbol name followed by C symbol from nm.
7667 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7668 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7669 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7670 echo $ECHO_N "(cached) $ECHO_C" >&6
7673 # These are sane defaults that work on at least a few old systems.
7674 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7676 # Character class describing NM global symbol codes.
7677 symcode='[BCDEGRST]'
7679 # Regexp to match symbols that can be accessed directly from C.
7680 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7682 # Transform an extracted symbol line into a proper C declaration
7683 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7685 # Transform an extracted symbol line into symbol name and symbol address
7686 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'"
7688 # Define system-specific variables.
7693 cygwin* | mingw* | pw32*)
7694 symcode='[ABCDGISTW]'
7696 hpux*) # Its linker distinguishes data from code symbols
7697 if test "$host_cpu" = ia64; then
7698 symcode='[ABCDEGRST]'
7700 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7701 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'"
7704 if test "$host_cpu" = ia64; then
7705 symcode='[ABCDGIRSTW]'
7706 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7707 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'"
7711 symcode='[BCDEGRST]'
7714 symcode='[BCDEGQRST]'
7724 # Handle CRLF in mingw tool chain
7728 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7732 # If we're using GNU nm, then use its standard symbol codes.
7733 case `$NM -V 2>&1` in
7734 *GNU* | *'with BFD'*)
7735 symcode='[ABCDGIRSTW]' ;;
7738 # Try without a prefix undercore, then with it.
7739 for ac_symprfx in "" "_"; do
7741 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7742 symxfrm="\\1 $ac_symprfx\\2 \\2"
7744 # Write the raw and C identifiers.
7745 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7747 # Check to see that the pipe works correctly.
7751 cat > conftest.$ac_ext <<EOF
7756 void nm_test_func(){}
7760 int main(){nm_test_var='a';nm_test_func();return(0);}
7763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7764 (eval $ac_compile) 2>&5
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); }; then
7768 # Now try to grab the symbols.
7770 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7771 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774 (exit $ac_status); } && test -s "$nlist"; then
7775 # Try sorting and uniquifying the output.
7776 if sort "$nlist" | uniq > "$nlist"T; then
7777 mv -f "$nlist"T "$nlist"
7782 # Make sure that we snagged all the symbols we need.
7783 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7784 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7785 cat <<EOF > conftest.$ac_ext
7791 # Now generate the symbol file.
7792 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7794 cat <<EOF >> conftest.$ac_ext
7795 #if defined (__STDC__) && __STDC__
7796 # define lt_ptr_t void *
7798 # define lt_ptr_t char *
7802 /* The mapping between symbol names and symbols. */
7807 lt_preloaded_symbols[] =
7810 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7811 cat <<\EOF >> conftest.$ac_ext
7819 # Now try linking the two files.
7820 mv conftest.$ac_objext conftstm.$ac_objext
7821 lt_save_LIBS="$LIBS"
7822 lt_save_CFLAGS="$CFLAGS"
7823 LIBS="conftstm.$ac_objext"
7824 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7826 (eval $ac_link) 2>&5
7828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7832 LIBS="$lt_save_LIBS"
7833 CFLAGS="$lt_save_CFLAGS"
7835 echo "cannot find nm_test_func in $nlist" >&5
7838 echo "cannot find nm_test_var in $nlist" >&5
7841 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7844 echo "$progname: failed program was:" >&5
7845 cat conftest.$ac_ext >&5
7847 rm -f conftest* conftst*
7849 # Do not use the global_symbol_pipe unless it works.
7850 if test "$pipe_works" = yes; then
7853 lt_cv_sys_global_symbol_pipe=
7859 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7860 lt_cv_sys_global_symbol_to_cdecl=
7862 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7863 echo "$as_me:$LINENO: result: failed" >&5
7864 echo "${ECHO_T}failed" >&6
7866 echo "$as_me:$LINENO: result: ok" >&5
7867 echo "${ECHO_T}ok" >&6
7870 echo "$as_me:$LINENO: checking for objdir" >&5
7871 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7872 if test "${lt_cv_objdir+set}" = set; then
7873 echo $ECHO_N "(cached) $ECHO_C" >&6
7875 rm -f .libs 2>/dev/null
7876 mkdir .libs 2>/dev/null
7877 if test -d .libs; then
7880 # MS-DOS does not allow filenames that begin with a dot.
7883 rmdir .libs 2>/dev/null
7885 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7886 echo "${ECHO_T}$lt_cv_objdir" >&6
7887 objdir=$lt_cv_objdir
7895 # AIX sometimes has problems with the GCC collect2 program. For some
7896 # reason, if we set the COLLECT_NAMES environment variable, the problems
7897 # vanish in a puff of smoke.
7898 if test "X${COLLECT_NAMES+set}" != Xset; then
7900 export COLLECT_NAMES
7905 # Sed substitution that helps us do robust quoting. It backslashifies
7906 # metacharacters that are still active within double-quoted strings.
7907 Xsed='sed -e 1s/^X//'
7908 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7910 # Same as above, but do not quote variable references.
7911 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7913 # Sed substitution to delay expansion of an escaped shell variable in a
7914 # double_quote_subst'ed string.
7915 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7917 # Sed substitution to avoid accidental globbing in evaled expressions
7918 no_glob_subst='s/\*/\\\*/g'
7924 default_ofile=libtool
7925 can_build_shared=yes
7927 # All known linkers require a `.a' archive for static linking (except M$VC,
7928 # which needs '.lib').
7930 ltmain="$ac_aux_dir/ltmain.sh"
7931 ofile="$default_ofile"
7932 with_gnu_ld="$lt_cv_prog_gnu_ld"
7934 if test -n "$ac_tool_prefix"; then
7935 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7936 set dummy ${ac_tool_prefix}ar; ac_word=$2
7937 echo "$as_me:$LINENO: checking for $ac_word" >&5
7938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7939 if test "${ac_cv_prog_AR+set}" = set; then
7940 echo $ECHO_N "(cached) $ECHO_C" >&6
7942 if test -n "$AR"; then
7943 ac_cv_prog_AR="$AR" # Let the user override the test.
7945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7949 test -z "$as_dir" && as_dir=.
7950 for ac_exec_ext in '' $ac_executable_extensions; do
7951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7952 ac_cv_prog_AR="${ac_tool_prefix}ar"
7953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7962 if test -n "$AR"; then
7963 echo "$as_me:$LINENO: result: $AR" >&5
7964 echo "${ECHO_T}$AR" >&6
7966 echo "$as_me:$LINENO: result: no" >&5
7967 echo "${ECHO_T}no" >&6
7971 if test -z "$ac_cv_prog_AR"; then
7973 # Extract the first word of "ar", so it can be a program name with args.
7974 set dummy ar; ac_word=$2
7975 echo "$as_me:$LINENO: checking for $ac_word" >&5
7976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7977 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7978 echo $ECHO_N "(cached) $ECHO_C" >&6
7980 if test -n "$ac_ct_AR"; then
7981 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7987 test -z "$as_dir" && as_dir=.
7988 for ac_exec_ext in '' $ac_executable_extensions; do
7989 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7990 ac_cv_prog_ac_ct_AR="ar"
7991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7997 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8000 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8001 if test -n "$ac_ct_AR"; then
8002 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8003 echo "${ECHO_T}$ac_ct_AR" >&6
8005 echo "$as_me:$LINENO: result: no" >&5
8006 echo "${ECHO_T}no" >&6
8014 if test -n "$ac_tool_prefix"; then
8015 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8016 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8017 echo "$as_me:$LINENO: checking for $ac_word" >&5
8018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8019 if test "${ac_cv_prog_RANLIB+set}" = set; then
8020 echo $ECHO_N "(cached) $ECHO_C" >&6
8022 if test -n "$RANLIB"; then
8023 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8029 test -z "$as_dir" && as_dir=.
8030 for ac_exec_ext in '' $ac_executable_extensions; do
8031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8032 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8041 RANLIB=$ac_cv_prog_RANLIB
8042 if test -n "$RANLIB"; then
8043 echo "$as_me:$LINENO: result: $RANLIB" >&5
8044 echo "${ECHO_T}$RANLIB" >&6
8046 echo "$as_me:$LINENO: result: no" >&5
8047 echo "${ECHO_T}no" >&6
8051 if test -z "$ac_cv_prog_RANLIB"; then
8052 ac_ct_RANLIB=$RANLIB
8053 # Extract the first word of "ranlib", so it can be a program name with args.
8054 set dummy ranlib; ac_word=$2
8055 echo "$as_me:$LINENO: checking for $ac_word" >&5
8056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8057 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8058 echo $ECHO_N "(cached) $ECHO_C" >&6
8060 if test -n "$ac_ct_RANLIB"; then
8061 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8067 test -z "$as_dir" && as_dir=.
8068 for ac_exec_ext in '' $ac_executable_extensions; do
8069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8070 ac_cv_prog_ac_ct_RANLIB="ranlib"
8071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8077 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8080 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8081 if test -n "$ac_ct_RANLIB"; then
8082 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8083 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8085 echo "$as_me:$LINENO: result: no" >&5
8086 echo "${ECHO_T}no" >&6
8089 RANLIB=$ac_ct_RANLIB
8091 RANLIB="$ac_cv_prog_RANLIB"
8094 if test -n "$ac_tool_prefix"; then
8095 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8096 set dummy ${ac_tool_prefix}strip; ac_word=$2
8097 echo "$as_me:$LINENO: checking for $ac_word" >&5
8098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8099 if test "${ac_cv_prog_STRIP+set}" = set; then
8100 echo $ECHO_N "(cached) $ECHO_C" >&6
8102 if test -n "$STRIP"; then
8103 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8109 test -z "$as_dir" && as_dir=.
8110 for ac_exec_ext in '' $ac_executable_extensions; do
8111 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8112 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8121 STRIP=$ac_cv_prog_STRIP
8122 if test -n "$STRIP"; then
8123 echo "$as_me:$LINENO: result: $STRIP" >&5
8124 echo "${ECHO_T}$STRIP" >&6
8126 echo "$as_me:$LINENO: result: no" >&5
8127 echo "${ECHO_T}no" >&6
8131 if test -z "$ac_cv_prog_STRIP"; then
8133 # Extract the first word of "strip", so it can be a program name with args.
8134 set dummy strip; ac_word=$2
8135 echo "$as_me:$LINENO: checking for $ac_word" >&5
8136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8137 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8138 echo $ECHO_N "(cached) $ECHO_C" >&6
8140 if test -n "$ac_ct_STRIP"; then
8141 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8147 test -z "$as_dir" && as_dir=.
8148 for ac_exec_ext in '' $ac_executable_extensions; do
8149 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8150 ac_cv_prog_ac_ct_STRIP="strip"
8151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8157 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8160 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8161 if test -n "$ac_ct_STRIP"; then
8162 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8163 echo "${ECHO_T}$ac_ct_STRIP" >&6
8165 echo "$as_me:$LINENO: result: no" >&5
8166 echo "${ECHO_T}no" >&6
8171 STRIP="$ac_cv_prog_STRIP"
8176 old_CFLAGS="$CFLAGS"
8178 # Set sane defaults for various variables
8179 test -z "$AR" && AR=ar
8180 test -z "$AR_FLAGS" && AR_FLAGS=cru
8181 test -z "$AS" && AS=as
8182 test -z "$CC" && CC=cc
8183 test -z "$LTCC" && LTCC=$CC
8184 test -z "$DLLTOOL" && DLLTOOL=dlltool
8185 test -z "$LD" && LD=ld
8186 test -z "$LN_S" && LN_S="ln -s"
8187 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8188 test -z "$NM" && NM=nm
8189 test -z "$SED" && SED=sed
8190 test -z "$OBJDUMP" && OBJDUMP=objdump
8191 test -z "$RANLIB" && RANLIB=:
8192 test -z "$STRIP" && STRIP=:
8193 test -z "$ac_objext" && ac_objext=o
8195 # Determine commands to create old-style static archives.
8196 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8197 old_postinstall_cmds='chmod 644 $oldlib'
8198 old_postuninstall_cmds=
8200 if test -n "$RANLIB"; then
8203 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8206 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8209 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8212 for cc_temp in $compiler""; do
8214 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8215 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8220 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8223 # Only perform the check for file, if the check method requires it
8224 case $deplibs_check_method in
8226 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8227 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8228 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8229 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8230 echo $ECHO_N "(cached) $ECHO_C" >&6
8234 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8237 lt_save_MAGIC_CMD="$MAGIC_CMD"
8238 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8239 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8240 for ac_dir in $ac_dummy; do
8242 test -z "$ac_dir" && ac_dir=.
8243 if test -f $ac_dir/${ac_tool_prefix}file; then
8244 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8245 if test -n "$file_magic_test_file"; then
8246 case $deplibs_check_method in
8248 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8249 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8250 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8251 $EGREP "$file_magic_regex" > /dev/null; then
8256 *** Warning: the command libtool uses to detect shared libraries,
8257 *** $file_magic_cmd, produces output that libtool cannot recognize.
8258 *** The result is that libtool may fail to recognize shared libraries
8259 *** as such. This will affect the creation of libtool libraries that
8260 *** depend on shared libraries, but programs linked with such libtool
8261 *** libraries will work regardless of this problem. Nevertheless, you
8262 *** may want to report the problem to your system manager and/or to
8263 *** bug-libtool@gnu.org
8273 MAGIC_CMD="$lt_save_MAGIC_CMD"
8278 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8279 if test -n "$MAGIC_CMD"; then
8280 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8281 echo "${ECHO_T}$MAGIC_CMD" >&6
8283 echo "$as_me:$LINENO: result: no" >&5
8284 echo "${ECHO_T}no" >&6
8287 if test -z "$lt_cv_path_MAGIC_CMD"; then
8288 if test -n "$ac_tool_prefix"; then
8289 echo "$as_me:$LINENO: checking for file" >&5
8290 echo $ECHO_N "checking for file... $ECHO_C" >&6
8291 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8292 echo $ECHO_N "(cached) $ECHO_C" >&6
8296 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8299 lt_save_MAGIC_CMD="$MAGIC_CMD"
8300 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8301 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8302 for ac_dir in $ac_dummy; do
8304 test -z "$ac_dir" && ac_dir=.
8305 if test -f $ac_dir/file; then
8306 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8307 if test -n "$file_magic_test_file"; then
8308 case $deplibs_check_method in
8310 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8311 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8312 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8313 $EGREP "$file_magic_regex" > /dev/null; then
8318 *** Warning: the command libtool uses to detect shared libraries,
8319 *** $file_magic_cmd, produces output that libtool cannot recognize.
8320 *** The result is that libtool may fail to recognize shared libraries
8321 *** as such. This will affect the creation of libtool libraries that
8322 *** depend on shared libraries, but programs linked with such libtool
8323 *** libraries will work regardless of this problem. Nevertheless, you
8324 *** may want to report the problem to your system manager and/or to
8325 *** bug-libtool@gnu.org
8335 MAGIC_CMD="$lt_save_MAGIC_CMD"
8340 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8341 if test -n "$MAGIC_CMD"; then
8342 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8343 echo "${ECHO_T}$MAGIC_CMD" >&6
8345 echo "$as_me:$LINENO: result: no" >&5
8346 echo "${ECHO_T}no" >&6
8359 enable_win32_dll=yes
8361 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8362 if test "${enable_libtool_lock+set}" = set; then
8363 enableval="$enable_libtool_lock"
8366 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8369 # Check whether --with-pic or --without-pic was given.
8370 if test "${with_pic+set}" = set; then
8376 test -z "$pic_mode" && pic_mode=default
8378 # Use C for the default configuration in the libtool script
8382 ac_cpp='$CPP $CPPFLAGS'
8383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8388 # Source file extension for C test sources.
8391 # Object file extension for compiled C test sources.
8395 # Code to be used in simple compile tests
8396 lt_simple_compile_test_code="int some_variable = 0;\n"
8398 # Code to be used in simple link tests
8399 lt_simple_link_test_code='int main(){return(0);}\n'
8402 # If no C compiler was specified, use CC.
8405 # Allow CC to be a program name with arguments.
8409 # save warnings/boilerplate of simple test code
8410 ac_outfile=conftest.$ac_objext
8411 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8412 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8413 _lt_compiler_boilerplate=`cat conftest.err`
8416 ac_outfile=conftest.$ac_objext
8417 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8418 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8419 _lt_linker_boilerplate=`cat conftest.err`
8424 # Check for any special shared library compilation flags.
8427 if test "$GCC" = no; then
8430 lt_prog_cc_shlib='-belf'
8434 if test -n "$lt_prog_cc_shlib"; then
8435 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8436 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8437 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
8439 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8440 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8441 lt_cv_prog_cc_can_build_shared=no
8447 # Check to make sure the static flag actually works.
8449 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8450 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
8451 if test "${lt_prog_compiler_static_works+set}" = set; then
8452 echo $ECHO_N "(cached) $ECHO_C" >&6
8454 lt_prog_compiler_static_works=no
8455 save_LDFLAGS="$LDFLAGS"
8456 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8457 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8458 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8459 # The compiler can only warn and ignore the option if not recognized
8460 # So say no if there are warnings
8461 if test -s conftest.err; then
8462 # Append any errors to the config.log.
8463 cat conftest.err 1>&5
8464 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
8465 $SED '/^$/d' conftest.err >conftest.er2
8466 if diff conftest.exp conftest.er2 >/dev/null; then
8467 lt_prog_compiler_static_works=yes
8470 lt_prog_compiler_static_works=yes
8474 LDFLAGS="$save_LDFLAGS"
8477 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8478 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8480 if test x"$lt_prog_compiler_static_works" = xyes; then
8483 lt_prog_compiler_static=
8489 lt_prog_compiler_no_builtin_flag=
8491 if test "$GCC" = yes; then
8492 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8495 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8496 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8497 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8498 echo $ECHO_N "(cached) $ECHO_C" >&6
8500 lt_cv_prog_compiler_rtti_exceptions=no
8501 ac_outfile=conftest.$ac_objext
8502 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8503 lt_compiler_flag="-fno-rtti -fno-exceptions"
8504 # Insert the option either (1) after the last *FLAGS variable, or
8505 # (2) before a word containing "conftest.", or (3) at the end.
8506 # Note that $ac_compile itself does not contain backslashes and begins
8507 # with a dollar sign (not a hyphen), so the echo should work correctly.
8508 # The option is referenced via a variable to avoid confusing sed.
8509 lt_compile=`echo "$ac_compile" | $SED \
8510 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8511 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8512 -e 's:$: $lt_compiler_flag:'`
8513 (eval echo "\"\$as_me:8513: $lt_compile\"" >&5)
8514 (eval "$lt_compile" 2>conftest.err)
8516 cat conftest.err >&5
8517 echo "$as_me:8517: \$? = $ac_status" >&5
8518 if (exit $ac_status) && test -s "$ac_outfile"; then
8519 # The compiler can only warn and ignore the option if not recognized
8520 # So say no if there are warnings other than the usual output.
8521 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8522 $SED '/^$/d' conftest.err >conftest.er2
8523 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8524 lt_cv_prog_compiler_rtti_exceptions=yes
8530 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8531 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8533 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8534 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8541 lt_prog_compiler_wl=
8542 lt_prog_compiler_pic=
8543 lt_prog_compiler_static=
8545 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8546 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8548 if test "$GCC" = yes; then
8549 lt_prog_compiler_wl='-Wl,'
8550 lt_prog_compiler_static='-static'
8554 # All AIX code is PIC.
8555 if test "$host_cpu" = ia64; then
8556 # AIX 5 now supports IA64 processor
8557 lt_prog_compiler_static='-Bstatic'
8562 # FIXME: we need at least 68020 code to build shared libraries, but
8563 # adding the `-m68020' flag to GCC prevents building anything better,
8565 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8568 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8569 # PIC is the default for these OSes.
8572 mingw* | pw32* | os2*)
8573 # This hack is so that the source file can tell whether it is being
8574 # built for inclusion in a dll (and should export symbols for example).
8575 lt_prog_compiler_pic='-DDLL_EXPORT'
8578 darwin* | rhapsody*)
8579 # PIC is the default on this platform
8580 # Common symbols not allowed in MH_DYLIB files
8581 lt_prog_compiler_pic='-fno-common'
8585 # Just because we use GCC doesn't mean we suddenly get shared libraries
8586 # on systems that don't support them.
8587 lt_prog_compiler_can_build_shared=no
8592 if test -d /usr/nec; then
8593 lt_prog_compiler_pic=-Kconform_pic
8598 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8605 lt_prog_compiler_pic='-fPIC'
8611 lt_prog_compiler_pic='-fPIC'
8615 # PORTME Check for flag to pass linker flags through the system compiler.
8618 lt_prog_compiler_wl='-Wl,'
8619 if test "$host_cpu" = ia64; then
8620 # AIX 5 now supports IA64 processor
8621 lt_prog_compiler_static='-Bstatic'
8623 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8627 # PIC is the default on this platform
8628 # Common symbols not allowed in MH_DYLIB files
8629 case $cc_basename in
8631 lt_prog_compiler_pic='-qnocommon'
8632 lt_prog_compiler_wl='-Wl,'
8637 mingw* | pw32* | os2*)
8638 # This hack is so that the source file can tell whether it is being
8639 # built for inclusion in a dll (and should export symbols for example).
8640 lt_prog_compiler_pic='-DDLL_EXPORT'
8643 hpux9* | hpux10* | hpux11*)
8644 lt_prog_compiler_wl='-Wl,'
8645 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8652 lt_prog_compiler_pic='+Z'
8655 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8656 lt_prog_compiler_static='${wl}-a ${wl}archive'
8659 irix5* | irix6* | nonstopux*)
8660 lt_prog_compiler_wl='-Wl,'
8661 # PIC (with -KPIC) is the default.
8662 lt_prog_compiler_static='-non_shared'
8666 lt_prog_compiler_pic='-KPIC'
8667 lt_prog_compiler_static='-Bstatic'
8671 case $cc_basename in
8673 lt_prog_compiler_wl='-Wl,'
8674 lt_prog_compiler_pic='-KPIC'
8675 lt_prog_compiler_static='-static'
8677 pgcc* | pgf77* | pgf90*)
8678 # Portland Group compilers (*not* the Pentium gcc compiler,
8679 # which looks to be a dead project)
8680 lt_prog_compiler_wl='-Wl,'
8681 lt_prog_compiler_pic='-fpic'
8682 lt_prog_compiler_static='-static'
8685 lt_prog_compiler_wl='-Wl,'
8686 # All Alpha code is PIC.
8687 lt_prog_compiler_static='-non_shared'
8692 osf3* | osf4* | osf5*)
8693 lt_prog_compiler_wl='-Wl,'
8694 # All OSF/1 code is PIC.
8695 lt_prog_compiler_static='-non_shared'
8699 lt_prog_compiler_pic='-Kpic'
8700 lt_prog_compiler_static='-dn'
8704 lt_prog_compiler_pic='-KPIC'
8705 lt_prog_compiler_static='-Bstatic'
8706 case $cc_basename in
8708 lt_prog_compiler_wl='-Qoption ld ';;
8710 lt_prog_compiler_wl='-Wl,';;
8715 lt_prog_compiler_wl='-Qoption ld '
8716 lt_prog_compiler_pic='-PIC'
8717 lt_prog_compiler_static='-Bstatic'
8720 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8721 lt_prog_compiler_wl='-Wl,'
8722 lt_prog_compiler_pic='-KPIC'
8723 lt_prog_compiler_static='-Bstatic'
8727 if test -d /usr/nec ;then
8728 lt_prog_compiler_pic='-Kconform_pic'
8729 lt_prog_compiler_static='-Bstatic'
8734 lt_prog_compiler_wl='-Wl,'
8735 lt_prog_compiler_can_build_shared=no
8739 lt_prog_compiler_pic='-pic'
8740 lt_prog_compiler_static='-Bstatic'
8744 lt_prog_compiler_can_build_shared=no
8749 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8750 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8753 # Check to make sure the PIC flag actually works.
8755 if test -n "$lt_prog_compiler_pic"; then
8757 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8758 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8759 if test "${lt_prog_compiler_pic_works+set}" = set; then
8760 echo $ECHO_N "(cached) $ECHO_C" >&6
8762 lt_prog_compiler_pic_works=no
8763 ac_outfile=conftest.$ac_objext
8764 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8765 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8766 # Insert the option either (1) after the last *FLAGS variable, or
8767 # (2) before a word containing "conftest.", or (3) at the end.
8768 # Note that $ac_compile itself does not contain backslashes and begins
8769 # with a dollar sign (not a hyphen), so the echo should work correctly.
8770 # The option is referenced via a variable to avoid confusing sed.
8771 lt_compile=`echo "$ac_compile" | $SED \
8772 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8773 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8774 -e 's:$: $lt_compiler_flag:'`
8775 (eval echo "\"\$as_me:8775: $lt_compile\"" >&5)
8776 (eval "$lt_compile" 2>conftest.err)
8778 cat conftest.err >&5
8779 echo "$as_me:8779: \$? = $ac_status" >&5
8780 if (exit $ac_status) && test -s "$ac_outfile"; then
8781 # The compiler can only warn and ignore the option if not recognized
8782 # So say no if there are warnings other than the usual output.
8783 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8784 $SED '/^$/d' conftest.err >conftest.er2
8785 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8786 lt_prog_compiler_pic_works=yes
8792 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8793 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8795 if test x"$lt_prog_compiler_pic_works" = xyes; then
8796 case $lt_prog_compiler_pic in
8798 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8801 lt_prog_compiler_pic=
8802 lt_prog_compiler_can_build_shared=no
8807 # For platforms which do not support PIC, -DPIC is meaningless:
8809 lt_prog_compiler_pic=
8812 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8816 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8817 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8818 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8819 echo $ECHO_N "(cached) $ECHO_C" >&6
8821 lt_cv_prog_compiler_c_o=no
8822 $rm -r conftest 2>/dev/null
8826 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8828 lt_compiler_flag="-o out/conftest2.$ac_objext"
8829 # Insert the option either (1) after the last *FLAGS variable, or
8830 # (2) before a word containing "conftest.", or (3) at the end.
8831 # Note that $ac_compile itself does not contain backslashes and begins
8832 # with a dollar sign (not a hyphen), so the echo should work correctly.
8833 lt_compile=`echo "$ac_compile" | $SED \
8834 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8835 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8836 -e 's:$: $lt_compiler_flag:'`
8837 (eval echo "\"\$as_me:8837: $lt_compile\"" >&5)
8838 (eval "$lt_compile" 2>out/conftest.err)
8840 cat out/conftest.err >&5
8841 echo "$as_me:8841: \$? = $ac_status" >&5
8842 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8844 # The compiler can only warn and ignore the option if not recognized
8845 # So say no if there are warnings
8846 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8847 $SED '/^$/d' out/conftest.err >out/conftest.er2
8848 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8849 lt_cv_prog_compiler_c_o=yes
8854 # SGI C++ compiler will create directory out/ii_files/ for
8855 # template instantiation
8856 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8857 $rm out/* && rmdir out
8863 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8864 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8867 hard_links="nottested"
8868 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8869 # do not overwrite the value of need_locks provided by the user
8870 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8871 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8874 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8876 ln conftest.a conftest.b 2>&5 || hard_links=no
8877 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8878 echo "$as_me:$LINENO: result: $hard_links" >&5
8879 echo "${ECHO_T}$hard_links" >&6
8880 if test "$hard_links" = no; then
8881 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8882 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8889 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8890 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8893 allow_undefined_flag=
8894 enable_shared_with_static_runtimes=no
8896 archive_expsym_cmds=
8897 old_archive_From_new_cmds=
8898 old_archive_from_expsyms_cmds=
8899 export_dynamic_flag_spec=
8900 whole_archive_flag_spec=
8901 thread_safe_flag_spec=
8902 hardcode_libdir_flag_spec=
8903 hardcode_libdir_flag_spec_ld=
8904 hardcode_libdir_separator=
8907 hardcode_shlibpath_var=unsupported
8908 link_all_deplibs=unknown
8909 hardcode_automatic=no
8912 always_export_symbols=no
8913 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8914 # include_expsyms should be a list of space-separated symbols to be *always*
8915 # included in the symbol list
8917 # exclude_expsyms can be an extended regexp of symbols to exclude
8918 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8919 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8920 # as well as any symbol that contains `d'.
8921 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8922 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8923 # platforms (ab)use it in PIC code, but their linkers get confused if
8924 # the symbol is explicitly referenced. Since portable code cannot
8925 # rely on this symbol name, it's probably fine to never include it in
8926 # preloaded symbol tables.
8927 extract_expsyms_cmds=
8928 # Just being paranoid about ensuring that cc_basename is set.
8929 for cc_temp in $compiler""; do
8931 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8932 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8937 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8940 cygwin* | mingw* | pw32*)
8941 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8942 # When not using gcc, we currently assume that we are using
8943 # Microsoft Visual C++.
8944 if test "$GCC" != yes; then
8954 if test "$with_gnu_ld" = yes; then
8955 # If archive_cmds runs LD, not CC, wlarc should be empty
8958 # Set some defaults for GNU ld with shared library support. These
8959 # are reset later if shared libraries are not supported. Putting them
8960 # here allows them to be overridden if necessary.
8961 runpath_var=LD_RUN_PATH
8962 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8963 export_dynamic_flag_spec='${wl}--export-dynamic'
8964 # ancient GNU ld didn't support --whole-archive et. al.
8965 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8966 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8968 whole_archive_flag_spec=
8970 supports_anon_versioning=no
8971 case `$LD -v 2>/dev/null` in
8972 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8973 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8974 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8975 *\ 2.11.*) ;; # other 2.11 versions
8976 *) supports_anon_versioning=yes ;;
8979 # See if GNU ld supports shared libraries.
8981 aix3* | aix4* | aix5*)
8982 # On AIX/PPC, the GNU linker is very broken
8983 if test "$host_cpu" != ia64; then
8987 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8988 *** to be unable to reliably create shared libraries on AIX.
8989 *** Therefore, libtool is disabling shared libraries support. If you
8990 *** really care for shared libraries, you may want to modify your PATH
8991 *** so that a non-GNU linker is found, and then restart.
8998 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)'
8999 hardcode_libdir_flag_spec='-L$libdir'
9000 hardcode_minus_L=yes
9002 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9003 # that the semantics of dynamic libraries on AmigaOS, at least up
9004 # to version 4, is to share data among multiple programs linked
9005 # with the same dynamic library. Since this doesn't match the
9006 # behavior of shared libraries on other platforms, we can't use
9012 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9013 allow_undefined_flag=unsupported
9014 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9015 # support --undefined. This deserves some investigation. FIXME
9016 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9022 cygwin* | mingw* | pw32*)
9023 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9024 # as there is no search path for DLLs.
9025 hardcode_libdir_flag_spec='-L$libdir'
9026 allow_undefined_flag=unsupported
9027 always_export_symbols=no
9028 enable_shared_with_static_runtimes=yes
9029 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9031 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9032 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9033 # If the export-symbols file already is a .def file (1st line
9034 # is EXPORTS), use it as is; otherwise, prepend...
9035 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9036 cp $export_symbols $output_objdir/$soname.def;
9038 echo EXPORTS > $output_objdir/$soname.def;
9039 cat $export_symbols >> $output_objdir/$soname.def;
9041 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9048 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9050 case $cc_basename,$host_cpu in
9051 pgcc*) # Portland Group C compiler
9052 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'
9053 tmp_addflag=' $pic_flag'
9055 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
9056 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'
9057 tmp_addflag=' $pic_flag -Mnomain' ;;
9058 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9059 tmp_addflag=' -i_dynamic' ;;
9060 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9061 tmp_addflag=' -i_dynamic -nofor_main' ;;
9062 ifc* | ifort*) # Intel Fortran compiler
9063 tmp_addflag=' -nofor_main' ;;
9065 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9067 if test $supports_anon_versioning = yes; then
9068 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9069 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9070 $echo "local: *; };" >> $output_objdir/$libname.ver~
9071 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9079 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9080 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9083 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9084 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9089 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9093 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9094 *** create shared libraries on Solaris systems. Therefore, libtool
9095 *** is disabling shared libraries support. We urge you to upgrade GNU
9096 *** binutils to release 2.9.1 or newer. Another option is to modify
9097 *** your PATH or compiler configuration so that the native linker is
9098 *** used, and then restart.
9101 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9102 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9103 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9110 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9113 hardcode_shlibpath_var=no
9117 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9118 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9119 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9126 if test "$ld_shlibs" = no; then
9128 hardcode_libdir_flag_spec=
9129 export_dynamic_flag_spec=
9130 whole_archive_flag_spec=
9133 # PORTME fill in a description of your system's linker (not GNU ld)
9136 allow_undefined_flag=unsupported
9137 always_export_symbols=yes
9138 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'
9139 # Note: this linker hardcodes the directories in LIBPATH if there
9140 # are no directories specified by -L.
9141 hardcode_minus_L=yes
9142 if test "$GCC" = yes && test -z "$link_static_flag"; then
9143 # Neither direct hardcoding nor static linking is supported with a
9145 hardcode_direct=unsupported
9150 if test "$host_cpu" = ia64; then
9151 # On IA64, the linker does run time linking by default, so we don't
9152 # have to do anything special.
9153 aix_use_runtimelinking=no
9154 exp_sym_flag='-Bexport'
9157 # If we're using GNU nm, then we don't want the "-C" option.
9158 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9159 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9160 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'
9162 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'
9164 aix_use_runtimelinking=no
9166 # Test if we are trying to use run time linking or normal
9167 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9168 # need to do runtime linking.
9169 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9170 for ld_flag in $LDFLAGS; do
9171 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9172 aix_use_runtimelinking=yes
9178 exp_sym_flag='-bexport'
9179 no_entry_flag='-bnoentry'
9182 # When large executables or shared objects are built, AIX ld can
9183 # have problems creating the table of contents. If linking a library
9184 # or program results in "error TOC overflow" add -mminimal-toc to
9185 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9186 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9190 hardcode_libdir_separator=':'
9191 link_all_deplibs=yes
9193 if test "$GCC" = yes; then
9194 case $host_os in aix4.[012]|aix4.[012].*)
9195 # We only want to do this on AIX 4.2 and lower, the check
9196 # below for broken collect2 doesn't work under 4.3+
9197 collect2name=`${CC} -print-prog-name=collect2`
9198 if test -f "$collect2name" && \
9199 strings "$collect2name" | grep resolve_lib_name >/dev/null
9201 # We have reworked collect2
9204 # We have old collect2
9205 hardcode_direct=unsupported
9206 # It fails to find uninstalled libraries when the uninstalled
9207 # path is not listed in the libpath. Setting hardcode_minus_L
9208 # to unsupported forces relinking
9209 hardcode_minus_L=yes
9210 hardcode_libdir_flag_spec='-L$libdir'
9211 hardcode_libdir_separator=
9214 shared_flag='-shared'
9215 if test "$aix_use_runtimelinking" = yes; then
9216 shared_flag="$shared_flag "'${wl}-G'
9220 if test "$host_cpu" = ia64; then
9221 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9222 # chokes on -Wl,-G. The following line is correct:
9225 if test "$aix_use_runtimelinking" = yes; then
9226 shared_flag='${wl}-G'
9228 shared_flag='${wl}-bM:SRE'
9233 # It seems that -bexpall does not export symbols beginning with
9234 # underscore (_), so it is better to generate a list of symbols to export.
9235 always_export_symbols=yes
9236 if test "$aix_use_runtimelinking" = yes; then
9237 # Warning - without using the other runtime loading flags (-brtl),
9238 # -berok will link without error, but may produce a broken library.
9239 allow_undefined_flag='-berok'
9240 # Determine the default libpath from the value encoded in an empty executable.
9241 cat >conftest.$ac_ext <<_ACEOF
9244 cat confdefs.h >>conftest.$ac_ext
9245 cat >>conftest.$ac_ext <<_ACEOF
9246 /* end confdefs.h. */
9256 rm -f conftest.$ac_objext conftest$ac_exeext
9257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9258 (eval $ac_link) 2>conftest.er1
9260 grep -v '^ *+' conftest.er1 >conftest.err
9262 cat conftest.err >&5
9263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264 (exit $ac_status); } &&
9265 { ac_try='test -z "$ac_c_werror_flag"
9266 || test ! -s conftest.err'
9267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); }; } &&
9272 { ac_try='test -s conftest$ac_exeext'
9273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277 (exit $ac_status); }; }; then
9279 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9281 # Check for a 64-bit object if we didn't find anything.
9282 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; }
9285 echo "$as_me: failed program was:" >&5
9286 sed 's/^/| /' conftest.$ac_ext >&5
9289 rm -f conftest.err conftest.$ac_objext \
9290 conftest$ac_exeext conftest.$ac_ext
9291 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9293 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9294 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"
9296 if test "$host_cpu" = ia64; then
9297 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9298 allow_undefined_flag="-z nodefs"
9299 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"
9301 # Determine the default libpath from the value encoded in an empty executable.
9302 cat >conftest.$ac_ext <<_ACEOF
9305 cat confdefs.h >>conftest.$ac_ext
9306 cat >>conftest.$ac_ext <<_ACEOF
9307 /* end confdefs.h. */
9317 rm -f conftest.$ac_objext conftest$ac_exeext
9318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9319 (eval $ac_link) 2>conftest.er1
9321 grep -v '^ *+' conftest.er1 >conftest.err
9323 cat conftest.err >&5
9324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325 (exit $ac_status); } &&
9326 { ac_try='test -z "$ac_c_werror_flag"
9327 || test ! -s conftest.err'
9328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9332 (exit $ac_status); }; } &&
9333 { ac_try='test -s conftest$ac_exeext'
9334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338 (exit $ac_status); }; }; then
9340 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9342 # Check for a 64-bit object if we didn't find anything.
9343 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; }
9346 echo "$as_me: failed program was:" >&5
9347 sed 's/^/| /' conftest.$ac_ext >&5
9350 rm -f conftest.err conftest.$ac_objext \
9351 conftest$ac_exeext conftest.$ac_ext
9352 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9354 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9355 # Warning - without using the other run time loading flags,
9356 # -berok will link without error, but may produce a broken library.
9357 no_undefined_flag=' ${wl}-bernotok'
9358 allow_undefined_flag=' ${wl}-berok'
9359 # -bexpall does not export symbols beginning with underscore (_)
9360 always_export_symbols=yes
9361 # Exported symbols can be pulled into shared objects from archives
9362 whole_archive_flag_spec=' '
9363 archive_cmds_need_lc=yes
9364 # This is similar to how AIX traditionally builds it's shared libraries.
9365 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'
9371 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)'
9372 hardcode_libdir_flag_spec='-L$libdir'
9373 hardcode_minus_L=yes
9374 # see comment about different semantics on the GNU ld section
9379 export_dynamic_flag_spec=-rdynamic
9382 cygwin* | mingw* | pw32*)
9383 # When not using gcc, we currently assume that we are using
9384 # Microsoft Visual C++.
9385 # hardcode_libdir_flag_spec is actually meaningless, as there is
9386 # no search path for DLLs.
9387 hardcode_libdir_flag_spec=' '
9388 allow_undefined_flag=unsupported
9389 # Tell ltmain to make .lib files, not .a files.
9391 # Tell ltmain to make .dll files, not .so files.
9393 # FIXME: Setting linknames here is a bad hack.
9394 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9395 # The linker will automatically build a .lib file if we build a DLL.
9396 old_archive_From_new_cmds='true'
9397 # FIXME: Should let the user specify the lib program.
9398 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9399 fix_srcfile_path='`cygpath -w "$srcfile"`'
9400 enable_shared_with_static_runtimes=yes
9403 darwin* | rhapsody*)
9405 rhapsody* | darwin1.[012])
9406 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9409 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9410 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9412 case ${MACOSX_DEPLOYMENT_TARGET} in
9414 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9417 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9423 archive_cmds_need_lc=no
9425 hardcode_automatic=yes
9426 hardcode_shlibpath_var=unsupported
9427 whole_archive_flag_spec=''
9428 link_all_deplibs=yes
9429 if test "$GCC" = yes ; then
9430 output_verbose_link_cmd='echo'
9431 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9432 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9433 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9434 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}'
9435 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}'
9437 case $cc_basename in
9439 output_verbose_link_cmd='echo'
9440 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9441 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9442 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9443 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}'
9444 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}'
9454 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9455 hardcode_libdir_flag_spec='-L$libdir'
9456 hardcode_shlibpath_var=no
9463 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9464 # support. Future versions do this automatically, but an explicit c++rt0.o
9465 # does not break anything, and helps significantly (at the cost of a little
9468 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9469 hardcode_libdir_flag_spec='-R$libdir'
9471 hardcode_shlibpath_var=no
9474 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9476 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9478 hardcode_minus_L=yes
9479 hardcode_shlibpath_var=no
9482 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9483 freebsd* | kfreebsd*-gnu | dragonfly*)
9484 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9485 hardcode_libdir_flag_spec='-R$libdir'
9487 hardcode_shlibpath_var=no
9491 if test "$GCC" = yes; then
9492 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'
9494 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'
9496 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9497 hardcode_libdir_separator=:
9500 # hardcode_minus_L: Not really in the search PATH,
9501 # but as the default location of the library.
9502 hardcode_minus_L=yes
9503 export_dynamic_flag_spec='${wl}-E'
9507 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9510 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9513 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9519 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9522 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9526 if test "$with_gnu_ld" = no; then
9529 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9530 hardcode_libdir_flag_spec_ld='+b $libdir'
9531 hardcode_libdir_separator=:
9533 hardcode_shlibpath_var=no
9536 hardcode_libdir_flag_spec='-L$libdir'
9538 hardcode_shlibpath_var=no
9540 # hardcode_minus_L: Not really in the search PATH,
9541 # but as the default location of the library.
9542 hardcode_minus_L=yes
9545 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9546 hardcode_libdir_separator=:
9548 export_dynamic_flag_spec='${wl}-E'
9550 # hardcode_minus_L: Not really in the search PATH,
9551 # but as the default location of the library.
9552 hardcode_minus_L=yes
9558 irix5* | irix6* | nonstopux*)
9559 if test "$GCC" = yes; then
9560 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'
9562 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'
9563 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9565 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9566 hardcode_libdir_separator=:
9567 link_all_deplibs=yes
9571 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9572 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9574 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9576 hardcode_libdir_flag_spec='-R$libdir'
9578 hardcode_shlibpath_var=no
9582 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9584 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9585 hardcode_libdir_separator=:
9586 hardcode_shlibpath_var=no
9591 hardcode_shlibpath_var=no
9592 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9593 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9594 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9595 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9596 export_dynamic_flag_spec='${wl}-E'
9599 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9600 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9601 hardcode_libdir_flag_spec='-R$libdir'
9604 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9605 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9612 hardcode_libdir_flag_spec='-L$libdir'
9613 hardcode_minus_L=yes
9614 allow_undefined_flag=unsupported
9615 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'
9616 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9620 if test "$GCC" = yes; then
9621 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9622 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'
9624 allow_undefined_flag=' -expect_unresolved \*'
9625 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'
9627 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9628 hardcode_libdir_separator=:
9631 osf4* | osf5*) # as osf3* with the addition of -msym flag
9632 if test "$GCC" = yes; then
9633 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9634 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'
9635 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9637 allow_undefined_flag=' -expect_unresolved \*'
9638 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'
9639 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9640 $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'
9642 # Both c and cxx compiler support -rpath directly
9643 hardcode_libdir_flag_spec='-rpath $libdir'
9645 hardcode_libdir_separator=:
9649 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9650 hardcode_shlibpath_var=no
9651 export_dynamic_flag_spec='${wl}-Bexport'
9652 runpath_var=LD_RUN_PATH
9653 hardcode_runpath_var=yes
9657 no_undefined_flag=' -z text'
9658 if test "$GCC" = yes; then
9660 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9661 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9662 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9665 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9666 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9667 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9669 hardcode_libdir_flag_spec='-R$libdir'
9670 hardcode_shlibpath_var=no
9672 solaris2.[0-5] | solaris2.[0-5].*) ;;
9674 # The compiler driver will combine linker options so we
9675 # cannot just pass the convience library names through
9676 # without $wl, iff we do not link with $LD.
9677 # Luckily, gcc supports the same syntax we need for Sun Studio.
9678 # Supported since Solaris 2.6 (maybe 2.5.1?)
9681 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9683 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' ;;
9686 link_all_deplibs=yes
9690 if test "x$host_vendor" = xsequent; then
9691 # Use $CC to link under sequent, because it throws in some extra .o
9692 # files that make .init and .fini sections work.
9693 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9695 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9697 hardcode_libdir_flag_spec='-L$libdir'
9699 hardcode_minus_L=yes
9700 hardcode_shlibpath_var=no
9704 case $host_vendor in
9706 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9707 hardcode_direct=yes # is this really true???
9710 ## LD is ld it makes a PLAMLIB
9711 ## CC just makes a GrossModule.
9712 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9713 reload_cmds='$CC -r -o $output$reload_objs'
9717 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9718 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9721 runpath_var='LD_RUN_PATH'
9722 hardcode_shlibpath_var=no
9726 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9727 hardcode_shlibpath_var=no
9728 export_dynamic_flag_spec='-Bexport'
9732 if test -d /usr/nec; then
9733 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9734 hardcode_shlibpath_var=no
9735 runpath_var=LD_RUN_PATH
9736 hardcode_runpath_var=yes
9742 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9745 hardcode_shlibpath_var=no
9746 hardcode_runpath_var=yes
9747 runpath_var=LD_RUN_PATH
9750 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9751 no_undefined_flag='${wl}-z ${wl}text'
9752 if test "$GCC" = yes; then
9753 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9755 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9757 runpath_var='LD_RUN_PATH'
9758 hardcode_shlibpath_var=no
9762 no_undefined_flag=' -z text'
9763 # $CC -shared without GNU ld will not create a library from C++
9764 # object files and a static libstdc++, better avoid it by now
9765 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9766 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9767 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9768 hardcode_libdir_flag_spec=
9769 hardcode_shlibpath_var=no
9770 runpath_var='LD_RUN_PATH'
9774 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9775 hardcode_libdir_flag_spec='-L$libdir'
9776 hardcode_shlibpath_var=no
9785 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9786 echo "${ECHO_T}$ld_shlibs" >&6
9787 test "$ld_shlibs" = no && can_build_shared=no
9789 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9790 if test "$GCC" = yes; then
9791 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9795 # Do we need to explicitly link libc?
9797 case "x$archive_cmds_need_lc" in
9799 # Assume -lc should be added
9800 archive_cmds_need_lc=yes
9802 if test "$enable_shared" = yes && test "$GCC" = yes; then
9803 case $archive_cmds in
9805 # FIXME: we may have to deal with multi-command sequences.
9808 # Test whether the compiler implicitly links with -lc since on some
9809 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9810 # to ld, don't add -lc before -lgcc.
9811 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9812 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9814 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9817 (eval $ac_compile) 2>&5
9819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820 (exit $ac_status); } 2>conftest.err; then
9823 libobjs=conftest.$ac_objext
9825 wl=$lt_prog_compiler_wl
9831 lt_save_allow_undefined_flag=$allow_undefined_flag
9832 allow_undefined_flag=
9833 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9834 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 (exit $ac_status); }
9839 archive_cmds_need_lc=no
9841 archive_cmds_need_lc=yes
9843 allow_undefined_flag=$lt_save_allow_undefined_flag
9845 cat conftest.err 1>&5
9848 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9849 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9856 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9857 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9859 libname_spec='lib$name'
9867 shlibpath_overrides_runpath=unknown
9869 dynamic_linker="$host_os ld.so"
9870 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9871 if test "$GCC" = yes; then
9872 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9873 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9874 # if the path contains ";" then we assume it to be the separator
9875 # otherwise default to the standard path separator (i.e. ":") - it is
9876 # assumed that no part of a normal pathname contains ";" but that should
9877 # okay in the real world where ";" in dirpaths is itself problematic.
9878 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9880 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9883 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9885 need_lib_prefix=unknown
9886 hardcode_into_libs=no
9888 # when you set need_version to no, make sure it does not cause -set_version
9889 # flags to be left without arguments
9890 need_version=unknown
9895 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9896 shlibpath_var=LIBPATH
9898 # AIX 3 has no versioning support, so we append a major version to the name.
9899 soname_spec='${libname}${release}${shared_ext}$major'
9906 hardcode_into_libs=yes
9907 if test "$host_cpu" = ia64; then
9908 # AIX 5 supports IA64
9909 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9910 shlibpath_var=LD_LIBRARY_PATH
9912 # With GCC up to 2.95.x, collect2 would create an import file
9913 # for dependence libraries. The import file would start with
9914 # the line `#! .'. This would cause the generated library to
9915 # depend on `.', always an invalid library. This was fixed in
9916 # development snapshots of GCC prior to 3.0.
9918 aix4 | aix4.[01] | aix4.[01].*)
9919 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9921 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9928 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9929 # soname into executable. Probably we can add versioning support to
9930 # collect2, so additional links can be useful in future.
9931 if test "$aix_use_runtimelinking" = yes; then
9932 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9933 # instead of lib<name>.a to let people know that these are not
9934 # typical AIX shared libraries.
9935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9937 # We preserve .a as extension for shared libraries through AIX4.2
9938 # and later when we are not doing run time linking.
9939 library_names_spec='${libname}${release}.a $libname.a'
9940 soname_spec='${libname}${release}${shared_ext}$major'
9942 shlibpath_var=LIBPATH
9947 library_names_spec='$libname.ixlibrary $libname.a'
9948 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9949 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'
9953 library_names_spec='${libname}${shared_ext}'
9954 dynamic_linker="$host_os ld.so"
9955 shlibpath_var=LIBRARY_PATH
9961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9962 soname_spec='${libname}${release}${shared_ext}$major'
9963 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9964 shlibpath_var=LD_LIBRARY_PATH
9965 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9966 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9967 # the default ld.so.conf also contains /usr/contrib/lib and
9968 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9969 # libtool to hard-code these into programs
9972 cygwin* | mingw* | pw32*)
9973 version_type=windows
9978 case $GCC,$host_os in
9979 yes,cygwin* | yes,mingw* | yes,pw32*)
9980 library_names_spec='$libname.dll.a'
9981 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9982 postinstall_cmds='base_file=`basename \${file}`~
9983 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9984 dldir=$destdir/`dirname \$dlpath`~
9985 test -d \$dldir || mkdir -p \$dldir~
9986 $install_prog $dir/$dlname \$dldir/$dlname'
9987 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9988 dlpath=$dir/\$dldll~
9990 shlibpath_overrides_runpath=yes
9994 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9995 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9996 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9999 # MinGW DLLs use traditional 'lib' prefix
10000 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10001 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10002 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10003 # It is most probably a Windows format PATH printed by
10004 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10005 # path with ; separators, and with drive letters. We can handle the
10006 # drive letters (cygwin fileutils understands them), so leave them,
10007 # especially as we might pass files found there to a mingw objdump,
10008 # which wouldn't understand a cygwinified path. Ahh.
10009 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10011 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10015 # pw32 DLLs use 'pw' prefix rather than 'lib'
10016 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10022 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10025 dynamic_linker='Win32 ld.exe'
10026 # FIXME: first we should search . and the directory the executable is in
10030 darwin* | rhapsody*)
10031 dynamic_linker="$host_os dyld"
10032 version_type=darwin
10035 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10036 soname_spec='${libname}${release}${major}$shared_ext'
10037 shlibpath_overrides_runpath=yes
10038 shlibpath_var=DYLD_LIBRARY_PATH
10039 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
10040 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10041 if test "$GCC" = yes; then
10042 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"`
10044 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10046 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10054 soname_spec='${libname}${release}${shared_ext}$major'
10055 shlibpath_var=LD_LIBRARY_PATH
10066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10067 soname_spec='${libname}${release}${shared_ext}$major'
10068 shlibpath_var=LD_LIBRARY_PATH
10069 shlibpath_overrides_runpath=no
10070 hardcode_into_libs=yes
10071 dynamic_linker='GNU ld.so'
10074 freebsd* | dragonfly*)
10075 # DragonFly does not have aout. When/if they implement a new
10076 # versioning mechanism, adjust this.
10077 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10078 version_type=freebsd-$objformat
10079 case $version_type in
10081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10086 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10090 shlibpath_var=LD_LIBRARY_PATH
10093 shlibpath_overrides_runpath=yes
10095 freebsd3.[01]* | freebsdelf3.[01]*)
10096 shlibpath_overrides_runpath=yes
10097 hardcode_into_libs=yes
10100 shlibpath_overrides_runpath=no
10101 hardcode_into_libs=yes
10110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10111 soname_spec='${libname}${release}${shared_ext}$major'
10112 shlibpath_var=LD_LIBRARY_PATH
10113 hardcode_into_libs=yes
10116 hpux9* | hpux10* | hpux11*)
10117 # Give a soname corresponding to the major version so that dld.sl refuses to
10118 # link against other versions.
10122 case "$host_cpu" in
10125 hardcode_into_libs=yes
10126 dynamic_linker="$host_os dld.so"
10127 shlibpath_var=LD_LIBRARY_PATH
10128 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10130 soname_spec='${libname}${release}${shared_ext}$major'
10131 if test "X$HPUX_IA64_MODE" = X32; then
10132 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10134 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10136 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10140 hardcode_into_libs=yes
10141 dynamic_linker="$host_os dld.sl"
10142 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10143 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10145 soname_spec='${libname}${release}${shared_ext}$major'
10146 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10147 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10151 dynamic_linker="$host_os dld.sl"
10152 shlibpath_var=SHLIB_PATH
10153 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10155 soname_spec='${libname}${release}${shared_ext}$major'
10158 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10159 postinstall_cmds='chmod 555 $lib'
10162 irix5* | irix6* | nonstopux*)
10164 nonstopux*) version_type=nonstopux ;;
10166 if test "$lt_cv_prog_gnu_ld" = yes; then
10174 soname_spec='${libname}${release}${shared_ext}$major'
10175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10177 irix5* | nonstopux*)
10178 libsuff= shlibsuff=
10181 case $LD in # libtool.m4 will add one of these switches to LD
10182 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10183 libsuff= shlibsuff= libmagic=32-bit;;
10184 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10185 libsuff=32 shlibsuff=N32 libmagic=N32;;
10186 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10187 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10188 *) libsuff= shlibsuff= libmagic=never-match;;
10192 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10193 shlibpath_overrides_runpath=no
10194 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10195 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10196 hardcode_into_libs=yes
10199 # No shared lib support for Linux oldld, aout, or coff.
10200 linux*oldld* | linux*aout* | linux*coff*)
10204 # This must be Linux ELF.
10209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10210 soname_spec='${libname}${release}${shared_ext}$major'
10211 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10212 shlibpath_var=LD_LIBRARY_PATH
10213 shlibpath_overrides_runpath=no
10214 # This implies no fast_install, which is unacceptable.
10215 # Some rework will be needed to allow for fast_install
10216 # before this can be enabled.
10217 hardcode_into_libs=yes
10219 # Append ld.so.conf contents to the search path
10220 if test -f /etc/ld.so.conf; then
10221 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' ' '`
10222 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10225 # We used to test for /lib/ld.so.1 and disable shared libraries on
10226 # powerpc, because MkLinux only supported shared libraries with the
10227 # GNU dynamic linker. Since this was broken with cross compilers,
10228 # most powerpc-linux boxes support dynamic linking these days and
10229 # people can always --disable-shared, the test was removed, and we
10230 # assume the GNU/Linux dynamic linker is in use.
10231 dynamic_linker='GNU/Linux ld.so'
10238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10239 soname_spec='${libname}${release}${shared_ext}$major'
10240 shlibpath_var=LD_LIBRARY_PATH
10241 shlibpath_overrides_runpath=no
10242 hardcode_into_libs=yes
10243 dynamic_linker='GNU ld.so'
10250 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10252 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10253 dynamic_linker='NetBSD (a.out) ld.so'
10255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10256 soname_spec='${libname}${release}${shared_ext}$major'
10257 dynamic_linker='NetBSD ld.elf_so'
10259 shlibpath_var=LD_LIBRARY_PATH
10260 shlibpath_overrides_runpath=yes
10261 hardcode_into_libs=yes
10266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10267 shlibpath_var=LD_LIBRARY_PATH
10268 shlibpath_overrides_runpath=yes
10275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10276 soname_spec='${libname}${release}${shared_ext}$major'
10277 shlibpath_var=LD_LIBRARY_PATH
10278 shlibpath_overrides_runpath=yes
10284 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10286 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10287 *) need_version=no ;;
10289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10290 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10291 shlibpath_var=LD_LIBRARY_PATH
10292 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10294 openbsd2.[89] | openbsd2.[89].*)
10295 shlibpath_overrides_runpath=no
10298 shlibpath_overrides_runpath=yes
10302 shlibpath_overrides_runpath=yes
10307 libname_spec='$name'
10310 library_names_spec='$libname${shared_ext} $libname.a'
10311 dynamic_linker='OS/2 ld.exe'
10312 shlibpath_var=LIBPATH
10315 osf3* | osf4* | osf5*)
10319 soname_spec='${libname}${release}${shared_ext}$major'
10320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10321 shlibpath_var=LD_LIBRARY_PATH
10322 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10323 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10328 soname_spec='${libname}${release}${shared_ext}$major'
10329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10330 shlibpath_var=LD_LIBRARY_PATH
10337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10338 soname_spec='${libname}${release}${shared_ext}$major'
10339 shlibpath_var=LD_LIBRARY_PATH
10340 shlibpath_overrides_runpath=yes
10341 hardcode_into_libs=yes
10342 # ldd complains unless libraries are executable
10343 postinstall_cmds='chmod +x $lib'
10348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10349 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10350 shlibpath_var=LD_LIBRARY_PATH
10351 shlibpath_overrides_runpath=yes
10352 if test "$with_gnu_ld" = yes; then
10358 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10361 soname_spec='${libname}${release}${shared_ext}$major'
10362 shlibpath_var=LD_LIBRARY_PATH
10363 case $host_vendor in
10365 shlibpath_overrides_runpath=no
10367 export_dynamic_flag_spec='${wl}-Blargedynsym'
10368 runpath_var=LD_RUN_PATH
10376 shlibpath_overrides_runpath=no
10377 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10383 if test -d /usr/nec ;then
10385 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10386 soname_spec='$libname${shared_ext}.$major'
10387 shlibpath_var=LD_LIBRARY_PATH
10393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10394 soname_spec='${libname}${release}${shared_ext}$major'
10395 shlibpath_var=LD_LIBRARY_PATH
10402 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10403 echo "${ECHO_T}$dynamic_linker" >&6
10404 test "$dynamic_linker" = no && can_build_shared=no
10406 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10407 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10409 if test -n "$hardcode_libdir_flag_spec" || \
10410 test -n "$runpath_var" || \
10411 test "X$hardcode_automatic" = "Xyes" ; then
10413 # We can hardcode non-existant directories.
10414 if test "$hardcode_direct" != no &&
10415 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10416 # have to relink, otherwise we might link with an installed library
10417 # when we should be linking with a yet-to-be-installed one
10418 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10419 test "$hardcode_minus_L" != no; then
10420 # Linking always hardcodes the temporary library directory.
10421 hardcode_action=relink
10423 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10424 hardcode_action=immediate
10427 # We cannot hardcode anything, or else we can only hardcode existing
10429 hardcode_action=unsupported
10431 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10432 echo "${ECHO_T}$hardcode_action" >&6
10434 if test "$hardcode_action" = relink; then
10435 # Fast installation is not supported
10436 enable_fast_install=no
10437 elif test "$shlibpath_overrides_runpath" = yes ||
10438 test "$enable_shared" = no; then
10439 # Fast installation is not necessary
10440 enable_fast_install=needless
10445 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10446 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10447 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10448 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10449 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10450 echo "$as_me:$LINENO: result: yes" >&5
10451 echo "${ECHO_T}yes" >&6
10453 # FIXME - insert some real tests, host_os isn't really good enough
10456 if test -n "$STRIP" ; then
10457 striplib="$STRIP -x"
10458 echo "$as_me:$LINENO: result: yes" >&5
10459 echo "${ECHO_T}yes" >&6
10461 echo "$as_me:$LINENO: result: no" >&5
10462 echo "${ECHO_T}no" >&6
10466 echo "$as_me:$LINENO: result: no" >&5
10467 echo "${ECHO_T}no" >&6
10472 if test "x$enable_dlopen" != xyes; then
10473 enable_dlopen=unknown
10474 enable_dlopen_self=unknown
10475 enable_dlopen_self_static=unknown
10482 lt_cv_dlopen="load_add_on"
10484 lt_cv_dlopen_self=yes
10488 lt_cv_dlopen="LoadLibrary"
10493 lt_cv_dlopen="dlopen"
10498 # if libdl is installed we need to link against it
10499 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10500 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10501 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10502 echo $ECHO_N "(cached) $ECHO_C" >&6
10504 ac_check_lib_save_LIBS=$LIBS
10506 cat >conftest.$ac_ext <<_ACEOF
10509 cat confdefs.h >>conftest.$ac_ext
10510 cat >>conftest.$ac_ext <<_ACEOF
10511 /* end confdefs.h. */
10513 /* Override any gcc2 internal prototype to avoid an error. */
10517 /* We use char because int might match the return type of a gcc2
10518 builtin and then its argument prototype would still apply. */
10528 rm -f conftest.$ac_objext conftest$ac_exeext
10529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10530 (eval $ac_link) 2>conftest.er1
10532 grep -v '^ *+' conftest.er1 >conftest.err
10534 cat conftest.err >&5
10535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536 (exit $ac_status); } &&
10537 { ac_try='test -z "$ac_c_werror_flag"
10538 || test ! -s conftest.err'
10539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10540 (eval $ac_try) 2>&5
10542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543 (exit $ac_status); }; } &&
10544 { ac_try='test -s conftest$ac_exeext'
10545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10546 (eval $ac_try) 2>&5
10548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549 (exit $ac_status); }; }; then
10550 ac_cv_lib_dl_dlopen=yes
10552 echo "$as_me: failed program was:" >&5
10553 sed 's/^/| /' conftest.$ac_ext >&5
10555 ac_cv_lib_dl_dlopen=no
10557 rm -f conftest.err conftest.$ac_objext \
10558 conftest$ac_exeext conftest.$ac_ext
10559 LIBS=$ac_check_lib_save_LIBS
10561 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10562 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10563 if test $ac_cv_lib_dl_dlopen = yes; then
10564 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10567 lt_cv_dlopen="dyld"
10569 lt_cv_dlopen_self=yes
10576 echo "$as_me:$LINENO: checking for shl_load" >&5
10577 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10578 if test "${ac_cv_func_shl_load+set}" = set; then
10579 echo $ECHO_N "(cached) $ECHO_C" >&6
10581 cat >conftest.$ac_ext <<_ACEOF
10584 cat confdefs.h >>conftest.$ac_ext
10585 cat >>conftest.$ac_ext <<_ACEOF
10586 /* end confdefs.h. */
10587 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10588 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10589 #define shl_load innocuous_shl_load
10591 /* System header to define __stub macros and hopefully few prototypes,
10592 which can conflict with char shl_load (); below.
10593 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10594 <limits.h> exists even on freestanding compilers. */
10597 # include <limits.h>
10599 # include <assert.h>
10604 /* Override any gcc2 internal prototype to avoid an error. */
10609 /* We use char because int might match the return type of a gcc2
10610 builtin and then its argument prototype would still apply. */
10612 /* The GNU C library defines this for functions which it implements
10613 to always fail with ENOSYS. Some functions are actually named
10614 something starting with __ and the normal name is an alias. */
10615 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10618 char (*f) () = shl_load;
10627 return f != shl_load;
10632 rm -f conftest.$ac_objext conftest$ac_exeext
10633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10634 (eval $ac_link) 2>conftest.er1
10636 grep -v '^ *+' conftest.er1 >conftest.err
10638 cat conftest.err >&5
10639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10640 (exit $ac_status); } &&
10641 { ac_try='test -z "$ac_c_werror_flag"
10642 || test ! -s conftest.err'
10643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10644 (eval $ac_try) 2>&5
10646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647 (exit $ac_status); }; } &&
10648 { ac_try='test -s conftest$ac_exeext'
10649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10650 (eval $ac_try) 2>&5
10652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653 (exit $ac_status); }; }; then
10654 ac_cv_func_shl_load=yes
10656 echo "$as_me: failed program was:" >&5
10657 sed 's/^/| /' conftest.$ac_ext >&5
10659 ac_cv_func_shl_load=no
10661 rm -f conftest.err conftest.$ac_objext \
10662 conftest$ac_exeext conftest.$ac_ext
10664 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10665 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10666 if test $ac_cv_func_shl_load = yes; then
10667 lt_cv_dlopen="shl_load"
10669 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10670 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10671 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10672 echo $ECHO_N "(cached) $ECHO_C" >&6
10674 ac_check_lib_save_LIBS=$LIBS
10676 cat >conftest.$ac_ext <<_ACEOF
10679 cat confdefs.h >>conftest.$ac_ext
10680 cat >>conftest.$ac_ext <<_ACEOF
10681 /* end confdefs.h. */
10683 /* Override any gcc2 internal prototype to avoid an error. */
10687 /* We use char because int might match the return type of a gcc2
10688 builtin and then its argument prototype would still apply. */
10698 rm -f conftest.$ac_objext conftest$ac_exeext
10699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10700 (eval $ac_link) 2>conftest.er1
10702 grep -v '^ *+' conftest.er1 >conftest.err
10704 cat conftest.err >&5
10705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706 (exit $ac_status); } &&
10707 { ac_try='test -z "$ac_c_werror_flag"
10708 || test ! -s conftest.err'
10709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10710 (eval $ac_try) 2>&5
10712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713 (exit $ac_status); }; } &&
10714 { ac_try='test -s conftest$ac_exeext'
10715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10716 (eval $ac_try) 2>&5
10718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719 (exit $ac_status); }; }; then
10720 ac_cv_lib_dld_shl_load=yes
10722 echo "$as_me: failed program was:" >&5
10723 sed 's/^/| /' conftest.$ac_ext >&5
10725 ac_cv_lib_dld_shl_load=no
10727 rm -f conftest.err conftest.$ac_objext \
10728 conftest$ac_exeext conftest.$ac_ext
10729 LIBS=$ac_check_lib_save_LIBS
10731 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10732 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10733 if test $ac_cv_lib_dld_shl_load = yes; then
10734 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10736 echo "$as_me:$LINENO: checking for dlopen" >&5
10737 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10738 if test "${ac_cv_func_dlopen+set}" = set; then
10739 echo $ECHO_N "(cached) $ECHO_C" >&6
10741 cat >conftest.$ac_ext <<_ACEOF
10744 cat confdefs.h >>conftest.$ac_ext
10745 cat >>conftest.$ac_ext <<_ACEOF
10746 /* end confdefs.h. */
10747 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10748 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10749 #define dlopen innocuous_dlopen
10751 /* System header to define __stub macros and hopefully few prototypes,
10752 which can conflict with char dlopen (); below.
10753 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10754 <limits.h> exists even on freestanding compilers. */
10757 # include <limits.h>
10759 # include <assert.h>
10764 /* Override any gcc2 internal prototype to avoid an error. */
10769 /* We use char because int might match the return type of a gcc2
10770 builtin and then its argument prototype would still apply. */
10772 /* The GNU C library defines this for functions which it implements
10773 to always fail with ENOSYS. Some functions are actually named
10774 something starting with __ and the normal name is an alias. */
10775 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10778 char (*f) () = dlopen;
10787 return f != dlopen;
10792 rm -f conftest.$ac_objext conftest$ac_exeext
10793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10794 (eval $ac_link) 2>conftest.er1
10796 grep -v '^ *+' conftest.er1 >conftest.err
10798 cat conftest.err >&5
10799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10800 (exit $ac_status); } &&
10801 { ac_try='test -z "$ac_c_werror_flag"
10802 || test ! -s conftest.err'
10803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10804 (eval $ac_try) 2>&5
10806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807 (exit $ac_status); }; } &&
10808 { ac_try='test -s conftest$ac_exeext'
10809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10810 (eval $ac_try) 2>&5
10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); }; }; then
10814 ac_cv_func_dlopen=yes
10816 echo "$as_me: failed program was:" >&5
10817 sed 's/^/| /' conftest.$ac_ext >&5
10819 ac_cv_func_dlopen=no
10821 rm -f conftest.err conftest.$ac_objext \
10822 conftest$ac_exeext conftest.$ac_ext
10824 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10825 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10826 if test $ac_cv_func_dlopen = yes; then
10827 lt_cv_dlopen="dlopen"
10829 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10830 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10831 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10832 echo $ECHO_N "(cached) $ECHO_C" >&6
10834 ac_check_lib_save_LIBS=$LIBS
10836 cat >conftest.$ac_ext <<_ACEOF
10839 cat confdefs.h >>conftest.$ac_ext
10840 cat >>conftest.$ac_ext <<_ACEOF
10841 /* end confdefs.h. */
10843 /* Override any gcc2 internal prototype to avoid an error. */
10847 /* We use char because int might match the return type of a gcc2
10848 builtin and then its argument prototype would still apply. */
10858 rm -f conftest.$ac_objext conftest$ac_exeext
10859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10860 (eval $ac_link) 2>conftest.er1
10862 grep -v '^ *+' conftest.er1 >conftest.err
10864 cat conftest.err >&5
10865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866 (exit $ac_status); } &&
10867 { ac_try='test -z "$ac_c_werror_flag"
10868 || test ! -s conftest.err'
10869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10870 (eval $ac_try) 2>&5
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 (exit $ac_status); }; } &&
10874 { ac_try='test -s conftest$ac_exeext'
10875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10876 (eval $ac_try) 2>&5
10878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879 (exit $ac_status); }; }; then
10880 ac_cv_lib_dl_dlopen=yes
10882 echo "$as_me: failed program was:" >&5
10883 sed 's/^/| /' conftest.$ac_ext >&5
10885 ac_cv_lib_dl_dlopen=no
10887 rm -f conftest.err conftest.$ac_objext \
10888 conftest$ac_exeext conftest.$ac_ext
10889 LIBS=$ac_check_lib_save_LIBS
10891 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10892 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10893 if test $ac_cv_lib_dl_dlopen = yes; then
10894 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10896 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10897 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10898 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10899 echo $ECHO_N "(cached) $ECHO_C" >&6
10901 ac_check_lib_save_LIBS=$LIBS
10902 LIBS="-lsvld $LIBS"
10903 cat >conftest.$ac_ext <<_ACEOF
10906 cat confdefs.h >>conftest.$ac_ext
10907 cat >>conftest.$ac_ext <<_ACEOF
10908 /* end confdefs.h. */
10910 /* Override any gcc2 internal prototype to avoid an error. */
10914 /* We use char because int might match the return type of a gcc2
10915 builtin and then its argument prototype would still apply. */
10925 rm -f conftest.$ac_objext conftest$ac_exeext
10926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10927 (eval $ac_link) 2>conftest.er1
10929 grep -v '^ *+' conftest.er1 >conftest.err
10931 cat conftest.err >&5
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); } &&
10934 { ac_try='test -z "$ac_c_werror_flag"
10935 || test ! -s conftest.err'
10936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10937 (eval $ac_try) 2>&5
10939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940 (exit $ac_status); }; } &&
10941 { ac_try='test -s conftest$ac_exeext'
10942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10943 (eval $ac_try) 2>&5
10945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946 (exit $ac_status); }; }; then
10947 ac_cv_lib_svld_dlopen=yes
10949 echo "$as_me: failed program was:" >&5
10950 sed 's/^/| /' conftest.$ac_ext >&5
10952 ac_cv_lib_svld_dlopen=no
10954 rm -f conftest.err conftest.$ac_objext \
10955 conftest$ac_exeext conftest.$ac_ext
10956 LIBS=$ac_check_lib_save_LIBS
10958 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10959 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10960 if test $ac_cv_lib_svld_dlopen = yes; then
10961 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10963 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10964 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10965 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10966 echo $ECHO_N "(cached) $ECHO_C" >&6
10968 ac_check_lib_save_LIBS=$LIBS
10970 cat >conftest.$ac_ext <<_ACEOF
10973 cat confdefs.h >>conftest.$ac_ext
10974 cat >>conftest.$ac_ext <<_ACEOF
10975 /* end confdefs.h. */
10977 /* Override any gcc2 internal prototype to avoid an error. */
10981 /* We use char because int might match the return type of a gcc2
10982 builtin and then its argument prototype would still apply. */
10992 rm -f conftest.$ac_objext conftest$ac_exeext
10993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10994 (eval $ac_link) 2>conftest.er1
10996 grep -v '^ *+' conftest.er1 >conftest.err
10998 cat conftest.err >&5
10999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000 (exit $ac_status); } &&
11001 { ac_try='test -z "$ac_c_werror_flag"
11002 || test ! -s conftest.err'
11003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11004 (eval $ac_try) 2>&5
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); }; } &&
11008 { ac_try='test -s conftest$ac_exeext'
11009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11010 (eval $ac_try) 2>&5
11012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013 (exit $ac_status); }; }; then
11014 ac_cv_lib_dld_dld_link=yes
11016 echo "$as_me: failed program was:" >&5
11017 sed 's/^/| /' conftest.$ac_ext >&5
11019 ac_cv_lib_dld_dld_link=no
11021 rm -f conftest.err conftest.$ac_objext \
11022 conftest$ac_exeext conftest.$ac_ext
11023 LIBS=$ac_check_lib_save_LIBS
11025 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11026 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11027 if test $ac_cv_lib_dld_dld_link = yes; then
11028 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11049 if test "x$lt_cv_dlopen" != xno; then
11055 case $lt_cv_dlopen in
11057 save_CPPFLAGS="$CPPFLAGS"
11058 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11060 save_LDFLAGS="$LDFLAGS"
11061 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11064 LIBS="$lt_cv_dlopen_libs $LIBS"
11066 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11067 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11068 if test "${lt_cv_dlopen_self+set}" = set; then
11069 echo $ECHO_N "(cached) $ECHO_C" >&6
11071 if test "$cross_compiling" = yes; then :
11072 lt_cv_dlopen_self=cross
11074 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11075 lt_status=$lt_dlunknown
11076 cat > conftest.$ac_ext <<EOF
11077 #line 11077 "configure"
11078 #include "confdefs.h"
11087 # define LT_DLGLOBAL RTLD_GLOBAL
11090 # define LT_DLGLOBAL DL_GLOBAL
11092 # define LT_DLGLOBAL 0
11096 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11097 find out it does not work in some platform. */
11098 #ifndef LT_DLLAZY_OR_NOW
11100 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11103 # define LT_DLLAZY_OR_NOW DL_LAZY
11106 # define LT_DLLAZY_OR_NOW RTLD_NOW
11109 # define LT_DLLAZY_OR_NOW DL_NOW
11111 # define LT_DLLAZY_OR_NOW 0
11119 extern "C" void exit (int);
11122 void fnord() { int i=42;}
11125 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11126 int status = $lt_dlunknown;
11130 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11131 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11132 /* dlclose (self); */
11138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11139 (eval $ac_link) 2>&5
11141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11143 (./conftest; exit; ) 2>/dev/null
11145 case x$lt_status in
11146 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11147 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11148 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11151 # compilation failed
11152 lt_cv_dlopen_self=no
11159 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11160 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11162 if test "x$lt_cv_dlopen_self" = xyes; then
11163 LDFLAGS="$LDFLAGS $link_static_flag"
11164 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11165 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11166 if test "${lt_cv_dlopen_self_static+set}" = set; then
11167 echo $ECHO_N "(cached) $ECHO_C" >&6
11169 if test "$cross_compiling" = yes; then :
11170 lt_cv_dlopen_self_static=cross
11172 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11173 lt_status=$lt_dlunknown
11174 cat > conftest.$ac_ext <<EOF
11175 #line 11175 "configure"
11176 #include "confdefs.h"
11185 # define LT_DLGLOBAL RTLD_GLOBAL
11188 # define LT_DLGLOBAL DL_GLOBAL
11190 # define LT_DLGLOBAL 0
11194 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11195 find out it does not work in some platform. */
11196 #ifndef LT_DLLAZY_OR_NOW
11198 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11201 # define LT_DLLAZY_OR_NOW DL_LAZY
11204 # define LT_DLLAZY_OR_NOW RTLD_NOW
11207 # define LT_DLLAZY_OR_NOW DL_NOW
11209 # define LT_DLLAZY_OR_NOW 0
11217 extern "C" void exit (int);
11220 void fnord() { int i=42;}
11223 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11224 int status = $lt_dlunknown;
11228 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11229 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11230 /* dlclose (self); */
11236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11237 (eval $ac_link) 2>&5
11239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11241 (./conftest; exit; ) 2>/dev/null
11243 case x$lt_status in
11244 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11245 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11246 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11249 # compilation failed
11250 lt_cv_dlopen_self_static=no
11257 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11258 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11261 CPPFLAGS="$save_CPPFLAGS"
11262 LDFLAGS="$save_LDFLAGS"
11267 case $lt_cv_dlopen_self in
11268 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11269 *) enable_dlopen_self=unknown ;;
11272 case $lt_cv_dlopen_self_static in
11273 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11274 *) enable_dlopen_self_static=unknown ;;
11279 # Report which librarie types wil actually be built
11280 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11281 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11282 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11283 echo "${ECHO_T}$can_build_shared" >&6
11285 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11286 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11287 test "$can_build_shared" = "no" && enable_shared=no
11289 # On AIX, shared libraries and static libraries use the same namespace, and
11290 # are all built from PIC.
11293 test "$enable_shared" = yes && enable_static=no
11294 if test -n "$RANLIB"; then
11295 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11296 postinstall_cmds='$RANLIB $lib'
11301 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11302 test "$enable_shared" = yes && enable_static=no
11306 echo "$as_me:$LINENO: result: $enable_shared" >&5
11307 echo "${ECHO_T}$enable_shared" >&6
11309 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11310 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11311 # Make sure either enable_shared or enable_static is yes.
11312 test "$enable_shared" = yes || enable_static=yes
11313 echo "$as_me:$LINENO: result: $enable_static" >&5
11314 echo "${ECHO_T}$enable_static" >&6
11316 # The else clause should only fire when bootstrapping the
11317 # libtool distribution, otherwise you forgot to ship ltmain.sh
11318 # with your package, and you will get complaints that there are
11319 # no rules to generate ltmain.sh.
11320 if test -f "$ltmain"; then
11321 # See if we are running on zsh, and set the options which allow our commands through
11322 # without removal of \ escapes.
11323 if test -n "${ZSH_VERSION+set}" ; then
11324 setopt NO_GLOB_SUBST
11326 # Now quote all the things that may contain metacharacters while being
11327 # careful not to overquote the AC_SUBSTed values. We take copies of the
11328 # variables and quote the copies for generation of the libtool script.
11329 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11331 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11332 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11333 deplibs_check_method reload_flag reload_cmds need_locks \
11334 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11335 lt_cv_sys_global_symbol_to_c_name_address \
11336 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11337 old_postinstall_cmds old_postuninstall_cmds \
11341 lt_prog_compiler_wl \
11342 lt_prog_compiler_pic \
11343 lt_prog_compiler_static \
11344 lt_prog_compiler_no_builtin_flag \
11345 export_dynamic_flag_spec \
11346 thread_safe_flag_spec \
11347 whole_archive_flag_spec \
11348 enable_shared_with_static_runtimes \
11350 old_archive_from_new_cmds \
11355 compiler_lib_search_path \
11357 archive_expsym_cmds \
11359 postuninstall_cmds \
11360 old_archive_from_expsyms_cmds \
11361 allow_undefined_flag \
11362 no_undefined_flag \
11363 export_symbols_cmds \
11364 hardcode_libdir_flag_spec \
11365 hardcode_libdir_flag_spec_ld \
11366 hardcode_libdir_separator \
11367 hardcode_automatic \
11369 module_expsym_cmds \
11370 lt_cv_prog_compiler_c_o \
11372 include_expsyms; do
11375 old_archive_cmds | \
11376 old_archive_from_new_cmds | \
11378 archive_expsym_cmds | \
11380 module_expsym_cmds | \
11381 old_archive_from_expsyms_cmds | \
11382 export_symbols_cmds | \
11383 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11384 postinstall_cmds | postuninstall_cmds | \
11385 old_postinstall_cmds | old_postuninstall_cmds | \
11386 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11387 # Double-quote double-evaled strings.
11388 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11391 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11397 *'\$0 --fallback-echo"')
11398 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11402 cfgfile="${ofile}T"
11403 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11405 { echo "$as_me:$LINENO: creating $ofile" >&5
11406 echo "$as_me: creating $ofile" >&6;}
11408 cat <<__EOF__ >> "$cfgfile"
11411 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11412 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11413 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11415 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11416 # Free Software Foundation, Inc.
11418 # This file is part of GNU Libtool:
11419 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11421 # This program is free software; you can redistribute it and/or modify
11422 # it under the terms of the GNU General Public License as published by
11423 # the Free Software Foundation; either version 2 of the License, or
11424 # (at your option) any later version.
11426 # This program is distributed in the hope that it will be useful, but
11427 # WITHOUT ANY WARRANTY; without even the implied warranty of
11428 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11429 # General Public License for more details.
11431 # You should have received a copy of the GNU General Public License
11432 # along with this program; if not, write to the Free Software
11433 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11435 # As a special exception to the GNU General Public License, if you
11436 # distribute this file as part of a program that contains a
11437 # configuration script generated by Autoconf, you may include it under
11438 # the same distribution terms that you use for the rest of that program.
11440 # A sed program that does not truncate output.
11443 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11444 Xsed="$SED -e 1s/^X//"
11446 # The HP-UX ksh and POSIX shell print the target directory to stdout
11447 # if CDPATH is set.
11448 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11450 # The names of the tagged configurations supported by this script.
11453 # ### BEGIN LIBTOOL CONFIG
11455 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11457 # Shell to use when invoking shell scripts.
11460 # Whether or not to build shared libraries.
11461 build_libtool_libs=$enable_shared
11463 # Whether or not to build static libraries.
11464 build_old_libs=$enable_static
11466 # Whether or not to add -lc for building shared libraries.
11467 build_libtool_need_lc=$archive_cmds_need_lc
11469 # Whether or not to disallow shared libs when runtime libs are static
11470 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11472 # Whether or not to optimize for fast installation.
11473 fast_install=$enable_fast_install
11476 host_alias=$host_alias
11480 # The build system.
11481 build_alias=$build_alias
11485 # An echo program that does not interpret backslashes.
11490 AR_FLAGS=$lt_AR_FLAGS
11495 # A language-specific compiler.
11498 # Is the compiler the GNU C compiler?
11504 # The linker used to build libraries.
11507 # Whether we need hard or soft links.
11510 # A BSD-compatible nm program.
11513 # A symbol stripping program
11516 # Used to examine libraries when file_magic_cmd begins "file"
11517 MAGIC_CMD=$MAGIC_CMD
11519 # Used on cygwin: DLL creation program.
11522 # Used on cygwin: object dumper.
11525 # Used on cygwin: assembler.
11528 # The name of the directory that contains temporary libtool files.
11531 # How to create reloadable object files.
11532 reload_flag=$lt_reload_flag
11533 reload_cmds=$lt_reload_cmds
11535 # How to pass a linker flag through the compiler.
11536 wl=$lt_lt_prog_compiler_wl
11538 # Object file suffix (normally "o").
11539 objext="$ac_objext"
11541 # Old archive suffix (normally "a").
11544 # Shared library suffix (normally ".so").
11545 shrext_cmds='$shrext_cmds'
11547 # Executable file suffix (normally "").
11550 # Additional compiler flags for building library objects.
11551 pic_flag=$lt_lt_prog_compiler_pic
11554 # What is the maximum length of a command?
11555 max_cmd_len=$lt_cv_sys_max_cmd_len
11557 # Does compiler simultaneously support -c and -o options?
11558 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11560 # Must we lock files when doing compilation?
11561 need_locks=$lt_need_locks
11563 # Do we need the lib prefix for modules?
11564 need_lib_prefix=$need_lib_prefix
11566 # Do we need a version for libraries?
11567 need_version=$need_version
11569 # Whether dlopen is supported.
11570 dlopen_support=$enable_dlopen
11572 # Whether dlopen of programs is supported.
11573 dlopen_self=$enable_dlopen_self
11575 # Whether dlopen of statically linked programs is supported.
11576 dlopen_self_static=$enable_dlopen_self_static
11578 # Compiler flag to prevent dynamic linking.
11579 link_static_flag=$lt_lt_prog_compiler_static
11581 # Compiler flag to turn off builtin functions.
11582 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11584 # Compiler flag to allow reflexive dlopens.
11585 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11587 # Compiler flag to generate shared objects directly from archives.
11588 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11590 # Compiler flag to generate thread-safe objects.
11591 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11593 # Library versioning type.
11594 version_type=$version_type
11596 # Format of library name prefix.
11597 libname_spec=$lt_libname_spec
11599 # List of archive names. First name is the real one, the rest are links.
11600 # The last name is the one that the linker finds with -lNAME.
11601 library_names_spec=$lt_library_names_spec
11603 # The coded name of the library, if different from the real name.
11604 soname_spec=$lt_soname_spec
11606 # Commands used to build and install an old-style archive.
11608 old_archive_cmds=$lt_old_archive_cmds
11609 old_postinstall_cmds=$lt_old_postinstall_cmds
11610 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11612 # Create an old-style archive from a shared archive.
11613 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11615 # Create a temporary old-style archive to link instead of a shared archive.
11616 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11618 # Commands used to build and install a shared archive.
11619 archive_cmds=$lt_archive_cmds
11620 archive_expsym_cmds=$lt_archive_expsym_cmds
11621 postinstall_cmds=$lt_postinstall_cmds
11622 postuninstall_cmds=$lt_postuninstall_cmds
11624 # Commands used to build a loadable module (assumed same as above if empty)
11625 module_cmds=$lt_module_cmds
11626 module_expsym_cmds=$lt_module_expsym_cmds
11628 # Commands to strip libraries.
11629 old_striplib=$lt_old_striplib
11630 striplib=$lt_striplib
11632 # Dependencies to place before the objects being linked to create a
11634 predep_objects=$lt_predep_objects
11636 # Dependencies to place after the objects being linked to create a
11638 postdep_objects=$lt_postdep_objects
11640 # Dependencies to place before the objects being linked to create a
11642 predeps=$lt_predeps
11644 # Dependencies to place after the objects being linked to create a
11646 postdeps=$lt_postdeps
11648 # The library search path used internally by the compiler when linking
11649 # a shared library.
11650 compiler_lib_search_path=$lt_compiler_lib_search_path
11652 # Method to check whether dependent libraries are shared objects.
11653 deplibs_check_method=$lt_deplibs_check_method
11655 # Command to use when deplibs_check_method == file_magic.
11656 file_magic_cmd=$lt_file_magic_cmd
11658 # Flag that allows shared libraries with undefined symbols to be built.
11659 allow_undefined_flag=$lt_allow_undefined_flag
11661 # Flag that forces no undefined symbols.
11662 no_undefined_flag=$lt_no_undefined_flag
11664 # Commands used to finish a libtool library installation in a directory.
11665 finish_cmds=$lt_finish_cmds
11667 # Same as above, but a single script fragment to be evaled but not shown.
11668 finish_eval=$lt_finish_eval
11670 # Take the output of nm and produce a listing of raw symbols and C names.
11671 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11673 # Transform the output of nm in a proper C declaration
11674 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11676 # Transform the output of nm in a C name address pair
11677 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11679 # This is the shared library runtime path variable.
11680 runpath_var=$runpath_var
11682 # This is the shared library path variable.
11683 shlibpath_var=$shlibpath_var
11685 # Is shlibpath searched before the hard-coded library search path?
11686 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11688 # How to hardcode a shared library path into an executable.
11689 hardcode_action=$hardcode_action
11691 # Whether we should hardcode library paths into libraries.
11692 hardcode_into_libs=$hardcode_into_libs
11694 # Flag to hardcode \$libdir into a binary during linking.
11695 # This must work even if \$libdir does not exist.
11696 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11698 # If ld is used when linking, flag to hardcode \$libdir into
11699 # a binary during linking. This must work even if \$libdir does
11701 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11703 # Whether we need a single -rpath flag with a separated argument.
11704 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11706 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11707 # resulting binary.
11708 hardcode_direct=$hardcode_direct
11710 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11711 # resulting binary.
11712 hardcode_minus_L=$hardcode_minus_L
11714 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11715 # the resulting binary.
11716 hardcode_shlibpath_var=$hardcode_shlibpath_var
11718 # Set to yes if building a shared library automatically hardcodes DIR into the library
11719 # and all subsequent libraries and executables linked against it.
11720 hardcode_automatic=$hardcode_automatic
11722 # Variables whose values should be saved in libtool wrapper scripts and
11723 # restored at relink time.
11724 variables_saved_for_relink="$variables_saved_for_relink"
11726 # Whether libtool must link a program against all its dependency libraries.
11727 link_all_deplibs=$link_all_deplibs
11729 # Compile-time system search path for libraries
11730 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11732 # Run-time system search path for libraries
11733 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11735 # Fix the shell variable \$srcfile for the compiler.
11736 fix_srcfile_path="$fix_srcfile_path"
11738 # Set to yes if exported symbols are required.
11739 always_export_symbols=$always_export_symbols
11741 # The commands to list exported symbols.
11742 export_symbols_cmds=$lt_export_symbols_cmds
11744 # The commands to extract the exported symbol list from a shared archive.
11745 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11747 # Symbols that should not be listed in the preloaded symbols.
11748 exclude_expsyms=$lt_exclude_expsyms
11750 # Symbols that must always be exported.
11751 include_expsyms=$lt_include_expsyms
11753 # ### END LIBTOOL CONFIG
11760 cat <<\EOF >> "$cfgfile"
11762 # AIX sometimes has problems with the GCC collect2 program. For some
11763 # reason, if we set the COLLECT_NAMES environment variable, the problems
11764 # vanish in a puff of smoke.
11765 if test "X${COLLECT_NAMES+set}" != Xset; then
11767 export COLLECT_NAMES
11773 # We use sed instead of cat because bash on DJGPP gets confused if
11774 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11775 # text mode, it properly converts lines to CR/LF. This bash problem
11776 # is reportedly fixed, but why not run on old versions too?
11777 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11779 mv -f "$cfgfile" "$ofile" || \
11780 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11784 # If there is no Makefile yet, we rely on a make rule to execute
11785 # `config.status --recheck' to rerun these tests and create the
11786 # libtool script then.
11787 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11788 if test -f "$ltmain_in"; then
11789 test -f Makefile && make "$ltmain"
11795 ac_cpp='$CPP $CPPFLAGS'
11796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11803 # Check whether --with-tags or --without-tags was given.
11804 if test "${with_tags+set}" = set; then
11805 withval="$with_tags"
11806 tagnames="$withval"
11809 if test -f "$ltmain" && test -n "$tagnames"; then
11810 if test ! -f "${ofile}"; then
11811 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11812 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11815 if test -z "$LTCC"; then
11816 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11817 if test -z "$LTCC"; then
11818 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11819 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11821 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11822 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11826 # Extract list of available tagged configurations in $ofile.
11827 # Note that this assumes the entire list is on one line.
11828 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11830 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11831 for tagname in $tagnames; do
11833 # Check whether tagname contains only valid characters
11834 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11836 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11837 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11838 { (exit 1); exit 1; }; }
11842 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11844 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11845 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11846 { (exit 1); exit 1; }; }
11849 # Update the list of available tags.
11850 if test -n "$tagname"; then
11851 echo appending configuration tag \"$tagname\" to $ofile
11855 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11856 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11857 (test "X$CXX" != "Xg++"))) ; then
11859 ac_cpp='$CXXCPP $CPPFLAGS'
11860 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11861 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11862 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11867 archive_cmds_need_lc_CXX=no
11868 allow_undefined_flag_CXX=
11869 always_export_symbols_CXX=no
11870 archive_expsym_cmds_CXX=
11871 export_dynamic_flag_spec_CXX=
11872 hardcode_direct_CXX=no
11873 hardcode_libdir_flag_spec_CXX=
11874 hardcode_libdir_flag_spec_ld_CXX=
11875 hardcode_libdir_separator_CXX=
11876 hardcode_minus_L_CXX=no
11877 hardcode_automatic_CXX=no
11879 module_expsym_cmds_CXX=
11880 link_all_deplibs_CXX=unknown
11881 old_archive_cmds_CXX=$old_archive_cmds
11882 no_undefined_flag_CXX=
11883 whole_archive_flag_spec_CXX=
11884 enable_shared_with_static_runtimes_CXX=no
11886 # Dependencies to place before and after the object being linked:
11887 predep_objects_CXX=
11888 postdep_objects_CXX=
11891 compiler_lib_search_path_CXX=
11893 # Source file extension for C++ test sources.
11896 # Object file extension for compiled C++ test sources.
11900 # Code to be used in simple compile tests
11901 lt_simple_compile_test_code="int some_variable = 0;\n"
11903 # Code to be used in simple link tests
11904 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
11906 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11908 # If no C compiler was specified, use CC.
11911 # Allow CC to be a program name with arguments.
11915 # save warnings/boilerplate of simple test code
11916 ac_outfile=conftest.$ac_objext
11917 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11918 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11919 _lt_compiler_boilerplate=`cat conftest.err`
11922 ac_outfile=conftest.$ac_objext
11923 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11924 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11925 _lt_linker_boilerplate=`cat conftest.err`
11929 # Allow CC to be a program name with arguments.
11934 lt_save_with_gnu_ld=$with_gnu_ld
11935 lt_save_path_LD=$lt_cv_path_LD
11936 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11937 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11939 unset lt_cv_prog_gnu_ld
11941 if test -n "${lt_cv_path_LDCXX+set}"; then
11942 lt_cv_path_LD=$lt_cv_path_LDCXX
11944 unset lt_cv_path_LD
11946 test -z "${LDCXX+set}" || LD=$LDCXX
11950 for cc_temp in $compiler""; do
11952 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11953 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11958 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11961 # We don't want -fno-exception wen compiling C++ code, so set the
11962 # no_builtin_flag separately
11963 if test "$GXX" = yes; then
11964 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11966 lt_prog_compiler_no_builtin_flag_CXX=
11969 if test "$GXX" = yes; then
11970 # Set up default GNU C++ configuration
11973 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11974 if test "${with_gnu_ld+set}" = set; then
11975 withval="$with_gnu_ld"
11976 test "$withval" = no || with_gnu_ld=yes
11981 if test "$GCC" = yes; then
11982 # Check if gcc -print-prog-name=ld gives a path.
11983 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11984 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11987 # gcc leaves a trailing carriage return which upsets mingw
11988 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11990 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11993 # Accept absolute paths.
11995 re_direlt='/[^/][^/]*/\.\./'
11996 # Canonicalize the pathname of ld
11997 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11998 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11999 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12001 test -z "$LD" && LD="$ac_prog"
12004 # If it fails, then pretend we aren't using GCC.
12008 # If it is relative, then search for the first ld in PATH.
12009 with_gnu_ld=unknown
12012 elif test "$with_gnu_ld" = yes; then
12013 echo "$as_me:$LINENO: checking for GNU ld" >&5
12014 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
12016 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12017 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
12019 if test "${lt_cv_path_LD+set}" = set; then
12020 echo $ECHO_N "(cached) $ECHO_C" >&6
12022 if test -z "$LD"; then
12023 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12024 for ac_dir in $PATH; do
12026 test -z "$ac_dir" && ac_dir=.
12027 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12028 lt_cv_path_LD="$ac_dir/$ac_prog"
12029 # Check to see if the program is GNU ld. I'd rather use --version,
12030 # but apparently some GNU ld's only accept -v.
12031 # Break only if it was the GNU/non-GNU ld that we prefer.
12032 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12033 *GNU* | *'with BFD'*)
12034 test "$with_gnu_ld" != no && break
12037 test "$with_gnu_ld" != yes && break
12044 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12048 LD="$lt_cv_path_LD"
12049 if test -n "$LD"; then
12050 echo "$as_me:$LINENO: result: $LD" >&5
12051 echo "${ECHO_T}$LD" >&6
12053 echo "$as_me:$LINENO: result: no" >&5
12054 echo "${ECHO_T}no" >&6
12056 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12057 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12058 { (exit 1); exit 1; }; }
12059 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12060 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12061 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12062 echo $ECHO_N "(cached) $ECHO_C" >&6
12064 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12065 case `$LD -v 2>&1 </dev/null` in
12066 *GNU* | *'with BFD'*)
12067 lt_cv_prog_gnu_ld=yes
12070 lt_cv_prog_gnu_ld=no
12074 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12075 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12076 with_gnu_ld=$lt_cv_prog_gnu_ld
12080 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12081 # archiving commands below assume that GNU ld is being used.
12082 if test "$with_gnu_ld" = yes; then
12083 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12084 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12086 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12087 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12089 # If archive_cmds runs LD, not CC, wlarc should be empty
12090 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12091 # investigate it a little bit more. (MM)
12094 # ancient GNU ld didn't support --whole-archive et. al.
12095 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12096 grep 'no-whole-archive' > /dev/null; then
12097 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12099 whole_archive_flag_spec_CXX=
12105 # A generic and very simple default shared library creation
12106 # command for GNU C++ for the case where it uses the native
12107 # linker, instead of GNU ld. If possible, this setting should
12108 # overridden to take advantage of the native linker features on
12109 # the platform it is being used on.
12110 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12113 # Commands to make compiler produce verbose output that lists
12114 # what "hidden" libraries, object files and flags are used when
12115 # linking a shared library.
12116 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12124 # PORTME: fill in a description of your system's C++ link characteristics
12125 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12126 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12130 # FIXME: insert proper C++ library support
12134 if test "$host_cpu" = ia64; then
12135 # On IA64, the linker does run time linking by default, so we don't
12136 # have to do anything special.
12137 aix_use_runtimelinking=no
12138 exp_sym_flag='-Bexport'
12141 aix_use_runtimelinking=no
12143 # Test if we are trying to use run time linking or normal
12144 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12145 # need to do runtime linking.
12146 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12147 for ld_flag in $LDFLAGS; do
12150 aix_use_runtimelinking=yes
12157 exp_sym_flag='-bexport'
12158 no_entry_flag='-bnoentry'
12161 # When large executables or shared objects are built, AIX ld can
12162 # have problems creating the table of contents. If linking a library
12163 # or program results in "error TOC overflow" add -mminimal-toc to
12164 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12165 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12167 archive_cmds_CXX=''
12168 hardcode_direct_CXX=yes
12169 hardcode_libdir_separator_CXX=':'
12170 link_all_deplibs_CXX=yes
12172 if test "$GXX" = yes; then
12173 case $host_os in aix4.[012]|aix4.[012].*)
12174 # We only want to do this on AIX 4.2 and lower, the check
12175 # below for broken collect2 doesn't work under 4.3+
12176 collect2name=`${CC} -print-prog-name=collect2`
12177 if test -f "$collect2name" && \
12178 strings "$collect2name" | grep resolve_lib_name >/dev/null
12180 # We have reworked collect2
12181 hardcode_direct_CXX=yes
12183 # We have old collect2
12184 hardcode_direct_CXX=unsupported
12185 # It fails to find uninstalled libraries when the uninstalled
12186 # path is not listed in the libpath. Setting hardcode_minus_L
12187 # to unsupported forces relinking
12188 hardcode_minus_L_CXX=yes
12189 hardcode_libdir_flag_spec_CXX='-L$libdir'
12190 hardcode_libdir_separator_CXX=
12193 shared_flag='-shared'
12194 if test "$aix_use_runtimelinking" = yes; then
12195 shared_flag="$shared_flag "'${wl}-G'
12199 if test "$host_cpu" = ia64; then
12200 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12201 # chokes on -Wl,-G. The following line is correct:
12204 if test "$aix_use_runtimelinking" = yes; then
12205 shared_flag='${wl}-G'
12207 shared_flag='${wl}-bM:SRE'
12212 # It seems that -bexpall does not export symbols beginning with
12213 # underscore (_), so it is better to generate a list of symbols to export.
12214 always_export_symbols_CXX=yes
12215 if test "$aix_use_runtimelinking" = yes; then
12216 # Warning - without using the other runtime loading flags (-brtl),
12217 # -berok will link without error, but may produce a broken library.
12218 allow_undefined_flag_CXX='-berok'
12219 # Determine the default libpath from the value encoded in an empty executable.
12220 cat >conftest.$ac_ext <<_ACEOF
12223 cat confdefs.h >>conftest.$ac_ext
12224 cat >>conftest.$ac_ext <<_ACEOF
12225 /* end confdefs.h. */
12235 rm -f conftest.$ac_objext conftest$ac_exeext
12236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12237 (eval $ac_link) 2>conftest.er1
12239 grep -v '^ *+' conftest.er1 >conftest.err
12241 cat conftest.err >&5
12242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12243 (exit $ac_status); } &&
12244 { ac_try='test -z "$ac_cxx_werror_flag"
12245 || test ! -s conftest.err'
12246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12247 (eval $ac_try) 2>&5
12249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250 (exit $ac_status); }; } &&
12251 { ac_try='test -s conftest$ac_exeext'
12252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12253 (eval $ac_try) 2>&5
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); }; }; then
12258 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12260 # Check for a 64-bit object if we didn't find anything.
12261 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; }
12264 echo "$as_me: failed program was:" >&5
12265 sed 's/^/| /' conftest.$ac_ext >&5
12268 rm -f conftest.err conftest.$ac_objext \
12269 conftest$ac_exeext conftest.$ac_ext
12270 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12272 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12274 archive_expsym_cmds_CXX="\$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"
12276 if test "$host_cpu" = ia64; then
12277 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12278 allow_undefined_flag_CXX="-z nodefs"
12279 archive_expsym_cmds_CXX="\$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"
12281 # Determine the default libpath from the value encoded in an empty executable.
12282 cat >conftest.$ac_ext <<_ACEOF
12285 cat confdefs.h >>conftest.$ac_ext
12286 cat >>conftest.$ac_ext <<_ACEOF
12287 /* end confdefs.h. */
12297 rm -f conftest.$ac_objext conftest$ac_exeext
12298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12299 (eval $ac_link) 2>conftest.er1
12301 grep -v '^ *+' conftest.er1 >conftest.err
12303 cat conftest.err >&5
12304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305 (exit $ac_status); } &&
12306 { ac_try='test -z "$ac_cxx_werror_flag"
12307 || test ! -s conftest.err'
12308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12309 (eval $ac_try) 2>&5
12311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312 (exit $ac_status); }; } &&
12313 { ac_try='test -s conftest$ac_exeext'
12314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12315 (eval $ac_try) 2>&5
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 (exit $ac_status); }; }; then
12320 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12322 # Check for a 64-bit object if we didn't find anything.
12323 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; }
12326 echo "$as_me: failed program was:" >&5
12327 sed 's/^/| /' conftest.$ac_ext >&5
12330 rm -f conftest.err conftest.$ac_objext \
12331 conftest$ac_exeext conftest.$ac_ext
12332 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12334 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12335 # Warning - without using the other run time loading flags,
12336 # -berok will link without error, but may produce a broken library.
12337 no_undefined_flag_CXX=' ${wl}-bernotok'
12338 allow_undefined_flag_CXX=' ${wl}-berok'
12339 # -bexpall does not export symbols beginning with underscore (_)
12340 always_export_symbols_CXX=yes
12341 # Exported symbols can be pulled into shared objects from archives
12342 whole_archive_flag_spec_CXX=' '
12343 archive_cmds_need_lc_CXX=yes
12344 # This is similar to how AIX traditionally builds it's shared libraries.
12345 archive_expsym_cmds_CXX="\$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'
12350 case $cc_basename in
12352 # FIXME: insert proper C++ library support
12359 cygwin* | mingw* | pw32*)
12360 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12361 # as there is no search path for DLLs.
12362 hardcode_libdir_flag_spec_CXX='-L$libdir'
12363 allow_undefined_flag_CXX=unsupported
12364 always_export_symbols_CXX=no
12365 enable_shared_with_static_runtimes_CXX=yes
12367 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12368 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12369 # If the export-symbols file already is a .def file (1st line
12370 # is EXPORTS), use it as is; otherwise, prepend...
12371 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12372 cp $export_symbols $output_objdir/$soname.def;
12374 echo EXPORTS > $output_objdir/$soname.def;
12375 cat $export_symbols >> $output_objdir/$soname.def;
12377 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12382 darwin* | rhapsody*)
12384 rhapsody* | darwin1.[012])
12385 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12388 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12389 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12391 case ${MACOSX_DEPLOYMENT_TARGET} in
12393 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12396 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12402 archive_cmds_need_lc_CXX=no
12403 hardcode_direct_CXX=no
12404 hardcode_automatic_CXX=yes
12405 hardcode_shlibpath_var_CXX=unsupported
12406 whole_archive_flag_spec_CXX=''
12407 link_all_deplibs_CXX=yes
12409 if test "$GXX" = yes ; then
12410 lt_int_apple_cc_single_mod=no
12411 output_verbose_link_cmd='echo'
12412 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12413 lt_int_apple_cc_single_mod=yes
12415 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12416 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12418 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12420 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12421 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12422 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12423 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12425 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12427 module_expsym_cmds_CXX='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}'
12429 case $cc_basename in
12431 output_verbose_link_cmd='echo'
12432 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12433 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12434 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12435 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12436 module_expsym_cmds_CXX='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}'
12446 case $cc_basename in
12448 # FIXME: insert proper C++ library support
12452 # Green Hills C++ Compiler
12453 # FIXME: insert proper C++ library support
12457 # FIXME: insert proper C++ library support
12463 # C++ shared libraries reported to be fairly broken before switch to ELF
12467 archive_cmds_need_lc_CXX=no
12469 freebsd* | kfreebsd*-gnu | dragonfly*)
12470 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12477 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12478 hardcode_libdir_separator_CXX=:
12479 export_dynamic_flag_spec_CXX='${wl}-E'
12480 hardcode_direct_CXX=yes
12481 hardcode_minus_L_CXX=yes # Not in the search PATH,
12482 # but as the default
12483 # location of the library.
12485 case $cc_basename in
12487 # FIXME: insert proper C++ library support
12491 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12492 # Commands to make compiler produce verbose output that lists
12493 # what "hidden" libraries, object files and flags are used when
12494 # linking a shared library.
12496 # There doesn't appear to be a way to prevent this compiler from
12497 # explicitly linking system object files so we need to strip them
12498 # from the output so that they don't get included in the library
12500 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12503 if test "$GXX" = yes; then
12504 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12506 # FIXME: insert proper C++ library support
12513 if test $with_gnu_ld = no; then
12514 case "$host_cpu" in
12516 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12517 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12518 hardcode_libdir_separator_CXX=:
12521 hardcode_libdir_flag_spec_CXX='-L$libdir'
12524 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12525 hardcode_libdir_separator_CXX=:
12526 export_dynamic_flag_spec_CXX='${wl}-E'
12530 case "$host_cpu" in
12532 hardcode_direct_CXX=no
12533 hardcode_shlibpath_var_CXX=no
12536 hardcode_direct_CXX=no
12537 hardcode_shlibpath_var_CXX=no
12538 hardcode_minus_L_CXX=yes # Not in the search PATH,
12539 # but as the default
12540 # location of the library.
12543 hardcode_direct_CXX=yes
12544 hardcode_minus_L_CXX=yes # Not in the search PATH,
12545 # but as the default
12546 # location of the library.
12550 case $cc_basename in
12552 # FIXME: insert proper C++ library support
12556 case "$host_cpu" in
12558 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12561 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12564 # Commands to make compiler produce verbose output that lists
12565 # what "hidden" libraries, object files and flags are used when
12566 # linking a shared library.
12568 # There doesn't appear to be a way to prevent this compiler from
12569 # explicitly linking system object files so we need to strip them
12570 # from the output so that they don't get included in the library
12572 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12575 if test "$GXX" = yes; then
12576 if test $with_gnu_ld = no; then
12577 case "$host_cpu" in
12579 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12582 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12587 # FIXME: insert proper C++ library support
12594 case $cc_basename in
12597 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12599 # Archives containing C++ object files must be created using
12600 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12601 # necessary to make sure instantiated templates are included
12603 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12606 if test "$GXX" = yes; then
12607 if test "$with_gnu_ld" = no; then
12608 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
12610 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
12613 link_all_deplibs_CXX=yes
12616 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12617 hardcode_libdir_separator_CXX=:
12620 case $cc_basename in
12622 # Kuck and Associates, Inc. (KAI) C++ Compiler
12624 # KCC will only create a shared library if the output file
12625 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12626 # to its proper name (with version) after linking.
12627 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12628 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12629 # Commands to make compiler produce verbose output that lists
12630 # what "hidden" libraries, object files and flags are used when
12631 # linking a shared library.
12633 # There doesn't appear to be a way to prevent this compiler from
12634 # explicitly linking system object files so we need to strip them
12635 # from the output so that they don't get included in the library
12637 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12639 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12640 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12642 # Archives containing C++ object files must be created using
12643 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12644 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12649 # version 8.0 and above of icpc choke on multiply defined symbols
12650 # if we add $predep_objects and $postdep_objects, however 7.1 and
12651 # earlier do not add the objects themselves.
12652 case `$CC -V 2>&1` in
12654 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12655 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12657 *) # Version 8.0 or newer
12660 ia64*) tmp_idyn=' -i_dynamic';;
12662 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12663 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12666 archive_cmds_need_lc_CXX=no
12667 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12668 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12669 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12672 # Portland Group C++ compiler
12673 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12674 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12676 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12677 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12678 whole_archive_flag_spec_CXX='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12682 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12683 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12685 runpath_var=LD_RUN_PATH
12686 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12687 hardcode_libdir_separator_CXX=:
12689 # Commands to make compiler produce verbose output that lists
12690 # what "hidden" libraries, object files and flags are used when
12691 # linking a shared library.
12693 # There doesn't appear to be a way to prevent this compiler from
12694 # explicitly linking system object files so we need to strip them
12695 # from the output so that they don't get included in the library
12697 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12702 # FIXME: insert proper C++ library support
12706 # FIXME: insert proper C++ library support
12710 case $cc_basename in
12712 # FIXME: insert proper C++ library support
12716 # FIXME: insert proper C++ library support
12722 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12723 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12725 hardcode_libdir_flag_spec_CXX='-R$libdir'
12726 hardcode_direct_CXX=yes
12727 hardcode_shlibpath_var_CXX=no
12729 # Workaround some broken pre-1.5 toolchains
12730 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12733 # C++ shared libraries are fairly broken
12737 hardcode_direct_CXX=yes
12738 hardcode_shlibpath_var_CXX=no
12739 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12740 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12741 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12742 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12743 export_dynamic_flag_spec_CXX='${wl}-E'
12744 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12746 output_verbose_link_cmd='echo'
12749 case $cc_basename in
12751 # Kuck and Associates, Inc. (KAI) C++ Compiler
12753 # KCC will only create a shared library if the output file
12754 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12755 # to its proper name (with version) after linking.
12756 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12758 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12759 hardcode_libdir_separator_CXX=:
12761 # Archives containing C++ object files must be created using
12762 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12763 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12767 # Rational C++ 2.4.1
12768 # FIXME: insert proper C++ library support
12772 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12773 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12775 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12776 hardcode_libdir_separator_CXX=:
12778 # Commands to make compiler produce verbose output that lists
12779 # what "hidden" libraries, object files and flags are used when
12780 # linking a shared library.
12782 # There doesn't appear to be a way to prevent this compiler from
12783 # explicitly linking system object files so we need to strip them
12784 # from the output so that they don't get included in the library
12786 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12789 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12790 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12791 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
12793 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12794 hardcode_libdir_separator_CXX=:
12796 # Commands to make compiler produce verbose output that lists
12797 # what "hidden" libraries, object files and flags are used when
12798 # linking a shared library.
12799 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12802 # FIXME: insert proper C++ library support
12809 case $cc_basename in
12811 # Kuck and Associates, Inc. (KAI) C++ Compiler
12813 # KCC will only create a shared library if the output file
12814 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12815 # to its proper name (with version) after linking.
12816 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12818 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12819 hardcode_libdir_separator_CXX=:
12821 # Archives containing C++ object files must be created using
12822 # the KAI C++ compiler.
12823 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12826 # Rational C++ 2.4.1
12827 # FIXME: insert proper C++ library support
12831 allow_undefined_flag_CXX=' -expect_unresolved \*'
12832 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12833 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12834 echo "-hidden">> $lib.exp~
12835 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
12838 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12839 hardcode_libdir_separator_CXX=:
12841 # Commands to make compiler produce verbose output that lists
12842 # what "hidden" libraries, object files and flags are used when
12843 # linking a shared library.
12845 # There doesn't appear to be a way to prevent this compiler from
12846 # explicitly linking system object files so we need to strip them
12847 # from the output so that they don't get included in the library
12849 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12852 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12853 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12854 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
12856 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12857 hardcode_libdir_separator_CXX=:
12859 # Commands to make compiler produce verbose output that lists
12860 # what "hidden" libraries, object files and flags are used when
12861 # linking a shared library.
12862 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12865 # FIXME: insert proper C++ library support
12872 # FIXME: insert proper C++ library support
12876 archive_cmds_need_lc_CXX=no
12877 case $cc_basename in
12879 # FIXME: insert proper C++ library support
12883 # FIXME: insert proper C++ library support
12889 case $cc_basename in
12892 # FIXME: insert proper C++ library support
12897 # FIXME: insert proper C++ library support
12901 # FIXME: insert proper C++ library support
12907 case $cc_basename in
12909 # Sun C++ 4.2, 5.x and Centerline C++
12910 no_undefined_flag_CXX=' -zdefs'
12911 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12912 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12913 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12915 hardcode_libdir_flag_spec_CXX='-R$libdir'
12916 hardcode_shlibpath_var_CXX=no
12918 solaris2.[0-5] | solaris2.[0-5].*) ;;
12920 # The C++ compiler is used as linker so we must use $wl
12921 # flag to pass the commands to the underlying system
12922 # linker. We must also pass each convience library through
12923 # to the system linker between allextract/defaultextract.
12924 # The C++ compiler will combine linker options so we
12925 # cannot just pass the convience library names through
12927 # Supported since Solaris 2.6 (maybe 2.5.1?)
12928 whole_archive_flag_spec_CXX='${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'
12931 link_all_deplibs_CXX=yes
12933 # Commands to make compiler produce verbose output that lists
12934 # what "hidden" libraries, object files and flags are used when
12935 # linking a shared library.
12937 # There doesn't appear to be a way to prevent this compiler from
12938 # explicitly linking system object files so we need to strip them
12939 # from the output so that they don't get included in the library
12941 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12943 # Archives containing C++ object files must be created using
12944 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12945 # necessary to make sure instantiated templates are included
12947 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12950 # Green Hills C++ Compiler
12951 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12953 # The C++ compiler must be used to create the archive.
12954 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12957 # GNU C++ compiler with Solaris linker
12958 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12959 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12960 if $CC --version | grep -v '^2\.7' > /dev/null; then
12961 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12962 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12963 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12965 # Commands to make compiler produce verbose output that lists
12966 # what "hidden" libraries, object files and flags are used when
12967 # linking a shared library.
12968 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12970 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12972 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12973 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12974 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12976 # Commands to make compiler produce verbose output that lists
12977 # what "hidden" libraries, object files and flags are used when
12978 # linking a shared library.
12979 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12982 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12987 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12988 archive_cmds_need_lc_CXX=no
12991 case $cc_basename in
12993 # NonStop-UX NCC 3.20
12994 # FIXME: insert proper C++ library support
12998 # FIXME: insert proper C++ library support
13004 # FIXME: insert proper C++ library support
13008 # FIXME: insert proper C++ library support
13012 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13013 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13014 test "$ld_shlibs_CXX" = no && can_build_shared=no
13020 cat > conftest.$ac_ext <<EOF
13024 Foo (void) { a = 0; }
13030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13031 (eval $ac_compile) 2>&5
13033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034 (exit $ac_status); }; then
13035 # Parse the compiler output and extract the necessary
13036 # objects, libraries and library flags.
13038 # Sentinel used to keep track of whether or not we are before
13039 # the conftest object file.
13040 pre_test_object_deps_done=no
13042 # The `*' in the case matches for architectures that use `case' in
13043 # $output_verbose_cmd can trigger glob expansion during the loop
13044 # eval without this substitution.
13045 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
13047 for p in `eval $output_verbose_link_cmd`; do
13051 # Some compilers place space between "-{L,R}" and the path.
13052 # Remove the space.
13053 if test $p = "-L" \
13054 || test $p = "-R"; then
13061 if test "$pre_test_object_deps_done" = no; then
13064 # Internal compiler library paths should come after those
13065 # provided the user. The postdeps already come after the
13066 # user supplied libs so there is no need to process them.
13067 if test -z "$compiler_lib_search_path_CXX"; then
13068 compiler_lib_search_path_CXX="${prev}${p}"
13070 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13073 # The "-l" case would never come before the object being
13074 # linked, so don't bother handling this case.
13077 if test -z "$postdeps_CXX"; then
13078 postdeps_CXX="${prev}${p}"
13080 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13086 # This assumes that the test object file only shows up
13087 # once in the compiler output.
13088 if test "$p" = "conftest.$objext"; then
13089 pre_test_object_deps_done=yes
13093 if test "$pre_test_object_deps_done" = no; then
13094 if test -z "$predep_objects_CXX"; then
13095 predep_objects_CXX="$p"
13097 predep_objects_CXX="$predep_objects_CXX $p"
13100 if test -z "$postdep_objects_CXX"; then
13101 postdep_objects_CXX="$p"
13103 postdep_objects_CXX="$postdep_objects_CXX $p"
13108 *) ;; # Ignore the rest.
13116 echo "libtool.m4: error: problem compiling CXX test program"
13119 $rm -f confest.$objext
13121 case " $postdeps_CXX " in
13122 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13125 lt_prog_compiler_wl_CXX=
13126 lt_prog_compiler_pic_CXX=
13127 lt_prog_compiler_static_CXX=
13129 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13130 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13132 # C++ specific cases for pic, static, wl, etc.
13133 if test "$GXX" = yes; then
13134 lt_prog_compiler_wl_CXX='-Wl,'
13135 lt_prog_compiler_static_CXX='-static'
13139 # All AIX code is PIC.
13140 if test "$host_cpu" = ia64; then
13141 # AIX 5 now supports IA64 processor
13142 lt_prog_compiler_static_CXX='-Bstatic'
13146 # FIXME: we need at least 68020 code to build shared libraries, but
13147 # adding the `-m68020' flag to GCC prevents building anything better,
13149 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13151 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13152 # PIC is the default for these OSes.
13154 mingw* | os2* | pw32*)
13155 # This hack is so that the source file can tell whether it is being
13156 # built for inclusion in a dll (and should export symbols for example).
13157 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13159 darwin* | rhapsody*)
13160 # PIC is the default on this platform
13161 # Common symbols not allowed in MH_DYLIB files
13162 lt_prog_compiler_pic_CXX='-fno-common'
13165 # DJGPP does not support shared libraries at all
13166 lt_prog_compiler_pic_CXX=
13169 if test -d /usr/nec; then
13170 lt_prog_compiler_pic_CXX=-Kconform_pic
13174 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13175 # not for PA HP-UX.
13176 case "$host_cpu" in
13180 lt_prog_compiler_pic_CXX='-fPIC'
13185 lt_prog_compiler_pic_CXX='-fPIC'
13191 # All AIX code is PIC.
13192 if test "$host_cpu" = ia64; then
13193 # AIX 5 now supports IA64 processor
13194 lt_prog_compiler_static_CXX='-Bstatic'
13196 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13200 case $cc_basename in
13202 # Green Hills C++ Compiler
13203 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13208 # PIC is the default on this platform
13209 # Common symbols not allowed in MH_DYLIB files
13210 case $cc_basename in
13212 lt_prog_compiler_pic_CXX='-qnocommon'
13213 lt_prog_compiler_wl_CXX='-Wl,'
13218 case $cc_basename in
13220 lt_prog_compiler_pic_CXX='-KPIC'
13223 # Green Hills C++ Compiler
13224 lt_prog_compiler_pic_CXX='-pic'
13230 freebsd* | kfreebsd*-gnu | dragonfly*)
13231 # FreeBSD uses GNU C++
13233 hpux9* | hpux10* | hpux11*)
13234 case $cc_basename in
13236 lt_prog_compiler_wl_CXX='-Wl,'
13237 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13238 if test "$host_cpu" != ia64; then
13239 lt_prog_compiler_pic_CXX='+Z'
13243 lt_prog_compiler_wl_CXX='-Wl,'
13244 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13245 case "$host_cpu" in
13250 lt_prog_compiler_pic_CXX='+Z'
13258 irix5* | irix6* | nonstopux*)
13259 case $cc_basename in
13261 lt_prog_compiler_wl_CXX='-Wl,'
13262 lt_prog_compiler_static_CXX='-non_shared'
13263 # CC pic flag -KPIC is the default.
13270 case $cc_basename in
13273 lt_prog_compiler_wl_CXX='--backend -Wl,'
13274 lt_prog_compiler_pic_CXX='-fPIC'
13278 lt_prog_compiler_wl_CXX='-Wl,'
13279 lt_prog_compiler_pic_CXX='-KPIC'
13280 lt_prog_compiler_static_CXX='-static'
13283 # Portland Group C++ compiler.
13284 lt_prog_compiler_wl_CXX='-Wl,'
13285 lt_prog_compiler_pic_CXX='-fpic'
13286 lt_prog_compiler_static_CXX='-static'
13290 # Make sure the PIC flag is empty. It appears that all Alpha
13291 # Linux and Compaq Tru64 Unix objects are PIC.
13292 lt_prog_compiler_pic_CXX=
13293 lt_prog_compiler_static_CXX='-non_shared'
13304 case $cc_basename in
13306 lt_prog_compiler_pic_CXX='-W c,exportall'
13314 osf3* | osf4* | osf5*)
13315 case $cc_basename in
13317 lt_prog_compiler_wl_CXX='--backend -Wl,'
13320 # Rational C++ 2.4.1
13321 lt_prog_compiler_pic_CXX='-pic'
13324 # Digital/Compaq C++
13325 lt_prog_compiler_wl_CXX='-Wl,'
13326 # Make sure the PIC flag is empty. It appears that all Alpha
13327 # Linux and Compaq Tru64 Unix objects are PIC.
13328 lt_prog_compiler_pic_CXX=
13329 lt_prog_compiler_static_CXX='-non_shared'
13338 case $cc_basename in
13340 lt_prog_compiler_pic_CXX='-fPIC'
13347 case $cc_basename in
13349 # Sun C++ 4.2, 5.x and Centerline C++
13350 lt_prog_compiler_pic_CXX='-KPIC'
13351 lt_prog_compiler_static_CXX='-Bstatic'
13352 lt_prog_compiler_wl_CXX='-Qoption ld '
13355 # Green Hills C++ Compiler
13356 lt_prog_compiler_pic_CXX='-PIC'
13363 case $cc_basename in
13366 lt_prog_compiler_pic_CXX='-pic'
13367 lt_prog_compiler_static_CXX='-Bstatic'
13371 lt_prog_compiler_pic_CXX='-pic'
13378 case $cc_basename in
13380 # NonStop-UX NCC 3.20
13381 lt_prog_compiler_pic_CXX='-KPIC'
13392 lt_prog_compiler_can_build_shared_CXX=no
13397 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13398 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13401 # Check to make sure the PIC flag actually works.
13403 if test -n "$lt_prog_compiler_pic_CXX"; then
13405 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13406 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13407 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13408 echo $ECHO_N "(cached) $ECHO_C" >&6
13410 lt_prog_compiler_pic_works_CXX=no
13411 ac_outfile=conftest.$ac_objext
13412 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13413 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13414 # Insert the option either (1) after the last *FLAGS variable, or
13415 # (2) before a word containing "conftest.", or (3) at the end.
13416 # Note that $ac_compile itself does not contain backslashes and begins
13417 # with a dollar sign (not a hyphen), so the echo should work correctly.
13418 # The option is referenced via a variable to avoid confusing sed.
13419 lt_compile=`echo "$ac_compile" | $SED \
13420 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13421 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13422 -e 's:$: $lt_compiler_flag:'`
13423 (eval echo "\"\$as_me:13423: $lt_compile\"" >&5)
13424 (eval "$lt_compile" 2>conftest.err)
13426 cat conftest.err >&5
13427 echo "$as_me:13427: \$? = $ac_status" >&5
13428 if (exit $ac_status) && test -s "$ac_outfile"; then
13429 # The compiler can only warn and ignore the option if not recognized
13430 # So say no if there are warnings other than the usual output.
13431 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13432 $SED '/^$/d' conftest.err >conftest.er2
13433 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13434 lt_prog_compiler_pic_works_CXX=yes
13440 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13441 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13443 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13444 case $lt_prog_compiler_pic_CXX in
13446 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13449 lt_prog_compiler_pic_CXX=
13450 lt_prog_compiler_can_build_shared_CXX=no
13455 # For platforms which do not support PIC, -DPIC is meaningless:
13457 lt_prog_compiler_pic_CXX=
13460 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13464 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13465 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13466 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13467 echo $ECHO_N "(cached) $ECHO_C" >&6
13469 lt_cv_prog_compiler_c_o_CXX=no
13470 $rm -r conftest 2>/dev/null
13474 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13476 lt_compiler_flag="-o out/conftest2.$ac_objext"
13477 # Insert the option either (1) after the last *FLAGS variable, or
13478 # (2) before a word containing "conftest.", or (3) at the end.
13479 # Note that $ac_compile itself does not contain backslashes and begins
13480 # with a dollar sign (not a hyphen), so the echo should work correctly.
13481 lt_compile=`echo "$ac_compile" | $SED \
13482 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13483 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13484 -e 's:$: $lt_compiler_flag:'`
13485 (eval echo "\"\$as_me:13485: $lt_compile\"" >&5)
13486 (eval "$lt_compile" 2>out/conftest.err)
13488 cat out/conftest.err >&5
13489 echo "$as_me:13489: \$? = $ac_status" >&5
13490 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13492 # The compiler can only warn and ignore the option if not recognized
13493 # So say no if there are warnings
13494 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13495 $SED '/^$/d' out/conftest.err >out/conftest.er2
13496 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13497 lt_cv_prog_compiler_c_o_CXX=yes
13502 # SGI C++ compiler will create directory out/ii_files/ for
13503 # template instantiation
13504 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13505 $rm out/* && rmdir out
13511 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13512 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13515 hard_links="nottested"
13516 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13517 # do not overwrite the value of need_locks provided by the user
13518 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13519 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13522 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13524 ln conftest.a conftest.b 2>&5 || hard_links=no
13525 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13526 echo "$as_me:$LINENO: result: $hard_links" >&5
13527 echo "${ECHO_T}$hard_links" >&6
13528 if test "$hard_links" = no; then
13529 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13530 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13537 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13538 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13540 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13543 # If we're using GNU nm, then we don't want the "-C" option.
13544 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13545 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13546 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13548 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13552 export_symbols_cmds_CXX="$ltdll_cmds"
13555 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13558 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13562 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13563 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13564 test "$ld_shlibs_CXX" = no && can_build_shared=no
13566 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13567 if test "$GCC" = yes; then
13568 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13572 # Do we need to explicitly link libc?
13574 case "x$archive_cmds_need_lc_CXX" in
13576 # Assume -lc should be added
13577 archive_cmds_need_lc_CXX=yes
13579 if test "$enable_shared" = yes && test "$GCC" = yes; then
13580 case $archive_cmds_CXX in
13582 # FIXME: we may have to deal with multi-command sequences.
13585 # Test whether the compiler implicitly links with -lc since on some
13586 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13587 # to ld, don't add -lc before -lgcc.
13588 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13589 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13591 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13594 (eval $ac_compile) 2>&5
13596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597 (exit $ac_status); } 2>conftest.err; then
13600 libobjs=conftest.$ac_objext
13602 wl=$lt_prog_compiler_wl_CXX
13608 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13609 allow_undefined_flag_CXX=
13610 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13611 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13614 (exit $ac_status); }
13616 archive_cmds_need_lc_CXX=no
13618 archive_cmds_need_lc_CXX=yes
13620 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13622 cat conftest.err 1>&5
13625 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13626 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13633 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13634 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13635 library_names_spec=
13636 libname_spec='lib$name'
13640 postuninstall_cmds=
13644 shlibpath_overrides_runpath=unknown
13646 dynamic_linker="$host_os ld.so"
13647 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13648 if test "$GCC" = yes; then
13649 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13650 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13651 # if the path contains ";" then we assume it to be the separator
13652 # otherwise default to the standard path separator (i.e. ":") - it is
13653 # assumed that no part of a normal pathname contains ";" but that should
13654 # okay in the real world where ";" in dirpaths is itself problematic.
13655 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13657 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13660 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13662 need_lib_prefix=unknown
13663 hardcode_into_libs=no
13665 # when you set need_version to no, make sure it does not cause -set_version
13666 # flags to be left without arguments
13667 need_version=unknown
13672 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13673 shlibpath_var=LIBPATH
13675 # AIX 3 has no versioning support, so we append a major version to the name.
13676 soname_spec='${libname}${release}${shared_ext}$major'
13683 hardcode_into_libs=yes
13684 if test "$host_cpu" = ia64; then
13685 # AIX 5 supports IA64
13686 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13687 shlibpath_var=LD_LIBRARY_PATH
13689 # With GCC up to 2.95.x, collect2 would create an import file
13690 # for dependence libraries. The import file would start with
13691 # the line `#! .'. This would cause the generated library to
13692 # depend on `.', always an invalid library. This was fixed in
13693 # development snapshots of GCC prior to 3.0.
13695 aix4 | aix4.[01] | aix4.[01].*)
13696 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13698 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13701 can_build_shared=no
13705 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13706 # soname into executable. Probably we can add versioning support to
13707 # collect2, so additional links can be useful in future.
13708 if test "$aix_use_runtimelinking" = yes; then
13709 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13710 # instead of lib<name>.a to let people know that these are not
13711 # typical AIX shared libraries.
13712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13714 # We preserve .a as extension for shared libraries through AIX4.2
13715 # and later when we are not doing run time linking.
13716 library_names_spec='${libname}${release}.a $libname.a'
13717 soname_spec='${libname}${release}${shared_ext}$major'
13719 shlibpath_var=LIBPATH
13724 library_names_spec='$libname.ixlibrary $libname.a'
13725 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13726 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'
13730 library_names_spec='${libname}${shared_ext}'
13731 dynamic_linker="$host_os ld.so"
13732 shlibpath_var=LIBRARY_PATH
13738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13739 soname_spec='${libname}${release}${shared_ext}$major'
13740 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13741 shlibpath_var=LD_LIBRARY_PATH
13742 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13743 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13744 # the default ld.so.conf also contains /usr/contrib/lib and
13745 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13746 # libtool to hard-code these into programs
13749 cygwin* | mingw* | pw32*)
13750 version_type=windows
13755 case $GCC,$host_os in
13756 yes,cygwin* | yes,mingw* | yes,pw32*)
13757 library_names_spec='$libname.dll.a'
13758 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13759 postinstall_cmds='base_file=`basename \${file}`~
13760 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13761 dldir=$destdir/`dirname \$dlpath`~
13762 test -d \$dldir || mkdir -p \$dldir~
13763 $install_prog $dir/$dlname \$dldir/$dlname'
13764 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13765 dlpath=$dir/\$dldll~
13767 shlibpath_overrides_runpath=yes
13771 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13772 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13773 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13776 # MinGW DLLs use traditional 'lib' prefix
13777 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13778 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13779 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13780 # It is most probably a Windows format PATH printed by
13781 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13782 # path with ; separators, and with drive letters. We can handle the
13783 # drive letters (cygwin fileutils understands them), so leave them,
13784 # especially as we might pass files found there to a mingw objdump,
13785 # which wouldn't understand a cygwinified path. Ahh.
13786 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13788 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13792 # pw32 DLLs use 'pw' prefix rather than 'lib'
13793 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13799 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13802 dynamic_linker='Win32 ld.exe'
13803 # FIXME: first we should search . and the directory the executable is in
13807 darwin* | rhapsody*)
13808 dynamic_linker="$host_os dyld"
13809 version_type=darwin
13812 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13813 soname_spec='${libname}${release}${major}$shared_ext'
13814 shlibpath_overrides_runpath=yes
13815 shlibpath_var=DYLD_LIBRARY_PATH
13816 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13817 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13818 if test "$GCC" = yes; then
13819 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"`
13821 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13823 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13831 soname_spec='${libname}${release}${shared_ext}$major'
13832 shlibpath_var=LD_LIBRARY_PATH
13843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13844 soname_spec='${libname}${release}${shared_ext}$major'
13845 shlibpath_var=LD_LIBRARY_PATH
13846 shlibpath_overrides_runpath=no
13847 hardcode_into_libs=yes
13848 dynamic_linker='GNU ld.so'
13851 freebsd* | dragonfly*)
13852 # DragonFly does not have aout. When/if they implement a new
13853 # versioning mechanism, adjust this.
13854 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13855 version_type=freebsd-$objformat
13856 case $version_type in
13858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13863 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13867 shlibpath_var=LD_LIBRARY_PATH
13870 shlibpath_overrides_runpath=yes
13872 freebsd3.[01]* | freebsdelf3.[01]*)
13873 shlibpath_overrides_runpath=yes
13874 hardcode_into_libs=yes
13877 shlibpath_overrides_runpath=no
13878 hardcode_into_libs=yes
13887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13888 soname_spec='${libname}${release}${shared_ext}$major'
13889 shlibpath_var=LD_LIBRARY_PATH
13890 hardcode_into_libs=yes
13893 hpux9* | hpux10* | hpux11*)
13894 # Give a soname corresponding to the major version so that dld.sl refuses to
13895 # link against other versions.
13899 case "$host_cpu" in
13902 hardcode_into_libs=yes
13903 dynamic_linker="$host_os dld.so"
13904 shlibpath_var=LD_LIBRARY_PATH
13905 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13907 soname_spec='${libname}${release}${shared_ext}$major'
13908 if test "X$HPUX_IA64_MODE" = X32; then
13909 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13911 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13913 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13917 hardcode_into_libs=yes
13918 dynamic_linker="$host_os dld.sl"
13919 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13920 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13922 soname_spec='${libname}${release}${shared_ext}$major'
13923 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13924 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13928 dynamic_linker="$host_os dld.sl"
13929 shlibpath_var=SHLIB_PATH
13930 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13932 soname_spec='${libname}${release}${shared_ext}$major'
13935 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13936 postinstall_cmds='chmod 555 $lib'
13939 irix5* | irix6* | nonstopux*)
13941 nonstopux*) version_type=nonstopux ;;
13943 if test "$lt_cv_prog_gnu_ld" = yes; then
13951 soname_spec='${libname}${release}${shared_ext}$major'
13952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13954 irix5* | nonstopux*)
13955 libsuff= shlibsuff=
13958 case $LD in # libtool.m4 will add one of these switches to LD
13959 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13960 libsuff= shlibsuff= libmagic=32-bit;;
13961 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13962 libsuff=32 shlibsuff=N32 libmagic=N32;;
13963 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13964 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13965 *) libsuff= shlibsuff= libmagic=never-match;;
13969 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13970 shlibpath_overrides_runpath=no
13971 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13972 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13973 hardcode_into_libs=yes
13976 # No shared lib support for Linux oldld, aout, or coff.
13977 linux*oldld* | linux*aout* | linux*coff*)
13981 # This must be Linux ELF.
13986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13987 soname_spec='${libname}${release}${shared_ext}$major'
13988 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13989 shlibpath_var=LD_LIBRARY_PATH
13990 shlibpath_overrides_runpath=no
13991 # This implies no fast_install, which is unacceptable.
13992 # Some rework will be needed to allow for fast_install
13993 # before this can be enabled.
13994 hardcode_into_libs=yes
13996 # Append ld.so.conf contents to the search path
13997 if test -f /etc/ld.so.conf; then
13998 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' ' '`
13999 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14002 # We used to test for /lib/ld.so.1 and disable shared libraries on
14003 # powerpc, because MkLinux only supported shared libraries with the
14004 # GNU dynamic linker. Since this was broken with cross compilers,
14005 # most powerpc-linux boxes support dynamic linking these days and
14006 # people can always --disable-shared, the test was removed, and we
14007 # assume the GNU/Linux dynamic linker is in use.
14008 dynamic_linker='GNU/Linux ld.so'
14015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14016 soname_spec='${libname}${release}${shared_ext}$major'
14017 shlibpath_var=LD_LIBRARY_PATH
14018 shlibpath_overrides_runpath=no
14019 hardcode_into_libs=yes
14020 dynamic_linker='GNU ld.so'
14027 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14029 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14030 dynamic_linker='NetBSD (a.out) ld.so'
14032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14033 soname_spec='${libname}${release}${shared_ext}$major'
14034 dynamic_linker='NetBSD ld.elf_so'
14036 shlibpath_var=LD_LIBRARY_PATH
14037 shlibpath_overrides_runpath=yes
14038 hardcode_into_libs=yes
14043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14044 shlibpath_var=LD_LIBRARY_PATH
14045 shlibpath_overrides_runpath=yes
14052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14053 soname_spec='${libname}${release}${shared_ext}$major'
14054 shlibpath_var=LD_LIBRARY_PATH
14055 shlibpath_overrides_runpath=yes
14061 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14063 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14064 *) need_version=no ;;
14066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14067 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14068 shlibpath_var=LD_LIBRARY_PATH
14069 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14071 openbsd2.[89] | openbsd2.[89].*)
14072 shlibpath_overrides_runpath=no
14075 shlibpath_overrides_runpath=yes
14079 shlibpath_overrides_runpath=yes
14084 libname_spec='$name'
14087 library_names_spec='$libname${shared_ext} $libname.a'
14088 dynamic_linker='OS/2 ld.exe'
14089 shlibpath_var=LIBPATH
14092 osf3* | osf4* | osf5*)
14096 soname_spec='${libname}${release}${shared_ext}$major'
14097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14098 shlibpath_var=LD_LIBRARY_PATH
14099 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14100 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14105 soname_spec='${libname}${release}${shared_ext}$major'
14106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14107 shlibpath_var=LD_LIBRARY_PATH
14114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14115 soname_spec='${libname}${release}${shared_ext}$major'
14116 shlibpath_var=LD_LIBRARY_PATH
14117 shlibpath_overrides_runpath=yes
14118 hardcode_into_libs=yes
14119 # ldd complains unless libraries are executable
14120 postinstall_cmds='chmod +x $lib'
14125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14126 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14127 shlibpath_var=LD_LIBRARY_PATH
14128 shlibpath_overrides_runpath=yes
14129 if test "$with_gnu_ld" = yes; then
14135 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14138 soname_spec='${libname}${release}${shared_ext}$major'
14139 shlibpath_var=LD_LIBRARY_PATH
14140 case $host_vendor in
14142 shlibpath_overrides_runpath=no
14144 export_dynamic_flag_spec='${wl}-Blargedynsym'
14145 runpath_var=LD_RUN_PATH
14153 shlibpath_overrides_runpath=no
14154 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14160 if test -d /usr/nec ;then
14162 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14163 soname_spec='$libname${shared_ext}.$major'
14164 shlibpath_var=LD_LIBRARY_PATH
14170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14171 soname_spec='${libname}${release}${shared_ext}$major'
14172 shlibpath_var=LD_LIBRARY_PATH
14179 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14180 echo "${ECHO_T}$dynamic_linker" >&6
14181 test "$dynamic_linker" = no && can_build_shared=no
14183 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14184 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14185 hardcode_action_CXX=
14186 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14187 test -n "$runpath_var_CXX" || \
14188 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14190 # We can hardcode non-existant directories.
14191 if test "$hardcode_direct_CXX" != no &&
14192 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14193 # have to relink, otherwise we might link with an installed library
14194 # when we should be linking with a yet-to-be-installed one
14195 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14196 test "$hardcode_minus_L_CXX" != no; then
14197 # Linking always hardcodes the temporary library directory.
14198 hardcode_action_CXX=relink
14200 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14201 hardcode_action_CXX=immediate
14204 # We cannot hardcode anything, or else we can only hardcode existing
14206 hardcode_action_CXX=unsupported
14208 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14209 echo "${ECHO_T}$hardcode_action_CXX" >&6
14211 if test "$hardcode_action_CXX" = relink; then
14212 # Fast installation is not supported
14213 enable_fast_install=no
14214 elif test "$shlibpath_overrides_runpath" = yes ||
14215 test "$enable_shared" = no; then
14216 # Fast installation is not necessary
14217 enable_fast_install=needless
14222 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14223 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14224 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14225 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14226 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14227 echo "$as_me:$LINENO: result: yes" >&5
14228 echo "${ECHO_T}yes" >&6
14230 # FIXME - insert some real tests, host_os isn't really good enough
14233 if test -n "$STRIP" ; then
14234 striplib="$STRIP -x"
14235 echo "$as_me:$LINENO: result: yes" >&5
14236 echo "${ECHO_T}yes" >&6
14238 echo "$as_me:$LINENO: result: no" >&5
14239 echo "${ECHO_T}no" >&6
14243 echo "$as_me:$LINENO: result: no" >&5
14244 echo "${ECHO_T}no" >&6
14249 if test "x$enable_dlopen" != xyes; then
14250 enable_dlopen=unknown
14251 enable_dlopen_self=unknown
14252 enable_dlopen_self_static=unknown
14259 lt_cv_dlopen="load_add_on"
14261 lt_cv_dlopen_self=yes
14265 lt_cv_dlopen="LoadLibrary"
14270 lt_cv_dlopen="dlopen"
14275 # if libdl is installed we need to link against it
14276 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14277 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14278 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14279 echo $ECHO_N "(cached) $ECHO_C" >&6
14281 ac_check_lib_save_LIBS=$LIBS
14283 cat >conftest.$ac_ext <<_ACEOF
14286 cat confdefs.h >>conftest.$ac_ext
14287 cat >>conftest.$ac_ext <<_ACEOF
14288 /* end confdefs.h. */
14290 /* Override any gcc2 internal prototype to avoid an error. */
14294 /* We use char because int might match the return type of a gcc2
14295 builtin and then its argument prototype would still apply. */
14305 rm -f conftest.$ac_objext conftest$ac_exeext
14306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14307 (eval $ac_link) 2>conftest.er1
14309 grep -v '^ *+' conftest.er1 >conftest.err
14311 cat conftest.err >&5
14312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 (exit $ac_status); } &&
14314 { ac_try='test -z "$ac_cxx_werror_flag"
14315 || test ! -s conftest.err'
14316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14317 (eval $ac_try) 2>&5
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); }; } &&
14321 { ac_try='test -s conftest$ac_exeext'
14322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14323 (eval $ac_try) 2>&5
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); }; }; then
14327 ac_cv_lib_dl_dlopen=yes
14329 echo "$as_me: failed program was:" >&5
14330 sed 's/^/| /' conftest.$ac_ext >&5
14332 ac_cv_lib_dl_dlopen=no
14334 rm -f conftest.err conftest.$ac_objext \
14335 conftest$ac_exeext conftest.$ac_ext
14336 LIBS=$ac_check_lib_save_LIBS
14338 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14339 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14340 if test $ac_cv_lib_dl_dlopen = yes; then
14341 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14344 lt_cv_dlopen="dyld"
14346 lt_cv_dlopen_self=yes
14353 echo "$as_me:$LINENO: checking for shl_load" >&5
14354 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14355 if test "${ac_cv_func_shl_load+set}" = set; then
14356 echo $ECHO_N "(cached) $ECHO_C" >&6
14358 cat >conftest.$ac_ext <<_ACEOF
14361 cat confdefs.h >>conftest.$ac_ext
14362 cat >>conftest.$ac_ext <<_ACEOF
14363 /* end confdefs.h. */
14364 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14365 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14366 #define shl_load innocuous_shl_load
14368 /* System header to define __stub macros and hopefully few prototypes,
14369 which can conflict with char shl_load (); below.
14370 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14371 <limits.h> exists even on freestanding compilers. */
14374 # include <limits.h>
14376 # include <assert.h>
14381 /* Override any gcc2 internal prototype to avoid an error. */
14386 /* We use char because int might match the return type of a gcc2
14387 builtin and then its argument prototype would still apply. */
14389 /* The GNU C library defines this for functions which it implements
14390 to always fail with ENOSYS. Some functions are actually named
14391 something starting with __ and the normal name is an alias. */
14392 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14395 char (*f) () = shl_load;
14404 return f != shl_load;
14409 rm -f conftest.$ac_objext conftest$ac_exeext
14410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14411 (eval $ac_link) 2>conftest.er1
14413 grep -v '^ *+' conftest.er1 >conftest.err
14415 cat conftest.err >&5
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); } &&
14418 { ac_try='test -z "$ac_cxx_werror_flag"
14419 || test ! -s conftest.err'
14420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14421 (eval $ac_try) 2>&5
14423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424 (exit $ac_status); }; } &&
14425 { ac_try='test -s conftest$ac_exeext'
14426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14427 (eval $ac_try) 2>&5
14429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430 (exit $ac_status); }; }; then
14431 ac_cv_func_shl_load=yes
14433 echo "$as_me: failed program was:" >&5
14434 sed 's/^/| /' conftest.$ac_ext >&5
14436 ac_cv_func_shl_load=no
14438 rm -f conftest.err conftest.$ac_objext \
14439 conftest$ac_exeext conftest.$ac_ext
14441 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14442 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14443 if test $ac_cv_func_shl_load = yes; then
14444 lt_cv_dlopen="shl_load"
14446 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14447 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14448 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14449 echo $ECHO_N "(cached) $ECHO_C" >&6
14451 ac_check_lib_save_LIBS=$LIBS
14453 cat >conftest.$ac_ext <<_ACEOF
14456 cat confdefs.h >>conftest.$ac_ext
14457 cat >>conftest.$ac_ext <<_ACEOF
14458 /* end confdefs.h. */
14460 /* Override any gcc2 internal prototype to avoid an error. */
14464 /* We use char because int might match the return type of a gcc2
14465 builtin and then its argument prototype would still apply. */
14475 rm -f conftest.$ac_objext conftest$ac_exeext
14476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14477 (eval $ac_link) 2>conftest.er1
14479 grep -v '^ *+' conftest.er1 >conftest.err
14481 cat conftest.err >&5
14482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483 (exit $ac_status); } &&
14484 { ac_try='test -z "$ac_cxx_werror_flag"
14485 || test ! -s conftest.err'
14486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14487 (eval $ac_try) 2>&5
14489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490 (exit $ac_status); }; } &&
14491 { ac_try='test -s conftest$ac_exeext'
14492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14493 (eval $ac_try) 2>&5
14495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496 (exit $ac_status); }; }; then
14497 ac_cv_lib_dld_shl_load=yes
14499 echo "$as_me: failed program was:" >&5
14500 sed 's/^/| /' conftest.$ac_ext >&5
14502 ac_cv_lib_dld_shl_load=no
14504 rm -f conftest.err conftest.$ac_objext \
14505 conftest$ac_exeext conftest.$ac_ext
14506 LIBS=$ac_check_lib_save_LIBS
14508 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14509 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14510 if test $ac_cv_lib_dld_shl_load = yes; then
14511 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14513 echo "$as_me:$LINENO: checking for dlopen" >&5
14514 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14515 if test "${ac_cv_func_dlopen+set}" = set; then
14516 echo $ECHO_N "(cached) $ECHO_C" >&6
14518 cat >conftest.$ac_ext <<_ACEOF
14521 cat confdefs.h >>conftest.$ac_ext
14522 cat >>conftest.$ac_ext <<_ACEOF
14523 /* end confdefs.h. */
14524 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14525 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14526 #define dlopen innocuous_dlopen
14528 /* System header to define __stub macros and hopefully few prototypes,
14529 which can conflict with char dlopen (); below.
14530 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14531 <limits.h> exists even on freestanding compilers. */
14534 # include <limits.h>
14536 # include <assert.h>
14541 /* Override any gcc2 internal prototype to avoid an error. */
14546 /* We use char because int might match the return type of a gcc2
14547 builtin and then its argument prototype would still apply. */
14549 /* The GNU C library defines this for functions which it implements
14550 to always fail with ENOSYS. Some functions are actually named
14551 something starting with __ and the normal name is an alias. */
14552 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14555 char (*f) () = dlopen;
14564 return f != dlopen;
14569 rm -f conftest.$ac_objext conftest$ac_exeext
14570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14571 (eval $ac_link) 2>conftest.er1
14573 grep -v '^ *+' conftest.er1 >conftest.err
14575 cat conftest.err >&5
14576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577 (exit $ac_status); } &&
14578 { ac_try='test -z "$ac_cxx_werror_flag"
14579 || test ! -s conftest.err'
14580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14581 (eval $ac_try) 2>&5
14583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584 (exit $ac_status); }; } &&
14585 { ac_try='test -s conftest$ac_exeext'
14586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14587 (eval $ac_try) 2>&5
14589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590 (exit $ac_status); }; }; then
14591 ac_cv_func_dlopen=yes
14593 echo "$as_me: failed program was:" >&5
14594 sed 's/^/| /' conftest.$ac_ext >&5
14596 ac_cv_func_dlopen=no
14598 rm -f conftest.err conftest.$ac_objext \
14599 conftest$ac_exeext conftest.$ac_ext
14601 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14602 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14603 if test $ac_cv_func_dlopen = yes; then
14604 lt_cv_dlopen="dlopen"
14606 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14607 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14608 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14609 echo $ECHO_N "(cached) $ECHO_C" >&6
14611 ac_check_lib_save_LIBS=$LIBS
14613 cat >conftest.$ac_ext <<_ACEOF
14616 cat confdefs.h >>conftest.$ac_ext
14617 cat >>conftest.$ac_ext <<_ACEOF
14618 /* end confdefs.h. */
14620 /* Override any gcc2 internal prototype to avoid an error. */
14624 /* We use char because int might match the return type of a gcc2
14625 builtin and then its argument prototype would still apply. */
14635 rm -f conftest.$ac_objext conftest$ac_exeext
14636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14637 (eval $ac_link) 2>conftest.er1
14639 grep -v '^ *+' conftest.er1 >conftest.err
14641 cat conftest.err >&5
14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); } &&
14644 { ac_try='test -z "$ac_cxx_werror_flag"
14645 || test ! -s conftest.err'
14646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14647 (eval $ac_try) 2>&5
14649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650 (exit $ac_status); }; } &&
14651 { ac_try='test -s conftest$ac_exeext'
14652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14653 (eval $ac_try) 2>&5
14655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656 (exit $ac_status); }; }; then
14657 ac_cv_lib_dl_dlopen=yes
14659 echo "$as_me: failed program was:" >&5
14660 sed 's/^/| /' conftest.$ac_ext >&5
14662 ac_cv_lib_dl_dlopen=no
14664 rm -f conftest.err conftest.$ac_objext \
14665 conftest$ac_exeext conftest.$ac_ext
14666 LIBS=$ac_check_lib_save_LIBS
14668 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14669 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14670 if test $ac_cv_lib_dl_dlopen = yes; then
14671 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14673 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14674 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14675 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14676 echo $ECHO_N "(cached) $ECHO_C" >&6
14678 ac_check_lib_save_LIBS=$LIBS
14679 LIBS="-lsvld $LIBS"
14680 cat >conftest.$ac_ext <<_ACEOF
14683 cat confdefs.h >>conftest.$ac_ext
14684 cat >>conftest.$ac_ext <<_ACEOF
14685 /* end confdefs.h. */
14687 /* Override any gcc2 internal prototype to avoid an error. */
14691 /* We use char because int might match the return type of a gcc2
14692 builtin and then its argument prototype would still apply. */
14702 rm -f conftest.$ac_objext conftest$ac_exeext
14703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14704 (eval $ac_link) 2>conftest.er1
14706 grep -v '^ *+' conftest.er1 >conftest.err
14708 cat conftest.err >&5
14709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710 (exit $ac_status); } &&
14711 { ac_try='test -z "$ac_cxx_werror_flag"
14712 || test ! -s conftest.err'
14713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14714 (eval $ac_try) 2>&5
14716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717 (exit $ac_status); }; } &&
14718 { ac_try='test -s conftest$ac_exeext'
14719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14720 (eval $ac_try) 2>&5
14722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723 (exit $ac_status); }; }; then
14724 ac_cv_lib_svld_dlopen=yes
14726 echo "$as_me: failed program was:" >&5
14727 sed 's/^/| /' conftest.$ac_ext >&5
14729 ac_cv_lib_svld_dlopen=no
14731 rm -f conftest.err conftest.$ac_objext \
14732 conftest$ac_exeext conftest.$ac_ext
14733 LIBS=$ac_check_lib_save_LIBS
14735 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14736 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14737 if test $ac_cv_lib_svld_dlopen = yes; then
14738 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14740 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14741 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14742 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14743 echo $ECHO_N "(cached) $ECHO_C" >&6
14745 ac_check_lib_save_LIBS=$LIBS
14747 cat >conftest.$ac_ext <<_ACEOF
14750 cat confdefs.h >>conftest.$ac_ext
14751 cat >>conftest.$ac_ext <<_ACEOF
14752 /* end confdefs.h. */
14754 /* Override any gcc2 internal prototype to avoid an error. */
14758 /* We use char because int might match the return type of a gcc2
14759 builtin and then its argument prototype would still apply. */
14769 rm -f conftest.$ac_objext conftest$ac_exeext
14770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14771 (eval $ac_link) 2>conftest.er1
14773 grep -v '^ *+' conftest.er1 >conftest.err
14775 cat conftest.err >&5
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); } &&
14778 { ac_try='test -z "$ac_cxx_werror_flag"
14779 || test ! -s conftest.err'
14780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14781 (eval $ac_try) 2>&5
14783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784 (exit $ac_status); }; } &&
14785 { ac_try='test -s conftest$ac_exeext'
14786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14787 (eval $ac_try) 2>&5
14789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790 (exit $ac_status); }; }; then
14791 ac_cv_lib_dld_dld_link=yes
14793 echo "$as_me: failed program was:" >&5
14794 sed 's/^/| /' conftest.$ac_ext >&5
14796 ac_cv_lib_dld_dld_link=no
14798 rm -f conftest.err conftest.$ac_objext \
14799 conftest$ac_exeext conftest.$ac_ext
14800 LIBS=$ac_check_lib_save_LIBS
14802 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14803 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14804 if test $ac_cv_lib_dld_dld_link = yes; then
14805 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14826 if test "x$lt_cv_dlopen" != xno; then
14832 case $lt_cv_dlopen in
14834 save_CPPFLAGS="$CPPFLAGS"
14835 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14837 save_LDFLAGS="$LDFLAGS"
14838 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14841 LIBS="$lt_cv_dlopen_libs $LIBS"
14843 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14844 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14845 if test "${lt_cv_dlopen_self+set}" = set; then
14846 echo $ECHO_N "(cached) $ECHO_C" >&6
14848 if test "$cross_compiling" = yes; then :
14849 lt_cv_dlopen_self=cross
14851 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14852 lt_status=$lt_dlunknown
14853 cat > conftest.$ac_ext <<EOF
14854 #line 14854 "configure"
14855 #include "confdefs.h"
14864 # define LT_DLGLOBAL RTLD_GLOBAL
14867 # define LT_DLGLOBAL DL_GLOBAL
14869 # define LT_DLGLOBAL 0
14873 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14874 find out it does not work in some platform. */
14875 #ifndef LT_DLLAZY_OR_NOW
14877 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14880 # define LT_DLLAZY_OR_NOW DL_LAZY
14883 # define LT_DLLAZY_OR_NOW RTLD_NOW
14886 # define LT_DLLAZY_OR_NOW DL_NOW
14888 # define LT_DLLAZY_OR_NOW 0
14896 extern "C" void exit (int);
14899 void fnord() { int i=42;}
14902 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14903 int status = $lt_dlunknown;
14907 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14908 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14909 /* dlclose (self); */
14915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14916 (eval $ac_link) 2>&5
14918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14920 (./conftest; exit; ) 2>/dev/null
14922 case x$lt_status in
14923 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14924 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14925 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14928 # compilation failed
14929 lt_cv_dlopen_self=no
14936 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14937 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14939 if test "x$lt_cv_dlopen_self" = xyes; then
14940 LDFLAGS="$LDFLAGS $link_static_flag"
14941 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14942 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14943 if test "${lt_cv_dlopen_self_static+set}" = set; then
14944 echo $ECHO_N "(cached) $ECHO_C" >&6
14946 if test "$cross_compiling" = yes; then :
14947 lt_cv_dlopen_self_static=cross
14949 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14950 lt_status=$lt_dlunknown
14951 cat > conftest.$ac_ext <<EOF
14952 #line 14952 "configure"
14953 #include "confdefs.h"
14962 # define LT_DLGLOBAL RTLD_GLOBAL
14965 # define LT_DLGLOBAL DL_GLOBAL
14967 # define LT_DLGLOBAL 0
14971 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14972 find out it does not work in some platform. */
14973 #ifndef LT_DLLAZY_OR_NOW
14975 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14978 # define LT_DLLAZY_OR_NOW DL_LAZY
14981 # define LT_DLLAZY_OR_NOW RTLD_NOW
14984 # define LT_DLLAZY_OR_NOW DL_NOW
14986 # define LT_DLLAZY_OR_NOW 0
14994 extern "C" void exit (int);
14997 void fnord() { int i=42;}
15000 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15001 int status = $lt_dlunknown;
15005 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15006 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15007 /* dlclose (self); */
15013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15014 (eval $ac_link) 2>&5
15016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15017 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15018 (./conftest; exit; ) 2>/dev/null
15020 case x$lt_status in
15021 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15022 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15023 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
15026 # compilation failed
15027 lt_cv_dlopen_self_static=no
15034 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
15035 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
15038 CPPFLAGS="$save_CPPFLAGS"
15039 LDFLAGS="$save_LDFLAGS"
15044 case $lt_cv_dlopen_self in
15045 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15046 *) enable_dlopen_self=unknown ;;
15049 case $lt_cv_dlopen_self_static in
15050 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15051 *) enable_dlopen_self_static=unknown ;;
15056 # The else clause should only fire when bootstrapping the
15057 # libtool distribution, otherwise you forgot to ship ltmain.sh
15058 # with your package, and you will get complaints that there are
15059 # no rules to generate ltmain.sh.
15060 if test -f "$ltmain"; then
15061 # See if we are running on zsh, and set the options which allow our commands through
15062 # without removal of \ escapes.
15063 if test -n "${ZSH_VERSION+set}" ; then
15064 setopt NO_GLOB_SUBST
15066 # Now quote all the things that may contain metacharacters while being
15067 # careful not to overquote the AC_SUBSTed values. We take copies of the
15068 # variables and quote the copies for generation of the libtool script.
15069 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15071 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15072 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15073 deplibs_check_method reload_flag reload_cmds need_locks \
15074 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15075 lt_cv_sys_global_symbol_to_c_name_address \
15076 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15077 old_postinstall_cmds old_postuninstall_cmds \
15081 lt_prog_compiler_wl_CXX \
15082 lt_prog_compiler_pic_CXX \
15083 lt_prog_compiler_static_CXX \
15084 lt_prog_compiler_no_builtin_flag_CXX \
15085 export_dynamic_flag_spec_CXX \
15086 thread_safe_flag_spec_CXX \
15087 whole_archive_flag_spec_CXX \
15088 enable_shared_with_static_runtimes_CXX \
15089 old_archive_cmds_CXX \
15090 old_archive_from_new_cmds_CXX \
15091 predep_objects_CXX \
15092 postdep_objects_CXX \
15095 compiler_lib_search_path_CXX \
15097 archive_expsym_cmds_CXX \
15098 postinstall_cmds_CXX \
15099 postuninstall_cmds_CXX \
15100 old_archive_from_expsyms_cmds_CXX \
15101 allow_undefined_flag_CXX \
15102 no_undefined_flag_CXX \
15103 export_symbols_cmds_CXX \
15104 hardcode_libdir_flag_spec_CXX \
15105 hardcode_libdir_flag_spec_ld_CXX \
15106 hardcode_libdir_separator_CXX \
15107 hardcode_automatic_CXX \
15109 module_expsym_cmds_CXX \
15110 lt_cv_prog_compiler_c_o_CXX \
15111 exclude_expsyms_CXX \
15112 include_expsyms_CXX; do
15115 old_archive_cmds_CXX | \
15116 old_archive_from_new_cmds_CXX | \
15117 archive_cmds_CXX | \
15118 archive_expsym_cmds_CXX | \
15119 module_cmds_CXX | \
15120 module_expsym_cmds_CXX | \
15121 old_archive_from_expsyms_cmds_CXX | \
15122 export_symbols_cmds_CXX | \
15123 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15124 postinstall_cmds | postuninstall_cmds | \
15125 old_postinstall_cmds | old_postuninstall_cmds | \
15126 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15127 # Double-quote double-evaled strings.
15128 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15131 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15137 *'\$0 --fallback-echo"')
15138 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15144 cat <<__EOF__ >> "$cfgfile"
15145 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15147 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15149 # Shell to use when invoking shell scripts.
15152 # Whether or not to build shared libraries.
15153 build_libtool_libs=$enable_shared
15155 # Whether or not to build static libraries.
15156 build_old_libs=$enable_static
15158 # Whether or not to add -lc for building shared libraries.
15159 build_libtool_need_lc=$archive_cmds_need_lc_CXX
15161 # Whether or not to disallow shared libs when runtime libs are static
15162 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15164 # Whether or not to optimize for fast installation.
15165 fast_install=$enable_fast_install
15168 host_alias=$host_alias
15172 # The build system.
15173 build_alias=$build_alias
15177 # An echo program that does not interpret backslashes.
15182 AR_FLAGS=$lt_AR_FLAGS
15187 # A language-specific compiler.
15188 CC=$lt_compiler_CXX
15190 # Is the compiler the GNU C compiler?
15196 # The linker used to build libraries.
15199 # Whether we need hard or soft links.
15202 # A BSD-compatible nm program.
15205 # A symbol stripping program
15208 # Used to examine libraries when file_magic_cmd begins "file"
15209 MAGIC_CMD=$MAGIC_CMD
15211 # Used on cygwin: DLL creation program.
15214 # Used on cygwin: object dumper.
15217 # Used on cygwin: assembler.
15220 # The name of the directory that contains temporary libtool files.
15223 # How to create reloadable object files.
15224 reload_flag=$lt_reload_flag
15225 reload_cmds=$lt_reload_cmds
15227 # How to pass a linker flag through the compiler.
15228 wl=$lt_lt_prog_compiler_wl_CXX
15230 # Object file suffix (normally "o").
15231 objext="$ac_objext"
15233 # Old archive suffix (normally "a").
15236 # Shared library suffix (normally ".so").
15237 shrext_cmds='$shrext_cmds'
15239 # Executable file suffix (normally "").
15242 # Additional compiler flags for building library objects.
15243 pic_flag=$lt_lt_prog_compiler_pic_CXX
15246 # What is the maximum length of a command?
15247 max_cmd_len=$lt_cv_sys_max_cmd_len
15249 # Does compiler simultaneously support -c and -o options?
15250 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15252 # Must we lock files when doing compilation?
15253 need_locks=$lt_need_locks
15255 # Do we need the lib prefix for modules?
15256 need_lib_prefix=$need_lib_prefix
15258 # Do we need a version for libraries?
15259 need_version=$need_version
15261 # Whether dlopen is supported.
15262 dlopen_support=$enable_dlopen
15264 # Whether dlopen of programs is supported.
15265 dlopen_self=$enable_dlopen_self
15267 # Whether dlopen of statically linked programs is supported.
15268 dlopen_self_static=$enable_dlopen_self_static
15270 # Compiler flag to prevent dynamic linking.
15271 link_static_flag=$lt_lt_prog_compiler_static_CXX
15273 # Compiler flag to turn off builtin functions.
15274 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15276 # Compiler flag to allow reflexive dlopens.
15277 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15279 # Compiler flag to generate shared objects directly from archives.
15280 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15282 # Compiler flag to generate thread-safe objects.
15283 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15285 # Library versioning type.
15286 version_type=$version_type
15288 # Format of library name prefix.
15289 libname_spec=$lt_libname_spec
15291 # List of archive names. First name is the real one, the rest are links.
15292 # The last name is the one that the linker finds with -lNAME.
15293 library_names_spec=$lt_library_names_spec
15295 # The coded name of the library, if different from the real name.
15296 soname_spec=$lt_soname_spec
15298 # Commands used to build and install an old-style archive.
15300 old_archive_cmds=$lt_old_archive_cmds_CXX
15301 old_postinstall_cmds=$lt_old_postinstall_cmds
15302 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15304 # Create an old-style archive from a shared archive.
15305 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15307 # Create a temporary old-style archive to link instead of a shared archive.
15308 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15310 # Commands used to build and install a shared archive.
15311 archive_cmds=$lt_archive_cmds_CXX
15312 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15313 postinstall_cmds=$lt_postinstall_cmds
15314 postuninstall_cmds=$lt_postuninstall_cmds
15316 # Commands used to build a loadable module (assumed same as above if empty)
15317 module_cmds=$lt_module_cmds_CXX
15318 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15320 # Commands to strip libraries.
15321 old_striplib=$lt_old_striplib
15322 striplib=$lt_striplib
15324 # Dependencies to place before the objects being linked to create a
15326 predep_objects=$lt_predep_objects_CXX
15328 # Dependencies to place after the objects being linked to create a
15330 postdep_objects=$lt_postdep_objects_CXX
15332 # Dependencies to place before the objects being linked to create a
15334 predeps=$lt_predeps_CXX
15336 # Dependencies to place after the objects being linked to create a
15338 postdeps=$lt_postdeps_CXX
15340 # The library search path used internally by the compiler when linking
15341 # a shared library.
15342 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15344 # Method to check whether dependent libraries are shared objects.
15345 deplibs_check_method=$lt_deplibs_check_method
15347 # Command to use when deplibs_check_method == file_magic.
15348 file_magic_cmd=$lt_file_magic_cmd
15350 # Flag that allows shared libraries with undefined symbols to be built.
15351 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15353 # Flag that forces no undefined symbols.
15354 no_undefined_flag=$lt_no_undefined_flag_CXX
15356 # Commands used to finish a libtool library installation in a directory.
15357 finish_cmds=$lt_finish_cmds
15359 # Same as above, but a single script fragment to be evaled but not shown.
15360 finish_eval=$lt_finish_eval
15362 # Take the output of nm and produce a listing of raw symbols and C names.
15363 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15365 # Transform the output of nm in a proper C declaration
15366 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15368 # Transform the output of nm in a C name address pair
15369 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15371 # This is the shared library runtime path variable.
15372 runpath_var=$runpath_var
15374 # This is the shared library path variable.
15375 shlibpath_var=$shlibpath_var
15377 # Is shlibpath searched before the hard-coded library search path?
15378 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15380 # How to hardcode a shared library path into an executable.
15381 hardcode_action=$hardcode_action_CXX
15383 # Whether we should hardcode library paths into libraries.
15384 hardcode_into_libs=$hardcode_into_libs
15386 # Flag to hardcode \$libdir into a binary during linking.
15387 # This must work even if \$libdir does not exist.
15388 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15390 # If ld is used when linking, flag to hardcode \$libdir into
15391 # a binary during linking. This must work even if \$libdir does
15393 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15395 # Whether we need a single -rpath flag with a separated argument.
15396 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15398 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15399 # resulting binary.
15400 hardcode_direct=$hardcode_direct_CXX
15402 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15403 # resulting binary.
15404 hardcode_minus_L=$hardcode_minus_L_CXX
15406 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15407 # the resulting binary.
15408 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15410 # Set to yes if building a shared library automatically hardcodes DIR into the library
15411 # and all subsequent libraries and executables linked against it.
15412 hardcode_automatic=$hardcode_automatic_CXX
15414 # Variables whose values should be saved in libtool wrapper scripts and
15415 # restored at relink time.
15416 variables_saved_for_relink="$variables_saved_for_relink"
15418 # Whether libtool must link a program against all its dependency libraries.
15419 link_all_deplibs=$link_all_deplibs_CXX
15421 # Compile-time system search path for libraries
15422 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15424 # Run-time system search path for libraries
15425 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15427 # Fix the shell variable \$srcfile for the compiler.
15428 fix_srcfile_path="$fix_srcfile_path_CXX"
15430 # Set to yes if exported symbols are required.
15431 always_export_symbols=$always_export_symbols_CXX
15433 # The commands to list exported symbols.
15434 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15436 # The commands to extract the exported symbol list from a shared archive.
15437 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15439 # Symbols that should not be listed in the preloaded symbols.
15440 exclude_expsyms=$lt_exclude_expsyms_CXX
15442 # Symbols that must always be exported.
15443 include_expsyms=$lt_include_expsyms_CXX
15445 # ### END LIBTOOL TAG CONFIG: $tagname
15451 # If there is no Makefile yet, we rely on a make rule to execute
15452 # `config.status --recheck' to rerun these tests and create the
15453 # libtool script then.
15454 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15455 if test -f "$ltmain_in"; then
15456 test -f Makefile && make "$ltmain"
15462 ac_cpp='$CPP $CPPFLAGS'
15463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15471 with_gnu_ldcxx=$with_gnu_ld
15472 with_gnu_ld=$lt_save_with_gnu_ld
15473 lt_cv_path_LDCXX=$lt_cv_path_LD
15474 lt_cv_path_LD=$lt_save_path_LD
15475 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15476 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15484 if test -n "$F77" && test "X$F77" != "Xno"; then
15487 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15488 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15489 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15492 archive_cmds_need_lc_F77=no
15493 allow_undefined_flag_F77=
15494 always_export_symbols_F77=no
15495 archive_expsym_cmds_F77=
15496 export_dynamic_flag_spec_F77=
15497 hardcode_direct_F77=no
15498 hardcode_libdir_flag_spec_F77=
15499 hardcode_libdir_flag_spec_ld_F77=
15500 hardcode_libdir_separator_F77=
15501 hardcode_minus_L_F77=no
15502 hardcode_automatic_F77=no
15504 module_expsym_cmds_F77=
15505 link_all_deplibs_F77=unknown
15506 old_archive_cmds_F77=$old_archive_cmds
15507 no_undefined_flag_F77=
15508 whole_archive_flag_spec_F77=
15509 enable_shared_with_static_runtimes_F77=no
15511 # Source file extension for f77 test sources.
15514 # Object file extension for compiled f77 test sources.
15518 # Code to be used in simple compile tests
15519 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
15521 # Code to be used in simple link tests
15522 lt_simple_link_test_code=" program t\n end\n"
15524 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15526 # If no C compiler was specified, use CC.
15529 # Allow CC to be a program name with arguments.
15533 # save warnings/boilerplate of simple test code
15534 ac_outfile=conftest.$ac_objext
15535 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15536 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15537 _lt_compiler_boilerplate=`cat conftest.err`
15540 ac_outfile=conftest.$ac_objext
15541 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15542 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15543 _lt_linker_boilerplate=`cat conftest.err`
15547 # Allow CC to be a program name with arguments.
15552 for cc_temp in $compiler""; do
15554 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15555 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15560 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15563 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15564 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
15565 echo "$as_me:$LINENO: result: $can_build_shared" >&5
15566 echo "${ECHO_T}$can_build_shared" >&6
15568 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15569 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
15570 test "$can_build_shared" = "no" && enable_shared=no
15572 # On AIX, shared libraries and static libraries use the same namespace, and
15573 # are all built from PIC.
15576 test "$enable_shared" = yes && enable_static=no
15577 if test -n "$RANLIB"; then
15578 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15579 postinstall_cmds='$RANLIB $lib'
15583 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15584 test "$enable_shared" = yes && enable_static=no
15588 echo "$as_me:$LINENO: result: $enable_shared" >&5
15589 echo "${ECHO_T}$enable_shared" >&6
15591 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15592 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
15593 # Make sure either enable_shared or enable_static is yes.
15594 test "$enable_shared" = yes || enable_static=yes
15595 echo "$as_me:$LINENO: result: $enable_static" >&5
15596 echo "${ECHO_T}$enable_static" >&6
15598 test "$ld_shlibs_F77" = no && can_build_shared=no
15603 lt_prog_compiler_wl_F77=
15604 lt_prog_compiler_pic_F77=
15605 lt_prog_compiler_static_F77=
15607 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15608 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15610 if test "$GCC" = yes; then
15611 lt_prog_compiler_wl_F77='-Wl,'
15612 lt_prog_compiler_static_F77='-static'
15616 # All AIX code is PIC.
15617 if test "$host_cpu" = ia64; then
15618 # AIX 5 now supports IA64 processor
15619 lt_prog_compiler_static_F77='-Bstatic'
15624 # FIXME: we need at least 68020 code to build shared libraries, but
15625 # adding the `-m68020' flag to GCC prevents building anything better,
15627 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15630 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15631 # PIC is the default for these OSes.
15634 mingw* | pw32* | os2*)
15635 # This hack is so that the source file can tell whether it is being
15636 # built for inclusion in a dll (and should export symbols for example).
15637 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15640 darwin* | rhapsody*)
15641 # PIC is the default on this platform
15642 # Common symbols not allowed in MH_DYLIB files
15643 lt_prog_compiler_pic_F77='-fno-common'
15647 # Just because we use GCC doesn't mean we suddenly get shared libraries
15648 # on systems that don't support them.
15649 lt_prog_compiler_can_build_shared_F77=no
15654 if test -d /usr/nec; then
15655 lt_prog_compiler_pic_F77=-Kconform_pic
15660 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15661 # not for PA HP-UX.
15662 case "$host_cpu" in
15667 lt_prog_compiler_pic_F77='-fPIC'
15673 lt_prog_compiler_pic_F77='-fPIC'
15677 # PORTME Check for flag to pass linker flags through the system compiler.
15680 lt_prog_compiler_wl_F77='-Wl,'
15681 if test "$host_cpu" = ia64; then
15682 # AIX 5 now supports IA64 processor
15683 lt_prog_compiler_static_F77='-Bstatic'
15685 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15689 # PIC is the default on this platform
15690 # Common symbols not allowed in MH_DYLIB files
15691 case $cc_basename in
15693 lt_prog_compiler_pic_F77='-qnocommon'
15694 lt_prog_compiler_wl_F77='-Wl,'
15699 mingw* | pw32* | os2*)
15700 # This hack is so that the source file can tell whether it is being
15701 # built for inclusion in a dll (and should export symbols for example).
15702 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15705 hpux9* | hpux10* | hpux11*)
15706 lt_prog_compiler_wl_F77='-Wl,'
15707 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15708 # not for PA HP-UX.
15709 case "$host_cpu" in
15714 lt_prog_compiler_pic_F77='+Z'
15717 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15718 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15721 irix5* | irix6* | nonstopux*)
15722 lt_prog_compiler_wl_F77='-Wl,'
15723 # PIC (with -KPIC) is the default.
15724 lt_prog_compiler_static_F77='-non_shared'
15728 lt_prog_compiler_pic_F77='-KPIC'
15729 lt_prog_compiler_static_F77='-Bstatic'
15733 case $cc_basename in
15735 lt_prog_compiler_wl_F77='-Wl,'
15736 lt_prog_compiler_pic_F77='-KPIC'
15737 lt_prog_compiler_static_F77='-static'
15739 pgcc* | pgf77* | pgf90*)
15740 # Portland Group compilers (*not* the Pentium gcc compiler,
15741 # which looks to be a dead project)
15742 lt_prog_compiler_wl_F77='-Wl,'
15743 lt_prog_compiler_pic_F77='-fpic'
15744 lt_prog_compiler_static_F77='-static'
15747 lt_prog_compiler_wl_F77='-Wl,'
15748 # All Alpha code is PIC.
15749 lt_prog_compiler_static_F77='-non_shared'
15754 osf3* | osf4* | osf5*)
15755 lt_prog_compiler_wl_F77='-Wl,'
15756 # All OSF/1 code is PIC.
15757 lt_prog_compiler_static_F77='-non_shared'
15761 lt_prog_compiler_pic_F77='-Kpic'
15762 lt_prog_compiler_static_F77='-dn'
15766 lt_prog_compiler_pic_F77='-KPIC'
15767 lt_prog_compiler_static_F77='-Bstatic'
15768 case $cc_basename in
15769 f77* | f90* | f95*)
15770 lt_prog_compiler_wl_F77='-Qoption ld ';;
15772 lt_prog_compiler_wl_F77='-Wl,';;
15777 lt_prog_compiler_wl_F77='-Qoption ld '
15778 lt_prog_compiler_pic_F77='-PIC'
15779 lt_prog_compiler_static_F77='-Bstatic'
15782 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15783 lt_prog_compiler_wl_F77='-Wl,'
15784 lt_prog_compiler_pic_F77='-KPIC'
15785 lt_prog_compiler_static_F77='-Bstatic'
15789 if test -d /usr/nec ;then
15790 lt_prog_compiler_pic_F77='-Kconform_pic'
15791 lt_prog_compiler_static_F77='-Bstatic'
15796 lt_prog_compiler_wl_F77='-Wl,'
15797 lt_prog_compiler_can_build_shared_F77=no
15801 lt_prog_compiler_pic_F77='-pic'
15802 lt_prog_compiler_static_F77='-Bstatic'
15806 lt_prog_compiler_can_build_shared_F77=no
15811 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15812 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
15815 # Check to make sure the PIC flag actually works.
15817 if test -n "$lt_prog_compiler_pic_F77"; then
15819 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15820 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
15821 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15822 echo $ECHO_N "(cached) $ECHO_C" >&6
15824 lt_prog_compiler_pic_works_F77=no
15825 ac_outfile=conftest.$ac_objext
15826 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15827 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15828 # Insert the option either (1) after the last *FLAGS variable, or
15829 # (2) before a word containing "conftest.", or (3) at the end.
15830 # Note that $ac_compile itself does not contain backslashes and begins
15831 # with a dollar sign (not a hyphen), so the echo should work correctly.
15832 # The option is referenced via a variable to avoid confusing sed.
15833 lt_compile=`echo "$ac_compile" | $SED \
15834 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15835 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15836 -e 's:$: $lt_compiler_flag:'`
15837 (eval echo "\"\$as_me:15837: $lt_compile\"" >&5)
15838 (eval "$lt_compile" 2>conftest.err)
15840 cat conftest.err >&5
15841 echo "$as_me:15841: \$? = $ac_status" >&5
15842 if (exit $ac_status) && test -s "$ac_outfile"; then
15843 # The compiler can only warn and ignore the option if not recognized
15844 # So say no if there are warnings other than the usual output.
15845 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15846 $SED '/^$/d' conftest.err >conftest.er2
15847 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15848 lt_prog_compiler_pic_works_F77=yes
15854 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15855 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
15857 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15858 case $lt_prog_compiler_pic_F77 in
15860 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15863 lt_prog_compiler_pic_F77=
15864 lt_prog_compiler_can_build_shared_F77=no
15869 # For platforms which do not support PIC, -DPIC is meaningless:
15871 lt_prog_compiler_pic_F77=
15874 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15878 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15879 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15880 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15881 echo $ECHO_N "(cached) $ECHO_C" >&6
15883 lt_cv_prog_compiler_c_o_F77=no
15884 $rm -r conftest 2>/dev/null
15888 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15890 lt_compiler_flag="-o out/conftest2.$ac_objext"
15891 # Insert the option either (1) after the last *FLAGS variable, or
15892 # (2) before a word containing "conftest.", or (3) at the end.
15893 # Note that $ac_compile itself does not contain backslashes and begins
15894 # with a dollar sign (not a hyphen), so the echo should work correctly.
15895 lt_compile=`echo "$ac_compile" | $SED \
15896 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15897 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15898 -e 's:$: $lt_compiler_flag:'`
15899 (eval echo "\"\$as_me:15899: $lt_compile\"" >&5)
15900 (eval "$lt_compile" 2>out/conftest.err)
15902 cat out/conftest.err >&5
15903 echo "$as_me:15903: \$? = $ac_status" >&5
15904 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15906 # The compiler can only warn and ignore the option if not recognized
15907 # So say no if there are warnings
15908 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
15909 $SED '/^$/d' out/conftest.err >out/conftest.er2
15910 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15911 lt_cv_prog_compiler_c_o_F77=yes
15916 # SGI C++ compiler will create directory out/ii_files/ for
15917 # template instantiation
15918 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15919 $rm out/* && rmdir out
15925 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15926 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15929 hard_links="nottested"
15930 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15931 # do not overwrite the value of need_locks provided by the user
15932 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15933 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15936 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15938 ln conftest.a conftest.b 2>&5 || hard_links=no
15939 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15940 echo "$as_me:$LINENO: result: $hard_links" >&5
15941 echo "${ECHO_T}$hard_links" >&6
15942 if test "$hard_links" = no; then
15943 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15944 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15951 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15952 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15955 allow_undefined_flag_F77=
15956 enable_shared_with_static_runtimes_F77=no
15958 archive_expsym_cmds_F77=
15959 old_archive_From_new_cmds_F77=
15960 old_archive_from_expsyms_cmds_F77=
15961 export_dynamic_flag_spec_F77=
15962 whole_archive_flag_spec_F77=
15963 thread_safe_flag_spec_F77=
15964 hardcode_libdir_flag_spec_F77=
15965 hardcode_libdir_flag_spec_ld_F77=
15966 hardcode_libdir_separator_F77=
15967 hardcode_direct_F77=no
15968 hardcode_minus_L_F77=no
15969 hardcode_shlibpath_var_F77=unsupported
15970 link_all_deplibs_F77=unknown
15971 hardcode_automatic_F77=no
15973 module_expsym_cmds_F77=
15974 always_export_symbols_F77=no
15975 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15976 # include_expsyms should be a list of space-separated symbols to be *always*
15977 # included in the symbol list
15978 include_expsyms_F77=
15979 # exclude_expsyms can be an extended regexp of symbols to exclude
15980 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15981 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15982 # as well as any symbol that contains `d'.
15983 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15984 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15985 # platforms (ab)use it in PIC code, but their linkers get confused if
15986 # the symbol is explicitly referenced. Since portable code cannot
15987 # rely on this symbol name, it's probably fine to never include it in
15988 # preloaded symbol tables.
15989 extract_expsyms_cmds=
15990 # Just being paranoid about ensuring that cc_basename is set.
15991 for cc_temp in $compiler""; do
15993 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15994 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15999 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16002 cygwin* | mingw* | pw32*)
16003 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16004 # When not using gcc, we currently assume that we are using
16005 # Microsoft Visual C++.
16006 if test "$GCC" != yes; then
16016 if test "$with_gnu_ld" = yes; then
16017 # If archive_cmds runs LD, not CC, wlarc should be empty
16020 # Set some defaults for GNU ld with shared library support. These
16021 # are reset later if shared libraries are not supported. Putting them
16022 # here allows them to be overridden if necessary.
16023 runpath_var=LD_RUN_PATH
16024 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
16025 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
16026 # ancient GNU ld didn't support --whole-archive et. al.
16027 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16028 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16030 whole_archive_flag_spec_F77=
16032 supports_anon_versioning=no
16033 case `$LD -v 2>/dev/null` in
16034 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16035 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16036 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16037 *\ 2.11.*) ;; # other 2.11 versions
16038 *) supports_anon_versioning=yes ;;
16041 # See if GNU ld supports shared libraries.
16043 aix3* | aix4* | aix5*)
16044 # On AIX/PPC, the GNU linker is very broken
16045 if test "$host_cpu" != ia64; then
16049 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16050 *** to be unable to reliably create shared libraries on AIX.
16051 *** Therefore, libtool is disabling shared libraries support. If you
16052 *** really care for shared libraries, you may want to modify your PATH
16053 *** so that a non-GNU linker is found, and then restart.
16060 archive_cmds_F77='$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)'
16061 hardcode_libdir_flag_spec_F77='-L$libdir'
16062 hardcode_minus_L_F77=yes
16064 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16065 # that the semantics of dynamic libraries on AmigaOS, at least up
16066 # to version 4, is to share data among multiple programs linked
16067 # with the same dynamic library. Since this doesn't match the
16068 # behavior of shared libraries on other platforms, we can't use
16074 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16075 allow_undefined_flag_F77=unsupported
16076 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16077 # support --undefined. This deserves some investigation. FIXME
16078 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16084 cygwin* | mingw* | pw32*)
16085 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16086 # as there is no search path for DLLs.
16087 hardcode_libdir_flag_spec_F77='-L$libdir'
16088 allow_undefined_flag_F77=unsupported
16089 always_export_symbols_F77=no
16090 enable_shared_with_static_runtimes_F77=yes
16091 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16093 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16094 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16095 # If the export-symbols file already is a .def file (1st line
16096 # is EXPORTS), use it as is; otherwise, prepend...
16097 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16098 cp $export_symbols $output_objdir/$soname.def;
16100 echo EXPORTS > $output_objdir/$soname.def;
16101 cat $export_symbols >> $output_objdir/$soname.def;
16103 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16110 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16112 case $cc_basename,$host_cpu in
16113 pgcc*) # Portland Group C compiler
16114 whole_archive_flag_spec_F77='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16115 tmp_addflag=' $pic_flag'
16117 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
16118 whole_archive_flag_spec_F77='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16119 tmp_addflag=' $pic_flag -Mnomain' ;;
16120 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16121 tmp_addflag=' -i_dynamic' ;;
16122 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16123 tmp_addflag=' -i_dynamic -nofor_main' ;;
16124 ifc* | ifort*) # Intel Fortran compiler
16125 tmp_addflag=' -nofor_main' ;;
16127 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16129 if test $supports_anon_versioning = yes; then
16130 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16131 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16132 $echo "local: *; };" >> $output_objdir/$libname.ver~
16133 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16141 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16142 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16145 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16146 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16151 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16155 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16156 *** create shared libraries on Solaris systems. Therefore, libtool
16157 *** is disabling shared libraries support. We urge you to upgrade GNU
16158 *** binutils to release 2.9.1 or newer. Another option is to modify
16159 *** your PATH or compiler configuration so that the native linker is
16160 *** used, and then restart.
16163 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16164 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16165 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16172 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16174 hardcode_direct_F77=yes
16175 hardcode_shlibpath_var_F77=no
16179 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16180 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16181 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16188 if test "$ld_shlibs_F77" = no; then
16190 hardcode_libdir_flag_spec_F77=
16191 export_dynamic_flag_spec_F77=
16192 whole_archive_flag_spec_F77=
16195 # PORTME fill in a description of your system's linker (not GNU ld)
16198 allow_undefined_flag_F77=unsupported
16199 always_export_symbols_F77=yes
16200 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16201 # Note: this linker hardcodes the directories in LIBPATH if there
16202 # are no directories specified by -L.
16203 hardcode_minus_L_F77=yes
16204 if test "$GCC" = yes && test -z "$link_static_flag"; then
16205 # Neither direct hardcoding nor static linking is supported with a
16207 hardcode_direct_F77=unsupported
16212 if test "$host_cpu" = ia64; then
16213 # On IA64, the linker does run time linking by default, so we don't
16214 # have to do anything special.
16215 aix_use_runtimelinking=no
16216 exp_sym_flag='-Bexport'
16219 # If we're using GNU nm, then we don't want the "-C" option.
16220 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16221 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16222 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16224 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16226 aix_use_runtimelinking=no
16228 # Test if we are trying to use run time linking or normal
16229 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16230 # need to do runtime linking.
16231 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16232 for ld_flag in $LDFLAGS; do
16233 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16234 aix_use_runtimelinking=yes
16240 exp_sym_flag='-bexport'
16241 no_entry_flag='-bnoentry'
16244 # When large executables or shared objects are built, AIX ld can
16245 # have problems creating the table of contents. If linking a library
16246 # or program results in "error TOC overflow" add -mminimal-toc to
16247 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16248 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16250 archive_cmds_F77=''
16251 hardcode_direct_F77=yes
16252 hardcode_libdir_separator_F77=':'
16253 link_all_deplibs_F77=yes
16255 if test "$GCC" = yes; then
16256 case $host_os in aix4.[012]|aix4.[012].*)
16257 # We only want to do this on AIX 4.2 and lower, the check
16258 # below for broken collect2 doesn't work under 4.3+
16259 collect2name=`${CC} -print-prog-name=collect2`
16260 if test -f "$collect2name" && \
16261 strings "$collect2name" | grep resolve_lib_name >/dev/null
16263 # We have reworked collect2
16264 hardcode_direct_F77=yes
16266 # We have old collect2
16267 hardcode_direct_F77=unsupported
16268 # It fails to find uninstalled libraries when the uninstalled
16269 # path is not listed in the libpath. Setting hardcode_minus_L
16270 # to unsupported forces relinking
16271 hardcode_minus_L_F77=yes
16272 hardcode_libdir_flag_spec_F77='-L$libdir'
16273 hardcode_libdir_separator_F77=
16276 shared_flag='-shared'
16277 if test "$aix_use_runtimelinking" = yes; then
16278 shared_flag="$shared_flag "'${wl}-G'
16282 if test "$host_cpu" = ia64; then
16283 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16284 # chokes on -Wl,-G. The following line is correct:
16287 if test "$aix_use_runtimelinking" = yes; then
16288 shared_flag='${wl}-G'
16290 shared_flag='${wl}-bM:SRE'
16295 # It seems that -bexpall does not export symbols beginning with
16296 # underscore (_), so it is better to generate a list of symbols to export.
16297 always_export_symbols_F77=yes
16298 if test "$aix_use_runtimelinking" = yes; then
16299 # Warning - without using the other runtime loading flags (-brtl),
16300 # -berok will link without error, but may produce a broken library.
16301 allow_undefined_flag_F77='-berok'
16302 # Determine the default libpath from the value encoded in an empty executable.
16303 cat >conftest.$ac_ext <<_ACEOF
16308 rm -f conftest.$ac_objext conftest$ac_exeext
16309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16310 (eval $ac_link) 2>conftest.er1
16312 grep -v '^ *+' conftest.er1 >conftest.err
16314 cat conftest.err >&5
16315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316 (exit $ac_status); } &&
16317 { ac_try='test -z "$ac_f77_werror_flag"
16318 || test ! -s conftest.err'
16319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16320 (eval $ac_try) 2>&5
16322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16323 (exit $ac_status); }; } &&
16324 { ac_try='test -s conftest$ac_exeext'
16325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16326 (eval $ac_try) 2>&5
16328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329 (exit $ac_status); }; }; then
16331 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16333 # Check for a 64-bit object if we didn't find anything.
16334 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; }
16337 echo "$as_me: failed program was:" >&5
16338 sed 's/^/| /' conftest.$ac_ext >&5
16341 rm -f conftest.err conftest.$ac_objext \
16342 conftest$ac_exeext conftest.$ac_ext
16343 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16345 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16346 archive_expsym_cmds_F77="\$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"
16348 if test "$host_cpu" = ia64; then
16349 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16350 allow_undefined_flag_F77="-z nodefs"
16351 archive_expsym_cmds_F77="\$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"
16353 # Determine the default libpath from the value encoded in an empty executable.
16354 cat >conftest.$ac_ext <<_ACEOF
16359 rm -f conftest.$ac_objext conftest$ac_exeext
16360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16361 (eval $ac_link) 2>conftest.er1
16363 grep -v '^ *+' conftest.er1 >conftest.err
16365 cat conftest.err >&5
16366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16367 (exit $ac_status); } &&
16368 { ac_try='test -z "$ac_f77_werror_flag"
16369 || test ! -s conftest.err'
16370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16371 (eval $ac_try) 2>&5
16373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16374 (exit $ac_status); }; } &&
16375 { ac_try='test -s conftest$ac_exeext'
16376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16377 (eval $ac_try) 2>&5
16379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380 (exit $ac_status); }; }; then
16382 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16384 # Check for a 64-bit object if we didn't find anything.
16385 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; }
16388 echo "$as_me: failed program was:" >&5
16389 sed 's/^/| /' conftest.$ac_ext >&5
16392 rm -f conftest.err conftest.$ac_objext \
16393 conftest$ac_exeext conftest.$ac_ext
16394 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16396 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16397 # Warning - without using the other run time loading flags,
16398 # -berok will link without error, but may produce a broken library.
16399 no_undefined_flag_F77=' ${wl}-bernotok'
16400 allow_undefined_flag_F77=' ${wl}-berok'
16401 # -bexpall does not export symbols beginning with underscore (_)
16402 always_export_symbols_F77=yes
16403 # Exported symbols can be pulled into shared objects from archives
16404 whole_archive_flag_spec_F77=' '
16405 archive_cmds_need_lc_F77=yes
16406 # This is similar to how AIX traditionally builds it's shared libraries.
16407 archive_expsym_cmds_F77="\$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'
16413 archive_cmds_F77='$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)'
16414 hardcode_libdir_flag_spec_F77='-L$libdir'
16415 hardcode_minus_L_F77=yes
16416 # see comment about different semantics on the GNU ld section
16421 export_dynamic_flag_spec_F77=-rdynamic
16424 cygwin* | mingw* | pw32*)
16425 # When not using gcc, we currently assume that we are using
16426 # Microsoft Visual C++.
16427 # hardcode_libdir_flag_spec is actually meaningless, as there is
16428 # no search path for DLLs.
16429 hardcode_libdir_flag_spec_F77=' '
16430 allow_undefined_flag_F77=unsupported
16431 # Tell ltmain to make .lib files, not .a files.
16433 # Tell ltmain to make .dll files, not .so files.
16435 # FIXME: Setting linknames here is a bad hack.
16436 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16437 # The linker will automatically build a .lib file if we build a DLL.
16438 old_archive_From_new_cmds_F77='true'
16439 # FIXME: Should let the user specify the lib program.
16440 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
16441 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16442 enable_shared_with_static_runtimes_F77=yes
16445 darwin* | rhapsody*)
16447 rhapsody* | darwin1.[012])
16448 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16451 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16452 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16454 case ${MACOSX_DEPLOYMENT_TARGET} in
16456 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16459 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16465 archive_cmds_need_lc_F77=no
16466 hardcode_direct_F77=no
16467 hardcode_automatic_F77=yes
16468 hardcode_shlibpath_var_F77=unsupported
16469 whole_archive_flag_spec_F77=''
16470 link_all_deplibs_F77=yes
16471 if test "$GCC" = yes ; then
16472 output_verbose_link_cmd='echo'
16473 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16474 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16475 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16476 archive_expsym_cmds_F77='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}'
16477 module_expsym_cmds_F77='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}'
16479 case $cc_basename in
16481 output_verbose_link_cmd='echo'
16482 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16483 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16484 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16485 archive_expsym_cmds_F77='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}'
16486 module_expsym_cmds_F77='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}'
16496 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16497 hardcode_libdir_flag_spec_F77='-L$libdir'
16498 hardcode_shlibpath_var_F77=no
16505 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16506 # support. Future versions do this automatically, but an explicit c++rt0.o
16507 # does not break anything, and helps significantly (at the cost of a little
16510 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16511 hardcode_libdir_flag_spec_F77='-R$libdir'
16512 hardcode_direct_F77=yes
16513 hardcode_shlibpath_var_F77=no
16516 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16518 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16519 hardcode_direct_F77=yes
16520 hardcode_minus_L_F77=yes
16521 hardcode_shlibpath_var_F77=no
16524 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16525 freebsd* | kfreebsd*-gnu | dragonfly*)
16526 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16527 hardcode_libdir_flag_spec_F77='-R$libdir'
16528 hardcode_direct_F77=yes
16529 hardcode_shlibpath_var_F77=no
16533 if test "$GCC" = yes; then
16534 archive_cmds_F77='$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'
16536 archive_cmds_F77='$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'
16538 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16539 hardcode_libdir_separator_F77=:
16540 hardcode_direct_F77=yes
16542 # hardcode_minus_L: Not really in the search PATH,
16543 # but as the default location of the library.
16544 hardcode_minus_L_F77=yes
16545 export_dynamic_flag_spec_F77='${wl}-E'
16549 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16550 case "$host_cpu" in
16552 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16555 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16559 case "$host_cpu" in
16561 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16564 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16568 if test "$with_gnu_ld" = no; then
16569 case "$host_cpu" in
16571 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16572 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16573 hardcode_libdir_separator_F77=:
16574 hardcode_direct_F77=no
16575 hardcode_shlibpath_var_F77=no
16578 hardcode_libdir_flag_spec_F77='-L$libdir'
16579 hardcode_direct_F77=no
16580 hardcode_shlibpath_var_F77=no
16582 # hardcode_minus_L: Not really in the search PATH,
16583 # but as the default location of the library.
16584 hardcode_minus_L_F77=yes
16587 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16588 hardcode_libdir_separator_F77=:
16589 hardcode_direct_F77=yes
16590 export_dynamic_flag_spec_F77='${wl}-E'
16592 # hardcode_minus_L: Not really in the search PATH,
16593 # but as the default location of the library.
16594 hardcode_minus_L_F77=yes
16600 irix5* | irix6* | nonstopux*)
16601 if test "$GCC" = yes; then
16602 archive_cmds_F77='$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'
16604 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16605 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16607 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16608 hardcode_libdir_separator_F77=:
16609 link_all_deplibs_F77=yes
16613 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16614 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16616 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16618 hardcode_libdir_flag_spec_F77='-R$libdir'
16619 hardcode_direct_F77=yes
16620 hardcode_shlibpath_var_F77=no
16624 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16625 hardcode_direct_F77=yes
16626 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16627 hardcode_libdir_separator_F77=:
16628 hardcode_shlibpath_var_F77=no
16632 hardcode_direct_F77=yes
16633 hardcode_shlibpath_var_F77=no
16634 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16635 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16636 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16637 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16638 export_dynamic_flag_spec_F77='${wl}-E'
16641 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16642 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16643 hardcode_libdir_flag_spec_F77='-R$libdir'
16646 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16647 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16654 hardcode_libdir_flag_spec_F77='-L$libdir'
16655 hardcode_minus_L_F77=yes
16656 allow_undefined_flag_F77=unsupported
16657 archive_cmds_F77='$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'
16658 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16662 if test "$GCC" = yes; then
16663 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16664 archive_cmds_F77='$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'
16666 allow_undefined_flag_F77=' -expect_unresolved \*'
16667 archive_cmds_F77='$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'
16669 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16670 hardcode_libdir_separator_F77=:
16673 osf4* | osf5*) # as osf3* with the addition of -msym flag
16674 if test "$GCC" = yes; then
16675 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16676 archive_cmds_F77='$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'
16677 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16679 allow_undefined_flag_F77=' -expect_unresolved \*'
16680 archive_cmds_F77='$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'
16681 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16682 $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'
16684 # Both c and cxx compiler support -rpath directly
16685 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16687 hardcode_libdir_separator_F77=:
16691 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16692 hardcode_shlibpath_var_F77=no
16693 export_dynamic_flag_spec_F77='${wl}-Bexport'
16694 runpath_var=LD_RUN_PATH
16695 hardcode_runpath_var=yes
16699 no_undefined_flag_F77=' -z text'
16700 if test "$GCC" = yes; then
16702 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16703 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16704 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16707 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16708 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16709 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16711 hardcode_libdir_flag_spec_F77='-R$libdir'
16712 hardcode_shlibpath_var_F77=no
16714 solaris2.[0-5] | solaris2.[0-5].*) ;;
16716 # The compiler driver will combine linker options so we
16717 # cannot just pass the convience library names through
16718 # without $wl, iff we do not link with $LD.
16719 # Luckily, gcc supports the same syntax we need for Sun Studio.
16720 # Supported since Solaris 2.6 (maybe 2.5.1?)
16723 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16725 whole_archive_flag_spec_F77='${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' ;;
16728 link_all_deplibs_F77=yes
16732 if test "x$host_vendor" = xsequent; then
16733 # Use $CC to link under sequent, because it throws in some extra .o
16734 # files that make .init and .fini sections work.
16735 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16737 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16739 hardcode_libdir_flag_spec_F77='-L$libdir'
16740 hardcode_direct_F77=yes
16741 hardcode_minus_L_F77=yes
16742 hardcode_shlibpath_var_F77=no
16746 case $host_vendor in
16748 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16749 hardcode_direct_F77=yes # is this really true???
16752 ## LD is ld it makes a PLAMLIB
16753 ## CC just makes a GrossModule.
16754 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16755 reload_cmds_F77='$CC -r -o $output$reload_objs'
16756 hardcode_direct_F77=no
16759 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16760 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16763 runpath_var='LD_RUN_PATH'
16764 hardcode_shlibpath_var_F77=no
16768 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16769 hardcode_shlibpath_var_F77=no
16770 export_dynamic_flag_spec_F77='-Bexport'
16774 if test -d /usr/nec; then
16775 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16776 hardcode_shlibpath_var_F77=no
16777 runpath_var=LD_RUN_PATH
16778 hardcode_runpath_var=yes
16784 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16785 hardcode_direct_F77=yes
16786 hardcode_minus_L_F77=no
16787 hardcode_shlibpath_var_F77=no
16788 hardcode_runpath_var=yes
16789 runpath_var=LD_RUN_PATH
16792 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16793 no_undefined_flag_F77='${wl}-z ${wl}text'
16794 if test "$GCC" = yes; then
16795 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16797 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16799 runpath_var='LD_RUN_PATH'
16800 hardcode_shlibpath_var_F77=no
16804 no_undefined_flag_F77=' -z text'
16805 # $CC -shared without GNU ld will not create a library from C++
16806 # object files and a static libstdc++, better avoid it by now
16807 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16808 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16809 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16810 hardcode_libdir_flag_spec_F77=
16811 hardcode_shlibpath_var_F77=no
16812 runpath_var='LD_RUN_PATH'
16816 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16817 hardcode_libdir_flag_spec_F77='-L$libdir'
16818 hardcode_shlibpath_var_F77=no
16827 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16828 echo "${ECHO_T}$ld_shlibs_F77" >&6
16829 test "$ld_shlibs_F77" = no && can_build_shared=no
16831 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16832 if test "$GCC" = yes; then
16833 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16837 # Do we need to explicitly link libc?
16839 case "x$archive_cmds_need_lc_F77" in
16841 # Assume -lc should be added
16842 archive_cmds_need_lc_F77=yes
16844 if test "$enable_shared" = yes && test "$GCC" = yes; then
16845 case $archive_cmds_F77 in
16847 # FIXME: we may have to deal with multi-command sequences.
16850 # Test whether the compiler implicitly links with -lc since on some
16851 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16852 # to ld, don't add -lc before -lgcc.
16853 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16854 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16856 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16859 (eval $ac_compile) 2>&5
16861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862 (exit $ac_status); } 2>conftest.err; then
16865 libobjs=conftest.$ac_objext
16867 wl=$lt_prog_compiler_wl_F77
16873 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16874 allow_undefined_flag_F77=
16875 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16876 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879 (exit $ac_status); }
16881 archive_cmds_need_lc_F77=no
16883 archive_cmds_need_lc_F77=yes
16885 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16887 cat conftest.err 1>&5
16890 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16891 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
16898 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16899 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16900 library_names_spec=
16901 libname_spec='lib$name'
16905 postuninstall_cmds=
16909 shlibpath_overrides_runpath=unknown
16911 dynamic_linker="$host_os ld.so"
16912 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16913 if test "$GCC" = yes; then
16914 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16915 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16916 # if the path contains ";" then we assume it to be the separator
16917 # otherwise default to the standard path separator (i.e. ":") - it is
16918 # assumed that no part of a normal pathname contains ";" but that should
16919 # okay in the real world where ";" in dirpaths is itself problematic.
16920 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16922 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16925 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16927 need_lib_prefix=unknown
16928 hardcode_into_libs=no
16930 # when you set need_version to no, make sure it does not cause -set_version
16931 # flags to be left without arguments
16932 need_version=unknown
16937 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16938 shlibpath_var=LIBPATH
16940 # AIX 3 has no versioning support, so we append a major version to the name.
16941 soname_spec='${libname}${release}${shared_ext}$major'
16948 hardcode_into_libs=yes
16949 if test "$host_cpu" = ia64; then
16950 # AIX 5 supports IA64
16951 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16952 shlibpath_var=LD_LIBRARY_PATH
16954 # With GCC up to 2.95.x, collect2 would create an import file
16955 # for dependence libraries. The import file would start with
16956 # the line `#! .'. This would cause the generated library to
16957 # depend on `.', always an invalid library. This was fixed in
16958 # development snapshots of GCC prior to 3.0.
16960 aix4 | aix4.[01] | aix4.[01].*)
16961 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16963 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16966 can_build_shared=no
16970 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16971 # soname into executable. Probably we can add versioning support to
16972 # collect2, so additional links can be useful in future.
16973 if test "$aix_use_runtimelinking" = yes; then
16974 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16975 # instead of lib<name>.a to let people know that these are not
16976 # typical AIX shared libraries.
16977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16979 # We preserve .a as extension for shared libraries through AIX4.2
16980 # and later when we are not doing run time linking.
16981 library_names_spec='${libname}${release}.a $libname.a'
16982 soname_spec='${libname}${release}${shared_ext}$major'
16984 shlibpath_var=LIBPATH
16989 library_names_spec='$libname.ixlibrary $libname.a'
16990 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16991 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'
16995 library_names_spec='${libname}${shared_ext}'
16996 dynamic_linker="$host_os ld.so"
16997 shlibpath_var=LIBRARY_PATH
17003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17004 soname_spec='${libname}${release}${shared_ext}$major'
17005 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17006 shlibpath_var=LD_LIBRARY_PATH
17007 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17008 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17009 # the default ld.so.conf also contains /usr/contrib/lib and
17010 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17011 # libtool to hard-code these into programs
17014 cygwin* | mingw* | pw32*)
17015 version_type=windows
17020 case $GCC,$host_os in
17021 yes,cygwin* | yes,mingw* | yes,pw32*)
17022 library_names_spec='$libname.dll.a'
17023 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17024 postinstall_cmds='base_file=`basename \${file}`~
17025 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17026 dldir=$destdir/`dirname \$dlpath`~
17027 test -d \$dldir || mkdir -p \$dldir~
17028 $install_prog $dir/$dlname \$dldir/$dlname'
17029 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17030 dlpath=$dir/\$dldll~
17032 shlibpath_overrides_runpath=yes
17036 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17037 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17038 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17041 # MinGW DLLs use traditional 'lib' prefix
17042 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17043 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17044 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17045 # It is most probably a Windows format PATH printed by
17046 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17047 # path with ; separators, and with drive letters. We can handle the
17048 # drive letters (cygwin fileutils understands them), so leave them,
17049 # especially as we might pass files found there to a mingw objdump,
17050 # which wouldn't understand a cygwinified path. Ahh.
17051 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17053 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17057 # pw32 DLLs use 'pw' prefix rather than 'lib'
17058 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17064 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17067 dynamic_linker='Win32 ld.exe'
17068 # FIXME: first we should search . and the directory the executable is in
17072 darwin* | rhapsody*)
17073 dynamic_linker="$host_os dyld"
17074 version_type=darwin
17077 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17078 soname_spec='${libname}${release}${major}$shared_ext'
17079 shlibpath_overrides_runpath=yes
17080 shlibpath_var=DYLD_LIBRARY_PATH
17081 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17082 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17083 if test "$GCC" = yes; then
17084 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"`
17086 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17088 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17096 soname_spec='${libname}${release}${shared_ext}$major'
17097 shlibpath_var=LD_LIBRARY_PATH
17108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17109 soname_spec='${libname}${release}${shared_ext}$major'
17110 shlibpath_var=LD_LIBRARY_PATH
17111 shlibpath_overrides_runpath=no
17112 hardcode_into_libs=yes
17113 dynamic_linker='GNU ld.so'
17116 freebsd* | dragonfly*)
17117 # DragonFly does not have aout. When/if they implement a new
17118 # versioning mechanism, adjust this.
17119 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17120 version_type=freebsd-$objformat
17121 case $version_type in
17123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17128 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17132 shlibpath_var=LD_LIBRARY_PATH
17135 shlibpath_overrides_runpath=yes
17137 freebsd3.[01]* | freebsdelf3.[01]*)
17138 shlibpath_overrides_runpath=yes
17139 hardcode_into_libs=yes
17142 shlibpath_overrides_runpath=no
17143 hardcode_into_libs=yes
17152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17153 soname_spec='${libname}${release}${shared_ext}$major'
17154 shlibpath_var=LD_LIBRARY_PATH
17155 hardcode_into_libs=yes
17158 hpux9* | hpux10* | hpux11*)
17159 # Give a soname corresponding to the major version so that dld.sl refuses to
17160 # link against other versions.
17164 case "$host_cpu" in
17167 hardcode_into_libs=yes
17168 dynamic_linker="$host_os dld.so"
17169 shlibpath_var=LD_LIBRARY_PATH
17170 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17172 soname_spec='${libname}${release}${shared_ext}$major'
17173 if test "X$HPUX_IA64_MODE" = X32; then
17174 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17176 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17178 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17182 hardcode_into_libs=yes
17183 dynamic_linker="$host_os dld.sl"
17184 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17185 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17187 soname_spec='${libname}${release}${shared_ext}$major'
17188 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17189 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17193 dynamic_linker="$host_os dld.sl"
17194 shlibpath_var=SHLIB_PATH
17195 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17197 soname_spec='${libname}${release}${shared_ext}$major'
17200 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17201 postinstall_cmds='chmod 555 $lib'
17204 irix5* | irix6* | nonstopux*)
17206 nonstopux*) version_type=nonstopux ;;
17208 if test "$lt_cv_prog_gnu_ld" = yes; then
17216 soname_spec='${libname}${release}${shared_ext}$major'
17217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17219 irix5* | nonstopux*)
17220 libsuff= shlibsuff=
17223 case $LD in # libtool.m4 will add one of these switches to LD
17224 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17225 libsuff= shlibsuff= libmagic=32-bit;;
17226 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17227 libsuff=32 shlibsuff=N32 libmagic=N32;;
17228 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17229 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17230 *) libsuff= shlibsuff= libmagic=never-match;;
17234 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17235 shlibpath_overrides_runpath=no
17236 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17237 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17238 hardcode_into_libs=yes
17241 # No shared lib support for Linux oldld, aout, or coff.
17242 linux*oldld* | linux*aout* | linux*coff*)
17246 # This must be Linux ELF.
17251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17252 soname_spec='${libname}${release}${shared_ext}$major'
17253 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17254 shlibpath_var=LD_LIBRARY_PATH
17255 shlibpath_overrides_runpath=no
17256 # This implies no fast_install, which is unacceptable.
17257 # Some rework will be needed to allow for fast_install
17258 # before this can be enabled.
17259 hardcode_into_libs=yes
17261 # Append ld.so.conf contents to the search path
17262 if test -f /etc/ld.so.conf; then
17263 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' ' '`
17264 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17267 # We used to test for /lib/ld.so.1 and disable shared libraries on
17268 # powerpc, because MkLinux only supported shared libraries with the
17269 # GNU dynamic linker. Since this was broken with cross compilers,
17270 # most powerpc-linux boxes support dynamic linking these days and
17271 # people can always --disable-shared, the test was removed, and we
17272 # assume the GNU/Linux dynamic linker is in use.
17273 dynamic_linker='GNU/Linux ld.so'
17280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17281 soname_spec='${libname}${release}${shared_ext}$major'
17282 shlibpath_var=LD_LIBRARY_PATH
17283 shlibpath_overrides_runpath=no
17284 hardcode_into_libs=yes
17285 dynamic_linker='GNU ld.so'
17292 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17294 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17295 dynamic_linker='NetBSD (a.out) ld.so'
17297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17298 soname_spec='${libname}${release}${shared_ext}$major'
17299 dynamic_linker='NetBSD ld.elf_so'
17301 shlibpath_var=LD_LIBRARY_PATH
17302 shlibpath_overrides_runpath=yes
17303 hardcode_into_libs=yes
17308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17309 shlibpath_var=LD_LIBRARY_PATH
17310 shlibpath_overrides_runpath=yes
17317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17318 soname_spec='${libname}${release}${shared_ext}$major'
17319 shlibpath_var=LD_LIBRARY_PATH
17320 shlibpath_overrides_runpath=yes
17326 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17328 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17329 *) need_version=no ;;
17331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17332 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17333 shlibpath_var=LD_LIBRARY_PATH
17334 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17336 openbsd2.[89] | openbsd2.[89].*)
17337 shlibpath_overrides_runpath=no
17340 shlibpath_overrides_runpath=yes
17344 shlibpath_overrides_runpath=yes
17349 libname_spec='$name'
17352 library_names_spec='$libname${shared_ext} $libname.a'
17353 dynamic_linker='OS/2 ld.exe'
17354 shlibpath_var=LIBPATH
17357 osf3* | osf4* | osf5*)
17361 soname_spec='${libname}${release}${shared_ext}$major'
17362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17363 shlibpath_var=LD_LIBRARY_PATH
17364 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17365 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17370 soname_spec='${libname}${release}${shared_ext}$major'
17371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17372 shlibpath_var=LD_LIBRARY_PATH
17379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17380 soname_spec='${libname}${release}${shared_ext}$major'
17381 shlibpath_var=LD_LIBRARY_PATH
17382 shlibpath_overrides_runpath=yes
17383 hardcode_into_libs=yes
17384 # ldd complains unless libraries are executable
17385 postinstall_cmds='chmod +x $lib'
17390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17391 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17392 shlibpath_var=LD_LIBRARY_PATH
17393 shlibpath_overrides_runpath=yes
17394 if test "$with_gnu_ld" = yes; then
17400 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17403 soname_spec='${libname}${release}${shared_ext}$major'
17404 shlibpath_var=LD_LIBRARY_PATH
17405 case $host_vendor in
17407 shlibpath_overrides_runpath=no
17409 export_dynamic_flag_spec='${wl}-Blargedynsym'
17410 runpath_var=LD_RUN_PATH
17418 shlibpath_overrides_runpath=no
17419 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17425 if test -d /usr/nec ;then
17427 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17428 soname_spec='$libname${shared_ext}.$major'
17429 shlibpath_var=LD_LIBRARY_PATH
17435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17436 soname_spec='${libname}${release}${shared_ext}$major'
17437 shlibpath_var=LD_LIBRARY_PATH
17444 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17445 echo "${ECHO_T}$dynamic_linker" >&6
17446 test "$dynamic_linker" = no && can_build_shared=no
17448 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17449 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17450 hardcode_action_F77=
17451 if test -n "$hardcode_libdir_flag_spec_F77" || \
17452 test -n "$runpath_var_F77" || \
17453 test "X$hardcode_automatic_F77" = "Xyes" ; then
17455 # We can hardcode non-existant directories.
17456 if test "$hardcode_direct_F77" != no &&
17457 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17458 # have to relink, otherwise we might link with an installed library
17459 # when we should be linking with a yet-to-be-installed one
17460 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17461 test "$hardcode_minus_L_F77" != no; then
17462 # Linking always hardcodes the temporary library directory.
17463 hardcode_action_F77=relink
17465 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17466 hardcode_action_F77=immediate
17469 # We cannot hardcode anything, or else we can only hardcode existing
17471 hardcode_action_F77=unsupported
17473 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17474 echo "${ECHO_T}$hardcode_action_F77" >&6
17476 if test "$hardcode_action_F77" = relink; then
17477 # Fast installation is not supported
17478 enable_fast_install=no
17479 elif test "$shlibpath_overrides_runpath" = yes ||
17480 test "$enable_shared" = no; then
17481 # Fast installation is not necessary
17482 enable_fast_install=needless
17487 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17488 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17489 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17490 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17491 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17492 echo "$as_me:$LINENO: result: yes" >&5
17493 echo "${ECHO_T}yes" >&6
17495 # FIXME - insert some real tests, host_os isn't really good enough
17498 if test -n "$STRIP" ; then
17499 striplib="$STRIP -x"
17500 echo "$as_me:$LINENO: result: yes" >&5
17501 echo "${ECHO_T}yes" >&6
17503 echo "$as_me:$LINENO: result: no" >&5
17504 echo "${ECHO_T}no" >&6
17508 echo "$as_me:$LINENO: result: no" >&5
17509 echo "${ECHO_T}no" >&6
17516 # The else clause should only fire when bootstrapping the
17517 # libtool distribution, otherwise you forgot to ship ltmain.sh
17518 # with your package, and you will get complaints that there are
17519 # no rules to generate ltmain.sh.
17520 if test -f "$ltmain"; then
17521 # See if we are running on zsh, and set the options which allow our commands through
17522 # without removal of \ escapes.
17523 if test -n "${ZSH_VERSION+set}" ; then
17524 setopt NO_GLOB_SUBST
17526 # Now quote all the things that may contain metacharacters while being
17527 # careful not to overquote the AC_SUBSTed values. We take copies of the
17528 # variables and quote the copies for generation of the libtool script.
17529 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17531 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17532 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17533 deplibs_check_method reload_flag reload_cmds need_locks \
17534 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17535 lt_cv_sys_global_symbol_to_c_name_address \
17536 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17537 old_postinstall_cmds old_postuninstall_cmds \
17541 lt_prog_compiler_wl_F77 \
17542 lt_prog_compiler_pic_F77 \
17543 lt_prog_compiler_static_F77 \
17544 lt_prog_compiler_no_builtin_flag_F77 \
17545 export_dynamic_flag_spec_F77 \
17546 thread_safe_flag_spec_F77 \
17547 whole_archive_flag_spec_F77 \
17548 enable_shared_with_static_runtimes_F77 \
17549 old_archive_cmds_F77 \
17550 old_archive_from_new_cmds_F77 \
17551 predep_objects_F77 \
17552 postdep_objects_F77 \
17555 compiler_lib_search_path_F77 \
17557 archive_expsym_cmds_F77 \
17558 postinstall_cmds_F77 \
17559 postuninstall_cmds_F77 \
17560 old_archive_from_expsyms_cmds_F77 \
17561 allow_undefined_flag_F77 \
17562 no_undefined_flag_F77 \
17563 export_symbols_cmds_F77 \
17564 hardcode_libdir_flag_spec_F77 \
17565 hardcode_libdir_flag_spec_ld_F77 \
17566 hardcode_libdir_separator_F77 \
17567 hardcode_automatic_F77 \
17569 module_expsym_cmds_F77 \
17570 lt_cv_prog_compiler_c_o_F77 \
17571 exclude_expsyms_F77 \
17572 include_expsyms_F77; do
17575 old_archive_cmds_F77 | \
17576 old_archive_from_new_cmds_F77 | \
17577 archive_cmds_F77 | \
17578 archive_expsym_cmds_F77 | \
17579 module_cmds_F77 | \
17580 module_expsym_cmds_F77 | \
17581 old_archive_from_expsyms_cmds_F77 | \
17582 export_symbols_cmds_F77 | \
17583 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17584 postinstall_cmds | postuninstall_cmds | \
17585 old_postinstall_cmds | old_postuninstall_cmds | \
17586 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17587 # Double-quote double-evaled strings.
17588 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17591 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17597 *'\$0 --fallback-echo"')
17598 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17604 cat <<__EOF__ >> "$cfgfile"
17605 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17607 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17609 # Shell to use when invoking shell scripts.
17612 # Whether or not to build shared libraries.
17613 build_libtool_libs=$enable_shared
17615 # Whether or not to build static libraries.
17616 build_old_libs=$enable_static
17618 # Whether or not to add -lc for building shared libraries.
17619 build_libtool_need_lc=$archive_cmds_need_lc_F77
17621 # Whether or not to disallow shared libs when runtime libs are static
17622 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17624 # Whether or not to optimize for fast installation.
17625 fast_install=$enable_fast_install
17628 host_alias=$host_alias
17632 # The build system.
17633 build_alias=$build_alias
17637 # An echo program that does not interpret backslashes.
17642 AR_FLAGS=$lt_AR_FLAGS
17647 # A language-specific compiler.
17648 CC=$lt_compiler_F77
17650 # Is the compiler the GNU C compiler?
17656 # The linker used to build libraries.
17659 # Whether we need hard or soft links.
17662 # A BSD-compatible nm program.
17665 # A symbol stripping program
17668 # Used to examine libraries when file_magic_cmd begins "file"
17669 MAGIC_CMD=$MAGIC_CMD
17671 # Used on cygwin: DLL creation program.
17674 # Used on cygwin: object dumper.
17677 # Used on cygwin: assembler.
17680 # The name of the directory that contains temporary libtool files.
17683 # How to create reloadable object files.
17684 reload_flag=$lt_reload_flag
17685 reload_cmds=$lt_reload_cmds
17687 # How to pass a linker flag through the compiler.
17688 wl=$lt_lt_prog_compiler_wl_F77
17690 # Object file suffix (normally "o").
17691 objext="$ac_objext"
17693 # Old archive suffix (normally "a").
17696 # Shared library suffix (normally ".so").
17697 shrext_cmds='$shrext_cmds'
17699 # Executable file suffix (normally "").
17702 # Additional compiler flags for building library objects.
17703 pic_flag=$lt_lt_prog_compiler_pic_F77
17706 # What is the maximum length of a command?
17707 max_cmd_len=$lt_cv_sys_max_cmd_len
17709 # Does compiler simultaneously support -c and -o options?
17710 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17712 # Must we lock files when doing compilation?
17713 need_locks=$lt_need_locks
17715 # Do we need the lib prefix for modules?
17716 need_lib_prefix=$need_lib_prefix
17718 # Do we need a version for libraries?
17719 need_version=$need_version
17721 # Whether dlopen is supported.
17722 dlopen_support=$enable_dlopen
17724 # Whether dlopen of programs is supported.
17725 dlopen_self=$enable_dlopen_self
17727 # Whether dlopen of statically linked programs is supported.
17728 dlopen_self_static=$enable_dlopen_self_static
17730 # Compiler flag to prevent dynamic linking.
17731 link_static_flag=$lt_lt_prog_compiler_static_F77
17733 # Compiler flag to turn off builtin functions.
17734 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17736 # Compiler flag to allow reflexive dlopens.
17737 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17739 # Compiler flag to generate shared objects directly from archives.
17740 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17742 # Compiler flag to generate thread-safe objects.
17743 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17745 # Library versioning type.
17746 version_type=$version_type
17748 # Format of library name prefix.
17749 libname_spec=$lt_libname_spec
17751 # List of archive names. First name is the real one, the rest are links.
17752 # The last name is the one that the linker finds with -lNAME.
17753 library_names_spec=$lt_library_names_spec
17755 # The coded name of the library, if different from the real name.
17756 soname_spec=$lt_soname_spec
17758 # Commands used to build and install an old-style archive.
17760 old_archive_cmds=$lt_old_archive_cmds_F77
17761 old_postinstall_cmds=$lt_old_postinstall_cmds
17762 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17764 # Create an old-style archive from a shared archive.
17765 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17767 # Create a temporary old-style archive to link instead of a shared archive.
17768 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17770 # Commands used to build and install a shared archive.
17771 archive_cmds=$lt_archive_cmds_F77
17772 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17773 postinstall_cmds=$lt_postinstall_cmds
17774 postuninstall_cmds=$lt_postuninstall_cmds
17776 # Commands used to build a loadable module (assumed same as above if empty)
17777 module_cmds=$lt_module_cmds_F77
17778 module_expsym_cmds=$lt_module_expsym_cmds_F77
17780 # Commands to strip libraries.
17781 old_striplib=$lt_old_striplib
17782 striplib=$lt_striplib
17784 # Dependencies to place before the objects being linked to create a
17786 predep_objects=$lt_predep_objects_F77
17788 # Dependencies to place after the objects being linked to create a
17790 postdep_objects=$lt_postdep_objects_F77
17792 # Dependencies to place before the objects being linked to create a
17794 predeps=$lt_predeps_F77
17796 # Dependencies to place after the objects being linked to create a
17798 postdeps=$lt_postdeps_F77
17800 # The library search path used internally by the compiler when linking
17801 # a shared library.
17802 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17804 # Method to check whether dependent libraries are shared objects.
17805 deplibs_check_method=$lt_deplibs_check_method
17807 # Command to use when deplibs_check_method == file_magic.
17808 file_magic_cmd=$lt_file_magic_cmd
17810 # Flag that allows shared libraries with undefined symbols to be built.
17811 allow_undefined_flag=$lt_allow_undefined_flag_F77
17813 # Flag that forces no undefined symbols.
17814 no_undefined_flag=$lt_no_undefined_flag_F77
17816 # Commands used to finish a libtool library installation in a directory.
17817 finish_cmds=$lt_finish_cmds
17819 # Same as above, but a single script fragment to be evaled but not shown.
17820 finish_eval=$lt_finish_eval
17822 # Take the output of nm and produce a listing of raw symbols and C names.
17823 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17825 # Transform the output of nm in a proper C declaration
17826 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17828 # Transform the output of nm in a C name address pair
17829 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17831 # This is the shared library runtime path variable.
17832 runpath_var=$runpath_var
17834 # This is the shared library path variable.
17835 shlibpath_var=$shlibpath_var
17837 # Is shlibpath searched before the hard-coded library search path?
17838 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17840 # How to hardcode a shared library path into an executable.
17841 hardcode_action=$hardcode_action_F77
17843 # Whether we should hardcode library paths into libraries.
17844 hardcode_into_libs=$hardcode_into_libs
17846 # Flag to hardcode \$libdir into a binary during linking.
17847 # This must work even if \$libdir does not exist.
17848 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17850 # If ld is used when linking, flag to hardcode \$libdir into
17851 # a binary during linking. This must work even if \$libdir does
17853 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17855 # Whether we need a single -rpath flag with a separated argument.
17856 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17858 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17859 # resulting binary.
17860 hardcode_direct=$hardcode_direct_F77
17862 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17863 # resulting binary.
17864 hardcode_minus_L=$hardcode_minus_L_F77
17866 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17867 # the resulting binary.
17868 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17870 # Set to yes if building a shared library automatically hardcodes DIR into the library
17871 # and all subsequent libraries and executables linked against it.
17872 hardcode_automatic=$hardcode_automatic_F77
17874 # Variables whose values should be saved in libtool wrapper scripts and
17875 # restored at relink time.
17876 variables_saved_for_relink="$variables_saved_for_relink"
17878 # Whether libtool must link a program against all its dependency libraries.
17879 link_all_deplibs=$link_all_deplibs_F77
17881 # Compile-time system search path for libraries
17882 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17884 # Run-time system search path for libraries
17885 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17887 # Fix the shell variable \$srcfile for the compiler.
17888 fix_srcfile_path="$fix_srcfile_path_F77"
17890 # Set to yes if exported symbols are required.
17891 always_export_symbols=$always_export_symbols_F77
17893 # The commands to list exported symbols.
17894 export_symbols_cmds=$lt_export_symbols_cmds_F77
17896 # The commands to extract the exported symbol list from a shared archive.
17897 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17899 # Symbols that should not be listed in the preloaded symbols.
17900 exclude_expsyms=$lt_exclude_expsyms_F77
17902 # Symbols that must always be exported.
17903 include_expsyms=$lt_include_expsyms_F77
17905 # ### END LIBTOOL TAG CONFIG: $tagname
17911 # If there is no Makefile yet, we rely on a make rule to execute
17912 # `config.status --recheck' to rerun these tests and create the
17913 # libtool script then.
17914 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17915 if test -f "$ltmain_in"; then
17916 test -f Makefile && make "$ltmain"
17922 ac_cpp='$CPP $CPPFLAGS'
17923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17935 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17939 # Source file extension for Java test sources.
17942 # Object file extension for compiled Java test sources.
17946 # Code to be used in simple compile tests
17947 lt_simple_compile_test_code="class foo {}\n"
17949 # Code to be used in simple link tests
17950 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17952 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17954 # If no C compiler was specified, use CC.
17957 # Allow CC to be a program name with arguments.
17961 # save warnings/boilerplate of simple test code
17962 ac_outfile=conftest.$ac_objext
17963 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17964 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
17965 _lt_compiler_boilerplate=`cat conftest.err`
17968 ac_outfile=conftest.$ac_objext
17969 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17970 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
17971 _lt_linker_boilerplate=`cat conftest.err`
17975 # Allow CC to be a program name with arguments.
17980 for cc_temp in $compiler""; do
17982 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17983 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17988 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17991 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17992 archive_cmds_need_lc_GCJ=no
17994 old_archive_cmds_GCJ=$old_archive_cmds
17997 lt_prog_compiler_no_builtin_flag_GCJ=
17999 if test "$GCC" = yes; then
18000 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
18003 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18004 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
18005 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
18006 echo $ECHO_N "(cached) $ECHO_C" >&6
18008 lt_cv_prog_compiler_rtti_exceptions=no
18009 ac_outfile=conftest.$ac_objext
18010 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18011 lt_compiler_flag="-fno-rtti -fno-exceptions"
18012 # Insert the option either (1) after the last *FLAGS variable, or
18013 # (2) before a word containing "conftest.", or (3) at the end.
18014 # Note that $ac_compile itself does not contain backslashes and begins
18015 # with a dollar sign (not a hyphen), so the echo should work correctly.
18016 # The option is referenced via a variable to avoid confusing sed.
18017 lt_compile=`echo "$ac_compile" | $SED \
18018 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18019 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18020 -e 's:$: $lt_compiler_flag:'`
18021 (eval echo "\"\$as_me:18021: $lt_compile\"" >&5)
18022 (eval "$lt_compile" 2>conftest.err)
18024 cat conftest.err >&5
18025 echo "$as_me:18025: \$? = $ac_status" >&5
18026 if (exit $ac_status) && test -s "$ac_outfile"; then
18027 # The compiler can only warn and ignore the option if not recognized
18028 # So say no if there are warnings other than the usual output.
18029 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
18030 $SED '/^$/d' conftest.err >conftest.er2
18031 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
18032 lt_cv_prog_compiler_rtti_exceptions=yes
18038 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18039 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
18041 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18042 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18049 lt_prog_compiler_wl_GCJ=
18050 lt_prog_compiler_pic_GCJ=
18051 lt_prog_compiler_static_GCJ=
18053 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18054 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18056 if test "$GCC" = yes; then
18057 lt_prog_compiler_wl_GCJ='-Wl,'
18058 lt_prog_compiler_static_GCJ='-static'
18062 # All AIX code is PIC.
18063 if test "$host_cpu" = ia64; then
18064 # AIX 5 now supports IA64 processor
18065 lt_prog_compiler_static_GCJ='-Bstatic'
18070 # FIXME: we need at least 68020 code to build shared libraries, but
18071 # adding the `-m68020' flag to GCC prevents building anything better,
18073 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18076 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18077 # PIC is the default for these OSes.
18080 mingw* | pw32* | os2*)
18081 # This hack is so that the source file can tell whether it is being
18082 # built for inclusion in a dll (and should export symbols for example).
18083 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18086 darwin* | rhapsody*)
18087 # PIC is the default on this platform
18088 # Common symbols not allowed in MH_DYLIB files
18089 lt_prog_compiler_pic_GCJ='-fno-common'
18093 # Just because we use GCC doesn't mean we suddenly get shared libraries
18094 # on systems that don't support them.
18095 lt_prog_compiler_can_build_shared_GCJ=no
18100 if test -d /usr/nec; then
18101 lt_prog_compiler_pic_GCJ=-Kconform_pic
18106 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18107 # not for PA HP-UX.
18108 case "$host_cpu" in
18113 lt_prog_compiler_pic_GCJ='-fPIC'
18119 lt_prog_compiler_pic_GCJ='-fPIC'
18123 # PORTME Check for flag to pass linker flags through the system compiler.
18126 lt_prog_compiler_wl_GCJ='-Wl,'
18127 if test "$host_cpu" = ia64; then
18128 # AIX 5 now supports IA64 processor
18129 lt_prog_compiler_static_GCJ='-Bstatic'
18131 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18135 # PIC is the default on this platform
18136 # Common symbols not allowed in MH_DYLIB files
18137 case $cc_basename in
18139 lt_prog_compiler_pic_GCJ='-qnocommon'
18140 lt_prog_compiler_wl_GCJ='-Wl,'
18145 mingw* | pw32* | os2*)
18146 # This hack is so that the source file can tell whether it is being
18147 # built for inclusion in a dll (and should export symbols for example).
18148 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18151 hpux9* | hpux10* | hpux11*)
18152 lt_prog_compiler_wl_GCJ='-Wl,'
18153 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18154 # not for PA HP-UX.
18155 case "$host_cpu" in
18160 lt_prog_compiler_pic_GCJ='+Z'
18163 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18164 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18167 irix5* | irix6* | nonstopux*)
18168 lt_prog_compiler_wl_GCJ='-Wl,'
18169 # PIC (with -KPIC) is the default.
18170 lt_prog_compiler_static_GCJ='-non_shared'
18174 lt_prog_compiler_pic_GCJ='-KPIC'
18175 lt_prog_compiler_static_GCJ='-Bstatic'
18179 case $cc_basename in
18181 lt_prog_compiler_wl_GCJ='-Wl,'
18182 lt_prog_compiler_pic_GCJ='-KPIC'
18183 lt_prog_compiler_static_GCJ='-static'
18185 pgcc* | pgf77* | pgf90*)
18186 # Portland Group compilers (*not* the Pentium gcc compiler,
18187 # which looks to be a dead project)
18188 lt_prog_compiler_wl_GCJ='-Wl,'
18189 lt_prog_compiler_pic_GCJ='-fpic'
18190 lt_prog_compiler_static_GCJ='-static'
18193 lt_prog_compiler_wl_GCJ='-Wl,'
18194 # All Alpha code is PIC.
18195 lt_prog_compiler_static_GCJ='-non_shared'
18200 osf3* | osf4* | osf5*)
18201 lt_prog_compiler_wl_GCJ='-Wl,'
18202 # All OSF/1 code is PIC.
18203 lt_prog_compiler_static_GCJ='-non_shared'
18207 lt_prog_compiler_pic_GCJ='-Kpic'
18208 lt_prog_compiler_static_GCJ='-dn'
18212 lt_prog_compiler_pic_GCJ='-KPIC'
18213 lt_prog_compiler_static_GCJ='-Bstatic'
18214 case $cc_basename in
18215 f77* | f90* | f95*)
18216 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18218 lt_prog_compiler_wl_GCJ='-Wl,';;
18223 lt_prog_compiler_wl_GCJ='-Qoption ld '
18224 lt_prog_compiler_pic_GCJ='-PIC'
18225 lt_prog_compiler_static_GCJ='-Bstatic'
18228 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18229 lt_prog_compiler_wl_GCJ='-Wl,'
18230 lt_prog_compiler_pic_GCJ='-KPIC'
18231 lt_prog_compiler_static_GCJ='-Bstatic'
18235 if test -d /usr/nec ;then
18236 lt_prog_compiler_pic_GCJ='-Kconform_pic'
18237 lt_prog_compiler_static_GCJ='-Bstatic'
18242 lt_prog_compiler_wl_GCJ='-Wl,'
18243 lt_prog_compiler_can_build_shared_GCJ=no
18247 lt_prog_compiler_pic_GCJ='-pic'
18248 lt_prog_compiler_static_GCJ='-Bstatic'
18252 lt_prog_compiler_can_build_shared_GCJ=no
18257 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18258 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
18261 # Check to make sure the PIC flag actually works.
18263 if test -n "$lt_prog_compiler_pic_GCJ"; then
18265 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18266 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
18267 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18268 echo $ECHO_N "(cached) $ECHO_C" >&6
18270 lt_prog_compiler_pic_works_GCJ=no
18271 ac_outfile=conftest.$ac_objext
18272 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18273 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18274 # Insert the option either (1) after the last *FLAGS variable, or
18275 # (2) before a word containing "conftest.", or (3) at the end.
18276 # Note that $ac_compile itself does not contain backslashes and begins
18277 # with a dollar sign (not a hyphen), so the echo should work correctly.
18278 # The option is referenced via a variable to avoid confusing sed.
18279 lt_compile=`echo "$ac_compile" | $SED \
18280 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18281 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18282 -e 's:$: $lt_compiler_flag:'`
18283 (eval echo "\"\$as_me:18283: $lt_compile\"" >&5)
18284 (eval "$lt_compile" 2>conftest.err)
18286 cat conftest.err >&5
18287 echo "$as_me:18287: \$? = $ac_status" >&5
18288 if (exit $ac_status) && test -s "$ac_outfile"; then
18289 # The compiler can only warn and ignore the option if not recognized
18290 # So say no if there are warnings other than the usual output.
18291 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
18292 $SED '/^$/d' conftest.err >conftest.er2
18293 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
18294 lt_prog_compiler_pic_works_GCJ=yes
18300 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18301 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
18303 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18304 case $lt_prog_compiler_pic_GCJ in
18306 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18309 lt_prog_compiler_pic_GCJ=
18310 lt_prog_compiler_can_build_shared_GCJ=no
18315 # For platforms which do not support PIC, -DPIC is meaningless:
18317 lt_prog_compiler_pic_GCJ=
18320 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18324 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18325 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18326 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18327 echo $ECHO_N "(cached) $ECHO_C" >&6
18329 lt_cv_prog_compiler_c_o_GCJ=no
18330 $rm -r conftest 2>/dev/null
18334 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18336 lt_compiler_flag="-o out/conftest2.$ac_objext"
18337 # Insert the option either (1) after the last *FLAGS variable, or
18338 # (2) before a word containing "conftest.", or (3) at the end.
18339 # Note that $ac_compile itself does not contain backslashes and begins
18340 # with a dollar sign (not a hyphen), so the echo should work correctly.
18341 lt_compile=`echo "$ac_compile" | $SED \
18342 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18343 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18344 -e 's:$: $lt_compiler_flag:'`
18345 (eval echo "\"\$as_me:18345: $lt_compile\"" >&5)
18346 (eval "$lt_compile" 2>out/conftest.err)
18348 cat out/conftest.err >&5
18349 echo "$as_me:18349: \$? = $ac_status" >&5
18350 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18352 # The compiler can only warn and ignore the option if not recognized
18353 # So say no if there are warnings
18354 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
18355 $SED '/^$/d' out/conftest.err >out/conftest.er2
18356 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18357 lt_cv_prog_compiler_c_o_GCJ=yes
18362 # SGI C++ compiler will create directory out/ii_files/ for
18363 # template instantiation
18364 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18365 $rm out/* && rmdir out
18371 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18372 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
18375 hard_links="nottested"
18376 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18377 # do not overwrite the value of need_locks provided by the user
18378 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18379 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18382 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18384 ln conftest.a conftest.b 2>&5 || hard_links=no
18385 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18386 echo "$as_me:$LINENO: result: $hard_links" >&5
18387 echo "${ECHO_T}$hard_links" >&6
18388 if test "$hard_links" = no; then
18389 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18390 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18397 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18398 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18401 allow_undefined_flag_GCJ=
18402 enable_shared_with_static_runtimes_GCJ=no
18404 archive_expsym_cmds_GCJ=
18405 old_archive_From_new_cmds_GCJ=
18406 old_archive_from_expsyms_cmds_GCJ=
18407 export_dynamic_flag_spec_GCJ=
18408 whole_archive_flag_spec_GCJ=
18409 thread_safe_flag_spec_GCJ=
18410 hardcode_libdir_flag_spec_GCJ=
18411 hardcode_libdir_flag_spec_ld_GCJ=
18412 hardcode_libdir_separator_GCJ=
18413 hardcode_direct_GCJ=no
18414 hardcode_minus_L_GCJ=no
18415 hardcode_shlibpath_var_GCJ=unsupported
18416 link_all_deplibs_GCJ=unknown
18417 hardcode_automatic_GCJ=no
18419 module_expsym_cmds_GCJ=
18420 always_export_symbols_GCJ=no
18421 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18422 # include_expsyms should be a list of space-separated symbols to be *always*
18423 # included in the symbol list
18424 include_expsyms_GCJ=
18425 # exclude_expsyms can be an extended regexp of symbols to exclude
18426 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18427 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18428 # as well as any symbol that contains `d'.
18429 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18430 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18431 # platforms (ab)use it in PIC code, but their linkers get confused if
18432 # the symbol is explicitly referenced. Since portable code cannot
18433 # rely on this symbol name, it's probably fine to never include it in
18434 # preloaded symbol tables.
18435 extract_expsyms_cmds=
18436 # Just being paranoid about ensuring that cc_basename is set.
18437 for cc_temp in $compiler""; do
18439 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18440 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18445 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18448 cygwin* | mingw* | pw32*)
18449 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18450 # When not using gcc, we currently assume that we are using
18451 # Microsoft Visual C++.
18452 if test "$GCC" != yes; then
18462 if test "$with_gnu_ld" = yes; then
18463 # If archive_cmds runs LD, not CC, wlarc should be empty
18466 # Set some defaults for GNU ld with shared library support. These
18467 # are reset later if shared libraries are not supported. Putting them
18468 # here allows them to be overridden if necessary.
18469 runpath_var=LD_RUN_PATH
18470 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18471 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18472 # ancient GNU ld didn't support --whole-archive et. al.
18473 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18474 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18476 whole_archive_flag_spec_GCJ=
18478 supports_anon_versioning=no
18479 case `$LD -v 2>/dev/null` in
18480 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18481 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18482 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18483 *\ 2.11.*) ;; # other 2.11 versions
18484 *) supports_anon_versioning=yes ;;
18487 # See if GNU ld supports shared libraries.
18489 aix3* | aix4* | aix5*)
18490 # On AIX/PPC, the GNU linker is very broken
18491 if test "$host_cpu" != ia64; then
18495 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18496 *** to be unable to reliably create shared libraries on AIX.
18497 *** Therefore, libtool is disabling shared libraries support. If you
18498 *** really care for shared libraries, you may want to modify your PATH
18499 *** so that a non-GNU linker is found, and then restart.
18506 archive_cmds_GCJ='$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)'
18507 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18508 hardcode_minus_L_GCJ=yes
18510 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18511 # that the semantics of dynamic libraries on AmigaOS, at least up
18512 # to version 4, is to share data among multiple programs linked
18513 # with the same dynamic library. Since this doesn't match the
18514 # behavior of shared libraries on other platforms, we can't use
18520 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18521 allow_undefined_flag_GCJ=unsupported
18522 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18523 # support --undefined. This deserves some investigation. FIXME
18524 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18530 cygwin* | mingw* | pw32*)
18531 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18532 # as there is no search path for DLLs.
18533 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18534 allow_undefined_flag_GCJ=unsupported
18535 always_export_symbols_GCJ=no
18536 enable_shared_with_static_runtimes_GCJ=yes
18537 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18539 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18540 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
18541 # If the export-symbols file already is a .def file (1st line
18542 # is EXPORTS), use it as is; otherwise, prepend...
18543 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18544 cp $export_symbols $output_objdir/$soname.def;
18546 echo EXPORTS > $output_objdir/$soname.def;
18547 cat $export_symbols >> $output_objdir/$soname.def;
18549 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
18556 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18558 case $cc_basename,$host_cpu in
18559 pgcc*) # Portland Group C compiler
18560 whole_archive_flag_spec_GCJ='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18561 tmp_addflag=' $pic_flag'
18563 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
18564 whole_archive_flag_spec_GCJ='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18565 tmp_addflag=' $pic_flag -Mnomain' ;;
18566 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18567 tmp_addflag=' -i_dynamic' ;;
18568 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18569 tmp_addflag=' -i_dynamic -nofor_main' ;;
18570 ifc* | ifort*) # Intel Fortran compiler
18571 tmp_addflag=' -nofor_main' ;;
18573 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18575 if test $supports_anon_versioning = yes; then
18576 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18577 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18578 $echo "local: *; };" >> $output_objdir/$libname.ver~
18579 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18587 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18588 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18591 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18592 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18597 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18601 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18602 *** create shared libraries on Solaris systems. Therefore, libtool
18603 *** is disabling shared libraries support. We urge you to upgrade GNU
18604 *** binutils to release 2.9.1 or newer. Another option is to modify
18605 *** your PATH or compiler configuration so that the native linker is
18606 *** used, and then restart.
18609 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18610 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18611 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18618 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18620 hardcode_direct_GCJ=yes
18621 hardcode_shlibpath_var_GCJ=no
18625 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18626 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18627 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18634 if test "$ld_shlibs_GCJ" = no; then
18636 hardcode_libdir_flag_spec_GCJ=
18637 export_dynamic_flag_spec_GCJ=
18638 whole_archive_flag_spec_GCJ=
18641 # PORTME fill in a description of your system's linker (not GNU ld)
18644 allow_undefined_flag_GCJ=unsupported
18645 always_export_symbols_GCJ=yes
18646 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
18647 # Note: this linker hardcodes the directories in LIBPATH if there
18648 # are no directories specified by -L.
18649 hardcode_minus_L_GCJ=yes
18650 if test "$GCC" = yes && test -z "$link_static_flag"; then
18651 # Neither direct hardcoding nor static linking is supported with a
18653 hardcode_direct_GCJ=unsupported
18658 if test "$host_cpu" = ia64; then
18659 # On IA64, the linker does run time linking by default, so we don't
18660 # have to do anything special.
18661 aix_use_runtimelinking=no
18662 exp_sym_flag='-Bexport'
18665 # If we're using GNU nm, then we don't want the "-C" option.
18666 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18667 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18668 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
18670 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
18672 aix_use_runtimelinking=no
18674 # Test if we are trying to use run time linking or normal
18675 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18676 # need to do runtime linking.
18677 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18678 for ld_flag in $LDFLAGS; do
18679 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18680 aix_use_runtimelinking=yes
18686 exp_sym_flag='-bexport'
18687 no_entry_flag='-bnoentry'
18690 # When large executables or shared objects are built, AIX ld can
18691 # have problems creating the table of contents. If linking a library
18692 # or program results in "error TOC overflow" add -mminimal-toc to
18693 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18694 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18696 archive_cmds_GCJ=''
18697 hardcode_direct_GCJ=yes
18698 hardcode_libdir_separator_GCJ=':'
18699 link_all_deplibs_GCJ=yes
18701 if test "$GCC" = yes; then
18702 case $host_os in aix4.[012]|aix4.[012].*)
18703 # We only want to do this on AIX 4.2 and lower, the check
18704 # below for broken collect2 doesn't work under 4.3+
18705 collect2name=`${CC} -print-prog-name=collect2`
18706 if test -f "$collect2name" && \
18707 strings "$collect2name" | grep resolve_lib_name >/dev/null
18709 # We have reworked collect2
18710 hardcode_direct_GCJ=yes
18712 # We have old collect2
18713 hardcode_direct_GCJ=unsupported
18714 # It fails to find uninstalled libraries when the uninstalled
18715 # path is not listed in the libpath. Setting hardcode_minus_L
18716 # to unsupported forces relinking
18717 hardcode_minus_L_GCJ=yes
18718 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18719 hardcode_libdir_separator_GCJ=
18722 shared_flag='-shared'
18723 if test "$aix_use_runtimelinking" = yes; then
18724 shared_flag="$shared_flag "'${wl}-G'
18728 if test "$host_cpu" = ia64; then
18729 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18730 # chokes on -Wl,-G. The following line is correct:
18733 if test "$aix_use_runtimelinking" = yes; then
18734 shared_flag='${wl}-G'
18736 shared_flag='${wl}-bM:SRE'
18741 # It seems that -bexpall does not export symbols beginning with
18742 # underscore (_), so it is better to generate a list of symbols to export.
18743 always_export_symbols_GCJ=yes
18744 if test "$aix_use_runtimelinking" = yes; then
18745 # Warning - without using the other runtime loading flags (-brtl),
18746 # -berok will link without error, but may produce a broken library.
18747 allow_undefined_flag_GCJ='-berok'
18748 # Determine the default libpath from the value encoded in an empty executable.
18749 cat >conftest.$ac_ext <<_ACEOF
18752 cat confdefs.h >>conftest.$ac_ext
18753 cat >>conftest.$ac_ext <<_ACEOF
18754 /* end confdefs.h. */
18764 rm -f conftest.$ac_objext conftest$ac_exeext
18765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18766 (eval $ac_link) 2>conftest.er1
18768 grep -v '^ *+' conftest.er1 >conftest.err
18770 cat conftest.err >&5
18771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772 (exit $ac_status); } &&
18773 { ac_try='test -z "$ac_c_werror_flag"
18774 || test ! -s conftest.err'
18775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18776 (eval $ac_try) 2>&5
18778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18779 (exit $ac_status); }; } &&
18780 { ac_try='test -s conftest$ac_exeext'
18781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18782 (eval $ac_try) 2>&5
18784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18785 (exit $ac_status); }; }; then
18787 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18789 # Check for a 64-bit object if we didn't find anything.
18790 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; }
18793 echo "$as_me: failed program was:" >&5
18794 sed 's/^/| /' conftest.$ac_ext >&5
18797 rm -f conftest.err conftest.$ac_objext \
18798 conftest$ac_exeext conftest.$ac_ext
18799 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18801 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18802 archive_expsym_cmds_GCJ="\$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"
18804 if test "$host_cpu" = ia64; then
18805 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18806 allow_undefined_flag_GCJ="-z nodefs"
18807 archive_expsym_cmds_GCJ="\$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"
18809 # Determine the default libpath from the value encoded in an empty executable.
18810 cat >conftest.$ac_ext <<_ACEOF
18813 cat confdefs.h >>conftest.$ac_ext
18814 cat >>conftest.$ac_ext <<_ACEOF
18815 /* end confdefs.h. */
18825 rm -f conftest.$ac_objext conftest$ac_exeext
18826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18827 (eval $ac_link) 2>conftest.er1
18829 grep -v '^ *+' conftest.er1 >conftest.err
18831 cat conftest.err >&5
18832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18833 (exit $ac_status); } &&
18834 { ac_try='test -z "$ac_c_werror_flag"
18835 || test ! -s conftest.err'
18836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18837 (eval $ac_try) 2>&5
18839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18840 (exit $ac_status); }; } &&
18841 { ac_try='test -s conftest$ac_exeext'
18842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18843 (eval $ac_try) 2>&5
18845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18846 (exit $ac_status); }; }; then
18848 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18850 # Check for a 64-bit object if we didn't find anything.
18851 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; }
18854 echo "$as_me: failed program was:" >&5
18855 sed 's/^/| /' conftest.$ac_ext >&5
18858 rm -f conftest.err conftest.$ac_objext \
18859 conftest$ac_exeext conftest.$ac_ext
18860 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18862 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18863 # Warning - without using the other run time loading flags,
18864 # -berok will link without error, but may produce a broken library.
18865 no_undefined_flag_GCJ=' ${wl}-bernotok'
18866 allow_undefined_flag_GCJ=' ${wl}-berok'
18867 # -bexpall does not export symbols beginning with underscore (_)
18868 always_export_symbols_GCJ=yes
18869 # Exported symbols can be pulled into shared objects from archives
18870 whole_archive_flag_spec_GCJ=' '
18871 archive_cmds_need_lc_GCJ=yes
18872 # This is similar to how AIX traditionally builds it's shared libraries.
18873 archive_expsym_cmds_GCJ="\$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'
18879 archive_cmds_GCJ='$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)'
18880 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18881 hardcode_minus_L_GCJ=yes
18882 # see comment about different semantics on the GNU ld section
18887 export_dynamic_flag_spec_GCJ=-rdynamic
18890 cygwin* | mingw* | pw32*)
18891 # When not using gcc, we currently assume that we are using
18892 # Microsoft Visual C++.
18893 # hardcode_libdir_flag_spec is actually meaningless, as there is
18894 # no search path for DLLs.
18895 hardcode_libdir_flag_spec_GCJ=' '
18896 allow_undefined_flag_GCJ=unsupported
18897 # Tell ltmain to make .lib files, not .a files.
18899 # Tell ltmain to make .dll files, not .so files.
18901 # FIXME: Setting linknames here is a bad hack.
18902 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18903 # The linker will automatically build a .lib file if we build a DLL.
18904 old_archive_From_new_cmds_GCJ='true'
18905 # FIXME: Should let the user specify the lib program.
18906 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18907 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18908 enable_shared_with_static_runtimes_GCJ=yes
18911 darwin* | rhapsody*)
18913 rhapsody* | darwin1.[012])
18914 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18917 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18918 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18920 case ${MACOSX_DEPLOYMENT_TARGET} in
18922 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18925 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18931 archive_cmds_need_lc_GCJ=no
18932 hardcode_direct_GCJ=no
18933 hardcode_automatic_GCJ=yes
18934 hardcode_shlibpath_var_GCJ=unsupported
18935 whole_archive_flag_spec_GCJ=''
18936 link_all_deplibs_GCJ=yes
18937 if test "$GCC" = yes ; then
18938 output_verbose_link_cmd='echo'
18939 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18940 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18941 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18942 archive_expsym_cmds_GCJ='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}'
18943 module_expsym_cmds_GCJ='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}'
18945 case $cc_basename in
18947 output_verbose_link_cmd='echo'
18948 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18949 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18950 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18951 archive_expsym_cmds_GCJ='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}'
18952 module_expsym_cmds_GCJ='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}'
18962 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18963 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18964 hardcode_shlibpath_var_GCJ=no
18971 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18972 # support. Future versions do this automatically, but an explicit c++rt0.o
18973 # does not break anything, and helps significantly (at the cost of a little
18976 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18977 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18978 hardcode_direct_GCJ=yes
18979 hardcode_shlibpath_var_GCJ=no
18982 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18984 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18985 hardcode_direct_GCJ=yes
18986 hardcode_minus_L_GCJ=yes
18987 hardcode_shlibpath_var_GCJ=no
18990 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18991 freebsd* | kfreebsd*-gnu | dragonfly*)
18992 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18993 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18994 hardcode_direct_GCJ=yes
18995 hardcode_shlibpath_var_GCJ=no
18999 if test "$GCC" = yes; then
19000 archive_cmds_GCJ='$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'
19002 archive_cmds_GCJ='$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'
19004 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19005 hardcode_libdir_separator_GCJ=:
19006 hardcode_direct_GCJ=yes
19008 # hardcode_minus_L: Not really in the search PATH,
19009 # but as the default location of the library.
19010 hardcode_minus_L_GCJ=yes
19011 export_dynamic_flag_spec_GCJ='${wl}-E'
19015 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19016 case "$host_cpu" in
19018 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19021 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19025 case "$host_cpu" in
19027 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19030 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19034 if test "$with_gnu_ld" = no; then
19035 case "$host_cpu" in
19037 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19038 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19039 hardcode_libdir_separator_GCJ=:
19040 hardcode_direct_GCJ=no
19041 hardcode_shlibpath_var_GCJ=no
19044 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19045 hardcode_direct_GCJ=no
19046 hardcode_shlibpath_var_GCJ=no
19048 # hardcode_minus_L: Not really in the search PATH,
19049 # but as the default location of the library.
19050 hardcode_minus_L_GCJ=yes
19053 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19054 hardcode_libdir_separator_GCJ=:
19055 hardcode_direct_GCJ=yes
19056 export_dynamic_flag_spec_GCJ='${wl}-E'
19058 # hardcode_minus_L: Not really in the search PATH,
19059 # but as the default location of the library.
19060 hardcode_minus_L_GCJ=yes
19066 irix5* | irix6* | nonstopux*)
19067 if test "$GCC" = yes; then
19068 archive_cmds_GCJ='$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'
19070 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19071 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19073 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19074 hardcode_libdir_separator_GCJ=:
19075 link_all_deplibs_GCJ=yes
19079 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19080 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19082 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19084 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19085 hardcode_direct_GCJ=yes
19086 hardcode_shlibpath_var_GCJ=no
19090 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19091 hardcode_direct_GCJ=yes
19092 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19093 hardcode_libdir_separator_GCJ=:
19094 hardcode_shlibpath_var_GCJ=no
19098 hardcode_direct_GCJ=yes
19099 hardcode_shlibpath_var_GCJ=no
19100 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19101 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19102 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19103 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19104 export_dynamic_flag_spec_GCJ='${wl}-E'
19107 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19108 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19109 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19112 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19113 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19120 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19121 hardcode_minus_L_GCJ=yes
19122 allow_undefined_flag_GCJ=unsupported
19123 archive_cmds_GCJ='$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'
19124 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19128 if test "$GCC" = yes; then
19129 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19130 archive_cmds_GCJ='$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'
19132 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19133 archive_cmds_GCJ='$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'
19135 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19136 hardcode_libdir_separator_GCJ=:
19139 osf4* | osf5*) # as osf3* with the addition of -msym flag
19140 if test "$GCC" = yes; then
19141 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19142 archive_cmds_GCJ='$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'
19143 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19145 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19146 archive_cmds_GCJ='$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'
19147 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
19148 $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'
19150 # Both c and cxx compiler support -rpath directly
19151 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19153 hardcode_libdir_separator_GCJ=:
19157 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19158 hardcode_shlibpath_var_GCJ=no
19159 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19160 runpath_var=LD_RUN_PATH
19161 hardcode_runpath_var=yes
19165 no_undefined_flag_GCJ=' -z text'
19166 if test "$GCC" = yes; then
19168 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19169 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19170 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19173 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19174 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19175 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19177 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19178 hardcode_shlibpath_var_GCJ=no
19180 solaris2.[0-5] | solaris2.[0-5].*) ;;
19182 # The compiler driver will combine linker options so we
19183 # cannot just pass the convience library names through
19184 # without $wl, iff we do not link with $LD.
19185 # Luckily, gcc supports the same syntax we need for Sun Studio.
19186 # Supported since Solaris 2.6 (maybe 2.5.1?)
19189 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19191 whole_archive_flag_spec_GCJ='${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' ;;
19194 link_all_deplibs_GCJ=yes
19198 if test "x$host_vendor" = xsequent; then
19199 # Use $CC to link under sequent, because it throws in some extra .o
19200 # files that make .init and .fini sections work.
19201 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19203 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19205 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19206 hardcode_direct_GCJ=yes
19207 hardcode_minus_L_GCJ=yes
19208 hardcode_shlibpath_var_GCJ=no
19212 case $host_vendor in
19214 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19215 hardcode_direct_GCJ=yes # is this really true???
19218 ## LD is ld it makes a PLAMLIB
19219 ## CC just makes a GrossModule.
19220 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19221 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19222 hardcode_direct_GCJ=no
19225 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19226 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19229 runpath_var='LD_RUN_PATH'
19230 hardcode_shlibpath_var_GCJ=no
19234 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19235 hardcode_shlibpath_var_GCJ=no
19236 export_dynamic_flag_spec_GCJ='-Bexport'
19240 if test -d /usr/nec; then
19241 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19242 hardcode_shlibpath_var_GCJ=no
19243 runpath_var=LD_RUN_PATH
19244 hardcode_runpath_var=yes
19250 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19251 hardcode_direct_GCJ=yes
19252 hardcode_minus_L_GCJ=no
19253 hardcode_shlibpath_var_GCJ=no
19254 hardcode_runpath_var=yes
19255 runpath_var=LD_RUN_PATH
19258 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19259 no_undefined_flag_GCJ='${wl}-z ${wl}text'
19260 if test "$GCC" = yes; then
19261 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19263 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19265 runpath_var='LD_RUN_PATH'
19266 hardcode_shlibpath_var_GCJ=no
19270 no_undefined_flag_GCJ=' -z text'
19271 # $CC -shared without GNU ld will not create a library from C++
19272 # object files and a static libstdc++, better avoid it by now
19273 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19274 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19275 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19276 hardcode_libdir_flag_spec_GCJ=
19277 hardcode_shlibpath_var_GCJ=no
19278 runpath_var='LD_RUN_PATH'
19282 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19283 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19284 hardcode_shlibpath_var_GCJ=no
19293 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19294 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
19295 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19297 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19298 if test "$GCC" = yes; then
19299 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19303 # Do we need to explicitly link libc?
19305 case "x$archive_cmds_need_lc_GCJ" in
19307 # Assume -lc should be added
19308 archive_cmds_need_lc_GCJ=yes
19310 if test "$enable_shared" = yes && test "$GCC" = yes; then
19311 case $archive_cmds_GCJ in
19313 # FIXME: we may have to deal with multi-command sequences.
19316 # Test whether the compiler implicitly links with -lc since on some
19317 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19318 # to ld, don't add -lc before -lgcc.
19319 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19320 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19322 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19325 (eval $ac_compile) 2>&5
19327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328 (exit $ac_status); } 2>conftest.err; then
19331 libobjs=conftest.$ac_objext
19333 wl=$lt_prog_compiler_wl_GCJ
19339 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19340 allow_undefined_flag_GCJ=
19341 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19342 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345 (exit $ac_status); }
19347 archive_cmds_need_lc_GCJ=no
19349 archive_cmds_need_lc_GCJ=yes
19351 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19353 cat conftest.err 1>&5
19356 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19357 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
19364 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19365 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19366 library_names_spec=
19367 libname_spec='lib$name'
19371 postuninstall_cmds=
19375 shlibpath_overrides_runpath=unknown
19377 dynamic_linker="$host_os ld.so"
19378 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19379 if test "$GCC" = yes; then
19380 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19381 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19382 # if the path contains ";" then we assume it to be the separator
19383 # otherwise default to the standard path separator (i.e. ":") - it is
19384 # assumed that no part of a normal pathname contains ";" but that should
19385 # okay in the real world where ";" in dirpaths is itself problematic.
19386 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19388 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19391 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19393 need_lib_prefix=unknown
19394 hardcode_into_libs=no
19396 # when you set need_version to no, make sure it does not cause -set_version
19397 # flags to be left without arguments
19398 need_version=unknown
19403 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19404 shlibpath_var=LIBPATH
19406 # AIX 3 has no versioning support, so we append a major version to the name.
19407 soname_spec='${libname}${release}${shared_ext}$major'
19414 hardcode_into_libs=yes
19415 if test "$host_cpu" = ia64; then
19416 # AIX 5 supports IA64
19417 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19418 shlibpath_var=LD_LIBRARY_PATH
19420 # With GCC up to 2.95.x, collect2 would create an import file
19421 # for dependence libraries. The import file would start with
19422 # the line `#! .'. This would cause the generated library to
19423 # depend on `.', always an invalid library. This was fixed in
19424 # development snapshots of GCC prior to 3.0.
19426 aix4 | aix4.[01] | aix4.[01].*)
19427 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19429 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19432 can_build_shared=no
19436 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19437 # soname into executable. Probably we can add versioning support to
19438 # collect2, so additional links can be useful in future.
19439 if test "$aix_use_runtimelinking" = yes; then
19440 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19441 # instead of lib<name>.a to let people know that these are not
19442 # typical AIX shared libraries.
19443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19445 # We preserve .a as extension for shared libraries through AIX4.2
19446 # and later when we are not doing run time linking.
19447 library_names_spec='${libname}${release}.a $libname.a'
19448 soname_spec='${libname}${release}${shared_ext}$major'
19450 shlibpath_var=LIBPATH
19455 library_names_spec='$libname.ixlibrary $libname.a'
19456 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19457 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'
19461 library_names_spec='${libname}${shared_ext}'
19462 dynamic_linker="$host_os ld.so"
19463 shlibpath_var=LIBRARY_PATH
19469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19470 soname_spec='${libname}${release}${shared_ext}$major'
19471 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19472 shlibpath_var=LD_LIBRARY_PATH
19473 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19474 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19475 # the default ld.so.conf also contains /usr/contrib/lib and
19476 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19477 # libtool to hard-code these into programs
19480 cygwin* | mingw* | pw32*)
19481 version_type=windows
19486 case $GCC,$host_os in
19487 yes,cygwin* | yes,mingw* | yes,pw32*)
19488 library_names_spec='$libname.dll.a'
19489 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19490 postinstall_cmds='base_file=`basename \${file}`~
19491 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19492 dldir=$destdir/`dirname \$dlpath`~
19493 test -d \$dldir || mkdir -p \$dldir~
19494 $install_prog $dir/$dlname \$dldir/$dlname'
19495 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19496 dlpath=$dir/\$dldll~
19498 shlibpath_overrides_runpath=yes
19502 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19503 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19504 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19507 # MinGW DLLs use traditional 'lib' prefix
19508 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19509 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19510 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19511 # It is most probably a Windows format PATH printed by
19512 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19513 # path with ; separators, and with drive letters. We can handle the
19514 # drive letters (cygwin fileutils understands them), so leave them,
19515 # especially as we might pass files found there to a mingw objdump,
19516 # which wouldn't understand a cygwinified path. Ahh.
19517 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19519 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19523 # pw32 DLLs use 'pw' prefix rather than 'lib'
19524 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19530 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19533 dynamic_linker='Win32 ld.exe'
19534 # FIXME: first we should search . and the directory the executable is in
19538 darwin* | rhapsody*)
19539 dynamic_linker="$host_os dyld"
19540 version_type=darwin
19543 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19544 soname_spec='${libname}${release}${major}$shared_ext'
19545 shlibpath_overrides_runpath=yes
19546 shlibpath_var=DYLD_LIBRARY_PATH
19547 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
19548 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19549 if test "$GCC" = yes; then
19550 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"`
19552 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19554 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19562 soname_spec='${libname}${release}${shared_ext}$major'
19563 shlibpath_var=LD_LIBRARY_PATH
19574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19575 soname_spec='${libname}${release}${shared_ext}$major'
19576 shlibpath_var=LD_LIBRARY_PATH
19577 shlibpath_overrides_runpath=no
19578 hardcode_into_libs=yes
19579 dynamic_linker='GNU ld.so'
19582 freebsd* | dragonfly*)
19583 # DragonFly does not have aout. When/if they implement a new
19584 # versioning mechanism, adjust this.
19585 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
19586 version_type=freebsd-$objformat
19587 case $version_type in
19589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19594 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19598 shlibpath_var=LD_LIBRARY_PATH
19601 shlibpath_overrides_runpath=yes
19603 freebsd3.[01]* | freebsdelf3.[01]*)
19604 shlibpath_overrides_runpath=yes
19605 hardcode_into_libs=yes
19608 shlibpath_overrides_runpath=no
19609 hardcode_into_libs=yes
19618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19619 soname_spec='${libname}${release}${shared_ext}$major'
19620 shlibpath_var=LD_LIBRARY_PATH
19621 hardcode_into_libs=yes
19624 hpux9* | hpux10* | hpux11*)
19625 # Give a soname corresponding to the major version so that dld.sl refuses to
19626 # link against other versions.
19630 case "$host_cpu" in
19633 hardcode_into_libs=yes
19634 dynamic_linker="$host_os dld.so"
19635 shlibpath_var=LD_LIBRARY_PATH
19636 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19638 soname_spec='${libname}${release}${shared_ext}$major'
19639 if test "X$HPUX_IA64_MODE" = X32; then
19640 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19642 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19644 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19648 hardcode_into_libs=yes
19649 dynamic_linker="$host_os dld.sl"
19650 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19651 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19653 soname_spec='${libname}${release}${shared_ext}$major'
19654 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19655 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19659 dynamic_linker="$host_os dld.sl"
19660 shlibpath_var=SHLIB_PATH
19661 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19663 soname_spec='${libname}${release}${shared_ext}$major'
19666 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19667 postinstall_cmds='chmod 555 $lib'
19670 irix5* | irix6* | nonstopux*)
19672 nonstopux*) version_type=nonstopux ;;
19674 if test "$lt_cv_prog_gnu_ld" = yes; then
19682 soname_spec='${libname}${release}${shared_ext}$major'
19683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19685 irix5* | nonstopux*)
19686 libsuff= shlibsuff=
19689 case $LD in # libtool.m4 will add one of these switches to LD
19690 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19691 libsuff= shlibsuff= libmagic=32-bit;;
19692 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19693 libsuff=32 shlibsuff=N32 libmagic=N32;;
19694 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19695 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19696 *) libsuff= shlibsuff= libmagic=never-match;;
19700 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19701 shlibpath_overrides_runpath=no
19702 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19703 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19704 hardcode_into_libs=yes
19707 # No shared lib support for Linux oldld, aout, or coff.
19708 linux*oldld* | linux*aout* | linux*coff*)
19712 # This must be Linux ELF.
19717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19718 soname_spec='${libname}${release}${shared_ext}$major'
19719 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19720 shlibpath_var=LD_LIBRARY_PATH
19721 shlibpath_overrides_runpath=no
19722 # This implies no fast_install, which is unacceptable.
19723 # Some rework will be needed to allow for fast_install
19724 # before this can be enabled.
19725 hardcode_into_libs=yes
19727 # Append ld.so.conf contents to the search path
19728 if test -f /etc/ld.so.conf; then
19729 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' ' '`
19730 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19733 # We used to test for /lib/ld.so.1 and disable shared libraries on
19734 # powerpc, because MkLinux only supported shared libraries with the
19735 # GNU dynamic linker. Since this was broken with cross compilers,
19736 # most powerpc-linux boxes support dynamic linking these days and
19737 # people can always --disable-shared, the test was removed, and we
19738 # assume the GNU/Linux dynamic linker is in use.
19739 dynamic_linker='GNU/Linux ld.so'
19746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19747 soname_spec='${libname}${release}${shared_ext}$major'
19748 shlibpath_var=LD_LIBRARY_PATH
19749 shlibpath_overrides_runpath=no
19750 hardcode_into_libs=yes
19751 dynamic_linker='GNU ld.so'
19758 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19760 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19761 dynamic_linker='NetBSD (a.out) ld.so'
19763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19764 soname_spec='${libname}${release}${shared_ext}$major'
19765 dynamic_linker='NetBSD ld.elf_so'
19767 shlibpath_var=LD_LIBRARY_PATH
19768 shlibpath_overrides_runpath=yes
19769 hardcode_into_libs=yes
19774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19775 shlibpath_var=LD_LIBRARY_PATH
19776 shlibpath_overrides_runpath=yes
19783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19784 soname_spec='${libname}${release}${shared_ext}$major'
19785 shlibpath_var=LD_LIBRARY_PATH
19786 shlibpath_overrides_runpath=yes
19792 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19794 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19795 *) need_version=no ;;
19797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19798 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19799 shlibpath_var=LD_LIBRARY_PATH
19800 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19802 openbsd2.[89] | openbsd2.[89].*)
19803 shlibpath_overrides_runpath=no
19806 shlibpath_overrides_runpath=yes
19810 shlibpath_overrides_runpath=yes
19815 libname_spec='$name'
19818 library_names_spec='$libname${shared_ext} $libname.a'
19819 dynamic_linker='OS/2 ld.exe'
19820 shlibpath_var=LIBPATH
19823 osf3* | osf4* | osf5*)
19827 soname_spec='${libname}${release}${shared_ext}$major'
19828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19829 shlibpath_var=LD_LIBRARY_PATH
19830 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19831 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19836 soname_spec='${libname}${release}${shared_ext}$major'
19837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19838 shlibpath_var=LD_LIBRARY_PATH
19845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19846 soname_spec='${libname}${release}${shared_ext}$major'
19847 shlibpath_var=LD_LIBRARY_PATH
19848 shlibpath_overrides_runpath=yes
19849 hardcode_into_libs=yes
19850 # ldd complains unless libraries are executable
19851 postinstall_cmds='chmod +x $lib'
19856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19857 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19858 shlibpath_var=LD_LIBRARY_PATH
19859 shlibpath_overrides_runpath=yes
19860 if test "$with_gnu_ld" = yes; then
19866 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19869 soname_spec='${libname}${release}${shared_ext}$major'
19870 shlibpath_var=LD_LIBRARY_PATH
19871 case $host_vendor in
19873 shlibpath_overrides_runpath=no
19875 export_dynamic_flag_spec='${wl}-Blargedynsym'
19876 runpath_var=LD_RUN_PATH
19884 shlibpath_overrides_runpath=no
19885 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19891 if test -d /usr/nec ;then
19893 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19894 soname_spec='$libname${shared_ext}.$major'
19895 shlibpath_var=LD_LIBRARY_PATH
19901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19902 soname_spec='${libname}${release}${shared_ext}$major'
19903 shlibpath_var=LD_LIBRARY_PATH
19910 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19911 echo "${ECHO_T}$dynamic_linker" >&6
19912 test "$dynamic_linker" = no && can_build_shared=no
19914 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19915 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19916 hardcode_action_GCJ=
19917 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19918 test -n "$runpath_var_GCJ" || \
19919 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19921 # We can hardcode non-existant directories.
19922 if test "$hardcode_direct_GCJ" != no &&
19923 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19924 # have to relink, otherwise we might link with an installed library
19925 # when we should be linking with a yet-to-be-installed one
19926 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19927 test "$hardcode_minus_L_GCJ" != no; then
19928 # Linking always hardcodes the temporary library directory.
19929 hardcode_action_GCJ=relink
19931 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19932 hardcode_action_GCJ=immediate
19935 # We cannot hardcode anything, or else we can only hardcode existing
19937 hardcode_action_GCJ=unsupported
19939 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19940 echo "${ECHO_T}$hardcode_action_GCJ" >&6
19942 if test "$hardcode_action_GCJ" = relink; then
19943 # Fast installation is not supported
19944 enable_fast_install=no
19945 elif test "$shlibpath_overrides_runpath" = yes ||
19946 test "$enable_shared" = no; then
19947 # Fast installation is not necessary
19948 enable_fast_install=needless
19953 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19954 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19955 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
19956 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19957 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19958 echo "$as_me:$LINENO: result: yes" >&5
19959 echo "${ECHO_T}yes" >&6
19961 # FIXME - insert some real tests, host_os isn't really good enough
19964 if test -n "$STRIP" ; then
19965 striplib="$STRIP -x"
19966 echo "$as_me:$LINENO: result: yes" >&5
19967 echo "${ECHO_T}yes" >&6
19969 echo "$as_me:$LINENO: result: no" >&5
19970 echo "${ECHO_T}no" >&6
19974 echo "$as_me:$LINENO: result: no" >&5
19975 echo "${ECHO_T}no" >&6
19980 if test "x$enable_dlopen" != xyes; then
19981 enable_dlopen=unknown
19982 enable_dlopen_self=unknown
19983 enable_dlopen_self_static=unknown
19990 lt_cv_dlopen="load_add_on"
19992 lt_cv_dlopen_self=yes
19996 lt_cv_dlopen="LoadLibrary"
20001 lt_cv_dlopen="dlopen"
20006 # if libdl is installed we need to link against it
20007 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20008 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20009 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20010 echo $ECHO_N "(cached) $ECHO_C" >&6
20012 ac_check_lib_save_LIBS=$LIBS
20014 cat >conftest.$ac_ext <<_ACEOF
20017 cat confdefs.h >>conftest.$ac_ext
20018 cat >>conftest.$ac_ext <<_ACEOF
20019 /* end confdefs.h. */
20021 /* Override any gcc2 internal prototype to avoid an error. */
20025 /* We use char because int might match the return type of a gcc2
20026 builtin and then its argument prototype would still apply. */
20036 rm -f conftest.$ac_objext conftest$ac_exeext
20037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20038 (eval $ac_link) 2>conftest.er1
20040 grep -v '^ *+' conftest.er1 >conftest.err
20042 cat conftest.err >&5
20043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044 (exit $ac_status); } &&
20045 { ac_try='test -z "$ac_c_werror_flag"
20046 || test ! -s conftest.err'
20047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20048 (eval $ac_try) 2>&5
20050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20051 (exit $ac_status); }; } &&
20052 { ac_try='test -s conftest$ac_exeext'
20053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20054 (eval $ac_try) 2>&5
20056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057 (exit $ac_status); }; }; then
20058 ac_cv_lib_dl_dlopen=yes
20060 echo "$as_me: failed program was:" >&5
20061 sed 's/^/| /' conftest.$ac_ext >&5
20063 ac_cv_lib_dl_dlopen=no
20065 rm -f conftest.err conftest.$ac_objext \
20066 conftest$ac_exeext conftest.$ac_ext
20067 LIBS=$ac_check_lib_save_LIBS
20069 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20070 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20071 if test $ac_cv_lib_dl_dlopen = yes; then
20072 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20075 lt_cv_dlopen="dyld"
20077 lt_cv_dlopen_self=yes
20084 echo "$as_me:$LINENO: checking for shl_load" >&5
20085 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
20086 if test "${ac_cv_func_shl_load+set}" = set; then
20087 echo $ECHO_N "(cached) $ECHO_C" >&6
20089 cat >conftest.$ac_ext <<_ACEOF
20092 cat confdefs.h >>conftest.$ac_ext
20093 cat >>conftest.$ac_ext <<_ACEOF
20094 /* end confdefs.h. */
20095 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20097 #define shl_load innocuous_shl_load
20099 /* System header to define __stub macros and hopefully few prototypes,
20100 which can conflict with char shl_load (); below.
20101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20102 <limits.h> exists even on freestanding compilers. */
20105 # include <limits.h>
20107 # include <assert.h>
20112 /* Override any gcc2 internal prototype to avoid an error. */
20117 /* We use char because int might match the return type of a gcc2
20118 builtin and then its argument prototype would still apply. */
20120 /* The GNU C library defines this for functions which it implements
20121 to always fail with ENOSYS. Some functions are actually named
20122 something starting with __ and the normal name is an alias. */
20123 #if defined (__stub_shl_load) || defined (__stub___shl_load)
20126 char (*f) () = shl_load;
20135 return f != shl_load;
20140 rm -f conftest.$ac_objext conftest$ac_exeext
20141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20142 (eval $ac_link) 2>conftest.er1
20144 grep -v '^ *+' conftest.er1 >conftest.err
20146 cat conftest.err >&5
20147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148 (exit $ac_status); } &&
20149 { ac_try='test -z "$ac_c_werror_flag"
20150 || test ! -s conftest.err'
20151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20152 (eval $ac_try) 2>&5
20154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155 (exit $ac_status); }; } &&
20156 { ac_try='test -s conftest$ac_exeext'
20157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20158 (eval $ac_try) 2>&5
20160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161 (exit $ac_status); }; }; then
20162 ac_cv_func_shl_load=yes
20164 echo "$as_me: failed program was:" >&5
20165 sed 's/^/| /' conftest.$ac_ext >&5
20167 ac_cv_func_shl_load=no
20169 rm -f conftest.err conftest.$ac_objext \
20170 conftest$ac_exeext conftest.$ac_ext
20172 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20173 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
20174 if test $ac_cv_func_shl_load = yes; then
20175 lt_cv_dlopen="shl_load"
20177 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20178 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
20179 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20180 echo $ECHO_N "(cached) $ECHO_C" >&6
20182 ac_check_lib_save_LIBS=$LIBS
20184 cat >conftest.$ac_ext <<_ACEOF
20187 cat confdefs.h >>conftest.$ac_ext
20188 cat >>conftest.$ac_ext <<_ACEOF
20189 /* end confdefs.h. */
20191 /* Override any gcc2 internal prototype to avoid an error. */
20195 /* We use char because int might match the return type of a gcc2
20196 builtin and then its argument prototype would still apply. */
20206 rm -f conftest.$ac_objext conftest$ac_exeext
20207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20208 (eval $ac_link) 2>conftest.er1
20210 grep -v '^ *+' conftest.er1 >conftest.err
20212 cat conftest.err >&5
20213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20214 (exit $ac_status); } &&
20215 { ac_try='test -z "$ac_c_werror_flag"
20216 || test ! -s conftest.err'
20217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20218 (eval $ac_try) 2>&5
20220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20221 (exit $ac_status); }; } &&
20222 { ac_try='test -s conftest$ac_exeext'
20223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20224 (eval $ac_try) 2>&5
20226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227 (exit $ac_status); }; }; then
20228 ac_cv_lib_dld_shl_load=yes
20230 echo "$as_me: failed program was:" >&5
20231 sed 's/^/| /' conftest.$ac_ext >&5
20233 ac_cv_lib_dld_shl_load=no
20235 rm -f conftest.err conftest.$ac_objext \
20236 conftest$ac_exeext conftest.$ac_ext
20237 LIBS=$ac_check_lib_save_LIBS
20239 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20240 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
20241 if test $ac_cv_lib_dld_shl_load = yes; then
20242 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
20244 echo "$as_me:$LINENO: checking for dlopen" >&5
20245 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
20246 if test "${ac_cv_func_dlopen+set}" = set; then
20247 echo $ECHO_N "(cached) $ECHO_C" >&6
20249 cat >conftest.$ac_ext <<_ACEOF
20252 cat confdefs.h >>conftest.$ac_ext
20253 cat >>conftest.$ac_ext <<_ACEOF
20254 /* end confdefs.h. */
20255 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
20256 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20257 #define dlopen innocuous_dlopen
20259 /* System header to define __stub macros and hopefully few prototypes,
20260 which can conflict with char dlopen (); below.
20261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20262 <limits.h> exists even on freestanding compilers. */
20265 # include <limits.h>
20267 # include <assert.h>
20272 /* Override any gcc2 internal prototype to avoid an error. */
20277 /* We use char because int might match the return type of a gcc2
20278 builtin and then its argument prototype would still apply. */
20280 /* The GNU C library defines this for functions which it implements
20281 to always fail with ENOSYS. Some functions are actually named
20282 something starting with __ and the normal name is an alias. */
20283 #if defined (__stub_dlopen) || defined (__stub___dlopen)
20286 char (*f) () = dlopen;
20295 return f != dlopen;
20300 rm -f conftest.$ac_objext conftest$ac_exeext
20301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20302 (eval $ac_link) 2>conftest.er1
20304 grep -v '^ *+' conftest.er1 >conftest.err
20306 cat conftest.err >&5
20307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308 (exit $ac_status); } &&
20309 { ac_try='test -z "$ac_c_werror_flag"
20310 || test ! -s conftest.err'
20311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20312 (eval $ac_try) 2>&5
20314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20315 (exit $ac_status); }; } &&
20316 { ac_try='test -s conftest$ac_exeext'
20317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20318 (eval $ac_try) 2>&5
20320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20321 (exit $ac_status); }; }; then
20322 ac_cv_func_dlopen=yes
20324 echo "$as_me: failed program was:" >&5
20325 sed 's/^/| /' conftest.$ac_ext >&5
20327 ac_cv_func_dlopen=no
20329 rm -f conftest.err conftest.$ac_objext \
20330 conftest$ac_exeext conftest.$ac_ext
20332 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
20333 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
20334 if test $ac_cv_func_dlopen = yes; then
20335 lt_cv_dlopen="dlopen"
20337 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20338 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20339 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20340 echo $ECHO_N "(cached) $ECHO_C" >&6
20342 ac_check_lib_save_LIBS=$LIBS
20344 cat >conftest.$ac_ext <<_ACEOF
20347 cat confdefs.h >>conftest.$ac_ext
20348 cat >>conftest.$ac_ext <<_ACEOF
20349 /* end confdefs.h. */
20351 /* Override any gcc2 internal prototype to avoid an error. */
20355 /* We use char because int might match the return type of a gcc2
20356 builtin and then its argument prototype would still apply. */
20366 rm -f conftest.$ac_objext conftest$ac_exeext
20367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20368 (eval $ac_link) 2>conftest.er1
20370 grep -v '^ *+' conftest.er1 >conftest.err
20372 cat conftest.err >&5
20373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20374 (exit $ac_status); } &&
20375 { ac_try='test -z "$ac_c_werror_flag"
20376 || test ! -s conftest.err'
20377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20378 (eval $ac_try) 2>&5
20380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381 (exit $ac_status); }; } &&
20382 { ac_try='test -s conftest$ac_exeext'
20383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20384 (eval $ac_try) 2>&5
20386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20387 (exit $ac_status); }; }; then
20388 ac_cv_lib_dl_dlopen=yes
20390 echo "$as_me: failed program was:" >&5
20391 sed 's/^/| /' conftest.$ac_ext >&5
20393 ac_cv_lib_dl_dlopen=no
20395 rm -f conftest.err conftest.$ac_objext \
20396 conftest$ac_exeext conftest.$ac_ext
20397 LIBS=$ac_check_lib_save_LIBS
20399 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20400 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20401 if test $ac_cv_lib_dl_dlopen = yes; then
20402 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20404 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20405 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
20406 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20407 echo $ECHO_N "(cached) $ECHO_C" >&6
20409 ac_check_lib_save_LIBS=$LIBS
20410 LIBS="-lsvld $LIBS"
20411 cat >conftest.$ac_ext <<_ACEOF
20414 cat confdefs.h >>conftest.$ac_ext
20415 cat >>conftest.$ac_ext <<_ACEOF
20416 /* end confdefs.h. */
20418 /* Override any gcc2 internal prototype to avoid an error. */
20422 /* We use char because int might match the return type of a gcc2
20423 builtin and then its argument prototype would still apply. */
20433 rm -f conftest.$ac_objext conftest$ac_exeext
20434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20435 (eval $ac_link) 2>conftest.er1
20437 grep -v '^ *+' conftest.er1 >conftest.err
20439 cat conftest.err >&5
20440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441 (exit $ac_status); } &&
20442 { ac_try='test -z "$ac_c_werror_flag"
20443 || test ! -s conftest.err'
20444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20445 (eval $ac_try) 2>&5
20447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20448 (exit $ac_status); }; } &&
20449 { ac_try='test -s conftest$ac_exeext'
20450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20451 (eval $ac_try) 2>&5
20453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20454 (exit $ac_status); }; }; then
20455 ac_cv_lib_svld_dlopen=yes
20457 echo "$as_me: failed program was:" >&5
20458 sed 's/^/| /' conftest.$ac_ext >&5
20460 ac_cv_lib_svld_dlopen=no
20462 rm -f conftest.err conftest.$ac_objext \
20463 conftest$ac_exeext conftest.$ac_ext
20464 LIBS=$ac_check_lib_save_LIBS
20466 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20467 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
20468 if test $ac_cv_lib_svld_dlopen = yes; then
20469 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
20471 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20472 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
20473 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20474 echo $ECHO_N "(cached) $ECHO_C" >&6
20476 ac_check_lib_save_LIBS=$LIBS
20478 cat >conftest.$ac_ext <<_ACEOF
20481 cat confdefs.h >>conftest.$ac_ext
20482 cat >>conftest.$ac_ext <<_ACEOF
20483 /* end confdefs.h. */
20485 /* Override any gcc2 internal prototype to avoid an error. */
20489 /* We use char because int might match the return type of a gcc2
20490 builtin and then its argument prototype would still apply. */
20500 rm -f conftest.$ac_objext conftest$ac_exeext
20501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20502 (eval $ac_link) 2>conftest.er1
20504 grep -v '^ *+' conftest.er1 >conftest.err
20506 cat conftest.err >&5
20507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20508 (exit $ac_status); } &&
20509 { ac_try='test -z "$ac_c_werror_flag"
20510 || test ! -s conftest.err'
20511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20512 (eval $ac_try) 2>&5
20514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20515 (exit $ac_status); }; } &&
20516 { ac_try='test -s conftest$ac_exeext'
20517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20518 (eval $ac_try) 2>&5
20520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20521 (exit $ac_status); }; }; then
20522 ac_cv_lib_dld_dld_link=yes
20524 echo "$as_me: failed program was:" >&5
20525 sed 's/^/| /' conftest.$ac_ext >&5
20527 ac_cv_lib_dld_dld_link=no
20529 rm -f conftest.err conftest.$ac_objext \
20530 conftest$ac_exeext conftest.$ac_ext
20531 LIBS=$ac_check_lib_save_LIBS
20533 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20534 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
20535 if test $ac_cv_lib_dld_dld_link = yes; then
20536 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
20557 if test "x$lt_cv_dlopen" != xno; then
20563 case $lt_cv_dlopen in
20565 save_CPPFLAGS="$CPPFLAGS"
20566 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
20568 save_LDFLAGS="$LDFLAGS"
20569 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20572 LIBS="$lt_cv_dlopen_libs $LIBS"
20574 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
20575 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
20576 if test "${lt_cv_dlopen_self+set}" = set; then
20577 echo $ECHO_N "(cached) $ECHO_C" >&6
20579 if test "$cross_compiling" = yes; then :
20580 lt_cv_dlopen_self=cross
20582 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20583 lt_status=$lt_dlunknown
20584 cat > conftest.$ac_ext <<EOF
20585 #line 20585 "configure"
20586 #include "confdefs.h"
20595 # define LT_DLGLOBAL RTLD_GLOBAL
20598 # define LT_DLGLOBAL DL_GLOBAL
20600 # define LT_DLGLOBAL 0
20604 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20605 find out it does not work in some platform. */
20606 #ifndef LT_DLLAZY_OR_NOW
20608 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20611 # define LT_DLLAZY_OR_NOW DL_LAZY
20614 # define LT_DLLAZY_OR_NOW RTLD_NOW
20617 # define LT_DLLAZY_OR_NOW DL_NOW
20619 # define LT_DLLAZY_OR_NOW 0
20627 extern "C" void exit (int);
20630 void fnord() { int i=42;}
20633 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20634 int status = $lt_dlunknown;
20638 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20639 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20640 /* dlclose (self); */
20646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20647 (eval $ac_link) 2>&5
20649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20650 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20651 (./conftest; exit; ) 2>/dev/null
20653 case x$lt_status in
20654 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20655 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20656 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
20659 # compilation failed
20660 lt_cv_dlopen_self=no
20667 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
20668 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
20670 if test "x$lt_cv_dlopen_self" = xyes; then
20671 LDFLAGS="$LDFLAGS $link_static_flag"
20672 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
20673 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
20674 if test "${lt_cv_dlopen_self_static+set}" = set; then
20675 echo $ECHO_N "(cached) $ECHO_C" >&6
20677 if test "$cross_compiling" = yes; then :
20678 lt_cv_dlopen_self_static=cross
20680 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20681 lt_status=$lt_dlunknown
20682 cat > conftest.$ac_ext <<EOF
20683 #line 20683 "configure"
20684 #include "confdefs.h"
20693 # define LT_DLGLOBAL RTLD_GLOBAL
20696 # define LT_DLGLOBAL DL_GLOBAL
20698 # define LT_DLGLOBAL 0
20702 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20703 find out it does not work in some platform. */
20704 #ifndef LT_DLLAZY_OR_NOW
20706 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20709 # define LT_DLLAZY_OR_NOW DL_LAZY
20712 # define LT_DLLAZY_OR_NOW RTLD_NOW
20715 # define LT_DLLAZY_OR_NOW DL_NOW
20717 # define LT_DLLAZY_OR_NOW 0
20725 extern "C" void exit (int);
20728 void fnord() { int i=42;}
20731 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20732 int status = $lt_dlunknown;
20736 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20737 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20738 /* dlclose (self); */
20744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20745 (eval $ac_link) 2>&5
20747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20748 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20749 (./conftest; exit; ) 2>/dev/null
20751 case x$lt_status in
20752 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20753 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20754 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
20757 # compilation failed
20758 lt_cv_dlopen_self_static=no
20765 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
20766 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
20769 CPPFLAGS="$save_CPPFLAGS"
20770 LDFLAGS="$save_LDFLAGS"
20775 case $lt_cv_dlopen_self in
20776 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20777 *) enable_dlopen_self=unknown ;;
20780 case $lt_cv_dlopen_self_static in
20781 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20782 *) enable_dlopen_self_static=unknown ;;
20787 # The else clause should only fire when bootstrapping the
20788 # libtool distribution, otherwise you forgot to ship ltmain.sh
20789 # with your package, and you will get complaints that there are
20790 # no rules to generate ltmain.sh.
20791 if test -f "$ltmain"; then
20792 # See if we are running on zsh, and set the options which allow our commands through
20793 # without removal of \ escapes.
20794 if test -n "${ZSH_VERSION+set}" ; then
20795 setopt NO_GLOB_SUBST
20797 # Now quote all the things that may contain metacharacters while being
20798 # careful not to overquote the AC_SUBSTed values. We take copies of the
20799 # variables and quote the copies for generation of the libtool script.
20800 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20802 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20803 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20804 deplibs_check_method reload_flag reload_cmds need_locks \
20805 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20806 lt_cv_sys_global_symbol_to_c_name_address \
20807 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20808 old_postinstall_cmds old_postuninstall_cmds \
20812 lt_prog_compiler_wl_GCJ \
20813 lt_prog_compiler_pic_GCJ \
20814 lt_prog_compiler_static_GCJ \
20815 lt_prog_compiler_no_builtin_flag_GCJ \
20816 export_dynamic_flag_spec_GCJ \
20817 thread_safe_flag_spec_GCJ \
20818 whole_archive_flag_spec_GCJ \
20819 enable_shared_with_static_runtimes_GCJ \
20820 old_archive_cmds_GCJ \
20821 old_archive_from_new_cmds_GCJ \
20822 predep_objects_GCJ \
20823 postdep_objects_GCJ \
20826 compiler_lib_search_path_GCJ \
20828 archive_expsym_cmds_GCJ \
20829 postinstall_cmds_GCJ \
20830 postuninstall_cmds_GCJ \
20831 old_archive_from_expsyms_cmds_GCJ \
20832 allow_undefined_flag_GCJ \
20833 no_undefined_flag_GCJ \
20834 export_symbols_cmds_GCJ \
20835 hardcode_libdir_flag_spec_GCJ \
20836 hardcode_libdir_flag_spec_ld_GCJ \
20837 hardcode_libdir_separator_GCJ \
20838 hardcode_automatic_GCJ \
20840 module_expsym_cmds_GCJ \
20841 lt_cv_prog_compiler_c_o_GCJ \
20842 exclude_expsyms_GCJ \
20843 include_expsyms_GCJ; do
20846 old_archive_cmds_GCJ | \
20847 old_archive_from_new_cmds_GCJ | \
20848 archive_cmds_GCJ | \
20849 archive_expsym_cmds_GCJ | \
20850 module_cmds_GCJ | \
20851 module_expsym_cmds_GCJ | \
20852 old_archive_from_expsyms_cmds_GCJ | \
20853 export_symbols_cmds_GCJ | \
20854 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20855 postinstall_cmds | postuninstall_cmds | \
20856 old_postinstall_cmds | old_postuninstall_cmds | \
20857 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20858 # Double-quote double-evaled strings.
20859 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20862 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20868 *'\$0 --fallback-echo"')
20869 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20875 cat <<__EOF__ >> "$cfgfile"
20876 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20878 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20880 # Shell to use when invoking shell scripts.
20883 # Whether or not to build shared libraries.
20884 build_libtool_libs=$enable_shared
20886 # Whether or not to build static libraries.
20887 build_old_libs=$enable_static
20889 # Whether or not to add -lc for building shared libraries.
20890 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20892 # Whether or not to disallow shared libs when runtime libs are static
20893 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20895 # Whether or not to optimize for fast installation.
20896 fast_install=$enable_fast_install
20899 host_alias=$host_alias
20903 # The build system.
20904 build_alias=$build_alias
20908 # An echo program that does not interpret backslashes.
20913 AR_FLAGS=$lt_AR_FLAGS
20918 # A language-specific compiler.
20919 CC=$lt_compiler_GCJ
20921 # Is the compiler the GNU C compiler?
20927 # The linker used to build libraries.
20930 # Whether we need hard or soft links.
20933 # A BSD-compatible nm program.
20936 # A symbol stripping program
20939 # Used to examine libraries when file_magic_cmd begins "file"
20940 MAGIC_CMD=$MAGIC_CMD
20942 # Used on cygwin: DLL creation program.
20945 # Used on cygwin: object dumper.
20948 # Used on cygwin: assembler.
20951 # The name of the directory that contains temporary libtool files.
20954 # How to create reloadable object files.
20955 reload_flag=$lt_reload_flag
20956 reload_cmds=$lt_reload_cmds
20958 # How to pass a linker flag through the compiler.
20959 wl=$lt_lt_prog_compiler_wl_GCJ
20961 # Object file suffix (normally "o").
20962 objext="$ac_objext"
20964 # Old archive suffix (normally "a").
20967 # Shared library suffix (normally ".so").
20968 shrext_cmds='$shrext_cmds'
20970 # Executable file suffix (normally "").
20973 # Additional compiler flags for building library objects.
20974 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20977 # What is the maximum length of a command?
20978 max_cmd_len=$lt_cv_sys_max_cmd_len
20980 # Does compiler simultaneously support -c and -o options?
20981 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20983 # Must we lock files when doing compilation?
20984 need_locks=$lt_need_locks
20986 # Do we need the lib prefix for modules?
20987 need_lib_prefix=$need_lib_prefix
20989 # Do we need a version for libraries?
20990 need_version=$need_version
20992 # Whether dlopen is supported.
20993 dlopen_support=$enable_dlopen
20995 # Whether dlopen of programs is supported.
20996 dlopen_self=$enable_dlopen_self
20998 # Whether dlopen of statically linked programs is supported.
20999 dlopen_self_static=$enable_dlopen_self_static
21001 # Compiler flag to prevent dynamic linking.
21002 link_static_flag=$lt_lt_prog_compiler_static_GCJ
21004 # Compiler flag to turn off builtin functions.
21005 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
21007 # Compiler flag to allow reflexive dlopens.
21008 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
21010 # Compiler flag to generate shared objects directly from archives.
21011 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
21013 # Compiler flag to generate thread-safe objects.
21014 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
21016 # Library versioning type.
21017 version_type=$version_type
21019 # Format of library name prefix.
21020 libname_spec=$lt_libname_spec
21022 # List of archive names. First name is the real one, the rest are links.
21023 # The last name is the one that the linker finds with -lNAME.
21024 library_names_spec=$lt_library_names_spec
21026 # The coded name of the library, if different from the real name.
21027 soname_spec=$lt_soname_spec
21029 # Commands used to build and install an old-style archive.
21031 old_archive_cmds=$lt_old_archive_cmds_GCJ
21032 old_postinstall_cmds=$lt_old_postinstall_cmds
21033 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21035 # Create an old-style archive from a shared archive.
21036 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
21038 # Create a temporary old-style archive to link instead of a shared archive.
21039 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
21041 # Commands used to build and install a shared archive.
21042 archive_cmds=$lt_archive_cmds_GCJ
21043 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
21044 postinstall_cmds=$lt_postinstall_cmds
21045 postuninstall_cmds=$lt_postuninstall_cmds
21047 # Commands used to build a loadable module (assumed same as above if empty)
21048 module_cmds=$lt_module_cmds_GCJ
21049 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
21051 # Commands to strip libraries.
21052 old_striplib=$lt_old_striplib
21053 striplib=$lt_striplib
21055 # Dependencies to place before the objects being linked to create a
21057 predep_objects=$lt_predep_objects_GCJ
21059 # Dependencies to place after the objects being linked to create a
21061 postdep_objects=$lt_postdep_objects_GCJ
21063 # Dependencies to place before the objects being linked to create a
21065 predeps=$lt_predeps_GCJ
21067 # Dependencies to place after the objects being linked to create a
21069 postdeps=$lt_postdeps_GCJ
21071 # The library search path used internally by the compiler when linking
21072 # a shared library.
21073 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
21075 # Method to check whether dependent libraries are shared objects.
21076 deplibs_check_method=$lt_deplibs_check_method
21078 # Command to use when deplibs_check_method == file_magic.
21079 file_magic_cmd=$lt_file_magic_cmd
21081 # Flag that allows shared libraries with undefined symbols to be built.
21082 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
21084 # Flag that forces no undefined symbols.
21085 no_undefined_flag=$lt_no_undefined_flag_GCJ
21087 # Commands used to finish a libtool library installation in a directory.
21088 finish_cmds=$lt_finish_cmds
21090 # Same as above, but a single script fragment to be evaled but not shown.
21091 finish_eval=$lt_finish_eval
21093 # Take the output of nm and produce a listing of raw symbols and C names.
21094 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21096 # Transform the output of nm in a proper C declaration
21097 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21099 # Transform the output of nm in a C name address pair
21100 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21102 # This is the shared library runtime path variable.
21103 runpath_var=$runpath_var
21105 # This is the shared library path variable.
21106 shlibpath_var=$shlibpath_var
21108 # Is shlibpath searched before the hard-coded library search path?
21109 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21111 # How to hardcode a shared library path into an executable.
21112 hardcode_action=$hardcode_action_GCJ
21114 # Whether we should hardcode library paths into libraries.
21115 hardcode_into_libs=$hardcode_into_libs
21117 # Flag to hardcode \$libdir into a binary during linking.
21118 # This must work even if \$libdir does not exist.
21119 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
21121 # If ld is used when linking, flag to hardcode \$libdir into
21122 # a binary during linking. This must work even if \$libdir does
21124 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
21126 # Whether we need a single -rpath flag with a separated argument.
21127 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
21129 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21130 # resulting binary.
21131 hardcode_direct=$hardcode_direct_GCJ
21133 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21134 # resulting binary.
21135 hardcode_minus_L=$hardcode_minus_L_GCJ
21137 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21138 # the resulting binary.
21139 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
21141 # Set to yes if building a shared library automatically hardcodes DIR into the library
21142 # and all subsequent libraries and executables linked against it.
21143 hardcode_automatic=$hardcode_automatic_GCJ
21145 # Variables whose values should be saved in libtool wrapper scripts and
21146 # restored at relink time.
21147 variables_saved_for_relink="$variables_saved_for_relink"
21149 # Whether libtool must link a program against all its dependency libraries.
21150 link_all_deplibs=$link_all_deplibs_GCJ
21152 # Compile-time system search path for libraries
21153 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21155 # Run-time system search path for libraries
21156 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21158 # Fix the shell variable \$srcfile for the compiler.
21159 fix_srcfile_path="$fix_srcfile_path_GCJ"
21161 # Set to yes if exported symbols are required.
21162 always_export_symbols=$always_export_symbols_GCJ
21164 # The commands to list exported symbols.
21165 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
21167 # The commands to extract the exported symbol list from a shared archive.
21168 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21170 # Symbols that should not be listed in the preloaded symbols.
21171 exclude_expsyms=$lt_exclude_expsyms_GCJ
21173 # Symbols that must always be exported.
21174 include_expsyms=$lt_include_expsyms_GCJ
21176 # ### END LIBTOOL TAG CONFIG: $tagname
21182 # If there is no Makefile yet, we rely on a make rule to execute
21183 # `config.status --recheck' to rerun these tests and create the
21184 # libtool script then.
21185 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21186 if test -f "$ltmain_in"; then
21187 test -f Makefile && make "$ltmain"
21193 ac_cpp='$CPP $CPPFLAGS'
21194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21209 # Source file extension for RC test sources.
21212 # Object file extension for compiled RC test sources.
21216 # Code to be used in simple compile tests
21217 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
21219 # Code to be used in simple link tests
21220 lt_simple_link_test_code="$lt_simple_compile_test_code"
21222 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21224 # If no C compiler was specified, use CC.
21227 # Allow CC to be a program name with arguments.
21231 # save warnings/boilerplate of simple test code
21232 ac_outfile=conftest.$ac_objext
21233 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21234 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
21235 _lt_compiler_boilerplate=`cat conftest.err`
21238 ac_outfile=conftest.$ac_objext
21239 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21240 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
21241 _lt_linker_boilerplate=`cat conftest.err`
21245 # Allow CC to be a program name with arguments.
21250 for cc_temp in $compiler""; do
21252 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21253 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21258 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21260 lt_cv_prog_compiler_c_o_RC=yes
21262 # The else clause should only fire when bootstrapping the
21263 # libtool distribution, otherwise you forgot to ship ltmain.sh
21264 # with your package, and you will get complaints that there are
21265 # no rules to generate ltmain.sh.
21266 if test -f "$ltmain"; then
21267 # See if we are running on zsh, and set the options which allow our commands through
21268 # without removal of \ escapes.
21269 if test -n "${ZSH_VERSION+set}" ; then
21270 setopt NO_GLOB_SUBST
21272 # Now quote all the things that may contain metacharacters while being
21273 # careful not to overquote the AC_SUBSTed values. We take copies of the
21274 # variables and quote the copies for generation of the libtool script.
21275 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
21277 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21278 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21279 deplibs_check_method reload_flag reload_cmds need_locks \
21280 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21281 lt_cv_sys_global_symbol_to_c_name_address \
21282 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21283 old_postinstall_cmds old_postuninstall_cmds \
21287 lt_prog_compiler_wl_RC \
21288 lt_prog_compiler_pic_RC \
21289 lt_prog_compiler_static_RC \
21290 lt_prog_compiler_no_builtin_flag_RC \
21291 export_dynamic_flag_spec_RC \
21292 thread_safe_flag_spec_RC \
21293 whole_archive_flag_spec_RC \
21294 enable_shared_with_static_runtimes_RC \
21295 old_archive_cmds_RC \
21296 old_archive_from_new_cmds_RC \
21297 predep_objects_RC \
21298 postdep_objects_RC \
21301 compiler_lib_search_path_RC \
21303 archive_expsym_cmds_RC \
21304 postinstall_cmds_RC \
21305 postuninstall_cmds_RC \
21306 old_archive_from_expsyms_cmds_RC \
21307 allow_undefined_flag_RC \
21308 no_undefined_flag_RC \
21309 export_symbols_cmds_RC \
21310 hardcode_libdir_flag_spec_RC \
21311 hardcode_libdir_flag_spec_ld_RC \
21312 hardcode_libdir_separator_RC \
21313 hardcode_automatic_RC \
21315 module_expsym_cmds_RC \
21316 lt_cv_prog_compiler_c_o_RC \
21317 exclude_expsyms_RC \
21318 include_expsyms_RC; do
21321 old_archive_cmds_RC | \
21322 old_archive_from_new_cmds_RC | \
21323 archive_cmds_RC | \
21324 archive_expsym_cmds_RC | \
21326 module_expsym_cmds_RC | \
21327 old_archive_from_expsyms_cmds_RC | \
21328 export_symbols_cmds_RC | \
21329 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21330 postinstall_cmds | postuninstall_cmds | \
21331 old_postinstall_cmds | old_postuninstall_cmds | \
21332 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21333 # Double-quote double-evaled strings.
21334 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21337 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21343 *'\$0 --fallback-echo"')
21344 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21350 cat <<__EOF__ >> "$cfgfile"
21351 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21353 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21355 # Shell to use when invoking shell scripts.
21358 # Whether or not to build shared libraries.
21359 build_libtool_libs=$enable_shared
21361 # Whether or not to build static libraries.
21362 build_old_libs=$enable_static
21364 # Whether or not to add -lc for building shared libraries.
21365 build_libtool_need_lc=$archive_cmds_need_lc_RC
21367 # Whether or not to disallow shared libs when runtime libs are static
21368 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21370 # Whether or not to optimize for fast installation.
21371 fast_install=$enable_fast_install
21374 host_alias=$host_alias
21378 # The build system.
21379 build_alias=$build_alias
21383 # An echo program that does not interpret backslashes.
21388 AR_FLAGS=$lt_AR_FLAGS
21393 # A language-specific compiler.
21396 # Is the compiler the GNU C compiler?
21402 # The linker used to build libraries.
21405 # Whether we need hard or soft links.
21408 # A BSD-compatible nm program.
21411 # A symbol stripping program
21414 # Used to examine libraries when file_magic_cmd begins "file"
21415 MAGIC_CMD=$MAGIC_CMD
21417 # Used on cygwin: DLL creation program.
21420 # Used on cygwin: object dumper.
21423 # Used on cygwin: assembler.
21426 # The name of the directory that contains temporary libtool files.
21429 # How to create reloadable object files.
21430 reload_flag=$lt_reload_flag
21431 reload_cmds=$lt_reload_cmds
21433 # How to pass a linker flag through the compiler.
21434 wl=$lt_lt_prog_compiler_wl_RC
21436 # Object file suffix (normally "o").
21437 objext="$ac_objext"
21439 # Old archive suffix (normally "a").
21442 # Shared library suffix (normally ".so").
21443 shrext_cmds='$shrext_cmds'
21445 # Executable file suffix (normally "").
21448 # Additional compiler flags for building library objects.
21449 pic_flag=$lt_lt_prog_compiler_pic_RC
21452 # What is the maximum length of a command?
21453 max_cmd_len=$lt_cv_sys_max_cmd_len
21455 # Does compiler simultaneously support -c and -o options?
21456 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21458 # Must we lock files when doing compilation?
21459 need_locks=$lt_need_locks
21461 # Do we need the lib prefix for modules?
21462 need_lib_prefix=$need_lib_prefix
21464 # Do we need a version for libraries?
21465 need_version=$need_version
21467 # Whether dlopen is supported.
21468 dlopen_support=$enable_dlopen
21470 # Whether dlopen of programs is supported.
21471 dlopen_self=$enable_dlopen_self
21473 # Whether dlopen of statically linked programs is supported.
21474 dlopen_self_static=$enable_dlopen_self_static
21476 # Compiler flag to prevent dynamic linking.
21477 link_static_flag=$lt_lt_prog_compiler_static_RC
21479 # Compiler flag to turn off builtin functions.
21480 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21482 # Compiler flag to allow reflexive dlopens.
21483 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21485 # Compiler flag to generate shared objects directly from archives.
21486 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21488 # Compiler flag to generate thread-safe objects.
21489 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21491 # Library versioning type.
21492 version_type=$version_type
21494 # Format of library name prefix.
21495 libname_spec=$lt_libname_spec
21497 # List of archive names. First name is the real one, the rest are links.
21498 # The last name is the one that the linker finds with -lNAME.
21499 library_names_spec=$lt_library_names_spec
21501 # The coded name of the library, if different from the real name.
21502 soname_spec=$lt_soname_spec
21504 # Commands used to build and install an old-style archive.
21506 old_archive_cmds=$lt_old_archive_cmds_RC
21507 old_postinstall_cmds=$lt_old_postinstall_cmds
21508 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21510 # Create an old-style archive from a shared archive.
21511 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21513 # Create a temporary old-style archive to link instead of a shared archive.
21514 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21516 # Commands used to build and install a shared archive.
21517 archive_cmds=$lt_archive_cmds_RC
21518 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21519 postinstall_cmds=$lt_postinstall_cmds
21520 postuninstall_cmds=$lt_postuninstall_cmds
21522 # Commands used to build a loadable module (assumed same as above if empty)
21523 module_cmds=$lt_module_cmds_RC
21524 module_expsym_cmds=$lt_module_expsym_cmds_RC
21526 # Commands to strip libraries.
21527 old_striplib=$lt_old_striplib
21528 striplib=$lt_striplib
21530 # Dependencies to place before the objects being linked to create a
21532 predep_objects=$lt_predep_objects_RC
21534 # Dependencies to place after the objects being linked to create a
21536 postdep_objects=$lt_postdep_objects_RC
21538 # Dependencies to place before the objects being linked to create a
21540 predeps=$lt_predeps_RC
21542 # Dependencies to place after the objects being linked to create a
21544 postdeps=$lt_postdeps_RC
21546 # The library search path used internally by the compiler when linking
21547 # a shared library.
21548 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21550 # Method to check whether dependent libraries are shared objects.
21551 deplibs_check_method=$lt_deplibs_check_method
21553 # Command to use when deplibs_check_method == file_magic.
21554 file_magic_cmd=$lt_file_magic_cmd
21556 # Flag that allows shared libraries with undefined symbols to be built.
21557 allow_undefined_flag=$lt_allow_undefined_flag_RC
21559 # Flag that forces no undefined symbols.
21560 no_undefined_flag=$lt_no_undefined_flag_RC
21562 # Commands used to finish a libtool library installation in a directory.
21563 finish_cmds=$lt_finish_cmds
21565 # Same as above, but a single script fragment to be evaled but not shown.
21566 finish_eval=$lt_finish_eval
21568 # Take the output of nm and produce a listing of raw symbols and C names.
21569 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21571 # Transform the output of nm in a proper C declaration
21572 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21574 # Transform the output of nm in a C name address pair
21575 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21577 # This is the shared library runtime path variable.
21578 runpath_var=$runpath_var
21580 # This is the shared library path variable.
21581 shlibpath_var=$shlibpath_var
21583 # Is shlibpath searched before the hard-coded library search path?
21584 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21586 # How to hardcode a shared library path into an executable.
21587 hardcode_action=$hardcode_action_RC
21589 # Whether we should hardcode library paths into libraries.
21590 hardcode_into_libs=$hardcode_into_libs
21592 # Flag to hardcode \$libdir into a binary during linking.
21593 # This must work even if \$libdir does not exist.
21594 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21596 # If ld is used when linking, flag to hardcode \$libdir into
21597 # a binary during linking. This must work even if \$libdir does
21599 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21601 # Whether we need a single -rpath flag with a separated argument.
21602 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21604 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21605 # resulting binary.
21606 hardcode_direct=$hardcode_direct_RC
21608 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21609 # resulting binary.
21610 hardcode_minus_L=$hardcode_minus_L_RC
21612 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21613 # the resulting binary.
21614 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21616 # Set to yes if building a shared library automatically hardcodes DIR into the library
21617 # and all subsequent libraries and executables linked against it.
21618 hardcode_automatic=$hardcode_automatic_RC
21620 # Variables whose values should be saved in libtool wrapper scripts and
21621 # restored at relink time.
21622 variables_saved_for_relink="$variables_saved_for_relink"
21624 # Whether libtool must link a program against all its dependency libraries.
21625 link_all_deplibs=$link_all_deplibs_RC
21627 # Compile-time system search path for libraries
21628 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21630 # Run-time system search path for libraries
21631 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21633 # Fix the shell variable \$srcfile for the compiler.
21634 fix_srcfile_path="$fix_srcfile_path_RC"
21636 # Set to yes if exported symbols are required.
21637 always_export_symbols=$always_export_symbols_RC
21639 # The commands to list exported symbols.
21640 export_symbols_cmds=$lt_export_symbols_cmds_RC
21642 # The commands to extract the exported symbol list from a shared archive.
21643 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21645 # Symbols that should not be listed in the preloaded symbols.
21646 exclude_expsyms=$lt_exclude_expsyms_RC
21648 # Symbols that must always be exported.
21649 include_expsyms=$lt_include_expsyms_RC
21651 # ### END LIBTOOL TAG CONFIG: $tagname
21657 # If there is no Makefile yet, we rely on a make rule to execute
21658 # `config.status --recheck' to rerun these tests and create the
21659 # libtool script then.
21660 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21661 if test -f "$ltmain_in"; then
21662 test -f Makefile && make "$ltmain"
21668 ac_cpp='$CPP $CPPFLAGS'
21669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21678 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21679 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21680 { (exit 1); exit 1; }; }
21684 # Append the new tag name to the list of available tags.
21685 if test -n "$tagname" ; then
21686 available_tags="$available_tags $tagname"
21692 # Now substitute the updated list of available tags.
21693 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21694 mv "${ofile}T" "$ofile"
21698 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21699 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21700 { (exit 1); exit 1; }; }
21706 # This can be used to rebuild libtool when needed
21707 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21709 # Always use our own libtool.
21710 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21712 # Prevent multiple expansion
21735 if test $ol_enable_perl != no ; then
21736 # Extract the first word of "perl", so it can be a program name with args.
21737 set dummy perl; ac_word=$2
21738 echo "$as_me:$LINENO: checking for $ac_word" >&5
21739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21740 if test "${ac_cv_path_PERLBIN+set}" = set; then
21741 echo $ECHO_N "(cached) $ECHO_C" >&6
21745 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
21748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21749 for as_dir in $PATH
21752 test -z "$as_dir" && as_dir=.
21753 for ac_exec_ext in '' $ac_executable_extensions; do
21754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21755 ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
21756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21762 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
21766 PERLBIN=$ac_cv_path_PERLBIN
21768 if test -n "$PERLBIN"; then
21769 echo "$as_me:$LINENO: result: $PERLBIN" >&5
21770 echo "${ECHO_T}$PERLBIN" >&6
21772 echo "$as_me:$LINENO: result: no" >&5
21773 echo "${ECHO_T}no" >&6
21777 if test "no$PERLBIN" = "no" ; then
21778 if test $ol_enable_perl = yes ; then
21779 { { echo "$as_me:$LINENO: error: could not locate perl" >&5
21780 echo "$as_me: error: could not locate perl" >&2;}
21781 { (exit 1); exit 1; }; }
21785 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
21786 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
21788 if test x"$ol_enable_perl" = "xyes" ; then
21789 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
21791 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
21798 ac_cpp='$CPP $CPPFLAGS'
21799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21802 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
21803 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
21804 # On Suns, sometimes $CPP names a directory.
21805 if test -n "$CPP" && test -d "$CPP"; then
21808 if test -z "$CPP"; then
21809 if test "${ac_cv_prog_CPP+set}" = set; then
21810 echo $ECHO_N "(cached) $ECHO_C" >&6
21812 # Double quotes because CPP needs to be expanded
21813 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
21815 ac_preproc_ok=false
21816 for ac_c_preproc_warn_flag in '' yes
21818 # Use a header file that comes with gcc, so configuring glibc
21819 # with a fresh cross-compiler works.
21820 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21821 # <limits.h> exists even on freestanding compilers.
21822 # On the NeXT, cc -E runs the code through the compiler's parser,
21823 # not just through cpp. "Syntax error" is here to catch this case.
21824 cat >conftest.$ac_ext <<_ACEOF
21827 cat confdefs.h >>conftest.$ac_ext
21828 cat >>conftest.$ac_ext <<_ACEOF
21829 /* end confdefs.h. */
21831 # include <limits.h>
21833 # include <assert.h>
21837 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21838 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21840 grep -v '^ *+' conftest.er1 >conftest.err
21842 cat conftest.err >&5
21843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21844 (exit $ac_status); } >/dev/null; then
21845 if test -s conftest.err; then
21846 ac_cpp_err=$ac_c_preproc_warn_flag
21847 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21854 if test -z "$ac_cpp_err"; then
21857 echo "$as_me: failed program was:" >&5
21858 sed 's/^/| /' conftest.$ac_ext >&5
21860 # Broken: fails on valid input.
21863 rm -f conftest.err conftest.$ac_ext
21865 # OK, works on sane cases. Now check whether non-existent headers
21866 # can be detected and how.
21867 cat >conftest.$ac_ext <<_ACEOF
21870 cat confdefs.h >>conftest.$ac_ext
21871 cat >>conftest.$ac_ext <<_ACEOF
21872 /* end confdefs.h. */
21873 #include <ac_nonexistent.h>
21875 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21876 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21878 grep -v '^ *+' conftest.er1 >conftest.err
21880 cat conftest.err >&5
21881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21882 (exit $ac_status); } >/dev/null; then
21883 if test -s conftest.err; then
21884 ac_cpp_err=$ac_c_preproc_warn_flag
21885 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21892 if test -z "$ac_cpp_err"; then
21893 # Broken: success on invalid input.
21896 echo "$as_me: failed program was:" >&5
21897 sed 's/^/| /' conftest.$ac_ext >&5
21899 # Passes both tests.
21903 rm -f conftest.err conftest.$ac_ext
21906 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21907 rm -f conftest.err conftest.$ac_ext
21908 if $ac_preproc_ok; then
21913 ac_cv_prog_CPP=$CPP
21916 CPP=$ac_cv_prog_CPP
21918 ac_cv_prog_CPP=$CPP
21920 echo "$as_me:$LINENO: result: $CPP" >&5
21921 echo "${ECHO_T}$CPP" >&6
21922 ac_preproc_ok=false
21923 for ac_c_preproc_warn_flag in '' yes
21925 # Use a header file that comes with gcc, so configuring glibc
21926 # with a fresh cross-compiler works.
21927 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21928 # <limits.h> exists even on freestanding compilers.
21929 # On the NeXT, cc -E runs the code through the compiler's parser,
21930 # not just through cpp. "Syntax error" is here to catch this case.
21931 cat >conftest.$ac_ext <<_ACEOF
21934 cat confdefs.h >>conftest.$ac_ext
21935 cat >>conftest.$ac_ext <<_ACEOF
21936 /* end confdefs.h. */
21938 # include <limits.h>
21940 # include <assert.h>
21944 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21945 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21947 grep -v '^ *+' conftest.er1 >conftest.err
21949 cat conftest.err >&5
21950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21951 (exit $ac_status); } >/dev/null; then
21952 if test -s conftest.err; then
21953 ac_cpp_err=$ac_c_preproc_warn_flag
21954 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21961 if test -z "$ac_cpp_err"; then
21964 echo "$as_me: failed program was:" >&5
21965 sed 's/^/| /' conftest.$ac_ext >&5
21967 # Broken: fails on valid input.
21970 rm -f conftest.err conftest.$ac_ext
21972 # OK, works on sane cases. Now check whether non-existent headers
21973 # can be detected and how.
21974 cat >conftest.$ac_ext <<_ACEOF
21977 cat confdefs.h >>conftest.$ac_ext
21978 cat >>conftest.$ac_ext <<_ACEOF
21979 /* end confdefs.h. */
21980 #include <ac_nonexistent.h>
21982 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21983 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21985 grep -v '^ *+' conftest.er1 >conftest.err
21987 cat conftest.err >&5
21988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21989 (exit $ac_status); } >/dev/null; then
21990 if test -s conftest.err; then
21991 ac_cpp_err=$ac_c_preproc_warn_flag
21992 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21999 if test -z "$ac_cpp_err"; then
22000 # Broken: success on invalid input.
22003 echo "$as_me: failed program was:" >&5
22004 sed 's/^/| /' conftest.$ac_ext >&5
22006 # Passes both tests.
22010 rm -f conftest.err conftest.$ac_ext
22013 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22014 rm -f conftest.err conftest.$ac_ext
22015 if $ac_preproc_ok; then
22018 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
22019 See \`config.log' for more details." >&5
22020 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
22021 See \`config.log' for more details." >&2;}
22022 { (exit 1); exit 1; }; }
22026 ac_cpp='$CPP $CPPFLAGS'
22027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22035 cat >>confdefs.h <<_ACEOF
22036 #define EXEEXT "${EXEEXT}"
22040 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
22041 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
22042 if test "${ac_cv_lib_be_be_app+set}" = set; then
22043 echo $ECHO_N "(cached) $ECHO_C" >&6
22045 ac_check_lib_save_LIBS=$LIBS
22046 LIBS="-lbe -lroot -lnet $LIBS"
22047 cat >conftest.$ac_ext <<_ACEOF
22050 cat confdefs.h >>conftest.$ac_ext
22051 cat >>conftest.$ac_ext <<_ACEOF
22052 /* end confdefs.h. */
22054 /* Override any gcc2 internal prototype to avoid an error. */
22058 /* We use char because int might match the return type of a gcc2
22059 builtin and then its argument prototype would still apply. */
22069 rm -f conftest.$ac_objext conftest$ac_exeext
22070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22071 (eval $ac_link) 2>conftest.er1
22073 grep -v '^ *+' conftest.er1 >conftest.err
22075 cat conftest.err >&5
22076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22077 (exit $ac_status); } &&
22078 { ac_try='test -z "$ac_c_werror_flag"
22079 || test ! -s conftest.err'
22080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22081 (eval $ac_try) 2>&5
22083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22084 (exit $ac_status); }; } &&
22085 { ac_try='test -s conftest$ac_exeext'
22086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22087 (eval $ac_try) 2>&5
22089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22090 (exit $ac_status); }; }; then
22091 ac_cv_lib_be_be_app=yes
22093 echo "$as_me: failed program was:" >&5
22094 sed 's/^/| /' conftest.$ac_ext >&5
22096 ac_cv_lib_be_be_app=no
22098 rm -f conftest.err conftest.$ac_objext \
22099 conftest$ac_exeext conftest.$ac_ext
22100 LIBS=$ac_check_lib_save_LIBS
22102 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
22103 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
22104 if test $ac_cv_lib_be_be_app = yes; then
22105 LIBS="$LIBS -lbe -lroot -lnet"
22112 ac_cpp='$CPP $CPPFLAGS'
22113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22116 if test -n "$ac_tool_prefix"; then
22117 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
22118 set dummy ${ac_tool_prefix}gcc; ac_word=$2
22119 echo "$as_me:$LINENO: checking for $ac_word" >&5
22120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22121 if test "${ac_cv_prog_CC+set}" = set; then
22122 echo $ECHO_N "(cached) $ECHO_C" >&6
22124 if test -n "$CC"; then
22125 ac_cv_prog_CC="$CC" # Let the user override the test.
22127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22128 for as_dir in $PATH
22131 test -z "$as_dir" && as_dir=.
22132 for ac_exec_ext in '' $ac_executable_extensions; do
22133 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22134 ac_cv_prog_CC="${ac_tool_prefix}gcc"
22135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22144 if test -n "$CC"; then
22145 echo "$as_me:$LINENO: result: $CC" >&5
22146 echo "${ECHO_T}$CC" >&6
22148 echo "$as_me:$LINENO: result: no" >&5
22149 echo "${ECHO_T}no" >&6
22153 if test -z "$ac_cv_prog_CC"; then
22155 # Extract the first word of "gcc", so it can be a program name with args.
22156 set dummy gcc; ac_word=$2
22157 echo "$as_me:$LINENO: checking for $ac_word" >&5
22158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22159 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22160 echo $ECHO_N "(cached) $ECHO_C" >&6
22162 if test -n "$ac_ct_CC"; then
22163 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22166 for as_dir in $PATH
22169 test -z "$as_dir" && as_dir=.
22170 for ac_exec_ext in '' $ac_executable_extensions; do
22171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22172 ac_cv_prog_ac_ct_CC="gcc"
22173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22181 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22182 if test -n "$ac_ct_CC"; then
22183 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22184 echo "${ECHO_T}$ac_ct_CC" >&6
22186 echo "$as_me:$LINENO: result: no" >&5
22187 echo "${ECHO_T}no" >&6
22192 CC="$ac_cv_prog_CC"
22195 if test -z "$CC"; then
22196 if test -n "$ac_tool_prefix"; then
22197 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
22198 set dummy ${ac_tool_prefix}cc; ac_word=$2
22199 echo "$as_me:$LINENO: checking for $ac_word" >&5
22200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22201 if test "${ac_cv_prog_CC+set}" = set; then
22202 echo $ECHO_N "(cached) $ECHO_C" >&6
22204 if test -n "$CC"; then
22205 ac_cv_prog_CC="$CC" # Let the user override the test.
22207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22208 for as_dir in $PATH
22211 test -z "$as_dir" && as_dir=.
22212 for ac_exec_ext in '' $ac_executable_extensions; do
22213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22214 ac_cv_prog_CC="${ac_tool_prefix}cc"
22215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22224 if test -n "$CC"; then
22225 echo "$as_me:$LINENO: result: $CC" >&5
22226 echo "${ECHO_T}$CC" >&6
22228 echo "$as_me:$LINENO: result: no" >&5
22229 echo "${ECHO_T}no" >&6
22233 if test -z "$ac_cv_prog_CC"; then
22235 # Extract the first word of "cc", so it can be a program name with args.
22236 set dummy cc; ac_word=$2
22237 echo "$as_me:$LINENO: checking for $ac_word" >&5
22238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22239 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22240 echo $ECHO_N "(cached) $ECHO_C" >&6
22242 if test -n "$ac_ct_CC"; then
22243 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22246 for as_dir in $PATH
22249 test -z "$as_dir" && as_dir=.
22250 for ac_exec_ext in '' $ac_executable_extensions; do
22251 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22252 ac_cv_prog_ac_ct_CC="cc"
22253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22261 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22262 if test -n "$ac_ct_CC"; then
22263 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22264 echo "${ECHO_T}$ac_ct_CC" >&6
22266 echo "$as_me:$LINENO: result: no" >&5
22267 echo "${ECHO_T}no" >&6
22272 CC="$ac_cv_prog_CC"
22276 if test -z "$CC"; then
22277 # Extract the first word of "cc", so it can be a program name with args.
22278 set dummy cc; ac_word=$2
22279 echo "$as_me:$LINENO: checking for $ac_word" >&5
22280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22281 if test "${ac_cv_prog_CC+set}" = set; then
22282 echo $ECHO_N "(cached) $ECHO_C" >&6
22284 if test -n "$CC"; then
22285 ac_cv_prog_CC="$CC" # Let the user override the test.
22287 ac_prog_rejected=no
22288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22289 for as_dir in $PATH
22292 test -z "$as_dir" && as_dir=.
22293 for ac_exec_ext in '' $ac_executable_extensions; do
22294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22295 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
22296 ac_prog_rejected=yes
22300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22306 if test $ac_prog_rejected = yes; then
22307 # We found a bogon in the path, so make sure we never use it.
22308 set dummy $ac_cv_prog_CC
22310 if test $# != 0; then
22311 # We chose a different compiler from the bogus one.
22312 # However, it has the same basename, so the bogon will be chosen
22313 # first if we set CC to just the basename; use the full file name.
22315 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
22321 if test -n "$CC"; then
22322 echo "$as_me:$LINENO: result: $CC" >&5
22323 echo "${ECHO_T}$CC" >&6
22325 echo "$as_me:$LINENO: result: no" >&5
22326 echo "${ECHO_T}no" >&6
22330 if test -z "$CC"; then
22331 if test -n "$ac_tool_prefix"; then
22334 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
22335 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
22336 echo "$as_me:$LINENO: checking for $ac_word" >&5
22337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22338 if test "${ac_cv_prog_CC+set}" = set; then
22339 echo $ECHO_N "(cached) $ECHO_C" >&6
22341 if test -n "$CC"; then
22342 ac_cv_prog_CC="$CC" # Let the user override the test.
22344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22345 for as_dir in $PATH
22348 test -z "$as_dir" && as_dir=.
22349 for ac_exec_ext in '' $ac_executable_extensions; do
22350 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22351 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
22352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22361 if test -n "$CC"; then
22362 echo "$as_me:$LINENO: result: $CC" >&5
22363 echo "${ECHO_T}$CC" >&6
22365 echo "$as_me:$LINENO: result: no" >&5
22366 echo "${ECHO_T}no" >&6
22369 test -n "$CC" && break
22372 if test -z "$CC"; then
22376 # Extract the first word of "$ac_prog", so it can be a program name with args.
22377 set dummy $ac_prog; ac_word=$2
22378 echo "$as_me:$LINENO: checking for $ac_word" >&5
22379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22380 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22381 echo $ECHO_N "(cached) $ECHO_C" >&6
22383 if test -n "$ac_ct_CC"; then
22384 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22387 for as_dir in $PATH
22390 test -z "$as_dir" && as_dir=.
22391 for ac_exec_ext in '' $ac_executable_extensions; do
22392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22393 ac_cv_prog_ac_ct_CC="$ac_prog"
22394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22402 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22403 if test -n "$ac_ct_CC"; then
22404 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22405 echo "${ECHO_T}$ac_ct_CC" >&6
22407 echo "$as_me:$LINENO: result: no" >&5
22408 echo "${ECHO_T}no" >&6
22411 test -n "$ac_ct_CC" && break
22420 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
22421 See \`config.log' for more details." >&5
22422 echo "$as_me: error: no acceptable C compiler found in \$PATH
22423 See \`config.log' for more details." >&2;}
22424 { (exit 1); exit 1; }; }
22426 # Provide some information about the compiler.
22427 echo "$as_me:$LINENO:" \
22428 "checking for C compiler version" >&5
22429 ac_compiler=`set X $ac_compile; echo $2`
22430 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
22431 (eval $ac_compiler --version </dev/null >&5) 2>&5
22433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22434 (exit $ac_status); }
22435 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
22436 (eval $ac_compiler -v </dev/null >&5) 2>&5
22438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22439 (exit $ac_status); }
22440 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
22441 (eval $ac_compiler -V </dev/null >&5) 2>&5
22443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22444 (exit $ac_status); }
22446 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
22447 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
22448 if test "${ac_cv_c_compiler_gnu+set}" = set; then
22449 echo $ECHO_N "(cached) $ECHO_C" >&6
22451 cat >conftest.$ac_ext <<_ACEOF
22454 cat confdefs.h >>conftest.$ac_ext
22455 cat >>conftest.$ac_ext <<_ACEOF
22456 /* end confdefs.h. */
22469 rm -f conftest.$ac_objext
22470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22471 (eval $ac_compile) 2>conftest.er1
22473 grep -v '^ *+' conftest.er1 >conftest.err
22475 cat conftest.err >&5
22476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22477 (exit $ac_status); } &&
22478 { ac_try='test -z "$ac_c_werror_flag"
22479 || test ! -s conftest.err'
22480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22481 (eval $ac_try) 2>&5
22483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22484 (exit $ac_status); }; } &&
22485 { ac_try='test -s conftest.$ac_objext'
22486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22487 (eval $ac_try) 2>&5
22489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22490 (exit $ac_status); }; }; then
22491 ac_compiler_gnu=yes
22493 echo "$as_me: failed program was:" >&5
22494 sed 's/^/| /' conftest.$ac_ext >&5
22498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22499 ac_cv_c_compiler_gnu=$ac_compiler_gnu
22502 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
22503 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
22504 GCC=`test $ac_compiler_gnu = yes && echo yes`
22505 ac_test_CFLAGS=${CFLAGS+set}
22506 ac_save_CFLAGS=$CFLAGS
22508 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
22509 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
22510 if test "${ac_cv_prog_cc_g+set}" = set; then
22511 echo $ECHO_N "(cached) $ECHO_C" >&6
22513 cat >conftest.$ac_ext <<_ACEOF
22516 cat confdefs.h >>conftest.$ac_ext
22517 cat >>conftest.$ac_ext <<_ACEOF
22518 /* end confdefs.h. */
22528 rm -f conftest.$ac_objext
22529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22530 (eval $ac_compile) 2>conftest.er1
22532 grep -v '^ *+' conftest.er1 >conftest.err
22534 cat conftest.err >&5
22535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22536 (exit $ac_status); } &&
22537 { ac_try='test -z "$ac_c_werror_flag"
22538 || test ! -s conftest.err'
22539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22540 (eval $ac_try) 2>&5
22542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22543 (exit $ac_status); }; } &&
22544 { ac_try='test -s conftest.$ac_objext'
22545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22546 (eval $ac_try) 2>&5
22548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22549 (exit $ac_status); }; }; then
22550 ac_cv_prog_cc_g=yes
22552 echo "$as_me: failed program was:" >&5
22553 sed 's/^/| /' conftest.$ac_ext >&5
22557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22559 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
22560 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
22561 if test "$ac_test_CFLAGS" = set; then
22562 CFLAGS=$ac_save_CFLAGS
22563 elif test $ac_cv_prog_cc_g = yes; then
22564 if test "$GCC" = yes; then
22570 if test "$GCC" = yes; then
22576 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
22577 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
22578 if test "${ac_cv_prog_cc_stdc+set}" = set; then
22579 echo $ECHO_N "(cached) $ECHO_C" >&6
22581 ac_cv_prog_cc_stdc=no
22583 cat >conftest.$ac_ext <<_ACEOF
22586 cat confdefs.h >>conftest.$ac_ext
22587 cat >>conftest.$ac_ext <<_ACEOF
22588 /* end confdefs.h. */
22589 #include <stdarg.h>
22591 #include <sys/types.h>
22592 #include <sys/stat.h>
22593 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
22594 struct buf { int x; };
22595 FILE * (*rcsopen) (struct buf *, struct stat *, int);
22596 static char *e (p, i)
22602 static char *f (char * (*g) (char **, int), char **p, ...)
22607 s = g (p, va_arg (v,int));
22612 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
22613 function prototypes and stuff, but not '\xHH' hex character constants.
22614 These don't provoke an error unfortunately, instead are silently treated
22615 as 'x'. The following induces an error, until -std1 is added to get
22616 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
22617 array size at least. It's necessary to write '\x00'==0 to get something
22618 that's true only with -std1. */
22619 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
22621 int test (int i, double x);
22622 struct s1 {int (*f) (int a);};
22623 struct s2 {int (*f) (double a);};
22624 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
22630 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
22635 # Don't try gcc -ansi; that turns off useful extensions and
22636 # breaks some systems' header files.
22637 # AIX -qlanglvl=ansi
22638 # Ultrix and OSF/1 -std1
22639 # HP-UX 10.20 and later -Ae
22640 # HP-UX older versions -Aa -D_HPUX_SOURCE
22641 # SVR4 -Xc -D__EXTENSIONS__
22642 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
22644 CC="$ac_save_CC $ac_arg"
22645 rm -f conftest.$ac_objext
22646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22647 (eval $ac_compile) 2>conftest.er1
22649 grep -v '^ *+' conftest.er1 >conftest.err
22651 cat conftest.err >&5
22652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22653 (exit $ac_status); } &&
22654 { ac_try='test -z "$ac_c_werror_flag"
22655 || test ! -s conftest.err'
22656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22657 (eval $ac_try) 2>&5
22659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22660 (exit $ac_status); }; } &&
22661 { ac_try='test -s conftest.$ac_objext'
22662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22663 (eval $ac_try) 2>&5
22665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22666 (exit $ac_status); }; }; then
22667 ac_cv_prog_cc_stdc=$ac_arg
22670 echo "$as_me: failed program was:" >&5
22671 sed 's/^/| /' conftest.$ac_ext >&5
22674 rm -f conftest.err conftest.$ac_objext
22676 rm -f conftest.$ac_ext conftest.$ac_objext
22681 case "x$ac_cv_prog_cc_stdc" in
22683 echo "$as_me:$LINENO: result: none needed" >&5
22684 echo "${ECHO_T}none needed" >&6 ;;
22686 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
22687 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
22688 CC="$CC $ac_cv_prog_cc_stdc" ;;
22691 # Some people use a C++ compiler to compile C. Since we use `exit',
22692 # in C++ we need to declare it. In case someone uses the same compiler
22693 # for both compiling C and C++ we need to have the C++ compiler decide
22694 # the declaration of exit, since it's the most demanding environment.
22695 cat >conftest.$ac_ext <<_ACEOF
22696 #ifndef __cplusplus
22700 rm -f conftest.$ac_objext
22701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22702 (eval $ac_compile) 2>conftest.er1
22704 grep -v '^ *+' conftest.er1 >conftest.err
22706 cat conftest.err >&5
22707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22708 (exit $ac_status); } &&
22709 { ac_try='test -z "$ac_c_werror_flag"
22710 || test ! -s conftest.err'
22711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22712 (eval $ac_try) 2>&5
22714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22715 (exit $ac_status); }; } &&
22716 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
22722 for ac_declaration in \
22724 'extern "C" void std::exit (int) throw (); using std::exit;' \
22725 'extern "C" void std::exit (int); using std::exit;' \
22726 'extern "C" void exit (int) throw ();' \
22727 'extern "C" void exit (int);' \
22730 cat >conftest.$ac_ext <<_ACEOF
22733 cat confdefs.h >>conftest.$ac_ext
22734 cat >>conftest.$ac_ext <<_ACEOF
22735 /* end confdefs.h. */
22737 #include <stdlib.h>
22746 rm -f conftest.$ac_objext
22747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22748 (eval $ac_compile) 2>conftest.er1
22750 grep -v '^ *+' conftest.er1 >conftest.err
22752 cat conftest.err >&5
22753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22754 (exit $ac_status); } &&
22755 { ac_try='test -z "$ac_c_werror_flag"
22756 || test ! -s conftest.err'
22757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22758 (eval $ac_try) 2>&5
22760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22761 (exit $ac_status); }; } &&
22762 { ac_try='test -s conftest.$ac_objext'
22763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22764 (eval $ac_try) 2>&5
22766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22767 (exit $ac_status); }; }; then
22770 echo "$as_me: failed program was:" >&5
22771 sed 's/^/| /' conftest.$ac_ext >&5
22775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22776 cat >conftest.$ac_ext <<_ACEOF
22779 cat confdefs.h >>conftest.$ac_ext
22780 cat >>conftest.$ac_ext <<_ACEOF
22781 /* end confdefs.h. */
22791 rm -f conftest.$ac_objext
22792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22793 (eval $ac_compile) 2>conftest.er1
22795 grep -v '^ *+' conftest.er1 >conftest.err
22797 cat conftest.err >&5
22798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22799 (exit $ac_status); } &&
22800 { ac_try='test -z "$ac_c_werror_flag"
22801 || test ! -s conftest.err'
22802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22803 (eval $ac_try) 2>&5
22805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22806 (exit $ac_status); }; } &&
22807 { ac_try='test -s conftest.$ac_objext'
22808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22809 (eval $ac_try) 2>&5
22811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22812 (exit $ac_status); }; }; then
22815 echo "$as_me: failed program was:" >&5
22816 sed 's/^/| /' conftest.$ac_ext >&5
22819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22822 if test -n "$ac_declaration"; then
22823 echo '#ifdef __cplusplus' >>confdefs.h
22824 echo $ac_declaration >>confdefs.h
22825 echo '#endif' >>confdefs.h
22829 echo "$as_me: failed program was:" >&5
22830 sed 's/^/| /' conftest.$ac_ext >&5
22833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22835 ac_cpp='$CPP $CPPFLAGS'
22836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22840 depcc="$CC" am_compiler_list=
22842 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
22843 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
22844 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
22845 echo $ECHO_N "(cached) $ECHO_C" >&6
22847 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
22848 # We make a subdir and do the tests there. Otherwise we can end up
22849 # making bogus files that we don't know about and never remove. For
22850 # instance it was reported that on HP-UX the gcc test will end up
22851 # making a dummy file named `D' -- because `-MD' means `put the output
22854 # Copy depcomp to subdir because otherwise we won't find it if we're
22855 # using a relative directory.
22856 cp "$am_depcomp" conftest.dir
22858 # We will build objects and dependencies in a subdirectory because
22859 # it helps to detect inapplicable dependency modes. For instance
22860 # both Tru64's cc and ICC support -MD to output dependencies as a
22861 # side effect of compilation, but ICC will put the dependencies in
22862 # the current directory while Tru64 will put them in the object
22866 am_cv_CC_dependencies_compiler_type=none
22867 if test "$am_compiler_list" = ""; then
22868 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
22870 for depmode in $am_compiler_list; do
22871 # Setup a source with many dependencies, because some compilers
22872 # like to wrap large dependency lists on column 80 (with \), and
22873 # we should not choose a depcomp mode which is confused by this.
22875 # We need to recreate these files for each test, as the compiler may
22876 # overwrite some of them when testing with obscure command lines.
22877 # This happens at least with the AIX C compiler.
22879 for i in 1 2 3 4 5 6; do
22880 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22881 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
22882 # Solaris 8's {/usr,}/bin/sh.
22883 touch sub/conftst$i.h
22885 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
22889 # after this tag, mechanisms are not by side-effect, so they'll
22890 # only be used when explicitly requested
22891 if test "x$enable_dependency_tracking" = xyes; then
22899 # We check with `-c' and `-o' for the sake of the "dashmstdout"
22900 # mode. It turns out that the SunPro C++ compiler does not properly
22901 # handle `-M -o', and we need to detect this.
22902 if depmode=$depmode \
22903 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
22904 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
22905 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
22906 >/dev/null 2>conftest.err &&
22907 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
22908 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
22909 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
22910 # icc doesn't choke on unknown options, it will just issue warnings
22911 # or remarks (even with -Werror). So we grep stderr for any message
22912 # that says an option was ignored or not supported.
22913 # When given -MP, icc 7.0 and 7.1 complain thusly:
22914 # icc: Command line warning: ignoring option '-M'; no argument required
22915 # The diagnosis changed in icc 8.0:
22916 # icc: Command line remark: option '-MP' not supported
22917 if (grep 'ignoring option' conftest.err ||
22918 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
22919 am_cv_CC_dependencies_compiler_type=$depmode
22926 rm -rf conftest.dir
22928 am_cv_CC_dependencies_compiler_type=none
22932 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
22933 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
22934 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
22939 test "x$enable_dependency_tracking" != xno \
22940 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
22941 am__fastdepCC_TRUE=
22942 am__fastdepCC_FALSE='#'
22944 am__fastdepCC_TRUE='#'
22945 am__fastdepCC_FALSE=
22949 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
22950 { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
22951 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
22952 { (exit 1); exit 1; }; }
22955 # test for make depend flag
22958 if test -z "${MKDEP}"; then
22959 OL_MKDEP="${CC-cc}"
22960 if test -z "${MKDEP_FLAGS}"; then
22961 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
22962 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
22963 if test "${ol_cv_mkdep+set}" = set; then
22964 echo $ECHO_N "(cached) $ECHO_C" >&6
22968 for flag in "-M" "-xM"; do
22969 cat > conftest.c <<EOF
22972 if { ac_try='$OL_MKDEP $flag conftest.c'
22973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22974 (eval $ac_try) 2>&5
22976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22977 (exit $ac_status); }; } \
22978 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
22980 if test ! -f conftest."${ac_object}" ; then
22982 OL_MKDEP_FLAGS="$flag"
22990 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
22991 echo "${ECHO_T}$ol_cv_mkdep" >&6
22994 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
22998 OL_MKDEP="${MKDEP}"
22999 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
23004 if test "${ol_cv_mkdep}" = no ; then
23005 # this will soon become an error
23006 { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
23007 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
23010 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
23011 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
23012 if test "${ac_cv_lib_s_afopen+set}" = set; then
23013 echo $ECHO_N "(cached) $ECHO_C" >&6
23015 ac_check_lib_save_LIBS=$LIBS
23017 cat >conftest.$ac_ext <<_ACEOF
23020 cat confdefs.h >>conftest.$ac_ext
23021 cat >>conftest.$ac_ext <<_ACEOF
23022 /* end confdefs.h. */
23024 /* Override any gcc2 internal prototype to avoid an error. */
23028 /* We use char because int might match the return type of a gcc2
23029 builtin and then its argument prototype would still apply. */
23039 rm -f conftest.$ac_objext conftest$ac_exeext
23040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23041 (eval $ac_link) 2>conftest.er1
23043 grep -v '^ *+' conftest.er1 >conftest.err
23045 cat conftest.err >&5
23046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23047 (exit $ac_status); } &&
23048 { ac_try='test -z "$ac_c_werror_flag"
23049 || test ! -s conftest.err'
23050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23051 (eval $ac_try) 2>&5
23053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23054 (exit $ac_status); }; } &&
23055 { ac_try='test -s 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 ac_cv_lib_s_afopen=yes
23063 echo "$as_me: failed program was:" >&5
23064 sed 's/^/| /' conftest.$ac_ext >&5
23066 ac_cv_lib_s_afopen=no
23068 rm -f conftest.err conftest.$ac_objext \
23069 conftest$ac_exeext conftest.$ac_ext
23070 LIBS=$ac_check_lib_save_LIBS
23072 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
23073 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
23074 if test $ac_cv_lib_s_afopen = yes; then
23078 cat >>confdefs.h <<\_ACEOF
23079 #define HAVE_AIX_SECURITY 1
23088 ac_cv_func_getopt=no
23090 cat >>confdefs.h <<\_ACEOF
23091 #define BOTH_STRINGS_H 1
23098 WITH_MODULES_ENABLED=no
23099 if test $ol_enable_modules != no ; then
23101 for ac_header in ltdl.h
23103 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23105 echo "$as_me:$LINENO: checking for $ac_header" >&5
23106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23108 echo $ECHO_N "(cached) $ECHO_C" >&6
23110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23111 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23113 # Is the header compilable?
23114 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23115 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23116 cat >conftest.$ac_ext <<_ACEOF
23119 cat confdefs.h >>conftest.$ac_ext
23120 cat >>conftest.$ac_ext <<_ACEOF
23121 /* end confdefs.h. */
23122 $ac_includes_default
23123 #include <$ac_header>
23125 rm -f conftest.$ac_objext
23126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23127 (eval $ac_compile) 2>conftest.er1
23129 grep -v '^ *+' conftest.er1 >conftest.err
23131 cat conftest.err >&5
23132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23133 (exit $ac_status); } &&
23134 { ac_try='test -z "$ac_c_werror_flag"
23135 || test ! -s conftest.err'
23136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23137 (eval $ac_try) 2>&5
23139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23140 (exit $ac_status); }; } &&
23141 { ac_try='test -s conftest.$ac_objext'
23142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23143 (eval $ac_try) 2>&5
23145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23146 (exit $ac_status); }; }; then
23147 ac_header_compiler=yes
23149 echo "$as_me: failed program was:" >&5
23150 sed 's/^/| /' conftest.$ac_ext >&5
23152 ac_header_compiler=no
23154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23155 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23156 echo "${ECHO_T}$ac_header_compiler" >&6
23158 # Is the header present?
23159 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23160 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23161 cat >conftest.$ac_ext <<_ACEOF
23164 cat confdefs.h >>conftest.$ac_ext
23165 cat >>conftest.$ac_ext <<_ACEOF
23166 /* end confdefs.h. */
23167 #include <$ac_header>
23169 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23170 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23172 grep -v '^ *+' conftest.er1 >conftest.err
23174 cat conftest.err >&5
23175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23176 (exit $ac_status); } >/dev/null; then
23177 if test -s conftest.err; then
23178 ac_cpp_err=$ac_c_preproc_warn_flag
23179 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23186 if test -z "$ac_cpp_err"; then
23187 ac_header_preproc=yes
23189 echo "$as_me: failed program was:" >&5
23190 sed 's/^/| /' conftest.$ac_ext >&5
23192 ac_header_preproc=no
23194 rm -f conftest.err conftest.$ac_ext
23195 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23196 echo "${ECHO_T}$ac_header_preproc" >&6
23198 # So? What about this header?
23199 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23201 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23202 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23204 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23205 ac_header_preproc=yes
23208 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23209 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23210 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23211 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23212 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23213 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23214 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23215 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23217 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23218 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23219 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23222 ## ------------------------------------------ ##
23223 ## Report this to the AC_PACKAGE_NAME lists. ##
23224 ## ------------------------------------------ ##
23227 sed "s/^/$as_me: WARNING: /" >&2
23230 echo "$as_me:$LINENO: checking for $ac_header" >&5
23231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23232 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23233 echo $ECHO_N "(cached) $ECHO_C" >&6
23235 eval "$as_ac_Header=\$ac_header_preproc"
23237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23238 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23241 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23242 cat >>confdefs.h <<_ACEOF
23243 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23251 if test $ac_cv_header_ltdl_h = no ; then
23252 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
23253 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
23254 { (exit 1); exit 1; }; }
23257 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
23258 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
23259 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
23260 echo $ECHO_N "(cached) $ECHO_C" >&6
23262 ac_check_lib_save_LIBS=$LIBS
23263 LIBS="-lltdl $LIBS"
23264 cat >conftest.$ac_ext <<_ACEOF
23267 cat confdefs.h >>conftest.$ac_ext
23268 cat >>conftest.$ac_ext <<_ACEOF
23269 /* end confdefs.h. */
23271 /* Override any gcc2 internal prototype to avoid an error. */
23275 /* We use char because int might match the return type of a gcc2
23276 builtin and then its argument prototype would still apply. */
23286 rm -f conftest.$ac_objext conftest$ac_exeext
23287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23288 (eval $ac_link) 2>conftest.er1
23290 grep -v '^ *+' conftest.er1 >conftest.err
23292 cat conftest.err >&5
23293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23294 (exit $ac_status); } &&
23295 { ac_try='test -z "$ac_c_werror_flag"
23296 || test ! -s conftest.err'
23297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23298 (eval $ac_try) 2>&5
23300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23301 (exit $ac_status); }; } &&
23302 { ac_try='test -s conftest$ac_exeext'
23303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23304 (eval $ac_try) 2>&5
23306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23307 (exit $ac_status); }; }; then
23308 ac_cv_lib_ltdl_lt_dlinit=yes
23310 echo "$as_me: failed program was:" >&5
23311 sed 's/^/| /' conftest.$ac_ext >&5
23313 ac_cv_lib_ltdl_lt_dlinit=no
23315 rm -f conftest.err conftest.$ac_objext \
23316 conftest$ac_exeext conftest.$ac_ext
23317 LIBS=$ac_check_lib_save_LIBS
23319 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
23320 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
23321 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
23323 MODULES_LIBS=-lltdl
23325 cat >>confdefs.h <<\_ACEOF
23326 #define HAVE_LIBLTDL 1
23333 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
23334 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
23335 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
23336 { (exit 1); exit 1; }; }
23338 ol_link_modules=yes
23339 WITH_MODULES_ENABLED=yes
23342 for i in $Backends; do
23343 eval "ol_tmp=\$ol_enable_$i"
23344 if test $ol_tmp = mod ; then
23345 { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
23346 echo "$as_me: WARNING: building static $i backend" >&2;}
23347 eval "ol_enable_$i=yes"
23350 for i in $Overlays; do
23351 eval "ol_tmp=\$ol_enable_$i"
23352 if test $ol_tmp = mod ; then
23353 { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
23354 echo "$as_me: WARNING: building static $i overlay" >&2;}
23355 eval "ol_enable_$i=yes"
23361 echo "$as_me:$LINENO: checking for EBCDIC" >&5
23362 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
23363 if test "${ol_cv_cpp_ebcdic+set}" = set; then
23364 echo $ECHO_N "(cached) $ECHO_C" >&6
23367 cat >conftest.$ac_ext <<_ACEOF
23370 cat confdefs.h >>conftest.$ac_ext
23371 cat >>conftest.$ac_ext <<_ACEOF
23372 /* end confdefs.h. */
23375 #include <__ASCII__/generate_error.h>
23379 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23380 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23382 grep -v '^ *+' conftest.er1 >conftest.err
23384 cat conftest.err >&5
23385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23386 (exit $ac_status); } >/dev/null; then
23387 if test -s conftest.err; then
23388 ac_cpp_err=$ac_c_preproc_warn_flag
23389 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23396 if test -z "$ac_cpp_err"; then
23397 ol_cv_cpp_ebcdic=yes
23399 echo "$as_me: failed program was:" >&5
23400 sed 's/^/| /' conftest.$ac_ext >&5
23402 ol_cv_cpp_ebcdic=no
23404 rm -f conftest.err conftest.$ac_ext
23406 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
23407 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
23408 if test $ol_cv_cpp_ebcdic = yes ; then
23410 cat >>confdefs.h <<\_ACEOF
23411 #define HAVE_EBCDIC 1
23416 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
23417 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
23418 if test "${ol_cv_header_stdc+set}" = set; then
23419 echo $ECHO_N "(cached) $ECHO_C" >&6
23421 cat >conftest.$ac_ext <<_ACEOF
23424 cat confdefs.h >>conftest.$ac_ext
23425 cat >>conftest.$ac_ext <<_ACEOF
23426 /* end confdefs.h. */
23427 #include <stdlib.h>
23428 #include <stdarg.h>
23429 #include <string.h>
23432 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23433 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23435 grep -v '^ *+' conftest.er1 >conftest.err
23437 cat conftest.err >&5
23438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23439 (exit $ac_status); } >/dev/null; then
23440 if test -s conftest.err; then
23441 ac_cpp_err=$ac_c_preproc_warn_flag
23442 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23449 if test -z "$ac_cpp_err"; then
23450 ol_cv_header_stdc=yes
23452 echo "$as_me: failed program was:" >&5
23453 sed 's/^/| /' conftest.$ac_ext >&5
23455 ol_cv_header_stdc=no
23457 rm -f conftest.err conftest.$ac_ext
23459 if test $ol_cv_header_stdc = yes; then
23460 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
23461 cat >conftest.$ac_ext <<_ACEOF
23464 cat confdefs.h >>conftest.$ac_ext
23465 cat >>conftest.$ac_ext <<_ACEOF
23466 /* end confdefs.h. */
23467 #include <string.h>
23470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23471 $EGREP "memchr" >/dev/null 2>&1; then
23474 ol_cv_header_stdc=no
23480 if test $ol_cv_header_stdc = yes; then
23481 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
23482 cat >conftest.$ac_ext <<_ACEOF
23485 cat confdefs.h >>conftest.$ac_ext
23486 cat >>conftest.$ac_ext <<_ACEOF
23487 /* end confdefs.h. */
23488 #include <stdlib.h>
23491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23492 $EGREP "free" >/dev/null 2>&1; then
23495 ol_cv_header_stdc=no
23501 if test $ol_cv_header_stdc = yes; then
23502 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
23503 if test "$cross_compiling" = yes; then
23506 cat >conftest.$ac_ext <<_ACEOF
23509 cat confdefs.h >>conftest.$ac_ext
23510 cat >>conftest.$ac_ext <<_ACEOF
23511 /* end confdefs.h. */
23513 #ifndef HAVE_EBCDIC
23514 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
23515 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
23517 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
23518 || ('j' <= (c) && (c) <= 'r') \
23519 || ('s' <= (c) && (c) <= 'z'))
23520 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
23522 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
23523 int main () { int i; for (i = 0; i < 256; i++)
23524 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
23528 rm -f conftest$ac_exeext
23529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23530 (eval $ac_link) 2>&5
23532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23533 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23535 (eval $ac_try) 2>&5
23537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23538 (exit $ac_status); }; }; then
23541 echo "$as_me: program exited with status $ac_status" >&5
23542 echo "$as_me: failed program was:" >&5
23543 sed 's/^/| /' conftest.$ac_ext >&5
23545 ( exit $ac_status )
23546 ol_cv_header_stdc=no
23548 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23552 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
23553 echo "${ECHO_T}$ol_cv_header_stdc" >&6
23554 if test $ol_cv_header_stdc = yes; then
23555 cat >>confdefs.h <<\_ACEOF
23556 #define STDC_HEADERS 1
23560 ac_cv_header_stdc=disable
23563 if test $ol_cv_header_stdc != yes; then
23564 { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
23565 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
23573 ac_header_dirent=no
23574 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
23575 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
23576 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
23577 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
23578 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23579 echo $ECHO_N "(cached) $ECHO_C" >&6
23581 cat >conftest.$ac_ext <<_ACEOF
23584 cat confdefs.h >>conftest.$ac_ext
23585 cat >>conftest.$ac_ext <<_ACEOF
23586 /* end confdefs.h. */
23587 #include <sys/types.h>
23599 rm -f conftest.$ac_objext
23600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23601 (eval $ac_compile) 2>conftest.er1
23603 grep -v '^ *+' conftest.er1 >conftest.err
23605 cat conftest.err >&5
23606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23607 (exit $ac_status); } &&
23608 { ac_try='test -z "$ac_c_werror_flag"
23609 || test ! -s conftest.err'
23610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23611 (eval $ac_try) 2>&5
23613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23614 (exit $ac_status); }; } &&
23615 { ac_try='test -s conftest.$ac_objext'
23616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23617 (eval $ac_try) 2>&5
23619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23620 (exit $ac_status); }; }; then
23621 eval "$as_ac_Header=yes"
23623 echo "$as_me: failed program was:" >&5
23624 sed 's/^/| /' conftest.$ac_ext >&5
23626 eval "$as_ac_Header=no"
23628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23631 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23632 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23633 cat >>confdefs.h <<_ACEOF
23634 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
23637 ac_header_dirent=$ac_hdr; break
23641 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
23642 if test $ac_header_dirent = dirent.h; then
23643 echo "$as_me:$LINENO: checking for library containing opendir" >&5
23644 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23645 if test "${ac_cv_search_opendir+set}" = set; then
23646 echo $ECHO_N "(cached) $ECHO_C" >&6
23648 ac_func_search_save_LIBS=$LIBS
23649 ac_cv_search_opendir=no
23650 cat >conftest.$ac_ext <<_ACEOF
23653 cat confdefs.h >>conftest.$ac_ext
23654 cat >>conftest.$ac_ext <<_ACEOF
23655 /* end confdefs.h. */
23657 /* Override any gcc2 internal prototype to avoid an error. */
23661 /* We use char because int might match the return type of a gcc2
23662 builtin and then its argument prototype would still apply. */
23672 rm -f conftest.$ac_objext conftest$ac_exeext
23673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23674 (eval $ac_link) 2>conftest.er1
23676 grep -v '^ *+' conftest.er1 >conftest.err
23678 cat conftest.err >&5
23679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23680 (exit $ac_status); } &&
23681 { ac_try='test -z "$ac_c_werror_flag"
23682 || test ! -s conftest.err'
23683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23684 (eval $ac_try) 2>&5
23686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23687 (exit $ac_status); }; } &&
23688 { ac_try='test -s conftest$ac_exeext'
23689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23690 (eval $ac_try) 2>&5
23692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23693 (exit $ac_status); }; }; then
23694 ac_cv_search_opendir="none required"
23696 echo "$as_me: failed program was:" >&5
23697 sed 's/^/| /' conftest.$ac_ext >&5
23700 rm -f conftest.err conftest.$ac_objext \
23701 conftest$ac_exeext conftest.$ac_ext
23702 if test "$ac_cv_search_opendir" = no; then
23703 for ac_lib in dir; do
23704 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23705 cat >conftest.$ac_ext <<_ACEOF
23708 cat confdefs.h >>conftest.$ac_ext
23709 cat >>conftest.$ac_ext <<_ACEOF
23710 /* end confdefs.h. */
23712 /* Override any gcc2 internal prototype to avoid an error. */
23716 /* We use char because int might match the return type of a gcc2
23717 builtin and then its argument prototype would still apply. */
23727 rm -f conftest.$ac_objext conftest$ac_exeext
23728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23729 (eval $ac_link) 2>conftest.er1
23731 grep -v '^ *+' conftest.er1 >conftest.err
23733 cat conftest.err >&5
23734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23735 (exit $ac_status); } &&
23736 { ac_try='test -z "$ac_c_werror_flag"
23737 || test ! -s conftest.err'
23738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23739 (eval $ac_try) 2>&5
23741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23742 (exit $ac_status); }; } &&
23743 { ac_try='test -s conftest$ac_exeext'
23744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23745 (eval $ac_try) 2>&5
23747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23748 (exit $ac_status); }; }; then
23749 ac_cv_search_opendir="-l$ac_lib"
23752 echo "$as_me: failed program was:" >&5
23753 sed 's/^/| /' conftest.$ac_ext >&5
23756 rm -f conftest.err conftest.$ac_objext \
23757 conftest$ac_exeext conftest.$ac_ext
23760 LIBS=$ac_func_search_save_LIBS
23762 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23763 echo "${ECHO_T}$ac_cv_search_opendir" >&6
23764 if test "$ac_cv_search_opendir" != no; then
23765 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23770 echo "$as_me:$LINENO: checking for library containing opendir" >&5
23771 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23772 if test "${ac_cv_search_opendir+set}" = set; then
23773 echo $ECHO_N "(cached) $ECHO_C" >&6
23775 ac_func_search_save_LIBS=$LIBS
23776 ac_cv_search_opendir=no
23777 cat >conftest.$ac_ext <<_ACEOF
23780 cat confdefs.h >>conftest.$ac_ext
23781 cat >>conftest.$ac_ext <<_ACEOF
23782 /* end confdefs.h. */
23784 /* Override any gcc2 internal prototype to avoid an error. */
23788 /* We use char because int might match the return type of a gcc2
23789 builtin and then its argument prototype would still apply. */
23799 rm -f conftest.$ac_objext conftest$ac_exeext
23800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23801 (eval $ac_link) 2>conftest.er1
23803 grep -v '^ *+' conftest.er1 >conftest.err
23805 cat conftest.err >&5
23806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23807 (exit $ac_status); } &&
23808 { ac_try='test -z "$ac_c_werror_flag"
23809 || test ! -s conftest.err'
23810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23811 (eval $ac_try) 2>&5
23813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23814 (exit $ac_status); }; } &&
23815 { ac_try='test -s conftest$ac_exeext'
23816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23817 (eval $ac_try) 2>&5
23819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23820 (exit $ac_status); }; }; then
23821 ac_cv_search_opendir="none required"
23823 echo "$as_me: failed program was:" >&5
23824 sed 's/^/| /' conftest.$ac_ext >&5
23827 rm -f conftest.err conftest.$ac_objext \
23828 conftest$ac_exeext conftest.$ac_ext
23829 if test "$ac_cv_search_opendir" = no; then
23830 for ac_lib in x; do
23831 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23832 cat >conftest.$ac_ext <<_ACEOF
23835 cat confdefs.h >>conftest.$ac_ext
23836 cat >>conftest.$ac_ext <<_ACEOF
23837 /* end confdefs.h. */
23839 /* Override any gcc2 internal prototype to avoid an error. */
23843 /* We use char because int might match the return type of a gcc2
23844 builtin and then its argument prototype would still apply. */
23854 rm -f conftest.$ac_objext conftest$ac_exeext
23855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23856 (eval $ac_link) 2>conftest.er1
23858 grep -v '^ *+' conftest.er1 >conftest.err
23860 cat conftest.err >&5
23861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23862 (exit $ac_status); } &&
23863 { ac_try='test -z "$ac_c_werror_flag"
23864 || test ! -s conftest.err'
23865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23866 (eval $ac_try) 2>&5
23868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23869 (exit $ac_status); }; } &&
23870 { ac_try='test -s conftest$ac_exeext'
23871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23872 (eval $ac_try) 2>&5
23874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23875 (exit $ac_status); }; }; then
23876 ac_cv_search_opendir="-l$ac_lib"
23879 echo "$as_me: failed program was:" >&5
23880 sed 's/^/| /' conftest.$ac_ext >&5
23883 rm -f conftest.err conftest.$ac_objext \
23884 conftest$ac_exeext conftest.$ac_ext
23887 LIBS=$ac_func_search_save_LIBS
23889 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23890 echo "${ECHO_T}$ac_cv_search_opendir" >&6
23891 if test "$ac_cv_search_opendir" != no; then
23892 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23898 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
23899 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
23900 if test "${ac_cv_header_sys_wait_h+set}" = set; then
23901 echo $ECHO_N "(cached) $ECHO_C" >&6
23903 cat >conftest.$ac_ext <<_ACEOF
23906 cat confdefs.h >>conftest.$ac_ext
23907 cat >>conftest.$ac_ext <<_ACEOF
23908 /* end confdefs.h. */
23909 #include <sys/types.h>
23910 #include <sys/wait.h>
23911 #ifndef WEXITSTATUS
23912 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
23915 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
23923 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
23928 rm -f conftest.$ac_objext
23929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23930 (eval $ac_compile) 2>conftest.er1
23932 grep -v '^ *+' conftest.er1 >conftest.err
23934 cat conftest.err >&5
23935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23936 (exit $ac_status); } &&
23937 { ac_try='test -z "$ac_c_werror_flag"
23938 || test ! -s conftest.err'
23939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23940 (eval $ac_try) 2>&5
23942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23943 (exit $ac_status); }; } &&
23944 { ac_try='test -s conftest.$ac_objext'
23945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23946 (eval $ac_try) 2>&5
23948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23949 (exit $ac_status); }; }; then
23950 ac_cv_header_sys_wait_h=yes
23952 echo "$as_me: failed program was:" >&5
23953 sed 's/^/| /' conftest.$ac_ext >&5
23955 ac_cv_header_sys_wait_h=no
23957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23959 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
23960 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
23961 if test $ac_cv_header_sys_wait_h = yes; then
23963 cat >>confdefs.h <<\_ACEOF
23964 #define HAVE_SYS_WAIT_H 1
23969 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
23970 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
23971 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
23972 echo $ECHO_N "(cached) $ECHO_C" >&6
23974 cat >conftest.$ac_ext <<_ACEOF
23977 cat confdefs.h >>conftest.$ac_ext
23978 cat >>conftest.$ac_ext <<_ACEOF
23979 /* end confdefs.h. */
23980 #include <sys/types.h>
23981 #include <termios.h>
23987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23988 $EGREP "yes" >/dev/null 2>&1; then
23989 ac_cv_sys_tiocgwinsz_in_termios_h=yes
23991 ac_cv_sys_tiocgwinsz_in_termios_h=no
23996 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
23997 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
23999 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
24000 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
24001 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
24002 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
24003 echo $ECHO_N "(cached) $ECHO_C" >&6
24005 cat >conftest.$ac_ext <<_ACEOF
24008 cat confdefs.h >>conftest.$ac_ext
24009 cat >>conftest.$ac_ext <<_ACEOF
24010 /* end confdefs.h. */
24011 #include <sys/types.h>
24012 #include <sys/ioctl.h>
24018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24019 $EGREP "yes" >/dev/null 2>&1; then
24020 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
24022 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
24027 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
24028 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
24030 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
24032 cat >>confdefs.h <<\_ACEOF
24033 #define GWINSZ_IN_SYS_IOCTL 1
24137 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24138 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24139 echo "$as_me:$LINENO: checking for $ac_header" >&5
24140 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24141 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24142 echo $ECHO_N "(cached) $ECHO_C" >&6
24144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24145 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24147 # Is the header compilable?
24148 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24149 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24150 cat >conftest.$ac_ext <<_ACEOF
24153 cat confdefs.h >>conftest.$ac_ext
24154 cat >>conftest.$ac_ext <<_ACEOF
24155 /* end confdefs.h. */
24156 $ac_includes_default
24157 #include <$ac_header>
24159 rm -f conftest.$ac_objext
24160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24161 (eval $ac_compile) 2>conftest.er1
24163 grep -v '^ *+' conftest.er1 >conftest.err
24165 cat conftest.err >&5
24166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24167 (exit $ac_status); } &&
24168 { ac_try='test -z "$ac_c_werror_flag"
24169 || test ! -s conftest.err'
24170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24171 (eval $ac_try) 2>&5
24173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24174 (exit $ac_status); }; } &&
24175 { ac_try='test -s conftest.$ac_objext'
24176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24177 (eval $ac_try) 2>&5
24179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24180 (exit $ac_status); }; }; then
24181 ac_header_compiler=yes
24183 echo "$as_me: failed program was:" >&5
24184 sed 's/^/| /' conftest.$ac_ext >&5
24186 ac_header_compiler=no
24188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24189 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24190 echo "${ECHO_T}$ac_header_compiler" >&6
24192 # Is the header present?
24193 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24194 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24195 cat >conftest.$ac_ext <<_ACEOF
24198 cat confdefs.h >>conftest.$ac_ext
24199 cat >>conftest.$ac_ext <<_ACEOF
24200 /* end confdefs.h. */
24201 #include <$ac_header>
24203 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24204 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24206 grep -v '^ *+' conftest.er1 >conftest.err
24208 cat conftest.err >&5
24209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24210 (exit $ac_status); } >/dev/null; then
24211 if test -s conftest.err; then
24212 ac_cpp_err=$ac_c_preproc_warn_flag
24213 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24220 if test -z "$ac_cpp_err"; then
24221 ac_header_preproc=yes
24223 echo "$as_me: failed program was:" >&5
24224 sed 's/^/| /' conftest.$ac_ext >&5
24226 ac_header_preproc=no
24228 rm -f conftest.err conftest.$ac_ext
24229 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24230 echo "${ECHO_T}$ac_header_preproc" >&6
24232 # So? What about this header?
24233 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24235 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24236 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24237 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24238 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24239 ac_header_preproc=yes
24242 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24243 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24244 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24245 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24246 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24247 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24248 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24249 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24251 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24252 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24253 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24256 ## ------------------------------------------ ##
24257 ## Report this to the AC_PACKAGE_NAME lists. ##
24258 ## ------------------------------------------ ##
24261 sed "s/^/$as_me: WARNING: /" >&2
24264 echo "$as_me:$LINENO: checking for $ac_header" >&5
24265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24266 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24267 echo $ECHO_N "(cached) $ECHO_C" >&6
24269 eval "$as_ac_Header=\$ac_header_preproc"
24271 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24272 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24276 cat >>confdefs.h <<_ACEOF
24277 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24286 for ac_header in resolv.h
24288 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24289 echo "$as_me:$LINENO: checking for $ac_header" >&5
24290 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24291 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24292 echo $ECHO_N "(cached) $ECHO_C" >&6
24294 cat >conftest.$ac_ext <<_ACEOF
24297 cat confdefs.h >>conftest.$ac_ext
24298 cat >>conftest.$ac_ext <<_ACEOF
24299 /* end confdefs.h. */
24300 $ac_includes_default
24301 #include <netinet/in.h>
24304 #include <$ac_header>
24306 rm -f conftest.$ac_objext
24307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24308 (eval $ac_compile) 2>conftest.er1
24310 grep -v '^ *+' conftest.er1 >conftest.err
24312 cat conftest.err >&5
24313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24314 (exit $ac_status); } &&
24315 { ac_try='test -z "$ac_c_werror_flag"
24316 || test ! -s conftest.err'
24317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24318 (eval $ac_try) 2>&5
24320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24321 (exit $ac_status); }; } &&
24322 { ac_try='test -s conftest.$ac_objext'
24323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24324 (eval $ac_try) 2>&5
24326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24327 (exit $ac_status); }; }; then
24328 eval "$as_ac_Header=yes"
24330 echo "$as_me: failed program was:" >&5
24331 sed 's/^/| /' conftest.$ac_ext >&5
24333 eval "$as_ac_Header=no"
24335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24337 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24338 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24339 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24340 cat >>confdefs.h <<_ACEOF
24341 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24350 for ac_header in sys/ucred.h
24352 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24353 echo "$as_me:$LINENO: checking for $ac_header" >&5
24354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24356 echo $ECHO_N "(cached) $ECHO_C" >&6
24358 cat >conftest.$ac_ext <<_ACEOF
24361 cat confdefs.h >>conftest.$ac_ext
24362 cat >>conftest.$ac_ext <<_ACEOF
24363 /* end confdefs.h. */
24364 $ac_includes_default
24365 #ifdef HAVE_SYS_PARAM_H
24366 #include <sys/param.h>
24370 #include <$ac_header>
24372 rm -f conftest.$ac_objext
24373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24374 (eval $ac_compile) 2>conftest.er1
24376 grep -v '^ *+' conftest.er1 >conftest.err
24378 cat conftest.err >&5
24379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24380 (exit $ac_status); } &&
24381 { ac_try='test -z "$ac_c_werror_flag"
24382 || test ! -s conftest.err'
24383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24384 (eval $ac_try) 2>&5
24386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24387 (exit $ac_status); }; } &&
24388 { ac_try='test -s conftest.$ac_objext'
24389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24390 (eval $ac_try) 2>&5
24392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24393 (exit $ac_status); }; }; then
24394 eval "$as_ac_Header=yes"
24396 echo "$as_me: failed program was:" >&5
24397 sed 's/^/| /' conftest.$ac_ext >&5
24399 eval "$as_ac_Header=no"
24401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24404 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24405 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24406 cat >>confdefs.h <<_ACEOF
24407 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24418 for ac_func in sigaction sigset
24420 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24421 echo "$as_me:$LINENO: checking for $ac_func" >&5
24422 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24423 if eval "test \"\${$as_ac_var+set}\" = set"; then
24424 echo $ECHO_N "(cached) $ECHO_C" >&6
24426 cat >conftest.$ac_ext <<_ACEOF
24429 cat confdefs.h >>conftest.$ac_ext
24430 cat >>conftest.$ac_ext <<_ACEOF
24431 /* end confdefs.h. */
24432 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24433 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24434 #define $ac_func innocuous_$ac_func
24436 /* System header to define __stub macros and hopefully few prototypes,
24437 which can conflict with char $ac_func (); below.
24438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24439 <limits.h> exists even on freestanding compilers. */
24442 # include <limits.h>
24444 # include <assert.h>
24449 /* Override any gcc2 internal prototype to avoid an error. */
24454 /* We use char because int might match the return type of a gcc2
24455 builtin and then its argument prototype would still apply. */
24457 /* The GNU C library defines this for functions which it implements
24458 to always fail with ENOSYS. Some functions are actually named
24459 something starting with __ and the normal name is an alias. */
24460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24463 char (*f) () = $ac_func;
24472 return f != $ac_func;
24477 rm -f conftest.$ac_objext conftest$ac_exeext
24478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24479 (eval $ac_link) 2>conftest.er1
24481 grep -v '^ *+' conftest.er1 >conftest.err
24483 cat conftest.err >&5
24484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24485 (exit $ac_status); } &&
24486 { ac_try='test -z "$ac_c_werror_flag"
24487 || test ! -s conftest.err'
24488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24489 (eval $ac_try) 2>&5
24491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24492 (exit $ac_status); }; } &&
24493 { ac_try='test -s conftest$ac_exeext'
24494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24495 (eval $ac_try) 2>&5
24497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24498 (exit $ac_status); }; }; then
24499 eval "$as_ac_var=yes"
24501 echo "$as_me: failed program was:" >&5
24502 sed 's/^/| /' conftest.$ac_ext >&5
24504 eval "$as_ac_var=no"
24506 rm -f conftest.err conftest.$ac_objext \
24507 conftest$ac_exeext conftest.$ac_ext
24509 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24510 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24511 if test `eval echo '${'$as_ac_var'}'` = yes; then
24512 cat >>confdefs.h <<_ACEOF
24513 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24520 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
24522 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
24523 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
24524 if test "${ac_cv_lib_V3_sigset+set}" = set; then
24525 echo $ECHO_N "(cached) $ECHO_C" >&6
24527 ac_check_lib_save_LIBS=$LIBS
24529 cat >conftest.$ac_ext <<_ACEOF
24532 cat confdefs.h >>conftest.$ac_ext
24533 cat >>conftest.$ac_ext <<_ACEOF
24534 /* end confdefs.h. */
24536 /* Override any gcc2 internal prototype to avoid an error. */
24540 /* We use char because int might match the return type of a gcc2
24541 builtin and then its argument prototype would still apply. */
24551 rm -f conftest.$ac_objext conftest$ac_exeext
24552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24553 (eval $ac_link) 2>conftest.er1
24555 grep -v '^ *+' conftest.er1 >conftest.err
24557 cat conftest.err >&5
24558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24559 (exit $ac_status); } &&
24560 { ac_try='test -z "$ac_c_werror_flag"
24561 || test ! -s conftest.err'
24562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24563 (eval $ac_try) 2>&5
24565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24566 (exit $ac_status); }; } &&
24567 { ac_try='test -s conftest$ac_exeext'
24568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24569 (eval $ac_try) 2>&5
24571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24572 (exit $ac_status); }; }; then
24573 ac_cv_lib_V3_sigset=yes
24575 echo "$as_me: failed program was:" >&5
24576 sed 's/^/| /' conftest.$ac_ext >&5
24578 ac_cv_lib_V3_sigset=no
24580 rm -f conftest.err conftest.$ac_objext \
24581 conftest$ac_exeext conftest.$ac_ext
24582 LIBS=$ac_check_lib_save_LIBS
24584 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
24585 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
24586 if test $ac_cv_lib_V3_sigset = yes; then
24587 cat >>confdefs.h <<_ACEOF
24588 #define HAVE_LIBV3 1
24597 if test "$ac_cv_cygwin" != yes && test "$ac_cv_header_winsock_h" = yes; then
24598 echo "$as_me:$LINENO: checking for winsock" >&5
24599 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
24600 if test "${ol_cv_winsock+set}" = set; then
24601 echo $ECHO_N "(cached) $ECHO_C" >&6
24604 for curlib in ws2_32 wsock32; do
24605 LIBS="$LIBS -l$curlib"
24606 cat >conftest.$ac_ext <<_ACEOF
24609 cat confdefs.h >>conftest.$ac_ext
24610 cat >>conftest.$ac_ext <<_ACEOF
24611 /* end confdefs.h. */
24612 #include <winsock.h>
24619 select(0,NULL,NULL,NULL,NULL);
24621 gethostname(NULL,0);
24627 rm -f conftest.$ac_objext conftest$ac_exeext
24628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24629 (eval $ac_link) 2>conftest.er1
24631 grep -v '^ *+' conftest.er1 >conftest.err
24633 cat conftest.err >&5
24634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24635 (exit $ac_status); } &&
24636 { ac_try='test -z "$ac_c_werror_flag"
24637 || test ! -s conftest.err'
24638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24639 (eval $ac_try) 2>&5
24641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24642 (exit $ac_status); }; } &&
24643 { ac_try='test -s conftest$ac_exeext'
24644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24645 (eval $ac_try) 2>&5
24647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24648 (exit $ac_status); }; }; then
24651 echo "$as_me: failed program was:" >&5
24652 sed 's/^/| /' conftest.$ac_ext >&5
24656 rm -f conftest.err conftest.$ac_objext \
24657 conftest$ac_exeext conftest.$ac_ext
24659 if test $ol_cv_winsock = yes; then
24661 cat >>confdefs.h <<\_ACEOF
24662 #define HAVE_WINSOCK 1
24665 ac_cv_func_socket=yes
24666 ac_cv_func_select=yes
24667 ac_cv_func_closesocket=yes
24668 ac_cv_func_gethostname=yes
24669 if test $curlib = ws2_32; then
24670 ol_cv_winsock=winsock2
24672 cat >>confdefs.h <<\_ACEOF
24673 #define HAVE_WINSOCK2 1
24682 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
24683 echo "${ECHO_T}$ol_cv_winsock" >&6
24687 echo "$as_me:$LINENO: checking for socket" >&5
24688 echo $ECHO_N "checking for socket... $ECHO_C" >&6
24689 if test "${ac_cv_func_socket+set}" = set; then
24690 echo $ECHO_N "(cached) $ECHO_C" >&6
24692 cat >conftest.$ac_ext <<_ACEOF
24695 cat confdefs.h >>conftest.$ac_ext
24696 cat >>conftest.$ac_ext <<_ACEOF
24697 /* end confdefs.h. */
24698 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24700 #define socket innocuous_socket
24702 /* System header to define __stub macros and hopefully few prototypes,
24703 which can conflict with char socket (); below.
24704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24705 <limits.h> exists even on freestanding compilers. */
24708 # include <limits.h>
24710 # include <assert.h>
24715 /* Override any gcc2 internal prototype to avoid an error. */
24720 /* We use char because int might match the return type of a gcc2
24721 builtin and then its argument prototype would still apply. */
24723 /* The GNU C library defines this for functions which it implements
24724 to always fail with ENOSYS. Some functions are actually named
24725 something starting with __ and the normal name is an alias. */
24726 #if defined (__stub_socket) || defined (__stub___socket)
24729 char (*f) () = socket;
24738 return f != socket;
24743 rm -f conftest.$ac_objext conftest$ac_exeext
24744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24745 (eval $ac_link) 2>conftest.er1
24747 grep -v '^ *+' conftest.er1 >conftest.err
24749 cat conftest.err >&5
24750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24751 (exit $ac_status); } &&
24752 { ac_try='test -z "$ac_c_werror_flag"
24753 || test ! -s conftest.err'
24754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24755 (eval $ac_try) 2>&5
24757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24758 (exit $ac_status); }; } &&
24759 { ac_try='test -s conftest$ac_exeext'
24760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24761 (eval $ac_try) 2>&5
24763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24764 (exit $ac_status); }; }; then
24765 ac_cv_func_socket=yes
24767 echo "$as_me: failed program was:" >&5
24768 sed 's/^/| /' conftest.$ac_ext >&5
24770 ac_cv_func_socket=no
24772 rm -f conftest.err conftest.$ac_objext \
24773 conftest$ac_exeext conftest.$ac_ext
24775 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24776 echo "${ECHO_T}$ac_cv_func_socket" >&6
24777 if test $ac_cv_func_socket = yes; then
24782 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
24783 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
24784 if test "${ac_cv_lib_socket_main+set}" = set; then
24785 echo $ECHO_N "(cached) $ECHO_C" >&6
24787 ac_check_lib_save_LIBS=$LIBS
24788 LIBS="-lsocket $LIBS"
24789 cat >conftest.$ac_ext <<_ACEOF
24792 cat confdefs.h >>conftest.$ac_ext
24793 cat >>conftest.$ac_ext <<_ACEOF
24794 /* end confdefs.h. */
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 ac_cv_lib_socket_main=yes
24829 echo "$as_me: failed program was:" >&5
24830 sed 's/^/| /' conftest.$ac_ext >&5
24832 ac_cv_lib_socket_main=no
24834 rm -f conftest.err conftest.$ac_objext \
24835 conftest$ac_exeext conftest.$ac_ext
24836 LIBS=$ac_check_lib_save_LIBS
24838 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
24839 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
24840 if test $ac_cv_lib_socket_main = yes; then
24841 cat >>confdefs.h <<_ACEOF
24842 #define HAVE_LIBSOCKET 1
24845 LIBS="-lsocket $LIBS"
24850 echo "$as_me:$LINENO: checking for main in -lnet" >&5
24851 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
24852 if test "${ac_cv_lib_net_main+set}" = set; then
24853 echo $ECHO_N "(cached) $ECHO_C" >&6
24855 ac_check_lib_save_LIBS=$LIBS
24857 cat >conftest.$ac_ext <<_ACEOF
24860 cat confdefs.h >>conftest.$ac_ext
24861 cat >>conftest.$ac_ext <<_ACEOF
24862 /* end confdefs.h. */
24873 rm -f conftest.$ac_objext conftest$ac_exeext
24874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24875 (eval $ac_link) 2>conftest.er1
24877 grep -v '^ *+' conftest.er1 >conftest.err
24879 cat conftest.err >&5
24880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24881 (exit $ac_status); } &&
24882 { ac_try='test -z "$ac_c_werror_flag"
24883 || test ! -s conftest.err'
24884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24885 (eval $ac_try) 2>&5
24887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24888 (exit $ac_status); }; } &&
24889 { ac_try='test -s conftest$ac_exeext'
24890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24891 (eval $ac_try) 2>&5
24893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24894 (exit $ac_status); }; }; then
24895 ac_cv_lib_net_main=yes
24897 echo "$as_me: failed program was:" >&5
24898 sed 's/^/| /' conftest.$ac_ext >&5
24900 ac_cv_lib_net_main=no
24902 rm -f conftest.err conftest.$ac_objext \
24903 conftest$ac_exeext conftest.$ac_ext
24904 LIBS=$ac_check_lib_save_LIBS
24906 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
24907 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
24908 if test $ac_cv_lib_net_main = yes; then
24909 cat >>confdefs.h <<_ACEOF
24910 #define HAVE_LIBNET 1
24918 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
24919 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
24920 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
24921 echo $ECHO_N "(cached) $ECHO_C" >&6
24923 ac_check_lib_save_LIBS=$LIBS
24924 LIBS="-lnsl_s $LIBS"
24925 cat >conftest.$ac_ext <<_ACEOF
24928 cat confdefs.h >>conftest.$ac_ext
24929 cat >>conftest.$ac_ext <<_ACEOF
24930 /* end confdefs.h. */
24941 rm -f conftest.$ac_objext conftest$ac_exeext
24942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24943 (eval $ac_link) 2>conftest.er1
24945 grep -v '^ *+' conftest.er1 >conftest.err
24947 cat conftest.err >&5
24948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24949 (exit $ac_status); } &&
24950 { ac_try='test -z "$ac_c_werror_flag"
24951 || test ! -s conftest.err'
24952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24953 (eval $ac_try) 2>&5
24955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24956 (exit $ac_status); }; } &&
24957 { ac_try='test -s conftest$ac_exeext'
24958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24959 (eval $ac_try) 2>&5
24961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24962 (exit $ac_status); }; }; then
24963 ac_cv_lib_nsl_s_main=yes
24965 echo "$as_me: failed program was:" >&5
24966 sed 's/^/| /' conftest.$ac_ext >&5
24968 ac_cv_lib_nsl_s_main=no
24970 rm -f conftest.err conftest.$ac_objext \
24971 conftest$ac_exeext conftest.$ac_ext
24972 LIBS=$ac_check_lib_save_LIBS
24974 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
24975 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
24976 if test $ac_cv_lib_nsl_s_main = yes; then
24977 cat >>confdefs.h <<_ACEOF
24978 #define HAVE_LIBNSL_S 1
24981 LIBS="-lnsl_s $LIBS"
24986 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
24987 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
24988 if test "${ac_cv_lib_nsl_main+set}" = set; then
24989 echo $ECHO_N "(cached) $ECHO_C" >&6
24991 ac_check_lib_save_LIBS=$LIBS
24993 cat >conftest.$ac_ext <<_ACEOF
24996 cat confdefs.h >>conftest.$ac_ext
24997 cat >>conftest.$ac_ext <<_ACEOF
24998 /* end confdefs.h. */
25009 rm -f conftest.$ac_objext conftest$ac_exeext
25010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25011 (eval $ac_link) 2>conftest.er1
25013 grep -v '^ *+' conftest.er1 >conftest.err
25015 cat conftest.err >&5
25016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25017 (exit $ac_status); } &&
25018 { ac_try='test -z "$ac_c_werror_flag"
25019 || test ! -s conftest.err'
25020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25021 (eval $ac_try) 2>&5
25023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25024 (exit $ac_status); }; } &&
25025 { ac_try='test -s conftest$ac_exeext'
25026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25027 (eval $ac_try) 2>&5
25029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25030 (exit $ac_status); }; }; then
25031 ac_cv_lib_nsl_main=yes
25033 echo "$as_me: failed program was:" >&5
25034 sed 's/^/| /' conftest.$ac_ext >&5
25036 ac_cv_lib_nsl_main=no
25038 rm -f conftest.err conftest.$ac_objext \
25039 conftest$ac_exeext conftest.$ac_ext
25040 LIBS=$ac_check_lib_save_LIBS
25042 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
25043 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
25044 if test $ac_cv_lib_nsl_main = yes; then
25045 cat >>confdefs.h <<_ACEOF
25046 #define HAVE_LIBNSL 1
25054 echo "$as_me:$LINENO: checking for socket in -linet" >&5
25055 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
25056 if test "${ac_cv_lib_inet_socket+set}" = set; then
25057 echo $ECHO_N "(cached) $ECHO_C" >&6
25059 ac_check_lib_save_LIBS=$LIBS
25060 LIBS="-linet $LIBS"
25061 cat >conftest.$ac_ext <<_ACEOF
25064 cat confdefs.h >>conftest.$ac_ext
25065 cat >>conftest.$ac_ext <<_ACEOF
25066 /* end confdefs.h. */
25068 /* Override any gcc2 internal prototype to avoid an error. */
25072 /* We use char because int might match the return type of a gcc2
25073 builtin and then its argument prototype would still apply. */
25083 rm -f conftest.$ac_objext conftest$ac_exeext
25084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25085 (eval $ac_link) 2>conftest.er1
25087 grep -v '^ *+' conftest.er1 >conftest.err
25089 cat conftest.err >&5
25090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25091 (exit $ac_status); } &&
25092 { ac_try='test -z "$ac_c_werror_flag"
25093 || test ! -s conftest.err'
25094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25095 (eval $ac_try) 2>&5
25097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25098 (exit $ac_status); }; } &&
25099 { ac_try='test -s conftest$ac_exeext'
25100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25101 (eval $ac_try) 2>&5
25103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25104 (exit $ac_status); }; }; then
25105 ac_cv_lib_inet_socket=yes
25107 echo "$as_me: failed program was:" >&5
25108 sed 's/^/| /' conftest.$ac_ext >&5
25110 ac_cv_lib_inet_socket=no
25112 rm -f conftest.err conftest.$ac_objext \
25113 conftest$ac_exeext conftest.$ac_ext
25114 LIBS=$ac_check_lib_save_LIBS
25116 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
25117 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
25118 if test $ac_cv_lib_inet_socket = yes; then
25119 cat >>confdefs.h <<_ACEOF
25120 #define HAVE_LIBINET 1
25123 LIBS="-linet $LIBS"
25128 echo "$as_me:$LINENO: checking for main in -lgen" >&5
25129 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
25130 if test "${ac_cv_lib_gen_main+set}" = set; then
25131 echo $ECHO_N "(cached) $ECHO_C" >&6
25133 ac_check_lib_save_LIBS=$LIBS
25135 cat >conftest.$ac_ext <<_ACEOF
25138 cat confdefs.h >>conftest.$ac_ext
25139 cat >>conftest.$ac_ext <<_ACEOF
25140 /* end confdefs.h. */
25151 rm -f conftest.$ac_objext conftest$ac_exeext
25152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25153 (eval $ac_link) 2>conftest.er1
25155 grep -v '^ *+' conftest.er1 >conftest.err
25157 cat conftest.err >&5
25158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25159 (exit $ac_status); } &&
25160 { ac_try='test -z "$ac_c_werror_flag"
25161 || test ! -s conftest.err'
25162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25163 (eval $ac_try) 2>&5
25165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25166 (exit $ac_status); }; } &&
25167 { ac_try='test -s conftest$ac_exeext'
25168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25169 (eval $ac_try) 2>&5
25171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25172 (exit $ac_status); }; }; then
25173 ac_cv_lib_gen_main=yes
25175 echo "$as_me: failed program was:" >&5
25176 sed 's/^/| /' conftest.$ac_ext >&5
25178 ac_cv_lib_gen_main=no
25180 rm -f conftest.err conftest.$ac_objext \
25181 conftest$ac_exeext conftest.$ac_ext
25182 LIBS=$ac_check_lib_save_LIBS
25184 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
25185 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
25186 if test $ac_cv_lib_gen_main = yes; then
25187 cat >>confdefs.h <<_ACEOF
25188 #define HAVE_LIBGEN 1
25199 echo "$as_me:$LINENO: checking for select" >&5
25200 echo $ECHO_N "checking for select... $ECHO_C" >&6
25201 if test "${ac_cv_func_select+set}" = set; then
25202 echo $ECHO_N "(cached) $ECHO_C" >&6
25204 cat >conftest.$ac_ext <<_ACEOF
25207 cat confdefs.h >>conftest.$ac_ext
25208 cat >>conftest.$ac_ext <<_ACEOF
25209 /* end confdefs.h. */
25210 /* Define select to an innocuous variant, in case <limits.h> declares select.
25211 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25212 #define select innocuous_select
25214 /* System header to define __stub macros and hopefully few prototypes,
25215 which can conflict with char select (); below.
25216 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25217 <limits.h> exists even on freestanding compilers. */
25220 # include <limits.h>
25222 # include <assert.h>
25227 /* Override any gcc2 internal prototype to avoid an error. */
25232 /* We use char because int might match the return type of a gcc2
25233 builtin and then its argument prototype would still apply. */
25235 /* The GNU C library defines this for functions which it implements
25236 to always fail with ENOSYS. Some functions are actually named
25237 something starting with __ and the normal name is an alias. */
25238 #if defined (__stub_select) || defined (__stub___select)
25241 char (*f) () = select;
25250 return f != select;
25255 rm -f conftest.$ac_objext conftest$ac_exeext
25256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25257 (eval $ac_link) 2>conftest.er1
25259 grep -v '^ *+' conftest.er1 >conftest.err
25261 cat conftest.err >&5
25262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25263 (exit $ac_status); } &&
25264 { ac_try='test -z "$ac_c_werror_flag"
25265 || test ! -s conftest.err'
25266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25267 (eval $ac_try) 2>&5
25269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25270 (exit $ac_status); }; } &&
25271 { ac_try='test -s conftest$ac_exeext'
25272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25273 (eval $ac_try) 2>&5
25275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25276 (exit $ac_status); }; }; then
25277 ac_cv_func_select=yes
25279 echo "$as_me: failed program was:" >&5
25280 sed 's/^/| /' conftest.$ac_ext >&5
25282 ac_cv_func_select=no
25284 rm -f conftest.err conftest.$ac_objext \
25285 conftest$ac_exeext conftest.$ac_ext
25287 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
25288 echo "${ECHO_T}$ac_cv_func_select" >&6
25289 if test $ac_cv_func_select = yes; then
25292 { { echo "$as_me:$LINENO: error: select() required." >&5
25293 echo "$as_me: error: select() required." >&2;}
25294 { (exit 1); exit 1; }; }
25298 if test "${ac_cv_header_winsock_h}" != yes; then
25301 for ac_header in sys/select.h sys/socket.h
25303 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25305 echo "$as_me:$LINENO: checking for $ac_header" >&5
25306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25308 echo $ECHO_N "(cached) $ECHO_C" >&6
25310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25313 # Is the header compilable?
25314 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25315 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25316 cat >conftest.$ac_ext <<_ACEOF
25319 cat confdefs.h >>conftest.$ac_ext
25320 cat >>conftest.$ac_ext <<_ACEOF
25321 /* end confdefs.h. */
25322 $ac_includes_default
25323 #include <$ac_header>
25325 rm -f conftest.$ac_objext
25326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25327 (eval $ac_compile) 2>conftest.er1
25329 grep -v '^ *+' conftest.er1 >conftest.err
25331 cat conftest.err >&5
25332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25333 (exit $ac_status); } &&
25334 { ac_try='test -z "$ac_c_werror_flag"
25335 || test ! -s conftest.err'
25336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25337 (eval $ac_try) 2>&5
25339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25340 (exit $ac_status); }; } &&
25341 { ac_try='test -s conftest.$ac_objext'
25342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25343 (eval $ac_try) 2>&5
25345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25346 (exit $ac_status); }; }; then
25347 ac_header_compiler=yes
25349 echo "$as_me: failed program was:" >&5
25350 sed 's/^/| /' conftest.$ac_ext >&5
25352 ac_header_compiler=no
25354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25355 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25356 echo "${ECHO_T}$ac_header_compiler" >&6
25358 # Is the header present?
25359 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25360 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25361 cat >conftest.$ac_ext <<_ACEOF
25364 cat confdefs.h >>conftest.$ac_ext
25365 cat >>conftest.$ac_ext <<_ACEOF
25366 /* end confdefs.h. */
25367 #include <$ac_header>
25369 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25370 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25372 grep -v '^ *+' conftest.er1 >conftest.err
25374 cat conftest.err >&5
25375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25376 (exit $ac_status); } >/dev/null; then
25377 if test -s conftest.err; then
25378 ac_cpp_err=$ac_c_preproc_warn_flag
25379 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25386 if test -z "$ac_cpp_err"; then
25387 ac_header_preproc=yes
25389 echo "$as_me: failed program was:" >&5
25390 sed 's/^/| /' conftest.$ac_ext >&5
25392 ac_header_preproc=no
25394 rm -f conftest.err conftest.$ac_ext
25395 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25396 echo "${ECHO_T}$ac_header_preproc" >&6
25398 # So? What about this header?
25399 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25401 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25402 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25404 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25405 ac_header_preproc=yes
25408 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25409 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25410 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25411 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25412 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25413 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25414 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25415 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25417 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25418 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25419 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25422 ## ------------------------------------------ ##
25423 ## Report this to the AC_PACKAGE_NAME lists. ##
25424 ## ------------------------------------------ ##
25427 sed "s/^/$as_me: WARNING: /" >&2
25430 echo "$as_me:$LINENO: checking for $ac_header" >&5
25431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25433 echo $ECHO_N "(cached) $ECHO_C" >&6
25435 eval "$as_ac_Header=\$ac_header_preproc"
25437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25438 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25442 cat >>confdefs.h <<_ACEOF
25443 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25450 echo "$as_me:$LINENO: checking types of arguments for select" >&5
25451 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
25452 if test "${ac_cv_func_select_args+set}" = set; then
25453 echo $ECHO_N "(cached) $ECHO_C" >&6
25455 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25456 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
25457 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
25458 cat >conftest.$ac_ext <<_ACEOF
25461 cat confdefs.h >>conftest.$ac_ext
25462 cat >>conftest.$ac_ext <<_ACEOF
25463 /* end confdefs.h. */
25464 $ac_includes_default
25465 #if HAVE_SYS_SELECT_H
25466 # include <sys/select.h>
25468 #if HAVE_SYS_SOCKET_H
25469 # include <sys/socket.h>
25475 extern int select ($ac_arg1,
25476 $ac_arg234, $ac_arg234, $ac_arg234,
25482 rm -f conftest.$ac_objext
25483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25484 (eval $ac_compile) 2>conftest.er1
25486 grep -v '^ *+' conftest.er1 >conftest.err
25488 cat conftest.err >&5
25489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25490 (exit $ac_status); } &&
25491 { ac_try='test -z "$ac_c_werror_flag"
25492 || test ! -s conftest.err'
25493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25494 (eval $ac_try) 2>&5
25496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25497 (exit $ac_status); }; } &&
25498 { ac_try='test -s conftest.$ac_objext'
25499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25500 (eval $ac_try) 2>&5
25502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25503 (exit $ac_status); }; }; then
25504 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
25506 echo "$as_me: failed program was:" >&5
25507 sed 's/^/| /' conftest.$ac_ext >&5
25510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25514 # Provide a safe default value.
25515 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
25518 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
25519 echo "${ECHO_T}$ac_cv_func_select_args" >&6
25520 ac_save_IFS=$IFS; IFS=','
25521 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25525 cat >>confdefs.h <<_ACEOF
25526 #define SELECT_TYPE_ARG1 $1
25530 cat >>confdefs.h <<_ACEOF
25531 #define SELECT_TYPE_ARG234 ($2)
25535 cat >>confdefs.h <<_ACEOF
25536 #define SELECT_TYPE_ARG5 ($3)
25545 for ac_func in poll
25547 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25548 echo "$as_me:$LINENO: checking for $ac_func" >&5
25549 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25550 if eval "test \"\${$as_ac_var+set}\" = set"; then
25551 echo $ECHO_N "(cached) $ECHO_C" >&6
25553 cat >conftest.$ac_ext <<_ACEOF
25556 cat confdefs.h >>conftest.$ac_ext
25557 cat >>conftest.$ac_ext <<_ACEOF
25558 /* end confdefs.h. */
25559 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25561 #define $ac_func innocuous_$ac_func
25563 /* System header to define __stub macros and hopefully few prototypes,
25564 which can conflict with char $ac_func (); below.
25565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25566 <limits.h> exists even on freestanding compilers. */
25569 # include <limits.h>
25571 # include <assert.h>
25576 /* Override any gcc2 internal prototype to avoid an error. */
25581 /* We use char because int might match the return type of a gcc2
25582 builtin and then its argument prototype would still apply. */
25584 /* The GNU C library defines this for functions which it implements
25585 to always fail with ENOSYS. Some functions are actually named
25586 something starting with __ and the normal name is an alias. */
25587 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25590 char (*f) () = $ac_func;
25599 return f != $ac_func;
25604 rm -f conftest.$ac_objext conftest$ac_exeext
25605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25606 (eval $ac_link) 2>conftest.er1
25608 grep -v '^ *+' conftest.er1 >conftest.err
25610 cat conftest.err >&5
25611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25612 (exit $ac_status); } &&
25613 { ac_try='test -z "$ac_c_werror_flag"
25614 || test ! -s conftest.err'
25615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25616 (eval $ac_try) 2>&5
25618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25619 (exit $ac_status); }; } &&
25620 { ac_try='test -s conftest$ac_exeext'
25621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25622 (eval $ac_try) 2>&5
25624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25625 (exit $ac_status); }; }; then
25626 eval "$as_ac_var=yes"
25628 echo "$as_me: failed program was:" >&5
25629 sed 's/^/| /' conftest.$ac_ext >&5
25631 eval "$as_ac_var=no"
25633 rm -f conftest.err conftest.$ac_objext \
25634 conftest$ac_exeext conftest.$ac_ext
25636 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25637 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25638 if test `eval echo '${'$as_ac_var'}'` = yes; then
25639 cat >>confdefs.h <<_ACEOF
25640 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25647 for ac_header in poll.h
25649 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25650 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25651 echo "$as_me:$LINENO: checking for $ac_header" >&5
25652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25653 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25654 echo $ECHO_N "(cached) $ECHO_C" >&6
25656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25657 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25659 # Is the header compilable?
25660 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25661 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25662 cat >conftest.$ac_ext <<_ACEOF
25665 cat confdefs.h >>conftest.$ac_ext
25666 cat >>conftest.$ac_ext <<_ACEOF
25667 /* end confdefs.h. */
25668 $ac_includes_default
25669 #include <$ac_header>
25671 rm -f conftest.$ac_objext
25672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25673 (eval $ac_compile) 2>conftest.er1
25675 grep -v '^ *+' conftest.er1 >conftest.err
25677 cat conftest.err >&5
25678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25679 (exit $ac_status); } &&
25680 { ac_try='test -z "$ac_c_werror_flag"
25681 || test ! -s conftest.err'
25682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25683 (eval $ac_try) 2>&5
25685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25686 (exit $ac_status); }; } &&
25687 { ac_try='test -s conftest.$ac_objext'
25688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25689 (eval $ac_try) 2>&5
25691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25692 (exit $ac_status); }; }; then
25693 ac_header_compiler=yes
25695 echo "$as_me: failed program was:" >&5
25696 sed 's/^/| /' conftest.$ac_ext >&5
25698 ac_header_compiler=no
25700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25701 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25702 echo "${ECHO_T}$ac_header_compiler" >&6
25704 # Is the header present?
25705 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25706 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25707 cat >conftest.$ac_ext <<_ACEOF
25710 cat confdefs.h >>conftest.$ac_ext
25711 cat >>conftest.$ac_ext <<_ACEOF
25712 /* end confdefs.h. */
25713 #include <$ac_header>
25715 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25716 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25718 grep -v '^ *+' conftest.er1 >conftest.err
25720 cat conftest.err >&5
25721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25722 (exit $ac_status); } >/dev/null; then
25723 if test -s conftest.err; then
25724 ac_cpp_err=$ac_c_preproc_warn_flag
25725 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25732 if test -z "$ac_cpp_err"; then
25733 ac_header_preproc=yes
25735 echo "$as_me: failed program was:" >&5
25736 sed 's/^/| /' conftest.$ac_ext >&5
25738 ac_header_preproc=no
25740 rm -f conftest.err conftest.$ac_ext
25741 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25742 echo "${ECHO_T}$ac_header_preproc" >&6
25744 # So? What about this header?
25745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25747 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25748 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25750 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25751 ac_header_preproc=yes
25754 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25755 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25756 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25757 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25758 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25759 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25760 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25761 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25763 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25764 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25765 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25768 ## ------------------------------------------ ##
25769 ## Report this to the AC_PACKAGE_NAME lists. ##
25770 ## ------------------------------------------ ##
25773 sed "s/^/$as_me: WARNING: /" >&2
25776 echo "$as_me:$LINENO: checking for $ac_header" >&5
25777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25778 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25779 echo $ECHO_N "(cached) $ECHO_C" >&6
25781 eval "$as_ac_Header=\$ac_header_preproc"
25783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25784 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25787 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25788 cat >>confdefs.h <<_ACEOF
25789 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25798 for ac_header in sys/epoll.h
25800 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25802 echo "$as_me:$LINENO: checking for $ac_header" >&5
25803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25805 echo $ECHO_N "(cached) $ECHO_C" >&6
25807 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25808 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25810 # Is the header compilable?
25811 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25812 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25813 cat >conftest.$ac_ext <<_ACEOF
25816 cat confdefs.h >>conftest.$ac_ext
25817 cat >>conftest.$ac_ext <<_ACEOF
25818 /* end confdefs.h. */
25819 $ac_includes_default
25820 #include <$ac_header>
25822 rm -f conftest.$ac_objext
25823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25824 (eval $ac_compile) 2>conftest.er1
25826 grep -v '^ *+' conftest.er1 >conftest.err
25828 cat conftest.err >&5
25829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25830 (exit $ac_status); } &&
25831 { ac_try='test -z "$ac_c_werror_flag"
25832 || test ! -s conftest.err'
25833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25834 (eval $ac_try) 2>&5
25836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25837 (exit $ac_status); }; } &&
25838 { ac_try='test -s conftest.$ac_objext'
25839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25840 (eval $ac_try) 2>&5
25842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25843 (exit $ac_status); }; }; then
25844 ac_header_compiler=yes
25846 echo "$as_me: failed program was:" >&5
25847 sed 's/^/| /' conftest.$ac_ext >&5
25849 ac_header_compiler=no
25851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25852 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25853 echo "${ECHO_T}$ac_header_compiler" >&6
25855 # Is the header present?
25856 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25857 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25858 cat >conftest.$ac_ext <<_ACEOF
25861 cat confdefs.h >>conftest.$ac_ext
25862 cat >>conftest.$ac_ext <<_ACEOF
25863 /* end confdefs.h. */
25864 #include <$ac_header>
25866 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25867 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25869 grep -v '^ *+' conftest.er1 >conftest.err
25871 cat conftest.err >&5
25872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25873 (exit $ac_status); } >/dev/null; then
25874 if test -s conftest.err; then
25875 ac_cpp_err=$ac_c_preproc_warn_flag
25876 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25883 if test -z "$ac_cpp_err"; then
25884 ac_header_preproc=yes
25886 echo "$as_me: failed program was:" >&5
25887 sed 's/^/| /' conftest.$ac_ext >&5
25889 ac_header_preproc=no
25891 rm -f conftest.err conftest.$ac_ext
25892 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25893 echo "${ECHO_T}$ac_header_preproc" >&6
25895 # So? What about this header?
25896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25898 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25899 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25901 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25902 ac_header_preproc=yes
25905 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25906 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25907 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25908 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25909 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25910 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25911 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25912 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25914 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25915 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25916 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25919 ## ------------------------------------------ ##
25920 ## Report this to the AC_PACKAGE_NAME lists. ##
25921 ## ------------------------------------------ ##
25924 sed "s/^/$as_me: WARNING: /" >&2
25927 echo "$as_me:$LINENO: checking for $ac_header" >&5
25928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25930 echo $ECHO_N "(cached) $ECHO_C" >&6
25932 eval "$as_ac_Header=\$ac_header_preproc"
25934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25935 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25938 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25939 cat >>confdefs.h <<_ACEOF
25940 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25947 if test "${ac_cv_header_sys_epoll_h}" = yes; then
25948 echo "$as_me:$LINENO: checking for epoll system call" >&5
25949 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
25950 if test "$cross_compiling" = yes; then
25951 echo "$as_me:$LINENO: result: no" >&5
25952 echo "${ECHO_T}no" >&6
25954 cat >conftest.$ac_ext <<_ACEOF
25957 cat confdefs.h >>conftest.$ac_ext
25958 cat >>conftest.$ac_ext <<_ACEOF
25959 /* end confdefs.h. */
25960 int main(int argc, char *argv)
25962 int epfd = epoll_create(256);
25963 exit (epfd == -1 ? 1 : 0);
25966 rm -f conftest$ac_exeext
25967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25968 (eval $ac_link) 2>&5
25970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25971 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25973 (eval $ac_try) 2>&5
25975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25976 (exit $ac_status); }; }; then
25977 echo "$as_me:$LINENO: result: yes" >&5
25978 echo "${ECHO_T}yes" >&6
25980 cat >>confdefs.h <<\_ACEOF
25981 #define HAVE_EPOLL 1
25985 echo "$as_me: program exited with status $ac_status" >&5
25986 echo "$as_me: failed program was:" >&5
25987 sed 's/^/| /' conftest.$ac_ext >&5
25989 ( exit $ac_status )
25990 echo "$as_me:$LINENO: result: no" >&5
25991 echo "${ECHO_T}no" >&6
25993 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25998 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
25999 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
26000 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
26001 echo $ECHO_N "(cached) $ECHO_C" >&6
26004 cat >conftest.$ac_ext <<_ACEOF
26007 cat confdefs.h >>conftest.$ac_ext
26008 cat >>conftest.$ac_ext <<_ACEOF
26009 /* end confdefs.h. */
26012 #include <sys/types.h>
26015 #include <stdlib.h>
26020 char *c = (char *) *sys_errlist
26025 rm -f conftest.$ac_objext
26026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26027 (eval $ac_compile) 2>conftest.er1
26029 grep -v '^ *+' conftest.er1 >conftest.err
26031 cat conftest.err >&5
26032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26033 (exit $ac_status); } &&
26034 { ac_try='test -z "$ac_c_werror_flag"
26035 || test ! -s conftest.err'
26036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26037 (eval $ac_try) 2>&5
26039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26040 (exit $ac_status); }; } &&
26041 { ac_try='test -s conftest.$ac_objext'
26042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26043 (eval $ac_try) 2>&5
26045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26046 (exit $ac_status); }; }; then
26047 ol_cv_dcl_sys_errlist=yes
26048 ol_cv_have_sys_errlist=yes
26050 echo "$as_me: failed program was:" >&5
26051 sed 's/^/| /' conftest.$ac_ext >&5
26053 ol_cv_dcl_sys_errlist=no
26055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26057 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
26058 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
26060 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
26061 if test $ol_cv_dcl_sys_errlist = no ; then
26063 cat >>confdefs.h <<\_ACEOF
26064 #define DECL_SYS_ERRLIST 1
26068 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
26069 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
26070 if test "${ol_cv_have_sys_errlist+set}" = set; then
26071 echo $ECHO_N "(cached) $ECHO_C" >&6
26074 cat >conftest.$ac_ext <<_ACEOF
26077 cat confdefs.h >>conftest.$ac_ext
26078 cat >>conftest.$ac_ext <<_ACEOF
26079 /* end confdefs.h. */
26084 char *c = (char *) *sys_errlist
26089 rm -f conftest.$ac_objext conftest$ac_exeext
26090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26091 (eval $ac_link) 2>conftest.er1
26093 grep -v '^ *+' conftest.er1 >conftest.err
26095 cat conftest.err >&5
26096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26097 (exit $ac_status); } &&
26098 { ac_try='test -z "$ac_c_werror_flag"
26099 || test ! -s conftest.err'
26100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26101 (eval $ac_try) 2>&5
26103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26104 (exit $ac_status); }; } &&
26105 { ac_try='test -s conftest$ac_exeext'
26106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26107 (eval $ac_try) 2>&5
26109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26110 (exit $ac_status); }; }; then
26111 ol_cv_have_sys_errlist=yes
26113 echo "$as_me: failed program was:" >&5
26114 sed 's/^/| /' conftest.$ac_ext >&5
26116 ol_cv_have_sys_errlist=no
26118 rm -f conftest.err conftest.$ac_objext \
26119 conftest$ac_exeext conftest.$ac_ext
26121 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
26122 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
26124 if test $ol_cv_have_sys_errlist = yes ; then
26126 cat >>confdefs.h <<\_ACEOF
26127 #define HAVE_SYS_ERRLIST 1
26133 for ac_func in strerror strerror_r
26135 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26136 echo "$as_me:$LINENO: checking for $ac_func" >&5
26137 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26138 if eval "test \"\${$as_ac_var+set}\" = set"; then
26139 echo $ECHO_N "(cached) $ECHO_C" >&6
26141 cat >conftest.$ac_ext <<_ACEOF
26144 cat confdefs.h >>conftest.$ac_ext
26145 cat >>conftest.$ac_ext <<_ACEOF
26146 /* end confdefs.h. */
26147 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26148 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26149 #define $ac_func innocuous_$ac_func
26151 /* System header to define __stub macros and hopefully few prototypes,
26152 which can conflict with char $ac_func (); below.
26153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26154 <limits.h> exists even on freestanding compilers. */
26157 # include <limits.h>
26159 # include <assert.h>
26164 /* Override any gcc2 internal prototype to avoid an error. */
26169 /* We use char because int might match the return type of a gcc2
26170 builtin and then its argument prototype would still apply. */
26172 /* The GNU C library defines this for functions which it implements
26173 to always fail with ENOSYS. Some functions are actually named
26174 something starting with __ and the normal name is an alias. */
26175 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26178 char (*f) () = $ac_func;
26187 return f != $ac_func;
26192 rm -f conftest.$ac_objext conftest$ac_exeext
26193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26194 (eval $ac_link) 2>conftest.er1
26196 grep -v '^ *+' conftest.er1 >conftest.err
26198 cat conftest.err >&5
26199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26200 (exit $ac_status); } &&
26201 { ac_try='test -z "$ac_c_werror_flag"
26202 || test ! -s conftest.err'
26203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26204 (eval $ac_try) 2>&5
26206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26207 (exit $ac_status); }; } &&
26208 { ac_try='test -s conftest$ac_exeext'
26209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26210 (eval $ac_try) 2>&5
26212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26213 (exit $ac_status); }; }; then
26214 eval "$as_ac_var=yes"
26216 echo "$as_me: failed program was:" >&5
26217 sed 's/^/| /' conftest.$ac_ext >&5
26219 eval "$as_ac_var=no"
26221 rm -f conftest.err conftest.$ac_objext \
26222 conftest$ac_exeext conftest.$ac_ext
26224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26225 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26226 if test `eval echo '${'$as_ac_var'}'` = yes; then
26227 cat >>confdefs.h <<_ACEOF
26228 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26234 ol_cv_func_strerror_r=no
26235 if test "${ac_cv_func_strerror_r}" = yes ; then
26236 echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
26237 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
26238 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
26239 echo $ECHO_N "(cached) $ECHO_C" >&6
26242 cat >conftest.$ac_ext <<_ACEOF
26245 cat confdefs.h >>conftest.$ac_ext
26246 cat >>conftest.$ac_ext <<_ACEOF
26247 /* end confdefs.h. */
26248 #include <string.h>
26250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26251 $EGREP "strerror_r" >/dev/null 2>&1; then
26252 ol_decl_strerror_r=yes
26254 ol_decl_strerror_r=no
26258 if test $ol_decl_strerror_r = yes ; then
26259 cat >conftest.$ac_ext <<_ACEOF
26262 cat confdefs.h >>conftest.$ac_ext
26263 cat >>conftest.$ac_ext <<_ACEOF
26264 /* end confdefs.h. */
26265 #include <string.h>
26269 /* from autoconf 2.59 */
26271 char x = *strerror_r (0, buf, sizeof buf);
26272 char *p = strerror_r (0, buf, sizeof buf);
26278 rm -f conftest.$ac_objext
26279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26280 (eval $ac_compile) 2>conftest.er1
26282 grep -v '^ *+' conftest.er1 >conftest.err
26284 cat conftest.err >&5
26285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26286 (exit $ac_status); } &&
26287 { ac_try='test -z "$ac_c_werror_flag"
26288 || test ! -s conftest.err'
26289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26290 (eval $ac_try) 2>&5
26292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26293 (exit $ac_status); }; } &&
26294 { ac_try='test -s conftest.$ac_objext'
26295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26296 (eval $ac_try) 2>&5
26298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26299 (exit $ac_status); }; }; then
26300 ol_cv_nonposix_strerror_r=yes
26302 echo "$as_me: failed program was:" >&5
26303 sed 's/^/| /' conftest.$ac_ext >&5
26305 ol_cv_nonposix_strerror_r=no
26307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26309 if test "$cross_compiling" = yes; then
26310 ol_cv_nonposix_strerror=no
26312 cat >conftest.$ac_ext <<_ACEOF
26315 cat confdefs.h >>conftest.$ac_ext
26316 cat >>conftest.$ac_ext <<_ACEOF
26317 /* end confdefs.h. */
26322 strerror_r( 1, buf, sizeof buf );
26323 exit( buf[0] == 0 );
26327 rm -f conftest$ac_exeext
26328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26329 (eval $ac_link) 2>&5
26331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26332 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26334 (eval $ac_try) 2>&5
26336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26337 (exit $ac_status); }; }; then
26338 ol_cv_nonposix_strerror_r=yes
26340 echo "$as_me: program exited with status $ac_status" >&5
26341 echo "$as_me: failed program was:" >&5
26342 sed 's/^/| /' conftest.$ac_ext >&5
26344 ( exit $ac_status )
26345 ol_cv_nonposix_strerror=no
26347 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26352 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
26353 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
26354 if test $ol_cv_nonposix_strerror_r = yes ; then
26356 cat >>confdefs.h <<\_ACEOF
26357 #define HAVE_NONPOSIX_STRERROR_R 1
26362 elif test "${ac_cv_func_strerror}" = no ; then
26363 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
26364 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
26365 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
26366 echo $ECHO_N "(cached) $ECHO_C" >&6
26369 cat >conftest.$ac_ext <<_ACEOF
26372 cat confdefs.h >>conftest.$ac_ext
26373 cat >>conftest.$ac_ext <<_ACEOF
26374 /* end confdefs.h. */
26377 #include <sys/types.h>
26380 #include <stdlib.h>
26385 char *c = (char *) *sys_errlist
26390 rm -f conftest.$ac_objext
26391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26392 (eval $ac_compile) 2>conftest.er1
26394 grep -v '^ *+' conftest.er1 >conftest.err
26396 cat conftest.err >&5
26397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26398 (exit $ac_status); } &&
26399 { ac_try='test -z "$ac_c_werror_flag"
26400 || test ! -s conftest.err'
26401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26402 (eval $ac_try) 2>&5
26404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26405 (exit $ac_status); }; } &&
26406 { ac_try='test -s conftest.$ac_objext'
26407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26408 (eval $ac_try) 2>&5
26410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26411 (exit $ac_status); }; }; then
26412 ol_cv_dcl_sys_errlist=yes
26413 ol_cv_have_sys_errlist=yes
26415 echo "$as_me: failed program was:" >&5
26416 sed 's/^/| /' conftest.$ac_ext >&5
26418 ol_cv_dcl_sys_errlist=no
26420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26422 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
26423 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
26425 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
26426 if test $ol_cv_dcl_sys_errlist = no ; then
26428 cat >>confdefs.h <<\_ACEOF
26429 #define DECL_SYS_ERRLIST 1
26433 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
26434 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
26435 if test "${ol_cv_have_sys_errlist+set}" = set; then
26436 echo $ECHO_N "(cached) $ECHO_C" >&6
26439 cat >conftest.$ac_ext <<_ACEOF
26442 cat confdefs.h >>conftest.$ac_ext
26443 cat >>conftest.$ac_ext <<_ACEOF
26444 /* end confdefs.h. */
26449 char *c = (char *) *sys_errlist
26454 rm -f conftest.$ac_objext conftest$ac_exeext
26455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26456 (eval $ac_link) 2>conftest.er1
26458 grep -v '^ *+' conftest.er1 >conftest.err
26460 cat conftest.err >&5
26461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26462 (exit $ac_status); } &&
26463 { ac_try='test -z "$ac_c_werror_flag"
26464 || test ! -s conftest.err'
26465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26466 (eval $ac_try) 2>&5
26468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26469 (exit $ac_status); }; } &&
26470 { ac_try='test -s conftest$ac_exeext'
26471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26472 (eval $ac_try) 2>&5
26474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26475 (exit $ac_status); }; }; then
26476 ol_cv_have_sys_errlist=yes
26478 echo "$as_me: failed program was:" >&5
26479 sed 's/^/| /' conftest.$ac_ext >&5
26481 ol_cv_have_sys_errlist=no
26483 rm -f conftest.err conftest.$ac_objext \
26484 conftest$ac_exeext conftest.$ac_ext
26486 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
26487 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
26489 if test $ol_cv_have_sys_errlist = yes ; then
26491 cat >>confdefs.h <<\_ACEOF
26492 #define HAVE_SYS_ERRLIST 1
26501 for ac_header in regex.h
26503 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26504 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26505 echo "$as_me:$LINENO: checking for $ac_header" >&5
26506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26507 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26508 echo $ECHO_N "(cached) $ECHO_C" >&6
26510 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26511 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26513 # Is the header compilable?
26514 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26515 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26516 cat >conftest.$ac_ext <<_ACEOF
26519 cat confdefs.h >>conftest.$ac_ext
26520 cat >>conftest.$ac_ext <<_ACEOF
26521 /* end confdefs.h. */
26522 $ac_includes_default
26523 #include <$ac_header>
26525 rm -f conftest.$ac_objext
26526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26527 (eval $ac_compile) 2>conftest.er1
26529 grep -v '^ *+' conftest.er1 >conftest.err
26531 cat conftest.err >&5
26532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26533 (exit $ac_status); } &&
26534 { ac_try='test -z "$ac_c_werror_flag"
26535 || test ! -s conftest.err'
26536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26537 (eval $ac_try) 2>&5
26539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26540 (exit $ac_status); }; } &&
26541 { ac_try='test -s conftest.$ac_objext'
26542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26543 (eval $ac_try) 2>&5
26545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26546 (exit $ac_status); }; }; then
26547 ac_header_compiler=yes
26549 echo "$as_me: failed program was:" >&5
26550 sed 's/^/| /' conftest.$ac_ext >&5
26552 ac_header_compiler=no
26554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26555 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26556 echo "${ECHO_T}$ac_header_compiler" >&6
26558 # Is the header present?
26559 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26560 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26561 cat >conftest.$ac_ext <<_ACEOF
26564 cat confdefs.h >>conftest.$ac_ext
26565 cat >>conftest.$ac_ext <<_ACEOF
26566 /* end confdefs.h. */
26567 #include <$ac_header>
26569 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26570 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26572 grep -v '^ *+' conftest.er1 >conftest.err
26574 cat conftest.err >&5
26575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26576 (exit $ac_status); } >/dev/null; then
26577 if test -s conftest.err; then
26578 ac_cpp_err=$ac_c_preproc_warn_flag
26579 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26586 if test -z "$ac_cpp_err"; then
26587 ac_header_preproc=yes
26589 echo "$as_me: failed program was:" >&5
26590 sed 's/^/| /' conftest.$ac_ext >&5
26592 ac_header_preproc=no
26594 rm -f conftest.err conftest.$ac_ext
26595 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26596 echo "${ECHO_T}$ac_header_preproc" >&6
26598 # So? What about this header?
26599 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26601 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26602 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26603 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26604 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26605 ac_header_preproc=yes
26608 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26609 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26610 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26611 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26612 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26613 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26614 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26615 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26617 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26618 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26619 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26622 ## ------------------------------------------ ##
26623 ## Report this to the AC_PACKAGE_NAME lists. ##
26624 ## ------------------------------------------ ##
26627 sed "s/^/$as_me: WARNING: /" >&2
26630 echo "$as_me:$LINENO: checking for $ac_header" >&5
26631 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26633 echo $ECHO_N "(cached) $ECHO_C" >&6
26635 eval "$as_ac_Header=\$ac_header_preproc"
26637 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26638 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26641 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26642 cat >>confdefs.h <<_ACEOF
26643 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26650 if test "$ac_cv_header_regex_h" != yes ; then
26651 { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
26652 echo "$as_me: error: POSIX regex.h required." >&2;}
26653 { (exit 1); exit 1; }; }
26655 echo "$as_me:$LINENO: checking for library containing regfree" >&5
26656 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
26657 if test "${ac_cv_search_regfree+set}" = set; then
26658 echo $ECHO_N "(cached) $ECHO_C" >&6
26660 ac_func_search_save_LIBS=$LIBS
26661 ac_cv_search_regfree=no
26662 cat >conftest.$ac_ext <<_ACEOF
26665 cat confdefs.h >>conftest.$ac_ext
26666 cat >>conftest.$ac_ext <<_ACEOF
26667 /* end confdefs.h. */
26669 /* Override any gcc2 internal prototype to avoid an error. */
26673 /* We use char because int might match the return type of a gcc2
26674 builtin and then its argument prototype would still apply. */
26684 rm -f conftest.$ac_objext conftest$ac_exeext
26685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26686 (eval $ac_link) 2>conftest.er1
26688 grep -v '^ *+' conftest.er1 >conftest.err
26690 cat conftest.err >&5
26691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26692 (exit $ac_status); } &&
26693 { ac_try='test -z "$ac_c_werror_flag"
26694 || test ! -s conftest.err'
26695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26696 (eval $ac_try) 2>&5
26698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26699 (exit $ac_status); }; } &&
26700 { ac_try='test -s conftest$ac_exeext'
26701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26702 (eval $ac_try) 2>&5
26704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26705 (exit $ac_status); }; }; then
26706 ac_cv_search_regfree="none required"
26708 echo "$as_me: failed program was:" >&5
26709 sed 's/^/| /' conftest.$ac_ext >&5
26712 rm -f conftest.err conftest.$ac_objext \
26713 conftest$ac_exeext conftest.$ac_ext
26714 if test "$ac_cv_search_regfree" = no; then
26715 for ac_lib in regex gnuregex; do
26716 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26717 cat >conftest.$ac_ext <<_ACEOF
26720 cat confdefs.h >>conftest.$ac_ext
26721 cat >>conftest.$ac_ext <<_ACEOF
26722 /* end confdefs.h. */
26724 /* Override any gcc2 internal prototype to avoid an error. */
26728 /* We use char because int might match the return type of a gcc2
26729 builtin and then its argument prototype would still apply. */
26739 rm -f conftest.$ac_objext conftest$ac_exeext
26740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26741 (eval $ac_link) 2>conftest.er1
26743 grep -v '^ *+' conftest.er1 >conftest.err
26745 cat conftest.err >&5
26746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26747 (exit $ac_status); } &&
26748 { ac_try='test -z "$ac_c_werror_flag"
26749 || test ! -s conftest.err'
26750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26751 (eval $ac_try) 2>&5
26753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26754 (exit $ac_status); }; } &&
26755 { ac_try='test -s conftest$ac_exeext'
26756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26757 (eval $ac_try) 2>&5
26759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26760 (exit $ac_status); }; }; then
26761 ac_cv_search_regfree="-l$ac_lib"
26764 echo "$as_me: failed program was:" >&5
26765 sed 's/^/| /' conftest.$ac_ext >&5
26768 rm -f conftest.err conftest.$ac_objext \
26769 conftest$ac_exeext conftest.$ac_ext
26772 LIBS=$ac_func_search_save_LIBS
26774 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
26775 echo "${ECHO_T}$ac_cv_search_regfree" >&6
26776 if test "$ac_cv_search_regfree" != no; then
26777 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
26780 { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
26781 echo "$as_me: error: POSIX regex required." >&2;}
26782 { (exit 1); exit 1; }; }
26787 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
26788 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
26789 if test "${ol_cv_c_posix_regex+set}" = set; then
26790 echo $ECHO_N "(cached) $ECHO_C" >&6
26793 if test "$cross_compiling" = yes; then
26794 ol_cv_c_posix_regex=cross
26796 cat >conftest.$ac_ext <<_ACEOF
26799 cat confdefs.h >>conftest.$ac_ext
26800 cat >>conftest.$ac_ext <<_ACEOF
26801 /* end confdefs.h. */
26803 #include <sys/types.h>
26805 static char *pattern, *string;
26813 if(regcomp(&re, pattern, 0)) {
26817 string = "ALL MATCH";
26819 rc = regexec(&re, string, 0, (void*)0, 0);
26826 rm -f conftest$ac_exeext
26827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26828 (eval $ac_link) 2>&5
26830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26831 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26833 (eval $ac_try) 2>&5
26835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26836 (exit $ac_status); }; }; then
26837 ol_cv_c_posix_regex=yes
26839 echo "$as_me: program exited with status $ac_status" >&5
26840 echo "$as_me: failed program was:" >&5
26841 sed 's/^/| /' conftest.$ac_ext >&5
26843 ( exit $ac_status )
26844 ol_cv_c_posix_regex=no
26846 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26849 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
26850 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
26852 if test "$ol_cv_c_posix_regex" = no ; then
26853 { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
26854 echo "$as_me: error: broken POSIX regex!" >&2;}
26855 { (exit 1); exit 1; }; }
26861 for ac_header in sys/uuid.h
26863 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26864 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26865 echo "$as_me:$LINENO: checking for $ac_header" >&5
26866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26868 echo $ECHO_N "(cached) $ECHO_C" >&6
26870 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26871 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26873 # Is the header compilable?
26874 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26875 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26876 cat >conftest.$ac_ext <<_ACEOF
26879 cat confdefs.h >>conftest.$ac_ext
26880 cat >>conftest.$ac_ext <<_ACEOF
26881 /* end confdefs.h. */
26882 $ac_includes_default
26883 #include <$ac_header>
26885 rm -f conftest.$ac_objext
26886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26887 (eval $ac_compile) 2>conftest.er1
26889 grep -v '^ *+' conftest.er1 >conftest.err
26891 cat conftest.err >&5
26892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26893 (exit $ac_status); } &&
26894 { ac_try='test -z "$ac_c_werror_flag"
26895 || test ! -s conftest.err'
26896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26897 (eval $ac_try) 2>&5
26899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26900 (exit $ac_status); }; } &&
26901 { ac_try='test -s conftest.$ac_objext'
26902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26903 (eval $ac_try) 2>&5
26905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26906 (exit $ac_status); }; }; then
26907 ac_header_compiler=yes
26909 echo "$as_me: failed program was:" >&5
26910 sed 's/^/| /' conftest.$ac_ext >&5
26912 ac_header_compiler=no
26914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26915 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26916 echo "${ECHO_T}$ac_header_compiler" >&6
26918 # Is the header present?
26919 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26920 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26921 cat >conftest.$ac_ext <<_ACEOF
26924 cat confdefs.h >>conftest.$ac_ext
26925 cat >>conftest.$ac_ext <<_ACEOF
26926 /* end confdefs.h. */
26927 #include <$ac_header>
26929 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26930 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
26937 if test -s conftest.err; then
26938 ac_cpp_err=$ac_c_preproc_warn_flag
26939 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26946 if test -z "$ac_cpp_err"; then
26947 ac_header_preproc=yes
26949 echo "$as_me: failed program was:" >&5
26950 sed 's/^/| /' conftest.$ac_ext >&5
26952 ac_header_preproc=no
26954 rm -f conftest.err conftest.$ac_ext
26955 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26956 echo "${ECHO_T}$ac_header_preproc" >&6
26958 # So? What about this header?
26959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26961 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26962 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26964 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26965 ac_header_preproc=yes
26968 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26969 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26970 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26971 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26972 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26973 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26974 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26975 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26976 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26977 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26978 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26979 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26982 ## ------------------------------------------ ##
26983 ## Report this to the AC_PACKAGE_NAME lists. ##
26984 ## ------------------------------------------ ##
26987 sed "s/^/$as_me: WARNING: /" >&2
26990 echo "$as_me:$LINENO: checking for $ac_header" >&5
26991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26992 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26993 echo $ECHO_N "(cached) $ECHO_C" >&6
26995 eval "$as_ac_Header=\$ac_header_preproc"
26997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26998 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27001 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27002 cat >>confdefs.h <<_ACEOF
27003 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27010 if test $ac_cv_header_sys_uuid_h = yes ; then
27012 echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
27013 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
27014 if test "${ac_cv_search_uuid_to_str+set}" = set; then
27015 echo $ECHO_N "(cached) $ECHO_C" >&6
27017 ac_func_search_save_LIBS=$LIBS
27018 ac_cv_search_uuid_to_str=no
27019 cat >conftest.$ac_ext <<_ACEOF
27022 cat confdefs.h >>conftest.$ac_ext
27023 cat >>conftest.$ac_ext <<_ACEOF
27024 /* end confdefs.h. */
27026 /* Override any gcc2 internal prototype to avoid an error. */
27030 /* We use char because int might match the return type of a gcc2
27031 builtin and then its argument prototype would still apply. */
27032 char uuid_to_str ();
27041 rm -f conftest.$ac_objext conftest$ac_exeext
27042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27043 (eval $ac_link) 2>conftest.er1
27045 grep -v '^ *+' conftest.er1 >conftest.err
27047 cat conftest.err >&5
27048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27049 (exit $ac_status); } &&
27050 { ac_try='test -z "$ac_c_werror_flag"
27051 || test ! -s conftest.err'
27052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27053 (eval $ac_try) 2>&5
27055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27056 (exit $ac_status); }; } &&
27057 { ac_try='test -s conftest$ac_exeext'
27058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27059 (eval $ac_try) 2>&5
27061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27062 (exit $ac_status); }; }; then
27063 ac_cv_search_uuid_to_str="none required"
27065 echo "$as_me: failed program was:" >&5
27066 sed 's/^/| /' conftest.$ac_ext >&5
27069 rm -f conftest.err conftest.$ac_objext \
27070 conftest$ac_exeext conftest.$ac_ext
27071 if test "$ac_cv_search_uuid_to_str" = no; then
27072 for ac_lib in uuid; do
27073 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27074 cat >conftest.$ac_ext <<_ACEOF
27077 cat confdefs.h >>conftest.$ac_ext
27078 cat >>conftest.$ac_ext <<_ACEOF
27079 /* end confdefs.h. */
27081 /* Override any gcc2 internal prototype to avoid an error. */
27085 /* We use char because int might match the return type of a gcc2
27086 builtin and then its argument prototype would still apply. */
27087 char uuid_to_str ();
27096 rm -f conftest.$ac_objext conftest$ac_exeext
27097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27098 (eval $ac_link) 2>conftest.er1
27100 grep -v '^ *+' conftest.er1 >conftest.err
27102 cat conftest.err >&5
27103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27104 (exit $ac_status); } &&
27105 { ac_try='test -z "$ac_c_werror_flag"
27106 || test ! -s conftest.err'
27107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27108 (eval $ac_try) 2>&5
27110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27111 (exit $ac_status); }; } &&
27112 { ac_try='test -s conftest$ac_exeext'
27113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27114 (eval $ac_try) 2>&5
27116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27117 (exit $ac_status); }; }; then
27118 ac_cv_search_uuid_to_str="-l$ac_lib"
27121 echo "$as_me: failed program was:" >&5
27122 sed 's/^/| /' conftest.$ac_ext >&5
27125 rm -f conftest.err conftest.$ac_objext \
27126 conftest$ac_exeext conftest.$ac_ext
27129 LIBS=$ac_func_search_save_LIBS
27131 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
27132 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
27133 if test "$ac_cv_search_uuid_to_str" != no; then
27134 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
27142 if test have_uuid = yes ; then
27144 cat >>confdefs.h <<\_ACEOF
27145 #define HAVE_UUID_TO_STR 1
27149 test "$ac_cv_search_uuid_to_str" = "none required" || \
27150 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
27154 if test $have_uuid = no ; then
27155 echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
27156 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
27158 LIBS="$LIBS -lrpcrt4"
27159 cat >conftest.$ac_ext <<_ACEOF
27162 cat confdefs.h >>conftest.$ac_ext
27163 cat >>conftest.$ac_ext <<_ACEOF
27164 /* end confdefs.h. */
27166 int __stdcall UuidCreate(void *);
27167 int __stdcall UuidToStringA(void *,void **);
27174 UuidToStringA(0,0);
27180 rm -f conftest.$ac_objext conftest$ac_exeext
27181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27182 (eval $ac_link) 2>conftest.er1
27184 grep -v '^ *+' conftest.er1 >conftest.err
27186 cat conftest.err >&5
27187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27188 (exit $ac_status); } &&
27189 { ac_try='test -z "$ac_c_werror_flag"
27190 || test ! -s conftest.err'
27191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27192 (eval $ac_try) 2>&5
27194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27195 (exit $ac_status); }; } &&
27196 { ac_try='test -s conftest$ac_exeext'
27197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27198 (eval $ac_try) 2>&5
27200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27201 (exit $ac_status); }; }; then
27204 echo "$as_me: failed program was:" >&5
27205 sed 's/^/| /' conftest.$ac_ext >&5
27209 rm -f conftest.err conftest.$ac_objext \
27210 conftest$ac_exeext conftest.$ac_ext
27211 if test $need_rpcrt = yes; then
27212 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
27215 echo "$as_me:$LINENO: result: $need_rpcrt" >&5
27216 echo "${ECHO_T}$need_rpcrt" >&6
27219 ol_cv_lib_resolver=no
27220 if test $ol_cv_lib_resolver = no ; then
27221 echo "$as_me:$LINENO: checking for resolver link (default)" >&5
27222 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
27223 if test "${ol_cv_resolver_none+set}" = set; then
27224 echo $ECHO_N "(cached) $ECHO_C" >&6
27229 LIBS="$ol_RESOLVER_LIB $LIBS"
27231 cat >conftest.$ac_ext <<_ACEOF
27234 cat confdefs.h >>conftest.$ac_ext
27235 cat >>conftest.$ac_ext <<_ACEOF
27236 /* end confdefs.h. */
27238 #ifdef HAVE_SYS_TYPES_H
27239 # include <sys/types.h>
27241 #include <netinet/in.h>
27242 #ifdef HAVE_ARPA_NAMESER_H
27243 # include <arpa/nameser.h>
27245 #ifdef HAVE_RESOLV_H
27246 # include <resolv.h>
27254 char *request = NULL;
27255 unsigned char reply[64*1024];
27256 unsigned char host[64*1024];
27260 /* Bind 8/9 interface */
27261 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27263 /* Bind 4 interface */
27267 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27271 /* Bind 8/9 interface */
27273 #elif defined(HFIXEDSZ)
27274 /* Bind 4 interface w/ HFIXEDSZ */
27277 /* Bind 4 interface w/o HFIXEDSZ */
27278 p += sizeof(HEADER);
27280 status = dn_expand( reply, reply+len, p, host, sizeof(host));
27286 rm -f conftest.$ac_objext conftest$ac_exeext
27287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27288 (eval $ac_link) 2>conftest.er1
27290 grep -v '^ *+' conftest.er1 >conftest.err
27292 cat conftest.err >&5
27293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27294 (exit $ac_status); } &&
27295 { ac_try='test -z "$ac_c_werror_flag"
27296 || test ! -s conftest.err'
27297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27298 (eval $ac_try) 2>&5
27300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27301 (exit $ac_status); }; } &&
27302 { ac_try='test -s conftest$ac_exeext'
27303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27304 (eval $ac_try) 2>&5
27306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27307 (exit $ac_status); }; }; then
27308 ol_cv_resolver_none=yes
27310 echo "$as_me: failed program was:" >&5
27311 sed 's/^/| /' conftest.$ac_ext >&5
27313 ol_cv_resolver_none=no
27315 rm -f conftest.err conftest.$ac_objext \
27316 conftest$ac_exeext conftest.$ac_ext
27321 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
27322 echo "${ECHO_T}$ol_cv_resolver_none" >&6
27324 if test $ol_cv_resolver_none = yes ; then
27325 ol_cv_lib_resolver=yes
27329 if test $ol_cv_lib_resolver = no ; then
27330 echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
27331 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
27332 if test "${ol_cv_resolver_resolv+set}" = set; then
27333 echo $ECHO_N "(cached) $ECHO_C" >&6
27336 ol_RESOLVER_LIB=-lresolv
27338 LIBS="$ol_RESOLVER_LIB $LIBS"
27340 cat >conftest.$ac_ext <<_ACEOF
27343 cat confdefs.h >>conftest.$ac_ext
27344 cat >>conftest.$ac_ext <<_ACEOF
27345 /* end confdefs.h. */
27347 #ifdef HAVE_SYS_TYPES_H
27348 # include <sys/types.h>
27350 #include <netinet/in.h>
27351 #ifdef HAVE_ARPA_NAMESER_H
27352 # include <arpa/nameser.h>
27354 #ifdef HAVE_RESOLV_H
27355 # include <resolv.h>
27363 char *request = NULL;
27364 unsigned char reply[64*1024];
27365 unsigned char host[64*1024];
27369 /* Bind 8/9 interface */
27370 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27372 /* Bind 4 interface */
27376 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27380 /* Bind 8/9 interface */
27382 #elif defined(HFIXEDSZ)
27383 /* Bind 4 interface w/ HFIXEDSZ */
27386 /* Bind 4 interface w/o HFIXEDSZ */
27387 p += sizeof(HEADER);
27389 status = dn_expand( reply, reply+len, p, host, sizeof(host));
27395 rm -f conftest.$ac_objext conftest$ac_exeext
27396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27397 (eval $ac_link) 2>conftest.er1
27399 grep -v '^ *+' conftest.er1 >conftest.err
27401 cat conftest.err >&5
27402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27403 (exit $ac_status); } &&
27404 { ac_try='test -z "$ac_c_werror_flag"
27405 || test ! -s conftest.err'
27406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27407 (eval $ac_try) 2>&5
27409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27410 (exit $ac_status); }; } &&
27411 { ac_try='test -s conftest$ac_exeext'
27412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27413 (eval $ac_try) 2>&5
27415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27416 (exit $ac_status); }; }; then
27417 ol_cv_resolver_resolv=yes
27419 echo "$as_me: failed program was:" >&5
27420 sed 's/^/| /' conftest.$ac_ext >&5
27422 ol_cv_resolver_resolv=no
27424 rm -f conftest.err conftest.$ac_objext \
27425 conftest$ac_exeext conftest.$ac_ext
27430 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
27431 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
27433 if test $ol_cv_resolver_resolv = yes ; then
27434 ol_cv_lib_resolver=-lresolv
27438 if test $ol_cv_lib_resolver = no ; then
27439 echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
27440 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
27441 if test "${ol_cv_resolver_bind+set}" = set; then
27442 echo $ECHO_N "(cached) $ECHO_C" >&6
27445 ol_RESOLVER_LIB=-lbind
27447 LIBS="$ol_RESOLVER_LIB $LIBS"
27449 cat >conftest.$ac_ext <<_ACEOF
27452 cat confdefs.h >>conftest.$ac_ext
27453 cat >>conftest.$ac_ext <<_ACEOF
27454 /* end confdefs.h. */
27456 #ifdef HAVE_SYS_TYPES_H
27457 # include <sys/types.h>
27459 #include <netinet/in.h>
27460 #ifdef HAVE_ARPA_NAMESER_H
27461 # include <arpa/nameser.h>
27463 #ifdef HAVE_RESOLV_H
27464 # include <resolv.h>
27472 char *request = NULL;
27473 unsigned char reply[64*1024];
27474 unsigned char host[64*1024];
27478 /* Bind 8/9 interface */
27479 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27481 /* Bind 4 interface */
27485 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27489 /* Bind 8/9 interface */
27491 #elif defined(HFIXEDSZ)
27492 /* Bind 4 interface w/ HFIXEDSZ */
27495 /* Bind 4 interface w/o HFIXEDSZ */
27496 p += sizeof(HEADER);
27498 status = dn_expand( reply, reply+len, p, host, sizeof(host));
27504 rm -f conftest.$ac_objext conftest$ac_exeext
27505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27506 (eval $ac_link) 2>conftest.er1
27508 grep -v '^ *+' conftest.er1 >conftest.err
27510 cat conftest.err >&5
27511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27512 (exit $ac_status); } &&
27513 { ac_try='test -z "$ac_c_werror_flag"
27514 || test ! -s conftest.err'
27515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27516 (eval $ac_try) 2>&5
27518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27519 (exit $ac_status); }; } &&
27520 { ac_try='test -s conftest$ac_exeext'
27521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27522 (eval $ac_try) 2>&5
27524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27525 (exit $ac_status); }; }; then
27526 ol_cv_resolver_bind=yes
27528 echo "$as_me: failed program was:" >&5
27529 sed 's/^/| /' conftest.$ac_ext >&5
27531 ol_cv_resolver_bind=no
27533 rm -f conftest.err conftest.$ac_objext \
27534 conftest$ac_exeext conftest.$ac_ext
27539 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
27540 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
27542 if test $ol_cv_resolver_bind = yes ; then
27543 ol_cv_lib_resolver=-lbind
27550 if test "$ol_cv_lib_resolver" != no ; then
27552 cat >>confdefs.h <<\_ACEOF
27553 #define HAVE_RES_QUERY 1
27557 if test "$ol_enable_dnssrv" != no ; then
27561 if test "$ol_cv_lib_resolver" != yes ; then
27562 LIBS="$ol_cv_lib_resolver $LIBS"
27566 if test "$ol_enable_dnssrv" = yes -o "$ol_enable_dnssrv" = mod ; then
27567 if test "$ol_link_dnssrv" = no ; then
27568 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
27569 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
27570 { (exit 1); exit 1; }; }
27573 ol_enable_dnssrv=no
27577 for ac_func in hstrerror
27579 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27580 echo "$as_me:$LINENO: checking for $ac_func" >&5
27581 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27582 if eval "test \"\${$as_ac_var+set}\" = set"; then
27583 echo $ECHO_N "(cached) $ECHO_C" >&6
27585 cat >conftest.$ac_ext <<_ACEOF
27588 cat confdefs.h >>conftest.$ac_ext
27589 cat >>conftest.$ac_ext <<_ACEOF
27590 /* end confdefs.h. */
27591 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27592 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27593 #define $ac_func innocuous_$ac_func
27595 /* System header to define __stub macros and hopefully few prototypes,
27596 which can conflict with char $ac_func (); below.
27597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27598 <limits.h> exists even on freestanding compilers. */
27601 # include <limits.h>
27603 # include <assert.h>
27608 /* Override any gcc2 internal prototype to avoid an error. */
27613 /* We use char because int might match the return type of a gcc2
27614 builtin and then its argument prototype would still apply. */
27616 /* The GNU C library defines this for functions which it implements
27617 to always fail with ENOSYS. Some functions are actually named
27618 something starting with __ and the normal name is an alias. */
27619 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27622 char (*f) () = $ac_func;
27631 return f != $ac_func;
27636 rm -f conftest.$ac_objext conftest$ac_exeext
27637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27638 (eval $ac_link) 2>conftest.er1
27640 grep -v '^ *+' conftest.er1 >conftest.err
27642 cat conftest.err >&5
27643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27644 (exit $ac_status); } &&
27645 { ac_try='test -z "$ac_c_werror_flag"
27646 || test ! -s conftest.err'
27647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27648 (eval $ac_try) 2>&5
27650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27651 (exit $ac_status); }; } &&
27652 { ac_try='test -s conftest$ac_exeext'
27653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27654 (eval $ac_try) 2>&5
27656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27657 (exit $ac_status); }; }; then
27658 eval "$as_ac_var=yes"
27660 echo "$as_me: failed program was:" >&5
27661 sed 's/^/| /' conftest.$ac_ext >&5
27663 eval "$as_ac_var=no"
27665 rm -f conftest.err conftest.$ac_objext \
27666 conftest$ac_exeext conftest.$ac_ext
27668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27669 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27670 if test `eval echo '${'$as_ac_var'}'` = yes; then
27671 cat >>confdefs.h <<_ACEOF
27672 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27683 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
27685 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27686 echo "$as_me:$LINENO: checking for $ac_func" >&5
27687 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27688 if eval "test \"\${$as_ac_var+set}\" = set"; then
27689 echo $ECHO_N "(cached) $ECHO_C" >&6
27691 cat >conftest.$ac_ext <<_ACEOF
27694 cat confdefs.h >>conftest.$ac_ext
27695 cat >>conftest.$ac_ext <<_ACEOF
27696 /* end confdefs.h. */
27697 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27698 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27699 #define $ac_func innocuous_$ac_func
27701 /* System header to define __stub macros and hopefully few prototypes,
27702 which can conflict with char $ac_func (); below.
27703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27704 <limits.h> exists even on freestanding compilers. */
27707 # include <limits.h>
27709 # include <assert.h>
27714 /* Override any gcc2 internal prototype to avoid an error. */
27719 /* We use char because int might match the return type of a gcc2
27720 builtin and then its argument prototype would still apply. */
27722 /* The GNU C library defines this for functions which it implements
27723 to always fail with ENOSYS. Some functions are actually named
27724 something starting with __ and the normal name is an alias. */
27725 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27728 char (*f) () = $ac_func;
27737 return f != $ac_func;
27742 rm -f conftest.$ac_objext conftest$ac_exeext
27743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27744 (eval $ac_link) 2>conftest.er1
27746 grep -v '^ *+' conftest.er1 >conftest.err
27748 cat conftest.err >&5
27749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27750 (exit $ac_status); } &&
27751 { ac_try='test -z "$ac_c_werror_flag"
27752 || test ! -s conftest.err'
27753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27754 (eval $ac_try) 2>&5
27756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27757 (exit $ac_status); }; } &&
27758 { ac_try='test -s conftest$ac_exeext'
27759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27760 (eval $ac_try) 2>&5
27762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27763 (exit $ac_status); }; }; then
27764 eval "$as_ac_var=yes"
27766 echo "$as_me: failed program was:" >&5
27767 sed 's/^/| /' conftest.$ac_ext >&5
27769 eval "$as_ac_var=no"
27771 rm -f conftest.err conftest.$ac_objext \
27772 conftest$ac_exeext conftest.$ac_ext
27774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27775 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27776 if test `eval echo '${'$as_ac_var'}'` = yes; then
27777 cat >>confdefs.h <<_ACEOF
27778 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27786 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
27787 if test $ol_enable_ipv6 = yes ; then
27788 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
27789 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
27790 { (exit 1); exit 1; }; }
27792 elif test $ol_enable_ipv6 != no ; then
27793 echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
27794 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
27795 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
27796 echo $ECHO_N "(cached) $ECHO_C" >&6
27799 cat >conftest.$ac_ext <<_ACEOF
27802 cat confdefs.h >>conftest.$ac_ext
27803 cat >>conftest.$ac_ext <<_ACEOF
27804 /* end confdefs.h. */
27806 # include <netinet/in.h>
27807 # ifdef INET6_ADDRSTRLEN
27808 __has_inet6_addrstrlen__;
27812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27813 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
27814 ol_cv_inet6_addrstrlen=yes
27816 ol_cv_inet6_addrstrlen=no
27821 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
27822 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
27825 echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
27826 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
27827 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
27828 echo $ECHO_N "(cached) $ECHO_C" >&6
27831 cat >conftest.$ac_ext <<_ACEOF
27834 cat confdefs.h >>conftest.$ac_ext
27835 cat >>conftest.$ac_ext <<_ACEOF
27836 /* end confdefs.h. */
27838 #include <sys/types.h>
27839 #include <sys/socket.h>
27845 struct sockaddr_storage ss;
27851 rm -f conftest.$ac_objext
27852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27853 (eval $ac_compile) 2>conftest.er1
27855 grep -v '^ *+' conftest.er1 >conftest.err
27857 cat conftest.err >&5
27858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27859 (exit $ac_status); } &&
27860 { ac_try='test -z "$ac_c_werror_flag"
27861 || test ! -s conftest.err'
27862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27863 (eval $ac_try) 2>&5
27865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27866 (exit $ac_status); }; } &&
27867 { ac_try='test -s conftest.$ac_objext'
27868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27869 (eval $ac_try) 2>&5
27871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27872 (exit $ac_status); }; }; then
27873 ol_cv_struct_sockaddr_storage=yes
27875 echo "$as_me: failed program was:" >&5
27876 sed 's/^/| /' conftest.$ac_ext >&5
27878 ol_cv_struct_sockaddr_storage=no
27880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27882 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
27883 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
27885 if test $ol_cv_inet6_addrstrlen = yes \
27886 -a $ol_cv_struct_sockaddr_storage = yes ; then
27888 elif test $ol_enable_ipv6 = yes \
27889 -a $ol_cv_inet6_addrstrlen = no ; then
27890 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
27891 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
27892 { (exit 1); exit 1; }; }
27893 elif test $ol_enable_ipv6 = yes \
27894 -a $ol_cv_struct_sockaddr_storage = no ; then
27895 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
27896 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
27897 { (exit 1); exit 1; }; }
27901 if test $ol_enable_local != no ; then
27903 for ac_header in sys/un.h
27905 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27907 echo "$as_me:$LINENO: checking for $ac_header" >&5
27908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27909 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27910 echo $ECHO_N "(cached) $ECHO_C" >&6
27912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27913 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27915 # Is the header compilable?
27916 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27917 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27918 cat >conftest.$ac_ext <<_ACEOF
27921 cat confdefs.h >>conftest.$ac_ext
27922 cat >>conftest.$ac_ext <<_ACEOF
27923 /* end confdefs.h. */
27924 $ac_includes_default
27925 #include <$ac_header>
27927 rm -f conftest.$ac_objext
27928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27929 (eval $ac_compile) 2>conftest.er1
27931 grep -v '^ *+' conftest.er1 >conftest.err
27933 cat conftest.err >&5
27934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27935 (exit $ac_status); } &&
27936 { ac_try='test -z "$ac_c_werror_flag"
27937 || test ! -s conftest.err'
27938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27939 (eval $ac_try) 2>&5
27941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27942 (exit $ac_status); }; } &&
27943 { ac_try='test -s conftest.$ac_objext'
27944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27945 (eval $ac_try) 2>&5
27947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27948 (exit $ac_status); }; }; then
27949 ac_header_compiler=yes
27951 echo "$as_me: failed program was:" >&5
27952 sed 's/^/| /' conftest.$ac_ext >&5
27954 ac_header_compiler=no
27956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27957 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27958 echo "${ECHO_T}$ac_header_compiler" >&6
27960 # Is the header present?
27961 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27962 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27963 cat >conftest.$ac_ext <<_ACEOF
27966 cat confdefs.h >>conftest.$ac_ext
27967 cat >>conftest.$ac_ext <<_ACEOF
27968 /* end confdefs.h. */
27969 #include <$ac_header>
27971 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27972 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27974 grep -v '^ *+' conftest.er1 >conftest.err
27976 cat conftest.err >&5
27977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27978 (exit $ac_status); } >/dev/null; then
27979 if test -s conftest.err; then
27980 ac_cpp_err=$ac_c_preproc_warn_flag
27981 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27988 if test -z "$ac_cpp_err"; then
27989 ac_header_preproc=yes
27991 echo "$as_me: failed program was:" >&5
27992 sed 's/^/| /' conftest.$ac_ext >&5
27994 ac_header_preproc=no
27996 rm -f conftest.err conftest.$ac_ext
27997 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27998 echo "${ECHO_T}$ac_header_preproc" >&6
28000 # So? What about this header?
28001 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28003 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28004 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28005 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28006 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28007 ac_header_preproc=yes
28010 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28011 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28012 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28013 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28014 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28015 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28016 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28017 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28018 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28019 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28020 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28021 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28024 ## ------------------------------------------ ##
28025 ## Report this to the AC_PACKAGE_NAME lists. ##
28026 ## ------------------------------------------ ##
28029 sed "s/^/$as_me: WARNING: /" >&2
28032 echo "$as_me:$LINENO: checking for $ac_header" >&5
28033 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28035 echo $ECHO_N "(cached) $ECHO_C" >&6
28037 eval "$as_ac_Header=\$ac_header_preproc"
28039 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28040 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28043 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28044 cat >>confdefs.h <<_ACEOF
28045 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28053 if test $ol_enable_local = auto ; then
28054 ol_enable_local=$ac_cv_header_sys_un_h
28055 elif test $ac_cv_header_sys_un_h = no ; then
28056 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
28057 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
28058 { (exit 1); exit 1; }; }
28066 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
28067 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
28068 -o $ol_with_kerberos = k425 ; then
28071 for ac_header in krb5.h
28073 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28075 echo "$as_me:$LINENO: checking for $ac_header" >&5
28076 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28078 echo $ECHO_N "(cached) $ECHO_C" >&6
28080 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28081 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28083 # Is the header compilable?
28084 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28085 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28086 cat >conftest.$ac_ext <<_ACEOF
28089 cat confdefs.h >>conftest.$ac_ext
28090 cat >>conftest.$ac_ext <<_ACEOF
28091 /* end confdefs.h. */
28092 $ac_includes_default
28093 #include <$ac_header>
28095 rm -f conftest.$ac_objext
28096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28097 (eval $ac_compile) 2>conftest.er1
28099 grep -v '^ *+' conftest.er1 >conftest.err
28101 cat conftest.err >&5
28102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28103 (exit $ac_status); } &&
28104 { ac_try='test -z "$ac_c_werror_flag"
28105 || test ! -s conftest.err'
28106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28107 (eval $ac_try) 2>&5
28109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28110 (exit $ac_status); }; } &&
28111 { ac_try='test -s conftest.$ac_objext'
28112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28113 (eval $ac_try) 2>&5
28115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28116 (exit $ac_status); }; }; then
28117 ac_header_compiler=yes
28119 echo "$as_me: failed program was:" >&5
28120 sed 's/^/| /' conftest.$ac_ext >&5
28122 ac_header_compiler=no
28124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28125 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28126 echo "${ECHO_T}$ac_header_compiler" >&6
28128 # Is the header present?
28129 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28130 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28131 cat >conftest.$ac_ext <<_ACEOF
28134 cat confdefs.h >>conftest.$ac_ext
28135 cat >>conftest.$ac_ext <<_ACEOF
28136 /* end confdefs.h. */
28137 #include <$ac_header>
28139 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28140 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28142 grep -v '^ *+' conftest.er1 >conftest.err
28144 cat conftest.err >&5
28145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28146 (exit $ac_status); } >/dev/null; then
28147 if test -s conftest.err; then
28148 ac_cpp_err=$ac_c_preproc_warn_flag
28149 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28156 if test -z "$ac_cpp_err"; then
28157 ac_header_preproc=yes
28159 echo "$as_me: failed program was:" >&5
28160 sed 's/^/| /' conftest.$ac_ext >&5
28162 ac_header_preproc=no
28164 rm -f conftest.err conftest.$ac_ext
28165 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28166 echo "${ECHO_T}$ac_header_preproc" >&6
28168 # So? What about this header?
28169 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28171 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28172 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28173 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28174 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28175 ac_header_preproc=yes
28178 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28179 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28180 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28181 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28182 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28183 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28184 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28185 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28186 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28187 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28188 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28189 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28192 ## ------------------------------------------ ##
28193 ## Report this to the AC_PACKAGE_NAME lists. ##
28194 ## ------------------------------------------ ##
28197 sed "s/^/$as_me: WARNING: /" >&2
28200 echo "$as_me:$LINENO: checking for $ac_header" >&5
28201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28202 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28203 echo $ECHO_N "(cached) $ECHO_C" >&6
28205 eval "$as_ac_Header=\$ac_header_preproc"
28207 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28208 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28211 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28212 cat >>confdefs.h <<_ACEOF
28213 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28221 if test $ac_cv_header_krb5_h = yes ; then
28223 for ac_header in heim_err.h
28225 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28227 echo "$as_me:$LINENO: checking for $ac_header" >&5
28228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28229 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28230 echo $ECHO_N "(cached) $ECHO_C" >&6
28232 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28233 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28235 # Is the header compilable?
28236 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28237 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28238 cat >conftest.$ac_ext <<_ACEOF
28241 cat confdefs.h >>conftest.$ac_ext
28242 cat >>conftest.$ac_ext <<_ACEOF
28243 /* end confdefs.h. */
28244 $ac_includes_default
28245 #include <$ac_header>
28247 rm -f conftest.$ac_objext
28248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28249 (eval $ac_compile) 2>conftest.er1
28251 grep -v '^ *+' conftest.er1 >conftest.err
28253 cat conftest.err >&5
28254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28255 (exit $ac_status); } &&
28256 { ac_try='test -z "$ac_c_werror_flag"
28257 || test ! -s conftest.err'
28258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28259 (eval $ac_try) 2>&5
28261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28262 (exit $ac_status); }; } &&
28263 { ac_try='test -s conftest.$ac_objext'
28264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28265 (eval $ac_try) 2>&5
28267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28268 (exit $ac_status); }; }; then
28269 ac_header_compiler=yes
28271 echo "$as_me: failed program was:" >&5
28272 sed 's/^/| /' conftest.$ac_ext >&5
28274 ac_header_compiler=no
28276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28277 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28278 echo "${ECHO_T}$ac_header_compiler" >&6
28280 # Is the header present?
28281 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28282 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28283 cat >conftest.$ac_ext <<_ACEOF
28286 cat confdefs.h >>conftest.$ac_ext
28287 cat >>conftest.$ac_ext <<_ACEOF
28288 /* end confdefs.h. */
28289 #include <$ac_header>
28291 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28292 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28294 grep -v '^ *+' conftest.er1 >conftest.err
28296 cat conftest.err >&5
28297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28298 (exit $ac_status); } >/dev/null; then
28299 if test -s conftest.err; then
28300 ac_cpp_err=$ac_c_preproc_warn_flag
28301 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28308 if test -z "$ac_cpp_err"; then
28309 ac_header_preproc=yes
28311 echo "$as_me: failed program was:" >&5
28312 sed 's/^/| /' conftest.$ac_ext >&5
28314 ac_header_preproc=no
28316 rm -f conftest.err conftest.$ac_ext
28317 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28318 echo "${ECHO_T}$ac_header_preproc" >&6
28320 # So? What about this header?
28321 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28323 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28324 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28326 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28327 ac_header_preproc=yes
28330 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28331 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28332 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28333 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28334 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28335 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28336 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28337 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28339 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28340 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28341 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28344 ## ------------------------------------------ ##
28345 ## Report this to the AC_PACKAGE_NAME lists. ##
28346 ## ------------------------------------------ ##
28349 sed "s/^/$as_me: WARNING: /" >&2
28352 echo "$as_me:$LINENO: checking for $ac_header" >&5
28353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28355 echo $ECHO_N "(cached) $ECHO_C" >&6
28357 eval "$as_ac_Header=\$ac_header_preproc"
28359 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28360 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28363 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28364 cat >>confdefs.h <<_ACEOF
28365 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28372 if test $ac_cv_header_heim_err_h = yes ; then
28378 if test $krb5_impl = mit; then
28379 echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
28380 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
28381 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
28382 echo $ECHO_N "(cached) $ECHO_C" >&6
28384 ac_check_lib_save_LIBS=$LIBS
28385 LIBS="-lk5crypto $LIBS"
28386 cat >conftest.$ac_ext <<_ACEOF
28389 cat confdefs.h >>conftest.$ac_ext
28390 cat >>conftest.$ac_ext <<_ACEOF
28391 /* end confdefs.h. */
28402 rm -f conftest.$ac_objext conftest$ac_exeext
28403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28404 (eval $ac_link) 2>conftest.er1
28406 grep -v '^ *+' conftest.er1 >conftest.err
28408 cat conftest.err >&5
28409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28410 (exit $ac_status); } &&
28411 { ac_try='test -z "$ac_c_werror_flag"
28412 || test ! -s conftest.err'
28413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28414 (eval $ac_try) 2>&5
28416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28417 (exit $ac_status); }; } &&
28418 { ac_try='test -s conftest$ac_exeext'
28419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28420 (eval $ac_try) 2>&5
28422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28423 (exit $ac_status); }; }; then
28424 ac_cv_lib_k5crypto_main=yes
28426 echo "$as_me: failed program was:" >&5
28427 sed 's/^/| /' conftest.$ac_ext >&5
28429 ac_cv_lib_k5crypto_main=no
28431 rm -f conftest.err conftest.$ac_objext \
28432 conftest$ac_exeext conftest.$ac_ext
28433 LIBS=$ac_check_lib_save_LIBS
28435 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
28436 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
28437 if test $ac_cv_lib_k5crypto_main = yes; then
28438 krb5crypto=k5crypto
28444 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
28445 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
28446 if test "${ac_cv_lib_krb5_main+set}" = set; then
28447 echo $ECHO_N "(cached) $ECHO_C" >&6
28449 ac_check_lib_save_LIBS=$LIBS
28450 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
28451 cat >conftest.$ac_ext <<_ACEOF
28454 cat confdefs.h >>conftest.$ac_ext
28455 cat >>conftest.$ac_ext <<_ACEOF
28456 /* end confdefs.h. */
28467 rm -f conftest.$ac_objext conftest$ac_exeext
28468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28469 (eval $ac_link) 2>conftest.er1
28471 grep -v '^ *+' conftest.er1 >conftest.err
28473 cat conftest.err >&5
28474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28475 (exit $ac_status); } &&
28476 { ac_try='test -z "$ac_c_werror_flag"
28477 || test ! -s conftest.err'
28478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28479 (eval $ac_try) 2>&5
28481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28482 (exit $ac_status); }; } &&
28483 { ac_try='test -s conftest$ac_exeext'
28484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28485 (eval $ac_try) 2>&5
28487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28488 (exit $ac_status); }; }; then
28489 ac_cv_lib_krb5_main=yes
28491 echo "$as_me: failed program was:" >&5
28492 sed 's/^/| /' conftest.$ac_ext >&5
28494 ac_cv_lib_krb5_main=no
28496 rm -f conftest.err conftest.$ac_objext \
28497 conftest$ac_exeext conftest.$ac_ext
28498 LIBS=$ac_check_lib_save_LIBS
28500 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
28501 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
28502 if test $ac_cv_lib_krb5_main = yes; then
28504 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
28510 elif test $krb5_impl = heimdal; then
28511 echo "$as_me:$LINENO: checking for main in -ldes" >&5
28512 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
28513 if test "${ac_cv_lib_des_main+set}" = set; then
28514 echo $ECHO_N "(cached) $ECHO_C" >&6
28516 ac_check_lib_save_LIBS=$LIBS
28518 cat >conftest.$ac_ext <<_ACEOF
28521 cat confdefs.h >>conftest.$ac_ext
28522 cat >>conftest.$ac_ext <<_ACEOF
28523 /* end confdefs.h. */
28534 rm -f conftest.$ac_objext conftest$ac_exeext
28535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28536 (eval $ac_link) 2>conftest.er1
28538 grep -v '^ *+' conftest.er1 >conftest.err
28540 cat conftest.err >&5
28541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28542 (exit $ac_status); } &&
28543 { ac_try='test -z "$ac_c_werror_flag"
28544 || test ! -s conftest.err'
28545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28546 (eval $ac_try) 2>&5
28548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28549 (exit $ac_status); }; } &&
28550 { ac_try='test -s conftest$ac_exeext'
28551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28552 (eval $ac_try) 2>&5
28554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28555 (exit $ac_status); }; }; then
28556 ac_cv_lib_des_main=yes
28558 echo "$as_me: failed program was:" >&5
28559 sed 's/^/| /' conftest.$ac_ext >&5
28561 ac_cv_lib_des_main=no
28563 rm -f conftest.err conftest.$ac_objext \
28564 conftest$ac_exeext conftest.$ac_ext
28565 LIBS=$ac_check_lib_save_LIBS
28567 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
28568 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
28569 if test $ac_cv_lib_des_main = yes; then
28576 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
28577 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
28578 if test "${ac_cv_lib_krb5_main+set}" = set; then
28579 echo $ECHO_N "(cached) $ECHO_C" >&6
28581 ac_check_lib_save_LIBS=$LIBS
28582 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
28583 cat >conftest.$ac_ext <<_ACEOF
28586 cat confdefs.h >>conftest.$ac_ext
28587 cat >>conftest.$ac_ext <<_ACEOF
28588 /* end confdefs.h. */
28599 rm -f conftest.$ac_objext conftest$ac_exeext
28600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28601 (eval $ac_link) 2>conftest.er1
28603 grep -v '^ *+' conftest.er1 >conftest.err
28605 cat conftest.err >&5
28606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28607 (exit $ac_status); } &&
28608 { ac_try='test -z "$ac_c_werror_flag"
28609 || test ! -s conftest.err'
28610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28611 (eval $ac_try) 2>&5
28613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28614 (exit $ac_status); }; } &&
28615 { ac_try='test -s conftest$ac_exeext'
28616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28617 (eval $ac_try) 2>&5
28619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28620 (exit $ac_status); }; }; then
28621 ac_cv_lib_krb5_main=yes
28623 echo "$as_me: failed program was:" >&5
28624 sed 's/^/| /' conftest.$ac_ext >&5
28626 ac_cv_lib_krb5_main=no
28628 rm -f conftest.err conftest.$ac_objext \
28629 conftest$ac_exeext conftest.$ac_ext
28630 LIBS=$ac_check_lib_save_LIBS
28632 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
28633 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
28634 if test $ac_cv_lib_krb5_main = yes; then
28636 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
28643 cat >>confdefs.h <<\_ACEOF
28644 #define HAVE_HEIMDAL_KERBEROS 1
28650 { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
28651 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
28654 if test $have_krb5 = yes ; then
28658 cat >>confdefs.h <<\_ACEOF
28659 #define HAVE_KRB5 1
28663 if test $ol_with_kerberos = k5only ; then
28664 ol_with_kerberos=found
28667 elif test $ol_with_kerberos != auto ; then
28668 { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
28669 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
28670 { (exit 1); exit 1; }; }
28676 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
28677 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
28681 for ac_header in kerberosIV/krb.h kerberosIV/des.h
28683 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28684 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28685 echo "$as_me:$LINENO: checking for $ac_header" >&5
28686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28688 echo $ECHO_N "(cached) $ECHO_C" >&6
28690 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28691 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28693 # Is the header compilable?
28694 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28695 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28696 cat >conftest.$ac_ext <<_ACEOF
28699 cat confdefs.h >>conftest.$ac_ext
28700 cat >>conftest.$ac_ext <<_ACEOF
28701 /* end confdefs.h. */
28702 $ac_includes_default
28703 #include <$ac_header>
28705 rm -f conftest.$ac_objext
28706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28707 (eval $ac_compile) 2>conftest.er1
28709 grep -v '^ *+' conftest.er1 >conftest.err
28711 cat conftest.err >&5
28712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28713 (exit $ac_status); } &&
28714 { ac_try='test -z "$ac_c_werror_flag"
28715 || test ! -s conftest.err'
28716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28717 (eval $ac_try) 2>&5
28719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28720 (exit $ac_status); }; } &&
28721 { ac_try='test -s conftest.$ac_objext'
28722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28723 (eval $ac_try) 2>&5
28725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28726 (exit $ac_status); }; }; then
28727 ac_header_compiler=yes
28729 echo "$as_me: failed program was:" >&5
28730 sed 's/^/| /' conftest.$ac_ext >&5
28732 ac_header_compiler=no
28734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28735 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28736 echo "${ECHO_T}$ac_header_compiler" >&6
28738 # Is the header present?
28739 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28740 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28741 cat >conftest.$ac_ext <<_ACEOF
28744 cat confdefs.h >>conftest.$ac_ext
28745 cat >>conftest.$ac_ext <<_ACEOF
28746 /* end confdefs.h. */
28747 #include <$ac_header>
28749 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28750 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28752 grep -v '^ *+' conftest.er1 >conftest.err
28754 cat conftest.err >&5
28755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28756 (exit $ac_status); } >/dev/null; then
28757 if test -s conftest.err; then
28758 ac_cpp_err=$ac_c_preproc_warn_flag
28759 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28766 if test -z "$ac_cpp_err"; then
28767 ac_header_preproc=yes
28769 echo "$as_me: failed program was:" >&5
28770 sed 's/^/| /' conftest.$ac_ext >&5
28772 ac_header_preproc=no
28774 rm -f conftest.err conftest.$ac_ext
28775 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28776 echo "${ECHO_T}$ac_header_preproc" >&6
28778 # So? What about this header?
28779 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28781 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28782 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28783 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28784 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28785 ac_header_preproc=yes
28788 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28789 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28790 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28791 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28792 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28793 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28794 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28795 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28796 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28797 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28798 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28799 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28802 ## ------------------------------------------ ##
28803 ## Report this to the AC_PACKAGE_NAME lists. ##
28804 ## ------------------------------------------ ##
28807 sed "s/^/$as_me: WARNING: /" >&2
28810 echo "$as_me:$LINENO: checking for $ac_header" >&5
28811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28813 echo $ECHO_N "(cached) $ECHO_C" >&6
28815 eval "$as_ac_Header=\$ac_header_preproc"
28817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28818 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28821 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28822 cat >>confdefs.h <<_ACEOF
28823 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28831 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
28832 if test $krb5_impl = mit; then
28833 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
28834 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
28835 if test "${ac_cv_lib_krb4_main+set}" = set; then
28836 echo $ECHO_N "(cached) $ECHO_C" >&6
28838 ac_check_lib_save_LIBS=$LIBS
28839 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
28840 cat >conftest.$ac_ext <<_ACEOF
28843 cat confdefs.h >>conftest.$ac_ext
28844 cat >>conftest.$ac_ext <<_ACEOF
28845 /* end confdefs.h. */
28856 rm -f conftest.$ac_objext conftest$ac_exeext
28857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28858 (eval $ac_link) 2>conftest.er1
28860 grep -v '^ *+' conftest.er1 >conftest.err
28862 cat conftest.err >&5
28863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28864 (exit $ac_status); } &&
28865 { ac_try='test -z "$ac_c_werror_flag"
28866 || test ! -s conftest.err'
28867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28868 (eval $ac_try) 2>&5
28870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28871 (exit $ac_status); }; } &&
28872 { ac_try='test -s conftest$ac_exeext'
28873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28874 (eval $ac_try) 2>&5
28876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28877 (exit $ac_status); }; }; then
28878 ac_cv_lib_krb4_main=yes
28880 echo "$as_me: failed program was:" >&5
28881 sed 's/^/| /' conftest.$ac_ext >&5
28883 ac_cv_lib_krb4_main=no
28885 rm -f conftest.err conftest.$ac_objext \
28886 conftest$ac_exeext conftest.$ac_ext
28887 LIBS=$ac_check_lib_save_LIBS
28889 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
28890 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
28891 if test $ac_cv_lib_krb4_main = yes; then
28893 KRB4_LIBS="-lkrb4 -ldes425"
28899 elif test $krb5_impl = heimdal; then
28900 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
28901 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
28902 if test "${ac_cv_lib_krb4_main+set}" = set; then
28903 echo $ECHO_N "(cached) $ECHO_C" >&6
28905 ac_check_lib_save_LIBS=$LIBS
28906 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
28907 cat >conftest.$ac_ext <<_ACEOF
28910 cat confdefs.h >>conftest.$ac_ext
28911 cat >>conftest.$ac_ext <<_ACEOF
28912 /* end confdefs.h. */
28923 rm -f conftest.$ac_objext conftest$ac_exeext
28924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28925 (eval $ac_link) 2>conftest.er1
28927 grep -v '^ *+' conftest.er1 >conftest.err
28929 cat conftest.err >&5
28930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28931 (exit $ac_status); } &&
28932 { ac_try='test -z "$ac_c_werror_flag"
28933 || test ! -s conftest.err'
28934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28935 (eval $ac_try) 2>&5
28937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28938 (exit $ac_status); }; } &&
28939 { ac_try='test -s conftest$ac_exeext'
28940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28941 (eval $ac_try) 2>&5
28943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28944 (exit $ac_status); }; }; then
28945 ac_cv_lib_krb4_main=yes
28947 echo "$as_me: failed program was:" >&5
28948 sed 's/^/| /' conftest.$ac_ext >&5
28950 ac_cv_lib_krb4_main=no
28952 rm -f conftest.err conftest.$ac_objext \
28953 conftest$ac_exeext conftest.$ac_ext
28954 LIBS=$ac_check_lib_save_LIBS
28956 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
28957 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
28958 if test $ac_cv_lib_krb4_main = yes; then
28968 { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
28969 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
28972 if test $have_k425 = yes ; then
28973 ol_with_kerberos=found
28977 cat >>confdefs.h <<\_ACEOF
28978 #define HAVE_KRB425 1
28982 cat >>confdefs.h <<\_ACEOF
28983 #define HAVE_KRB4 1
28987 echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
28988 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
28989 if test "${ol_cv_var_des_debug+set}" = set; then
28990 echo $ECHO_N "(cached) $ECHO_C" >&6
28994 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
28995 cat >conftest.$ac_ext <<_ACEOF
28998 cat confdefs.h >>conftest.$ac_ext
28999 cat >>conftest.$ac_ext <<_ACEOF
29000 /* end confdefs.h. */
29002 #include <kerberosIV/krb.h>
29003 #include <kerberosIV/des.h>
29004 extern int des_debug;
29016 rm -f conftest.$ac_objext conftest$ac_exeext
29017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29018 (eval $ac_link) 2>conftest.er1
29020 grep -v '^ *+' conftest.er1 >conftest.err
29022 cat conftest.err >&5
29023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29024 (exit $ac_status); } &&
29025 { ac_try='test -z "$ac_c_werror_flag"
29026 || test ! -s conftest.err'
29027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29028 (eval $ac_try) 2>&5
29030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29031 (exit $ac_status); }; } &&
29032 { ac_try='test -s conftest$ac_exeext'
29033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29034 (eval $ac_try) 2>&5
29036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29037 (exit $ac_status); }; }; then
29038 ol_cv_var_des_debug=yes
29040 echo "$as_me: failed program was:" >&5
29041 sed 's/^/| /' conftest.$ac_ext >&5
29043 ol_cv_var_des_debug=no
29045 rm -f conftest.err conftest.$ac_objext \
29046 conftest$ac_exeext conftest.$ac_ext
29050 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
29051 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
29053 if test $ol_cv_var_des_debug = yes ; then
29055 cat >>confdefs.h <<\_ACEOF
29056 #define HAVE_DES_DEBUG 1
29066 if test $ol_link_krb5 = yes ; then
29067 ol_with_kerberos=found
29070 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
29071 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
29076 for ac_header in krb.h des.h krb-archaeology.h
29078 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29079 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29080 echo "$as_me:$LINENO: checking for $ac_header" >&5
29081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29082 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29083 echo $ECHO_N "(cached) $ECHO_C" >&6
29085 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29086 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29088 # Is the header compilable?
29089 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29090 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29091 cat >conftest.$ac_ext <<_ACEOF
29094 cat confdefs.h >>conftest.$ac_ext
29095 cat >>conftest.$ac_ext <<_ACEOF
29096 /* end confdefs.h. */
29097 $ac_includes_default
29098 #include <$ac_header>
29100 rm -f conftest.$ac_objext
29101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29102 (eval $ac_compile) 2>conftest.er1
29104 grep -v '^ *+' conftest.er1 >conftest.err
29106 cat conftest.err >&5
29107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29108 (exit $ac_status); } &&
29109 { ac_try='test -z "$ac_c_werror_flag"
29110 || test ! -s conftest.err'
29111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29112 (eval $ac_try) 2>&5
29114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29115 (exit $ac_status); }; } &&
29116 { ac_try='test -s conftest.$ac_objext'
29117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29118 (eval $ac_try) 2>&5
29120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29121 (exit $ac_status); }; }; then
29122 ac_header_compiler=yes
29124 echo "$as_me: failed program was:" >&5
29125 sed 's/^/| /' conftest.$ac_ext >&5
29127 ac_header_compiler=no
29129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29130 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29131 echo "${ECHO_T}$ac_header_compiler" >&6
29133 # Is the header present?
29134 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29135 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29136 cat >conftest.$ac_ext <<_ACEOF
29139 cat confdefs.h >>conftest.$ac_ext
29140 cat >>conftest.$ac_ext <<_ACEOF
29141 /* end confdefs.h. */
29142 #include <$ac_header>
29144 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29145 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29147 grep -v '^ *+' conftest.er1 >conftest.err
29149 cat conftest.err >&5
29150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29151 (exit $ac_status); } >/dev/null; then
29152 if test -s conftest.err; then
29153 ac_cpp_err=$ac_c_preproc_warn_flag
29154 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29161 if test -z "$ac_cpp_err"; then
29162 ac_header_preproc=yes
29164 echo "$as_me: failed program was:" >&5
29165 sed 's/^/| /' conftest.$ac_ext >&5
29167 ac_header_preproc=no
29169 rm -f conftest.err conftest.$ac_ext
29170 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29171 echo "${ECHO_T}$ac_header_preproc" >&6
29173 # So? What about this header?
29174 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29176 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29177 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29179 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29180 ac_header_preproc=yes
29183 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29184 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29185 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29186 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29187 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29188 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29189 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29190 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29192 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29193 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29194 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29197 ## ------------------------------------------ ##
29198 ## Report this to the AC_PACKAGE_NAME lists. ##
29199 ## ------------------------------------------ ##
29202 sed "s/^/$as_me: WARNING: /" >&2
29205 echo "$as_me:$LINENO: checking for $ac_header" >&5
29206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29207 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29208 echo $ECHO_N "(cached) $ECHO_C" >&6
29210 eval "$as_ac_Header=\$ac_header_preproc"
29212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29213 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29216 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29217 cat >>confdefs.h <<_ACEOF
29218 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29226 if test $ac_cv_header_krb_h = yes ; then
29227 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
29228 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
29229 if test "${ac_cv_lib_krb_main+set}" = set; then
29230 echo $ECHO_N "(cached) $ECHO_C" >&6
29232 ac_check_lib_save_LIBS=$LIBS
29233 LIBS="-lkrb -ldes $LIBS"
29234 cat >conftest.$ac_ext <<_ACEOF
29237 cat confdefs.h >>conftest.$ac_ext
29238 cat >>conftest.$ac_ext <<_ACEOF
29239 /* end confdefs.h. */
29250 rm -f conftest.$ac_objext conftest$ac_exeext
29251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29252 (eval $ac_link) 2>conftest.er1
29254 grep -v '^ *+' conftest.er1 >conftest.err
29256 cat conftest.err >&5
29257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29258 (exit $ac_status); } &&
29259 { ac_try='test -z "$ac_c_werror_flag"
29260 || test ! -s conftest.err'
29261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29262 (eval $ac_try) 2>&5
29264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29265 (exit $ac_status); }; } &&
29266 { ac_try='test -s conftest$ac_exeext'
29267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29268 (eval $ac_try) 2>&5
29270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29271 (exit $ac_status); }; }; then
29272 ac_cv_lib_krb_main=yes
29274 echo "$as_me: failed program was:" >&5
29275 sed 's/^/| /' conftest.$ac_ext >&5
29277 ac_cv_lib_krb_main=no
29279 rm -f conftest.err conftest.$ac_objext \
29280 conftest$ac_exeext conftest.$ac_ext
29281 LIBS=$ac_check_lib_save_LIBS
29283 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
29284 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
29285 if test $ac_cv_lib_krb_main = yes; then
29292 if test $have_k4 = yes ; then
29293 ol_with_kerberos=found
29297 cat >>confdefs.h <<\_ACEOF
29298 #define HAVE_KRB4 1
29302 KRB4_LIBS="-lkrb -ldes"
29304 if test $ac_cv_header_krb_archaeology_h = yes ; then
29306 cat >>confdefs.h <<\_ACEOF
29307 #define HAVE_KTH_KERBEROS 1
29315 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
29318 elif test $ol_enable_kbind = yes ; then
29319 { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
29320 echo "$as_me: error: Kerberos IV detection failed" >&2;}
29321 { (exit 1); exit 1; }; }
29324 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
29326 cat >>confdefs.h <<\_ACEOF
29327 #define HAVE_KERBEROS 1
29331 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
29332 { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
29333 echo "$as_me: error: Kerberos detection failed" >&2;}
29334 { (exit 1); exit 1; }; }
29339 if test $ol_with_tls != no ; then
29342 for ac_header in openssl/ssl.h ssl.h
29344 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29345 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29346 echo "$as_me:$LINENO: checking for $ac_header" >&5
29347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29349 echo $ECHO_N "(cached) $ECHO_C" >&6
29351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29352 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29354 # Is the header compilable?
29355 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29356 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29357 cat >conftest.$ac_ext <<_ACEOF
29360 cat confdefs.h >>conftest.$ac_ext
29361 cat >>conftest.$ac_ext <<_ACEOF
29362 /* end confdefs.h. */
29363 $ac_includes_default
29364 #include <$ac_header>
29366 rm -f conftest.$ac_objext
29367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29368 (eval $ac_compile) 2>conftest.er1
29370 grep -v '^ *+' conftest.er1 >conftest.err
29372 cat conftest.err >&5
29373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29374 (exit $ac_status); } &&
29375 { ac_try='test -z "$ac_c_werror_flag"
29376 || test ! -s conftest.err'
29377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29378 (eval $ac_try) 2>&5
29380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29381 (exit $ac_status); }; } &&
29382 { ac_try='test -s conftest.$ac_objext'
29383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29384 (eval $ac_try) 2>&5
29386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29387 (exit $ac_status); }; }; then
29388 ac_header_compiler=yes
29390 echo "$as_me: failed program was:" >&5
29391 sed 's/^/| /' conftest.$ac_ext >&5
29393 ac_header_compiler=no
29395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29396 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29397 echo "${ECHO_T}$ac_header_compiler" >&6
29399 # Is the header present?
29400 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29401 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29402 cat >conftest.$ac_ext <<_ACEOF
29405 cat confdefs.h >>conftest.$ac_ext
29406 cat >>conftest.$ac_ext <<_ACEOF
29407 /* end confdefs.h. */
29408 #include <$ac_header>
29410 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29411 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29413 grep -v '^ *+' conftest.er1 >conftest.err
29415 cat conftest.err >&5
29416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29417 (exit $ac_status); } >/dev/null; then
29418 if test -s conftest.err; then
29419 ac_cpp_err=$ac_c_preproc_warn_flag
29420 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29427 if test -z "$ac_cpp_err"; then
29428 ac_header_preproc=yes
29430 echo "$as_me: failed program was:" >&5
29431 sed 's/^/| /' conftest.$ac_ext >&5
29433 ac_header_preproc=no
29435 rm -f conftest.err conftest.$ac_ext
29436 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29437 echo "${ECHO_T}$ac_header_preproc" >&6
29439 # So? What about this header?
29440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29442 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29443 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29445 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29446 ac_header_preproc=yes
29449 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29450 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29451 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29452 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29453 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29454 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29455 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29456 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29458 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29459 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29460 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29463 ## ------------------------------------------ ##
29464 ## Report this to the AC_PACKAGE_NAME lists. ##
29465 ## ------------------------------------------ ##
29468 sed "s/^/$as_me: WARNING: /" >&2
29471 echo "$as_me:$LINENO: checking for $ac_header" >&5
29472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29474 echo $ECHO_N "(cached) $ECHO_C" >&6
29476 eval "$as_ac_Header=\$ac_header_preproc"
29478 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29479 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29483 cat >>confdefs.h <<_ACEOF
29484 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29492 if test $ac_cv_header_openssl_ssl_h = yes \
29493 -o $ac_cv_header_ssl_h = yes ; then
29494 echo "$as_me:$LINENO: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
29495 echo $ECHO_N "checking for SSLeay_add_ssl_algorithms in -lssl... $ECHO_C" >&6
29496 if test "${ac_cv_lib_ssl_SSLeay_add_ssl_algorithms+set}" = set; then
29497 echo $ECHO_N "(cached) $ECHO_C" >&6
29499 ac_check_lib_save_LIBS=$LIBS
29500 LIBS="-lssl -lcrypto $LIBS"
29501 cat >conftest.$ac_ext <<_ACEOF
29504 cat confdefs.h >>conftest.$ac_ext
29505 cat >>conftest.$ac_ext <<_ACEOF
29506 /* end confdefs.h. */
29508 /* Override any gcc2 internal prototype to avoid an error. */
29512 /* We use char because int might match the return type of a gcc2
29513 builtin and then its argument prototype would still apply. */
29514 char SSLeay_add_ssl_algorithms ();
29518 SSLeay_add_ssl_algorithms ();
29523 rm -f conftest.$ac_objext conftest$ac_exeext
29524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29525 (eval $ac_link) 2>conftest.er1
29527 grep -v '^ *+' conftest.er1 >conftest.err
29529 cat conftest.err >&5
29530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29531 (exit $ac_status); } &&
29532 { ac_try='test -z "$ac_c_werror_flag"
29533 || test ! -s conftest.err'
29534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29535 (eval $ac_try) 2>&5
29537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29538 (exit $ac_status); }; } &&
29539 { ac_try='test -s conftest$ac_exeext'
29540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29541 (eval $ac_try) 2>&5
29543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29544 (exit $ac_status); }; }; then
29545 ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=yes
29547 echo "$as_me: failed program was:" >&5
29548 sed 's/^/| /' conftest.$ac_ext >&5
29550 ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=no
29552 rm -f conftest.err conftest.$ac_objext \
29553 conftest$ac_exeext conftest.$ac_ext
29554 LIBS=$ac_check_lib_save_LIBS
29556 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&5
29557 echo "${ECHO_T}$ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&6
29558 if test $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms = yes; then
29566 if test $have_ssleay = no ; then
29567 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
29568 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
29569 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
29570 echo $ECHO_N "(cached) $ECHO_C" >&6
29572 ac_check_lib_save_LIBS=$LIBS
29573 LIBS="-lssl -lcrypto $LIBS"
29574 cat >conftest.$ac_ext <<_ACEOF
29577 cat confdefs.h >>conftest.$ac_ext
29578 cat >>conftest.$ac_ext <<_ACEOF
29579 /* end confdefs.h. */
29581 /* Override any gcc2 internal prototype to avoid an error. */
29585 /* We use char because int might match the return type of a gcc2
29586 builtin and then its argument prototype would still apply. */
29587 char SSL_library_init ();
29591 SSL_library_init ();
29596 rm -f conftest.$ac_objext conftest$ac_exeext
29597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29598 (eval $ac_link) 2>conftest.er1
29600 grep -v '^ *+' conftest.er1 >conftest.err
29602 cat conftest.err >&5
29603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29604 (exit $ac_status); } &&
29605 { ac_try='test -z "$ac_c_werror_flag"
29606 || test ! -s conftest.err'
29607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29608 (eval $ac_try) 2>&5
29610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29611 (exit $ac_status); }; } &&
29612 { ac_try='test -s conftest$ac_exeext'
29613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29614 (eval $ac_try) 2>&5
29616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29617 (exit $ac_status); }; }; then
29618 ac_cv_lib_ssl_SSL_library_init=yes
29620 echo "$as_me: failed program was:" >&5
29621 sed 's/^/| /' conftest.$ac_ext >&5
29623 ac_cv_lib_ssl_SSL_library_init=no
29625 rm -f conftest.err conftest.$ac_objext \
29626 conftest$ac_exeext conftest.$ac_ext
29627 LIBS=$ac_check_lib_save_LIBS
29629 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
29630 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
29631 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
29640 if test $have_ssleay = no ; then
29641 echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
29642 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
29643 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
29644 echo $ECHO_N "(cached) $ECHO_C" >&6
29646 ac_check_lib_save_LIBS=$LIBS
29647 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
29648 cat >conftest.$ac_ext <<_ACEOF
29651 cat confdefs.h >>conftest.$ac_ext
29652 cat >>conftest.$ac_ext <<_ACEOF
29653 /* end confdefs.h. */
29655 /* Override any gcc2 internal prototype to avoid an error. */
29659 /* We use char because int might match the return type of a gcc2
29660 builtin and then its argument prototype would still apply. */
29661 char ssl3_accept ();
29670 rm -f conftest.$ac_objext conftest$ac_exeext
29671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29672 (eval $ac_link) 2>conftest.er1
29674 grep -v '^ *+' conftest.er1 >conftest.err
29676 cat conftest.err >&5
29677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29678 (exit $ac_status); } &&
29679 { ac_try='test -z "$ac_c_werror_flag"
29680 || test ! -s conftest.err'
29681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29682 (eval $ac_try) 2>&5
29684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29685 (exit $ac_status); }; } &&
29686 { ac_try='test -s conftest$ac_exeext'
29687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29688 (eval $ac_try) 2>&5
29690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29691 (exit $ac_status); }; }; then
29692 ac_cv_lib_ssl_ssl3_accept=yes
29694 echo "$as_me: failed program was:" >&5
29695 sed 's/^/| /' conftest.$ac_ext >&5
29697 ac_cv_lib_ssl_ssl3_accept=no
29699 rm -f conftest.err conftest.$ac_objext \
29700 conftest$ac_exeext conftest.$ac_ext
29701 LIBS=$ac_check_lib_save_LIBS
29703 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
29704 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
29705 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
29714 if test $have_ssleay = yes ; then
29719 cat >>confdefs.h <<\_ACEOF
29720 #define HAVE_SSLEAY 1
29724 if test $need_rsaref = yes; then
29726 cat >>confdefs.h <<\_ACEOF
29727 #define HAVE_RSAREF 1
29731 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
29733 TLS_LIBS="-lssl -lcrypto"
29736 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
29737 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
29738 if test "${ol_cv_ssl_crl_compat+set}" = set; then
29739 echo $ECHO_N "(cached) $ECHO_C" >&6
29742 cat >conftest.$ac_ext <<_ACEOF
29745 cat confdefs.h >>conftest.$ac_ext
29746 cat >>conftest.$ac_ext <<_ACEOF
29747 /* end confdefs.h. */
29749 #ifdef HAVE_OPENSSL_SSL_H
29750 #include <openssl/ssl.h>
29755 /* Require 0.9.7d+ */
29756 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
29757 char *__ssl_compat = "0.9.7d";
29761 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29762 $EGREP "__ssl_compat" >/dev/null 2>&1; then
29763 ol_cv_ssl_crl_compat=yes
29765 ol_cv_ssl_crl_compat=no
29770 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
29771 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
29773 if test $ol_cv_ssl_crl_compat = no ; then
29777 cat >>confdefs.h <<\_ACEOF
29778 #define HAVE_OPENSSL_CRL 1
29785 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
29786 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
29790 if test $ol_link_tls = yes ; then
29792 cat >>confdefs.h <<\_ACEOF
29798 elif test $ol_with_tls = auto ; then
29799 { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
29800 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
29801 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
29802 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
29804 elif test $ol_with_tls != no ; then
29805 { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
29806 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
29807 { (exit 1); exit 1; }; }
29810 if test $ol_enable_lmpasswd != no; then
29811 if test $ol_link_tls != yes ; then
29812 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
29813 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
29814 { (exit 1); exit 1; }; }
29818 cat >>confdefs.h <<\_ACEOF
29819 #define SLAPD_LMHASH 1
29826 if test $ol_with_threads = auto -o $ol_with_threads = yes \
29827 -o $ol_with_threads = nt ; then
29830 echo "$as_me:$LINENO: checking for _beginthread" >&5
29831 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
29832 if test "${ac_cv_func__beginthread+set}" = set; then
29833 echo $ECHO_N "(cached) $ECHO_C" >&6
29835 cat >conftest.$ac_ext <<_ACEOF
29838 cat confdefs.h >>conftest.$ac_ext
29839 cat >>conftest.$ac_ext <<_ACEOF
29840 /* end confdefs.h. */
29841 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
29842 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29843 #define _beginthread innocuous__beginthread
29845 /* System header to define __stub macros and hopefully few prototypes,
29846 which can conflict with char _beginthread (); below.
29847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29848 <limits.h> exists even on freestanding compilers. */
29851 # include <limits.h>
29853 # include <assert.h>
29856 #undef _beginthread
29858 /* Override any gcc2 internal prototype to avoid an error. */
29863 /* We use char because int might match the return type of a gcc2
29864 builtin and then its argument prototype would still apply. */
29865 char _beginthread ();
29866 /* The GNU C library defines this for functions which it implements
29867 to always fail with ENOSYS. Some functions are actually named
29868 something starting with __ and the normal name is an alias. */
29869 #if defined (__stub__beginthread) || defined (__stub____beginthread)
29872 char (*f) () = _beginthread;
29881 return f != _beginthread;
29886 rm -f conftest.$ac_objext conftest$ac_exeext
29887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29888 (eval $ac_link) 2>conftest.er1
29890 grep -v '^ *+' conftest.er1 >conftest.err
29892 cat conftest.err >&5
29893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29894 (exit $ac_status); } &&
29895 { ac_try='test -z "$ac_c_werror_flag"
29896 || test ! -s conftest.err'
29897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29898 (eval $ac_try) 2>&5
29900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29901 (exit $ac_status); }; } &&
29902 { ac_try='test -s conftest$ac_exeext'
29903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29904 (eval $ac_try) 2>&5
29906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29907 (exit $ac_status); }; }; then
29908 ac_cv_func__beginthread=yes
29910 echo "$as_me: failed program was:" >&5
29911 sed 's/^/| /' conftest.$ac_ext >&5
29913 ac_cv_func__beginthread=no
29915 rm -f conftest.err conftest.$ac_objext \
29916 conftest$ac_exeext conftest.$ac_ext
29918 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
29919 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
29922 if test $ac_cv_func__beginthread = yes ; then
29924 cat >>confdefs.h <<\_ACEOF
29925 #define HAVE_NT_THREADS 1
29928 ol_cv_nt_threads=yes
29932 if test "$ol_cv_nt_threads" = yes ; then
29934 ol_with_threads=found
29935 ol_with_yielding_select=yes
29938 cat >>confdefs.h <<\_ACEOF
29939 #define HAVE_NT_SERVICE_MANAGER 1
29943 cat >>confdefs.h <<\_ACEOF
29944 #define HAVE_NT_EVENT_LOG 1
29949 if test $ol_with_threads = nt ; then
29950 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
29951 echo "$as_me: error: could not locate NT Threads" >&2;}
29952 { (exit 1); exit 1; }; }
29956 if test $ol_with_threads = auto -o $ol_with_threads = yes \
29957 -o $ol_with_threads = posix ; then
29960 for ac_header in pthread.h
29962 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29964 echo "$as_me:$LINENO: checking for $ac_header" >&5
29965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29967 echo $ECHO_N "(cached) $ECHO_C" >&6
29969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29970 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29972 # Is the header compilable?
29973 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29974 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29975 cat >conftest.$ac_ext <<_ACEOF
29978 cat confdefs.h >>conftest.$ac_ext
29979 cat >>conftest.$ac_ext <<_ACEOF
29980 /* end confdefs.h. */
29981 $ac_includes_default
29982 #include <$ac_header>
29984 rm -f conftest.$ac_objext
29985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29986 (eval $ac_compile) 2>conftest.er1
29988 grep -v '^ *+' conftest.er1 >conftest.err
29990 cat conftest.err >&5
29991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29992 (exit $ac_status); } &&
29993 { ac_try='test -z "$ac_c_werror_flag"
29994 || test ! -s conftest.err'
29995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29996 (eval $ac_try) 2>&5
29998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29999 (exit $ac_status); }; } &&
30000 { ac_try='test -s conftest.$ac_objext'
30001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30002 (eval $ac_try) 2>&5
30004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30005 (exit $ac_status); }; }; then
30006 ac_header_compiler=yes
30008 echo "$as_me: failed program was:" >&5
30009 sed 's/^/| /' conftest.$ac_ext >&5
30011 ac_header_compiler=no
30013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30014 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30015 echo "${ECHO_T}$ac_header_compiler" >&6
30017 # Is the header present?
30018 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30019 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30020 cat >conftest.$ac_ext <<_ACEOF
30023 cat confdefs.h >>conftest.$ac_ext
30024 cat >>conftest.$ac_ext <<_ACEOF
30025 /* end confdefs.h. */
30026 #include <$ac_header>
30028 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30029 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30031 grep -v '^ *+' conftest.er1 >conftest.err
30033 cat conftest.err >&5
30034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30035 (exit $ac_status); } >/dev/null; then
30036 if test -s conftest.err; then
30037 ac_cpp_err=$ac_c_preproc_warn_flag
30038 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30045 if test -z "$ac_cpp_err"; then
30046 ac_header_preproc=yes
30048 echo "$as_me: failed program was:" >&5
30049 sed 's/^/| /' conftest.$ac_ext >&5
30051 ac_header_preproc=no
30053 rm -f conftest.err conftest.$ac_ext
30054 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30055 echo "${ECHO_T}$ac_header_preproc" >&6
30057 # So? What about this header?
30058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30060 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30061 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30063 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30064 ac_header_preproc=yes
30067 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30068 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30069 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30070 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30071 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30072 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30073 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30074 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30076 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30077 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30078 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30081 ## ------------------------------------------ ##
30082 ## Report this to the AC_PACKAGE_NAME lists. ##
30083 ## ------------------------------------------ ##
30086 sed "s/^/$as_me: WARNING: /" >&2
30089 echo "$as_me:$LINENO: checking for $ac_header" >&5
30090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30092 echo $ECHO_N "(cached) $ECHO_C" >&6
30094 eval "$as_ac_Header=\$ac_header_preproc"
30096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30097 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30100 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30101 cat >>confdefs.h <<_ACEOF
30102 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30110 if test $ac_cv_header_pthread_h = yes ; then
30111 echo "$as_me:$LINENO: checking POSIX thread version" >&5
30112 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
30113 if test "${ol_cv_pthread_version+set}" = set; then
30114 echo $ECHO_N "(cached) $ECHO_C" >&6
30117 cat >conftest.$ac_ext <<_ACEOF
30120 cat confdefs.h >>conftest.$ac_ext
30121 cat >>conftest.$ac_ext <<_ACEOF
30122 /* end confdefs.h. */
30124 # include <pthread.h>
30130 int i = PTHREAD_CREATE_JOINABLE;
30136 rm -f conftest.$ac_objext
30137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30138 (eval $ac_compile) 2>conftest.er1
30140 grep -v '^ *+' conftest.er1 >conftest.err
30142 cat conftest.err >&5
30143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30144 (exit $ac_status); } &&
30145 { ac_try='test -z "$ac_c_werror_flag"
30146 || test ! -s conftest.err'
30147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30148 (eval $ac_try) 2>&5
30150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30151 (exit $ac_status); }; } &&
30152 { ac_try='test -s conftest.$ac_objext'
30153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30154 (eval $ac_try) 2>&5
30156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30157 (exit $ac_status); }; }; then
30159 cat >conftest.$ac_ext <<_ACEOF
30162 cat confdefs.h >>conftest.$ac_ext
30163 cat >>conftest.$ac_ext <<_ACEOF
30164 /* end confdefs.h. */
30165 #include <pthread.h>
30168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30169 $EGREP "pthread_detach" >/dev/null 2>&1; then
30170 ol_cv_pthread_version=10
30172 ol_cv_pthread_version=8
30177 echo "$as_me: failed program was:" >&5
30178 sed 's/^/| /' conftest.$ac_ext >&5
30181 cat >conftest.$ac_ext <<_ACEOF
30184 cat confdefs.h >>conftest.$ac_ext
30185 cat >>conftest.$ac_ext <<_ACEOF
30186 /* end confdefs.h. */
30188 # include <pthread.h>
30189 # ifdef PTHREAD_CREATE_UNDETACHED
30194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30195 $EGREP "draft7" >/dev/null 2>&1; then
30196 ol_cv_pthread_version=7
30199 cat >conftest.$ac_ext <<_ACEOF
30202 cat confdefs.h >>conftest.$ac_ext
30203 cat >>conftest.$ac_ext <<_ACEOF
30204 /* end confdefs.h. */
30205 #include <pthread.h>
30208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30209 $EGREP "pthread_attr_init" >/dev/null 2>&1; then
30210 ol_cv_pthread_version=6
30213 cat >conftest.$ac_ext <<_ACEOF
30216 cat confdefs.h >>conftest.$ac_ext
30217 cat >>conftest.$ac_ext <<_ACEOF
30218 /* end confdefs.h. */
30220 # include <pthread.h>
30221 #ifdef PTHREAD_MUTEX_INITIALIZER
30226 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30227 $EGREP "draft5" >/dev/null 2>&1; then
30228 ol_cv_pthread_version=5
30230 ol_cv_pthread_version=4
30241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30244 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
30245 echo "${ECHO_T}$ol_cv_pthread_version" >&6
30248 if test $ol_cv_pthread_version != 0 ; then
30250 cat >>confdefs.h <<_ACEOF
30251 #define HAVE_PTHREADS $ol_cv_pthread_version
30255 { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
30256 echo "$as_me: error: unknown pthread version" >&2;}
30257 { (exit 1); exit 1; }; }
30260 # consider threads found
30261 ol_with_threads=found
30264 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
30265 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
30266 if test "${ol_cv_header_linux_threads+set}" = set; then
30267 echo $ECHO_N "(cached) $ECHO_C" >&6
30269 cat >conftest.$ac_ext <<_ACEOF
30272 cat confdefs.h >>conftest.$ac_ext
30273 cat >>conftest.$ac_ext <<_ACEOF
30274 /* end confdefs.h. */
30275 #include <pthread.h>
30277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30278 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
30279 ol_cv_header_linux_threads=yes
30281 ol_cv_header_linux_threads=no
30287 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
30288 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
30289 if test $ol_cv_header_linux_threads = yes; then
30291 cat >>confdefs.h <<\_ACEOF
30292 #define HAVE_LINUX_THREADS 1
30298 echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
30299 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
30300 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
30301 echo $ECHO_N "(cached) $ECHO_C" >&6
30303 cat >conftest.$ac_ext <<_ACEOF
30306 cat confdefs.h >>conftest.$ac_ext
30307 cat >>conftest.$ac_ext <<_ACEOF
30308 /* end confdefs.h. */
30309 #include <pthread.h>
30310 #ifdef _POSIX_THREAD_IS_GNU_PTH
30315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30316 $EGREP "__gnu_pth__" >/dev/null 2>&1; then
30317 ol_cv_header_gnu_pth_pthread_h=yes
30319 ol_cv_header_gnu_pth_pthread_h=no
30325 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
30326 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
30329 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
30331 for ac_header in sched.h
30333 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30334 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30335 echo "$as_me:$LINENO: checking for $ac_header" >&5
30336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30338 echo $ECHO_N "(cached) $ECHO_C" >&6
30340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30341 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30343 # Is the header compilable?
30344 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30345 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30346 cat >conftest.$ac_ext <<_ACEOF
30349 cat confdefs.h >>conftest.$ac_ext
30350 cat >>conftest.$ac_ext <<_ACEOF
30351 /* end confdefs.h. */
30352 $ac_includes_default
30353 #include <$ac_header>
30355 rm -f conftest.$ac_objext
30356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30357 (eval $ac_compile) 2>conftest.er1
30359 grep -v '^ *+' conftest.er1 >conftest.err
30361 cat conftest.err >&5
30362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30363 (exit $ac_status); } &&
30364 { ac_try='test -z "$ac_c_werror_flag"
30365 || test ! -s conftest.err'
30366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30367 (eval $ac_try) 2>&5
30369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30370 (exit $ac_status); }; } &&
30371 { ac_try='test -s conftest.$ac_objext'
30372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30373 (eval $ac_try) 2>&5
30375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30376 (exit $ac_status); }; }; then
30377 ac_header_compiler=yes
30379 echo "$as_me: failed program was:" >&5
30380 sed 's/^/| /' conftest.$ac_ext >&5
30382 ac_header_compiler=no
30384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30385 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30386 echo "${ECHO_T}$ac_header_compiler" >&6
30388 # Is the header present?
30389 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30390 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30391 cat >conftest.$ac_ext <<_ACEOF
30394 cat confdefs.h >>conftest.$ac_ext
30395 cat >>conftest.$ac_ext <<_ACEOF
30396 /* end confdefs.h. */
30397 #include <$ac_header>
30399 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30400 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30402 grep -v '^ *+' conftest.er1 >conftest.err
30404 cat conftest.err >&5
30405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30406 (exit $ac_status); } >/dev/null; then
30407 if test -s conftest.err; then
30408 ac_cpp_err=$ac_c_preproc_warn_flag
30409 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30416 if test -z "$ac_cpp_err"; then
30417 ac_header_preproc=yes
30419 echo "$as_me: failed program was:" >&5
30420 sed 's/^/| /' conftest.$ac_ext >&5
30422 ac_header_preproc=no
30424 rm -f conftest.err conftest.$ac_ext
30425 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30426 echo "${ECHO_T}$ac_header_preproc" >&6
30428 # So? What about this header?
30429 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30431 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30432 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30434 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30435 ac_header_preproc=yes
30438 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30439 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30440 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30441 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30442 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30443 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30444 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30445 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30447 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30448 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30449 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30452 ## ------------------------------------------ ##
30453 ## Report this to the AC_PACKAGE_NAME lists. ##
30454 ## ------------------------------------------ ##
30457 sed "s/^/$as_me: WARNING: /" >&2
30460 echo "$as_me:$LINENO: checking for $ac_header" >&5
30461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30463 echo $ECHO_N "(cached) $ECHO_C" >&6
30465 eval "$as_ac_Header=\$ac_header_preproc"
30467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30471 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30472 cat >>confdefs.h <<_ACEOF
30473 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30483 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
30484 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
30485 if test "${ol_cv_pthread_create+set}" = set; then
30486 echo $ECHO_N "(cached) $ECHO_C" >&6
30489 if test "$cross_compiling" = yes; then
30490 cat >conftest.$ac_ext <<_ACEOF
30493 cat confdefs.h >>conftest.$ac_ext
30494 cat >>conftest.$ac_ext <<_ACEOF
30495 /* end confdefs.h. */
30497 /* pthread test headers */
30498 #include <pthread.h>
30499 #if HAVE_PTHREADS < 7
30503 #define NULL (void*)0
30506 static void *task(p)
30509 return (void *) (p == NULL);
30516 /* pthread test function */
30517 #ifndef PTHREAD_CREATE_DETACHED
30518 #define PTHREAD_CREATE_DETACHED 1
30522 int detach = PTHREAD_CREATE_DETACHED;
30524 #if HAVE_PTHREADS > 4
30525 /* Final pthreads */
30526 pthread_attr_t attr;
30528 status = pthread_attr_init(&attr);
30529 if( status ) return status;
30531 #if HAVE_PTHREADS < 7
30532 status = pthread_attr_setdetachstate(&attr, &detach);
30533 if( status < 0 ) status = errno;
30535 status = pthread_attr_setdetachstate(&attr, detach);
30537 if( status ) return status;
30538 status = pthread_create( &t, &attr, task, NULL );
30539 #if HAVE_PTHREADS < 7
30540 if( status < 0 ) status = errno;
30542 if( status ) return status;
30544 /* Draft 4 pthreads */
30545 status = pthread_create( &t, pthread_attr_default, task, NULL );
30546 if( status ) return errno;
30548 /* give thread a chance to complete */
30549 /* it should remain joinable and hence detachable */
30552 status = pthread_detach( &t );
30553 if( status ) return errno;
30556 #ifdef HAVE_LINUX_THREADS
30557 pthread_kill_other_threads_np();
30566 rm -f conftest.$ac_objext conftest$ac_exeext
30567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30568 (eval $ac_link) 2>conftest.er1
30570 grep -v '^ *+' conftest.er1 >conftest.err
30572 cat conftest.err >&5
30573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30574 (exit $ac_status); } &&
30575 { ac_try='test -z "$ac_c_werror_flag"
30576 || test ! -s conftest.err'
30577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30578 (eval $ac_try) 2>&5
30580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30581 (exit $ac_status); }; } &&
30582 { ac_try='test -s conftest$ac_exeext'
30583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30584 (eval $ac_try) 2>&5
30586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30587 (exit $ac_status); }; }; then
30588 ol_cv_pthread_create=yes
30590 echo "$as_me: failed program was:" >&5
30591 sed 's/^/| /' conftest.$ac_ext >&5
30593 ol_cv_pthread_create=no
30595 rm -f conftest.err conftest.$ac_objext \
30596 conftest$ac_exeext conftest.$ac_ext
30598 cat >conftest.$ac_ext <<_ACEOF
30600 /* pthread test headers */
30601 #include <pthread.h>
30602 #if HAVE_PTHREADS < 7
30606 #define NULL (void*)0
30609 static void *task(p)
30612 return (void *) (p == NULL);
30616 int main(argc, argv)
30621 /* pthread test function */
30622 #ifndef PTHREAD_CREATE_DETACHED
30623 #define PTHREAD_CREATE_DETACHED 1
30627 int detach = PTHREAD_CREATE_DETACHED;
30629 #if HAVE_PTHREADS > 4
30630 /* Final pthreads */
30631 pthread_attr_t attr;
30633 status = pthread_attr_init(&attr);
30634 if( status ) return status;
30636 #if HAVE_PTHREADS < 7
30637 status = pthread_attr_setdetachstate(&attr, &detach);
30638 if( status < 0 ) status = errno;
30640 status = pthread_attr_setdetachstate(&attr, detach);
30642 if( status ) return status;
30643 status = pthread_create( &t, &attr, task, NULL );
30644 #if HAVE_PTHREADS < 7
30645 if( status < 0 ) status = errno;
30647 if( status ) return status;
30649 /* Draft 4 pthreads */
30650 status = pthread_create( &t, pthread_attr_default, task, NULL );
30651 if( status ) return errno;
30653 /* give thread a chance to complete */
30654 /* it should remain joinable and hence detachable */
30657 status = pthread_detach( &t );
30658 if( status ) return errno;
30661 #ifdef HAVE_LINUX_THREADS
30662 pthread_kill_other_threads_np();
30670 rm -f conftest$ac_exeext
30671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30672 (eval $ac_link) 2>&5
30674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30675 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30677 (eval $ac_try) 2>&5
30679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30680 (exit $ac_status); }; }; then
30681 ol_cv_pthread_create=yes
30683 echo "$as_me: program exited with status $ac_status" >&5
30684 echo "$as_me: failed program was:" >&5
30685 sed 's/^/| /' conftest.$ac_ext >&5
30687 ( exit $ac_status )
30688 ol_cv_pthread_create=no
30690 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30693 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
30694 echo "${ECHO_T}$ol_cv_pthread_create" >&6
30696 if test $ol_cv_pthread_create != no ; then
30697 ol_link_threads=posix
30698 ol_link_pthreads=""
30701 # Pthread try link: -kthread (ol_cv_pthread_kthread)
30702 if test "$ol_link_threads" = no ; then
30704 echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
30705 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
30706 if test "${ol_cv_pthread_kthread+set}" = set; then
30707 echo $ECHO_N "(cached) $ECHO_C" >&6
30712 LIBS="-kthread $LIBS"
30714 if test "$cross_compiling" = yes; then
30715 cat >conftest.$ac_ext <<_ACEOF
30718 cat confdefs.h >>conftest.$ac_ext
30719 cat >>conftest.$ac_ext <<_ACEOF
30720 /* end confdefs.h. */
30722 /* pthread test headers */
30723 #include <pthread.h>
30724 #if HAVE_PTHREADS < 7
30728 #define NULL (void*)0
30731 static void *task(p)
30734 return (void *) (p == NULL);
30741 /* pthread test function */
30742 #ifndef PTHREAD_CREATE_DETACHED
30743 #define PTHREAD_CREATE_DETACHED 1
30747 int detach = PTHREAD_CREATE_DETACHED;
30749 #if HAVE_PTHREADS > 4
30750 /* Final pthreads */
30751 pthread_attr_t attr;
30753 status = pthread_attr_init(&attr);
30754 if( status ) return status;
30756 #if HAVE_PTHREADS < 7
30757 status = pthread_attr_setdetachstate(&attr, &detach);
30758 if( status < 0 ) status = errno;
30760 status = pthread_attr_setdetachstate(&attr, detach);
30762 if( status ) return status;
30763 status = pthread_create( &t, &attr, task, NULL );
30764 #if HAVE_PTHREADS < 7
30765 if( status < 0 ) status = errno;
30767 if( status ) return status;
30769 /* Draft 4 pthreads */
30770 status = pthread_create( &t, pthread_attr_default, task, NULL );
30771 if( status ) return errno;
30773 /* give thread a chance to complete */
30774 /* it should remain joinable and hence detachable */
30777 status = pthread_detach( &t );
30778 if( status ) return errno;
30781 #ifdef HAVE_LINUX_THREADS
30782 pthread_kill_other_threads_np();
30791 rm -f conftest.$ac_objext conftest$ac_exeext
30792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30793 (eval $ac_link) 2>conftest.er1
30795 grep -v '^ *+' conftest.er1 >conftest.err
30797 cat conftest.err >&5
30798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30799 (exit $ac_status); } &&
30800 { ac_try='test -z "$ac_c_werror_flag"
30801 || test ! -s conftest.err'
30802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30803 (eval $ac_try) 2>&5
30805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30806 (exit $ac_status); }; } &&
30807 { ac_try='test -s conftest$ac_exeext'
30808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30809 (eval $ac_try) 2>&5
30811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30812 (exit $ac_status); }; }; then
30813 ol_cv_pthread_kthread=yes
30815 echo "$as_me: failed program was:" >&5
30816 sed 's/^/| /' conftest.$ac_ext >&5
30818 ol_cv_pthread_kthread=no
30820 rm -f conftest.err conftest.$ac_objext \
30821 conftest$ac_exeext conftest.$ac_ext
30823 cat >conftest.$ac_ext <<_ACEOF
30825 /* pthread test headers */
30826 #include <pthread.h>
30827 #if HAVE_PTHREADS < 7
30831 #define NULL (void*)0
30834 static void *task(p)
30837 return (void *) (p == NULL);
30841 int main(argc, argv)
30846 /* pthread test function */
30847 #ifndef PTHREAD_CREATE_DETACHED
30848 #define PTHREAD_CREATE_DETACHED 1
30852 int detach = PTHREAD_CREATE_DETACHED;
30854 #if HAVE_PTHREADS > 4
30855 /* Final pthreads */
30856 pthread_attr_t attr;
30858 status = pthread_attr_init(&attr);
30859 if( status ) return status;
30861 #if HAVE_PTHREADS < 7
30862 status = pthread_attr_setdetachstate(&attr, &detach);
30863 if( status < 0 ) status = errno;
30865 status = pthread_attr_setdetachstate(&attr, detach);
30867 if( status ) return status;
30868 status = pthread_create( &t, &attr, task, NULL );
30869 #if HAVE_PTHREADS < 7
30870 if( status < 0 ) status = errno;
30872 if( status ) return status;
30874 /* Draft 4 pthreads */
30875 status = pthread_create( &t, pthread_attr_default, task, NULL );
30876 if( status ) return errno;
30878 /* give thread a chance to complete */
30879 /* it should remain joinable and hence detachable */
30882 status = pthread_detach( &t );
30883 if( status ) return errno;
30886 #ifdef HAVE_LINUX_THREADS
30887 pthread_kill_other_threads_np();
30895 rm -f conftest$ac_exeext
30896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30897 (eval $ac_link) 2>&5
30899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30900 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30902 (eval $ac_try) 2>&5
30904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30905 (exit $ac_status); }; }; then
30906 ol_cv_pthread_kthread=yes
30908 echo "$as_me: program exited with status $ac_status" >&5
30909 echo "$as_me: failed program was:" >&5
30910 sed 's/^/| /' conftest.$ac_ext >&5
30912 ( exit $ac_status )
30913 ol_cv_pthread_kthread=no
30915 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30922 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
30923 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
30925 if test $ol_cv_pthread_kthread = yes ; then
30926 ol_link_pthreads="-kthread"
30927 ol_link_threads=posix
30931 # Pthread try link: -pthread (ol_cv_pthread_pthread)
30932 if test "$ol_link_threads" = no ; then
30934 echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
30935 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
30936 if test "${ol_cv_pthread_pthread+set}" = set; then
30937 echo $ECHO_N "(cached) $ECHO_C" >&6
30942 LIBS="-pthread $LIBS"
30944 if test "$cross_compiling" = yes; then
30945 cat >conftest.$ac_ext <<_ACEOF
30948 cat confdefs.h >>conftest.$ac_ext
30949 cat >>conftest.$ac_ext <<_ACEOF
30950 /* end confdefs.h. */
30952 /* pthread test headers */
30953 #include <pthread.h>
30954 #if HAVE_PTHREADS < 7
30958 #define NULL (void*)0
30961 static void *task(p)
30964 return (void *) (p == NULL);
30971 /* pthread test function */
30972 #ifndef PTHREAD_CREATE_DETACHED
30973 #define PTHREAD_CREATE_DETACHED 1
30977 int detach = PTHREAD_CREATE_DETACHED;
30979 #if HAVE_PTHREADS > 4
30980 /* Final pthreads */
30981 pthread_attr_t attr;
30983 status = pthread_attr_init(&attr);
30984 if( status ) return status;
30986 #if HAVE_PTHREADS < 7
30987 status = pthread_attr_setdetachstate(&attr, &detach);
30988 if( status < 0 ) status = errno;
30990 status = pthread_attr_setdetachstate(&attr, detach);
30992 if( status ) return status;
30993 status = pthread_create( &t, &attr, task, NULL );
30994 #if HAVE_PTHREADS < 7
30995 if( status < 0 ) status = errno;
30997 if( status ) return status;
30999 /* Draft 4 pthreads */
31000 status = pthread_create( &t, pthread_attr_default, task, NULL );
31001 if( status ) return errno;
31003 /* give thread a chance to complete */
31004 /* it should remain joinable and hence detachable */
31007 status = pthread_detach( &t );
31008 if( status ) return errno;
31011 #ifdef HAVE_LINUX_THREADS
31012 pthread_kill_other_threads_np();
31021 rm -f conftest.$ac_objext conftest$ac_exeext
31022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31023 (eval $ac_link) 2>conftest.er1
31025 grep -v '^ *+' conftest.er1 >conftest.err
31027 cat conftest.err >&5
31028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31029 (exit $ac_status); } &&
31030 { ac_try='test -z "$ac_c_werror_flag"
31031 || test ! -s conftest.err'
31032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31033 (eval $ac_try) 2>&5
31035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31036 (exit $ac_status); }; } &&
31037 { ac_try='test -s conftest$ac_exeext'
31038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31039 (eval $ac_try) 2>&5
31041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31042 (exit $ac_status); }; }; then
31043 ol_cv_pthread_pthread=yes
31045 echo "$as_me: failed program was:" >&5
31046 sed 's/^/| /' conftest.$ac_ext >&5
31048 ol_cv_pthread_pthread=no
31050 rm -f conftest.err conftest.$ac_objext \
31051 conftest$ac_exeext conftest.$ac_ext
31053 cat >conftest.$ac_ext <<_ACEOF
31055 /* pthread test headers */
31056 #include <pthread.h>
31057 #if HAVE_PTHREADS < 7
31061 #define NULL (void*)0
31064 static void *task(p)
31067 return (void *) (p == NULL);
31071 int main(argc, argv)
31076 /* pthread test function */
31077 #ifndef PTHREAD_CREATE_DETACHED
31078 #define PTHREAD_CREATE_DETACHED 1
31082 int detach = PTHREAD_CREATE_DETACHED;
31084 #if HAVE_PTHREADS > 4
31085 /* Final pthreads */
31086 pthread_attr_t attr;
31088 status = pthread_attr_init(&attr);
31089 if( status ) return status;
31091 #if HAVE_PTHREADS < 7
31092 status = pthread_attr_setdetachstate(&attr, &detach);
31093 if( status < 0 ) status = errno;
31095 status = pthread_attr_setdetachstate(&attr, detach);
31097 if( status ) return status;
31098 status = pthread_create( &t, &attr, task, NULL );
31099 #if HAVE_PTHREADS < 7
31100 if( status < 0 ) status = errno;
31102 if( status ) return status;
31104 /* Draft 4 pthreads */
31105 status = pthread_create( &t, pthread_attr_default, task, NULL );
31106 if( status ) return errno;
31108 /* give thread a chance to complete */
31109 /* it should remain joinable and hence detachable */
31112 status = pthread_detach( &t );
31113 if( status ) return errno;
31116 #ifdef HAVE_LINUX_THREADS
31117 pthread_kill_other_threads_np();
31125 rm -f conftest$ac_exeext
31126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31127 (eval $ac_link) 2>&5
31129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31130 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31132 (eval $ac_try) 2>&5
31134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31135 (exit $ac_status); }; }; then
31136 ol_cv_pthread_pthread=yes
31138 echo "$as_me: program exited with status $ac_status" >&5
31139 echo "$as_me: failed program was:" >&5
31140 sed 's/^/| /' conftest.$ac_ext >&5
31142 ( exit $ac_status )
31143 ol_cv_pthread_pthread=no
31145 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31152 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
31153 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
31155 if test $ol_cv_pthread_pthread = yes ; then
31156 ol_link_pthreads="-pthread"
31157 ol_link_threads=posix
31161 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
31162 if test "$ol_link_threads" = no ; then
31164 echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
31165 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
31166 if test "${ol_cv_pthread_pthreads+set}" = set; then
31167 echo $ECHO_N "(cached) $ECHO_C" >&6
31172 LIBS="-pthreads $LIBS"
31174 if test "$cross_compiling" = yes; then
31175 cat >conftest.$ac_ext <<_ACEOF
31178 cat confdefs.h >>conftest.$ac_ext
31179 cat >>conftest.$ac_ext <<_ACEOF
31180 /* end confdefs.h. */
31182 /* pthread test headers */
31183 #include <pthread.h>
31184 #if HAVE_PTHREADS < 7
31188 #define NULL (void*)0
31191 static void *task(p)
31194 return (void *) (p == NULL);
31201 /* pthread test function */
31202 #ifndef PTHREAD_CREATE_DETACHED
31203 #define PTHREAD_CREATE_DETACHED 1
31207 int detach = PTHREAD_CREATE_DETACHED;
31209 #if HAVE_PTHREADS > 4
31210 /* Final pthreads */
31211 pthread_attr_t attr;
31213 status = pthread_attr_init(&attr);
31214 if( status ) return status;
31216 #if HAVE_PTHREADS < 7
31217 status = pthread_attr_setdetachstate(&attr, &detach);
31218 if( status < 0 ) status = errno;
31220 status = pthread_attr_setdetachstate(&attr, detach);
31222 if( status ) return status;
31223 status = pthread_create( &t, &attr, task, NULL );
31224 #if HAVE_PTHREADS < 7
31225 if( status < 0 ) status = errno;
31227 if( status ) return status;
31229 /* Draft 4 pthreads */
31230 status = pthread_create( &t, pthread_attr_default, task, NULL );
31231 if( status ) return errno;
31233 /* give thread a chance to complete */
31234 /* it should remain joinable and hence detachable */
31237 status = pthread_detach( &t );
31238 if( status ) return errno;
31241 #ifdef HAVE_LINUX_THREADS
31242 pthread_kill_other_threads_np();
31251 rm -f conftest.$ac_objext conftest$ac_exeext
31252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31253 (eval $ac_link) 2>conftest.er1
31255 grep -v '^ *+' conftest.er1 >conftest.err
31257 cat conftest.err >&5
31258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31259 (exit $ac_status); } &&
31260 { ac_try='test -z "$ac_c_werror_flag"
31261 || test ! -s conftest.err'
31262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31263 (eval $ac_try) 2>&5
31265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31266 (exit $ac_status); }; } &&
31267 { ac_try='test -s conftest$ac_exeext'
31268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31269 (eval $ac_try) 2>&5
31271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31272 (exit $ac_status); }; }; then
31273 ol_cv_pthread_pthreads=yes
31275 echo "$as_me: failed program was:" >&5
31276 sed 's/^/| /' conftest.$ac_ext >&5
31278 ol_cv_pthread_pthreads=no
31280 rm -f conftest.err conftest.$ac_objext \
31281 conftest$ac_exeext conftest.$ac_ext
31283 cat >conftest.$ac_ext <<_ACEOF
31285 /* pthread test headers */
31286 #include <pthread.h>
31287 #if HAVE_PTHREADS < 7
31291 #define NULL (void*)0
31294 static void *task(p)
31297 return (void *) (p == NULL);
31301 int main(argc, argv)
31306 /* pthread test function */
31307 #ifndef PTHREAD_CREATE_DETACHED
31308 #define PTHREAD_CREATE_DETACHED 1
31312 int detach = PTHREAD_CREATE_DETACHED;
31314 #if HAVE_PTHREADS > 4
31315 /* Final pthreads */
31316 pthread_attr_t attr;
31318 status = pthread_attr_init(&attr);
31319 if( status ) return status;
31321 #if HAVE_PTHREADS < 7
31322 status = pthread_attr_setdetachstate(&attr, &detach);
31323 if( status < 0 ) status = errno;
31325 status = pthread_attr_setdetachstate(&attr, detach);
31327 if( status ) return status;
31328 status = pthread_create( &t, &attr, task, NULL );
31329 #if HAVE_PTHREADS < 7
31330 if( status < 0 ) status = errno;
31332 if( status ) return status;
31334 /* Draft 4 pthreads */
31335 status = pthread_create( &t, pthread_attr_default, task, NULL );
31336 if( status ) return errno;
31338 /* give thread a chance to complete */
31339 /* it should remain joinable and hence detachable */
31342 status = pthread_detach( &t );
31343 if( status ) return errno;
31346 #ifdef HAVE_LINUX_THREADS
31347 pthread_kill_other_threads_np();
31355 rm -f conftest$ac_exeext
31356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31357 (eval $ac_link) 2>&5
31359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31360 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31362 (eval $ac_try) 2>&5
31364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31365 (exit $ac_status); }; }; then
31366 ol_cv_pthread_pthreads=yes
31368 echo "$as_me: program exited with status $ac_status" >&5
31369 echo "$as_me: failed program was:" >&5
31370 sed 's/^/| /' conftest.$ac_ext >&5
31372 ( exit $ac_status )
31373 ol_cv_pthread_pthreads=no
31375 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31382 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
31383 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
31385 if test $ol_cv_pthread_pthreads = yes ; then
31386 ol_link_pthreads="-pthreads"
31387 ol_link_threads=posix
31391 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
31392 if test "$ol_link_threads" = no ; then
31394 echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
31395 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
31396 if test "${ol_cv_pthread_mthreads+set}" = set; then
31397 echo $ECHO_N "(cached) $ECHO_C" >&6
31402 LIBS="-mthreads $LIBS"
31404 if test "$cross_compiling" = yes; then
31405 cat >conftest.$ac_ext <<_ACEOF
31408 cat confdefs.h >>conftest.$ac_ext
31409 cat >>conftest.$ac_ext <<_ACEOF
31410 /* end confdefs.h. */
31412 /* pthread test headers */
31413 #include <pthread.h>
31414 #if HAVE_PTHREADS < 7
31418 #define NULL (void*)0
31421 static void *task(p)
31424 return (void *) (p == NULL);
31431 /* pthread test function */
31432 #ifndef PTHREAD_CREATE_DETACHED
31433 #define PTHREAD_CREATE_DETACHED 1
31437 int detach = PTHREAD_CREATE_DETACHED;
31439 #if HAVE_PTHREADS > 4
31440 /* Final pthreads */
31441 pthread_attr_t attr;
31443 status = pthread_attr_init(&attr);
31444 if( status ) return status;
31446 #if HAVE_PTHREADS < 7
31447 status = pthread_attr_setdetachstate(&attr, &detach);
31448 if( status < 0 ) status = errno;
31450 status = pthread_attr_setdetachstate(&attr, detach);
31452 if( status ) return status;
31453 status = pthread_create( &t, &attr, task, NULL );
31454 #if HAVE_PTHREADS < 7
31455 if( status < 0 ) status = errno;
31457 if( status ) return status;
31459 /* Draft 4 pthreads */
31460 status = pthread_create( &t, pthread_attr_default, task, NULL );
31461 if( status ) return errno;
31463 /* give thread a chance to complete */
31464 /* it should remain joinable and hence detachable */
31467 status = pthread_detach( &t );
31468 if( status ) return errno;
31471 #ifdef HAVE_LINUX_THREADS
31472 pthread_kill_other_threads_np();
31481 rm -f conftest.$ac_objext conftest$ac_exeext
31482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31483 (eval $ac_link) 2>conftest.er1
31485 grep -v '^ *+' conftest.er1 >conftest.err
31487 cat conftest.err >&5
31488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31489 (exit $ac_status); } &&
31490 { ac_try='test -z "$ac_c_werror_flag"
31491 || test ! -s conftest.err'
31492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31493 (eval $ac_try) 2>&5
31495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31496 (exit $ac_status); }; } &&
31497 { ac_try='test -s conftest$ac_exeext'
31498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31499 (eval $ac_try) 2>&5
31501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31502 (exit $ac_status); }; }; then
31503 ol_cv_pthread_mthreads=yes
31505 echo "$as_me: failed program was:" >&5
31506 sed 's/^/| /' conftest.$ac_ext >&5
31508 ol_cv_pthread_mthreads=no
31510 rm -f conftest.err conftest.$ac_objext \
31511 conftest$ac_exeext conftest.$ac_ext
31513 cat >conftest.$ac_ext <<_ACEOF
31515 /* pthread test headers */
31516 #include <pthread.h>
31517 #if HAVE_PTHREADS < 7
31521 #define NULL (void*)0
31524 static void *task(p)
31527 return (void *) (p == NULL);
31531 int main(argc, argv)
31536 /* pthread test function */
31537 #ifndef PTHREAD_CREATE_DETACHED
31538 #define PTHREAD_CREATE_DETACHED 1
31542 int detach = PTHREAD_CREATE_DETACHED;
31544 #if HAVE_PTHREADS > 4
31545 /* Final pthreads */
31546 pthread_attr_t attr;
31548 status = pthread_attr_init(&attr);
31549 if( status ) return status;
31551 #if HAVE_PTHREADS < 7
31552 status = pthread_attr_setdetachstate(&attr, &detach);
31553 if( status < 0 ) status = errno;
31555 status = pthread_attr_setdetachstate(&attr, detach);
31557 if( status ) return status;
31558 status = pthread_create( &t, &attr, task, NULL );
31559 #if HAVE_PTHREADS < 7
31560 if( status < 0 ) status = errno;
31562 if( status ) return status;
31564 /* Draft 4 pthreads */
31565 status = pthread_create( &t, pthread_attr_default, task, NULL );
31566 if( status ) return errno;
31568 /* give thread a chance to complete */
31569 /* it should remain joinable and hence detachable */
31572 status = pthread_detach( &t );
31573 if( status ) return errno;
31576 #ifdef HAVE_LINUX_THREADS
31577 pthread_kill_other_threads_np();
31585 rm -f conftest$ac_exeext
31586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31587 (eval $ac_link) 2>&5
31589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31592 (eval $ac_try) 2>&5
31594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31595 (exit $ac_status); }; }; then
31596 ol_cv_pthread_mthreads=yes
31598 echo "$as_me: program exited with status $ac_status" >&5
31599 echo "$as_me: failed program was:" >&5
31600 sed 's/^/| /' conftest.$ac_ext >&5
31602 ( exit $ac_status )
31603 ol_cv_pthread_mthreads=no
31605 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31612 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
31613 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
31615 if test $ol_cv_pthread_mthreads = yes ; then
31616 ol_link_pthreads="-mthreads"
31617 ol_link_threads=posix
31621 # Pthread try link: -thread (ol_cv_pthread_thread)
31622 if test "$ol_link_threads" = no ; then
31624 echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
31625 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
31626 if test "${ol_cv_pthread_thread+set}" = set; then
31627 echo $ECHO_N "(cached) $ECHO_C" >&6
31632 LIBS="-thread $LIBS"
31634 if test "$cross_compiling" = yes; then
31635 cat >conftest.$ac_ext <<_ACEOF
31638 cat confdefs.h >>conftest.$ac_ext
31639 cat >>conftest.$ac_ext <<_ACEOF
31640 /* end confdefs.h. */
31642 /* pthread test headers */
31643 #include <pthread.h>
31644 #if HAVE_PTHREADS < 7
31648 #define NULL (void*)0
31651 static void *task(p)
31654 return (void *) (p == NULL);
31661 /* pthread test function */
31662 #ifndef PTHREAD_CREATE_DETACHED
31663 #define PTHREAD_CREATE_DETACHED 1
31667 int detach = PTHREAD_CREATE_DETACHED;
31669 #if HAVE_PTHREADS > 4
31670 /* Final pthreads */
31671 pthread_attr_t attr;
31673 status = pthread_attr_init(&attr);
31674 if( status ) return status;
31676 #if HAVE_PTHREADS < 7
31677 status = pthread_attr_setdetachstate(&attr, &detach);
31678 if( status < 0 ) status = errno;
31680 status = pthread_attr_setdetachstate(&attr, detach);
31682 if( status ) return status;
31683 status = pthread_create( &t, &attr, task, NULL );
31684 #if HAVE_PTHREADS < 7
31685 if( status < 0 ) status = errno;
31687 if( status ) return status;
31689 /* Draft 4 pthreads */
31690 status = pthread_create( &t, pthread_attr_default, task, NULL );
31691 if( status ) return errno;
31693 /* give thread a chance to complete */
31694 /* it should remain joinable and hence detachable */
31697 status = pthread_detach( &t );
31698 if( status ) return errno;
31701 #ifdef HAVE_LINUX_THREADS
31702 pthread_kill_other_threads_np();
31711 rm -f conftest.$ac_objext conftest$ac_exeext
31712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31713 (eval $ac_link) 2>conftest.er1
31715 grep -v '^ *+' conftest.er1 >conftest.err
31717 cat conftest.err >&5
31718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31719 (exit $ac_status); } &&
31720 { ac_try='test -z "$ac_c_werror_flag"
31721 || test ! -s conftest.err'
31722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31723 (eval $ac_try) 2>&5
31725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31726 (exit $ac_status); }; } &&
31727 { ac_try='test -s conftest$ac_exeext'
31728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31729 (eval $ac_try) 2>&5
31731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31732 (exit $ac_status); }; }; then
31733 ol_cv_pthread_thread=yes
31735 echo "$as_me: failed program was:" >&5
31736 sed 's/^/| /' conftest.$ac_ext >&5
31738 ol_cv_pthread_thread=no
31740 rm -f conftest.err conftest.$ac_objext \
31741 conftest$ac_exeext conftest.$ac_ext
31743 cat >conftest.$ac_ext <<_ACEOF
31745 /* pthread test headers */
31746 #include <pthread.h>
31747 #if HAVE_PTHREADS < 7
31751 #define NULL (void*)0
31754 static void *task(p)
31757 return (void *) (p == NULL);
31761 int main(argc, argv)
31766 /* pthread test function */
31767 #ifndef PTHREAD_CREATE_DETACHED
31768 #define PTHREAD_CREATE_DETACHED 1
31772 int detach = PTHREAD_CREATE_DETACHED;
31774 #if HAVE_PTHREADS > 4
31775 /* Final pthreads */
31776 pthread_attr_t attr;
31778 status = pthread_attr_init(&attr);
31779 if( status ) return status;
31781 #if HAVE_PTHREADS < 7
31782 status = pthread_attr_setdetachstate(&attr, &detach);
31783 if( status < 0 ) status = errno;
31785 status = pthread_attr_setdetachstate(&attr, detach);
31787 if( status ) return status;
31788 status = pthread_create( &t, &attr, task, NULL );
31789 #if HAVE_PTHREADS < 7
31790 if( status < 0 ) status = errno;
31792 if( status ) return status;
31794 /* Draft 4 pthreads */
31795 status = pthread_create( &t, pthread_attr_default, task, NULL );
31796 if( status ) return errno;
31798 /* give thread a chance to complete */
31799 /* it should remain joinable and hence detachable */
31802 status = pthread_detach( &t );
31803 if( status ) return errno;
31806 #ifdef HAVE_LINUX_THREADS
31807 pthread_kill_other_threads_np();
31815 rm -f conftest$ac_exeext
31816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31817 (eval $ac_link) 2>&5
31819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31820 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31822 (eval $ac_try) 2>&5
31824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31825 (exit $ac_status); }; }; then
31826 ol_cv_pthread_thread=yes
31828 echo "$as_me: program exited with status $ac_status" >&5
31829 echo "$as_me: failed program was:" >&5
31830 sed 's/^/| /' conftest.$ac_ext >&5
31832 ( exit $ac_status )
31833 ol_cv_pthread_thread=no
31835 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31842 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
31843 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
31845 if test $ol_cv_pthread_thread = yes ; then
31846 ol_link_pthreads="-thread"
31847 ol_link_threads=posix
31852 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
31853 if test "$ol_link_threads" = no ; then
31854 # try -lpthread -lmach -lexc -lc_r
31855 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
31856 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
31857 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
31858 echo $ECHO_N "(cached) $ECHO_C" >&6
31863 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
31865 if test "$cross_compiling" = yes; then
31866 cat >conftest.$ac_ext <<_ACEOF
31869 cat confdefs.h >>conftest.$ac_ext
31870 cat >>conftest.$ac_ext <<_ACEOF
31871 /* end confdefs.h. */
31873 /* pthread test headers */
31874 #include <pthread.h>
31875 #if HAVE_PTHREADS < 7
31879 #define NULL (void*)0
31882 static void *task(p)
31885 return (void *) (p == NULL);
31892 /* pthread test function */
31893 #ifndef PTHREAD_CREATE_DETACHED
31894 #define PTHREAD_CREATE_DETACHED 1
31898 int detach = PTHREAD_CREATE_DETACHED;
31900 #if HAVE_PTHREADS > 4
31901 /* Final pthreads */
31902 pthread_attr_t attr;
31904 status = pthread_attr_init(&attr);
31905 if( status ) return status;
31907 #if HAVE_PTHREADS < 7
31908 status = pthread_attr_setdetachstate(&attr, &detach);
31909 if( status < 0 ) status = errno;
31911 status = pthread_attr_setdetachstate(&attr, detach);
31913 if( status ) return status;
31914 status = pthread_create( &t, &attr, task, NULL );
31915 #if HAVE_PTHREADS < 7
31916 if( status < 0 ) status = errno;
31918 if( status ) return status;
31920 /* Draft 4 pthreads */
31921 status = pthread_create( &t, pthread_attr_default, task, NULL );
31922 if( status ) return errno;
31924 /* give thread a chance to complete */
31925 /* it should remain joinable and hence detachable */
31928 status = pthread_detach( &t );
31929 if( status ) return errno;
31932 #ifdef HAVE_LINUX_THREADS
31933 pthread_kill_other_threads_np();
31942 rm -f conftest.$ac_objext conftest$ac_exeext
31943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31944 (eval $ac_link) 2>conftest.er1
31946 grep -v '^ *+' conftest.er1 >conftest.err
31948 cat conftest.err >&5
31949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31950 (exit $ac_status); } &&
31951 { ac_try='test -z "$ac_c_werror_flag"
31952 || test ! -s conftest.err'
31953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31954 (eval $ac_try) 2>&5
31956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31957 (exit $ac_status); }; } &&
31958 { ac_try='test -s conftest$ac_exeext'
31959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31960 (eval $ac_try) 2>&5
31962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31963 (exit $ac_status); }; }; then
31964 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
31966 echo "$as_me: failed program was:" >&5
31967 sed 's/^/| /' conftest.$ac_ext >&5
31969 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
31971 rm -f conftest.err conftest.$ac_objext \
31972 conftest$ac_exeext conftest.$ac_ext
31974 cat >conftest.$ac_ext <<_ACEOF
31976 /* pthread test headers */
31977 #include <pthread.h>
31978 #if HAVE_PTHREADS < 7
31982 #define NULL (void*)0
31985 static void *task(p)
31988 return (void *) (p == NULL);
31992 int main(argc, argv)
31997 /* pthread test function */
31998 #ifndef PTHREAD_CREATE_DETACHED
31999 #define PTHREAD_CREATE_DETACHED 1
32003 int detach = PTHREAD_CREATE_DETACHED;
32005 #if HAVE_PTHREADS > 4
32006 /* Final pthreads */
32007 pthread_attr_t attr;
32009 status = pthread_attr_init(&attr);
32010 if( status ) return status;
32012 #if HAVE_PTHREADS < 7
32013 status = pthread_attr_setdetachstate(&attr, &detach);
32014 if( status < 0 ) status = errno;
32016 status = pthread_attr_setdetachstate(&attr, detach);
32018 if( status ) return status;
32019 status = pthread_create( &t, &attr, task, NULL );
32020 #if HAVE_PTHREADS < 7
32021 if( status < 0 ) status = errno;
32023 if( status ) return status;
32025 /* Draft 4 pthreads */
32026 status = pthread_create( &t, pthread_attr_default, task, NULL );
32027 if( status ) return errno;
32029 /* give thread a chance to complete */
32030 /* it should remain joinable and hence detachable */
32033 status = pthread_detach( &t );
32034 if( status ) return errno;
32037 #ifdef HAVE_LINUX_THREADS
32038 pthread_kill_other_threads_np();
32046 rm -f conftest$ac_exeext
32047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32048 (eval $ac_link) 2>&5
32050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32051 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32053 (eval $ac_try) 2>&5
32055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32056 (exit $ac_status); }; }; then
32057 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
32059 echo "$as_me: program exited with status $ac_status" >&5
32060 echo "$as_me: failed program was:" >&5
32061 sed 's/^/| /' conftest.$ac_ext >&5
32063 ( exit $ac_status )
32064 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
32066 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32073 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
32074 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
32076 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
32077 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
32078 ol_link_threads=posix
32082 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
32083 if test "$ol_link_threads" = no ; then
32084 # try -lpthread -lmach -lexc
32085 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
32086 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
32087 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
32088 echo $ECHO_N "(cached) $ECHO_C" >&6
32093 LIBS="-lpthread -lmach -lexc $LIBS"
32095 if test "$cross_compiling" = yes; then
32096 cat >conftest.$ac_ext <<_ACEOF
32099 cat confdefs.h >>conftest.$ac_ext
32100 cat >>conftest.$ac_ext <<_ACEOF
32101 /* end confdefs.h. */
32103 /* pthread test headers */
32104 #include <pthread.h>
32105 #if HAVE_PTHREADS < 7
32109 #define NULL (void*)0
32112 static void *task(p)
32115 return (void *) (p == NULL);
32122 /* pthread test function */
32123 #ifndef PTHREAD_CREATE_DETACHED
32124 #define PTHREAD_CREATE_DETACHED 1
32128 int detach = PTHREAD_CREATE_DETACHED;
32130 #if HAVE_PTHREADS > 4
32131 /* Final pthreads */
32132 pthread_attr_t attr;
32134 status = pthread_attr_init(&attr);
32135 if( status ) return status;
32137 #if HAVE_PTHREADS < 7
32138 status = pthread_attr_setdetachstate(&attr, &detach);
32139 if( status < 0 ) status = errno;
32141 status = pthread_attr_setdetachstate(&attr, detach);
32143 if( status ) return status;
32144 status = pthread_create( &t, &attr, task, NULL );
32145 #if HAVE_PTHREADS < 7
32146 if( status < 0 ) status = errno;
32148 if( status ) return status;
32150 /* Draft 4 pthreads */
32151 status = pthread_create( &t, pthread_attr_default, task, NULL );
32152 if( status ) return errno;
32154 /* give thread a chance to complete */
32155 /* it should remain joinable and hence detachable */
32158 status = pthread_detach( &t );
32159 if( status ) return errno;
32162 #ifdef HAVE_LINUX_THREADS
32163 pthread_kill_other_threads_np();
32172 rm -f conftest.$ac_objext conftest$ac_exeext
32173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32174 (eval $ac_link) 2>conftest.er1
32176 grep -v '^ *+' conftest.er1 >conftest.err
32178 cat conftest.err >&5
32179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32180 (exit $ac_status); } &&
32181 { ac_try='test -z "$ac_c_werror_flag"
32182 || test ! -s conftest.err'
32183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32184 (eval $ac_try) 2>&5
32186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32187 (exit $ac_status); }; } &&
32188 { ac_try='test -s conftest$ac_exeext'
32189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32190 (eval $ac_try) 2>&5
32192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32193 (exit $ac_status); }; }; then
32194 ol_cv_pthread_lpthread_lmach_lexc=yes
32196 echo "$as_me: failed program was:" >&5
32197 sed 's/^/| /' conftest.$ac_ext >&5
32199 ol_cv_pthread_lpthread_lmach_lexc=no
32201 rm -f conftest.err conftest.$ac_objext \
32202 conftest$ac_exeext conftest.$ac_ext
32204 cat >conftest.$ac_ext <<_ACEOF
32206 /* pthread test headers */
32207 #include <pthread.h>
32208 #if HAVE_PTHREADS < 7
32212 #define NULL (void*)0
32215 static void *task(p)
32218 return (void *) (p == NULL);
32222 int main(argc, argv)
32227 /* pthread test function */
32228 #ifndef PTHREAD_CREATE_DETACHED
32229 #define PTHREAD_CREATE_DETACHED 1
32233 int detach = PTHREAD_CREATE_DETACHED;
32235 #if HAVE_PTHREADS > 4
32236 /* Final pthreads */
32237 pthread_attr_t attr;
32239 status = pthread_attr_init(&attr);
32240 if( status ) return status;
32242 #if HAVE_PTHREADS < 7
32243 status = pthread_attr_setdetachstate(&attr, &detach);
32244 if( status < 0 ) status = errno;
32246 status = pthread_attr_setdetachstate(&attr, detach);
32248 if( status ) return status;
32249 status = pthread_create( &t, &attr, task, NULL );
32250 #if HAVE_PTHREADS < 7
32251 if( status < 0 ) status = errno;
32253 if( status ) return status;
32255 /* Draft 4 pthreads */
32256 status = pthread_create( &t, pthread_attr_default, task, NULL );
32257 if( status ) return errno;
32259 /* give thread a chance to complete */
32260 /* it should remain joinable and hence detachable */
32263 status = pthread_detach( &t );
32264 if( status ) return errno;
32267 #ifdef HAVE_LINUX_THREADS
32268 pthread_kill_other_threads_np();
32276 rm -f conftest$ac_exeext
32277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32278 (eval $ac_link) 2>&5
32280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32281 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32283 (eval $ac_try) 2>&5
32285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32286 (exit $ac_status); }; }; then
32287 ol_cv_pthread_lpthread_lmach_lexc=yes
32289 echo "$as_me: program exited with status $ac_status" >&5
32290 echo "$as_me: failed program was:" >&5
32291 sed 's/^/| /' conftest.$ac_ext >&5
32293 ( exit $ac_status )
32294 ol_cv_pthread_lpthread_lmach_lexc=no
32296 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32303 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
32304 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
32306 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
32307 ol_link_pthreads="-lpthread -lmach -lexc"
32308 ol_link_threads=posix
32313 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
32314 if test "$ol_link_threads" = no ; then
32315 # try -lpthread -Wl,-woff,85
32316 echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
32317 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
32318 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
32319 echo $ECHO_N "(cached) $ECHO_C" >&6
32324 LIBS="-lpthread -Wl,-woff,85 $LIBS"
32326 if test "$cross_compiling" = yes; then
32327 cat >conftest.$ac_ext <<_ACEOF
32330 cat confdefs.h >>conftest.$ac_ext
32331 cat >>conftest.$ac_ext <<_ACEOF
32332 /* end confdefs.h. */
32334 /* pthread test headers */
32335 #include <pthread.h>
32336 #if HAVE_PTHREADS < 7
32340 #define NULL (void*)0
32343 static void *task(p)
32346 return (void *) (p == NULL);
32353 /* pthread test function */
32354 #ifndef PTHREAD_CREATE_DETACHED
32355 #define PTHREAD_CREATE_DETACHED 1
32359 int detach = PTHREAD_CREATE_DETACHED;
32361 #if HAVE_PTHREADS > 4
32362 /* Final pthreads */
32363 pthread_attr_t attr;
32365 status = pthread_attr_init(&attr);
32366 if( status ) return status;
32368 #if HAVE_PTHREADS < 7
32369 status = pthread_attr_setdetachstate(&attr, &detach);
32370 if( status < 0 ) status = errno;
32372 status = pthread_attr_setdetachstate(&attr, detach);
32374 if( status ) return status;
32375 status = pthread_create( &t, &attr, task, NULL );
32376 #if HAVE_PTHREADS < 7
32377 if( status < 0 ) status = errno;
32379 if( status ) return status;
32381 /* Draft 4 pthreads */
32382 status = pthread_create( &t, pthread_attr_default, task, NULL );
32383 if( status ) return errno;
32385 /* give thread a chance to complete */
32386 /* it should remain joinable and hence detachable */
32389 status = pthread_detach( &t );
32390 if( status ) return errno;
32393 #ifdef HAVE_LINUX_THREADS
32394 pthread_kill_other_threads_np();
32403 rm -f conftest.$ac_objext conftest$ac_exeext
32404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32405 (eval $ac_link) 2>conftest.er1
32407 grep -v '^ *+' conftest.er1 >conftest.err
32409 cat conftest.err >&5
32410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32411 (exit $ac_status); } &&
32412 { ac_try='test -z "$ac_c_werror_flag"
32413 || test ! -s conftest.err'
32414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32415 (eval $ac_try) 2>&5
32417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32418 (exit $ac_status); }; } &&
32419 { ac_try='test -s conftest$ac_exeext'
32420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32421 (eval $ac_try) 2>&5
32423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32424 (exit $ac_status); }; }; then
32425 ol_cv_pthread_lib_lpthread_woff=yes
32427 echo "$as_me: failed program was:" >&5
32428 sed 's/^/| /' conftest.$ac_ext >&5
32430 ol_cv_pthread_lib_lpthread_woff=no
32432 rm -f conftest.err conftest.$ac_objext \
32433 conftest$ac_exeext conftest.$ac_ext
32435 cat >conftest.$ac_ext <<_ACEOF
32437 /* pthread test headers */
32438 #include <pthread.h>
32439 #if HAVE_PTHREADS < 7
32443 #define NULL (void*)0
32446 static void *task(p)
32449 return (void *) (p == NULL);
32453 int main(argc, argv)
32458 /* pthread test function */
32459 #ifndef PTHREAD_CREATE_DETACHED
32460 #define PTHREAD_CREATE_DETACHED 1
32464 int detach = PTHREAD_CREATE_DETACHED;
32466 #if HAVE_PTHREADS > 4
32467 /* Final pthreads */
32468 pthread_attr_t attr;
32470 status = pthread_attr_init(&attr);
32471 if( status ) return status;
32473 #if HAVE_PTHREADS < 7
32474 status = pthread_attr_setdetachstate(&attr, &detach);
32475 if( status < 0 ) status = errno;
32477 status = pthread_attr_setdetachstate(&attr, detach);
32479 if( status ) return status;
32480 status = pthread_create( &t, &attr, task, NULL );
32481 #if HAVE_PTHREADS < 7
32482 if( status < 0 ) status = errno;
32484 if( status ) return status;
32486 /* Draft 4 pthreads */
32487 status = pthread_create( &t, pthread_attr_default, task, NULL );
32488 if( status ) return errno;
32490 /* give thread a chance to complete */
32491 /* it should remain joinable and hence detachable */
32494 status = pthread_detach( &t );
32495 if( status ) return errno;
32498 #ifdef HAVE_LINUX_THREADS
32499 pthread_kill_other_threads_np();
32507 rm -f conftest$ac_exeext
32508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32509 (eval $ac_link) 2>&5
32511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32512 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32514 (eval $ac_try) 2>&5
32516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32517 (exit $ac_status); }; }; then
32518 ol_cv_pthread_lib_lpthread_woff=yes
32520 echo "$as_me: program exited with status $ac_status" >&5
32521 echo "$as_me: failed program was:" >&5
32522 sed 's/^/| /' conftest.$ac_ext >&5
32524 ( exit $ac_status )
32525 ol_cv_pthread_lib_lpthread_woff=no
32527 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32534 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
32535 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
32537 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
32538 ol_link_pthreads="-lpthread -Wl,-woff,85"
32539 ol_link_threads=posix
32544 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
32545 if test "$ol_link_threads" = no ; then
32547 echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
32548 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
32549 if test "${ol_cv_pthread_lpthread+set}" = set; then
32550 echo $ECHO_N "(cached) $ECHO_C" >&6
32555 LIBS="-lpthread $LIBS"
32557 if test "$cross_compiling" = yes; then
32558 cat >conftest.$ac_ext <<_ACEOF
32561 cat confdefs.h >>conftest.$ac_ext
32562 cat >>conftest.$ac_ext <<_ACEOF
32563 /* end confdefs.h. */
32565 /* pthread test headers */
32566 #include <pthread.h>
32567 #if HAVE_PTHREADS < 7
32571 #define NULL (void*)0
32574 static void *task(p)
32577 return (void *) (p == NULL);
32584 /* pthread test function */
32585 #ifndef PTHREAD_CREATE_DETACHED
32586 #define PTHREAD_CREATE_DETACHED 1
32590 int detach = PTHREAD_CREATE_DETACHED;
32592 #if HAVE_PTHREADS > 4
32593 /* Final pthreads */
32594 pthread_attr_t attr;
32596 status = pthread_attr_init(&attr);
32597 if( status ) return status;
32599 #if HAVE_PTHREADS < 7
32600 status = pthread_attr_setdetachstate(&attr, &detach);
32601 if( status < 0 ) status = errno;
32603 status = pthread_attr_setdetachstate(&attr, detach);
32605 if( status ) return status;
32606 status = pthread_create( &t, &attr, task, NULL );
32607 #if HAVE_PTHREADS < 7
32608 if( status < 0 ) status = errno;
32610 if( status ) return status;
32612 /* Draft 4 pthreads */
32613 status = pthread_create( &t, pthread_attr_default, task, NULL );
32614 if( status ) return errno;
32616 /* give thread a chance to complete */
32617 /* it should remain joinable and hence detachable */
32620 status = pthread_detach( &t );
32621 if( status ) return errno;
32624 #ifdef HAVE_LINUX_THREADS
32625 pthread_kill_other_threads_np();
32634 rm -f conftest.$ac_objext conftest$ac_exeext
32635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32636 (eval $ac_link) 2>conftest.er1
32638 grep -v '^ *+' conftest.er1 >conftest.err
32640 cat conftest.err >&5
32641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32642 (exit $ac_status); } &&
32643 { ac_try='test -z "$ac_c_werror_flag"
32644 || test ! -s conftest.err'
32645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32646 (eval $ac_try) 2>&5
32648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32649 (exit $ac_status); }; } &&
32650 { ac_try='test -s conftest$ac_exeext'
32651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32652 (eval $ac_try) 2>&5
32654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32655 (exit $ac_status); }; }; then
32656 ol_cv_pthread_lpthread=yes
32658 echo "$as_me: failed program was:" >&5
32659 sed 's/^/| /' conftest.$ac_ext >&5
32661 ol_cv_pthread_lpthread=no
32663 rm -f conftest.err conftest.$ac_objext \
32664 conftest$ac_exeext conftest.$ac_ext
32666 cat >conftest.$ac_ext <<_ACEOF
32668 /* pthread test headers */
32669 #include <pthread.h>
32670 #if HAVE_PTHREADS < 7
32674 #define NULL (void*)0
32677 static void *task(p)
32680 return (void *) (p == NULL);
32684 int main(argc, argv)
32689 /* pthread test function */
32690 #ifndef PTHREAD_CREATE_DETACHED
32691 #define PTHREAD_CREATE_DETACHED 1
32695 int detach = PTHREAD_CREATE_DETACHED;
32697 #if HAVE_PTHREADS > 4
32698 /* Final pthreads */
32699 pthread_attr_t attr;
32701 status = pthread_attr_init(&attr);
32702 if( status ) return status;
32704 #if HAVE_PTHREADS < 7
32705 status = pthread_attr_setdetachstate(&attr, &detach);
32706 if( status < 0 ) status = errno;
32708 status = pthread_attr_setdetachstate(&attr, detach);
32710 if( status ) return status;
32711 status = pthread_create( &t, &attr, task, NULL );
32712 #if HAVE_PTHREADS < 7
32713 if( status < 0 ) status = errno;
32715 if( status ) return status;
32717 /* Draft 4 pthreads */
32718 status = pthread_create( &t, pthread_attr_default, task, NULL );
32719 if( status ) return errno;
32721 /* give thread a chance to complete */
32722 /* it should remain joinable and hence detachable */
32725 status = pthread_detach( &t );
32726 if( status ) return errno;
32729 #ifdef HAVE_LINUX_THREADS
32730 pthread_kill_other_threads_np();
32738 rm -f conftest$ac_exeext
32739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32740 (eval $ac_link) 2>&5
32742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32743 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32745 (eval $ac_try) 2>&5
32747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32748 (exit $ac_status); }; }; then
32749 ol_cv_pthread_lpthread=yes
32751 echo "$as_me: program exited with status $ac_status" >&5
32752 echo "$as_me: failed program was:" >&5
32753 sed 's/^/| /' conftest.$ac_ext >&5
32755 ( exit $ac_status )
32756 ol_cv_pthread_lpthread=no
32758 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32765 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
32766 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
32768 if test $ol_cv_pthread_lpthread = yes ; then
32769 ol_link_pthreads="-lpthread"
32770 ol_link_threads=posix
32774 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
32775 if test "$ol_link_threads" = no ; then
32777 echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
32778 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
32779 if test "${ol_cv_pthread_lc_r+set}" = set; then
32780 echo $ECHO_N "(cached) $ECHO_C" >&6
32787 if test "$cross_compiling" = yes; then
32788 cat >conftest.$ac_ext <<_ACEOF
32791 cat confdefs.h >>conftest.$ac_ext
32792 cat >>conftest.$ac_ext <<_ACEOF
32793 /* end confdefs.h. */
32795 /* pthread test headers */
32796 #include <pthread.h>
32797 #if HAVE_PTHREADS < 7
32801 #define NULL (void*)0
32804 static void *task(p)
32807 return (void *) (p == NULL);
32814 /* pthread test function */
32815 #ifndef PTHREAD_CREATE_DETACHED
32816 #define PTHREAD_CREATE_DETACHED 1
32820 int detach = PTHREAD_CREATE_DETACHED;
32822 #if HAVE_PTHREADS > 4
32823 /* Final pthreads */
32824 pthread_attr_t attr;
32826 status = pthread_attr_init(&attr);
32827 if( status ) return status;
32829 #if HAVE_PTHREADS < 7
32830 status = pthread_attr_setdetachstate(&attr, &detach);
32831 if( status < 0 ) status = errno;
32833 status = pthread_attr_setdetachstate(&attr, detach);
32835 if( status ) return status;
32836 status = pthread_create( &t, &attr, task, NULL );
32837 #if HAVE_PTHREADS < 7
32838 if( status < 0 ) status = errno;
32840 if( status ) return status;
32842 /* Draft 4 pthreads */
32843 status = pthread_create( &t, pthread_attr_default, task, NULL );
32844 if( status ) return errno;
32846 /* give thread a chance to complete */
32847 /* it should remain joinable and hence detachable */
32850 status = pthread_detach( &t );
32851 if( status ) return errno;
32854 #ifdef HAVE_LINUX_THREADS
32855 pthread_kill_other_threads_np();
32864 rm -f conftest.$ac_objext conftest$ac_exeext
32865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32866 (eval $ac_link) 2>conftest.er1
32868 grep -v '^ *+' conftest.er1 >conftest.err
32870 cat conftest.err >&5
32871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32872 (exit $ac_status); } &&
32873 { ac_try='test -z "$ac_c_werror_flag"
32874 || test ! -s conftest.err'
32875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32876 (eval $ac_try) 2>&5
32878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32879 (exit $ac_status); }; } &&
32880 { ac_try='test -s conftest$ac_exeext'
32881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32882 (eval $ac_try) 2>&5
32884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32885 (exit $ac_status); }; }; then
32886 ol_cv_pthread_lc_r=yes
32888 echo "$as_me: failed program was:" >&5
32889 sed 's/^/| /' conftest.$ac_ext >&5
32891 ol_cv_pthread_lc_r=no
32893 rm -f conftest.err conftest.$ac_objext \
32894 conftest$ac_exeext conftest.$ac_ext
32896 cat >conftest.$ac_ext <<_ACEOF
32898 /* pthread test headers */
32899 #include <pthread.h>
32900 #if HAVE_PTHREADS < 7
32904 #define NULL (void*)0
32907 static void *task(p)
32910 return (void *) (p == NULL);
32914 int main(argc, argv)
32919 /* pthread test function */
32920 #ifndef PTHREAD_CREATE_DETACHED
32921 #define PTHREAD_CREATE_DETACHED 1
32925 int detach = PTHREAD_CREATE_DETACHED;
32927 #if HAVE_PTHREADS > 4
32928 /* Final pthreads */
32929 pthread_attr_t attr;
32931 status = pthread_attr_init(&attr);
32932 if( status ) return status;
32934 #if HAVE_PTHREADS < 7
32935 status = pthread_attr_setdetachstate(&attr, &detach);
32936 if( status < 0 ) status = errno;
32938 status = pthread_attr_setdetachstate(&attr, detach);
32940 if( status ) return status;
32941 status = pthread_create( &t, &attr, task, NULL );
32942 #if HAVE_PTHREADS < 7
32943 if( status < 0 ) status = errno;
32945 if( status ) return status;
32947 /* Draft 4 pthreads */
32948 status = pthread_create( &t, pthread_attr_default, task, NULL );
32949 if( status ) return errno;
32951 /* give thread a chance to complete */
32952 /* it should remain joinable and hence detachable */
32955 status = pthread_detach( &t );
32956 if( status ) return errno;
32959 #ifdef HAVE_LINUX_THREADS
32960 pthread_kill_other_threads_np();
32968 rm -f conftest$ac_exeext
32969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32970 (eval $ac_link) 2>&5
32972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32973 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32975 (eval $ac_try) 2>&5
32977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32978 (exit $ac_status); }; }; then
32979 ol_cv_pthread_lc_r=yes
32981 echo "$as_me: program exited with status $ac_status" >&5
32982 echo "$as_me: failed program was:" >&5
32983 sed 's/^/| /' conftest.$ac_ext >&5
32985 ( exit $ac_status )
32986 ol_cv_pthread_lc_r=no
32988 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32995 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
32996 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
32998 if test $ol_cv_pthread_lc_r = yes ; then
32999 ol_link_pthreads="-lc_r"
33000 ol_link_threads=posix
33005 # Pthread try link: -threads (ol_cv_pthread_threads)
33006 if test "$ol_link_threads" = no ; then
33008 echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
33009 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
33010 if test "${ol_cv_pthread_threads+set}" = set; then
33011 echo $ECHO_N "(cached) $ECHO_C" >&6
33016 LIBS="-threads $LIBS"
33018 if test "$cross_compiling" = yes; then
33019 cat >conftest.$ac_ext <<_ACEOF
33022 cat confdefs.h >>conftest.$ac_ext
33023 cat >>conftest.$ac_ext <<_ACEOF
33024 /* end confdefs.h. */
33026 /* pthread test headers */
33027 #include <pthread.h>
33028 #if HAVE_PTHREADS < 7
33032 #define NULL (void*)0
33035 static void *task(p)
33038 return (void *) (p == NULL);
33045 /* pthread test function */
33046 #ifndef PTHREAD_CREATE_DETACHED
33047 #define PTHREAD_CREATE_DETACHED 1
33051 int detach = PTHREAD_CREATE_DETACHED;
33053 #if HAVE_PTHREADS > 4
33054 /* Final pthreads */
33055 pthread_attr_t attr;
33057 status = pthread_attr_init(&attr);
33058 if( status ) return status;
33060 #if HAVE_PTHREADS < 7
33061 status = pthread_attr_setdetachstate(&attr, &detach);
33062 if( status < 0 ) status = errno;
33064 status = pthread_attr_setdetachstate(&attr, detach);
33066 if( status ) return status;
33067 status = pthread_create( &t, &attr, task, NULL );
33068 #if HAVE_PTHREADS < 7
33069 if( status < 0 ) status = errno;
33071 if( status ) return status;
33073 /* Draft 4 pthreads */
33074 status = pthread_create( &t, pthread_attr_default, task, NULL );
33075 if( status ) return errno;
33077 /* give thread a chance to complete */
33078 /* it should remain joinable and hence detachable */
33081 status = pthread_detach( &t );
33082 if( status ) return errno;
33085 #ifdef HAVE_LINUX_THREADS
33086 pthread_kill_other_threads_np();
33095 rm -f conftest.$ac_objext conftest$ac_exeext
33096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33097 (eval $ac_link) 2>conftest.er1
33099 grep -v '^ *+' conftest.er1 >conftest.err
33101 cat conftest.err >&5
33102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33103 (exit $ac_status); } &&
33104 { ac_try='test -z "$ac_c_werror_flag"
33105 || test ! -s conftest.err'
33106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33107 (eval $ac_try) 2>&5
33109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33110 (exit $ac_status); }; } &&
33111 { ac_try='test -s conftest$ac_exeext'
33112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33113 (eval $ac_try) 2>&5
33115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33116 (exit $ac_status); }; }; then
33117 ol_cv_pthread_threads=yes
33119 echo "$as_me: failed program was:" >&5
33120 sed 's/^/| /' conftest.$ac_ext >&5
33122 ol_cv_pthread_threads=no
33124 rm -f conftest.err conftest.$ac_objext \
33125 conftest$ac_exeext conftest.$ac_ext
33127 cat >conftest.$ac_ext <<_ACEOF
33129 /* pthread test headers */
33130 #include <pthread.h>
33131 #if HAVE_PTHREADS < 7
33135 #define NULL (void*)0
33138 static void *task(p)
33141 return (void *) (p == NULL);
33145 int main(argc, argv)
33150 /* pthread test function */
33151 #ifndef PTHREAD_CREATE_DETACHED
33152 #define PTHREAD_CREATE_DETACHED 1
33156 int detach = PTHREAD_CREATE_DETACHED;
33158 #if HAVE_PTHREADS > 4
33159 /* Final pthreads */
33160 pthread_attr_t attr;
33162 status = pthread_attr_init(&attr);
33163 if( status ) return status;
33165 #if HAVE_PTHREADS < 7
33166 status = pthread_attr_setdetachstate(&attr, &detach);
33167 if( status < 0 ) status = errno;
33169 status = pthread_attr_setdetachstate(&attr, detach);
33171 if( status ) return status;
33172 status = pthread_create( &t, &attr, task, NULL );
33173 #if HAVE_PTHREADS < 7
33174 if( status < 0 ) status = errno;
33176 if( status ) return status;
33178 /* Draft 4 pthreads */
33179 status = pthread_create( &t, pthread_attr_default, task, NULL );
33180 if( status ) return errno;
33182 /* give thread a chance to complete */
33183 /* it should remain joinable and hence detachable */
33186 status = pthread_detach( &t );
33187 if( status ) return errno;
33190 #ifdef HAVE_LINUX_THREADS
33191 pthread_kill_other_threads_np();
33199 rm -f conftest$ac_exeext
33200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33201 (eval $ac_link) 2>&5
33203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33204 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33206 (eval $ac_try) 2>&5
33208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33209 (exit $ac_status); }; }; then
33210 ol_cv_pthread_threads=yes
33212 echo "$as_me: program exited with status $ac_status" >&5
33213 echo "$as_me: failed program was:" >&5
33214 sed 's/^/| /' conftest.$ac_ext >&5
33216 ( exit $ac_status )
33217 ol_cv_pthread_threads=no
33219 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33226 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
33227 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
33229 if test $ol_cv_pthread_threads = yes ; then
33230 ol_link_pthreads="-threads"
33231 ol_link_threads=posix
33236 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
33237 if test "$ol_link_threads" = no ; then
33238 # try -lpthreads -lmach -lexc -lc_r
33239 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
33240 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
33241 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
33242 echo $ECHO_N "(cached) $ECHO_C" >&6
33247 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
33249 if test "$cross_compiling" = yes; then
33250 cat >conftest.$ac_ext <<_ACEOF
33253 cat confdefs.h >>conftest.$ac_ext
33254 cat >>conftest.$ac_ext <<_ACEOF
33255 /* end confdefs.h. */
33257 /* pthread test headers */
33258 #include <pthread.h>
33259 #if HAVE_PTHREADS < 7
33263 #define NULL (void*)0
33266 static void *task(p)
33269 return (void *) (p == NULL);
33276 /* pthread test function */
33277 #ifndef PTHREAD_CREATE_DETACHED
33278 #define PTHREAD_CREATE_DETACHED 1
33282 int detach = PTHREAD_CREATE_DETACHED;
33284 #if HAVE_PTHREADS > 4
33285 /* Final pthreads */
33286 pthread_attr_t attr;
33288 status = pthread_attr_init(&attr);
33289 if( status ) return status;
33291 #if HAVE_PTHREADS < 7
33292 status = pthread_attr_setdetachstate(&attr, &detach);
33293 if( status < 0 ) status = errno;
33295 status = pthread_attr_setdetachstate(&attr, detach);
33297 if( status ) return status;
33298 status = pthread_create( &t, &attr, task, NULL );
33299 #if HAVE_PTHREADS < 7
33300 if( status < 0 ) status = errno;
33302 if( status ) return status;
33304 /* Draft 4 pthreads */
33305 status = pthread_create( &t, pthread_attr_default, task, NULL );
33306 if( status ) return errno;
33308 /* give thread a chance to complete */
33309 /* it should remain joinable and hence detachable */
33312 status = pthread_detach( &t );
33313 if( status ) return errno;
33316 #ifdef HAVE_LINUX_THREADS
33317 pthread_kill_other_threads_np();
33326 rm -f conftest.$ac_objext conftest$ac_exeext
33327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33328 (eval $ac_link) 2>conftest.er1
33330 grep -v '^ *+' conftest.er1 >conftest.err
33332 cat conftest.err >&5
33333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33334 (exit $ac_status); } &&
33335 { ac_try='test -z "$ac_c_werror_flag"
33336 || test ! -s conftest.err'
33337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33338 (eval $ac_try) 2>&5
33340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33341 (exit $ac_status); }; } &&
33342 { ac_try='test -s conftest$ac_exeext'
33343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33344 (eval $ac_try) 2>&5
33346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33347 (exit $ac_status); }; }; then
33348 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
33350 echo "$as_me: failed program was:" >&5
33351 sed 's/^/| /' conftest.$ac_ext >&5
33353 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
33355 rm -f conftest.err conftest.$ac_objext \
33356 conftest$ac_exeext conftest.$ac_ext
33358 cat >conftest.$ac_ext <<_ACEOF
33360 /* pthread test headers */
33361 #include <pthread.h>
33362 #if HAVE_PTHREADS < 7
33366 #define NULL (void*)0
33369 static void *task(p)
33372 return (void *) (p == NULL);
33376 int main(argc, argv)
33381 /* pthread test function */
33382 #ifndef PTHREAD_CREATE_DETACHED
33383 #define PTHREAD_CREATE_DETACHED 1
33387 int detach = PTHREAD_CREATE_DETACHED;
33389 #if HAVE_PTHREADS > 4
33390 /* Final pthreads */
33391 pthread_attr_t attr;
33393 status = pthread_attr_init(&attr);
33394 if( status ) return status;
33396 #if HAVE_PTHREADS < 7
33397 status = pthread_attr_setdetachstate(&attr, &detach);
33398 if( status < 0 ) status = errno;
33400 status = pthread_attr_setdetachstate(&attr, detach);
33402 if( status ) return status;
33403 status = pthread_create( &t, &attr, task, NULL );
33404 #if HAVE_PTHREADS < 7
33405 if( status < 0 ) status = errno;
33407 if( status ) return status;
33409 /* Draft 4 pthreads */
33410 status = pthread_create( &t, pthread_attr_default, task, NULL );
33411 if( status ) return errno;
33413 /* give thread a chance to complete */
33414 /* it should remain joinable and hence detachable */
33417 status = pthread_detach( &t );
33418 if( status ) return errno;
33421 #ifdef HAVE_LINUX_THREADS
33422 pthread_kill_other_threads_np();
33430 rm -f conftest$ac_exeext
33431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33432 (eval $ac_link) 2>&5
33434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33435 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33437 (eval $ac_try) 2>&5
33439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33440 (exit $ac_status); }; }; then
33441 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
33443 echo "$as_me: program exited with status $ac_status" >&5
33444 echo "$as_me: failed program was:" >&5
33445 sed 's/^/| /' conftest.$ac_ext >&5
33447 ( exit $ac_status )
33448 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
33450 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33457 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
33458 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
33460 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
33461 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
33462 ol_link_threads=posix
33466 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
33467 if test "$ol_link_threads" = no ; then
33468 # try -lpthreads -lmach -lexc
33469 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
33470 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
33471 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
33472 echo $ECHO_N "(cached) $ECHO_C" >&6
33477 LIBS="-lpthreads -lmach -lexc $LIBS"
33479 if test "$cross_compiling" = yes; then
33480 cat >conftest.$ac_ext <<_ACEOF
33483 cat confdefs.h >>conftest.$ac_ext
33484 cat >>conftest.$ac_ext <<_ACEOF
33485 /* end confdefs.h. */
33487 /* pthread test headers */
33488 #include <pthread.h>
33489 #if HAVE_PTHREADS < 7
33493 #define NULL (void*)0
33496 static void *task(p)
33499 return (void *) (p == NULL);
33506 /* pthread test function */
33507 #ifndef PTHREAD_CREATE_DETACHED
33508 #define PTHREAD_CREATE_DETACHED 1
33512 int detach = PTHREAD_CREATE_DETACHED;
33514 #if HAVE_PTHREADS > 4
33515 /* Final pthreads */
33516 pthread_attr_t attr;
33518 status = pthread_attr_init(&attr);
33519 if( status ) return status;
33521 #if HAVE_PTHREADS < 7
33522 status = pthread_attr_setdetachstate(&attr, &detach);
33523 if( status < 0 ) status = errno;
33525 status = pthread_attr_setdetachstate(&attr, detach);
33527 if( status ) return status;
33528 status = pthread_create( &t, &attr, task, NULL );
33529 #if HAVE_PTHREADS < 7
33530 if( status < 0 ) status = errno;
33532 if( status ) return status;
33534 /* Draft 4 pthreads */
33535 status = pthread_create( &t, pthread_attr_default, task, NULL );
33536 if( status ) return errno;
33538 /* give thread a chance to complete */
33539 /* it should remain joinable and hence detachable */
33542 status = pthread_detach( &t );
33543 if( status ) return errno;
33546 #ifdef HAVE_LINUX_THREADS
33547 pthread_kill_other_threads_np();
33556 rm -f conftest.$ac_objext conftest$ac_exeext
33557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33558 (eval $ac_link) 2>conftest.er1
33560 grep -v '^ *+' conftest.er1 >conftest.err
33562 cat conftest.err >&5
33563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33564 (exit $ac_status); } &&
33565 { ac_try='test -z "$ac_c_werror_flag"
33566 || test ! -s conftest.err'
33567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33568 (eval $ac_try) 2>&5
33570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33571 (exit $ac_status); }; } &&
33572 { ac_try='test -s conftest$ac_exeext'
33573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33574 (eval $ac_try) 2>&5
33576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33577 (exit $ac_status); }; }; then
33578 ol_cv_pthread_lpthreads_lmach_lexc=yes
33580 echo "$as_me: failed program was:" >&5
33581 sed 's/^/| /' conftest.$ac_ext >&5
33583 ol_cv_pthread_lpthreads_lmach_lexc=no
33585 rm -f conftest.err conftest.$ac_objext \
33586 conftest$ac_exeext conftest.$ac_ext
33588 cat >conftest.$ac_ext <<_ACEOF
33590 /* pthread test headers */
33591 #include <pthread.h>
33592 #if HAVE_PTHREADS < 7
33596 #define NULL (void*)0
33599 static void *task(p)
33602 return (void *) (p == NULL);
33606 int main(argc, argv)
33611 /* pthread test function */
33612 #ifndef PTHREAD_CREATE_DETACHED
33613 #define PTHREAD_CREATE_DETACHED 1
33617 int detach = PTHREAD_CREATE_DETACHED;
33619 #if HAVE_PTHREADS > 4
33620 /* Final pthreads */
33621 pthread_attr_t attr;
33623 status = pthread_attr_init(&attr);
33624 if( status ) return status;
33626 #if HAVE_PTHREADS < 7
33627 status = pthread_attr_setdetachstate(&attr, &detach);
33628 if( status < 0 ) status = errno;
33630 status = pthread_attr_setdetachstate(&attr, detach);
33632 if( status ) return status;
33633 status = pthread_create( &t, &attr, task, NULL );
33634 #if HAVE_PTHREADS < 7
33635 if( status < 0 ) status = errno;
33637 if( status ) return status;
33639 /* Draft 4 pthreads */
33640 status = pthread_create( &t, pthread_attr_default, task, NULL );
33641 if( status ) return errno;
33643 /* give thread a chance to complete */
33644 /* it should remain joinable and hence detachable */
33647 status = pthread_detach( &t );
33648 if( status ) return errno;
33651 #ifdef HAVE_LINUX_THREADS
33652 pthread_kill_other_threads_np();
33660 rm -f conftest$ac_exeext
33661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33662 (eval $ac_link) 2>&5
33664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33665 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33667 (eval $ac_try) 2>&5
33669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33670 (exit $ac_status); }; }; then
33671 ol_cv_pthread_lpthreads_lmach_lexc=yes
33673 echo "$as_me: program exited with status $ac_status" >&5
33674 echo "$as_me: failed program was:" >&5
33675 sed 's/^/| /' conftest.$ac_ext >&5
33677 ( exit $ac_status )
33678 ol_cv_pthread_lpthreads_lmach_lexc=no
33680 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33687 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
33688 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
33690 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
33691 ol_link_pthreads="-lpthreads -lmach -lexc"
33692 ol_link_threads=posix
33696 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
33697 if test "$ol_link_threads" = no ; then
33698 # try -lpthreads -lexc
33699 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
33700 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
33701 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
33702 echo $ECHO_N "(cached) $ECHO_C" >&6
33707 LIBS="-lpthreads -lexc $LIBS"
33709 if test "$cross_compiling" = yes; then
33710 cat >conftest.$ac_ext <<_ACEOF
33713 cat confdefs.h >>conftest.$ac_ext
33714 cat >>conftest.$ac_ext <<_ACEOF
33715 /* end confdefs.h. */
33717 /* pthread test headers */
33718 #include <pthread.h>
33719 #if HAVE_PTHREADS < 7
33723 #define NULL (void*)0
33726 static void *task(p)
33729 return (void *) (p == NULL);
33736 /* pthread test function */
33737 #ifndef PTHREAD_CREATE_DETACHED
33738 #define PTHREAD_CREATE_DETACHED 1
33742 int detach = PTHREAD_CREATE_DETACHED;
33744 #if HAVE_PTHREADS > 4
33745 /* Final pthreads */
33746 pthread_attr_t attr;
33748 status = pthread_attr_init(&attr);
33749 if( status ) return status;
33751 #if HAVE_PTHREADS < 7
33752 status = pthread_attr_setdetachstate(&attr, &detach);
33753 if( status < 0 ) status = errno;
33755 status = pthread_attr_setdetachstate(&attr, detach);
33757 if( status ) return status;
33758 status = pthread_create( &t, &attr, task, NULL );
33759 #if HAVE_PTHREADS < 7
33760 if( status < 0 ) status = errno;
33762 if( status ) return status;
33764 /* Draft 4 pthreads */
33765 status = pthread_create( &t, pthread_attr_default, task, NULL );
33766 if( status ) return errno;
33768 /* give thread a chance to complete */
33769 /* it should remain joinable and hence detachable */
33772 status = pthread_detach( &t );
33773 if( status ) return errno;
33776 #ifdef HAVE_LINUX_THREADS
33777 pthread_kill_other_threads_np();
33786 rm -f conftest.$ac_objext conftest$ac_exeext
33787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33788 (eval $ac_link) 2>conftest.er1
33790 grep -v '^ *+' conftest.er1 >conftest.err
33792 cat conftest.err >&5
33793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33794 (exit $ac_status); } &&
33795 { ac_try='test -z "$ac_c_werror_flag"
33796 || test ! -s conftest.err'
33797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33798 (eval $ac_try) 2>&5
33800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33801 (exit $ac_status); }; } &&
33802 { ac_try='test -s conftest$ac_exeext'
33803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33804 (eval $ac_try) 2>&5
33806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33807 (exit $ac_status); }; }; then
33808 ol_cv_pthread_lpthreads_lexc=yes
33810 echo "$as_me: failed program was:" >&5
33811 sed 's/^/| /' conftest.$ac_ext >&5
33813 ol_cv_pthread_lpthreads_lexc=no
33815 rm -f conftest.err conftest.$ac_objext \
33816 conftest$ac_exeext conftest.$ac_ext
33818 cat >conftest.$ac_ext <<_ACEOF
33820 /* pthread test headers */
33821 #include <pthread.h>
33822 #if HAVE_PTHREADS < 7
33826 #define NULL (void*)0
33829 static void *task(p)
33832 return (void *) (p == NULL);
33836 int main(argc, argv)
33841 /* pthread test function */
33842 #ifndef PTHREAD_CREATE_DETACHED
33843 #define PTHREAD_CREATE_DETACHED 1
33847 int detach = PTHREAD_CREATE_DETACHED;
33849 #if HAVE_PTHREADS > 4
33850 /* Final pthreads */
33851 pthread_attr_t attr;
33853 status = pthread_attr_init(&attr);
33854 if( status ) return status;
33856 #if HAVE_PTHREADS < 7
33857 status = pthread_attr_setdetachstate(&attr, &detach);
33858 if( status < 0 ) status = errno;
33860 status = pthread_attr_setdetachstate(&attr, detach);
33862 if( status ) return status;
33863 status = pthread_create( &t, &attr, task, NULL );
33864 #if HAVE_PTHREADS < 7
33865 if( status < 0 ) status = errno;
33867 if( status ) return status;
33869 /* Draft 4 pthreads */
33870 status = pthread_create( &t, pthread_attr_default, task, NULL );
33871 if( status ) return errno;
33873 /* give thread a chance to complete */
33874 /* it should remain joinable and hence detachable */
33877 status = pthread_detach( &t );
33878 if( status ) return errno;
33881 #ifdef HAVE_LINUX_THREADS
33882 pthread_kill_other_threads_np();
33890 rm -f conftest$ac_exeext
33891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33892 (eval $ac_link) 2>&5
33894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33895 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33897 (eval $ac_try) 2>&5
33899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33900 (exit $ac_status); }; }; then
33901 ol_cv_pthread_lpthreads_lexc=yes
33903 echo "$as_me: program exited with status $ac_status" >&5
33904 echo "$as_me: failed program was:" >&5
33905 sed 's/^/| /' conftest.$ac_ext >&5
33907 ( exit $ac_status )
33908 ol_cv_pthread_lpthreads_lexc=no
33910 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33917 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
33918 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
33920 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
33921 ol_link_pthreads="-lpthreads -lexc"
33922 ol_link_threads=posix
33927 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
33928 if test "$ol_link_threads" = no ; then
33930 echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
33931 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
33932 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
33933 echo $ECHO_N "(cached) $ECHO_C" >&6
33938 LIBS="-lpthreads $LIBS"
33940 if test "$cross_compiling" = yes; then
33941 cat >conftest.$ac_ext <<_ACEOF
33944 cat confdefs.h >>conftest.$ac_ext
33945 cat >>conftest.$ac_ext <<_ACEOF
33946 /* end confdefs.h. */
33948 /* pthread test headers */
33949 #include <pthread.h>
33950 #if HAVE_PTHREADS < 7
33954 #define NULL (void*)0
33957 static void *task(p)
33960 return (void *) (p == NULL);
33967 /* pthread test function */
33968 #ifndef PTHREAD_CREATE_DETACHED
33969 #define PTHREAD_CREATE_DETACHED 1
33973 int detach = PTHREAD_CREATE_DETACHED;
33975 #if HAVE_PTHREADS > 4
33976 /* Final pthreads */
33977 pthread_attr_t attr;
33979 status = pthread_attr_init(&attr);
33980 if( status ) return status;
33982 #if HAVE_PTHREADS < 7
33983 status = pthread_attr_setdetachstate(&attr, &detach);
33984 if( status < 0 ) status = errno;
33986 status = pthread_attr_setdetachstate(&attr, detach);
33988 if( status ) return status;
33989 status = pthread_create( &t, &attr, task, NULL );
33990 #if HAVE_PTHREADS < 7
33991 if( status < 0 ) status = errno;
33993 if( status ) return status;
33995 /* Draft 4 pthreads */
33996 status = pthread_create( &t, pthread_attr_default, task, NULL );
33997 if( status ) return errno;
33999 /* give thread a chance to complete */
34000 /* it should remain joinable and hence detachable */
34003 status = pthread_detach( &t );
34004 if( status ) return errno;
34007 #ifdef HAVE_LINUX_THREADS
34008 pthread_kill_other_threads_np();
34017 rm -f conftest.$ac_objext conftest$ac_exeext
34018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34019 (eval $ac_link) 2>conftest.er1
34021 grep -v '^ *+' conftest.er1 >conftest.err
34023 cat conftest.err >&5
34024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34025 (exit $ac_status); } &&
34026 { ac_try='test -z "$ac_c_werror_flag"
34027 || test ! -s conftest.err'
34028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34029 (eval $ac_try) 2>&5
34031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34032 (exit $ac_status); }; } &&
34033 { ac_try='test -s conftest$ac_exeext'
34034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34035 (eval $ac_try) 2>&5
34037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34038 (exit $ac_status); }; }; then
34039 ol_cv_pthread_lib_lpthreads=yes
34041 echo "$as_me: failed program was:" >&5
34042 sed 's/^/| /' conftest.$ac_ext >&5
34044 ol_cv_pthread_lib_lpthreads=no
34046 rm -f conftest.err conftest.$ac_objext \
34047 conftest$ac_exeext conftest.$ac_ext
34049 cat >conftest.$ac_ext <<_ACEOF
34051 /* pthread test headers */
34052 #include <pthread.h>
34053 #if HAVE_PTHREADS < 7
34057 #define NULL (void*)0
34060 static void *task(p)
34063 return (void *) (p == NULL);
34067 int main(argc, argv)
34072 /* pthread test function */
34073 #ifndef PTHREAD_CREATE_DETACHED
34074 #define PTHREAD_CREATE_DETACHED 1
34078 int detach = PTHREAD_CREATE_DETACHED;
34080 #if HAVE_PTHREADS > 4
34081 /* Final pthreads */
34082 pthread_attr_t attr;
34084 status = pthread_attr_init(&attr);
34085 if( status ) return status;
34087 #if HAVE_PTHREADS < 7
34088 status = pthread_attr_setdetachstate(&attr, &detach);
34089 if( status < 0 ) status = errno;
34091 status = pthread_attr_setdetachstate(&attr, detach);
34093 if( status ) return status;
34094 status = pthread_create( &t, &attr, task, NULL );
34095 #if HAVE_PTHREADS < 7
34096 if( status < 0 ) status = errno;
34098 if( status ) return status;
34100 /* Draft 4 pthreads */
34101 status = pthread_create( &t, pthread_attr_default, task, NULL );
34102 if( status ) return errno;
34104 /* give thread a chance to complete */
34105 /* it should remain joinable and hence detachable */
34108 status = pthread_detach( &t );
34109 if( status ) return errno;
34112 #ifdef HAVE_LINUX_THREADS
34113 pthread_kill_other_threads_np();
34121 rm -f conftest$ac_exeext
34122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34123 (eval $ac_link) 2>&5
34125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34126 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34128 (eval $ac_try) 2>&5
34130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34131 (exit $ac_status); }; }; then
34132 ol_cv_pthread_lib_lpthreads=yes
34134 echo "$as_me: program exited with status $ac_status" >&5
34135 echo "$as_me: failed program was:" >&5
34136 sed 's/^/| /' conftest.$ac_ext >&5
34138 ( exit $ac_status )
34139 ol_cv_pthread_lib_lpthreads=no
34141 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34148 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
34149 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
34151 if test $ol_cv_pthread_lib_lpthreads = yes ; then
34152 ol_link_pthreads="-lpthreads"
34153 ol_link_threads=posix
34158 if test $ol_link_threads != no ; then
34159 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
34161 save_CPPFLAGS="$CPPFLAGS"
34163 LIBS="$LTHREAD_LIBS $LIBS"
34168 for ac_func in sched_yield pthread_yield thr_yield
34170 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34171 echo "$as_me:$LINENO: checking for $ac_func" >&5
34172 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34173 if eval "test \"\${$as_ac_var+set}\" = set"; then
34174 echo $ECHO_N "(cached) $ECHO_C" >&6
34176 cat >conftest.$ac_ext <<_ACEOF
34179 cat confdefs.h >>conftest.$ac_ext
34180 cat >>conftest.$ac_ext <<_ACEOF
34181 /* end confdefs.h. */
34182 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34184 #define $ac_func innocuous_$ac_func
34186 /* System header to define __stub macros and hopefully few prototypes,
34187 which can conflict with char $ac_func (); below.
34188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34189 <limits.h> exists even on freestanding compilers. */
34192 # include <limits.h>
34194 # include <assert.h>
34199 /* Override any gcc2 internal prototype to avoid an error. */
34204 /* We use char because int might match the return type of a gcc2
34205 builtin and then its argument prototype would still apply. */
34207 /* The GNU C library defines this for functions which it implements
34208 to always fail with ENOSYS. Some functions are actually named
34209 something starting with __ and the normal name is an alias. */
34210 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34213 char (*f) () = $ac_func;
34222 return f != $ac_func;
34227 rm -f conftest.$ac_objext conftest$ac_exeext
34228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34229 (eval $ac_link) 2>conftest.er1
34231 grep -v '^ *+' conftest.er1 >conftest.err
34233 cat conftest.err >&5
34234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34235 (exit $ac_status); } &&
34236 { ac_try='test -z "$ac_c_werror_flag"
34237 || test ! -s conftest.err'
34238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34239 (eval $ac_try) 2>&5
34241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34242 (exit $ac_status); }; } &&
34243 { ac_try='test -s conftest$ac_exeext'
34244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34245 (eval $ac_try) 2>&5
34247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34248 (exit $ac_status); }; }; then
34249 eval "$as_ac_var=yes"
34251 echo "$as_me: failed program was:" >&5
34252 sed 's/^/| /' conftest.$ac_ext >&5
34254 eval "$as_ac_var=no"
34256 rm -f conftest.err conftest.$ac_objext \
34257 conftest$ac_exeext conftest.$ac_ext
34259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34260 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34261 if test `eval echo '${'$as_ac_var'}'` = yes; then
34262 cat >>confdefs.h <<_ACEOF
34263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34270 if test $ac_cv_func_sched_yield = no -a \
34271 $ac_cv_func_pthread_yield = no -a \
34272 $ac_cv_func_thr_yield = no ; then
34273 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
34274 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
34275 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
34276 echo $ECHO_N "(cached) $ECHO_C" >&6
34278 ac_check_lib_save_LIBS=$LIBS
34280 cat >conftest.$ac_ext <<_ACEOF
34283 cat confdefs.h >>conftest.$ac_ext
34284 cat >>conftest.$ac_ext <<_ACEOF
34285 /* end confdefs.h. */
34287 /* Override any gcc2 internal prototype to avoid an error. */
34291 /* We use char because int might match the return type of a gcc2
34292 builtin and then its argument prototype would still apply. */
34293 char sched_yield ();
34302 rm -f conftest.$ac_objext conftest$ac_exeext
34303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34304 (eval $ac_link) 2>conftest.er1
34306 grep -v '^ *+' conftest.er1 >conftest.err
34308 cat conftest.err >&5
34309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34310 (exit $ac_status); } &&
34311 { ac_try='test -z "$ac_c_werror_flag"
34312 || test ! -s conftest.err'
34313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34314 (eval $ac_try) 2>&5
34316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34317 (exit $ac_status); }; } &&
34318 { ac_try='test -s conftest$ac_exeext'
34319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34320 (eval $ac_try) 2>&5
34322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34323 (exit $ac_status); }; }; then
34324 ac_cv_lib_rt_sched_yield=yes
34326 echo "$as_me: failed program was:" >&5
34327 sed 's/^/| /' conftest.$ac_ext >&5
34329 ac_cv_lib_rt_sched_yield=no
34331 rm -f conftest.err conftest.$ac_objext \
34332 conftest$ac_exeext conftest.$ac_ext
34333 LIBS=$ac_check_lib_save_LIBS
34335 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
34336 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
34337 if test $ac_cv_lib_rt_sched_yield = yes; then
34338 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
34340 cat >>confdefs.h <<\_ACEOF
34341 #define HAVE_SCHED_YIELD 1
34344 ac_cv_func_sched_yield=yes
34346 ac_cv_func_sched_yield=no
34350 if test $ac_cv_func_sched_yield = no -a \
34351 $ac_cv_func_pthread_yield = no -a \
34352 "$ac_cv_func_thr_yield" = no ; then
34353 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
34354 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
34359 for ac_func in pthread_kill pthread_rwlock_destroy
34361 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34362 echo "$as_me:$LINENO: checking for $ac_func" >&5
34363 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34364 if eval "test \"\${$as_ac_var+set}\" = set"; then
34365 echo $ECHO_N "(cached) $ECHO_C" >&6
34367 cat >conftest.$ac_ext <<_ACEOF
34370 cat confdefs.h >>conftest.$ac_ext
34371 cat >>conftest.$ac_ext <<_ACEOF
34372 /* end confdefs.h. */
34373 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34374 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34375 #define $ac_func innocuous_$ac_func
34377 /* System header to define __stub macros and hopefully few prototypes,
34378 which can conflict with char $ac_func (); below.
34379 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34380 <limits.h> exists even on freestanding compilers. */
34383 # include <limits.h>
34385 # include <assert.h>
34390 /* Override any gcc2 internal prototype to avoid an error. */
34395 /* We use char because int might match the return type of a gcc2
34396 builtin and then its argument prototype would still apply. */
34398 /* The GNU C library defines this for functions which it implements
34399 to always fail with ENOSYS. Some functions are actually named
34400 something starting with __ and the normal name is an alias. */
34401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34404 char (*f) () = $ac_func;
34413 return f != $ac_func;
34418 rm -f conftest.$ac_objext conftest$ac_exeext
34419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34420 (eval $ac_link) 2>conftest.er1
34422 grep -v '^ *+' conftest.er1 >conftest.err
34424 cat conftest.err >&5
34425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34426 (exit $ac_status); } &&
34427 { ac_try='test -z "$ac_c_werror_flag"
34428 || test ! -s conftest.err'
34429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34430 (eval $ac_try) 2>&5
34432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34433 (exit $ac_status); }; } &&
34434 { ac_try='test -s conftest$ac_exeext'
34435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34436 (eval $ac_try) 2>&5
34438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34439 (exit $ac_status); }; }; then
34440 eval "$as_ac_var=yes"
34442 echo "$as_me: failed program was:" >&5
34443 sed 's/^/| /' conftest.$ac_ext >&5
34445 eval "$as_ac_var=no"
34447 rm -f conftest.err conftest.$ac_objext \
34448 conftest$ac_exeext conftest.$ac_ext
34450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34451 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34452 if test `eval echo '${'$as_ac_var'}'` = yes; then
34453 cat >>confdefs.h <<_ACEOF
34454 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34461 echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
34462 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
34463 if test "${ol_cv_func_pthread_detach+set}" = set; then
34464 echo $ECHO_N "(cached) $ECHO_C" >&6
34467 cat >conftest.$ac_ext <<_ACEOF
34470 cat confdefs.h >>conftest.$ac_ext
34471 cat >>conftest.$ac_ext <<_ACEOF
34472 /* end confdefs.h. */
34474 #include <pthread.h>
34476 #define NULL (void*)0
34482 pthread_detach(NULL);
34487 rm -f conftest.$ac_objext conftest$ac_exeext
34488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34489 (eval $ac_link) 2>conftest.er1
34491 grep -v '^ *+' conftest.er1 >conftest.err
34493 cat conftest.err >&5
34494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34495 (exit $ac_status); } &&
34496 { ac_try='test -z "$ac_c_werror_flag"
34497 || test ! -s conftest.err'
34498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34499 (eval $ac_try) 2>&5
34501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34502 (exit $ac_status); }; } &&
34503 { ac_try='test -s conftest$ac_exeext'
34504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34505 (eval $ac_try) 2>&5
34507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34508 (exit $ac_status); }; }; then
34509 ol_cv_func_pthread_detach=yes
34511 echo "$as_me: failed program was:" >&5
34512 sed 's/^/| /' conftest.$ac_ext >&5
34514 ol_cv_func_pthread_detach=no
34516 rm -f conftest.err conftest.$ac_objext \
34517 conftest$ac_exeext conftest.$ac_ext
34520 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
34521 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
34523 if test $ol_cv_func_pthread_detach = no ; then
34524 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
34525 echo "$as_me: error: could not locate pthread_detach()" >&2;}
34526 { (exit 1); exit 1; }; }
34530 cat >>confdefs.h <<\_ACEOF
34531 #define HAVE_PTHREAD_DETACH 1
34540 pthread_setconcurrency \
34541 pthread_getconcurrency \
34542 thr_setconcurrency \
34543 thr_getconcurrency \
34546 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34547 echo "$as_me:$LINENO: checking for $ac_func" >&5
34548 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34549 if eval "test \"\${$as_ac_var+set}\" = set"; then
34550 echo $ECHO_N "(cached) $ECHO_C" >&6
34552 cat >conftest.$ac_ext <<_ACEOF
34555 cat confdefs.h >>conftest.$ac_ext
34556 cat >>conftest.$ac_ext <<_ACEOF
34557 /* end confdefs.h. */
34558 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34560 #define $ac_func innocuous_$ac_func
34562 /* System header to define __stub macros and hopefully few prototypes,
34563 which can conflict with char $ac_func (); below.
34564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34565 <limits.h> exists even on freestanding compilers. */
34568 # include <limits.h>
34570 # include <assert.h>
34575 /* Override any gcc2 internal prototype to avoid an error. */
34580 /* We use char because int might match the return type of a gcc2
34581 builtin and then its argument prototype would still apply. */
34583 /* The GNU C library defines this for functions which it implements
34584 to always fail with ENOSYS. Some functions are actually named
34585 something starting with __ and the normal name is an alias. */
34586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34589 char (*f) () = $ac_func;
34598 return f != $ac_func;
34603 rm -f conftest.$ac_objext conftest$ac_exeext
34604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34605 (eval $ac_link) 2>conftest.er1
34607 grep -v '^ *+' conftest.er1 >conftest.err
34609 cat conftest.err >&5
34610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34611 (exit $ac_status); } &&
34612 { ac_try='test -z "$ac_c_werror_flag"
34613 || test ! -s conftest.err'
34614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34615 (eval $ac_try) 2>&5
34617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34618 (exit $ac_status); }; } &&
34619 { ac_try='test -s conftest$ac_exeext'
34620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34621 (eval $ac_try) 2>&5
34623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34624 (exit $ac_status); }; }; then
34625 eval "$as_ac_var=yes"
34627 echo "$as_me: failed program was:" >&5
34628 sed 's/^/| /' conftest.$ac_ext >&5
34630 eval "$as_ac_var=no"
34632 rm -f conftest.err conftest.$ac_objext \
34633 conftest$ac_exeext conftest.$ac_ext
34635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34636 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34637 if test `eval echo '${'$as_ac_var'}'` = yes; then
34638 cat >>confdefs.h <<_ACEOF
34639 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34648 for ac_func in pthread_kill_other_threads_np
34650 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34651 echo "$as_me:$LINENO: checking for $ac_func" >&5
34652 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34653 if eval "test \"\${$as_ac_var+set}\" = set"; then
34654 echo $ECHO_N "(cached) $ECHO_C" >&6
34656 cat >conftest.$ac_ext <<_ACEOF
34659 cat confdefs.h >>conftest.$ac_ext
34660 cat >>conftest.$ac_ext <<_ACEOF
34661 /* end confdefs.h. */
34662 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34664 #define $ac_func innocuous_$ac_func
34666 /* System header to define __stub macros and hopefully few prototypes,
34667 which can conflict with char $ac_func (); below.
34668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34669 <limits.h> exists even on freestanding compilers. */
34672 # include <limits.h>
34674 # include <assert.h>
34679 /* Override any gcc2 internal prototype to avoid an error. */
34684 /* We use char because int might match the return type of a gcc2
34685 builtin and then its argument prototype would still apply. */
34687 /* The GNU C library defines this for functions which it implements
34688 to always fail with ENOSYS. Some functions are actually named
34689 something starting with __ and the normal name is an alias. */
34690 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34693 char (*f) () = $ac_func;
34702 return f != $ac_func;
34707 rm -f conftest.$ac_objext conftest$ac_exeext
34708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34709 (eval $ac_link) 2>conftest.er1
34711 grep -v '^ *+' conftest.er1 >conftest.err
34713 cat conftest.err >&5
34714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34715 (exit $ac_status); } &&
34716 { ac_try='test -z "$ac_c_werror_flag"
34717 || test ! -s conftest.err'
34718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34719 (eval $ac_try) 2>&5
34721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34722 (exit $ac_status); }; } &&
34723 { ac_try='test -s conftest$ac_exeext'
34724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34725 (eval $ac_try) 2>&5
34727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34728 (exit $ac_status); }; }; then
34729 eval "$as_ac_var=yes"
34731 echo "$as_me: failed program was:" >&5
34732 sed 's/^/| /' conftest.$ac_ext >&5
34734 eval "$as_ac_var=no"
34736 rm -f conftest.err conftest.$ac_objext \
34737 conftest$ac_exeext conftest.$ac_ext
34739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34740 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34741 if test `eval echo '${'$as_ac_var'}'` = yes; then
34742 cat >>confdefs.h <<_ACEOF
34743 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34749 echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
34750 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
34751 if test "${ol_cv_sys_linux_threads+set}" = set; then
34752 echo $ECHO_N "(cached) $ECHO_C" >&6
34754 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
34756 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
34757 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
34762 echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
34763 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
34764 if test "${ol_cv_linux_threads+set}" = set; then
34765 echo $ECHO_N "(cached) $ECHO_C" >&6
34768 if test $ol_cv_header_linux_threads = yes -a \
34769 $ol_cv_sys_linux_threads = yes; then
34770 ol_cv_linux_threads=yes
34771 elif test $ol_cv_header_linux_threads = no -a \
34772 $ol_cv_sys_linux_threads = no; then
34773 ol_cv_linux_threads=no
34775 ol_cv_linux_threads=error
34779 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
34780 echo "${ECHO_T}$ol_cv_linux_threads" >&6
34783 if test $ol_cv_linux_threads = error; then
34784 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
34785 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
34786 { (exit 1); exit 1; }; };
34789 echo "$as_me:$LINENO: checking if pthread_create() works" >&5
34790 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
34791 if test "${ol_cv_pthread_create_works+set}" = set; then
34792 echo $ECHO_N "(cached) $ECHO_C" >&6
34795 if test "$cross_compiling" = yes; then
34796 ol_cv_pthread_create_works=yes
34798 cat >conftest.$ac_ext <<_ACEOF
34800 /* pthread test headers */
34801 #include <pthread.h>
34802 #if HAVE_PTHREADS < 7
34806 #define NULL (void*)0
34809 static void *task(p)
34812 return (void *) (p == NULL);
34816 int main(argc, argv)
34821 /* pthread test function */
34822 #ifndef PTHREAD_CREATE_DETACHED
34823 #define PTHREAD_CREATE_DETACHED 1
34827 int detach = PTHREAD_CREATE_DETACHED;
34829 #if HAVE_PTHREADS > 4
34830 /* Final pthreads */
34831 pthread_attr_t attr;
34833 status = pthread_attr_init(&attr);
34834 if( status ) return status;
34836 #if HAVE_PTHREADS < 7
34837 status = pthread_attr_setdetachstate(&attr, &detach);
34838 if( status < 0 ) status = errno;
34840 status = pthread_attr_setdetachstate(&attr, detach);
34842 if( status ) return status;
34843 status = pthread_create( &t, &attr, task, NULL );
34844 #if HAVE_PTHREADS < 7
34845 if( status < 0 ) status = errno;
34847 if( status ) return status;
34849 /* Draft 4 pthreads */
34850 status = pthread_create( &t, pthread_attr_default, task, NULL );
34851 if( status ) return errno;
34853 /* give thread a chance to complete */
34854 /* it should remain joinable and hence detachable */
34857 status = pthread_detach( &t );
34858 if( status ) return errno;
34861 #ifdef HAVE_LINUX_THREADS
34862 pthread_kill_other_threads_np();
34870 rm -f conftest$ac_exeext
34871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34872 (eval $ac_link) 2>&5
34874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34875 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34877 (eval $ac_try) 2>&5
34879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34880 (exit $ac_status); }; }; then
34881 ol_cv_pthread_create_works=yes
34883 echo "$as_me: program exited with status $ac_status" >&5
34884 echo "$as_me: failed program was:" >&5
34885 sed 's/^/| /' conftest.$ac_ext >&5
34887 ( exit $ac_status )
34888 ol_cv_pthread_create_works=no
34890 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34893 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
34894 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
34896 if test $ol_cv_pthread_create_works = no ; then
34897 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
34898 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
34899 { (exit 1); exit 1; }; }
34902 if test $ol_with_yielding_select = auto ; then
34903 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
34904 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
34905 if test "${ol_cv_pthread_select_yields+set}" = set; then
34906 echo $ECHO_N "(cached) $ECHO_C" >&6
34909 if test "$cross_compiling" = yes; then
34910 ol_cv_pthread_select_yields=cross
34912 cat >conftest.$ac_ext <<_ACEOF
34915 cat confdefs.h >>conftest.$ac_ext
34916 cat >>conftest.$ac_ext <<_ACEOF
34917 /* end confdefs.h. */
34919 #include <sys/types.h>
34920 #include <sys/time.h>
34921 #include <unistd.h>
34922 #include <pthread.h>
34924 #define NULL (void*) 0
34927 static int fildes[2];
34929 static void *task(p)
34941 FD_SET(fildes[0], &rfds);
34943 /* we're not interested in any fds */
34944 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
34951 exit(0); /* if we exit here, the select blocked the whole process */
34954 int main(argc, argv)
34960 /* create a pipe to select */
34961 if(pipe(&fildes[0])) {
34966 #ifdef HAVE_PTHREAD_SETCONCURRENCY
34967 (void) pthread_setconcurrency(2);
34969 #ifdef HAVE_THR_SETCONCURRENCY
34970 /* Set Solaris LWP concurrency to 2 */
34971 thr_setconcurrency(2);
34975 #if HAVE_PTHREADS < 6
34976 pthread_create(&t, pthread_attr_default, task, NULL);
34978 pthread_create(&t, NULL, task, NULL);
34981 /* make sure task runs first */
34984 #elif defined( HAVE_SCHED_YIELD )
34986 #elif defined( HAVE_PTHREAD_YIELD )
34993 rm -f conftest$ac_exeext
34994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34995 (eval $ac_link) 2>&5
34997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34998 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35000 (eval $ac_try) 2>&5
35002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35003 (exit $ac_status); }; }; then
35004 ol_cv_pthread_select_yields=no
35006 echo "$as_me: program exited with status $ac_status" >&5
35007 echo "$as_me: failed program was:" >&5
35008 sed 's/^/| /' conftest.$ac_ext >&5
35010 ( exit $ac_status )
35011 ol_cv_pthread_select_yields=yes
35013 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35016 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
35017 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
35019 if test $ol_cv_pthread_select_yields = cross ; then
35020 { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
35021 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
35022 { (exit 1); exit 1; }; }
35025 if test $ol_cv_pthread_select_yields = yes ; then
35026 ol_with_yielding_select=yes
35030 CPPFLAGS="$save_CPPFLAGS"
35033 { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
35034 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
35035 { (exit 1); exit 1; }; }
35039 if test $ol_with_threads = posix ; then
35040 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
35041 echo "$as_me: error: could not locate POSIX Threads" >&2;}
35042 { (exit 1); exit 1; }; }
35046 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35047 -o $ol_with_threads = mach ; then
35051 for ac_header in mach/cthreads.h cthreads.h
35053 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35055 echo "$as_me:$LINENO: checking for $ac_header" >&5
35056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35058 echo $ECHO_N "(cached) $ECHO_C" >&6
35060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35061 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35063 # Is the header compilable?
35064 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35065 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35066 cat >conftest.$ac_ext <<_ACEOF
35069 cat confdefs.h >>conftest.$ac_ext
35070 cat >>conftest.$ac_ext <<_ACEOF
35071 /* end confdefs.h. */
35072 $ac_includes_default
35073 #include <$ac_header>
35075 rm -f conftest.$ac_objext
35076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35077 (eval $ac_compile) 2>conftest.er1
35079 grep -v '^ *+' conftest.er1 >conftest.err
35081 cat conftest.err >&5
35082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35083 (exit $ac_status); } &&
35084 { ac_try='test -z "$ac_c_werror_flag"
35085 || test ! -s conftest.err'
35086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35087 (eval $ac_try) 2>&5
35089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35090 (exit $ac_status); }; } &&
35091 { ac_try='test -s conftest.$ac_objext'
35092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35093 (eval $ac_try) 2>&5
35095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35096 (exit $ac_status); }; }; then
35097 ac_header_compiler=yes
35099 echo "$as_me: failed program was:" >&5
35100 sed 's/^/| /' conftest.$ac_ext >&5
35102 ac_header_compiler=no
35104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35105 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35106 echo "${ECHO_T}$ac_header_compiler" >&6
35108 # Is the header present?
35109 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35110 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35111 cat >conftest.$ac_ext <<_ACEOF
35114 cat confdefs.h >>conftest.$ac_ext
35115 cat >>conftest.$ac_ext <<_ACEOF
35116 /* end confdefs.h. */
35117 #include <$ac_header>
35119 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35120 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35122 grep -v '^ *+' conftest.er1 >conftest.err
35124 cat conftest.err >&5
35125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35126 (exit $ac_status); } >/dev/null; then
35127 if test -s conftest.err; then
35128 ac_cpp_err=$ac_c_preproc_warn_flag
35129 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35136 if test -z "$ac_cpp_err"; then
35137 ac_header_preproc=yes
35139 echo "$as_me: failed program was:" >&5
35140 sed 's/^/| /' conftest.$ac_ext >&5
35142 ac_header_preproc=no
35144 rm -f conftest.err conftest.$ac_ext
35145 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35146 echo "${ECHO_T}$ac_header_preproc" >&6
35148 # So? What about this header?
35149 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35151 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35152 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35153 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35154 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35155 ac_header_preproc=yes
35158 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35159 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35160 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35161 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35162 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35163 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35164 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35165 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35167 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35168 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35169 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35172 ## ------------------------------------------ ##
35173 ## Report this to the AC_PACKAGE_NAME lists. ##
35174 ## ------------------------------------------ ##
35177 sed "s/^/$as_me: WARNING: /" >&2
35180 echo "$as_me:$LINENO: checking for $ac_header" >&5
35181 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35182 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35183 echo $ECHO_N "(cached) $ECHO_C" >&6
35185 eval "$as_ac_Header=\$ac_header_preproc"
35187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35188 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35191 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35192 cat >>confdefs.h <<_ACEOF
35193 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35200 if test $ac_cv_header_mach_cthreads_h = yes ; then
35201 ol_with_threads=found
35203 echo "$as_me:$LINENO: checking for cthread_fork" >&5
35204 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
35205 if test "${ac_cv_func_cthread_fork+set}" = set; then
35206 echo $ECHO_N "(cached) $ECHO_C" >&6
35208 cat >conftest.$ac_ext <<_ACEOF
35211 cat confdefs.h >>conftest.$ac_ext
35212 cat >>conftest.$ac_ext <<_ACEOF
35213 /* end confdefs.h. */
35214 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
35215 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35216 #define cthread_fork innocuous_cthread_fork
35218 /* System header to define __stub macros and hopefully few prototypes,
35219 which can conflict with char cthread_fork (); below.
35220 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35221 <limits.h> exists even on freestanding compilers. */
35224 # include <limits.h>
35226 # include <assert.h>
35229 #undef cthread_fork
35231 /* Override any gcc2 internal prototype to avoid an error. */
35236 /* We use char because int might match the return type of a gcc2
35237 builtin and then its argument prototype would still apply. */
35238 char cthread_fork ();
35239 /* The GNU C library defines this for functions which it implements
35240 to always fail with ENOSYS. Some functions are actually named
35241 something starting with __ and the normal name is an alias. */
35242 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
35245 char (*f) () = cthread_fork;
35254 return f != cthread_fork;
35259 rm -f conftest.$ac_objext conftest$ac_exeext
35260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35261 (eval $ac_link) 2>conftest.er1
35263 grep -v '^ *+' conftest.er1 >conftest.err
35265 cat conftest.err >&5
35266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35267 (exit $ac_status); } &&
35268 { ac_try='test -z "$ac_c_werror_flag"
35269 || test ! -s conftest.err'
35270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35271 (eval $ac_try) 2>&5
35273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35274 (exit $ac_status); }; } &&
35275 { ac_try='test -s conftest$ac_exeext'
35276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35277 (eval $ac_try) 2>&5
35279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35280 (exit $ac_status); }; }; then
35281 ac_cv_func_cthread_fork=yes
35283 echo "$as_me: failed program was:" >&5
35284 sed 's/^/| /' conftest.$ac_ext >&5
35286 ac_cv_func_cthread_fork=no
35288 rm -f conftest.err conftest.$ac_objext \
35289 conftest$ac_exeext conftest.$ac_ext
35291 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
35292 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
35293 if test $ac_cv_func_cthread_fork = yes; then
35294 ol_link_threads=yes
35298 if test $ol_link_threads = no ; then
35299 echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
35300 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
35301 if test "${ol_cv_cthread_all_load+set}" = set; then
35302 echo $ECHO_N "(cached) $ECHO_C" >&6
35306 LIBS="-all_load $LIBS"
35307 cat >conftest.$ac_ext <<_ACEOF
35310 cat confdefs.h >>conftest.$ac_ext
35311 cat >>conftest.$ac_ext <<_ACEOF
35312 /* end confdefs.h. */
35313 #include <mach/cthreads.h>
35318 cthread_fork((void *)0, (void *)0);
35324 rm -f conftest.$ac_objext conftest$ac_exeext
35325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35326 (eval $ac_link) 2>conftest.er1
35328 grep -v '^ *+' conftest.er1 >conftest.err
35330 cat conftest.err >&5
35331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35332 (exit $ac_status); } &&
35333 { ac_try='test -z "$ac_c_werror_flag"
35334 || test ! -s conftest.err'
35335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35336 (eval $ac_try) 2>&5
35338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35339 (exit $ac_status); }; } &&
35340 { ac_try='test -s conftest$ac_exeext'
35341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35342 (eval $ac_try) 2>&5
35344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35345 (exit $ac_status); }; }; then
35346 ol_cv_cthread_all_load=yes
35348 echo "$as_me: failed program was:" >&5
35349 sed 's/^/| /' conftest.$ac_ext >&5
35351 ol_cv_cthread_all_load=no
35353 rm -f conftest.err conftest.$ac_objext \
35354 conftest$ac_exeext conftest.$ac_ext
35358 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
35359 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
35361 if test $ol_cv_cthread_all_load = yes ; then
35362 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
35363 ol_link_threads=mach
35364 ol_with_threads=found
35368 elif test $ac_cv_header_cthreads_h = yes ; then
35370 ol_with_threads=found
35373 LIBS="$LIBS -lthreads"
35374 echo "$as_me:$LINENO: checking for cthread_fork" >&5
35375 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
35376 if test "${ac_cv_func_cthread_fork+set}" = set; then
35377 echo $ECHO_N "(cached) $ECHO_C" >&6
35379 cat >conftest.$ac_ext <<_ACEOF
35382 cat confdefs.h >>conftest.$ac_ext
35383 cat >>conftest.$ac_ext <<_ACEOF
35384 /* end confdefs.h. */
35385 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
35386 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35387 #define cthread_fork innocuous_cthread_fork
35389 /* System header to define __stub macros and hopefully few prototypes,
35390 which can conflict with char cthread_fork (); below.
35391 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35392 <limits.h> exists even on freestanding compilers. */
35395 # include <limits.h>
35397 # include <assert.h>
35400 #undef cthread_fork
35402 /* Override any gcc2 internal prototype to avoid an error. */
35407 /* We use char because int might match the return type of a gcc2
35408 builtin and then its argument prototype would still apply. */
35409 char cthread_fork ();
35410 /* The GNU C library defines this for functions which it implements
35411 to always fail with ENOSYS. Some functions are actually named
35412 something starting with __ and the normal name is an alias. */
35413 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
35416 char (*f) () = cthread_fork;
35425 return f != cthread_fork;
35430 rm -f conftest.$ac_objext conftest$ac_exeext
35431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35432 (eval $ac_link) 2>conftest.er1
35434 grep -v '^ *+' conftest.er1 >conftest.err
35436 cat conftest.err >&5
35437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35438 (exit $ac_status); } &&
35439 { ac_try='test -z "$ac_c_werror_flag"
35440 || test ! -s conftest.err'
35441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35442 (eval $ac_try) 2>&5
35444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35445 (exit $ac_status); }; } &&
35446 { ac_try='test -s conftest$ac_exeext'
35447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35448 (eval $ac_try) 2>&5
35450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35451 (exit $ac_status); }; }; then
35452 ac_cv_func_cthread_fork=yes
35454 echo "$as_me: failed program was:" >&5
35455 sed 's/^/| /' conftest.$ac_ext >&5
35457 ac_cv_func_cthread_fork=no
35459 rm -f conftest.err conftest.$ac_objext \
35460 conftest$ac_exeext conftest.$ac_ext
35462 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
35463 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
35464 if test $ac_cv_func_cthread_fork = yes; then
35465 ol_link_threads=yes
35470 if test $ol_link_threads = yes ; then
35471 LTHREAD_LIBS="-lthreads"
35472 ol_link_threads=mach
35473 ol_with_threads=found
35475 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
35476 echo "$as_me: error: could not link with Mach CThreads" >&2;}
35477 { (exit 1); exit 1; }; }
35480 elif test $ol_with_threads = mach ; then
35481 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
35482 echo "$as_me: error: could not locate Mach CThreads" >&2;}
35483 { (exit 1); exit 1; }; }
35486 if test $ol_link_threads = mach ; then
35488 cat >>confdefs.h <<\_ACEOF
35489 #define HAVE_MACH_CTHREADS 1
35492 elif test $ol_with_threads = found ; then
35493 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
35494 echo "$as_me: error: could not link with Mach CThreads" >&2;}
35495 { (exit 1); exit 1; }; }
35499 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35500 -o $ol_with_threads = pth ; then
35503 for ac_header in pth.h
35505 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35506 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35507 echo "$as_me:$LINENO: checking for $ac_header" >&5
35508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35509 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35510 echo $ECHO_N "(cached) $ECHO_C" >&6
35512 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35513 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35515 # Is the header compilable?
35516 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35517 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35518 cat >conftest.$ac_ext <<_ACEOF
35521 cat confdefs.h >>conftest.$ac_ext
35522 cat >>conftest.$ac_ext <<_ACEOF
35523 /* end confdefs.h. */
35524 $ac_includes_default
35525 #include <$ac_header>
35527 rm -f conftest.$ac_objext
35528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35529 (eval $ac_compile) 2>conftest.er1
35531 grep -v '^ *+' conftest.er1 >conftest.err
35533 cat conftest.err >&5
35534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35535 (exit $ac_status); } &&
35536 { ac_try='test -z "$ac_c_werror_flag"
35537 || test ! -s conftest.err'
35538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35539 (eval $ac_try) 2>&5
35541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35542 (exit $ac_status); }; } &&
35543 { ac_try='test -s conftest.$ac_objext'
35544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35545 (eval $ac_try) 2>&5
35547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35548 (exit $ac_status); }; }; then
35549 ac_header_compiler=yes
35551 echo "$as_me: failed program was:" >&5
35552 sed 's/^/| /' conftest.$ac_ext >&5
35554 ac_header_compiler=no
35556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35557 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35558 echo "${ECHO_T}$ac_header_compiler" >&6
35560 # Is the header present?
35561 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35562 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35563 cat >conftest.$ac_ext <<_ACEOF
35566 cat confdefs.h >>conftest.$ac_ext
35567 cat >>conftest.$ac_ext <<_ACEOF
35568 /* end confdefs.h. */
35569 #include <$ac_header>
35571 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35572 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35574 grep -v '^ *+' conftest.er1 >conftest.err
35576 cat conftest.err >&5
35577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35578 (exit $ac_status); } >/dev/null; then
35579 if test -s conftest.err; then
35580 ac_cpp_err=$ac_c_preproc_warn_flag
35581 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35588 if test -z "$ac_cpp_err"; then
35589 ac_header_preproc=yes
35591 echo "$as_me: failed program was:" >&5
35592 sed 's/^/| /' conftest.$ac_ext >&5
35594 ac_header_preproc=no
35596 rm -f conftest.err conftest.$ac_ext
35597 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35598 echo "${ECHO_T}$ac_header_preproc" >&6
35600 # So? What about this header?
35601 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35603 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35604 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35605 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35606 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35607 ac_header_preproc=yes
35610 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35611 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35612 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35613 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35614 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35615 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35616 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35617 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35619 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35620 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35621 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35624 ## ------------------------------------------ ##
35625 ## Report this to the AC_PACKAGE_NAME lists. ##
35626 ## ------------------------------------------ ##
35629 sed "s/^/$as_me: WARNING: /" >&2
35632 echo "$as_me:$LINENO: checking for $ac_header" >&5
35633 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35634 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35635 echo $ECHO_N "(cached) $ECHO_C" >&6
35637 eval "$as_ac_Header=\$ac_header_preproc"
35639 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35640 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35643 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35644 cat >>confdefs.h <<_ACEOF
35645 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35653 if test $ac_cv_header_pth_h = yes ; then
35654 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
35655 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
35656 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
35657 echo $ECHO_N "(cached) $ECHO_C" >&6
35659 ac_check_lib_save_LIBS=$LIBS
35661 cat >conftest.$ac_ext <<_ACEOF
35664 cat confdefs.h >>conftest.$ac_ext
35665 cat >>conftest.$ac_ext <<_ACEOF
35666 /* end confdefs.h. */
35668 /* Override any gcc2 internal prototype to avoid an error. */
35672 /* We use char because int might match the return type of a gcc2
35673 builtin and then its argument prototype would still apply. */
35674 char pth_version ();
35683 rm -f conftest.$ac_objext conftest$ac_exeext
35684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35685 (eval $ac_link) 2>conftest.er1
35687 grep -v '^ *+' conftest.er1 >conftest.err
35689 cat conftest.err >&5
35690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35691 (exit $ac_status); } &&
35692 { ac_try='test -z "$ac_c_werror_flag"
35693 || test ! -s conftest.err'
35694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35695 (eval $ac_try) 2>&5
35697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35698 (exit $ac_status); }; } &&
35699 { ac_try='test -s conftest$ac_exeext'
35700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35701 (eval $ac_try) 2>&5
35703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35704 (exit $ac_status); }; }; then
35705 ac_cv_lib_pth_pth_version=yes
35707 echo "$as_me: failed program was:" >&5
35708 sed 's/^/| /' conftest.$ac_ext >&5
35710 ac_cv_lib_pth_pth_version=no
35712 rm -f conftest.err conftest.$ac_objext \
35713 conftest$ac_exeext conftest.$ac_ext
35714 LIBS=$ac_check_lib_save_LIBS
35716 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
35717 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
35718 if test $ac_cv_lib_pth_pth_version = yes; then
35725 if test $have_pth = yes ; then
35727 cat >>confdefs.h <<\_ACEOF
35728 #define HAVE_GNU_PTH 1
35731 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
35732 ol_link_threads=pth
35733 ol_with_threads=found
35735 if test $ol_with_yielding_select = auto ; then
35736 ol_with_yielding_select=yes
35742 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35743 -o $ol_with_threads = lwp ; then
35747 for ac_header in thread.h synch.h
35749 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35751 echo "$as_me:$LINENO: checking for $ac_header" >&5
35752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35754 echo $ECHO_N "(cached) $ECHO_C" >&6
35756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35757 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35759 # Is the header compilable?
35760 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35761 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35762 cat >conftest.$ac_ext <<_ACEOF
35765 cat confdefs.h >>conftest.$ac_ext
35766 cat >>conftest.$ac_ext <<_ACEOF
35767 /* end confdefs.h. */
35768 $ac_includes_default
35769 #include <$ac_header>
35771 rm -f conftest.$ac_objext
35772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35773 (eval $ac_compile) 2>conftest.er1
35775 grep -v '^ *+' conftest.er1 >conftest.err
35777 cat conftest.err >&5
35778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35779 (exit $ac_status); } &&
35780 { ac_try='test -z "$ac_c_werror_flag"
35781 || test ! -s conftest.err'
35782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35783 (eval $ac_try) 2>&5
35785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35786 (exit $ac_status); }; } &&
35787 { ac_try='test -s conftest.$ac_objext'
35788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35789 (eval $ac_try) 2>&5
35791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35792 (exit $ac_status); }; }; then
35793 ac_header_compiler=yes
35795 echo "$as_me: failed program was:" >&5
35796 sed 's/^/| /' conftest.$ac_ext >&5
35798 ac_header_compiler=no
35800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35801 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35802 echo "${ECHO_T}$ac_header_compiler" >&6
35804 # Is the header present?
35805 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35806 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35807 cat >conftest.$ac_ext <<_ACEOF
35810 cat confdefs.h >>conftest.$ac_ext
35811 cat >>conftest.$ac_ext <<_ACEOF
35812 /* end confdefs.h. */
35813 #include <$ac_header>
35815 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35816 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35818 grep -v '^ *+' conftest.er1 >conftest.err
35820 cat conftest.err >&5
35821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35822 (exit $ac_status); } >/dev/null; then
35823 if test -s conftest.err; then
35824 ac_cpp_err=$ac_c_preproc_warn_flag
35825 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35832 if test -z "$ac_cpp_err"; then
35833 ac_header_preproc=yes
35835 echo "$as_me: failed program was:" >&5
35836 sed 's/^/| /' conftest.$ac_ext >&5
35838 ac_header_preproc=no
35840 rm -f conftest.err conftest.$ac_ext
35841 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35842 echo "${ECHO_T}$ac_header_preproc" >&6
35844 # So? What about this header?
35845 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35847 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35848 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35849 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35850 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35851 ac_header_preproc=yes
35854 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35855 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35856 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35857 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35858 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35859 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35860 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35861 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35863 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35864 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35865 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35868 ## ------------------------------------------ ##
35869 ## Report this to the AC_PACKAGE_NAME lists. ##
35870 ## ------------------------------------------ ##
35873 sed "s/^/$as_me: WARNING: /" >&2
35876 echo "$as_me:$LINENO: checking for $ac_header" >&5
35877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35878 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35879 echo $ECHO_N "(cached) $ECHO_C" >&6
35881 eval "$as_ac_Header=\$ac_header_preproc"
35883 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35884 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35887 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35888 cat >>confdefs.h <<_ACEOF
35889 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35896 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
35897 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
35898 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
35899 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
35900 echo $ECHO_N "(cached) $ECHO_C" >&6
35902 ac_check_lib_save_LIBS=$LIBS
35903 LIBS="-lthread $LIBS"
35904 cat >conftest.$ac_ext <<_ACEOF
35907 cat confdefs.h >>conftest.$ac_ext
35908 cat >>conftest.$ac_ext <<_ACEOF
35909 /* end confdefs.h. */
35911 /* Override any gcc2 internal prototype to avoid an error. */
35915 /* We use char because int might match the return type of a gcc2
35916 builtin and then its argument prototype would still apply. */
35917 char thr_create ();
35926 rm -f conftest.$ac_objext conftest$ac_exeext
35927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35928 (eval $ac_link) 2>conftest.er1
35930 grep -v '^ *+' conftest.er1 >conftest.err
35932 cat conftest.err >&5
35933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35934 (exit $ac_status); } &&
35935 { ac_try='test -z "$ac_c_werror_flag"
35936 || test ! -s conftest.err'
35937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35938 (eval $ac_try) 2>&5
35940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35941 (exit $ac_status); }; } &&
35942 { ac_try='test -s conftest$ac_exeext'
35943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35944 (eval $ac_try) 2>&5
35946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35947 (exit $ac_status); }; }; then
35948 ac_cv_lib_thread_thr_create=yes
35950 echo "$as_me: failed program was:" >&5
35951 sed 's/^/| /' conftest.$ac_ext >&5
35953 ac_cv_lib_thread_thr_create=no
35955 rm -f conftest.err conftest.$ac_objext \
35956 conftest$ac_exeext conftest.$ac_ext
35957 LIBS=$ac_check_lib_save_LIBS
35959 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
35960 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
35961 if test $ac_cv_lib_thread_thr_create = yes; then
35968 if test $have_thr = yes ; then
35970 cat >>confdefs.h <<\_ACEOF
35974 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
35975 ol_link_threads=thr
35977 if test $ol_with_yielding_select = auto ; then
35978 ol_with_yielding_select=yes
35984 thr_setconcurrency \
35985 thr_getconcurrency \
35988 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35989 echo "$as_me:$LINENO: checking for $ac_func" >&5
35990 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35991 if eval "test \"\${$as_ac_var+set}\" = set"; then
35992 echo $ECHO_N "(cached) $ECHO_C" >&6
35994 cat >conftest.$ac_ext <<_ACEOF
35997 cat confdefs.h >>conftest.$ac_ext
35998 cat >>conftest.$ac_ext <<_ACEOF
35999 /* end confdefs.h. */
36000 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36002 #define $ac_func innocuous_$ac_func
36004 /* System header to define __stub macros and hopefully few prototypes,
36005 which can conflict with char $ac_func (); below.
36006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36007 <limits.h> exists even on freestanding compilers. */
36010 # include <limits.h>
36012 # include <assert.h>
36017 /* Override any gcc2 internal prototype to avoid an error. */
36022 /* We use char because int might match the return type of a gcc2
36023 builtin and then its argument prototype would still apply. */
36025 /* The GNU C library defines this for functions which it implements
36026 to always fail with ENOSYS. Some functions are actually named
36027 something starting with __ and the normal name is an alias. */
36028 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36031 char (*f) () = $ac_func;
36040 return f != $ac_func;
36045 rm -f conftest.$ac_objext conftest$ac_exeext
36046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36047 (eval $ac_link) 2>conftest.er1
36049 grep -v '^ *+' conftest.er1 >conftest.err
36051 cat conftest.err >&5
36052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36053 (exit $ac_status); } &&
36054 { ac_try='test -z "$ac_c_werror_flag"
36055 || test ! -s conftest.err'
36056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36057 (eval $ac_try) 2>&5
36059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36060 (exit $ac_status); }; } &&
36061 { ac_try='test -s conftest$ac_exeext'
36062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36063 (eval $ac_try) 2>&5
36065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36066 (exit $ac_status); }; }; then
36067 eval "$as_ac_var=yes"
36069 echo "$as_me: failed program was:" >&5
36070 sed 's/^/| /' conftest.$ac_ext >&5
36072 eval "$as_ac_var=no"
36074 rm -f conftest.err conftest.$ac_objext \
36075 conftest$ac_exeext conftest.$ac_ext
36077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36078 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36079 if test `eval echo '${'$as_ac_var'}'` = yes; then
36080 cat >>confdefs.h <<_ACEOF
36081 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36091 for ac_header in lwp/lwp.h
36093 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36094 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36095 echo "$as_me:$LINENO: checking for $ac_header" >&5
36096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36097 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36098 echo $ECHO_N "(cached) $ECHO_C" >&6
36100 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36101 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36103 # Is the header compilable?
36104 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36105 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36106 cat >conftest.$ac_ext <<_ACEOF
36109 cat confdefs.h >>conftest.$ac_ext
36110 cat >>conftest.$ac_ext <<_ACEOF
36111 /* end confdefs.h. */
36112 $ac_includes_default
36113 #include <$ac_header>
36115 rm -f conftest.$ac_objext
36116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36117 (eval $ac_compile) 2>conftest.er1
36119 grep -v '^ *+' conftest.er1 >conftest.err
36121 cat conftest.err >&5
36122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36123 (exit $ac_status); } &&
36124 { ac_try='test -z "$ac_c_werror_flag"
36125 || test ! -s conftest.err'
36126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36127 (eval $ac_try) 2>&5
36129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36130 (exit $ac_status); }; } &&
36131 { ac_try='test -s conftest.$ac_objext'
36132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36133 (eval $ac_try) 2>&5
36135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36136 (exit $ac_status); }; }; then
36137 ac_header_compiler=yes
36139 echo "$as_me: failed program was:" >&5
36140 sed 's/^/| /' conftest.$ac_ext >&5
36142 ac_header_compiler=no
36144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36145 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36146 echo "${ECHO_T}$ac_header_compiler" >&6
36148 # Is the header present?
36149 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36150 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36151 cat >conftest.$ac_ext <<_ACEOF
36154 cat confdefs.h >>conftest.$ac_ext
36155 cat >>conftest.$ac_ext <<_ACEOF
36156 /* end confdefs.h. */
36157 #include <$ac_header>
36159 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36160 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36162 grep -v '^ *+' conftest.er1 >conftest.err
36164 cat conftest.err >&5
36165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36166 (exit $ac_status); } >/dev/null; then
36167 if test -s conftest.err; then
36168 ac_cpp_err=$ac_c_preproc_warn_flag
36169 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36176 if test -z "$ac_cpp_err"; then
36177 ac_header_preproc=yes
36179 echo "$as_me: failed program was:" >&5
36180 sed 's/^/| /' conftest.$ac_ext >&5
36182 ac_header_preproc=no
36184 rm -f conftest.err conftest.$ac_ext
36185 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36186 echo "${ECHO_T}$ac_header_preproc" >&6
36188 # So? What about this header?
36189 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36191 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36192 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36194 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36195 ac_header_preproc=yes
36198 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36199 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36200 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36201 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36202 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36203 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36204 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36205 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36207 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36208 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36209 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36212 ## ------------------------------------------ ##
36213 ## Report this to the AC_PACKAGE_NAME lists. ##
36214 ## ------------------------------------------ ##
36217 sed "s/^/$as_me: WARNING: /" >&2
36220 echo "$as_me:$LINENO: checking for $ac_header" >&5
36221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36223 echo $ECHO_N "(cached) $ECHO_C" >&6
36225 eval "$as_ac_Header=\$ac_header_preproc"
36227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36228 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36231 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36232 cat >>confdefs.h <<_ACEOF
36233 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36240 if test $ac_cv_header_lwp_lwp_h = yes ; then
36241 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
36242 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
36243 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
36244 echo $ECHO_N "(cached) $ECHO_C" >&6
36246 ac_check_lib_save_LIBS=$LIBS
36248 cat >conftest.$ac_ext <<_ACEOF
36251 cat confdefs.h >>conftest.$ac_ext
36252 cat >>conftest.$ac_ext <<_ACEOF
36253 /* end confdefs.h. */
36255 /* Override any gcc2 internal prototype to avoid an error. */
36259 /* We use char because int might match the return type of a gcc2
36260 builtin and then its argument prototype would still apply. */
36261 char lwp_create ();
36270 rm -f conftest.$ac_objext conftest$ac_exeext
36271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36272 (eval $ac_link) 2>conftest.er1
36274 grep -v '^ *+' conftest.er1 >conftest.err
36276 cat conftest.err >&5
36277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36278 (exit $ac_status); } &&
36279 { ac_try='test -z "$ac_c_werror_flag"
36280 || test ! -s conftest.err'
36281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36282 (eval $ac_try) 2>&5
36284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36285 (exit $ac_status); }; } &&
36286 { ac_try='test -s conftest$ac_exeext'
36287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36288 (eval $ac_try) 2>&5
36290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36291 (exit $ac_status); }; }; then
36292 ac_cv_lib_lwp_lwp_create=yes
36294 echo "$as_me: failed program was:" >&5
36295 sed 's/^/| /' conftest.$ac_ext >&5
36297 ac_cv_lib_lwp_lwp_create=no
36299 rm -f conftest.err conftest.$ac_objext \
36300 conftest$ac_exeext conftest.$ac_ext
36301 LIBS=$ac_check_lib_save_LIBS
36303 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
36304 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
36305 if test $ac_cv_lib_lwp_lwp_create = yes; then
36312 if test $have_lwp = yes ; then
36314 cat >>confdefs.h <<\_ACEOF
36318 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
36319 ol_link_threads=lwp
36321 if test $ol_with_yielding_select = auto ; then
36322 ol_with_yielding_select=no
36328 if test $ol_with_yielding_select = yes ; then
36330 cat >>confdefs.h <<\_ACEOF
36331 #define HAVE_YIELDING_SELECT 1
36336 if test $ol_with_threads = manual ; then
36337 ol_link_threads=yes
36339 { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
36340 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
36344 for ac_header in pthread.h sched.h
36346 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36347 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36348 echo "$as_me:$LINENO: checking for $ac_header" >&5
36349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36351 echo $ECHO_N "(cached) $ECHO_C" >&6
36353 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36354 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36356 # Is the header compilable?
36357 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36358 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36359 cat >conftest.$ac_ext <<_ACEOF
36362 cat confdefs.h >>conftest.$ac_ext
36363 cat >>conftest.$ac_ext <<_ACEOF
36364 /* end confdefs.h. */
36365 $ac_includes_default
36366 #include <$ac_header>
36368 rm -f conftest.$ac_objext
36369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36370 (eval $ac_compile) 2>conftest.er1
36372 grep -v '^ *+' conftest.er1 >conftest.err
36374 cat conftest.err >&5
36375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36376 (exit $ac_status); } &&
36377 { ac_try='test -z "$ac_c_werror_flag"
36378 || test ! -s conftest.err'
36379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36380 (eval $ac_try) 2>&5
36382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36383 (exit $ac_status); }; } &&
36384 { ac_try='test -s conftest.$ac_objext'
36385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36386 (eval $ac_try) 2>&5
36388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36389 (exit $ac_status); }; }; then
36390 ac_header_compiler=yes
36392 echo "$as_me: failed program was:" >&5
36393 sed 's/^/| /' conftest.$ac_ext >&5
36395 ac_header_compiler=no
36397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36398 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36399 echo "${ECHO_T}$ac_header_compiler" >&6
36401 # Is the header present?
36402 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36403 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36404 cat >conftest.$ac_ext <<_ACEOF
36407 cat confdefs.h >>conftest.$ac_ext
36408 cat >>conftest.$ac_ext <<_ACEOF
36409 /* end confdefs.h. */
36410 #include <$ac_header>
36412 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36413 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36415 grep -v '^ *+' conftest.er1 >conftest.err
36417 cat conftest.err >&5
36418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36419 (exit $ac_status); } >/dev/null; then
36420 if test -s conftest.err; then
36421 ac_cpp_err=$ac_c_preproc_warn_flag
36422 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36429 if test -z "$ac_cpp_err"; then
36430 ac_header_preproc=yes
36432 echo "$as_me: failed program was:" >&5
36433 sed 's/^/| /' conftest.$ac_ext >&5
36435 ac_header_preproc=no
36437 rm -f conftest.err conftest.$ac_ext
36438 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36439 echo "${ECHO_T}$ac_header_preproc" >&6
36441 # So? What about this header?
36442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36444 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36445 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36447 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36448 ac_header_preproc=yes
36451 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36452 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36453 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36454 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36455 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36456 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36457 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36458 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36460 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36461 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36462 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36465 ## ------------------------------------------ ##
36466 ## Report this to the AC_PACKAGE_NAME lists. ##
36467 ## ------------------------------------------ ##
36470 sed "s/^/$as_me: WARNING: /" >&2
36473 echo "$as_me:$LINENO: checking for $ac_header" >&5
36474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36476 echo $ECHO_N "(cached) $ECHO_C" >&6
36478 eval "$as_ac_Header=\$ac_header_preproc"
36480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36481 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36485 cat >>confdefs.h <<_ACEOF
36486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36495 for ac_func in sched_yield pthread_yield
36497 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36498 echo "$as_me:$LINENO: checking for $ac_func" >&5
36499 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36500 if eval "test \"\${$as_ac_var+set}\" = set"; then
36501 echo $ECHO_N "(cached) $ECHO_C" >&6
36503 cat >conftest.$ac_ext <<_ACEOF
36506 cat confdefs.h >>conftest.$ac_ext
36507 cat >>conftest.$ac_ext <<_ACEOF
36508 /* end confdefs.h. */
36509 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36511 #define $ac_func innocuous_$ac_func
36513 /* System header to define __stub macros and hopefully few prototypes,
36514 which can conflict with char $ac_func (); below.
36515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36516 <limits.h> exists even on freestanding compilers. */
36519 # include <limits.h>
36521 # include <assert.h>
36526 /* Override any gcc2 internal prototype to avoid an error. */
36531 /* We use char because int might match the return type of a gcc2
36532 builtin and then its argument prototype would still apply. */
36534 /* The GNU C library defines this for functions which it implements
36535 to always fail with ENOSYS. Some functions are actually named
36536 something starting with __ and the normal name is an alias. */
36537 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36540 char (*f) () = $ac_func;
36549 return f != $ac_func;
36554 rm -f conftest.$ac_objext conftest$ac_exeext
36555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36556 (eval $ac_link) 2>conftest.er1
36558 grep -v '^ *+' conftest.er1 >conftest.err
36560 cat conftest.err >&5
36561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36562 (exit $ac_status); } &&
36563 { ac_try='test -z "$ac_c_werror_flag"
36564 || test ! -s conftest.err'
36565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36566 (eval $ac_try) 2>&5
36568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36569 (exit $ac_status); }; } &&
36570 { ac_try='test -s conftest$ac_exeext'
36571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36572 (eval $ac_try) 2>&5
36574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36575 (exit $ac_status); }; }; then
36576 eval "$as_ac_var=yes"
36578 echo "$as_me: failed program was:" >&5
36579 sed 's/^/| /' conftest.$ac_ext >&5
36581 eval "$as_ac_var=no"
36583 rm -f conftest.err conftest.$ac_objext \
36584 conftest$ac_exeext conftest.$ac_ext
36586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36587 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36588 if test `eval echo '${'$as_ac_var'}'` = yes; then
36589 cat >>confdefs.h <<_ACEOF
36590 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36597 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
36598 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
36599 if test "${ol_cv_header_linux_threads+set}" = set; then
36600 echo $ECHO_N "(cached) $ECHO_C" >&6
36602 cat >conftest.$ac_ext <<_ACEOF
36605 cat confdefs.h >>conftest.$ac_ext
36606 cat >>conftest.$ac_ext <<_ACEOF
36607 /* end confdefs.h. */
36608 #include <pthread.h>
36610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36611 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
36612 ol_cv_header_linux_threads=yes
36614 ol_cv_header_linux_threads=no
36620 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
36621 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
36622 if test $ol_cv_header_linux_threads = yes; then
36624 cat >>confdefs.h <<\_ACEOF
36625 #define HAVE_LINUX_THREADS 1
36632 for ac_header in mach/cthreads.h
36634 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36636 echo "$as_me:$LINENO: checking for $ac_header" >&5
36637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36639 echo $ECHO_N "(cached) $ECHO_C" >&6
36641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36642 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36644 # Is the header compilable?
36645 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36646 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36647 cat >conftest.$ac_ext <<_ACEOF
36650 cat confdefs.h >>conftest.$ac_ext
36651 cat >>conftest.$ac_ext <<_ACEOF
36652 /* end confdefs.h. */
36653 $ac_includes_default
36654 #include <$ac_header>
36656 rm -f conftest.$ac_objext
36657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36658 (eval $ac_compile) 2>conftest.er1
36660 grep -v '^ *+' conftest.er1 >conftest.err
36662 cat conftest.err >&5
36663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36664 (exit $ac_status); } &&
36665 { ac_try='test -z "$ac_c_werror_flag"
36666 || test ! -s conftest.err'
36667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36668 (eval $ac_try) 2>&5
36670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36671 (exit $ac_status); }; } &&
36672 { ac_try='test -s conftest.$ac_objext'
36673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36674 (eval $ac_try) 2>&5
36676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36677 (exit $ac_status); }; }; then
36678 ac_header_compiler=yes
36680 echo "$as_me: failed program was:" >&5
36681 sed 's/^/| /' conftest.$ac_ext >&5
36683 ac_header_compiler=no
36685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36686 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36687 echo "${ECHO_T}$ac_header_compiler" >&6
36689 # Is the header present?
36690 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36691 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36692 cat >conftest.$ac_ext <<_ACEOF
36695 cat confdefs.h >>conftest.$ac_ext
36696 cat >>conftest.$ac_ext <<_ACEOF
36697 /* end confdefs.h. */
36698 #include <$ac_header>
36700 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36701 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36703 grep -v '^ *+' conftest.er1 >conftest.err
36705 cat conftest.err >&5
36706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36707 (exit $ac_status); } >/dev/null; then
36708 if test -s conftest.err; then
36709 ac_cpp_err=$ac_c_preproc_warn_flag
36710 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36717 if test -z "$ac_cpp_err"; then
36718 ac_header_preproc=yes
36720 echo "$as_me: failed program was:" >&5
36721 sed 's/^/| /' conftest.$ac_ext >&5
36723 ac_header_preproc=no
36725 rm -f conftest.err conftest.$ac_ext
36726 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36727 echo "${ECHO_T}$ac_header_preproc" >&6
36729 # So? What about this header?
36730 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36732 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36733 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36734 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36735 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36736 ac_header_preproc=yes
36739 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36740 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36741 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36742 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36743 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36744 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36745 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36746 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36748 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36749 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36750 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36753 ## ------------------------------------------ ##
36754 ## Report this to the AC_PACKAGE_NAME lists. ##
36755 ## ------------------------------------------ ##
36758 sed "s/^/$as_me: WARNING: /" >&2
36761 echo "$as_me:$LINENO: checking for $ac_header" >&5
36762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36764 echo $ECHO_N "(cached) $ECHO_C" >&6
36766 eval "$as_ac_Header=\$ac_header_preproc"
36768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36769 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36772 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36773 cat >>confdefs.h <<_ACEOF
36774 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36782 for ac_header in lwp/lwp.h
36784 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36786 echo "$as_me:$LINENO: checking for $ac_header" >&5
36787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36789 echo $ECHO_N "(cached) $ECHO_C" >&6
36791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36792 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36794 # Is the header compilable?
36795 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36796 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36797 cat >conftest.$ac_ext <<_ACEOF
36800 cat confdefs.h >>conftest.$ac_ext
36801 cat >>conftest.$ac_ext <<_ACEOF
36802 /* end confdefs.h. */
36803 $ac_includes_default
36804 #include <$ac_header>
36806 rm -f conftest.$ac_objext
36807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36808 (eval $ac_compile) 2>conftest.er1
36810 grep -v '^ *+' conftest.er1 >conftest.err
36812 cat conftest.err >&5
36813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36814 (exit $ac_status); } &&
36815 { ac_try='test -z "$ac_c_werror_flag"
36816 || test ! -s conftest.err'
36817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36818 (eval $ac_try) 2>&5
36820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36821 (exit $ac_status); }; } &&
36822 { ac_try='test -s conftest.$ac_objext'
36823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36824 (eval $ac_try) 2>&5
36826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36827 (exit $ac_status); }; }; then
36828 ac_header_compiler=yes
36830 echo "$as_me: failed program was:" >&5
36831 sed 's/^/| /' conftest.$ac_ext >&5
36833 ac_header_compiler=no
36835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36836 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36837 echo "${ECHO_T}$ac_header_compiler" >&6
36839 # Is the header present?
36840 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36841 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36842 cat >conftest.$ac_ext <<_ACEOF
36845 cat confdefs.h >>conftest.$ac_ext
36846 cat >>conftest.$ac_ext <<_ACEOF
36847 /* end confdefs.h. */
36848 #include <$ac_header>
36850 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36851 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36853 grep -v '^ *+' conftest.er1 >conftest.err
36855 cat conftest.err >&5
36856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36857 (exit $ac_status); } >/dev/null; then
36858 if test -s conftest.err; then
36859 ac_cpp_err=$ac_c_preproc_warn_flag
36860 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36867 if test -z "$ac_cpp_err"; then
36868 ac_header_preproc=yes
36870 echo "$as_me: failed program was:" >&5
36871 sed 's/^/| /' conftest.$ac_ext >&5
36873 ac_header_preproc=no
36875 rm -f conftest.err conftest.$ac_ext
36876 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36877 echo "${ECHO_T}$ac_header_preproc" >&6
36879 # So? What about this header?
36880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36882 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36883 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36884 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36885 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36886 ac_header_preproc=yes
36889 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36890 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36891 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36892 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36893 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36894 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36895 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36896 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36898 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36899 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36900 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36903 ## ------------------------------------------ ##
36904 ## Report this to the AC_PACKAGE_NAME lists. ##
36905 ## ------------------------------------------ ##
36908 sed "s/^/$as_me: WARNING: /" >&2
36911 echo "$as_me:$LINENO: checking for $ac_header" >&5
36912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36914 echo $ECHO_N "(cached) $ECHO_C" >&6
36916 eval "$as_ac_Header=\$ac_header_preproc"
36918 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36919 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36922 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36923 cat >>confdefs.h <<_ACEOF
36924 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36933 for ac_header in thread.h synch.h
36935 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36937 echo "$as_me:$LINENO: checking for $ac_header" >&5
36938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36940 echo $ECHO_N "(cached) $ECHO_C" >&6
36942 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36943 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36945 # Is the header compilable?
36946 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36947 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36948 cat >conftest.$ac_ext <<_ACEOF
36951 cat confdefs.h >>conftest.$ac_ext
36952 cat >>conftest.$ac_ext <<_ACEOF
36953 /* end confdefs.h. */
36954 $ac_includes_default
36955 #include <$ac_header>
36957 rm -f conftest.$ac_objext
36958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36959 (eval $ac_compile) 2>conftest.er1
36961 grep -v '^ *+' conftest.er1 >conftest.err
36963 cat conftest.err >&5
36964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36965 (exit $ac_status); } &&
36966 { ac_try='test -z "$ac_c_werror_flag"
36967 || test ! -s conftest.err'
36968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36969 (eval $ac_try) 2>&5
36971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36972 (exit $ac_status); }; } &&
36973 { ac_try='test -s conftest.$ac_objext'
36974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36975 (eval $ac_try) 2>&5
36977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36978 (exit $ac_status); }; }; then
36979 ac_header_compiler=yes
36981 echo "$as_me: failed program was:" >&5
36982 sed 's/^/| /' conftest.$ac_ext >&5
36984 ac_header_compiler=no
36986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36987 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36988 echo "${ECHO_T}$ac_header_compiler" >&6
36990 # Is the header present?
36991 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36992 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36993 cat >conftest.$ac_ext <<_ACEOF
36996 cat confdefs.h >>conftest.$ac_ext
36997 cat >>conftest.$ac_ext <<_ACEOF
36998 /* end confdefs.h. */
36999 #include <$ac_header>
37001 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37002 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37004 grep -v '^ *+' conftest.er1 >conftest.err
37006 cat conftest.err >&5
37007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37008 (exit $ac_status); } >/dev/null; then
37009 if test -s conftest.err; then
37010 ac_cpp_err=$ac_c_preproc_warn_flag
37011 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37018 if test -z "$ac_cpp_err"; then
37019 ac_header_preproc=yes
37021 echo "$as_me: failed program was:" >&5
37022 sed 's/^/| /' conftest.$ac_ext >&5
37024 ac_header_preproc=no
37026 rm -f conftest.err conftest.$ac_ext
37027 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37028 echo "${ECHO_T}$ac_header_preproc" >&6
37030 # So? What about this header?
37031 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37033 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37034 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37036 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37037 ac_header_preproc=yes
37040 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37041 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37042 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37043 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37044 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37045 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37046 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37047 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37049 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37050 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37051 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37054 ## ------------------------------------------ ##
37055 ## Report this to the AC_PACKAGE_NAME lists. ##
37056 ## ------------------------------------------ ##
37059 sed "s/^/$as_me: WARNING: /" >&2
37062 echo "$as_me:$LINENO: checking for $ac_header" >&5
37063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37064 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37065 echo $ECHO_N "(cached) $ECHO_C" >&6
37067 eval "$as_ac_Header=\$ac_header_preproc"
37069 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37070 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37073 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37074 cat >>confdefs.h <<_ACEOF
37075 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37084 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
37085 cat >>confdefs.h <<\_ACEOF
37086 #define REENTRANT 1
37089 cat >>confdefs.h <<\_ACEOF
37090 #define _REENTRANT 1
37093 cat >>confdefs.h <<\_ACEOF
37094 #define THREAD_SAFE 1
37097 cat >>confdefs.h <<\_ACEOF
37098 #define _THREAD_SAFE 1
37101 cat >>confdefs.h <<\_ACEOF
37102 #define THREADSAFE 1
37105 cat >>confdefs.h <<\_ACEOF
37106 #define _THREADSAFE 1
37109 cat >>confdefs.h <<\_ACEOF
37110 #define _SGI_MP_SOURCE 1
37114 echo "$as_me:$LINENO: checking for thread specific errno" >&5
37115 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
37116 if test "${ol_cv_errno_thread_specific+set}" = set; then
37117 echo $ECHO_N "(cached) $ECHO_C" >&6
37120 cat >conftest.$ac_ext <<_ACEOF
37123 cat confdefs.h >>conftest.$ac_ext
37124 cat >>conftest.$ac_ext <<_ACEOF
37125 /* end confdefs.h. */
37135 rm -f conftest.$ac_objext conftest$ac_exeext
37136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37137 (eval $ac_link) 2>conftest.er1
37139 grep -v '^ *+' conftest.er1 >conftest.err
37141 cat conftest.err >&5
37142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37143 (exit $ac_status); } &&
37144 { ac_try='test -z "$ac_c_werror_flag"
37145 || test ! -s conftest.err'
37146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37147 (eval $ac_try) 2>&5
37149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37150 (exit $ac_status); }; } &&
37151 { ac_try='test -s conftest$ac_exeext'
37152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37153 (eval $ac_try) 2>&5
37155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37156 (exit $ac_status); }; }; then
37157 ol_cv_errno_thread_specific=yes
37159 echo "$as_me: failed program was:" >&5
37160 sed 's/^/| /' conftest.$ac_ext >&5
37162 ol_cv_errno_thread_specific=no
37164 rm -f conftest.err conftest.$ac_objext \
37165 conftest$ac_exeext conftest.$ac_ext
37168 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
37169 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
37171 echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
37172 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
37173 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
37174 echo $ECHO_N "(cached) $ECHO_C" >&6
37177 cat >conftest.$ac_ext <<_ACEOF
37180 cat confdefs.h >>conftest.$ac_ext
37181 cat >>conftest.$ac_ext <<_ACEOF
37182 /* end confdefs.h. */
37192 rm -f conftest.$ac_objext conftest$ac_exeext
37193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37194 (eval $ac_link) 2>conftest.er1
37196 grep -v '^ *+' conftest.er1 >conftest.err
37198 cat conftest.err >&5
37199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37200 (exit $ac_status); } &&
37201 { ac_try='test -z "$ac_c_werror_flag"
37202 || test ! -s conftest.err'
37203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37204 (eval $ac_try) 2>&5
37206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37207 (exit $ac_status); }; } &&
37208 { ac_try='test -s conftest$ac_exeext'
37209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37210 (eval $ac_try) 2>&5
37212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37213 (exit $ac_status); }; }; then
37214 ol_cv_h_errno_thread_specific=yes
37216 echo "$as_me: failed program was:" >&5
37217 sed 's/^/| /' conftest.$ac_ext >&5
37219 ol_cv_h_errno_thread_specific=no
37221 rm -f conftest.err conftest.$ac_objext \
37222 conftest$ac_exeext conftest.$ac_ext
37225 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
37226 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
37228 if test $ol_cv_errno_thread_specific != yes \
37229 -o $ol_cv_h_errno_thread_specific != yes ; then
37230 LIBS="$LTHREAD_LIBS $LIBS"
37236 if test $ol_link_threads = no ; then
37237 if test $ol_with_threads = yes ; then
37238 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
37239 echo "$as_me: error: no suitable thread support" >&2;}
37240 { (exit 1); exit 1; }; }
37243 if test $ol_with_threads = auto ; then
37244 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
37245 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
37250 cat >>confdefs.h <<\_ACEOF
37251 #define NO_THREADS 1
37257 if test $ol_link_threads != no ; then
37259 cat >>confdefs.h <<\_ACEOF
37260 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
37270 gethostbyname_r gethostbyaddr_r \
37273 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37274 echo "$as_me:$LINENO: checking for $ac_func" >&5
37275 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37276 if eval "test \"\${$as_ac_var+set}\" = set"; then
37277 echo $ECHO_N "(cached) $ECHO_C" >&6
37279 cat >conftest.$ac_ext <<_ACEOF
37282 cat confdefs.h >>conftest.$ac_ext
37283 cat >>conftest.$ac_ext <<_ACEOF
37284 /* end confdefs.h. */
37285 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37286 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37287 #define $ac_func innocuous_$ac_func
37289 /* System header to define __stub macros and hopefully few prototypes,
37290 which can conflict with char $ac_func (); below.
37291 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37292 <limits.h> exists even on freestanding compilers. */
37295 # include <limits.h>
37297 # include <assert.h>
37302 /* Override any gcc2 internal prototype to avoid an error. */
37307 /* We use char because int might match the return type of a gcc2
37308 builtin and then its argument prototype would still apply. */
37310 /* The GNU C library defines this for functions which it implements
37311 to always fail with ENOSYS. Some functions are actually named
37312 something starting with __ and the normal name is an alias. */
37313 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37316 char (*f) () = $ac_func;
37325 return f != $ac_func;
37330 rm -f conftest.$ac_objext conftest$ac_exeext
37331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37332 (eval $ac_link) 2>conftest.er1
37334 grep -v '^ *+' conftest.er1 >conftest.err
37336 cat conftest.err >&5
37337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37338 (exit $ac_status); } &&
37339 { ac_try='test -z "$ac_c_werror_flag"
37340 || test ! -s conftest.err'
37341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37342 (eval $ac_try) 2>&5
37344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37345 (exit $ac_status); }; } &&
37346 { ac_try='test -s conftest$ac_exeext'
37347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37348 (eval $ac_try) 2>&5
37350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37351 (exit $ac_status); }; }; then
37352 eval "$as_ac_var=yes"
37354 echo "$as_me: failed program was:" >&5
37355 sed 's/^/| /' conftest.$ac_ext >&5
37357 eval "$as_ac_var=no"
37359 rm -f conftest.err conftest.$ac_objext \
37360 conftest$ac_exeext conftest.$ac_ext
37362 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37363 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37364 if test `eval echo '${'$as_ac_var'}'` = yes; then
37365 cat >>confdefs.h <<_ACEOF
37366 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37373 if test "$ac_cv_func_ctime_r" = no ; then
37374 ol_cv_func_ctime_r_nargs=0
37376 echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
37377 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
37378 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
37379 echo $ECHO_N "(cached) $ECHO_C" >&6
37381 cat >conftest.$ac_ext <<_ACEOF
37384 cat confdefs.h >>conftest.$ac_ext
37385 cat >>conftest.$ac_ext <<_ACEOF
37386 /* end confdefs.h. */
37391 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
37396 rm -f conftest.$ac_objext
37397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37398 (eval $ac_compile) 2>conftest.er1
37400 grep -v '^ *+' conftest.er1 >conftest.err
37402 cat conftest.err >&5
37403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37404 (exit $ac_status); } &&
37405 { ac_try='test -z "$ac_c_werror_flag"
37406 || test ! -s conftest.err'
37407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37408 (eval $ac_try) 2>&5
37410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37411 (exit $ac_status); }; } &&
37412 { ac_try='test -s conftest.$ac_objext'
37413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37414 (eval $ac_try) 2>&5
37416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37417 (exit $ac_status); }; }; then
37418 ol_cv_func_ctime_r_nargs3=yes
37420 echo "$as_me: failed program was:" >&5
37421 sed 's/^/| /' conftest.$ac_ext >&5
37423 ol_cv_func_ctime_r_nargs3=no
37425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37427 cat >conftest.$ac_ext <<_ACEOF
37430 cat confdefs.h >>conftest.$ac_ext
37431 cat >>conftest.$ac_ext <<_ACEOF
37432 /* end confdefs.h. */
37437 time_t ti; char *buffer; ctime_r(&ti,buffer);
37442 rm -f conftest.$ac_objext
37443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37444 (eval $ac_compile) 2>conftest.er1
37446 grep -v '^ *+' conftest.er1 >conftest.err
37448 cat conftest.err >&5
37449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37450 (exit $ac_status); } &&
37451 { ac_try='test -z "$ac_c_werror_flag"
37452 || test ! -s conftest.err'
37453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37454 (eval $ac_try) 2>&5
37456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37457 (exit $ac_status); }; } &&
37458 { ac_try='test -s conftest.$ac_objext'
37459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37460 (eval $ac_try) 2>&5
37462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37463 (exit $ac_status); }; }; then
37464 ol_cv_func_ctime_r_nargs2=yes
37466 echo "$as_me: failed program was:" >&5
37467 sed 's/^/| /' conftest.$ac_ext >&5
37469 ol_cv_func_ctime_r_nargs2=no
37471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37473 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
37474 $ol_cv_func_ctime_r_nargs2 = no ; then
37476 ol_cv_func_ctime_r_nargs=3
37478 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
37479 $ol_cv_func_ctime_r_nargs2 = yes ; then
37481 ol_cv_func_ctime_r_nargs=2
37484 ol_cv_func_ctime_r_nargs=0
37488 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
37489 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
37491 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
37493 cat >>confdefs.h <<_ACEOF
37494 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
37501 if test "$ac_cv_func_gethostbyname_r" = yes ; then
37502 echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
37503 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
37504 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
37505 echo $ECHO_N "(cached) $ECHO_C" >&6
37507 cat >conftest.$ac_ext <<_ACEOF
37510 cat confdefs.h >>conftest.$ac_ext
37511 cat >>conftest.$ac_ext <<_ACEOF
37512 /* end confdefs.h. */
37513 #include <sys/types.h>
37514 #include <sys/socket.h>
37515 #include <netinet/in.h>
37517 #define BUFSIZE (sizeof(struct hostent)+10)
37521 struct hostent hent; char buffer[BUFSIZE];
37522 int bufsize=BUFSIZE;int h_errno;
37523 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
37524 buffer, bufsize, &h_errno);
37529 rm -f conftest.$ac_objext
37530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37531 (eval $ac_compile) 2>conftest.er1
37533 grep -v '^ *+' conftest.er1 >conftest.err
37535 cat conftest.err >&5
37536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37537 (exit $ac_status); } &&
37538 { ac_try='test -z "$ac_c_werror_flag"
37539 || test ! -s conftest.err'
37540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37541 (eval $ac_try) 2>&5
37543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37544 (exit $ac_status); }; } &&
37545 { ac_try='test -s conftest.$ac_objext'
37546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37547 (eval $ac_try) 2>&5
37549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37550 (exit $ac_status); }; }; then
37551 ol_cv_func_gethostbyname_r_nargs5=yes
37553 echo "$as_me: failed program was:" >&5
37554 sed 's/^/| /' conftest.$ac_ext >&5
37556 ol_cv_func_gethostbyname_r_nargs5=no
37558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37560 cat >conftest.$ac_ext <<_ACEOF
37563 cat confdefs.h >>conftest.$ac_ext
37564 cat >>conftest.$ac_ext <<_ACEOF
37565 /* end confdefs.h. */
37566 #include <sys/types.h>
37567 #include <sys/socket.h>
37568 #include <netinet/in.h>
37570 #define BUFSIZE (sizeof(struct hostent)+10)
37574 struct hostent hent;struct hostent *rhent;
37575 char buffer[BUFSIZE];
37576 int bufsize=BUFSIZE;int h_errno;
37577 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
37583 rm -f conftest.$ac_objext
37584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37585 (eval $ac_compile) 2>conftest.er1
37587 grep -v '^ *+' conftest.er1 >conftest.err
37589 cat conftest.err >&5
37590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37591 (exit $ac_status); } &&
37592 { ac_try='test -z "$ac_c_werror_flag"
37593 || test ! -s conftest.err'
37594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37595 (eval $ac_try) 2>&5
37597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37598 (exit $ac_status); }; } &&
37599 { ac_try='test -s conftest.$ac_objext'
37600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37601 (eval $ac_try) 2>&5
37603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37604 (exit $ac_status); }; }; then
37605 ol_cv_func_gethostbyname_r_nargs6=yes
37607 echo "$as_me: failed program was:" >&5
37608 sed 's/^/| /' conftest.$ac_ext >&5
37610 ol_cv_func_gethostbyname_r_nargs6=no
37612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37614 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
37615 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
37617 ol_cv_func_gethostbyname_r_nargs=5
37619 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
37620 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
37622 ol_cv_func_gethostbyname_r_nargs=6
37625 ol_cv_func_gethostbyname_r_nargs=0
37629 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
37630 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
37631 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
37633 cat >>confdefs.h <<_ACEOF
37634 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
37640 ol_cv_func_gethostbyname_r_nargs=0
37643 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
37644 echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
37645 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
37646 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
37647 echo $ECHO_N "(cached) $ECHO_C" >&6
37649 cat >conftest.$ac_ext <<_ACEOF
37652 cat confdefs.h >>conftest.$ac_ext
37653 cat >>conftest.$ac_ext <<_ACEOF
37654 /* end confdefs.h. */
37655 #include <sys/types.h>
37656 #include <sys/socket.h>
37657 #include <netinet/in.h>
37659 #define BUFSIZE (sizeof(struct hostent)+10)
37663 struct hostent hent; char buffer[BUFSIZE];
37664 struct in_addr add;
37665 size_t alen=sizeof(struct in_addr);
37666 int bufsize=BUFSIZE;int h_errno;
37667 (void)gethostbyaddr_r( (void *)&(add.s_addr),
37668 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
37673 rm -f conftest.$ac_objext
37674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37675 (eval $ac_compile) 2>conftest.er1
37677 grep -v '^ *+' conftest.er1 >conftest.err
37679 cat conftest.err >&5
37680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37681 (exit $ac_status); } &&
37682 { ac_try='test -z "$ac_c_werror_flag"
37683 || test ! -s conftest.err'
37684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37685 (eval $ac_try) 2>&5
37687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37688 (exit $ac_status); }; } &&
37689 { ac_try='test -s conftest.$ac_objext'
37690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37691 (eval $ac_try) 2>&5
37693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37694 (exit $ac_status); }; }; then
37695 ol_cv_func_gethostbyaddr_r_nargs7=yes
37697 echo "$as_me: failed program was:" >&5
37698 sed 's/^/| /' conftest.$ac_ext >&5
37700 ol_cv_func_gethostbyaddr_r_nargs7=no
37702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37704 cat >conftest.$ac_ext <<_ACEOF
37707 cat confdefs.h >>conftest.$ac_ext
37708 cat >>conftest.$ac_ext <<_ACEOF
37709 /* end confdefs.h. */
37710 #include <sys/types.h>
37711 #include <sys/socket.h>
37712 #include <netinet/in.h>
37714 #define BUFSIZE (sizeof(struct hostent)+10)
37718 struct hostent hent;
37719 struct hostent *rhent; char buffer[BUFSIZE];
37720 struct in_addr add;
37721 size_t alen=sizeof(struct in_addr);
37722 int bufsize=BUFSIZE;int h_errno;
37723 (void)gethostbyaddr_r( (void *)&(add.s_addr),
37724 alen, AF_INET, &hent, buffer, bufsize,
37730 rm -f conftest.$ac_objext
37731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37732 (eval $ac_compile) 2>conftest.er1
37734 grep -v '^ *+' conftest.er1 >conftest.err
37736 cat conftest.err >&5
37737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37738 (exit $ac_status); } &&
37739 { ac_try='test -z "$ac_c_werror_flag"
37740 || test ! -s conftest.err'
37741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37742 (eval $ac_try) 2>&5
37744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37745 (exit $ac_status); }; } &&
37746 { ac_try='test -s conftest.$ac_objext'
37747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37748 (eval $ac_try) 2>&5
37750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37751 (exit $ac_status); }; }; then
37752 ol_cv_func_gethostbyaddr_r_nargs8=yes
37754 echo "$as_me: failed program was:" >&5
37755 sed 's/^/| /' conftest.$ac_ext >&5
37757 ol_cv_func_gethostbyaddr_r_nargs8=no
37759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37761 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
37762 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
37764 ol_cv_func_gethostbyaddr_r_nargs=7
37766 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
37767 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
37769 ol_cv_func_gethostbyaddr_r_nargs=8
37772 ol_cv_func_gethostbyaddr_r_nargs=0
37776 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
37777 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
37778 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
37780 cat >>confdefs.h <<_ACEOF
37781 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
37787 ol_cv_func_gethostbyaddr_r_nargs=0
37792 if test $ol_with_ldbm_api = auto \
37793 -o $ol_with_ldbm_api = berkeley \
37794 -o $ol_with_ldbm_api = bcompat ; then
37796 if test $ol_with_ldbm_api = bcompat; then \
37799 for ac_header in db_185.h db.h
37801 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37803 echo "$as_me:$LINENO: checking for $ac_header" >&5
37804 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37805 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37806 echo $ECHO_N "(cached) $ECHO_C" >&6
37808 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37809 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37811 # Is the header compilable?
37812 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37813 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37814 cat >conftest.$ac_ext <<_ACEOF
37817 cat confdefs.h >>conftest.$ac_ext
37818 cat >>conftest.$ac_ext <<_ACEOF
37819 /* end confdefs.h. */
37820 $ac_includes_default
37821 #include <$ac_header>
37823 rm -f conftest.$ac_objext
37824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37825 (eval $ac_compile) 2>conftest.er1
37827 grep -v '^ *+' conftest.er1 >conftest.err
37829 cat conftest.err >&5
37830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37831 (exit $ac_status); } &&
37832 { ac_try='test -z "$ac_c_werror_flag"
37833 || test ! -s conftest.err'
37834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37835 (eval $ac_try) 2>&5
37837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37838 (exit $ac_status); }; } &&
37839 { ac_try='test -s conftest.$ac_objext'
37840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37841 (eval $ac_try) 2>&5
37843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37844 (exit $ac_status); }; }; then
37845 ac_header_compiler=yes
37847 echo "$as_me: failed program was:" >&5
37848 sed 's/^/| /' conftest.$ac_ext >&5
37850 ac_header_compiler=no
37852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37853 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37854 echo "${ECHO_T}$ac_header_compiler" >&6
37856 # Is the header present?
37857 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37858 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37859 cat >conftest.$ac_ext <<_ACEOF
37862 cat confdefs.h >>conftest.$ac_ext
37863 cat >>conftest.$ac_ext <<_ACEOF
37864 /* end confdefs.h. */
37865 #include <$ac_header>
37867 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37868 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37870 grep -v '^ *+' conftest.er1 >conftest.err
37872 cat conftest.err >&5
37873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37874 (exit $ac_status); } >/dev/null; then
37875 if test -s conftest.err; then
37876 ac_cpp_err=$ac_c_preproc_warn_flag
37877 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37884 if test -z "$ac_cpp_err"; then
37885 ac_header_preproc=yes
37887 echo "$as_me: failed program was:" >&5
37888 sed 's/^/| /' conftest.$ac_ext >&5
37890 ac_header_preproc=no
37892 rm -f conftest.err conftest.$ac_ext
37893 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37894 echo "${ECHO_T}$ac_header_preproc" >&6
37896 # So? What about this header?
37897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37899 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37900 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37902 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37903 ac_header_preproc=yes
37906 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37907 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37908 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37909 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37910 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37911 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37912 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37913 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37915 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37916 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37917 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37920 ## ------------------------------------------ ##
37921 ## Report this to the AC_PACKAGE_NAME lists. ##
37922 ## ------------------------------------------ ##
37925 sed "s/^/$as_me: WARNING: /" >&2
37928 echo "$as_me:$LINENO: checking for $ac_header" >&5
37929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37931 echo $ECHO_N "(cached) $ECHO_C" >&6
37933 eval "$as_ac_Header=\$ac_header_preproc"
37935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37936 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37939 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37940 cat >>confdefs.h <<_ACEOF
37941 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37948 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
37949 echo "$as_me:$LINENO: checking if Berkeley DB header compatibility" >&5
37950 echo $ECHO_N "checking if Berkeley DB header compatibility... $ECHO_C" >&6
37951 if test "${ol_cv_header_db1+set}" = set; then
37952 echo $ECHO_N "(cached) $ECHO_C" >&6
37955 cat >conftest.$ac_ext <<_ACEOF
37958 cat confdefs.h >>conftest.$ac_ext
37959 cat >>conftest.$ac_ext <<_ACEOF
37960 /* end confdefs.h. */
37963 # include <db_185.h>
37968 /* this check could be improved */
37969 #ifndef DB_VERSION_MAJOR
37970 # define DB_VERSION_MAJOR 1
37973 #if DB_VERSION_MAJOR == 1
37978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37979 $EGREP "__db_version_1" >/dev/null 2>&1; then
37980 ol_cv_header_db1=yes
37982 ol_cv_header_db1=no
37987 echo "$as_me:$LINENO: result: $ol_cv_header_db1" >&5
37988 echo "${ECHO_T}$ol_cv_header_db1" >&6
37990 if test $ol_cv_header_db1 = yes ; then
37992 if test $ol_cv_lib_db = no ; then
37993 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
37994 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
37995 if test "${ol_cv_db_none+set}" = set; then
37996 echo $ECHO_N "(cached) $ECHO_C" >&6
38001 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38003 cat >conftest.$ac_ext <<_ACEOF
38006 cat confdefs.h >>conftest.$ac_ext
38007 cat >>conftest.$ac_ext <<_ACEOF
38008 /* end confdefs.h. */
38010 #ifdef HAVE_DB_185_H
38011 # include <db_185.h>
38016 #ifndef DB_VERSION_MAJOR
38017 # define DB_VERSION_MAJOR 1
38021 #define NULL ((void*)0)
38028 #if DB_VERSION_MAJOR > 1
38031 int major, minor, patch;
38033 version = db_version( &major, &minor, &patch );
38035 if( major != DB_VERSION_MAJOR ||
38036 minor < DB_VERSION_MINOR )
38038 printf("Berkeley DB version mismatch\n"
38039 "\theader: %s\n\tlibrary: %s\n",
38040 DB_VERSION_STRING, version);
38046 #if DB_VERSION_MAJOR > 2
38047 db_env_create( NULL, 0 );
38048 #elif DB_VERSION_MAJOR > 1
38049 db_appexit( NULL );
38051 (void) dbopen( NULL, 0, 0, 0, NULL);
38058 rm -f conftest.$ac_objext conftest$ac_exeext
38059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38060 (eval $ac_link) 2>conftest.er1
38062 grep -v '^ *+' conftest.er1 >conftest.err
38064 cat conftest.err >&5
38065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38066 (exit $ac_status); } &&
38067 { ac_try='test -z "$ac_c_werror_flag"
38068 || test ! -s conftest.err'
38069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38070 (eval $ac_try) 2>&5
38072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38073 (exit $ac_status); }; } &&
38074 { ac_try='test -s conftest$ac_exeext'
38075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38076 (eval $ac_try) 2>&5
38078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38079 (exit $ac_status); }; }; then
38082 echo "$as_me: failed program was:" >&5
38083 sed 's/^/| /' conftest.$ac_ext >&5
38087 rm -f conftest.err conftest.$ac_objext \
38088 conftest$ac_exeext conftest.$ac_ext
38093 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
38094 echo "${ECHO_T}$ol_cv_db_none" >&6
38096 if test $ol_cv_db_none = yes ; then
38101 if test $ol_cv_lib_db = no ; then
38102 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
38103 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
38104 if test "${ol_cv_db_db43+set}" = set; then
38105 echo $ECHO_N "(cached) $ECHO_C" >&6
38110 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38112 cat >conftest.$ac_ext <<_ACEOF
38115 cat confdefs.h >>conftest.$ac_ext
38116 cat >>conftest.$ac_ext <<_ACEOF
38117 /* end confdefs.h. */
38119 #ifdef HAVE_DB_185_H
38120 # include <db_185.h>
38125 #ifndef DB_VERSION_MAJOR
38126 # define DB_VERSION_MAJOR 1
38130 #define NULL ((void*)0)
38137 #if DB_VERSION_MAJOR > 1
38140 int major, minor, patch;
38142 version = db_version( &major, &minor, &patch );
38144 if( major != DB_VERSION_MAJOR ||
38145 minor < DB_VERSION_MINOR )
38147 printf("Berkeley DB version mismatch\n"
38148 "\theader: %s\n\tlibrary: %s\n",
38149 DB_VERSION_STRING, version);
38155 #if DB_VERSION_MAJOR > 2
38156 db_env_create( NULL, 0 );
38157 #elif DB_VERSION_MAJOR > 1
38158 db_appexit( NULL );
38160 (void) dbopen( NULL, 0, 0, 0, NULL);
38167 rm -f conftest.$ac_objext conftest$ac_exeext
38168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38169 (eval $ac_link) 2>conftest.er1
38171 grep -v '^ *+' conftest.er1 >conftest.err
38173 cat conftest.err >&5
38174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38175 (exit $ac_status); } &&
38176 { ac_try='test -z "$ac_c_werror_flag"
38177 || test ! -s conftest.err'
38178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38179 (eval $ac_try) 2>&5
38181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38182 (exit $ac_status); }; } &&
38183 { ac_try='test -s conftest$ac_exeext'
38184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38185 (eval $ac_try) 2>&5
38187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38188 (exit $ac_status); }; }; then
38191 echo "$as_me: failed program was:" >&5
38192 sed 's/^/| /' conftest.$ac_ext >&5
38196 rm -f conftest.err conftest.$ac_objext \
38197 conftest$ac_exeext conftest.$ac_ext
38202 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
38203 echo "${ECHO_T}$ol_cv_db_db43" >&6
38205 if test $ol_cv_db_db43 = yes ; then
38206 ol_cv_lib_db=-ldb43
38210 if test $ol_cv_lib_db = no ; then
38211 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
38212 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
38213 if test "${ol_cv_db_db_43+set}" = set; then
38214 echo $ECHO_N "(cached) $ECHO_C" >&6
38219 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38221 cat >conftest.$ac_ext <<_ACEOF
38224 cat confdefs.h >>conftest.$ac_ext
38225 cat >>conftest.$ac_ext <<_ACEOF
38226 /* end confdefs.h. */
38228 #ifdef HAVE_DB_185_H
38229 # include <db_185.h>
38234 #ifndef DB_VERSION_MAJOR
38235 # define DB_VERSION_MAJOR 1
38239 #define NULL ((void*)0)
38246 #if DB_VERSION_MAJOR > 1
38249 int major, minor, patch;
38251 version = db_version( &major, &minor, &patch );
38253 if( major != DB_VERSION_MAJOR ||
38254 minor < DB_VERSION_MINOR )
38256 printf("Berkeley DB version mismatch\n"
38257 "\theader: %s\n\tlibrary: %s\n",
38258 DB_VERSION_STRING, version);
38264 #if DB_VERSION_MAJOR > 2
38265 db_env_create( NULL, 0 );
38266 #elif DB_VERSION_MAJOR > 1
38267 db_appexit( NULL );
38269 (void) dbopen( NULL, 0, 0, 0, NULL);
38276 rm -f conftest.$ac_objext conftest$ac_exeext
38277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38278 (eval $ac_link) 2>conftest.er1
38280 grep -v '^ *+' conftest.er1 >conftest.err
38282 cat conftest.err >&5
38283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38284 (exit $ac_status); } &&
38285 { ac_try='test -z "$ac_c_werror_flag"
38286 || test ! -s conftest.err'
38287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38288 (eval $ac_try) 2>&5
38290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38291 (exit $ac_status); }; } &&
38292 { ac_try='test -s conftest$ac_exeext'
38293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38294 (eval $ac_try) 2>&5
38296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38297 (exit $ac_status); }; }; then
38300 echo "$as_me: failed program was:" >&5
38301 sed 's/^/| /' conftest.$ac_ext >&5
38305 rm -f conftest.err conftest.$ac_objext \
38306 conftest$ac_exeext conftest.$ac_ext
38311 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
38312 echo "${ECHO_T}$ol_cv_db_db_43" >&6
38314 if test $ol_cv_db_db_43 = yes ; then
38315 ol_cv_lib_db=-ldb-43
38319 if test $ol_cv_lib_db = no ; then
38320 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
38321 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
38322 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
38323 echo $ECHO_N "(cached) $ECHO_C" >&6
38328 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38330 cat >conftest.$ac_ext <<_ACEOF
38333 cat confdefs.h >>conftest.$ac_ext
38334 cat >>conftest.$ac_ext <<_ACEOF
38335 /* end confdefs.h. */
38337 #ifdef HAVE_DB_185_H
38338 # include <db_185.h>
38343 #ifndef DB_VERSION_MAJOR
38344 # define DB_VERSION_MAJOR 1
38348 #define NULL ((void*)0)
38355 #if DB_VERSION_MAJOR > 1
38358 int major, minor, patch;
38360 version = db_version( &major, &minor, &patch );
38362 if( major != DB_VERSION_MAJOR ||
38363 minor < DB_VERSION_MINOR )
38365 printf("Berkeley DB version mismatch\n"
38366 "\theader: %s\n\tlibrary: %s\n",
38367 DB_VERSION_STRING, version);
38373 #if DB_VERSION_MAJOR > 2
38374 db_env_create( NULL, 0 );
38375 #elif DB_VERSION_MAJOR > 1
38376 db_appexit( NULL );
38378 (void) dbopen( NULL, 0, 0, 0, NULL);
38385 rm -f conftest.$ac_objext conftest$ac_exeext
38386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38387 (eval $ac_link) 2>conftest.er1
38389 grep -v '^ *+' conftest.er1 >conftest.err
38391 cat conftest.err >&5
38392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38393 (exit $ac_status); } &&
38394 { ac_try='test -z "$ac_c_werror_flag"
38395 || test ! -s conftest.err'
38396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38397 (eval $ac_try) 2>&5
38399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38400 (exit $ac_status); }; } &&
38401 { ac_try='test -s conftest$ac_exeext'
38402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38403 (eval $ac_try) 2>&5
38405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38406 (exit $ac_status); }; }; then
38407 ol_cv_db_db_4_dot_3=yes
38409 echo "$as_me: failed program was:" >&5
38410 sed 's/^/| /' conftest.$ac_ext >&5
38412 ol_cv_db_db_4_dot_3=no
38414 rm -f conftest.err conftest.$ac_objext \
38415 conftest$ac_exeext conftest.$ac_ext
38420 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
38421 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
38423 if test $ol_cv_db_db_4_dot_3 = yes ; then
38424 ol_cv_lib_db=-ldb-4.3
38428 if test $ol_cv_lib_db = no ; then
38429 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
38430 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
38431 if test "${ol_cv_db_db_4_3+set}" = set; then
38432 echo $ECHO_N "(cached) $ECHO_C" >&6
38437 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38439 cat >conftest.$ac_ext <<_ACEOF
38442 cat confdefs.h >>conftest.$ac_ext
38443 cat >>conftest.$ac_ext <<_ACEOF
38444 /* end confdefs.h. */
38446 #ifdef HAVE_DB_185_H
38447 # include <db_185.h>
38452 #ifndef DB_VERSION_MAJOR
38453 # define DB_VERSION_MAJOR 1
38457 #define NULL ((void*)0)
38464 #if DB_VERSION_MAJOR > 1
38467 int major, minor, patch;
38469 version = db_version( &major, &minor, &patch );
38471 if( major != DB_VERSION_MAJOR ||
38472 minor < DB_VERSION_MINOR )
38474 printf("Berkeley DB version mismatch\n"
38475 "\theader: %s\n\tlibrary: %s\n",
38476 DB_VERSION_STRING, version);
38482 #if DB_VERSION_MAJOR > 2
38483 db_env_create( NULL, 0 );
38484 #elif DB_VERSION_MAJOR > 1
38485 db_appexit( NULL );
38487 (void) dbopen( NULL, 0, 0, 0, NULL);
38494 rm -f conftest.$ac_objext conftest$ac_exeext
38495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38496 (eval $ac_link) 2>conftest.er1
38498 grep -v '^ *+' conftest.er1 >conftest.err
38500 cat conftest.err >&5
38501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38502 (exit $ac_status); } &&
38503 { ac_try='test -z "$ac_c_werror_flag"
38504 || test ! -s conftest.err'
38505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38506 (eval $ac_try) 2>&5
38508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38509 (exit $ac_status); }; } &&
38510 { ac_try='test -s conftest$ac_exeext'
38511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38512 (eval $ac_try) 2>&5
38514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38515 (exit $ac_status); }; }; then
38516 ol_cv_db_db_4_3=yes
38518 echo "$as_me: failed program was:" >&5
38519 sed 's/^/| /' conftest.$ac_ext >&5
38523 rm -f conftest.err conftest.$ac_objext \
38524 conftest$ac_exeext conftest.$ac_ext
38529 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
38530 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
38532 if test $ol_cv_db_db_4_3 = yes ; then
38533 ol_cv_lib_db=-ldb-4-3
38537 if test $ol_cv_lib_db = no ; then
38538 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
38539 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
38540 if test "${ol_cv_db_db42+set}" = set; then
38541 echo $ECHO_N "(cached) $ECHO_C" >&6
38546 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38548 cat >conftest.$ac_ext <<_ACEOF
38551 cat confdefs.h >>conftest.$ac_ext
38552 cat >>conftest.$ac_ext <<_ACEOF
38553 /* end confdefs.h. */
38555 #ifdef HAVE_DB_185_H
38556 # include <db_185.h>
38561 #ifndef DB_VERSION_MAJOR
38562 # define DB_VERSION_MAJOR 1
38566 #define NULL ((void*)0)
38573 #if DB_VERSION_MAJOR > 1
38576 int major, minor, patch;
38578 version = db_version( &major, &minor, &patch );
38580 if( major != DB_VERSION_MAJOR ||
38581 minor < DB_VERSION_MINOR )
38583 printf("Berkeley DB version mismatch\n"
38584 "\theader: %s\n\tlibrary: %s\n",
38585 DB_VERSION_STRING, version);
38591 #if DB_VERSION_MAJOR > 2
38592 db_env_create( NULL, 0 );
38593 #elif DB_VERSION_MAJOR > 1
38594 db_appexit( NULL );
38596 (void) dbopen( NULL, 0, 0, 0, NULL);
38603 rm -f conftest.$ac_objext conftest$ac_exeext
38604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38605 (eval $ac_link) 2>conftest.er1
38607 grep -v '^ *+' conftest.er1 >conftest.err
38609 cat conftest.err >&5
38610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38611 (exit $ac_status); } &&
38612 { ac_try='test -z "$ac_c_werror_flag"
38613 || test ! -s conftest.err'
38614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38615 (eval $ac_try) 2>&5
38617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38618 (exit $ac_status); }; } &&
38619 { ac_try='test -s conftest$ac_exeext'
38620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38621 (eval $ac_try) 2>&5
38623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38624 (exit $ac_status); }; }; then
38627 echo "$as_me: failed program was:" >&5
38628 sed 's/^/| /' conftest.$ac_ext >&5
38632 rm -f conftest.err conftest.$ac_objext \
38633 conftest$ac_exeext conftest.$ac_ext
38638 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
38639 echo "${ECHO_T}$ol_cv_db_db42" >&6
38641 if test $ol_cv_db_db42 = yes ; then
38642 ol_cv_lib_db=-ldb42
38646 if test $ol_cv_lib_db = no ; then
38647 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
38648 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
38649 if test "${ol_cv_db_db_42+set}" = set; then
38650 echo $ECHO_N "(cached) $ECHO_C" >&6
38655 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38657 cat >conftest.$ac_ext <<_ACEOF
38660 cat confdefs.h >>conftest.$ac_ext
38661 cat >>conftest.$ac_ext <<_ACEOF
38662 /* end confdefs.h. */
38664 #ifdef HAVE_DB_185_H
38665 # include <db_185.h>
38670 #ifndef DB_VERSION_MAJOR
38671 # define DB_VERSION_MAJOR 1
38675 #define NULL ((void*)0)
38682 #if DB_VERSION_MAJOR > 1
38685 int major, minor, patch;
38687 version = db_version( &major, &minor, &patch );
38689 if( major != DB_VERSION_MAJOR ||
38690 minor < DB_VERSION_MINOR )
38692 printf("Berkeley DB version mismatch\n"
38693 "\theader: %s\n\tlibrary: %s\n",
38694 DB_VERSION_STRING, version);
38700 #if DB_VERSION_MAJOR > 2
38701 db_env_create( NULL, 0 );
38702 #elif DB_VERSION_MAJOR > 1
38703 db_appexit( NULL );
38705 (void) dbopen( NULL, 0, 0, 0, NULL);
38712 rm -f conftest.$ac_objext conftest$ac_exeext
38713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38714 (eval $ac_link) 2>conftest.er1
38716 grep -v '^ *+' conftest.er1 >conftest.err
38718 cat conftest.err >&5
38719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38720 (exit $ac_status); } &&
38721 { ac_try='test -z "$ac_c_werror_flag"
38722 || test ! -s conftest.err'
38723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38724 (eval $ac_try) 2>&5
38726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38727 (exit $ac_status); }; } &&
38728 { ac_try='test -s conftest$ac_exeext'
38729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38730 (eval $ac_try) 2>&5
38732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38733 (exit $ac_status); }; }; then
38736 echo "$as_me: failed program was:" >&5
38737 sed 's/^/| /' conftest.$ac_ext >&5
38741 rm -f conftest.err conftest.$ac_objext \
38742 conftest$ac_exeext conftest.$ac_ext
38747 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
38748 echo "${ECHO_T}$ol_cv_db_db_42" >&6
38750 if test $ol_cv_db_db_42 = yes ; then
38751 ol_cv_lib_db=-ldb-42
38755 if test $ol_cv_lib_db = no ; then
38756 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
38757 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
38758 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
38759 echo $ECHO_N "(cached) $ECHO_C" >&6
38764 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38766 cat >conftest.$ac_ext <<_ACEOF
38769 cat confdefs.h >>conftest.$ac_ext
38770 cat >>conftest.$ac_ext <<_ACEOF
38771 /* end confdefs.h. */
38773 #ifdef HAVE_DB_185_H
38774 # include <db_185.h>
38779 #ifndef DB_VERSION_MAJOR
38780 # define DB_VERSION_MAJOR 1
38784 #define NULL ((void*)0)
38791 #if DB_VERSION_MAJOR > 1
38794 int major, minor, patch;
38796 version = db_version( &major, &minor, &patch );
38798 if( major != DB_VERSION_MAJOR ||
38799 minor < DB_VERSION_MINOR )
38801 printf("Berkeley DB version mismatch\n"
38802 "\theader: %s\n\tlibrary: %s\n",
38803 DB_VERSION_STRING, version);
38809 #if DB_VERSION_MAJOR > 2
38810 db_env_create( NULL, 0 );
38811 #elif DB_VERSION_MAJOR > 1
38812 db_appexit( NULL );
38814 (void) dbopen( NULL, 0, 0, 0, NULL);
38821 rm -f conftest.$ac_objext conftest$ac_exeext
38822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38823 (eval $ac_link) 2>conftest.er1
38825 grep -v '^ *+' conftest.er1 >conftest.err
38827 cat conftest.err >&5
38828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38829 (exit $ac_status); } &&
38830 { ac_try='test -z "$ac_c_werror_flag"
38831 || test ! -s conftest.err'
38832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38833 (eval $ac_try) 2>&5
38835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38836 (exit $ac_status); }; } &&
38837 { ac_try='test -s conftest$ac_exeext'
38838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38839 (eval $ac_try) 2>&5
38841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38842 (exit $ac_status); }; }; then
38843 ol_cv_db_db_4_dot_2=yes
38845 echo "$as_me: failed program was:" >&5
38846 sed 's/^/| /' conftest.$ac_ext >&5
38848 ol_cv_db_db_4_dot_2=no
38850 rm -f conftest.err conftest.$ac_objext \
38851 conftest$ac_exeext conftest.$ac_ext
38856 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
38857 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
38859 if test $ol_cv_db_db_4_dot_2 = yes ; then
38860 ol_cv_lib_db=-ldb-4.2
38864 if test $ol_cv_lib_db = no ; then
38865 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
38866 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
38867 if test "${ol_cv_db_db_4_2+set}" = set; then
38868 echo $ECHO_N "(cached) $ECHO_C" >&6
38873 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38875 cat >conftest.$ac_ext <<_ACEOF
38878 cat confdefs.h >>conftest.$ac_ext
38879 cat >>conftest.$ac_ext <<_ACEOF
38880 /* end confdefs.h. */
38882 #ifdef HAVE_DB_185_H
38883 # include <db_185.h>
38888 #ifndef DB_VERSION_MAJOR
38889 # define DB_VERSION_MAJOR 1
38893 #define NULL ((void*)0)
38900 #if DB_VERSION_MAJOR > 1
38903 int major, minor, patch;
38905 version = db_version( &major, &minor, &patch );
38907 if( major != DB_VERSION_MAJOR ||
38908 minor < DB_VERSION_MINOR )
38910 printf("Berkeley DB version mismatch\n"
38911 "\theader: %s\n\tlibrary: %s\n",
38912 DB_VERSION_STRING, version);
38918 #if DB_VERSION_MAJOR > 2
38919 db_env_create( NULL, 0 );
38920 #elif DB_VERSION_MAJOR > 1
38921 db_appexit( NULL );
38923 (void) dbopen( NULL, 0, 0, 0, NULL);
38930 rm -f conftest.$ac_objext conftest$ac_exeext
38931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38932 (eval $ac_link) 2>conftest.er1
38934 grep -v '^ *+' conftest.er1 >conftest.err
38936 cat conftest.err >&5
38937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38938 (exit $ac_status); } &&
38939 { ac_try='test -z "$ac_c_werror_flag"
38940 || test ! -s conftest.err'
38941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38942 (eval $ac_try) 2>&5
38944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38945 (exit $ac_status); }; } &&
38946 { ac_try='test -s conftest$ac_exeext'
38947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38948 (eval $ac_try) 2>&5
38950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38951 (exit $ac_status); }; }; then
38952 ol_cv_db_db_4_2=yes
38954 echo "$as_me: failed program was:" >&5
38955 sed 's/^/| /' conftest.$ac_ext >&5
38959 rm -f conftest.err conftest.$ac_objext \
38960 conftest$ac_exeext conftest.$ac_ext
38965 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
38966 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
38968 if test $ol_cv_db_db_4_2 = yes ; then
38969 ol_cv_lib_db=-ldb-4-2
38973 if test $ol_cv_lib_db = no ; then
38974 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
38975 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
38976 if test "${ol_cv_db_db_4+set}" = set; then
38977 echo $ECHO_N "(cached) $ECHO_C" >&6
38982 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38984 cat >conftest.$ac_ext <<_ACEOF
38987 cat confdefs.h >>conftest.$ac_ext
38988 cat >>conftest.$ac_ext <<_ACEOF
38989 /* end confdefs.h. */
38991 #ifdef HAVE_DB_185_H
38992 # include <db_185.h>
38997 #ifndef DB_VERSION_MAJOR
38998 # define DB_VERSION_MAJOR 1
39002 #define NULL ((void*)0)
39009 #if DB_VERSION_MAJOR > 1
39012 int major, minor, patch;
39014 version = db_version( &major, &minor, &patch );
39016 if( major != DB_VERSION_MAJOR ||
39017 minor < DB_VERSION_MINOR )
39019 printf("Berkeley DB version mismatch\n"
39020 "\theader: %s\n\tlibrary: %s\n",
39021 DB_VERSION_STRING, version);
39027 #if DB_VERSION_MAJOR > 2
39028 db_env_create( NULL, 0 );
39029 #elif DB_VERSION_MAJOR > 1
39030 db_appexit( NULL );
39032 (void) dbopen( NULL, 0, 0, 0, NULL);
39039 rm -f conftest.$ac_objext conftest$ac_exeext
39040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39041 (eval $ac_link) 2>conftest.er1
39043 grep -v '^ *+' conftest.er1 >conftest.err
39045 cat conftest.err >&5
39046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39047 (exit $ac_status); } &&
39048 { ac_try='test -z "$ac_c_werror_flag"
39049 || test ! -s conftest.err'
39050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39051 (eval $ac_try) 2>&5
39053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39054 (exit $ac_status); }; } &&
39055 { ac_try='test -s conftest$ac_exeext'
39056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39057 (eval $ac_try) 2>&5
39059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39060 (exit $ac_status); }; }; then
39063 echo "$as_me: failed program was:" >&5
39064 sed 's/^/| /' conftest.$ac_ext >&5
39068 rm -f conftest.err conftest.$ac_objext \
39069 conftest$ac_exeext conftest.$ac_ext
39074 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
39075 echo "${ECHO_T}$ol_cv_db_db_4" >&6
39077 if test $ol_cv_db_db_4 = yes ; then
39078 ol_cv_lib_db=-ldb-4
39082 if test $ol_cv_lib_db = no ; then
39083 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
39084 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
39085 if test "${ol_cv_db_db4+set}" = set; then
39086 echo $ECHO_N "(cached) $ECHO_C" >&6
39091 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39093 cat >conftest.$ac_ext <<_ACEOF
39096 cat confdefs.h >>conftest.$ac_ext
39097 cat >>conftest.$ac_ext <<_ACEOF
39098 /* end confdefs.h. */
39100 #ifdef HAVE_DB_185_H
39101 # include <db_185.h>
39106 #ifndef DB_VERSION_MAJOR
39107 # define DB_VERSION_MAJOR 1
39111 #define NULL ((void*)0)
39118 #if DB_VERSION_MAJOR > 1
39121 int major, minor, patch;
39123 version = db_version( &major, &minor, &patch );
39125 if( major != DB_VERSION_MAJOR ||
39126 minor < DB_VERSION_MINOR )
39128 printf("Berkeley DB version mismatch\n"
39129 "\theader: %s\n\tlibrary: %s\n",
39130 DB_VERSION_STRING, version);
39136 #if DB_VERSION_MAJOR > 2
39137 db_env_create( NULL, 0 );
39138 #elif DB_VERSION_MAJOR > 1
39139 db_appexit( NULL );
39141 (void) dbopen( NULL, 0, 0, 0, NULL);
39148 rm -f conftest.$ac_objext conftest$ac_exeext
39149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39150 (eval $ac_link) 2>conftest.er1
39152 grep -v '^ *+' conftest.er1 >conftest.err
39154 cat conftest.err >&5
39155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39156 (exit $ac_status); } &&
39157 { ac_try='test -z "$ac_c_werror_flag"
39158 || test ! -s conftest.err'
39159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39160 (eval $ac_try) 2>&5
39162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39163 (exit $ac_status); }; } &&
39164 { ac_try='test -s conftest$ac_exeext'
39165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39166 (eval $ac_try) 2>&5
39168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39169 (exit $ac_status); }; }; then
39172 echo "$as_me: failed program was:" >&5
39173 sed 's/^/| /' conftest.$ac_ext >&5
39177 rm -f conftest.err conftest.$ac_objext \
39178 conftest$ac_exeext conftest.$ac_ext
39183 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
39184 echo "${ECHO_T}$ol_cv_db_db4" >&6
39186 if test $ol_cv_db_db4 = yes ; then
39191 if test $ol_cv_lib_db = no ; then
39192 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
39193 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
39194 if test "${ol_cv_db_db+set}" = set; then
39195 echo $ECHO_N "(cached) $ECHO_C" >&6
39200 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39202 cat >conftest.$ac_ext <<_ACEOF
39205 cat confdefs.h >>conftest.$ac_ext
39206 cat >>conftest.$ac_ext <<_ACEOF
39207 /* end confdefs.h. */
39209 #ifdef HAVE_DB_185_H
39210 # include <db_185.h>
39215 #ifndef DB_VERSION_MAJOR
39216 # define DB_VERSION_MAJOR 1
39220 #define NULL ((void*)0)
39227 #if DB_VERSION_MAJOR > 1
39230 int major, minor, patch;
39232 version = db_version( &major, &minor, &patch );
39234 if( major != DB_VERSION_MAJOR ||
39235 minor < DB_VERSION_MINOR )
39237 printf("Berkeley DB version mismatch\n"
39238 "\theader: %s\n\tlibrary: %s\n",
39239 DB_VERSION_STRING, version);
39245 #if DB_VERSION_MAJOR > 2
39246 db_env_create( NULL, 0 );
39247 #elif DB_VERSION_MAJOR > 1
39248 db_appexit( NULL );
39250 (void) dbopen( NULL, 0, 0, 0, NULL);
39257 rm -f conftest.$ac_objext conftest$ac_exeext
39258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39259 (eval $ac_link) 2>conftest.er1
39261 grep -v '^ *+' conftest.er1 >conftest.err
39263 cat conftest.err >&5
39264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39265 (exit $ac_status); } &&
39266 { ac_try='test -z "$ac_c_werror_flag"
39267 || test ! -s conftest.err'
39268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39269 (eval $ac_try) 2>&5
39271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39272 (exit $ac_status); }; } &&
39273 { ac_try='test -s conftest$ac_exeext'
39274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39275 (eval $ac_try) 2>&5
39277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39278 (exit $ac_status); }; }; then
39281 echo "$as_me: failed program was:" >&5
39282 sed 's/^/| /' conftest.$ac_ext >&5
39286 rm -f conftest.err conftest.$ac_objext \
39287 conftest$ac_exeext conftest.$ac_ext
39292 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
39293 echo "${ECHO_T}$ol_cv_db_db" >&6
39295 if test $ol_cv_db_db = yes ; then
39300 if test $ol_cv_lib_db = no ; then
39301 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
39302 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
39303 if test "${ol_cv_db_db41+set}" = set; then
39304 echo $ECHO_N "(cached) $ECHO_C" >&6
39309 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39311 cat >conftest.$ac_ext <<_ACEOF
39314 cat confdefs.h >>conftest.$ac_ext
39315 cat >>conftest.$ac_ext <<_ACEOF
39316 /* end confdefs.h. */
39318 #ifdef HAVE_DB_185_H
39319 # include <db_185.h>
39324 #ifndef DB_VERSION_MAJOR
39325 # define DB_VERSION_MAJOR 1
39329 #define NULL ((void*)0)
39336 #if DB_VERSION_MAJOR > 1
39339 int major, minor, patch;
39341 version = db_version( &major, &minor, &patch );
39343 if( major != DB_VERSION_MAJOR ||
39344 minor < DB_VERSION_MINOR )
39346 printf("Berkeley DB version mismatch\n"
39347 "\theader: %s\n\tlibrary: %s\n",
39348 DB_VERSION_STRING, version);
39354 #if DB_VERSION_MAJOR > 2
39355 db_env_create( NULL, 0 );
39356 #elif DB_VERSION_MAJOR > 1
39357 db_appexit( NULL );
39359 (void) dbopen( NULL, 0, 0, 0, NULL);
39366 rm -f conftest.$ac_objext conftest$ac_exeext
39367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39368 (eval $ac_link) 2>conftest.er1
39370 grep -v '^ *+' conftest.er1 >conftest.err
39372 cat conftest.err >&5
39373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39374 (exit $ac_status); } &&
39375 { ac_try='test -z "$ac_c_werror_flag"
39376 || test ! -s conftest.err'
39377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39378 (eval $ac_try) 2>&5
39380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39381 (exit $ac_status); }; } &&
39382 { ac_try='test -s conftest$ac_exeext'
39383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39384 (eval $ac_try) 2>&5
39386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39387 (exit $ac_status); }; }; then
39390 echo "$as_me: failed program was:" >&5
39391 sed 's/^/| /' conftest.$ac_ext >&5
39395 rm -f conftest.err conftest.$ac_objext \
39396 conftest$ac_exeext conftest.$ac_ext
39401 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
39402 echo "${ECHO_T}$ol_cv_db_db41" >&6
39404 if test $ol_cv_db_db41 = yes ; then
39405 ol_cv_lib_db=-ldb41
39409 if test $ol_cv_lib_db = no ; then
39410 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
39411 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
39412 if test "${ol_cv_db_db_41+set}" = set; then
39413 echo $ECHO_N "(cached) $ECHO_C" >&6
39418 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39420 cat >conftest.$ac_ext <<_ACEOF
39423 cat confdefs.h >>conftest.$ac_ext
39424 cat >>conftest.$ac_ext <<_ACEOF
39425 /* end confdefs.h. */
39427 #ifdef HAVE_DB_185_H
39428 # include <db_185.h>
39433 #ifndef DB_VERSION_MAJOR
39434 # define DB_VERSION_MAJOR 1
39438 #define NULL ((void*)0)
39445 #if DB_VERSION_MAJOR > 1
39448 int major, minor, patch;
39450 version = db_version( &major, &minor, &patch );
39452 if( major != DB_VERSION_MAJOR ||
39453 minor < DB_VERSION_MINOR )
39455 printf("Berkeley DB version mismatch\n"
39456 "\theader: %s\n\tlibrary: %s\n",
39457 DB_VERSION_STRING, version);
39463 #if DB_VERSION_MAJOR > 2
39464 db_env_create( NULL, 0 );
39465 #elif DB_VERSION_MAJOR > 1
39466 db_appexit( NULL );
39468 (void) dbopen( NULL, 0, 0, 0, NULL);
39475 rm -f conftest.$ac_objext conftest$ac_exeext
39476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39477 (eval $ac_link) 2>conftest.er1
39479 grep -v '^ *+' conftest.er1 >conftest.err
39481 cat conftest.err >&5
39482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39483 (exit $ac_status); } &&
39484 { ac_try='test -z "$ac_c_werror_flag"
39485 || test ! -s conftest.err'
39486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39487 (eval $ac_try) 2>&5
39489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39490 (exit $ac_status); }; } &&
39491 { ac_try='test -s conftest$ac_exeext'
39492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39493 (eval $ac_try) 2>&5
39495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39496 (exit $ac_status); }; }; then
39499 echo "$as_me: failed program was:" >&5
39500 sed 's/^/| /' conftest.$ac_ext >&5
39504 rm -f conftest.err conftest.$ac_objext \
39505 conftest$ac_exeext conftest.$ac_ext
39510 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
39511 echo "${ECHO_T}$ol_cv_db_db_41" >&6
39513 if test $ol_cv_db_db_41 = yes ; then
39514 ol_cv_lib_db=-ldb-41
39518 if test $ol_cv_lib_db = no ; then
39519 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
39520 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
39521 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
39522 echo $ECHO_N "(cached) $ECHO_C" >&6
39527 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39529 cat >conftest.$ac_ext <<_ACEOF
39532 cat confdefs.h >>conftest.$ac_ext
39533 cat >>conftest.$ac_ext <<_ACEOF
39534 /* end confdefs.h. */
39536 #ifdef HAVE_DB_185_H
39537 # include <db_185.h>
39542 #ifndef DB_VERSION_MAJOR
39543 # define DB_VERSION_MAJOR 1
39547 #define NULL ((void*)0)
39554 #if DB_VERSION_MAJOR > 1
39557 int major, minor, patch;
39559 version = db_version( &major, &minor, &patch );
39561 if( major != DB_VERSION_MAJOR ||
39562 minor < DB_VERSION_MINOR )
39564 printf("Berkeley DB version mismatch\n"
39565 "\theader: %s\n\tlibrary: %s\n",
39566 DB_VERSION_STRING, version);
39572 #if DB_VERSION_MAJOR > 2
39573 db_env_create( NULL, 0 );
39574 #elif DB_VERSION_MAJOR > 1
39575 db_appexit( NULL );
39577 (void) dbopen( NULL, 0, 0, 0, NULL);
39584 rm -f conftest.$ac_objext conftest$ac_exeext
39585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39586 (eval $ac_link) 2>conftest.er1
39588 grep -v '^ *+' conftest.er1 >conftest.err
39590 cat conftest.err >&5
39591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39592 (exit $ac_status); } &&
39593 { ac_try='test -z "$ac_c_werror_flag"
39594 || test ! -s conftest.err'
39595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39596 (eval $ac_try) 2>&5
39598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39599 (exit $ac_status); }; } &&
39600 { ac_try='test -s conftest$ac_exeext'
39601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39602 (eval $ac_try) 2>&5
39604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39605 (exit $ac_status); }; }; then
39606 ol_cv_db_db_4_dot_1=yes
39608 echo "$as_me: failed program was:" >&5
39609 sed 's/^/| /' conftest.$ac_ext >&5
39611 ol_cv_db_db_4_dot_1=no
39613 rm -f conftest.err conftest.$ac_objext \
39614 conftest$ac_exeext conftest.$ac_ext
39619 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
39620 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
39622 if test $ol_cv_db_db_4_dot_1 = yes ; then
39623 ol_cv_lib_db=-ldb-4.1
39627 if test $ol_cv_lib_db = no ; then
39628 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
39629 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
39630 if test "${ol_cv_db_db_4_1+set}" = set; then
39631 echo $ECHO_N "(cached) $ECHO_C" >&6
39636 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39638 cat >conftest.$ac_ext <<_ACEOF
39641 cat confdefs.h >>conftest.$ac_ext
39642 cat >>conftest.$ac_ext <<_ACEOF
39643 /* end confdefs.h. */
39645 #ifdef HAVE_DB_185_H
39646 # include <db_185.h>
39651 #ifndef DB_VERSION_MAJOR
39652 # define DB_VERSION_MAJOR 1
39656 #define NULL ((void*)0)
39663 #if DB_VERSION_MAJOR > 1
39666 int major, minor, patch;
39668 version = db_version( &major, &minor, &patch );
39670 if( major != DB_VERSION_MAJOR ||
39671 minor < DB_VERSION_MINOR )
39673 printf("Berkeley DB version mismatch\n"
39674 "\theader: %s\n\tlibrary: %s\n",
39675 DB_VERSION_STRING, version);
39681 #if DB_VERSION_MAJOR > 2
39682 db_env_create( NULL, 0 );
39683 #elif DB_VERSION_MAJOR > 1
39684 db_appexit( NULL );
39686 (void) dbopen( NULL, 0, 0, 0, NULL);
39693 rm -f conftest.$ac_objext conftest$ac_exeext
39694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39695 (eval $ac_link) 2>conftest.er1
39697 grep -v '^ *+' conftest.er1 >conftest.err
39699 cat conftest.err >&5
39700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39701 (exit $ac_status); } &&
39702 { ac_try='test -z "$ac_c_werror_flag"
39703 || test ! -s conftest.err'
39704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39705 (eval $ac_try) 2>&5
39707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39708 (exit $ac_status); }; } &&
39709 { ac_try='test -s conftest$ac_exeext'
39710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39711 (eval $ac_try) 2>&5
39713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39714 (exit $ac_status); }; }; then
39715 ol_cv_db_db_4_1=yes
39717 echo "$as_me: failed program was:" >&5
39718 sed 's/^/| /' conftest.$ac_ext >&5
39722 rm -f conftest.err conftest.$ac_objext \
39723 conftest$ac_exeext conftest.$ac_ext
39728 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
39729 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
39731 if test $ol_cv_db_db_4_1 = yes ; then
39732 ol_cv_lib_db=-ldb-4-1
39736 if test $ol_cv_lib_db = no ; then
39737 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
39738 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
39739 if test "${ol_cv_db_db3+set}" = set; then
39740 echo $ECHO_N "(cached) $ECHO_C" >&6
39745 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39747 cat >conftest.$ac_ext <<_ACEOF
39750 cat confdefs.h >>conftest.$ac_ext
39751 cat >>conftest.$ac_ext <<_ACEOF
39752 /* end confdefs.h. */
39754 #ifdef HAVE_DB_185_H
39755 # include <db_185.h>
39760 #ifndef DB_VERSION_MAJOR
39761 # define DB_VERSION_MAJOR 1
39765 #define NULL ((void*)0)
39772 #if DB_VERSION_MAJOR > 1
39775 int major, minor, patch;
39777 version = db_version( &major, &minor, &patch );
39779 if( major != DB_VERSION_MAJOR ||
39780 minor < DB_VERSION_MINOR )
39782 printf("Berkeley DB version mismatch\n"
39783 "\theader: %s\n\tlibrary: %s\n",
39784 DB_VERSION_STRING, version);
39790 #if DB_VERSION_MAJOR > 2
39791 db_env_create( NULL, 0 );
39792 #elif DB_VERSION_MAJOR > 1
39793 db_appexit( NULL );
39795 (void) dbopen( NULL, 0, 0, 0, NULL);
39802 rm -f conftest.$ac_objext conftest$ac_exeext
39803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39804 (eval $ac_link) 2>conftest.er1
39806 grep -v '^ *+' conftest.er1 >conftest.err
39808 cat conftest.err >&5
39809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39810 (exit $ac_status); } &&
39811 { ac_try='test -z "$ac_c_werror_flag"
39812 || test ! -s conftest.err'
39813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39814 (eval $ac_try) 2>&5
39816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39817 (exit $ac_status); }; } &&
39818 { ac_try='test -s conftest$ac_exeext'
39819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39820 (eval $ac_try) 2>&5
39822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39823 (exit $ac_status); }; }; then
39826 echo "$as_me: failed program was:" >&5
39827 sed 's/^/| /' conftest.$ac_ext >&5
39831 rm -f conftest.err conftest.$ac_objext \
39832 conftest$ac_exeext conftest.$ac_ext
39837 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
39838 echo "${ECHO_T}$ol_cv_db_db3" >&6
39840 if test $ol_cv_db_db3 = yes ; then
39845 if test $ol_cv_lib_db = no ; then
39846 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
39847 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
39848 if test "${ol_cv_db_db_3+set}" = set; then
39849 echo $ECHO_N "(cached) $ECHO_C" >&6
39854 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39856 cat >conftest.$ac_ext <<_ACEOF
39859 cat confdefs.h >>conftest.$ac_ext
39860 cat >>conftest.$ac_ext <<_ACEOF
39861 /* end confdefs.h. */
39863 #ifdef HAVE_DB_185_H
39864 # include <db_185.h>
39869 #ifndef DB_VERSION_MAJOR
39870 # define DB_VERSION_MAJOR 1
39874 #define NULL ((void*)0)
39881 #if DB_VERSION_MAJOR > 1
39884 int major, minor, patch;
39886 version = db_version( &major, &minor, &patch );
39888 if( major != DB_VERSION_MAJOR ||
39889 minor < DB_VERSION_MINOR )
39891 printf("Berkeley DB version mismatch\n"
39892 "\theader: %s\n\tlibrary: %s\n",
39893 DB_VERSION_STRING, version);
39899 #if DB_VERSION_MAJOR > 2
39900 db_env_create( NULL, 0 );
39901 #elif DB_VERSION_MAJOR > 1
39902 db_appexit( NULL );
39904 (void) dbopen( NULL, 0, 0, 0, NULL);
39911 rm -f conftest.$ac_objext conftest$ac_exeext
39912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39913 (eval $ac_link) 2>conftest.er1
39915 grep -v '^ *+' conftest.er1 >conftest.err
39917 cat conftest.err >&5
39918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39919 (exit $ac_status); } &&
39920 { ac_try='test -z "$ac_c_werror_flag"
39921 || test ! -s conftest.err'
39922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39923 (eval $ac_try) 2>&5
39925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39926 (exit $ac_status); }; } &&
39927 { ac_try='test -s conftest$ac_exeext'
39928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39929 (eval $ac_try) 2>&5
39931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39932 (exit $ac_status); }; }; then
39935 echo "$as_me: failed program was:" >&5
39936 sed 's/^/| /' conftest.$ac_ext >&5
39940 rm -f conftest.err conftest.$ac_objext \
39941 conftest$ac_exeext conftest.$ac_ext
39946 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
39947 echo "${ECHO_T}$ol_cv_db_db_3" >&6
39949 if test $ol_cv_db_db_3 = yes ; then
39950 ol_cv_lib_db=-ldb-3
39954 if test $ol_cv_lib_db = no ; then
39955 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
39956 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
39957 if test "${ol_cv_db_db2+set}" = set; then
39958 echo $ECHO_N "(cached) $ECHO_C" >&6
39963 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39965 cat >conftest.$ac_ext <<_ACEOF
39968 cat confdefs.h >>conftest.$ac_ext
39969 cat >>conftest.$ac_ext <<_ACEOF
39970 /* end confdefs.h. */
39972 #ifdef HAVE_DB_185_H
39973 # include <db_185.h>
39978 #ifndef DB_VERSION_MAJOR
39979 # define DB_VERSION_MAJOR 1
39983 #define NULL ((void*)0)
39990 #if DB_VERSION_MAJOR > 1
39993 int major, minor, patch;
39995 version = db_version( &major, &minor, &patch );
39997 if( major != DB_VERSION_MAJOR ||
39998 minor < DB_VERSION_MINOR )
40000 printf("Berkeley DB version mismatch\n"
40001 "\theader: %s\n\tlibrary: %s\n",
40002 DB_VERSION_STRING, version);
40008 #if DB_VERSION_MAJOR > 2
40009 db_env_create( NULL, 0 );
40010 #elif DB_VERSION_MAJOR > 1
40011 db_appexit( NULL );
40013 (void) dbopen( NULL, 0, 0, 0, NULL);
40020 rm -f conftest.$ac_objext conftest$ac_exeext
40021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40022 (eval $ac_link) 2>conftest.er1
40024 grep -v '^ *+' conftest.er1 >conftest.err
40026 cat conftest.err >&5
40027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40028 (exit $ac_status); } &&
40029 { ac_try='test -z "$ac_c_werror_flag"
40030 || test ! -s conftest.err'
40031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40032 (eval $ac_try) 2>&5
40034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40035 (exit $ac_status); }; } &&
40036 { ac_try='test -s conftest$ac_exeext'
40037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40038 (eval $ac_try) 2>&5
40040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40041 (exit $ac_status); }; }; then
40044 echo "$as_me: failed program was:" >&5
40045 sed 's/^/| /' conftest.$ac_ext >&5
40049 rm -f conftest.err conftest.$ac_objext \
40050 conftest$ac_exeext conftest.$ac_ext
40055 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
40056 echo "${ECHO_T}$ol_cv_db_db2" >&6
40058 if test $ol_cv_db_db2 = yes ; then
40063 if test $ol_cv_lib_db = no ; then
40064 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
40065 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
40066 if test "${ol_cv_db_db_2+set}" = set; then
40067 echo $ECHO_N "(cached) $ECHO_C" >&6
40072 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40074 cat >conftest.$ac_ext <<_ACEOF
40077 cat confdefs.h >>conftest.$ac_ext
40078 cat >>conftest.$ac_ext <<_ACEOF
40079 /* end confdefs.h. */
40081 #ifdef HAVE_DB_185_H
40082 # include <db_185.h>
40087 #ifndef DB_VERSION_MAJOR
40088 # define DB_VERSION_MAJOR 1
40092 #define NULL ((void*)0)
40099 #if DB_VERSION_MAJOR > 1
40102 int major, minor, patch;
40104 version = db_version( &major, &minor, &patch );
40106 if( major != DB_VERSION_MAJOR ||
40107 minor < DB_VERSION_MINOR )
40109 printf("Berkeley DB version mismatch\n"
40110 "\theader: %s\n\tlibrary: %s\n",
40111 DB_VERSION_STRING, version);
40117 #if DB_VERSION_MAJOR > 2
40118 db_env_create( NULL, 0 );
40119 #elif DB_VERSION_MAJOR > 1
40120 db_appexit( NULL );
40122 (void) dbopen( NULL, 0, 0, 0, NULL);
40129 rm -f conftest.$ac_objext conftest$ac_exeext
40130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40131 (eval $ac_link) 2>conftest.er1
40133 grep -v '^ *+' conftest.er1 >conftest.err
40135 cat conftest.err >&5
40136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40137 (exit $ac_status); } &&
40138 { ac_try='test -z "$ac_c_werror_flag"
40139 || test ! -s conftest.err'
40140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40141 (eval $ac_try) 2>&5
40143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40144 (exit $ac_status); }; } &&
40145 { ac_try='test -s conftest$ac_exeext'
40146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40147 (eval $ac_try) 2>&5
40149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40150 (exit $ac_status); }; }; then
40153 echo "$as_me: failed program was:" >&5
40154 sed 's/^/| /' conftest.$ac_ext >&5
40158 rm -f conftest.err conftest.$ac_objext \
40159 conftest$ac_exeext conftest.$ac_ext
40164 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
40165 echo "${ECHO_T}$ol_cv_db_db_2" >&6
40167 if test $ol_cv_db_db_2 = yes ; then
40168 ol_cv_lib_db=-ldb-2
40172 if test $ol_cv_lib_db = no ; then
40173 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
40174 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
40175 if test "${ol_cv_db_db1+set}" = set; then
40176 echo $ECHO_N "(cached) $ECHO_C" >&6
40181 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40183 cat >conftest.$ac_ext <<_ACEOF
40186 cat confdefs.h >>conftest.$ac_ext
40187 cat >>conftest.$ac_ext <<_ACEOF
40188 /* end confdefs.h. */
40190 #ifdef HAVE_DB_185_H
40191 # include <db_185.h>
40196 #ifndef DB_VERSION_MAJOR
40197 # define DB_VERSION_MAJOR 1
40201 #define NULL ((void*)0)
40208 #if DB_VERSION_MAJOR > 1
40211 int major, minor, patch;
40213 version = db_version( &major, &minor, &patch );
40215 if( major != DB_VERSION_MAJOR ||
40216 minor < DB_VERSION_MINOR )
40218 printf("Berkeley DB version mismatch\n"
40219 "\theader: %s\n\tlibrary: %s\n",
40220 DB_VERSION_STRING, version);
40226 #if DB_VERSION_MAJOR > 2
40227 db_env_create( NULL, 0 );
40228 #elif DB_VERSION_MAJOR > 1
40229 db_appexit( NULL );
40231 (void) dbopen( NULL, 0, 0, 0, NULL);
40238 rm -f conftest.$ac_objext conftest$ac_exeext
40239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40240 (eval $ac_link) 2>conftest.er1
40242 grep -v '^ *+' conftest.er1 >conftest.err
40244 cat conftest.err >&5
40245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40246 (exit $ac_status); } &&
40247 { ac_try='test -z "$ac_c_werror_flag"
40248 || test ! -s conftest.err'
40249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40250 (eval $ac_try) 2>&5
40252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40253 (exit $ac_status); }; } &&
40254 { ac_try='test -s conftest$ac_exeext'
40255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40256 (eval $ac_try) 2>&5
40258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40259 (exit $ac_status); }; }; then
40262 echo "$as_me: failed program was:" >&5
40263 sed 's/^/| /' conftest.$ac_ext >&5
40267 rm -f conftest.err conftest.$ac_objext \
40268 conftest$ac_exeext conftest.$ac_ext
40273 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
40274 echo "${ECHO_T}$ol_cv_db_db1" >&6
40276 if test $ol_cv_db_db1 = yes ; then
40281 if test $ol_cv_lib_db = no ; then
40282 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
40283 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
40284 if test "${ol_cv_db_db_1+set}" = set; then
40285 echo $ECHO_N "(cached) $ECHO_C" >&6
40290 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40292 cat >conftest.$ac_ext <<_ACEOF
40295 cat confdefs.h >>conftest.$ac_ext
40296 cat >>conftest.$ac_ext <<_ACEOF
40297 /* end confdefs.h. */
40299 #ifdef HAVE_DB_185_H
40300 # include <db_185.h>
40305 #ifndef DB_VERSION_MAJOR
40306 # define DB_VERSION_MAJOR 1
40310 #define NULL ((void*)0)
40317 #if DB_VERSION_MAJOR > 1
40320 int major, minor, patch;
40322 version = db_version( &major, &minor, &patch );
40324 if( major != DB_VERSION_MAJOR ||
40325 minor < DB_VERSION_MINOR )
40327 printf("Berkeley DB version mismatch\n"
40328 "\theader: %s\n\tlibrary: %s\n",
40329 DB_VERSION_STRING, version);
40335 #if DB_VERSION_MAJOR > 2
40336 db_env_create( NULL, 0 );
40337 #elif DB_VERSION_MAJOR > 1
40338 db_appexit( NULL );
40340 (void) dbopen( NULL, 0, 0, 0, NULL);
40347 rm -f conftest.$ac_objext conftest$ac_exeext
40348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40349 (eval $ac_link) 2>conftest.er1
40351 grep -v '^ *+' conftest.er1 >conftest.err
40353 cat conftest.err >&5
40354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40355 (exit $ac_status); } &&
40356 { ac_try='test -z "$ac_c_werror_flag"
40357 || test ! -s conftest.err'
40358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40359 (eval $ac_try) 2>&5
40361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40362 (exit $ac_status); }; } &&
40363 { ac_try='test -s conftest$ac_exeext'
40364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40365 (eval $ac_try) 2>&5
40367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40368 (exit $ac_status); }; }; then
40371 echo "$as_me: failed program was:" >&5
40372 sed 's/^/| /' conftest.$ac_ext >&5
40376 rm -f conftest.err conftest.$ac_objext \
40377 conftest$ac_exeext conftest.$ac_ext
40382 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
40383 echo "${ECHO_T}$ol_cv_db_db_1" >&6
40385 if test $ol_cv_db_db_1 = yes ; then
40386 ol_cv_lib_db=-ldb-1
40391 if test "$ol_cv_lib_db" != no ; then
40392 ol_cv_berkeley_db=yes
40398 ol_cv_berkeley_db=no
40400 for ac_header in db.h
40402 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40404 echo "$as_me:$LINENO: checking for $ac_header" >&5
40405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40407 echo $ECHO_N "(cached) $ECHO_C" >&6
40409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40410 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40412 # Is the header compilable?
40413 echo "$as_me:$LINENO: checking $ac_header usability" >&5
40414 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
40415 cat >conftest.$ac_ext <<_ACEOF
40418 cat confdefs.h >>conftest.$ac_ext
40419 cat >>conftest.$ac_ext <<_ACEOF
40420 /* end confdefs.h. */
40421 $ac_includes_default
40422 #include <$ac_header>
40424 rm -f conftest.$ac_objext
40425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40426 (eval $ac_compile) 2>conftest.er1
40428 grep -v '^ *+' conftest.er1 >conftest.err
40430 cat conftest.err >&5
40431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40432 (exit $ac_status); } &&
40433 { ac_try='test -z "$ac_c_werror_flag"
40434 || test ! -s conftest.err'
40435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40436 (eval $ac_try) 2>&5
40438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40439 (exit $ac_status); }; } &&
40440 { ac_try='test -s conftest.$ac_objext'
40441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40442 (eval $ac_try) 2>&5
40444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40445 (exit $ac_status); }; }; then
40446 ac_header_compiler=yes
40448 echo "$as_me: failed program was:" >&5
40449 sed 's/^/| /' conftest.$ac_ext >&5
40451 ac_header_compiler=no
40453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40454 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40455 echo "${ECHO_T}$ac_header_compiler" >&6
40457 # Is the header present?
40458 echo "$as_me:$LINENO: checking $ac_header presence" >&5
40459 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
40460 cat >conftest.$ac_ext <<_ACEOF
40463 cat confdefs.h >>conftest.$ac_ext
40464 cat >>conftest.$ac_ext <<_ACEOF
40465 /* end confdefs.h. */
40466 #include <$ac_header>
40468 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
40469 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
40471 grep -v '^ *+' conftest.er1 >conftest.err
40473 cat conftest.err >&5
40474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40475 (exit $ac_status); } >/dev/null; then
40476 if test -s conftest.err; then
40477 ac_cpp_err=$ac_c_preproc_warn_flag
40478 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
40485 if test -z "$ac_cpp_err"; then
40486 ac_header_preproc=yes
40488 echo "$as_me: failed program was:" >&5
40489 sed 's/^/| /' conftest.$ac_ext >&5
40491 ac_header_preproc=no
40493 rm -f conftest.err conftest.$ac_ext
40494 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40495 echo "${ECHO_T}$ac_header_preproc" >&6
40497 # So? What about this header?
40498 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40500 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40501 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40503 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40504 ac_header_preproc=yes
40507 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40508 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40509 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40510 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40511 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40512 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40513 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40514 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
40515 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40516 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40517 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40518 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40521 ## ------------------------------------------ ##
40522 ## Report this to the AC_PACKAGE_NAME lists. ##
40523 ## ------------------------------------------ ##
40526 sed "s/^/$as_me: WARNING: /" >&2
40529 echo "$as_me:$LINENO: checking for $ac_header" >&5
40530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40532 echo $ECHO_N "(cached) $ECHO_C" >&6
40534 eval "$as_ac_Header=\$ac_header_preproc"
40536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40537 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40540 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40541 cat >>confdefs.h <<_ACEOF
40542 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40549 if test $ac_cv_header_db_h = yes; then
40551 if test $ol_cv_lib_db = no ; then
40552 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
40553 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
40554 if test "${ol_cv_db_none+set}" = set; then
40555 echo $ECHO_N "(cached) $ECHO_C" >&6
40560 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40562 cat >conftest.$ac_ext <<_ACEOF
40565 cat confdefs.h >>conftest.$ac_ext
40566 cat >>conftest.$ac_ext <<_ACEOF
40567 /* end confdefs.h. */
40569 #ifdef HAVE_DB_185_H
40570 # include <db_185.h>
40575 #ifndef DB_VERSION_MAJOR
40576 # define DB_VERSION_MAJOR 1
40580 #define NULL ((void*)0)
40587 #if DB_VERSION_MAJOR > 1
40590 int major, minor, patch;
40592 version = db_version( &major, &minor, &patch );
40594 if( major != DB_VERSION_MAJOR ||
40595 minor < DB_VERSION_MINOR )
40597 printf("Berkeley DB version mismatch\n"
40598 "\theader: %s\n\tlibrary: %s\n",
40599 DB_VERSION_STRING, version);
40605 #if DB_VERSION_MAJOR > 2
40606 db_env_create( NULL, 0 );
40607 #elif DB_VERSION_MAJOR > 1
40608 db_appexit( NULL );
40610 (void) dbopen( NULL, 0, 0, 0, NULL);
40617 rm -f conftest.$ac_objext conftest$ac_exeext
40618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40619 (eval $ac_link) 2>conftest.er1
40621 grep -v '^ *+' conftest.er1 >conftest.err
40623 cat conftest.err >&5
40624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40625 (exit $ac_status); } &&
40626 { ac_try='test -z "$ac_c_werror_flag"
40627 || test ! -s conftest.err'
40628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40629 (eval $ac_try) 2>&5
40631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40632 (exit $ac_status); }; } &&
40633 { ac_try='test -s conftest$ac_exeext'
40634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40635 (eval $ac_try) 2>&5
40637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40638 (exit $ac_status); }; }; then
40641 echo "$as_me: failed program was:" >&5
40642 sed 's/^/| /' conftest.$ac_ext >&5
40646 rm -f conftest.err conftest.$ac_objext \
40647 conftest$ac_exeext conftest.$ac_ext
40652 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
40653 echo "${ECHO_T}$ol_cv_db_none" >&6
40655 if test $ol_cv_db_none = yes ; then
40660 if test $ol_cv_lib_db = no ; then
40661 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
40662 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
40663 if test "${ol_cv_db_db43+set}" = set; then
40664 echo $ECHO_N "(cached) $ECHO_C" >&6
40669 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40671 cat >conftest.$ac_ext <<_ACEOF
40674 cat confdefs.h >>conftest.$ac_ext
40675 cat >>conftest.$ac_ext <<_ACEOF
40676 /* end confdefs.h. */
40678 #ifdef HAVE_DB_185_H
40679 # include <db_185.h>
40684 #ifndef DB_VERSION_MAJOR
40685 # define DB_VERSION_MAJOR 1
40689 #define NULL ((void*)0)
40696 #if DB_VERSION_MAJOR > 1
40699 int major, minor, patch;
40701 version = db_version( &major, &minor, &patch );
40703 if( major != DB_VERSION_MAJOR ||
40704 minor < DB_VERSION_MINOR )
40706 printf("Berkeley DB version mismatch\n"
40707 "\theader: %s\n\tlibrary: %s\n",
40708 DB_VERSION_STRING, version);
40714 #if DB_VERSION_MAJOR > 2
40715 db_env_create( NULL, 0 );
40716 #elif DB_VERSION_MAJOR > 1
40717 db_appexit( NULL );
40719 (void) dbopen( NULL, 0, 0, 0, NULL);
40726 rm -f conftest.$ac_objext conftest$ac_exeext
40727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40728 (eval $ac_link) 2>conftest.er1
40730 grep -v '^ *+' conftest.er1 >conftest.err
40732 cat conftest.err >&5
40733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40734 (exit $ac_status); } &&
40735 { ac_try='test -z "$ac_c_werror_flag"
40736 || test ! -s conftest.err'
40737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40738 (eval $ac_try) 2>&5
40740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40741 (exit $ac_status); }; } &&
40742 { ac_try='test -s conftest$ac_exeext'
40743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40744 (eval $ac_try) 2>&5
40746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40747 (exit $ac_status); }; }; then
40750 echo "$as_me: failed program was:" >&5
40751 sed 's/^/| /' conftest.$ac_ext >&5
40755 rm -f conftest.err conftest.$ac_objext \
40756 conftest$ac_exeext conftest.$ac_ext
40761 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
40762 echo "${ECHO_T}$ol_cv_db_db43" >&6
40764 if test $ol_cv_db_db43 = yes ; then
40765 ol_cv_lib_db=-ldb43
40769 if test $ol_cv_lib_db = no ; then
40770 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
40771 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
40772 if test "${ol_cv_db_db_43+set}" = set; then
40773 echo $ECHO_N "(cached) $ECHO_C" >&6
40778 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40780 cat >conftest.$ac_ext <<_ACEOF
40783 cat confdefs.h >>conftest.$ac_ext
40784 cat >>conftest.$ac_ext <<_ACEOF
40785 /* end confdefs.h. */
40787 #ifdef HAVE_DB_185_H
40788 # include <db_185.h>
40793 #ifndef DB_VERSION_MAJOR
40794 # define DB_VERSION_MAJOR 1
40798 #define NULL ((void*)0)
40805 #if DB_VERSION_MAJOR > 1
40808 int major, minor, patch;
40810 version = db_version( &major, &minor, &patch );
40812 if( major != DB_VERSION_MAJOR ||
40813 minor < DB_VERSION_MINOR )
40815 printf("Berkeley DB version mismatch\n"
40816 "\theader: %s\n\tlibrary: %s\n",
40817 DB_VERSION_STRING, version);
40823 #if DB_VERSION_MAJOR > 2
40824 db_env_create( NULL, 0 );
40825 #elif DB_VERSION_MAJOR > 1
40826 db_appexit( NULL );
40828 (void) dbopen( NULL, 0, 0, 0, NULL);
40835 rm -f conftest.$ac_objext conftest$ac_exeext
40836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40837 (eval $ac_link) 2>conftest.er1
40839 grep -v '^ *+' conftest.er1 >conftest.err
40841 cat conftest.err >&5
40842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40843 (exit $ac_status); } &&
40844 { ac_try='test -z "$ac_c_werror_flag"
40845 || test ! -s conftest.err'
40846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40847 (eval $ac_try) 2>&5
40849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40850 (exit $ac_status); }; } &&
40851 { ac_try='test -s conftest$ac_exeext'
40852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40853 (eval $ac_try) 2>&5
40855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40856 (exit $ac_status); }; }; then
40859 echo "$as_me: failed program was:" >&5
40860 sed 's/^/| /' conftest.$ac_ext >&5
40864 rm -f conftest.err conftest.$ac_objext \
40865 conftest$ac_exeext conftest.$ac_ext
40870 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
40871 echo "${ECHO_T}$ol_cv_db_db_43" >&6
40873 if test $ol_cv_db_db_43 = yes ; then
40874 ol_cv_lib_db=-ldb-43
40878 if test $ol_cv_lib_db = no ; then
40879 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
40880 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
40881 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
40882 echo $ECHO_N "(cached) $ECHO_C" >&6
40887 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40889 cat >conftest.$ac_ext <<_ACEOF
40892 cat confdefs.h >>conftest.$ac_ext
40893 cat >>conftest.$ac_ext <<_ACEOF
40894 /* end confdefs.h. */
40896 #ifdef HAVE_DB_185_H
40897 # include <db_185.h>
40902 #ifndef DB_VERSION_MAJOR
40903 # define DB_VERSION_MAJOR 1
40907 #define NULL ((void*)0)
40914 #if DB_VERSION_MAJOR > 1
40917 int major, minor, patch;
40919 version = db_version( &major, &minor, &patch );
40921 if( major != DB_VERSION_MAJOR ||
40922 minor < DB_VERSION_MINOR )
40924 printf("Berkeley DB version mismatch\n"
40925 "\theader: %s\n\tlibrary: %s\n",
40926 DB_VERSION_STRING, version);
40932 #if DB_VERSION_MAJOR > 2
40933 db_env_create( NULL, 0 );
40934 #elif DB_VERSION_MAJOR > 1
40935 db_appexit( NULL );
40937 (void) dbopen( NULL, 0, 0, 0, NULL);
40944 rm -f conftest.$ac_objext conftest$ac_exeext
40945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40946 (eval $ac_link) 2>conftest.er1
40948 grep -v '^ *+' conftest.er1 >conftest.err
40950 cat conftest.err >&5
40951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40952 (exit $ac_status); } &&
40953 { ac_try='test -z "$ac_c_werror_flag"
40954 || test ! -s conftest.err'
40955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40956 (eval $ac_try) 2>&5
40958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40959 (exit $ac_status); }; } &&
40960 { ac_try='test -s conftest$ac_exeext'
40961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40962 (eval $ac_try) 2>&5
40964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40965 (exit $ac_status); }; }; then
40966 ol_cv_db_db_4_dot_3=yes
40968 echo "$as_me: failed program was:" >&5
40969 sed 's/^/| /' conftest.$ac_ext >&5
40971 ol_cv_db_db_4_dot_3=no
40973 rm -f conftest.err conftest.$ac_objext \
40974 conftest$ac_exeext conftest.$ac_ext
40979 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
40980 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
40982 if test $ol_cv_db_db_4_dot_3 = yes ; then
40983 ol_cv_lib_db=-ldb-4.3
40987 if test $ol_cv_lib_db = no ; then
40988 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
40989 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
40990 if test "${ol_cv_db_db_4_3+set}" = set; then
40991 echo $ECHO_N "(cached) $ECHO_C" >&6
40996 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40998 cat >conftest.$ac_ext <<_ACEOF
41001 cat confdefs.h >>conftest.$ac_ext
41002 cat >>conftest.$ac_ext <<_ACEOF
41003 /* end confdefs.h. */
41005 #ifdef HAVE_DB_185_H
41006 # include <db_185.h>
41011 #ifndef DB_VERSION_MAJOR
41012 # define DB_VERSION_MAJOR 1
41016 #define NULL ((void*)0)
41023 #if DB_VERSION_MAJOR > 1
41026 int major, minor, patch;
41028 version = db_version( &major, &minor, &patch );
41030 if( major != DB_VERSION_MAJOR ||
41031 minor < DB_VERSION_MINOR )
41033 printf("Berkeley DB version mismatch\n"
41034 "\theader: %s\n\tlibrary: %s\n",
41035 DB_VERSION_STRING, version);
41041 #if DB_VERSION_MAJOR > 2
41042 db_env_create( NULL, 0 );
41043 #elif DB_VERSION_MAJOR > 1
41044 db_appexit( NULL );
41046 (void) dbopen( NULL, 0, 0, 0, NULL);
41053 rm -f conftest.$ac_objext conftest$ac_exeext
41054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41055 (eval $ac_link) 2>conftest.er1
41057 grep -v '^ *+' conftest.er1 >conftest.err
41059 cat conftest.err >&5
41060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41061 (exit $ac_status); } &&
41062 { ac_try='test -z "$ac_c_werror_flag"
41063 || test ! -s conftest.err'
41064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41065 (eval $ac_try) 2>&5
41067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41068 (exit $ac_status); }; } &&
41069 { ac_try='test -s conftest$ac_exeext'
41070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41071 (eval $ac_try) 2>&5
41073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41074 (exit $ac_status); }; }; then
41075 ol_cv_db_db_4_3=yes
41077 echo "$as_me: failed program was:" >&5
41078 sed 's/^/| /' conftest.$ac_ext >&5
41082 rm -f conftest.err conftest.$ac_objext \
41083 conftest$ac_exeext conftest.$ac_ext
41088 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
41089 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
41091 if test $ol_cv_db_db_4_3 = yes ; then
41092 ol_cv_lib_db=-ldb-4-3
41096 if test $ol_cv_lib_db = no ; then
41097 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
41098 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
41099 if test "${ol_cv_db_db42+set}" = set; then
41100 echo $ECHO_N "(cached) $ECHO_C" >&6
41105 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41107 cat >conftest.$ac_ext <<_ACEOF
41110 cat confdefs.h >>conftest.$ac_ext
41111 cat >>conftest.$ac_ext <<_ACEOF
41112 /* end confdefs.h. */
41114 #ifdef HAVE_DB_185_H
41115 # include <db_185.h>
41120 #ifndef DB_VERSION_MAJOR
41121 # define DB_VERSION_MAJOR 1
41125 #define NULL ((void*)0)
41132 #if DB_VERSION_MAJOR > 1
41135 int major, minor, patch;
41137 version = db_version( &major, &minor, &patch );
41139 if( major != DB_VERSION_MAJOR ||
41140 minor < DB_VERSION_MINOR )
41142 printf("Berkeley DB version mismatch\n"
41143 "\theader: %s\n\tlibrary: %s\n",
41144 DB_VERSION_STRING, version);
41150 #if DB_VERSION_MAJOR > 2
41151 db_env_create( NULL, 0 );
41152 #elif DB_VERSION_MAJOR > 1
41153 db_appexit( NULL );
41155 (void) dbopen( NULL, 0, 0, 0, NULL);
41162 rm -f conftest.$ac_objext conftest$ac_exeext
41163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41164 (eval $ac_link) 2>conftest.er1
41166 grep -v '^ *+' conftest.er1 >conftest.err
41168 cat conftest.err >&5
41169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41170 (exit $ac_status); } &&
41171 { ac_try='test -z "$ac_c_werror_flag"
41172 || test ! -s conftest.err'
41173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41174 (eval $ac_try) 2>&5
41176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41177 (exit $ac_status); }; } &&
41178 { ac_try='test -s conftest$ac_exeext'
41179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41180 (eval $ac_try) 2>&5
41182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41183 (exit $ac_status); }; }; then
41186 echo "$as_me: failed program was:" >&5
41187 sed 's/^/| /' conftest.$ac_ext >&5
41191 rm -f conftest.err conftest.$ac_objext \
41192 conftest$ac_exeext conftest.$ac_ext
41197 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
41198 echo "${ECHO_T}$ol_cv_db_db42" >&6
41200 if test $ol_cv_db_db42 = yes ; then
41201 ol_cv_lib_db=-ldb42
41205 if test $ol_cv_lib_db = no ; then
41206 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
41207 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
41208 if test "${ol_cv_db_db_42+set}" = set; then
41209 echo $ECHO_N "(cached) $ECHO_C" >&6
41214 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41216 cat >conftest.$ac_ext <<_ACEOF
41219 cat confdefs.h >>conftest.$ac_ext
41220 cat >>conftest.$ac_ext <<_ACEOF
41221 /* end confdefs.h. */
41223 #ifdef HAVE_DB_185_H
41224 # include <db_185.h>
41229 #ifndef DB_VERSION_MAJOR
41230 # define DB_VERSION_MAJOR 1
41234 #define NULL ((void*)0)
41241 #if DB_VERSION_MAJOR > 1
41244 int major, minor, patch;
41246 version = db_version( &major, &minor, &patch );
41248 if( major != DB_VERSION_MAJOR ||
41249 minor < DB_VERSION_MINOR )
41251 printf("Berkeley DB version mismatch\n"
41252 "\theader: %s\n\tlibrary: %s\n",
41253 DB_VERSION_STRING, version);
41259 #if DB_VERSION_MAJOR > 2
41260 db_env_create( NULL, 0 );
41261 #elif DB_VERSION_MAJOR > 1
41262 db_appexit( NULL );
41264 (void) dbopen( NULL, 0, 0, 0, NULL);
41271 rm -f conftest.$ac_objext conftest$ac_exeext
41272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41273 (eval $ac_link) 2>conftest.er1
41275 grep -v '^ *+' conftest.er1 >conftest.err
41277 cat conftest.err >&5
41278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41279 (exit $ac_status); } &&
41280 { ac_try='test -z "$ac_c_werror_flag"
41281 || test ! -s conftest.err'
41282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41283 (eval $ac_try) 2>&5
41285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41286 (exit $ac_status); }; } &&
41287 { ac_try='test -s conftest$ac_exeext'
41288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41289 (eval $ac_try) 2>&5
41291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41292 (exit $ac_status); }; }; then
41295 echo "$as_me: failed program was:" >&5
41296 sed 's/^/| /' conftest.$ac_ext >&5
41300 rm -f conftest.err conftest.$ac_objext \
41301 conftest$ac_exeext conftest.$ac_ext
41306 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
41307 echo "${ECHO_T}$ol_cv_db_db_42" >&6
41309 if test $ol_cv_db_db_42 = yes ; then
41310 ol_cv_lib_db=-ldb-42
41314 if test $ol_cv_lib_db = no ; then
41315 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
41316 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
41317 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
41318 echo $ECHO_N "(cached) $ECHO_C" >&6
41323 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41325 cat >conftest.$ac_ext <<_ACEOF
41328 cat confdefs.h >>conftest.$ac_ext
41329 cat >>conftest.$ac_ext <<_ACEOF
41330 /* end confdefs.h. */
41332 #ifdef HAVE_DB_185_H
41333 # include <db_185.h>
41338 #ifndef DB_VERSION_MAJOR
41339 # define DB_VERSION_MAJOR 1
41343 #define NULL ((void*)0)
41350 #if DB_VERSION_MAJOR > 1
41353 int major, minor, patch;
41355 version = db_version( &major, &minor, &patch );
41357 if( major != DB_VERSION_MAJOR ||
41358 minor < DB_VERSION_MINOR )
41360 printf("Berkeley DB version mismatch\n"
41361 "\theader: %s\n\tlibrary: %s\n",
41362 DB_VERSION_STRING, version);
41368 #if DB_VERSION_MAJOR > 2
41369 db_env_create( NULL, 0 );
41370 #elif DB_VERSION_MAJOR > 1
41371 db_appexit( NULL );
41373 (void) dbopen( NULL, 0, 0, 0, NULL);
41380 rm -f conftest.$ac_objext conftest$ac_exeext
41381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41382 (eval $ac_link) 2>conftest.er1
41384 grep -v '^ *+' conftest.er1 >conftest.err
41386 cat conftest.err >&5
41387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41388 (exit $ac_status); } &&
41389 { ac_try='test -z "$ac_c_werror_flag"
41390 || test ! -s conftest.err'
41391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41392 (eval $ac_try) 2>&5
41394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41395 (exit $ac_status); }; } &&
41396 { ac_try='test -s conftest$ac_exeext'
41397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41398 (eval $ac_try) 2>&5
41400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41401 (exit $ac_status); }; }; then
41402 ol_cv_db_db_4_dot_2=yes
41404 echo "$as_me: failed program was:" >&5
41405 sed 's/^/| /' conftest.$ac_ext >&5
41407 ol_cv_db_db_4_dot_2=no
41409 rm -f conftest.err conftest.$ac_objext \
41410 conftest$ac_exeext conftest.$ac_ext
41415 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
41416 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
41418 if test $ol_cv_db_db_4_dot_2 = yes ; then
41419 ol_cv_lib_db=-ldb-4.2
41423 if test $ol_cv_lib_db = no ; then
41424 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
41425 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
41426 if test "${ol_cv_db_db_4_2+set}" = set; then
41427 echo $ECHO_N "(cached) $ECHO_C" >&6
41432 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41434 cat >conftest.$ac_ext <<_ACEOF
41437 cat confdefs.h >>conftest.$ac_ext
41438 cat >>conftest.$ac_ext <<_ACEOF
41439 /* end confdefs.h. */
41441 #ifdef HAVE_DB_185_H
41442 # include <db_185.h>
41447 #ifndef DB_VERSION_MAJOR
41448 # define DB_VERSION_MAJOR 1
41452 #define NULL ((void*)0)
41459 #if DB_VERSION_MAJOR > 1
41462 int major, minor, patch;
41464 version = db_version( &major, &minor, &patch );
41466 if( major != DB_VERSION_MAJOR ||
41467 minor < DB_VERSION_MINOR )
41469 printf("Berkeley DB version mismatch\n"
41470 "\theader: %s\n\tlibrary: %s\n",
41471 DB_VERSION_STRING, version);
41477 #if DB_VERSION_MAJOR > 2
41478 db_env_create( NULL, 0 );
41479 #elif DB_VERSION_MAJOR > 1
41480 db_appexit( NULL );
41482 (void) dbopen( NULL, 0, 0, 0, NULL);
41489 rm -f conftest.$ac_objext conftest$ac_exeext
41490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41491 (eval $ac_link) 2>conftest.er1
41493 grep -v '^ *+' conftest.er1 >conftest.err
41495 cat conftest.err >&5
41496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41497 (exit $ac_status); } &&
41498 { ac_try='test -z "$ac_c_werror_flag"
41499 || test ! -s conftest.err'
41500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41501 (eval $ac_try) 2>&5
41503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41504 (exit $ac_status); }; } &&
41505 { ac_try='test -s conftest$ac_exeext'
41506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41507 (eval $ac_try) 2>&5
41509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41510 (exit $ac_status); }; }; then
41511 ol_cv_db_db_4_2=yes
41513 echo "$as_me: failed program was:" >&5
41514 sed 's/^/| /' conftest.$ac_ext >&5
41518 rm -f conftest.err conftest.$ac_objext \
41519 conftest$ac_exeext conftest.$ac_ext
41524 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
41525 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
41527 if test $ol_cv_db_db_4_2 = yes ; then
41528 ol_cv_lib_db=-ldb-4-2
41532 if test $ol_cv_lib_db = no ; then
41533 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
41534 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
41535 if test "${ol_cv_db_db_4+set}" = set; then
41536 echo $ECHO_N "(cached) $ECHO_C" >&6
41541 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41543 cat >conftest.$ac_ext <<_ACEOF
41546 cat confdefs.h >>conftest.$ac_ext
41547 cat >>conftest.$ac_ext <<_ACEOF
41548 /* end confdefs.h. */
41550 #ifdef HAVE_DB_185_H
41551 # include <db_185.h>
41556 #ifndef DB_VERSION_MAJOR
41557 # define DB_VERSION_MAJOR 1
41561 #define NULL ((void*)0)
41568 #if DB_VERSION_MAJOR > 1
41571 int major, minor, patch;
41573 version = db_version( &major, &minor, &patch );
41575 if( major != DB_VERSION_MAJOR ||
41576 minor < DB_VERSION_MINOR )
41578 printf("Berkeley DB version mismatch\n"
41579 "\theader: %s\n\tlibrary: %s\n",
41580 DB_VERSION_STRING, version);
41586 #if DB_VERSION_MAJOR > 2
41587 db_env_create( NULL, 0 );
41588 #elif DB_VERSION_MAJOR > 1
41589 db_appexit( NULL );
41591 (void) dbopen( NULL, 0, 0, 0, NULL);
41598 rm -f conftest.$ac_objext conftest$ac_exeext
41599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41600 (eval $ac_link) 2>conftest.er1
41602 grep -v '^ *+' conftest.er1 >conftest.err
41604 cat conftest.err >&5
41605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41606 (exit $ac_status); } &&
41607 { ac_try='test -z "$ac_c_werror_flag"
41608 || test ! -s conftest.err'
41609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41610 (eval $ac_try) 2>&5
41612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41613 (exit $ac_status); }; } &&
41614 { ac_try='test -s conftest$ac_exeext'
41615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41616 (eval $ac_try) 2>&5
41618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41619 (exit $ac_status); }; }; then
41622 echo "$as_me: failed program was:" >&5
41623 sed 's/^/| /' conftest.$ac_ext >&5
41627 rm -f conftest.err conftest.$ac_objext \
41628 conftest$ac_exeext conftest.$ac_ext
41633 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
41634 echo "${ECHO_T}$ol_cv_db_db_4" >&6
41636 if test $ol_cv_db_db_4 = yes ; then
41637 ol_cv_lib_db=-ldb-4
41641 if test $ol_cv_lib_db = no ; then
41642 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
41643 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
41644 if test "${ol_cv_db_db4+set}" = set; then
41645 echo $ECHO_N "(cached) $ECHO_C" >&6
41650 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41652 cat >conftest.$ac_ext <<_ACEOF
41655 cat confdefs.h >>conftest.$ac_ext
41656 cat >>conftest.$ac_ext <<_ACEOF
41657 /* end confdefs.h. */
41659 #ifdef HAVE_DB_185_H
41660 # include <db_185.h>
41665 #ifndef DB_VERSION_MAJOR
41666 # define DB_VERSION_MAJOR 1
41670 #define NULL ((void*)0)
41677 #if DB_VERSION_MAJOR > 1
41680 int major, minor, patch;
41682 version = db_version( &major, &minor, &patch );
41684 if( major != DB_VERSION_MAJOR ||
41685 minor < DB_VERSION_MINOR )
41687 printf("Berkeley DB version mismatch\n"
41688 "\theader: %s\n\tlibrary: %s\n",
41689 DB_VERSION_STRING, version);
41695 #if DB_VERSION_MAJOR > 2
41696 db_env_create( NULL, 0 );
41697 #elif DB_VERSION_MAJOR > 1
41698 db_appexit( NULL );
41700 (void) dbopen( NULL, 0, 0, 0, NULL);
41707 rm -f conftest.$ac_objext conftest$ac_exeext
41708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41709 (eval $ac_link) 2>conftest.er1
41711 grep -v '^ *+' conftest.er1 >conftest.err
41713 cat conftest.err >&5
41714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41715 (exit $ac_status); } &&
41716 { ac_try='test -z "$ac_c_werror_flag"
41717 || test ! -s conftest.err'
41718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41719 (eval $ac_try) 2>&5
41721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41722 (exit $ac_status); }; } &&
41723 { ac_try='test -s conftest$ac_exeext'
41724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41725 (eval $ac_try) 2>&5
41727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41728 (exit $ac_status); }; }; then
41731 echo "$as_me: failed program was:" >&5
41732 sed 's/^/| /' conftest.$ac_ext >&5
41736 rm -f conftest.err conftest.$ac_objext \
41737 conftest$ac_exeext conftest.$ac_ext
41742 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
41743 echo "${ECHO_T}$ol_cv_db_db4" >&6
41745 if test $ol_cv_db_db4 = yes ; then
41750 if test $ol_cv_lib_db = no ; then
41751 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
41752 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
41753 if test "${ol_cv_db_db+set}" = set; then
41754 echo $ECHO_N "(cached) $ECHO_C" >&6
41759 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41761 cat >conftest.$ac_ext <<_ACEOF
41764 cat confdefs.h >>conftest.$ac_ext
41765 cat >>conftest.$ac_ext <<_ACEOF
41766 /* end confdefs.h. */
41768 #ifdef HAVE_DB_185_H
41769 # include <db_185.h>
41774 #ifndef DB_VERSION_MAJOR
41775 # define DB_VERSION_MAJOR 1
41779 #define NULL ((void*)0)
41786 #if DB_VERSION_MAJOR > 1
41789 int major, minor, patch;
41791 version = db_version( &major, &minor, &patch );
41793 if( major != DB_VERSION_MAJOR ||
41794 minor < DB_VERSION_MINOR )
41796 printf("Berkeley DB version mismatch\n"
41797 "\theader: %s\n\tlibrary: %s\n",
41798 DB_VERSION_STRING, version);
41804 #if DB_VERSION_MAJOR > 2
41805 db_env_create( NULL, 0 );
41806 #elif DB_VERSION_MAJOR > 1
41807 db_appexit( NULL );
41809 (void) dbopen( NULL, 0, 0, 0, NULL);
41816 rm -f conftest.$ac_objext conftest$ac_exeext
41817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41818 (eval $ac_link) 2>conftest.er1
41820 grep -v '^ *+' conftest.er1 >conftest.err
41822 cat conftest.err >&5
41823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41824 (exit $ac_status); } &&
41825 { ac_try='test -z "$ac_c_werror_flag"
41826 || test ! -s conftest.err'
41827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41828 (eval $ac_try) 2>&5
41830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41831 (exit $ac_status); }; } &&
41832 { ac_try='test -s conftest$ac_exeext'
41833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41834 (eval $ac_try) 2>&5
41836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41837 (exit $ac_status); }; }; then
41840 echo "$as_me: failed program was:" >&5
41841 sed 's/^/| /' conftest.$ac_ext >&5
41845 rm -f conftest.err conftest.$ac_objext \
41846 conftest$ac_exeext conftest.$ac_ext
41851 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
41852 echo "${ECHO_T}$ol_cv_db_db" >&6
41854 if test $ol_cv_db_db = yes ; then
41859 if test $ol_cv_lib_db = no ; then
41860 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
41861 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
41862 if test "${ol_cv_db_db41+set}" = set; then
41863 echo $ECHO_N "(cached) $ECHO_C" >&6
41868 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41870 cat >conftest.$ac_ext <<_ACEOF
41873 cat confdefs.h >>conftest.$ac_ext
41874 cat >>conftest.$ac_ext <<_ACEOF
41875 /* end confdefs.h. */
41877 #ifdef HAVE_DB_185_H
41878 # include <db_185.h>
41883 #ifndef DB_VERSION_MAJOR
41884 # define DB_VERSION_MAJOR 1
41888 #define NULL ((void*)0)
41895 #if DB_VERSION_MAJOR > 1
41898 int major, minor, patch;
41900 version = db_version( &major, &minor, &patch );
41902 if( major != DB_VERSION_MAJOR ||
41903 minor < DB_VERSION_MINOR )
41905 printf("Berkeley DB version mismatch\n"
41906 "\theader: %s\n\tlibrary: %s\n",
41907 DB_VERSION_STRING, version);
41913 #if DB_VERSION_MAJOR > 2
41914 db_env_create( NULL, 0 );
41915 #elif DB_VERSION_MAJOR > 1
41916 db_appexit( NULL );
41918 (void) dbopen( NULL, 0, 0, 0, NULL);
41925 rm -f conftest.$ac_objext conftest$ac_exeext
41926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41927 (eval $ac_link) 2>conftest.er1
41929 grep -v '^ *+' conftest.er1 >conftest.err
41931 cat conftest.err >&5
41932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41933 (exit $ac_status); } &&
41934 { ac_try='test -z "$ac_c_werror_flag"
41935 || test ! -s conftest.err'
41936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41937 (eval $ac_try) 2>&5
41939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41940 (exit $ac_status); }; } &&
41941 { ac_try='test -s conftest$ac_exeext'
41942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41943 (eval $ac_try) 2>&5
41945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41946 (exit $ac_status); }; }; then
41949 echo "$as_me: failed program was:" >&5
41950 sed 's/^/| /' conftest.$ac_ext >&5
41954 rm -f conftest.err conftest.$ac_objext \
41955 conftest$ac_exeext conftest.$ac_ext
41960 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
41961 echo "${ECHO_T}$ol_cv_db_db41" >&6
41963 if test $ol_cv_db_db41 = yes ; then
41964 ol_cv_lib_db=-ldb41
41968 if test $ol_cv_lib_db = no ; then
41969 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
41970 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
41971 if test "${ol_cv_db_db_41+set}" = set; then
41972 echo $ECHO_N "(cached) $ECHO_C" >&6
41977 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41979 cat >conftest.$ac_ext <<_ACEOF
41982 cat confdefs.h >>conftest.$ac_ext
41983 cat >>conftest.$ac_ext <<_ACEOF
41984 /* end confdefs.h. */
41986 #ifdef HAVE_DB_185_H
41987 # include <db_185.h>
41992 #ifndef DB_VERSION_MAJOR
41993 # define DB_VERSION_MAJOR 1
41997 #define NULL ((void*)0)
42004 #if DB_VERSION_MAJOR > 1
42007 int major, minor, patch;
42009 version = db_version( &major, &minor, &patch );
42011 if( major != DB_VERSION_MAJOR ||
42012 minor < DB_VERSION_MINOR )
42014 printf("Berkeley DB version mismatch\n"
42015 "\theader: %s\n\tlibrary: %s\n",
42016 DB_VERSION_STRING, version);
42022 #if DB_VERSION_MAJOR > 2
42023 db_env_create( NULL, 0 );
42024 #elif DB_VERSION_MAJOR > 1
42025 db_appexit( NULL );
42027 (void) dbopen( NULL, 0, 0, 0, NULL);
42034 rm -f conftest.$ac_objext conftest$ac_exeext
42035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42036 (eval $ac_link) 2>conftest.er1
42038 grep -v '^ *+' conftest.er1 >conftest.err
42040 cat conftest.err >&5
42041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42042 (exit $ac_status); } &&
42043 { ac_try='test -z "$ac_c_werror_flag"
42044 || test ! -s conftest.err'
42045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42046 (eval $ac_try) 2>&5
42048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42049 (exit $ac_status); }; } &&
42050 { ac_try='test -s conftest$ac_exeext'
42051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42052 (eval $ac_try) 2>&5
42054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42055 (exit $ac_status); }; }; then
42058 echo "$as_me: failed program was:" >&5
42059 sed 's/^/| /' conftest.$ac_ext >&5
42063 rm -f conftest.err conftest.$ac_objext \
42064 conftest$ac_exeext conftest.$ac_ext
42069 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
42070 echo "${ECHO_T}$ol_cv_db_db_41" >&6
42072 if test $ol_cv_db_db_41 = yes ; then
42073 ol_cv_lib_db=-ldb-41
42077 if test $ol_cv_lib_db = no ; then
42078 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
42079 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
42080 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
42081 echo $ECHO_N "(cached) $ECHO_C" >&6
42086 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42088 cat >conftest.$ac_ext <<_ACEOF
42091 cat confdefs.h >>conftest.$ac_ext
42092 cat >>conftest.$ac_ext <<_ACEOF
42093 /* end confdefs.h. */
42095 #ifdef HAVE_DB_185_H
42096 # include <db_185.h>
42101 #ifndef DB_VERSION_MAJOR
42102 # define DB_VERSION_MAJOR 1
42106 #define NULL ((void*)0)
42113 #if DB_VERSION_MAJOR > 1
42116 int major, minor, patch;
42118 version = db_version( &major, &minor, &patch );
42120 if( major != DB_VERSION_MAJOR ||
42121 minor < DB_VERSION_MINOR )
42123 printf("Berkeley DB version mismatch\n"
42124 "\theader: %s\n\tlibrary: %s\n",
42125 DB_VERSION_STRING, version);
42131 #if DB_VERSION_MAJOR > 2
42132 db_env_create( NULL, 0 );
42133 #elif DB_VERSION_MAJOR > 1
42134 db_appexit( NULL );
42136 (void) dbopen( NULL, 0, 0, 0, NULL);
42143 rm -f conftest.$ac_objext conftest$ac_exeext
42144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42145 (eval $ac_link) 2>conftest.er1
42147 grep -v '^ *+' conftest.er1 >conftest.err
42149 cat conftest.err >&5
42150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42151 (exit $ac_status); } &&
42152 { ac_try='test -z "$ac_c_werror_flag"
42153 || test ! -s conftest.err'
42154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42155 (eval $ac_try) 2>&5
42157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42158 (exit $ac_status); }; } &&
42159 { ac_try='test -s conftest$ac_exeext'
42160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42161 (eval $ac_try) 2>&5
42163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42164 (exit $ac_status); }; }; then
42165 ol_cv_db_db_4_dot_1=yes
42167 echo "$as_me: failed program was:" >&5
42168 sed 's/^/| /' conftest.$ac_ext >&5
42170 ol_cv_db_db_4_dot_1=no
42172 rm -f conftest.err conftest.$ac_objext \
42173 conftest$ac_exeext conftest.$ac_ext
42178 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
42179 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
42181 if test $ol_cv_db_db_4_dot_1 = yes ; then
42182 ol_cv_lib_db=-ldb-4.1
42186 if test $ol_cv_lib_db = no ; then
42187 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
42188 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
42189 if test "${ol_cv_db_db_4_1+set}" = set; then
42190 echo $ECHO_N "(cached) $ECHO_C" >&6
42195 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42197 cat >conftest.$ac_ext <<_ACEOF
42200 cat confdefs.h >>conftest.$ac_ext
42201 cat >>conftest.$ac_ext <<_ACEOF
42202 /* end confdefs.h. */
42204 #ifdef HAVE_DB_185_H
42205 # include <db_185.h>
42210 #ifndef DB_VERSION_MAJOR
42211 # define DB_VERSION_MAJOR 1
42215 #define NULL ((void*)0)
42222 #if DB_VERSION_MAJOR > 1
42225 int major, minor, patch;
42227 version = db_version( &major, &minor, &patch );
42229 if( major != DB_VERSION_MAJOR ||
42230 minor < DB_VERSION_MINOR )
42232 printf("Berkeley DB version mismatch\n"
42233 "\theader: %s\n\tlibrary: %s\n",
42234 DB_VERSION_STRING, version);
42240 #if DB_VERSION_MAJOR > 2
42241 db_env_create( NULL, 0 );
42242 #elif DB_VERSION_MAJOR > 1
42243 db_appexit( NULL );
42245 (void) dbopen( NULL, 0, 0, 0, NULL);
42252 rm -f conftest.$ac_objext conftest$ac_exeext
42253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42254 (eval $ac_link) 2>conftest.er1
42256 grep -v '^ *+' conftest.er1 >conftest.err
42258 cat conftest.err >&5
42259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42260 (exit $ac_status); } &&
42261 { ac_try='test -z "$ac_c_werror_flag"
42262 || test ! -s conftest.err'
42263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42264 (eval $ac_try) 2>&5
42266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42267 (exit $ac_status); }; } &&
42268 { ac_try='test -s conftest$ac_exeext'
42269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42270 (eval $ac_try) 2>&5
42272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42273 (exit $ac_status); }; }; then
42274 ol_cv_db_db_4_1=yes
42276 echo "$as_me: failed program was:" >&5
42277 sed 's/^/| /' conftest.$ac_ext >&5
42281 rm -f conftest.err conftest.$ac_objext \
42282 conftest$ac_exeext conftest.$ac_ext
42287 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
42288 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
42290 if test $ol_cv_db_db_4_1 = yes ; then
42291 ol_cv_lib_db=-ldb-4-1
42295 if test $ol_cv_lib_db = no ; then
42296 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
42297 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
42298 if test "${ol_cv_db_db3+set}" = set; then
42299 echo $ECHO_N "(cached) $ECHO_C" >&6
42304 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42306 cat >conftest.$ac_ext <<_ACEOF
42309 cat confdefs.h >>conftest.$ac_ext
42310 cat >>conftest.$ac_ext <<_ACEOF
42311 /* end confdefs.h. */
42313 #ifdef HAVE_DB_185_H
42314 # include <db_185.h>
42319 #ifndef DB_VERSION_MAJOR
42320 # define DB_VERSION_MAJOR 1
42324 #define NULL ((void*)0)
42331 #if DB_VERSION_MAJOR > 1
42334 int major, minor, patch;
42336 version = db_version( &major, &minor, &patch );
42338 if( major != DB_VERSION_MAJOR ||
42339 minor < DB_VERSION_MINOR )
42341 printf("Berkeley DB version mismatch\n"
42342 "\theader: %s\n\tlibrary: %s\n",
42343 DB_VERSION_STRING, version);
42349 #if DB_VERSION_MAJOR > 2
42350 db_env_create( NULL, 0 );
42351 #elif DB_VERSION_MAJOR > 1
42352 db_appexit( NULL );
42354 (void) dbopen( NULL, 0, 0, 0, NULL);
42361 rm -f conftest.$ac_objext conftest$ac_exeext
42362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42363 (eval $ac_link) 2>conftest.er1
42365 grep -v '^ *+' conftest.er1 >conftest.err
42367 cat conftest.err >&5
42368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42369 (exit $ac_status); } &&
42370 { ac_try='test -z "$ac_c_werror_flag"
42371 || test ! -s conftest.err'
42372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42373 (eval $ac_try) 2>&5
42375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42376 (exit $ac_status); }; } &&
42377 { ac_try='test -s conftest$ac_exeext'
42378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42379 (eval $ac_try) 2>&5
42381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42382 (exit $ac_status); }; }; then
42385 echo "$as_me: failed program was:" >&5
42386 sed 's/^/| /' conftest.$ac_ext >&5
42390 rm -f conftest.err conftest.$ac_objext \
42391 conftest$ac_exeext conftest.$ac_ext
42396 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
42397 echo "${ECHO_T}$ol_cv_db_db3" >&6
42399 if test $ol_cv_db_db3 = yes ; then
42404 if test $ol_cv_lib_db = no ; then
42405 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
42406 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
42407 if test "${ol_cv_db_db_3+set}" = set; then
42408 echo $ECHO_N "(cached) $ECHO_C" >&6
42413 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42415 cat >conftest.$ac_ext <<_ACEOF
42418 cat confdefs.h >>conftest.$ac_ext
42419 cat >>conftest.$ac_ext <<_ACEOF
42420 /* end confdefs.h. */
42422 #ifdef HAVE_DB_185_H
42423 # include <db_185.h>
42428 #ifndef DB_VERSION_MAJOR
42429 # define DB_VERSION_MAJOR 1
42433 #define NULL ((void*)0)
42440 #if DB_VERSION_MAJOR > 1
42443 int major, minor, patch;
42445 version = db_version( &major, &minor, &patch );
42447 if( major != DB_VERSION_MAJOR ||
42448 minor < DB_VERSION_MINOR )
42450 printf("Berkeley DB version mismatch\n"
42451 "\theader: %s\n\tlibrary: %s\n",
42452 DB_VERSION_STRING, version);
42458 #if DB_VERSION_MAJOR > 2
42459 db_env_create( NULL, 0 );
42460 #elif DB_VERSION_MAJOR > 1
42461 db_appexit( NULL );
42463 (void) dbopen( NULL, 0, 0, 0, NULL);
42470 rm -f conftest.$ac_objext conftest$ac_exeext
42471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42472 (eval $ac_link) 2>conftest.er1
42474 grep -v '^ *+' conftest.er1 >conftest.err
42476 cat conftest.err >&5
42477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42478 (exit $ac_status); } &&
42479 { ac_try='test -z "$ac_c_werror_flag"
42480 || test ! -s conftest.err'
42481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42482 (eval $ac_try) 2>&5
42484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42485 (exit $ac_status); }; } &&
42486 { ac_try='test -s conftest$ac_exeext'
42487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42488 (eval $ac_try) 2>&5
42490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42491 (exit $ac_status); }; }; then
42494 echo "$as_me: failed program was:" >&5
42495 sed 's/^/| /' conftest.$ac_ext >&5
42499 rm -f conftest.err conftest.$ac_objext \
42500 conftest$ac_exeext conftest.$ac_ext
42505 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
42506 echo "${ECHO_T}$ol_cv_db_db_3" >&6
42508 if test $ol_cv_db_db_3 = yes ; then
42509 ol_cv_lib_db=-ldb-3
42513 if test $ol_cv_lib_db = no ; then
42514 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
42515 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
42516 if test "${ol_cv_db_db2+set}" = set; then
42517 echo $ECHO_N "(cached) $ECHO_C" >&6
42522 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42524 cat >conftest.$ac_ext <<_ACEOF
42527 cat confdefs.h >>conftest.$ac_ext
42528 cat >>conftest.$ac_ext <<_ACEOF
42529 /* end confdefs.h. */
42531 #ifdef HAVE_DB_185_H
42532 # include <db_185.h>
42537 #ifndef DB_VERSION_MAJOR
42538 # define DB_VERSION_MAJOR 1
42542 #define NULL ((void*)0)
42549 #if DB_VERSION_MAJOR > 1
42552 int major, minor, patch;
42554 version = db_version( &major, &minor, &patch );
42556 if( major != DB_VERSION_MAJOR ||
42557 minor < DB_VERSION_MINOR )
42559 printf("Berkeley DB version mismatch\n"
42560 "\theader: %s\n\tlibrary: %s\n",
42561 DB_VERSION_STRING, version);
42567 #if DB_VERSION_MAJOR > 2
42568 db_env_create( NULL, 0 );
42569 #elif DB_VERSION_MAJOR > 1
42570 db_appexit( NULL );
42572 (void) dbopen( NULL, 0, 0, 0, NULL);
42579 rm -f conftest.$ac_objext conftest$ac_exeext
42580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42581 (eval $ac_link) 2>conftest.er1
42583 grep -v '^ *+' conftest.er1 >conftest.err
42585 cat conftest.err >&5
42586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42587 (exit $ac_status); } &&
42588 { ac_try='test -z "$ac_c_werror_flag"
42589 || test ! -s conftest.err'
42590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42591 (eval $ac_try) 2>&5
42593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42594 (exit $ac_status); }; } &&
42595 { ac_try='test -s conftest$ac_exeext'
42596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42597 (eval $ac_try) 2>&5
42599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42600 (exit $ac_status); }; }; then
42603 echo "$as_me: failed program was:" >&5
42604 sed 's/^/| /' conftest.$ac_ext >&5
42608 rm -f conftest.err conftest.$ac_objext \
42609 conftest$ac_exeext conftest.$ac_ext
42614 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
42615 echo "${ECHO_T}$ol_cv_db_db2" >&6
42617 if test $ol_cv_db_db2 = yes ; then
42622 if test $ol_cv_lib_db = no ; then
42623 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
42624 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
42625 if test "${ol_cv_db_db_2+set}" = set; then
42626 echo $ECHO_N "(cached) $ECHO_C" >&6
42631 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42633 cat >conftest.$ac_ext <<_ACEOF
42636 cat confdefs.h >>conftest.$ac_ext
42637 cat >>conftest.$ac_ext <<_ACEOF
42638 /* end confdefs.h. */
42640 #ifdef HAVE_DB_185_H
42641 # include <db_185.h>
42646 #ifndef DB_VERSION_MAJOR
42647 # define DB_VERSION_MAJOR 1
42651 #define NULL ((void*)0)
42658 #if DB_VERSION_MAJOR > 1
42661 int major, minor, patch;
42663 version = db_version( &major, &minor, &patch );
42665 if( major != DB_VERSION_MAJOR ||
42666 minor < DB_VERSION_MINOR )
42668 printf("Berkeley DB version mismatch\n"
42669 "\theader: %s\n\tlibrary: %s\n",
42670 DB_VERSION_STRING, version);
42676 #if DB_VERSION_MAJOR > 2
42677 db_env_create( NULL, 0 );
42678 #elif DB_VERSION_MAJOR > 1
42679 db_appexit( NULL );
42681 (void) dbopen( NULL, 0, 0, 0, NULL);
42688 rm -f conftest.$ac_objext conftest$ac_exeext
42689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42690 (eval $ac_link) 2>conftest.er1
42692 grep -v '^ *+' conftest.er1 >conftest.err
42694 cat conftest.err >&5
42695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42696 (exit $ac_status); } &&
42697 { ac_try='test -z "$ac_c_werror_flag"
42698 || test ! -s conftest.err'
42699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42700 (eval $ac_try) 2>&5
42702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42703 (exit $ac_status); }; } &&
42704 { ac_try='test -s conftest$ac_exeext'
42705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42706 (eval $ac_try) 2>&5
42708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42709 (exit $ac_status); }; }; then
42712 echo "$as_me: failed program was:" >&5
42713 sed 's/^/| /' conftest.$ac_ext >&5
42717 rm -f conftest.err conftest.$ac_objext \
42718 conftest$ac_exeext conftest.$ac_ext
42723 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
42724 echo "${ECHO_T}$ol_cv_db_db_2" >&6
42726 if test $ol_cv_db_db_2 = yes ; then
42727 ol_cv_lib_db=-ldb-2
42731 if test $ol_cv_lib_db = no ; then
42732 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
42733 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
42734 if test "${ol_cv_db_db1+set}" = set; then
42735 echo $ECHO_N "(cached) $ECHO_C" >&6
42740 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42742 cat >conftest.$ac_ext <<_ACEOF
42745 cat confdefs.h >>conftest.$ac_ext
42746 cat >>conftest.$ac_ext <<_ACEOF
42747 /* end confdefs.h. */
42749 #ifdef HAVE_DB_185_H
42750 # include <db_185.h>
42755 #ifndef DB_VERSION_MAJOR
42756 # define DB_VERSION_MAJOR 1
42760 #define NULL ((void*)0)
42767 #if DB_VERSION_MAJOR > 1
42770 int major, minor, patch;
42772 version = db_version( &major, &minor, &patch );
42774 if( major != DB_VERSION_MAJOR ||
42775 minor < DB_VERSION_MINOR )
42777 printf("Berkeley DB version mismatch\n"
42778 "\theader: %s\n\tlibrary: %s\n",
42779 DB_VERSION_STRING, version);
42785 #if DB_VERSION_MAJOR > 2
42786 db_env_create( NULL, 0 );
42787 #elif DB_VERSION_MAJOR > 1
42788 db_appexit( NULL );
42790 (void) dbopen( NULL, 0, 0, 0, NULL);
42797 rm -f conftest.$ac_objext conftest$ac_exeext
42798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42799 (eval $ac_link) 2>conftest.er1
42801 grep -v '^ *+' conftest.er1 >conftest.err
42803 cat conftest.err >&5
42804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42805 (exit $ac_status); } &&
42806 { ac_try='test -z "$ac_c_werror_flag"
42807 || test ! -s conftest.err'
42808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42809 (eval $ac_try) 2>&5
42811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42812 (exit $ac_status); }; } &&
42813 { ac_try='test -s conftest$ac_exeext'
42814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42815 (eval $ac_try) 2>&5
42817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42818 (exit $ac_status); }; }; then
42821 echo "$as_me: failed program was:" >&5
42822 sed 's/^/| /' conftest.$ac_ext >&5
42826 rm -f conftest.err conftest.$ac_objext \
42827 conftest$ac_exeext conftest.$ac_ext
42832 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
42833 echo "${ECHO_T}$ol_cv_db_db1" >&6
42835 if test $ol_cv_db_db1 = yes ; then
42840 if test $ol_cv_lib_db = no ; then
42841 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
42842 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
42843 if test "${ol_cv_db_db_1+set}" = set; then
42844 echo $ECHO_N "(cached) $ECHO_C" >&6
42849 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42851 cat >conftest.$ac_ext <<_ACEOF
42854 cat confdefs.h >>conftest.$ac_ext
42855 cat >>conftest.$ac_ext <<_ACEOF
42856 /* end confdefs.h. */
42858 #ifdef HAVE_DB_185_H
42859 # include <db_185.h>
42864 #ifndef DB_VERSION_MAJOR
42865 # define DB_VERSION_MAJOR 1
42869 #define NULL ((void*)0)
42876 #if DB_VERSION_MAJOR > 1
42879 int major, minor, patch;
42881 version = db_version( &major, &minor, &patch );
42883 if( major != DB_VERSION_MAJOR ||
42884 minor < DB_VERSION_MINOR )
42886 printf("Berkeley DB version mismatch\n"
42887 "\theader: %s\n\tlibrary: %s\n",
42888 DB_VERSION_STRING, version);
42894 #if DB_VERSION_MAJOR > 2
42895 db_env_create( NULL, 0 );
42896 #elif DB_VERSION_MAJOR > 1
42897 db_appexit( NULL );
42899 (void) dbopen( NULL, 0, 0, 0, NULL);
42906 rm -f conftest.$ac_objext conftest$ac_exeext
42907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42908 (eval $ac_link) 2>conftest.er1
42910 grep -v '^ *+' conftest.er1 >conftest.err
42912 cat conftest.err >&5
42913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42914 (exit $ac_status); } &&
42915 { ac_try='test -z "$ac_c_werror_flag"
42916 || test ! -s conftest.err'
42917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42918 (eval $ac_try) 2>&5
42920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42921 (exit $ac_status); }; } &&
42922 { ac_try='test -s conftest$ac_exeext'
42923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42924 (eval $ac_try) 2>&5
42926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42927 (exit $ac_status); }; }; then
42930 echo "$as_me: failed program was:" >&5
42931 sed 's/^/| /' conftest.$ac_ext >&5
42935 rm -f conftest.err conftest.$ac_objext \
42936 conftest$ac_exeext conftest.$ac_ext
42941 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
42942 echo "${ECHO_T}$ol_cv_db_db_1" >&6
42944 if test $ol_cv_db_db_1 = yes ; then
42945 ol_cv_lib_db=-ldb-1
42950 if test "$ol_cv_lib_db" != no ; then
42951 ol_cv_berkeley_db=yes
42952 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
42953 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
42954 if test "${ol_cv_berkeley_db_version+set}" = set; then
42955 echo $ECHO_N "(cached) $ECHO_C" >&6
42959 LIBS="$LTHREAD_LIBS $LIBS"
42960 if test $ol_cv_lib_db != yes ; then
42961 LIBS="$ol_cv_lib_db $LIBS"
42964 if test "$cross_compiling" = yes; then
42965 ol_cv_berkeley_db_version=cross
42967 cat >conftest.$ac_ext <<_ACEOF
42970 cat confdefs.h >>conftest.$ac_ext
42971 cat >>conftest.$ac_ext <<_ACEOF
42972 /* end confdefs.h. */
42974 #ifdef HAVE_DB_185_H
42979 #ifndef DB_VERSION_MAJOR
42980 # define DB_VERSION_MAJOR 1
42983 #define NULL ((void *)0)
42987 #if DB_VERSION_MAJOR > 1
42989 int major, minor, patch;
42991 version = db_version( &major, &minor, &patch );
42993 if( major != DB_VERSION_MAJOR ||
42994 minor != DB_VERSION_MINOR ||
42995 patch != DB_VERSION_PATCH )
42997 printf("Berkeley DB version mismatch\n"
42998 "\theader: %s\n\tlibrary: %s\n",
42999 DB_VERSION_STRING, version);
43007 rm -f conftest$ac_exeext
43008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43009 (eval $ac_link) 2>&5
43011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43012 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43014 (eval $ac_try) 2>&5
43016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43017 (exit $ac_status); }; }; then
43018 ol_cv_berkeley_db_version=yes
43020 echo "$as_me: program exited with status $ac_status" >&5
43021 echo "$as_me: failed program was:" >&5
43022 sed 's/^/| /' conftest.$ac_ext >&5
43024 ( exit $ac_status )
43025 ol_cv_berkeley_db_version=no
43027 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43033 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
43034 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
43036 if test $ol_cv_berkeley_db_version = no ; then
43037 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
43038 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
43039 { (exit 1); exit 1; }; }
43042 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
43043 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
43044 if test "${ol_cv_berkeley_db_thread+set}" = set; then
43045 echo $ECHO_N "(cached) $ECHO_C" >&6
43049 LIBS="$LTHREAD_LIBS $LIBS"
43050 if test $ol_cv_lib_db != yes ; then
43051 LIBS="$ol_cv_lib_db $LIBS"
43054 if test "$cross_compiling" = yes; then
43055 ol_cv_berkeley_db_thread=cross
43057 cat >conftest.$ac_ext <<_ACEOF
43060 cat confdefs.h >>conftest.$ac_ext
43061 cat >>conftest.$ac_ext <<_ACEOF
43062 /* end confdefs.h. */
43064 #ifdef HAVE_DB_185_H
43070 #define NULL ((void *)0)
43075 u_int32_t flags = DB_CREATE |
43081 #if DB_VERSION_MAJOR > 2
43082 DB_ENV *env = NULL;
43084 rc = db_env_create( &env, 0 );
43086 flags |= DB_INIT_MPOOL;
43087 #ifdef DB_MPOOL_PRIVATE
43088 flags |= DB_MPOOL_PRIVATE;
43092 printf("BerkeleyDB: %s\n", db_strerror(rc) );
43096 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
43097 rc = env->open( env, NULL, flags, 0 );
43099 rc = env->open( env, NULL, NULL, flags, 0 );
43103 rc = env->close( env, 0 );
43107 printf("BerkeleyDB: %s\n", db_strerror(rc) );
43113 memset( &env, '\0', sizeof(env) );
43115 rc = db_appinit( NULL, NULL, &env, flags );
43118 db_appexit( &env );
43121 unlink("__db_mpool.share");
43122 unlink("__db_lock.share");
43128 rm -f conftest$ac_exeext
43129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43130 (eval $ac_link) 2>&5
43132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43133 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43135 (eval $ac_try) 2>&5
43137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43138 (exit $ac_status); }; }; then
43139 ol_cv_berkeley_db_thread=yes
43141 echo "$as_me: program exited with status $ac_status" >&5
43142 echo "$as_me: failed program was:" >&5
43143 sed 's/^/| /' conftest.$ac_ext >&5
43145 ( exit $ac_status )
43146 ol_cv_berkeley_db_thread=no
43148 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43154 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
43155 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
43157 if test $ol_cv_berkeley_db_thread != no ; then
43159 cat >>confdefs.h <<\_ACEOF
43160 #define HAVE_BERKELEY_DB_THREAD 1
43170 if test $ol_cv_berkeley_db != no ; then
43172 cat >>confdefs.h <<\_ACEOF
43173 #define HAVE_BERKELEY_DB 1
43177 ol_link_ldbm=berkeley
43178 ol_with_ldbm_api=berkeley
43180 if test $ol_with_ldbm_type = hash ; then
43182 cat >>confdefs.h <<\_ACEOF
43183 #define LDBM_USE_DBHASH 1
43188 cat >>confdefs.h <<\_ACEOF
43189 #define LDBM_USE_DBBTREE 1
43194 if test $ol_cv_lib_db != yes ; then
43195 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
43200 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
43201 if test $ol_link_ldbm != berkeley ; then
43202 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
43203 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
43204 { (exit 1); exit 1; }; }
43206 echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
43207 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
43208 if test "${ol_cv_bdb_compat+set}" = set; then
43209 echo $ECHO_N "(cached) $ECHO_C" >&6
43212 cat >conftest.$ac_ext <<_ACEOF
43215 cat confdefs.h >>conftest.$ac_ext
43216 cat >>conftest.$ac_ext <<_ACEOF
43217 /* end confdefs.h. */
43221 /* this check could be improved */
43222 #ifndef DB_VERSION_MAJOR
43223 # define DB_VERSION_MAJOR 1
43225 #ifndef DB_VERSION_MINOR
43226 # define DB_VERSION_MINOR 0
43229 /* require 4.2 or later */
43230 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
43231 __db_version_compat
43235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43236 $EGREP "__db_version_compat" >/dev/null 2>&1; then
43237 ol_cv_bdb_compat=yes
43239 ol_cv_bdb_compat=no
43244 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
43245 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
43248 if test $ol_cv_bdb_compat != yes ; then
43249 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
43250 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
43251 { (exit 1); exit 1; }; }
43256 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
43257 { echo "$as_me:$LINENO: WARNING: Could not find LDBM with BTREE support" >&5
43258 echo "$as_me: WARNING: Could not find LDBM with BTREE support" >&2;}
43259 ol_with_ldbm_api=none
43262 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
43263 echo "$as_me:$LINENO: checking for MDBM library" >&5
43264 echo $ECHO_N "checking for MDBM library... $ECHO_C" >&6
43265 if test "${ol_cv_lib_mdbm+set}" = set; then
43266 echo $ECHO_N "(cached) $ECHO_C" >&6
43269 echo "$as_me:$LINENO: checking for mdbm_set_chain" >&5
43270 echo $ECHO_N "checking for mdbm_set_chain... $ECHO_C" >&6
43271 if test "${ac_cv_func_mdbm_set_chain+set}" = set; then
43272 echo $ECHO_N "(cached) $ECHO_C" >&6
43274 cat >conftest.$ac_ext <<_ACEOF
43277 cat confdefs.h >>conftest.$ac_ext
43278 cat >>conftest.$ac_ext <<_ACEOF
43279 /* end confdefs.h. */
43280 /* Define mdbm_set_chain to an innocuous variant, in case <limits.h> declares mdbm_set_chain.
43281 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43282 #define mdbm_set_chain innocuous_mdbm_set_chain
43284 /* System header to define __stub macros and hopefully few prototypes,
43285 which can conflict with char mdbm_set_chain (); below.
43286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43287 <limits.h> exists even on freestanding compilers. */
43290 # include <limits.h>
43292 # include <assert.h>
43295 #undef mdbm_set_chain
43297 /* Override any gcc2 internal prototype to avoid an error. */
43302 /* We use char because int might match the return type of a gcc2
43303 builtin and then its argument prototype would still apply. */
43304 char mdbm_set_chain ();
43305 /* The GNU C library defines this for functions which it implements
43306 to always fail with ENOSYS. Some functions are actually named
43307 something starting with __ and the normal name is an alias. */
43308 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
43311 char (*f) () = mdbm_set_chain;
43320 return f != mdbm_set_chain;
43325 rm -f conftest.$ac_objext conftest$ac_exeext
43326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43327 (eval $ac_link) 2>conftest.er1
43329 grep -v '^ *+' conftest.er1 >conftest.err
43331 cat conftest.err >&5
43332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43333 (exit $ac_status); } &&
43334 { ac_try='test -z "$ac_c_werror_flag"
43335 || test ! -s conftest.err'
43336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43337 (eval $ac_try) 2>&5
43339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43340 (exit $ac_status); }; } &&
43341 { ac_try='test -s conftest$ac_exeext'
43342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43343 (eval $ac_try) 2>&5
43345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43346 (exit $ac_status); }; }; then
43347 ac_cv_func_mdbm_set_chain=yes
43349 echo "$as_me: failed program was:" >&5
43350 sed 's/^/| /' conftest.$ac_ext >&5
43352 ac_cv_func_mdbm_set_chain=no
43354 rm -f conftest.err conftest.$ac_objext \
43355 conftest$ac_exeext conftest.$ac_ext
43357 echo "$as_me:$LINENO: result: $ac_cv_func_mdbm_set_chain" >&5
43358 echo "${ECHO_T}$ac_cv_func_mdbm_set_chain" >&6
43359 if test $ac_cv_func_mdbm_set_chain = yes; then
43363 echo "$as_me:$LINENO: checking for mdbm_set_chain in -lmdbm" >&5
43364 echo $ECHO_N "checking for mdbm_set_chain in -lmdbm... $ECHO_C" >&6
43365 if test "${ac_cv_lib_mdbm_mdbm_set_chain+set}" = set; then
43366 echo $ECHO_N "(cached) $ECHO_C" >&6
43368 ac_check_lib_save_LIBS=$LIBS
43369 LIBS="-lmdbm $LIBS"
43370 cat >conftest.$ac_ext <<_ACEOF
43373 cat confdefs.h >>conftest.$ac_ext
43374 cat >>conftest.$ac_ext <<_ACEOF
43375 /* end confdefs.h. */
43377 /* Override any gcc2 internal prototype to avoid an error. */
43381 /* We use char because int might match the return type of a gcc2
43382 builtin and then its argument prototype would still apply. */
43383 char mdbm_set_chain ();
43392 rm -f conftest.$ac_objext conftest$ac_exeext
43393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43394 (eval $ac_link) 2>conftest.er1
43396 grep -v '^ *+' conftest.er1 >conftest.err
43398 cat conftest.err >&5
43399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43400 (exit $ac_status); } &&
43401 { ac_try='test -z "$ac_c_werror_flag"
43402 || test ! -s conftest.err'
43403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43404 (eval $ac_try) 2>&5
43406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43407 (exit $ac_status); }; } &&
43408 { ac_try='test -s conftest$ac_exeext'
43409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43410 (eval $ac_try) 2>&5
43412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43413 (exit $ac_status); }; }; then
43414 ac_cv_lib_mdbm_mdbm_set_chain=yes
43416 echo "$as_me: failed program was:" >&5
43417 sed 's/^/| /' conftest.$ac_ext >&5
43419 ac_cv_lib_mdbm_mdbm_set_chain=no
43421 rm -f conftest.err conftest.$ac_objext \
43422 conftest$ac_exeext conftest.$ac_ext
43423 LIBS=$ac_check_lib_save_LIBS
43425 echo "$as_me:$LINENO: result: $ac_cv_lib_mdbm_mdbm_set_chain" >&5
43426 echo "${ECHO_T}$ac_cv_lib_mdbm_mdbm_set_chain" >&6
43427 if test $ac_cv_lib_mdbm_mdbm_set_chain = yes; then
43428 ol_cv_lib_mdbm=-lmdbm
43439 echo "$as_me:$LINENO: result: $ol_cv_lib_mdbm" >&5
43440 echo "${ECHO_T}$ol_cv_lib_mdbm" >&6
43444 for ac_header in mdbm.h
43446 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43448 echo "$as_me:$LINENO: checking for $ac_header" >&5
43449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43450 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43451 echo $ECHO_N "(cached) $ECHO_C" >&6
43453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43454 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43456 # Is the header compilable?
43457 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43458 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43459 cat >conftest.$ac_ext <<_ACEOF
43462 cat confdefs.h >>conftest.$ac_ext
43463 cat >>conftest.$ac_ext <<_ACEOF
43464 /* end confdefs.h. */
43465 $ac_includes_default
43466 #include <$ac_header>
43468 rm -f conftest.$ac_objext
43469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43470 (eval $ac_compile) 2>conftest.er1
43472 grep -v '^ *+' conftest.er1 >conftest.err
43474 cat conftest.err >&5
43475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43476 (exit $ac_status); } &&
43477 { ac_try='test -z "$ac_c_werror_flag"
43478 || test ! -s conftest.err'
43479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43480 (eval $ac_try) 2>&5
43482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43483 (exit $ac_status); }; } &&
43484 { ac_try='test -s conftest.$ac_objext'
43485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43486 (eval $ac_try) 2>&5
43488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43489 (exit $ac_status); }; }; then
43490 ac_header_compiler=yes
43492 echo "$as_me: failed program was:" >&5
43493 sed 's/^/| /' conftest.$ac_ext >&5
43495 ac_header_compiler=no
43497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43498 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43499 echo "${ECHO_T}$ac_header_compiler" >&6
43501 # Is the header present?
43502 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43503 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43504 cat >conftest.$ac_ext <<_ACEOF
43507 cat confdefs.h >>conftest.$ac_ext
43508 cat >>conftest.$ac_ext <<_ACEOF
43509 /* end confdefs.h. */
43510 #include <$ac_header>
43512 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43513 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43515 grep -v '^ *+' conftest.er1 >conftest.err
43517 cat conftest.err >&5
43518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43519 (exit $ac_status); } >/dev/null; then
43520 if test -s conftest.err; then
43521 ac_cpp_err=$ac_c_preproc_warn_flag
43522 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43529 if test -z "$ac_cpp_err"; then
43530 ac_header_preproc=yes
43532 echo "$as_me: failed program was:" >&5
43533 sed 's/^/| /' conftest.$ac_ext >&5
43535 ac_header_preproc=no
43537 rm -f conftest.err conftest.$ac_ext
43538 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43539 echo "${ECHO_T}$ac_header_preproc" >&6
43541 # So? What about this header?
43542 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43544 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43545 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43546 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43547 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43548 ac_header_preproc=yes
43551 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43552 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43553 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43554 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43555 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43556 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43557 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43558 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
43559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43560 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43561 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43562 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43565 ## ------------------------------------------ ##
43566 ## Report this to the AC_PACKAGE_NAME lists. ##
43567 ## ------------------------------------------ ##
43570 sed "s/^/$as_me: WARNING: /" >&2
43573 echo "$as_me:$LINENO: checking for $ac_header" >&5
43574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43575 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43576 echo $ECHO_N "(cached) $ECHO_C" >&6
43578 eval "$as_ac_Header=\$ac_header_preproc"
43580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43581 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43584 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43585 cat >>confdefs.h <<_ACEOF
43586 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43593 echo "$as_me:$LINENO: checking for db" >&5
43594 echo $ECHO_N "checking for db... $ECHO_C" >&6
43595 if test "${ol_cv_mdbm+set}" = set; then
43596 echo $ECHO_N "(cached) $ECHO_C" >&6
43599 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
43606 echo "$as_me:$LINENO: result: $ol_cv_mdbm" >&5
43607 echo "${ECHO_T}$ol_cv_mdbm" >&6
43608 if test $ol_cv_mdbm = yes ; then
43610 cat >>confdefs.h <<\_ACEOF
43611 #define HAVE_MDBM 1
43617 if test $ol_cv_mdbm = yes ; then
43619 ol_with_ldbm_api=mdbm
43620 if test $ol_cv_lib_mdbm != yes ; then
43621 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
43626 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
43627 echo "$as_me:$LINENO: checking for GDBM library" >&5
43628 echo $ECHO_N "checking for GDBM library... $ECHO_C" >&6
43629 if test "${ol_cv_lib_gdbm+set}" = set; then
43630 echo $ECHO_N "(cached) $ECHO_C" >&6
43633 echo "$as_me:$LINENO: checking for gdbm_open" >&5
43634 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
43635 if test "${ac_cv_func_gdbm_open+set}" = set; then
43636 echo $ECHO_N "(cached) $ECHO_C" >&6
43638 cat >conftest.$ac_ext <<_ACEOF
43641 cat confdefs.h >>conftest.$ac_ext
43642 cat >>conftest.$ac_ext <<_ACEOF
43643 /* end confdefs.h. */
43644 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
43645 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43646 #define gdbm_open innocuous_gdbm_open
43648 /* System header to define __stub macros and hopefully few prototypes,
43649 which can conflict with char gdbm_open (); below.
43650 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43651 <limits.h> exists even on freestanding compilers. */
43654 # include <limits.h>
43656 # include <assert.h>
43661 /* Override any gcc2 internal prototype to avoid an error. */
43666 /* We use char because int might match the return type of a gcc2
43667 builtin and then its argument prototype would still apply. */
43669 /* The GNU C library defines this for functions which it implements
43670 to always fail with ENOSYS. Some functions are actually named
43671 something starting with __ and the normal name is an alias. */
43672 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
43675 char (*f) () = gdbm_open;
43684 return f != gdbm_open;
43689 rm -f conftest.$ac_objext conftest$ac_exeext
43690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43691 (eval $ac_link) 2>conftest.er1
43693 grep -v '^ *+' conftest.er1 >conftest.err
43695 cat conftest.err >&5
43696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43697 (exit $ac_status); } &&
43698 { ac_try='test -z "$ac_c_werror_flag"
43699 || test ! -s conftest.err'
43700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43701 (eval $ac_try) 2>&5
43703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43704 (exit $ac_status); }; } &&
43705 { ac_try='test -s conftest$ac_exeext'
43706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43707 (eval $ac_try) 2>&5
43709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43710 (exit $ac_status); }; }; then
43711 ac_cv_func_gdbm_open=yes
43713 echo "$as_me: failed program was:" >&5
43714 sed 's/^/| /' conftest.$ac_ext >&5
43716 ac_cv_func_gdbm_open=no
43718 rm -f conftest.err conftest.$ac_objext \
43719 conftest$ac_exeext conftest.$ac_ext
43721 echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
43722 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6
43723 if test $ac_cv_func_gdbm_open = yes; then
43727 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
43728 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
43729 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
43730 echo $ECHO_N "(cached) $ECHO_C" >&6
43732 ac_check_lib_save_LIBS=$LIBS
43733 LIBS="-lgdbm $LIBS"
43734 cat >conftest.$ac_ext <<_ACEOF
43737 cat confdefs.h >>conftest.$ac_ext
43738 cat >>conftest.$ac_ext <<_ACEOF
43739 /* end confdefs.h. */
43741 /* Override any gcc2 internal prototype to avoid an error. */
43745 /* We use char because int might match the return type of a gcc2
43746 builtin and then its argument prototype would still apply. */
43756 rm -f conftest.$ac_objext conftest$ac_exeext
43757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43758 (eval $ac_link) 2>conftest.er1
43760 grep -v '^ *+' conftest.er1 >conftest.err
43762 cat conftest.err >&5
43763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43764 (exit $ac_status); } &&
43765 { ac_try='test -z "$ac_c_werror_flag"
43766 || test ! -s conftest.err'
43767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43768 (eval $ac_try) 2>&5
43770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43771 (exit $ac_status); }; } &&
43772 { ac_try='test -s conftest$ac_exeext'
43773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43774 (eval $ac_try) 2>&5
43776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43777 (exit $ac_status); }; }; then
43778 ac_cv_lib_gdbm_gdbm_open=yes
43780 echo "$as_me: failed program was:" >&5
43781 sed 's/^/| /' conftest.$ac_ext >&5
43783 ac_cv_lib_gdbm_gdbm_open=no
43785 rm -f conftest.err conftest.$ac_objext \
43786 conftest$ac_exeext conftest.$ac_ext
43787 LIBS=$ac_check_lib_save_LIBS
43789 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
43790 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
43791 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
43792 ol_cv_lib_gdbm=-lgdbm
43803 echo "$as_me:$LINENO: result: $ol_cv_lib_gdbm" >&5
43804 echo "${ECHO_T}$ol_cv_lib_gdbm" >&6
43808 for ac_header in gdbm.h
43810 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43812 echo "$as_me:$LINENO: checking for $ac_header" >&5
43813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43815 echo $ECHO_N "(cached) $ECHO_C" >&6
43817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43818 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43820 # Is the header compilable?
43821 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43822 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43823 cat >conftest.$ac_ext <<_ACEOF
43826 cat confdefs.h >>conftest.$ac_ext
43827 cat >>conftest.$ac_ext <<_ACEOF
43828 /* end confdefs.h. */
43829 $ac_includes_default
43830 #include <$ac_header>
43832 rm -f conftest.$ac_objext
43833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43834 (eval $ac_compile) 2>conftest.er1
43836 grep -v '^ *+' conftest.er1 >conftest.err
43838 cat conftest.err >&5
43839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43840 (exit $ac_status); } &&
43841 { ac_try='test -z "$ac_c_werror_flag"
43842 || test ! -s conftest.err'
43843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43844 (eval $ac_try) 2>&5
43846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43847 (exit $ac_status); }; } &&
43848 { ac_try='test -s conftest.$ac_objext'
43849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43850 (eval $ac_try) 2>&5
43852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43853 (exit $ac_status); }; }; then
43854 ac_header_compiler=yes
43856 echo "$as_me: failed program was:" >&5
43857 sed 's/^/| /' conftest.$ac_ext >&5
43859 ac_header_compiler=no
43861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43862 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43863 echo "${ECHO_T}$ac_header_compiler" >&6
43865 # Is the header present?
43866 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43867 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43868 cat >conftest.$ac_ext <<_ACEOF
43871 cat confdefs.h >>conftest.$ac_ext
43872 cat >>conftest.$ac_ext <<_ACEOF
43873 /* end confdefs.h. */
43874 #include <$ac_header>
43876 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43877 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43879 grep -v '^ *+' conftest.er1 >conftest.err
43881 cat conftest.err >&5
43882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43883 (exit $ac_status); } >/dev/null; then
43884 if test -s conftest.err; then
43885 ac_cpp_err=$ac_c_preproc_warn_flag
43886 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43893 if test -z "$ac_cpp_err"; then
43894 ac_header_preproc=yes
43896 echo "$as_me: failed program was:" >&5
43897 sed 's/^/| /' conftest.$ac_ext >&5
43899 ac_header_preproc=no
43901 rm -f conftest.err conftest.$ac_ext
43902 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43903 echo "${ECHO_T}$ac_header_preproc" >&6
43905 # So? What about this header?
43906 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43908 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43909 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43910 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43911 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43912 ac_header_preproc=yes
43915 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43916 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43917 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43918 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43919 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43920 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43921 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43922 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
43923 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43924 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43925 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43926 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43929 ## ------------------------------------------ ##
43930 ## Report this to the AC_PACKAGE_NAME lists. ##
43931 ## ------------------------------------------ ##
43934 sed "s/^/$as_me: WARNING: /" >&2
43937 echo "$as_me:$LINENO: checking for $ac_header" >&5
43938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43940 echo $ECHO_N "(cached) $ECHO_C" >&6
43942 eval "$as_ac_Header=\$ac_header_preproc"
43944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43945 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43949 cat >>confdefs.h <<_ACEOF
43950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43957 echo "$as_me:$LINENO: checking for db" >&5
43958 echo $ECHO_N "checking for db... $ECHO_C" >&6
43959 if test "${ol_cv_gdbm+set}" = set; then
43960 echo $ECHO_N "(cached) $ECHO_C" >&6
43963 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
43970 echo "$as_me:$LINENO: result: $ol_cv_gdbm" >&5
43971 echo "${ECHO_T}$ol_cv_gdbm" >&6
43972 if test $ol_cv_gdbm = yes ; then
43974 cat >>confdefs.h <<\_ACEOF
43975 #define HAVE_GDBM 1
43981 if test $ol_cv_gdbm = yes ; then
43983 ol_with_ldbm_api=gdbm
43985 if test $ol_cv_lib_gdbm != yes ; then
43986 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
43991 if test $ol_with_ldbm_api = ndbm ; then
43992 echo "$as_me:$LINENO: checking for NDBM library" >&5
43993 echo $ECHO_N "checking for NDBM library... $ECHO_C" >&6
43994 if test "${ol_cv_lib_ndbm+set}" = set; then
43995 echo $ECHO_N "(cached) $ECHO_C" >&6
43998 echo "$as_me:$LINENO: checking for dbm_open" >&5
43999 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
44000 if test "${ac_cv_func_dbm_open+set}" = set; then
44001 echo $ECHO_N "(cached) $ECHO_C" >&6
44003 cat >conftest.$ac_ext <<_ACEOF
44006 cat confdefs.h >>conftest.$ac_ext
44007 cat >>conftest.$ac_ext <<_ACEOF
44008 /* end confdefs.h. */
44009 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
44010 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44011 #define dbm_open innocuous_dbm_open
44013 /* System header to define __stub macros and hopefully few prototypes,
44014 which can conflict with char dbm_open (); below.
44015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44016 <limits.h> exists even on freestanding compilers. */
44019 # include <limits.h>
44021 # include <assert.h>
44026 /* Override any gcc2 internal prototype to avoid an error. */
44031 /* We use char because int might match the return type of a gcc2
44032 builtin and then its argument prototype would still apply. */
44034 /* The GNU C library defines this for functions which it implements
44035 to always fail with ENOSYS. Some functions are actually named
44036 something starting with __ and the normal name is an alias. */
44037 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
44040 char (*f) () = dbm_open;
44049 return f != dbm_open;
44054 rm -f conftest.$ac_objext conftest$ac_exeext
44055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44056 (eval $ac_link) 2>conftest.er1
44058 grep -v '^ *+' conftest.er1 >conftest.err
44060 cat conftest.err >&5
44061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44062 (exit $ac_status); } &&
44063 { ac_try='test -z "$ac_c_werror_flag"
44064 || test ! -s conftest.err'
44065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44066 (eval $ac_try) 2>&5
44068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44069 (exit $ac_status); }; } &&
44070 { ac_try='test -s conftest$ac_exeext'
44071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44072 (eval $ac_try) 2>&5
44074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44075 (exit $ac_status); }; }; then
44076 ac_cv_func_dbm_open=yes
44078 echo "$as_me: failed program was:" >&5
44079 sed 's/^/| /' conftest.$ac_ext >&5
44081 ac_cv_func_dbm_open=no
44083 rm -f conftest.err conftest.$ac_objext \
44084 conftest$ac_exeext conftest.$ac_ext
44086 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
44087 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
44088 if test $ac_cv_func_dbm_open = yes; then
44092 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
44093 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
44094 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
44095 echo $ECHO_N "(cached) $ECHO_C" >&6
44097 ac_check_lib_save_LIBS=$LIBS
44098 LIBS="-lndbm $LIBS"
44099 cat >conftest.$ac_ext <<_ACEOF
44102 cat confdefs.h >>conftest.$ac_ext
44103 cat >>conftest.$ac_ext <<_ACEOF
44104 /* end confdefs.h. */
44106 /* Override any gcc2 internal prototype to avoid an error. */
44110 /* We use char because int might match the return type of a gcc2
44111 builtin and then its argument prototype would still apply. */
44121 rm -f conftest.$ac_objext conftest$ac_exeext
44122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44123 (eval $ac_link) 2>conftest.er1
44125 grep -v '^ *+' conftest.er1 >conftest.err
44127 cat conftest.err >&5
44128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44129 (exit $ac_status); } &&
44130 { ac_try='test -z "$ac_c_werror_flag"
44131 || test ! -s conftest.err'
44132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44133 (eval $ac_try) 2>&5
44135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44136 (exit $ac_status); }; } &&
44137 { ac_try='test -s conftest$ac_exeext'
44138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44139 (eval $ac_try) 2>&5
44141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44142 (exit $ac_status); }; }; then
44143 ac_cv_lib_ndbm_dbm_open=yes
44145 echo "$as_me: failed program was:" >&5
44146 sed 's/^/| /' conftest.$ac_ext >&5
44148 ac_cv_lib_ndbm_dbm_open=no
44150 rm -f conftest.err conftest.$ac_objext \
44151 conftest$ac_exeext conftest.$ac_ext
44152 LIBS=$ac_check_lib_save_LIBS
44154 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
44155 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
44156 if test $ac_cv_lib_ndbm_dbm_open = yes; then
44157 ol_cv_lib_ndbm=-lndbm
44160 echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
44161 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
44162 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
44163 echo $ECHO_N "(cached) $ECHO_C" >&6
44165 ac_check_lib_save_LIBS=$LIBS
44167 cat >conftest.$ac_ext <<_ACEOF
44170 cat confdefs.h >>conftest.$ac_ext
44171 cat >>conftest.$ac_ext <<_ACEOF
44172 /* end confdefs.h. */
44174 /* Override any gcc2 internal prototype to avoid an error. */
44178 /* We use char because int might match the return type of a gcc2
44179 builtin and then its argument prototype would still apply. */
44189 rm -f conftest.$ac_objext conftest$ac_exeext
44190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44191 (eval $ac_link) 2>conftest.er1
44193 grep -v '^ *+' conftest.er1 >conftest.err
44195 cat conftest.err >&5
44196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44197 (exit $ac_status); } &&
44198 { ac_try='test -z "$ac_c_werror_flag"
44199 || test ! -s conftest.err'
44200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44201 (eval $ac_try) 2>&5
44203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44204 (exit $ac_status); }; } &&
44205 { ac_try='test -s conftest$ac_exeext'
44206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44207 (eval $ac_try) 2>&5
44209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44210 (exit $ac_status); }; }; then
44211 ac_cv_lib_dbm_dbm_open=yes
44213 echo "$as_me: failed program was:" >&5
44214 sed 's/^/| /' conftest.$ac_ext >&5
44216 ac_cv_lib_dbm_dbm_open=no
44218 rm -f conftest.err conftest.$ac_objext \
44219 conftest$ac_exeext conftest.$ac_ext
44220 LIBS=$ac_check_lib_save_LIBS
44222 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
44223 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
44224 if test $ac_cv_lib_dbm_dbm_open = yes; then
44225 ol_cv_lib_ndbm=-ldbm
44238 echo "$as_me:$LINENO: result: $ol_cv_lib_ndbm" >&5
44239 echo "${ECHO_T}$ol_cv_lib_ndbm" >&6
44243 for ac_header in ndbm.h
44245 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44247 echo "$as_me:$LINENO: checking for $ac_header" >&5
44248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44250 echo $ECHO_N "(cached) $ECHO_C" >&6
44252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44253 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44255 # Is the header compilable?
44256 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44257 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44258 cat >conftest.$ac_ext <<_ACEOF
44261 cat confdefs.h >>conftest.$ac_ext
44262 cat >>conftest.$ac_ext <<_ACEOF
44263 /* end confdefs.h. */
44264 $ac_includes_default
44265 #include <$ac_header>
44267 rm -f conftest.$ac_objext
44268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44269 (eval $ac_compile) 2>conftest.er1
44271 grep -v '^ *+' conftest.er1 >conftest.err
44273 cat conftest.err >&5
44274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44275 (exit $ac_status); } &&
44276 { ac_try='test -z "$ac_c_werror_flag"
44277 || test ! -s conftest.err'
44278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44279 (eval $ac_try) 2>&5
44281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44282 (exit $ac_status); }; } &&
44283 { ac_try='test -s conftest.$ac_objext'
44284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44285 (eval $ac_try) 2>&5
44287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44288 (exit $ac_status); }; }; then
44289 ac_header_compiler=yes
44291 echo "$as_me: failed program was:" >&5
44292 sed 's/^/| /' conftest.$ac_ext >&5
44294 ac_header_compiler=no
44296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44297 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44298 echo "${ECHO_T}$ac_header_compiler" >&6
44300 # Is the header present?
44301 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44302 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44303 cat >conftest.$ac_ext <<_ACEOF
44306 cat confdefs.h >>conftest.$ac_ext
44307 cat >>conftest.$ac_ext <<_ACEOF
44308 /* end confdefs.h. */
44309 #include <$ac_header>
44311 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44312 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44314 grep -v '^ *+' conftest.er1 >conftest.err
44316 cat conftest.err >&5
44317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44318 (exit $ac_status); } >/dev/null; then
44319 if test -s conftest.err; then
44320 ac_cpp_err=$ac_c_preproc_warn_flag
44321 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44328 if test -z "$ac_cpp_err"; then
44329 ac_header_preproc=yes
44331 echo "$as_me: failed program was:" >&5
44332 sed 's/^/| /' conftest.$ac_ext >&5
44334 ac_header_preproc=no
44336 rm -f conftest.err conftest.$ac_ext
44337 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44338 echo "${ECHO_T}$ac_header_preproc" >&6
44340 # So? What about this header?
44341 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44343 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44344 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44346 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44347 ac_header_preproc=yes
44350 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44351 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44352 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44353 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44354 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44355 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44356 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44357 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44359 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44360 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44361 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44364 ## ------------------------------------------ ##
44365 ## Report this to the AC_PACKAGE_NAME lists. ##
44366 ## ------------------------------------------ ##
44369 sed "s/^/$as_me: WARNING: /" >&2
44372 echo "$as_me:$LINENO: checking for $ac_header" >&5
44373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44375 echo $ECHO_N "(cached) $ECHO_C" >&6
44377 eval "$as_ac_Header=\$ac_header_preproc"
44379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44380 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44383 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44384 cat >>confdefs.h <<_ACEOF
44385 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44392 echo "$as_me:$LINENO: checking for db" >&5
44393 echo $ECHO_N "checking for db... $ECHO_C" >&6
44394 if test "${ol_cv_ndbm+set}" = set; then
44395 echo $ECHO_N "(cached) $ECHO_C" >&6
44398 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
44405 echo "$as_me:$LINENO: result: $ol_cv_ndbm" >&5
44406 echo "${ECHO_T}$ol_cv_ndbm" >&6
44407 if test $ol_cv_ndbm = yes ; then
44409 cat >>confdefs.h <<\_ACEOF
44410 #define HAVE_NDBM 1
44416 if test $ol_cv_ndbm = yes ; then
44418 ol_with_ldbm_api=ndbm
44420 if test $ol_cv_lib_ndbm != yes ; then
44421 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
44426 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
44427 { { echo "$as_me:$LINENO: error: could not find suitable LDBM backend" >&5
44428 echo "$as_me: error: could not find suitable LDBM backend" >&2;}
44429 { (exit 1); exit 1; }; }
44432 if test $ol_enable_bdb = yes -o \
44433 $ol_enable_hdb = yes -o \
44434 $ol_enable_ldbm = yes ; then
44435 SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
44439 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
44440 BUILD_LIBS_DYNAMIC=shared
44442 cat >>confdefs.h <<\_ACEOF
44443 #define LDAP_LIBS_DYNAMIC 1
44448 BUILD_LIBS_DYNAMIC=static
44452 if test $ol_enable_wrappers != no ; then
44454 for ac_header in tcpd.h
44456 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44457 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44458 echo "$as_me:$LINENO: checking for $ac_header" >&5
44459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44461 echo $ECHO_N "(cached) $ECHO_C" >&6
44463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44464 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44466 # Is the header compilable?
44467 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44468 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44469 cat >conftest.$ac_ext <<_ACEOF
44472 cat confdefs.h >>conftest.$ac_ext
44473 cat >>conftest.$ac_ext <<_ACEOF
44474 /* end confdefs.h. */
44475 $ac_includes_default
44476 #include <$ac_header>
44478 rm -f conftest.$ac_objext
44479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44480 (eval $ac_compile) 2>conftest.er1
44482 grep -v '^ *+' conftest.er1 >conftest.err
44484 cat conftest.err >&5
44485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44486 (exit $ac_status); } &&
44487 { ac_try='test -z "$ac_c_werror_flag"
44488 || test ! -s conftest.err'
44489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44490 (eval $ac_try) 2>&5
44492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44493 (exit $ac_status); }; } &&
44494 { ac_try='test -s conftest.$ac_objext'
44495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44496 (eval $ac_try) 2>&5
44498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44499 (exit $ac_status); }; }; then
44500 ac_header_compiler=yes
44502 echo "$as_me: failed program was:" >&5
44503 sed 's/^/| /' conftest.$ac_ext >&5
44505 ac_header_compiler=no
44507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44508 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44509 echo "${ECHO_T}$ac_header_compiler" >&6
44511 # Is the header present?
44512 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44513 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44514 cat >conftest.$ac_ext <<_ACEOF
44517 cat confdefs.h >>conftest.$ac_ext
44518 cat >>conftest.$ac_ext <<_ACEOF
44519 /* end confdefs.h. */
44520 #include <$ac_header>
44522 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44523 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44525 grep -v '^ *+' conftest.er1 >conftest.err
44527 cat conftest.err >&5
44528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44529 (exit $ac_status); } >/dev/null; then
44530 if test -s conftest.err; then
44531 ac_cpp_err=$ac_c_preproc_warn_flag
44532 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44539 if test -z "$ac_cpp_err"; then
44540 ac_header_preproc=yes
44542 echo "$as_me: failed program was:" >&5
44543 sed 's/^/| /' conftest.$ac_ext >&5
44545 ac_header_preproc=no
44547 rm -f conftest.err conftest.$ac_ext
44548 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44549 echo "${ECHO_T}$ac_header_preproc" >&6
44551 # So? What about this header?
44552 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44554 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44555 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44556 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44557 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44558 ac_header_preproc=yes
44561 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44562 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44563 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44564 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44565 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44566 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44567 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44568 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44570 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44571 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44572 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44575 ## ------------------------------------------ ##
44576 ## Report this to the AC_PACKAGE_NAME lists. ##
44577 ## ------------------------------------------ ##
44580 sed "s/^/$as_me: WARNING: /" >&2
44583 echo "$as_me:$LINENO: checking for $ac_header" >&5
44584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44586 echo $ECHO_N "(cached) $ECHO_C" >&6
44588 eval "$as_ac_Header=\$ac_header_preproc"
44590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44591 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44594 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44595 cat >>confdefs.h <<_ACEOF
44596 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44599 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
44600 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
44602 LIBS="$LIBS -lwrap"
44603 cat >conftest.$ac_ext <<_ACEOF
44606 cat confdefs.h >>conftest.$ac_ext
44607 cat >>conftest.$ac_ext <<_ACEOF
44608 /* end confdefs.h. */
44611 int allow_severity = 0;
44612 int deny_severity = 0;
44614 struct request_info *req;
44626 rm -f conftest.$ac_objext conftest$ac_exeext
44627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44628 (eval $ac_link) 2>conftest.er1
44630 grep -v '^ *+' conftest.er1 >conftest.err
44632 cat conftest.err >&5
44633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44634 (exit $ac_status); } &&
44635 { ac_try='test -z "$ac_c_werror_flag"
44636 || test ! -s conftest.err'
44637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44638 (eval $ac_try) 2>&5
44640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44641 (exit $ac_status); }; } &&
44642 { ac_try='test -s conftest$ac_exeext'
44643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44644 (eval $ac_try) 2>&5
44646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44647 (exit $ac_status); }; }; then
44648 echo "$as_me:$LINENO: result: -lwrap" >&5
44649 echo "${ECHO_T}-lwrap" >&6
44653 echo "$as_me: failed program was:" >&5
44654 sed 's/^/| /' conftest.$ac_ext >&5
44658 cat >conftest.$ac_ext <<_ACEOF
44661 cat confdefs.h >>conftest.$ac_ext
44662 cat >>conftest.$ac_ext <<_ACEOF
44663 /* end confdefs.h. */
44666 int allow_severity = 0;
44667 int deny_severity = 0;
44669 struct request_info *req;
44681 rm -f conftest.$ac_objext conftest$ac_exeext
44682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44683 (eval $ac_link) 2>conftest.er1
44685 grep -v '^ *+' conftest.er1 >conftest.err
44687 cat conftest.err >&5
44688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44689 (exit $ac_status); } &&
44690 { ac_try='test -z "$ac_c_werror_flag"
44691 || test ! -s conftest.err'
44692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44693 (eval $ac_try) 2>&5
44695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44696 (exit $ac_status); }; } &&
44697 { ac_try='test -s conftest$ac_exeext'
44698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44699 (eval $ac_try) 2>&5
44701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44702 (exit $ac_status); }; }; then
44703 echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
44704 echo "${ECHO_T}-lwrap -lnsl" >&6
44706 LIBS="$save_LIBS -lnsl"
44708 echo "$as_me: failed program was:" >&5
44709 sed 's/^/| /' conftest.$ac_ext >&5
44712 echo "$as_me:$LINENO: result: no" >&5
44713 echo "${ECHO_T}no" >&6
44717 rm -f conftest.err conftest.$ac_objext \
44718 conftest$ac_exeext conftest.$ac_ext
44720 rm -f conftest.err conftest.$ac_objext \
44721 conftest$ac_exeext conftest.$ac_ext
44729 if test $have_wrappers = yes ; then
44731 cat >>confdefs.h <<\_ACEOF
44732 #define HAVE_TCPD 1
44736 elif test $ol_enable_wrappers = yes ; then
44737 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
44738 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
44739 { (exit 1); exit 1; }; }
44741 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
44742 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
44747 if test $ol_enable_syslog != no ; then
44748 echo "$as_me:$LINENO: checking for openlog" >&5
44749 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
44750 if test "${ac_cv_func_openlog+set}" = set; then
44751 echo $ECHO_N "(cached) $ECHO_C" >&6
44753 cat >conftest.$ac_ext <<_ACEOF
44756 cat confdefs.h >>conftest.$ac_ext
44757 cat >>conftest.$ac_ext <<_ACEOF
44758 /* end confdefs.h. */
44759 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
44760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44761 #define openlog innocuous_openlog
44763 /* System header to define __stub macros and hopefully few prototypes,
44764 which can conflict with char openlog (); below.
44765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44766 <limits.h> exists even on freestanding compilers. */
44769 # include <limits.h>
44771 # include <assert.h>
44776 /* Override any gcc2 internal prototype to avoid an error. */
44781 /* We use char because int might match the return type of a gcc2
44782 builtin and then its argument prototype would still apply. */
44784 /* The GNU C library defines this for functions which it implements
44785 to always fail with ENOSYS. Some functions are actually named
44786 something starting with __ and the normal name is an alias. */
44787 #if defined (__stub_openlog) || defined (__stub___openlog)
44790 char (*f) () = openlog;
44799 return f != openlog;
44804 rm -f conftest.$ac_objext conftest$ac_exeext
44805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44806 (eval $ac_link) 2>conftest.er1
44808 grep -v '^ *+' conftest.er1 >conftest.err
44810 cat conftest.err >&5
44811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44812 (exit $ac_status); } &&
44813 { ac_try='test -z "$ac_c_werror_flag"
44814 || test ! -s conftest.err'
44815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44816 (eval $ac_try) 2>&5
44818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44819 (exit $ac_status); }; } &&
44820 { ac_try='test -s conftest$ac_exeext'
44821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44822 (eval $ac_try) 2>&5
44824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44825 (exit $ac_status); }; }; then
44826 ac_cv_func_openlog=yes
44828 echo "$as_me: failed program was:" >&5
44829 sed 's/^/| /' conftest.$ac_ext >&5
44831 ac_cv_func_openlog=no
44833 rm -f conftest.err conftest.$ac_objext \
44834 conftest$ac_exeext conftest.$ac_ext
44836 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
44837 echo "${ECHO_T}$ac_cv_func_openlog" >&6
44839 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
44840 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
44841 echo "$as_me: error: could not find syslog" >&2;}
44842 { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
44844 ol_enable_syslog=$ac_cv_func_openlog
44848 if test $ol_enable_sql != no ; then
44851 for ac_header in sql.h sqlext.h
44853 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44855 echo "$as_me:$LINENO: checking for $ac_header" >&5
44856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44858 echo $ECHO_N "(cached) $ECHO_C" >&6
44860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44861 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44863 # Is the header compilable?
44864 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44865 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44866 cat >conftest.$ac_ext <<_ACEOF
44869 cat confdefs.h >>conftest.$ac_ext
44870 cat >>conftest.$ac_ext <<_ACEOF
44871 /* end confdefs.h. */
44872 $ac_includes_default
44873 #include <$ac_header>
44875 rm -f conftest.$ac_objext
44876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44877 (eval $ac_compile) 2>conftest.er1
44879 grep -v '^ *+' conftest.er1 >conftest.err
44881 cat conftest.err >&5
44882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44883 (exit $ac_status); } &&
44884 { ac_try='test -z "$ac_c_werror_flag"
44885 || test ! -s conftest.err'
44886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44887 (eval $ac_try) 2>&5
44889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44890 (exit $ac_status); }; } &&
44891 { ac_try='test -s conftest.$ac_objext'
44892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44893 (eval $ac_try) 2>&5
44895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44896 (exit $ac_status); }; }; then
44897 ac_header_compiler=yes
44899 echo "$as_me: failed program was:" >&5
44900 sed 's/^/| /' conftest.$ac_ext >&5
44902 ac_header_compiler=no
44904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44905 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44906 echo "${ECHO_T}$ac_header_compiler" >&6
44908 # Is the header present?
44909 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44910 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44911 cat >conftest.$ac_ext <<_ACEOF
44914 cat confdefs.h >>conftest.$ac_ext
44915 cat >>conftest.$ac_ext <<_ACEOF
44916 /* end confdefs.h. */
44917 #include <$ac_header>
44919 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44920 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44922 grep -v '^ *+' conftest.er1 >conftest.err
44924 cat conftest.err >&5
44925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44926 (exit $ac_status); } >/dev/null; then
44927 if test -s conftest.err; then
44928 ac_cpp_err=$ac_c_preproc_warn_flag
44929 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44936 if test -z "$ac_cpp_err"; then
44937 ac_header_preproc=yes
44939 echo "$as_me: failed program was:" >&5
44940 sed 's/^/| /' conftest.$ac_ext >&5
44942 ac_header_preproc=no
44944 rm -f conftest.err conftest.$ac_ext
44945 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44946 echo "${ECHO_T}$ac_header_preproc" >&6
44948 # So? What about this header?
44949 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44951 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44952 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44954 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44955 ac_header_preproc=yes
44958 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44959 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44960 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44961 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44962 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44963 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44964 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44965 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44967 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44968 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44969 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44972 ## ------------------------------------------ ##
44973 ## Report this to the AC_PACKAGE_NAME lists. ##
44974 ## ------------------------------------------ ##
44977 sed "s/^/$as_me: WARNING: /" >&2
44980 echo "$as_me:$LINENO: checking for $ac_header" >&5
44981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44983 echo $ECHO_N "(cached) $ECHO_C" >&6
44985 eval "$as_ac_Header=\$ac_header_preproc"
44987 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44988 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44991 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44992 cat >>confdefs.h <<_ACEOF
44993 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44998 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
44999 echo "$as_me: error: could not locate SQL headers" >&2;}
45000 { (exit 1); exit 1; }; }
45008 LIBS="$LTHREAD_LIBS"
45010 echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
45011 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
45012 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
45013 echo $ECHO_N "(cached) $ECHO_C" >&6
45015 ac_check_lib_save_LIBS=$LIBS
45016 LIBS="-liodbc $LIBS"
45017 cat >conftest.$ac_ext <<_ACEOF
45020 cat confdefs.h >>conftest.$ac_ext
45021 cat >>conftest.$ac_ext <<_ACEOF
45022 /* end confdefs.h. */
45024 /* Override any gcc2 internal prototype to avoid an error. */
45028 /* We use char because int might match the return type of a gcc2
45029 builtin and then its argument prototype would still apply. */
45030 char SQLDriverConnect ();
45034 SQLDriverConnect ();
45039 rm -f conftest.$ac_objext conftest$ac_exeext
45040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45041 (eval $ac_link) 2>conftest.er1
45043 grep -v '^ *+' conftest.er1 >conftest.err
45045 cat conftest.err >&5
45046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45047 (exit $ac_status); } &&
45048 { ac_try='test -z "$ac_c_werror_flag"
45049 || test ! -s conftest.err'
45050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45051 (eval $ac_try) 2>&5
45053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45054 (exit $ac_status); }; } &&
45055 { ac_try='test -s conftest$ac_exeext'
45056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45057 (eval $ac_try) 2>&5
45059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45060 (exit $ac_status); }; }; then
45061 ac_cv_lib_iodbc_SQLDriverConnect=yes
45063 echo "$as_me: failed program was:" >&5
45064 sed 's/^/| /' conftest.$ac_ext >&5
45066 ac_cv_lib_iodbc_SQLDriverConnect=no
45068 rm -f conftest.err conftest.$ac_objext \
45069 conftest$ac_exeext conftest.$ac_ext
45070 LIBS=$ac_check_lib_save_LIBS
45072 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
45073 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
45074 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
45080 if test $have_iodbc = yes ; then
45081 ol_link_sql="-liodbc"
45083 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
45084 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
45085 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
45086 echo $ECHO_N "(cached) $ECHO_C" >&6
45088 ac_check_lib_save_LIBS=$LIBS
45089 LIBS="-lodbc $LIBS"
45090 cat >conftest.$ac_ext <<_ACEOF
45093 cat confdefs.h >>conftest.$ac_ext
45094 cat >>conftest.$ac_ext <<_ACEOF
45095 /* end confdefs.h. */
45097 /* Override any gcc2 internal prototype to avoid an error. */
45101 /* We use char because int might match the return type of a gcc2
45102 builtin and then its argument prototype would still apply. */
45103 char SQLDriverConnect ();
45107 SQLDriverConnect ();
45112 rm -f conftest.$ac_objext conftest$ac_exeext
45113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45114 (eval $ac_link) 2>conftest.er1
45116 grep -v '^ *+' conftest.er1 >conftest.err
45118 cat conftest.err >&5
45119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45120 (exit $ac_status); } &&
45121 { ac_try='test -z "$ac_c_werror_flag"
45122 || test ! -s conftest.err'
45123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45124 (eval $ac_try) 2>&5
45126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45127 (exit $ac_status); }; } &&
45128 { ac_try='test -s conftest$ac_exeext'
45129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45130 (eval $ac_try) 2>&5
45132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45133 (exit $ac_status); }; }; then
45134 ac_cv_lib_odbc_SQLDriverConnect=yes
45136 echo "$as_me: failed program was:" >&5
45137 sed 's/^/| /' conftest.$ac_ext >&5
45139 ac_cv_lib_odbc_SQLDriverConnect=no
45141 rm -f conftest.err conftest.$ac_objext \
45142 conftest$ac_exeext conftest.$ac_ext
45143 LIBS=$ac_check_lib_save_LIBS
45145 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
45146 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
45147 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
45153 if test $have_odbc = yes ; then
45154 ol_link_sql="-lodbc"
45160 if test $ol_link_sql != no ; then
45161 SLAPD_SQL_LIBS="$ol_link_sql"
45163 elif test $ol_enable_sql != auto ; then
45164 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
45165 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
45166 { (exit 1); exit 1; }; }
45173 if test $ol_with_cyrus_sasl != no ; then
45176 for ac_header in sasl/sasl.h sasl.h
45178 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45180 echo "$as_me:$LINENO: checking for $ac_header" >&5
45181 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45182 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45183 echo $ECHO_N "(cached) $ECHO_C" >&6
45185 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45186 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45188 # Is the header compilable?
45189 echo "$as_me:$LINENO: checking $ac_header usability" >&5
45190 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
45191 cat >conftest.$ac_ext <<_ACEOF
45194 cat confdefs.h >>conftest.$ac_ext
45195 cat >>conftest.$ac_ext <<_ACEOF
45196 /* end confdefs.h. */
45197 $ac_includes_default
45198 #include <$ac_header>
45200 rm -f conftest.$ac_objext
45201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45202 (eval $ac_compile) 2>conftest.er1
45204 grep -v '^ *+' conftest.er1 >conftest.err
45206 cat conftest.err >&5
45207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45208 (exit $ac_status); } &&
45209 { ac_try='test -z "$ac_c_werror_flag"
45210 || test ! -s conftest.err'
45211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45212 (eval $ac_try) 2>&5
45214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45215 (exit $ac_status); }; } &&
45216 { ac_try='test -s conftest.$ac_objext'
45217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45218 (eval $ac_try) 2>&5
45220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45221 (exit $ac_status); }; }; then
45222 ac_header_compiler=yes
45224 echo "$as_me: failed program was:" >&5
45225 sed 's/^/| /' conftest.$ac_ext >&5
45227 ac_header_compiler=no
45229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45230 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45231 echo "${ECHO_T}$ac_header_compiler" >&6
45233 # Is the header present?
45234 echo "$as_me:$LINENO: checking $ac_header presence" >&5
45235 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45236 cat >conftest.$ac_ext <<_ACEOF
45239 cat confdefs.h >>conftest.$ac_ext
45240 cat >>conftest.$ac_ext <<_ACEOF
45241 /* end confdefs.h. */
45242 #include <$ac_header>
45244 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45245 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45247 grep -v '^ *+' conftest.er1 >conftest.err
45249 cat conftest.err >&5
45250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45251 (exit $ac_status); } >/dev/null; then
45252 if test -s conftest.err; then
45253 ac_cpp_err=$ac_c_preproc_warn_flag
45254 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
45261 if test -z "$ac_cpp_err"; then
45262 ac_header_preproc=yes
45264 echo "$as_me: failed program was:" >&5
45265 sed 's/^/| /' conftest.$ac_ext >&5
45267 ac_header_preproc=no
45269 rm -f conftest.err conftest.$ac_ext
45270 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45271 echo "${ECHO_T}$ac_header_preproc" >&6
45273 # So? What about this header?
45274 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45276 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45277 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45279 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45280 ac_header_preproc=yes
45283 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45284 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45285 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
45286 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
45287 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45288 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45289 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
45290 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
45291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45292 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45293 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45294 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45297 ## ------------------------------------------ ##
45298 ## Report this to the AC_PACKAGE_NAME lists. ##
45299 ## ------------------------------------------ ##
45302 sed "s/^/$as_me: WARNING: /" >&2
45305 echo "$as_me:$LINENO: checking for $ac_header" >&5
45306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45308 echo $ECHO_N "(cached) $ECHO_C" >&6
45310 eval "$as_ac_Header=\$ac_header_preproc"
45312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45313 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45316 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45317 cat >>confdefs.h <<_ACEOF
45318 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45326 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
45327 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
45328 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
45329 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
45330 echo $ECHO_N "(cached) $ECHO_C" >&6
45332 ac_check_lib_save_LIBS=$LIBS
45333 LIBS="-lsasl2 $LIBS"
45334 cat >conftest.$ac_ext <<_ACEOF
45337 cat confdefs.h >>conftest.$ac_ext
45338 cat >>conftest.$ac_ext <<_ACEOF
45339 /* end confdefs.h. */
45341 /* Override any gcc2 internal prototype to avoid an error. */
45345 /* We use char because int might match the return type of a gcc2
45346 builtin and then its argument prototype would still apply. */
45347 char sasl_client_init ();
45351 sasl_client_init ();
45356 rm -f conftest.$ac_objext conftest$ac_exeext
45357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45358 (eval $ac_link) 2>conftest.er1
45360 grep -v '^ *+' conftest.er1 >conftest.err
45362 cat conftest.err >&5
45363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45364 (exit $ac_status); } &&
45365 { ac_try='test -z "$ac_c_werror_flag"
45366 || test ! -s conftest.err'
45367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45368 (eval $ac_try) 2>&5
45370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45371 (exit $ac_status); }; } &&
45372 { ac_try='test -s conftest$ac_exeext'
45373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45374 (eval $ac_try) 2>&5
45376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45377 (exit $ac_status); }; }; then
45378 ac_cv_lib_sasl2_sasl_client_init=yes
45380 echo "$as_me: failed program was:" >&5
45381 sed 's/^/| /' conftest.$ac_ext >&5
45383 ac_cv_lib_sasl2_sasl_client_init=no
45385 rm -f conftest.err conftest.$ac_objext \
45386 conftest$ac_exeext conftest.$ac_ext
45387 LIBS=$ac_check_lib_save_LIBS
45389 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
45390 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
45391 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
45392 ol_link_sasl="-lsasl2"
45394 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
45395 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
45396 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
45397 echo $ECHO_N "(cached) $ECHO_C" >&6
45399 ac_check_lib_save_LIBS=$LIBS
45400 LIBS="-lsasl $LIBS"
45401 cat >conftest.$ac_ext <<_ACEOF
45404 cat confdefs.h >>conftest.$ac_ext
45405 cat >>conftest.$ac_ext <<_ACEOF
45406 /* end confdefs.h. */
45408 /* Override any gcc2 internal prototype to avoid an error. */
45412 /* We use char because int might match the return type of a gcc2
45413 builtin and then its argument prototype would still apply. */
45414 char sasl_client_init ();
45418 sasl_client_init ();
45423 rm -f conftest.$ac_objext conftest$ac_exeext
45424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45425 (eval $ac_link) 2>conftest.er1
45427 grep -v '^ *+' conftest.er1 >conftest.err
45429 cat conftest.err >&5
45430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45431 (exit $ac_status); } &&
45432 { ac_try='test -z "$ac_c_werror_flag"
45433 || test ! -s conftest.err'
45434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45435 (eval $ac_try) 2>&5
45437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45438 (exit $ac_status); }; } &&
45439 { ac_try='test -s conftest$ac_exeext'
45440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45441 (eval $ac_try) 2>&5
45443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45444 (exit $ac_status); }; }; then
45445 ac_cv_lib_sasl_sasl_client_init=yes
45447 echo "$as_me: failed program was:" >&5
45448 sed 's/^/| /' conftest.$ac_ext >&5
45450 ac_cv_lib_sasl_sasl_client_init=no
45452 rm -f conftest.err conftest.$ac_objext \
45453 conftest$ac_exeext conftest.$ac_ext
45454 LIBS=$ac_check_lib_save_LIBS
45456 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
45457 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
45458 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
45459 ol_link_sasl="-lsasl"
45466 if test $ol_link_sasl = no ; then
45467 if test $ol_with_cyrus_sasl != auto ; then
45468 { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
45469 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
45470 { (exit 1); exit 1; }; }
45472 { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
45473 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
45474 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
45475 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
45476 if test $ol_link_tls = no ; then
45477 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
45478 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
45482 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
45483 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
45484 if test "${ol_cv_sasl_compat+set}" = set; then
45485 echo $ECHO_N "(cached) $ECHO_C" >&6
45488 cat >conftest.$ac_ext <<_ACEOF
45491 cat confdefs.h >>conftest.$ac_ext
45492 cat >>conftest.$ac_ext <<_ACEOF
45493 /* end confdefs.h. */
45495 #ifdef HAVE_SASL_SASL_H
45496 #include <sasl/sasl.h>
45501 /* Require 2.1.15+ */
45502 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
45503 char *__sasl_compat = "2.2+ or better okay (we guess)";
45504 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
45505 && SASL_VERSION_STEP >=15
45506 char *__sasl_compat = "2.1.15+ or better okay";
45510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45511 $EGREP "__sasl_compat" >/dev/null 2>&1; then
45512 ol_cv_sasl_compat=yes
45514 ol_cv_sasl_compat=no
45519 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
45520 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
45522 if test $ol_cv_sasl_compat = no ; then
45524 { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
45525 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
45526 { (exit 1); exit 1; }; }
45530 cat >>confdefs.h <<\_ACEOF
45531 #define HAVE_CYRUS_SASL 1
45534 SASL_LIBS="$ol_link_sasl"
45535 if test $ol_enable_spasswd != no ; then
45536 ol_link_spasswd=yes
45539 ac_save_LIBS="$LIBS"
45540 LIBS="$LIBS $ol_link_sasl"
45541 echo "$as_me:$LINENO: checking for sasl_version" >&5
45542 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
45543 if test "${ac_cv_func_sasl_version+set}" = set; then
45544 echo $ECHO_N "(cached) $ECHO_C" >&6
45546 cat >conftest.$ac_ext <<_ACEOF
45549 cat confdefs.h >>conftest.$ac_ext
45550 cat >>conftest.$ac_ext <<_ACEOF
45551 /* end confdefs.h. */
45552 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
45553 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45554 #define sasl_version innocuous_sasl_version
45556 /* System header to define __stub macros and hopefully few prototypes,
45557 which can conflict with char sasl_version (); below.
45558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45559 <limits.h> exists even on freestanding compilers. */
45562 # include <limits.h>
45564 # include <assert.h>
45567 #undef sasl_version
45569 /* Override any gcc2 internal prototype to avoid an error. */
45574 /* We use char because int might match the return type of a gcc2
45575 builtin and then its argument prototype would still apply. */
45576 char sasl_version ();
45577 /* The GNU C library defines this for functions which it implements
45578 to always fail with ENOSYS. Some functions are actually named
45579 something starting with __ and the normal name is an alias. */
45580 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
45583 char (*f) () = sasl_version;
45592 return f != sasl_version;
45597 rm -f conftest.$ac_objext conftest$ac_exeext
45598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45599 (eval $ac_link) 2>conftest.er1
45601 grep -v '^ *+' conftest.er1 >conftest.err
45603 cat conftest.err >&5
45604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45605 (exit $ac_status); } &&
45606 { ac_try='test -z "$ac_c_werror_flag"
45607 || test ! -s conftest.err'
45608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45609 (eval $ac_try) 2>&5
45611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45612 (exit $ac_status); }; } &&
45613 { ac_try='test -s conftest$ac_exeext'
45614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45615 (eval $ac_try) 2>&5
45617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45618 (exit $ac_status); }; }; then
45619 ac_cv_func_sasl_version=yes
45621 echo "$as_me: failed program was:" >&5
45622 sed 's/^/| /' conftest.$ac_ext >&5
45624 ac_cv_func_sasl_version=no
45626 rm -f conftest.err conftest.$ac_objext \
45627 conftest$ac_exeext conftest.$ac_ext
45629 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
45630 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
45631 if test $ac_cv_func_sasl_version = yes; then
45633 cat >>confdefs.h <<\_ACEOF
45634 #define HAVE_SASL_VERSION 1
45639 LIBS="$ac_save_LIBS"
45645 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
45646 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
45647 if test $ol_link_tls = no ; then
45648 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
45649 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
45653 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
45655 if test -r /dev/urandom ; then
45656 dev="/dev/urandom";
45657 elif test -r /idev/urandom ; then
45658 dev="/idev/urandom";
45659 elif test -r /dev/srandom ; then
45660 dev="/dev/srandom";
45661 elif test -r /dev/random ; then
45663 elif test -r /idev/random ; then
45664 dev="/idev/random";
45667 if test $dev != no ; then
45669 cat >>confdefs.h <<_ACEOF
45670 #define URANDOM_DEVICE "$dev"
45677 if test $ol_with_fetch != no ; then
45679 LIBS="-lfetch -lcom_err $LIBS"
45680 echo "$as_me:$LINENO: checking fetch(3) library" >&5
45681 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
45682 if test "${ol_cv_lib_fetch+set}" = set; then
45683 echo $ECHO_N "(cached) $ECHO_C" >&6
45686 cat >conftest.$ac_ext <<_ACEOF
45689 cat confdefs.h >>conftest.$ac_ext
45690 cat >>conftest.$ac_ext <<_ACEOF
45691 /* end confdefs.h. */
45693 #include <sys/param.h>
45699 struct url *u = fetchParseURL("file:///");
45704 rm -f conftest.$ac_objext conftest$ac_exeext
45705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45706 (eval $ac_link) 2>conftest.er1
45708 grep -v '^ *+' conftest.er1 >conftest.err
45710 cat conftest.err >&5
45711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45712 (exit $ac_status); } &&
45713 { ac_try='test -z "$ac_c_werror_flag"
45714 || test ! -s conftest.err'
45715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45716 (eval $ac_try) 2>&5
45718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45719 (exit $ac_status); }; } &&
45720 { ac_try='test -s conftest$ac_exeext'
45721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45722 (eval $ac_try) 2>&5
45724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45725 (exit $ac_status); }; }; then
45726 ol_cv_lib_fetch=yes
45728 echo "$as_me: failed program was:" >&5
45729 sed 's/^/| /' conftest.$ac_ext >&5
45733 rm -f conftest.err conftest.$ac_objext \
45734 conftest$ac_exeext conftest.$ac_ext
45736 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
45737 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
45739 if test $ol_cv_lib_fetch != no ; then
45740 ol_link_fetch="-lfetch -lcom_err"
45742 cat >>confdefs.h <<\_ACEOF
45743 #define HAVE_FETCH 1
45749 if test $ol_cv_lib_fetch != no ; then
45750 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
45751 ol_link_fetch=freebsd
45753 elif test $ol_with_fetch != auto ; then
45754 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
45755 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
45756 { (exit 1); exit 1; }; }
45760 if test $ol_enable_crypt != no ; then
45762 LIBS="$TLS_LIBS $LIBS"
45764 echo "$as_me:$LINENO: checking for crypt" >&5
45765 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
45766 if test "${ac_cv_func_crypt+set}" = set; then
45767 echo $ECHO_N "(cached) $ECHO_C" >&6
45769 cat >conftest.$ac_ext <<_ACEOF
45772 cat confdefs.h >>conftest.$ac_ext
45773 cat >>conftest.$ac_ext <<_ACEOF
45774 /* end confdefs.h. */
45775 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
45776 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45777 #define crypt innocuous_crypt
45779 /* System header to define __stub macros and hopefully few prototypes,
45780 which can conflict with char crypt (); below.
45781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45782 <limits.h> exists even on freestanding compilers. */
45785 # include <limits.h>
45787 # include <assert.h>
45792 /* Override any gcc2 internal prototype to avoid an error. */
45797 /* We use char because int might match the return type of a gcc2
45798 builtin and then its argument prototype would still apply. */
45800 /* The GNU C library defines this for functions which it implements
45801 to always fail with ENOSYS. Some functions are actually named
45802 something starting with __ and the normal name is an alias. */
45803 #if defined (__stub_crypt) || defined (__stub___crypt)
45806 char (*f) () = crypt;
45820 rm -f conftest.$ac_objext conftest$ac_exeext
45821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45822 (eval $ac_link) 2>conftest.er1
45824 grep -v '^ *+' conftest.er1 >conftest.err
45826 cat conftest.err >&5
45827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45828 (exit $ac_status); } &&
45829 { ac_try='test -z "$ac_c_werror_flag"
45830 || test ! -s conftest.err'
45831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45832 (eval $ac_try) 2>&5
45834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45835 (exit $ac_status); }; } &&
45836 { ac_try='test -s conftest$ac_exeext'
45837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45838 (eval $ac_try) 2>&5
45840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45841 (exit $ac_status); }; }; then
45842 ac_cv_func_crypt=yes
45844 echo "$as_me: failed program was:" >&5
45845 sed 's/^/| /' conftest.$ac_ext >&5
45847 ac_cv_func_crypt=no
45849 rm -f conftest.err conftest.$ac_objext \
45850 conftest$ac_exeext conftest.$ac_ext
45852 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
45853 echo "${ECHO_T}$ac_cv_func_crypt" >&6
45854 if test $ac_cv_func_crypt = yes; then
45859 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
45860 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
45861 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
45862 echo $ECHO_N "(cached) $ECHO_C" >&6
45864 ac_check_lib_save_LIBS=$LIBS
45865 LIBS="-lcrypt $LIBS"
45866 cat >conftest.$ac_ext <<_ACEOF
45869 cat confdefs.h >>conftest.$ac_ext
45870 cat >>conftest.$ac_ext <<_ACEOF
45871 /* end confdefs.h. */
45873 /* Override any gcc2 internal prototype to avoid an error. */
45877 /* We use char because int might match the return type of a gcc2
45878 builtin and then its argument prototype would still apply. */
45888 rm -f conftest.$ac_objext conftest$ac_exeext
45889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45890 (eval $ac_link) 2>conftest.er1
45892 grep -v '^ *+' conftest.er1 >conftest.err
45894 cat conftest.err >&5
45895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45896 (exit $ac_status); } &&
45897 { ac_try='test -z "$ac_c_werror_flag"
45898 || test ! -s conftest.err'
45899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45900 (eval $ac_try) 2>&5
45902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45903 (exit $ac_status); }; } &&
45904 { ac_try='test -s conftest$ac_exeext'
45905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45906 (eval $ac_try) 2>&5
45908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45909 (exit $ac_status); }; }; then
45910 ac_cv_lib_crypt_crypt=yes
45912 echo "$as_me: failed program was:" >&5
45913 sed 's/^/| /' conftest.$ac_ext >&5
45915 ac_cv_lib_crypt_crypt=no
45917 rm -f conftest.err conftest.$ac_objext \
45918 conftest$ac_exeext conftest.$ac_ext
45919 LIBS=$ac_check_lib_save_LIBS
45921 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
45922 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
45923 if test $ac_cv_lib_crypt_crypt = yes; then
45924 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
45935 if test $have_crypt = yes ; then
45937 cat >>confdefs.h <<\_ACEOF
45938 #define HAVE_CRYPT 1
45942 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
45943 echo "$as_me: WARNING: could not find crypt" >&2;}
45944 if test $ol_enable_crypt = yes ; then
45945 { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
45946 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
45947 { (exit 1); exit 1; }; }
45950 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
45951 echo "$as_me: WARNING: disabling crypt support" >&2;}
45956 if test $ol_enable_proctitle != no ; then
45957 echo "$as_me:$LINENO: checking for setproctitle" >&5
45958 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
45959 if test "${ac_cv_func_setproctitle+set}" = set; then
45960 echo $ECHO_N "(cached) $ECHO_C" >&6
45962 cat >conftest.$ac_ext <<_ACEOF
45965 cat confdefs.h >>conftest.$ac_ext
45966 cat >>conftest.$ac_ext <<_ACEOF
45967 /* end confdefs.h. */
45968 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
45969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45970 #define setproctitle innocuous_setproctitle
45972 /* System header to define __stub macros and hopefully few prototypes,
45973 which can conflict with char setproctitle (); below.
45974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45975 <limits.h> exists even on freestanding compilers. */
45978 # include <limits.h>
45980 # include <assert.h>
45983 #undef setproctitle
45985 /* Override any gcc2 internal prototype to avoid an error. */
45990 /* We use char because int might match the return type of a gcc2
45991 builtin and then its argument prototype would still apply. */
45992 char setproctitle ();
45993 /* The GNU C library defines this for functions which it implements
45994 to always fail with ENOSYS. Some functions are actually named
45995 something starting with __ and the normal name is an alias. */
45996 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
45999 char (*f) () = setproctitle;
46008 return f != setproctitle;
46013 rm -f conftest.$ac_objext conftest$ac_exeext
46014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46015 (eval $ac_link) 2>conftest.er1
46017 grep -v '^ *+' conftest.er1 >conftest.err
46019 cat conftest.err >&5
46020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46021 (exit $ac_status); } &&
46022 { ac_try='test -z "$ac_c_werror_flag"
46023 || test ! -s conftest.err'
46024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46025 (eval $ac_try) 2>&5
46027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46028 (exit $ac_status); }; } &&
46029 { ac_try='test -s conftest$ac_exeext'
46030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46031 (eval $ac_try) 2>&5
46033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46034 (exit $ac_status); }; }; then
46035 ac_cv_func_setproctitle=yes
46037 echo "$as_me: failed program was:" >&5
46038 sed 's/^/| /' conftest.$ac_ext >&5
46040 ac_cv_func_setproctitle=no
46042 rm -f conftest.err conftest.$ac_objext \
46043 conftest$ac_exeext conftest.$ac_ext
46045 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
46046 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
46047 if test $ac_cv_func_setproctitle = yes; then
46048 have_setproctitle=yes
46051 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
46052 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
46053 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
46054 echo $ECHO_N "(cached) $ECHO_C" >&6
46056 ac_check_lib_save_LIBS=$LIBS
46057 LIBS="-lutil $LIBS"
46058 cat >conftest.$ac_ext <<_ACEOF
46061 cat confdefs.h >>conftest.$ac_ext
46062 cat >>conftest.$ac_ext <<_ACEOF
46063 /* end confdefs.h. */
46065 /* Override any gcc2 internal prototype to avoid an error. */
46069 /* We use char because int might match the return type of a gcc2
46070 builtin and then its argument prototype would still apply. */
46071 char setproctitle ();
46080 rm -f conftest.$ac_objext conftest$ac_exeext
46081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46082 (eval $ac_link) 2>conftest.er1
46084 grep -v '^ *+' conftest.er1 >conftest.err
46086 cat conftest.err >&5
46087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46088 (exit $ac_status); } &&
46089 { ac_try='test -z "$ac_c_werror_flag"
46090 || test ! -s conftest.err'
46091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46092 (eval $ac_try) 2>&5
46094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46095 (exit $ac_status); }; } &&
46096 { ac_try='test -s conftest$ac_exeext'
46097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46098 (eval $ac_try) 2>&5
46100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46101 (exit $ac_status); }; }; then
46102 ac_cv_lib_util_setproctitle=yes
46104 echo "$as_me: failed program was:" >&5
46105 sed 's/^/| /' conftest.$ac_ext >&5
46107 ac_cv_lib_util_setproctitle=no
46109 rm -f conftest.err conftest.$ac_objext \
46110 conftest$ac_exeext conftest.$ac_ext
46111 LIBS=$ac_check_lib_save_LIBS
46113 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
46114 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
46115 if test $ac_cv_lib_util_setproctitle = yes; then
46116 have_setproctitle=yes
46117 LUTIL_LIBS="$LUTIL_LIBS -lutil"
46119 have_setproctitle=no
46121 "setproctitle.$ac_objext" | \
46122 *" setproctitle.$ac_objext" | \
46123 "setproctitle.$ac_objext "* | \
46124 *" setproctitle.$ac_objext "* ) ;;
46125 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
46128 LIBSRCS="$LIBSRCS setproctitle.c"
46134 if test $have_setproctitle = yes ; then
46136 cat >>confdefs.h <<\_ACEOF
46137 #define HAVE_SETPROCTITLE 1
46143 if test $ol_enable_slp != no ; then
46145 for ac_header in slp.h
46147 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46149 echo "$as_me:$LINENO: checking for $ac_header" >&5
46150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46151 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46152 echo $ECHO_N "(cached) $ECHO_C" >&6
46154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46155 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46157 # Is the header compilable?
46158 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46159 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46160 cat >conftest.$ac_ext <<_ACEOF
46163 cat confdefs.h >>conftest.$ac_ext
46164 cat >>conftest.$ac_ext <<_ACEOF
46165 /* end confdefs.h. */
46166 $ac_includes_default
46167 #include <$ac_header>
46169 rm -f conftest.$ac_objext
46170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46171 (eval $ac_compile) 2>conftest.er1
46173 grep -v '^ *+' conftest.er1 >conftest.err
46175 cat conftest.err >&5
46176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46177 (exit $ac_status); } &&
46178 { ac_try='test -z "$ac_c_werror_flag"
46179 || test ! -s conftest.err'
46180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46181 (eval $ac_try) 2>&5
46183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46184 (exit $ac_status); }; } &&
46185 { ac_try='test -s conftest.$ac_objext'
46186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46187 (eval $ac_try) 2>&5
46189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46190 (exit $ac_status); }; }; then
46191 ac_header_compiler=yes
46193 echo "$as_me: failed program was:" >&5
46194 sed 's/^/| /' conftest.$ac_ext >&5
46196 ac_header_compiler=no
46198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46199 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46200 echo "${ECHO_T}$ac_header_compiler" >&6
46202 # Is the header present?
46203 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46204 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46205 cat >conftest.$ac_ext <<_ACEOF
46208 cat confdefs.h >>conftest.$ac_ext
46209 cat >>conftest.$ac_ext <<_ACEOF
46210 /* end confdefs.h. */
46211 #include <$ac_header>
46213 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46214 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46216 grep -v '^ *+' conftest.er1 >conftest.err
46218 cat conftest.err >&5
46219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46220 (exit $ac_status); } >/dev/null; then
46221 if test -s conftest.err; then
46222 ac_cpp_err=$ac_c_preproc_warn_flag
46223 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46230 if test -z "$ac_cpp_err"; then
46231 ac_header_preproc=yes
46233 echo "$as_me: failed program was:" >&5
46234 sed 's/^/| /' conftest.$ac_ext >&5
46236 ac_header_preproc=no
46238 rm -f conftest.err conftest.$ac_ext
46239 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46240 echo "${ECHO_T}$ac_header_preproc" >&6
46242 # So? What about this header?
46243 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46245 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46246 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46248 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46249 ac_header_preproc=yes
46252 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46253 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46254 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46255 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46256 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46257 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46258 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
46259 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
46260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46261 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46262 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46263 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46266 ## ------------------------------------------ ##
46267 ## Report this to the AC_PACKAGE_NAME lists. ##
46268 ## ------------------------------------------ ##
46271 sed "s/^/$as_me: WARNING: /" >&2
46274 echo "$as_me:$LINENO: checking for $ac_header" >&5
46275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46276 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46277 echo $ECHO_N "(cached) $ECHO_C" >&6
46279 eval "$as_ac_Header=\$ac_header_preproc"
46281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46282 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46285 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46286 cat >>confdefs.h <<_ACEOF
46287 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46295 if test $ac_cv_header_slp_h = yes ; then
46296 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
46297 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
46298 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
46299 echo $ECHO_N "(cached) $ECHO_C" >&6
46301 ac_check_lib_save_LIBS=$LIBS
46303 cat >conftest.$ac_ext <<_ACEOF
46306 cat confdefs.h >>conftest.$ac_ext
46307 cat >>conftest.$ac_ext <<_ACEOF
46308 /* end confdefs.h. */
46310 /* Override any gcc2 internal prototype to avoid an error. */
46314 /* We use char because int might match the return type of a gcc2
46315 builtin and then its argument prototype would still apply. */
46325 rm -f conftest.$ac_objext conftest$ac_exeext
46326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46327 (eval $ac_link) 2>conftest.er1
46329 grep -v '^ *+' conftest.er1 >conftest.err
46331 cat conftest.err >&5
46332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46333 (exit $ac_status); } &&
46334 { ac_try='test -z "$ac_c_werror_flag"
46335 || test ! -s conftest.err'
46336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46337 (eval $ac_try) 2>&5
46339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46340 (exit $ac_status); }; } &&
46341 { ac_try='test -s conftest$ac_exeext'
46342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46343 (eval $ac_try) 2>&5
46345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46346 (exit $ac_status); }; }; then
46347 ac_cv_lib_slp_SLPOpen=yes
46349 echo "$as_me: failed program was:" >&5
46350 sed 's/^/| /' conftest.$ac_ext >&5
46352 ac_cv_lib_slp_SLPOpen=no
46354 rm -f conftest.err conftest.$ac_objext \
46355 conftest$ac_exeext conftest.$ac_ext
46356 LIBS=$ac_check_lib_save_LIBS
46358 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
46359 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
46360 if test $ac_cv_lib_slp_SLPOpen = yes; then
46366 if test $have_slp = yes ; then
46368 cat >>confdefs.h <<\_ACEOF
46372 SLAPD_SLP_LIBS=-lslp
46375 elif test $ol_enable_slp = yes ; then
46376 { { echo "$as_me:$LINENO: error: SLP not found" >&5
46377 echo "$as_me: error: SLP not found" >&2;}
46378 { (exit 1); exit 1; }; }
46382 if test "$ol_with_multiple_precision" != "no" ; then
46388 for ac_header in openssl/bn.h bn.h
46390 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46392 echo "$as_me:$LINENO: checking for $ac_header" >&5
46393 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46394 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46395 echo $ECHO_N "(cached) $ECHO_C" >&6
46397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46398 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46400 # Is the header compilable?
46401 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46402 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46403 cat >conftest.$ac_ext <<_ACEOF
46406 cat confdefs.h >>conftest.$ac_ext
46407 cat >>conftest.$ac_ext <<_ACEOF
46408 /* end confdefs.h. */
46409 $ac_includes_default
46410 #include <$ac_header>
46412 rm -f conftest.$ac_objext
46413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46414 (eval $ac_compile) 2>conftest.er1
46416 grep -v '^ *+' conftest.er1 >conftest.err
46418 cat conftest.err >&5
46419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46420 (exit $ac_status); } &&
46421 { ac_try='test -z "$ac_c_werror_flag"
46422 || test ! -s conftest.err'
46423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46424 (eval $ac_try) 2>&5
46426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46427 (exit $ac_status); }; } &&
46428 { ac_try='test -s conftest.$ac_objext'
46429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46430 (eval $ac_try) 2>&5
46432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46433 (exit $ac_status); }; }; then
46434 ac_header_compiler=yes
46436 echo "$as_me: failed program was:" >&5
46437 sed 's/^/| /' conftest.$ac_ext >&5
46439 ac_header_compiler=no
46441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46442 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46443 echo "${ECHO_T}$ac_header_compiler" >&6
46445 # Is the header present?
46446 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46447 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46448 cat >conftest.$ac_ext <<_ACEOF
46451 cat confdefs.h >>conftest.$ac_ext
46452 cat >>conftest.$ac_ext <<_ACEOF
46453 /* end confdefs.h. */
46454 #include <$ac_header>
46456 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46457 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46459 grep -v '^ *+' conftest.er1 >conftest.err
46461 cat conftest.err >&5
46462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46463 (exit $ac_status); } >/dev/null; then
46464 if test -s conftest.err; then
46465 ac_cpp_err=$ac_c_preproc_warn_flag
46466 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46473 if test -z "$ac_cpp_err"; then
46474 ac_header_preproc=yes
46476 echo "$as_me: failed program was:" >&5
46477 sed 's/^/| /' conftest.$ac_ext >&5
46479 ac_header_preproc=no
46481 rm -f conftest.err conftest.$ac_ext
46482 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46483 echo "${ECHO_T}$ac_header_preproc" >&6
46485 # So? What about this header?
46486 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46488 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46489 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46491 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46492 ac_header_preproc=yes
46495 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46496 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46497 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46498 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46499 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46500 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46501 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
46502 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
46503 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46504 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46505 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46506 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46509 ## ------------------------------------------ ##
46510 ## Report this to the AC_PACKAGE_NAME lists. ##
46511 ## ------------------------------------------ ##
46514 sed "s/^/$as_me: WARNING: /" >&2
46517 echo "$as_me:$LINENO: checking for $ac_header" >&5
46518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46519 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46520 echo $ECHO_N "(cached) $ECHO_C" >&6
46522 eval "$as_ac_Header=\$ac_header_preproc"
46524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46525 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46528 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46529 cat >>confdefs.h <<_ACEOF
46530 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46539 for ac_header in openssl/crypto.h crypto.h
46541 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46542 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46543 echo "$as_me:$LINENO: checking for $ac_header" >&5
46544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46546 echo $ECHO_N "(cached) $ECHO_C" >&6
46548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46549 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46551 # Is the header compilable?
46552 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46553 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46554 cat >conftest.$ac_ext <<_ACEOF
46557 cat confdefs.h >>conftest.$ac_ext
46558 cat >>conftest.$ac_ext <<_ACEOF
46559 /* end confdefs.h. */
46560 $ac_includes_default
46561 #include <$ac_header>
46563 rm -f conftest.$ac_objext
46564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46565 (eval $ac_compile) 2>conftest.er1
46567 grep -v '^ *+' conftest.er1 >conftest.err
46569 cat conftest.err >&5
46570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46571 (exit $ac_status); } &&
46572 { ac_try='test -z "$ac_c_werror_flag"
46573 || test ! -s conftest.err'
46574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46575 (eval $ac_try) 2>&5
46577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46578 (exit $ac_status); }; } &&
46579 { ac_try='test -s conftest.$ac_objext'
46580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46581 (eval $ac_try) 2>&5
46583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46584 (exit $ac_status); }; }; then
46585 ac_header_compiler=yes
46587 echo "$as_me: failed program was:" >&5
46588 sed 's/^/| /' conftest.$ac_ext >&5
46590 ac_header_compiler=no
46592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46593 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46594 echo "${ECHO_T}$ac_header_compiler" >&6
46596 # Is the header present?
46597 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46598 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46599 cat >conftest.$ac_ext <<_ACEOF
46602 cat confdefs.h >>conftest.$ac_ext
46603 cat >>conftest.$ac_ext <<_ACEOF
46604 /* end confdefs.h. */
46605 #include <$ac_header>
46607 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46608 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46610 grep -v '^ *+' conftest.er1 >conftest.err
46612 cat conftest.err >&5
46613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46614 (exit $ac_status); } >/dev/null; then
46615 if test -s conftest.err; then
46616 ac_cpp_err=$ac_c_preproc_warn_flag
46617 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46624 if test -z "$ac_cpp_err"; then
46625 ac_header_preproc=yes
46627 echo "$as_me: failed program was:" >&5
46628 sed 's/^/| /' conftest.$ac_ext >&5
46630 ac_header_preproc=no
46632 rm -f conftest.err conftest.$ac_ext
46633 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46634 echo "${ECHO_T}$ac_header_preproc" >&6
46636 # So? What about this header?
46637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46639 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46640 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46641 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46642 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46643 ac_header_preproc=yes
46646 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46647 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46648 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46649 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46650 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46651 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46652 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
46653 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
46654 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46655 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46656 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46657 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46660 ## ------------------------------------------ ##
46661 ## Report this to the AC_PACKAGE_NAME lists. ##
46662 ## ------------------------------------------ ##
46665 sed "s/^/$as_me: WARNING: /" >&2
46668 echo "$as_me:$LINENO: checking for $ac_header" >&5
46669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46670 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46671 echo $ECHO_N "(cached) $ECHO_C" >&6
46673 eval "$as_ac_Header=\$ac_header_preproc"
46675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46676 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46679 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46680 cat >>confdefs.h <<_ACEOF
46681 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46689 for ac_header in gmp.h
46691 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46692 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46693 echo "$as_me:$LINENO: checking for $ac_header" >&5
46694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46696 echo $ECHO_N "(cached) $ECHO_C" >&6
46698 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46699 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46701 # Is the header compilable?
46702 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46703 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46704 cat >conftest.$ac_ext <<_ACEOF
46707 cat confdefs.h >>conftest.$ac_ext
46708 cat >>conftest.$ac_ext <<_ACEOF
46709 /* end confdefs.h. */
46710 $ac_includes_default
46711 #include <$ac_header>
46713 rm -f conftest.$ac_objext
46714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46715 (eval $ac_compile) 2>conftest.er1
46717 grep -v '^ *+' conftest.er1 >conftest.err
46719 cat conftest.err >&5
46720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46721 (exit $ac_status); } &&
46722 { ac_try='test -z "$ac_c_werror_flag"
46723 || test ! -s conftest.err'
46724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46725 (eval $ac_try) 2>&5
46727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46728 (exit $ac_status); }; } &&
46729 { ac_try='test -s conftest.$ac_objext'
46730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46731 (eval $ac_try) 2>&5
46733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46734 (exit $ac_status); }; }; then
46735 ac_header_compiler=yes
46737 echo "$as_me: failed program was:" >&5
46738 sed 's/^/| /' conftest.$ac_ext >&5
46740 ac_header_compiler=no
46742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46743 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46744 echo "${ECHO_T}$ac_header_compiler" >&6
46746 # Is the header present?
46747 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46748 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46749 cat >conftest.$ac_ext <<_ACEOF
46752 cat confdefs.h >>conftest.$ac_ext
46753 cat >>conftest.$ac_ext <<_ACEOF
46754 /* end confdefs.h. */
46755 #include <$ac_header>
46757 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46758 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46760 grep -v '^ *+' conftest.er1 >conftest.err
46762 cat conftest.err >&5
46763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46764 (exit $ac_status); } >/dev/null; then
46765 if test -s conftest.err; then
46766 ac_cpp_err=$ac_c_preproc_warn_flag
46767 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46774 if test -z "$ac_cpp_err"; then
46775 ac_header_preproc=yes
46777 echo "$as_me: failed program was:" >&5
46778 sed 's/^/| /' conftest.$ac_ext >&5
46780 ac_header_preproc=no
46782 rm -f conftest.err conftest.$ac_ext
46783 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46784 echo "${ECHO_T}$ac_header_preproc" >&6
46786 # So? What about this header?
46787 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46789 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46790 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46791 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46792 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46793 ac_header_preproc=yes
46796 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46797 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46798 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46799 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46800 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46801 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46802 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
46803 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
46804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46805 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46806 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46807 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46810 ## ------------------------------------------ ##
46811 ## Report this to the AC_PACKAGE_NAME lists. ##
46812 ## ------------------------------------------ ##
46815 sed "s/^/$as_me: WARNING: /" >&2
46818 echo "$as_me:$LINENO: checking for $ac_header" >&5
46819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46821 echo $ECHO_N "(cached) $ECHO_C" >&6
46823 eval "$as_ac_Header=\$ac_header_preproc"
46825 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46826 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46829 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46830 cat >>confdefs.h <<_ACEOF
46831 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46839 if test "$ol_with_tls" = "found" ; then
46841 ol_have_crypto_h=no
46843 if test "$ac_cv_header_openssl_bn_h" = "yes" \
46844 -o "$ac_cv_header_bn_h" = "yes" ; then
46848 if test "$ac_cv_header_openssl_crypto_h" = "yes" \
46849 -o "$ac_cv_header_crypto_h" = "yes" ; then
46850 ol_have_crypto_h=yes
46853 if test "$ol_have_bn_h" = "yes" \
46854 -a "$ol_have_crypto_h" = "yes" ; then
46859 if test $ac_cv_header_gmp_h = yes ; then
46860 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
46861 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
46862 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
46863 echo $ECHO_N "(cached) $ECHO_C" >&6
46865 ac_check_lib_save_LIBS=$LIBS
46867 cat >conftest.$ac_ext <<_ACEOF
46870 cat confdefs.h >>conftest.$ac_ext
46871 cat >>conftest.$ac_ext <<_ACEOF
46872 /* end confdefs.h. */
46874 /* Override any gcc2 internal prototype to avoid an error. */
46878 /* We use char because int might match the return type of a gcc2
46879 builtin and then its argument prototype would still apply. */
46880 char __gmpz_add_ui ();
46889 rm -f conftest.$ac_objext conftest$ac_exeext
46890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46891 (eval $ac_link) 2>conftest.er1
46893 grep -v '^ *+' conftest.er1 >conftest.err
46895 cat conftest.err >&5
46896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46897 (exit $ac_status); } &&
46898 { ac_try='test -z "$ac_c_werror_flag"
46899 || test ! -s conftest.err'
46900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46901 (eval $ac_try) 2>&5
46903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46904 (exit $ac_status); }; } &&
46905 { ac_try='test -s conftest$ac_exeext'
46906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46907 (eval $ac_try) 2>&5
46909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46910 (exit $ac_status); }; }; then
46911 ac_cv_lib_gmp___gmpz_add_ui=yes
46913 echo "$as_me: failed program was:" >&5
46914 sed 's/^/| /' conftest.$ac_ext >&5
46916 ac_cv_lib_gmp___gmpz_add_ui=no
46918 rm -f conftest.err conftest.$ac_objext \
46919 conftest$ac_exeext conftest.$ac_ext
46920 LIBS=$ac_check_lib_save_LIBS
46922 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
46923 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
46924 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
46930 if test $have_gmp = yes ; then
46935 echo "$as_me:$LINENO: checking for multiple precision support" >&5
46936 echo $ECHO_N "checking for multiple precision support... $ECHO_C" >&6
46938 ol_mp_support="none"
46939 case "$ol_with_multiple_precision" in
46941 if test "$ol_have_bignum" = "yes" ; then
46942 ol_mp_support="bignum"
46944 if test "$ol_have_gmp" = "yes" ; then
46945 ol_mp_support="gmp"
46950 if test "$ol_have_bignum" != "yes" ; then
46951 { { echo "$as_me:$LINENO: error: OpenSSL's BIGNUM not available" >&5
46952 echo "$as_me: error: OpenSSL's BIGNUM not available" >&2;}
46953 { (exit 1); exit 1; }; }
46955 ol_mp_support="bignum"
46958 if test "$ol_have_gmp" != "yes" ; then
46959 { { echo "$as_me:$LINENO: error: GMP not available" >&5
46960 echo "$as_me: error: GMP not available" >&2;}
46961 { (exit 1); exit 1; }; }
46963 ol_mp_support="gmp"
46966 if test "$ol_have_bignum" = "yes" ; then
46967 ol_mp_support="bignum"
46968 elif test "$ol_have_gmp" = "yes" ; then
46969 ol_mp_support="gmp"
46971 { { echo "$as_me:$LINENO: error: not available" >&5
46972 echo "$as_me: error: not available" >&2;}
46973 { (exit 1); exit 1; }; }
46978 case "$ol_mp_support" in
46981 cat >>confdefs.h <<\_ACEOF
46982 #define HAVE_BIGNUM 1
46988 cat >>confdefs.h <<\_ACEOF
46992 SLAPD_GMP_LIBS=-lgmp
46998 echo "$as_me:$LINENO: result: $ol_mp_support" >&5
46999 echo "${ECHO_T}$ol_mp_support" >&6
47003 echo "$as_me:$LINENO: checking for mode_t" >&5
47004 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
47005 if test "${ac_cv_type_mode_t+set}" = set; then
47006 echo $ECHO_N "(cached) $ECHO_C" >&6
47008 cat >conftest.$ac_ext <<_ACEOF
47011 cat confdefs.h >>conftest.$ac_ext
47012 cat >>conftest.$ac_ext <<_ACEOF
47013 /* end confdefs.h. */
47014 $ac_includes_default
47020 if (sizeof (mode_t))
47026 rm -f conftest.$ac_objext
47027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47028 (eval $ac_compile) 2>conftest.er1
47030 grep -v '^ *+' conftest.er1 >conftest.err
47032 cat conftest.err >&5
47033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47034 (exit $ac_status); } &&
47035 { ac_try='test -z "$ac_c_werror_flag"
47036 || test ! -s conftest.err'
47037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47038 (eval $ac_try) 2>&5
47040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47041 (exit $ac_status); }; } &&
47042 { ac_try='test -s conftest.$ac_objext'
47043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47044 (eval $ac_try) 2>&5
47046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47047 (exit $ac_status); }; }; then
47048 ac_cv_type_mode_t=yes
47050 echo "$as_me: failed program was:" >&5
47051 sed 's/^/| /' conftest.$ac_ext >&5
47053 ac_cv_type_mode_t=no
47055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47057 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
47058 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
47059 if test $ac_cv_type_mode_t = yes; then
47063 cat >>confdefs.h <<_ACEOF
47069 echo "$as_me:$LINENO: checking for off_t" >&5
47070 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
47071 if test "${ac_cv_type_off_t+set}" = set; then
47072 echo $ECHO_N "(cached) $ECHO_C" >&6
47074 cat >conftest.$ac_ext <<_ACEOF
47077 cat confdefs.h >>conftest.$ac_ext
47078 cat >>conftest.$ac_ext <<_ACEOF
47079 /* end confdefs.h. */
47080 $ac_includes_default
47086 if (sizeof (off_t))
47092 rm -f conftest.$ac_objext
47093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47094 (eval $ac_compile) 2>conftest.er1
47096 grep -v '^ *+' conftest.er1 >conftest.err
47098 cat conftest.err >&5
47099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47100 (exit $ac_status); } &&
47101 { ac_try='test -z "$ac_c_werror_flag"
47102 || test ! -s conftest.err'
47103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47104 (eval $ac_try) 2>&5
47106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47107 (exit $ac_status); }; } &&
47108 { ac_try='test -s conftest.$ac_objext'
47109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47110 (eval $ac_try) 2>&5
47112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47113 (exit $ac_status); }; }; then
47114 ac_cv_type_off_t=yes
47116 echo "$as_me: failed program was:" >&5
47117 sed 's/^/| /' conftest.$ac_ext >&5
47119 ac_cv_type_off_t=no
47121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47123 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
47124 echo "${ECHO_T}$ac_cv_type_off_t" >&6
47125 if test $ac_cv_type_off_t = yes; then
47129 cat >>confdefs.h <<_ACEOF
47135 echo "$as_me:$LINENO: checking for pid_t" >&5
47136 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
47137 if test "${ac_cv_type_pid_t+set}" = set; then
47138 echo $ECHO_N "(cached) $ECHO_C" >&6
47140 cat >conftest.$ac_ext <<_ACEOF
47143 cat confdefs.h >>conftest.$ac_ext
47144 cat >>conftest.$ac_ext <<_ACEOF
47145 /* end confdefs.h. */
47146 $ac_includes_default
47152 if (sizeof (pid_t))
47158 rm -f conftest.$ac_objext
47159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47160 (eval $ac_compile) 2>conftest.er1
47162 grep -v '^ *+' conftest.er1 >conftest.err
47164 cat conftest.err >&5
47165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47166 (exit $ac_status); } &&
47167 { ac_try='test -z "$ac_c_werror_flag"
47168 || test ! -s conftest.err'
47169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47170 (eval $ac_try) 2>&5
47172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47173 (exit $ac_status); }; } &&
47174 { ac_try='test -s conftest.$ac_objext'
47175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47176 (eval $ac_try) 2>&5
47178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47179 (exit $ac_status); }; }; then
47180 ac_cv_type_pid_t=yes
47182 echo "$as_me: failed program was:" >&5
47183 sed 's/^/| /' conftest.$ac_ext >&5
47185 ac_cv_type_pid_t=no
47187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47189 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
47190 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
47191 if test $ac_cv_type_pid_t = yes; then
47195 cat >>confdefs.h <<_ACEOF
47201 echo "$as_me:$LINENO: checking for ssize_t" >&5
47202 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
47203 if test "${ac_cv_type_ssize_t+set}" = set; then
47204 echo $ECHO_N "(cached) $ECHO_C" >&6
47206 cat >conftest.$ac_ext <<_ACEOF
47209 cat confdefs.h >>conftest.$ac_ext
47210 cat >>conftest.$ac_ext <<_ACEOF
47211 /* end confdefs.h. */
47212 $ac_includes_default
47218 if (sizeof (ssize_t))
47224 rm -f conftest.$ac_objext
47225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47226 (eval $ac_compile) 2>conftest.er1
47228 grep -v '^ *+' conftest.er1 >conftest.err
47230 cat conftest.err >&5
47231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47232 (exit $ac_status); } &&
47233 { ac_try='test -z "$ac_c_werror_flag"
47234 || test ! -s conftest.err'
47235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47236 (eval $ac_try) 2>&5
47238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47239 (exit $ac_status); }; } &&
47240 { ac_try='test -s conftest.$ac_objext'
47241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47242 (eval $ac_try) 2>&5
47244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47245 (exit $ac_status); }; }; then
47246 ac_cv_type_ssize_t=yes
47248 echo "$as_me: failed program was:" >&5
47249 sed 's/^/| /' conftest.$ac_ext >&5
47251 ac_cv_type_ssize_t=no
47253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47255 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
47256 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
47257 if test $ac_cv_type_ssize_t = yes; then
47261 cat >>confdefs.h <<_ACEOF
47262 #define ssize_t signed int
47267 echo "$as_me:$LINENO: checking for caddr_t" >&5
47268 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
47269 if test "${ac_cv_type_caddr_t+set}" = set; then
47270 echo $ECHO_N "(cached) $ECHO_C" >&6
47272 cat >conftest.$ac_ext <<_ACEOF
47275 cat confdefs.h >>conftest.$ac_ext
47276 cat >>conftest.$ac_ext <<_ACEOF
47277 /* end confdefs.h. */
47278 $ac_includes_default
47284 if (sizeof (caddr_t))
47290 rm -f conftest.$ac_objext
47291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47292 (eval $ac_compile) 2>conftest.er1
47294 grep -v '^ *+' conftest.er1 >conftest.err
47296 cat conftest.err >&5
47297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47298 (exit $ac_status); } &&
47299 { ac_try='test -z "$ac_c_werror_flag"
47300 || test ! -s conftest.err'
47301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47302 (eval $ac_try) 2>&5
47304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47305 (exit $ac_status); }; } &&
47306 { ac_try='test -s conftest.$ac_objext'
47307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47308 (eval $ac_try) 2>&5
47310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47311 (exit $ac_status); }; }; then
47312 ac_cv_type_caddr_t=yes
47314 echo "$as_me: failed program was:" >&5
47315 sed 's/^/| /' conftest.$ac_ext >&5
47317 ac_cv_type_caddr_t=no
47319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47321 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
47322 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
47323 if test $ac_cv_type_caddr_t = yes; then
47327 cat >>confdefs.h <<_ACEOF
47328 #define caddr_t char *
47333 echo "$as_me:$LINENO: checking for size_t" >&5
47334 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
47335 if test "${ac_cv_type_size_t+set}" = set; then
47336 echo $ECHO_N "(cached) $ECHO_C" >&6
47338 cat >conftest.$ac_ext <<_ACEOF
47341 cat confdefs.h >>conftest.$ac_ext
47342 cat >>conftest.$ac_ext <<_ACEOF
47343 /* end confdefs.h. */
47344 $ac_includes_default
47350 if (sizeof (size_t))
47356 rm -f conftest.$ac_objext
47357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47358 (eval $ac_compile) 2>conftest.er1
47360 grep -v '^ *+' conftest.er1 >conftest.err
47362 cat conftest.err >&5
47363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47364 (exit $ac_status); } &&
47365 { ac_try='test -z "$ac_c_werror_flag"
47366 || test ! -s conftest.err'
47367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47368 (eval $ac_try) 2>&5
47370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47371 (exit $ac_status); }; } &&
47372 { ac_try='test -s conftest.$ac_objext'
47373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47374 (eval $ac_try) 2>&5
47376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47377 (exit $ac_status); }; }; then
47378 ac_cv_type_size_t=yes
47380 echo "$as_me: failed program was:" >&5
47381 sed 's/^/| /' conftest.$ac_ext >&5
47383 ac_cv_type_size_t=no
47385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47387 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
47388 echo "${ECHO_T}$ac_cv_type_size_t" >&6
47389 if test $ac_cv_type_size_t = yes; then
47393 cat >>confdefs.h <<_ACEOF
47394 #define size_t unsigned
47400 echo "$as_me:$LINENO: checking for long long" >&5
47401 echo $ECHO_N "checking for long long... $ECHO_C" >&6
47402 if test "${ac_cv_type_long_long+set}" = set; then
47403 echo $ECHO_N "(cached) $ECHO_C" >&6
47405 cat >conftest.$ac_ext <<_ACEOF
47408 cat confdefs.h >>conftest.$ac_ext
47409 cat >>conftest.$ac_ext <<_ACEOF
47410 /* end confdefs.h. */
47411 $ac_includes_default
47415 if ((long long *) 0)
47417 if (sizeof (long long))
47423 rm -f conftest.$ac_objext
47424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47425 (eval $ac_compile) 2>conftest.er1
47427 grep -v '^ *+' conftest.er1 >conftest.err
47429 cat conftest.err >&5
47430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47431 (exit $ac_status); } &&
47432 { ac_try='test -z "$ac_c_werror_flag"
47433 || test ! -s conftest.err'
47434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47435 (eval $ac_try) 2>&5
47437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47438 (exit $ac_status); }; } &&
47439 { ac_try='test -s conftest.$ac_objext'
47440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47441 (eval $ac_try) 2>&5
47443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47444 (exit $ac_status); }; }; then
47445 ac_cv_type_long_long=yes
47447 echo "$as_me: failed program was:" >&5
47448 sed 's/^/| /' conftest.$ac_ext >&5
47450 ac_cv_type_long_long=no
47452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47454 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
47455 echo "${ECHO_T}$ac_cv_type_long_long" >&6
47456 if test $ac_cv_type_long_long = yes; then
47458 cat >>confdefs.h <<_ACEOF
47459 #define HAVE_LONG_LONG 1
47465 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
47466 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
47467 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
47468 echo $ECHO_N "(cached) $ECHO_C" >&6
47470 cat >conftest.$ac_ext <<_ACEOF
47473 cat confdefs.h >>conftest.$ac_ext
47474 cat >>conftest.$ac_ext <<_ACEOF
47475 /* end confdefs.h. */
47476 $ac_includes_default
47480 if ((ptrdiff_t *) 0)
47482 if (sizeof (ptrdiff_t))
47488 rm -f conftest.$ac_objext
47489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47490 (eval $ac_compile) 2>conftest.er1
47492 grep -v '^ *+' conftest.er1 >conftest.err
47494 cat conftest.err >&5
47495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47496 (exit $ac_status); } &&
47497 { ac_try='test -z "$ac_c_werror_flag"
47498 || test ! -s conftest.err'
47499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47500 (eval $ac_try) 2>&5
47502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47503 (exit $ac_status); }; } &&
47504 { ac_try='test -s conftest.$ac_objext'
47505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47506 (eval $ac_try) 2>&5
47508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47509 (exit $ac_status); }; }; then
47510 ac_cv_type_ptrdiff_t=yes
47512 echo "$as_me: failed program was:" >&5
47513 sed 's/^/| /' conftest.$ac_ext >&5
47515 ac_cv_type_ptrdiff_t=no
47517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47519 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
47520 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
47521 if test $ac_cv_type_ptrdiff_t = yes; then
47523 cat >>confdefs.h <<_ACEOF
47524 #define HAVE_PTRDIFF_T 1
47531 echo "$as_me:$LINENO: checking for socklen_t" >&5
47532 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
47533 if test "${ac_cv_type_socklen_t+set}" = set; then
47534 echo $ECHO_N "(cached) $ECHO_C" >&6
47536 cat >conftest.$ac_ext <<_ACEOF
47539 cat confdefs.h >>conftest.$ac_ext
47540 cat >>conftest.$ac_ext <<_ACEOF
47541 /* end confdefs.h. */
47542 $ac_includes_default
47546 if ((socklen_t *) 0)
47548 if (sizeof (socklen_t))
47554 rm -f conftest.$ac_objext
47555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47556 (eval $ac_compile) 2>conftest.er1
47558 grep -v '^ *+' conftest.er1 >conftest.err
47560 cat conftest.err >&5
47561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47562 (exit $ac_status); } &&
47563 { ac_try='test -z "$ac_c_werror_flag"
47564 || test ! -s conftest.err'
47565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47566 (eval $ac_try) 2>&5
47568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47569 (exit $ac_status); }; } &&
47570 { ac_try='test -s conftest.$ac_objext'
47571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47572 (eval $ac_try) 2>&5
47574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47575 (exit $ac_status); }; }; then
47576 ac_cv_type_socklen_t=yes
47578 echo "$as_me: failed program was:" >&5
47579 sed 's/^/| /' conftest.$ac_ext >&5
47581 ac_cv_type_socklen_t=no
47583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47585 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
47586 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
47587 if test $ac_cv_type_socklen_t = yes; then
47591 cat >>confdefs.h <<_ACEOF
47592 #define socklen_t int
47598 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
47599 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
47600 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
47601 echo $ECHO_N "(cached) $ECHO_C" >&6
47603 cat >conftest.$ac_ext <<_ACEOF
47606 cat confdefs.h >>conftest.$ac_ext
47607 cat >>conftest.$ac_ext <<_ACEOF
47608 /* end confdefs.h. */
47609 $ac_includes_default
47613 if ((sig_atomic_t *) 0)
47615 if (sizeof (sig_atomic_t))
47621 rm -f conftest.$ac_objext
47622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47623 (eval $ac_compile) 2>conftest.er1
47625 grep -v '^ *+' conftest.er1 >conftest.err
47627 cat conftest.err >&5
47628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47629 (exit $ac_status); } &&
47630 { ac_try='test -z "$ac_c_werror_flag"
47631 || test ! -s conftest.err'
47632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47633 (eval $ac_try) 2>&5
47635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47636 (exit $ac_status); }; } &&
47637 { ac_try='test -s conftest.$ac_objext'
47638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47639 (eval $ac_try) 2>&5
47641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47642 (exit $ac_status); }; }; then
47643 ac_cv_type_sig_atomic_t=yes
47645 echo "$as_me: failed program was:" >&5
47646 sed 's/^/| /' conftest.$ac_ext >&5
47648 ac_cv_type_sig_atomic_t=no
47650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47652 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
47653 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
47654 if test $ac_cv_type_sig_atomic_t = yes; then
47658 cat >>confdefs.h <<_ACEOF
47659 #define sig_atomic_t int
47665 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
47666 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
47667 if test "${ac_cv_type_signal+set}" = set; then
47668 echo $ECHO_N "(cached) $ECHO_C" >&6
47670 cat >conftest.$ac_ext <<_ACEOF
47673 cat confdefs.h >>conftest.$ac_ext
47674 cat >>conftest.$ac_ext <<_ACEOF
47675 /* end confdefs.h. */
47676 #include <sys/types.h>
47677 #include <signal.h>
47682 extern "C" void (*signal (int, void (*)(int)))(int);
47684 void (*signal ()) ();
47695 rm -f conftest.$ac_objext
47696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47697 (eval $ac_compile) 2>conftest.er1
47699 grep -v '^ *+' conftest.er1 >conftest.err
47701 cat conftest.err >&5
47702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47703 (exit $ac_status); } &&
47704 { ac_try='test -z "$ac_c_werror_flag"
47705 || test ! -s conftest.err'
47706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47707 (eval $ac_try) 2>&5
47709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47710 (exit $ac_status); }; } &&
47711 { ac_try='test -s conftest.$ac_objext'
47712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47713 (eval $ac_try) 2>&5
47715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47716 (exit $ac_status); }; }; then
47717 ac_cv_type_signal=void
47719 echo "$as_me: failed program was:" >&5
47720 sed 's/^/| /' conftest.$ac_ext >&5
47722 ac_cv_type_signal=int
47724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47726 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
47727 echo "${ECHO_T}$ac_cv_type_signal" >&6
47729 cat >>confdefs.h <<_ACEOF
47730 #define RETSIGTYPE $ac_cv_type_signal
47734 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
47735 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
47736 if test "${ac_cv_type_uid_t+set}" = set; then
47737 echo $ECHO_N "(cached) $ECHO_C" >&6
47739 cat >conftest.$ac_ext <<_ACEOF
47742 cat confdefs.h >>conftest.$ac_ext
47743 cat >>conftest.$ac_ext <<_ACEOF
47744 /* end confdefs.h. */
47745 #include <sys/types.h>
47748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47749 $EGREP "uid_t" >/dev/null 2>&1; then
47750 ac_cv_type_uid_t=yes
47752 ac_cv_type_uid_t=no
47757 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
47758 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
47759 if test $ac_cv_type_uid_t = no; then
47761 cat >>confdefs.h <<\_ACEOF
47766 cat >>confdefs.h <<\_ACEOF
47773 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
47774 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
47775 if test "${ac_cv_header_time+set}" = set; then
47776 echo $ECHO_N "(cached) $ECHO_C" >&6
47778 cat >conftest.$ac_ext <<_ACEOF
47781 cat confdefs.h >>conftest.$ac_ext
47782 cat >>conftest.$ac_ext <<_ACEOF
47783 /* end confdefs.h. */
47784 #include <sys/types.h>
47785 #include <sys/time.h>
47791 if ((struct tm *) 0)
47797 rm -f conftest.$ac_objext
47798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47799 (eval $ac_compile) 2>conftest.er1
47801 grep -v '^ *+' conftest.er1 >conftest.err
47803 cat conftest.err >&5
47804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47805 (exit $ac_status); } &&
47806 { ac_try='test -z "$ac_c_werror_flag"
47807 || test ! -s conftest.err'
47808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47809 (eval $ac_try) 2>&5
47811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47812 (exit $ac_status); }; } &&
47813 { ac_try='test -s conftest.$ac_objext'
47814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47815 (eval $ac_try) 2>&5
47817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47818 (exit $ac_status); }; }; then
47819 ac_cv_header_time=yes
47821 echo "$as_me: failed program was:" >&5
47822 sed 's/^/| /' conftest.$ac_ext >&5
47824 ac_cv_header_time=no
47826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47828 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
47829 echo "${ECHO_T}$ac_cv_header_time" >&6
47830 if test $ac_cv_header_time = yes; then
47832 cat >>confdefs.h <<\_ACEOF
47833 #define TIME_WITH_SYS_TIME 1
47838 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
47839 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
47840 if test "${ac_cv_struct_tm+set}" = set; then
47841 echo $ECHO_N "(cached) $ECHO_C" >&6
47843 cat >conftest.$ac_ext <<_ACEOF
47846 cat confdefs.h >>conftest.$ac_ext
47847 cat >>conftest.$ac_ext <<_ACEOF
47848 /* end confdefs.h. */
47849 #include <sys/types.h>
47855 struct tm *tp; tp->tm_sec;
47860 rm -f conftest.$ac_objext
47861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47862 (eval $ac_compile) 2>conftest.er1
47864 grep -v '^ *+' conftest.er1 >conftest.err
47866 cat conftest.err >&5
47867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47868 (exit $ac_status); } &&
47869 { ac_try='test -z "$ac_c_werror_flag"
47870 || test ! -s conftest.err'
47871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47872 (eval $ac_try) 2>&5
47874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47875 (exit $ac_status); }; } &&
47876 { ac_try='test -s conftest.$ac_objext'
47877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47878 (eval $ac_try) 2>&5
47880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47881 (exit $ac_status); }; }; then
47882 ac_cv_struct_tm=time.h
47884 echo "$as_me: failed program was:" >&5
47885 sed 's/^/| /' conftest.$ac_ext >&5
47887 ac_cv_struct_tm=sys/time.h
47889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47891 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
47892 echo "${ECHO_T}$ac_cv_struct_tm" >&6
47893 if test $ac_cv_struct_tm = sys/time.h; then
47895 cat >>confdefs.h <<\_ACEOF
47896 #define TM_IN_SYS_TIME 1
47901 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
47902 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
47903 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
47904 echo $ECHO_N "(cached) $ECHO_C" >&6
47906 cat >conftest.$ac_ext <<_ACEOF
47909 cat confdefs.h >>conftest.$ac_ext
47910 cat >>conftest.$ac_ext <<_ACEOF
47911 /* end confdefs.h. */
47912 $ac_includes_default
47916 static struct stat ac_aggr;
47917 if (ac_aggr.st_blksize)
47923 rm -f conftest.$ac_objext
47924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47925 (eval $ac_compile) 2>conftest.er1
47927 grep -v '^ *+' conftest.er1 >conftest.err
47929 cat conftest.err >&5
47930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47931 (exit $ac_status); } &&
47932 { ac_try='test -z "$ac_c_werror_flag"
47933 || test ! -s conftest.err'
47934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47935 (eval $ac_try) 2>&5
47937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47938 (exit $ac_status); }; } &&
47939 { ac_try='test -s conftest.$ac_objext'
47940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47941 (eval $ac_try) 2>&5
47943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47944 (exit $ac_status); }; }; then
47945 ac_cv_member_struct_stat_st_blksize=yes
47947 echo "$as_me: failed program was:" >&5
47948 sed 's/^/| /' conftest.$ac_ext >&5
47950 cat >conftest.$ac_ext <<_ACEOF
47953 cat confdefs.h >>conftest.$ac_ext
47954 cat >>conftest.$ac_ext <<_ACEOF
47955 /* end confdefs.h. */
47956 $ac_includes_default
47960 static struct stat ac_aggr;
47961 if (sizeof ac_aggr.st_blksize)
47967 rm -f conftest.$ac_objext
47968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47969 (eval $ac_compile) 2>conftest.er1
47971 grep -v '^ *+' conftest.er1 >conftest.err
47973 cat conftest.err >&5
47974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47975 (exit $ac_status); } &&
47976 { ac_try='test -z "$ac_c_werror_flag"
47977 || test ! -s conftest.err'
47978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47979 (eval $ac_try) 2>&5
47981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47982 (exit $ac_status); }; } &&
47983 { ac_try='test -s conftest.$ac_objext'
47984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47985 (eval $ac_try) 2>&5
47987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47988 (exit $ac_status); }; }; then
47989 ac_cv_member_struct_stat_st_blksize=yes
47991 echo "$as_me: failed program was:" >&5
47992 sed 's/^/| /' conftest.$ac_ext >&5
47994 ac_cv_member_struct_stat_st_blksize=no
47996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48000 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
48001 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
48002 if test $ac_cv_member_struct_stat_st_blksize = yes; then
48004 cat >>confdefs.h <<_ACEOF
48005 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
48011 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
48012 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
48013 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
48014 echo $ECHO_N "(cached) $ECHO_C" >&6
48016 cat >conftest.$ac_ext <<_ACEOF
48019 cat confdefs.h >>conftest.$ac_ext
48020 cat >>conftest.$ac_ext <<_ACEOF
48021 /* end confdefs.h. */
48022 $ac_includes_default
48028 static struct passwd ac_aggr;
48029 if (ac_aggr.pw_gecos)
48035 rm -f conftest.$ac_objext
48036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48037 (eval $ac_compile) 2>conftest.er1
48039 grep -v '^ *+' conftest.er1 >conftest.err
48041 cat conftest.err >&5
48042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48043 (exit $ac_status); } &&
48044 { ac_try='test -z "$ac_c_werror_flag"
48045 || test ! -s conftest.err'
48046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48047 (eval $ac_try) 2>&5
48049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48050 (exit $ac_status); }; } &&
48051 { ac_try='test -s conftest.$ac_objext'
48052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48053 (eval $ac_try) 2>&5
48055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48056 (exit $ac_status); }; }; then
48057 ac_cv_member_struct_passwd_pw_gecos=yes
48059 echo "$as_me: failed program was:" >&5
48060 sed 's/^/| /' conftest.$ac_ext >&5
48062 cat >conftest.$ac_ext <<_ACEOF
48065 cat confdefs.h >>conftest.$ac_ext
48066 cat >>conftest.$ac_ext <<_ACEOF
48067 /* end confdefs.h. */
48068 $ac_includes_default
48074 static struct passwd ac_aggr;
48075 if (sizeof ac_aggr.pw_gecos)
48081 rm -f conftest.$ac_objext
48082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48083 (eval $ac_compile) 2>conftest.er1
48085 grep -v '^ *+' conftest.er1 >conftest.err
48087 cat conftest.err >&5
48088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48089 (exit $ac_status); } &&
48090 { ac_try='test -z "$ac_c_werror_flag"
48091 || test ! -s conftest.err'
48092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48093 (eval $ac_try) 2>&5
48095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48096 (exit $ac_status); }; } &&
48097 { ac_try='test -s conftest.$ac_objext'
48098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48099 (eval $ac_try) 2>&5
48101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48102 (exit $ac_status); }; }; then
48103 ac_cv_member_struct_passwd_pw_gecos=yes
48105 echo "$as_me: failed program was:" >&5
48106 sed 's/^/| /' conftest.$ac_ext >&5
48108 ac_cv_member_struct_passwd_pw_gecos=no
48110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48114 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
48115 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
48116 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
48118 cat >>confdefs.h <<_ACEOF
48119 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
48125 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
48126 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
48127 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
48128 echo $ECHO_N "(cached) $ECHO_C" >&6
48130 cat >conftest.$ac_ext <<_ACEOF
48133 cat confdefs.h >>conftest.$ac_ext
48134 cat >>conftest.$ac_ext <<_ACEOF
48135 /* end confdefs.h. */
48136 $ac_includes_default
48142 static struct passwd ac_aggr;
48143 if (ac_aggr.pw_passwd)
48149 rm -f conftest.$ac_objext
48150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48151 (eval $ac_compile) 2>conftest.er1
48153 grep -v '^ *+' conftest.er1 >conftest.err
48155 cat conftest.err >&5
48156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48157 (exit $ac_status); } &&
48158 { ac_try='test -z "$ac_c_werror_flag"
48159 || test ! -s conftest.err'
48160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48161 (eval $ac_try) 2>&5
48163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48164 (exit $ac_status); }; } &&
48165 { ac_try='test -s conftest.$ac_objext'
48166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48167 (eval $ac_try) 2>&5
48169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48170 (exit $ac_status); }; }; then
48171 ac_cv_member_struct_passwd_pw_passwd=yes
48173 echo "$as_me: failed program was:" >&5
48174 sed 's/^/| /' conftest.$ac_ext >&5
48176 cat >conftest.$ac_ext <<_ACEOF
48179 cat confdefs.h >>conftest.$ac_ext
48180 cat >>conftest.$ac_ext <<_ACEOF
48181 /* end confdefs.h. */
48182 $ac_includes_default
48188 static struct passwd ac_aggr;
48189 if (sizeof ac_aggr.pw_passwd)
48195 rm -f conftest.$ac_objext
48196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48197 (eval $ac_compile) 2>conftest.er1
48199 grep -v '^ *+' conftest.er1 >conftest.err
48201 cat conftest.err >&5
48202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48203 (exit $ac_status); } &&
48204 { ac_try='test -z "$ac_c_werror_flag"
48205 || test ! -s conftest.err'
48206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48207 (eval $ac_try) 2>&5
48209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48210 (exit $ac_status); }; } &&
48211 { ac_try='test -s conftest.$ac_objext'
48212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48213 (eval $ac_try) 2>&5
48215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48216 (exit $ac_status); }; }; then
48217 ac_cv_member_struct_passwd_pw_passwd=yes
48219 echo "$as_me: failed program was:" >&5
48220 sed 's/^/| /' conftest.$ac_ext >&5
48222 ac_cv_member_struct_passwd_pw_passwd=no
48224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48228 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
48229 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
48230 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
48232 cat >>confdefs.h <<_ACEOF
48233 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
48240 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
48241 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
48242 if test "${ol_cv_c_upper_lower+set}" = set; then
48243 echo $ECHO_N "(cached) $ECHO_C" >&6
48246 if test "$cross_compiling" = yes; then
48247 ol_cv_c_upper_lower=safe
48249 cat >conftest.$ac_ext <<_ACEOF
48252 cat confdefs.h >>conftest.$ac_ext
48253 cat >>conftest.$ac_ext <<_ACEOF
48254 /* end confdefs.h. */
48259 if ('C' == toupper('C'))
48265 rm -f conftest$ac_exeext
48266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48267 (eval $ac_link) 2>&5
48269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48270 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48272 (eval $ac_try) 2>&5
48274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48275 (exit $ac_status); }; }; then
48276 ol_cv_c_upper_lower=no
48278 echo "$as_me: program exited with status $ac_status" >&5
48279 echo "$as_me: failed program was:" >&5
48280 sed 's/^/| /' conftest.$ac_ext >&5
48282 ( exit $ac_status )
48283 ol_cv_c_upper_lower=yes
48285 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48288 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
48289 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
48290 if test $ol_cv_c_upper_lower != no ; then
48292 cat >>confdefs.h <<\_ACEOF
48293 #define C_UPPER_LOWER 1
48298 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
48299 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
48300 if test "${ac_cv_c_const+set}" = set; then
48301 echo $ECHO_N "(cached) $ECHO_C" >&6
48303 cat >conftest.$ac_ext <<_ACEOF
48306 cat confdefs.h >>conftest.$ac_ext
48307 cat >>conftest.$ac_ext <<_ACEOF
48308 /* end confdefs.h. */
48313 /* FIXME: Include the comments suggested by Paul. */
48314 #ifndef __cplusplus
48315 /* Ultrix mips cc rejects this. */
48316 typedef int charset[2];
48318 /* SunOS 4.1.1 cc rejects this. */
48319 char const *const *ccp;
48321 /* NEC SVR4.0.2 mips cc rejects this. */
48322 struct point {int x, y;};
48323 static struct point const zero = {0,0};
48324 /* AIX XL C 1.02.0.0 rejects this.
48325 It does not let you subtract one const X* pointer from another in
48326 an arm of an if-expression whose if-part is not a constant
48328 const char *g = "string";
48329 ccp = &g + (g ? g-g : 0);
48330 /* HPUX 7.0 cc rejects these. */
48333 ccp = (char const *const *) p;
48334 { /* SCO 3.2v4 cc rejects this. */
48336 char const *s = 0 ? (char *) 0 : (char const *) 0;
48340 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
48341 int x[] = {25, 17};
48342 const int *foo = &x[0];
48345 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
48346 typedef const int *iptr;
48350 { /* AIX XL C 1.02.0.0 rejects this saying
48351 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
48352 struct s { int j; const int *ap[3]; };
48353 struct s *b; b->j = 5;
48355 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
48356 const int foo = 10;
48364 rm -f conftest.$ac_objext
48365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48366 (eval $ac_compile) 2>conftest.er1
48368 grep -v '^ *+' conftest.er1 >conftest.err
48370 cat conftest.err >&5
48371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48372 (exit $ac_status); } &&
48373 { ac_try='test -z "$ac_c_werror_flag"
48374 || test ! -s conftest.err'
48375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48376 (eval $ac_try) 2>&5
48378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48379 (exit $ac_status); }; } &&
48380 { ac_try='test -s conftest.$ac_objext'
48381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48382 (eval $ac_try) 2>&5
48384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48385 (exit $ac_status); }; }; then
48388 echo "$as_me: failed program was:" >&5
48389 sed 's/^/| /' conftest.$ac_ext >&5
48393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48395 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
48396 echo "${ECHO_T}$ac_cv_c_const" >&6
48397 if test $ac_cv_c_const = no; then
48399 cat >>confdefs.h <<\_ACEOF
48405 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
48406 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
48407 if test "${ol_cv_c_volatile+set}" = set; then
48408 echo $ECHO_N "(cached) $ECHO_C" >&6
48410 cat >conftest.$ac_ext <<_ACEOF
48413 cat confdefs.h >>conftest.$ac_ext
48414 cat >>conftest.$ac_ext <<_ACEOF
48415 /* end confdefs.h. */
48420 volatile int a; int * volatile b = x ? &y : &z;
48421 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
48427 rm -f conftest.$ac_objext
48428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48429 (eval $ac_compile) 2>conftest.er1
48431 grep -v '^ *+' conftest.er1 >conftest.err
48433 cat conftest.err >&5
48434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48435 (exit $ac_status); } &&
48436 { ac_try='test -z "$ac_c_werror_flag"
48437 || test ! -s conftest.err'
48438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48439 (eval $ac_try) 2>&5
48441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48442 (exit $ac_status); }; } &&
48443 { ac_try='test -s conftest.$ac_objext'
48444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48445 (eval $ac_try) 2>&5
48447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48448 (exit $ac_status); }; }; then
48449 ol_cv_c_volatile=yes
48451 echo "$as_me: failed program was:" >&5
48452 sed 's/^/| /' conftest.$ac_ext >&5
48454 ol_cv_c_volatile=no
48456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48458 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
48459 echo "${ECHO_T}$ol_cv_c_volatile" >&6
48460 if test $ol_cv_c_volatile = yes; then
48464 cat >>confdefs.h <<\_ACEOF
48471 if test $cross_compiling = yes ; then
48472 { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
48473 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
48475 cat >>confdefs.h <<\_ACEOF
48476 #define CROSS_COMPILING 1
48480 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
48481 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
48482 if test "${ac_cv_c_bigendian+set}" = set; then
48483 echo $ECHO_N "(cached) $ECHO_C" >&6
48485 # See if sys/param.h defines the BYTE_ORDER macro.
48486 cat >conftest.$ac_ext <<_ACEOF
48489 cat confdefs.h >>conftest.$ac_ext
48490 cat >>conftest.$ac_ext <<_ACEOF
48491 /* end confdefs.h. */
48492 #include <sys/types.h>
48493 #include <sys/param.h>
48498 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
48499 bogus endian macros
48506 rm -f conftest.$ac_objext
48507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48508 (eval $ac_compile) 2>conftest.er1
48510 grep -v '^ *+' conftest.er1 >conftest.err
48512 cat conftest.err >&5
48513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48514 (exit $ac_status); } &&
48515 { ac_try='test -z "$ac_c_werror_flag"
48516 || test ! -s conftest.err'
48517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48518 (eval $ac_try) 2>&5
48520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48521 (exit $ac_status); }; } &&
48522 { ac_try='test -s conftest.$ac_objext'
48523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48524 (eval $ac_try) 2>&5
48526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48527 (exit $ac_status); }; }; then
48528 # It does; now see whether it defined to BIG_ENDIAN or not.
48529 cat >conftest.$ac_ext <<_ACEOF
48532 cat confdefs.h >>conftest.$ac_ext
48533 cat >>conftest.$ac_ext <<_ACEOF
48534 /* end confdefs.h. */
48535 #include <sys/types.h>
48536 #include <sys/param.h>
48541 #if BYTE_ORDER != BIG_ENDIAN
48549 rm -f conftest.$ac_objext
48550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48551 (eval $ac_compile) 2>conftest.er1
48553 grep -v '^ *+' conftest.er1 >conftest.err
48555 cat conftest.err >&5
48556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48557 (exit $ac_status); } &&
48558 { ac_try='test -z "$ac_c_werror_flag"
48559 || test ! -s conftest.err'
48560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48561 (eval $ac_try) 2>&5
48563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48564 (exit $ac_status); }; } &&
48565 { ac_try='test -s conftest.$ac_objext'
48566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48567 (eval $ac_try) 2>&5
48569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48570 (exit $ac_status); }; }; then
48571 ac_cv_c_bigendian=yes
48573 echo "$as_me: failed program was:" >&5
48574 sed 's/^/| /' conftest.$ac_ext >&5
48576 ac_cv_c_bigendian=no
48578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48580 echo "$as_me: failed program was:" >&5
48581 sed 's/^/| /' conftest.$ac_ext >&5
48583 # It does not; compile a test program.
48584 if test "$cross_compiling" = yes; then
48585 # try to guess the endianness by grepping values into an object file
48586 ac_cv_c_bigendian=unknown
48587 cat >conftest.$ac_ext <<_ACEOF
48590 cat confdefs.h >>conftest.$ac_ext
48591 cat >>conftest.$ac_ext <<_ACEOF
48592 /* end confdefs.h. */
48593 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
48594 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
48595 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
48596 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
48597 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
48598 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
48602 _ascii (); _ebcdic ();
48607 rm -f conftest.$ac_objext
48608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48609 (eval $ac_compile) 2>conftest.er1
48611 grep -v '^ *+' conftest.er1 >conftest.err
48613 cat conftest.err >&5
48614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48615 (exit $ac_status); } &&
48616 { ac_try='test -z "$ac_c_werror_flag"
48617 || test ! -s conftest.err'
48618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48619 (eval $ac_try) 2>&5
48621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48622 (exit $ac_status); }; } &&
48623 { ac_try='test -s conftest.$ac_objext'
48624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48625 (eval $ac_try) 2>&5
48627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48628 (exit $ac_status); }; }; then
48629 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
48630 ac_cv_c_bigendian=yes
48632 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
48633 if test "$ac_cv_c_bigendian" = unknown; then
48634 ac_cv_c_bigendian=no
48636 # finding both strings is unlikely to happen, but who knows?
48637 ac_cv_c_bigendian=unknown
48641 echo "$as_me: failed program was:" >&5
48642 sed 's/^/| /' conftest.$ac_ext >&5
48645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48647 cat >conftest.$ac_ext <<_ACEOF
48650 cat confdefs.h >>conftest.$ac_ext
48651 cat >>conftest.$ac_ext <<_ACEOF
48652 /* end confdefs.h. */
48656 /* Are we little or big endian? From Harbison&Steele. */
48660 char c[sizeof (long)];
48663 exit (u.c[sizeof (long) - 1] == 1);
48666 rm -f conftest$ac_exeext
48667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48668 (eval $ac_link) 2>&5
48670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48671 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48673 (eval $ac_try) 2>&5
48675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48676 (exit $ac_status); }; }; then
48677 ac_cv_c_bigendian=no
48679 echo "$as_me: program exited with status $ac_status" >&5
48680 echo "$as_me: failed program was:" >&5
48681 sed 's/^/| /' conftest.$ac_ext >&5
48683 ( exit $ac_status )
48684 ac_cv_c_bigendian=yes
48686 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48691 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
48692 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
48693 case $ac_cv_c_bigendian in
48696 cat >>confdefs.h <<\_ACEOF
48697 #define WORDS_BIGENDIAN 1
48703 { { echo "$as_me:$LINENO: error: unknown endianness
48704 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
48705 echo "$as_me: error: unknown endianness
48706 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
48707 { (exit 1); exit 1; }; } ;;
48712 echo "$as_me:$LINENO: checking for short" >&5
48713 echo $ECHO_N "checking for short... $ECHO_C" >&6
48714 if test "${ac_cv_type_short+set}" = set; then
48715 echo $ECHO_N "(cached) $ECHO_C" >&6
48717 cat >conftest.$ac_ext <<_ACEOF
48720 cat confdefs.h >>conftest.$ac_ext
48721 cat >>conftest.$ac_ext <<_ACEOF
48722 /* end confdefs.h. */
48723 $ac_includes_default
48729 if (sizeof (short))
48735 rm -f conftest.$ac_objext
48736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48737 (eval $ac_compile) 2>conftest.er1
48739 grep -v '^ *+' conftest.er1 >conftest.err
48741 cat conftest.err >&5
48742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48743 (exit $ac_status); } &&
48744 { ac_try='test -z "$ac_c_werror_flag"
48745 || test ! -s conftest.err'
48746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48747 (eval $ac_try) 2>&5
48749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48750 (exit $ac_status); }; } &&
48751 { ac_try='test -s conftest.$ac_objext'
48752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48753 (eval $ac_try) 2>&5
48755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48756 (exit $ac_status); }; }; then
48757 ac_cv_type_short=yes
48759 echo "$as_me: failed program was:" >&5
48760 sed 's/^/| /' conftest.$ac_ext >&5
48762 ac_cv_type_short=no
48764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48766 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
48767 echo "${ECHO_T}$ac_cv_type_short" >&6
48769 echo "$as_me:$LINENO: checking size of short" >&5
48770 echo $ECHO_N "checking size of short... $ECHO_C" >&6
48771 if test "${ac_cv_sizeof_short+set}" = set; then
48772 echo $ECHO_N "(cached) $ECHO_C" >&6
48774 if test "$ac_cv_type_short" = yes; then
48775 # The cast to unsigned long works around a bug in the HP C Compiler
48776 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
48777 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
48778 # This bug is HP SR number 8606223364.
48779 if test "$cross_compiling" = yes; then
48780 # Depending upon the size, compute the lo and hi bounds.
48781 cat >conftest.$ac_ext <<_ACEOF
48784 cat confdefs.h >>conftest.$ac_ext
48785 cat >>conftest.$ac_ext <<_ACEOF
48786 /* end confdefs.h. */
48787 $ac_includes_default
48791 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
48798 rm -f conftest.$ac_objext
48799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48800 (eval $ac_compile) 2>conftest.er1
48802 grep -v '^ *+' conftest.er1 >conftest.err
48804 cat conftest.err >&5
48805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48806 (exit $ac_status); } &&
48807 { ac_try='test -z "$ac_c_werror_flag"
48808 || test ! -s conftest.err'
48809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48810 (eval $ac_try) 2>&5
48812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48813 (exit $ac_status); }; } &&
48814 { ac_try='test -s conftest.$ac_objext'
48815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48816 (eval $ac_try) 2>&5
48818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48819 (exit $ac_status); }; }; then
48822 cat >conftest.$ac_ext <<_ACEOF
48825 cat confdefs.h >>conftest.$ac_ext
48826 cat >>conftest.$ac_ext <<_ACEOF
48827 /* end confdefs.h. */
48828 $ac_includes_default
48832 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
48839 rm -f conftest.$ac_objext
48840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48841 (eval $ac_compile) 2>conftest.er1
48843 grep -v '^ *+' conftest.er1 >conftest.err
48845 cat conftest.err >&5
48846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48847 (exit $ac_status); } &&
48848 { ac_try='test -z "$ac_c_werror_flag"
48849 || test ! -s conftest.err'
48850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48851 (eval $ac_try) 2>&5
48853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48854 (exit $ac_status); }; } &&
48855 { ac_try='test -s conftest.$ac_objext'
48856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48857 (eval $ac_try) 2>&5
48859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48860 (exit $ac_status); }; }; then
48861 ac_hi=$ac_mid; break
48863 echo "$as_me: failed program was:" >&5
48864 sed 's/^/| /' conftest.$ac_ext >&5
48866 ac_lo=`expr $ac_mid + 1`
48867 if test $ac_lo -le $ac_mid; then
48871 ac_mid=`expr 2 '*' $ac_mid + 1`
48873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48876 echo "$as_me: failed program was:" >&5
48877 sed 's/^/| /' conftest.$ac_ext >&5
48879 cat >conftest.$ac_ext <<_ACEOF
48882 cat confdefs.h >>conftest.$ac_ext
48883 cat >>conftest.$ac_ext <<_ACEOF
48884 /* end confdefs.h. */
48885 $ac_includes_default
48889 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
48896 rm -f conftest.$ac_objext
48897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48898 (eval $ac_compile) 2>conftest.er1
48900 grep -v '^ *+' conftest.er1 >conftest.err
48902 cat conftest.err >&5
48903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48904 (exit $ac_status); } &&
48905 { ac_try='test -z "$ac_c_werror_flag"
48906 || test ! -s conftest.err'
48907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48908 (eval $ac_try) 2>&5
48910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48911 (exit $ac_status); }; } &&
48912 { ac_try='test -s conftest.$ac_objext'
48913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48914 (eval $ac_try) 2>&5
48916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48917 (exit $ac_status); }; }; then
48920 cat >conftest.$ac_ext <<_ACEOF
48923 cat confdefs.h >>conftest.$ac_ext
48924 cat >>conftest.$ac_ext <<_ACEOF
48925 /* end confdefs.h. */
48926 $ac_includes_default
48930 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
48937 rm -f conftest.$ac_objext
48938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48939 (eval $ac_compile) 2>conftest.er1
48941 grep -v '^ *+' conftest.er1 >conftest.err
48943 cat conftest.err >&5
48944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48945 (exit $ac_status); } &&
48946 { ac_try='test -z "$ac_c_werror_flag"
48947 || test ! -s conftest.err'
48948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48949 (eval $ac_try) 2>&5
48951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48952 (exit $ac_status); }; } &&
48953 { ac_try='test -s conftest.$ac_objext'
48954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48955 (eval $ac_try) 2>&5
48957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48958 (exit $ac_status); }; }; then
48959 ac_lo=$ac_mid; break
48961 echo "$as_me: failed program was:" >&5
48962 sed 's/^/| /' conftest.$ac_ext >&5
48964 ac_hi=`expr '(' $ac_mid ')' - 1`
48965 if test $ac_mid -le $ac_hi; then
48969 ac_mid=`expr 2 '*' $ac_mid`
48971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48974 echo "$as_me: failed program was:" >&5
48975 sed 's/^/| /' conftest.$ac_ext >&5
48979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48982 # Binary search between lo and hi bounds.
48983 while test "x$ac_lo" != "x$ac_hi"; do
48984 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
48985 cat >conftest.$ac_ext <<_ACEOF
48988 cat confdefs.h >>conftest.$ac_ext
48989 cat >>conftest.$ac_ext <<_ACEOF
48990 /* end confdefs.h. */
48991 $ac_includes_default
48995 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
49002 rm -f conftest.$ac_objext
49003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49004 (eval $ac_compile) 2>conftest.er1
49006 grep -v '^ *+' conftest.er1 >conftest.err
49008 cat conftest.err >&5
49009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49010 (exit $ac_status); } &&
49011 { ac_try='test -z "$ac_c_werror_flag"
49012 || test ! -s conftest.err'
49013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49014 (eval $ac_try) 2>&5
49016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49017 (exit $ac_status); }; } &&
49018 { ac_try='test -s conftest.$ac_objext'
49019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49020 (eval $ac_try) 2>&5
49022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49023 (exit $ac_status); }; }; then
49026 echo "$as_me: failed program was:" >&5
49027 sed 's/^/| /' conftest.$ac_ext >&5
49029 ac_lo=`expr '(' $ac_mid ')' + 1`
49031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49034 ?*) ac_cv_sizeof_short=$ac_lo;;
49035 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
49036 See \`config.log' for more details." >&5
49037 echo "$as_me: error: cannot compute sizeof (short), 77
49038 See \`config.log' for more details." >&2;}
49039 { (exit 1); exit 1; }; } ;;
49042 if test "$cross_compiling" = yes; then
49043 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
49044 See \`config.log' for more details." >&5
49045 echo "$as_me: error: cannot run test program while cross compiling
49046 See \`config.log' for more details." >&2;}
49047 { (exit 1); exit 1; }; }
49049 cat >conftest.$ac_ext <<_ACEOF
49052 cat confdefs.h >>conftest.$ac_ext
49053 cat >>conftest.$ac_ext <<_ACEOF
49054 /* end confdefs.h. */
49055 $ac_includes_default
49056 long longval () { return (long) (sizeof (short)); }
49057 unsigned long ulongval () { return (long) (sizeof (short)); }
49059 #include <stdlib.h>
49064 FILE *f = fopen ("conftest.val", "w");
49067 if (((long) (sizeof (short))) < 0)
49069 long i = longval ();
49070 if (i != ((long) (sizeof (short))))
49072 fprintf (f, "%ld\n", i);
49076 unsigned long i = ulongval ();
49077 if (i != ((long) (sizeof (short))))
49079 fprintf (f, "%lu\n", i);
49081 exit (ferror (f) || fclose (f) != 0);
49087 rm -f conftest$ac_exeext
49088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49089 (eval $ac_link) 2>&5
49091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49092 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49094 (eval $ac_try) 2>&5
49096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49097 (exit $ac_status); }; }; then
49098 ac_cv_sizeof_short=`cat conftest.val`
49100 echo "$as_me: program exited with status $ac_status" >&5
49101 echo "$as_me: failed program was:" >&5
49102 sed 's/^/| /' conftest.$ac_ext >&5
49104 ( exit $ac_status )
49105 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
49106 See \`config.log' for more details." >&5
49107 echo "$as_me: error: cannot compute sizeof (short), 77
49108 See \`config.log' for more details." >&2;}
49109 { (exit 1); exit 1; }; }
49111 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49116 ac_cv_sizeof_short=0
49119 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
49120 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
49121 cat >>confdefs.h <<_ACEOF
49122 #define SIZEOF_SHORT $ac_cv_sizeof_short
49126 echo "$as_me:$LINENO: checking for int" >&5
49127 echo $ECHO_N "checking for int... $ECHO_C" >&6
49128 if test "${ac_cv_type_int+set}" = set; then
49129 echo $ECHO_N "(cached) $ECHO_C" >&6
49131 cat >conftest.$ac_ext <<_ACEOF
49134 cat confdefs.h >>conftest.$ac_ext
49135 cat >>conftest.$ac_ext <<_ACEOF
49136 /* end confdefs.h. */
49137 $ac_includes_default
49149 rm -f conftest.$ac_objext
49150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49151 (eval $ac_compile) 2>conftest.er1
49153 grep -v '^ *+' conftest.er1 >conftest.err
49155 cat conftest.err >&5
49156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49157 (exit $ac_status); } &&
49158 { ac_try='test -z "$ac_c_werror_flag"
49159 || test ! -s conftest.err'
49160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49161 (eval $ac_try) 2>&5
49163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49164 (exit $ac_status); }; } &&
49165 { ac_try='test -s conftest.$ac_objext'
49166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49167 (eval $ac_try) 2>&5
49169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49170 (exit $ac_status); }; }; then
49173 echo "$as_me: failed program was:" >&5
49174 sed 's/^/| /' conftest.$ac_ext >&5
49178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49180 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
49181 echo "${ECHO_T}$ac_cv_type_int" >&6
49183 echo "$as_me:$LINENO: checking size of int" >&5
49184 echo $ECHO_N "checking size of int... $ECHO_C" >&6
49185 if test "${ac_cv_sizeof_int+set}" = set; then
49186 echo $ECHO_N "(cached) $ECHO_C" >&6
49188 if test "$ac_cv_type_int" = yes; then
49189 # The cast to unsigned long works around a bug in the HP C Compiler
49190 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
49191 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
49192 # This bug is HP SR number 8606223364.
49193 if test "$cross_compiling" = yes; then
49194 # Depending upon the size, compute the lo and hi bounds.
49195 cat >conftest.$ac_ext <<_ACEOF
49198 cat confdefs.h >>conftest.$ac_ext
49199 cat >>conftest.$ac_ext <<_ACEOF
49200 /* end confdefs.h. */
49201 $ac_includes_default
49205 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
49212 rm -f conftest.$ac_objext
49213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49214 (eval $ac_compile) 2>conftest.er1
49216 grep -v '^ *+' conftest.er1 >conftest.err
49218 cat conftest.err >&5
49219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49220 (exit $ac_status); } &&
49221 { ac_try='test -z "$ac_c_werror_flag"
49222 || test ! -s conftest.err'
49223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49224 (eval $ac_try) 2>&5
49226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49227 (exit $ac_status); }; } &&
49228 { ac_try='test -s conftest.$ac_objext'
49229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49230 (eval $ac_try) 2>&5
49232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49233 (exit $ac_status); }; }; then
49236 cat >conftest.$ac_ext <<_ACEOF
49239 cat confdefs.h >>conftest.$ac_ext
49240 cat >>conftest.$ac_ext <<_ACEOF
49241 /* end confdefs.h. */
49242 $ac_includes_default
49246 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
49253 rm -f conftest.$ac_objext
49254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49255 (eval $ac_compile) 2>conftest.er1
49257 grep -v '^ *+' conftest.er1 >conftest.err
49259 cat conftest.err >&5
49260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49261 (exit $ac_status); } &&
49262 { ac_try='test -z "$ac_c_werror_flag"
49263 || test ! -s conftest.err'
49264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49265 (eval $ac_try) 2>&5
49267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49268 (exit $ac_status); }; } &&
49269 { ac_try='test -s conftest.$ac_objext'
49270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49271 (eval $ac_try) 2>&5
49273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49274 (exit $ac_status); }; }; then
49275 ac_hi=$ac_mid; break
49277 echo "$as_me: failed program was:" >&5
49278 sed 's/^/| /' conftest.$ac_ext >&5
49280 ac_lo=`expr $ac_mid + 1`
49281 if test $ac_lo -le $ac_mid; then
49285 ac_mid=`expr 2 '*' $ac_mid + 1`
49287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49290 echo "$as_me: failed program was:" >&5
49291 sed 's/^/| /' conftest.$ac_ext >&5
49293 cat >conftest.$ac_ext <<_ACEOF
49296 cat confdefs.h >>conftest.$ac_ext
49297 cat >>conftest.$ac_ext <<_ACEOF
49298 /* end confdefs.h. */
49299 $ac_includes_default
49303 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
49310 rm -f conftest.$ac_objext
49311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49312 (eval $ac_compile) 2>conftest.er1
49314 grep -v '^ *+' conftest.er1 >conftest.err
49316 cat conftest.err >&5
49317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49318 (exit $ac_status); } &&
49319 { ac_try='test -z "$ac_c_werror_flag"
49320 || test ! -s conftest.err'
49321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49322 (eval $ac_try) 2>&5
49324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49325 (exit $ac_status); }; } &&
49326 { ac_try='test -s conftest.$ac_objext'
49327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49328 (eval $ac_try) 2>&5
49330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49331 (exit $ac_status); }; }; then
49334 cat >conftest.$ac_ext <<_ACEOF
49337 cat confdefs.h >>conftest.$ac_ext
49338 cat >>conftest.$ac_ext <<_ACEOF
49339 /* end confdefs.h. */
49340 $ac_includes_default
49344 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
49351 rm -f conftest.$ac_objext
49352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49353 (eval $ac_compile) 2>conftest.er1
49355 grep -v '^ *+' conftest.er1 >conftest.err
49357 cat conftest.err >&5
49358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49359 (exit $ac_status); } &&
49360 { ac_try='test -z "$ac_c_werror_flag"
49361 || test ! -s conftest.err'
49362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49363 (eval $ac_try) 2>&5
49365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49366 (exit $ac_status); }; } &&
49367 { ac_try='test -s conftest.$ac_objext'
49368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49369 (eval $ac_try) 2>&5
49371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49372 (exit $ac_status); }; }; then
49373 ac_lo=$ac_mid; break
49375 echo "$as_me: failed program was:" >&5
49376 sed 's/^/| /' conftest.$ac_ext >&5
49378 ac_hi=`expr '(' $ac_mid ')' - 1`
49379 if test $ac_mid -le $ac_hi; then
49383 ac_mid=`expr 2 '*' $ac_mid`
49385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49388 echo "$as_me: failed program was:" >&5
49389 sed 's/^/| /' conftest.$ac_ext >&5
49393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49396 # Binary search between lo and hi bounds.
49397 while test "x$ac_lo" != "x$ac_hi"; do
49398 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
49399 cat >conftest.$ac_ext <<_ACEOF
49402 cat confdefs.h >>conftest.$ac_ext
49403 cat >>conftest.$ac_ext <<_ACEOF
49404 /* end confdefs.h. */
49405 $ac_includes_default
49409 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
49416 rm -f conftest.$ac_objext
49417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49418 (eval $ac_compile) 2>conftest.er1
49420 grep -v '^ *+' conftest.er1 >conftest.err
49422 cat conftest.err >&5
49423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49424 (exit $ac_status); } &&
49425 { ac_try='test -z "$ac_c_werror_flag"
49426 || test ! -s conftest.err'
49427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49428 (eval $ac_try) 2>&5
49430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49431 (exit $ac_status); }; } &&
49432 { ac_try='test -s conftest.$ac_objext'
49433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49434 (eval $ac_try) 2>&5
49436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49437 (exit $ac_status); }; }; then
49440 echo "$as_me: failed program was:" >&5
49441 sed 's/^/| /' conftest.$ac_ext >&5
49443 ac_lo=`expr '(' $ac_mid ')' + 1`
49445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49448 ?*) ac_cv_sizeof_int=$ac_lo;;
49449 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
49450 See \`config.log' for more details." >&5
49451 echo "$as_me: error: cannot compute sizeof (int), 77
49452 See \`config.log' for more details." >&2;}
49453 { (exit 1); exit 1; }; } ;;
49456 if test "$cross_compiling" = yes; then
49457 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
49458 See \`config.log' for more details." >&5
49459 echo "$as_me: error: cannot run test program while cross compiling
49460 See \`config.log' for more details." >&2;}
49461 { (exit 1); exit 1; }; }
49463 cat >conftest.$ac_ext <<_ACEOF
49466 cat confdefs.h >>conftest.$ac_ext
49467 cat >>conftest.$ac_ext <<_ACEOF
49468 /* end confdefs.h. */
49469 $ac_includes_default
49470 long longval () { return (long) (sizeof (int)); }
49471 unsigned long ulongval () { return (long) (sizeof (int)); }
49473 #include <stdlib.h>
49478 FILE *f = fopen ("conftest.val", "w");
49481 if (((long) (sizeof (int))) < 0)
49483 long i = longval ();
49484 if (i != ((long) (sizeof (int))))
49486 fprintf (f, "%ld\n", i);
49490 unsigned long i = ulongval ();
49491 if (i != ((long) (sizeof (int))))
49493 fprintf (f, "%lu\n", i);
49495 exit (ferror (f) || fclose (f) != 0);
49501 rm -f conftest$ac_exeext
49502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49503 (eval $ac_link) 2>&5
49505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49506 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49508 (eval $ac_try) 2>&5
49510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49511 (exit $ac_status); }; }; then
49512 ac_cv_sizeof_int=`cat conftest.val`
49514 echo "$as_me: program exited with status $ac_status" >&5
49515 echo "$as_me: failed program was:" >&5
49516 sed 's/^/| /' conftest.$ac_ext >&5
49518 ( exit $ac_status )
49519 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
49520 See \`config.log' for more details." >&5
49521 echo "$as_me: error: cannot compute sizeof (int), 77
49522 See \`config.log' for more details." >&2;}
49523 { (exit 1); exit 1; }; }
49525 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49533 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
49534 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
49535 cat >>confdefs.h <<_ACEOF
49536 #define SIZEOF_INT $ac_cv_sizeof_int
49540 echo "$as_me:$LINENO: checking for long" >&5
49541 echo $ECHO_N "checking for long... $ECHO_C" >&6
49542 if test "${ac_cv_type_long+set}" = set; then
49543 echo $ECHO_N "(cached) $ECHO_C" >&6
49545 cat >conftest.$ac_ext <<_ACEOF
49548 cat confdefs.h >>conftest.$ac_ext
49549 cat >>conftest.$ac_ext <<_ACEOF
49550 /* end confdefs.h. */
49551 $ac_includes_default
49563 rm -f conftest.$ac_objext
49564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49565 (eval $ac_compile) 2>conftest.er1
49567 grep -v '^ *+' conftest.er1 >conftest.err
49569 cat conftest.err >&5
49570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49571 (exit $ac_status); } &&
49572 { ac_try='test -z "$ac_c_werror_flag"
49573 || test ! -s conftest.err'
49574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49575 (eval $ac_try) 2>&5
49577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49578 (exit $ac_status); }; } &&
49579 { ac_try='test -s conftest.$ac_objext'
49580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49581 (eval $ac_try) 2>&5
49583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49584 (exit $ac_status); }; }; then
49585 ac_cv_type_long=yes
49587 echo "$as_me: failed program was:" >&5
49588 sed 's/^/| /' conftest.$ac_ext >&5
49592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49594 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
49595 echo "${ECHO_T}$ac_cv_type_long" >&6
49597 echo "$as_me:$LINENO: checking size of long" >&5
49598 echo $ECHO_N "checking size of long... $ECHO_C" >&6
49599 if test "${ac_cv_sizeof_long+set}" = set; then
49600 echo $ECHO_N "(cached) $ECHO_C" >&6
49602 if test "$ac_cv_type_long" = yes; then
49603 # The cast to unsigned long works around a bug in the HP C Compiler
49604 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
49605 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
49606 # This bug is HP SR number 8606223364.
49607 if test "$cross_compiling" = yes; then
49608 # Depending upon the size, compute the lo and hi bounds.
49609 cat >conftest.$ac_ext <<_ACEOF
49612 cat confdefs.h >>conftest.$ac_ext
49613 cat >>conftest.$ac_ext <<_ACEOF
49614 /* end confdefs.h. */
49615 $ac_includes_default
49619 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
49626 rm -f conftest.$ac_objext
49627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49628 (eval $ac_compile) 2>conftest.er1
49630 grep -v '^ *+' conftest.er1 >conftest.err
49632 cat conftest.err >&5
49633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49634 (exit $ac_status); } &&
49635 { ac_try='test -z "$ac_c_werror_flag"
49636 || test ! -s conftest.err'
49637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49638 (eval $ac_try) 2>&5
49640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49641 (exit $ac_status); }; } &&
49642 { ac_try='test -s conftest.$ac_objext'
49643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49644 (eval $ac_try) 2>&5
49646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49647 (exit $ac_status); }; }; then
49650 cat >conftest.$ac_ext <<_ACEOF
49653 cat confdefs.h >>conftest.$ac_ext
49654 cat >>conftest.$ac_ext <<_ACEOF
49655 /* end confdefs.h. */
49656 $ac_includes_default
49660 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
49667 rm -f conftest.$ac_objext
49668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49669 (eval $ac_compile) 2>conftest.er1
49671 grep -v '^ *+' conftest.er1 >conftest.err
49673 cat conftest.err >&5
49674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49675 (exit $ac_status); } &&
49676 { ac_try='test -z "$ac_c_werror_flag"
49677 || test ! -s conftest.err'
49678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49679 (eval $ac_try) 2>&5
49681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49682 (exit $ac_status); }; } &&
49683 { ac_try='test -s conftest.$ac_objext'
49684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49685 (eval $ac_try) 2>&5
49687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49688 (exit $ac_status); }; }; then
49689 ac_hi=$ac_mid; break
49691 echo "$as_me: failed program was:" >&5
49692 sed 's/^/| /' conftest.$ac_ext >&5
49694 ac_lo=`expr $ac_mid + 1`
49695 if test $ac_lo -le $ac_mid; then
49699 ac_mid=`expr 2 '*' $ac_mid + 1`
49701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49704 echo "$as_me: failed program was:" >&5
49705 sed 's/^/| /' conftest.$ac_ext >&5
49707 cat >conftest.$ac_ext <<_ACEOF
49710 cat confdefs.h >>conftest.$ac_ext
49711 cat >>conftest.$ac_ext <<_ACEOF
49712 /* end confdefs.h. */
49713 $ac_includes_default
49717 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
49724 rm -f conftest.$ac_objext
49725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49726 (eval $ac_compile) 2>conftest.er1
49728 grep -v '^ *+' conftest.er1 >conftest.err
49730 cat conftest.err >&5
49731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49732 (exit $ac_status); } &&
49733 { ac_try='test -z "$ac_c_werror_flag"
49734 || test ! -s conftest.err'
49735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49736 (eval $ac_try) 2>&5
49738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49739 (exit $ac_status); }; } &&
49740 { ac_try='test -s conftest.$ac_objext'
49741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49742 (eval $ac_try) 2>&5
49744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49745 (exit $ac_status); }; }; then
49748 cat >conftest.$ac_ext <<_ACEOF
49751 cat confdefs.h >>conftest.$ac_ext
49752 cat >>conftest.$ac_ext <<_ACEOF
49753 /* end confdefs.h. */
49754 $ac_includes_default
49758 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
49765 rm -f conftest.$ac_objext
49766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49767 (eval $ac_compile) 2>conftest.er1
49769 grep -v '^ *+' conftest.er1 >conftest.err
49771 cat conftest.err >&5
49772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49773 (exit $ac_status); } &&
49774 { ac_try='test -z "$ac_c_werror_flag"
49775 || test ! -s conftest.err'
49776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49777 (eval $ac_try) 2>&5
49779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49780 (exit $ac_status); }; } &&
49781 { ac_try='test -s conftest.$ac_objext'
49782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49783 (eval $ac_try) 2>&5
49785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49786 (exit $ac_status); }; }; then
49787 ac_lo=$ac_mid; break
49789 echo "$as_me: failed program was:" >&5
49790 sed 's/^/| /' conftest.$ac_ext >&5
49792 ac_hi=`expr '(' $ac_mid ')' - 1`
49793 if test $ac_mid -le $ac_hi; then
49797 ac_mid=`expr 2 '*' $ac_mid`
49799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49802 echo "$as_me: failed program was:" >&5
49803 sed 's/^/| /' conftest.$ac_ext >&5
49807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49810 # Binary search between lo and hi bounds.
49811 while test "x$ac_lo" != "x$ac_hi"; do
49812 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
49813 cat >conftest.$ac_ext <<_ACEOF
49816 cat confdefs.h >>conftest.$ac_ext
49817 cat >>conftest.$ac_ext <<_ACEOF
49818 /* end confdefs.h. */
49819 $ac_includes_default
49823 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
49830 rm -f conftest.$ac_objext
49831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49832 (eval $ac_compile) 2>conftest.er1
49834 grep -v '^ *+' conftest.er1 >conftest.err
49836 cat conftest.err >&5
49837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49838 (exit $ac_status); } &&
49839 { ac_try='test -z "$ac_c_werror_flag"
49840 || test ! -s conftest.err'
49841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49842 (eval $ac_try) 2>&5
49844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49845 (exit $ac_status); }; } &&
49846 { ac_try='test -s conftest.$ac_objext'
49847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49848 (eval $ac_try) 2>&5
49850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49851 (exit $ac_status); }; }; then
49854 echo "$as_me: failed program was:" >&5
49855 sed 's/^/| /' conftest.$ac_ext >&5
49857 ac_lo=`expr '(' $ac_mid ')' + 1`
49859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49862 ?*) ac_cv_sizeof_long=$ac_lo;;
49863 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
49864 See \`config.log' for more details." >&5
49865 echo "$as_me: error: cannot compute sizeof (long), 77
49866 See \`config.log' for more details." >&2;}
49867 { (exit 1); exit 1; }; } ;;
49870 if test "$cross_compiling" = yes; then
49871 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
49872 See \`config.log' for more details." >&5
49873 echo "$as_me: error: cannot run test program while cross compiling
49874 See \`config.log' for more details." >&2;}
49875 { (exit 1); exit 1; }; }
49877 cat >conftest.$ac_ext <<_ACEOF
49880 cat confdefs.h >>conftest.$ac_ext
49881 cat >>conftest.$ac_ext <<_ACEOF
49882 /* end confdefs.h. */
49883 $ac_includes_default
49884 long longval () { return (long) (sizeof (long)); }
49885 unsigned long ulongval () { return (long) (sizeof (long)); }
49887 #include <stdlib.h>
49892 FILE *f = fopen ("conftest.val", "w");
49895 if (((long) (sizeof (long))) < 0)
49897 long i = longval ();
49898 if (i != ((long) (sizeof (long))))
49900 fprintf (f, "%ld\n", i);
49904 unsigned long i = ulongval ();
49905 if (i != ((long) (sizeof (long))))
49907 fprintf (f, "%lu\n", i);
49909 exit (ferror (f) || fclose (f) != 0);
49915 rm -f conftest$ac_exeext
49916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49917 (eval $ac_link) 2>&5
49919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49920 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49922 (eval $ac_try) 2>&5
49924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49925 (exit $ac_status); }; }; then
49926 ac_cv_sizeof_long=`cat conftest.val`
49928 echo "$as_me: program exited with status $ac_status" >&5
49929 echo "$as_me: failed program was:" >&5
49930 sed 's/^/| /' conftest.$ac_ext >&5
49932 ( exit $ac_status )
49933 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
49934 See \`config.log' for more details." >&5
49935 echo "$as_me: error: cannot compute sizeof (long), 77
49936 See \`config.log' for more details." >&2;}
49937 { (exit 1); exit 1; }; }
49939 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49944 ac_cv_sizeof_long=0
49947 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
49948 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
49949 cat >>confdefs.h <<_ACEOF
49950 #define SIZEOF_LONG $ac_cv_sizeof_long
49954 echo "$as_me:$LINENO: checking for wchar_t" >&5
49955 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
49956 if test "${ac_cv_type_wchar_t+set}" = set; then
49957 echo $ECHO_N "(cached) $ECHO_C" >&6
49959 cat >conftest.$ac_ext <<_ACEOF
49962 cat confdefs.h >>conftest.$ac_ext
49963 cat >>conftest.$ac_ext <<_ACEOF
49964 /* end confdefs.h. */
49965 $ac_includes_default
49971 if (sizeof (wchar_t))
49977 rm -f conftest.$ac_objext
49978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49979 (eval $ac_compile) 2>conftest.er1
49981 grep -v '^ *+' conftest.er1 >conftest.err
49983 cat conftest.err >&5
49984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49985 (exit $ac_status); } &&
49986 { ac_try='test -z "$ac_c_werror_flag"
49987 || test ! -s conftest.err'
49988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49989 (eval $ac_try) 2>&5
49991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49992 (exit $ac_status); }; } &&
49993 { ac_try='test -s conftest.$ac_objext'
49994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49995 (eval $ac_try) 2>&5
49997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49998 (exit $ac_status); }; }; then
49999 ac_cv_type_wchar_t=yes
50001 echo "$as_me: failed program was:" >&5
50002 sed 's/^/| /' conftest.$ac_ext >&5
50004 ac_cv_type_wchar_t=no
50006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50008 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
50009 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
50011 echo "$as_me:$LINENO: checking size of wchar_t" >&5
50012 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
50013 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
50014 echo $ECHO_N "(cached) $ECHO_C" >&6
50016 if test "$ac_cv_type_wchar_t" = yes; then
50017 # The cast to unsigned long works around a bug in the HP C Compiler
50018 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
50019 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
50020 # This bug is HP SR number 8606223364.
50021 if test "$cross_compiling" = yes; then
50022 # Depending upon the size, compute the lo and hi bounds.
50023 cat >conftest.$ac_ext <<_ACEOF
50026 cat confdefs.h >>conftest.$ac_ext
50027 cat >>conftest.$ac_ext <<_ACEOF
50028 /* end confdefs.h. */
50029 $ac_includes_default
50033 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
50040 rm -f conftest.$ac_objext
50041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50042 (eval $ac_compile) 2>conftest.er1
50044 grep -v '^ *+' conftest.er1 >conftest.err
50046 cat conftest.err >&5
50047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50048 (exit $ac_status); } &&
50049 { ac_try='test -z "$ac_c_werror_flag"
50050 || test ! -s conftest.err'
50051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50052 (eval $ac_try) 2>&5
50054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50055 (exit $ac_status); }; } &&
50056 { ac_try='test -s conftest.$ac_objext'
50057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50058 (eval $ac_try) 2>&5
50060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50061 (exit $ac_status); }; }; then
50064 cat >conftest.$ac_ext <<_ACEOF
50067 cat confdefs.h >>conftest.$ac_ext
50068 cat >>conftest.$ac_ext <<_ACEOF
50069 /* end confdefs.h. */
50070 $ac_includes_default
50074 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
50081 rm -f conftest.$ac_objext
50082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50083 (eval $ac_compile) 2>conftest.er1
50085 grep -v '^ *+' conftest.er1 >conftest.err
50087 cat conftest.err >&5
50088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50089 (exit $ac_status); } &&
50090 { ac_try='test -z "$ac_c_werror_flag"
50091 || test ! -s conftest.err'
50092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50093 (eval $ac_try) 2>&5
50095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50096 (exit $ac_status); }; } &&
50097 { ac_try='test -s conftest.$ac_objext'
50098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50099 (eval $ac_try) 2>&5
50101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50102 (exit $ac_status); }; }; then
50103 ac_hi=$ac_mid; break
50105 echo "$as_me: failed program was:" >&5
50106 sed 's/^/| /' conftest.$ac_ext >&5
50108 ac_lo=`expr $ac_mid + 1`
50109 if test $ac_lo -le $ac_mid; then
50113 ac_mid=`expr 2 '*' $ac_mid + 1`
50115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50118 echo "$as_me: failed program was:" >&5
50119 sed 's/^/| /' conftest.$ac_ext >&5
50121 cat >conftest.$ac_ext <<_ACEOF
50124 cat confdefs.h >>conftest.$ac_ext
50125 cat >>conftest.$ac_ext <<_ACEOF
50126 /* end confdefs.h. */
50127 $ac_includes_default
50131 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
50138 rm -f conftest.$ac_objext
50139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50140 (eval $ac_compile) 2>conftest.er1
50142 grep -v '^ *+' conftest.er1 >conftest.err
50144 cat conftest.err >&5
50145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50146 (exit $ac_status); } &&
50147 { ac_try='test -z "$ac_c_werror_flag"
50148 || test ! -s conftest.err'
50149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50150 (eval $ac_try) 2>&5
50152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50153 (exit $ac_status); }; } &&
50154 { ac_try='test -s conftest.$ac_objext'
50155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50156 (eval $ac_try) 2>&5
50158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50159 (exit $ac_status); }; }; then
50162 cat >conftest.$ac_ext <<_ACEOF
50165 cat confdefs.h >>conftest.$ac_ext
50166 cat >>conftest.$ac_ext <<_ACEOF
50167 /* end confdefs.h. */
50168 $ac_includes_default
50172 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
50179 rm -f conftest.$ac_objext
50180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50181 (eval $ac_compile) 2>conftest.er1
50183 grep -v '^ *+' conftest.er1 >conftest.err
50185 cat conftest.err >&5
50186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50187 (exit $ac_status); } &&
50188 { ac_try='test -z "$ac_c_werror_flag"
50189 || test ! -s conftest.err'
50190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50191 (eval $ac_try) 2>&5
50193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50194 (exit $ac_status); }; } &&
50195 { ac_try='test -s conftest.$ac_objext'
50196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50197 (eval $ac_try) 2>&5
50199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50200 (exit $ac_status); }; }; then
50201 ac_lo=$ac_mid; break
50203 echo "$as_me: failed program was:" >&5
50204 sed 's/^/| /' conftest.$ac_ext >&5
50206 ac_hi=`expr '(' $ac_mid ')' - 1`
50207 if test $ac_mid -le $ac_hi; then
50211 ac_mid=`expr 2 '*' $ac_mid`
50213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50216 echo "$as_me: failed program was:" >&5
50217 sed 's/^/| /' conftest.$ac_ext >&5
50221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50224 # Binary search between lo and hi bounds.
50225 while test "x$ac_lo" != "x$ac_hi"; do
50226 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
50227 cat >conftest.$ac_ext <<_ACEOF
50230 cat confdefs.h >>conftest.$ac_ext
50231 cat >>conftest.$ac_ext <<_ACEOF
50232 /* end confdefs.h. */
50233 $ac_includes_default
50237 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
50244 rm -f conftest.$ac_objext
50245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50246 (eval $ac_compile) 2>conftest.er1
50248 grep -v '^ *+' conftest.er1 >conftest.err
50250 cat conftest.err >&5
50251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50252 (exit $ac_status); } &&
50253 { ac_try='test -z "$ac_c_werror_flag"
50254 || test ! -s conftest.err'
50255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50256 (eval $ac_try) 2>&5
50258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50259 (exit $ac_status); }; } &&
50260 { ac_try='test -s conftest.$ac_objext'
50261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50262 (eval $ac_try) 2>&5
50264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50265 (exit $ac_status); }; }; then
50268 echo "$as_me: failed program was:" >&5
50269 sed 's/^/| /' conftest.$ac_ext >&5
50271 ac_lo=`expr '(' $ac_mid ')' + 1`
50273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50276 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
50277 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
50278 See \`config.log' for more details." >&5
50279 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
50280 See \`config.log' for more details." >&2;}
50281 { (exit 1); exit 1; }; } ;;
50284 if test "$cross_compiling" = yes; then
50285 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
50286 See \`config.log' for more details." >&5
50287 echo "$as_me: error: cannot run test program while cross compiling
50288 See \`config.log' for more details." >&2;}
50289 { (exit 1); exit 1; }; }
50291 cat >conftest.$ac_ext <<_ACEOF
50294 cat confdefs.h >>conftest.$ac_ext
50295 cat >>conftest.$ac_ext <<_ACEOF
50296 /* end confdefs.h. */
50297 $ac_includes_default
50298 long longval () { return (long) (sizeof (wchar_t)); }
50299 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
50301 #include <stdlib.h>
50306 FILE *f = fopen ("conftest.val", "w");
50309 if (((long) (sizeof (wchar_t))) < 0)
50311 long i = longval ();
50312 if (i != ((long) (sizeof (wchar_t))))
50314 fprintf (f, "%ld\n", i);
50318 unsigned long i = ulongval ();
50319 if (i != ((long) (sizeof (wchar_t))))
50321 fprintf (f, "%lu\n", i);
50323 exit (ferror (f) || fclose (f) != 0);
50329 rm -f conftest$ac_exeext
50330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50331 (eval $ac_link) 2>&5
50333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50334 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50336 (eval $ac_try) 2>&5
50338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50339 (exit $ac_status); }; }; then
50340 ac_cv_sizeof_wchar_t=`cat conftest.val`
50342 echo "$as_me: program exited with status $ac_status" >&5
50343 echo "$as_me: failed program was:" >&5
50344 sed 's/^/| /' conftest.$ac_ext >&5
50346 ( exit $ac_status )
50347 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
50348 See \`config.log' for more details." >&5
50349 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
50350 See \`config.log' for more details." >&2;}
50351 { (exit 1); exit 1; }; }
50353 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50358 ac_cv_sizeof_wchar_t=0
50361 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
50362 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
50363 cat >>confdefs.h <<_ACEOF
50364 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
50369 if test "$ac_cv_sizeof_int" -lt 4 ; then
50370 { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
50371 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
50374 cat >>confdefs.h <<\_ACEOF
50375 #define LBER_INT_T long
50380 cat >>confdefs.h <<\_ACEOF
50381 #define LBER_INT_T int
50387 cat >>confdefs.h <<\_ACEOF
50388 #define LBER_LEN_T long
50392 cat >>confdefs.h <<\_ACEOF
50393 #define LBER_SOCKET_T int
50397 cat >>confdefs.h <<\_ACEOF
50398 #define LBER_TAG_T long
50402 echo "$as_me:$LINENO: checking for working memcmp" >&5
50403 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
50404 if test "${ac_cv_func_memcmp_working+set}" = set; then
50405 echo $ECHO_N "(cached) $ECHO_C" >&6
50407 if test "$cross_compiling" = yes; then
50408 ac_cv_func_memcmp_working=no
50410 cat >conftest.$ac_ext <<_ACEOF
50413 cat confdefs.h >>conftest.$ac_ext
50414 cat >>conftest.$ac_ext <<_ACEOF
50415 /* end confdefs.h. */
50416 $ac_includes_default
50421 /* Some versions of memcmp are not 8-bit clean. */
50422 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
50423 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
50426 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
50427 or more and with at least one buffer not starting on a 4-byte boundary.
50428 William Lewis provided this test program. */
50433 for (i = 0; i < 4; i++)
50437 strcpy (a, "--------01111111");
50438 strcpy (b, "--------10000000");
50439 if (memcmp (a, b, 16) >= 0)
50449 rm -f conftest$ac_exeext
50450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50451 (eval $ac_link) 2>&5
50453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50454 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50456 (eval $ac_try) 2>&5
50458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50459 (exit $ac_status); }; }; then
50460 ac_cv_func_memcmp_working=yes
50462 echo "$as_me: program exited with status $ac_status" >&5
50463 echo "$as_me: failed program was:" >&5
50464 sed 's/^/| /' conftest.$ac_ext >&5
50466 ( exit $ac_status )
50467 ac_cv_func_memcmp_working=no
50469 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50472 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
50473 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
50474 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
50475 "memcmp.$ac_objext" | \
50476 *" memcmp.$ac_objext" | \
50477 "memcmp.$ac_objext "* | \
50478 *" memcmp.$ac_objext "* ) ;;
50479 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
50484 if test $ac_cv_func_memcmp_working = no ; then
50486 cat >>confdefs.h <<\_ACEOF
50487 #define NEED_MEMCMP_REPLACEMENT 1
50493 for ac_func in strftime
50495 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50496 echo "$as_me:$LINENO: checking for $ac_func" >&5
50497 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50498 if eval "test \"\${$as_ac_var+set}\" = set"; then
50499 echo $ECHO_N "(cached) $ECHO_C" >&6
50501 cat >conftest.$ac_ext <<_ACEOF
50504 cat confdefs.h >>conftest.$ac_ext
50505 cat >>conftest.$ac_ext <<_ACEOF
50506 /* end confdefs.h. */
50507 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50508 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50509 #define $ac_func innocuous_$ac_func
50511 /* System header to define __stub macros and hopefully few prototypes,
50512 which can conflict with char $ac_func (); below.
50513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50514 <limits.h> exists even on freestanding compilers. */
50517 # include <limits.h>
50519 # include <assert.h>
50524 /* Override any gcc2 internal prototype to avoid an error. */
50529 /* We use char because int might match the return type of a gcc2
50530 builtin and then its argument prototype would still apply. */
50532 /* The GNU C library defines this for functions which it implements
50533 to always fail with ENOSYS. Some functions are actually named
50534 something starting with __ and the normal name is an alias. */
50535 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50538 char (*f) () = $ac_func;
50547 return f != $ac_func;
50552 rm -f conftest.$ac_objext conftest$ac_exeext
50553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50554 (eval $ac_link) 2>conftest.er1
50556 grep -v '^ *+' conftest.er1 >conftest.err
50558 cat conftest.err >&5
50559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50560 (exit $ac_status); } &&
50561 { ac_try='test -z "$ac_c_werror_flag"
50562 || test ! -s conftest.err'
50563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50564 (eval $ac_try) 2>&5
50566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50567 (exit $ac_status); }; } &&
50568 { ac_try='test -s conftest$ac_exeext'
50569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50570 (eval $ac_try) 2>&5
50572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50573 (exit $ac_status); }; }; then
50574 eval "$as_ac_var=yes"
50576 echo "$as_me: failed program was:" >&5
50577 sed 's/^/| /' conftest.$ac_ext >&5
50579 eval "$as_ac_var=no"
50581 rm -f conftest.err conftest.$ac_objext \
50582 conftest$ac_exeext conftest.$ac_ext
50584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50585 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50586 if test `eval echo '${'$as_ac_var'}'` = yes; then
50587 cat >>confdefs.h <<_ACEOF
50588 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50592 # strftime is in -lintl on SCO UNIX.
50593 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
50594 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
50595 if test "${ac_cv_lib_intl_strftime+set}" = set; then
50596 echo $ECHO_N "(cached) $ECHO_C" >&6
50598 ac_check_lib_save_LIBS=$LIBS
50599 LIBS="-lintl $LIBS"
50600 cat >conftest.$ac_ext <<_ACEOF
50603 cat confdefs.h >>conftest.$ac_ext
50604 cat >>conftest.$ac_ext <<_ACEOF
50605 /* end confdefs.h. */
50607 /* Override any gcc2 internal prototype to avoid an error. */
50611 /* We use char because int might match the return type of a gcc2
50612 builtin and then its argument prototype would still apply. */
50622 rm -f conftest.$ac_objext conftest$ac_exeext
50623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50624 (eval $ac_link) 2>conftest.er1
50626 grep -v '^ *+' conftest.er1 >conftest.err
50628 cat conftest.err >&5
50629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50630 (exit $ac_status); } &&
50631 { ac_try='test -z "$ac_c_werror_flag"
50632 || test ! -s conftest.err'
50633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50634 (eval $ac_try) 2>&5
50636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50637 (exit $ac_status); }; } &&
50638 { ac_try='test -s conftest$ac_exeext'
50639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50640 (eval $ac_try) 2>&5
50642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50643 (exit $ac_status); }; }; then
50644 ac_cv_lib_intl_strftime=yes
50646 echo "$as_me: failed program was:" >&5
50647 sed 's/^/| /' conftest.$ac_ext >&5
50649 ac_cv_lib_intl_strftime=no
50651 rm -f conftest.err conftest.$ac_objext \
50652 conftest$ac_exeext conftest.$ac_ext
50653 LIBS=$ac_check_lib_save_LIBS
50655 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
50656 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
50657 if test $ac_cv_lib_intl_strftime = yes; then
50658 cat >>confdefs.h <<\_ACEOF
50659 #define HAVE_STRFTIME 1
50662 LIBS="-lintl $LIBS"
50669 echo "$as_me:$LINENO: checking for inet_aton()" >&5
50670 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
50671 if test "${ol_cv_func_inet_aton+set}" = set; then
50672 echo $ECHO_N "(cached) $ECHO_C" >&6
50674 cat >conftest.$ac_ext <<_ACEOF
50677 cat confdefs.h >>conftest.$ac_ext
50678 cat >>conftest.$ac_ext <<_ACEOF
50679 /* end confdefs.h. */
50681 #ifdef HAVE_SYS_TYPES_H
50682 # include <sys/types.h>
50684 #ifdef HAVE_SYS_SOCKET_H
50685 # include <sys/socket.h>
50686 # ifdef HAVE_SYS_SELECT_H
50687 # include <sys/select.h>
50689 # include <netinet/in.h>
50690 # ifdef HAVE_ARPA_INET_H
50691 # include <arpa/inet.h>
50699 int rc = inet_aton( "255.255.255.255", &in );
50704 rm -f conftest.$ac_objext conftest$ac_exeext
50705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50706 (eval $ac_link) 2>conftest.er1
50708 grep -v '^ *+' conftest.er1 >conftest.err
50710 cat conftest.err >&5
50711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50712 (exit $ac_status); } &&
50713 { ac_try='test -z "$ac_c_werror_flag"
50714 || test ! -s conftest.err'
50715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50716 (eval $ac_try) 2>&5
50718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50719 (exit $ac_status); }; } &&
50720 { ac_try='test -s conftest$ac_exeext'
50721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50722 (eval $ac_try) 2>&5
50724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50725 (exit $ac_status); }; }; then
50726 ol_cv_func_inet_aton=yes
50728 echo "$as_me: failed program was:" >&5
50729 sed 's/^/| /' conftest.$ac_ext >&5
50731 ol_cv_func_inet_aton=no
50733 rm -f conftest.err conftest.$ac_objext \
50734 conftest$ac_exeext conftest.$ac_ext
50736 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
50737 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
50738 if test $ol_cv_func_inet_aton != no; then
50740 cat >>confdefs.h <<\_ACEOF
50741 #define HAVE_INET_ATON 1
50747 echo "$as_me:$LINENO: checking for _spawnlp" >&5
50748 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
50749 if test "${ac_cv_func__spawnlp+set}" = set; then
50750 echo $ECHO_N "(cached) $ECHO_C" >&6
50752 cat >conftest.$ac_ext <<_ACEOF
50755 cat confdefs.h >>conftest.$ac_ext
50756 cat >>conftest.$ac_ext <<_ACEOF
50757 /* end confdefs.h. */
50758 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
50759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50760 #define _spawnlp innocuous__spawnlp
50762 /* System header to define __stub macros and hopefully few prototypes,
50763 which can conflict with char _spawnlp (); below.
50764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50765 <limits.h> exists even on freestanding compilers. */
50768 # include <limits.h>
50770 # include <assert.h>
50775 /* Override any gcc2 internal prototype to avoid an error. */
50780 /* We use char because int might match the return type of a gcc2
50781 builtin and then its argument prototype would still apply. */
50783 /* The GNU C library defines this for functions which it implements
50784 to always fail with ENOSYS. Some functions are actually named
50785 something starting with __ and the normal name is an alias. */
50786 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
50789 char (*f) () = _spawnlp;
50798 return f != _spawnlp;
50803 rm -f conftest.$ac_objext conftest$ac_exeext
50804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50805 (eval $ac_link) 2>conftest.er1
50807 grep -v '^ *+' conftest.er1 >conftest.err
50809 cat conftest.err >&5
50810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50811 (exit $ac_status); } &&
50812 { ac_try='test -z "$ac_c_werror_flag"
50813 || test ! -s conftest.err'
50814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50815 (eval $ac_try) 2>&5
50817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50818 (exit $ac_status); }; } &&
50819 { ac_try='test -s conftest$ac_exeext'
50820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50821 (eval $ac_try) 2>&5
50823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50824 (exit $ac_status); }; }; then
50825 ac_cv_func__spawnlp=yes
50827 echo "$as_me: failed program was:" >&5
50828 sed 's/^/| /' conftest.$ac_ext >&5
50830 ac_cv_func__spawnlp=no
50832 rm -f conftest.err conftest.$ac_objext \
50833 conftest$ac_exeext conftest.$ac_ext
50835 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
50836 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
50837 if test $ac_cv_func__spawnlp = yes; then
50839 cat >>confdefs.h <<\_ACEOF
50840 #define HAVE_SPAWNLP 1
50846 echo "$as_me:$LINENO: checking for _snprintf" >&5
50847 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
50848 if test "${ac_cv_func__snprintf+set}" = set; then
50849 echo $ECHO_N "(cached) $ECHO_C" >&6
50851 cat >conftest.$ac_ext <<_ACEOF
50854 cat confdefs.h >>conftest.$ac_ext
50855 cat >>conftest.$ac_ext <<_ACEOF
50856 /* end confdefs.h. */
50857 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
50858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50859 #define _snprintf innocuous__snprintf
50861 /* System header to define __stub macros and hopefully few prototypes,
50862 which can conflict with char _snprintf (); below.
50863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50864 <limits.h> exists even on freestanding compilers. */
50867 # include <limits.h>
50869 # include <assert.h>
50874 /* Override any gcc2 internal prototype to avoid an error. */
50879 /* We use char because int might match the return type of a gcc2
50880 builtin and then its argument prototype would still apply. */
50882 /* The GNU C library defines this for functions which it implements
50883 to always fail with ENOSYS. Some functions are actually named
50884 something starting with __ and the normal name is an alias. */
50885 #if defined (__stub__snprintf) || defined (__stub____snprintf)
50888 char (*f) () = _snprintf;
50897 return f != _snprintf;
50902 rm -f conftest.$ac_objext conftest$ac_exeext
50903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50904 (eval $ac_link) 2>conftest.er1
50906 grep -v '^ *+' conftest.er1 >conftest.err
50908 cat conftest.err >&5
50909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50910 (exit $ac_status); } &&
50911 { ac_try='test -z "$ac_c_werror_flag"
50912 || test ! -s conftest.err'
50913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50914 (eval $ac_try) 2>&5
50916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50917 (exit $ac_status); }; } &&
50918 { ac_try='test -s conftest$ac_exeext'
50919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50920 (eval $ac_try) 2>&5
50922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50923 (exit $ac_status); }; }; then
50924 ac_cv_func__snprintf=yes
50926 echo "$as_me: failed program was:" >&5
50927 sed 's/^/| /' conftest.$ac_ext >&5
50929 ac_cv_func__snprintf=no
50931 rm -f conftest.err conftest.$ac_objext \
50932 conftest$ac_exeext conftest.$ac_ext
50934 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
50935 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
50936 if test $ac_cv_func__snprintf = yes; then
50937 ac_cv_func_snprintf=yes
50939 cat >>confdefs.h <<\_ACEOF
50940 #define snprintf _snprintf
50947 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
50948 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
50949 if test "${ac_cv_func__vsnprintf+set}" = set; then
50950 echo $ECHO_N "(cached) $ECHO_C" >&6
50952 cat >conftest.$ac_ext <<_ACEOF
50955 cat confdefs.h >>conftest.$ac_ext
50956 cat >>conftest.$ac_ext <<_ACEOF
50957 /* end confdefs.h. */
50958 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
50959 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50960 #define _vsnprintf innocuous__vsnprintf
50962 /* System header to define __stub macros and hopefully few prototypes,
50963 which can conflict with char _vsnprintf (); below.
50964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50965 <limits.h> exists even on freestanding compilers. */
50968 # include <limits.h>
50970 # include <assert.h>
50975 /* Override any gcc2 internal prototype to avoid an error. */
50980 /* We use char because int might match the return type of a gcc2
50981 builtin and then its argument prototype would still apply. */
50982 char _vsnprintf ();
50983 /* The GNU C library defines this for functions which it implements
50984 to always fail with ENOSYS. Some functions are actually named
50985 something starting with __ and the normal name is an alias. */
50986 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
50989 char (*f) () = _vsnprintf;
50998 return f != _vsnprintf;
51003 rm -f conftest.$ac_objext conftest$ac_exeext
51004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51005 (eval $ac_link) 2>conftest.er1
51007 grep -v '^ *+' conftest.er1 >conftest.err
51009 cat conftest.err >&5
51010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51011 (exit $ac_status); } &&
51012 { ac_try='test -z "$ac_c_werror_flag"
51013 || test ! -s conftest.err'
51014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51015 (eval $ac_try) 2>&5
51017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51018 (exit $ac_status); }; } &&
51019 { ac_try='test -s conftest$ac_exeext'
51020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51021 (eval $ac_try) 2>&5
51023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51024 (exit $ac_status); }; }; then
51025 ac_cv_func__vsnprintf=yes
51027 echo "$as_me: failed program was:" >&5
51028 sed 's/^/| /' conftest.$ac_ext >&5
51030 ac_cv_func__vsnprintf=no
51032 rm -f conftest.err conftest.$ac_objext \
51033 conftest$ac_exeext conftest.$ac_ext
51035 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
51036 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
51037 if test $ac_cv_func__vsnprintf = yes; then
51038 ac_cv_func_vsnprintf=yes
51040 cat >>confdefs.h <<\_ACEOF
51041 #define vsnprintf _vsnprintf
51049 for ac_func in vprintf
51051 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51052 echo "$as_me:$LINENO: checking for $ac_func" >&5
51053 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51054 if eval "test \"\${$as_ac_var+set}\" = set"; then
51055 echo $ECHO_N "(cached) $ECHO_C" >&6
51057 cat >conftest.$ac_ext <<_ACEOF
51060 cat confdefs.h >>conftest.$ac_ext
51061 cat >>conftest.$ac_ext <<_ACEOF
51062 /* end confdefs.h. */
51063 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51064 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51065 #define $ac_func innocuous_$ac_func
51067 /* System header to define __stub macros and hopefully few prototypes,
51068 which can conflict with char $ac_func (); below.
51069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51070 <limits.h> exists even on freestanding compilers. */
51073 # include <limits.h>
51075 # include <assert.h>
51080 /* Override any gcc2 internal prototype to avoid an error. */
51085 /* We use char because int might match the return type of a gcc2
51086 builtin and then its argument prototype would still apply. */
51088 /* The GNU C library defines this for functions which it implements
51089 to always fail with ENOSYS. Some functions are actually named
51090 something starting with __ and the normal name is an alias. */
51091 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51094 char (*f) () = $ac_func;
51103 return f != $ac_func;
51108 rm -f conftest.$ac_objext conftest$ac_exeext
51109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51110 (eval $ac_link) 2>conftest.er1
51112 grep -v '^ *+' conftest.er1 >conftest.err
51114 cat conftest.err >&5
51115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51116 (exit $ac_status); } &&
51117 { ac_try='test -z "$ac_c_werror_flag"
51118 || test ! -s conftest.err'
51119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51120 (eval $ac_try) 2>&5
51122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51123 (exit $ac_status); }; } &&
51124 { ac_try='test -s conftest$ac_exeext'
51125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51126 (eval $ac_try) 2>&5
51128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51129 (exit $ac_status); }; }; then
51130 eval "$as_ac_var=yes"
51132 echo "$as_me: failed program was:" >&5
51133 sed 's/^/| /' conftest.$ac_ext >&5
51135 eval "$as_ac_var=no"
51137 rm -f conftest.err conftest.$ac_objext \
51138 conftest$ac_exeext conftest.$ac_ext
51140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51141 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51142 if test `eval echo '${'$as_ac_var'}'` = yes; then
51143 cat >>confdefs.h <<_ACEOF
51144 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51147 echo "$as_me:$LINENO: checking for _doprnt" >&5
51148 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
51149 if test "${ac_cv_func__doprnt+set}" = set; then
51150 echo $ECHO_N "(cached) $ECHO_C" >&6
51152 cat >conftest.$ac_ext <<_ACEOF
51155 cat confdefs.h >>conftest.$ac_ext
51156 cat >>conftest.$ac_ext <<_ACEOF
51157 /* end confdefs.h. */
51158 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
51159 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51160 #define _doprnt innocuous__doprnt
51162 /* System header to define __stub macros and hopefully few prototypes,
51163 which can conflict with char _doprnt (); below.
51164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51165 <limits.h> exists even on freestanding compilers. */
51168 # include <limits.h>
51170 # include <assert.h>
51175 /* Override any gcc2 internal prototype to avoid an error. */
51180 /* We use char because int might match the return type of a gcc2
51181 builtin and then its argument prototype would still apply. */
51183 /* The GNU C library defines this for functions which it implements
51184 to always fail with ENOSYS. Some functions are actually named
51185 something starting with __ and the normal name is an alias. */
51186 #if defined (__stub__doprnt) || defined (__stub____doprnt)
51189 char (*f) () = _doprnt;
51198 return f != _doprnt;
51203 rm -f conftest.$ac_objext conftest$ac_exeext
51204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51205 (eval $ac_link) 2>conftest.er1
51207 grep -v '^ *+' conftest.er1 >conftest.err
51209 cat conftest.err >&5
51210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51211 (exit $ac_status); } &&
51212 { ac_try='test -z "$ac_c_werror_flag"
51213 || test ! -s conftest.err'
51214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51215 (eval $ac_try) 2>&5
51217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51218 (exit $ac_status); }; } &&
51219 { ac_try='test -s conftest$ac_exeext'
51220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51221 (eval $ac_try) 2>&5
51223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51224 (exit $ac_status); }; }; then
51225 ac_cv_func__doprnt=yes
51227 echo "$as_me: failed program was:" >&5
51228 sed 's/^/| /' conftest.$ac_ext >&5
51230 ac_cv_func__doprnt=no
51232 rm -f conftest.err conftest.$ac_objext \
51233 conftest$ac_exeext conftest.$ac_ext
51235 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
51236 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
51237 if test $ac_cv_func__doprnt = yes; then
51239 cat >>confdefs.h <<\_ACEOF
51240 #define HAVE_DOPRNT 1
51250 if test $ac_cv_func_vprintf = yes ; then
51253 for ac_func in snprintf vsnprintf
51255 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51256 echo "$as_me:$LINENO: checking for $ac_func" >&5
51257 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51258 if eval "test \"\${$as_ac_var+set}\" = set"; then
51259 echo $ECHO_N "(cached) $ECHO_C" >&6
51261 cat >conftest.$ac_ext <<_ACEOF
51264 cat confdefs.h >>conftest.$ac_ext
51265 cat >>conftest.$ac_ext <<_ACEOF
51266 /* end confdefs.h. */
51267 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51268 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51269 #define $ac_func innocuous_$ac_func
51271 /* System header to define __stub macros and hopefully few prototypes,
51272 which can conflict with char $ac_func (); below.
51273 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51274 <limits.h> exists even on freestanding compilers. */
51277 # include <limits.h>
51279 # include <assert.h>
51284 /* Override any gcc2 internal prototype to avoid an error. */
51289 /* We use char because int might match the return type of a gcc2
51290 builtin and then its argument prototype would still apply. */
51292 /* The GNU C library defines this for functions which it implements
51293 to always fail with ENOSYS. Some functions are actually named
51294 something starting with __ and the normal name is an alias. */
51295 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51298 char (*f) () = $ac_func;
51307 return f != $ac_func;
51312 rm -f conftest.$ac_objext conftest$ac_exeext
51313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51314 (eval $ac_link) 2>conftest.er1
51316 grep -v '^ *+' conftest.er1 >conftest.err
51318 cat conftest.err >&5
51319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51320 (exit $ac_status); } &&
51321 { ac_try='test -z "$ac_c_werror_flag"
51322 || test ! -s conftest.err'
51323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51324 (eval $ac_try) 2>&5
51326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51327 (exit $ac_status); }; } &&
51328 { ac_try='test -s conftest$ac_exeext'
51329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51330 (eval $ac_try) 2>&5
51332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51333 (exit $ac_status); }; }; then
51334 eval "$as_ac_var=yes"
51336 echo "$as_me: failed program was:" >&5
51337 sed 's/^/| /' conftest.$ac_ext >&5
51339 eval "$as_ac_var=no"
51341 rm -f conftest.err conftest.$ac_objext \
51342 conftest$ac_exeext conftest.$ac_ext
51344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51345 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51346 if test `eval echo '${'$as_ac_var'}'` = yes; then
51347 cat >>confdefs.h <<_ACEOF
51348 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51465 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51466 echo "$as_me:$LINENO: checking for $ac_func" >&5
51467 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51468 if eval "test \"\${$as_ac_var+set}\" = set"; then
51469 echo $ECHO_N "(cached) $ECHO_C" >&6
51471 cat >conftest.$ac_ext <<_ACEOF
51474 cat confdefs.h >>conftest.$ac_ext
51475 cat >>conftest.$ac_ext <<_ACEOF
51476 /* end confdefs.h. */
51477 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51478 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51479 #define $ac_func innocuous_$ac_func
51481 /* System header to define __stub macros and hopefully few prototypes,
51482 which can conflict with char $ac_func (); below.
51483 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51484 <limits.h> exists even on freestanding compilers. */
51487 # include <limits.h>
51489 # include <assert.h>
51494 /* Override any gcc2 internal prototype to avoid an error. */
51499 /* We use char because int might match the return type of a gcc2
51500 builtin and then its argument prototype would still apply. */
51502 /* The GNU C library defines this for functions which it implements
51503 to always fail with ENOSYS. Some functions are actually named
51504 something starting with __ and the normal name is an alias. */
51505 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51508 char (*f) () = $ac_func;
51517 return f != $ac_func;
51522 rm -f conftest.$ac_objext conftest$ac_exeext
51523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51524 (eval $ac_link) 2>conftest.er1
51526 grep -v '^ *+' conftest.er1 >conftest.err
51528 cat conftest.err >&5
51529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51530 (exit $ac_status); } &&
51531 { ac_try='test -z "$ac_c_werror_flag"
51532 || test ! -s conftest.err'
51533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51534 (eval $ac_try) 2>&5
51536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51537 (exit $ac_status); }; } &&
51538 { ac_try='test -s conftest$ac_exeext'
51539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51540 (eval $ac_try) 2>&5
51542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51543 (exit $ac_status); }; }; then
51544 eval "$as_ac_var=yes"
51546 echo "$as_me: failed program was:" >&5
51547 sed 's/^/| /' conftest.$ac_ext >&5
51549 eval "$as_ac_var=no"
51551 rm -f conftest.err conftest.$ac_objext \
51552 conftest$ac_exeext conftest.$ac_ext
51554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51555 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51556 if test `eval echo '${'$as_ac_var'}'` = yes; then
51557 cat >>confdefs.h <<_ACEOF
51558 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51567 for ac_func in getopt getpeereid
51569 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51570 echo "$as_me:$LINENO: checking for $ac_func" >&5
51571 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51572 if eval "test \"\${$as_ac_var+set}\" = set"; then
51573 echo $ECHO_N "(cached) $ECHO_C" >&6
51575 cat >conftest.$ac_ext <<_ACEOF
51578 cat confdefs.h >>conftest.$ac_ext
51579 cat >>conftest.$ac_ext <<_ACEOF
51580 /* end confdefs.h. */
51581 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51582 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51583 #define $ac_func innocuous_$ac_func
51585 /* System header to define __stub macros and hopefully few prototypes,
51586 which can conflict with char $ac_func (); below.
51587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51588 <limits.h> exists even on freestanding compilers. */
51591 # include <limits.h>
51593 # include <assert.h>
51598 /* Override any gcc2 internal prototype to avoid an error. */
51603 /* We use char because int might match the return type of a gcc2
51604 builtin and then its argument prototype would still apply. */
51606 /* The GNU C library defines this for functions which it implements
51607 to always fail with ENOSYS. Some functions are actually named
51608 something starting with __ and the normal name is an alias. */
51609 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51612 char (*f) () = $ac_func;
51621 return f != $ac_func;
51626 rm -f conftest.$ac_objext conftest$ac_exeext
51627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51628 (eval $ac_link) 2>conftest.er1
51630 grep -v '^ *+' conftest.er1 >conftest.err
51632 cat conftest.err >&5
51633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51634 (exit $ac_status); } &&
51635 { ac_try='test -z "$ac_c_werror_flag"
51636 || test ! -s conftest.err'
51637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51638 (eval $ac_try) 2>&5
51640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51641 (exit $ac_status); }; } &&
51642 { ac_try='test -s conftest$ac_exeext'
51643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51644 (eval $ac_try) 2>&5
51646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51647 (exit $ac_status); }; }; then
51648 eval "$as_ac_var=yes"
51650 echo "$as_me: failed program was:" >&5
51651 sed 's/^/| /' conftest.$ac_ext >&5
51653 eval "$as_ac_var=no"
51655 rm -f conftest.err conftest.$ac_objext \
51656 conftest$ac_exeext conftest.$ac_ext
51658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51659 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51660 if test `eval echo '${'$as_ac_var'}'` = yes; then
51661 cat >>confdefs.h <<_ACEOF
51662 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51667 "$ac_func.$ac_objext" | \
51668 *" $ac_func.$ac_objext" | \
51669 "$ac_func.$ac_objext "* | \
51670 *" $ac_func.$ac_objext "* ) ;;
51671 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
51679 if test "$ac_cv_func_getopt" != yes; then
51680 LIBSRCS="$LIBSRCS getopt.c"
51682 if test "$ac_cv_func_getpeereid" != yes; then
51683 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
51684 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
51685 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
51686 echo $ECHO_N "(cached) $ECHO_C" >&6
51688 cat >conftest.$ac_ext <<_ACEOF
51691 cat confdefs.h >>conftest.$ac_ext
51692 cat >>conftest.$ac_ext <<_ACEOF
51693 /* end confdefs.h. */
51694 $ac_includes_default
51695 #ifdef HAVE_SYS_SOCKET_H
51696 #include <sys/socket.h>
51702 static struct msghdr ac_aggr;
51703 if (ac_aggr.msg_accrightslen)
51709 rm -f conftest.$ac_objext
51710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51711 (eval $ac_compile) 2>conftest.er1
51713 grep -v '^ *+' conftest.er1 >conftest.err
51715 cat conftest.err >&5
51716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51717 (exit $ac_status); } &&
51718 { ac_try='test -z "$ac_c_werror_flag"
51719 || test ! -s conftest.err'
51720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51721 (eval $ac_try) 2>&5
51723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51724 (exit $ac_status); }; } &&
51725 { ac_try='test -s conftest.$ac_objext'
51726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51727 (eval $ac_try) 2>&5
51729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51730 (exit $ac_status); }; }; then
51731 ac_cv_member_struct_msghdr_msg_accrightslen=yes
51733 echo "$as_me: failed program was:" >&5
51734 sed 's/^/| /' conftest.$ac_ext >&5
51736 cat >conftest.$ac_ext <<_ACEOF
51739 cat confdefs.h >>conftest.$ac_ext
51740 cat >>conftest.$ac_ext <<_ACEOF
51741 /* end confdefs.h. */
51742 $ac_includes_default
51743 #ifdef HAVE_SYS_SOCKET_H
51744 #include <sys/socket.h>
51750 static struct msghdr ac_aggr;
51751 if (sizeof ac_aggr.msg_accrightslen)
51757 rm -f conftest.$ac_objext
51758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51759 (eval $ac_compile) 2>conftest.er1
51761 grep -v '^ *+' conftest.er1 >conftest.err
51763 cat conftest.err >&5
51764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51765 (exit $ac_status); } &&
51766 { ac_try='test -z "$ac_c_werror_flag"
51767 || test ! -s conftest.err'
51768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51769 (eval $ac_try) 2>&5
51771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51772 (exit $ac_status); }; } &&
51773 { ac_try='test -s conftest.$ac_objext'
51774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51775 (eval $ac_try) 2>&5
51777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51778 (exit $ac_status); }; }; then
51779 ac_cv_member_struct_msghdr_msg_accrightslen=yes
51781 echo "$as_me: failed program was:" >&5
51782 sed 's/^/| /' conftest.$ac_ext >&5
51784 ac_cv_member_struct_msghdr_msg_accrightslen=no
51786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51790 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
51791 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
51792 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
51794 cat >>confdefs.h <<_ACEOF
51795 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
51801 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
51802 echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
51803 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
51804 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
51805 echo $ECHO_N "(cached) $ECHO_C" >&6
51807 cat >conftest.$ac_ext <<_ACEOF
51810 cat confdefs.h >>conftest.$ac_ext
51811 cat >>conftest.$ac_ext <<_ACEOF
51812 /* end confdefs.h. */
51813 $ac_includes_default
51814 #ifdef HAVE_SYS_SOCKET_H
51815 #include <sys/socket.h>
51821 static struct msghdr ac_aggr;
51822 if (ac_aggr.msg_control)
51828 rm -f conftest.$ac_objext
51829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51830 (eval $ac_compile) 2>conftest.er1
51832 grep -v '^ *+' conftest.er1 >conftest.err
51834 cat conftest.err >&5
51835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51836 (exit $ac_status); } &&
51837 { ac_try='test -z "$ac_c_werror_flag"
51838 || test ! -s conftest.err'
51839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51840 (eval $ac_try) 2>&5
51842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51843 (exit $ac_status); }; } &&
51844 { ac_try='test -s conftest.$ac_objext'
51845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51846 (eval $ac_try) 2>&5
51848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51849 (exit $ac_status); }; }; then
51850 ac_cv_member_struct_msghdr_msg_control=yes
51852 echo "$as_me: failed program was:" >&5
51853 sed 's/^/| /' conftest.$ac_ext >&5
51855 cat >conftest.$ac_ext <<_ACEOF
51858 cat confdefs.h >>conftest.$ac_ext
51859 cat >>conftest.$ac_ext <<_ACEOF
51860 /* end confdefs.h. */
51861 $ac_includes_default
51862 #ifdef HAVE_SYS_SOCKET_H
51863 #include <sys/socket.h>
51869 static struct msghdr ac_aggr;
51870 if (sizeof ac_aggr.msg_control)
51876 rm -f conftest.$ac_objext
51877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51878 (eval $ac_compile) 2>conftest.er1
51880 grep -v '^ *+' conftest.er1 >conftest.err
51882 cat conftest.err >&5
51883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51884 (exit $ac_status); } &&
51885 { ac_try='test -z "$ac_c_werror_flag"
51886 || test ! -s conftest.err'
51887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51888 (eval $ac_try) 2>&5
51890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51891 (exit $ac_status); }; } &&
51892 { ac_try='test -s conftest.$ac_objext'
51893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51894 (eval $ac_try) 2>&5
51896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51897 (exit $ac_status); }; }; then
51898 ac_cv_member_struct_msghdr_msg_control=yes
51900 echo "$as_me: failed program was:" >&5
51901 sed 's/^/| /' conftest.$ac_ext >&5
51903 ac_cv_member_struct_msghdr_msg_control=no
51905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51909 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
51910 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
51911 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
51913 cat >>confdefs.h <<_ACEOF
51914 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
51921 LIBSRCS="$LIBSRCS getpeereid.c"
51923 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
51924 if test "$ac_cv_func_snprintf" != yes; then
51926 cat >>confdefs.h <<\_ACEOF
51927 #define snprintf ber_pvt_snprintf
51931 if test "$ac_cv_func_vsnprintf" != yes; then
51933 cat >>confdefs.h <<\_ACEOF
51934 #define vsnprintf ber_pvt_vsnprintf
51941 if test "$ol_enable_slapi" != no ; then
51943 for ac_header in ltdl.h
51945 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
51946 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51947 echo "$as_me:$LINENO: checking for $ac_header" >&5
51948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51950 echo $ECHO_N "(cached) $ECHO_C" >&6
51952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51953 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51955 # Is the header compilable?
51956 echo "$as_me:$LINENO: checking $ac_header usability" >&5
51957 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
51958 cat >conftest.$ac_ext <<_ACEOF
51961 cat confdefs.h >>conftest.$ac_ext
51962 cat >>conftest.$ac_ext <<_ACEOF
51963 /* end confdefs.h. */
51964 $ac_includes_default
51965 #include <$ac_header>
51967 rm -f conftest.$ac_objext
51968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51969 (eval $ac_compile) 2>conftest.er1
51971 grep -v '^ *+' conftest.er1 >conftest.err
51973 cat conftest.err >&5
51974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51975 (exit $ac_status); } &&
51976 { ac_try='test -z "$ac_c_werror_flag"
51977 || test ! -s conftest.err'
51978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51979 (eval $ac_try) 2>&5
51981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51982 (exit $ac_status); }; } &&
51983 { ac_try='test -s conftest.$ac_objext'
51984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51985 (eval $ac_try) 2>&5
51987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51988 (exit $ac_status); }; }; then
51989 ac_header_compiler=yes
51991 echo "$as_me: failed program was:" >&5
51992 sed 's/^/| /' conftest.$ac_ext >&5
51994 ac_header_compiler=no
51996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51997 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
51998 echo "${ECHO_T}$ac_header_compiler" >&6
52000 # Is the header present?
52001 echo "$as_me:$LINENO: checking $ac_header presence" >&5
52002 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
52003 cat >conftest.$ac_ext <<_ACEOF
52006 cat confdefs.h >>conftest.$ac_ext
52007 cat >>conftest.$ac_ext <<_ACEOF
52008 /* end confdefs.h. */
52009 #include <$ac_header>
52011 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
52012 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
52014 grep -v '^ *+' conftest.er1 >conftest.err
52016 cat conftest.err >&5
52017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52018 (exit $ac_status); } >/dev/null; then
52019 if test -s conftest.err; then
52020 ac_cpp_err=$ac_c_preproc_warn_flag
52021 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
52028 if test -z "$ac_cpp_err"; then
52029 ac_header_preproc=yes
52031 echo "$as_me: failed program was:" >&5
52032 sed 's/^/| /' conftest.$ac_ext >&5
52034 ac_header_preproc=no
52036 rm -f conftest.err conftest.$ac_ext
52037 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52038 echo "${ECHO_T}$ac_header_preproc" >&6
52040 # So? What about this header?
52041 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
52043 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
52044 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
52045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
52046 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
52047 ac_header_preproc=yes
52050 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
52051 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
52052 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
52053 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
52054 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
52055 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
52056 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
52057 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
52058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
52059 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
52060 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
52061 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
52064 ## ------------------------------------------ ##
52065 ## Report this to the AC_PACKAGE_NAME lists. ##
52066 ## ------------------------------------------ ##
52069 sed "s/^/$as_me: WARNING: /" >&2
52072 echo "$as_me:$LINENO: checking for $ac_header" >&5
52073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
52074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52075 echo $ECHO_N "(cached) $ECHO_C" >&6
52077 eval "$as_ac_Header=\$ac_header_preproc"
52079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
52080 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
52083 if test `eval echo '${'$as_ac_Header'}'` = yes; then
52084 cat >>confdefs.h <<_ACEOF
52085 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
52093 if test $ac_cv_header_ltdl_h != yes ; then
52094 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
52095 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
52096 { (exit 1); exit 1; }; }
52098 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
52099 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
52100 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
52101 echo $ECHO_N "(cached) $ECHO_C" >&6
52103 ac_check_lib_save_LIBS=$LIBS
52104 LIBS="-lltdl $LIBS"
52105 cat >conftest.$ac_ext <<_ACEOF
52108 cat confdefs.h >>conftest.$ac_ext
52109 cat >>conftest.$ac_ext <<_ACEOF
52110 /* end confdefs.h. */
52112 /* Override any gcc2 internal prototype to avoid an error. */
52116 /* We use char because int might match the return type of a gcc2
52117 builtin and then its argument prototype would still apply. */
52127 rm -f conftest.$ac_objext conftest$ac_exeext
52128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52129 (eval $ac_link) 2>conftest.er1
52131 grep -v '^ *+' conftest.er1 >conftest.err
52133 cat conftest.err >&5
52134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52135 (exit $ac_status); } &&
52136 { ac_try='test -z "$ac_c_werror_flag"
52137 || test ! -s conftest.err'
52138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52139 (eval $ac_try) 2>&5
52141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52142 (exit $ac_status); }; } &&
52143 { ac_try='test -s conftest$ac_exeext'
52144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52145 (eval $ac_try) 2>&5
52147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52148 (exit $ac_status); }; }; then
52149 ac_cv_lib_ltdl_lt_dlinit=yes
52151 echo "$as_me: failed program was:" >&5
52152 sed 's/^/| /' conftest.$ac_ext >&5
52154 ac_cv_lib_ltdl_lt_dlinit=no
52156 rm -f conftest.err conftest.$ac_objext \
52157 conftest$ac_exeext conftest.$ac_ext
52158 LIBS=$ac_check_lib_save_LIBS
52160 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
52161 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
52162 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
52165 LIBSLAPI=libslapi.a
52166 LIBSLAPITOOLS=../libslapi.a
52168 cat >>confdefs.h <<\_ACEOF
52169 #define HAVE_LIBLTDL 1
52174 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
52175 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
52176 { (exit 1); exit 1; }; }
52181 cat >>confdefs.h <<\_ACEOF
52182 #define LDAP_SLAPI 1
52187 if test "$ol_enable_debug" != no ; then
52189 cat >>confdefs.h <<\_ACEOF
52190 #define LDAP_DEBUG 1
52194 if test "$ol_enable_syslog" = yes ; then
52196 cat >>confdefs.h <<\_ACEOF
52197 #define LDAP_SYSLOG 1
52201 if test "$ol_link_kbind" != no ; then
52203 cat >>confdefs.h <<\_ACEOF
52204 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
52208 if test "$ol_enable_proctitle" != no ; then
52210 cat >>confdefs.h <<\_ACEOF
52211 #define LDAP_PROCTITLE 1
52215 if test "$ol_enable_referrals" != no ; then
52217 cat >>confdefs.h <<\_ACEOF
52218 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
52222 if test "$ol_enable_local" != no; then
52224 cat >>confdefs.h <<\_ACEOF
52225 #define LDAP_PF_LOCAL 1
52229 if test "$ol_link_ipv6" != no; then
52231 cat >>confdefs.h <<\_ACEOF
52232 #define LDAP_PF_INET6 1
52236 if test "$ol_enable_cleartext" != no ; then
52238 cat >>confdefs.h <<\_ACEOF
52239 #define SLAPD_CLEARTEXT 1
52243 if test "$ol_enable_crypt" != no ; then
52245 cat >>confdefs.h <<\_ACEOF
52246 #define SLAPD_CRYPT 1
52250 if test "$ol_link_spasswd" != no ; then
52252 cat >>confdefs.h <<\_ACEOF
52253 #define SLAPD_SPASSWD 1
52257 if test "$ol_enable_multimaster" != no ; then
52259 cat >>confdefs.h <<\_ACEOF
52260 #define SLAPD_MULTIMASTER 1
52264 if test "$ol_enable_rlookups" != no ; then
52266 cat >>confdefs.h <<\_ACEOF
52267 #define SLAPD_RLOOKUPS 1
52271 if test "$ol_enable_aci" != no ; then
52273 cat >>confdefs.h <<\_ACEOF
52274 #define SLAPD_ACI_ENABLED 1
52279 if test "$ol_link_modules" != no ; then
52281 cat >>confdefs.h <<\_ACEOF
52282 #define SLAPD_MODULES 1
52286 SLAPD_MODULES_LDFLAGS="-dlopen self"
52290 cat >>confdefs.h <<\_ACEOF
52291 #define SLAPD_MOD_STATIC 1
52295 cat >>confdefs.h <<\_ACEOF
52296 #define SLAPD_MOD_DYNAMIC 2
52300 if test "$ol_enable_bdb" != no ; then
52302 BUILD_BDB=$ol_enable_bdb
52303 if test "$ol_enable_bdb" = mod ; then
52304 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
52305 MFLAG=SLAPD_MOD_DYNAMIC
52307 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
52308 MFLAG=SLAPD_MOD_STATIC
52311 cat >>confdefs.h <<_ACEOF
52312 #define SLAPD_BDB $MFLAG
52317 if test "$ol_enable_dnssrv" != no ; then
52319 BUILD_DNSSRV=$ol_enable_dnssrv
52320 if test "$ol_enable_dnssrv" = mod ; then
52321 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
52322 MFLAG=SLAPD_MOD_DYNAMIC
52324 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
52325 MFLAG=SLAPD_MOD_STATIC
52328 cat >>confdefs.h <<_ACEOF
52329 #define SLAPD_DNSSRV $MFLAG
52334 if test "$ol_enable_hdb" != no ; then
52336 BUILD_HDB=$ol_enable_hdb
52337 if test "$ol_enable_hdb" = mod ; then
52338 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
52339 MFLAG=SLAPD_MOD_DYNAMIC
52341 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
52342 MFLAG=SLAPD_MOD_STATIC
52345 cat >>confdefs.h <<_ACEOF
52346 #define SLAPD_HDB $MFLAG
52351 if test "$ol_enable_ldap" != no ; then
52353 BUILD_LDAP=$ol_enable_ldap
52354 if test "$ol_enable_ldap" = mod ; then
52355 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
52356 MFLAG=SLAPD_MOD_DYNAMIC
52358 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
52359 MFLAG=SLAPD_MOD_STATIC
52362 cat >>confdefs.h <<_ACEOF
52363 #define SLAPD_LDAP $MFLAG
52368 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
52370 BUILD_LDBM=$ol_enable_ldbm
52371 if test "$ol_enable_ldbm" = mod ; then
52372 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
52373 MFLAG=SLAPD_MOD_DYNAMIC
52375 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
52376 MFLAG=SLAPD_MOD_STATIC
52379 cat >>confdefs.h <<_ACEOF
52380 #define SLAPD_LDBM $MFLAG
52385 if test "$ol_enable_meta" != no ; then
52387 BUILD_META=$ol_enable_meta
52389 if test "$ol_enable_meta" = mod ; then
52390 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
52391 MFLAG=SLAPD_MOD_DYNAMIC
52393 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
52394 MFLAG=SLAPD_MOD_STATIC
52397 cat >>confdefs.h <<_ACEOF
52398 #define SLAPD_META $MFLAG
52403 if test "$ol_enable_monitor" != no ; then
52405 BUILD_MONITOR=$ol_enable_monitor
52406 if test "$ol_enable_monitor" = mod ; then
52407 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
52408 MFLAG=SLAPD_MOD_DYNAMIC
52410 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
52411 MFLAG=SLAPD_MOD_STATIC
52414 cat >>confdefs.h <<_ACEOF
52415 #define SLAPD_MONITOR $MFLAG
52420 if test "$ol_enable_null" != no ; then
52422 BUILD_NULL=$ol_enable_null
52423 if test "$ol_enable_null" = mod ; then
52424 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
52425 MFLAG=SLAPD_MOD_DYNAMIC
52427 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
52428 MFLAG=SLAPD_MOD_STATIC
52431 cat >>confdefs.h <<_ACEOF
52432 #define SLAPD_NULL $MFLAG
52437 if test "$ol_enable_passwd" != no ; then
52439 BUILD_PASSWD=$ol_enable_passwd
52440 if test "$ol_enable_passwd" = mod ; then
52441 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
52442 MFLAG=SLAPD_MOD_DYNAMIC
52444 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
52445 MFLAG=SLAPD_MOD_STATIC
52448 cat >>confdefs.h <<_ACEOF
52449 #define SLAPD_PASSWD $MFLAG
52454 if test "$ol_link_perl" != no ; then
52456 BUILD_PERL=$ol_enable_perl
52457 if test "$ol_enable_perl" = mod ; then
52458 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
52459 MFLAG=SLAPD_MOD_DYNAMIC
52461 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
52462 MFLAG=SLAPD_MOD_STATIC
52465 cat >>confdefs.h <<_ACEOF
52466 #define SLAPD_PERL $MFLAG
52471 if test "$ol_enable_relay" != no ; then
52473 BUILD_RELAY=$ol_enable_relay
52474 if test "$ol_enable_relay" = mod ; then
52475 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
52476 MFLAG=SLAPD_MOD_DYNAMIC
52478 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
52479 MFLAG=SLAPD_MOD_STATIC
52482 cat >>confdefs.h <<_ACEOF
52483 #define SLAPD_RELAY $MFLAG
52488 if test "$ol_enable_shell" != no ; then
52489 if test "$ol_link_thread" != no ; then
52490 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
52491 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
52494 BUILD_SHELL=$ol_enable_shell
52495 if test "$ol_enable_shell" = mod ; then
52496 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
52497 MFLAG=SLAPD_MOD_DYNAMIC
52499 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
52500 MFLAG=SLAPD_MOD_STATIC
52503 cat >>confdefs.h <<_ACEOF
52504 #define SLAPD_SHELL $MFLAG
52509 if test "$ol_link_sql" != no ; then
52511 BUILD_SQL=$ol_enable_sql
52512 if test "$ol_enable_sql" = mod; then
52513 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
52514 MFLAG=SLAPD_MOD_DYNAMIC
52516 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
52517 MFLAG=SLAPD_MOD_STATIC
52520 cat >>confdefs.h <<_ACEOF
52521 #define SLAPD_SQL $MFLAG
52526 if test "$ol_enable_accesslog" != no ; then
52527 BUILD_ACCESSLOG=$ol_enable_accesslog
52528 if test "$ol_enable_accesslog" = mod ; then
52529 MFLAG=SLAPD_MOD_DYNAMIC
52530 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
52532 MFLAG=SLAPD_MOD_STATIC
52533 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
52536 cat >>confdefs.h <<_ACEOF
52537 #define SLAPD_OVER_ACCESSLOG $MFLAG
52542 if test "$ol_enable_denyop" != no ; then
52543 BUILD_DENYOP=$ol_enable_denyop
52544 if test "$ol_enable_denyop" = mod ; then
52545 MFLAG=SLAPD_MOD_DYNAMIC
52546 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
52548 MFLAG=SLAPD_MOD_STATIC
52549 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
52552 cat >>confdefs.h <<_ACEOF
52553 #define SLAPD_OVER_DENYOP $MFLAG
52558 if test "$ol_enable_dyngroup" != no ; then
52559 BUILD_DYNGROUP=$ol_enable_dyngroup
52560 if test "$ol_enable_dyngroup" = mod ; then
52561 MFLAG=SLAPD_MOD_DYNAMIC
52562 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
52564 MFLAG=SLAPD_MOD_STATIC
52565 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
52568 cat >>confdefs.h <<_ACEOF
52569 #define SLAPD_OVER_DYNGROUP $MFLAG
52574 if test "$ol_enable_dynlist" != no ; then
52575 BUILD_DYNLIST=$ol_enable_dynlist
52576 if test "$ol_enable_dynlist" = mod ; then
52577 MFLAG=SLAPD_MOD_DYNAMIC
52578 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
52580 MFLAG=SLAPD_MOD_STATIC
52581 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
52584 cat >>confdefs.h <<_ACEOF
52585 #define SLAPD_OVER_DYNLIST $MFLAG
52590 if test "$ol_enable_glue" != no ; then
52591 BUILD_GLUE=$ol_enable_glue
52592 if test "$ol_enable_glue" = mod ; then
52593 MFLAG=SLAPD_MOD_DYNAMIC
52594 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS glue.la"
52596 MFLAG=SLAPD_MOD_STATIC
52597 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS glue.o"
52600 cat >>confdefs.h <<_ACEOF
52601 #define SLAPD_OVER_GLUE $MFLAG
52606 if test "$ol_enable_lastmod" != no ; then
52607 BUILD_LASTMOD=$ol_enable_lastmod
52608 if test "$ol_enable_lastmod" = mod ; then
52609 MFLAG=SLAPD_MOD_DYNAMIC
52610 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
52612 MFLAG=SLAPD_MOD_STATIC
52613 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
52616 cat >>confdefs.h <<_ACEOF
52617 #define SLAPD_OVER_LASTMOD $MFLAG
52622 if test "$ol_enable_ppolicy" != no ; then
52623 BUILD_PPOLICY=$ol_enable_ppolicy
52624 if test "$ol_enable_ppolicy" = mod ; then
52625 MFLAG=SLAPD_MOD_DYNAMIC
52626 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
52628 MFLAG=SLAPD_MOD_STATIC
52629 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
52632 cat >>confdefs.h <<_ACEOF
52633 #define SLAPD_OVER_PPOLICY $MFLAG
52638 if test "$ol_enable_proxycache" != no ; then
52639 BUILD_PROXYCACHE=$ol_enable_proxycache
52640 if test "$ol_enable_proxycache" = mod ; then
52641 MFLAG=SLAPD_MOD_DYNAMIC
52642 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
52644 MFLAG=SLAPD_MOD_STATIC
52645 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
52648 cat >>confdefs.h <<_ACEOF
52649 #define SLAPD_OVER_PROXYCACHE $MFLAG
52654 if test "$ol_enable_refint" != no ; then
52655 BUILD_REFINT=$ol_enable_refint
52656 if test "$ol_enable_refint" = mod ; then
52657 MFLAG=SLAPD_MOD_DYNAMIC
52658 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
52660 MFLAG=SLAPD_MOD_STATIC
52661 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
52664 cat >>confdefs.h <<_ACEOF
52665 #define SLAPD_OVER_REFINT $MFLAG
52670 if test "$ol_enable_retcode" != no ; then
52671 BUILD_RETCODE=$ol_enable_retcode
52672 if test "$ol_enable_retcode" = mod ; then
52673 MFLAG=SLAPD_MOD_DYNAMIC
52674 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
52676 MFLAG=SLAPD_MOD_STATIC
52677 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
52680 cat >>confdefs.h <<_ACEOF
52681 #define SLAPD_OVER_RETCODE $MFLAG
52686 if test "$ol_enable_rwm" != no ; then
52688 BUILD_RWM=$ol_enable_rwm
52689 if test "$ol_enable_rwm" = mod ; then
52690 MFLAG=SLAPD_MOD_DYNAMIC
52691 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
52693 MFLAG=SLAPD_MOD_STATIC
52694 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
52697 cat >>confdefs.h <<_ACEOF
52698 #define SLAPD_OVER_RWM $MFLAG
52703 if test "$ol_enable_syncprov" != no ; then
52704 BUILD_SYNCPROV=$ol_enable_syncprov
52705 if test "$ol_enable_syncprov" = mod ; then
52706 MFLAG=SLAPD_MOD_DYNAMIC
52707 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
52709 MFLAG=SLAPD_MOD_STATIC
52710 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
52713 cat >>confdefs.h <<_ACEOF
52714 #define SLAPD_OVER_SYNCPROV $MFLAG
52719 if test "$ol_enable_translucent" != no ; then
52720 BUILD_TRANSLUCENT=$ol_enable_translucent
52721 if test "$ol_enable_translucent" = mod ; then
52722 MFLAG=SLAPD_MOD_DYNAMIC
52723 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
52725 MFLAG=SLAPD_MOD_STATIC
52726 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
52729 cat >>confdefs.h <<_ACEOF
52730 #define SLAPD_OVER_TRANSLUCENT $MFLAG
52735 if test "$ol_enable_unique" != no ; then
52736 BUILD_UNIQUE=$ol_enable_unique
52737 if test "$ol_enable_unique" = mod ; then
52738 MFLAG=SLAPD_MOD_DYNAMIC
52739 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
52741 MFLAG=SLAPD_MOD_STATIC
52742 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
52745 cat >>confdefs.h <<_ACEOF
52746 #define SLAPD_OVER_UNIQUE $MFLAG
52751 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
52752 $BUILD_SLAPD = yes ; then
52756 if test "$ol_enable_rewrite" != no ; then
52758 cat >>confdefs.h <<\_ACEOF
52759 #define ENABLE_REWRITE 1
52765 if test "$ol_enable_slapi" != no ; then
52767 cat >>confdefs.h <<\_ACEOF
52768 #define ENABLE_SLAPI 1
52772 SLAPD_SLAPI_DEPEND=libslapi.a
52777 if test "$ac_cv_mingw32" = yes ; then
52779 SLAPD_MODULES_LDFLAGS=
52862 # Check whether --with-xxinstall or --without-xxinstall was given.
52863 if test "${with_xxinstall+set}" = set; then
52864 withval="$with_xxinstall"
52869 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-shared.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-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk servers/slapd/back-ldif/Makefile:build/top.mk:servers/slapd/back-ldif/Makefile.in:build/mod.mk servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk servers/slapd/back-relay/Makefile:build/top.mk:servers/slapd/back-relay/Makefile.in:build/mod.mk servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk tests/run tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk"
52872 ac_config_commands="$ac_config_commands default"
52876 test "x$prefix" = xNONE && prefix=$ac_default_prefix
52877 # Let make expand exec_prefix.
52878 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
52880 # VPATH may cause trouble with some makes, so we remove $(srcdir),
52881 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
52882 # trailing colons and then remove the whole line if VPATH becomes empty
52883 # (actually we leave an empty line to preserve line numbers).
52884 if test "x$srcdir" = x.; then
52885 ac_vpsub='/^[ ]*VPATH[ ]*=/{
52886 s/:*\$(srcdir):*/:/;
52887 s/:*\${srcdir}:*/:/;
52889 s/^\([^=]*=[ ]*\):*/\1/;
52895 DEFS=-DHAVE_CONFIG_H
52899 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
52900 # 1. Remove the extension, and $U if already installed.
52901 ac_i=`echo "$ac_i" |
52902 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
52904 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
52905 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
52907 LIBOBJS=$ac_libobjs
52909 LTLIBOBJS=$ac_ltlibobjs
52912 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
52913 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
52914 Usually this means the macro was only invoked conditionally." >&5
52915 echo "$as_me: error: conditional \"AMDEP\" was never defined.
52916 Usually this means the macro was only invoked conditionally." >&2;}
52917 { (exit 1); exit 1; }; }
52919 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
52920 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
52921 Usually this means the macro was only invoked conditionally." >&5
52922 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
52923 Usually this means the macro was only invoked conditionally." >&2;}
52924 { (exit 1); exit 1; }; }
52926 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
52927 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
52928 Usually this means the macro was only invoked conditionally." >&5
52929 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
52930 Usually this means the macro was only invoked conditionally." >&2;}
52931 { (exit 1); exit 1; }; }
52933 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
52934 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
52935 Usually this means the macro was only invoked conditionally." >&5
52936 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
52937 Usually this means the macro was only invoked conditionally." >&2;}
52938 { (exit 1); exit 1; }; }
52941 : ${CONFIG_STATUS=./config.status}
52942 ac_clean_files_save=$ac_clean_files
52943 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
52944 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
52945 echo "$as_me: creating $CONFIG_STATUS" >&6;}
52946 cat >$CONFIG_STATUS <<_ACEOF
52948 # Generated by $as_me.
52949 # Run this file to recreate the current configuration.
52950 # Compiler output produced by configure, useful for debugging
52951 # configure, is in config.log if it exists.
52954 ac_cs_recheck=false
52956 SHELL=\${CONFIG_SHELL-$SHELL}
52959 cat >>$CONFIG_STATUS <<\_ACEOF
52960 ## --------------------- ##
52961 ## M4sh Initialization. ##
52962 ## --------------------- ##
52964 # Be Bourne compatible
52965 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
52968 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
52969 # is contrary to our usage. Disable this feature.
52970 alias -g '${1+"$@"}'='"$@"'
52971 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
52974 DUALCASE=1; export DUALCASE # for MKS sh
52976 # Support unset when possible.
52977 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
52984 # Work around bugs in pre-3.0 UWIN ksh.
52985 $as_unset ENV MAIL MAILPATH
52992 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
52993 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
52994 LC_TELEPHONE LC_TIME
52996 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
52997 eval $as_var=C; export $as_var
53003 # Required to use basename.
53004 if expr a : '\(a\)' >/dev/null 2>&1; then
53010 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
53011 as_basename=basename
53017 # Name of the executable.
53018 as_me=`$as_basename "$0" ||
53019 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
53020 X"$0" : 'X\(//\)$' \| \
53021 X"$0" : 'X\(/\)$' \| \
53022 . : '\(.\)' 2>/dev/null ||
53024 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
53025 /^X\/\(\/\/\)$/{ s//\1/; q; }
53026 /^X\/\(\/\).*/{ s//\1/; q; }
53030 # PATH needs CR, and LINENO needs CR and PATH.
53031 # Avoid depending upon Character Ranges.
53032 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
53033 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
53034 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
53035 as_cr_digits='0123456789'
53036 as_cr_alnum=$as_cr_Letters$as_cr_digits
53038 # The user is always right.
53039 if test "${PATH_SEPARATOR+set}" != set; then
53040 echo "#! /bin/sh" >conf$$.sh
53041 echo "exit 0" >>conf$$.sh
53043 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53052 as_lineno_1=$LINENO
53053 as_lineno_2=$LINENO
53054 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
53055 test "x$as_lineno_1" != "x$as_lineno_2" &&
53056 test "x$as_lineno_3" = "x$as_lineno_2" || {
53057 # Find who we are. Look in the path if we contain no path at all
53060 *[\\/]* ) as_myself=$0 ;;
53061 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53062 for as_dir in $PATH
53065 test -z "$as_dir" && as_dir=.
53066 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
53071 # We did not find ourselves, most probably we were run as `sh COMMAND'
53072 # in which case we are not to be found in the path.
53073 if test "x$as_myself" = x; then
53076 if test ! -f "$as_myself"; then
53077 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
53078 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
53079 { (exit 1); exit 1; }; }
53081 case $CONFIG_SHELL in
53083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53084 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
53087 test -z "$as_dir" && as_dir=.
53088 for as_base in sh bash ksh sh5; do
53091 if ("$as_dir/$as_base" -c '
53092 as_lineno_1=$LINENO
53093 as_lineno_2=$LINENO
53094 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
53095 test "x$as_lineno_1" != "x$as_lineno_2" &&
53096 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
53097 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
53098 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
53099 CONFIG_SHELL=$as_dir/$as_base
53100 export CONFIG_SHELL
53101 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
53109 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
53110 # uniformly replaced by the line number. The first 'sed' inserts a
53111 # line-number line before each line; the second 'sed' does the real
53112 # work. The second script uses 'N' to pair each line-number line
53113 # with the numbered line, and appends trailing '-' during
53114 # substitution so that $LINENO is not a special case at line end.
53115 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
53116 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
53117 sed '=' <$as_myself |
53122 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
53125 s,^['$as_cr_digits']*\n,,
53126 ' >$as_me.lineno &&
53127 chmod +x $as_me.lineno ||
53128 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
53129 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
53130 { (exit 1); exit 1; }; }
53132 # Don't try to exec as it changes $[0], causing all sort of problems
53133 # (the dirname of $[0] is not the place where we might find the
53134 # original and so on. Autoconf is especially sensible to this).
53136 # Exit status is that of the last command.
53141 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
53142 *c*,-n*) ECHO_N= ECHO_C='
53144 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
53145 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
53148 if expr a : '\(a\)' >/dev/null 2>&1; then
53154 rm -f conf$$ conf$$.exe conf$$.file
53156 if ln -s conf$$.file conf$$ 2>/dev/null; then
53157 # We could just check for DJGPP; but this test a) works b) is more generic
53158 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
53159 if test -f conf$$.exe; then
53160 # Don't use ln at all; we don't have any links
53165 elif ln conf$$.file conf$$ 2>/dev/null; then
53170 rm -f conf$$ conf$$.exe conf$$.file
53172 if mkdir -p . 2>/dev/null; then
53175 test -d ./-p && rmdir ./-p
53179 as_executable_p="test -f"
53181 # Sed expression to map a string onto a valid CPP name.
53182 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
53184 # Sed expression to map a string onto a valid variable name.
53185 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
53189 # We need space, tab and new line, in precisely that order.
53199 # Open the log real soon, to keep \$[0] and so on meaningful, and to
53200 # report actual input values of CONFIG_FILES etc. instead of their
53201 # values after options handling. Logging --version etc. is OK.
53205 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
53206 ## Running $as_me. ##
53211 This file was extended by $as_me, which was
53212 generated by GNU Autoconf 2.59. Invocation command line was
53214 CONFIG_FILES = $CONFIG_FILES
53215 CONFIG_HEADERS = $CONFIG_HEADERS
53216 CONFIG_LINKS = $CONFIG_LINKS
53217 CONFIG_COMMANDS = $CONFIG_COMMANDS
53221 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
53225 # Files that config.status was made for.
53226 if test -n "$ac_config_files"; then
53227 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
53230 if test -n "$ac_config_headers"; then
53231 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
53234 if test -n "$ac_config_links"; then
53235 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
53238 if test -n "$ac_config_commands"; then
53239 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
53242 cat >>$CONFIG_STATUS <<\_ACEOF
53245 \`$as_me' instantiates files from templates according to the
53246 current configuration.
53248 Usage: $0 [OPTIONS] [FILE]...
53250 -h, --help print this help, then exit
53251 -V, --version print version number, then exit
53252 -q, --quiet do not print progress messages
53253 -d, --debug don't remove temporary files
53254 --recheck update $as_me by reconfiguring in the same conditions
53255 --file=FILE[:TEMPLATE]
53256 instantiate the configuration file FILE
53257 --header=FILE[:TEMPLATE]
53258 instantiate the configuration header FILE
53260 Configuration files:
53263 Configuration headers:
53266 Configuration commands:
53269 Report bugs to <bug-autoconf@gnu.org>."
53272 cat >>$CONFIG_STATUS <<_ACEOF
53275 configured by $0, generated by GNU Autoconf 2.59,
53276 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
53278 Copyright (C) 2003 Free Software Foundation, Inc.
53279 This config.status script is free software; the Free Software Foundation
53280 gives unlimited permission to copy, distribute and modify it."
53285 cat >>$CONFIG_STATUS <<\_ACEOF
53286 # If no file are specified by the user, then we need to provide default
53287 # value. By we need to know if files were specified by the user.
53293 ac_option=`expr "x$1" : 'x\([^=]*\)='`
53294 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
53302 *) # This is not an option, so the user has probably given explicit
53305 ac_need_defaults=false;;
53309 # Handling of the options.
53311 cat >>$CONFIG_STATUS <<\_ACEOF
53312 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
53314 --version | --vers* | -V )
53315 echo "$ac_cs_version"; exit 0 ;;
53317 # Conflict between --help and --header
53318 { { echo "$as_me:$LINENO: error: ambiguous option: $1
53319 Try \`$0 --help' for more information." >&5
53320 echo "$as_me: error: ambiguous option: $1
53321 Try \`$0 --help' for more information." >&2;}
53322 { (exit 1); exit 1; }; };;
53323 --help | --hel | -h )
53324 echo "$ac_cs_usage"; exit 0 ;;
53325 --debug | --d* | -d )
53327 --file | --fil | --fi | --f )
53329 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
53330 ac_need_defaults=false;;
53331 --header | --heade | --head | --hea )
53333 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
53334 ac_need_defaults=false;;
53335 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
53336 | -silent | --silent | --silen | --sile | --sil | --si | --s)
53339 # This is an error.
53340 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
53341 Try \`$0 --help' for more information." >&5
53342 echo "$as_me: error: unrecognized option: $1
53343 Try \`$0 --help' for more information." >&2;}
53344 { (exit 1); exit 1; }; } ;;
53346 *) ac_config_targets="$ac_config_targets $1" ;;
53352 ac_configure_extra_args=
53354 if $ac_cs_silent; then
53356 ac_configure_extra_args="$ac_configure_extra_args --silent"
53360 cat >>$CONFIG_STATUS <<_ACEOF
53361 if \$ac_cs_recheck; then
53362 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
53363 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
53368 cat >>$CONFIG_STATUS <<_ACEOF
53370 # INIT-COMMANDS section.
53373 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
53374 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
53380 cat >>$CONFIG_STATUS <<\_ACEOF
53381 for ac_config_target in $ac_config_targets
53383 case "$ac_config_target" in
53384 # Handling of arguments.
53385 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
53386 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
53387 "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
53388 "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
53389 "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
53390 "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
53391 "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
53392 "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
53393 "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
53394 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
53395 "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
53396 "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
53397 "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
53398 "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" ;;
53399 "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
53400 "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
53401 "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
53402 "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
53403 "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
53404 "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" ;;
53405 "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" ;;
53406 "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" ;;
53407 "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" ;;
53408 "servers/slapd/back-ldbm/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk" ;;
53409 "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" ;;
53410 "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" ;;
53411 "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" ;;
53412 "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" ;;
53413 "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" ;;
53414 "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" ;;
53415 "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" ;;
53416 "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" ;;
53417 "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" ;;
53418 "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" ;;
53419 "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" ;;
53420 "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
53421 "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
53422 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
53423 "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
53424 "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
53425 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
53426 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
53427 "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
53428 "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
53429 "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
53430 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
53431 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
53432 { (exit 1); exit 1; }; };;
53436 # If the user did not use the arguments to specify the items to instantiate,
53437 # then the envvar interface is used. Set only those that are not.
53438 # We use the long form for the default assignment because of an extremely
53439 # bizarre bug on SunOS 4.1.3.
53440 if $ac_need_defaults; then
53441 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
53442 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
53443 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
53446 # Have a temporary directory for convenience. Make it in the build tree
53447 # simply because there is no reason to put it here, and in addition,
53448 # creating and moving files from /tmp can sometimes cause problems.
53449 # Create a temporary directory, and hook for its removal unless debugging.
53452 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
53453 trap '{ (exit 1); exit 1; }' 1 2 13 15
53456 # Create a (secure) tmp directory for tmp files.
53459 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
53460 test -n "$tmp" && test -d "$tmp"
53463 tmp=./confstat$$-$RANDOM
53464 (umask 077 && mkdir $tmp)
53467 echo "$me: cannot create a temporary directory in ." >&2
53468 { (exit 1); exit 1; }
53473 cat >>$CONFIG_STATUS <<_ACEOF
53476 # CONFIG_FILES section.
53479 # No need to generate the scripts if there are no CONFIG_FILES.
53480 # This happens for instance when ./config.status config.h
53481 if test -n "\$CONFIG_FILES"; then
53482 # Protect against being on the right side of a sed subst in config.status.
53483 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
53484 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
53485 s,@SHELL@,$SHELL,;t t
53486 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
53487 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
53488 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
53489 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
53490 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
53491 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
53492 s,@exec_prefix@,$exec_prefix,;t t
53493 s,@prefix@,$prefix,;t t
53494 s,@program_transform_name@,$program_transform_name,;t t
53495 s,@bindir@,$bindir,;t t
53496 s,@sbindir@,$sbindir,;t t
53497 s,@libexecdir@,$libexecdir,;t t
53498 s,@datadir@,$datadir,;t t
53499 s,@sysconfdir@,$sysconfdir,;t t
53500 s,@sharedstatedir@,$sharedstatedir,;t t
53501 s,@localstatedir@,$localstatedir,;t t
53502 s,@libdir@,$libdir,;t t
53503 s,@includedir@,$includedir,;t t
53504 s,@oldincludedir@,$oldincludedir,;t t
53505 s,@infodir@,$infodir,;t t
53506 s,@mandir@,$mandir,;t t
53507 s,@build_alias@,$build_alias,;t t
53508 s,@host_alias@,$host_alias,;t t
53509 s,@target_alias@,$target_alias,;t t
53510 s,@DEFS@,$DEFS,;t t
53511 s,@ECHO_C@,$ECHO_C,;t t
53512 s,@ECHO_N@,$ECHO_N,;t t
53513 s,@ECHO_T@,$ECHO_T,;t t
53514 s,@LIBS@,$LIBS,;t t
53515 s,@build@,$build,;t t
53516 s,@build_cpu@,$build_cpu,;t t
53517 s,@build_vendor@,$build_vendor,;t t
53518 s,@build_os@,$build_os,;t t
53519 s,@host@,$host,;t t
53520 s,@host_cpu@,$host_cpu,;t t
53521 s,@host_vendor@,$host_vendor,;t t
53522 s,@host_os@,$host_os,;t t
53523 s,@target@,$target,;t t
53524 s,@target_cpu@,$target_cpu,;t t
53525 s,@target_vendor@,$target_vendor,;t t
53526 s,@target_os@,$target_os,;t t
53527 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
53528 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
53529 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
53530 s,@CYGPATH_W@,$CYGPATH_W,;t t
53531 s,@PACKAGE@,$PACKAGE,;t t
53532 s,@VERSION@,$VERSION,;t t
53533 s,@ACLOCAL@,$ACLOCAL,;t t
53534 s,@AUTOCONF@,$AUTOCONF,;t t
53535 s,@AUTOMAKE@,$AUTOMAKE,;t t
53536 s,@AUTOHEADER@,$AUTOHEADER,;t t
53537 s,@MAKEINFO@,$MAKEINFO,;t t
53538 s,@install_sh@,$install_sh,;t t
53539 s,@STRIP@,$STRIP,;t t
53540 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
53541 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
53542 s,@mkdir_p@,$mkdir_p,;t t
53544 s,@SET_MAKE@,$SET_MAKE,;t t
53545 s,@am__leading_dot@,$am__leading_dot,;t t
53546 s,@AMTAR@,$AMTAR,;t t
53547 s,@am__tar@,$am__tar,;t t
53548 s,@am__untar@,$am__untar,;t t
53549 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
53550 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
53551 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
53552 s,@top_builddir@,$top_builddir,;t t
53553 s,@ldap_subdir@,$ldap_subdir,;t t
53556 s,@CFLAGS@,$CFLAGS,;t t
53557 s,@LDFLAGS@,$LDFLAGS,;t t
53558 s,@CPPFLAGS@,$CPPFLAGS,;t t
53559 s,@ac_ct_CC@,$ac_ct_CC,;t t
53560 s,@EXEEXT@,$EXEEXT,;t t
53561 s,@OBJEXT@,$OBJEXT,;t t
53562 s,@DEPDIR@,$DEPDIR,;t t
53563 s,@am__include@,$am__include,;t t
53564 s,@am__quote@,$am__quote,;t t
53565 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
53566 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
53567 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
53568 s,@CCDEPMODE@,$CCDEPMODE,;t t
53569 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
53570 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
53571 s,@EGREP@,$EGREP,;t t
53572 s,@LN_S@,$LN_S,;t t
53573 s,@ECHO@,$ECHO,;t t
53574 s,@ac_ct_AR@,$ac_ct_AR,;t t
53575 s,@RANLIB@,$RANLIB,;t t
53576 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
53577 s,@DLLTOOL@,$DLLTOOL,;t t
53578 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
53580 s,@ac_ct_AS@,$ac_ct_AS,;t t
53581 s,@OBJDUMP@,$OBJDUMP,;t t
53582 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
53585 s,@CXXFLAGS@,$CXXFLAGS,;t t
53586 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
53587 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
53588 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
53589 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
53590 s,@CXXCPP@,$CXXCPP,;t t
53592 s,@FFLAGS@,$FFLAGS,;t t
53593 s,@ac_ct_F77@,$ac_ct_F77,;t t
53594 s,@LIBTOOL@,$LIBTOOL,;t t
53595 s,@PERLBIN@,$PERLBIN,;t t
53596 s,@OL_MKDEP@,$OL_MKDEP,;t t
53597 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
53598 s,@LTSTATIC@,$LTSTATIC,;t t
53599 s,@LIBOBJS@,$LIBOBJS,;t t
53600 s,@LIBSRCS@,$LIBSRCS,;t t
53601 s,@PLAT@,$PLAT,;t t
53602 s,@WITH_SASL@,$WITH_SASL,;t t
53603 s,@WITH_TLS@,$WITH_TLS,;t t
53604 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
53605 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
53606 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
53607 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
53608 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
53609 s,@BUILD_BDB@,$BUILD_BDB,;t t
53610 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
53611 s,@BUILD_HDB@,$BUILD_HDB,;t t
53612 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
53613 s,@BUILD_LDBM@,$BUILD_LDBM,;t t
53614 s,@BUILD_META@,$BUILD_META,;t t
53615 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
53616 s,@BUILD_NULL@,$BUILD_NULL,;t t
53617 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
53618 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
53619 s,@BUILD_PERL@,$BUILD_PERL,;t t
53620 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
53621 s,@BUILD_SQL@,$BUILD_SQL,;t t
53622 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
53623 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
53624 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
53625 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
53626 s,@BUILD_GLUE@,$BUILD_GLUE,;t t
53627 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
53628 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
53629 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
53630 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
53631 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
53632 s,@BUILD_RWM@,$BUILD_RWM,;t t
53633 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
53634 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
53635 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
53636 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
53637 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
53638 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
53639 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
53640 s,@LDBM_LIBS@,$LDBM_LIBS,;t t
53641 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
53642 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
53643 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
53644 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
53645 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
53646 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
53647 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
53648 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
53649 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
53650 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
53651 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
53652 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
53653 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
53654 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
53655 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
53656 s,@SASL_LIBS@,$SASL_LIBS,;t t
53657 s,@TLS_LIBS@,$TLS_LIBS,;t t
53658 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
53659 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
53660 s,@LIBSLAPI@,$LIBSLAPI,;t t
53661 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
53662 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
53663 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
53664 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
53665 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
53666 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
53667 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
53668 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
53673 cat >>$CONFIG_STATUS <<\_ACEOF
53674 # Split the substitutions into bite-sized pieces for seds with
53675 # small command number limits, like on Digital OSF/1 and HP-UX.
53676 ac_max_sed_lines=48
53677 ac_sed_frag=1 # Number of current file.
53678 ac_beg=1 # First line for current file.
53679 ac_end=$ac_max_sed_lines # Line after last line for current file.
53682 while $ac_more_lines; do
53683 if test $ac_beg -gt 1; then
53684 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
53686 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
53688 if test ! -s $tmp/subs.frag; then
53689 ac_more_lines=false
53691 # The purpose of the label and of the branching condition is to
53692 # speed up the sed processing (if there are no `@' at all, there
53693 # is no need to browse any of the substitutions).
53694 # These are the two extra sed commands mentioned above.
53696 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
53697 if test -z "$ac_sed_cmds"; then
53698 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
53700 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
53702 ac_sed_frag=`expr $ac_sed_frag + 1`
53704 ac_end=`expr $ac_end + $ac_max_sed_lines`
53707 if test -z "$ac_sed_cmds"; then
53710 fi # test -n "$CONFIG_FILES"
53713 cat >>$CONFIG_STATUS <<\_ACEOF
53714 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
53715 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
53717 - | *:- | *:-:* ) # input from stdin
53719 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
53720 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
53721 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
53722 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
53723 * ) ac_file_in=$ac_file.in ;;
53726 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
53727 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
53728 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53729 X"$ac_file" : 'X\(//\)[^/]' \| \
53730 X"$ac_file" : 'X\(//\)$' \| \
53731 X"$ac_file" : 'X\(/\)' \| \
53732 . : '\(.\)' 2>/dev/null ||
53734 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
53735 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
53736 /^X\(\/\/\)$/{ s//\1/; q; }
53737 /^X\(\/\).*/{ s//\1/; q; }
53739 { if $as_mkdir_p; then
53744 while test ! -d "$as_dir"; do
53745 as_dirs="$as_dir $as_dirs"
53746 as_dir=`(dirname "$as_dir") 2>/dev/null ||
53747 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53748 X"$as_dir" : 'X\(//\)[^/]' \| \
53749 X"$as_dir" : 'X\(//\)$' \| \
53750 X"$as_dir" : 'X\(/\)' \| \
53751 . : '\(.\)' 2>/dev/null ||
53753 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
53754 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
53755 /^X\(\/\/\)$/{ s//\1/; q; }
53756 /^X\(\/\).*/{ s//\1/; q; }
53759 test ! -n "$as_dirs" || mkdir $as_dirs
53760 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
53761 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
53762 { (exit 1); exit 1; }; }; }
53766 if test "$ac_dir" != .; then
53767 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
53768 # A "../" for each directory in $ac_dir_suffix.
53769 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
53771 ac_dir_suffix= ac_top_builddir=
53775 .) # No --srcdir option. We are building in place.
53777 if test -z "$ac_top_builddir"; then
53780 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
53782 [\\/]* | ?:[\\/]* ) # Absolute path.
53783 ac_srcdir=$srcdir$ac_dir_suffix;
53784 ac_top_srcdir=$srcdir ;;
53785 *) # Relative path.
53786 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
53787 ac_top_srcdir=$ac_top_builddir$srcdir ;;
53790 # Do not use `cd foo && pwd` to compute absolute paths, because
53791 # the directories may not exist.
53793 .) ac_abs_builddir="$ac_dir";;
53796 .) ac_abs_builddir=`pwd`;;
53797 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
53798 *) ac_abs_builddir=`pwd`/"$ac_dir";;
53801 case $ac_abs_builddir in
53802 .) ac_abs_top_builddir=${ac_top_builddir}.;;
53804 case ${ac_top_builddir}. in
53805 .) ac_abs_top_builddir=$ac_abs_builddir;;
53806 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
53807 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
53810 case $ac_abs_builddir in
53811 .) ac_abs_srcdir=$ac_srcdir;;
53814 .) ac_abs_srcdir=$ac_abs_builddir;;
53815 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
53816 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
53819 case $ac_abs_builddir in
53820 .) ac_abs_top_srcdir=$ac_top_srcdir;;
53822 case $ac_top_srcdir in
53823 .) ac_abs_top_srcdir=$ac_abs_builddir;;
53824 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
53825 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
53831 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
53832 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
53835 if test x"$ac_file" != x-; then
53836 { echo "$as_me:$LINENO: creating $ac_file" >&5
53837 echo "$as_me: creating $ac_file" >&6;}
53840 # Let's still pretend it is `configure' which instantiates (i.e., don't
53841 # use $as_me), people would be surprised to read:
53842 # /* config.h. Generated by config.status. */
53843 if test x"$ac_file" = x-; then
53846 configure_input="$ac_file. "
53848 configure_input=$configure_input"Generated from `echo $ac_file_in |
53849 sed 's,.*/,,'` by configure."
53851 # First look for the input files in the build tree, otherwise in the
53853 ac_file_inputs=`IFS=:
53854 for f in $ac_file_in; do
53856 -) echo $tmp/stdin ;;
53858 # Absolute (can't be DOS-style, as IFS=:)
53859 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
53860 echo "$as_me: error: cannot find input file: $f" >&2;}
53861 { (exit 1); exit 1; }; }
53864 if test -f "$f"; then
53867 elif test -f "$srcdir/$f"; then
53872 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
53873 echo "$as_me: error: cannot find input file: $f" >&2;}
53874 { (exit 1); exit 1; }; }
53877 done` || { (exit 1); exit 1; }
53879 cat >>$CONFIG_STATUS <<_ACEOF
53883 cat >>$CONFIG_STATUS <<\_ACEOF
53885 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
53886 s,@configure_input@,$configure_input,;t t
53887 s,@srcdir@,$ac_srcdir,;t t
53888 s,@abs_srcdir@,$ac_abs_srcdir,;t t
53889 s,@top_srcdir@,$ac_top_srcdir,;t t
53890 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
53891 s,@builddir@,$ac_builddir,;t t
53892 s,@abs_builddir@,$ac_abs_builddir,;t t
53893 s,@top_builddir@,$ac_top_builddir,;t t
53894 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
53895 s,@INSTALL@,$ac_INSTALL,;t t
53896 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
53898 if test x"$ac_file" != x-; then
53899 mv $tmp/out $ac_file
53907 cat >>$CONFIG_STATUS <<\_ACEOF
53910 # CONFIG_HEADER section.
53913 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
53914 # NAME is the cpp macro being defined and VALUE is the value it is being given.
53916 # ac_d sets the value in "#define NAME VALUE" lines.
53917 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
53918 ac_dB='[ ].*$,\1#\2'
53921 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
53922 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
53923 ac_uB='$,\1#\2define\3'
53927 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
53928 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
53930 - | *:- | *:-:* ) # input from stdin
53932 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
53933 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
53934 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
53935 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
53936 * ) ac_file_in=$ac_file.in ;;
53939 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
53940 echo "$as_me: creating $ac_file" >&6;}
53942 # First look for the input files in the build tree, otherwise in the
53944 ac_file_inputs=`IFS=:
53945 for f in $ac_file_in; do
53947 -) echo $tmp/stdin ;;
53949 # Absolute (can't be DOS-style, as IFS=:)
53950 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
53951 echo "$as_me: error: cannot find input file: $f" >&2;}
53952 { (exit 1); exit 1; }; }
53953 # Do quote $f, to prevent DOS paths from being IFS'd.
53956 if test -f "$f"; then
53959 elif test -f "$srcdir/$f"; then
53964 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
53965 echo "$as_me: error: cannot find input file: $f" >&2;}
53966 { (exit 1); exit 1; }; }
53969 done` || { (exit 1); exit 1; }
53970 # Remove the trailing spaces.
53971 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
53975 # Transform confdefs.h into two sed scripts, `conftest.defines' and
53976 # `conftest.undefs', that substitutes the proper values into
53977 # config.h.in to produce config.h. The first handles `#define'
53978 # templates, and the second `#undef' templates.
53979 # And first: Protect against being on the right side of a sed subst in
53980 # config.status. Protect against being in an unquoted here document
53981 # in config.status.
53982 rm -f conftest.defines conftest.undefs
53983 # Using a here document instead of a string reduces the quoting nightmare.
53984 # Putting comments in sed scripts is not portable.
53986 # `end' is used to avoid that the second main sed command (meant for
53987 # 0-ary CPP macros) applies to n-ary macro definitions.
53988 # See the Autoconf documentation for `clear'.
53989 cat >confdef2sed.sed <<\_ACEOF
53994 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
53996 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
53999 # If some macros were called several times there might be several times
54000 # the same #defines, which is useless. Nevertheless, we may not want to
54001 # sort them, since we want the *last* AC-DEFINE to be honored.
54002 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
54003 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
54004 rm -f confdef2sed.sed
54006 # This sed command replaces #undef with comments. This is necessary, for
54007 # example, in the case of _POSIX_SOURCE, which is predefined and required
54008 # on some systems where configure will not decide to define it.
54009 cat >>conftest.undefs <<\_ACEOF
54010 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
54013 # Break up conftest.defines because some shells have a limit on the size
54014 # of here documents, and old seds have small limits too (100 cmds).
54015 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
54016 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
54017 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
54018 echo ' :' >>$CONFIG_STATUS
54019 rm -f conftest.tail
54020 while grep . conftest.defines >/dev/null
54022 # Write a limited-size here document to $tmp/defines.sed.
54023 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
54024 # Speed up: don't consider the non `#define' lines.
54025 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
54026 # Work around the forget-to-reset-the-flag bug.
54027 echo 't clr' >>$CONFIG_STATUS
54028 echo ': clr' >>$CONFIG_STATUS
54029 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
54031 sed -f $tmp/defines.sed $tmp/in >$tmp/out
54033 mv $tmp/out $tmp/in
54035 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
54036 rm -f conftest.defines
54037 mv conftest.tail conftest.defines
54039 rm -f conftest.defines
54040 echo ' fi # grep' >>$CONFIG_STATUS
54041 echo >>$CONFIG_STATUS
54043 # Break up conftest.undefs because some shells have a limit on the size
54044 # of here documents, and old seds have small limits too (100 cmds).
54045 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
54046 rm -f conftest.tail
54047 while grep . conftest.undefs >/dev/null
54049 # Write a limited-size here document to $tmp/undefs.sed.
54050 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
54051 # Speed up: don't consider the non `#undef'
54052 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
54053 # Work around the forget-to-reset-the-flag bug.
54054 echo 't clr' >>$CONFIG_STATUS
54055 echo ': clr' >>$CONFIG_STATUS
54056 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
54058 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
54060 mv $tmp/out $tmp/in
54062 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
54063 rm -f conftest.undefs
54064 mv conftest.tail conftest.undefs
54066 rm -f conftest.undefs
54068 cat >>$CONFIG_STATUS <<\_ACEOF
54069 # Let's still pretend it is `configure' which instantiates (i.e., don't
54070 # use $as_me), people would be surprised to read:
54071 # /* config.h. Generated by config.status. */
54072 if test x"$ac_file" = x-; then
54073 echo "/* Generated by configure. */" >$tmp/config.h
54075 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
54077 cat $tmp/in >>$tmp/config.h
54079 if test x"$ac_file" != x-; then
54080 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
54081 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
54082 echo "$as_me: $ac_file is unchanged" >&6;}
54084 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
54085 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54086 X"$ac_file" : 'X\(//\)[^/]' \| \
54087 X"$ac_file" : 'X\(//\)$' \| \
54088 X"$ac_file" : 'X\(/\)' \| \
54089 . : '\(.\)' 2>/dev/null ||
54091 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54092 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54093 /^X\(\/\/\)$/{ s//\1/; q; }
54094 /^X\(\/\).*/{ s//\1/; q; }
54096 { if $as_mkdir_p; then
54101 while test ! -d "$as_dir"; do
54102 as_dirs="$as_dir $as_dirs"
54103 as_dir=`(dirname "$as_dir") 2>/dev/null ||
54104 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54105 X"$as_dir" : 'X\(//\)[^/]' \| \
54106 X"$as_dir" : 'X\(//\)$' \| \
54107 X"$as_dir" : 'X\(/\)' \| \
54108 . : '\(.\)' 2>/dev/null ||
54110 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54111 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54112 /^X\(\/\/\)$/{ s//\1/; q; }
54113 /^X\(\/\).*/{ s//\1/; q; }
54116 test ! -n "$as_dirs" || mkdir $as_dirs
54117 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
54118 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
54119 { (exit 1); exit 1; }; }; }
54122 mv $tmp/config.h $ac_file
54126 rm -f $tmp/config.h
54128 # Compute $ac_file's index in $config_headers.
54130 for _am_header in $config_headers :; do
54131 case $_am_header in
54132 $ac_file | $ac_file:* )
54135 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
54138 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
54139 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54140 X$ac_file : 'X\(//\)[^/]' \| \
54141 X$ac_file : 'X\(//\)$' \| \
54142 X$ac_file : 'X\(/\)' \| \
54143 . : '\(.\)' 2>/dev/null ||
54145 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54146 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54147 /^X\(\/\/\)$/{ s//\1/; q; }
54148 /^X\(\/\).*/{ s//\1/; q; }
54149 s/.*/./; q'`/stamp-h$_am_stamp_count
54152 cat >>$CONFIG_STATUS <<\_ACEOF
54155 # CONFIG_COMMANDS section.
54157 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
54158 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
54159 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
54160 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
54161 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54162 X"$ac_dest" : 'X\(//\)[^/]' \| \
54163 X"$ac_dest" : 'X\(//\)$' \| \
54164 X"$ac_dest" : 'X\(/\)' \| \
54165 . : '\(.\)' 2>/dev/null ||
54167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54168 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54169 /^X\(\/\/\)$/{ s//\1/; q; }
54170 /^X\(\/\).*/{ s//\1/; q; }
54172 { if $as_mkdir_p; then
54177 while test ! -d "$as_dir"; do
54178 as_dirs="$as_dir $as_dirs"
54179 as_dir=`(dirname "$as_dir") 2>/dev/null ||
54180 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54181 X"$as_dir" : 'X\(//\)[^/]' \| \
54182 X"$as_dir" : 'X\(//\)$' \| \
54183 X"$as_dir" : 'X\(/\)' \| \
54184 . : '\(.\)' 2>/dev/null ||
54186 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54187 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54188 /^X\(\/\/\)$/{ s//\1/; q; }
54189 /^X\(\/\).*/{ s//\1/; q; }
54192 test ! -n "$as_dirs" || mkdir $as_dirs
54193 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
54194 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
54195 { (exit 1); exit 1; }; }; }
54199 if test "$ac_dir" != .; then
54200 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
54201 # A "../" for each directory in $ac_dir_suffix.
54202 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
54204 ac_dir_suffix= ac_top_builddir=
54208 .) # No --srcdir option. We are building in place.
54210 if test -z "$ac_top_builddir"; then
54213 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
54215 [\\/]* | ?:[\\/]* ) # Absolute path.
54216 ac_srcdir=$srcdir$ac_dir_suffix;
54217 ac_top_srcdir=$srcdir ;;
54218 *) # Relative path.
54219 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
54220 ac_top_srcdir=$ac_top_builddir$srcdir ;;
54223 # Do not use `cd foo && pwd` to compute absolute paths, because
54224 # the directories may not exist.
54226 .) ac_abs_builddir="$ac_dir";;
54229 .) ac_abs_builddir=`pwd`;;
54230 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
54231 *) ac_abs_builddir=`pwd`/"$ac_dir";;
54234 case $ac_abs_builddir in
54235 .) ac_abs_top_builddir=${ac_top_builddir}.;;
54237 case ${ac_top_builddir}. in
54238 .) ac_abs_top_builddir=$ac_abs_builddir;;
54239 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
54240 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
54243 case $ac_abs_builddir in
54244 .) ac_abs_srcdir=$ac_srcdir;;
54247 .) ac_abs_srcdir=$ac_abs_builddir;;
54248 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
54249 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
54252 case $ac_abs_builddir in
54253 .) ac_abs_top_srcdir=$ac_top_srcdir;;
54255 case $ac_top_srcdir in
54256 .) ac_abs_top_srcdir=$ac_abs_builddir;;
54257 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
54258 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
54263 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
54264 echo "$as_me: executing $ac_dest commands" >&6;}
54266 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
54267 # Strip MF so we end up with the name of the file.
54268 mf=`echo "$mf" | sed -e 's/:.*$//'`
54269 # Check whether this is an Automake generated Makefile or not.
54270 # We used to match only the files named `Makefile.in', but
54271 # some people rename them; so instead we look at the file content.
54272 # Grep'ing the first line is not enough: some people post-process
54273 # each Makefile.in and add a new line on top of each file to say so.
54274 # So let's grep whole file.
54275 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
54276 dirpart=`(dirname "$mf") 2>/dev/null ||
54277 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54278 X"$mf" : 'X\(//\)[^/]' \| \
54279 X"$mf" : 'X\(//\)$' \| \
54280 X"$mf" : 'X\(/\)' \| \
54281 . : '\(.\)' 2>/dev/null ||
54283 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54284 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54285 /^X\(\/\/\)$/{ s//\1/; q; }
54286 /^X\(\/\).*/{ s//\1/; q; }
54291 # Extract the definition of DEPDIR, am__include, and am__quote
54292 # from the Makefile without running `make'.
54293 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
54294 test -z "$DEPDIR" && continue
54295 am__include=`sed -n 's/^am__include = //p' < "$mf"`
54296 test -z "am__include" && continue
54297 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
54298 # When using ansi2knr, U may be empty or an underscore; expand it
54299 U=`sed -n 's/^U = //p' < "$mf"`
54300 # Find all dependency output files, they are included files with
54301 # $(DEPDIR) in their names. We invoke sed twice because it is the
54302 # simplest approach to changing $(DEPDIR) to its actual value in the
54304 for file in `sed -n "
54305 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
54306 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
54307 # Make sure the directory exists.
54308 test -f "$dirpart/$file" && continue
54309 fdir=`(dirname "$file") 2>/dev/null ||
54310 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54311 X"$file" : 'X\(//\)[^/]' \| \
54312 X"$file" : 'X\(//\)$' \| \
54313 X"$file" : 'X\(/\)' \| \
54314 . : '\(.\)' 2>/dev/null ||
54316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54317 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54318 /^X\(\/\/\)$/{ s//\1/; q; }
54319 /^X\(\/\).*/{ s//\1/; q; }
54321 { if $as_mkdir_p; then
54322 mkdir -p $dirpart/$fdir
54324 as_dir=$dirpart/$fdir
54326 while test ! -d "$as_dir"; do
54327 as_dirs="$as_dir $as_dirs"
54328 as_dir=`(dirname "$as_dir") 2>/dev/null ||
54329 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54330 X"$as_dir" : 'X\(//\)[^/]' \| \
54331 X"$as_dir" : 'X\(//\)$' \| \
54332 X"$as_dir" : 'X\(/\)' \| \
54333 . : '\(.\)' 2>/dev/null ||
54335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54336 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54337 /^X\(\/\/\)$/{ s//\1/; q; }
54338 /^X\(\/\).*/{ s//\1/; q; }
54341 test ! -n "$as_dirs" || mkdir $as_dirs
54342 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
54343 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
54344 { (exit 1); exit 1; }; }; }
54346 # echo "creating $dirpart/$file"
54347 echo '# dummy' > "$dirpart/$file"
54354 BACKENDSC="servers/slapd/backends.c"
54355 echo "Making $BACKENDSC"
54357 cat > $BACKENDSC << ENDX
54358 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
54360 * Copyright 1998-2005 The OpenLDAP Foundation.
54361 * All rights reserved.
54363 * Redistribution and use in source and binary forms, with or without
54364 * modification, are permitted only as authorized by the OpenLDAP
54367 * A copy of this license is available in the file LICENSE in the
54368 * top-level directory of the distribution or, alternatively, at
54369 * <http://www.OpenLDAP.org/license.html>.
54371 /* This file is automatically generated by configure; please do not edit. */
54373 #include "portable.h"
54377 if test "${STATIC_BACKENDS}"; then
54378 for b in config ${STATIC_BACKENDS}; do
54379 bb=`echo "${b}" | sed -e 's/back-//'`
54380 cat >> $BACKENDSC << ENDX
54381 extern BI_init ${bb}_back_initialize;
54385 cat >> $BACKENDSC << ENDX
54387 BackendInfo slap_binfo[] = {
54390 for b in config ${STATIC_BACKENDS}; do
54391 bb=`echo "${b}" | sed -e 's/back-//'`
54392 echo " Add ${bb} ..."
54393 cat >> $BACKENDSC << ENDX
54394 { "${bb}", ${bb}_back_initialize },
54398 cat >> $BACKENDSC << ENDX
54402 /* end of generated file */
54406 echo Please run \"make depend\" to build dependencies
54412 cat >>$CONFIG_STATUS <<\_ACEOF
54414 { (exit 0); exit 0; }
54416 chmod +x $CONFIG_STATUS
54417 ac_clean_files=$ac_clean_files_save
54420 # configure is writing to config.log, and then calls config.status.
54421 # config.status does its own redirection, appending to config.log.
54422 # Unfortunately, on DOS this fails, as config.log is still kept open
54423 # by configure, so config.status won't be able to write to it; its
54424 # output is simply discarded. So we exec the FD to /dev/null,
54425 # effectively closing config.log, so it can be properly (re)opened and
54426 # appended to by config.status. When coming back to configure, we
54427 # need to make the FD available again.
54428 if test "$no_create" != yes; then
54430 ac_config_status_args=
54431 test "$silent" = yes &&
54432 ac_config_status_args="$ac_config_status_args --quiet"
54434 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
54436 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
54437 # would make configure fail if this is the last instruction.
54438 $ac_cs_success || { (exit 1); exit 1; }