2 # From configure.in OpenLDAP: pkg/ldap/configure.in.
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
2338 # OpenLDAP --with-cyrus_sasl
2340 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2341 if test "${with_cyrus_sasl+set}" = set; then
2342 withval="$with_cyrus_sasl"
2345 for ol_val in auto yes no ; do
2346 if test "$withval" = "$ol_val" ; then
2350 if test "$ol_arg" = "invalid" ; then
2351 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2352 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2353 { (exit 1); exit 1; }; }
2355 ol_with_cyrus_sasl="$ol_arg"
2358 ol_with_cyrus_sasl="auto"
2359 fi; # end --with-cyrus_sasl
2361 # OpenLDAP --with-fetch
2363 # Check whether --with-fetch or --without-fetch was given.
2364 if test "${with_fetch+set}" = set; then
2365 withval="$with_fetch"
2368 for ol_val in auto yes no ; do
2369 if test "$withval" = "$ol_val" ; then
2373 if test "$ol_arg" = "invalid" ; then
2374 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2375 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2376 { (exit 1); exit 1; }; }
2378 ol_with_fetch="$ol_arg"
2381 ol_with_fetch="auto"
2382 fi; # end --with-fetch
2384 ol_with_kerberos=${ol_with_kerberos-auto}
2385 # OpenLDAP --with-threads
2387 # Check whether --with-threads or --without-threads was given.
2388 if test "${with_threads+set}" = set; then
2389 withval="$with_threads"
2392 for ol_val in auto nt posix mach pth lwp yes no manual ; do
2393 if test "$withval" = "$ol_val" ; then
2397 if test "$ol_arg" = "invalid" ; then
2398 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2399 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2400 { (exit 1); exit 1; }; }
2402 ol_with_threads="$ol_arg"
2405 ol_with_threads="auto"
2406 fi; # end --with-threads
2408 # OpenLDAP --with-tls
2410 # Check whether --with-tls or --without-tls was given.
2411 if test "${with_tls+set}" = set; then
2415 for ol_val in auto ssleay openssl yes no ; do
2416 if test "$withval" = "$ol_val" ; then
2420 if test "$ol_arg" = "invalid" ; then
2421 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2422 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2423 { (exit 1); exit 1; }; }
2425 ol_with_tls="$ol_arg"
2429 fi; # end --with-tls
2431 # OpenLDAP --with-yielding_select
2433 # Check whether --with-yielding_select or --without-yielding_select was given.
2434 if test "${with_yielding_select+set}" = set; then
2435 withval="$with_yielding_select"
2438 for ol_val in auto yes no manual ; do
2439 if test "$withval" = "$ol_val" ; then
2443 if test "$ol_arg" = "invalid" ; then
2444 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2445 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2446 { (exit 1); exit 1; }; }
2448 ol_with_yielding_select="$ol_arg"
2451 ol_with_yielding_select="auto"
2452 fi; # end --with-yielding_select
2454 # OpenLDAP --with-multiple_precision
2456 # Check whether --with-multiple_precision or --without-multiple_precision was given.
2457 if test "${with_multiple_precision+set}" = set; then
2458 withval="$with_multiple_precision"
2461 for ol_val in auto bignum gmp yes no ; do
2462 if test "$withval" = "$ol_val" ; then
2466 if test "$ol_arg" = "invalid" ; then
2467 { { echo "$as_me:$LINENO: error: bad value $withval for --with-multiple_precision" >&5
2468 echo "$as_me: error: bad value $withval for --with-multiple_precision" >&2;}
2469 { (exit 1); exit 1; }; }
2471 ol_with_multiple_precision="$ol_arg"
2474 ol_with_multiple_precision="auto"
2475 fi; # end --with-multiple_precision
2480 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
2481 if test "${with_xxslapdoptions+set}" = set; then
2482 withval="$with_xxslapdoptions"
2485 # OpenLDAP --enable-slapd
2486 # Check whether --enable-slapd or --disable-slapd was given.
2487 if test "${enable_slapd+set}" = set; then
2488 enableval="$enable_slapd"
2491 for ol_val in auto yes no ; do
2492 if test "$enableval" = "$ol_val" ; then
2496 if test "$ol_arg" = "invalid" ; then
2497 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2498 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2499 { (exit 1); exit 1; }; }
2501 ol_enable_slapd="$ol_arg"
2504 ol_enable_slapd="yes"
2505 fi; # end --enable-slapd
2506 # OpenLDAP --enable-aci
2507 # Check whether --enable-aci or --disable-aci was given.
2508 if test "${enable_aci+set}" = set; then
2509 enableval="$enable_aci"
2512 for ol_val in auto yes no ; do
2513 if test "$enableval" = "$ol_val" ; then
2517 if test "$ol_arg" = "invalid" ; then
2518 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2519 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2520 { (exit 1); exit 1; }; }
2522 ol_enable_aci="$ol_arg"
2526 fi; # end --enable-aci
2527 # OpenLDAP --enable-cleartext
2528 # Check whether --enable-cleartext or --disable-cleartext was given.
2529 if test "${enable_cleartext+set}" = set; then
2530 enableval="$enable_cleartext"
2533 for ol_val in auto yes no ; do
2534 if test "$enableval" = "$ol_val" ; then
2538 if test "$ol_arg" = "invalid" ; then
2539 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2540 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2541 { (exit 1); exit 1; }; }
2543 ol_enable_cleartext="$ol_arg"
2546 ol_enable_cleartext="yes"
2547 fi; # end --enable-cleartext
2548 # OpenLDAP --enable-crypt
2549 # Check whether --enable-crypt or --disable-crypt was given.
2550 if test "${enable_crypt+set}" = set; then
2551 enableval="$enable_crypt"
2554 for ol_val in auto yes no ; do
2555 if test "$enableval" = "$ol_val" ; then
2559 if test "$ol_arg" = "invalid" ; then
2560 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2561 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2562 { (exit 1); exit 1; }; }
2564 ol_enable_crypt="$ol_arg"
2567 ol_enable_crypt="no"
2568 fi; # end --enable-crypt
2569 # OpenLDAP --enable-lmpasswd
2570 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2571 if test "${enable_lmpasswd+set}" = set; then
2572 enableval="$enable_lmpasswd"
2575 for ol_val in auto yes no ; do
2576 if test "$enableval" = "$ol_val" ; then
2580 if test "$ol_arg" = "invalid" ; then
2581 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2582 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2583 { (exit 1); exit 1; }; }
2585 ol_enable_lmpasswd="$ol_arg"
2588 ol_enable_lmpasswd="no"
2589 fi; # end --enable-lmpasswd
2590 # OpenLDAP --enable-spasswd
2591 # Check whether --enable-spasswd or --disable-spasswd was given.
2592 if test "${enable_spasswd+set}" = set; then
2593 enableval="$enable_spasswd"
2596 for ol_val in auto yes no ; do
2597 if test "$enableval" = "$ol_val" ; then
2601 if test "$ol_arg" = "invalid" ; then
2602 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2603 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2604 { (exit 1); exit 1; }; }
2606 ol_enable_spasswd="$ol_arg"
2609 ol_enable_spasswd="no"
2610 fi; # end --enable-spasswd
2611 # OpenLDAP --enable-modules
2612 # Check whether --enable-modules or --disable-modules was given.
2613 if test "${enable_modules+set}" = set; then
2614 enableval="$enable_modules"
2617 for ol_val in auto yes no ; do
2618 if test "$enableval" = "$ol_val" ; then
2622 if test "$ol_arg" = "invalid" ; then
2623 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2624 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2625 { (exit 1); exit 1; }; }
2627 ol_enable_modules="$ol_arg"
2630 ol_enable_modules="no"
2631 fi; # end --enable-modules
2632 ol_enable_multimaster=${ol_enable_multimaster-no}
2633 # OpenLDAP --enable-rewrite
2634 # Check whether --enable-rewrite or --disable-rewrite was given.
2635 if test "${enable_rewrite+set}" = set; then
2636 enableval="$enable_rewrite"
2639 for ol_val in auto yes no ; do
2640 if test "$enableval" = "$ol_val" ; then
2644 if test "$ol_arg" = "invalid" ; then
2645 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2646 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2647 { (exit 1); exit 1; }; }
2649 ol_enable_rewrite="$ol_arg"
2652 ol_enable_rewrite="auto"
2653 fi; # end --enable-rewrite
2654 # OpenLDAP --enable-rlookups
2655 # Check whether --enable-rlookups or --disable-rlookups was given.
2656 if test "${enable_rlookups+set}" = set; then
2657 enableval="$enable_rlookups"
2660 for ol_val in auto yes no ; do
2661 if test "$enableval" = "$ol_val" ; then
2665 if test "$ol_arg" = "invalid" ; then
2666 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2667 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2668 { (exit 1); exit 1; }; }
2670 ol_enable_rlookups="$ol_arg"
2673 ol_enable_rlookups="no"
2674 fi; # end --enable-rlookups
2675 # OpenLDAP --enable-slapi
2676 # Check whether --enable-slapi or --disable-slapi was given.
2677 if test "${enable_slapi+set}" = set; then
2678 enableval="$enable_slapi"
2681 for ol_val in auto yes no ; do
2682 if test "$enableval" = "$ol_val" ; then
2686 if test "$ol_arg" = "invalid" ; then
2687 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2688 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2689 { (exit 1); exit 1; }; }
2691 ol_enable_slapi="$ol_arg"
2694 ol_enable_slapi="no"
2695 fi; # end --enable-slapi
2696 # OpenLDAP --enable-slp
2697 # Check whether --enable-slp or --disable-slp was given.
2698 if test "${enable_slp+set}" = set; then
2699 enableval="$enable_slp"
2702 for ol_val in auto yes no ; do
2703 if test "$enableval" = "$ol_val" ; then
2707 if test "$ol_arg" = "invalid" ; then
2708 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2709 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2710 { (exit 1); exit 1; }; }
2712 ol_enable_slp="$ol_arg"
2716 fi; # end --enable-slp
2717 # OpenLDAP --enable-wrappers
2718 # Check whether --enable-wrappers or --disable-wrappers was given.
2719 if test "${enable_wrappers+set}" = set; then
2720 enableval="$enable_wrappers"
2723 for ol_val in auto yes no ; do
2724 if test "$enableval" = "$ol_val" ; then
2728 if test "$ol_arg" = "invalid" ; then
2729 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2730 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2731 { (exit 1); exit 1; }; }
2733 ol_enable_wrappers="$ol_arg"
2736 ol_enable_wrappers="no"
2737 fi; # end --enable-wrappers
2739 Backends="bdb dnssrv hdb ldap ldbm meta monitor null \
2740 passwd perl relay shell sql"
2743 # Check whether --with-xxslapbackends or --without-xxslapbackends was given.
2744 if test "${with_xxslapbackends+set}" = set; then
2745 withval="$with_xxslapbackends"
2749 # OpenLDAP --enable-backends
2750 # Check whether --enable-backends or --disable-backends was given.
2751 if test "${enable_backends+set}" = set; then
2752 enableval="$enable_backends"
2755 for ol_val in no yes mod ; do
2756 if test "$enableval" = "$ol_val" ; then
2760 if test "$ol_arg" = "invalid" ; then
2761 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2762 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2763 { (exit 1); exit 1; }; }
2765 ol_enable_backends="$ol_arg"
2767 fi; # end --enable-backends
2768 test -n "$ol_enable_backends" && ol_dflt_backends="$ol_enable_backends"
2769 # OpenLDAP --enable-bdb
2770 # Check whether --enable-bdb or --disable-bdb was given.
2771 if test "${enable_bdb+set}" = set; then
2772 enableval="$enable_bdb"
2775 for ol_val in no yes mod ; do
2776 if test "$enableval" = "$ol_val" ; then
2780 if test "$ol_arg" = "invalid" ; then
2781 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2782 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2783 { (exit 1); exit 1; }; }
2785 ol_enable_bdb="$ol_arg"
2788 ol_enable_bdb="${ol_dflt_backends-yes}"
2789 fi; # end --enable-bdb
2790 # OpenLDAP --enable-dnssrv
2791 # Check whether --enable-dnssrv or --disable-dnssrv was given.
2792 if test "${enable_dnssrv+set}" = set; then
2793 enableval="$enable_dnssrv"
2796 for ol_val in no yes mod ; do
2797 if test "$enableval" = "$ol_val" ; then
2801 if test "$ol_arg" = "invalid" ; then
2802 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2803 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2804 { (exit 1); exit 1; }; }
2806 ol_enable_dnssrv="$ol_arg"
2809 ol_enable_dnssrv="${ol_dflt_backends-no}"
2810 fi; # end --enable-dnssrv
2811 # OpenLDAP --enable-hdb
2812 # Check whether --enable-hdb or --disable-hdb was given.
2813 if test "${enable_hdb+set}" = set; then
2814 enableval="$enable_hdb"
2817 for ol_val in no yes mod ; do
2818 if test "$enableval" = "$ol_val" ; then
2822 if test "$ol_arg" = "invalid" ; then
2823 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2824 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2825 { (exit 1); exit 1; }; }
2827 ol_enable_hdb="$ol_arg"
2830 ol_enable_hdb="${ol_dflt_backends-yes}"
2831 fi; # end --enable-hdb
2832 # OpenLDAP --enable-ldap
2833 # Check whether --enable-ldap or --disable-ldap was given.
2834 if test "${enable_ldap+set}" = set; then
2835 enableval="$enable_ldap"
2838 for ol_val in no yes mod ; do
2839 if test "$enableval" = "$ol_val" ; then
2843 if test "$ol_arg" = "invalid" ; then
2844 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2845 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2846 { (exit 1); exit 1; }; }
2848 ol_enable_ldap="$ol_arg"
2851 ol_enable_ldap="${ol_dflt_backends-no}"
2852 fi; # end --enable-ldap
2853 # OpenLDAP --enable-ldbm
2854 # Check whether --enable-ldbm or --disable-ldbm was given.
2855 if test "${enable_ldbm+set}" = set; then
2856 enableval="$enable_ldbm"
2859 for ol_val in no yes mod ; do
2860 if test "$enableval" = "$ol_val" ; then
2864 if test "$ol_arg" = "invalid" ; then
2865 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm" >&5
2866 echo "$as_me: error: bad value $enableval for --enable-ldbm" >&2;}
2867 { (exit 1); exit 1; }; }
2869 ol_enable_ldbm="$ol_arg"
2872 ol_enable_ldbm="${ol_dflt_backends-no}"
2873 fi; # end --enable-ldbm
2874 # OpenLDAP --with-ldbm_api
2876 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2877 if test "${with_ldbm_api+set}" = set; then
2878 withval="$with_ldbm_api"
2881 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2882 if test "$withval" = "$ol_val" ; then
2886 if test "$ol_arg" = "invalid" ; then
2887 { { echo "$as_me:$LINENO: error: bad value $withval for --with-ldbm_api" >&5
2888 echo "$as_me: error: bad value $withval for --with-ldbm_api" >&2;}
2889 { (exit 1); exit 1; }; }
2891 ol_with_ldbm_api="$ol_arg"
2894 ol_with_ldbm_api="auto"
2895 fi; # end --with-ldbm_api
2897 # OpenLDAP --with-ldbm_type
2899 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2900 if test "${with_ldbm_type+set}" = set; then
2901 withval="$with_ldbm_type"
2904 for ol_val in auto btree hash ; do
2905 if test "$withval" = "$ol_val" ; then
2909 if test "$ol_arg" = "invalid" ; then
2910 { { echo "$as_me:$LINENO: error: bad value $withval for --with-ldbm_type" >&5
2911 echo "$as_me: error: bad value $withval for --with-ldbm_type" >&2;}
2912 { (exit 1); exit 1; }; }
2914 ol_with_ldbm_type="$ol_arg"
2917 ol_with_ldbm_type="auto"
2918 fi; # end --with-ldbm_type
2920 # OpenLDAP --enable-meta
2921 # Check whether --enable-meta or --disable-meta was given.
2922 if test "${enable_meta+set}" = set; then
2923 enableval="$enable_meta"
2926 for ol_val in no yes mod ; do
2927 if test "$enableval" = "$ol_val" ; then
2931 if test "$ol_arg" = "invalid" ; then
2932 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2933 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2934 { (exit 1); exit 1; }; }
2936 ol_enable_meta="$ol_arg"
2939 ol_enable_meta="${ol_dflt_backends-no}"
2940 fi; # end --enable-meta
2941 # OpenLDAP --enable-monitor
2942 # Check whether --enable-monitor or --disable-monitor was given.
2943 if test "${enable_monitor+set}" = set; then
2944 enableval="$enable_monitor"
2947 for ol_val in no yes mod ; do
2948 if test "$enableval" = "$ol_val" ; then
2952 if test "$ol_arg" = "invalid" ; then
2953 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
2954 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
2955 { (exit 1); exit 1; }; }
2957 ol_enable_monitor="$ol_arg"
2960 ol_enable_monitor="${ol_dflt_backends-yes}"
2961 fi; # end --enable-monitor
2962 # OpenLDAP --enable-null
2963 # Check whether --enable-null or --disable-null was given.
2964 if test "${enable_null+set}" = set; then
2965 enableval="$enable_null"
2968 for ol_val in no yes mod ; do
2969 if test "$enableval" = "$ol_val" ; then
2973 if test "$ol_arg" = "invalid" ; then
2974 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
2975 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
2976 { (exit 1); exit 1; }; }
2978 ol_enable_null="$ol_arg"
2981 ol_enable_null="${ol_dflt_backends-no}"
2982 fi; # end --enable-null
2983 # OpenLDAP --enable-passwd
2984 # Check whether --enable-passwd or --disable-passwd was given.
2985 if test "${enable_passwd+set}" = set; then
2986 enableval="$enable_passwd"
2989 for ol_val in no yes mod ; do
2990 if test "$enableval" = "$ol_val" ; then
2994 if test "$ol_arg" = "invalid" ; then
2995 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
2996 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
2997 { (exit 1); exit 1; }; }
2999 ol_enable_passwd="$ol_arg"
3002 ol_enable_passwd="${ol_dflt_backends-no}"
3003 fi; # end --enable-passwd
3004 # OpenLDAP --enable-perl
3005 # Check whether --enable-perl or --disable-perl was given.
3006 if test "${enable_perl+set}" = set; then
3007 enableval="$enable_perl"
3010 for ol_val in no yes mod ; do
3011 if test "$enableval" = "$ol_val" ; then
3015 if test "$ol_arg" = "invalid" ; then
3016 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3017 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3018 { (exit 1); exit 1; }; }
3020 ol_enable_perl="$ol_arg"
3023 ol_enable_perl="${ol_dflt_backends-no}"
3024 fi; # end --enable-perl
3025 # OpenLDAP --enable-relay
3026 # Check whether --enable-relay or --disable-relay was given.
3027 if test "${enable_relay+set}" = set; then
3028 enableval="$enable_relay"
3031 for ol_val in no yes mod ; do
3032 if test "$enableval" = "$ol_val" ; then
3036 if test "$ol_arg" = "invalid" ; then
3037 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3038 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3039 { (exit 1); exit 1; }; }
3041 ol_enable_relay="$ol_arg"
3044 ol_enable_relay="${ol_dflt_backends-yes}"
3045 fi; # end --enable-relay
3046 # OpenLDAP --enable-shell
3047 # Check whether --enable-shell or --disable-shell was given.
3048 if test "${enable_shell+set}" = set; then
3049 enableval="$enable_shell"
3052 for ol_val in no yes mod ; do
3053 if test "$enableval" = "$ol_val" ; then
3057 if test "$ol_arg" = "invalid" ; then
3058 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3059 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3060 { (exit 1); exit 1; }; }
3062 ol_enable_shell="$ol_arg"
3065 ol_enable_shell="${ol_dflt_backends-no}"
3066 fi; # end --enable-shell
3067 # OpenLDAP --enable-sql
3068 # Check whether --enable-sql or --disable-sql was given.
3069 if test "${enable_sql+set}" = set; then
3070 enableval="$enable_sql"
3073 for ol_val in no yes mod ; do
3074 if test "$enableval" = "$ol_val" ; then
3078 if test "$ol_arg" = "invalid" ; then
3079 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3080 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3081 { (exit 1); exit 1; }; }
3083 ol_enable_sql="$ol_arg"
3086 ol_enable_sql="${ol_dflt_backends-no}"
3087 fi; # end --enable-sql
3089 Overlays="accesslog denyop dyngroup dynlist glue lastmod ppolicy proxycache \
3090 refint retcode rwm syncprov translucent unique"
3093 # Check whether --with-xxslapoverlays or --without-xxslapoverlays was given.
3094 if test "${with_xxslapoverlays+set}" = set; then
3095 withval="$with_xxslapoverlays"
3099 # OpenLDAP --enable-overlays
3100 # Check whether --enable-overlays or --disable-overlays was given.
3101 if test "${enable_overlays+set}" = set; then
3102 enableval="$enable_overlays"
3105 for ol_val in no yes mod ; do
3106 if test "$enableval" = "$ol_val" ; then
3110 if test "$ol_arg" = "invalid" ; then
3111 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3112 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3113 { (exit 1); exit 1; }; }
3115 ol_enable_overlays="$ol_arg"
3117 fi; # end --enable-overlays
3118 test -n "$ol_enable_overlays" && ol_dflt_overlays="$ol_enable_overlays"
3119 # OpenLDAP --enable-accesslog
3120 # Check whether --enable-accesslog or --disable-accesslog was given.
3121 if test "${enable_accesslog+set}" = set; then
3122 enableval="$enable_accesslog"
3125 for ol_val in no yes mod ; do
3126 if test "$enableval" = "$ol_val" ; then
3130 if test "$ol_arg" = "invalid" ; then
3131 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3132 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3133 { (exit 1); exit 1; }; }
3135 ol_enable_accesslog="$ol_arg"
3138 ol_enable_accesslog="${ol_dflt_overlays-no}"
3139 fi; # end --enable-accesslog
3141 # OpenLDAP --enable-denyop
3142 # Check whether --enable-denyop or --disable-denyop was given.
3143 if test "${enable_denyop+set}" = set; then
3144 enableval="$enable_denyop"
3147 for ol_val in no yes mod ; do
3148 if test "$enableval" = "$ol_val" ; then
3152 if test "$ol_arg" = "invalid" ; then
3153 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-denyop" >&5
3154 echo "$as_me: error: bad value $enableval for --enable-denyop" >&2;}
3155 { (exit 1); exit 1; }; }
3157 ol_enable_denyop="$ol_arg"
3160 ol_enable_denyop="${ol_dflt_overlays-no}"
3161 fi; # end --enable-denyop
3163 # OpenLDAP --enable-dyngroup
3164 # Check whether --enable-dyngroup or --disable-dyngroup was given.
3165 if test "${enable_dyngroup+set}" = set; then
3166 enableval="$enable_dyngroup"
3169 for ol_val in no yes mod ; do
3170 if test "$enableval" = "$ol_val" ; then
3174 if test "$ol_arg" = "invalid" ; then
3175 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3176 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3177 { (exit 1); exit 1; }; }
3179 ol_enable_dyngroup="$ol_arg"
3182 ol_enable_dyngroup="${ol_dflt_overlays-no}"
3183 fi; # end --enable-dyngroup
3185 # OpenLDAP --enable-dynlist
3186 # Check whether --enable-dynlist or --disable-dynlist was given.
3187 if test "${enable_dynlist+set}" = set; then
3188 enableval="$enable_dynlist"
3191 for ol_val in no yes mod ; do
3192 if test "$enableval" = "$ol_val" ; then
3196 if test "$ol_arg" = "invalid" ; then
3197 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3198 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3199 { (exit 1); exit 1; }; }
3201 ol_enable_dynlist="$ol_arg"
3204 ol_enable_dynlist="${ol_dflt_overlays-no}"
3205 fi; # end --enable-dynlist
3207 # OpenLDAP --enable-glue
3208 # Check whether --enable-glue or --disable-glue was given.
3209 if test "${enable_glue+set}" = set; then
3210 enableval="$enable_glue"
3213 for ol_val in no yes mod ; do
3214 if test "$enableval" = "$ol_val" ; then
3218 if test "$ol_arg" = "invalid" ; then
3219 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-glue" >&5
3220 echo "$as_me: error: bad value $enableval for --enable-glue" >&2;}
3221 { (exit 1); exit 1; }; }
3223 ol_enable_glue="$ol_arg"
3226 ol_enable_glue="${ol_dflt_overlays-yes}"
3227 fi; # end --enable-glue
3229 # OpenLDAP --enable-lastmod
3230 # Check whether --enable-lastmod or --disable-lastmod was given.
3231 if test "${enable_lastmod+set}" = set; then
3232 enableval="$enable_lastmod"
3235 for ol_val in no yes mod ; do
3236 if test "$enableval" = "$ol_val" ; then
3240 if test "$ol_arg" = "invalid" ; then
3241 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lastmod" >&5
3242 echo "$as_me: error: bad value $enableval for --enable-lastmod" >&2;}
3243 { (exit 1); exit 1; }; }
3245 ol_enable_lastmod="$ol_arg"
3248 ol_enable_lastmod="${ol_dflt_overlays-no}"
3249 fi; # end --enable-lastmod
3251 # OpenLDAP --enable-ppolicy
3252 # Check whether --enable-ppolicy or --disable-ppolicy was given.
3253 if test "${enable_ppolicy+set}" = set; then
3254 enableval="$enable_ppolicy"
3257 for ol_val in no yes mod ; do
3258 if test "$enableval" = "$ol_val" ; then
3262 if test "$ol_arg" = "invalid" ; then
3263 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3264 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3265 { (exit 1); exit 1; }; }
3267 ol_enable_ppolicy="$ol_arg"
3270 ol_enable_ppolicy="${ol_dflt_overlays-no}"
3271 fi; # end --enable-ppolicy
3273 # OpenLDAP --enable-proxycache
3274 # Check whether --enable-proxycache or --disable-proxycache was given.
3275 if test "${enable_proxycache+set}" = set; then
3276 enableval="$enable_proxycache"
3279 for ol_val in no yes mod ; do
3280 if test "$enableval" = "$ol_val" ; then
3284 if test "$ol_arg" = "invalid" ; then
3285 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3286 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3287 { (exit 1); exit 1; }; }
3289 ol_enable_proxycache="$ol_arg"
3292 ol_enable_proxycache="${ol_dflt_overlays-no}"
3293 fi; # end --enable-proxycache
3295 # OpenLDAP --enable-refint
3296 # Check whether --enable-refint or --disable-refint was given.
3297 if test "${enable_refint+set}" = set; then
3298 enableval="$enable_refint"
3301 for ol_val in no yes mod ; do
3302 if test "$enableval" = "$ol_val" ; then
3306 if test "$ol_arg" = "invalid" ; then
3307 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3308 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3309 { (exit 1); exit 1; }; }
3311 ol_enable_refint="$ol_arg"
3314 ol_enable_refint="${ol_dflt_overlays-no}"
3315 fi; # end --enable-refint
3317 # OpenLDAP --enable-retcode
3318 # Check whether --enable-retcode or --disable-retcode was given.
3319 if test "${enable_retcode+set}" = set; then
3320 enableval="$enable_retcode"
3323 for ol_val in no yes mod ; do
3324 if test "$enableval" = "$ol_val" ; then
3328 if test "$ol_arg" = "invalid" ; then
3329 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3330 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3331 { (exit 1); exit 1; }; }
3333 ol_enable_retcode="$ol_arg"
3336 ol_enable_retcode="${ol_dflt_overlays-no}"
3337 fi; # end --enable-retcode
3339 # OpenLDAP --enable-rwm
3340 # Check whether --enable-rwm or --disable-rwm was given.
3341 if test "${enable_rwm+set}" = set; then
3342 enableval="$enable_rwm"
3345 for ol_val in no yes mod ; do
3346 if test "$enableval" = "$ol_val" ; then
3350 if test "$ol_arg" = "invalid" ; then
3351 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3352 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3353 { (exit 1); exit 1; }; }
3355 ol_enable_rwm="$ol_arg"
3358 ol_enable_rwm="${ol_dflt_overlays-no}"
3359 fi; # end --enable-rwm
3361 # OpenLDAP --enable-syncprov
3362 # Check whether --enable-syncprov or --disable-syncprov was given.
3363 if test "${enable_syncprov+set}" = set; then
3364 enableval="$enable_syncprov"
3367 for ol_val in no yes mod ; do
3368 if test "$enableval" = "$ol_val" ; then
3372 if test "$ol_arg" = "invalid" ; then
3373 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3374 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3375 { (exit 1); exit 1; }; }
3377 ol_enable_syncprov="$ol_arg"
3380 ol_enable_syncprov="${ol_dflt_overlays-yes}"
3381 fi; # end --enable-syncprov
3383 # OpenLDAP --enable-translucent
3384 # Check whether --enable-translucent or --disable-translucent was given.
3385 if test "${enable_translucent+set}" = set; then
3386 enableval="$enable_translucent"
3389 for ol_val in no yes mod ; do
3390 if test "$enableval" = "$ol_val" ; then
3394 if test "$ol_arg" = "invalid" ; then
3395 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3396 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3397 { (exit 1); exit 1; }; }
3399 ol_enable_translucent="$ol_arg"
3402 ol_enable_translucent="${ol_dflt_overlays-no}"
3403 fi; # end --enable-translucent
3405 # OpenLDAP --enable-unique
3406 # Check whether --enable-unique or --disable-unique was given.
3407 if test "${enable_unique+set}" = set; then
3408 enableval="$enable_unique"
3411 for ol_val in no yes mod ; do
3412 if test "$enableval" = "$ol_val" ; then
3416 if test "$ol_arg" = "invalid" ; then
3417 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3418 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3419 { (exit 1); exit 1; }; }
3421 ol_enable_unique="$ol_arg"
3424 ol_enable_unique="${ol_dflt_overlays-no}"
3425 fi; # end --enable-unique
3430 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
3431 if test "${with_xxslurpdoptions+set}" = set; then
3432 withval="$with_xxslurpdoptions"
3435 # OpenLDAP --enable-slurpd
3436 # Check whether --enable-slurpd or --disable-slurpd was given.
3437 if test "${enable_slurpd+set}" = set; then
3438 enableval="$enable_slurpd"
3441 for ol_val in auto yes no ; do
3442 if test "$enableval" = "$ol_val" ; then
3446 if test "$ol_arg" = "invalid" ; then
3447 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slurpd" >&5
3448 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
3449 { (exit 1); exit 1; }; }
3451 ol_enable_slurpd="$ol_arg"
3454 ol_enable_slurpd="auto"
3455 fi; # end --enable-slurpd
3458 # Check whether --with-xxliboptions or --without-xxliboptions was given.
3459 if test "${with_xxliboptions+set}" = set; then
3460 withval="$with_xxliboptions"
3463 # Check whether --enable-static or --disable-static was given.
3464 if test "${enable_static+set}" = set; then
3465 enableval="$enable_static"
3466 p=${PACKAGE-default}
3468 yes) enable_static=yes ;;
3469 no) enable_static=no ;;
3472 # Look at the argument we got. We use all the common list separators.
3473 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3474 for pkg in $enableval; do
3476 if test "X$pkg" = "X$p"; then
3487 # Check whether --enable-shared or --disable-shared was given.
3488 if test "${enable_shared+set}" = set; then
3489 enableval="$enable_shared"
3490 p=${PACKAGE-default}
3492 yes) enable_shared=yes ;;
3493 no) enable_shared=no ;;
3496 # Look at the argument we got. We use all the common list separators.
3497 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3498 for pkg in $enableval; do
3500 if test "X$pkg" = "X$p"; then
3514 if test $ol_enable_slapd = no ; then
3515 if test $ol_enable_slapi = yes ; then
3516 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3517 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3519 case "$ol_enable_backends" in yes | mod)
3520 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3521 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3523 for i in $Backends; do
3524 eval "ol_tmp=\$ol_enable_$i"
3525 if test $ol_tmp != no ; then
3526 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3527 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3528 eval "ol_enable_$i=no"
3531 if test $ol_enable_modules = yes ; then
3532 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3533 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3535 if test $ol_enable_multimaster = yes ; then
3536 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&5
3537 echo "$as_me: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&2;}
3539 if test $ol_enable_wrappers = yes ; then
3540 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3541 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3543 if test $ol_enable_rlookups = yes ; then
3544 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3545 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3547 if test $ol_enable_aci = yes ; then
3548 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3549 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3551 if test $ol_with_ldbm_api != auto ; then
3552 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --with-ldbm-api argument" >&5
3553 echo "$as_me: WARNING: slapd disabled, ignoring --with-ldbm-api argument" >&2;}
3555 if test $ol_with_ldbm_type != auto ; then
3556 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --with-ldbm-type argument" >&5
3557 echo "$as_me: WARNING: slapd disabled, ignoring --with-ldbm-type argument" >&2;}
3559 if test $ol_enable_slurpd = yes ; then
3560 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3561 echo "$as_me: error: slurpd requires slapd" >&2;}
3562 { (exit 1); exit 1; }; }
3564 if test $ol_enable_rewrite = yes ; then
3565 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3566 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3568 case "$ol_enable_overlays" in yes | mod)
3569 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3570 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3572 for i in $Overlays; do
3573 eval "ol_tmp=\$ol_enable_$i"
3574 if test $ol_tmp != no ; then
3575 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3576 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3577 eval "ol_enable_$i=no"
3581 # force settings to no
3586 ol_enable_modules=no
3587 ol_enable_multimaster=no
3588 ol_enable_rlookups=no
3590 ol_enable_wrappers=no
3593 ol_with_ldbm_type=no
3597 ol_enable_rewrite=no
3599 elif test $ol_enable_ldbm = no ; then
3601 if test $ol_with_ldbm_api != auto ; then
3602 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --with-ldbm-api argument" >&5
3603 echo "$as_me: WARNING: LDBM disabled, ignoring --with-ldbm-api argument" >&2;}
3606 if test $ol_with_ldbm_type != auto ; then
3607 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --with-ldbm-type argument" >&5
3608 echo "$as_me: WARNING: LDBM disabled, ignoring --with-ldbm-type argument" >&2;}
3611 if test $ol_enable_modules != yes -a \
3612 $ol_enable_bdb = no -a \
3613 $ol_enable_dnssrv = no -a \
3614 $ol_enable_hdb = no -a \
3615 $ol_enable_ldap = no -a \
3616 $ol_enable_meta = no -a \
3617 $ol_enable_monitor = no -a \
3618 $ol_enable_null = no -a \
3619 $ol_enable_passwd = no -a \
3620 $ol_enable_perl = no -a \
3621 $ol_enable_relay = no -a \
3622 $ol_enable_shell = no -a \
3623 $ol_enable_sql = no ; then
3625 if test $ol_enable_slapd = yes ; then
3626 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3627 echo "$as_me: error: slapd requires a backend" >&2;}
3628 { (exit 1); exit 1; }; }
3630 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3631 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3637 ol_with_ldbm_type=no
3639 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
3640 ol_with_ldbm_api=berkeley
3644 if test $ol_with_ldbm_api = gdbm -a \
3645 $ol_with_ldbm_type = btree ; then
3646 { { echo "$as_me:$LINENO: error: GDBM only supports LDBM type hash" >&5
3647 echo "$as_me: error: GDBM only supports LDBM type hash" >&2;}
3648 { (exit 1); exit 1; }; }
3650 if test $ol_with_ldbm_api = mdbm -a \
3651 $ol_with_ldbm_type = btree ; then
3652 { { echo "$as_me:$LINENO: error: MDBM only supports LDBM type hash" >&5
3653 echo "$as_me: error: MDBM only supports LDBM type hash" >&2;}
3654 { (exit 1); exit 1; }; }
3656 if test $ol_with_ldbm_api = ndbm -a \
3657 $ol_with_ldbm_type = btree ; then
3658 { { echo "$as_me:$LINENO: error: NDBM only supports LDBM type hash" >&5
3659 echo "$as_me: error: NDBM only supports LDBM type hash" >&2;}
3660 { (exit 1); exit 1; }; }
3663 if test $ol_enable_bdb != no -o $ol_enable_hdb != no ; then
3664 if test $ol_with_ldbm_api = auto ; then
3665 ol_with_ldbm_api=berkeley
3666 elif test $ol_with_ldbm_api != berkeley ; then
3667 { { echo "$as_me:$LINENO: error: LDBM API not compatible with BDB/HDB" >&5
3668 echo "$as_me: error: LDBM API not compatible with BDB/HDB" >&2;}
3669 { (exit 1); exit 1; }; }
3674 if test $ol_enable_meta = yes -a $ol_enable_ldap = no ; then
3675 { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3676 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3677 { (exit 1); exit 1; }; }
3680 if test $ol_enable_slurpd = yes ; then
3681 if test $ol_with_threads = no ; then
3682 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3683 echo "$as_me: error: slurpd requires threads" >&2;}
3684 { (exit 1); exit 1; }; }
3688 if test $ol_enable_lmpasswd = yes ; then
3689 if test $ol_with_tls = no ; then
3690 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3691 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3692 { (exit 1); exit 1; }; }
3696 if test $ol_enable_kbind = yes ; then
3697 if test $ol_with_kerberos = no ; then
3698 { { echo "$as_me:$LINENO: error: options require --with-kerberos" >&5
3699 echo "$as_me: error: options require --with-kerberos" >&2;}
3700 { (exit 1); exit 1; }; }
3701 elif test $ol_with_kerberos = auto ; then
3702 ol_with_kerberos=yes
3705 elif test $ol_enable_kbind = no ; then
3706 if test $ol_with_kerberos = auto ; then
3708 elif test $ol_with_kerberos != no ; then
3709 { echo "$as_me:$LINENO: WARNING: Kerberos detection enabled unnecessarily" >&5
3710 echo "$as_me: WARNING: Kerberos detection enabled unnecessarily" >&2;};
3715 if test $ol_enable_spasswd = yes ; then
3716 if test $ol_with_cyrus_sasl = no ; then
3717 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3718 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3719 { (exit 1); exit 1; }; }
3721 ol_with_cyrus_sasl=yes
3724 echo "$as_me:$LINENO: result: done" >&5
3725 echo "${ECHO_T}done" >&6
3769 BUILD_TRANSLUCENT=no
3772 SLAPD_STATIC_OVERLAYS=
3773 SLAPD_DYNAMIC_OVERLAYS=
3775 SLAPD_MODULES_LDFLAGS=
3776 SLAPD_MODULES_CPPFLAGS=
3778 SLAPD_STATIC_BACKENDS=back-ldif
3779 SLAPD_DYNAMIC_BACKENDS=
3804 cat >>confdefs.h <<\_ACEOF
3805 #define HAVE_MKVERSION 1
3813 *-*-aix*) if test -z "$CC" ; then
3814 case "$ol_with_threads" in
3815 auto | yes | posix) ol_aix_threads=yes ;;
3821 if test $ol_aix_threads = yes ; then
3822 if test -z "${CC}" ; then
3823 for ac_prog in cc_r xlc_r cc
3825 # Extract the first word of "$ac_prog", so it can be a program name with args.
3826 set dummy $ac_prog; ac_word=$2
3827 echo "$as_me:$LINENO: checking for $ac_word" >&5
3828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3829 if test "${ac_cv_prog_CC+set}" = set; then
3830 echo $ECHO_N "(cached) $ECHO_C" >&6
3832 if test -n "$CC"; then
3833 ac_cv_prog_CC="$CC" # Let the user override the test.
3835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3839 test -z "$as_dir" && as_dir=.
3840 for ac_exec_ext in '' $ac_executable_extensions; do
3841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3842 ac_cv_prog_CC="$ac_prog"
3843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3852 if test -n "$CC"; then
3853 echo "$as_me:$LINENO: result: $CC" >&5
3854 echo "${ECHO_T}$CC" >&6
3856 echo "$as_me:$LINENO: result: no" >&5
3857 echo "${ECHO_T}no" >&6
3860 test -n "$CC" && break
3864 if test "$CC" = cc ; then
3865 if test $ol_with_threads != auto ; then
3866 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3867 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3868 { (exit 1); exit 1; }; }
3870 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
3871 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
3877 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
3878 ol_with_threads=posix
3879 ol_cv_pthread_create=yes
3883 if test -z "${CC}"; then
3884 for ac_prog in cc gcc
3886 # Extract the first word of "$ac_prog", so it can be a program name with args.
3887 set dummy $ac_prog; ac_word=$2
3888 echo "$as_me:$LINENO: checking for $ac_word" >&5
3889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3890 if test "${ac_cv_prog_CC+set}" = set; then
3891 echo $ECHO_N "(cached) $ECHO_C" >&6
3893 if test -n "$CC"; then
3894 ac_cv_prog_CC="$CC" # Let the user override the test.
3896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3900 test -z "$as_dir" && as_dir=.
3901 for ac_exec_ext in '' $ac_executable_extensions; do
3902 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3903 ac_cv_prog_CC="$ac_prog"
3904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3913 if test -n "$CC"; then
3914 echo "$as_me:$LINENO: result: $CC" >&5
3915 echo "${ECHO_T}$CC" >&6
3917 echo "$as_me:$LINENO: result: no" >&5
3918 echo "${ECHO_T}no" >&6
3921 test -n "$CC" && break
3923 test -n "$CC" || CC="missing"
3926 if test "${CC}" = "missing" ; then
3927 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&5
3928 echo "$as_me: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&2;}
3929 { (exit 1); exit 1; }; }
3933 if test -z "${AR}"; then
3934 for ac_prog in ar gar
3936 # Extract the first word of "$ac_prog", so it can be a program name with args.
3937 set dummy $ac_prog; ac_word=$2
3938 echo "$as_me:$LINENO: checking for $ac_word" >&5
3939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3940 if test "${ac_cv_prog_AR+set}" = set; then
3941 echo $ECHO_N "(cached) $ECHO_C" >&6
3943 if test -n "$AR"; then
3944 ac_cv_prog_AR="$AR" # Let the user override the test.
3946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3950 test -z "$as_dir" && as_dir=.
3951 for ac_exec_ext in '' $ac_executable_extensions; do
3952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3953 ac_cv_prog_AR="$ac_prog"
3954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3963 if test -n "$AR"; then
3964 echo "$as_me:$LINENO: result: $AR" >&5
3965 echo "${ECHO_T}$AR" >&6
3967 echo "$as_me:$LINENO: result: no" >&5
3968 echo "${ECHO_T}no" >&6
3971 test -n "$AR" && break
3973 test -n "$AR" || AR="missing"
3976 if test "${AR}" = "missing" ; then
3977 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&5
3978 echo "$as_me: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&2;}
3979 { (exit 1); exit 1; }; }
3987 # Check whether --enable-fast-install or --disable-fast-install was given.
3988 if test "${enable_fast_install+set}" = set; then
3989 enableval="$enable_fast_install"
3990 p=${PACKAGE-default}
3992 yes) enable_fast_install=yes ;;
3993 no) enable_fast_install=no ;;
3995 enable_fast_install=no
3996 # Look at the argument we got. We use all the common list separators.
3997 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3998 for pkg in $enableval; do
4000 if test "X$pkg" = "X$p"; then
4001 enable_fast_install=yes
4008 enable_fast_install=yes
4011 DEPDIR="${am__leading_dot}deps"
4013 ac_config_commands="$ac_config_commands depfiles"
4016 am_make=${MAKE-make}
4017 cat > confinc << 'END'
4022 # If we don't find an include directive, just comment out the code.
4023 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4024 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4028 # First try GNU make style include.
4029 echo "include confinc" > confmf
4030 # We grep out `Entering directory' and `Leaving directory'
4031 # messages which can occur if `w' ends up in MAKEFLAGS.
4032 # In particular we don't look at `^make:' because GNU make might
4033 # be invoked under some other name (usually "gmake"), in which
4034 # case it prints its new name instead of `make'.
4035 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4040 # Now try BSD make style include.
4041 if test "$am__include" = "#"; then
4042 echo '.include "confinc"' > confmf
4043 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4044 am__include=.include
4051 echo "$as_me:$LINENO: result: $_am_result" >&5
4052 echo "${ECHO_T}$_am_result" >&6
4053 rm -f confinc confmf
4055 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4056 if test "${enable_dependency_tracking+set}" = set; then
4057 enableval="$enable_dependency_tracking"
4060 if test "x$enable_dependency_tracking" != xno; then
4061 am_depcomp="$ac_aux_dir/depcomp"
4066 if test "x$enable_dependency_tracking" != xno; then
4077 ac_cpp='$CPP $CPPFLAGS'
4078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4081 if test -n "$ac_tool_prefix"; then
4082 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4083 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4084 echo "$as_me:$LINENO: checking for $ac_word" >&5
4085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4086 if test "${ac_cv_prog_CC+set}" = set; then
4087 echo $ECHO_N "(cached) $ECHO_C" >&6
4089 if test -n "$CC"; then
4090 ac_cv_prog_CC="$CC" # Let the user override the test.
4092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4096 test -z "$as_dir" && as_dir=.
4097 for ac_exec_ext in '' $ac_executable_extensions; do
4098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4099 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4109 if test -n "$CC"; then
4110 echo "$as_me:$LINENO: result: $CC" >&5
4111 echo "${ECHO_T}$CC" >&6
4113 echo "$as_me:$LINENO: result: no" >&5
4114 echo "${ECHO_T}no" >&6
4118 if test -z "$ac_cv_prog_CC"; then
4120 # Extract the first word of "gcc", so it can be a program name with args.
4121 set dummy gcc; ac_word=$2
4122 echo "$as_me:$LINENO: checking for $ac_word" >&5
4123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4124 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4125 echo $ECHO_N "(cached) $ECHO_C" >&6
4127 if test -n "$ac_ct_CC"; then
4128 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4134 test -z "$as_dir" && as_dir=.
4135 for ac_exec_ext in '' $ac_executable_extensions; do
4136 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4137 ac_cv_prog_ac_ct_CC="gcc"
4138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4146 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4147 if test -n "$ac_ct_CC"; then
4148 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4149 echo "${ECHO_T}$ac_ct_CC" >&6
4151 echo "$as_me:$LINENO: result: no" >&5
4152 echo "${ECHO_T}no" >&6
4160 if test -z "$CC"; then
4161 if test -n "$ac_tool_prefix"; then
4162 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4163 set dummy ${ac_tool_prefix}cc; ac_word=$2
4164 echo "$as_me:$LINENO: checking for $ac_word" >&5
4165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4166 if test "${ac_cv_prog_CC+set}" = set; then
4167 echo $ECHO_N "(cached) $ECHO_C" >&6
4169 if test -n "$CC"; then
4170 ac_cv_prog_CC="$CC" # Let the user override the test.
4172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176 test -z "$as_dir" && as_dir=.
4177 for ac_exec_ext in '' $ac_executable_extensions; do
4178 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4179 ac_cv_prog_CC="${ac_tool_prefix}cc"
4180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4189 if test -n "$CC"; then
4190 echo "$as_me:$LINENO: result: $CC" >&5
4191 echo "${ECHO_T}$CC" >&6
4193 echo "$as_me:$LINENO: result: no" >&5
4194 echo "${ECHO_T}no" >&6
4198 if test -z "$ac_cv_prog_CC"; then
4200 # Extract the first word of "cc", so it can be a program name with args.
4201 set dummy cc; ac_word=$2
4202 echo "$as_me:$LINENO: checking for $ac_word" >&5
4203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4204 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4205 echo $ECHO_N "(cached) $ECHO_C" >&6
4207 if test -n "$ac_ct_CC"; then
4208 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214 test -z "$as_dir" && as_dir=.
4215 for ac_exec_ext in '' $ac_executable_extensions; do
4216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4217 ac_cv_prog_ac_ct_CC="cc"
4218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4226 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4227 if test -n "$ac_ct_CC"; then
4228 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4229 echo "${ECHO_T}$ac_ct_CC" >&6
4231 echo "$as_me:$LINENO: result: no" >&5
4232 echo "${ECHO_T}no" >&6
4241 if test -z "$CC"; then
4242 # Extract the first word of "cc", so it can be a program name with args.
4243 set dummy cc; ac_word=$2
4244 echo "$as_me:$LINENO: checking for $ac_word" >&5
4245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4246 if test "${ac_cv_prog_CC+set}" = set; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4249 if test -n "$CC"; then
4250 ac_cv_prog_CC="$CC" # Let the user override the test.
4253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4257 test -z "$as_dir" && as_dir=.
4258 for ac_exec_ext in '' $ac_executable_extensions; do
4259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4260 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4261 ac_prog_rejected=yes
4265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4271 if test $ac_prog_rejected = yes; then
4272 # We found a bogon in the path, so make sure we never use it.
4273 set dummy $ac_cv_prog_CC
4275 if test $# != 0; then
4276 # We chose a different compiler from the bogus one.
4277 # However, it has the same basename, so the bogon will be chosen
4278 # first if we set CC to just the basename; use the full file name.
4280 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4286 if test -n "$CC"; then
4287 echo "$as_me:$LINENO: result: $CC" >&5
4288 echo "${ECHO_T}$CC" >&6
4290 echo "$as_me:$LINENO: result: no" >&5
4291 echo "${ECHO_T}no" >&6
4295 if test -z "$CC"; then
4296 if test -n "$ac_tool_prefix"; then
4299 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4300 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4301 echo "$as_me:$LINENO: checking for $ac_word" >&5
4302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4303 if test "${ac_cv_prog_CC+set}" = set; then
4304 echo $ECHO_N "(cached) $ECHO_C" >&6
4306 if test -n "$CC"; then
4307 ac_cv_prog_CC="$CC" # Let the user override the test.
4309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4313 test -z "$as_dir" && as_dir=.
4314 for ac_exec_ext in '' $ac_executable_extensions; do
4315 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4316 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4326 if test -n "$CC"; then
4327 echo "$as_me:$LINENO: result: $CC" >&5
4328 echo "${ECHO_T}$CC" >&6
4330 echo "$as_me:$LINENO: result: no" >&5
4331 echo "${ECHO_T}no" >&6
4334 test -n "$CC" && break
4337 if test -z "$CC"; then
4341 # Extract the first word of "$ac_prog", so it can be a program name with args.
4342 set dummy $ac_prog; ac_word=$2
4343 echo "$as_me:$LINENO: checking for $ac_word" >&5
4344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4345 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4346 echo $ECHO_N "(cached) $ECHO_C" >&6
4348 if test -n "$ac_ct_CC"; then
4349 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4355 test -z "$as_dir" && as_dir=.
4356 for ac_exec_ext in '' $ac_executable_extensions; do
4357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4358 ac_cv_prog_ac_ct_CC="$ac_prog"
4359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4367 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4368 if test -n "$ac_ct_CC"; then
4369 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4370 echo "${ECHO_T}$ac_ct_CC" >&6
4372 echo "$as_me:$LINENO: result: no" >&5
4373 echo "${ECHO_T}no" >&6
4376 test -n "$ac_ct_CC" && break
4385 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4386 See \`config.log' for more details." >&5
4387 echo "$as_me: error: no acceptable C compiler found in \$PATH
4388 See \`config.log' for more details." >&2;}
4389 { (exit 1); exit 1; }; }
4391 # Provide some information about the compiler.
4392 echo "$as_me:$LINENO:" \
4393 "checking for C compiler version" >&5
4394 ac_compiler=`set X $ac_compile; echo $2`
4395 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4396 (eval $ac_compiler --version </dev/null >&5) 2>&5
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); }
4400 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4401 (eval $ac_compiler -v </dev/null >&5) 2>&5
4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404 (exit $ac_status); }
4405 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4406 (eval $ac_compiler -V </dev/null >&5) 2>&5
4408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409 (exit $ac_status); }
4411 cat >conftest.$ac_ext <<_ACEOF
4414 cat confdefs.h >>conftest.$ac_ext
4415 cat >>conftest.$ac_ext <<_ACEOF
4416 /* end confdefs.h. */
4426 ac_clean_files_save=$ac_clean_files
4427 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4428 # Try to create an executable without -o first, disregard a.out.
4429 # It will help us diagnose broken compilers, and finding out an intuition
4431 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4432 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4433 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4434 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4435 (eval $ac_link_default) 2>&5
4437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438 (exit $ac_status); }; then
4439 # Find the output, starting from the most likely. This scheme is
4440 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4443 # Be careful to initialize this variable, since it used to be cached.
4444 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4446 # b.out is created by i960 compilers.
4447 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4449 test -f "$ac_file" || continue
4451 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4454 # This is the source file.
4457 # We found the default executable, but exeext='' is most
4461 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4462 # FIXME: I believe we export ac_cv_exeext for Libtool,
4463 # but it would be cool to find out if it's true. Does anybody
4464 # maintain Libtool? --akim.
4472 echo "$as_me: failed program was:" >&5
4473 sed 's/^/| /' conftest.$ac_ext >&5
4475 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4476 See \`config.log' for more details." >&5
4477 echo "$as_me: error: C compiler cannot create executables
4478 See \`config.log' for more details." >&2;}
4479 { (exit 77); exit 77; }; }
4482 ac_exeext=$ac_cv_exeext
4483 echo "$as_me:$LINENO: result: $ac_file" >&5
4484 echo "${ECHO_T}$ac_file" >&6
4486 # Check the compiler produces executables we can run. If not, either
4487 # the compiler is broken, or we cross compile.
4488 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4489 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4490 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4491 # If not cross compiling, check that we can run a simple program.
4492 if test "$cross_compiling" != yes; then
4493 if { ac_try='./$ac_file'
4494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); }; }; then
4501 if test "$cross_compiling" = maybe; then
4504 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4505 If you meant to cross compile, use \`--host'.
4506 See \`config.log' for more details." >&5
4507 echo "$as_me: error: cannot run C compiled programs.
4508 If you meant to cross compile, use \`--host'.
4509 See \`config.log' for more details." >&2;}
4510 { (exit 1); exit 1; }; }
4514 echo "$as_me:$LINENO: result: yes" >&5
4515 echo "${ECHO_T}yes" >&6
4517 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4518 ac_clean_files=$ac_clean_files_save
4519 # Check the compiler produces executables we can run. If not, either
4520 # the compiler is broken, or we cross compile.
4521 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4522 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4523 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4524 echo "${ECHO_T}$cross_compiling" >&6
4526 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4527 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4529 (eval $ac_link) 2>&5
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); }; then
4533 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4534 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4535 # work properly (i.e., refer to `conftest.exe'), while it won't with
4537 for ac_file in conftest.exe conftest conftest.*; do
4538 test -f "$ac_file" || continue
4540 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4541 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4548 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4549 See \`config.log' for more details." >&5
4550 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4551 See \`config.log' for more details." >&2;}
4552 { (exit 1); exit 1; }; }
4555 rm -f conftest$ac_cv_exeext
4556 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4557 echo "${ECHO_T}$ac_cv_exeext" >&6
4559 rm -f conftest.$ac_ext
4560 EXEEXT=$ac_cv_exeext
4562 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4563 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4564 if test "${ac_cv_objext+set}" = set; then
4565 echo $ECHO_N "(cached) $ECHO_C" >&6
4567 cat >conftest.$ac_ext <<_ACEOF
4570 cat confdefs.h >>conftest.$ac_ext
4571 cat >>conftest.$ac_ext <<_ACEOF
4572 /* end confdefs.h. */
4582 rm -f conftest.o conftest.obj
4583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4584 (eval $ac_compile) 2>&5
4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587 (exit $ac_status); }; then
4588 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4590 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4591 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4596 echo "$as_me: failed program was:" >&5
4597 sed 's/^/| /' conftest.$ac_ext >&5
4599 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4600 See \`config.log' for more details." >&5
4601 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4602 See \`config.log' for more details." >&2;}
4603 { (exit 1); exit 1; }; }
4606 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4608 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4609 echo "${ECHO_T}$ac_cv_objext" >&6
4610 OBJEXT=$ac_cv_objext
4612 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4613 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4614 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4615 echo $ECHO_N "(cached) $ECHO_C" >&6
4617 cat >conftest.$ac_ext <<_ACEOF
4620 cat confdefs.h >>conftest.$ac_ext
4621 cat >>conftest.$ac_ext <<_ACEOF
4622 /* end confdefs.h. */
4635 rm -f conftest.$ac_objext
4636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4637 (eval $ac_compile) 2>conftest.er1
4639 grep -v '^ *+' conftest.er1 >conftest.err
4641 cat conftest.err >&5
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); } &&
4644 { ac_try='test -z "$ac_c_werror_flag"
4645 || test ! -s conftest.err'
4646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); }; } &&
4651 { ac_try='test -s conftest.$ac_objext'
4652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); }; }; then
4659 echo "$as_me: failed program was:" >&5
4660 sed 's/^/| /' conftest.$ac_ext >&5
4664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4665 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4668 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4669 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4670 GCC=`test $ac_compiler_gnu = yes && echo yes`
4671 ac_test_CFLAGS=${CFLAGS+set}
4672 ac_save_CFLAGS=$CFLAGS
4674 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4675 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4676 if test "${ac_cv_prog_cc_g+set}" = set; then
4677 echo $ECHO_N "(cached) $ECHO_C" >&6
4679 cat >conftest.$ac_ext <<_ACEOF
4682 cat confdefs.h >>conftest.$ac_ext
4683 cat >>conftest.$ac_ext <<_ACEOF
4684 /* end confdefs.h. */
4694 rm -f conftest.$ac_objext
4695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4696 (eval $ac_compile) 2>conftest.er1
4698 grep -v '^ *+' conftest.er1 >conftest.err
4700 cat conftest.err >&5
4701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702 (exit $ac_status); } &&
4703 { ac_try='test -z "$ac_c_werror_flag"
4704 || test ! -s conftest.err'
4705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709 (exit $ac_status); }; } &&
4710 { ac_try='test -s conftest.$ac_objext'
4711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715 (exit $ac_status); }; }; then
4718 echo "$as_me: failed program was:" >&5
4719 sed 's/^/| /' conftest.$ac_ext >&5
4723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4725 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4726 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4727 if test "$ac_test_CFLAGS" = set; then
4728 CFLAGS=$ac_save_CFLAGS
4729 elif test $ac_cv_prog_cc_g = yes; then
4730 if test "$GCC" = yes; then
4736 if test "$GCC" = yes; then
4742 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4743 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4744 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4745 echo $ECHO_N "(cached) $ECHO_C" >&6
4747 ac_cv_prog_cc_stdc=no
4749 cat >conftest.$ac_ext <<_ACEOF
4752 cat confdefs.h >>conftest.$ac_ext
4753 cat >>conftest.$ac_ext <<_ACEOF
4754 /* end confdefs.h. */
4757 #include <sys/types.h>
4758 #include <sys/stat.h>
4759 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4760 struct buf { int x; };
4761 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4762 static char *e (p, i)
4768 static char *f (char * (*g) (char **, int), char **p, ...)
4773 s = g (p, va_arg (v,int));
4778 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4779 function prototypes and stuff, but not '\xHH' hex character constants.
4780 These don't provoke an error unfortunately, instead are silently treated
4781 as 'x'. The following induces an error, until -std1 is added to get
4782 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4783 array size at least. It's necessary to write '\x00'==0 to get something
4784 that's true only with -std1. */
4785 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4787 int test (int i, double x);
4788 struct s1 {int (*f) (int a);};
4789 struct s2 {int (*f) (double a);};
4790 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4796 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4801 # Don't try gcc -ansi; that turns off useful extensions and
4802 # breaks some systems' header files.
4803 # AIX -qlanglvl=ansi
4804 # Ultrix and OSF/1 -std1
4805 # HP-UX 10.20 and later -Ae
4806 # HP-UX older versions -Aa -D_HPUX_SOURCE
4807 # SVR4 -Xc -D__EXTENSIONS__
4808 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4810 CC="$ac_save_CC $ac_arg"
4811 rm -f conftest.$ac_objext
4812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4813 (eval $ac_compile) 2>conftest.er1
4815 grep -v '^ *+' conftest.er1 >conftest.err
4817 cat conftest.err >&5
4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819 (exit $ac_status); } &&
4820 { ac_try='test -z "$ac_c_werror_flag"
4821 || test ! -s conftest.err'
4822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 (exit $ac_status); }; } &&
4827 { ac_try='test -s conftest.$ac_objext'
4828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832 (exit $ac_status); }; }; then
4833 ac_cv_prog_cc_stdc=$ac_arg
4836 echo "$as_me: failed program was:" >&5
4837 sed 's/^/| /' conftest.$ac_ext >&5
4840 rm -f conftest.err conftest.$ac_objext
4842 rm -f conftest.$ac_ext conftest.$ac_objext
4847 case "x$ac_cv_prog_cc_stdc" in
4849 echo "$as_me:$LINENO: result: none needed" >&5
4850 echo "${ECHO_T}none needed" >&6 ;;
4852 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4853 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4854 CC="$CC $ac_cv_prog_cc_stdc" ;;
4857 # Some people use a C++ compiler to compile C. Since we use `exit',
4858 # in C++ we need to declare it. In case someone uses the same compiler
4859 # for both compiling C and C++ we need to have the C++ compiler decide
4860 # the declaration of exit, since it's the most demanding environment.
4861 cat >conftest.$ac_ext <<_ACEOF
4866 rm -f conftest.$ac_objext
4867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4868 (eval $ac_compile) 2>conftest.er1
4870 grep -v '^ *+' conftest.er1 >conftest.err
4872 cat conftest.err >&5
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); } &&
4875 { ac_try='test -z "$ac_c_werror_flag"
4876 || test ! -s conftest.err'
4877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); }; } &&
4882 { ac_try='test -s conftest.$ac_objext'
4883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); }; }; then
4888 for ac_declaration in \
4890 'extern "C" void std::exit (int) throw (); using std::exit;' \
4891 'extern "C" void std::exit (int); using std::exit;' \
4892 'extern "C" void exit (int) throw ();' \
4893 'extern "C" void exit (int);' \
4896 cat >conftest.$ac_ext <<_ACEOF
4899 cat confdefs.h >>conftest.$ac_ext
4900 cat >>conftest.$ac_ext <<_ACEOF
4901 /* end confdefs.h. */
4912 rm -f conftest.$ac_objext
4913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4914 (eval $ac_compile) 2>conftest.er1
4916 grep -v '^ *+' conftest.er1 >conftest.err
4918 cat conftest.err >&5
4919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920 (exit $ac_status); } &&
4921 { ac_try='test -z "$ac_c_werror_flag"
4922 || test ! -s conftest.err'
4923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); }; } &&
4928 { ac_try='test -s conftest.$ac_objext'
4929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); }; }; then
4936 echo "$as_me: failed program was:" >&5
4937 sed 's/^/| /' conftest.$ac_ext >&5
4941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4942 cat >conftest.$ac_ext <<_ACEOF
4945 cat confdefs.h >>conftest.$ac_ext
4946 cat >>conftest.$ac_ext <<_ACEOF
4947 /* end confdefs.h. */
4957 rm -f conftest.$ac_objext
4958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4959 (eval $ac_compile) 2>conftest.er1
4961 grep -v '^ *+' conftest.er1 >conftest.err
4963 cat conftest.err >&5
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); } &&
4966 { ac_try='test -z "$ac_c_werror_flag"
4967 || test ! -s conftest.err'
4968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972 (exit $ac_status); }; } &&
4973 { ac_try='test -s conftest.$ac_objext'
4974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); }; }; then
4981 echo "$as_me: failed program was:" >&5
4982 sed 's/^/| /' conftest.$ac_ext >&5
4985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4988 if test -n "$ac_declaration"; then
4989 echo '#ifdef __cplusplus' >>confdefs.h
4990 echo $ac_declaration >>confdefs.h
4991 echo '#endif' >>confdefs.h
4995 echo "$as_me: failed program was:" >&5
4996 sed 's/^/| /' conftest.$ac_ext >&5
4999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5001 ac_cpp='$CPP $CPPFLAGS'
5002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5006 depcc="$CC" am_compiler_list=
5008 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5009 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5010 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5011 echo $ECHO_N "(cached) $ECHO_C" >&6
5013 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5014 # We make a subdir and do the tests there. Otherwise we can end up
5015 # making bogus files that we don't know about and never remove. For
5016 # instance it was reported that on HP-UX the gcc test will end up
5017 # making a dummy file named `D' -- because `-MD' means `put the output
5020 # Copy depcomp to subdir because otherwise we won't find it if we're
5021 # using a relative directory.
5022 cp "$am_depcomp" conftest.dir
5024 # We will build objects and dependencies in a subdirectory because
5025 # it helps to detect inapplicable dependency modes. For instance
5026 # both Tru64's cc and ICC support -MD to output dependencies as a
5027 # side effect of compilation, but ICC will put the dependencies in
5028 # the current directory while Tru64 will put them in the object
5032 am_cv_CC_dependencies_compiler_type=none
5033 if test "$am_compiler_list" = ""; then
5034 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5036 for depmode in $am_compiler_list; do
5037 # Setup a source with many dependencies, because some compilers
5038 # like to wrap large dependency lists on column 80 (with \), and
5039 # we should not choose a depcomp mode which is confused by this.
5041 # We need to recreate these files for each test, as the compiler may
5042 # overwrite some of them when testing with obscure command lines.
5043 # This happens at least with the AIX C compiler.
5045 for i in 1 2 3 4 5 6; do
5046 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5047 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5048 # Solaris 8's {/usr,}/bin/sh.
5049 touch sub/conftst$i.h
5051 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5055 # after this tag, mechanisms are not by side-effect, so they'll
5056 # only be used when explicitly requested
5057 if test "x$enable_dependency_tracking" = xyes; then
5065 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5066 # mode. It turns out that the SunPro C++ compiler does not properly
5067 # handle `-M -o', and we need to detect this.
5068 if depmode=$depmode \
5069 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5070 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5071 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5072 >/dev/null 2>conftest.err &&
5073 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5074 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5075 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5076 # icc doesn't choke on unknown options, it will just issue warnings
5077 # or remarks (even with -Werror). So we grep stderr for any message
5078 # that says an option was ignored or not supported.
5079 # When given -MP, icc 7.0 and 7.1 complain thusly:
5080 # icc: Command line warning: ignoring option '-M'; no argument required
5081 # The diagnosis changed in icc 8.0:
5082 # icc: Command line remark: option '-MP' not supported
5083 if (grep 'ignoring option' conftest.err ||
5084 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5085 am_cv_CC_dependencies_compiler_type=$depmode
5094 am_cv_CC_dependencies_compiler_type=none
5098 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5099 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5100 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5105 test "x$enable_dependency_tracking" != xno \
5106 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5108 am__fastdepCC_FALSE='#'
5110 am__fastdepCC_TRUE='#'
5111 am__fastdepCC_FALSE=
5115 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5116 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5117 if test "${lt_cv_path_SED+set}" = set; then
5118 echo $ECHO_N "(cached) $ECHO_C" >&6
5120 # Loop through the user's path and test for sed and gsed.
5121 # Then use that list of sed's as ones to test for truncation.
5122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5126 test -z "$as_dir" && as_dir=.
5127 for lt_ac_prog in sed gsed; do
5128 for ac_exec_ext in '' $ac_executable_extensions; do
5129 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5130 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5137 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5138 # along with /bin/sed that truncates output.
5139 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5140 test ! -f $lt_ac_sed && continue
5141 cat /dev/null > conftest.in
5143 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5144 # Check for GNU sed and select it if it is found.
5145 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5146 lt_cv_path_SED=$lt_ac_sed
5150 cat conftest.in conftest.in >conftest.tmp
5151 mv conftest.tmp conftest.in
5152 cp conftest.in conftest.nl
5154 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5155 cmp -s conftest.out conftest.nl || break
5156 # 10000 chars as input seems more than enough
5157 test $lt_ac_count -gt 10 && break
5158 lt_ac_count=`expr $lt_ac_count + 1`
5159 if test $lt_ac_count -gt $lt_ac_max; then
5160 lt_ac_max=$lt_ac_count
5161 lt_cv_path_SED=$lt_ac_sed
5169 echo "$as_me:$LINENO: result: $SED" >&5
5170 echo "${ECHO_T}$SED" >&6
5172 echo "$as_me:$LINENO: checking for egrep" >&5
5173 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5174 if test "${ac_cv_prog_egrep+set}" = set; then
5175 echo $ECHO_N "(cached) $ECHO_C" >&6
5177 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5178 then ac_cv_prog_egrep='grep -E'
5179 else ac_cv_prog_egrep='egrep'
5182 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5183 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5184 EGREP=$ac_cv_prog_egrep
5188 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5189 if test "${with_gnu_ld+set}" = set; then
5190 withval="$with_gnu_ld"
5191 test "$withval" = no || with_gnu_ld=yes
5196 if test "$GCC" = yes; then
5197 # Check if gcc -print-prog-name=ld gives a path.
5198 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5199 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5202 # gcc leaves a trailing carriage return which upsets mingw
5203 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5205 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5208 # Accept absolute paths.
5210 re_direlt='/[^/][^/]*/\.\./'
5211 # Canonicalize the pathname of ld
5212 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5213 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5214 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5216 test -z "$LD" && LD="$ac_prog"
5219 # If it fails, then pretend we aren't using GCC.
5223 # If it is relative, then search for the first ld in PATH.
5227 elif test "$with_gnu_ld" = yes; then
5228 echo "$as_me:$LINENO: checking for GNU ld" >&5
5229 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5231 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5232 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5234 if test "${lt_cv_path_LD+set}" = set; then
5235 echo $ECHO_N "(cached) $ECHO_C" >&6
5237 if test -z "$LD"; then
5238 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5239 for ac_dir in $PATH; do
5241 test -z "$ac_dir" && ac_dir=.
5242 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5243 lt_cv_path_LD="$ac_dir/$ac_prog"
5244 # Check to see if the program is GNU ld. I'd rather use --version,
5245 # but apparently some GNU ld's only accept -v.
5246 # Break only if it was the GNU/non-GNU ld that we prefer.
5247 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5248 *GNU* | *'with BFD'*)
5249 test "$with_gnu_ld" != no && break
5252 test "$with_gnu_ld" != yes && break
5259 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5264 if test -n "$LD"; then
5265 echo "$as_me:$LINENO: result: $LD" >&5
5266 echo "${ECHO_T}$LD" >&6
5268 echo "$as_me:$LINENO: result: no" >&5
5269 echo "${ECHO_T}no" >&6
5271 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5272 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5273 { (exit 1); exit 1; }; }
5274 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5275 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5276 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5277 echo $ECHO_N "(cached) $ECHO_C" >&6
5279 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5280 case `$LD -v 2>&1 </dev/null` in
5281 *GNU* | *'with BFD'*)
5282 lt_cv_prog_gnu_ld=yes
5285 lt_cv_prog_gnu_ld=no
5289 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5290 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5291 with_gnu_ld=$lt_cv_prog_gnu_ld
5294 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5295 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5296 if test "${lt_cv_ld_reload_flag+set}" = set; then
5297 echo $ECHO_N "(cached) $ECHO_C" >&6
5299 lt_cv_ld_reload_flag='-r'
5301 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5302 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5303 reload_flag=$lt_cv_ld_reload_flag
5304 case $reload_flag in
5306 *) reload_flag=" $reload_flag" ;;
5308 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5311 if test "$GCC" = yes; then
5312 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5314 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5319 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5320 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5321 if test "${lt_cv_path_NM+set}" = set; then
5322 echo $ECHO_N "(cached) $ECHO_C" >&6
5324 if test -n "$NM"; then
5325 # Let the user override the test.
5328 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5329 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5331 test -z "$ac_dir" && ac_dir=.
5332 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5333 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5334 # Check to see if the nm accepts a BSD-compat flag.
5335 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5336 # nm: unknown option "B" ignored
5337 # Tru64's nm complains that /dev/null is an invalid object file
5338 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5339 */dev/null* | *'Invalid file or object type'*)
5340 lt_cv_path_NM="$tmp_nm -B"
5344 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5346 lt_cv_path_NM="$tmp_nm -p"
5350 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5351 continue # so that we can try to find one that supports BSD flags
5358 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5361 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5362 echo "${ECHO_T}$lt_cv_path_NM" >&6
5365 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5366 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5368 if test "$LN_S" = "ln -s"; then
5369 echo "$as_me:$LINENO: result: yes" >&5
5370 echo "${ECHO_T}yes" >&6
5372 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5373 echo "${ECHO_T}no, using $LN_S" >&6
5376 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5377 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5378 if test "${lt_cv_deplibs_check_method+set}" = set; then
5379 echo $ECHO_N "(cached) $ECHO_C" >&6
5381 lt_cv_file_magic_cmd='$MAGIC_CMD'
5382 lt_cv_file_magic_test_file=
5383 lt_cv_deplibs_check_method='unknown'
5384 # Need to set the preceding variable on all platforms that support
5385 # interlibrary dependencies.
5386 # 'none' -- dependencies not supported.
5387 # `unknown' -- same as none, but documents that we really don't know.
5388 # 'pass_all' -- all dependencies passed with no checks.
5389 # 'test_compile' -- check by making test program.
5390 # 'file_magic [[regex]]' -- check by looking for files in library path
5391 # which responds to the $file_magic_cmd with a given extended regex.
5392 # If you have `file' or equivalent on your system and you're not sure
5393 # whether `pass_all' will *always* work, you probably want this one.
5397 lt_cv_deplibs_check_method=pass_all
5401 lt_cv_deplibs_check_method=pass_all
5405 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5406 lt_cv_file_magic_cmd='/usr/bin/file -L'
5407 lt_cv_file_magic_test_file=/shlib/libc.so
5411 # func_win32_libid is a shell function defined in ltmain.sh
5412 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5413 lt_cv_file_magic_cmd='func_win32_libid'
5417 # Base MSYS/MinGW do not provide the 'file' command needed by
5418 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5419 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5420 lt_cv_file_magic_cmd='$OBJDUMP -f'
5423 darwin* | rhapsody*)
5424 lt_cv_deplibs_check_method=pass_all
5427 freebsd* | kfreebsd*-gnu | dragonfly*)
5428 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5431 # Not sure whether the presence of OpenBSD here was a mistake.
5432 # Let's accept both of them until this is cleared up.
5433 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5434 lt_cv_file_magic_cmd=/usr/bin/file
5435 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5439 lt_cv_deplibs_check_method=pass_all
5444 lt_cv_deplibs_check_method=pass_all
5447 hpux10.20* | hpux11*)
5448 lt_cv_file_magic_cmd=/usr/bin/file
5451 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5452 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5455 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]'
5456 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5459 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5460 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5465 irix5* | irix6* | nonstopux*)
5467 *-32|*"-32 ") libmagic=32-bit;;
5468 *-n32|*"-n32 ") libmagic=N32;;
5469 *-64|*"-64 ") libmagic=64-bit;;
5470 *) libmagic=never-match;;
5472 lt_cv_deplibs_check_method=pass_all
5475 # This must be Linux ELF.
5477 lt_cv_deplibs_check_method=pass_all
5481 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5482 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5484 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5489 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5490 lt_cv_file_magic_cmd=/usr/bin/file
5491 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5495 lt_cv_deplibs_check_method=unknown
5499 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5500 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5502 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5506 osf3* | osf4* | osf5*)
5507 lt_cv_deplibs_check_method=pass_all
5511 lt_cv_deplibs_check_method=pass_all
5515 lt_cv_deplibs_check_method=pass_all
5518 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5519 case $host_vendor in
5521 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]'
5522 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5525 lt_cv_deplibs_check_method=pass_all
5528 lt_cv_file_magic_cmd='/bin/file'
5529 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5532 lt_cv_file_magic_cmd='/bin/file'
5533 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5534 lt_cv_file_magic_test_file=/lib/libc.so
5537 lt_cv_deplibs_check_method=pass_all
5542 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5543 lt_cv_deplibs_check_method=pass_all
5548 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5549 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5550 file_magic_cmd=$lt_cv_file_magic_cmd
5551 deplibs_check_method=$lt_cv_deplibs_check_method
5552 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5557 # If no C compiler was specified, use CC.
5560 # Allow CC to be a program name with arguments.
5564 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5565 if test "${enable_libtool_lock+set}" = set; then
5566 enableval="$enable_libtool_lock"
5569 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5571 # Some flags need to be propagated to the compiler or linker for good
5575 # Find out which ABI we are using.
5576 echo 'int i;' > conftest.$ac_ext
5577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5578 (eval $ac_compile) 2>&5
5580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581 (exit $ac_status); }; then
5582 case `/usr/bin/file conftest.$ac_objext` in
5594 # Find out which ABI we are using.
5595 echo '#line 5595 "configure"' > conftest.$ac_ext
5596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5597 (eval $ac_compile) 2>&5
5599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 (exit $ac_status); }; then
5601 if test "$lt_cv_prog_gnu_ld" = yes; then
5602 case `/usr/bin/file conftest.$ac_objext` in
5604 LD="${LD-ld} -melf32bsmip"
5607 LD="${LD-ld} -melf32bmipn32"
5610 LD="${LD-ld} -melf64bmip"
5614 case `/usr/bin/file conftest.$ac_objext` in
5630 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5631 # Find out which ABI we are using.
5632 echo 'int i;' > conftest.$ac_ext
5633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5634 (eval $ac_compile) 2>&5
5636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637 (exit $ac_status); }; then
5638 case "`/usr/bin/file conftest.o`" in
5642 LD="${LD-ld} -m elf_i386"
5644 ppc64-*linux*|powerpc64-*linux*)
5645 LD="${LD-ld} -m elf32ppclinux"
5648 LD="${LD-ld} -m elf_s390"
5651 LD="${LD-ld} -m elf32_sparc"
5658 LD="${LD-ld} -m elf_x86_64"
5660 ppc*-*linux*|powerpc*-*linux*)
5661 LD="${LD-ld} -m elf64ppc"
5664 LD="${LD-ld} -m elf64_s390"
5667 LD="${LD-ld} -m elf64_sparc"
5677 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5678 SAVE_CFLAGS="$CFLAGS"
5679 CFLAGS="$CFLAGS -belf"
5680 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5681 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5682 if test "${lt_cv_cc_needs_belf+set}" = set; then
5683 echo $ECHO_N "(cached) $ECHO_C" >&6
5686 ac_cpp='$CPP $CPPFLAGS'
5687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5691 cat >conftest.$ac_ext <<_ACEOF
5694 cat confdefs.h >>conftest.$ac_ext
5695 cat >>conftest.$ac_ext <<_ACEOF
5696 /* end confdefs.h. */
5706 rm -f conftest.$ac_objext conftest$ac_exeext
5707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5708 (eval $ac_link) 2>conftest.er1
5710 grep -v '^ *+' conftest.er1 >conftest.err
5712 cat conftest.err >&5
5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714 (exit $ac_status); } &&
5715 { ac_try='test -z "$ac_c_werror_flag"
5716 || test ! -s conftest.err'
5717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721 (exit $ac_status); }; } &&
5722 { ac_try='test -s conftest$ac_exeext'
5723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727 (exit $ac_status); }; }; then
5728 lt_cv_cc_needs_belf=yes
5730 echo "$as_me: failed program was:" >&5
5731 sed 's/^/| /' conftest.$ac_ext >&5
5733 lt_cv_cc_needs_belf=no
5735 rm -f conftest.err conftest.$ac_objext \
5736 conftest$ac_exeext conftest.$ac_ext
5738 ac_cpp='$CPP $CPPFLAGS'
5739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5744 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5745 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5746 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5747 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5748 CFLAGS="$SAVE_CFLAGS"
5751 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5752 if test -n "$ac_tool_prefix"; then
5753 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5754 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5755 echo "$as_me:$LINENO: checking for $ac_word" >&5
5756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5757 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5758 echo $ECHO_N "(cached) $ECHO_C" >&6
5760 if test -n "$DLLTOOL"; then
5761 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5767 test -z "$as_dir" && as_dir=.
5768 for ac_exec_ext in '' $ac_executable_extensions; do
5769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5770 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5779 DLLTOOL=$ac_cv_prog_DLLTOOL
5780 if test -n "$DLLTOOL"; then
5781 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5782 echo "${ECHO_T}$DLLTOOL" >&6
5784 echo "$as_me:$LINENO: result: no" >&5
5785 echo "${ECHO_T}no" >&6
5789 if test -z "$ac_cv_prog_DLLTOOL"; then
5790 ac_ct_DLLTOOL=$DLLTOOL
5791 # Extract the first word of "dlltool", so it can be a program name with args.
5792 set dummy dlltool; ac_word=$2
5793 echo "$as_me:$LINENO: checking for $ac_word" >&5
5794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5795 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5796 echo $ECHO_N "(cached) $ECHO_C" >&6
5798 if test -n "$ac_ct_DLLTOOL"; then
5799 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5805 test -z "$as_dir" && as_dir=.
5806 for ac_exec_ext in '' $ac_executable_extensions; do
5807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5808 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5815 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5818 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5819 if test -n "$ac_ct_DLLTOOL"; then
5820 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5821 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5823 echo "$as_me:$LINENO: result: no" >&5
5824 echo "${ECHO_T}no" >&6
5827 DLLTOOL=$ac_ct_DLLTOOL
5829 DLLTOOL="$ac_cv_prog_DLLTOOL"
5832 if test -n "$ac_tool_prefix"; then
5833 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5834 set dummy ${ac_tool_prefix}as; ac_word=$2
5835 echo "$as_me:$LINENO: checking for $ac_word" >&5
5836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5837 if test "${ac_cv_prog_AS+set}" = set; then
5838 echo $ECHO_N "(cached) $ECHO_C" >&6
5840 if test -n "$AS"; then
5841 ac_cv_prog_AS="$AS" # Let the user override the test.
5843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5847 test -z "$as_dir" && as_dir=.
5848 for ac_exec_ext in '' $ac_executable_extensions; do
5849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5850 ac_cv_prog_AS="${ac_tool_prefix}as"
5851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5860 if test -n "$AS"; then
5861 echo "$as_me:$LINENO: result: $AS" >&5
5862 echo "${ECHO_T}$AS" >&6
5864 echo "$as_me:$LINENO: result: no" >&5
5865 echo "${ECHO_T}no" >&6
5869 if test -z "$ac_cv_prog_AS"; then
5871 # Extract the first word of "as", so it can be a program name with args.
5872 set dummy as; ac_word=$2
5873 echo "$as_me:$LINENO: checking for $ac_word" >&5
5874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5875 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5876 echo $ECHO_N "(cached) $ECHO_C" >&6
5878 if test -n "$ac_ct_AS"; then
5879 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885 test -z "$as_dir" && as_dir=.
5886 for ac_exec_ext in '' $ac_executable_extensions; do
5887 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5888 ac_cv_prog_ac_ct_AS="as"
5889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5895 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
5898 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5899 if test -n "$ac_ct_AS"; then
5900 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5901 echo "${ECHO_T}$ac_ct_AS" >&6
5903 echo "$as_me:$LINENO: result: no" >&5
5904 echo "${ECHO_T}no" >&6
5912 if test -n "$ac_tool_prefix"; then
5913 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5914 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5915 echo "$as_me:$LINENO: checking for $ac_word" >&5
5916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5917 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5918 echo $ECHO_N "(cached) $ECHO_C" >&6
5920 if test -n "$OBJDUMP"; then
5921 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5927 test -z "$as_dir" && as_dir=.
5928 for ac_exec_ext in '' $ac_executable_extensions; do
5929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5930 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5939 OBJDUMP=$ac_cv_prog_OBJDUMP
5940 if test -n "$OBJDUMP"; then
5941 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5942 echo "${ECHO_T}$OBJDUMP" >&6
5944 echo "$as_me:$LINENO: result: no" >&5
5945 echo "${ECHO_T}no" >&6
5949 if test -z "$ac_cv_prog_OBJDUMP"; then
5950 ac_ct_OBJDUMP=$OBJDUMP
5951 # Extract the first word of "objdump", so it can be a program name with args.
5952 set dummy objdump; ac_word=$2
5953 echo "$as_me:$LINENO: checking for $ac_word" >&5
5954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5955 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5956 echo $ECHO_N "(cached) $ECHO_C" >&6
5958 if test -n "$ac_ct_OBJDUMP"; then
5959 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5965 test -z "$as_dir" && as_dir=.
5966 for ac_exec_ext in '' $ac_executable_extensions; do
5967 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5968 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5975 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
5978 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5979 if test -n "$ac_ct_OBJDUMP"; then
5980 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5981 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
5983 echo "$as_me:$LINENO: result: no" >&5
5984 echo "${ECHO_T}no" >&6
5987 OBJDUMP=$ac_ct_OBJDUMP
5989 OBJDUMP="$ac_cv_prog_OBJDUMP"
5996 need_locks="$enable_libtool_lock"
6000 ac_cpp='$CPP $CPPFLAGS'
6001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6004 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6005 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6006 # On Suns, sometimes $CPP names a directory.
6007 if test -n "$CPP" && test -d "$CPP"; then
6010 if test -z "$CPP"; then
6011 if test "${ac_cv_prog_CPP+set}" = set; then
6012 echo $ECHO_N "(cached) $ECHO_C" >&6
6014 # Double quotes because CPP needs to be expanded
6015 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6018 for ac_c_preproc_warn_flag in '' yes
6020 # Use a header file that comes with gcc, so configuring glibc
6021 # with a fresh cross-compiler works.
6022 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6023 # <limits.h> exists even on freestanding compilers.
6024 # On the NeXT, cc -E runs the code through the compiler's parser,
6025 # not just through cpp. "Syntax error" is here to catch this case.
6026 cat >conftest.$ac_ext <<_ACEOF
6029 cat confdefs.h >>conftest.$ac_ext
6030 cat >>conftest.$ac_ext <<_ACEOF
6031 /* end confdefs.h. */
6033 # include <limits.h>
6035 # include <assert.h>
6039 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6040 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6042 grep -v '^ *+' conftest.er1 >conftest.err
6044 cat conftest.err >&5
6045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046 (exit $ac_status); } >/dev/null; then
6047 if test -s conftest.err; then
6048 ac_cpp_err=$ac_c_preproc_warn_flag
6049 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6056 if test -z "$ac_cpp_err"; then
6059 echo "$as_me: failed program was:" >&5
6060 sed 's/^/| /' conftest.$ac_ext >&5
6062 # Broken: fails on valid input.
6065 rm -f conftest.err conftest.$ac_ext
6067 # OK, works on sane cases. Now check whether non-existent headers
6068 # can be detected and how.
6069 cat >conftest.$ac_ext <<_ACEOF
6072 cat confdefs.h >>conftest.$ac_ext
6073 cat >>conftest.$ac_ext <<_ACEOF
6074 /* end confdefs.h. */
6075 #include <ac_nonexistent.h>
6077 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6078 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6080 grep -v '^ *+' conftest.er1 >conftest.err
6082 cat conftest.err >&5
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); } >/dev/null; then
6085 if test -s conftest.err; then
6086 ac_cpp_err=$ac_c_preproc_warn_flag
6087 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6094 if test -z "$ac_cpp_err"; then
6095 # Broken: success on invalid input.
6098 echo "$as_me: failed program was:" >&5
6099 sed 's/^/| /' conftest.$ac_ext >&5
6101 # Passes both tests.
6105 rm -f conftest.err conftest.$ac_ext
6108 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6109 rm -f conftest.err conftest.$ac_ext
6110 if $ac_preproc_ok; then
6122 echo "$as_me:$LINENO: result: $CPP" >&5
6123 echo "${ECHO_T}$CPP" >&6
6125 for ac_c_preproc_warn_flag in '' yes
6127 # Use a header file that comes with gcc, so configuring glibc
6128 # with a fresh cross-compiler works.
6129 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6130 # <limits.h> exists even on freestanding compilers.
6131 # On the NeXT, cc -E runs the code through the compiler's parser,
6132 # not just through cpp. "Syntax error" is here to catch this case.
6133 cat >conftest.$ac_ext <<_ACEOF
6136 cat confdefs.h >>conftest.$ac_ext
6137 cat >>conftest.$ac_ext <<_ACEOF
6138 /* end confdefs.h. */
6140 # include <limits.h>
6142 # include <assert.h>
6146 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6147 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6149 grep -v '^ *+' conftest.er1 >conftest.err
6151 cat conftest.err >&5
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); } >/dev/null; then
6154 if test -s conftest.err; then
6155 ac_cpp_err=$ac_c_preproc_warn_flag
6156 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6163 if test -z "$ac_cpp_err"; then
6166 echo "$as_me: failed program was:" >&5
6167 sed 's/^/| /' conftest.$ac_ext >&5
6169 # Broken: fails on valid input.
6172 rm -f conftest.err conftest.$ac_ext
6174 # OK, works on sane cases. Now check whether non-existent headers
6175 # can be detected and how.
6176 cat >conftest.$ac_ext <<_ACEOF
6179 cat confdefs.h >>conftest.$ac_ext
6180 cat >>conftest.$ac_ext <<_ACEOF
6181 /* end confdefs.h. */
6182 #include <ac_nonexistent.h>
6184 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6185 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6187 grep -v '^ *+' conftest.er1 >conftest.err
6189 cat conftest.err >&5
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); } >/dev/null; then
6192 if test -s conftest.err; then
6193 ac_cpp_err=$ac_c_preproc_warn_flag
6194 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6201 if test -z "$ac_cpp_err"; then
6202 # Broken: success on invalid input.
6205 echo "$as_me: failed program was:" >&5
6206 sed 's/^/| /' conftest.$ac_ext >&5
6208 # Passes both tests.
6212 rm -f conftest.err conftest.$ac_ext
6215 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6216 rm -f conftest.err conftest.$ac_ext
6217 if $ac_preproc_ok; then
6220 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6221 See \`config.log' for more details." >&5
6222 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6223 See \`config.log' for more details." >&2;}
6224 { (exit 1); exit 1; }; }
6228 ac_cpp='$CPP $CPPFLAGS'
6229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6234 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6235 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6236 if test "${ac_cv_header_stdc+set}" = set; then
6237 echo $ECHO_N "(cached) $ECHO_C" >&6
6239 cat >conftest.$ac_ext <<_ACEOF
6242 cat confdefs.h >>conftest.$ac_ext
6243 cat >>conftest.$ac_ext <<_ACEOF
6244 /* end confdefs.h. */
6258 rm -f conftest.$ac_objext
6259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6260 (eval $ac_compile) 2>conftest.er1
6262 grep -v '^ *+' conftest.er1 >conftest.err
6264 cat conftest.err >&5
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); } &&
6267 { ac_try='test -z "$ac_c_werror_flag"
6268 || test ! -s conftest.err'
6269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); }; } &&
6274 { ac_try='test -s conftest.$ac_objext'
6275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); }; }; then
6280 ac_cv_header_stdc=yes
6282 echo "$as_me: failed program was:" >&5
6283 sed 's/^/| /' conftest.$ac_ext >&5
6285 ac_cv_header_stdc=no
6287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6289 if test $ac_cv_header_stdc = yes; then
6290 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6291 cat >conftest.$ac_ext <<_ACEOF
6294 cat confdefs.h >>conftest.$ac_ext
6295 cat >>conftest.$ac_ext <<_ACEOF
6296 /* end confdefs.h. */
6300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6301 $EGREP "memchr" >/dev/null 2>&1; then
6304 ac_cv_header_stdc=no
6310 if test $ac_cv_header_stdc = yes; then
6311 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6312 cat >conftest.$ac_ext <<_ACEOF
6315 cat confdefs.h >>conftest.$ac_ext
6316 cat >>conftest.$ac_ext <<_ACEOF
6317 /* end confdefs.h. */
6321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6322 $EGREP "free" >/dev/null 2>&1; then
6325 ac_cv_header_stdc=no
6331 if test $ac_cv_header_stdc = yes; then
6332 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6333 if test "$cross_compiling" = yes; then
6336 cat >conftest.$ac_ext <<_ACEOF
6339 cat confdefs.h >>conftest.$ac_ext
6340 cat >>conftest.$ac_ext <<_ACEOF
6341 /* end confdefs.h. */
6343 #if ((' ' & 0x0FF) == 0x020)
6344 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6345 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6347 # define ISLOWER(c) \
6348 (('a' <= (c) && (c) <= 'i') \
6349 || ('j' <= (c) && (c) <= 'r') \
6350 || ('s' <= (c) && (c) <= 'z'))
6351 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6354 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6359 for (i = 0; i < 256; i++)
6360 if (XOR (islower (i), ISLOWER (i))
6361 || toupper (i) != TOUPPER (i))
6366 rm -f conftest$ac_exeext
6367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6368 (eval $ac_link) 2>&5
6370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376 (exit $ac_status); }; }; then
6379 echo "$as_me: program exited with status $ac_status" >&5
6380 echo "$as_me: failed program was:" >&5
6381 sed 's/^/| /' conftest.$ac_ext >&5
6384 ac_cv_header_stdc=no
6386 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6390 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6391 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6392 if test $ac_cv_header_stdc = yes; then
6394 cat >>confdefs.h <<\_ACEOF
6395 #define STDC_HEADERS 1
6400 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6410 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6411 inttypes.h stdint.h unistd.h
6413 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6414 echo "$as_me:$LINENO: checking for $ac_header" >&5
6415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6417 echo $ECHO_N "(cached) $ECHO_C" >&6
6419 cat >conftest.$ac_ext <<_ACEOF
6422 cat confdefs.h >>conftest.$ac_ext
6423 cat >>conftest.$ac_ext <<_ACEOF
6424 /* end confdefs.h. */
6425 $ac_includes_default
6427 #include <$ac_header>
6429 rm -f conftest.$ac_objext
6430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6431 (eval $ac_compile) 2>conftest.er1
6433 grep -v '^ *+' conftest.er1 >conftest.err
6435 cat conftest.err >&5
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); } &&
6438 { ac_try='test -z "$ac_c_werror_flag"
6439 || test ! -s conftest.err'
6440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444 (exit $ac_status); }; } &&
6445 { ac_try='test -s conftest.$ac_objext'
6446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450 (exit $ac_status); }; }; then
6451 eval "$as_ac_Header=yes"
6453 echo "$as_me: failed program was:" >&5
6454 sed 's/^/| /' conftest.$ac_ext >&5
6456 eval "$as_ac_Header=no"
6458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6461 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6462 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6463 cat >>confdefs.h <<_ACEOF
6464 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6473 for ac_header in dlfcn.h
6475 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6476 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6477 echo "$as_me:$LINENO: checking for $ac_header" >&5
6478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6480 echo $ECHO_N "(cached) $ECHO_C" >&6
6482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6483 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6485 # Is the header compilable?
6486 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6487 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6488 cat >conftest.$ac_ext <<_ACEOF
6491 cat confdefs.h >>conftest.$ac_ext
6492 cat >>conftest.$ac_ext <<_ACEOF
6493 /* end confdefs.h. */
6494 $ac_includes_default
6495 #include <$ac_header>
6497 rm -f conftest.$ac_objext
6498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6499 (eval $ac_compile) 2>conftest.er1
6501 grep -v '^ *+' conftest.er1 >conftest.err
6503 cat conftest.err >&5
6504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505 (exit $ac_status); } &&
6506 { ac_try='test -z "$ac_c_werror_flag"
6507 || test ! -s conftest.err'
6508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6512 (exit $ac_status); }; } &&
6513 { ac_try='test -s conftest.$ac_objext'
6514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518 (exit $ac_status); }; }; then
6519 ac_header_compiler=yes
6521 echo "$as_me: failed program was:" >&5
6522 sed 's/^/| /' conftest.$ac_ext >&5
6524 ac_header_compiler=no
6526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6527 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6528 echo "${ECHO_T}$ac_header_compiler" >&6
6530 # Is the header present?
6531 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6532 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6533 cat >conftest.$ac_ext <<_ACEOF
6536 cat confdefs.h >>conftest.$ac_ext
6537 cat >>conftest.$ac_ext <<_ACEOF
6538 /* end confdefs.h. */
6539 #include <$ac_header>
6541 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6542 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6544 grep -v '^ *+' conftest.er1 >conftest.err
6546 cat conftest.err >&5
6547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548 (exit $ac_status); } >/dev/null; then
6549 if test -s conftest.err; then
6550 ac_cpp_err=$ac_c_preproc_warn_flag
6551 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6558 if test -z "$ac_cpp_err"; then
6559 ac_header_preproc=yes
6561 echo "$as_me: failed program was:" >&5
6562 sed 's/^/| /' conftest.$ac_ext >&5
6564 ac_header_preproc=no
6566 rm -f conftest.err conftest.$ac_ext
6567 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6568 echo "${ECHO_T}$ac_header_preproc" >&6
6570 # So? What about this header?
6571 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6573 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6574 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6575 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6576 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6577 ac_header_preproc=yes
6580 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6581 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6582 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6583 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6584 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6585 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6586 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6587 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6588 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6589 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6590 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6591 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6594 ## ------------------------------------------ ##
6595 ## Report this to the AC_PACKAGE_NAME lists. ##
6596 ## ------------------------------------------ ##
6599 sed "s/^/$as_me: WARNING: /" >&2
6602 echo "$as_me:$LINENO: checking for $ac_header" >&5
6603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6605 echo $ECHO_N "(cached) $ECHO_C" >&6
6607 eval "$as_ac_Header=\$ac_header_preproc"
6609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6610 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6613 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6614 cat >>confdefs.h <<_ACEOF
6615 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6623 ac_cpp='$CXXCPP $CPPFLAGS'
6624 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6625 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6626 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6627 if test -n "$ac_tool_prefix"; then
6628 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6630 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6631 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6632 echo "$as_me:$LINENO: checking for $ac_word" >&5
6633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6634 if test "${ac_cv_prog_CXX+set}" = set; then
6635 echo $ECHO_N "(cached) $ECHO_C" >&6
6637 if test -n "$CXX"; then
6638 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6644 test -z "$as_dir" && as_dir=.
6645 for ac_exec_ext in '' $ac_executable_extensions; do
6646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6647 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6657 if test -n "$CXX"; then
6658 echo "$as_me:$LINENO: result: $CXX" >&5
6659 echo "${ECHO_T}$CXX" >&6
6661 echo "$as_me:$LINENO: result: no" >&5
6662 echo "${ECHO_T}no" >&6
6665 test -n "$CXX" && break
6668 if test -z "$CXX"; then
6670 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6672 # Extract the first word of "$ac_prog", so it can be a program name with args.
6673 set dummy $ac_prog; ac_word=$2
6674 echo "$as_me:$LINENO: checking for $ac_word" >&5
6675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6676 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6677 echo $ECHO_N "(cached) $ECHO_C" >&6
6679 if test -n "$ac_ct_CXX"; then
6680 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6686 test -z "$as_dir" && as_dir=.
6687 for ac_exec_ext in '' $ac_executable_extensions; do
6688 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6689 ac_cv_prog_ac_ct_CXX="$ac_prog"
6690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6698 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6699 if test -n "$ac_ct_CXX"; then
6700 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6701 echo "${ECHO_T}$ac_ct_CXX" >&6
6703 echo "$as_me:$LINENO: result: no" >&5
6704 echo "${ECHO_T}no" >&6
6707 test -n "$ac_ct_CXX" && break
6709 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6715 # Provide some information about the compiler.
6716 echo "$as_me:$LINENO:" \
6717 "checking for C++ compiler version" >&5
6718 ac_compiler=`set X $ac_compile; echo $2`
6719 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6720 (eval $ac_compiler --version </dev/null >&5) 2>&5
6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723 (exit $ac_status); }
6724 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6725 (eval $ac_compiler -v </dev/null >&5) 2>&5
6727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6728 (exit $ac_status); }
6729 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6730 (eval $ac_compiler -V </dev/null >&5) 2>&5
6732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733 (exit $ac_status); }
6735 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6736 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6737 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6738 echo $ECHO_N "(cached) $ECHO_C" >&6
6740 cat >conftest.$ac_ext <<_ACEOF
6743 cat confdefs.h >>conftest.$ac_ext
6744 cat >>conftest.$ac_ext <<_ACEOF
6745 /* end confdefs.h. */
6758 rm -f conftest.$ac_objext
6759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6760 (eval $ac_compile) 2>conftest.er1
6762 grep -v '^ *+' conftest.er1 >conftest.err
6764 cat conftest.err >&5
6765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766 (exit $ac_status); } &&
6767 { ac_try='test -z "$ac_cxx_werror_flag"
6768 || test ! -s conftest.err'
6769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); }; } &&
6774 { ac_try='test -s conftest.$ac_objext'
6775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779 (exit $ac_status); }; }; then
6782 echo "$as_me: failed program was:" >&5
6783 sed 's/^/| /' conftest.$ac_ext >&5
6787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6788 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6791 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6792 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6793 GXX=`test $ac_compiler_gnu = yes && echo yes`
6794 ac_test_CXXFLAGS=${CXXFLAGS+set}
6795 ac_save_CXXFLAGS=$CXXFLAGS
6797 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6798 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6799 if test "${ac_cv_prog_cxx_g+set}" = set; then
6800 echo $ECHO_N "(cached) $ECHO_C" >&6
6802 cat >conftest.$ac_ext <<_ACEOF
6805 cat confdefs.h >>conftest.$ac_ext
6806 cat >>conftest.$ac_ext <<_ACEOF
6807 /* end confdefs.h. */
6817 rm -f conftest.$ac_objext
6818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6819 (eval $ac_compile) 2>conftest.er1
6821 grep -v '^ *+' conftest.er1 >conftest.err
6823 cat conftest.err >&5
6824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825 (exit $ac_status); } &&
6826 { ac_try='test -z "$ac_cxx_werror_flag"
6827 || test ! -s conftest.err'
6828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832 (exit $ac_status); }; } &&
6833 { ac_try='test -s conftest.$ac_objext'
6834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838 (exit $ac_status); }; }; then
6839 ac_cv_prog_cxx_g=yes
6841 echo "$as_me: failed program was:" >&5
6842 sed 's/^/| /' conftest.$ac_ext >&5
6846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6848 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6849 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6850 if test "$ac_test_CXXFLAGS" = set; then
6851 CXXFLAGS=$ac_save_CXXFLAGS
6852 elif test $ac_cv_prog_cxx_g = yes; then
6853 if test "$GXX" = yes; then
6859 if test "$GXX" = yes; then
6865 for ac_declaration in \
6867 'extern "C" void std::exit (int) throw (); using std::exit;' \
6868 'extern "C" void std::exit (int); using std::exit;' \
6869 'extern "C" void exit (int) throw ();' \
6870 'extern "C" void exit (int);' \
6873 cat >conftest.$ac_ext <<_ACEOF
6876 cat confdefs.h >>conftest.$ac_ext
6877 cat >>conftest.$ac_ext <<_ACEOF
6878 /* end confdefs.h. */
6889 rm -f conftest.$ac_objext
6890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6891 (eval $ac_compile) 2>conftest.er1
6893 grep -v '^ *+' conftest.er1 >conftest.err
6895 cat conftest.err >&5
6896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897 (exit $ac_status); } &&
6898 { ac_try='test -z "$ac_cxx_werror_flag"
6899 || test ! -s conftest.err'
6900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904 (exit $ac_status); }; } &&
6905 { ac_try='test -s conftest.$ac_objext'
6906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); }; }; then
6913 echo "$as_me: failed program was:" >&5
6914 sed 's/^/| /' conftest.$ac_ext >&5
6918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6919 cat >conftest.$ac_ext <<_ACEOF
6922 cat confdefs.h >>conftest.$ac_ext
6923 cat >>conftest.$ac_ext <<_ACEOF
6924 /* end confdefs.h. */
6934 rm -f conftest.$ac_objext
6935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6936 (eval $ac_compile) 2>conftest.er1
6938 grep -v '^ *+' conftest.er1 >conftest.err
6940 cat conftest.err >&5
6941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6942 (exit $ac_status); } &&
6943 { ac_try='test -z "$ac_cxx_werror_flag"
6944 || test ! -s conftest.err'
6945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949 (exit $ac_status); }; } &&
6950 { ac_try='test -s conftest.$ac_objext'
6951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955 (exit $ac_status); }; }; then
6958 echo "$as_me: failed program was:" >&5
6959 sed 's/^/| /' conftest.$ac_ext >&5
6962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6965 if test -n "$ac_declaration"; then
6966 echo '#ifdef __cplusplus' >>confdefs.h
6967 echo $ac_declaration >>confdefs.h
6968 echo '#endif' >>confdefs.h
6972 ac_cpp='$CXXCPP $CPPFLAGS'
6973 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6974 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6975 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6977 depcc="$CXX" am_compiler_list=
6979 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6980 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6981 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6982 echo $ECHO_N "(cached) $ECHO_C" >&6
6984 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6985 # We make a subdir and do the tests there. Otherwise we can end up
6986 # making bogus files that we don't know about and never remove. For
6987 # instance it was reported that on HP-UX the gcc test will end up
6988 # making a dummy file named `D' -- because `-MD' means `put the output
6991 # Copy depcomp to subdir because otherwise we won't find it if we're
6992 # using a relative directory.
6993 cp "$am_depcomp" conftest.dir
6995 # We will build objects and dependencies in a subdirectory because
6996 # it helps to detect inapplicable dependency modes. For instance
6997 # both Tru64's cc and ICC support -MD to output dependencies as a
6998 # side effect of compilation, but ICC will put the dependencies in
6999 # the current directory while Tru64 will put them in the object
7003 am_cv_CXX_dependencies_compiler_type=none
7004 if test "$am_compiler_list" = ""; then
7005 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7007 for depmode in $am_compiler_list; do
7008 # Setup a source with many dependencies, because some compilers
7009 # like to wrap large dependency lists on column 80 (with \), and
7010 # we should not choose a depcomp mode which is confused by this.
7012 # We need to recreate these files for each test, as the compiler may
7013 # overwrite some of them when testing with obscure command lines.
7014 # This happens at least with the AIX C compiler.
7016 for i in 1 2 3 4 5 6; do
7017 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7018 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7019 # Solaris 8's {/usr,}/bin/sh.
7020 touch sub/conftst$i.h
7022 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7026 # after this tag, mechanisms are not by side-effect, so they'll
7027 # only be used when explicitly requested
7028 if test "x$enable_dependency_tracking" = xyes; then
7036 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7037 # mode. It turns out that the SunPro C++ compiler does not properly
7038 # handle `-M -o', and we need to detect this.
7039 if depmode=$depmode \
7040 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7041 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7042 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7043 >/dev/null 2>conftest.err &&
7044 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7045 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7046 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7047 # icc doesn't choke on unknown options, it will just issue warnings
7048 # or remarks (even with -Werror). So we grep stderr for any message
7049 # that says an option was ignored or not supported.
7050 # When given -MP, icc 7.0 and 7.1 complain thusly:
7051 # icc: Command line warning: ignoring option '-M'; no argument required
7052 # The diagnosis changed in icc 8.0:
7053 # icc: Command line remark: option '-MP' not supported
7054 if (grep 'ignoring option' conftest.err ||
7055 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7056 am_cv_CXX_dependencies_compiler_type=$depmode
7065 am_cv_CXX_dependencies_compiler_type=none
7069 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7070 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7071 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7076 test "x$enable_dependency_tracking" != xno \
7077 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7078 am__fastdepCXX_TRUE=
7079 am__fastdepCXX_FALSE='#'
7081 am__fastdepCXX_TRUE='#'
7082 am__fastdepCXX_FALSE=
7088 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7089 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7090 (test "X$CXX" != "Xg++"))) ; then
7092 ac_cpp='$CXXCPP $CPPFLAGS'
7093 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7094 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7095 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7096 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7097 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7098 if test -z "$CXXCPP"; then
7099 if test "${ac_cv_prog_CXXCPP+set}" = set; then
7100 echo $ECHO_N "(cached) $ECHO_C" >&6
7102 # Double quotes because CXXCPP needs to be expanded
7103 for CXXCPP in "$CXX -E" "/lib/cpp"
7106 for ac_cxx_preproc_warn_flag in '' yes
7108 # Use a header file that comes with gcc, so configuring glibc
7109 # with a fresh cross-compiler works.
7110 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7111 # <limits.h> exists even on freestanding compilers.
7112 # On the NeXT, cc -E runs the code through the compiler's parser,
7113 # not just through cpp. "Syntax error" is here to catch this case.
7114 cat >conftest.$ac_ext <<_ACEOF
7117 cat confdefs.h >>conftest.$ac_ext
7118 cat >>conftest.$ac_ext <<_ACEOF
7119 /* end confdefs.h. */
7121 # include <limits.h>
7123 # include <assert.h>
7127 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7128 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7130 grep -v '^ *+' conftest.er1 >conftest.err
7132 cat conftest.err >&5
7133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134 (exit $ac_status); } >/dev/null; then
7135 if test -s conftest.err; then
7136 ac_cpp_err=$ac_cxx_preproc_warn_flag
7137 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7144 if test -z "$ac_cpp_err"; then
7147 echo "$as_me: failed program was:" >&5
7148 sed 's/^/| /' conftest.$ac_ext >&5
7150 # Broken: fails on valid input.
7153 rm -f conftest.err conftest.$ac_ext
7155 # OK, works on sane cases. Now check whether non-existent headers
7156 # can be detected and how.
7157 cat >conftest.$ac_ext <<_ACEOF
7160 cat confdefs.h >>conftest.$ac_ext
7161 cat >>conftest.$ac_ext <<_ACEOF
7162 /* end confdefs.h. */
7163 #include <ac_nonexistent.h>
7165 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7166 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7168 grep -v '^ *+' conftest.er1 >conftest.err
7170 cat conftest.err >&5
7171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172 (exit $ac_status); } >/dev/null; then
7173 if test -s conftest.err; then
7174 ac_cpp_err=$ac_cxx_preproc_warn_flag
7175 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7182 if test -z "$ac_cpp_err"; then
7183 # Broken: success on invalid input.
7186 echo "$as_me: failed program was:" >&5
7187 sed 's/^/| /' conftest.$ac_ext >&5
7189 # Passes both tests.
7193 rm -f conftest.err conftest.$ac_ext
7196 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7197 rm -f conftest.err conftest.$ac_ext
7198 if $ac_preproc_ok; then
7203 ac_cv_prog_CXXCPP=$CXXCPP
7206 CXXCPP=$ac_cv_prog_CXXCPP
7208 ac_cv_prog_CXXCPP=$CXXCPP
7210 echo "$as_me:$LINENO: result: $CXXCPP" >&5
7211 echo "${ECHO_T}$CXXCPP" >&6
7213 for ac_cxx_preproc_warn_flag in '' yes
7215 # Use a header file that comes with gcc, so configuring glibc
7216 # with a fresh cross-compiler works.
7217 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7218 # <limits.h> exists even on freestanding compilers.
7219 # On the NeXT, cc -E runs the code through the compiler's parser,
7220 # not just through cpp. "Syntax error" is here to catch this case.
7221 cat >conftest.$ac_ext <<_ACEOF
7224 cat confdefs.h >>conftest.$ac_ext
7225 cat >>conftest.$ac_ext <<_ACEOF
7226 /* end confdefs.h. */
7228 # include <limits.h>
7230 # include <assert.h>
7234 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7235 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7237 grep -v '^ *+' conftest.er1 >conftest.err
7239 cat conftest.err >&5
7240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7241 (exit $ac_status); } >/dev/null; then
7242 if test -s conftest.err; then
7243 ac_cpp_err=$ac_cxx_preproc_warn_flag
7244 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7251 if test -z "$ac_cpp_err"; then
7254 echo "$as_me: failed program was:" >&5
7255 sed 's/^/| /' conftest.$ac_ext >&5
7257 # Broken: fails on valid input.
7260 rm -f conftest.err conftest.$ac_ext
7262 # OK, works on sane cases. Now check whether non-existent headers
7263 # can be detected and how.
7264 cat >conftest.$ac_ext <<_ACEOF
7267 cat confdefs.h >>conftest.$ac_ext
7268 cat >>conftest.$ac_ext <<_ACEOF
7269 /* end confdefs.h. */
7270 #include <ac_nonexistent.h>
7272 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7273 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7275 grep -v '^ *+' conftest.er1 >conftest.err
7277 cat conftest.err >&5
7278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279 (exit $ac_status); } >/dev/null; then
7280 if test -s conftest.err; then
7281 ac_cpp_err=$ac_cxx_preproc_warn_flag
7282 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7289 if test -z "$ac_cpp_err"; then
7290 # Broken: success on invalid input.
7293 echo "$as_me: failed program was:" >&5
7294 sed 's/^/| /' conftest.$ac_ext >&5
7296 # Passes both tests.
7300 rm -f conftest.err conftest.$ac_ext
7303 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7304 rm -f conftest.err conftest.$ac_ext
7305 if $ac_preproc_ok; then
7308 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7309 See \`config.log' for more details." >&5
7310 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7311 See \`config.log' for more details." >&2;}
7312 { (exit 1); exit 1; }; }
7316 ac_cpp='$CXXCPP $CPPFLAGS'
7317 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7318 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7319 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7325 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7326 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7327 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7328 if test -n "$ac_tool_prefix"; then
7329 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7331 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7332 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7333 echo "$as_me:$LINENO: checking for $ac_word" >&5
7334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7335 if test "${ac_cv_prog_F77+set}" = set; then
7336 echo $ECHO_N "(cached) $ECHO_C" >&6
7338 if test -n "$F77"; then
7339 ac_cv_prog_F77="$F77" # Let the user override the test.
7341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345 test -z "$as_dir" && as_dir=.
7346 for ac_exec_ext in '' $ac_executable_extensions; do
7347 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7348 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7358 if test -n "$F77"; then
7359 echo "$as_me:$LINENO: result: $F77" >&5
7360 echo "${ECHO_T}$F77" >&6
7362 echo "$as_me:$LINENO: result: no" >&5
7363 echo "${ECHO_T}no" >&6
7366 test -n "$F77" && break
7369 if test -z "$F77"; then
7371 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7373 # Extract the first word of "$ac_prog", so it can be a program name with args.
7374 set dummy $ac_prog; ac_word=$2
7375 echo "$as_me:$LINENO: checking for $ac_word" >&5
7376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7377 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7378 echo $ECHO_N "(cached) $ECHO_C" >&6
7380 if test -n "$ac_ct_F77"; then
7381 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7387 test -z "$as_dir" && as_dir=.
7388 for ac_exec_ext in '' $ac_executable_extensions; do
7389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7390 ac_cv_prog_ac_ct_F77="$ac_prog"
7391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7399 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7400 if test -n "$ac_ct_F77"; then
7401 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7402 echo "${ECHO_T}$ac_ct_F77" >&6
7404 echo "$as_me:$LINENO: result: no" >&5
7405 echo "${ECHO_T}no" >&6
7408 test -n "$ac_ct_F77" && break
7415 # Provide some information about the compiler.
7416 echo "$as_me:7416:" \
7417 "checking for Fortran 77 compiler version" >&5
7418 ac_compiler=`set X $ac_compile; echo $2`
7419 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7420 (eval $ac_compiler --version </dev/null >&5) 2>&5
7422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423 (exit $ac_status); }
7424 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7425 (eval $ac_compiler -v </dev/null >&5) 2>&5
7427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428 (exit $ac_status); }
7429 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7430 (eval $ac_compiler -V </dev/null >&5) 2>&5
7432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433 (exit $ac_status); }
7436 # If we don't use `.F' as extension, the preprocessor is not run on the
7437 # input file. (Note that this only needs to work for GNU compilers.)
7440 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7441 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7442 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7443 echo $ECHO_N "(cached) $ECHO_C" >&6
7445 cat >conftest.$ac_ext <<_ACEOF
7453 rm -f conftest.$ac_objext
7454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7455 (eval $ac_compile) 2>conftest.er1
7457 grep -v '^ *+' conftest.er1 >conftest.err
7459 cat conftest.err >&5
7460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461 (exit $ac_status); } &&
7462 { ac_try='test -z "$ac_f77_werror_flag"
7463 || test ! -s conftest.err'
7464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468 (exit $ac_status); }; } &&
7469 { ac_try='test -s conftest.$ac_objext'
7470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474 (exit $ac_status); }; }; then
7477 echo "$as_me: failed program was:" >&5
7478 sed 's/^/| /' conftest.$ac_ext >&5
7482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7483 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7486 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7487 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7489 ac_test_FFLAGS=${FFLAGS+set}
7490 ac_save_FFLAGS=$FFLAGS
7492 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7493 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7494 if test "${ac_cv_prog_f77_g+set}" = set; then
7495 echo $ECHO_N "(cached) $ECHO_C" >&6
7498 cat >conftest.$ac_ext <<_ACEOF
7503 rm -f conftest.$ac_objext
7504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7505 (eval $ac_compile) 2>conftest.er1
7507 grep -v '^ *+' conftest.er1 >conftest.err
7509 cat conftest.err >&5
7510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511 (exit $ac_status); } &&
7512 { ac_try='test -z "$ac_f77_werror_flag"
7513 || test ! -s conftest.err'
7514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518 (exit $ac_status); }; } &&
7519 { ac_try='test -s conftest.$ac_objext'
7520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524 (exit $ac_status); }; }; then
7525 ac_cv_prog_f77_g=yes
7527 echo "$as_me: failed program was:" >&5
7528 sed 's/^/| /' conftest.$ac_ext >&5
7532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7535 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7536 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7537 if test "$ac_test_FFLAGS" = set; then
7538 FFLAGS=$ac_save_FFLAGS
7539 elif test $ac_cv_prog_f77_g = yes; then
7540 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7546 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7553 G77=`test $ac_compiler_gnu = yes && echo yes`
7555 ac_cpp='$CPP $CPPFLAGS'
7556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7562 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7564 # find the maximum length of command line arguments
7565 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7566 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7567 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7568 echo $ECHO_N "(cached) $ECHO_C" >&6
7575 # On DJGPP, this test can blow up pretty badly due to problems in libc
7576 # (any single argument exceeding 2000 bytes causes a buffer overrun
7577 # during glob expansion). Even if it were fixed, the result of this
7578 # check would be larger than it should be.
7579 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7583 # Under GNU Hurd, this test is not required because there is
7584 # no limit to the length of command line arguments.
7585 # Libtool will interpret -1 as no limit whatsoever
7586 lt_cv_sys_max_cmd_len=-1;
7590 # On Win9x/ME, this test blows up -- it succeeds, but takes
7591 # about 5 minutes as the teststring grows exponentially.
7592 # Worse, since 9x/ME are not pre-emptively multitasking,
7593 # you end up with a "frozen" computer, even though with patience
7594 # the test eventually succeeds (with a max line length of 256k).
7595 # Instead, let's just punt: use the minimum linelength reported by
7596 # all of the supported platforms: 8192 (on NT/2K/XP).
7597 lt_cv_sys_max_cmd_len=8192;
7601 # On AmigaOS with pdksh, this test takes hours, literally.
7602 # So we just punt and use a minimum line length of 8192.
7603 lt_cv_sys_max_cmd_len=8192;
7606 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7607 # This has been around since 386BSD, at least. Likely further.
7608 if test -x /sbin/sysctl; then
7609 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7610 elif test -x /usr/sbin/sysctl; then
7611 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7613 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
7615 # And add a safety zone
7616 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7617 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7620 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7621 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7622 # nice to cause kernel panics so lets avoid the loop below.
7623 # First set a reasonable default.
7624 lt_cv_sys_max_cmd_len=16384
7626 if test -x /sbin/sysconfig; then
7627 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7628 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7633 # If test is not a shell built-in, we'll probably end up computing a
7634 # maximum length that is only half of the actual maximum length, but
7636 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7637 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7638 = "XX$teststring") >/dev/null 2>&1 &&
7639 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7640 lt_cv_sys_max_cmd_len=$new_result &&
7641 test $i != 17 # 1/2 MB should be enough
7644 teststring=$teststring$teststring
7647 # Add a significant safety factor because C++ compilers can tack on massive
7648 # amounts of additional arguments before passing them to the linker.
7649 # It appears as though 1/2 is a usable value.
7650 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7656 if test -n $lt_cv_sys_max_cmd_len ; then
7657 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7658 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7660 echo "$as_me:$LINENO: result: none" >&5
7661 echo "${ECHO_T}none" >&6
7667 # Check for command to grab the raw symbol name followed by C symbol from nm.
7668 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7669 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7670 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7671 echo $ECHO_N "(cached) $ECHO_C" >&6
7674 # These are sane defaults that work on at least a few old systems.
7675 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7677 # Character class describing NM global symbol codes.
7678 symcode='[BCDEGRST]'
7680 # Regexp to match symbols that can be accessed directly from C.
7681 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7683 # Transform an extracted symbol line into a proper C declaration
7684 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7686 # Transform an extracted symbol line into symbol name and symbol address
7687 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'"
7689 # Define system-specific variables.
7694 cygwin* | mingw* | pw32*)
7695 symcode='[ABCDGISTW]'
7697 hpux*) # Its linker distinguishes data from code symbols
7698 if test "$host_cpu" = ia64; then
7699 symcode='[ABCDEGRST]'
7701 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7702 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'"
7705 if test "$host_cpu" = ia64; then
7706 symcode='[ABCDGIRSTW]'
7707 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7708 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'"
7712 symcode='[BCDEGRST]'
7715 symcode='[BCDEGQRST]'
7725 # Handle CRLF in mingw tool chain
7729 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7733 # If we're using GNU nm, then use its standard symbol codes.
7734 case `$NM -V 2>&1` in
7735 *GNU* | *'with BFD'*)
7736 symcode='[ABCDGIRSTW]' ;;
7739 # Try without a prefix undercore, then with it.
7740 for ac_symprfx in "" "_"; do
7742 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7743 symxfrm="\\1 $ac_symprfx\\2 \\2"
7745 # Write the raw and C identifiers.
7746 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7748 # Check to see that the pipe works correctly.
7752 cat > conftest.$ac_ext <<EOF
7757 void nm_test_func(){}
7761 int main(){nm_test_var='a';nm_test_func();return(0);}
7764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7765 (eval $ac_compile) 2>&5
7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); }; then
7769 # Now try to grab the symbols.
7771 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7772 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7775 (exit $ac_status); } && test -s "$nlist"; then
7776 # Try sorting and uniquifying the output.
7777 if sort "$nlist" | uniq > "$nlist"T; then
7778 mv -f "$nlist"T "$nlist"
7783 # Make sure that we snagged all the symbols we need.
7784 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7785 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7786 cat <<EOF > conftest.$ac_ext
7792 # Now generate the symbol file.
7793 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7795 cat <<EOF >> conftest.$ac_ext
7796 #if defined (__STDC__) && __STDC__
7797 # define lt_ptr_t void *
7799 # define lt_ptr_t char *
7803 /* The mapping between symbol names and symbols. */
7808 lt_preloaded_symbols[] =
7811 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7812 cat <<\EOF >> conftest.$ac_ext
7820 # Now try linking the two files.
7821 mv conftest.$ac_objext conftstm.$ac_objext
7822 lt_save_LIBS="$LIBS"
7823 lt_save_CFLAGS="$CFLAGS"
7824 LIBS="conftstm.$ac_objext"
7825 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7827 (eval $ac_link) 2>&5
7829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7833 LIBS="$lt_save_LIBS"
7834 CFLAGS="$lt_save_CFLAGS"
7836 echo "cannot find nm_test_func in $nlist" >&5
7839 echo "cannot find nm_test_var in $nlist" >&5
7842 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7845 echo "$progname: failed program was:" >&5
7846 cat conftest.$ac_ext >&5
7848 rm -f conftest* conftst*
7850 # Do not use the global_symbol_pipe unless it works.
7851 if test "$pipe_works" = yes; then
7854 lt_cv_sys_global_symbol_pipe=
7860 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7861 lt_cv_sys_global_symbol_to_cdecl=
7863 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7864 echo "$as_me:$LINENO: result: failed" >&5
7865 echo "${ECHO_T}failed" >&6
7867 echo "$as_me:$LINENO: result: ok" >&5
7868 echo "${ECHO_T}ok" >&6
7871 echo "$as_me:$LINENO: checking for objdir" >&5
7872 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7873 if test "${lt_cv_objdir+set}" = set; then
7874 echo $ECHO_N "(cached) $ECHO_C" >&6
7876 rm -f .libs 2>/dev/null
7877 mkdir .libs 2>/dev/null
7878 if test -d .libs; then
7881 # MS-DOS does not allow filenames that begin with a dot.
7884 rmdir .libs 2>/dev/null
7886 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7887 echo "${ECHO_T}$lt_cv_objdir" >&6
7888 objdir=$lt_cv_objdir
7896 # AIX sometimes has problems with the GCC collect2 program. For some
7897 # reason, if we set the COLLECT_NAMES environment variable, the problems
7898 # vanish in a puff of smoke.
7899 if test "X${COLLECT_NAMES+set}" != Xset; then
7901 export COLLECT_NAMES
7906 # Sed substitution that helps us do robust quoting. It backslashifies
7907 # metacharacters that are still active within double-quoted strings.
7908 Xsed='sed -e 1s/^X//'
7909 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7911 # Same as above, but do not quote variable references.
7912 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7914 # Sed substitution to delay expansion of an escaped shell variable in a
7915 # double_quote_subst'ed string.
7916 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7918 # Sed substitution to avoid accidental globbing in evaled expressions
7919 no_glob_subst='s/\*/\\\*/g'
7925 default_ofile=libtool
7926 can_build_shared=yes
7928 # All known linkers require a `.a' archive for static linking (except M$VC,
7929 # which needs '.lib').
7931 ltmain="$ac_aux_dir/ltmain.sh"
7932 ofile="$default_ofile"
7933 with_gnu_ld="$lt_cv_prog_gnu_ld"
7935 if test -n "$ac_tool_prefix"; then
7936 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7937 set dummy ${ac_tool_prefix}ar; ac_word=$2
7938 echo "$as_me:$LINENO: checking for $ac_word" >&5
7939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7940 if test "${ac_cv_prog_AR+set}" = set; then
7941 echo $ECHO_N "(cached) $ECHO_C" >&6
7943 if test -n "$AR"; then
7944 ac_cv_prog_AR="$AR" # Let the user override the test.
7946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7950 test -z "$as_dir" && as_dir=.
7951 for ac_exec_ext in '' $ac_executable_extensions; do
7952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7953 ac_cv_prog_AR="${ac_tool_prefix}ar"
7954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7963 if test -n "$AR"; then
7964 echo "$as_me:$LINENO: result: $AR" >&5
7965 echo "${ECHO_T}$AR" >&6
7967 echo "$as_me:$LINENO: result: no" >&5
7968 echo "${ECHO_T}no" >&6
7972 if test -z "$ac_cv_prog_AR"; then
7974 # Extract the first word of "ar", so it can be a program name with args.
7975 set dummy ar; ac_word=$2
7976 echo "$as_me:$LINENO: checking for $ac_word" >&5
7977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7978 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7979 echo $ECHO_N "(cached) $ECHO_C" >&6
7981 if test -n "$ac_ct_AR"; then
7982 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7988 test -z "$as_dir" && as_dir=.
7989 for ac_exec_ext in '' $ac_executable_extensions; do
7990 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7991 ac_cv_prog_ac_ct_AR="ar"
7992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7998 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8001 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8002 if test -n "$ac_ct_AR"; then
8003 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8004 echo "${ECHO_T}$ac_ct_AR" >&6
8006 echo "$as_me:$LINENO: result: no" >&5
8007 echo "${ECHO_T}no" >&6
8015 if test -n "$ac_tool_prefix"; then
8016 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8017 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8018 echo "$as_me:$LINENO: checking for $ac_word" >&5
8019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8020 if test "${ac_cv_prog_RANLIB+set}" = set; then
8021 echo $ECHO_N "(cached) $ECHO_C" >&6
8023 if test -n "$RANLIB"; then
8024 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8030 test -z "$as_dir" && as_dir=.
8031 for ac_exec_ext in '' $ac_executable_extensions; do
8032 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8033 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8042 RANLIB=$ac_cv_prog_RANLIB
8043 if test -n "$RANLIB"; then
8044 echo "$as_me:$LINENO: result: $RANLIB" >&5
8045 echo "${ECHO_T}$RANLIB" >&6
8047 echo "$as_me:$LINENO: result: no" >&5
8048 echo "${ECHO_T}no" >&6
8052 if test -z "$ac_cv_prog_RANLIB"; then
8053 ac_ct_RANLIB=$RANLIB
8054 # Extract the first word of "ranlib", so it can be a program name with args.
8055 set dummy ranlib; ac_word=$2
8056 echo "$as_me:$LINENO: checking for $ac_word" >&5
8057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8058 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8059 echo $ECHO_N "(cached) $ECHO_C" >&6
8061 if test -n "$ac_ct_RANLIB"; then
8062 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8068 test -z "$as_dir" && as_dir=.
8069 for ac_exec_ext in '' $ac_executable_extensions; do
8070 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8071 ac_cv_prog_ac_ct_RANLIB="ranlib"
8072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8078 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8081 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8082 if test -n "$ac_ct_RANLIB"; then
8083 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8084 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8086 echo "$as_me:$LINENO: result: no" >&5
8087 echo "${ECHO_T}no" >&6
8090 RANLIB=$ac_ct_RANLIB
8092 RANLIB="$ac_cv_prog_RANLIB"
8095 if test -n "$ac_tool_prefix"; then
8096 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8097 set dummy ${ac_tool_prefix}strip; ac_word=$2
8098 echo "$as_me:$LINENO: checking for $ac_word" >&5
8099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8100 if test "${ac_cv_prog_STRIP+set}" = set; then
8101 echo $ECHO_N "(cached) $ECHO_C" >&6
8103 if test -n "$STRIP"; then
8104 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8110 test -z "$as_dir" && as_dir=.
8111 for ac_exec_ext in '' $ac_executable_extensions; do
8112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8113 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8122 STRIP=$ac_cv_prog_STRIP
8123 if test -n "$STRIP"; then
8124 echo "$as_me:$LINENO: result: $STRIP" >&5
8125 echo "${ECHO_T}$STRIP" >&6
8127 echo "$as_me:$LINENO: result: no" >&5
8128 echo "${ECHO_T}no" >&6
8132 if test -z "$ac_cv_prog_STRIP"; then
8134 # Extract the first word of "strip", so it can be a program name with args.
8135 set dummy strip; ac_word=$2
8136 echo "$as_me:$LINENO: checking for $ac_word" >&5
8137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8138 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8139 echo $ECHO_N "(cached) $ECHO_C" >&6
8141 if test -n "$ac_ct_STRIP"; then
8142 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8148 test -z "$as_dir" && as_dir=.
8149 for ac_exec_ext in '' $ac_executable_extensions; do
8150 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8151 ac_cv_prog_ac_ct_STRIP="strip"
8152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8158 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8161 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8162 if test -n "$ac_ct_STRIP"; then
8163 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8164 echo "${ECHO_T}$ac_ct_STRIP" >&6
8166 echo "$as_me:$LINENO: result: no" >&5
8167 echo "${ECHO_T}no" >&6
8172 STRIP="$ac_cv_prog_STRIP"
8177 old_CFLAGS="$CFLAGS"
8179 # Set sane defaults for various variables
8180 test -z "$AR" && AR=ar
8181 test -z "$AR_FLAGS" && AR_FLAGS=cru
8182 test -z "$AS" && AS=as
8183 test -z "$CC" && CC=cc
8184 test -z "$LTCC" && LTCC=$CC
8185 test -z "$DLLTOOL" && DLLTOOL=dlltool
8186 test -z "$LD" && LD=ld
8187 test -z "$LN_S" && LN_S="ln -s"
8188 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8189 test -z "$NM" && NM=nm
8190 test -z "$SED" && SED=sed
8191 test -z "$OBJDUMP" && OBJDUMP=objdump
8192 test -z "$RANLIB" && RANLIB=:
8193 test -z "$STRIP" && STRIP=:
8194 test -z "$ac_objext" && ac_objext=o
8196 # Determine commands to create old-style static archives.
8197 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8198 old_postinstall_cmds='chmod 644 $oldlib'
8199 old_postuninstall_cmds=
8201 if test -n "$RANLIB"; then
8204 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8207 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8210 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8213 for cc_temp in $compiler""; do
8215 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8216 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8221 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8224 # Only perform the check for file, if the check method requires it
8225 case $deplibs_check_method in
8227 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8228 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8229 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8230 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8231 echo $ECHO_N "(cached) $ECHO_C" >&6
8235 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8238 lt_save_MAGIC_CMD="$MAGIC_CMD"
8239 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8240 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8241 for ac_dir in $ac_dummy; do
8243 test -z "$ac_dir" && ac_dir=.
8244 if test -f $ac_dir/${ac_tool_prefix}file; then
8245 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8246 if test -n "$file_magic_test_file"; then
8247 case $deplibs_check_method in
8249 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8250 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8251 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8252 $EGREP "$file_magic_regex" > /dev/null; then
8257 *** Warning: the command libtool uses to detect shared libraries,
8258 *** $file_magic_cmd, produces output that libtool cannot recognize.
8259 *** The result is that libtool may fail to recognize shared libraries
8260 *** as such. This will affect the creation of libtool libraries that
8261 *** depend on shared libraries, but programs linked with such libtool
8262 *** libraries will work regardless of this problem. Nevertheless, you
8263 *** may want to report the problem to your system manager and/or to
8264 *** bug-libtool@gnu.org
8274 MAGIC_CMD="$lt_save_MAGIC_CMD"
8279 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8280 if test -n "$MAGIC_CMD"; then
8281 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8282 echo "${ECHO_T}$MAGIC_CMD" >&6
8284 echo "$as_me:$LINENO: result: no" >&5
8285 echo "${ECHO_T}no" >&6
8288 if test -z "$lt_cv_path_MAGIC_CMD"; then
8289 if test -n "$ac_tool_prefix"; then
8290 echo "$as_me:$LINENO: checking for file" >&5
8291 echo $ECHO_N "checking for file... $ECHO_C" >&6
8292 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8293 echo $ECHO_N "(cached) $ECHO_C" >&6
8297 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8300 lt_save_MAGIC_CMD="$MAGIC_CMD"
8301 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8302 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8303 for ac_dir in $ac_dummy; do
8305 test -z "$ac_dir" && ac_dir=.
8306 if test -f $ac_dir/file; then
8307 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8308 if test -n "$file_magic_test_file"; then
8309 case $deplibs_check_method in
8311 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8312 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8313 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8314 $EGREP "$file_magic_regex" > /dev/null; then
8319 *** Warning: the command libtool uses to detect shared libraries,
8320 *** $file_magic_cmd, produces output that libtool cannot recognize.
8321 *** The result is that libtool may fail to recognize shared libraries
8322 *** as such. This will affect the creation of libtool libraries that
8323 *** depend on shared libraries, but programs linked with such libtool
8324 *** libraries will work regardless of this problem. Nevertheless, you
8325 *** may want to report the problem to your system manager and/or to
8326 *** bug-libtool@gnu.org
8336 MAGIC_CMD="$lt_save_MAGIC_CMD"
8341 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8342 if test -n "$MAGIC_CMD"; then
8343 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8344 echo "${ECHO_T}$MAGIC_CMD" >&6
8346 echo "$as_me:$LINENO: result: no" >&5
8347 echo "${ECHO_T}no" >&6
8360 enable_win32_dll=yes
8362 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8363 if test "${enable_libtool_lock+set}" = set; then
8364 enableval="$enable_libtool_lock"
8367 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8370 # Check whether --with-pic or --without-pic was given.
8371 if test "${with_pic+set}" = set; then
8377 test -z "$pic_mode" && pic_mode=default
8379 # Use C for the default configuration in the libtool script
8383 ac_cpp='$CPP $CPPFLAGS'
8384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8389 # Source file extension for C test sources.
8392 # Object file extension for compiled C test sources.
8396 # Code to be used in simple compile tests
8397 lt_simple_compile_test_code="int some_variable = 0;\n"
8399 # Code to be used in simple link tests
8400 lt_simple_link_test_code='int main(){return(0);}\n'
8403 # If no C compiler was specified, use CC.
8406 # Allow CC to be a program name with arguments.
8410 # save warnings/boilerplate of simple test code
8411 ac_outfile=conftest.$ac_objext
8412 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8413 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8414 _lt_compiler_boilerplate=`cat conftest.err`
8417 ac_outfile=conftest.$ac_objext
8418 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8419 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8420 _lt_linker_boilerplate=`cat conftest.err`
8425 # Check for any special shared library compilation flags.
8428 if test "$GCC" = no; then
8431 lt_prog_cc_shlib='-belf'
8435 if test -n "$lt_prog_cc_shlib"; then
8436 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8437 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8438 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
8440 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8441 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8442 lt_cv_prog_cc_can_build_shared=no
8448 # Check to make sure the static flag actually works.
8450 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8451 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
8452 if test "${lt_prog_compiler_static_works+set}" = set; then
8453 echo $ECHO_N "(cached) $ECHO_C" >&6
8455 lt_prog_compiler_static_works=no
8456 save_LDFLAGS="$LDFLAGS"
8457 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8458 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8459 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8460 # The compiler can only warn and ignore the option if not recognized
8461 # So say no if there are warnings
8462 if test -s conftest.err; then
8463 # Append any errors to the config.log.
8464 cat conftest.err 1>&5
8465 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
8466 $SED '/^$/d' conftest.err >conftest.er2
8467 if diff conftest.exp conftest.er2 >/dev/null; then
8468 lt_prog_compiler_static_works=yes
8471 lt_prog_compiler_static_works=yes
8475 LDFLAGS="$save_LDFLAGS"
8478 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8479 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8481 if test x"$lt_prog_compiler_static_works" = xyes; then
8484 lt_prog_compiler_static=
8490 lt_prog_compiler_no_builtin_flag=
8492 if test "$GCC" = yes; then
8493 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8496 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8497 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8498 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8499 echo $ECHO_N "(cached) $ECHO_C" >&6
8501 lt_cv_prog_compiler_rtti_exceptions=no
8502 ac_outfile=conftest.$ac_objext
8503 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8504 lt_compiler_flag="-fno-rtti -fno-exceptions"
8505 # Insert the option either (1) after the last *FLAGS variable, or
8506 # (2) before a word containing "conftest.", or (3) at the end.
8507 # Note that $ac_compile itself does not contain backslashes and begins
8508 # with a dollar sign (not a hyphen), so the echo should work correctly.
8509 # The option is referenced via a variable to avoid confusing sed.
8510 lt_compile=`echo "$ac_compile" | $SED \
8511 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8512 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8513 -e 's:$: $lt_compiler_flag:'`
8514 (eval echo "\"\$as_me:8514: $lt_compile\"" >&5)
8515 (eval "$lt_compile" 2>conftest.err)
8517 cat conftest.err >&5
8518 echo "$as_me:8518: \$? = $ac_status" >&5
8519 if (exit $ac_status) && test -s "$ac_outfile"; then
8520 # The compiler can only warn and ignore the option if not recognized
8521 # So say no if there are warnings other than the usual output.
8522 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8523 $SED '/^$/d' conftest.err >conftest.er2
8524 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8525 lt_cv_prog_compiler_rtti_exceptions=yes
8531 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8532 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8534 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8535 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8542 lt_prog_compiler_wl=
8543 lt_prog_compiler_pic=
8544 lt_prog_compiler_static=
8546 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8547 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8549 if test "$GCC" = yes; then
8550 lt_prog_compiler_wl='-Wl,'
8551 lt_prog_compiler_static='-static'
8555 # All AIX code is PIC.
8556 if test "$host_cpu" = ia64; then
8557 # AIX 5 now supports IA64 processor
8558 lt_prog_compiler_static='-Bstatic'
8563 # FIXME: we need at least 68020 code to build shared libraries, but
8564 # adding the `-m68020' flag to GCC prevents building anything better,
8566 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8569 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8570 # PIC is the default for these OSes.
8573 mingw* | pw32* | os2*)
8574 # This hack is so that the source file can tell whether it is being
8575 # built for inclusion in a dll (and should export symbols for example).
8576 lt_prog_compiler_pic='-DDLL_EXPORT'
8579 darwin* | rhapsody*)
8580 # PIC is the default on this platform
8581 # Common symbols not allowed in MH_DYLIB files
8582 lt_prog_compiler_pic='-fno-common'
8586 # Just because we use GCC doesn't mean we suddenly get shared libraries
8587 # on systems that don't support them.
8588 lt_prog_compiler_can_build_shared=no
8593 if test -d /usr/nec; then
8594 lt_prog_compiler_pic=-Kconform_pic
8599 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8606 lt_prog_compiler_pic='-fPIC'
8612 lt_prog_compiler_pic='-fPIC'
8616 # PORTME Check for flag to pass linker flags through the system compiler.
8619 lt_prog_compiler_wl='-Wl,'
8620 if test "$host_cpu" = ia64; then
8621 # AIX 5 now supports IA64 processor
8622 lt_prog_compiler_static='-Bstatic'
8624 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8628 # PIC is the default on this platform
8629 # Common symbols not allowed in MH_DYLIB files
8630 case $cc_basename in
8632 lt_prog_compiler_pic='-qnocommon'
8633 lt_prog_compiler_wl='-Wl,'
8638 mingw* | pw32* | os2*)
8639 # This hack is so that the source file can tell whether it is being
8640 # built for inclusion in a dll (and should export symbols for example).
8641 lt_prog_compiler_pic='-DDLL_EXPORT'
8644 hpux9* | hpux10* | hpux11*)
8645 lt_prog_compiler_wl='-Wl,'
8646 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8653 lt_prog_compiler_pic='+Z'
8656 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8657 lt_prog_compiler_static='${wl}-a ${wl}archive'
8660 irix5* | irix6* | nonstopux*)
8661 lt_prog_compiler_wl='-Wl,'
8662 # PIC (with -KPIC) is the default.
8663 lt_prog_compiler_static='-non_shared'
8667 lt_prog_compiler_pic='-KPIC'
8668 lt_prog_compiler_static='-Bstatic'
8672 case $cc_basename in
8674 lt_prog_compiler_wl='-Wl,'
8675 lt_prog_compiler_pic='-KPIC'
8676 lt_prog_compiler_static='-static'
8678 pgcc* | pgf77* | pgf90*)
8679 # Portland Group compilers (*not* the Pentium gcc compiler,
8680 # which looks to be a dead project)
8681 lt_prog_compiler_wl='-Wl,'
8682 lt_prog_compiler_pic='-fpic'
8683 lt_prog_compiler_static='-static'
8686 lt_prog_compiler_wl='-Wl,'
8687 # All Alpha code is PIC.
8688 lt_prog_compiler_static='-non_shared'
8693 osf3* | osf4* | osf5*)
8694 lt_prog_compiler_wl='-Wl,'
8695 # All OSF/1 code is PIC.
8696 lt_prog_compiler_static='-non_shared'
8700 lt_prog_compiler_pic='-Kpic'
8701 lt_prog_compiler_static='-dn'
8705 lt_prog_compiler_pic='-KPIC'
8706 lt_prog_compiler_static='-Bstatic'
8707 case $cc_basename in
8709 lt_prog_compiler_wl='-Qoption ld ';;
8711 lt_prog_compiler_wl='-Wl,';;
8716 lt_prog_compiler_wl='-Qoption ld '
8717 lt_prog_compiler_pic='-PIC'
8718 lt_prog_compiler_static='-Bstatic'
8721 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8722 lt_prog_compiler_wl='-Wl,'
8723 lt_prog_compiler_pic='-KPIC'
8724 lt_prog_compiler_static='-Bstatic'
8728 if test -d /usr/nec ;then
8729 lt_prog_compiler_pic='-Kconform_pic'
8730 lt_prog_compiler_static='-Bstatic'
8735 lt_prog_compiler_wl='-Wl,'
8736 lt_prog_compiler_can_build_shared=no
8740 lt_prog_compiler_pic='-pic'
8741 lt_prog_compiler_static='-Bstatic'
8745 lt_prog_compiler_can_build_shared=no
8750 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8751 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8754 # Check to make sure the PIC flag actually works.
8756 if test -n "$lt_prog_compiler_pic"; then
8758 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8759 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8760 if test "${lt_prog_compiler_pic_works+set}" = set; then
8761 echo $ECHO_N "(cached) $ECHO_C" >&6
8763 lt_prog_compiler_pic_works=no
8764 ac_outfile=conftest.$ac_objext
8765 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8766 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8767 # Insert the option either (1) after the last *FLAGS variable, or
8768 # (2) before a word containing "conftest.", or (3) at the end.
8769 # Note that $ac_compile itself does not contain backslashes and begins
8770 # with a dollar sign (not a hyphen), so the echo should work correctly.
8771 # The option is referenced via a variable to avoid confusing sed.
8772 lt_compile=`echo "$ac_compile" | $SED \
8773 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8774 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8775 -e 's:$: $lt_compiler_flag:'`
8776 (eval echo "\"\$as_me:8776: $lt_compile\"" >&5)
8777 (eval "$lt_compile" 2>conftest.err)
8779 cat conftest.err >&5
8780 echo "$as_me:8780: \$? = $ac_status" >&5
8781 if (exit $ac_status) && test -s "$ac_outfile"; then
8782 # The compiler can only warn and ignore the option if not recognized
8783 # So say no if there are warnings other than the usual output.
8784 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8785 $SED '/^$/d' conftest.err >conftest.er2
8786 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8787 lt_prog_compiler_pic_works=yes
8793 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8794 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8796 if test x"$lt_prog_compiler_pic_works" = xyes; then
8797 case $lt_prog_compiler_pic in
8799 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8802 lt_prog_compiler_pic=
8803 lt_prog_compiler_can_build_shared=no
8808 # For platforms which do not support PIC, -DPIC is meaningless:
8810 lt_prog_compiler_pic=
8813 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8817 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8818 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8819 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8820 echo $ECHO_N "(cached) $ECHO_C" >&6
8822 lt_cv_prog_compiler_c_o=no
8823 $rm -r conftest 2>/dev/null
8827 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8829 lt_compiler_flag="-o out/conftest2.$ac_objext"
8830 # Insert the option either (1) after the last *FLAGS variable, or
8831 # (2) before a word containing "conftest.", or (3) at the end.
8832 # Note that $ac_compile itself does not contain backslashes and begins
8833 # with a dollar sign (not a hyphen), so the echo should work correctly.
8834 lt_compile=`echo "$ac_compile" | $SED \
8835 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8836 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8837 -e 's:$: $lt_compiler_flag:'`
8838 (eval echo "\"\$as_me:8838: $lt_compile\"" >&5)
8839 (eval "$lt_compile" 2>out/conftest.err)
8841 cat out/conftest.err >&5
8842 echo "$as_me:8842: \$? = $ac_status" >&5
8843 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8845 # The compiler can only warn and ignore the option if not recognized
8846 # So say no if there are warnings
8847 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8848 $SED '/^$/d' out/conftest.err >out/conftest.er2
8849 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8850 lt_cv_prog_compiler_c_o=yes
8855 # SGI C++ compiler will create directory out/ii_files/ for
8856 # template instantiation
8857 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8858 $rm out/* && rmdir out
8864 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8865 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8868 hard_links="nottested"
8869 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8870 # do not overwrite the value of need_locks provided by the user
8871 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8872 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8875 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8877 ln conftest.a conftest.b 2>&5 || hard_links=no
8878 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8879 echo "$as_me:$LINENO: result: $hard_links" >&5
8880 echo "${ECHO_T}$hard_links" >&6
8881 if test "$hard_links" = no; then
8882 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8883 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8890 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8891 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8894 allow_undefined_flag=
8895 enable_shared_with_static_runtimes=no
8897 archive_expsym_cmds=
8898 old_archive_From_new_cmds=
8899 old_archive_from_expsyms_cmds=
8900 export_dynamic_flag_spec=
8901 whole_archive_flag_spec=
8902 thread_safe_flag_spec=
8903 hardcode_libdir_flag_spec=
8904 hardcode_libdir_flag_spec_ld=
8905 hardcode_libdir_separator=
8908 hardcode_shlibpath_var=unsupported
8909 link_all_deplibs=unknown
8910 hardcode_automatic=no
8913 always_export_symbols=no
8914 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8915 # include_expsyms should be a list of space-separated symbols to be *always*
8916 # included in the symbol list
8918 # exclude_expsyms can be an extended regexp of symbols to exclude
8919 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8920 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8921 # as well as any symbol that contains `d'.
8922 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8923 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8924 # platforms (ab)use it in PIC code, but their linkers get confused if
8925 # the symbol is explicitly referenced. Since portable code cannot
8926 # rely on this symbol name, it's probably fine to never include it in
8927 # preloaded symbol tables.
8928 extract_expsyms_cmds=
8929 # Just being paranoid about ensuring that cc_basename is set.
8930 for cc_temp in $compiler""; do
8932 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8933 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8938 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8941 cygwin* | mingw* | pw32*)
8942 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8943 # When not using gcc, we currently assume that we are using
8944 # Microsoft Visual C++.
8945 if test "$GCC" != yes; then
8955 if test "$with_gnu_ld" = yes; then
8956 # If archive_cmds runs LD, not CC, wlarc should be empty
8959 # Set some defaults for GNU ld with shared library support. These
8960 # are reset later if shared libraries are not supported. Putting them
8961 # here allows them to be overridden if necessary.
8962 runpath_var=LD_RUN_PATH
8963 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8964 export_dynamic_flag_spec='${wl}--export-dynamic'
8965 # ancient GNU ld didn't support --whole-archive et. al.
8966 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8967 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8969 whole_archive_flag_spec=
8971 supports_anon_versioning=no
8972 case `$LD -v 2>/dev/null` in
8973 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8974 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8975 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8976 *\ 2.11.*) ;; # other 2.11 versions
8977 *) supports_anon_versioning=yes ;;
8980 # See if GNU ld supports shared libraries.
8982 aix3* | aix4* | aix5*)
8983 # On AIX/PPC, the GNU linker is very broken
8984 if test "$host_cpu" != ia64; then
8988 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8989 *** to be unable to reliably create shared libraries on AIX.
8990 *** Therefore, libtool is disabling shared libraries support. If you
8991 *** really care for shared libraries, you may want to modify your PATH
8992 *** so that a non-GNU linker is found, and then restart.
8999 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)'
9000 hardcode_libdir_flag_spec='-L$libdir'
9001 hardcode_minus_L=yes
9003 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9004 # that the semantics of dynamic libraries on AmigaOS, at least up
9005 # to version 4, is to share data among multiple programs linked
9006 # with the same dynamic library. Since this doesn't match the
9007 # behavior of shared libraries on other platforms, we can't use
9013 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9014 allow_undefined_flag=unsupported
9015 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9016 # support --undefined. This deserves some investigation. FIXME
9017 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9023 cygwin* | mingw* | pw32*)
9024 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9025 # as there is no search path for DLLs.
9026 hardcode_libdir_flag_spec='-L$libdir'
9027 allow_undefined_flag=unsupported
9028 always_export_symbols=no
9029 enable_shared_with_static_runtimes=yes
9030 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9032 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9033 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9034 # If the export-symbols file already is a .def file (1st line
9035 # is EXPORTS), use it as is; otherwise, prepend...
9036 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9037 cp $export_symbols $output_objdir/$soname.def;
9039 echo EXPORTS > $output_objdir/$soname.def;
9040 cat $export_symbols >> $output_objdir/$soname.def;
9042 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9049 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9051 case $cc_basename,$host_cpu in
9052 pgcc*) # Portland Group C compiler
9053 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'
9054 tmp_addflag=' $pic_flag'
9056 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
9057 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'
9058 tmp_addflag=' $pic_flag -Mnomain' ;;
9059 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9060 tmp_addflag=' -i_dynamic' ;;
9061 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9062 tmp_addflag=' -i_dynamic -nofor_main' ;;
9063 ifc* | ifort*) # Intel Fortran compiler
9064 tmp_addflag=' -nofor_main' ;;
9066 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9068 if test $supports_anon_versioning = yes; then
9069 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9070 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9071 $echo "local: *; };" >> $output_objdir/$libname.ver~
9072 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9080 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9081 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9084 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9085 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9090 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9094 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9095 *** create shared libraries on Solaris systems. Therefore, libtool
9096 *** is disabling shared libraries support. We urge you to upgrade GNU
9097 *** binutils to release 2.9.1 or newer. Another option is to modify
9098 *** your PATH or compiler configuration so that the native linker is
9099 *** used, and then restart.
9102 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9103 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9104 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9111 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9114 hardcode_shlibpath_var=no
9118 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9119 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9120 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9127 if test "$ld_shlibs" = no; then
9129 hardcode_libdir_flag_spec=
9130 export_dynamic_flag_spec=
9131 whole_archive_flag_spec=
9134 # PORTME fill in a description of your system's linker (not GNU ld)
9137 allow_undefined_flag=unsupported
9138 always_export_symbols=yes
9139 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'
9140 # Note: this linker hardcodes the directories in LIBPATH if there
9141 # are no directories specified by -L.
9142 hardcode_minus_L=yes
9143 if test "$GCC" = yes && test -z "$link_static_flag"; then
9144 # Neither direct hardcoding nor static linking is supported with a
9146 hardcode_direct=unsupported
9151 if test "$host_cpu" = ia64; then
9152 # On IA64, the linker does run time linking by default, so we don't
9153 # have to do anything special.
9154 aix_use_runtimelinking=no
9155 exp_sym_flag='-Bexport'
9158 # If we're using GNU nm, then we don't want the "-C" option.
9159 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9160 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9161 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'
9163 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'
9165 aix_use_runtimelinking=no
9167 # Test if we are trying to use run time linking or normal
9168 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9169 # need to do runtime linking.
9170 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9171 for ld_flag in $LDFLAGS; do
9172 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9173 aix_use_runtimelinking=yes
9179 exp_sym_flag='-bexport'
9180 no_entry_flag='-bnoentry'
9183 # When large executables or shared objects are built, AIX ld can
9184 # have problems creating the table of contents. If linking a library
9185 # or program results in "error TOC overflow" add -mminimal-toc to
9186 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9187 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9191 hardcode_libdir_separator=':'
9192 link_all_deplibs=yes
9194 if test "$GCC" = yes; then
9195 case $host_os in aix4.[012]|aix4.[012].*)
9196 # We only want to do this on AIX 4.2 and lower, the check
9197 # below for broken collect2 doesn't work under 4.3+
9198 collect2name=`${CC} -print-prog-name=collect2`
9199 if test -f "$collect2name" && \
9200 strings "$collect2name" | grep resolve_lib_name >/dev/null
9202 # We have reworked collect2
9205 # We have old collect2
9206 hardcode_direct=unsupported
9207 # It fails to find uninstalled libraries when the uninstalled
9208 # path is not listed in the libpath. Setting hardcode_minus_L
9209 # to unsupported forces relinking
9210 hardcode_minus_L=yes
9211 hardcode_libdir_flag_spec='-L$libdir'
9212 hardcode_libdir_separator=
9215 shared_flag='-shared'
9216 if test "$aix_use_runtimelinking" = yes; then
9217 shared_flag="$shared_flag "'${wl}-G'
9221 if test "$host_cpu" = ia64; then
9222 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9223 # chokes on -Wl,-G. The following line is correct:
9226 if test "$aix_use_runtimelinking" = yes; then
9227 shared_flag='${wl}-G'
9229 shared_flag='${wl}-bM:SRE'
9234 # It seems that -bexpall does not export symbols beginning with
9235 # underscore (_), so it is better to generate a list of symbols to export.
9236 always_export_symbols=yes
9237 if test "$aix_use_runtimelinking" = yes; then
9238 # Warning - without using the other runtime loading flags (-brtl),
9239 # -berok will link without error, but may produce a broken library.
9240 allow_undefined_flag='-berok'
9241 # Determine the default libpath from the value encoded in an empty executable.
9242 cat >conftest.$ac_ext <<_ACEOF
9245 cat confdefs.h >>conftest.$ac_ext
9246 cat >>conftest.$ac_ext <<_ACEOF
9247 /* end confdefs.h. */
9257 rm -f conftest.$ac_objext conftest$ac_exeext
9258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9259 (eval $ac_link) 2>conftest.er1
9261 grep -v '^ *+' conftest.er1 >conftest.err
9263 cat conftest.err >&5
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); } &&
9266 { ac_try='test -z "$ac_c_werror_flag"
9267 || test ! -s conftest.err'
9268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9272 (exit $ac_status); }; } &&
9273 { ac_try='test -s conftest$ac_exeext'
9274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278 (exit $ac_status); }; }; then
9280 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9282 # Check for a 64-bit object if we didn't find anything.
9283 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; }
9286 echo "$as_me: failed program was:" >&5
9287 sed 's/^/| /' conftest.$ac_ext >&5
9290 rm -f conftest.err conftest.$ac_objext \
9291 conftest$ac_exeext conftest.$ac_ext
9292 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9294 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9295 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"
9297 if test "$host_cpu" = ia64; then
9298 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9299 allow_undefined_flag="-z nodefs"
9300 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"
9302 # Determine the default libpath from the value encoded in an empty executable.
9303 cat >conftest.$ac_ext <<_ACEOF
9306 cat confdefs.h >>conftest.$ac_ext
9307 cat >>conftest.$ac_ext <<_ACEOF
9308 /* end confdefs.h. */
9318 rm -f conftest.$ac_objext conftest$ac_exeext
9319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9320 (eval $ac_link) 2>conftest.er1
9322 grep -v '^ *+' conftest.er1 >conftest.err
9324 cat conftest.err >&5
9325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326 (exit $ac_status); } &&
9327 { ac_try='test -z "$ac_c_werror_flag"
9328 || test ! -s conftest.err'
9329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333 (exit $ac_status); }; } &&
9334 { ac_try='test -s conftest$ac_exeext'
9335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339 (exit $ac_status); }; }; then
9341 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9343 # Check for a 64-bit object if we didn't find anything.
9344 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; }
9347 echo "$as_me: failed program was:" >&5
9348 sed 's/^/| /' conftest.$ac_ext >&5
9351 rm -f conftest.err conftest.$ac_objext \
9352 conftest$ac_exeext conftest.$ac_ext
9353 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9355 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9356 # Warning - without using the other run time loading flags,
9357 # -berok will link without error, but may produce a broken library.
9358 no_undefined_flag=' ${wl}-bernotok'
9359 allow_undefined_flag=' ${wl}-berok'
9360 # -bexpall does not export symbols beginning with underscore (_)
9361 always_export_symbols=yes
9362 # Exported symbols can be pulled into shared objects from archives
9363 whole_archive_flag_spec=' '
9364 archive_cmds_need_lc=yes
9365 # This is similar to how AIX traditionally builds it's shared libraries.
9366 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'
9372 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)'
9373 hardcode_libdir_flag_spec='-L$libdir'
9374 hardcode_minus_L=yes
9375 # see comment about different semantics on the GNU ld section
9380 export_dynamic_flag_spec=-rdynamic
9383 cygwin* | mingw* | pw32*)
9384 # When not using gcc, we currently assume that we are using
9385 # Microsoft Visual C++.
9386 # hardcode_libdir_flag_spec is actually meaningless, as there is
9387 # no search path for DLLs.
9388 hardcode_libdir_flag_spec=' '
9389 allow_undefined_flag=unsupported
9390 # Tell ltmain to make .lib files, not .a files.
9392 # Tell ltmain to make .dll files, not .so files.
9394 # FIXME: Setting linknames here is a bad hack.
9395 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9396 # The linker will automatically build a .lib file if we build a DLL.
9397 old_archive_From_new_cmds='true'
9398 # FIXME: Should let the user specify the lib program.
9399 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9400 fix_srcfile_path='`cygpath -w "$srcfile"`'
9401 enable_shared_with_static_runtimes=yes
9404 darwin* | rhapsody*)
9406 rhapsody* | darwin1.[012])
9407 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9410 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9411 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9413 case ${MACOSX_DEPLOYMENT_TARGET} in
9415 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9418 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9424 archive_cmds_need_lc=no
9426 hardcode_automatic=yes
9427 hardcode_shlibpath_var=unsupported
9428 whole_archive_flag_spec=''
9429 link_all_deplibs=yes
9430 if test "$GCC" = yes ; then
9431 output_verbose_link_cmd='echo'
9432 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9433 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9434 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9435 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}'
9436 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}'
9438 case $cc_basename in
9440 output_verbose_link_cmd='echo'
9441 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9442 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9443 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9444 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}'
9445 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}'
9455 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9456 hardcode_libdir_flag_spec='-L$libdir'
9457 hardcode_shlibpath_var=no
9464 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9465 # support. Future versions do this automatically, but an explicit c++rt0.o
9466 # does not break anything, and helps significantly (at the cost of a little
9469 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9470 hardcode_libdir_flag_spec='-R$libdir'
9472 hardcode_shlibpath_var=no
9475 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9477 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9479 hardcode_minus_L=yes
9480 hardcode_shlibpath_var=no
9483 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9484 freebsd* | kfreebsd*-gnu | dragonfly*)
9485 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9486 hardcode_libdir_flag_spec='-R$libdir'
9488 hardcode_shlibpath_var=no
9492 if test "$GCC" = yes; then
9493 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'
9495 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'
9497 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9498 hardcode_libdir_separator=:
9501 # hardcode_minus_L: Not really in the search PATH,
9502 # but as the default location of the library.
9503 hardcode_minus_L=yes
9504 export_dynamic_flag_spec='${wl}-E'
9508 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9511 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9514 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9520 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9523 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9527 if test "$with_gnu_ld" = no; then
9530 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9531 hardcode_libdir_flag_spec_ld='+b $libdir'
9532 hardcode_libdir_separator=:
9534 hardcode_shlibpath_var=no
9537 hardcode_libdir_flag_spec='-L$libdir'
9539 hardcode_shlibpath_var=no
9541 # hardcode_minus_L: Not really in the search PATH,
9542 # but as the default location of the library.
9543 hardcode_minus_L=yes
9546 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9547 hardcode_libdir_separator=:
9549 export_dynamic_flag_spec='${wl}-E'
9551 # hardcode_minus_L: Not really in the search PATH,
9552 # but as the default location of the library.
9553 hardcode_minus_L=yes
9559 irix5* | irix6* | nonstopux*)
9560 if test "$GCC" = yes; then
9561 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'
9563 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'
9564 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9566 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9567 hardcode_libdir_separator=:
9568 link_all_deplibs=yes
9572 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9573 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9575 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9577 hardcode_libdir_flag_spec='-R$libdir'
9579 hardcode_shlibpath_var=no
9583 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9585 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9586 hardcode_libdir_separator=:
9587 hardcode_shlibpath_var=no
9592 hardcode_shlibpath_var=no
9593 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9594 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9595 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9596 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9597 export_dynamic_flag_spec='${wl}-E'
9600 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9601 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9602 hardcode_libdir_flag_spec='-R$libdir'
9605 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9606 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9613 hardcode_libdir_flag_spec='-L$libdir'
9614 hardcode_minus_L=yes
9615 allow_undefined_flag=unsupported
9616 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'
9617 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9621 if test "$GCC" = yes; then
9622 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9623 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'
9625 allow_undefined_flag=' -expect_unresolved \*'
9626 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'
9628 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9629 hardcode_libdir_separator=:
9632 osf4* | osf5*) # as osf3* with the addition of -msym flag
9633 if test "$GCC" = yes; then
9634 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9635 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'
9636 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9638 allow_undefined_flag=' -expect_unresolved \*'
9639 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'
9640 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9641 $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'
9643 # Both c and cxx compiler support -rpath directly
9644 hardcode_libdir_flag_spec='-rpath $libdir'
9646 hardcode_libdir_separator=:
9650 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9651 hardcode_shlibpath_var=no
9652 export_dynamic_flag_spec='${wl}-Bexport'
9653 runpath_var=LD_RUN_PATH
9654 hardcode_runpath_var=yes
9658 no_undefined_flag=' -z text'
9659 if test "$GCC" = yes; then
9661 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9662 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9663 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9666 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9667 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9668 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9670 hardcode_libdir_flag_spec='-R$libdir'
9671 hardcode_shlibpath_var=no
9673 solaris2.[0-5] | solaris2.[0-5].*) ;;
9675 # The compiler driver will combine linker options so we
9676 # cannot just pass the convience library names through
9677 # without $wl, iff we do not link with $LD.
9678 # Luckily, gcc supports the same syntax we need for Sun Studio.
9679 # Supported since Solaris 2.6 (maybe 2.5.1?)
9682 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9684 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' ;;
9687 link_all_deplibs=yes
9691 if test "x$host_vendor" = xsequent; then
9692 # Use $CC to link under sequent, because it throws in some extra .o
9693 # files that make .init and .fini sections work.
9694 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9696 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9698 hardcode_libdir_flag_spec='-L$libdir'
9700 hardcode_minus_L=yes
9701 hardcode_shlibpath_var=no
9705 case $host_vendor in
9707 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9708 hardcode_direct=yes # is this really true???
9711 ## LD is ld it makes a PLAMLIB
9712 ## CC just makes a GrossModule.
9713 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9714 reload_cmds='$CC -r -o $output$reload_objs'
9718 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9719 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9722 runpath_var='LD_RUN_PATH'
9723 hardcode_shlibpath_var=no
9727 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9728 hardcode_shlibpath_var=no
9729 export_dynamic_flag_spec='-Bexport'
9733 if test -d /usr/nec; then
9734 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9735 hardcode_shlibpath_var=no
9736 runpath_var=LD_RUN_PATH
9737 hardcode_runpath_var=yes
9743 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9746 hardcode_shlibpath_var=no
9747 hardcode_runpath_var=yes
9748 runpath_var=LD_RUN_PATH
9751 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9752 no_undefined_flag='${wl}-z ${wl}text'
9753 if test "$GCC" = yes; then
9754 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9756 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9758 runpath_var='LD_RUN_PATH'
9759 hardcode_shlibpath_var=no
9763 no_undefined_flag=' -z text'
9764 # $CC -shared without GNU ld will not create a library from C++
9765 # object files and a static libstdc++, better avoid it by now
9766 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9767 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9768 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9769 hardcode_libdir_flag_spec=
9770 hardcode_shlibpath_var=no
9771 runpath_var='LD_RUN_PATH'
9775 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9776 hardcode_libdir_flag_spec='-L$libdir'
9777 hardcode_shlibpath_var=no
9786 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9787 echo "${ECHO_T}$ld_shlibs" >&6
9788 test "$ld_shlibs" = no && can_build_shared=no
9790 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9791 if test "$GCC" = yes; then
9792 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9796 # Do we need to explicitly link libc?
9798 case "x$archive_cmds_need_lc" in
9800 # Assume -lc should be added
9801 archive_cmds_need_lc=yes
9803 if test "$enable_shared" = yes && test "$GCC" = yes; then
9804 case $archive_cmds in
9806 # FIXME: we may have to deal with multi-command sequences.
9809 # Test whether the compiler implicitly links with -lc since on some
9810 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9811 # to ld, don't add -lc before -lgcc.
9812 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9813 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9815 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9818 (eval $ac_compile) 2>&5
9820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821 (exit $ac_status); } 2>conftest.err; then
9824 libobjs=conftest.$ac_objext
9826 wl=$lt_prog_compiler_wl
9832 lt_save_allow_undefined_flag=$allow_undefined_flag
9833 allow_undefined_flag=
9834 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9835 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); }
9840 archive_cmds_need_lc=no
9842 archive_cmds_need_lc=yes
9844 allow_undefined_flag=$lt_save_allow_undefined_flag
9846 cat conftest.err 1>&5
9849 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9850 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9857 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9858 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9860 libname_spec='lib$name'
9868 shlibpath_overrides_runpath=unknown
9870 dynamic_linker="$host_os ld.so"
9871 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9872 if test "$GCC" = yes; then
9873 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9874 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9875 # if the path contains ";" then we assume it to be the separator
9876 # otherwise default to the standard path separator (i.e. ":") - it is
9877 # assumed that no part of a normal pathname contains ";" but that should
9878 # okay in the real world where ";" in dirpaths is itself problematic.
9879 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9881 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9884 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9886 need_lib_prefix=unknown
9887 hardcode_into_libs=no
9889 # when you set need_version to no, make sure it does not cause -set_version
9890 # flags to be left without arguments
9891 need_version=unknown
9896 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9897 shlibpath_var=LIBPATH
9899 # AIX 3 has no versioning support, so we append a major version to the name.
9900 soname_spec='${libname}${release}${shared_ext}$major'
9907 hardcode_into_libs=yes
9908 if test "$host_cpu" = ia64; then
9909 # AIX 5 supports IA64
9910 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9911 shlibpath_var=LD_LIBRARY_PATH
9913 # With GCC up to 2.95.x, collect2 would create an import file
9914 # for dependence libraries. The import file would start with
9915 # the line `#! .'. This would cause the generated library to
9916 # depend on `.', always an invalid library. This was fixed in
9917 # development snapshots of GCC prior to 3.0.
9919 aix4 | aix4.[01] | aix4.[01].*)
9920 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9922 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9929 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9930 # soname into executable. Probably we can add versioning support to
9931 # collect2, so additional links can be useful in future.
9932 if test "$aix_use_runtimelinking" = yes; then
9933 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9934 # instead of lib<name>.a to let people know that these are not
9935 # typical AIX shared libraries.
9936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9938 # We preserve .a as extension for shared libraries through AIX4.2
9939 # and later when we are not doing run time linking.
9940 library_names_spec='${libname}${release}.a $libname.a'
9941 soname_spec='${libname}${release}${shared_ext}$major'
9943 shlibpath_var=LIBPATH
9948 library_names_spec='$libname.ixlibrary $libname.a'
9949 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9950 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'
9954 library_names_spec='${libname}${shared_ext}'
9955 dynamic_linker="$host_os ld.so"
9956 shlibpath_var=LIBRARY_PATH
9962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9963 soname_spec='${libname}${release}${shared_ext}$major'
9964 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9965 shlibpath_var=LD_LIBRARY_PATH
9966 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9967 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9968 # the default ld.so.conf also contains /usr/contrib/lib and
9969 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9970 # libtool to hard-code these into programs
9973 cygwin* | mingw* | pw32*)
9974 version_type=windows
9979 case $GCC,$host_os in
9980 yes,cygwin* | yes,mingw* | yes,pw32*)
9981 library_names_spec='$libname.dll.a'
9982 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9983 postinstall_cmds='base_file=`basename \${file}`~
9984 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9985 dldir=$destdir/`dirname \$dlpath`~
9986 test -d \$dldir || mkdir -p \$dldir~
9987 $install_prog $dir/$dlname \$dldir/$dlname'
9988 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9989 dlpath=$dir/\$dldll~
9991 shlibpath_overrides_runpath=yes
9995 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9996 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9997 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10000 # MinGW DLLs use traditional 'lib' prefix
10001 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10002 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10003 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10004 # It is most probably a Windows format PATH printed by
10005 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10006 # path with ; separators, and with drive letters. We can handle the
10007 # drive letters (cygwin fileutils understands them), so leave them,
10008 # especially as we might pass files found there to a mingw objdump,
10009 # which wouldn't understand a cygwinified path. Ahh.
10010 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10012 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10016 # pw32 DLLs use 'pw' prefix rather than 'lib'
10017 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10023 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10026 dynamic_linker='Win32 ld.exe'
10027 # FIXME: first we should search . and the directory the executable is in
10031 darwin* | rhapsody*)
10032 dynamic_linker="$host_os dyld"
10033 version_type=darwin
10036 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10037 soname_spec='${libname}${release}${major}$shared_ext'
10038 shlibpath_overrides_runpath=yes
10039 shlibpath_var=DYLD_LIBRARY_PATH
10040 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
10041 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10042 if test "$GCC" = yes; then
10043 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"`
10045 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10047 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10055 soname_spec='${libname}${release}${shared_ext}$major'
10056 shlibpath_var=LD_LIBRARY_PATH
10067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10068 soname_spec='${libname}${release}${shared_ext}$major'
10069 shlibpath_var=LD_LIBRARY_PATH
10070 shlibpath_overrides_runpath=no
10071 hardcode_into_libs=yes
10072 dynamic_linker='GNU ld.so'
10075 freebsd* | dragonfly*)
10076 # DragonFly does not have aout. When/if they implement a new
10077 # versioning mechanism, adjust this.
10078 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10079 version_type=freebsd-$objformat
10080 case $version_type in
10082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10087 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10091 shlibpath_var=LD_LIBRARY_PATH
10094 shlibpath_overrides_runpath=yes
10096 freebsd3.[01]* | freebsdelf3.[01]*)
10097 shlibpath_overrides_runpath=yes
10098 hardcode_into_libs=yes
10101 shlibpath_overrides_runpath=no
10102 hardcode_into_libs=yes
10111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10112 soname_spec='${libname}${release}${shared_ext}$major'
10113 shlibpath_var=LD_LIBRARY_PATH
10114 hardcode_into_libs=yes
10117 hpux9* | hpux10* | hpux11*)
10118 # Give a soname corresponding to the major version so that dld.sl refuses to
10119 # link against other versions.
10123 case "$host_cpu" in
10126 hardcode_into_libs=yes
10127 dynamic_linker="$host_os dld.so"
10128 shlibpath_var=LD_LIBRARY_PATH
10129 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10131 soname_spec='${libname}${release}${shared_ext}$major'
10132 if test "X$HPUX_IA64_MODE" = X32; then
10133 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10135 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10137 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10141 hardcode_into_libs=yes
10142 dynamic_linker="$host_os dld.sl"
10143 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10144 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10146 soname_spec='${libname}${release}${shared_ext}$major'
10147 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10148 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10152 dynamic_linker="$host_os dld.sl"
10153 shlibpath_var=SHLIB_PATH
10154 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10156 soname_spec='${libname}${release}${shared_ext}$major'
10159 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10160 postinstall_cmds='chmod 555 $lib'
10163 irix5* | irix6* | nonstopux*)
10165 nonstopux*) version_type=nonstopux ;;
10167 if test "$lt_cv_prog_gnu_ld" = yes; then
10175 soname_spec='${libname}${release}${shared_ext}$major'
10176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10178 irix5* | nonstopux*)
10179 libsuff= shlibsuff=
10182 case $LD in # libtool.m4 will add one of these switches to LD
10183 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10184 libsuff= shlibsuff= libmagic=32-bit;;
10185 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10186 libsuff=32 shlibsuff=N32 libmagic=N32;;
10187 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10188 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10189 *) libsuff= shlibsuff= libmagic=never-match;;
10193 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10194 shlibpath_overrides_runpath=no
10195 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10196 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10197 hardcode_into_libs=yes
10200 # No shared lib support for Linux oldld, aout, or coff.
10201 linux*oldld* | linux*aout* | linux*coff*)
10205 # This must be Linux ELF.
10210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10211 soname_spec='${libname}${release}${shared_ext}$major'
10212 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10213 shlibpath_var=LD_LIBRARY_PATH
10214 shlibpath_overrides_runpath=no
10215 # This implies no fast_install, which is unacceptable.
10216 # Some rework will be needed to allow for fast_install
10217 # before this can be enabled.
10218 hardcode_into_libs=yes
10220 # Append ld.so.conf contents to the search path
10221 if test -f /etc/ld.so.conf; then
10222 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' ' '`
10223 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10226 # We used to test for /lib/ld.so.1 and disable shared libraries on
10227 # powerpc, because MkLinux only supported shared libraries with the
10228 # GNU dynamic linker. Since this was broken with cross compilers,
10229 # most powerpc-linux boxes support dynamic linking these days and
10230 # people can always --disable-shared, the test was removed, and we
10231 # assume the GNU/Linux dynamic linker is in use.
10232 dynamic_linker='GNU/Linux ld.so'
10239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10240 soname_spec='${libname}${release}${shared_ext}$major'
10241 shlibpath_var=LD_LIBRARY_PATH
10242 shlibpath_overrides_runpath=no
10243 hardcode_into_libs=yes
10244 dynamic_linker='GNU ld.so'
10251 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10253 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10254 dynamic_linker='NetBSD (a.out) ld.so'
10256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10257 soname_spec='${libname}${release}${shared_ext}$major'
10258 dynamic_linker='NetBSD ld.elf_so'
10260 shlibpath_var=LD_LIBRARY_PATH
10261 shlibpath_overrides_runpath=yes
10262 hardcode_into_libs=yes
10267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10268 shlibpath_var=LD_LIBRARY_PATH
10269 shlibpath_overrides_runpath=yes
10276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10277 soname_spec='${libname}${release}${shared_ext}$major'
10278 shlibpath_var=LD_LIBRARY_PATH
10279 shlibpath_overrides_runpath=yes
10285 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10287 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10288 *) need_version=no ;;
10290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10291 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10292 shlibpath_var=LD_LIBRARY_PATH
10293 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10295 openbsd2.[89] | openbsd2.[89].*)
10296 shlibpath_overrides_runpath=no
10299 shlibpath_overrides_runpath=yes
10303 shlibpath_overrides_runpath=yes
10308 libname_spec='$name'
10311 library_names_spec='$libname${shared_ext} $libname.a'
10312 dynamic_linker='OS/2 ld.exe'
10313 shlibpath_var=LIBPATH
10316 osf3* | osf4* | osf5*)
10320 soname_spec='${libname}${release}${shared_ext}$major'
10321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10322 shlibpath_var=LD_LIBRARY_PATH
10323 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10324 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10329 soname_spec='${libname}${release}${shared_ext}$major'
10330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10331 shlibpath_var=LD_LIBRARY_PATH
10338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10339 soname_spec='${libname}${release}${shared_ext}$major'
10340 shlibpath_var=LD_LIBRARY_PATH
10341 shlibpath_overrides_runpath=yes
10342 hardcode_into_libs=yes
10343 # ldd complains unless libraries are executable
10344 postinstall_cmds='chmod +x $lib'
10349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10350 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10351 shlibpath_var=LD_LIBRARY_PATH
10352 shlibpath_overrides_runpath=yes
10353 if test "$with_gnu_ld" = yes; then
10359 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10362 soname_spec='${libname}${release}${shared_ext}$major'
10363 shlibpath_var=LD_LIBRARY_PATH
10364 case $host_vendor in
10366 shlibpath_overrides_runpath=no
10368 export_dynamic_flag_spec='${wl}-Blargedynsym'
10369 runpath_var=LD_RUN_PATH
10377 shlibpath_overrides_runpath=no
10378 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10384 if test -d /usr/nec ;then
10386 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10387 soname_spec='$libname${shared_ext}.$major'
10388 shlibpath_var=LD_LIBRARY_PATH
10394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10395 soname_spec='${libname}${release}${shared_ext}$major'
10396 shlibpath_var=LD_LIBRARY_PATH
10403 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10404 echo "${ECHO_T}$dynamic_linker" >&6
10405 test "$dynamic_linker" = no && can_build_shared=no
10407 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10408 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10410 if test -n "$hardcode_libdir_flag_spec" || \
10411 test -n "$runpath_var" || \
10412 test "X$hardcode_automatic" = "Xyes" ; then
10414 # We can hardcode non-existant directories.
10415 if test "$hardcode_direct" != no &&
10416 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10417 # have to relink, otherwise we might link with an installed library
10418 # when we should be linking with a yet-to-be-installed one
10419 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10420 test "$hardcode_minus_L" != no; then
10421 # Linking always hardcodes the temporary library directory.
10422 hardcode_action=relink
10424 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10425 hardcode_action=immediate
10428 # We cannot hardcode anything, or else we can only hardcode existing
10430 hardcode_action=unsupported
10432 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10433 echo "${ECHO_T}$hardcode_action" >&6
10435 if test "$hardcode_action" = relink; then
10436 # Fast installation is not supported
10437 enable_fast_install=no
10438 elif test "$shlibpath_overrides_runpath" = yes ||
10439 test "$enable_shared" = no; then
10440 # Fast installation is not necessary
10441 enable_fast_install=needless
10446 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10447 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10448 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10449 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10450 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10451 echo "$as_me:$LINENO: result: yes" >&5
10452 echo "${ECHO_T}yes" >&6
10454 # FIXME - insert some real tests, host_os isn't really good enough
10457 if test -n "$STRIP" ; then
10458 striplib="$STRIP -x"
10459 echo "$as_me:$LINENO: result: yes" >&5
10460 echo "${ECHO_T}yes" >&6
10462 echo "$as_me:$LINENO: result: no" >&5
10463 echo "${ECHO_T}no" >&6
10467 echo "$as_me:$LINENO: result: no" >&5
10468 echo "${ECHO_T}no" >&6
10473 if test "x$enable_dlopen" != xyes; then
10474 enable_dlopen=unknown
10475 enable_dlopen_self=unknown
10476 enable_dlopen_self_static=unknown
10483 lt_cv_dlopen="load_add_on"
10485 lt_cv_dlopen_self=yes
10489 lt_cv_dlopen="LoadLibrary"
10494 lt_cv_dlopen="dlopen"
10499 # if libdl is installed we need to link against it
10500 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10501 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10502 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10503 echo $ECHO_N "(cached) $ECHO_C" >&6
10505 ac_check_lib_save_LIBS=$LIBS
10507 cat >conftest.$ac_ext <<_ACEOF
10510 cat confdefs.h >>conftest.$ac_ext
10511 cat >>conftest.$ac_ext <<_ACEOF
10512 /* end confdefs.h. */
10514 /* Override any gcc2 internal prototype to avoid an error. */
10518 /* We use char because int might match the return type of a gcc2
10519 builtin and then its argument prototype would still apply. */
10529 rm -f conftest.$ac_objext conftest$ac_exeext
10530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10531 (eval $ac_link) 2>conftest.er1
10533 grep -v '^ *+' conftest.er1 >conftest.err
10535 cat conftest.err >&5
10536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10537 (exit $ac_status); } &&
10538 { ac_try='test -z "$ac_c_werror_flag"
10539 || test ! -s conftest.err'
10540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10541 (eval $ac_try) 2>&5
10543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); }; } &&
10545 { ac_try='test -s conftest$ac_exeext'
10546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10547 (eval $ac_try) 2>&5
10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); }; }; then
10551 ac_cv_lib_dl_dlopen=yes
10553 echo "$as_me: failed program was:" >&5
10554 sed 's/^/| /' conftest.$ac_ext >&5
10556 ac_cv_lib_dl_dlopen=no
10558 rm -f conftest.err conftest.$ac_objext \
10559 conftest$ac_exeext conftest.$ac_ext
10560 LIBS=$ac_check_lib_save_LIBS
10562 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10563 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10564 if test $ac_cv_lib_dl_dlopen = yes; then
10565 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10568 lt_cv_dlopen="dyld"
10570 lt_cv_dlopen_self=yes
10577 echo "$as_me:$LINENO: checking for shl_load" >&5
10578 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10579 if test "${ac_cv_func_shl_load+set}" = set; then
10580 echo $ECHO_N "(cached) $ECHO_C" >&6
10582 cat >conftest.$ac_ext <<_ACEOF
10585 cat confdefs.h >>conftest.$ac_ext
10586 cat >>conftest.$ac_ext <<_ACEOF
10587 /* end confdefs.h. */
10588 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10590 #define shl_load innocuous_shl_load
10592 /* System header to define __stub macros and hopefully few prototypes,
10593 which can conflict with char shl_load (); below.
10594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10595 <limits.h> exists even on freestanding compilers. */
10598 # include <limits.h>
10600 # include <assert.h>
10605 /* Override any gcc2 internal prototype to avoid an error. */
10610 /* We use char because int might match the return type of a gcc2
10611 builtin and then its argument prototype would still apply. */
10613 /* The GNU C library defines this for functions which it implements
10614 to always fail with ENOSYS. Some functions are actually named
10615 something starting with __ and the normal name is an alias. */
10616 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10619 char (*f) () = shl_load;
10628 return f != shl_load;
10633 rm -f conftest.$ac_objext conftest$ac_exeext
10634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10635 (eval $ac_link) 2>conftest.er1
10637 grep -v '^ *+' conftest.er1 >conftest.err
10639 cat conftest.err >&5
10640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641 (exit $ac_status); } &&
10642 { ac_try='test -z "$ac_c_werror_flag"
10643 || test ! -s conftest.err'
10644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10645 (eval $ac_try) 2>&5
10647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648 (exit $ac_status); }; } &&
10649 { ac_try='test -s conftest$ac_exeext'
10650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10651 (eval $ac_try) 2>&5
10653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); }; }; then
10655 ac_cv_func_shl_load=yes
10657 echo "$as_me: failed program was:" >&5
10658 sed 's/^/| /' conftest.$ac_ext >&5
10660 ac_cv_func_shl_load=no
10662 rm -f conftest.err conftest.$ac_objext \
10663 conftest$ac_exeext conftest.$ac_ext
10665 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10666 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10667 if test $ac_cv_func_shl_load = yes; then
10668 lt_cv_dlopen="shl_load"
10670 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10671 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10672 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10673 echo $ECHO_N "(cached) $ECHO_C" >&6
10675 ac_check_lib_save_LIBS=$LIBS
10677 cat >conftest.$ac_ext <<_ACEOF
10680 cat confdefs.h >>conftest.$ac_ext
10681 cat >>conftest.$ac_ext <<_ACEOF
10682 /* end confdefs.h. */
10684 /* Override any gcc2 internal prototype to avoid an error. */
10688 /* We use char because int might match the return type of a gcc2
10689 builtin and then its argument prototype would still apply. */
10699 rm -f conftest.$ac_objext conftest$ac_exeext
10700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10701 (eval $ac_link) 2>conftest.er1
10703 grep -v '^ *+' conftest.er1 >conftest.err
10705 cat conftest.err >&5
10706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707 (exit $ac_status); } &&
10708 { ac_try='test -z "$ac_c_werror_flag"
10709 || test ! -s conftest.err'
10710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10711 (eval $ac_try) 2>&5
10713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714 (exit $ac_status); }; } &&
10715 { ac_try='test -s conftest$ac_exeext'
10716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10717 (eval $ac_try) 2>&5
10719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720 (exit $ac_status); }; }; then
10721 ac_cv_lib_dld_shl_load=yes
10723 echo "$as_me: failed program was:" >&5
10724 sed 's/^/| /' conftest.$ac_ext >&5
10726 ac_cv_lib_dld_shl_load=no
10728 rm -f conftest.err conftest.$ac_objext \
10729 conftest$ac_exeext conftest.$ac_ext
10730 LIBS=$ac_check_lib_save_LIBS
10732 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10733 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10734 if test $ac_cv_lib_dld_shl_load = yes; then
10735 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10737 echo "$as_me:$LINENO: checking for dlopen" >&5
10738 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10739 if test "${ac_cv_func_dlopen+set}" = set; then
10740 echo $ECHO_N "(cached) $ECHO_C" >&6
10742 cat >conftest.$ac_ext <<_ACEOF
10745 cat confdefs.h >>conftest.$ac_ext
10746 cat >>conftest.$ac_ext <<_ACEOF
10747 /* end confdefs.h. */
10748 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10750 #define dlopen innocuous_dlopen
10752 /* System header to define __stub macros and hopefully few prototypes,
10753 which can conflict with char dlopen (); below.
10754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10755 <limits.h> exists even on freestanding compilers. */
10758 # include <limits.h>
10760 # include <assert.h>
10765 /* Override any gcc2 internal prototype to avoid an error. */
10770 /* We use char because int might match the return type of a gcc2
10771 builtin and then its argument prototype would still apply. */
10773 /* The GNU C library defines this for functions which it implements
10774 to always fail with ENOSYS. Some functions are actually named
10775 something starting with __ and the normal name is an alias. */
10776 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10779 char (*f) () = dlopen;
10788 return f != dlopen;
10793 rm -f conftest.$ac_objext conftest$ac_exeext
10794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10795 (eval $ac_link) 2>conftest.er1
10797 grep -v '^ *+' conftest.er1 >conftest.err
10799 cat conftest.err >&5
10800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801 (exit $ac_status); } &&
10802 { ac_try='test -z "$ac_c_werror_flag"
10803 || test ! -s conftest.err'
10804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10805 (eval $ac_try) 2>&5
10807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808 (exit $ac_status); }; } &&
10809 { ac_try='test -s conftest$ac_exeext'
10810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10811 (eval $ac_try) 2>&5
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); }; }; then
10815 ac_cv_func_dlopen=yes
10817 echo "$as_me: failed program was:" >&5
10818 sed 's/^/| /' conftest.$ac_ext >&5
10820 ac_cv_func_dlopen=no
10822 rm -f conftest.err conftest.$ac_objext \
10823 conftest$ac_exeext conftest.$ac_ext
10825 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10826 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10827 if test $ac_cv_func_dlopen = yes; then
10828 lt_cv_dlopen="dlopen"
10830 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10831 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10832 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10833 echo $ECHO_N "(cached) $ECHO_C" >&6
10835 ac_check_lib_save_LIBS=$LIBS
10837 cat >conftest.$ac_ext <<_ACEOF
10840 cat confdefs.h >>conftest.$ac_ext
10841 cat >>conftest.$ac_ext <<_ACEOF
10842 /* end confdefs.h. */
10844 /* Override any gcc2 internal prototype to avoid an error. */
10848 /* We use char because int might match the return type of a gcc2
10849 builtin and then its argument prototype would still apply. */
10859 rm -f conftest.$ac_objext conftest$ac_exeext
10860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10861 (eval $ac_link) 2>conftest.er1
10863 grep -v '^ *+' conftest.er1 >conftest.err
10865 cat conftest.err >&5
10866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867 (exit $ac_status); } &&
10868 { ac_try='test -z "$ac_c_werror_flag"
10869 || test ! -s conftest.err'
10870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10871 (eval $ac_try) 2>&5
10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874 (exit $ac_status); }; } &&
10875 { ac_try='test -s conftest$ac_exeext'
10876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10877 (eval $ac_try) 2>&5
10879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880 (exit $ac_status); }; }; then
10881 ac_cv_lib_dl_dlopen=yes
10883 echo "$as_me: failed program was:" >&5
10884 sed 's/^/| /' conftest.$ac_ext >&5
10886 ac_cv_lib_dl_dlopen=no
10888 rm -f conftest.err conftest.$ac_objext \
10889 conftest$ac_exeext conftest.$ac_ext
10890 LIBS=$ac_check_lib_save_LIBS
10892 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10893 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10894 if test $ac_cv_lib_dl_dlopen = yes; then
10895 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10897 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10898 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10899 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10900 echo $ECHO_N "(cached) $ECHO_C" >&6
10902 ac_check_lib_save_LIBS=$LIBS
10903 LIBS="-lsvld $LIBS"
10904 cat >conftest.$ac_ext <<_ACEOF
10907 cat confdefs.h >>conftest.$ac_ext
10908 cat >>conftest.$ac_ext <<_ACEOF
10909 /* end confdefs.h. */
10911 /* Override any gcc2 internal prototype to avoid an error. */
10915 /* We use char because int might match the return type of a gcc2
10916 builtin and then its argument prototype would still apply. */
10926 rm -f conftest.$ac_objext conftest$ac_exeext
10927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10928 (eval $ac_link) 2>conftest.er1
10930 grep -v '^ *+' conftest.er1 >conftest.err
10932 cat conftest.err >&5
10933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934 (exit $ac_status); } &&
10935 { ac_try='test -z "$ac_c_werror_flag"
10936 || test ! -s conftest.err'
10937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10938 (eval $ac_try) 2>&5
10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); }; } &&
10942 { ac_try='test -s conftest$ac_exeext'
10943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10944 (eval $ac_try) 2>&5
10946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947 (exit $ac_status); }; }; then
10948 ac_cv_lib_svld_dlopen=yes
10950 echo "$as_me: failed program was:" >&5
10951 sed 's/^/| /' conftest.$ac_ext >&5
10953 ac_cv_lib_svld_dlopen=no
10955 rm -f conftest.err conftest.$ac_objext \
10956 conftest$ac_exeext conftest.$ac_ext
10957 LIBS=$ac_check_lib_save_LIBS
10959 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10960 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10961 if test $ac_cv_lib_svld_dlopen = yes; then
10962 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10964 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10965 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10966 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10967 echo $ECHO_N "(cached) $ECHO_C" >&6
10969 ac_check_lib_save_LIBS=$LIBS
10971 cat >conftest.$ac_ext <<_ACEOF
10974 cat confdefs.h >>conftest.$ac_ext
10975 cat >>conftest.$ac_ext <<_ACEOF
10976 /* end confdefs.h. */
10978 /* Override any gcc2 internal prototype to avoid an error. */
10982 /* We use char because int might match the return type of a gcc2
10983 builtin and then its argument prototype would still apply. */
10993 rm -f conftest.$ac_objext conftest$ac_exeext
10994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10995 (eval $ac_link) 2>conftest.er1
10997 grep -v '^ *+' conftest.er1 >conftest.err
10999 cat conftest.err >&5
11000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001 (exit $ac_status); } &&
11002 { ac_try='test -z "$ac_c_werror_flag"
11003 || test ! -s conftest.err'
11004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11005 (eval $ac_try) 2>&5
11007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008 (exit $ac_status); }; } &&
11009 { ac_try='test -s conftest$ac_exeext'
11010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11011 (eval $ac_try) 2>&5
11013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014 (exit $ac_status); }; }; then
11015 ac_cv_lib_dld_dld_link=yes
11017 echo "$as_me: failed program was:" >&5
11018 sed 's/^/| /' conftest.$ac_ext >&5
11020 ac_cv_lib_dld_dld_link=no
11022 rm -f conftest.err conftest.$ac_objext \
11023 conftest$ac_exeext conftest.$ac_ext
11024 LIBS=$ac_check_lib_save_LIBS
11026 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11027 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11028 if test $ac_cv_lib_dld_dld_link = yes; then
11029 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11050 if test "x$lt_cv_dlopen" != xno; then
11056 case $lt_cv_dlopen in
11058 save_CPPFLAGS="$CPPFLAGS"
11059 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11061 save_LDFLAGS="$LDFLAGS"
11062 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11065 LIBS="$lt_cv_dlopen_libs $LIBS"
11067 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11068 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11069 if test "${lt_cv_dlopen_self+set}" = set; then
11070 echo $ECHO_N "(cached) $ECHO_C" >&6
11072 if test "$cross_compiling" = yes; then :
11073 lt_cv_dlopen_self=cross
11075 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11076 lt_status=$lt_dlunknown
11077 cat > conftest.$ac_ext <<EOF
11078 #line 11078 "configure"
11079 #include "confdefs.h"
11088 # define LT_DLGLOBAL RTLD_GLOBAL
11091 # define LT_DLGLOBAL DL_GLOBAL
11093 # define LT_DLGLOBAL 0
11097 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11098 find out it does not work in some platform. */
11099 #ifndef LT_DLLAZY_OR_NOW
11101 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11104 # define LT_DLLAZY_OR_NOW DL_LAZY
11107 # define LT_DLLAZY_OR_NOW RTLD_NOW
11110 # define LT_DLLAZY_OR_NOW DL_NOW
11112 # define LT_DLLAZY_OR_NOW 0
11120 extern "C" void exit (int);
11123 void fnord() { int i=42;}
11126 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11127 int status = $lt_dlunknown;
11131 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11132 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11133 /* dlclose (self); */
11139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11140 (eval $ac_link) 2>&5
11142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11144 (./conftest; exit; ) 2>/dev/null
11146 case x$lt_status in
11147 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11148 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11149 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11152 # compilation failed
11153 lt_cv_dlopen_self=no
11160 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11161 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11163 if test "x$lt_cv_dlopen_self" = xyes; then
11164 LDFLAGS="$LDFLAGS $link_static_flag"
11165 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11166 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11167 if test "${lt_cv_dlopen_self_static+set}" = set; then
11168 echo $ECHO_N "(cached) $ECHO_C" >&6
11170 if test "$cross_compiling" = yes; then :
11171 lt_cv_dlopen_self_static=cross
11173 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11174 lt_status=$lt_dlunknown
11175 cat > conftest.$ac_ext <<EOF
11176 #line 11176 "configure"
11177 #include "confdefs.h"
11186 # define LT_DLGLOBAL RTLD_GLOBAL
11189 # define LT_DLGLOBAL DL_GLOBAL
11191 # define LT_DLGLOBAL 0
11195 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11196 find out it does not work in some platform. */
11197 #ifndef LT_DLLAZY_OR_NOW
11199 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11202 # define LT_DLLAZY_OR_NOW DL_LAZY
11205 # define LT_DLLAZY_OR_NOW RTLD_NOW
11208 # define LT_DLLAZY_OR_NOW DL_NOW
11210 # define LT_DLLAZY_OR_NOW 0
11218 extern "C" void exit (int);
11221 void fnord() { int i=42;}
11224 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11225 int status = $lt_dlunknown;
11229 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11230 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11231 /* dlclose (self); */
11237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11238 (eval $ac_link) 2>&5
11240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11242 (./conftest; exit; ) 2>/dev/null
11244 case x$lt_status in
11245 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11246 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11247 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11250 # compilation failed
11251 lt_cv_dlopen_self_static=no
11258 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11259 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11262 CPPFLAGS="$save_CPPFLAGS"
11263 LDFLAGS="$save_LDFLAGS"
11268 case $lt_cv_dlopen_self in
11269 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11270 *) enable_dlopen_self=unknown ;;
11273 case $lt_cv_dlopen_self_static in
11274 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11275 *) enable_dlopen_self_static=unknown ;;
11280 # Report which librarie types wil actually be built
11281 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11282 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11283 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11284 echo "${ECHO_T}$can_build_shared" >&6
11286 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11287 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11288 test "$can_build_shared" = "no" && enable_shared=no
11290 # On AIX, shared libraries and static libraries use the same namespace, and
11291 # are all built from PIC.
11294 test "$enable_shared" = yes && enable_static=no
11295 if test -n "$RANLIB"; then
11296 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11297 postinstall_cmds='$RANLIB $lib'
11302 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11303 test "$enable_shared" = yes && enable_static=no
11307 echo "$as_me:$LINENO: result: $enable_shared" >&5
11308 echo "${ECHO_T}$enable_shared" >&6
11310 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11311 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11312 # Make sure either enable_shared or enable_static is yes.
11313 test "$enable_shared" = yes || enable_static=yes
11314 echo "$as_me:$LINENO: result: $enable_static" >&5
11315 echo "${ECHO_T}$enable_static" >&6
11317 # The else clause should only fire when bootstrapping the
11318 # libtool distribution, otherwise you forgot to ship ltmain.sh
11319 # with your package, and you will get complaints that there are
11320 # no rules to generate ltmain.sh.
11321 if test -f "$ltmain"; then
11322 # See if we are running on zsh, and set the options which allow our commands through
11323 # without removal of \ escapes.
11324 if test -n "${ZSH_VERSION+set}" ; then
11325 setopt NO_GLOB_SUBST
11327 # Now quote all the things that may contain metacharacters while being
11328 # careful not to overquote the AC_SUBSTed values. We take copies of the
11329 # variables and quote the copies for generation of the libtool script.
11330 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11332 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11333 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11334 deplibs_check_method reload_flag reload_cmds need_locks \
11335 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11336 lt_cv_sys_global_symbol_to_c_name_address \
11337 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11338 old_postinstall_cmds old_postuninstall_cmds \
11342 lt_prog_compiler_wl \
11343 lt_prog_compiler_pic \
11344 lt_prog_compiler_static \
11345 lt_prog_compiler_no_builtin_flag \
11346 export_dynamic_flag_spec \
11347 thread_safe_flag_spec \
11348 whole_archive_flag_spec \
11349 enable_shared_with_static_runtimes \
11351 old_archive_from_new_cmds \
11356 compiler_lib_search_path \
11358 archive_expsym_cmds \
11360 postuninstall_cmds \
11361 old_archive_from_expsyms_cmds \
11362 allow_undefined_flag \
11363 no_undefined_flag \
11364 export_symbols_cmds \
11365 hardcode_libdir_flag_spec \
11366 hardcode_libdir_flag_spec_ld \
11367 hardcode_libdir_separator \
11368 hardcode_automatic \
11370 module_expsym_cmds \
11371 lt_cv_prog_compiler_c_o \
11373 include_expsyms; do
11376 old_archive_cmds | \
11377 old_archive_from_new_cmds | \
11379 archive_expsym_cmds | \
11381 module_expsym_cmds | \
11382 old_archive_from_expsyms_cmds | \
11383 export_symbols_cmds | \
11384 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11385 postinstall_cmds | postuninstall_cmds | \
11386 old_postinstall_cmds | old_postuninstall_cmds | \
11387 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11388 # Double-quote double-evaled strings.
11389 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11392 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11398 *'\$0 --fallback-echo"')
11399 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11403 cfgfile="${ofile}T"
11404 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11406 { echo "$as_me:$LINENO: creating $ofile" >&5
11407 echo "$as_me: creating $ofile" >&6;}
11409 cat <<__EOF__ >> "$cfgfile"
11412 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11413 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11414 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11416 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11417 # Free Software Foundation, Inc.
11419 # This file is part of GNU Libtool:
11420 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11422 # This program is free software; you can redistribute it and/or modify
11423 # it under the terms of the GNU General Public License as published by
11424 # the Free Software Foundation; either version 2 of the License, or
11425 # (at your option) any later version.
11427 # This program is distributed in the hope that it will be useful, but
11428 # WITHOUT ANY WARRANTY; without even the implied warranty of
11429 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11430 # General Public License for more details.
11432 # You should have received a copy of the GNU General Public License
11433 # along with this program; if not, write to the Free Software
11434 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11436 # As a special exception to the GNU General Public License, if you
11437 # distribute this file as part of a program that contains a
11438 # configuration script generated by Autoconf, you may include it under
11439 # the same distribution terms that you use for the rest of that program.
11441 # A sed program that does not truncate output.
11444 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11445 Xsed="$SED -e 1s/^X//"
11447 # The HP-UX ksh and POSIX shell print the target directory to stdout
11448 # if CDPATH is set.
11449 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11451 # The names of the tagged configurations supported by this script.
11454 # ### BEGIN LIBTOOL CONFIG
11456 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11458 # Shell to use when invoking shell scripts.
11461 # Whether or not to build shared libraries.
11462 build_libtool_libs=$enable_shared
11464 # Whether or not to build static libraries.
11465 build_old_libs=$enable_static
11467 # Whether or not to add -lc for building shared libraries.
11468 build_libtool_need_lc=$archive_cmds_need_lc
11470 # Whether or not to disallow shared libs when runtime libs are static
11471 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11473 # Whether or not to optimize for fast installation.
11474 fast_install=$enable_fast_install
11477 host_alias=$host_alias
11481 # The build system.
11482 build_alias=$build_alias
11486 # An echo program that does not interpret backslashes.
11491 AR_FLAGS=$lt_AR_FLAGS
11496 # A language-specific compiler.
11499 # Is the compiler the GNU C compiler?
11505 # The linker used to build libraries.
11508 # Whether we need hard or soft links.
11511 # A BSD-compatible nm program.
11514 # A symbol stripping program
11517 # Used to examine libraries when file_magic_cmd begins "file"
11518 MAGIC_CMD=$MAGIC_CMD
11520 # Used on cygwin: DLL creation program.
11523 # Used on cygwin: object dumper.
11526 # Used on cygwin: assembler.
11529 # The name of the directory that contains temporary libtool files.
11532 # How to create reloadable object files.
11533 reload_flag=$lt_reload_flag
11534 reload_cmds=$lt_reload_cmds
11536 # How to pass a linker flag through the compiler.
11537 wl=$lt_lt_prog_compiler_wl
11539 # Object file suffix (normally "o").
11540 objext="$ac_objext"
11542 # Old archive suffix (normally "a").
11545 # Shared library suffix (normally ".so").
11546 shrext_cmds='$shrext_cmds'
11548 # Executable file suffix (normally "").
11551 # Additional compiler flags for building library objects.
11552 pic_flag=$lt_lt_prog_compiler_pic
11555 # What is the maximum length of a command?
11556 max_cmd_len=$lt_cv_sys_max_cmd_len
11558 # Does compiler simultaneously support -c and -o options?
11559 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11561 # Must we lock files when doing compilation?
11562 need_locks=$lt_need_locks
11564 # Do we need the lib prefix for modules?
11565 need_lib_prefix=$need_lib_prefix
11567 # Do we need a version for libraries?
11568 need_version=$need_version
11570 # Whether dlopen is supported.
11571 dlopen_support=$enable_dlopen
11573 # Whether dlopen of programs is supported.
11574 dlopen_self=$enable_dlopen_self
11576 # Whether dlopen of statically linked programs is supported.
11577 dlopen_self_static=$enable_dlopen_self_static
11579 # Compiler flag to prevent dynamic linking.
11580 link_static_flag=$lt_lt_prog_compiler_static
11582 # Compiler flag to turn off builtin functions.
11583 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11585 # Compiler flag to allow reflexive dlopens.
11586 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11588 # Compiler flag to generate shared objects directly from archives.
11589 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11591 # Compiler flag to generate thread-safe objects.
11592 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11594 # Library versioning type.
11595 version_type=$version_type
11597 # Format of library name prefix.
11598 libname_spec=$lt_libname_spec
11600 # List of archive names. First name is the real one, the rest are links.
11601 # The last name is the one that the linker finds with -lNAME.
11602 library_names_spec=$lt_library_names_spec
11604 # The coded name of the library, if different from the real name.
11605 soname_spec=$lt_soname_spec
11607 # Commands used to build and install an old-style archive.
11609 old_archive_cmds=$lt_old_archive_cmds
11610 old_postinstall_cmds=$lt_old_postinstall_cmds
11611 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11613 # Create an old-style archive from a shared archive.
11614 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11616 # Create a temporary old-style archive to link instead of a shared archive.
11617 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11619 # Commands used to build and install a shared archive.
11620 archive_cmds=$lt_archive_cmds
11621 archive_expsym_cmds=$lt_archive_expsym_cmds
11622 postinstall_cmds=$lt_postinstall_cmds
11623 postuninstall_cmds=$lt_postuninstall_cmds
11625 # Commands used to build a loadable module (assumed same as above if empty)
11626 module_cmds=$lt_module_cmds
11627 module_expsym_cmds=$lt_module_expsym_cmds
11629 # Commands to strip libraries.
11630 old_striplib=$lt_old_striplib
11631 striplib=$lt_striplib
11633 # Dependencies to place before the objects being linked to create a
11635 predep_objects=$lt_predep_objects
11637 # Dependencies to place after the objects being linked to create a
11639 postdep_objects=$lt_postdep_objects
11641 # Dependencies to place before the objects being linked to create a
11643 predeps=$lt_predeps
11645 # Dependencies to place after the objects being linked to create a
11647 postdeps=$lt_postdeps
11649 # The library search path used internally by the compiler when linking
11650 # a shared library.
11651 compiler_lib_search_path=$lt_compiler_lib_search_path
11653 # Method to check whether dependent libraries are shared objects.
11654 deplibs_check_method=$lt_deplibs_check_method
11656 # Command to use when deplibs_check_method == file_magic.
11657 file_magic_cmd=$lt_file_magic_cmd
11659 # Flag that allows shared libraries with undefined symbols to be built.
11660 allow_undefined_flag=$lt_allow_undefined_flag
11662 # Flag that forces no undefined symbols.
11663 no_undefined_flag=$lt_no_undefined_flag
11665 # Commands used to finish a libtool library installation in a directory.
11666 finish_cmds=$lt_finish_cmds
11668 # Same as above, but a single script fragment to be evaled but not shown.
11669 finish_eval=$lt_finish_eval
11671 # Take the output of nm and produce a listing of raw symbols and C names.
11672 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11674 # Transform the output of nm in a proper C declaration
11675 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11677 # Transform the output of nm in a C name address pair
11678 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11680 # This is the shared library runtime path variable.
11681 runpath_var=$runpath_var
11683 # This is the shared library path variable.
11684 shlibpath_var=$shlibpath_var
11686 # Is shlibpath searched before the hard-coded library search path?
11687 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11689 # How to hardcode a shared library path into an executable.
11690 hardcode_action=$hardcode_action
11692 # Whether we should hardcode library paths into libraries.
11693 hardcode_into_libs=$hardcode_into_libs
11695 # Flag to hardcode \$libdir into a binary during linking.
11696 # This must work even if \$libdir does not exist.
11697 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11699 # If ld is used when linking, flag to hardcode \$libdir into
11700 # a binary during linking. This must work even if \$libdir does
11702 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11704 # Whether we need a single -rpath flag with a separated argument.
11705 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11707 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11708 # resulting binary.
11709 hardcode_direct=$hardcode_direct
11711 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11712 # resulting binary.
11713 hardcode_minus_L=$hardcode_minus_L
11715 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11716 # the resulting binary.
11717 hardcode_shlibpath_var=$hardcode_shlibpath_var
11719 # Set to yes if building a shared library automatically hardcodes DIR into the library
11720 # and all subsequent libraries and executables linked against it.
11721 hardcode_automatic=$hardcode_automatic
11723 # Variables whose values should be saved in libtool wrapper scripts and
11724 # restored at relink time.
11725 variables_saved_for_relink="$variables_saved_for_relink"
11727 # Whether libtool must link a program against all its dependency libraries.
11728 link_all_deplibs=$link_all_deplibs
11730 # Compile-time system search path for libraries
11731 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11733 # Run-time system search path for libraries
11734 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11736 # Fix the shell variable \$srcfile for the compiler.
11737 fix_srcfile_path="$fix_srcfile_path"
11739 # Set to yes if exported symbols are required.
11740 always_export_symbols=$always_export_symbols
11742 # The commands to list exported symbols.
11743 export_symbols_cmds=$lt_export_symbols_cmds
11745 # The commands to extract the exported symbol list from a shared archive.
11746 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11748 # Symbols that should not be listed in the preloaded symbols.
11749 exclude_expsyms=$lt_exclude_expsyms
11751 # Symbols that must always be exported.
11752 include_expsyms=$lt_include_expsyms
11754 # ### END LIBTOOL CONFIG
11761 cat <<\EOF >> "$cfgfile"
11763 # AIX sometimes has problems with the GCC collect2 program. For some
11764 # reason, if we set the COLLECT_NAMES environment variable, the problems
11765 # vanish in a puff of smoke.
11766 if test "X${COLLECT_NAMES+set}" != Xset; then
11768 export COLLECT_NAMES
11774 # We use sed instead of cat because bash on DJGPP gets confused if
11775 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11776 # text mode, it properly converts lines to CR/LF. This bash problem
11777 # is reportedly fixed, but why not run on old versions too?
11778 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11780 mv -f "$cfgfile" "$ofile" || \
11781 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11785 # If there is no Makefile yet, we rely on a make rule to execute
11786 # `config.status --recheck' to rerun these tests and create the
11787 # libtool script then.
11788 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11789 if test -f "$ltmain_in"; then
11790 test -f Makefile && make "$ltmain"
11796 ac_cpp='$CPP $CPPFLAGS'
11797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11804 # Check whether --with-tags or --without-tags was given.
11805 if test "${with_tags+set}" = set; then
11806 withval="$with_tags"
11807 tagnames="$withval"
11810 if test -f "$ltmain" && test -n "$tagnames"; then
11811 if test ! -f "${ofile}"; then
11812 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11813 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11816 if test -z "$LTCC"; then
11817 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11818 if test -z "$LTCC"; then
11819 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11820 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11822 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11823 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11827 # Extract list of available tagged configurations in $ofile.
11828 # Note that this assumes the entire list is on one line.
11829 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11831 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11832 for tagname in $tagnames; do
11834 # Check whether tagname contains only valid characters
11835 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11837 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11838 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11839 { (exit 1); exit 1; }; }
11843 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11845 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11846 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11847 { (exit 1); exit 1; }; }
11850 # Update the list of available tags.
11851 if test -n "$tagname"; then
11852 echo appending configuration tag \"$tagname\" to $ofile
11856 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11857 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11858 (test "X$CXX" != "Xg++"))) ; then
11860 ac_cpp='$CXXCPP $CPPFLAGS'
11861 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11862 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11863 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11868 archive_cmds_need_lc_CXX=no
11869 allow_undefined_flag_CXX=
11870 always_export_symbols_CXX=no
11871 archive_expsym_cmds_CXX=
11872 export_dynamic_flag_spec_CXX=
11873 hardcode_direct_CXX=no
11874 hardcode_libdir_flag_spec_CXX=
11875 hardcode_libdir_flag_spec_ld_CXX=
11876 hardcode_libdir_separator_CXX=
11877 hardcode_minus_L_CXX=no
11878 hardcode_automatic_CXX=no
11880 module_expsym_cmds_CXX=
11881 link_all_deplibs_CXX=unknown
11882 old_archive_cmds_CXX=$old_archive_cmds
11883 no_undefined_flag_CXX=
11884 whole_archive_flag_spec_CXX=
11885 enable_shared_with_static_runtimes_CXX=no
11887 # Dependencies to place before and after the object being linked:
11888 predep_objects_CXX=
11889 postdep_objects_CXX=
11892 compiler_lib_search_path_CXX=
11894 # Source file extension for C++ test sources.
11897 # Object file extension for compiled C++ test sources.
11901 # Code to be used in simple compile tests
11902 lt_simple_compile_test_code="int some_variable = 0;\n"
11904 # Code to be used in simple link tests
11905 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
11907 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11909 # If no C compiler was specified, use CC.
11912 # Allow CC to be a program name with arguments.
11916 # save warnings/boilerplate of simple test code
11917 ac_outfile=conftest.$ac_objext
11918 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11919 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11920 _lt_compiler_boilerplate=`cat conftest.err`
11923 ac_outfile=conftest.$ac_objext
11924 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11925 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11926 _lt_linker_boilerplate=`cat conftest.err`
11930 # Allow CC to be a program name with arguments.
11935 lt_save_with_gnu_ld=$with_gnu_ld
11936 lt_save_path_LD=$lt_cv_path_LD
11937 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11938 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11940 unset lt_cv_prog_gnu_ld
11942 if test -n "${lt_cv_path_LDCXX+set}"; then
11943 lt_cv_path_LD=$lt_cv_path_LDCXX
11945 unset lt_cv_path_LD
11947 test -z "${LDCXX+set}" || LD=$LDCXX
11951 for cc_temp in $compiler""; do
11953 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11954 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11959 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11962 # We don't want -fno-exception wen compiling C++ code, so set the
11963 # no_builtin_flag separately
11964 if test "$GXX" = yes; then
11965 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11967 lt_prog_compiler_no_builtin_flag_CXX=
11970 if test "$GXX" = yes; then
11971 # Set up default GNU C++ configuration
11974 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11975 if test "${with_gnu_ld+set}" = set; then
11976 withval="$with_gnu_ld"
11977 test "$withval" = no || with_gnu_ld=yes
11982 if test "$GCC" = yes; then
11983 # Check if gcc -print-prog-name=ld gives a path.
11984 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11985 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11988 # gcc leaves a trailing carriage return which upsets mingw
11989 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11991 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11994 # Accept absolute paths.
11996 re_direlt='/[^/][^/]*/\.\./'
11997 # Canonicalize the pathname of ld
11998 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11999 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12000 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12002 test -z "$LD" && LD="$ac_prog"
12005 # If it fails, then pretend we aren't using GCC.
12009 # If it is relative, then search for the first ld in PATH.
12010 with_gnu_ld=unknown
12013 elif test "$with_gnu_ld" = yes; then
12014 echo "$as_me:$LINENO: checking for GNU ld" >&5
12015 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
12017 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12018 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
12020 if test "${lt_cv_path_LD+set}" = set; then
12021 echo $ECHO_N "(cached) $ECHO_C" >&6
12023 if test -z "$LD"; then
12024 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12025 for ac_dir in $PATH; do
12027 test -z "$ac_dir" && ac_dir=.
12028 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12029 lt_cv_path_LD="$ac_dir/$ac_prog"
12030 # Check to see if the program is GNU ld. I'd rather use --version,
12031 # but apparently some GNU ld's only accept -v.
12032 # Break only if it was the GNU/non-GNU ld that we prefer.
12033 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12034 *GNU* | *'with BFD'*)
12035 test "$with_gnu_ld" != no && break
12038 test "$with_gnu_ld" != yes && break
12045 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12049 LD="$lt_cv_path_LD"
12050 if test -n "$LD"; then
12051 echo "$as_me:$LINENO: result: $LD" >&5
12052 echo "${ECHO_T}$LD" >&6
12054 echo "$as_me:$LINENO: result: no" >&5
12055 echo "${ECHO_T}no" >&6
12057 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12058 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12059 { (exit 1); exit 1; }; }
12060 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12061 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12062 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12063 echo $ECHO_N "(cached) $ECHO_C" >&6
12065 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12066 case `$LD -v 2>&1 </dev/null` in
12067 *GNU* | *'with BFD'*)
12068 lt_cv_prog_gnu_ld=yes
12071 lt_cv_prog_gnu_ld=no
12075 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12076 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12077 with_gnu_ld=$lt_cv_prog_gnu_ld
12081 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12082 # archiving commands below assume that GNU ld is being used.
12083 if test "$with_gnu_ld" = yes; then
12084 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12085 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'
12087 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12088 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12090 # If archive_cmds runs LD, not CC, wlarc should be empty
12091 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12092 # investigate it a little bit more. (MM)
12095 # ancient GNU ld didn't support --whole-archive et. al.
12096 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12097 grep 'no-whole-archive' > /dev/null; then
12098 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12100 whole_archive_flag_spec_CXX=
12106 # A generic and very simple default shared library creation
12107 # command for GNU C++ for the case where it uses the native
12108 # linker, instead of GNU ld. If possible, this setting should
12109 # overridden to take advantage of the native linker features on
12110 # the platform it is being used on.
12111 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12114 # Commands to make compiler produce verbose output that lists
12115 # what "hidden" libraries, object files and flags are used when
12116 # linking a shared library.
12117 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12125 # PORTME: fill in a description of your system's C++ link characteristics
12126 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12127 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12131 # FIXME: insert proper C++ library support
12135 if test "$host_cpu" = ia64; then
12136 # On IA64, the linker does run time linking by default, so we don't
12137 # have to do anything special.
12138 aix_use_runtimelinking=no
12139 exp_sym_flag='-Bexport'
12142 aix_use_runtimelinking=no
12144 # Test if we are trying to use run time linking or normal
12145 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12146 # need to do runtime linking.
12147 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12148 for ld_flag in $LDFLAGS; do
12151 aix_use_runtimelinking=yes
12158 exp_sym_flag='-bexport'
12159 no_entry_flag='-bnoentry'
12162 # When large executables or shared objects are built, AIX ld can
12163 # have problems creating the table of contents. If linking a library
12164 # or program results in "error TOC overflow" add -mminimal-toc to
12165 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12166 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12168 archive_cmds_CXX=''
12169 hardcode_direct_CXX=yes
12170 hardcode_libdir_separator_CXX=':'
12171 link_all_deplibs_CXX=yes
12173 if test "$GXX" = yes; then
12174 case $host_os in aix4.[012]|aix4.[012].*)
12175 # We only want to do this on AIX 4.2 and lower, the check
12176 # below for broken collect2 doesn't work under 4.3+
12177 collect2name=`${CC} -print-prog-name=collect2`
12178 if test -f "$collect2name" && \
12179 strings "$collect2name" | grep resolve_lib_name >/dev/null
12181 # We have reworked collect2
12182 hardcode_direct_CXX=yes
12184 # We have old collect2
12185 hardcode_direct_CXX=unsupported
12186 # It fails to find uninstalled libraries when the uninstalled
12187 # path is not listed in the libpath. Setting hardcode_minus_L
12188 # to unsupported forces relinking
12189 hardcode_minus_L_CXX=yes
12190 hardcode_libdir_flag_spec_CXX='-L$libdir'
12191 hardcode_libdir_separator_CXX=
12194 shared_flag='-shared'
12195 if test "$aix_use_runtimelinking" = yes; then
12196 shared_flag="$shared_flag "'${wl}-G'
12200 if test "$host_cpu" = ia64; then
12201 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12202 # chokes on -Wl,-G. The following line is correct:
12205 if test "$aix_use_runtimelinking" = yes; then
12206 shared_flag='${wl}-G'
12208 shared_flag='${wl}-bM:SRE'
12213 # It seems that -bexpall does not export symbols beginning with
12214 # underscore (_), so it is better to generate a list of symbols to export.
12215 always_export_symbols_CXX=yes
12216 if test "$aix_use_runtimelinking" = yes; then
12217 # Warning - without using the other runtime loading flags (-brtl),
12218 # -berok will link without error, but may produce a broken library.
12219 allow_undefined_flag_CXX='-berok'
12220 # Determine the default libpath from the value encoded in an empty executable.
12221 cat >conftest.$ac_ext <<_ACEOF
12224 cat confdefs.h >>conftest.$ac_ext
12225 cat >>conftest.$ac_ext <<_ACEOF
12226 /* end confdefs.h. */
12236 rm -f conftest.$ac_objext conftest$ac_exeext
12237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12238 (eval $ac_link) 2>conftest.er1
12240 grep -v '^ *+' conftest.er1 >conftest.err
12242 cat conftest.err >&5
12243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244 (exit $ac_status); } &&
12245 { ac_try='test -z "$ac_cxx_werror_flag"
12246 || test ! -s conftest.err'
12247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12248 (eval $ac_try) 2>&5
12250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12251 (exit $ac_status); }; } &&
12252 { ac_try='test -s conftest$ac_exeext'
12253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12254 (eval $ac_try) 2>&5
12256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257 (exit $ac_status); }; }; then
12259 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12261 # Check for a 64-bit object if we didn't find anything.
12262 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; }
12265 echo "$as_me: failed program was:" >&5
12266 sed 's/^/| /' conftest.$ac_ext >&5
12269 rm -f conftest.err conftest.$ac_objext \
12270 conftest$ac_exeext conftest.$ac_ext
12271 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12273 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12275 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"
12277 if test "$host_cpu" = ia64; then
12278 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12279 allow_undefined_flag_CXX="-z nodefs"
12280 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"
12282 # Determine the default libpath from the value encoded in an empty executable.
12283 cat >conftest.$ac_ext <<_ACEOF
12286 cat confdefs.h >>conftest.$ac_ext
12287 cat >>conftest.$ac_ext <<_ACEOF
12288 /* end confdefs.h. */
12298 rm -f conftest.$ac_objext conftest$ac_exeext
12299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12300 (eval $ac_link) 2>conftest.er1
12302 grep -v '^ *+' conftest.er1 >conftest.err
12304 cat conftest.err >&5
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); } &&
12307 { ac_try='test -z "$ac_cxx_werror_flag"
12308 || test ! -s conftest.err'
12309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12310 (eval $ac_try) 2>&5
12312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313 (exit $ac_status); }; } &&
12314 { ac_try='test -s conftest$ac_exeext'
12315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12316 (eval $ac_try) 2>&5
12318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); }; }; then
12321 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12323 # Check for a 64-bit object if we didn't find anything.
12324 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; }
12327 echo "$as_me: failed program was:" >&5
12328 sed 's/^/| /' conftest.$ac_ext >&5
12331 rm -f conftest.err conftest.$ac_objext \
12332 conftest$ac_exeext conftest.$ac_ext
12333 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12335 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12336 # Warning - without using the other run time loading flags,
12337 # -berok will link without error, but may produce a broken library.
12338 no_undefined_flag_CXX=' ${wl}-bernotok'
12339 allow_undefined_flag_CXX=' ${wl}-berok'
12340 # -bexpall does not export symbols beginning with underscore (_)
12341 always_export_symbols_CXX=yes
12342 # Exported symbols can be pulled into shared objects from archives
12343 whole_archive_flag_spec_CXX=' '
12344 archive_cmds_need_lc_CXX=yes
12345 # This is similar to how AIX traditionally builds it's shared libraries.
12346 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'
12351 case $cc_basename in
12353 # FIXME: insert proper C++ library support
12360 cygwin* | mingw* | pw32*)
12361 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12362 # as there is no search path for DLLs.
12363 hardcode_libdir_flag_spec_CXX='-L$libdir'
12364 allow_undefined_flag_CXX=unsupported
12365 always_export_symbols_CXX=no
12366 enable_shared_with_static_runtimes_CXX=yes
12368 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12369 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'
12370 # If the export-symbols file already is a .def file (1st line
12371 # is EXPORTS), use it as is; otherwise, prepend...
12372 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12373 cp $export_symbols $output_objdir/$soname.def;
12375 echo EXPORTS > $output_objdir/$soname.def;
12376 cat $export_symbols >> $output_objdir/$soname.def;
12378 $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'
12383 darwin* | rhapsody*)
12385 rhapsody* | darwin1.[012])
12386 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12389 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12390 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12392 case ${MACOSX_DEPLOYMENT_TARGET} in
12394 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12397 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12403 archive_cmds_need_lc_CXX=no
12404 hardcode_direct_CXX=no
12405 hardcode_automatic_CXX=yes
12406 hardcode_shlibpath_var_CXX=unsupported
12407 whole_archive_flag_spec_CXX=''
12408 link_all_deplibs_CXX=yes
12410 if test "$GXX" = yes ; then
12411 lt_int_apple_cc_single_mod=no
12412 output_verbose_link_cmd='echo'
12413 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12414 lt_int_apple_cc_single_mod=yes
12416 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12417 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12419 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'
12421 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12422 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12423 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12424 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}'
12426 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}'
12428 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}'
12430 case $cc_basename in
12432 output_verbose_link_cmd='echo'
12433 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'
12434 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12435 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12436 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}'
12437 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}'
12447 case $cc_basename in
12449 # FIXME: insert proper C++ library support
12453 # Green Hills C++ Compiler
12454 # FIXME: insert proper C++ library support
12458 # FIXME: insert proper C++ library support
12464 # C++ shared libraries reported to be fairly broken before switch to ELF
12468 archive_cmds_need_lc_CXX=no
12470 freebsd* | kfreebsd*-gnu | dragonfly*)
12471 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12478 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12479 hardcode_libdir_separator_CXX=:
12480 export_dynamic_flag_spec_CXX='${wl}-E'
12481 hardcode_direct_CXX=yes
12482 hardcode_minus_L_CXX=yes # Not in the search PATH,
12483 # but as the default
12484 # location of the library.
12486 case $cc_basename in
12488 # FIXME: insert proper C++ library support
12492 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'
12493 # Commands to make compiler produce verbose output that lists
12494 # what "hidden" libraries, object files and flags are used when
12495 # linking a shared library.
12497 # There doesn't appear to be a way to prevent this compiler from
12498 # explicitly linking system object files so we need to strip them
12499 # from the output so that they don't get included in the library
12501 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'
12504 if test "$GXX" = yes; then
12505 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'
12507 # FIXME: insert proper C++ library support
12514 if test $with_gnu_ld = no; then
12515 case "$host_cpu" in
12517 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12518 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12519 hardcode_libdir_separator_CXX=:
12522 hardcode_libdir_flag_spec_CXX='-L$libdir'
12525 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12526 hardcode_libdir_separator_CXX=:
12527 export_dynamic_flag_spec_CXX='${wl}-E'
12531 case "$host_cpu" in
12533 hardcode_direct_CXX=no
12534 hardcode_shlibpath_var_CXX=no
12537 hardcode_direct_CXX=no
12538 hardcode_shlibpath_var_CXX=no
12539 hardcode_minus_L_CXX=yes # Not in the search PATH,
12540 # but as the default
12541 # location of the library.
12544 hardcode_direct_CXX=yes
12545 hardcode_minus_L_CXX=yes # Not in the search PATH,
12546 # but as the default
12547 # location of the library.
12551 case $cc_basename in
12553 # FIXME: insert proper C++ library support
12557 case "$host_cpu" in
12559 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12562 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12565 # Commands to make compiler produce verbose output that lists
12566 # what "hidden" libraries, object files and flags are used when
12567 # linking a shared library.
12569 # There doesn't appear to be a way to prevent this compiler from
12570 # explicitly linking system object files so we need to strip them
12571 # from the output so that they don't get included in the library
12573 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'
12576 if test "$GXX" = yes; then
12577 if test $with_gnu_ld = no; then
12578 case "$host_cpu" in
12580 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12583 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'
12588 # FIXME: insert proper C++ library support
12595 case $cc_basename in
12598 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'
12600 # Archives containing C++ object files must be created using
12601 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12602 # necessary to make sure instantiated templates are included
12604 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12607 if test "$GXX" = yes; then
12608 if test "$with_gnu_ld" = no; then
12609 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'
12611 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'
12614 link_all_deplibs_CXX=yes
12617 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12618 hardcode_libdir_separator_CXX=:
12621 case $cc_basename in
12623 # Kuck and Associates, Inc. (KAI) C++ Compiler
12625 # KCC will only create a shared library if the output file
12626 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12627 # to its proper name (with version) after linking.
12628 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'
12629 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'
12630 # Commands to make compiler produce verbose output that lists
12631 # what "hidden" libraries, object files and flags are used when
12632 # linking a shared library.
12634 # There doesn't appear to be a way to prevent this compiler from
12635 # explicitly linking system object files so we need to strip them
12636 # from the output so that they don't get included in the library
12638 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'
12640 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12641 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12643 # Archives containing C++ object files must be created using
12644 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12645 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12650 # version 8.0 and above of icpc choke on multiply defined symbols
12651 # if we add $predep_objects and $postdep_objects, however 7.1 and
12652 # earlier do not add the objects themselves.
12653 case `$CC -V 2>&1` in
12655 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12656 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'
12658 *) # Version 8.0 or newer
12661 ia64*) tmp_idyn=' -i_dynamic';;
12663 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12664 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'
12667 archive_cmds_need_lc_CXX=no
12668 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12669 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12670 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12673 # Portland Group C++ compiler
12674 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12675 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'
12677 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12678 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12679 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'
12683 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12684 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'
12686 runpath_var=LD_RUN_PATH
12687 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12688 hardcode_libdir_separator_CXX=:
12690 # Commands to make compiler produce verbose output that lists
12691 # what "hidden" libraries, object files and flags are used when
12692 # linking a shared library.
12694 # There doesn't appear to be a way to prevent this compiler from
12695 # explicitly linking system object files so we need to strip them
12696 # from the output so that they don't get included in the library
12698 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'
12703 # FIXME: insert proper C++ library support
12707 # FIXME: insert proper C++ library support
12711 case $cc_basename in
12713 # FIXME: insert proper C++ library support
12717 # FIXME: insert proper C++ library support
12723 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12724 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12726 hardcode_libdir_flag_spec_CXX='-R$libdir'
12727 hardcode_direct_CXX=yes
12728 hardcode_shlibpath_var_CXX=no
12730 # Workaround some broken pre-1.5 toolchains
12731 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12734 # C++ shared libraries are fairly broken
12738 hardcode_direct_CXX=yes
12739 hardcode_shlibpath_var_CXX=no
12740 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12741 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12742 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12743 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12744 export_dynamic_flag_spec_CXX='${wl}-E'
12745 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12747 output_verbose_link_cmd='echo'
12750 case $cc_basename in
12752 # Kuck and Associates, Inc. (KAI) C++ Compiler
12754 # KCC will only create a shared library if the output file
12755 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12756 # to its proper name (with version) after linking.
12757 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'
12759 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12760 hardcode_libdir_separator_CXX=:
12762 # Archives containing C++ object files must be created using
12763 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12764 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12768 # Rational C++ 2.4.1
12769 # FIXME: insert proper C++ library support
12773 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12774 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'
12776 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12777 hardcode_libdir_separator_CXX=:
12779 # Commands to make compiler produce verbose output that lists
12780 # what "hidden" libraries, object files and flags are used when
12781 # linking a shared library.
12783 # There doesn't appear to be a way to prevent this compiler from
12784 # explicitly linking system object files so we need to strip them
12785 # from the output so that they don't get included in the library
12787 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'
12790 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12791 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12792 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'
12794 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12795 hardcode_libdir_separator_CXX=:
12797 # Commands to make compiler produce verbose output that lists
12798 # what "hidden" libraries, object files and flags are used when
12799 # linking a shared library.
12800 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12803 # FIXME: insert proper C++ library support
12810 case $cc_basename in
12812 # Kuck and Associates, Inc. (KAI) C++ Compiler
12814 # KCC will only create a shared library if the output file
12815 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12816 # to its proper name (with version) after linking.
12817 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'
12819 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12820 hardcode_libdir_separator_CXX=:
12822 # Archives containing C++ object files must be created using
12823 # the KAI C++ compiler.
12824 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12827 # Rational C++ 2.4.1
12828 # FIXME: insert proper C++ library support
12832 allow_undefined_flag_CXX=' -expect_unresolved \*'
12833 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'
12834 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12835 echo "-hidden">> $lib.exp~
12836 $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~
12839 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12840 hardcode_libdir_separator_CXX=:
12842 # Commands to make compiler produce verbose output that lists
12843 # what "hidden" libraries, object files and flags are used when
12844 # linking a shared library.
12846 # There doesn't appear to be a way to prevent this compiler from
12847 # explicitly linking system object files so we need to strip them
12848 # from the output so that they don't get included in the library
12850 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'
12853 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12854 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12855 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'
12857 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12858 hardcode_libdir_separator_CXX=:
12860 # Commands to make compiler produce verbose output that lists
12861 # what "hidden" libraries, object files and flags are used when
12862 # linking a shared library.
12863 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12866 # FIXME: insert proper C++ library support
12873 # FIXME: insert proper C++ library support
12877 archive_cmds_need_lc_CXX=no
12878 case $cc_basename in
12880 # FIXME: insert proper C++ library support
12884 # FIXME: insert proper C++ library support
12890 case $cc_basename in
12893 # FIXME: insert proper C++ library support
12898 # FIXME: insert proper C++ library support
12902 # FIXME: insert proper C++ library support
12908 case $cc_basename in
12910 # Sun C++ 4.2, 5.x and Centerline C++
12911 no_undefined_flag_CXX=' -zdefs'
12912 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12913 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12914 $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'
12916 hardcode_libdir_flag_spec_CXX='-R$libdir'
12917 hardcode_shlibpath_var_CXX=no
12919 solaris2.[0-5] | solaris2.[0-5].*) ;;
12921 # The C++ compiler is used as linker so we must use $wl
12922 # flag to pass the commands to the underlying system
12923 # linker. We must also pass each convience library through
12924 # to the system linker between allextract/defaultextract.
12925 # The C++ compiler will combine linker options so we
12926 # cannot just pass the convience library names through
12928 # Supported since Solaris 2.6 (maybe 2.5.1?)
12929 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'
12932 link_all_deplibs_CXX=yes
12934 # Commands to make compiler produce verbose output that lists
12935 # what "hidden" libraries, object files and flags are used when
12936 # linking a shared library.
12938 # There doesn't appear to be a way to prevent this compiler from
12939 # explicitly linking system object files so we need to strip them
12940 # from the output so that they don't get included in the library
12942 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'
12944 # Archives containing C++ object files must be created using
12945 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12946 # necessary to make sure instantiated templates are included
12948 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12951 # Green Hills C++ Compiler
12952 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12954 # The C++ compiler must be used to create the archive.
12955 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12958 # GNU C++ compiler with Solaris linker
12959 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12960 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12961 if $CC --version | grep -v '^2\.7' > /dev/null; then
12962 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12963 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12964 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12966 # Commands to make compiler produce verbose output that lists
12967 # what "hidden" libraries, object files and flags are used when
12968 # linking a shared library.
12969 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12971 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12973 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12974 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12975 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12977 # Commands to make compiler produce verbose output that lists
12978 # what "hidden" libraries, object files and flags are used when
12979 # linking a shared library.
12980 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12983 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12988 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12989 archive_cmds_need_lc_CXX=no
12992 case $cc_basename in
12994 # NonStop-UX NCC 3.20
12995 # FIXME: insert proper C++ library support
12999 # FIXME: insert proper C++ library support
13005 # FIXME: insert proper C++ library support
13009 # FIXME: insert proper C++ library support
13013 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13014 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13015 test "$ld_shlibs_CXX" = no && can_build_shared=no
13021 cat > conftest.$ac_ext <<EOF
13025 Foo (void) { a = 0; }
13031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13032 (eval $ac_compile) 2>&5
13034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035 (exit $ac_status); }; then
13036 # Parse the compiler output and extract the necessary
13037 # objects, libraries and library flags.
13039 # Sentinel used to keep track of whether or not we are before
13040 # the conftest object file.
13041 pre_test_object_deps_done=no
13043 # The `*' in the case matches for architectures that use `case' in
13044 # $output_verbose_cmd can trigger glob expansion during the loop
13045 # eval without this substitution.
13046 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
13048 for p in `eval $output_verbose_link_cmd`; do
13052 # Some compilers place space between "-{L,R}" and the path.
13053 # Remove the space.
13054 if test $p = "-L" \
13055 || test $p = "-R"; then
13062 if test "$pre_test_object_deps_done" = no; then
13065 # Internal compiler library paths should come after those
13066 # provided the user. The postdeps already come after the
13067 # user supplied libs so there is no need to process them.
13068 if test -z "$compiler_lib_search_path_CXX"; then
13069 compiler_lib_search_path_CXX="${prev}${p}"
13071 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13074 # The "-l" case would never come before the object being
13075 # linked, so don't bother handling this case.
13078 if test -z "$postdeps_CXX"; then
13079 postdeps_CXX="${prev}${p}"
13081 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13087 # This assumes that the test object file only shows up
13088 # once in the compiler output.
13089 if test "$p" = "conftest.$objext"; then
13090 pre_test_object_deps_done=yes
13094 if test "$pre_test_object_deps_done" = no; then
13095 if test -z "$predep_objects_CXX"; then
13096 predep_objects_CXX="$p"
13098 predep_objects_CXX="$predep_objects_CXX $p"
13101 if test -z "$postdep_objects_CXX"; then
13102 postdep_objects_CXX="$p"
13104 postdep_objects_CXX="$postdep_objects_CXX $p"
13109 *) ;; # Ignore the rest.
13117 echo "libtool.m4: error: problem compiling CXX test program"
13120 $rm -f confest.$objext
13122 case " $postdeps_CXX " in
13123 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13126 lt_prog_compiler_wl_CXX=
13127 lt_prog_compiler_pic_CXX=
13128 lt_prog_compiler_static_CXX=
13130 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13131 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13133 # C++ specific cases for pic, static, wl, etc.
13134 if test "$GXX" = yes; then
13135 lt_prog_compiler_wl_CXX='-Wl,'
13136 lt_prog_compiler_static_CXX='-static'
13140 # All AIX code is PIC.
13141 if test "$host_cpu" = ia64; then
13142 # AIX 5 now supports IA64 processor
13143 lt_prog_compiler_static_CXX='-Bstatic'
13147 # FIXME: we need at least 68020 code to build shared libraries, but
13148 # adding the `-m68020' flag to GCC prevents building anything better,
13150 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13152 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13153 # PIC is the default for these OSes.
13155 mingw* | os2* | pw32*)
13156 # This hack is so that the source file can tell whether it is being
13157 # built for inclusion in a dll (and should export symbols for example).
13158 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13160 darwin* | rhapsody*)
13161 # PIC is the default on this platform
13162 # Common symbols not allowed in MH_DYLIB files
13163 lt_prog_compiler_pic_CXX='-fno-common'
13166 # DJGPP does not support shared libraries at all
13167 lt_prog_compiler_pic_CXX=
13170 if test -d /usr/nec; then
13171 lt_prog_compiler_pic_CXX=-Kconform_pic
13175 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13176 # not for PA HP-UX.
13177 case "$host_cpu" in
13181 lt_prog_compiler_pic_CXX='-fPIC'
13186 lt_prog_compiler_pic_CXX='-fPIC'
13192 # All AIX code is PIC.
13193 if test "$host_cpu" = ia64; then
13194 # AIX 5 now supports IA64 processor
13195 lt_prog_compiler_static_CXX='-Bstatic'
13197 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13201 case $cc_basename in
13203 # Green Hills C++ Compiler
13204 # _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"
13209 # PIC is the default on this platform
13210 # Common symbols not allowed in MH_DYLIB files
13211 case $cc_basename in
13213 lt_prog_compiler_pic_CXX='-qnocommon'
13214 lt_prog_compiler_wl_CXX='-Wl,'
13219 case $cc_basename in
13221 lt_prog_compiler_pic_CXX='-KPIC'
13224 # Green Hills C++ Compiler
13225 lt_prog_compiler_pic_CXX='-pic'
13231 freebsd* | kfreebsd*-gnu | dragonfly*)
13232 # FreeBSD uses GNU C++
13234 hpux9* | hpux10* | hpux11*)
13235 case $cc_basename in
13237 lt_prog_compiler_wl_CXX='-Wl,'
13238 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13239 if test "$host_cpu" != ia64; then
13240 lt_prog_compiler_pic_CXX='+Z'
13244 lt_prog_compiler_wl_CXX='-Wl,'
13245 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13246 case "$host_cpu" in
13251 lt_prog_compiler_pic_CXX='+Z'
13259 irix5* | irix6* | nonstopux*)
13260 case $cc_basename in
13262 lt_prog_compiler_wl_CXX='-Wl,'
13263 lt_prog_compiler_static_CXX='-non_shared'
13264 # CC pic flag -KPIC is the default.
13271 case $cc_basename in
13274 lt_prog_compiler_wl_CXX='--backend -Wl,'
13275 lt_prog_compiler_pic_CXX='-fPIC'
13279 lt_prog_compiler_wl_CXX='-Wl,'
13280 lt_prog_compiler_pic_CXX='-KPIC'
13281 lt_prog_compiler_static_CXX='-static'
13284 # Portland Group C++ compiler.
13285 lt_prog_compiler_wl_CXX='-Wl,'
13286 lt_prog_compiler_pic_CXX='-fpic'
13287 lt_prog_compiler_static_CXX='-static'
13291 # Make sure the PIC flag is empty. It appears that all Alpha
13292 # Linux and Compaq Tru64 Unix objects are PIC.
13293 lt_prog_compiler_pic_CXX=
13294 lt_prog_compiler_static_CXX='-non_shared'
13305 case $cc_basename in
13307 lt_prog_compiler_pic_CXX='-W c,exportall'
13315 osf3* | osf4* | osf5*)
13316 case $cc_basename in
13318 lt_prog_compiler_wl_CXX='--backend -Wl,'
13321 # Rational C++ 2.4.1
13322 lt_prog_compiler_pic_CXX='-pic'
13325 # Digital/Compaq C++
13326 lt_prog_compiler_wl_CXX='-Wl,'
13327 # Make sure the PIC flag is empty. It appears that all Alpha
13328 # Linux and Compaq Tru64 Unix objects are PIC.
13329 lt_prog_compiler_pic_CXX=
13330 lt_prog_compiler_static_CXX='-non_shared'
13339 case $cc_basename in
13341 lt_prog_compiler_pic_CXX='-fPIC'
13348 case $cc_basename in
13350 # Sun C++ 4.2, 5.x and Centerline C++
13351 lt_prog_compiler_pic_CXX='-KPIC'
13352 lt_prog_compiler_static_CXX='-Bstatic'
13353 lt_prog_compiler_wl_CXX='-Qoption ld '
13356 # Green Hills C++ Compiler
13357 lt_prog_compiler_pic_CXX='-PIC'
13364 case $cc_basename in
13367 lt_prog_compiler_pic_CXX='-pic'
13368 lt_prog_compiler_static_CXX='-Bstatic'
13372 lt_prog_compiler_pic_CXX='-pic'
13379 case $cc_basename in
13381 # NonStop-UX NCC 3.20
13382 lt_prog_compiler_pic_CXX='-KPIC'
13393 lt_prog_compiler_can_build_shared_CXX=no
13398 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13399 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13402 # Check to make sure the PIC flag actually works.
13404 if test -n "$lt_prog_compiler_pic_CXX"; then
13406 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13407 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13408 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13409 echo $ECHO_N "(cached) $ECHO_C" >&6
13411 lt_prog_compiler_pic_works_CXX=no
13412 ac_outfile=conftest.$ac_objext
13413 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13414 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13415 # Insert the option either (1) after the last *FLAGS variable, or
13416 # (2) before a word containing "conftest.", or (3) at the end.
13417 # Note that $ac_compile itself does not contain backslashes and begins
13418 # with a dollar sign (not a hyphen), so the echo should work correctly.
13419 # The option is referenced via a variable to avoid confusing sed.
13420 lt_compile=`echo "$ac_compile" | $SED \
13421 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13422 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13423 -e 's:$: $lt_compiler_flag:'`
13424 (eval echo "\"\$as_me:13424: $lt_compile\"" >&5)
13425 (eval "$lt_compile" 2>conftest.err)
13427 cat conftest.err >&5
13428 echo "$as_me:13428: \$? = $ac_status" >&5
13429 if (exit $ac_status) && test -s "$ac_outfile"; then
13430 # The compiler can only warn and ignore the option if not recognized
13431 # So say no if there are warnings other than the usual output.
13432 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13433 $SED '/^$/d' conftest.err >conftest.er2
13434 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13435 lt_prog_compiler_pic_works_CXX=yes
13441 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13442 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13444 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13445 case $lt_prog_compiler_pic_CXX in
13447 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13450 lt_prog_compiler_pic_CXX=
13451 lt_prog_compiler_can_build_shared_CXX=no
13456 # For platforms which do not support PIC, -DPIC is meaningless:
13458 lt_prog_compiler_pic_CXX=
13461 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13465 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13466 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13467 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13468 echo $ECHO_N "(cached) $ECHO_C" >&6
13470 lt_cv_prog_compiler_c_o_CXX=no
13471 $rm -r conftest 2>/dev/null
13475 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13477 lt_compiler_flag="-o out/conftest2.$ac_objext"
13478 # Insert the option either (1) after the last *FLAGS variable, or
13479 # (2) before a word containing "conftest.", or (3) at the end.
13480 # Note that $ac_compile itself does not contain backslashes and begins
13481 # with a dollar sign (not a hyphen), so the echo should work correctly.
13482 lt_compile=`echo "$ac_compile" | $SED \
13483 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13484 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13485 -e 's:$: $lt_compiler_flag:'`
13486 (eval echo "\"\$as_me:13486: $lt_compile\"" >&5)
13487 (eval "$lt_compile" 2>out/conftest.err)
13489 cat out/conftest.err >&5
13490 echo "$as_me:13490: \$? = $ac_status" >&5
13491 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13493 # The compiler can only warn and ignore the option if not recognized
13494 # So say no if there are warnings
13495 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13496 $SED '/^$/d' out/conftest.err >out/conftest.er2
13497 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13498 lt_cv_prog_compiler_c_o_CXX=yes
13503 # SGI C++ compiler will create directory out/ii_files/ for
13504 # template instantiation
13505 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13506 $rm out/* && rmdir out
13512 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13513 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13516 hard_links="nottested"
13517 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13518 # do not overwrite the value of need_locks provided by the user
13519 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13520 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13523 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13525 ln conftest.a conftest.b 2>&5 || hard_links=no
13526 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13527 echo "$as_me:$LINENO: result: $hard_links" >&5
13528 echo "${ECHO_T}$hard_links" >&6
13529 if test "$hard_links" = no; then
13530 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13531 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13538 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13539 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13541 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13544 # If we're using GNU nm, then we don't want the "-C" option.
13545 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13546 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13547 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'
13549 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'
13553 export_symbols_cmds_CXX="$ltdll_cmds"
13556 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'
13559 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13563 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13564 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13565 test "$ld_shlibs_CXX" = no && can_build_shared=no
13567 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13568 if test "$GCC" = yes; then
13569 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13573 # Do we need to explicitly link libc?
13575 case "x$archive_cmds_need_lc_CXX" in
13577 # Assume -lc should be added
13578 archive_cmds_need_lc_CXX=yes
13580 if test "$enable_shared" = yes && test "$GCC" = yes; then
13581 case $archive_cmds_CXX in
13583 # FIXME: we may have to deal with multi-command sequences.
13586 # Test whether the compiler implicitly links with -lc since on some
13587 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13588 # to ld, don't add -lc before -lgcc.
13589 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13590 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13592 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13595 (eval $ac_compile) 2>&5
13597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598 (exit $ac_status); } 2>conftest.err; then
13601 libobjs=conftest.$ac_objext
13603 wl=$lt_prog_compiler_wl_CXX
13609 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13610 allow_undefined_flag_CXX=
13611 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13612 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615 (exit $ac_status); }
13617 archive_cmds_need_lc_CXX=no
13619 archive_cmds_need_lc_CXX=yes
13621 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13623 cat conftest.err 1>&5
13626 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13627 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13634 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13635 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13636 library_names_spec=
13637 libname_spec='lib$name'
13641 postuninstall_cmds=
13645 shlibpath_overrides_runpath=unknown
13647 dynamic_linker="$host_os ld.so"
13648 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13649 if test "$GCC" = yes; then
13650 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13651 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13652 # if the path contains ";" then we assume it to be the separator
13653 # otherwise default to the standard path separator (i.e. ":") - it is
13654 # assumed that no part of a normal pathname contains ";" but that should
13655 # okay in the real world where ";" in dirpaths is itself problematic.
13656 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13658 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13661 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13663 need_lib_prefix=unknown
13664 hardcode_into_libs=no
13666 # when you set need_version to no, make sure it does not cause -set_version
13667 # flags to be left without arguments
13668 need_version=unknown
13673 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13674 shlibpath_var=LIBPATH
13676 # AIX 3 has no versioning support, so we append a major version to the name.
13677 soname_spec='${libname}${release}${shared_ext}$major'
13684 hardcode_into_libs=yes
13685 if test "$host_cpu" = ia64; then
13686 # AIX 5 supports IA64
13687 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13688 shlibpath_var=LD_LIBRARY_PATH
13690 # With GCC up to 2.95.x, collect2 would create an import file
13691 # for dependence libraries. The import file would start with
13692 # the line `#! .'. This would cause the generated library to
13693 # depend on `.', always an invalid library. This was fixed in
13694 # development snapshots of GCC prior to 3.0.
13696 aix4 | aix4.[01] | aix4.[01].*)
13697 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13699 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13702 can_build_shared=no
13706 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13707 # soname into executable. Probably we can add versioning support to
13708 # collect2, so additional links can be useful in future.
13709 if test "$aix_use_runtimelinking" = yes; then
13710 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13711 # instead of lib<name>.a to let people know that these are not
13712 # typical AIX shared libraries.
13713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13715 # We preserve .a as extension for shared libraries through AIX4.2
13716 # and later when we are not doing run time linking.
13717 library_names_spec='${libname}${release}.a $libname.a'
13718 soname_spec='${libname}${release}${shared_ext}$major'
13720 shlibpath_var=LIBPATH
13725 library_names_spec='$libname.ixlibrary $libname.a'
13726 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13727 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'
13731 library_names_spec='${libname}${shared_ext}'
13732 dynamic_linker="$host_os ld.so"
13733 shlibpath_var=LIBRARY_PATH
13739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13740 soname_spec='${libname}${release}${shared_ext}$major'
13741 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13742 shlibpath_var=LD_LIBRARY_PATH
13743 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13744 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13745 # the default ld.so.conf also contains /usr/contrib/lib and
13746 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13747 # libtool to hard-code these into programs
13750 cygwin* | mingw* | pw32*)
13751 version_type=windows
13756 case $GCC,$host_os in
13757 yes,cygwin* | yes,mingw* | yes,pw32*)
13758 library_names_spec='$libname.dll.a'
13759 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13760 postinstall_cmds='base_file=`basename \${file}`~
13761 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13762 dldir=$destdir/`dirname \$dlpath`~
13763 test -d \$dldir || mkdir -p \$dldir~
13764 $install_prog $dir/$dlname \$dldir/$dlname'
13765 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13766 dlpath=$dir/\$dldll~
13768 shlibpath_overrides_runpath=yes
13772 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13773 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13774 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13777 # MinGW DLLs use traditional 'lib' prefix
13778 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13779 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13780 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13781 # It is most probably a Windows format PATH printed by
13782 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13783 # path with ; separators, and with drive letters. We can handle the
13784 # drive letters (cygwin fileutils understands them), so leave them,
13785 # especially as we might pass files found there to a mingw objdump,
13786 # which wouldn't understand a cygwinified path. Ahh.
13787 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13789 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13793 # pw32 DLLs use 'pw' prefix rather than 'lib'
13794 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13800 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13803 dynamic_linker='Win32 ld.exe'
13804 # FIXME: first we should search . and the directory the executable is in
13808 darwin* | rhapsody*)
13809 dynamic_linker="$host_os dyld"
13810 version_type=darwin
13813 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13814 soname_spec='${libname}${release}${major}$shared_ext'
13815 shlibpath_overrides_runpath=yes
13816 shlibpath_var=DYLD_LIBRARY_PATH
13817 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13818 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13819 if test "$GCC" = yes; then
13820 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"`
13822 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13824 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13832 soname_spec='${libname}${release}${shared_ext}$major'
13833 shlibpath_var=LD_LIBRARY_PATH
13844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13845 soname_spec='${libname}${release}${shared_ext}$major'
13846 shlibpath_var=LD_LIBRARY_PATH
13847 shlibpath_overrides_runpath=no
13848 hardcode_into_libs=yes
13849 dynamic_linker='GNU ld.so'
13852 freebsd* | dragonfly*)
13853 # DragonFly does not have aout. When/if they implement a new
13854 # versioning mechanism, adjust this.
13855 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13856 version_type=freebsd-$objformat
13857 case $version_type in
13859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13864 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13868 shlibpath_var=LD_LIBRARY_PATH
13871 shlibpath_overrides_runpath=yes
13873 freebsd3.[01]* | freebsdelf3.[01]*)
13874 shlibpath_overrides_runpath=yes
13875 hardcode_into_libs=yes
13878 shlibpath_overrides_runpath=no
13879 hardcode_into_libs=yes
13888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13889 soname_spec='${libname}${release}${shared_ext}$major'
13890 shlibpath_var=LD_LIBRARY_PATH
13891 hardcode_into_libs=yes
13894 hpux9* | hpux10* | hpux11*)
13895 # Give a soname corresponding to the major version so that dld.sl refuses to
13896 # link against other versions.
13900 case "$host_cpu" in
13903 hardcode_into_libs=yes
13904 dynamic_linker="$host_os dld.so"
13905 shlibpath_var=LD_LIBRARY_PATH
13906 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13908 soname_spec='${libname}${release}${shared_ext}$major'
13909 if test "X$HPUX_IA64_MODE" = X32; then
13910 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13912 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13914 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13918 hardcode_into_libs=yes
13919 dynamic_linker="$host_os dld.sl"
13920 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13921 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13923 soname_spec='${libname}${release}${shared_ext}$major'
13924 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13925 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13929 dynamic_linker="$host_os dld.sl"
13930 shlibpath_var=SHLIB_PATH
13931 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13933 soname_spec='${libname}${release}${shared_ext}$major'
13936 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13937 postinstall_cmds='chmod 555 $lib'
13940 irix5* | irix6* | nonstopux*)
13942 nonstopux*) version_type=nonstopux ;;
13944 if test "$lt_cv_prog_gnu_ld" = yes; then
13952 soname_spec='${libname}${release}${shared_ext}$major'
13953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13955 irix5* | nonstopux*)
13956 libsuff= shlibsuff=
13959 case $LD in # libtool.m4 will add one of these switches to LD
13960 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13961 libsuff= shlibsuff= libmagic=32-bit;;
13962 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13963 libsuff=32 shlibsuff=N32 libmagic=N32;;
13964 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13965 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13966 *) libsuff= shlibsuff= libmagic=never-match;;
13970 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13971 shlibpath_overrides_runpath=no
13972 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13973 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13974 hardcode_into_libs=yes
13977 # No shared lib support for Linux oldld, aout, or coff.
13978 linux*oldld* | linux*aout* | linux*coff*)
13982 # This must be Linux ELF.
13987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13988 soname_spec='${libname}${release}${shared_ext}$major'
13989 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13990 shlibpath_var=LD_LIBRARY_PATH
13991 shlibpath_overrides_runpath=no
13992 # This implies no fast_install, which is unacceptable.
13993 # Some rework will be needed to allow for fast_install
13994 # before this can be enabled.
13995 hardcode_into_libs=yes
13997 # Append ld.so.conf contents to the search path
13998 if test -f /etc/ld.so.conf; then
13999 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' ' '`
14000 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14003 # We used to test for /lib/ld.so.1 and disable shared libraries on
14004 # powerpc, because MkLinux only supported shared libraries with the
14005 # GNU dynamic linker. Since this was broken with cross compilers,
14006 # most powerpc-linux boxes support dynamic linking these days and
14007 # people can always --disable-shared, the test was removed, and we
14008 # assume the GNU/Linux dynamic linker is in use.
14009 dynamic_linker='GNU/Linux ld.so'
14016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14017 soname_spec='${libname}${release}${shared_ext}$major'
14018 shlibpath_var=LD_LIBRARY_PATH
14019 shlibpath_overrides_runpath=no
14020 hardcode_into_libs=yes
14021 dynamic_linker='GNU ld.so'
14028 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14030 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14031 dynamic_linker='NetBSD (a.out) ld.so'
14033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14034 soname_spec='${libname}${release}${shared_ext}$major'
14035 dynamic_linker='NetBSD ld.elf_so'
14037 shlibpath_var=LD_LIBRARY_PATH
14038 shlibpath_overrides_runpath=yes
14039 hardcode_into_libs=yes
14044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14045 shlibpath_var=LD_LIBRARY_PATH
14046 shlibpath_overrides_runpath=yes
14053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14054 soname_spec='${libname}${release}${shared_ext}$major'
14055 shlibpath_var=LD_LIBRARY_PATH
14056 shlibpath_overrides_runpath=yes
14062 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14064 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14065 *) need_version=no ;;
14067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14068 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14069 shlibpath_var=LD_LIBRARY_PATH
14070 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14072 openbsd2.[89] | openbsd2.[89].*)
14073 shlibpath_overrides_runpath=no
14076 shlibpath_overrides_runpath=yes
14080 shlibpath_overrides_runpath=yes
14085 libname_spec='$name'
14088 library_names_spec='$libname${shared_ext} $libname.a'
14089 dynamic_linker='OS/2 ld.exe'
14090 shlibpath_var=LIBPATH
14093 osf3* | osf4* | osf5*)
14097 soname_spec='${libname}${release}${shared_ext}$major'
14098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14099 shlibpath_var=LD_LIBRARY_PATH
14100 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14101 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14106 soname_spec='${libname}${release}${shared_ext}$major'
14107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14108 shlibpath_var=LD_LIBRARY_PATH
14115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14116 soname_spec='${libname}${release}${shared_ext}$major'
14117 shlibpath_var=LD_LIBRARY_PATH
14118 shlibpath_overrides_runpath=yes
14119 hardcode_into_libs=yes
14120 # ldd complains unless libraries are executable
14121 postinstall_cmds='chmod +x $lib'
14126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14127 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14128 shlibpath_var=LD_LIBRARY_PATH
14129 shlibpath_overrides_runpath=yes
14130 if test "$with_gnu_ld" = yes; then
14136 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14139 soname_spec='${libname}${release}${shared_ext}$major'
14140 shlibpath_var=LD_LIBRARY_PATH
14141 case $host_vendor in
14143 shlibpath_overrides_runpath=no
14145 export_dynamic_flag_spec='${wl}-Blargedynsym'
14146 runpath_var=LD_RUN_PATH
14154 shlibpath_overrides_runpath=no
14155 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14161 if test -d /usr/nec ;then
14163 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14164 soname_spec='$libname${shared_ext}.$major'
14165 shlibpath_var=LD_LIBRARY_PATH
14171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14172 soname_spec='${libname}${release}${shared_ext}$major'
14173 shlibpath_var=LD_LIBRARY_PATH
14180 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14181 echo "${ECHO_T}$dynamic_linker" >&6
14182 test "$dynamic_linker" = no && can_build_shared=no
14184 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14185 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14186 hardcode_action_CXX=
14187 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14188 test -n "$runpath_var_CXX" || \
14189 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14191 # We can hardcode non-existant directories.
14192 if test "$hardcode_direct_CXX" != no &&
14193 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14194 # have to relink, otherwise we might link with an installed library
14195 # when we should be linking with a yet-to-be-installed one
14196 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14197 test "$hardcode_minus_L_CXX" != no; then
14198 # Linking always hardcodes the temporary library directory.
14199 hardcode_action_CXX=relink
14201 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14202 hardcode_action_CXX=immediate
14205 # We cannot hardcode anything, or else we can only hardcode existing
14207 hardcode_action_CXX=unsupported
14209 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14210 echo "${ECHO_T}$hardcode_action_CXX" >&6
14212 if test "$hardcode_action_CXX" = relink; then
14213 # Fast installation is not supported
14214 enable_fast_install=no
14215 elif test "$shlibpath_overrides_runpath" = yes ||
14216 test "$enable_shared" = no; then
14217 # Fast installation is not necessary
14218 enable_fast_install=needless
14223 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14224 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14225 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14226 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14227 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14228 echo "$as_me:$LINENO: result: yes" >&5
14229 echo "${ECHO_T}yes" >&6
14231 # FIXME - insert some real tests, host_os isn't really good enough
14234 if test -n "$STRIP" ; then
14235 striplib="$STRIP -x"
14236 echo "$as_me:$LINENO: result: yes" >&5
14237 echo "${ECHO_T}yes" >&6
14239 echo "$as_me:$LINENO: result: no" >&5
14240 echo "${ECHO_T}no" >&6
14244 echo "$as_me:$LINENO: result: no" >&5
14245 echo "${ECHO_T}no" >&6
14250 if test "x$enable_dlopen" != xyes; then
14251 enable_dlopen=unknown
14252 enable_dlopen_self=unknown
14253 enable_dlopen_self_static=unknown
14260 lt_cv_dlopen="load_add_on"
14262 lt_cv_dlopen_self=yes
14266 lt_cv_dlopen="LoadLibrary"
14271 lt_cv_dlopen="dlopen"
14276 # if libdl is installed we need to link against it
14277 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14278 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14279 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14280 echo $ECHO_N "(cached) $ECHO_C" >&6
14282 ac_check_lib_save_LIBS=$LIBS
14284 cat >conftest.$ac_ext <<_ACEOF
14287 cat confdefs.h >>conftest.$ac_ext
14288 cat >>conftest.$ac_ext <<_ACEOF
14289 /* end confdefs.h. */
14291 /* Override any gcc2 internal prototype to avoid an error. */
14295 /* We use char because int might match the return type of a gcc2
14296 builtin and then its argument prototype would still apply. */
14306 rm -f conftest.$ac_objext conftest$ac_exeext
14307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14308 (eval $ac_link) 2>conftest.er1
14310 grep -v '^ *+' conftest.er1 >conftest.err
14312 cat conftest.err >&5
14313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314 (exit $ac_status); } &&
14315 { ac_try='test -z "$ac_cxx_werror_flag"
14316 || test ! -s conftest.err'
14317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14318 (eval $ac_try) 2>&5
14320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14321 (exit $ac_status); }; } &&
14322 { ac_try='test -s conftest$ac_exeext'
14323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14324 (eval $ac_try) 2>&5
14326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327 (exit $ac_status); }; }; then
14328 ac_cv_lib_dl_dlopen=yes
14330 echo "$as_me: failed program was:" >&5
14331 sed 's/^/| /' conftest.$ac_ext >&5
14333 ac_cv_lib_dl_dlopen=no
14335 rm -f conftest.err conftest.$ac_objext \
14336 conftest$ac_exeext conftest.$ac_ext
14337 LIBS=$ac_check_lib_save_LIBS
14339 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14340 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14341 if test $ac_cv_lib_dl_dlopen = yes; then
14342 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14345 lt_cv_dlopen="dyld"
14347 lt_cv_dlopen_self=yes
14354 echo "$as_me:$LINENO: checking for shl_load" >&5
14355 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14356 if test "${ac_cv_func_shl_load+set}" = set; then
14357 echo $ECHO_N "(cached) $ECHO_C" >&6
14359 cat >conftest.$ac_ext <<_ACEOF
14362 cat confdefs.h >>conftest.$ac_ext
14363 cat >>conftest.$ac_ext <<_ACEOF
14364 /* end confdefs.h. */
14365 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14366 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14367 #define shl_load innocuous_shl_load
14369 /* System header to define __stub macros and hopefully few prototypes,
14370 which can conflict with char shl_load (); below.
14371 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14372 <limits.h> exists even on freestanding compilers. */
14375 # include <limits.h>
14377 # include <assert.h>
14382 /* Override any gcc2 internal prototype to avoid an error. */
14387 /* We use char because int might match the return type of a gcc2
14388 builtin and then its argument prototype would still apply. */
14390 /* The GNU C library defines this for functions which it implements
14391 to always fail with ENOSYS. Some functions are actually named
14392 something starting with __ and the normal name is an alias. */
14393 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14396 char (*f) () = shl_load;
14405 return f != shl_load;
14410 rm -f conftest.$ac_objext conftest$ac_exeext
14411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14412 (eval $ac_link) 2>conftest.er1
14414 grep -v '^ *+' conftest.er1 >conftest.err
14416 cat conftest.err >&5
14417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418 (exit $ac_status); } &&
14419 { ac_try='test -z "$ac_cxx_werror_flag"
14420 || test ! -s conftest.err'
14421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14422 (eval $ac_try) 2>&5
14424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425 (exit $ac_status); }; } &&
14426 { ac_try='test -s conftest$ac_exeext'
14427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14428 (eval $ac_try) 2>&5
14430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431 (exit $ac_status); }; }; then
14432 ac_cv_func_shl_load=yes
14434 echo "$as_me: failed program was:" >&5
14435 sed 's/^/| /' conftest.$ac_ext >&5
14437 ac_cv_func_shl_load=no
14439 rm -f conftest.err conftest.$ac_objext \
14440 conftest$ac_exeext conftest.$ac_ext
14442 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14443 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14444 if test $ac_cv_func_shl_load = yes; then
14445 lt_cv_dlopen="shl_load"
14447 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14448 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14449 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14450 echo $ECHO_N "(cached) $ECHO_C" >&6
14452 ac_check_lib_save_LIBS=$LIBS
14454 cat >conftest.$ac_ext <<_ACEOF
14457 cat confdefs.h >>conftest.$ac_ext
14458 cat >>conftest.$ac_ext <<_ACEOF
14459 /* end confdefs.h. */
14461 /* Override any gcc2 internal prototype to avoid an error. */
14465 /* We use char because int might match the return type of a gcc2
14466 builtin and then its argument prototype would still apply. */
14476 rm -f conftest.$ac_objext conftest$ac_exeext
14477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14478 (eval $ac_link) 2>conftest.er1
14480 grep -v '^ *+' conftest.er1 >conftest.err
14482 cat conftest.err >&5
14483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484 (exit $ac_status); } &&
14485 { ac_try='test -z "$ac_cxx_werror_flag"
14486 || test ! -s conftest.err'
14487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14488 (eval $ac_try) 2>&5
14490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491 (exit $ac_status); }; } &&
14492 { ac_try='test -s conftest$ac_exeext'
14493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14494 (eval $ac_try) 2>&5
14496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497 (exit $ac_status); }; }; then
14498 ac_cv_lib_dld_shl_load=yes
14500 echo "$as_me: failed program was:" >&5
14501 sed 's/^/| /' conftest.$ac_ext >&5
14503 ac_cv_lib_dld_shl_load=no
14505 rm -f conftest.err conftest.$ac_objext \
14506 conftest$ac_exeext conftest.$ac_ext
14507 LIBS=$ac_check_lib_save_LIBS
14509 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14510 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14511 if test $ac_cv_lib_dld_shl_load = yes; then
14512 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14514 echo "$as_me:$LINENO: checking for dlopen" >&5
14515 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14516 if test "${ac_cv_func_dlopen+set}" = set; then
14517 echo $ECHO_N "(cached) $ECHO_C" >&6
14519 cat >conftest.$ac_ext <<_ACEOF
14522 cat confdefs.h >>conftest.$ac_ext
14523 cat >>conftest.$ac_ext <<_ACEOF
14524 /* end confdefs.h. */
14525 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14526 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14527 #define dlopen innocuous_dlopen
14529 /* System header to define __stub macros and hopefully few prototypes,
14530 which can conflict with char dlopen (); below.
14531 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14532 <limits.h> exists even on freestanding compilers. */
14535 # include <limits.h>
14537 # include <assert.h>
14542 /* Override any gcc2 internal prototype to avoid an error. */
14547 /* We use char because int might match the return type of a gcc2
14548 builtin and then its argument prototype would still apply. */
14550 /* The GNU C library defines this for functions which it implements
14551 to always fail with ENOSYS. Some functions are actually named
14552 something starting with __ and the normal name is an alias. */
14553 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14556 char (*f) () = dlopen;
14565 return f != dlopen;
14570 rm -f conftest.$ac_objext conftest$ac_exeext
14571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14572 (eval $ac_link) 2>conftest.er1
14574 grep -v '^ *+' conftest.er1 >conftest.err
14576 cat conftest.err >&5
14577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578 (exit $ac_status); } &&
14579 { ac_try='test -z "$ac_cxx_werror_flag"
14580 || test ! -s conftest.err'
14581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14582 (eval $ac_try) 2>&5
14584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585 (exit $ac_status); }; } &&
14586 { ac_try='test -s conftest$ac_exeext'
14587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14588 (eval $ac_try) 2>&5
14590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591 (exit $ac_status); }; }; then
14592 ac_cv_func_dlopen=yes
14594 echo "$as_me: failed program was:" >&5
14595 sed 's/^/| /' conftest.$ac_ext >&5
14597 ac_cv_func_dlopen=no
14599 rm -f conftest.err conftest.$ac_objext \
14600 conftest$ac_exeext conftest.$ac_ext
14602 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14603 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14604 if test $ac_cv_func_dlopen = yes; then
14605 lt_cv_dlopen="dlopen"
14607 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14608 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14609 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14610 echo $ECHO_N "(cached) $ECHO_C" >&6
14612 ac_check_lib_save_LIBS=$LIBS
14614 cat >conftest.$ac_ext <<_ACEOF
14617 cat confdefs.h >>conftest.$ac_ext
14618 cat >>conftest.$ac_ext <<_ACEOF
14619 /* end confdefs.h. */
14621 /* Override any gcc2 internal prototype to avoid an error. */
14625 /* We use char because int might match the return type of a gcc2
14626 builtin and then its argument prototype would still apply. */
14636 rm -f conftest.$ac_objext conftest$ac_exeext
14637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14638 (eval $ac_link) 2>conftest.er1
14640 grep -v '^ *+' conftest.er1 >conftest.err
14642 cat conftest.err >&5
14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); } &&
14645 { ac_try='test -z "$ac_cxx_werror_flag"
14646 || test ! -s conftest.err'
14647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14648 (eval $ac_try) 2>&5
14650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651 (exit $ac_status); }; } &&
14652 { ac_try='test -s conftest$ac_exeext'
14653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14654 (eval $ac_try) 2>&5
14656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657 (exit $ac_status); }; }; then
14658 ac_cv_lib_dl_dlopen=yes
14660 echo "$as_me: failed program was:" >&5
14661 sed 's/^/| /' conftest.$ac_ext >&5
14663 ac_cv_lib_dl_dlopen=no
14665 rm -f conftest.err conftest.$ac_objext \
14666 conftest$ac_exeext conftest.$ac_ext
14667 LIBS=$ac_check_lib_save_LIBS
14669 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14670 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14671 if test $ac_cv_lib_dl_dlopen = yes; then
14672 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14674 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14675 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14676 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14677 echo $ECHO_N "(cached) $ECHO_C" >&6
14679 ac_check_lib_save_LIBS=$LIBS
14680 LIBS="-lsvld $LIBS"
14681 cat >conftest.$ac_ext <<_ACEOF
14684 cat confdefs.h >>conftest.$ac_ext
14685 cat >>conftest.$ac_ext <<_ACEOF
14686 /* end confdefs.h. */
14688 /* Override any gcc2 internal prototype to avoid an error. */
14692 /* We use char because int might match the return type of a gcc2
14693 builtin and then its argument prototype would still apply. */
14703 rm -f conftest.$ac_objext conftest$ac_exeext
14704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14705 (eval $ac_link) 2>conftest.er1
14707 grep -v '^ *+' conftest.er1 >conftest.err
14709 cat conftest.err >&5
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); } &&
14712 { ac_try='test -z "$ac_cxx_werror_flag"
14713 || test ! -s conftest.err'
14714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14715 (eval $ac_try) 2>&5
14717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14718 (exit $ac_status); }; } &&
14719 { ac_try='test -s conftest$ac_exeext'
14720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14721 (eval $ac_try) 2>&5
14723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724 (exit $ac_status); }; }; then
14725 ac_cv_lib_svld_dlopen=yes
14727 echo "$as_me: failed program was:" >&5
14728 sed 's/^/| /' conftest.$ac_ext >&5
14730 ac_cv_lib_svld_dlopen=no
14732 rm -f conftest.err conftest.$ac_objext \
14733 conftest$ac_exeext conftest.$ac_ext
14734 LIBS=$ac_check_lib_save_LIBS
14736 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14737 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14738 if test $ac_cv_lib_svld_dlopen = yes; then
14739 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14741 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14742 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14743 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14744 echo $ECHO_N "(cached) $ECHO_C" >&6
14746 ac_check_lib_save_LIBS=$LIBS
14748 cat >conftest.$ac_ext <<_ACEOF
14751 cat confdefs.h >>conftest.$ac_ext
14752 cat >>conftest.$ac_ext <<_ACEOF
14753 /* end confdefs.h. */
14755 /* Override any gcc2 internal prototype to avoid an error. */
14759 /* We use char because int might match the return type of a gcc2
14760 builtin and then its argument prototype would still apply. */
14770 rm -f conftest.$ac_objext conftest$ac_exeext
14771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14772 (eval $ac_link) 2>conftest.er1
14774 grep -v '^ *+' conftest.er1 >conftest.err
14776 cat conftest.err >&5
14777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14778 (exit $ac_status); } &&
14779 { ac_try='test -z "$ac_cxx_werror_flag"
14780 || test ! -s conftest.err'
14781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14782 (eval $ac_try) 2>&5
14784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785 (exit $ac_status); }; } &&
14786 { ac_try='test -s conftest$ac_exeext'
14787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14788 (eval $ac_try) 2>&5
14790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791 (exit $ac_status); }; }; then
14792 ac_cv_lib_dld_dld_link=yes
14794 echo "$as_me: failed program was:" >&5
14795 sed 's/^/| /' conftest.$ac_ext >&5
14797 ac_cv_lib_dld_dld_link=no
14799 rm -f conftest.err conftest.$ac_objext \
14800 conftest$ac_exeext conftest.$ac_ext
14801 LIBS=$ac_check_lib_save_LIBS
14803 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14804 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14805 if test $ac_cv_lib_dld_dld_link = yes; then
14806 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14827 if test "x$lt_cv_dlopen" != xno; then
14833 case $lt_cv_dlopen in
14835 save_CPPFLAGS="$CPPFLAGS"
14836 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14838 save_LDFLAGS="$LDFLAGS"
14839 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14842 LIBS="$lt_cv_dlopen_libs $LIBS"
14844 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14845 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14846 if test "${lt_cv_dlopen_self+set}" = set; then
14847 echo $ECHO_N "(cached) $ECHO_C" >&6
14849 if test "$cross_compiling" = yes; then :
14850 lt_cv_dlopen_self=cross
14852 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14853 lt_status=$lt_dlunknown
14854 cat > conftest.$ac_ext <<EOF
14855 #line 14855 "configure"
14856 #include "confdefs.h"
14865 # define LT_DLGLOBAL RTLD_GLOBAL
14868 # define LT_DLGLOBAL DL_GLOBAL
14870 # define LT_DLGLOBAL 0
14874 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14875 find out it does not work in some platform. */
14876 #ifndef LT_DLLAZY_OR_NOW
14878 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14881 # define LT_DLLAZY_OR_NOW DL_LAZY
14884 # define LT_DLLAZY_OR_NOW RTLD_NOW
14887 # define LT_DLLAZY_OR_NOW DL_NOW
14889 # define LT_DLLAZY_OR_NOW 0
14897 extern "C" void exit (int);
14900 void fnord() { int i=42;}
14903 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14904 int status = $lt_dlunknown;
14908 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14909 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14910 /* dlclose (self); */
14916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14917 (eval $ac_link) 2>&5
14919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14921 (./conftest; exit; ) 2>/dev/null
14923 case x$lt_status in
14924 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14925 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14926 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14929 # compilation failed
14930 lt_cv_dlopen_self=no
14937 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14938 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14940 if test "x$lt_cv_dlopen_self" = xyes; then
14941 LDFLAGS="$LDFLAGS $link_static_flag"
14942 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14943 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14944 if test "${lt_cv_dlopen_self_static+set}" = set; then
14945 echo $ECHO_N "(cached) $ECHO_C" >&6
14947 if test "$cross_compiling" = yes; then :
14948 lt_cv_dlopen_self_static=cross
14950 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14951 lt_status=$lt_dlunknown
14952 cat > conftest.$ac_ext <<EOF
14953 #line 14953 "configure"
14954 #include "confdefs.h"
14963 # define LT_DLGLOBAL RTLD_GLOBAL
14966 # define LT_DLGLOBAL DL_GLOBAL
14968 # define LT_DLGLOBAL 0
14972 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14973 find out it does not work in some platform. */
14974 #ifndef LT_DLLAZY_OR_NOW
14976 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14979 # define LT_DLLAZY_OR_NOW DL_LAZY
14982 # define LT_DLLAZY_OR_NOW RTLD_NOW
14985 # define LT_DLLAZY_OR_NOW DL_NOW
14987 # define LT_DLLAZY_OR_NOW 0
14995 extern "C" void exit (int);
14998 void fnord() { int i=42;}
15001 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15002 int status = $lt_dlunknown;
15006 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15007 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15008 /* dlclose (self); */
15014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15015 (eval $ac_link) 2>&5
15017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15019 (./conftest; exit; ) 2>/dev/null
15021 case x$lt_status in
15022 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15023 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15024 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
15027 # compilation failed
15028 lt_cv_dlopen_self_static=no
15035 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
15036 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
15039 CPPFLAGS="$save_CPPFLAGS"
15040 LDFLAGS="$save_LDFLAGS"
15045 case $lt_cv_dlopen_self in
15046 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15047 *) enable_dlopen_self=unknown ;;
15050 case $lt_cv_dlopen_self_static in
15051 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15052 *) enable_dlopen_self_static=unknown ;;
15057 # The else clause should only fire when bootstrapping the
15058 # libtool distribution, otherwise you forgot to ship ltmain.sh
15059 # with your package, and you will get complaints that there are
15060 # no rules to generate ltmain.sh.
15061 if test -f "$ltmain"; then
15062 # See if we are running on zsh, and set the options which allow our commands through
15063 # without removal of \ escapes.
15064 if test -n "${ZSH_VERSION+set}" ; then
15065 setopt NO_GLOB_SUBST
15067 # Now quote all the things that may contain metacharacters while being
15068 # careful not to overquote the AC_SUBSTed values. We take copies of the
15069 # variables and quote the copies for generation of the libtool script.
15070 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15072 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15073 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15074 deplibs_check_method reload_flag reload_cmds need_locks \
15075 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15076 lt_cv_sys_global_symbol_to_c_name_address \
15077 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15078 old_postinstall_cmds old_postuninstall_cmds \
15082 lt_prog_compiler_wl_CXX \
15083 lt_prog_compiler_pic_CXX \
15084 lt_prog_compiler_static_CXX \
15085 lt_prog_compiler_no_builtin_flag_CXX \
15086 export_dynamic_flag_spec_CXX \
15087 thread_safe_flag_spec_CXX \
15088 whole_archive_flag_spec_CXX \
15089 enable_shared_with_static_runtimes_CXX \
15090 old_archive_cmds_CXX \
15091 old_archive_from_new_cmds_CXX \
15092 predep_objects_CXX \
15093 postdep_objects_CXX \
15096 compiler_lib_search_path_CXX \
15098 archive_expsym_cmds_CXX \
15099 postinstall_cmds_CXX \
15100 postuninstall_cmds_CXX \
15101 old_archive_from_expsyms_cmds_CXX \
15102 allow_undefined_flag_CXX \
15103 no_undefined_flag_CXX \
15104 export_symbols_cmds_CXX \
15105 hardcode_libdir_flag_spec_CXX \
15106 hardcode_libdir_flag_spec_ld_CXX \
15107 hardcode_libdir_separator_CXX \
15108 hardcode_automatic_CXX \
15110 module_expsym_cmds_CXX \
15111 lt_cv_prog_compiler_c_o_CXX \
15112 exclude_expsyms_CXX \
15113 include_expsyms_CXX; do
15116 old_archive_cmds_CXX | \
15117 old_archive_from_new_cmds_CXX | \
15118 archive_cmds_CXX | \
15119 archive_expsym_cmds_CXX | \
15120 module_cmds_CXX | \
15121 module_expsym_cmds_CXX | \
15122 old_archive_from_expsyms_cmds_CXX | \
15123 export_symbols_cmds_CXX | \
15124 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15125 postinstall_cmds | postuninstall_cmds | \
15126 old_postinstall_cmds | old_postuninstall_cmds | \
15127 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15128 # Double-quote double-evaled strings.
15129 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15132 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15138 *'\$0 --fallback-echo"')
15139 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15145 cat <<__EOF__ >> "$cfgfile"
15146 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15148 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15150 # Shell to use when invoking shell scripts.
15153 # Whether or not to build shared libraries.
15154 build_libtool_libs=$enable_shared
15156 # Whether or not to build static libraries.
15157 build_old_libs=$enable_static
15159 # Whether or not to add -lc for building shared libraries.
15160 build_libtool_need_lc=$archive_cmds_need_lc_CXX
15162 # Whether or not to disallow shared libs when runtime libs are static
15163 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15165 # Whether or not to optimize for fast installation.
15166 fast_install=$enable_fast_install
15169 host_alias=$host_alias
15173 # The build system.
15174 build_alias=$build_alias
15178 # An echo program that does not interpret backslashes.
15183 AR_FLAGS=$lt_AR_FLAGS
15188 # A language-specific compiler.
15189 CC=$lt_compiler_CXX
15191 # Is the compiler the GNU C compiler?
15197 # The linker used to build libraries.
15200 # Whether we need hard or soft links.
15203 # A BSD-compatible nm program.
15206 # A symbol stripping program
15209 # Used to examine libraries when file_magic_cmd begins "file"
15210 MAGIC_CMD=$MAGIC_CMD
15212 # Used on cygwin: DLL creation program.
15215 # Used on cygwin: object dumper.
15218 # Used on cygwin: assembler.
15221 # The name of the directory that contains temporary libtool files.
15224 # How to create reloadable object files.
15225 reload_flag=$lt_reload_flag
15226 reload_cmds=$lt_reload_cmds
15228 # How to pass a linker flag through the compiler.
15229 wl=$lt_lt_prog_compiler_wl_CXX
15231 # Object file suffix (normally "o").
15232 objext="$ac_objext"
15234 # Old archive suffix (normally "a").
15237 # Shared library suffix (normally ".so").
15238 shrext_cmds='$shrext_cmds'
15240 # Executable file suffix (normally "").
15243 # Additional compiler flags for building library objects.
15244 pic_flag=$lt_lt_prog_compiler_pic_CXX
15247 # What is the maximum length of a command?
15248 max_cmd_len=$lt_cv_sys_max_cmd_len
15250 # Does compiler simultaneously support -c and -o options?
15251 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15253 # Must we lock files when doing compilation?
15254 need_locks=$lt_need_locks
15256 # Do we need the lib prefix for modules?
15257 need_lib_prefix=$need_lib_prefix
15259 # Do we need a version for libraries?
15260 need_version=$need_version
15262 # Whether dlopen is supported.
15263 dlopen_support=$enable_dlopen
15265 # Whether dlopen of programs is supported.
15266 dlopen_self=$enable_dlopen_self
15268 # Whether dlopen of statically linked programs is supported.
15269 dlopen_self_static=$enable_dlopen_self_static
15271 # Compiler flag to prevent dynamic linking.
15272 link_static_flag=$lt_lt_prog_compiler_static_CXX
15274 # Compiler flag to turn off builtin functions.
15275 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15277 # Compiler flag to allow reflexive dlopens.
15278 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15280 # Compiler flag to generate shared objects directly from archives.
15281 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15283 # Compiler flag to generate thread-safe objects.
15284 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15286 # Library versioning type.
15287 version_type=$version_type
15289 # Format of library name prefix.
15290 libname_spec=$lt_libname_spec
15292 # List of archive names. First name is the real one, the rest are links.
15293 # The last name is the one that the linker finds with -lNAME.
15294 library_names_spec=$lt_library_names_spec
15296 # The coded name of the library, if different from the real name.
15297 soname_spec=$lt_soname_spec
15299 # Commands used to build and install an old-style archive.
15301 old_archive_cmds=$lt_old_archive_cmds_CXX
15302 old_postinstall_cmds=$lt_old_postinstall_cmds
15303 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15305 # Create an old-style archive from a shared archive.
15306 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15308 # Create a temporary old-style archive to link instead of a shared archive.
15309 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15311 # Commands used to build and install a shared archive.
15312 archive_cmds=$lt_archive_cmds_CXX
15313 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15314 postinstall_cmds=$lt_postinstall_cmds
15315 postuninstall_cmds=$lt_postuninstall_cmds
15317 # Commands used to build a loadable module (assumed same as above if empty)
15318 module_cmds=$lt_module_cmds_CXX
15319 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15321 # Commands to strip libraries.
15322 old_striplib=$lt_old_striplib
15323 striplib=$lt_striplib
15325 # Dependencies to place before the objects being linked to create a
15327 predep_objects=$lt_predep_objects_CXX
15329 # Dependencies to place after the objects being linked to create a
15331 postdep_objects=$lt_postdep_objects_CXX
15333 # Dependencies to place before the objects being linked to create a
15335 predeps=$lt_predeps_CXX
15337 # Dependencies to place after the objects being linked to create a
15339 postdeps=$lt_postdeps_CXX
15341 # The library search path used internally by the compiler when linking
15342 # a shared library.
15343 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15345 # Method to check whether dependent libraries are shared objects.
15346 deplibs_check_method=$lt_deplibs_check_method
15348 # Command to use when deplibs_check_method == file_magic.
15349 file_magic_cmd=$lt_file_magic_cmd
15351 # Flag that allows shared libraries with undefined symbols to be built.
15352 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15354 # Flag that forces no undefined symbols.
15355 no_undefined_flag=$lt_no_undefined_flag_CXX
15357 # Commands used to finish a libtool library installation in a directory.
15358 finish_cmds=$lt_finish_cmds
15360 # Same as above, but a single script fragment to be evaled but not shown.
15361 finish_eval=$lt_finish_eval
15363 # Take the output of nm and produce a listing of raw symbols and C names.
15364 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15366 # Transform the output of nm in a proper C declaration
15367 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15369 # Transform the output of nm in a C name address pair
15370 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15372 # This is the shared library runtime path variable.
15373 runpath_var=$runpath_var
15375 # This is the shared library path variable.
15376 shlibpath_var=$shlibpath_var
15378 # Is shlibpath searched before the hard-coded library search path?
15379 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15381 # How to hardcode a shared library path into an executable.
15382 hardcode_action=$hardcode_action_CXX
15384 # Whether we should hardcode library paths into libraries.
15385 hardcode_into_libs=$hardcode_into_libs
15387 # Flag to hardcode \$libdir into a binary during linking.
15388 # This must work even if \$libdir does not exist.
15389 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15391 # If ld is used when linking, flag to hardcode \$libdir into
15392 # a binary during linking. This must work even if \$libdir does
15394 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15396 # Whether we need a single -rpath flag with a separated argument.
15397 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15399 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15400 # resulting binary.
15401 hardcode_direct=$hardcode_direct_CXX
15403 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15404 # resulting binary.
15405 hardcode_minus_L=$hardcode_minus_L_CXX
15407 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15408 # the resulting binary.
15409 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15411 # Set to yes if building a shared library automatically hardcodes DIR into the library
15412 # and all subsequent libraries and executables linked against it.
15413 hardcode_automatic=$hardcode_automatic_CXX
15415 # Variables whose values should be saved in libtool wrapper scripts and
15416 # restored at relink time.
15417 variables_saved_for_relink="$variables_saved_for_relink"
15419 # Whether libtool must link a program against all its dependency libraries.
15420 link_all_deplibs=$link_all_deplibs_CXX
15422 # Compile-time system search path for libraries
15423 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15425 # Run-time system search path for libraries
15426 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15428 # Fix the shell variable \$srcfile for the compiler.
15429 fix_srcfile_path="$fix_srcfile_path_CXX"
15431 # Set to yes if exported symbols are required.
15432 always_export_symbols=$always_export_symbols_CXX
15434 # The commands to list exported symbols.
15435 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15437 # The commands to extract the exported symbol list from a shared archive.
15438 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15440 # Symbols that should not be listed in the preloaded symbols.
15441 exclude_expsyms=$lt_exclude_expsyms_CXX
15443 # Symbols that must always be exported.
15444 include_expsyms=$lt_include_expsyms_CXX
15446 # ### END LIBTOOL TAG CONFIG: $tagname
15452 # If there is no Makefile yet, we rely on a make rule to execute
15453 # `config.status --recheck' to rerun these tests and create the
15454 # libtool script then.
15455 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15456 if test -f "$ltmain_in"; then
15457 test -f Makefile && make "$ltmain"
15463 ac_cpp='$CPP $CPPFLAGS'
15464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15472 with_gnu_ldcxx=$with_gnu_ld
15473 with_gnu_ld=$lt_save_with_gnu_ld
15474 lt_cv_path_LDCXX=$lt_cv_path_LD
15475 lt_cv_path_LD=$lt_save_path_LD
15476 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15477 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15485 if test -n "$F77" && test "X$F77" != "Xno"; then
15488 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15489 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15490 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15493 archive_cmds_need_lc_F77=no
15494 allow_undefined_flag_F77=
15495 always_export_symbols_F77=no
15496 archive_expsym_cmds_F77=
15497 export_dynamic_flag_spec_F77=
15498 hardcode_direct_F77=no
15499 hardcode_libdir_flag_spec_F77=
15500 hardcode_libdir_flag_spec_ld_F77=
15501 hardcode_libdir_separator_F77=
15502 hardcode_minus_L_F77=no
15503 hardcode_automatic_F77=no
15505 module_expsym_cmds_F77=
15506 link_all_deplibs_F77=unknown
15507 old_archive_cmds_F77=$old_archive_cmds
15508 no_undefined_flag_F77=
15509 whole_archive_flag_spec_F77=
15510 enable_shared_with_static_runtimes_F77=no
15512 # Source file extension for f77 test sources.
15515 # Object file extension for compiled f77 test sources.
15519 # Code to be used in simple compile tests
15520 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
15522 # Code to be used in simple link tests
15523 lt_simple_link_test_code=" program t\n end\n"
15525 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15527 # If no C compiler was specified, use CC.
15530 # Allow CC to be a program name with arguments.
15534 # save warnings/boilerplate of simple test code
15535 ac_outfile=conftest.$ac_objext
15536 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15537 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15538 _lt_compiler_boilerplate=`cat conftest.err`
15541 ac_outfile=conftest.$ac_objext
15542 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15543 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15544 _lt_linker_boilerplate=`cat conftest.err`
15548 # Allow CC to be a program name with arguments.
15553 for cc_temp in $compiler""; do
15555 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15556 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15561 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15564 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15565 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
15566 echo "$as_me:$LINENO: result: $can_build_shared" >&5
15567 echo "${ECHO_T}$can_build_shared" >&6
15569 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15570 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
15571 test "$can_build_shared" = "no" && enable_shared=no
15573 # On AIX, shared libraries and static libraries use the same namespace, and
15574 # are all built from PIC.
15577 test "$enable_shared" = yes && enable_static=no
15578 if test -n "$RANLIB"; then
15579 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15580 postinstall_cmds='$RANLIB $lib'
15584 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15585 test "$enable_shared" = yes && enable_static=no
15589 echo "$as_me:$LINENO: result: $enable_shared" >&5
15590 echo "${ECHO_T}$enable_shared" >&6
15592 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15593 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
15594 # Make sure either enable_shared or enable_static is yes.
15595 test "$enable_shared" = yes || enable_static=yes
15596 echo "$as_me:$LINENO: result: $enable_static" >&5
15597 echo "${ECHO_T}$enable_static" >&6
15599 test "$ld_shlibs_F77" = no && can_build_shared=no
15604 lt_prog_compiler_wl_F77=
15605 lt_prog_compiler_pic_F77=
15606 lt_prog_compiler_static_F77=
15608 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15609 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15611 if test "$GCC" = yes; then
15612 lt_prog_compiler_wl_F77='-Wl,'
15613 lt_prog_compiler_static_F77='-static'
15617 # All AIX code is PIC.
15618 if test "$host_cpu" = ia64; then
15619 # AIX 5 now supports IA64 processor
15620 lt_prog_compiler_static_F77='-Bstatic'
15625 # FIXME: we need at least 68020 code to build shared libraries, but
15626 # adding the `-m68020' flag to GCC prevents building anything better,
15628 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15631 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15632 # PIC is the default for these OSes.
15635 mingw* | pw32* | os2*)
15636 # This hack is so that the source file can tell whether it is being
15637 # built for inclusion in a dll (and should export symbols for example).
15638 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15641 darwin* | rhapsody*)
15642 # PIC is the default on this platform
15643 # Common symbols not allowed in MH_DYLIB files
15644 lt_prog_compiler_pic_F77='-fno-common'
15648 # Just because we use GCC doesn't mean we suddenly get shared libraries
15649 # on systems that don't support them.
15650 lt_prog_compiler_can_build_shared_F77=no
15655 if test -d /usr/nec; then
15656 lt_prog_compiler_pic_F77=-Kconform_pic
15661 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15662 # not for PA HP-UX.
15663 case "$host_cpu" in
15668 lt_prog_compiler_pic_F77='-fPIC'
15674 lt_prog_compiler_pic_F77='-fPIC'
15678 # PORTME Check for flag to pass linker flags through the system compiler.
15681 lt_prog_compiler_wl_F77='-Wl,'
15682 if test "$host_cpu" = ia64; then
15683 # AIX 5 now supports IA64 processor
15684 lt_prog_compiler_static_F77='-Bstatic'
15686 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15690 # PIC is the default on this platform
15691 # Common symbols not allowed in MH_DYLIB files
15692 case $cc_basename in
15694 lt_prog_compiler_pic_F77='-qnocommon'
15695 lt_prog_compiler_wl_F77='-Wl,'
15700 mingw* | pw32* | os2*)
15701 # This hack is so that the source file can tell whether it is being
15702 # built for inclusion in a dll (and should export symbols for example).
15703 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15706 hpux9* | hpux10* | hpux11*)
15707 lt_prog_compiler_wl_F77='-Wl,'
15708 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15709 # not for PA HP-UX.
15710 case "$host_cpu" in
15715 lt_prog_compiler_pic_F77='+Z'
15718 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15719 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15722 irix5* | irix6* | nonstopux*)
15723 lt_prog_compiler_wl_F77='-Wl,'
15724 # PIC (with -KPIC) is the default.
15725 lt_prog_compiler_static_F77='-non_shared'
15729 lt_prog_compiler_pic_F77='-KPIC'
15730 lt_prog_compiler_static_F77='-Bstatic'
15734 case $cc_basename in
15736 lt_prog_compiler_wl_F77='-Wl,'
15737 lt_prog_compiler_pic_F77='-KPIC'
15738 lt_prog_compiler_static_F77='-static'
15740 pgcc* | pgf77* | pgf90*)
15741 # Portland Group compilers (*not* the Pentium gcc compiler,
15742 # which looks to be a dead project)
15743 lt_prog_compiler_wl_F77='-Wl,'
15744 lt_prog_compiler_pic_F77='-fpic'
15745 lt_prog_compiler_static_F77='-static'
15748 lt_prog_compiler_wl_F77='-Wl,'
15749 # All Alpha code is PIC.
15750 lt_prog_compiler_static_F77='-non_shared'
15755 osf3* | osf4* | osf5*)
15756 lt_prog_compiler_wl_F77='-Wl,'
15757 # All OSF/1 code is PIC.
15758 lt_prog_compiler_static_F77='-non_shared'
15762 lt_prog_compiler_pic_F77='-Kpic'
15763 lt_prog_compiler_static_F77='-dn'
15767 lt_prog_compiler_pic_F77='-KPIC'
15768 lt_prog_compiler_static_F77='-Bstatic'
15769 case $cc_basename in
15770 f77* | f90* | f95*)
15771 lt_prog_compiler_wl_F77='-Qoption ld ';;
15773 lt_prog_compiler_wl_F77='-Wl,';;
15778 lt_prog_compiler_wl_F77='-Qoption ld '
15779 lt_prog_compiler_pic_F77='-PIC'
15780 lt_prog_compiler_static_F77='-Bstatic'
15783 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15784 lt_prog_compiler_wl_F77='-Wl,'
15785 lt_prog_compiler_pic_F77='-KPIC'
15786 lt_prog_compiler_static_F77='-Bstatic'
15790 if test -d /usr/nec ;then
15791 lt_prog_compiler_pic_F77='-Kconform_pic'
15792 lt_prog_compiler_static_F77='-Bstatic'
15797 lt_prog_compiler_wl_F77='-Wl,'
15798 lt_prog_compiler_can_build_shared_F77=no
15802 lt_prog_compiler_pic_F77='-pic'
15803 lt_prog_compiler_static_F77='-Bstatic'
15807 lt_prog_compiler_can_build_shared_F77=no
15812 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15813 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
15816 # Check to make sure the PIC flag actually works.
15818 if test -n "$lt_prog_compiler_pic_F77"; then
15820 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15821 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
15822 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15823 echo $ECHO_N "(cached) $ECHO_C" >&6
15825 lt_prog_compiler_pic_works_F77=no
15826 ac_outfile=conftest.$ac_objext
15827 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15828 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15829 # Insert the option either (1) after the last *FLAGS variable, or
15830 # (2) before a word containing "conftest.", or (3) at the end.
15831 # Note that $ac_compile itself does not contain backslashes and begins
15832 # with a dollar sign (not a hyphen), so the echo should work correctly.
15833 # The option is referenced via a variable to avoid confusing sed.
15834 lt_compile=`echo "$ac_compile" | $SED \
15835 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15836 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15837 -e 's:$: $lt_compiler_flag:'`
15838 (eval echo "\"\$as_me:15838: $lt_compile\"" >&5)
15839 (eval "$lt_compile" 2>conftest.err)
15841 cat conftest.err >&5
15842 echo "$as_me:15842: \$? = $ac_status" >&5
15843 if (exit $ac_status) && test -s "$ac_outfile"; then
15844 # The compiler can only warn and ignore the option if not recognized
15845 # So say no if there are warnings other than the usual output.
15846 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15847 $SED '/^$/d' conftest.err >conftest.er2
15848 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15849 lt_prog_compiler_pic_works_F77=yes
15855 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15856 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
15858 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15859 case $lt_prog_compiler_pic_F77 in
15861 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15864 lt_prog_compiler_pic_F77=
15865 lt_prog_compiler_can_build_shared_F77=no
15870 # For platforms which do not support PIC, -DPIC is meaningless:
15872 lt_prog_compiler_pic_F77=
15875 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15879 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15880 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15881 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15882 echo $ECHO_N "(cached) $ECHO_C" >&6
15884 lt_cv_prog_compiler_c_o_F77=no
15885 $rm -r conftest 2>/dev/null
15889 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15891 lt_compiler_flag="-o out/conftest2.$ac_objext"
15892 # Insert the option either (1) after the last *FLAGS variable, or
15893 # (2) before a word containing "conftest.", or (3) at the end.
15894 # Note that $ac_compile itself does not contain backslashes and begins
15895 # with a dollar sign (not a hyphen), so the echo should work correctly.
15896 lt_compile=`echo "$ac_compile" | $SED \
15897 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15898 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15899 -e 's:$: $lt_compiler_flag:'`
15900 (eval echo "\"\$as_me:15900: $lt_compile\"" >&5)
15901 (eval "$lt_compile" 2>out/conftest.err)
15903 cat out/conftest.err >&5
15904 echo "$as_me:15904: \$? = $ac_status" >&5
15905 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15907 # The compiler can only warn and ignore the option if not recognized
15908 # So say no if there are warnings
15909 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
15910 $SED '/^$/d' out/conftest.err >out/conftest.er2
15911 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15912 lt_cv_prog_compiler_c_o_F77=yes
15917 # SGI C++ compiler will create directory out/ii_files/ for
15918 # template instantiation
15919 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15920 $rm out/* && rmdir out
15926 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15927 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15930 hard_links="nottested"
15931 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15932 # do not overwrite the value of need_locks provided by the user
15933 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15934 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15937 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15939 ln conftest.a conftest.b 2>&5 || hard_links=no
15940 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15941 echo "$as_me:$LINENO: result: $hard_links" >&5
15942 echo "${ECHO_T}$hard_links" >&6
15943 if test "$hard_links" = no; then
15944 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15945 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15952 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15953 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15956 allow_undefined_flag_F77=
15957 enable_shared_with_static_runtimes_F77=no
15959 archive_expsym_cmds_F77=
15960 old_archive_From_new_cmds_F77=
15961 old_archive_from_expsyms_cmds_F77=
15962 export_dynamic_flag_spec_F77=
15963 whole_archive_flag_spec_F77=
15964 thread_safe_flag_spec_F77=
15965 hardcode_libdir_flag_spec_F77=
15966 hardcode_libdir_flag_spec_ld_F77=
15967 hardcode_libdir_separator_F77=
15968 hardcode_direct_F77=no
15969 hardcode_minus_L_F77=no
15970 hardcode_shlibpath_var_F77=unsupported
15971 link_all_deplibs_F77=unknown
15972 hardcode_automatic_F77=no
15974 module_expsym_cmds_F77=
15975 always_export_symbols_F77=no
15976 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15977 # include_expsyms should be a list of space-separated symbols to be *always*
15978 # included in the symbol list
15979 include_expsyms_F77=
15980 # exclude_expsyms can be an extended regexp of symbols to exclude
15981 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15982 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15983 # as well as any symbol that contains `d'.
15984 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15985 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15986 # platforms (ab)use it in PIC code, but their linkers get confused if
15987 # the symbol is explicitly referenced. Since portable code cannot
15988 # rely on this symbol name, it's probably fine to never include it in
15989 # preloaded symbol tables.
15990 extract_expsyms_cmds=
15991 # Just being paranoid about ensuring that cc_basename is set.
15992 for cc_temp in $compiler""; do
15994 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15995 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16000 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16003 cygwin* | mingw* | pw32*)
16004 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16005 # When not using gcc, we currently assume that we are using
16006 # Microsoft Visual C++.
16007 if test "$GCC" != yes; then
16017 if test "$with_gnu_ld" = yes; then
16018 # If archive_cmds runs LD, not CC, wlarc should be empty
16021 # Set some defaults for GNU ld with shared library support. These
16022 # are reset later if shared libraries are not supported. Putting them
16023 # here allows them to be overridden if necessary.
16024 runpath_var=LD_RUN_PATH
16025 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
16026 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
16027 # ancient GNU ld didn't support --whole-archive et. al.
16028 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16029 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16031 whole_archive_flag_spec_F77=
16033 supports_anon_versioning=no
16034 case `$LD -v 2>/dev/null` in
16035 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16036 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16037 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16038 *\ 2.11.*) ;; # other 2.11 versions
16039 *) supports_anon_versioning=yes ;;
16042 # See if GNU ld supports shared libraries.
16044 aix3* | aix4* | aix5*)
16045 # On AIX/PPC, the GNU linker is very broken
16046 if test "$host_cpu" != ia64; then
16050 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16051 *** to be unable to reliably create shared libraries on AIX.
16052 *** Therefore, libtool is disabling shared libraries support. If you
16053 *** really care for shared libraries, you may want to modify your PATH
16054 *** so that a non-GNU linker is found, and then restart.
16061 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)'
16062 hardcode_libdir_flag_spec_F77='-L$libdir'
16063 hardcode_minus_L_F77=yes
16065 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16066 # that the semantics of dynamic libraries on AmigaOS, at least up
16067 # to version 4, is to share data among multiple programs linked
16068 # with the same dynamic library. Since this doesn't match the
16069 # behavior of shared libraries on other platforms, we can't use
16075 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16076 allow_undefined_flag_F77=unsupported
16077 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16078 # support --undefined. This deserves some investigation. FIXME
16079 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16085 cygwin* | mingw* | pw32*)
16086 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16087 # as there is no search path for DLLs.
16088 hardcode_libdir_flag_spec_F77='-L$libdir'
16089 allow_undefined_flag_F77=unsupported
16090 always_export_symbols_F77=no
16091 enable_shared_with_static_runtimes_F77=yes
16092 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16094 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16095 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16096 # If the export-symbols file already is a .def file (1st line
16097 # is EXPORTS), use it as is; otherwise, prepend...
16098 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16099 cp $export_symbols $output_objdir/$soname.def;
16101 echo EXPORTS > $output_objdir/$soname.def;
16102 cat $export_symbols >> $output_objdir/$soname.def;
16104 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16111 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16113 case $cc_basename,$host_cpu in
16114 pgcc*) # Portland Group C compiler
16115 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'
16116 tmp_addflag=' $pic_flag'
16118 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
16119 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'
16120 tmp_addflag=' $pic_flag -Mnomain' ;;
16121 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16122 tmp_addflag=' -i_dynamic' ;;
16123 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16124 tmp_addflag=' -i_dynamic -nofor_main' ;;
16125 ifc* | ifort*) # Intel Fortran compiler
16126 tmp_addflag=' -nofor_main' ;;
16128 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16130 if test $supports_anon_versioning = yes; then
16131 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16132 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16133 $echo "local: *; };" >> $output_objdir/$libname.ver~
16134 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16142 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16143 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16146 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16147 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16152 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16156 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16157 *** create shared libraries on Solaris systems. Therefore, libtool
16158 *** is disabling shared libraries support. We urge you to upgrade GNU
16159 *** binutils to release 2.9.1 or newer. Another option is to modify
16160 *** your PATH or compiler configuration so that the native linker is
16161 *** used, and then restart.
16164 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16165 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16166 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16173 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16175 hardcode_direct_F77=yes
16176 hardcode_shlibpath_var_F77=no
16180 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16181 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16182 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16189 if test "$ld_shlibs_F77" = no; then
16191 hardcode_libdir_flag_spec_F77=
16192 export_dynamic_flag_spec_F77=
16193 whole_archive_flag_spec_F77=
16196 # PORTME fill in a description of your system's linker (not GNU ld)
16199 allow_undefined_flag_F77=unsupported
16200 always_export_symbols_F77=yes
16201 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'
16202 # Note: this linker hardcodes the directories in LIBPATH if there
16203 # are no directories specified by -L.
16204 hardcode_minus_L_F77=yes
16205 if test "$GCC" = yes && test -z "$link_static_flag"; then
16206 # Neither direct hardcoding nor static linking is supported with a
16208 hardcode_direct_F77=unsupported
16213 if test "$host_cpu" = ia64; then
16214 # On IA64, the linker does run time linking by default, so we don't
16215 # have to do anything special.
16216 aix_use_runtimelinking=no
16217 exp_sym_flag='-Bexport'
16220 # If we're using GNU nm, then we don't want the "-C" option.
16221 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16222 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16223 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'
16225 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'
16227 aix_use_runtimelinking=no
16229 # Test if we are trying to use run time linking or normal
16230 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16231 # need to do runtime linking.
16232 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16233 for ld_flag in $LDFLAGS; do
16234 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16235 aix_use_runtimelinking=yes
16241 exp_sym_flag='-bexport'
16242 no_entry_flag='-bnoentry'
16245 # When large executables or shared objects are built, AIX ld can
16246 # have problems creating the table of contents. If linking a library
16247 # or program results in "error TOC overflow" add -mminimal-toc to
16248 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16249 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16251 archive_cmds_F77=''
16252 hardcode_direct_F77=yes
16253 hardcode_libdir_separator_F77=':'
16254 link_all_deplibs_F77=yes
16256 if test "$GCC" = yes; then
16257 case $host_os in aix4.[012]|aix4.[012].*)
16258 # We only want to do this on AIX 4.2 and lower, the check
16259 # below for broken collect2 doesn't work under 4.3+
16260 collect2name=`${CC} -print-prog-name=collect2`
16261 if test -f "$collect2name" && \
16262 strings "$collect2name" | grep resolve_lib_name >/dev/null
16264 # We have reworked collect2
16265 hardcode_direct_F77=yes
16267 # We have old collect2
16268 hardcode_direct_F77=unsupported
16269 # It fails to find uninstalled libraries when the uninstalled
16270 # path is not listed in the libpath. Setting hardcode_minus_L
16271 # to unsupported forces relinking
16272 hardcode_minus_L_F77=yes
16273 hardcode_libdir_flag_spec_F77='-L$libdir'
16274 hardcode_libdir_separator_F77=
16277 shared_flag='-shared'
16278 if test "$aix_use_runtimelinking" = yes; then
16279 shared_flag="$shared_flag "'${wl}-G'
16283 if test "$host_cpu" = ia64; then
16284 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16285 # chokes on -Wl,-G. The following line is correct:
16288 if test "$aix_use_runtimelinking" = yes; then
16289 shared_flag='${wl}-G'
16291 shared_flag='${wl}-bM:SRE'
16296 # It seems that -bexpall does not export symbols beginning with
16297 # underscore (_), so it is better to generate a list of symbols to export.
16298 always_export_symbols_F77=yes
16299 if test "$aix_use_runtimelinking" = yes; then
16300 # Warning - without using the other runtime loading flags (-brtl),
16301 # -berok will link without error, but may produce a broken library.
16302 allow_undefined_flag_F77='-berok'
16303 # Determine the default libpath from the value encoded in an empty executable.
16304 cat >conftest.$ac_ext <<_ACEOF
16309 rm -f conftest.$ac_objext conftest$ac_exeext
16310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16311 (eval $ac_link) 2>conftest.er1
16313 grep -v '^ *+' conftest.er1 >conftest.err
16315 cat conftest.err >&5
16316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16317 (exit $ac_status); } &&
16318 { ac_try='test -z "$ac_f77_werror_flag"
16319 || test ! -s conftest.err'
16320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16321 (eval $ac_try) 2>&5
16323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324 (exit $ac_status); }; } &&
16325 { ac_try='test -s conftest$ac_exeext'
16326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16327 (eval $ac_try) 2>&5
16329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16330 (exit $ac_status); }; }; then
16332 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16334 # Check for a 64-bit object if we didn't find anything.
16335 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; }
16338 echo "$as_me: failed program was:" >&5
16339 sed 's/^/| /' conftest.$ac_ext >&5
16342 rm -f conftest.err conftest.$ac_objext \
16343 conftest$ac_exeext conftest.$ac_ext
16344 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16346 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16347 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"
16349 if test "$host_cpu" = ia64; then
16350 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16351 allow_undefined_flag_F77="-z nodefs"
16352 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"
16354 # Determine the default libpath from the value encoded in an empty executable.
16355 cat >conftest.$ac_ext <<_ACEOF
16360 rm -f conftest.$ac_objext conftest$ac_exeext
16361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16362 (eval $ac_link) 2>conftest.er1
16364 grep -v '^ *+' conftest.er1 >conftest.err
16366 cat conftest.err >&5
16367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368 (exit $ac_status); } &&
16369 { ac_try='test -z "$ac_f77_werror_flag"
16370 || test ! -s conftest.err'
16371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16372 (eval $ac_try) 2>&5
16374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16375 (exit $ac_status); }; } &&
16376 { ac_try='test -s conftest$ac_exeext'
16377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16378 (eval $ac_try) 2>&5
16380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381 (exit $ac_status); }; }; then
16383 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16385 # Check for a 64-bit object if we didn't find anything.
16386 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; }
16389 echo "$as_me: failed program was:" >&5
16390 sed 's/^/| /' conftest.$ac_ext >&5
16393 rm -f conftest.err conftest.$ac_objext \
16394 conftest$ac_exeext conftest.$ac_ext
16395 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16397 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16398 # Warning - without using the other run time loading flags,
16399 # -berok will link without error, but may produce a broken library.
16400 no_undefined_flag_F77=' ${wl}-bernotok'
16401 allow_undefined_flag_F77=' ${wl}-berok'
16402 # -bexpall does not export symbols beginning with underscore (_)
16403 always_export_symbols_F77=yes
16404 # Exported symbols can be pulled into shared objects from archives
16405 whole_archive_flag_spec_F77=' '
16406 archive_cmds_need_lc_F77=yes
16407 # This is similar to how AIX traditionally builds it's shared libraries.
16408 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'
16414 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)'
16415 hardcode_libdir_flag_spec_F77='-L$libdir'
16416 hardcode_minus_L_F77=yes
16417 # see comment about different semantics on the GNU ld section
16422 export_dynamic_flag_spec_F77=-rdynamic
16425 cygwin* | mingw* | pw32*)
16426 # When not using gcc, we currently assume that we are using
16427 # Microsoft Visual C++.
16428 # hardcode_libdir_flag_spec is actually meaningless, as there is
16429 # no search path for DLLs.
16430 hardcode_libdir_flag_spec_F77=' '
16431 allow_undefined_flag_F77=unsupported
16432 # Tell ltmain to make .lib files, not .a files.
16434 # Tell ltmain to make .dll files, not .so files.
16436 # FIXME: Setting linknames here is a bad hack.
16437 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16438 # The linker will automatically build a .lib file if we build a DLL.
16439 old_archive_From_new_cmds_F77='true'
16440 # FIXME: Should let the user specify the lib program.
16441 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
16442 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16443 enable_shared_with_static_runtimes_F77=yes
16446 darwin* | rhapsody*)
16448 rhapsody* | darwin1.[012])
16449 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16452 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16453 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16455 case ${MACOSX_DEPLOYMENT_TARGET} in
16457 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16460 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16466 archive_cmds_need_lc_F77=no
16467 hardcode_direct_F77=no
16468 hardcode_automatic_F77=yes
16469 hardcode_shlibpath_var_F77=unsupported
16470 whole_archive_flag_spec_F77=''
16471 link_all_deplibs_F77=yes
16472 if test "$GCC" = yes ; then
16473 output_verbose_link_cmd='echo'
16474 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16475 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16476 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16477 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}'
16478 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}'
16480 case $cc_basename in
16482 output_verbose_link_cmd='echo'
16483 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16484 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16485 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16486 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}'
16487 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}'
16497 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16498 hardcode_libdir_flag_spec_F77='-L$libdir'
16499 hardcode_shlibpath_var_F77=no
16506 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16507 # support. Future versions do this automatically, but an explicit c++rt0.o
16508 # does not break anything, and helps significantly (at the cost of a little
16511 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16512 hardcode_libdir_flag_spec_F77='-R$libdir'
16513 hardcode_direct_F77=yes
16514 hardcode_shlibpath_var_F77=no
16517 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16519 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16520 hardcode_direct_F77=yes
16521 hardcode_minus_L_F77=yes
16522 hardcode_shlibpath_var_F77=no
16525 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16526 freebsd* | kfreebsd*-gnu | dragonfly*)
16527 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16528 hardcode_libdir_flag_spec_F77='-R$libdir'
16529 hardcode_direct_F77=yes
16530 hardcode_shlibpath_var_F77=no
16534 if test "$GCC" = yes; then
16535 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'
16537 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'
16539 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16540 hardcode_libdir_separator_F77=:
16541 hardcode_direct_F77=yes
16543 # hardcode_minus_L: Not really in the search PATH,
16544 # but as the default location of the library.
16545 hardcode_minus_L_F77=yes
16546 export_dynamic_flag_spec_F77='${wl}-E'
16550 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16551 case "$host_cpu" in
16553 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16556 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16560 case "$host_cpu" in
16562 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16565 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16569 if test "$with_gnu_ld" = no; then
16570 case "$host_cpu" in
16572 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16573 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16574 hardcode_libdir_separator_F77=:
16575 hardcode_direct_F77=no
16576 hardcode_shlibpath_var_F77=no
16579 hardcode_libdir_flag_spec_F77='-L$libdir'
16580 hardcode_direct_F77=no
16581 hardcode_shlibpath_var_F77=no
16583 # hardcode_minus_L: Not really in the search PATH,
16584 # but as the default location of the library.
16585 hardcode_minus_L_F77=yes
16588 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16589 hardcode_libdir_separator_F77=:
16590 hardcode_direct_F77=yes
16591 export_dynamic_flag_spec_F77='${wl}-E'
16593 # hardcode_minus_L: Not really in the search PATH,
16594 # but as the default location of the library.
16595 hardcode_minus_L_F77=yes
16601 irix5* | irix6* | nonstopux*)
16602 if test "$GCC" = yes; then
16603 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'
16605 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'
16606 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16608 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16609 hardcode_libdir_separator_F77=:
16610 link_all_deplibs_F77=yes
16614 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16615 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16617 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16619 hardcode_libdir_flag_spec_F77='-R$libdir'
16620 hardcode_direct_F77=yes
16621 hardcode_shlibpath_var_F77=no
16625 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16626 hardcode_direct_F77=yes
16627 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16628 hardcode_libdir_separator_F77=:
16629 hardcode_shlibpath_var_F77=no
16633 hardcode_direct_F77=yes
16634 hardcode_shlibpath_var_F77=no
16635 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16636 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16637 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16638 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16639 export_dynamic_flag_spec_F77='${wl}-E'
16642 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16643 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16644 hardcode_libdir_flag_spec_F77='-R$libdir'
16647 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16648 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16655 hardcode_libdir_flag_spec_F77='-L$libdir'
16656 hardcode_minus_L_F77=yes
16657 allow_undefined_flag_F77=unsupported
16658 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'
16659 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16663 if test "$GCC" = yes; then
16664 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16665 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'
16667 allow_undefined_flag_F77=' -expect_unresolved \*'
16668 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'
16670 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16671 hardcode_libdir_separator_F77=:
16674 osf4* | osf5*) # as osf3* with the addition of -msym flag
16675 if test "$GCC" = yes; then
16676 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16677 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'
16678 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16680 allow_undefined_flag_F77=' -expect_unresolved \*'
16681 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'
16682 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~
16683 $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'
16685 # Both c and cxx compiler support -rpath directly
16686 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16688 hardcode_libdir_separator_F77=:
16692 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16693 hardcode_shlibpath_var_F77=no
16694 export_dynamic_flag_spec_F77='${wl}-Bexport'
16695 runpath_var=LD_RUN_PATH
16696 hardcode_runpath_var=yes
16700 no_undefined_flag_F77=' -z text'
16701 if test "$GCC" = yes; then
16703 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16704 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16705 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16708 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16709 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16710 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16712 hardcode_libdir_flag_spec_F77='-R$libdir'
16713 hardcode_shlibpath_var_F77=no
16715 solaris2.[0-5] | solaris2.[0-5].*) ;;
16717 # The compiler driver will combine linker options so we
16718 # cannot just pass the convience library names through
16719 # without $wl, iff we do not link with $LD.
16720 # Luckily, gcc supports the same syntax we need for Sun Studio.
16721 # Supported since Solaris 2.6 (maybe 2.5.1?)
16724 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16726 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' ;;
16729 link_all_deplibs_F77=yes
16733 if test "x$host_vendor" = xsequent; then
16734 # Use $CC to link under sequent, because it throws in some extra .o
16735 # files that make .init and .fini sections work.
16736 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16738 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16740 hardcode_libdir_flag_spec_F77='-L$libdir'
16741 hardcode_direct_F77=yes
16742 hardcode_minus_L_F77=yes
16743 hardcode_shlibpath_var_F77=no
16747 case $host_vendor in
16749 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16750 hardcode_direct_F77=yes # is this really true???
16753 ## LD is ld it makes a PLAMLIB
16754 ## CC just makes a GrossModule.
16755 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16756 reload_cmds_F77='$CC -r -o $output$reload_objs'
16757 hardcode_direct_F77=no
16760 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16761 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16764 runpath_var='LD_RUN_PATH'
16765 hardcode_shlibpath_var_F77=no
16769 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16770 hardcode_shlibpath_var_F77=no
16771 export_dynamic_flag_spec_F77='-Bexport'
16775 if test -d /usr/nec; then
16776 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16777 hardcode_shlibpath_var_F77=no
16778 runpath_var=LD_RUN_PATH
16779 hardcode_runpath_var=yes
16785 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16786 hardcode_direct_F77=yes
16787 hardcode_minus_L_F77=no
16788 hardcode_shlibpath_var_F77=no
16789 hardcode_runpath_var=yes
16790 runpath_var=LD_RUN_PATH
16793 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16794 no_undefined_flag_F77='${wl}-z ${wl}text'
16795 if test "$GCC" = yes; then
16796 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16798 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16800 runpath_var='LD_RUN_PATH'
16801 hardcode_shlibpath_var_F77=no
16805 no_undefined_flag_F77=' -z text'
16806 # $CC -shared without GNU ld will not create a library from C++
16807 # object files and a static libstdc++, better avoid it by now
16808 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16809 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16810 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16811 hardcode_libdir_flag_spec_F77=
16812 hardcode_shlibpath_var_F77=no
16813 runpath_var='LD_RUN_PATH'
16817 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16818 hardcode_libdir_flag_spec_F77='-L$libdir'
16819 hardcode_shlibpath_var_F77=no
16828 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16829 echo "${ECHO_T}$ld_shlibs_F77" >&6
16830 test "$ld_shlibs_F77" = no && can_build_shared=no
16832 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16833 if test "$GCC" = yes; then
16834 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16838 # Do we need to explicitly link libc?
16840 case "x$archive_cmds_need_lc_F77" in
16842 # Assume -lc should be added
16843 archive_cmds_need_lc_F77=yes
16845 if test "$enable_shared" = yes && test "$GCC" = yes; then
16846 case $archive_cmds_F77 in
16848 # FIXME: we may have to deal with multi-command sequences.
16851 # Test whether the compiler implicitly links with -lc since on some
16852 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16853 # to ld, don't add -lc before -lgcc.
16854 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16855 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16857 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16860 (eval $ac_compile) 2>&5
16862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); } 2>conftest.err; then
16866 libobjs=conftest.$ac_objext
16868 wl=$lt_prog_compiler_wl_F77
16874 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16875 allow_undefined_flag_F77=
16876 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16877 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16880 (exit $ac_status); }
16882 archive_cmds_need_lc_F77=no
16884 archive_cmds_need_lc_F77=yes
16886 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16888 cat conftest.err 1>&5
16891 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16892 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
16899 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16900 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16901 library_names_spec=
16902 libname_spec='lib$name'
16906 postuninstall_cmds=
16910 shlibpath_overrides_runpath=unknown
16912 dynamic_linker="$host_os ld.so"
16913 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16914 if test "$GCC" = yes; then
16915 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16916 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16917 # if the path contains ";" then we assume it to be the separator
16918 # otherwise default to the standard path separator (i.e. ":") - it is
16919 # assumed that no part of a normal pathname contains ";" but that should
16920 # okay in the real world where ";" in dirpaths is itself problematic.
16921 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16923 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16926 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16928 need_lib_prefix=unknown
16929 hardcode_into_libs=no
16931 # when you set need_version to no, make sure it does not cause -set_version
16932 # flags to be left without arguments
16933 need_version=unknown
16938 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16939 shlibpath_var=LIBPATH
16941 # AIX 3 has no versioning support, so we append a major version to the name.
16942 soname_spec='${libname}${release}${shared_ext}$major'
16949 hardcode_into_libs=yes
16950 if test "$host_cpu" = ia64; then
16951 # AIX 5 supports IA64
16952 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16953 shlibpath_var=LD_LIBRARY_PATH
16955 # With GCC up to 2.95.x, collect2 would create an import file
16956 # for dependence libraries. The import file would start with
16957 # the line `#! .'. This would cause the generated library to
16958 # depend on `.', always an invalid library. This was fixed in
16959 # development snapshots of GCC prior to 3.0.
16961 aix4 | aix4.[01] | aix4.[01].*)
16962 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16964 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16967 can_build_shared=no
16971 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16972 # soname into executable. Probably we can add versioning support to
16973 # collect2, so additional links can be useful in future.
16974 if test "$aix_use_runtimelinking" = yes; then
16975 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16976 # instead of lib<name>.a to let people know that these are not
16977 # typical AIX shared libraries.
16978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16980 # We preserve .a as extension for shared libraries through AIX4.2
16981 # and later when we are not doing run time linking.
16982 library_names_spec='${libname}${release}.a $libname.a'
16983 soname_spec='${libname}${release}${shared_ext}$major'
16985 shlibpath_var=LIBPATH
16990 library_names_spec='$libname.ixlibrary $libname.a'
16991 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16992 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'
16996 library_names_spec='${libname}${shared_ext}'
16997 dynamic_linker="$host_os ld.so"
16998 shlibpath_var=LIBRARY_PATH
17004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17005 soname_spec='${libname}${release}${shared_ext}$major'
17006 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17007 shlibpath_var=LD_LIBRARY_PATH
17008 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17009 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17010 # the default ld.so.conf also contains /usr/contrib/lib and
17011 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17012 # libtool to hard-code these into programs
17015 cygwin* | mingw* | pw32*)
17016 version_type=windows
17021 case $GCC,$host_os in
17022 yes,cygwin* | yes,mingw* | yes,pw32*)
17023 library_names_spec='$libname.dll.a'
17024 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17025 postinstall_cmds='base_file=`basename \${file}`~
17026 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17027 dldir=$destdir/`dirname \$dlpath`~
17028 test -d \$dldir || mkdir -p \$dldir~
17029 $install_prog $dir/$dlname \$dldir/$dlname'
17030 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17031 dlpath=$dir/\$dldll~
17033 shlibpath_overrides_runpath=yes
17037 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17038 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17039 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17042 # MinGW DLLs use traditional 'lib' prefix
17043 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17044 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17045 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17046 # It is most probably a Windows format PATH printed by
17047 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17048 # path with ; separators, and with drive letters. We can handle the
17049 # drive letters (cygwin fileutils understands them), so leave them,
17050 # especially as we might pass files found there to a mingw objdump,
17051 # which wouldn't understand a cygwinified path. Ahh.
17052 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17054 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17058 # pw32 DLLs use 'pw' prefix rather than 'lib'
17059 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17065 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17068 dynamic_linker='Win32 ld.exe'
17069 # FIXME: first we should search . and the directory the executable is in
17073 darwin* | rhapsody*)
17074 dynamic_linker="$host_os dyld"
17075 version_type=darwin
17078 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17079 soname_spec='${libname}${release}${major}$shared_ext'
17080 shlibpath_overrides_runpath=yes
17081 shlibpath_var=DYLD_LIBRARY_PATH
17082 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17083 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17084 if test "$GCC" = yes; then
17085 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"`
17087 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17089 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17097 soname_spec='${libname}${release}${shared_ext}$major'
17098 shlibpath_var=LD_LIBRARY_PATH
17109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17110 soname_spec='${libname}${release}${shared_ext}$major'
17111 shlibpath_var=LD_LIBRARY_PATH
17112 shlibpath_overrides_runpath=no
17113 hardcode_into_libs=yes
17114 dynamic_linker='GNU ld.so'
17117 freebsd* | dragonfly*)
17118 # DragonFly does not have aout. When/if they implement a new
17119 # versioning mechanism, adjust this.
17120 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17121 version_type=freebsd-$objformat
17122 case $version_type in
17124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17129 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17133 shlibpath_var=LD_LIBRARY_PATH
17136 shlibpath_overrides_runpath=yes
17138 freebsd3.[01]* | freebsdelf3.[01]*)
17139 shlibpath_overrides_runpath=yes
17140 hardcode_into_libs=yes
17143 shlibpath_overrides_runpath=no
17144 hardcode_into_libs=yes
17153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17154 soname_spec='${libname}${release}${shared_ext}$major'
17155 shlibpath_var=LD_LIBRARY_PATH
17156 hardcode_into_libs=yes
17159 hpux9* | hpux10* | hpux11*)
17160 # Give a soname corresponding to the major version so that dld.sl refuses to
17161 # link against other versions.
17165 case "$host_cpu" in
17168 hardcode_into_libs=yes
17169 dynamic_linker="$host_os dld.so"
17170 shlibpath_var=LD_LIBRARY_PATH
17171 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17173 soname_spec='${libname}${release}${shared_ext}$major'
17174 if test "X$HPUX_IA64_MODE" = X32; then
17175 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17177 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17179 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17183 hardcode_into_libs=yes
17184 dynamic_linker="$host_os dld.sl"
17185 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17186 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17188 soname_spec='${libname}${release}${shared_ext}$major'
17189 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17190 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17194 dynamic_linker="$host_os dld.sl"
17195 shlibpath_var=SHLIB_PATH
17196 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17198 soname_spec='${libname}${release}${shared_ext}$major'
17201 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17202 postinstall_cmds='chmod 555 $lib'
17205 irix5* | irix6* | nonstopux*)
17207 nonstopux*) version_type=nonstopux ;;
17209 if test "$lt_cv_prog_gnu_ld" = yes; then
17217 soname_spec='${libname}${release}${shared_ext}$major'
17218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17220 irix5* | nonstopux*)
17221 libsuff= shlibsuff=
17224 case $LD in # libtool.m4 will add one of these switches to LD
17225 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17226 libsuff= shlibsuff= libmagic=32-bit;;
17227 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17228 libsuff=32 shlibsuff=N32 libmagic=N32;;
17229 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17230 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17231 *) libsuff= shlibsuff= libmagic=never-match;;
17235 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17236 shlibpath_overrides_runpath=no
17237 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17238 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17239 hardcode_into_libs=yes
17242 # No shared lib support for Linux oldld, aout, or coff.
17243 linux*oldld* | linux*aout* | linux*coff*)
17247 # This must be Linux ELF.
17252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17253 soname_spec='${libname}${release}${shared_ext}$major'
17254 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17255 shlibpath_var=LD_LIBRARY_PATH
17256 shlibpath_overrides_runpath=no
17257 # This implies no fast_install, which is unacceptable.
17258 # Some rework will be needed to allow for fast_install
17259 # before this can be enabled.
17260 hardcode_into_libs=yes
17262 # Append ld.so.conf contents to the search path
17263 if test -f /etc/ld.so.conf; then
17264 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' ' '`
17265 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17268 # We used to test for /lib/ld.so.1 and disable shared libraries on
17269 # powerpc, because MkLinux only supported shared libraries with the
17270 # GNU dynamic linker. Since this was broken with cross compilers,
17271 # most powerpc-linux boxes support dynamic linking these days and
17272 # people can always --disable-shared, the test was removed, and we
17273 # assume the GNU/Linux dynamic linker is in use.
17274 dynamic_linker='GNU/Linux ld.so'
17281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17282 soname_spec='${libname}${release}${shared_ext}$major'
17283 shlibpath_var=LD_LIBRARY_PATH
17284 shlibpath_overrides_runpath=no
17285 hardcode_into_libs=yes
17286 dynamic_linker='GNU ld.so'
17293 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17295 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17296 dynamic_linker='NetBSD (a.out) ld.so'
17298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17299 soname_spec='${libname}${release}${shared_ext}$major'
17300 dynamic_linker='NetBSD ld.elf_so'
17302 shlibpath_var=LD_LIBRARY_PATH
17303 shlibpath_overrides_runpath=yes
17304 hardcode_into_libs=yes
17309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17310 shlibpath_var=LD_LIBRARY_PATH
17311 shlibpath_overrides_runpath=yes
17318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17319 soname_spec='${libname}${release}${shared_ext}$major'
17320 shlibpath_var=LD_LIBRARY_PATH
17321 shlibpath_overrides_runpath=yes
17327 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17329 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17330 *) need_version=no ;;
17332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17333 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17334 shlibpath_var=LD_LIBRARY_PATH
17335 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17337 openbsd2.[89] | openbsd2.[89].*)
17338 shlibpath_overrides_runpath=no
17341 shlibpath_overrides_runpath=yes
17345 shlibpath_overrides_runpath=yes
17350 libname_spec='$name'
17353 library_names_spec='$libname${shared_ext} $libname.a'
17354 dynamic_linker='OS/2 ld.exe'
17355 shlibpath_var=LIBPATH
17358 osf3* | osf4* | osf5*)
17362 soname_spec='${libname}${release}${shared_ext}$major'
17363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17364 shlibpath_var=LD_LIBRARY_PATH
17365 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17366 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17371 soname_spec='${libname}${release}${shared_ext}$major'
17372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17373 shlibpath_var=LD_LIBRARY_PATH
17380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17381 soname_spec='${libname}${release}${shared_ext}$major'
17382 shlibpath_var=LD_LIBRARY_PATH
17383 shlibpath_overrides_runpath=yes
17384 hardcode_into_libs=yes
17385 # ldd complains unless libraries are executable
17386 postinstall_cmds='chmod +x $lib'
17391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17392 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17393 shlibpath_var=LD_LIBRARY_PATH
17394 shlibpath_overrides_runpath=yes
17395 if test "$with_gnu_ld" = yes; then
17401 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17404 soname_spec='${libname}${release}${shared_ext}$major'
17405 shlibpath_var=LD_LIBRARY_PATH
17406 case $host_vendor in
17408 shlibpath_overrides_runpath=no
17410 export_dynamic_flag_spec='${wl}-Blargedynsym'
17411 runpath_var=LD_RUN_PATH
17419 shlibpath_overrides_runpath=no
17420 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17426 if test -d /usr/nec ;then
17428 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17429 soname_spec='$libname${shared_ext}.$major'
17430 shlibpath_var=LD_LIBRARY_PATH
17436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17437 soname_spec='${libname}${release}${shared_ext}$major'
17438 shlibpath_var=LD_LIBRARY_PATH
17445 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17446 echo "${ECHO_T}$dynamic_linker" >&6
17447 test "$dynamic_linker" = no && can_build_shared=no
17449 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17450 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17451 hardcode_action_F77=
17452 if test -n "$hardcode_libdir_flag_spec_F77" || \
17453 test -n "$runpath_var_F77" || \
17454 test "X$hardcode_automatic_F77" = "Xyes" ; then
17456 # We can hardcode non-existant directories.
17457 if test "$hardcode_direct_F77" != no &&
17458 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17459 # have to relink, otherwise we might link with an installed library
17460 # when we should be linking with a yet-to-be-installed one
17461 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17462 test "$hardcode_minus_L_F77" != no; then
17463 # Linking always hardcodes the temporary library directory.
17464 hardcode_action_F77=relink
17466 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17467 hardcode_action_F77=immediate
17470 # We cannot hardcode anything, or else we can only hardcode existing
17472 hardcode_action_F77=unsupported
17474 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17475 echo "${ECHO_T}$hardcode_action_F77" >&6
17477 if test "$hardcode_action_F77" = relink; then
17478 # Fast installation is not supported
17479 enable_fast_install=no
17480 elif test "$shlibpath_overrides_runpath" = yes ||
17481 test "$enable_shared" = no; then
17482 # Fast installation is not necessary
17483 enable_fast_install=needless
17488 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17489 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17490 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17491 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17492 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17493 echo "$as_me:$LINENO: result: yes" >&5
17494 echo "${ECHO_T}yes" >&6
17496 # FIXME - insert some real tests, host_os isn't really good enough
17499 if test -n "$STRIP" ; then
17500 striplib="$STRIP -x"
17501 echo "$as_me:$LINENO: result: yes" >&5
17502 echo "${ECHO_T}yes" >&6
17504 echo "$as_me:$LINENO: result: no" >&5
17505 echo "${ECHO_T}no" >&6
17509 echo "$as_me:$LINENO: result: no" >&5
17510 echo "${ECHO_T}no" >&6
17517 # The else clause should only fire when bootstrapping the
17518 # libtool distribution, otherwise you forgot to ship ltmain.sh
17519 # with your package, and you will get complaints that there are
17520 # no rules to generate ltmain.sh.
17521 if test -f "$ltmain"; then
17522 # See if we are running on zsh, and set the options which allow our commands through
17523 # without removal of \ escapes.
17524 if test -n "${ZSH_VERSION+set}" ; then
17525 setopt NO_GLOB_SUBST
17527 # Now quote all the things that may contain metacharacters while being
17528 # careful not to overquote the AC_SUBSTed values. We take copies of the
17529 # variables and quote the copies for generation of the libtool script.
17530 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17532 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17533 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17534 deplibs_check_method reload_flag reload_cmds need_locks \
17535 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17536 lt_cv_sys_global_symbol_to_c_name_address \
17537 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17538 old_postinstall_cmds old_postuninstall_cmds \
17542 lt_prog_compiler_wl_F77 \
17543 lt_prog_compiler_pic_F77 \
17544 lt_prog_compiler_static_F77 \
17545 lt_prog_compiler_no_builtin_flag_F77 \
17546 export_dynamic_flag_spec_F77 \
17547 thread_safe_flag_spec_F77 \
17548 whole_archive_flag_spec_F77 \
17549 enable_shared_with_static_runtimes_F77 \
17550 old_archive_cmds_F77 \
17551 old_archive_from_new_cmds_F77 \
17552 predep_objects_F77 \
17553 postdep_objects_F77 \
17556 compiler_lib_search_path_F77 \
17558 archive_expsym_cmds_F77 \
17559 postinstall_cmds_F77 \
17560 postuninstall_cmds_F77 \
17561 old_archive_from_expsyms_cmds_F77 \
17562 allow_undefined_flag_F77 \
17563 no_undefined_flag_F77 \
17564 export_symbols_cmds_F77 \
17565 hardcode_libdir_flag_spec_F77 \
17566 hardcode_libdir_flag_spec_ld_F77 \
17567 hardcode_libdir_separator_F77 \
17568 hardcode_automatic_F77 \
17570 module_expsym_cmds_F77 \
17571 lt_cv_prog_compiler_c_o_F77 \
17572 exclude_expsyms_F77 \
17573 include_expsyms_F77; do
17576 old_archive_cmds_F77 | \
17577 old_archive_from_new_cmds_F77 | \
17578 archive_cmds_F77 | \
17579 archive_expsym_cmds_F77 | \
17580 module_cmds_F77 | \
17581 module_expsym_cmds_F77 | \
17582 old_archive_from_expsyms_cmds_F77 | \
17583 export_symbols_cmds_F77 | \
17584 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17585 postinstall_cmds | postuninstall_cmds | \
17586 old_postinstall_cmds | old_postuninstall_cmds | \
17587 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17588 # Double-quote double-evaled strings.
17589 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17592 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17598 *'\$0 --fallback-echo"')
17599 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17605 cat <<__EOF__ >> "$cfgfile"
17606 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17608 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17610 # Shell to use when invoking shell scripts.
17613 # Whether or not to build shared libraries.
17614 build_libtool_libs=$enable_shared
17616 # Whether or not to build static libraries.
17617 build_old_libs=$enable_static
17619 # Whether or not to add -lc for building shared libraries.
17620 build_libtool_need_lc=$archive_cmds_need_lc_F77
17622 # Whether or not to disallow shared libs when runtime libs are static
17623 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17625 # Whether or not to optimize for fast installation.
17626 fast_install=$enable_fast_install
17629 host_alias=$host_alias
17633 # The build system.
17634 build_alias=$build_alias
17638 # An echo program that does not interpret backslashes.
17643 AR_FLAGS=$lt_AR_FLAGS
17648 # A language-specific compiler.
17649 CC=$lt_compiler_F77
17651 # Is the compiler the GNU C compiler?
17657 # The linker used to build libraries.
17660 # Whether we need hard or soft links.
17663 # A BSD-compatible nm program.
17666 # A symbol stripping program
17669 # Used to examine libraries when file_magic_cmd begins "file"
17670 MAGIC_CMD=$MAGIC_CMD
17672 # Used on cygwin: DLL creation program.
17675 # Used on cygwin: object dumper.
17678 # Used on cygwin: assembler.
17681 # The name of the directory that contains temporary libtool files.
17684 # How to create reloadable object files.
17685 reload_flag=$lt_reload_flag
17686 reload_cmds=$lt_reload_cmds
17688 # How to pass a linker flag through the compiler.
17689 wl=$lt_lt_prog_compiler_wl_F77
17691 # Object file suffix (normally "o").
17692 objext="$ac_objext"
17694 # Old archive suffix (normally "a").
17697 # Shared library suffix (normally ".so").
17698 shrext_cmds='$shrext_cmds'
17700 # Executable file suffix (normally "").
17703 # Additional compiler flags for building library objects.
17704 pic_flag=$lt_lt_prog_compiler_pic_F77
17707 # What is the maximum length of a command?
17708 max_cmd_len=$lt_cv_sys_max_cmd_len
17710 # Does compiler simultaneously support -c and -o options?
17711 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17713 # Must we lock files when doing compilation?
17714 need_locks=$lt_need_locks
17716 # Do we need the lib prefix for modules?
17717 need_lib_prefix=$need_lib_prefix
17719 # Do we need a version for libraries?
17720 need_version=$need_version
17722 # Whether dlopen is supported.
17723 dlopen_support=$enable_dlopen
17725 # Whether dlopen of programs is supported.
17726 dlopen_self=$enable_dlopen_self
17728 # Whether dlopen of statically linked programs is supported.
17729 dlopen_self_static=$enable_dlopen_self_static
17731 # Compiler flag to prevent dynamic linking.
17732 link_static_flag=$lt_lt_prog_compiler_static_F77
17734 # Compiler flag to turn off builtin functions.
17735 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17737 # Compiler flag to allow reflexive dlopens.
17738 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17740 # Compiler flag to generate shared objects directly from archives.
17741 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17743 # Compiler flag to generate thread-safe objects.
17744 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17746 # Library versioning type.
17747 version_type=$version_type
17749 # Format of library name prefix.
17750 libname_spec=$lt_libname_spec
17752 # List of archive names. First name is the real one, the rest are links.
17753 # The last name is the one that the linker finds with -lNAME.
17754 library_names_spec=$lt_library_names_spec
17756 # The coded name of the library, if different from the real name.
17757 soname_spec=$lt_soname_spec
17759 # Commands used to build and install an old-style archive.
17761 old_archive_cmds=$lt_old_archive_cmds_F77
17762 old_postinstall_cmds=$lt_old_postinstall_cmds
17763 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17765 # Create an old-style archive from a shared archive.
17766 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17768 # Create a temporary old-style archive to link instead of a shared archive.
17769 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17771 # Commands used to build and install a shared archive.
17772 archive_cmds=$lt_archive_cmds_F77
17773 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17774 postinstall_cmds=$lt_postinstall_cmds
17775 postuninstall_cmds=$lt_postuninstall_cmds
17777 # Commands used to build a loadable module (assumed same as above if empty)
17778 module_cmds=$lt_module_cmds_F77
17779 module_expsym_cmds=$lt_module_expsym_cmds_F77
17781 # Commands to strip libraries.
17782 old_striplib=$lt_old_striplib
17783 striplib=$lt_striplib
17785 # Dependencies to place before the objects being linked to create a
17787 predep_objects=$lt_predep_objects_F77
17789 # Dependencies to place after the objects being linked to create a
17791 postdep_objects=$lt_postdep_objects_F77
17793 # Dependencies to place before the objects being linked to create a
17795 predeps=$lt_predeps_F77
17797 # Dependencies to place after the objects being linked to create a
17799 postdeps=$lt_postdeps_F77
17801 # The library search path used internally by the compiler when linking
17802 # a shared library.
17803 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17805 # Method to check whether dependent libraries are shared objects.
17806 deplibs_check_method=$lt_deplibs_check_method
17808 # Command to use when deplibs_check_method == file_magic.
17809 file_magic_cmd=$lt_file_magic_cmd
17811 # Flag that allows shared libraries with undefined symbols to be built.
17812 allow_undefined_flag=$lt_allow_undefined_flag_F77
17814 # Flag that forces no undefined symbols.
17815 no_undefined_flag=$lt_no_undefined_flag_F77
17817 # Commands used to finish a libtool library installation in a directory.
17818 finish_cmds=$lt_finish_cmds
17820 # Same as above, but a single script fragment to be evaled but not shown.
17821 finish_eval=$lt_finish_eval
17823 # Take the output of nm and produce a listing of raw symbols and C names.
17824 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17826 # Transform the output of nm in a proper C declaration
17827 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17829 # Transform the output of nm in a C name address pair
17830 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17832 # This is the shared library runtime path variable.
17833 runpath_var=$runpath_var
17835 # This is the shared library path variable.
17836 shlibpath_var=$shlibpath_var
17838 # Is shlibpath searched before the hard-coded library search path?
17839 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17841 # How to hardcode a shared library path into an executable.
17842 hardcode_action=$hardcode_action_F77
17844 # Whether we should hardcode library paths into libraries.
17845 hardcode_into_libs=$hardcode_into_libs
17847 # Flag to hardcode \$libdir into a binary during linking.
17848 # This must work even if \$libdir does not exist.
17849 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17851 # If ld is used when linking, flag to hardcode \$libdir into
17852 # a binary during linking. This must work even if \$libdir does
17854 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17856 # Whether we need a single -rpath flag with a separated argument.
17857 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17859 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17860 # resulting binary.
17861 hardcode_direct=$hardcode_direct_F77
17863 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17864 # resulting binary.
17865 hardcode_minus_L=$hardcode_minus_L_F77
17867 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17868 # the resulting binary.
17869 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17871 # Set to yes if building a shared library automatically hardcodes DIR into the library
17872 # and all subsequent libraries and executables linked against it.
17873 hardcode_automatic=$hardcode_automatic_F77
17875 # Variables whose values should be saved in libtool wrapper scripts and
17876 # restored at relink time.
17877 variables_saved_for_relink="$variables_saved_for_relink"
17879 # Whether libtool must link a program against all its dependency libraries.
17880 link_all_deplibs=$link_all_deplibs_F77
17882 # Compile-time system search path for libraries
17883 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17885 # Run-time system search path for libraries
17886 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17888 # Fix the shell variable \$srcfile for the compiler.
17889 fix_srcfile_path="$fix_srcfile_path_F77"
17891 # Set to yes if exported symbols are required.
17892 always_export_symbols=$always_export_symbols_F77
17894 # The commands to list exported symbols.
17895 export_symbols_cmds=$lt_export_symbols_cmds_F77
17897 # The commands to extract the exported symbol list from a shared archive.
17898 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17900 # Symbols that should not be listed in the preloaded symbols.
17901 exclude_expsyms=$lt_exclude_expsyms_F77
17903 # Symbols that must always be exported.
17904 include_expsyms=$lt_include_expsyms_F77
17906 # ### END LIBTOOL TAG CONFIG: $tagname
17912 # If there is no Makefile yet, we rely on a make rule to execute
17913 # `config.status --recheck' to rerun these tests and create the
17914 # libtool script then.
17915 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17916 if test -f "$ltmain_in"; then
17917 test -f Makefile && make "$ltmain"
17923 ac_cpp='$CPP $CPPFLAGS'
17924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17936 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17940 # Source file extension for Java test sources.
17943 # Object file extension for compiled Java test sources.
17947 # Code to be used in simple compile tests
17948 lt_simple_compile_test_code="class foo {}\n"
17950 # Code to be used in simple link tests
17951 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17953 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17955 # If no C compiler was specified, use CC.
17958 # Allow CC to be a program name with arguments.
17962 # save warnings/boilerplate of simple test code
17963 ac_outfile=conftest.$ac_objext
17964 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17965 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
17966 _lt_compiler_boilerplate=`cat conftest.err`
17969 ac_outfile=conftest.$ac_objext
17970 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17971 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
17972 _lt_linker_boilerplate=`cat conftest.err`
17976 # Allow CC to be a program name with arguments.
17981 for cc_temp in $compiler""; do
17983 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17984 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17989 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17992 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17993 archive_cmds_need_lc_GCJ=no
17995 old_archive_cmds_GCJ=$old_archive_cmds
17998 lt_prog_compiler_no_builtin_flag_GCJ=
18000 if test "$GCC" = yes; then
18001 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
18004 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18005 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
18006 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
18007 echo $ECHO_N "(cached) $ECHO_C" >&6
18009 lt_cv_prog_compiler_rtti_exceptions=no
18010 ac_outfile=conftest.$ac_objext
18011 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18012 lt_compiler_flag="-fno-rtti -fno-exceptions"
18013 # Insert the option either (1) after the last *FLAGS variable, or
18014 # (2) before a word containing "conftest.", or (3) at the end.
18015 # Note that $ac_compile itself does not contain backslashes and begins
18016 # with a dollar sign (not a hyphen), so the echo should work correctly.
18017 # The option is referenced via a variable to avoid confusing sed.
18018 lt_compile=`echo "$ac_compile" | $SED \
18019 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18020 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18021 -e 's:$: $lt_compiler_flag:'`
18022 (eval echo "\"\$as_me:18022: $lt_compile\"" >&5)
18023 (eval "$lt_compile" 2>conftest.err)
18025 cat conftest.err >&5
18026 echo "$as_me:18026: \$? = $ac_status" >&5
18027 if (exit $ac_status) && test -s "$ac_outfile"; then
18028 # The compiler can only warn and ignore the option if not recognized
18029 # So say no if there are warnings other than the usual output.
18030 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
18031 $SED '/^$/d' conftest.err >conftest.er2
18032 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
18033 lt_cv_prog_compiler_rtti_exceptions=yes
18039 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18040 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
18042 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18043 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18050 lt_prog_compiler_wl_GCJ=
18051 lt_prog_compiler_pic_GCJ=
18052 lt_prog_compiler_static_GCJ=
18054 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18055 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18057 if test "$GCC" = yes; then
18058 lt_prog_compiler_wl_GCJ='-Wl,'
18059 lt_prog_compiler_static_GCJ='-static'
18063 # All AIX code is PIC.
18064 if test "$host_cpu" = ia64; then
18065 # AIX 5 now supports IA64 processor
18066 lt_prog_compiler_static_GCJ='-Bstatic'
18071 # FIXME: we need at least 68020 code to build shared libraries, but
18072 # adding the `-m68020' flag to GCC prevents building anything better,
18074 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18077 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18078 # PIC is the default for these OSes.
18081 mingw* | pw32* | os2*)
18082 # This hack is so that the source file can tell whether it is being
18083 # built for inclusion in a dll (and should export symbols for example).
18084 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18087 darwin* | rhapsody*)
18088 # PIC is the default on this platform
18089 # Common symbols not allowed in MH_DYLIB files
18090 lt_prog_compiler_pic_GCJ='-fno-common'
18094 # Just because we use GCC doesn't mean we suddenly get shared libraries
18095 # on systems that don't support them.
18096 lt_prog_compiler_can_build_shared_GCJ=no
18101 if test -d /usr/nec; then
18102 lt_prog_compiler_pic_GCJ=-Kconform_pic
18107 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18108 # not for PA HP-UX.
18109 case "$host_cpu" in
18114 lt_prog_compiler_pic_GCJ='-fPIC'
18120 lt_prog_compiler_pic_GCJ='-fPIC'
18124 # PORTME Check for flag to pass linker flags through the system compiler.
18127 lt_prog_compiler_wl_GCJ='-Wl,'
18128 if test "$host_cpu" = ia64; then
18129 # AIX 5 now supports IA64 processor
18130 lt_prog_compiler_static_GCJ='-Bstatic'
18132 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18136 # PIC is the default on this platform
18137 # Common symbols not allowed in MH_DYLIB files
18138 case $cc_basename in
18140 lt_prog_compiler_pic_GCJ='-qnocommon'
18141 lt_prog_compiler_wl_GCJ='-Wl,'
18146 mingw* | pw32* | os2*)
18147 # This hack is so that the source file can tell whether it is being
18148 # built for inclusion in a dll (and should export symbols for example).
18149 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18152 hpux9* | hpux10* | hpux11*)
18153 lt_prog_compiler_wl_GCJ='-Wl,'
18154 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18155 # not for PA HP-UX.
18156 case "$host_cpu" in
18161 lt_prog_compiler_pic_GCJ='+Z'
18164 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18165 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18168 irix5* | irix6* | nonstopux*)
18169 lt_prog_compiler_wl_GCJ='-Wl,'
18170 # PIC (with -KPIC) is the default.
18171 lt_prog_compiler_static_GCJ='-non_shared'
18175 lt_prog_compiler_pic_GCJ='-KPIC'
18176 lt_prog_compiler_static_GCJ='-Bstatic'
18180 case $cc_basename in
18182 lt_prog_compiler_wl_GCJ='-Wl,'
18183 lt_prog_compiler_pic_GCJ='-KPIC'
18184 lt_prog_compiler_static_GCJ='-static'
18186 pgcc* | pgf77* | pgf90*)
18187 # Portland Group compilers (*not* the Pentium gcc compiler,
18188 # which looks to be a dead project)
18189 lt_prog_compiler_wl_GCJ='-Wl,'
18190 lt_prog_compiler_pic_GCJ='-fpic'
18191 lt_prog_compiler_static_GCJ='-static'
18194 lt_prog_compiler_wl_GCJ='-Wl,'
18195 # All Alpha code is PIC.
18196 lt_prog_compiler_static_GCJ='-non_shared'
18201 osf3* | osf4* | osf5*)
18202 lt_prog_compiler_wl_GCJ='-Wl,'
18203 # All OSF/1 code is PIC.
18204 lt_prog_compiler_static_GCJ='-non_shared'
18208 lt_prog_compiler_pic_GCJ='-Kpic'
18209 lt_prog_compiler_static_GCJ='-dn'
18213 lt_prog_compiler_pic_GCJ='-KPIC'
18214 lt_prog_compiler_static_GCJ='-Bstatic'
18215 case $cc_basename in
18216 f77* | f90* | f95*)
18217 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18219 lt_prog_compiler_wl_GCJ='-Wl,';;
18224 lt_prog_compiler_wl_GCJ='-Qoption ld '
18225 lt_prog_compiler_pic_GCJ='-PIC'
18226 lt_prog_compiler_static_GCJ='-Bstatic'
18229 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18230 lt_prog_compiler_wl_GCJ='-Wl,'
18231 lt_prog_compiler_pic_GCJ='-KPIC'
18232 lt_prog_compiler_static_GCJ='-Bstatic'
18236 if test -d /usr/nec ;then
18237 lt_prog_compiler_pic_GCJ='-Kconform_pic'
18238 lt_prog_compiler_static_GCJ='-Bstatic'
18243 lt_prog_compiler_wl_GCJ='-Wl,'
18244 lt_prog_compiler_can_build_shared_GCJ=no
18248 lt_prog_compiler_pic_GCJ='-pic'
18249 lt_prog_compiler_static_GCJ='-Bstatic'
18253 lt_prog_compiler_can_build_shared_GCJ=no
18258 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18259 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
18262 # Check to make sure the PIC flag actually works.
18264 if test -n "$lt_prog_compiler_pic_GCJ"; then
18266 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18267 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
18268 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18269 echo $ECHO_N "(cached) $ECHO_C" >&6
18271 lt_prog_compiler_pic_works_GCJ=no
18272 ac_outfile=conftest.$ac_objext
18273 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18274 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18275 # Insert the option either (1) after the last *FLAGS variable, or
18276 # (2) before a word containing "conftest.", or (3) at the end.
18277 # Note that $ac_compile itself does not contain backslashes and begins
18278 # with a dollar sign (not a hyphen), so the echo should work correctly.
18279 # The option is referenced via a variable to avoid confusing sed.
18280 lt_compile=`echo "$ac_compile" | $SED \
18281 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18282 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18283 -e 's:$: $lt_compiler_flag:'`
18284 (eval echo "\"\$as_me:18284: $lt_compile\"" >&5)
18285 (eval "$lt_compile" 2>conftest.err)
18287 cat conftest.err >&5
18288 echo "$as_me:18288: \$? = $ac_status" >&5
18289 if (exit $ac_status) && test -s "$ac_outfile"; then
18290 # The compiler can only warn and ignore the option if not recognized
18291 # So say no if there are warnings other than the usual output.
18292 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
18293 $SED '/^$/d' conftest.err >conftest.er2
18294 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
18295 lt_prog_compiler_pic_works_GCJ=yes
18301 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18302 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
18304 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18305 case $lt_prog_compiler_pic_GCJ in
18307 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18310 lt_prog_compiler_pic_GCJ=
18311 lt_prog_compiler_can_build_shared_GCJ=no
18316 # For platforms which do not support PIC, -DPIC is meaningless:
18318 lt_prog_compiler_pic_GCJ=
18321 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18325 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18326 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18327 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18328 echo $ECHO_N "(cached) $ECHO_C" >&6
18330 lt_cv_prog_compiler_c_o_GCJ=no
18331 $rm -r conftest 2>/dev/null
18335 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18337 lt_compiler_flag="-o out/conftest2.$ac_objext"
18338 # Insert the option either (1) after the last *FLAGS variable, or
18339 # (2) before a word containing "conftest.", or (3) at the end.
18340 # Note that $ac_compile itself does not contain backslashes and begins
18341 # with a dollar sign (not a hyphen), so the echo should work correctly.
18342 lt_compile=`echo "$ac_compile" | $SED \
18343 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18344 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18345 -e 's:$: $lt_compiler_flag:'`
18346 (eval echo "\"\$as_me:18346: $lt_compile\"" >&5)
18347 (eval "$lt_compile" 2>out/conftest.err)
18349 cat out/conftest.err >&5
18350 echo "$as_me:18350: \$? = $ac_status" >&5
18351 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18353 # The compiler can only warn and ignore the option if not recognized
18354 # So say no if there are warnings
18355 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
18356 $SED '/^$/d' out/conftest.err >out/conftest.er2
18357 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18358 lt_cv_prog_compiler_c_o_GCJ=yes
18363 # SGI C++ compiler will create directory out/ii_files/ for
18364 # template instantiation
18365 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18366 $rm out/* && rmdir out
18372 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18373 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
18376 hard_links="nottested"
18377 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18378 # do not overwrite the value of need_locks provided by the user
18379 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18380 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18383 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18385 ln conftest.a conftest.b 2>&5 || hard_links=no
18386 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18387 echo "$as_me:$LINENO: result: $hard_links" >&5
18388 echo "${ECHO_T}$hard_links" >&6
18389 if test "$hard_links" = no; then
18390 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18391 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18398 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18399 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18402 allow_undefined_flag_GCJ=
18403 enable_shared_with_static_runtimes_GCJ=no
18405 archive_expsym_cmds_GCJ=
18406 old_archive_From_new_cmds_GCJ=
18407 old_archive_from_expsyms_cmds_GCJ=
18408 export_dynamic_flag_spec_GCJ=
18409 whole_archive_flag_spec_GCJ=
18410 thread_safe_flag_spec_GCJ=
18411 hardcode_libdir_flag_spec_GCJ=
18412 hardcode_libdir_flag_spec_ld_GCJ=
18413 hardcode_libdir_separator_GCJ=
18414 hardcode_direct_GCJ=no
18415 hardcode_minus_L_GCJ=no
18416 hardcode_shlibpath_var_GCJ=unsupported
18417 link_all_deplibs_GCJ=unknown
18418 hardcode_automatic_GCJ=no
18420 module_expsym_cmds_GCJ=
18421 always_export_symbols_GCJ=no
18422 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18423 # include_expsyms should be a list of space-separated symbols to be *always*
18424 # included in the symbol list
18425 include_expsyms_GCJ=
18426 # exclude_expsyms can be an extended regexp of symbols to exclude
18427 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18428 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18429 # as well as any symbol that contains `d'.
18430 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18431 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18432 # platforms (ab)use it in PIC code, but their linkers get confused if
18433 # the symbol is explicitly referenced. Since portable code cannot
18434 # rely on this symbol name, it's probably fine to never include it in
18435 # preloaded symbol tables.
18436 extract_expsyms_cmds=
18437 # Just being paranoid about ensuring that cc_basename is set.
18438 for cc_temp in $compiler""; do
18440 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18441 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18446 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18449 cygwin* | mingw* | pw32*)
18450 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18451 # When not using gcc, we currently assume that we are using
18452 # Microsoft Visual C++.
18453 if test "$GCC" != yes; then
18463 if test "$with_gnu_ld" = yes; then
18464 # If archive_cmds runs LD, not CC, wlarc should be empty
18467 # Set some defaults for GNU ld with shared library support. These
18468 # are reset later if shared libraries are not supported. Putting them
18469 # here allows them to be overridden if necessary.
18470 runpath_var=LD_RUN_PATH
18471 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18472 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18473 # ancient GNU ld didn't support --whole-archive et. al.
18474 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18475 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18477 whole_archive_flag_spec_GCJ=
18479 supports_anon_versioning=no
18480 case `$LD -v 2>/dev/null` in
18481 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18482 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18483 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18484 *\ 2.11.*) ;; # other 2.11 versions
18485 *) supports_anon_versioning=yes ;;
18488 # See if GNU ld supports shared libraries.
18490 aix3* | aix4* | aix5*)
18491 # On AIX/PPC, the GNU linker is very broken
18492 if test "$host_cpu" != ia64; then
18496 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18497 *** to be unable to reliably create shared libraries on AIX.
18498 *** Therefore, libtool is disabling shared libraries support. If you
18499 *** really care for shared libraries, you may want to modify your PATH
18500 *** so that a non-GNU linker is found, and then restart.
18507 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)'
18508 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18509 hardcode_minus_L_GCJ=yes
18511 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18512 # that the semantics of dynamic libraries on AmigaOS, at least up
18513 # to version 4, is to share data among multiple programs linked
18514 # with the same dynamic library. Since this doesn't match the
18515 # behavior of shared libraries on other platforms, we can't use
18521 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18522 allow_undefined_flag_GCJ=unsupported
18523 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18524 # support --undefined. This deserves some investigation. FIXME
18525 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18531 cygwin* | mingw* | pw32*)
18532 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18533 # as there is no search path for DLLs.
18534 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18535 allow_undefined_flag_GCJ=unsupported
18536 always_export_symbols_GCJ=no
18537 enable_shared_with_static_runtimes_GCJ=yes
18538 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18540 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18541 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
18542 # If the export-symbols file already is a .def file (1st line
18543 # is EXPORTS), use it as is; otherwise, prepend...
18544 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18545 cp $export_symbols $output_objdir/$soname.def;
18547 echo EXPORTS > $output_objdir/$soname.def;
18548 cat $export_symbols >> $output_objdir/$soname.def;
18550 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
18557 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18559 case $cc_basename,$host_cpu in
18560 pgcc*) # Portland Group C compiler
18561 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'
18562 tmp_addflag=' $pic_flag'
18564 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
18565 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'
18566 tmp_addflag=' $pic_flag -Mnomain' ;;
18567 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18568 tmp_addflag=' -i_dynamic' ;;
18569 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18570 tmp_addflag=' -i_dynamic -nofor_main' ;;
18571 ifc* | ifort*) # Intel Fortran compiler
18572 tmp_addflag=' -nofor_main' ;;
18574 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18576 if test $supports_anon_versioning = yes; then
18577 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18578 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18579 $echo "local: *; };" >> $output_objdir/$libname.ver~
18580 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18588 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18589 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18592 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18593 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18598 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18602 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18603 *** create shared libraries on Solaris systems. Therefore, libtool
18604 *** is disabling shared libraries support. We urge you to upgrade GNU
18605 *** binutils to release 2.9.1 or newer. Another option is to modify
18606 *** your PATH or compiler configuration so that the native linker is
18607 *** used, and then restart.
18610 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18611 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18612 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18619 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18621 hardcode_direct_GCJ=yes
18622 hardcode_shlibpath_var_GCJ=no
18626 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18627 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18628 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18635 if test "$ld_shlibs_GCJ" = no; then
18637 hardcode_libdir_flag_spec_GCJ=
18638 export_dynamic_flag_spec_GCJ=
18639 whole_archive_flag_spec_GCJ=
18642 # PORTME fill in a description of your system's linker (not GNU ld)
18645 allow_undefined_flag_GCJ=unsupported
18646 always_export_symbols_GCJ=yes
18647 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'
18648 # Note: this linker hardcodes the directories in LIBPATH if there
18649 # are no directories specified by -L.
18650 hardcode_minus_L_GCJ=yes
18651 if test "$GCC" = yes && test -z "$link_static_flag"; then
18652 # Neither direct hardcoding nor static linking is supported with a
18654 hardcode_direct_GCJ=unsupported
18659 if test "$host_cpu" = ia64; then
18660 # On IA64, the linker does run time linking by default, so we don't
18661 # have to do anything special.
18662 aix_use_runtimelinking=no
18663 exp_sym_flag='-Bexport'
18666 # If we're using GNU nm, then we don't want the "-C" option.
18667 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18668 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18669 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'
18671 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'
18673 aix_use_runtimelinking=no
18675 # Test if we are trying to use run time linking or normal
18676 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18677 # need to do runtime linking.
18678 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18679 for ld_flag in $LDFLAGS; do
18680 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18681 aix_use_runtimelinking=yes
18687 exp_sym_flag='-bexport'
18688 no_entry_flag='-bnoentry'
18691 # When large executables or shared objects are built, AIX ld can
18692 # have problems creating the table of contents. If linking a library
18693 # or program results in "error TOC overflow" add -mminimal-toc to
18694 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18695 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18697 archive_cmds_GCJ=''
18698 hardcode_direct_GCJ=yes
18699 hardcode_libdir_separator_GCJ=':'
18700 link_all_deplibs_GCJ=yes
18702 if test "$GCC" = yes; then
18703 case $host_os in aix4.[012]|aix4.[012].*)
18704 # We only want to do this on AIX 4.2 and lower, the check
18705 # below for broken collect2 doesn't work under 4.3+
18706 collect2name=`${CC} -print-prog-name=collect2`
18707 if test -f "$collect2name" && \
18708 strings "$collect2name" | grep resolve_lib_name >/dev/null
18710 # We have reworked collect2
18711 hardcode_direct_GCJ=yes
18713 # We have old collect2
18714 hardcode_direct_GCJ=unsupported
18715 # It fails to find uninstalled libraries when the uninstalled
18716 # path is not listed in the libpath. Setting hardcode_minus_L
18717 # to unsupported forces relinking
18718 hardcode_minus_L_GCJ=yes
18719 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18720 hardcode_libdir_separator_GCJ=
18723 shared_flag='-shared'
18724 if test "$aix_use_runtimelinking" = yes; then
18725 shared_flag="$shared_flag "'${wl}-G'
18729 if test "$host_cpu" = ia64; then
18730 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18731 # chokes on -Wl,-G. The following line is correct:
18734 if test "$aix_use_runtimelinking" = yes; then
18735 shared_flag='${wl}-G'
18737 shared_flag='${wl}-bM:SRE'
18742 # It seems that -bexpall does not export symbols beginning with
18743 # underscore (_), so it is better to generate a list of symbols to export.
18744 always_export_symbols_GCJ=yes
18745 if test "$aix_use_runtimelinking" = yes; then
18746 # Warning - without using the other runtime loading flags (-brtl),
18747 # -berok will link without error, but may produce a broken library.
18748 allow_undefined_flag_GCJ='-berok'
18749 # Determine the default libpath from the value encoded in an empty executable.
18750 cat >conftest.$ac_ext <<_ACEOF
18753 cat confdefs.h >>conftest.$ac_ext
18754 cat >>conftest.$ac_ext <<_ACEOF
18755 /* end confdefs.h. */
18765 rm -f conftest.$ac_objext conftest$ac_exeext
18766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18767 (eval $ac_link) 2>conftest.er1
18769 grep -v '^ *+' conftest.er1 >conftest.err
18771 cat conftest.err >&5
18772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18773 (exit $ac_status); } &&
18774 { ac_try='test -z "$ac_c_werror_flag"
18775 || test ! -s conftest.err'
18776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18777 (eval $ac_try) 2>&5
18779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780 (exit $ac_status); }; } &&
18781 { ac_try='test -s conftest$ac_exeext'
18782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18783 (eval $ac_try) 2>&5
18785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786 (exit $ac_status); }; }; then
18788 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18790 # Check for a 64-bit object if we didn't find anything.
18791 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; }
18794 echo "$as_me: failed program was:" >&5
18795 sed 's/^/| /' conftest.$ac_ext >&5
18798 rm -f conftest.err conftest.$ac_objext \
18799 conftest$ac_exeext conftest.$ac_ext
18800 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18802 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18803 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"
18805 if test "$host_cpu" = ia64; then
18806 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18807 allow_undefined_flag_GCJ="-z nodefs"
18808 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"
18810 # Determine the default libpath from the value encoded in an empty executable.
18811 cat >conftest.$ac_ext <<_ACEOF
18814 cat confdefs.h >>conftest.$ac_ext
18815 cat >>conftest.$ac_ext <<_ACEOF
18816 /* end confdefs.h. */
18826 rm -f conftest.$ac_objext conftest$ac_exeext
18827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18828 (eval $ac_link) 2>conftest.er1
18830 grep -v '^ *+' conftest.er1 >conftest.err
18832 cat conftest.err >&5
18833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834 (exit $ac_status); } &&
18835 { ac_try='test -z "$ac_c_werror_flag"
18836 || test ! -s conftest.err'
18837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18838 (eval $ac_try) 2>&5
18840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18841 (exit $ac_status); }; } &&
18842 { ac_try='test -s conftest$ac_exeext'
18843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18844 (eval $ac_try) 2>&5
18846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18847 (exit $ac_status); }; }; then
18849 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18851 # Check for a 64-bit object if we didn't find anything.
18852 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; }
18855 echo "$as_me: failed program was:" >&5
18856 sed 's/^/| /' conftest.$ac_ext >&5
18859 rm -f conftest.err conftest.$ac_objext \
18860 conftest$ac_exeext conftest.$ac_ext
18861 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18863 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18864 # Warning - without using the other run time loading flags,
18865 # -berok will link without error, but may produce a broken library.
18866 no_undefined_flag_GCJ=' ${wl}-bernotok'
18867 allow_undefined_flag_GCJ=' ${wl}-berok'
18868 # -bexpall does not export symbols beginning with underscore (_)
18869 always_export_symbols_GCJ=yes
18870 # Exported symbols can be pulled into shared objects from archives
18871 whole_archive_flag_spec_GCJ=' '
18872 archive_cmds_need_lc_GCJ=yes
18873 # This is similar to how AIX traditionally builds it's shared libraries.
18874 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'
18880 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)'
18881 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18882 hardcode_minus_L_GCJ=yes
18883 # see comment about different semantics on the GNU ld section
18888 export_dynamic_flag_spec_GCJ=-rdynamic
18891 cygwin* | mingw* | pw32*)
18892 # When not using gcc, we currently assume that we are using
18893 # Microsoft Visual C++.
18894 # hardcode_libdir_flag_spec is actually meaningless, as there is
18895 # no search path for DLLs.
18896 hardcode_libdir_flag_spec_GCJ=' '
18897 allow_undefined_flag_GCJ=unsupported
18898 # Tell ltmain to make .lib files, not .a files.
18900 # Tell ltmain to make .dll files, not .so files.
18902 # FIXME: Setting linknames here is a bad hack.
18903 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18904 # The linker will automatically build a .lib file if we build a DLL.
18905 old_archive_From_new_cmds_GCJ='true'
18906 # FIXME: Should let the user specify the lib program.
18907 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18908 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18909 enable_shared_with_static_runtimes_GCJ=yes
18912 darwin* | rhapsody*)
18914 rhapsody* | darwin1.[012])
18915 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18918 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18919 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18921 case ${MACOSX_DEPLOYMENT_TARGET} in
18923 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18926 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18932 archive_cmds_need_lc_GCJ=no
18933 hardcode_direct_GCJ=no
18934 hardcode_automatic_GCJ=yes
18935 hardcode_shlibpath_var_GCJ=unsupported
18936 whole_archive_flag_spec_GCJ=''
18937 link_all_deplibs_GCJ=yes
18938 if test "$GCC" = yes ; then
18939 output_verbose_link_cmd='echo'
18940 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18941 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18942 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18943 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}'
18944 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}'
18946 case $cc_basename in
18948 output_verbose_link_cmd='echo'
18949 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18950 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18951 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18952 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}'
18953 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}'
18963 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18964 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18965 hardcode_shlibpath_var_GCJ=no
18972 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18973 # support. Future versions do this automatically, but an explicit c++rt0.o
18974 # does not break anything, and helps significantly (at the cost of a little
18977 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18978 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18979 hardcode_direct_GCJ=yes
18980 hardcode_shlibpath_var_GCJ=no
18983 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18985 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18986 hardcode_direct_GCJ=yes
18987 hardcode_minus_L_GCJ=yes
18988 hardcode_shlibpath_var_GCJ=no
18991 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18992 freebsd* | kfreebsd*-gnu | dragonfly*)
18993 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18994 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18995 hardcode_direct_GCJ=yes
18996 hardcode_shlibpath_var_GCJ=no
19000 if test "$GCC" = yes; then
19001 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'
19003 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'
19005 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19006 hardcode_libdir_separator_GCJ=:
19007 hardcode_direct_GCJ=yes
19009 # hardcode_minus_L: Not really in the search PATH,
19010 # but as the default location of the library.
19011 hardcode_minus_L_GCJ=yes
19012 export_dynamic_flag_spec_GCJ='${wl}-E'
19016 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19017 case "$host_cpu" in
19019 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19022 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19026 case "$host_cpu" in
19028 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19031 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19035 if test "$with_gnu_ld" = no; then
19036 case "$host_cpu" in
19038 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19039 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19040 hardcode_libdir_separator_GCJ=:
19041 hardcode_direct_GCJ=no
19042 hardcode_shlibpath_var_GCJ=no
19045 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19046 hardcode_direct_GCJ=no
19047 hardcode_shlibpath_var_GCJ=no
19049 # hardcode_minus_L: Not really in the search PATH,
19050 # but as the default location of the library.
19051 hardcode_minus_L_GCJ=yes
19054 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19055 hardcode_libdir_separator_GCJ=:
19056 hardcode_direct_GCJ=yes
19057 export_dynamic_flag_spec_GCJ='${wl}-E'
19059 # hardcode_minus_L: Not really in the search PATH,
19060 # but as the default location of the library.
19061 hardcode_minus_L_GCJ=yes
19067 irix5* | irix6* | nonstopux*)
19068 if test "$GCC" = yes; then
19069 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'
19071 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'
19072 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19074 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19075 hardcode_libdir_separator_GCJ=:
19076 link_all_deplibs_GCJ=yes
19080 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19081 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19083 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19085 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19086 hardcode_direct_GCJ=yes
19087 hardcode_shlibpath_var_GCJ=no
19091 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19092 hardcode_direct_GCJ=yes
19093 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19094 hardcode_libdir_separator_GCJ=:
19095 hardcode_shlibpath_var_GCJ=no
19099 hardcode_direct_GCJ=yes
19100 hardcode_shlibpath_var_GCJ=no
19101 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19102 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19103 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19104 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19105 export_dynamic_flag_spec_GCJ='${wl}-E'
19108 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19109 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19110 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19113 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19114 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19121 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19122 hardcode_minus_L_GCJ=yes
19123 allow_undefined_flag_GCJ=unsupported
19124 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'
19125 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19129 if test "$GCC" = yes; then
19130 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19131 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'
19133 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19134 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'
19136 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19137 hardcode_libdir_separator_GCJ=:
19140 osf4* | osf5*) # as osf3* with the addition of -msym flag
19141 if test "$GCC" = yes; then
19142 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19143 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'
19144 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19146 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19147 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'
19148 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~
19149 $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'
19151 # Both c and cxx compiler support -rpath directly
19152 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19154 hardcode_libdir_separator_GCJ=:
19158 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19159 hardcode_shlibpath_var_GCJ=no
19160 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19161 runpath_var=LD_RUN_PATH
19162 hardcode_runpath_var=yes
19166 no_undefined_flag_GCJ=' -z text'
19167 if test "$GCC" = yes; then
19169 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19170 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19171 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19174 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19175 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19176 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19178 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19179 hardcode_shlibpath_var_GCJ=no
19181 solaris2.[0-5] | solaris2.[0-5].*) ;;
19183 # The compiler driver will combine linker options so we
19184 # cannot just pass the convience library names through
19185 # without $wl, iff we do not link with $LD.
19186 # Luckily, gcc supports the same syntax we need for Sun Studio.
19187 # Supported since Solaris 2.6 (maybe 2.5.1?)
19190 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19192 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' ;;
19195 link_all_deplibs_GCJ=yes
19199 if test "x$host_vendor" = xsequent; then
19200 # Use $CC to link under sequent, because it throws in some extra .o
19201 # files that make .init and .fini sections work.
19202 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19204 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19206 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19207 hardcode_direct_GCJ=yes
19208 hardcode_minus_L_GCJ=yes
19209 hardcode_shlibpath_var_GCJ=no
19213 case $host_vendor in
19215 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19216 hardcode_direct_GCJ=yes # is this really true???
19219 ## LD is ld it makes a PLAMLIB
19220 ## CC just makes a GrossModule.
19221 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19222 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19223 hardcode_direct_GCJ=no
19226 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19227 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19230 runpath_var='LD_RUN_PATH'
19231 hardcode_shlibpath_var_GCJ=no
19235 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19236 hardcode_shlibpath_var_GCJ=no
19237 export_dynamic_flag_spec_GCJ='-Bexport'
19241 if test -d /usr/nec; then
19242 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19243 hardcode_shlibpath_var_GCJ=no
19244 runpath_var=LD_RUN_PATH
19245 hardcode_runpath_var=yes
19251 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19252 hardcode_direct_GCJ=yes
19253 hardcode_minus_L_GCJ=no
19254 hardcode_shlibpath_var_GCJ=no
19255 hardcode_runpath_var=yes
19256 runpath_var=LD_RUN_PATH
19259 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19260 no_undefined_flag_GCJ='${wl}-z ${wl}text'
19261 if test "$GCC" = yes; then
19262 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19264 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19266 runpath_var='LD_RUN_PATH'
19267 hardcode_shlibpath_var_GCJ=no
19271 no_undefined_flag_GCJ=' -z text'
19272 # $CC -shared without GNU ld will not create a library from C++
19273 # object files and a static libstdc++, better avoid it by now
19274 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19275 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19276 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19277 hardcode_libdir_flag_spec_GCJ=
19278 hardcode_shlibpath_var_GCJ=no
19279 runpath_var='LD_RUN_PATH'
19283 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19284 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19285 hardcode_shlibpath_var_GCJ=no
19294 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19295 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
19296 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19298 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19299 if test "$GCC" = yes; then
19300 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19304 # Do we need to explicitly link libc?
19306 case "x$archive_cmds_need_lc_GCJ" in
19308 # Assume -lc should be added
19309 archive_cmds_need_lc_GCJ=yes
19311 if test "$enable_shared" = yes && test "$GCC" = yes; then
19312 case $archive_cmds_GCJ in
19314 # FIXME: we may have to deal with multi-command sequences.
19317 # Test whether the compiler implicitly links with -lc since on some
19318 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19319 # to ld, don't add -lc before -lgcc.
19320 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19321 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19323 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19326 (eval $ac_compile) 2>&5
19328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19329 (exit $ac_status); } 2>conftest.err; then
19332 libobjs=conftest.$ac_objext
19334 wl=$lt_prog_compiler_wl_GCJ
19340 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19341 allow_undefined_flag_GCJ=
19342 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19343 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19346 (exit $ac_status); }
19348 archive_cmds_need_lc_GCJ=no
19350 archive_cmds_need_lc_GCJ=yes
19352 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19354 cat conftest.err 1>&5
19357 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19358 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
19365 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19366 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19367 library_names_spec=
19368 libname_spec='lib$name'
19372 postuninstall_cmds=
19376 shlibpath_overrides_runpath=unknown
19378 dynamic_linker="$host_os ld.so"
19379 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19380 if test "$GCC" = yes; then
19381 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19382 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19383 # if the path contains ";" then we assume it to be the separator
19384 # otherwise default to the standard path separator (i.e. ":") - it is
19385 # assumed that no part of a normal pathname contains ";" but that should
19386 # okay in the real world where ";" in dirpaths is itself problematic.
19387 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19389 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19392 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19394 need_lib_prefix=unknown
19395 hardcode_into_libs=no
19397 # when you set need_version to no, make sure it does not cause -set_version
19398 # flags to be left without arguments
19399 need_version=unknown
19404 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19405 shlibpath_var=LIBPATH
19407 # AIX 3 has no versioning support, so we append a major version to the name.
19408 soname_spec='${libname}${release}${shared_ext}$major'
19415 hardcode_into_libs=yes
19416 if test "$host_cpu" = ia64; then
19417 # AIX 5 supports IA64
19418 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19419 shlibpath_var=LD_LIBRARY_PATH
19421 # With GCC up to 2.95.x, collect2 would create an import file
19422 # for dependence libraries. The import file would start with
19423 # the line `#! .'. This would cause the generated library to
19424 # depend on `.', always an invalid library. This was fixed in
19425 # development snapshots of GCC prior to 3.0.
19427 aix4 | aix4.[01] | aix4.[01].*)
19428 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19430 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19433 can_build_shared=no
19437 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19438 # soname into executable. Probably we can add versioning support to
19439 # collect2, so additional links can be useful in future.
19440 if test "$aix_use_runtimelinking" = yes; then
19441 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19442 # instead of lib<name>.a to let people know that these are not
19443 # typical AIX shared libraries.
19444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19446 # We preserve .a as extension for shared libraries through AIX4.2
19447 # and later when we are not doing run time linking.
19448 library_names_spec='${libname}${release}.a $libname.a'
19449 soname_spec='${libname}${release}${shared_ext}$major'
19451 shlibpath_var=LIBPATH
19456 library_names_spec='$libname.ixlibrary $libname.a'
19457 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19458 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'
19462 library_names_spec='${libname}${shared_ext}'
19463 dynamic_linker="$host_os ld.so"
19464 shlibpath_var=LIBRARY_PATH
19470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19471 soname_spec='${libname}${release}${shared_ext}$major'
19472 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19473 shlibpath_var=LD_LIBRARY_PATH
19474 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19475 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19476 # the default ld.so.conf also contains /usr/contrib/lib and
19477 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19478 # libtool to hard-code these into programs
19481 cygwin* | mingw* | pw32*)
19482 version_type=windows
19487 case $GCC,$host_os in
19488 yes,cygwin* | yes,mingw* | yes,pw32*)
19489 library_names_spec='$libname.dll.a'
19490 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19491 postinstall_cmds='base_file=`basename \${file}`~
19492 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19493 dldir=$destdir/`dirname \$dlpath`~
19494 test -d \$dldir || mkdir -p \$dldir~
19495 $install_prog $dir/$dlname \$dldir/$dlname'
19496 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19497 dlpath=$dir/\$dldll~
19499 shlibpath_overrides_runpath=yes
19503 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19504 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19505 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19508 # MinGW DLLs use traditional 'lib' prefix
19509 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19510 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19511 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19512 # It is most probably a Windows format PATH printed by
19513 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19514 # path with ; separators, and with drive letters. We can handle the
19515 # drive letters (cygwin fileutils understands them), so leave them,
19516 # especially as we might pass files found there to a mingw objdump,
19517 # which wouldn't understand a cygwinified path. Ahh.
19518 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19520 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19524 # pw32 DLLs use 'pw' prefix rather than 'lib'
19525 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19531 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19534 dynamic_linker='Win32 ld.exe'
19535 # FIXME: first we should search . and the directory the executable is in
19539 darwin* | rhapsody*)
19540 dynamic_linker="$host_os dyld"
19541 version_type=darwin
19544 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19545 soname_spec='${libname}${release}${major}$shared_ext'
19546 shlibpath_overrides_runpath=yes
19547 shlibpath_var=DYLD_LIBRARY_PATH
19548 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
19549 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19550 if test "$GCC" = yes; then
19551 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"`
19553 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19555 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19563 soname_spec='${libname}${release}${shared_ext}$major'
19564 shlibpath_var=LD_LIBRARY_PATH
19575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19576 soname_spec='${libname}${release}${shared_ext}$major'
19577 shlibpath_var=LD_LIBRARY_PATH
19578 shlibpath_overrides_runpath=no
19579 hardcode_into_libs=yes
19580 dynamic_linker='GNU ld.so'
19583 freebsd* | dragonfly*)
19584 # DragonFly does not have aout. When/if they implement a new
19585 # versioning mechanism, adjust this.
19586 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
19587 version_type=freebsd-$objformat
19588 case $version_type in
19590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19595 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19599 shlibpath_var=LD_LIBRARY_PATH
19602 shlibpath_overrides_runpath=yes
19604 freebsd3.[01]* | freebsdelf3.[01]*)
19605 shlibpath_overrides_runpath=yes
19606 hardcode_into_libs=yes
19609 shlibpath_overrides_runpath=no
19610 hardcode_into_libs=yes
19619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19620 soname_spec='${libname}${release}${shared_ext}$major'
19621 shlibpath_var=LD_LIBRARY_PATH
19622 hardcode_into_libs=yes
19625 hpux9* | hpux10* | hpux11*)
19626 # Give a soname corresponding to the major version so that dld.sl refuses to
19627 # link against other versions.
19631 case "$host_cpu" in
19634 hardcode_into_libs=yes
19635 dynamic_linker="$host_os dld.so"
19636 shlibpath_var=LD_LIBRARY_PATH
19637 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19639 soname_spec='${libname}${release}${shared_ext}$major'
19640 if test "X$HPUX_IA64_MODE" = X32; then
19641 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19643 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19645 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19649 hardcode_into_libs=yes
19650 dynamic_linker="$host_os dld.sl"
19651 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19652 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19654 soname_spec='${libname}${release}${shared_ext}$major'
19655 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19656 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19660 dynamic_linker="$host_os dld.sl"
19661 shlibpath_var=SHLIB_PATH
19662 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19664 soname_spec='${libname}${release}${shared_ext}$major'
19667 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19668 postinstall_cmds='chmod 555 $lib'
19671 irix5* | irix6* | nonstopux*)
19673 nonstopux*) version_type=nonstopux ;;
19675 if test "$lt_cv_prog_gnu_ld" = yes; then
19683 soname_spec='${libname}${release}${shared_ext}$major'
19684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19686 irix5* | nonstopux*)
19687 libsuff= shlibsuff=
19690 case $LD in # libtool.m4 will add one of these switches to LD
19691 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19692 libsuff= shlibsuff= libmagic=32-bit;;
19693 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19694 libsuff=32 shlibsuff=N32 libmagic=N32;;
19695 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19696 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19697 *) libsuff= shlibsuff= libmagic=never-match;;
19701 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19702 shlibpath_overrides_runpath=no
19703 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19704 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19705 hardcode_into_libs=yes
19708 # No shared lib support for Linux oldld, aout, or coff.
19709 linux*oldld* | linux*aout* | linux*coff*)
19713 # This must be Linux ELF.
19718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19719 soname_spec='${libname}${release}${shared_ext}$major'
19720 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19721 shlibpath_var=LD_LIBRARY_PATH
19722 shlibpath_overrides_runpath=no
19723 # This implies no fast_install, which is unacceptable.
19724 # Some rework will be needed to allow for fast_install
19725 # before this can be enabled.
19726 hardcode_into_libs=yes
19728 # Append ld.so.conf contents to the search path
19729 if test -f /etc/ld.so.conf; then
19730 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' ' '`
19731 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19734 # We used to test for /lib/ld.so.1 and disable shared libraries on
19735 # powerpc, because MkLinux only supported shared libraries with the
19736 # GNU dynamic linker. Since this was broken with cross compilers,
19737 # most powerpc-linux boxes support dynamic linking these days and
19738 # people can always --disable-shared, the test was removed, and we
19739 # assume the GNU/Linux dynamic linker is in use.
19740 dynamic_linker='GNU/Linux ld.so'
19747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19748 soname_spec='${libname}${release}${shared_ext}$major'
19749 shlibpath_var=LD_LIBRARY_PATH
19750 shlibpath_overrides_runpath=no
19751 hardcode_into_libs=yes
19752 dynamic_linker='GNU ld.so'
19759 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19761 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19762 dynamic_linker='NetBSD (a.out) ld.so'
19764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19765 soname_spec='${libname}${release}${shared_ext}$major'
19766 dynamic_linker='NetBSD ld.elf_so'
19768 shlibpath_var=LD_LIBRARY_PATH
19769 shlibpath_overrides_runpath=yes
19770 hardcode_into_libs=yes
19775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19776 shlibpath_var=LD_LIBRARY_PATH
19777 shlibpath_overrides_runpath=yes
19784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19785 soname_spec='${libname}${release}${shared_ext}$major'
19786 shlibpath_var=LD_LIBRARY_PATH
19787 shlibpath_overrides_runpath=yes
19793 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19795 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19796 *) need_version=no ;;
19798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19799 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19800 shlibpath_var=LD_LIBRARY_PATH
19801 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19803 openbsd2.[89] | openbsd2.[89].*)
19804 shlibpath_overrides_runpath=no
19807 shlibpath_overrides_runpath=yes
19811 shlibpath_overrides_runpath=yes
19816 libname_spec='$name'
19819 library_names_spec='$libname${shared_ext} $libname.a'
19820 dynamic_linker='OS/2 ld.exe'
19821 shlibpath_var=LIBPATH
19824 osf3* | osf4* | osf5*)
19828 soname_spec='${libname}${release}${shared_ext}$major'
19829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19830 shlibpath_var=LD_LIBRARY_PATH
19831 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19832 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19837 soname_spec='${libname}${release}${shared_ext}$major'
19838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19839 shlibpath_var=LD_LIBRARY_PATH
19846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19847 soname_spec='${libname}${release}${shared_ext}$major'
19848 shlibpath_var=LD_LIBRARY_PATH
19849 shlibpath_overrides_runpath=yes
19850 hardcode_into_libs=yes
19851 # ldd complains unless libraries are executable
19852 postinstall_cmds='chmod +x $lib'
19857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19858 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19859 shlibpath_var=LD_LIBRARY_PATH
19860 shlibpath_overrides_runpath=yes
19861 if test "$with_gnu_ld" = yes; then
19867 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19870 soname_spec='${libname}${release}${shared_ext}$major'
19871 shlibpath_var=LD_LIBRARY_PATH
19872 case $host_vendor in
19874 shlibpath_overrides_runpath=no
19876 export_dynamic_flag_spec='${wl}-Blargedynsym'
19877 runpath_var=LD_RUN_PATH
19885 shlibpath_overrides_runpath=no
19886 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19892 if test -d /usr/nec ;then
19894 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19895 soname_spec='$libname${shared_ext}.$major'
19896 shlibpath_var=LD_LIBRARY_PATH
19902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19903 soname_spec='${libname}${release}${shared_ext}$major'
19904 shlibpath_var=LD_LIBRARY_PATH
19911 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19912 echo "${ECHO_T}$dynamic_linker" >&6
19913 test "$dynamic_linker" = no && can_build_shared=no
19915 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19916 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19917 hardcode_action_GCJ=
19918 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19919 test -n "$runpath_var_GCJ" || \
19920 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19922 # We can hardcode non-existant directories.
19923 if test "$hardcode_direct_GCJ" != no &&
19924 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19925 # have to relink, otherwise we might link with an installed library
19926 # when we should be linking with a yet-to-be-installed one
19927 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19928 test "$hardcode_minus_L_GCJ" != no; then
19929 # Linking always hardcodes the temporary library directory.
19930 hardcode_action_GCJ=relink
19932 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19933 hardcode_action_GCJ=immediate
19936 # We cannot hardcode anything, or else we can only hardcode existing
19938 hardcode_action_GCJ=unsupported
19940 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19941 echo "${ECHO_T}$hardcode_action_GCJ" >&6
19943 if test "$hardcode_action_GCJ" = relink; then
19944 # Fast installation is not supported
19945 enable_fast_install=no
19946 elif test "$shlibpath_overrides_runpath" = yes ||
19947 test "$enable_shared" = no; then
19948 # Fast installation is not necessary
19949 enable_fast_install=needless
19954 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19955 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19956 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
19957 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19958 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19959 echo "$as_me:$LINENO: result: yes" >&5
19960 echo "${ECHO_T}yes" >&6
19962 # FIXME - insert some real tests, host_os isn't really good enough
19965 if test -n "$STRIP" ; then
19966 striplib="$STRIP -x"
19967 echo "$as_me:$LINENO: result: yes" >&5
19968 echo "${ECHO_T}yes" >&6
19970 echo "$as_me:$LINENO: result: no" >&5
19971 echo "${ECHO_T}no" >&6
19975 echo "$as_me:$LINENO: result: no" >&5
19976 echo "${ECHO_T}no" >&6
19981 if test "x$enable_dlopen" != xyes; then
19982 enable_dlopen=unknown
19983 enable_dlopen_self=unknown
19984 enable_dlopen_self_static=unknown
19991 lt_cv_dlopen="load_add_on"
19993 lt_cv_dlopen_self=yes
19997 lt_cv_dlopen="LoadLibrary"
20002 lt_cv_dlopen="dlopen"
20007 # if libdl is installed we need to link against it
20008 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20009 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20010 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20011 echo $ECHO_N "(cached) $ECHO_C" >&6
20013 ac_check_lib_save_LIBS=$LIBS
20015 cat >conftest.$ac_ext <<_ACEOF
20018 cat confdefs.h >>conftest.$ac_ext
20019 cat >>conftest.$ac_ext <<_ACEOF
20020 /* end confdefs.h. */
20022 /* Override any gcc2 internal prototype to avoid an error. */
20026 /* We use char because int might match the return type of a gcc2
20027 builtin and then its argument prototype would still apply. */
20037 rm -f conftest.$ac_objext conftest$ac_exeext
20038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20039 (eval $ac_link) 2>conftest.er1
20041 grep -v '^ *+' conftest.er1 >conftest.err
20043 cat conftest.err >&5
20044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045 (exit $ac_status); } &&
20046 { ac_try='test -z "$ac_c_werror_flag"
20047 || test ! -s conftest.err'
20048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20049 (eval $ac_try) 2>&5
20051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052 (exit $ac_status); }; } &&
20053 { ac_try='test -s conftest$ac_exeext'
20054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20055 (eval $ac_try) 2>&5
20057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058 (exit $ac_status); }; }; then
20059 ac_cv_lib_dl_dlopen=yes
20061 echo "$as_me: failed program was:" >&5
20062 sed 's/^/| /' conftest.$ac_ext >&5
20064 ac_cv_lib_dl_dlopen=no
20066 rm -f conftest.err conftest.$ac_objext \
20067 conftest$ac_exeext conftest.$ac_ext
20068 LIBS=$ac_check_lib_save_LIBS
20070 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20071 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20072 if test $ac_cv_lib_dl_dlopen = yes; then
20073 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20076 lt_cv_dlopen="dyld"
20078 lt_cv_dlopen_self=yes
20085 echo "$as_me:$LINENO: checking for shl_load" >&5
20086 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
20087 if test "${ac_cv_func_shl_load+set}" = set; then
20088 echo $ECHO_N "(cached) $ECHO_C" >&6
20090 cat >conftest.$ac_ext <<_ACEOF
20093 cat confdefs.h >>conftest.$ac_ext
20094 cat >>conftest.$ac_ext <<_ACEOF
20095 /* end confdefs.h. */
20096 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20097 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20098 #define shl_load innocuous_shl_load
20100 /* System header to define __stub macros and hopefully few prototypes,
20101 which can conflict with char shl_load (); below.
20102 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20103 <limits.h> exists even on freestanding compilers. */
20106 # include <limits.h>
20108 # include <assert.h>
20113 /* Override any gcc2 internal prototype to avoid an error. */
20118 /* We use char because int might match the return type of a gcc2
20119 builtin and then its argument prototype would still apply. */
20121 /* The GNU C library defines this for functions which it implements
20122 to always fail with ENOSYS. Some functions are actually named
20123 something starting with __ and the normal name is an alias. */
20124 #if defined (__stub_shl_load) || defined (__stub___shl_load)
20127 char (*f) () = shl_load;
20136 return f != shl_load;
20141 rm -f conftest.$ac_objext conftest$ac_exeext
20142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20143 (eval $ac_link) 2>conftest.er1
20145 grep -v '^ *+' conftest.er1 >conftest.err
20147 cat conftest.err >&5
20148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20149 (exit $ac_status); } &&
20150 { ac_try='test -z "$ac_c_werror_flag"
20151 || test ! -s conftest.err'
20152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20153 (eval $ac_try) 2>&5
20155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156 (exit $ac_status); }; } &&
20157 { ac_try='test -s conftest$ac_exeext'
20158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20159 (eval $ac_try) 2>&5
20161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162 (exit $ac_status); }; }; then
20163 ac_cv_func_shl_load=yes
20165 echo "$as_me: failed program was:" >&5
20166 sed 's/^/| /' conftest.$ac_ext >&5
20168 ac_cv_func_shl_load=no
20170 rm -f conftest.err conftest.$ac_objext \
20171 conftest$ac_exeext conftest.$ac_ext
20173 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20174 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
20175 if test $ac_cv_func_shl_load = yes; then
20176 lt_cv_dlopen="shl_load"
20178 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20179 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
20180 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20181 echo $ECHO_N "(cached) $ECHO_C" >&6
20183 ac_check_lib_save_LIBS=$LIBS
20185 cat >conftest.$ac_ext <<_ACEOF
20188 cat confdefs.h >>conftest.$ac_ext
20189 cat >>conftest.$ac_ext <<_ACEOF
20190 /* end confdefs.h. */
20192 /* Override any gcc2 internal prototype to avoid an error. */
20196 /* We use char because int might match the return type of a gcc2
20197 builtin and then its argument prototype would still apply. */
20207 rm -f conftest.$ac_objext conftest$ac_exeext
20208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20209 (eval $ac_link) 2>conftest.er1
20211 grep -v '^ *+' conftest.er1 >conftest.err
20213 cat conftest.err >&5
20214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215 (exit $ac_status); } &&
20216 { ac_try='test -z "$ac_c_werror_flag"
20217 || test ! -s conftest.err'
20218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20219 (eval $ac_try) 2>&5
20221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20222 (exit $ac_status); }; } &&
20223 { ac_try='test -s conftest$ac_exeext'
20224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20225 (eval $ac_try) 2>&5
20227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228 (exit $ac_status); }; }; then
20229 ac_cv_lib_dld_shl_load=yes
20231 echo "$as_me: failed program was:" >&5
20232 sed 's/^/| /' conftest.$ac_ext >&5
20234 ac_cv_lib_dld_shl_load=no
20236 rm -f conftest.err conftest.$ac_objext \
20237 conftest$ac_exeext conftest.$ac_ext
20238 LIBS=$ac_check_lib_save_LIBS
20240 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20241 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
20242 if test $ac_cv_lib_dld_shl_load = yes; then
20243 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
20245 echo "$as_me:$LINENO: checking for dlopen" >&5
20246 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
20247 if test "${ac_cv_func_dlopen+set}" = set; then
20248 echo $ECHO_N "(cached) $ECHO_C" >&6
20250 cat >conftest.$ac_ext <<_ACEOF
20253 cat confdefs.h >>conftest.$ac_ext
20254 cat >>conftest.$ac_ext <<_ACEOF
20255 /* end confdefs.h. */
20256 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
20257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20258 #define dlopen innocuous_dlopen
20260 /* System header to define __stub macros and hopefully few prototypes,
20261 which can conflict with char dlopen (); below.
20262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20263 <limits.h> exists even on freestanding compilers. */
20266 # include <limits.h>
20268 # include <assert.h>
20273 /* Override any gcc2 internal prototype to avoid an error. */
20278 /* We use char because int might match the return type of a gcc2
20279 builtin and then its argument prototype would still apply. */
20281 /* The GNU C library defines this for functions which it implements
20282 to always fail with ENOSYS. Some functions are actually named
20283 something starting with __ and the normal name is an alias. */
20284 #if defined (__stub_dlopen) || defined (__stub___dlopen)
20287 char (*f) () = dlopen;
20296 return f != dlopen;
20301 rm -f conftest.$ac_objext conftest$ac_exeext
20302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20303 (eval $ac_link) 2>conftest.er1
20305 grep -v '^ *+' conftest.er1 >conftest.err
20307 cat conftest.err >&5
20308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309 (exit $ac_status); } &&
20310 { ac_try='test -z "$ac_c_werror_flag"
20311 || test ! -s conftest.err'
20312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20313 (eval $ac_try) 2>&5
20315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20316 (exit $ac_status); }; } &&
20317 { ac_try='test -s conftest$ac_exeext'
20318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20319 (eval $ac_try) 2>&5
20321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322 (exit $ac_status); }; }; then
20323 ac_cv_func_dlopen=yes
20325 echo "$as_me: failed program was:" >&5
20326 sed 's/^/| /' conftest.$ac_ext >&5
20328 ac_cv_func_dlopen=no
20330 rm -f conftest.err conftest.$ac_objext \
20331 conftest$ac_exeext conftest.$ac_ext
20333 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
20334 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
20335 if test $ac_cv_func_dlopen = yes; then
20336 lt_cv_dlopen="dlopen"
20338 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20339 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20340 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20341 echo $ECHO_N "(cached) $ECHO_C" >&6
20343 ac_check_lib_save_LIBS=$LIBS
20345 cat >conftest.$ac_ext <<_ACEOF
20348 cat confdefs.h >>conftest.$ac_ext
20349 cat >>conftest.$ac_ext <<_ACEOF
20350 /* end confdefs.h. */
20352 /* Override any gcc2 internal prototype to avoid an error. */
20356 /* We use char because int might match the return type of a gcc2
20357 builtin and then its argument prototype would still apply. */
20367 rm -f conftest.$ac_objext conftest$ac_exeext
20368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20369 (eval $ac_link) 2>conftest.er1
20371 grep -v '^ *+' conftest.er1 >conftest.err
20373 cat conftest.err >&5
20374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20375 (exit $ac_status); } &&
20376 { ac_try='test -z "$ac_c_werror_flag"
20377 || test ! -s conftest.err'
20378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20379 (eval $ac_try) 2>&5
20381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382 (exit $ac_status); }; } &&
20383 { ac_try='test -s conftest$ac_exeext'
20384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20385 (eval $ac_try) 2>&5
20387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20388 (exit $ac_status); }; }; then
20389 ac_cv_lib_dl_dlopen=yes
20391 echo "$as_me: failed program was:" >&5
20392 sed 's/^/| /' conftest.$ac_ext >&5
20394 ac_cv_lib_dl_dlopen=no
20396 rm -f conftest.err conftest.$ac_objext \
20397 conftest$ac_exeext conftest.$ac_ext
20398 LIBS=$ac_check_lib_save_LIBS
20400 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20401 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20402 if test $ac_cv_lib_dl_dlopen = yes; then
20403 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20405 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20406 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
20407 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20408 echo $ECHO_N "(cached) $ECHO_C" >&6
20410 ac_check_lib_save_LIBS=$LIBS
20411 LIBS="-lsvld $LIBS"
20412 cat >conftest.$ac_ext <<_ACEOF
20415 cat confdefs.h >>conftest.$ac_ext
20416 cat >>conftest.$ac_ext <<_ACEOF
20417 /* end confdefs.h. */
20419 /* Override any gcc2 internal prototype to avoid an error. */
20423 /* We use char because int might match the return type of a gcc2
20424 builtin and then its argument prototype would still apply. */
20434 rm -f conftest.$ac_objext conftest$ac_exeext
20435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20436 (eval $ac_link) 2>conftest.er1
20438 grep -v '^ *+' conftest.er1 >conftest.err
20440 cat conftest.err >&5
20441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442 (exit $ac_status); } &&
20443 { ac_try='test -z "$ac_c_werror_flag"
20444 || test ! -s conftest.err'
20445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20446 (eval $ac_try) 2>&5
20448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20449 (exit $ac_status); }; } &&
20450 { ac_try='test -s conftest$ac_exeext'
20451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20452 (eval $ac_try) 2>&5
20454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20455 (exit $ac_status); }; }; then
20456 ac_cv_lib_svld_dlopen=yes
20458 echo "$as_me: failed program was:" >&5
20459 sed 's/^/| /' conftest.$ac_ext >&5
20461 ac_cv_lib_svld_dlopen=no
20463 rm -f conftest.err conftest.$ac_objext \
20464 conftest$ac_exeext conftest.$ac_ext
20465 LIBS=$ac_check_lib_save_LIBS
20467 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20468 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
20469 if test $ac_cv_lib_svld_dlopen = yes; then
20470 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
20472 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20473 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
20474 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20475 echo $ECHO_N "(cached) $ECHO_C" >&6
20477 ac_check_lib_save_LIBS=$LIBS
20479 cat >conftest.$ac_ext <<_ACEOF
20482 cat confdefs.h >>conftest.$ac_ext
20483 cat >>conftest.$ac_ext <<_ACEOF
20484 /* end confdefs.h. */
20486 /* Override any gcc2 internal prototype to avoid an error. */
20490 /* We use char because int might match the return type of a gcc2
20491 builtin and then its argument prototype would still apply. */
20501 rm -f conftest.$ac_objext conftest$ac_exeext
20502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20503 (eval $ac_link) 2>conftest.er1
20505 grep -v '^ *+' conftest.er1 >conftest.err
20507 cat conftest.err >&5
20508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20509 (exit $ac_status); } &&
20510 { ac_try='test -z "$ac_c_werror_flag"
20511 || test ! -s conftest.err'
20512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20513 (eval $ac_try) 2>&5
20515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20516 (exit $ac_status); }; } &&
20517 { ac_try='test -s conftest$ac_exeext'
20518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20519 (eval $ac_try) 2>&5
20521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20522 (exit $ac_status); }; }; then
20523 ac_cv_lib_dld_dld_link=yes
20525 echo "$as_me: failed program was:" >&5
20526 sed 's/^/| /' conftest.$ac_ext >&5
20528 ac_cv_lib_dld_dld_link=no
20530 rm -f conftest.err conftest.$ac_objext \
20531 conftest$ac_exeext conftest.$ac_ext
20532 LIBS=$ac_check_lib_save_LIBS
20534 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20535 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
20536 if test $ac_cv_lib_dld_dld_link = yes; then
20537 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
20558 if test "x$lt_cv_dlopen" != xno; then
20564 case $lt_cv_dlopen in
20566 save_CPPFLAGS="$CPPFLAGS"
20567 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
20569 save_LDFLAGS="$LDFLAGS"
20570 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20573 LIBS="$lt_cv_dlopen_libs $LIBS"
20575 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
20576 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
20577 if test "${lt_cv_dlopen_self+set}" = set; then
20578 echo $ECHO_N "(cached) $ECHO_C" >&6
20580 if test "$cross_compiling" = yes; then :
20581 lt_cv_dlopen_self=cross
20583 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20584 lt_status=$lt_dlunknown
20585 cat > conftest.$ac_ext <<EOF
20586 #line 20586 "configure"
20587 #include "confdefs.h"
20596 # define LT_DLGLOBAL RTLD_GLOBAL
20599 # define LT_DLGLOBAL DL_GLOBAL
20601 # define LT_DLGLOBAL 0
20605 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20606 find out it does not work in some platform. */
20607 #ifndef LT_DLLAZY_OR_NOW
20609 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20612 # define LT_DLLAZY_OR_NOW DL_LAZY
20615 # define LT_DLLAZY_OR_NOW RTLD_NOW
20618 # define LT_DLLAZY_OR_NOW DL_NOW
20620 # define LT_DLLAZY_OR_NOW 0
20628 extern "C" void exit (int);
20631 void fnord() { int i=42;}
20634 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20635 int status = $lt_dlunknown;
20639 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20640 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20641 /* dlclose (self); */
20647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20648 (eval $ac_link) 2>&5
20650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20652 (./conftest; exit; ) 2>/dev/null
20654 case x$lt_status in
20655 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20656 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20657 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
20660 # compilation failed
20661 lt_cv_dlopen_self=no
20668 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
20669 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
20671 if test "x$lt_cv_dlopen_self" = xyes; then
20672 LDFLAGS="$LDFLAGS $link_static_flag"
20673 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
20674 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
20675 if test "${lt_cv_dlopen_self_static+set}" = set; then
20676 echo $ECHO_N "(cached) $ECHO_C" >&6
20678 if test "$cross_compiling" = yes; then :
20679 lt_cv_dlopen_self_static=cross
20681 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20682 lt_status=$lt_dlunknown
20683 cat > conftest.$ac_ext <<EOF
20684 #line 20684 "configure"
20685 #include "confdefs.h"
20694 # define LT_DLGLOBAL RTLD_GLOBAL
20697 # define LT_DLGLOBAL DL_GLOBAL
20699 # define LT_DLGLOBAL 0
20703 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20704 find out it does not work in some platform. */
20705 #ifndef LT_DLLAZY_OR_NOW
20707 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20710 # define LT_DLLAZY_OR_NOW DL_LAZY
20713 # define LT_DLLAZY_OR_NOW RTLD_NOW
20716 # define LT_DLLAZY_OR_NOW DL_NOW
20718 # define LT_DLLAZY_OR_NOW 0
20726 extern "C" void exit (int);
20729 void fnord() { int i=42;}
20732 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20733 int status = $lt_dlunknown;
20737 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20738 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20739 /* dlclose (self); */
20745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20746 (eval $ac_link) 2>&5
20748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20749 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20750 (./conftest; exit; ) 2>/dev/null
20752 case x$lt_status in
20753 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20754 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20755 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
20758 # compilation failed
20759 lt_cv_dlopen_self_static=no
20766 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
20767 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
20770 CPPFLAGS="$save_CPPFLAGS"
20771 LDFLAGS="$save_LDFLAGS"
20776 case $lt_cv_dlopen_self in
20777 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20778 *) enable_dlopen_self=unknown ;;
20781 case $lt_cv_dlopen_self_static in
20782 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20783 *) enable_dlopen_self_static=unknown ;;
20788 # The else clause should only fire when bootstrapping the
20789 # libtool distribution, otherwise you forgot to ship ltmain.sh
20790 # with your package, and you will get complaints that there are
20791 # no rules to generate ltmain.sh.
20792 if test -f "$ltmain"; then
20793 # See if we are running on zsh, and set the options which allow our commands through
20794 # without removal of \ escapes.
20795 if test -n "${ZSH_VERSION+set}" ; then
20796 setopt NO_GLOB_SUBST
20798 # Now quote all the things that may contain metacharacters while being
20799 # careful not to overquote the AC_SUBSTed values. We take copies of the
20800 # variables and quote the copies for generation of the libtool script.
20801 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20803 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20804 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20805 deplibs_check_method reload_flag reload_cmds need_locks \
20806 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20807 lt_cv_sys_global_symbol_to_c_name_address \
20808 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20809 old_postinstall_cmds old_postuninstall_cmds \
20813 lt_prog_compiler_wl_GCJ \
20814 lt_prog_compiler_pic_GCJ \
20815 lt_prog_compiler_static_GCJ \
20816 lt_prog_compiler_no_builtin_flag_GCJ \
20817 export_dynamic_flag_spec_GCJ \
20818 thread_safe_flag_spec_GCJ \
20819 whole_archive_flag_spec_GCJ \
20820 enable_shared_with_static_runtimes_GCJ \
20821 old_archive_cmds_GCJ \
20822 old_archive_from_new_cmds_GCJ \
20823 predep_objects_GCJ \
20824 postdep_objects_GCJ \
20827 compiler_lib_search_path_GCJ \
20829 archive_expsym_cmds_GCJ \
20830 postinstall_cmds_GCJ \
20831 postuninstall_cmds_GCJ \
20832 old_archive_from_expsyms_cmds_GCJ \
20833 allow_undefined_flag_GCJ \
20834 no_undefined_flag_GCJ \
20835 export_symbols_cmds_GCJ \
20836 hardcode_libdir_flag_spec_GCJ \
20837 hardcode_libdir_flag_spec_ld_GCJ \
20838 hardcode_libdir_separator_GCJ \
20839 hardcode_automatic_GCJ \
20841 module_expsym_cmds_GCJ \
20842 lt_cv_prog_compiler_c_o_GCJ \
20843 exclude_expsyms_GCJ \
20844 include_expsyms_GCJ; do
20847 old_archive_cmds_GCJ | \
20848 old_archive_from_new_cmds_GCJ | \
20849 archive_cmds_GCJ | \
20850 archive_expsym_cmds_GCJ | \
20851 module_cmds_GCJ | \
20852 module_expsym_cmds_GCJ | \
20853 old_archive_from_expsyms_cmds_GCJ | \
20854 export_symbols_cmds_GCJ | \
20855 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20856 postinstall_cmds | postuninstall_cmds | \
20857 old_postinstall_cmds | old_postuninstall_cmds | \
20858 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20859 # Double-quote double-evaled strings.
20860 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20863 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20869 *'\$0 --fallback-echo"')
20870 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20876 cat <<__EOF__ >> "$cfgfile"
20877 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20879 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20881 # Shell to use when invoking shell scripts.
20884 # Whether or not to build shared libraries.
20885 build_libtool_libs=$enable_shared
20887 # Whether or not to build static libraries.
20888 build_old_libs=$enable_static
20890 # Whether or not to add -lc for building shared libraries.
20891 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20893 # Whether or not to disallow shared libs when runtime libs are static
20894 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20896 # Whether or not to optimize for fast installation.
20897 fast_install=$enable_fast_install
20900 host_alias=$host_alias
20904 # The build system.
20905 build_alias=$build_alias
20909 # An echo program that does not interpret backslashes.
20914 AR_FLAGS=$lt_AR_FLAGS
20919 # A language-specific compiler.
20920 CC=$lt_compiler_GCJ
20922 # Is the compiler the GNU C compiler?
20928 # The linker used to build libraries.
20931 # Whether we need hard or soft links.
20934 # A BSD-compatible nm program.
20937 # A symbol stripping program
20940 # Used to examine libraries when file_magic_cmd begins "file"
20941 MAGIC_CMD=$MAGIC_CMD
20943 # Used on cygwin: DLL creation program.
20946 # Used on cygwin: object dumper.
20949 # Used on cygwin: assembler.
20952 # The name of the directory that contains temporary libtool files.
20955 # How to create reloadable object files.
20956 reload_flag=$lt_reload_flag
20957 reload_cmds=$lt_reload_cmds
20959 # How to pass a linker flag through the compiler.
20960 wl=$lt_lt_prog_compiler_wl_GCJ
20962 # Object file suffix (normally "o").
20963 objext="$ac_objext"
20965 # Old archive suffix (normally "a").
20968 # Shared library suffix (normally ".so").
20969 shrext_cmds='$shrext_cmds'
20971 # Executable file suffix (normally "").
20974 # Additional compiler flags for building library objects.
20975 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20978 # What is the maximum length of a command?
20979 max_cmd_len=$lt_cv_sys_max_cmd_len
20981 # Does compiler simultaneously support -c and -o options?
20982 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20984 # Must we lock files when doing compilation?
20985 need_locks=$lt_need_locks
20987 # Do we need the lib prefix for modules?
20988 need_lib_prefix=$need_lib_prefix
20990 # Do we need a version for libraries?
20991 need_version=$need_version
20993 # Whether dlopen is supported.
20994 dlopen_support=$enable_dlopen
20996 # Whether dlopen of programs is supported.
20997 dlopen_self=$enable_dlopen_self
20999 # Whether dlopen of statically linked programs is supported.
21000 dlopen_self_static=$enable_dlopen_self_static
21002 # Compiler flag to prevent dynamic linking.
21003 link_static_flag=$lt_lt_prog_compiler_static_GCJ
21005 # Compiler flag to turn off builtin functions.
21006 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
21008 # Compiler flag to allow reflexive dlopens.
21009 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
21011 # Compiler flag to generate shared objects directly from archives.
21012 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
21014 # Compiler flag to generate thread-safe objects.
21015 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
21017 # Library versioning type.
21018 version_type=$version_type
21020 # Format of library name prefix.
21021 libname_spec=$lt_libname_spec
21023 # List of archive names. First name is the real one, the rest are links.
21024 # The last name is the one that the linker finds with -lNAME.
21025 library_names_spec=$lt_library_names_spec
21027 # The coded name of the library, if different from the real name.
21028 soname_spec=$lt_soname_spec
21030 # Commands used to build and install an old-style archive.
21032 old_archive_cmds=$lt_old_archive_cmds_GCJ
21033 old_postinstall_cmds=$lt_old_postinstall_cmds
21034 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21036 # Create an old-style archive from a shared archive.
21037 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
21039 # Create a temporary old-style archive to link instead of a shared archive.
21040 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
21042 # Commands used to build and install a shared archive.
21043 archive_cmds=$lt_archive_cmds_GCJ
21044 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
21045 postinstall_cmds=$lt_postinstall_cmds
21046 postuninstall_cmds=$lt_postuninstall_cmds
21048 # Commands used to build a loadable module (assumed same as above if empty)
21049 module_cmds=$lt_module_cmds_GCJ
21050 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
21052 # Commands to strip libraries.
21053 old_striplib=$lt_old_striplib
21054 striplib=$lt_striplib
21056 # Dependencies to place before the objects being linked to create a
21058 predep_objects=$lt_predep_objects_GCJ
21060 # Dependencies to place after the objects being linked to create a
21062 postdep_objects=$lt_postdep_objects_GCJ
21064 # Dependencies to place before the objects being linked to create a
21066 predeps=$lt_predeps_GCJ
21068 # Dependencies to place after the objects being linked to create a
21070 postdeps=$lt_postdeps_GCJ
21072 # The library search path used internally by the compiler when linking
21073 # a shared library.
21074 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
21076 # Method to check whether dependent libraries are shared objects.
21077 deplibs_check_method=$lt_deplibs_check_method
21079 # Command to use when deplibs_check_method == file_magic.
21080 file_magic_cmd=$lt_file_magic_cmd
21082 # Flag that allows shared libraries with undefined symbols to be built.
21083 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
21085 # Flag that forces no undefined symbols.
21086 no_undefined_flag=$lt_no_undefined_flag_GCJ
21088 # Commands used to finish a libtool library installation in a directory.
21089 finish_cmds=$lt_finish_cmds
21091 # Same as above, but a single script fragment to be evaled but not shown.
21092 finish_eval=$lt_finish_eval
21094 # Take the output of nm and produce a listing of raw symbols and C names.
21095 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21097 # Transform the output of nm in a proper C declaration
21098 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21100 # Transform the output of nm in a C name address pair
21101 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21103 # This is the shared library runtime path variable.
21104 runpath_var=$runpath_var
21106 # This is the shared library path variable.
21107 shlibpath_var=$shlibpath_var
21109 # Is shlibpath searched before the hard-coded library search path?
21110 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21112 # How to hardcode a shared library path into an executable.
21113 hardcode_action=$hardcode_action_GCJ
21115 # Whether we should hardcode library paths into libraries.
21116 hardcode_into_libs=$hardcode_into_libs
21118 # Flag to hardcode \$libdir into a binary during linking.
21119 # This must work even if \$libdir does not exist.
21120 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
21122 # If ld is used when linking, flag to hardcode \$libdir into
21123 # a binary during linking. This must work even if \$libdir does
21125 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
21127 # Whether we need a single -rpath flag with a separated argument.
21128 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
21130 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21131 # resulting binary.
21132 hardcode_direct=$hardcode_direct_GCJ
21134 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21135 # resulting binary.
21136 hardcode_minus_L=$hardcode_minus_L_GCJ
21138 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21139 # the resulting binary.
21140 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
21142 # Set to yes if building a shared library automatically hardcodes DIR into the library
21143 # and all subsequent libraries and executables linked against it.
21144 hardcode_automatic=$hardcode_automatic_GCJ
21146 # Variables whose values should be saved in libtool wrapper scripts and
21147 # restored at relink time.
21148 variables_saved_for_relink="$variables_saved_for_relink"
21150 # Whether libtool must link a program against all its dependency libraries.
21151 link_all_deplibs=$link_all_deplibs_GCJ
21153 # Compile-time system search path for libraries
21154 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21156 # Run-time system search path for libraries
21157 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21159 # Fix the shell variable \$srcfile for the compiler.
21160 fix_srcfile_path="$fix_srcfile_path_GCJ"
21162 # Set to yes if exported symbols are required.
21163 always_export_symbols=$always_export_symbols_GCJ
21165 # The commands to list exported symbols.
21166 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
21168 # The commands to extract the exported symbol list from a shared archive.
21169 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21171 # Symbols that should not be listed in the preloaded symbols.
21172 exclude_expsyms=$lt_exclude_expsyms_GCJ
21174 # Symbols that must always be exported.
21175 include_expsyms=$lt_include_expsyms_GCJ
21177 # ### END LIBTOOL TAG CONFIG: $tagname
21183 # If there is no Makefile yet, we rely on a make rule to execute
21184 # `config.status --recheck' to rerun these tests and create the
21185 # libtool script then.
21186 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21187 if test -f "$ltmain_in"; then
21188 test -f Makefile && make "$ltmain"
21194 ac_cpp='$CPP $CPPFLAGS'
21195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21210 # Source file extension for RC test sources.
21213 # Object file extension for compiled RC test sources.
21217 # Code to be used in simple compile tests
21218 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
21220 # Code to be used in simple link tests
21221 lt_simple_link_test_code="$lt_simple_compile_test_code"
21223 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21225 # If no C compiler was specified, use CC.
21228 # Allow CC to be a program name with arguments.
21232 # save warnings/boilerplate of simple test code
21233 ac_outfile=conftest.$ac_objext
21234 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21235 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
21236 _lt_compiler_boilerplate=`cat conftest.err`
21239 ac_outfile=conftest.$ac_objext
21240 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21241 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
21242 _lt_linker_boilerplate=`cat conftest.err`
21246 # Allow CC to be a program name with arguments.
21251 for cc_temp in $compiler""; do
21253 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21254 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21259 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21261 lt_cv_prog_compiler_c_o_RC=yes
21263 # The else clause should only fire when bootstrapping the
21264 # libtool distribution, otherwise you forgot to ship ltmain.sh
21265 # with your package, and you will get complaints that there are
21266 # no rules to generate ltmain.sh.
21267 if test -f "$ltmain"; then
21268 # See if we are running on zsh, and set the options which allow our commands through
21269 # without removal of \ escapes.
21270 if test -n "${ZSH_VERSION+set}" ; then
21271 setopt NO_GLOB_SUBST
21273 # Now quote all the things that may contain metacharacters while being
21274 # careful not to overquote the AC_SUBSTed values. We take copies of the
21275 # variables and quote the copies for generation of the libtool script.
21276 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
21278 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21279 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21280 deplibs_check_method reload_flag reload_cmds need_locks \
21281 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21282 lt_cv_sys_global_symbol_to_c_name_address \
21283 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21284 old_postinstall_cmds old_postuninstall_cmds \
21288 lt_prog_compiler_wl_RC \
21289 lt_prog_compiler_pic_RC \
21290 lt_prog_compiler_static_RC \
21291 lt_prog_compiler_no_builtin_flag_RC \
21292 export_dynamic_flag_spec_RC \
21293 thread_safe_flag_spec_RC \
21294 whole_archive_flag_spec_RC \
21295 enable_shared_with_static_runtimes_RC \
21296 old_archive_cmds_RC \
21297 old_archive_from_new_cmds_RC \
21298 predep_objects_RC \
21299 postdep_objects_RC \
21302 compiler_lib_search_path_RC \
21304 archive_expsym_cmds_RC \
21305 postinstall_cmds_RC \
21306 postuninstall_cmds_RC \
21307 old_archive_from_expsyms_cmds_RC \
21308 allow_undefined_flag_RC \
21309 no_undefined_flag_RC \
21310 export_symbols_cmds_RC \
21311 hardcode_libdir_flag_spec_RC \
21312 hardcode_libdir_flag_spec_ld_RC \
21313 hardcode_libdir_separator_RC \
21314 hardcode_automatic_RC \
21316 module_expsym_cmds_RC \
21317 lt_cv_prog_compiler_c_o_RC \
21318 exclude_expsyms_RC \
21319 include_expsyms_RC; do
21322 old_archive_cmds_RC | \
21323 old_archive_from_new_cmds_RC | \
21324 archive_cmds_RC | \
21325 archive_expsym_cmds_RC | \
21327 module_expsym_cmds_RC | \
21328 old_archive_from_expsyms_cmds_RC | \
21329 export_symbols_cmds_RC | \
21330 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21331 postinstall_cmds | postuninstall_cmds | \
21332 old_postinstall_cmds | old_postuninstall_cmds | \
21333 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21334 # Double-quote double-evaled strings.
21335 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21338 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21344 *'\$0 --fallback-echo"')
21345 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21351 cat <<__EOF__ >> "$cfgfile"
21352 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21354 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21356 # Shell to use when invoking shell scripts.
21359 # Whether or not to build shared libraries.
21360 build_libtool_libs=$enable_shared
21362 # Whether or not to build static libraries.
21363 build_old_libs=$enable_static
21365 # Whether or not to add -lc for building shared libraries.
21366 build_libtool_need_lc=$archive_cmds_need_lc_RC
21368 # Whether or not to disallow shared libs when runtime libs are static
21369 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21371 # Whether or not to optimize for fast installation.
21372 fast_install=$enable_fast_install
21375 host_alias=$host_alias
21379 # The build system.
21380 build_alias=$build_alias
21384 # An echo program that does not interpret backslashes.
21389 AR_FLAGS=$lt_AR_FLAGS
21394 # A language-specific compiler.
21397 # Is the compiler the GNU C compiler?
21403 # The linker used to build libraries.
21406 # Whether we need hard or soft links.
21409 # A BSD-compatible nm program.
21412 # A symbol stripping program
21415 # Used to examine libraries when file_magic_cmd begins "file"
21416 MAGIC_CMD=$MAGIC_CMD
21418 # Used on cygwin: DLL creation program.
21421 # Used on cygwin: object dumper.
21424 # Used on cygwin: assembler.
21427 # The name of the directory that contains temporary libtool files.
21430 # How to create reloadable object files.
21431 reload_flag=$lt_reload_flag
21432 reload_cmds=$lt_reload_cmds
21434 # How to pass a linker flag through the compiler.
21435 wl=$lt_lt_prog_compiler_wl_RC
21437 # Object file suffix (normally "o").
21438 objext="$ac_objext"
21440 # Old archive suffix (normally "a").
21443 # Shared library suffix (normally ".so").
21444 shrext_cmds='$shrext_cmds'
21446 # Executable file suffix (normally "").
21449 # Additional compiler flags for building library objects.
21450 pic_flag=$lt_lt_prog_compiler_pic_RC
21453 # What is the maximum length of a command?
21454 max_cmd_len=$lt_cv_sys_max_cmd_len
21456 # Does compiler simultaneously support -c and -o options?
21457 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21459 # Must we lock files when doing compilation?
21460 need_locks=$lt_need_locks
21462 # Do we need the lib prefix for modules?
21463 need_lib_prefix=$need_lib_prefix
21465 # Do we need a version for libraries?
21466 need_version=$need_version
21468 # Whether dlopen is supported.
21469 dlopen_support=$enable_dlopen
21471 # Whether dlopen of programs is supported.
21472 dlopen_self=$enable_dlopen_self
21474 # Whether dlopen of statically linked programs is supported.
21475 dlopen_self_static=$enable_dlopen_self_static
21477 # Compiler flag to prevent dynamic linking.
21478 link_static_flag=$lt_lt_prog_compiler_static_RC
21480 # Compiler flag to turn off builtin functions.
21481 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21483 # Compiler flag to allow reflexive dlopens.
21484 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21486 # Compiler flag to generate shared objects directly from archives.
21487 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21489 # Compiler flag to generate thread-safe objects.
21490 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21492 # Library versioning type.
21493 version_type=$version_type
21495 # Format of library name prefix.
21496 libname_spec=$lt_libname_spec
21498 # List of archive names. First name is the real one, the rest are links.
21499 # The last name is the one that the linker finds with -lNAME.
21500 library_names_spec=$lt_library_names_spec
21502 # The coded name of the library, if different from the real name.
21503 soname_spec=$lt_soname_spec
21505 # Commands used to build and install an old-style archive.
21507 old_archive_cmds=$lt_old_archive_cmds_RC
21508 old_postinstall_cmds=$lt_old_postinstall_cmds
21509 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21511 # Create an old-style archive from a shared archive.
21512 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21514 # Create a temporary old-style archive to link instead of a shared archive.
21515 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21517 # Commands used to build and install a shared archive.
21518 archive_cmds=$lt_archive_cmds_RC
21519 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21520 postinstall_cmds=$lt_postinstall_cmds
21521 postuninstall_cmds=$lt_postuninstall_cmds
21523 # Commands used to build a loadable module (assumed same as above if empty)
21524 module_cmds=$lt_module_cmds_RC
21525 module_expsym_cmds=$lt_module_expsym_cmds_RC
21527 # Commands to strip libraries.
21528 old_striplib=$lt_old_striplib
21529 striplib=$lt_striplib
21531 # Dependencies to place before the objects being linked to create a
21533 predep_objects=$lt_predep_objects_RC
21535 # Dependencies to place after the objects being linked to create a
21537 postdep_objects=$lt_postdep_objects_RC
21539 # Dependencies to place before the objects being linked to create a
21541 predeps=$lt_predeps_RC
21543 # Dependencies to place after the objects being linked to create a
21545 postdeps=$lt_postdeps_RC
21547 # The library search path used internally by the compiler when linking
21548 # a shared library.
21549 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21551 # Method to check whether dependent libraries are shared objects.
21552 deplibs_check_method=$lt_deplibs_check_method
21554 # Command to use when deplibs_check_method == file_magic.
21555 file_magic_cmd=$lt_file_magic_cmd
21557 # Flag that allows shared libraries with undefined symbols to be built.
21558 allow_undefined_flag=$lt_allow_undefined_flag_RC
21560 # Flag that forces no undefined symbols.
21561 no_undefined_flag=$lt_no_undefined_flag_RC
21563 # Commands used to finish a libtool library installation in a directory.
21564 finish_cmds=$lt_finish_cmds
21566 # Same as above, but a single script fragment to be evaled but not shown.
21567 finish_eval=$lt_finish_eval
21569 # Take the output of nm and produce a listing of raw symbols and C names.
21570 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21572 # Transform the output of nm in a proper C declaration
21573 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21575 # Transform the output of nm in a C name address pair
21576 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21578 # This is the shared library runtime path variable.
21579 runpath_var=$runpath_var
21581 # This is the shared library path variable.
21582 shlibpath_var=$shlibpath_var
21584 # Is shlibpath searched before the hard-coded library search path?
21585 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21587 # How to hardcode a shared library path into an executable.
21588 hardcode_action=$hardcode_action_RC
21590 # Whether we should hardcode library paths into libraries.
21591 hardcode_into_libs=$hardcode_into_libs
21593 # Flag to hardcode \$libdir into a binary during linking.
21594 # This must work even if \$libdir does not exist.
21595 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21597 # If ld is used when linking, flag to hardcode \$libdir into
21598 # a binary during linking. This must work even if \$libdir does
21600 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21602 # Whether we need a single -rpath flag with a separated argument.
21603 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21605 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21606 # resulting binary.
21607 hardcode_direct=$hardcode_direct_RC
21609 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21610 # resulting binary.
21611 hardcode_minus_L=$hardcode_minus_L_RC
21613 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21614 # the resulting binary.
21615 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21617 # Set to yes if building a shared library automatically hardcodes DIR into the library
21618 # and all subsequent libraries and executables linked against it.
21619 hardcode_automatic=$hardcode_automatic_RC
21621 # Variables whose values should be saved in libtool wrapper scripts and
21622 # restored at relink time.
21623 variables_saved_for_relink="$variables_saved_for_relink"
21625 # Whether libtool must link a program against all its dependency libraries.
21626 link_all_deplibs=$link_all_deplibs_RC
21628 # Compile-time system search path for libraries
21629 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21631 # Run-time system search path for libraries
21632 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21634 # Fix the shell variable \$srcfile for the compiler.
21635 fix_srcfile_path="$fix_srcfile_path_RC"
21637 # Set to yes if exported symbols are required.
21638 always_export_symbols=$always_export_symbols_RC
21640 # The commands to list exported symbols.
21641 export_symbols_cmds=$lt_export_symbols_cmds_RC
21643 # The commands to extract the exported symbol list from a shared archive.
21644 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21646 # Symbols that should not be listed in the preloaded symbols.
21647 exclude_expsyms=$lt_exclude_expsyms_RC
21649 # Symbols that must always be exported.
21650 include_expsyms=$lt_include_expsyms_RC
21652 # ### END LIBTOOL TAG CONFIG: $tagname
21658 # If there is no Makefile yet, we rely on a make rule to execute
21659 # `config.status --recheck' to rerun these tests and create the
21660 # libtool script then.
21661 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21662 if test -f "$ltmain_in"; then
21663 test -f Makefile && make "$ltmain"
21669 ac_cpp='$CPP $CPPFLAGS'
21670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21679 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21680 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21681 { (exit 1); exit 1; }; }
21685 # Append the new tag name to the list of available tags.
21686 if test -n "$tagname" ; then
21687 available_tags="$available_tags $tagname"
21693 # Now substitute the updated list of available tags.
21694 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21695 mv "${ofile}T" "$ofile"
21699 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21700 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21701 { (exit 1); exit 1; }; }
21707 # This can be used to rebuild libtool when needed
21708 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21710 # Always use our own libtool.
21711 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21713 # Prevent multiple expansion
21736 if test $ol_enable_perl != no ; then
21737 # Extract the first word of "perl", so it can be a program name with args.
21738 set dummy perl; ac_word=$2
21739 echo "$as_me:$LINENO: checking for $ac_word" >&5
21740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21741 if test "${ac_cv_path_PERLBIN+set}" = set; then
21742 echo $ECHO_N "(cached) $ECHO_C" >&6
21746 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
21749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21750 for as_dir in $PATH
21753 test -z "$as_dir" && as_dir=.
21754 for ac_exec_ext in '' $ac_executable_extensions; do
21755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21756 ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
21757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21763 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
21767 PERLBIN=$ac_cv_path_PERLBIN
21769 if test -n "$PERLBIN"; then
21770 echo "$as_me:$LINENO: result: $PERLBIN" >&5
21771 echo "${ECHO_T}$PERLBIN" >&6
21773 echo "$as_me:$LINENO: result: no" >&5
21774 echo "${ECHO_T}no" >&6
21778 if test "no$PERLBIN" = "no" ; then
21779 if test $ol_enable_perl = yes ; then
21780 { { echo "$as_me:$LINENO: error: could not locate perl" >&5
21781 echo "$as_me: error: could not locate perl" >&2;}
21782 { (exit 1); exit 1; }; }
21786 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
21787 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
21789 if test x"$ol_enable_perl" = "xyes" ; then
21790 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
21792 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
21799 ac_cpp='$CPP $CPPFLAGS'
21800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21803 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
21804 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
21805 # On Suns, sometimes $CPP names a directory.
21806 if test -n "$CPP" && test -d "$CPP"; then
21809 if test -z "$CPP"; then
21810 if test "${ac_cv_prog_CPP+set}" = set; then
21811 echo $ECHO_N "(cached) $ECHO_C" >&6
21813 # Double quotes because CPP needs to be expanded
21814 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
21816 ac_preproc_ok=false
21817 for ac_c_preproc_warn_flag in '' yes
21819 # Use a header file that comes with gcc, so configuring glibc
21820 # with a fresh cross-compiler works.
21821 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21822 # <limits.h> exists even on freestanding compilers.
21823 # On the NeXT, cc -E runs the code through the compiler's parser,
21824 # not just through cpp. "Syntax error" is here to catch this case.
21825 cat >conftest.$ac_ext <<_ACEOF
21828 cat confdefs.h >>conftest.$ac_ext
21829 cat >>conftest.$ac_ext <<_ACEOF
21830 /* end confdefs.h. */
21832 # include <limits.h>
21834 # include <assert.h>
21838 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21839 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21841 grep -v '^ *+' conftest.er1 >conftest.err
21843 cat conftest.err >&5
21844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21845 (exit $ac_status); } >/dev/null; then
21846 if test -s conftest.err; then
21847 ac_cpp_err=$ac_c_preproc_warn_flag
21848 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21855 if test -z "$ac_cpp_err"; then
21858 echo "$as_me: failed program was:" >&5
21859 sed 's/^/| /' conftest.$ac_ext >&5
21861 # Broken: fails on valid input.
21864 rm -f conftest.err conftest.$ac_ext
21866 # OK, works on sane cases. Now check whether non-existent headers
21867 # can be detected and how.
21868 cat >conftest.$ac_ext <<_ACEOF
21871 cat confdefs.h >>conftest.$ac_ext
21872 cat >>conftest.$ac_ext <<_ACEOF
21873 /* end confdefs.h. */
21874 #include <ac_nonexistent.h>
21876 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21877 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21879 grep -v '^ *+' conftest.er1 >conftest.err
21881 cat conftest.err >&5
21882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21883 (exit $ac_status); } >/dev/null; then
21884 if test -s conftest.err; then
21885 ac_cpp_err=$ac_c_preproc_warn_flag
21886 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21893 if test -z "$ac_cpp_err"; then
21894 # Broken: success on invalid input.
21897 echo "$as_me: failed program was:" >&5
21898 sed 's/^/| /' conftest.$ac_ext >&5
21900 # Passes both tests.
21904 rm -f conftest.err conftest.$ac_ext
21907 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21908 rm -f conftest.err conftest.$ac_ext
21909 if $ac_preproc_ok; then
21914 ac_cv_prog_CPP=$CPP
21917 CPP=$ac_cv_prog_CPP
21919 ac_cv_prog_CPP=$CPP
21921 echo "$as_me:$LINENO: result: $CPP" >&5
21922 echo "${ECHO_T}$CPP" >&6
21923 ac_preproc_ok=false
21924 for ac_c_preproc_warn_flag in '' yes
21926 # Use a header file that comes with gcc, so configuring glibc
21927 # with a fresh cross-compiler works.
21928 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21929 # <limits.h> exists even on freestanding compilers.
21930 # On the NeXT, cc -E runs the code through the compiler's parser,
21931 # not just through cpp. "Syntax error" is here to catch this case.
21932 cat >conftest.$ac_ext <<_ACEOF
21935 cat confdefs.h >>conftest.$ac_ext
21936 cat >>conftest.$ac_ext <<_ACEOF
21937 /* end confdefs.h. */
21939 # include <limits.h>
21941 # include <assert.h>
21945 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21946 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21948 grep -v '^ *+' conftest.er1 >conftest.err
21950 cat conftest.err >&5
21951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21952 (exit $ac_status); } >/dev/null; then
21953 if test -s conftest.err; then
21954 ac_cpp_err=$ac_c_preproc_warn_flag
21955 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21962 if test -z "$ac_cpp_err"; then
21965 echo "$as_me: failed program was:" >&5
21966 sed 's/^/| /' conftest.$ac_ext >&5
21968 # Broken: fails on valid input.
21971 rm -f conftest.err conftest.$ac_ext
21973 # OK, works on sane cases. Now check whether non-existent headers
21974 # can be detected and how.
21975 cat >conftest.$ac_ext <<_ACEOF
21978 cat confdefs.h >>conftest.$ac_ext
21979 cat >>conftest.$ac_ext <<_ACEOF
21980 /* end confdefs.h. */
21981 #include <ac_nonexistent.h>
21983 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21984 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21986 grep -v '^ *+' conftest.er1 >conftest.err
21988 cat conftest.err >&5
21989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21990 (exit $ac_status); } >/dev/null; then
21991 if test -s conftest.err; then
21992 ac_cpp_err=$ac_c_preproc_warn_flag
21993 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22000 if test -z "$ac_cpp_err"; then
22001 # Broken: success on invalid input.
22004 echo "$as_me: failed program was:" >&5
22005 sed 's/^/| /' conftest.$ac_ext >&5
22007 # Passes both tests.
22011 rm -f conftest.err conftest.$ac_ext
22014 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22015 rm -f conftest.err conftest.$ac_ext
22016 if $ac_preproc_ok; then
22019 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
22020 See \`config.log' for more details." >&5
22021 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
22022 See \`config.log' for more details." >&2;}
22023 { (exit 1); exit 1; }; }
22027 ac_cpp='$CPP $CPPFLAGS'
22028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22037 cat >>confdefs.h <<_ACEOF
22038 #define EXEEXT "${EXEEXT}"
22042 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
22043 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
22044 if test "${ac_cv_lib_be_be_app+set}" = set; then
22045 echo $ECHO_N "(cached) $ECHO_C" >&6
22047 ac_check_lib_save_LIBS=$LIBS
22048 LIBS="-lbe -lroot -lnet $LIBS"
22049 cat >conftest.$ac_ext <<_ACEOF
22052 cat confdefs.h >>conftest.$ac_ext
22053 cat >>conftest.$ac_ext <<_ACEOF
22054 /* end confdefs.h. */
22056 /* Override any gcc2 internal prototype to avoid an error. */
22060 /* We use char because int might match the return type of a gcc2
22061 builtin and then its argument prototype would still apply. */
22071 rm -f conftest.$ac_objext conftest$ac_exeext
22072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22073 (eval $ac_link) 2>conftest.er1
22075 grep -v '^ *+' conftest.er1 >conftest.err
22077 cat conftest.err >&5
22078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22079 (exit $ac_status); } &&
22080 { ac_try='test -z "$ac_c_werror_flag"
22081 || test ! -s conftest.err'
22082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22083 (eval $ac_try) 2>&5
22085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22086 (exit $ac_status); }; } &&
22087 { ac_try='test -s conftest$ac_exeext'
22088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22089 (eval $ac_try) 2>&5
22091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22092 (exit $ac_status); }; }; then
22093 ac_cv_lib_be_be_app=yes
22095 echo "$as_me: failed program was:" >&5
22096 sed 's/^/| /' conftest.$ac_ext >&5
22098 ac_cv_lib_be_be_app=no
22100 rm -f conftest.err conftest.$ac_objext \
22101 conftest$ac_exeext conftest.$ac_ext
22102 LIBS=$ac_check_lib_save_LIBS
22104 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
22105 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
22106 if test $ac_cv_lib_be_be_app = yes; then
22107 LIBS="$LIBS -lbe -lroot -lnet"
22114 ac_cpp='$CPP $CPPFLAGS'
22115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22118 if test -n "$ac_tool_prefix"; then
22119 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
22120 set dummy ${ac_tool_prefix}gcc; ac_word=$2
22121 echo "$as_me:$LINENO: checking for $ac_word" >&5
22122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22123 if test "${ac_cv_prog_CC+set}" = set; then
22124 echo $ECHO_N "(cached) $ECHO_C" >&6
22126 if test -n "$CC"; then
22127 ac_cv_prog_CC="$CC" # Let the user override the test.
22129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22130 for as_dir in $PATH
22133 test -z "$as_dir" && as_dir=.
22134 for ac_exec_ext in '' $ac_executable_extensions; do
22135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22136 ac_cv_prog_CC="${ac_tool_prefix}gcc"
22137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22146 if test -n "$CC"; then
22147 echo "$as_me:$LINENO: result: $CC" >&5
22148 echo "${ECHO_T}$CC" >&6
22150 echo "$as_me:$LINENO: result: no" >&5
22151 echo "${ECHO_T}no" >&6
22155 if test -z "$ac_cv_prog_CC"; then
22157 # Extract the first word of "gcc", so it can be a program name with args.
22158 set dummy gcc; ac_word=$2
22159 echo "$as_me:$LINENO: checking for $ac_word" >&5
22160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22161 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22162 echo $ECHO_N "(cached) $ECHO_C" >&6
22164 if test -n "$ac_ct_CC"; then
22165 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22168 for as_dir in $PATH
22171 test -z "$as_dir" && as_dir=.
22172 for ac_exec_ext in '' $ac_executable_extensions; do
22173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22174 ac_cv_prog_ac_ct_CC="gcc"
22175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22183 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22184 if test -n "$ac_ct_CC"; then
22185 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22186 echo "${ECHO_T}$ac_ct_CC" >&6
22188 echo "$as_me:$LINENO: result: no" >&5
22189 echo "${ECHO_T}no" >&6
22194 CC="$ac_cv_prog_CC"
22197 if test -z "$CC"; then
22198 if test -n "$ac_tool_prefix"; then
22199 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
22200 set dummy ${ac_tool_prefix}cc; ac_word=$2
22201 echo "$as_me:$LINENO: checking for $ac_word" >&5
22202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22203 if test "${ac_cv_prog_CC+set}" = set; then
22204 echo $ECHO_N "(cached) $ECHO_C" >&6
22206 if test -n "$CC"; then
22207 ac_cv_prog_CC="$CC" # Let the user override the test.
22209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22210 for as_dir in $PATH
22213 test -z "$as_dir" && as_dir=.
22214 for ac_exec_ext in '' $ac_executable_extensions; do
22215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22216 ac_cv_prog_CC="${ac_tool_prefix}cc"
22217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22226 if test -n "$CC"; then
22227 echo "$as_me:$LINENO: result: $CC" >&5
22228 echo "${ECHO_T}$CC" >&6
22230 echo "$as_me:$LINENO: result: no" >&5
22231 echo "${ECHO_T}no" >&6
22235 if test -z "$ac_cv_prog_CC"; then
22237 # Extract the first word of "cc", so it can be a program name with args.
22238 set dummy cc; ac_word=$2
22239 echo "$as_me:$LINENO: checking for $ac_word" >&5
22240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22241 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22242 echo $ECHO_N "(cached) $ECHO_C" >&6
22244 if test -n "$ac_ct_CC"; then
22245 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22248 for as_dir in $PATH
22251 test -z "$as_dir" && as_dir=.
22252 for ac_exec_ext in '' $ac_executable_extensions; do
22253 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22254 ac_cv_prog_ac_ct_CC="cc"
22255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22263 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22264 if test -n "$ac_ct_CC"; then
22265 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22266 echo "${ECHO_T}$ac_ct_CC" >&6
22268 echo "$as_me:$LINENO: result: no" >&5
22269 echo "${ECHO_T}no" >&6
22274 CC="$ac_cv_prog_CC"
22278 if test -z "$CC"; then
22279 # Extract the first word of "cc", so it can be a program name with args.
22280 set dummy cc; ac_word=$2
22281 echo "$as_me:$LINENO: checking for $ac_word" >&5
22282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22283 if test "${ac_cv_prog_CC+set}" = set; then
22284 echo $ECHO_N "(cached) $ECHO_C" >&6
22286 if test -n "$CC"; then
22287 ac_cv_prog_CC="$CC" # Let the user override the test.
22289 ac_prog_rejected=no
22290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22291 for as_dir in $PATH
22294 test -z "$as_dir" && as_dir=.
22295 for ac_exec_ext in '' $ac_executable_extensions; do
22296 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22297 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
22298 ac_prog_rejected=yes
22302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22308 if test $ac_prog_rejected = yes; then
22309 # We found a bogon in the path, so make sure we never use it.
22310 set dummy $ac_cv_prog_CC
22312 if test $# != 0; then
22313 # We chose a different compiler from the bogus one.
22314 # However, it has the same basename, so the bogon will be chosen
22315 # first if we set CC to just the basename; use the full file name.
22317 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
22323 if test -n "$CC"; then
22324 echo "$as_me:$LINENO: result: $CC" >&5
22325 echo "${ECHO_T}$CC" >&6
22327 echo "$as_me:$LINENO: result: no" >&5
22328 echo "${ECHO_T}no" >&6
22332 if test -z "$CC"; then
22333 if test -n "$ac_tool_prefix"; then
22336 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
22337 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
22338 echo "$as_me:$LINENO: checking for $ac_word" >&5
22339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22340 if test "${ac_cv_prog_CC+set}" = set; then
22341 echo $ECHO_N "(cached) $ECHO_C" >&6
22343 if test -n "$CC"; then
22344 ac_cv_prog_CC="$CC" # Let the user override the test.
22346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22347 for as_dir in $PATH
22350 test -z "$as_dir" && as_dir=.
22351 for ac_exec_ext in '' $ac_executable_extensions; do
22352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22353 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
22354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22363 if test -n "$CC"; then
22364 echo "$as_me:$LINENO: result: $CC" >&5
22365 echo "${ECHO_T}$CC" >&6
22367 echo "$as_me:$LINENO: result: no" >&5
22368 echo "${ECHO_T}no" >&6
22371 test -n "$CC" && break
22374 if test -z "$CC"; then
22378 # Extract the first word of "$ac_prog", so it can be a program name with args.
22379 set dummy $ac_prog; ac_word=$2
22380 echo "$as_me:$LINENO: checking for $ac_word" >&5
22381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22382 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22383 echo $ECHO_N "(cached) $ECHO_C" >&6
22385 if test -n "$ac_ct_CC"; then
22386 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22389 for as_dir in $PATH
22392 test -z "$as_dir" && as_dir=.
22393 for ac_exec_ext in '' $ac_executable_extensions; do
22394 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22395 ac_cv_prog_ac_ct_CC="$ac_prog"
22396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22404 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22405 if test -n "$ac_ct_CC"; then
22406 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22407 echo "${ECHO_T}$ac_ct_CC" >&6
22409 echo "$as_me:$LINENO: result: no" >&5
22410 echo "${ECHO_T}no" >&6
22413 test -n "$ac_ct_CC" && break
22422 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
22423 See \`config.log' for more details." >&5
22424 echo "$as_me: error: no acceptable C compiler found in \$PATH
22425 See \`config.log' for more details." >&2;}
22426 { (exit 1); exit 1; }; }
22428 # Provide some information about the compiler.
22429 echo "$as_me:$LINENO:" \
22430 "checking for C compiler version" >&5
22431 ac_compiler=`set X $ac_compile; echo $2`
22432 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
22433 (eval $ac_compiler --version </dev/null >&5) 2>&5
22435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22436 (exit $ac_status); }
22437 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
22438 (eval $ac_compiler -v </dev/null >&5) 2>&5
22440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22441 (exit $ac_status); }
22442 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
22443 (eval $ac_compiler -V </dev/null >&5) 2>&5
22445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22446 (exit $ac_status); }
22448 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
22449 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
22450 if test "${ac_cv_c_compiler_gnu+set}" = set; then
22451 echo $ECHO_N "(cached) $ECHO_C" >&6
22453 cat >conftest.$ac_ext <<_ACEOF
22456 cat confdefs.h >>conftest.$ac_ext
22457 cat >>conftest.$ac_ext <<_ACEOF
22458 /* end confdefs.h. */
22471 rm -f conftest.$ac_objext
22472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22473 (eval $ac_compile) 2>conftest.er1
22475 grep -v '^ *+' conftest.er1 >conftest.err
22477 cat conftest.err >&5
22478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22479 (exit $ac_status); } &&
22480 { ac_try='test -z "$ac_c_werror_flag"
22481 || test ! -s conftest.err'
22482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22483 (eval $ac_try) 2>&5
22485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22486 (exit $ac_status); }; } &&
22487 { ac_try='test -s conftest.$ac_objext'
22488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22489 (eval $ac_try) 2>&5
22491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22492 (exit $ac_status); }; }; then
22493 ac_compiler_gnu=yes
22495 echo "$as_me: failed program was:" >&5
22496 sed 's/^/| /' conftest.$ac_ext >&5
22500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22501 ac_cv_c_compiler_gnu=$ac_compiler_gnu
22504 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
22505 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
22506 GCC=`test $ac_compiler_gnu = yes && echo yes`
22507 ac_test_CFLAGS=${CFLAGS+set}
22508 ac_save_CFLAGS=$CFLAGS
22510 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
22511 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
22512 if test "${ac_cv_prog_cc_g+set}" = set; then
22513 echo $ECHO_N "(cached) $ECHO_C" >&6
22515 cat >conftest.$ac_ext <<_ACEOF
22518 cat confdefs.h >>conftest.$ac_ext
22519 cat >>conftest.$ac_ext <<_ACEOF
22520 /* end confdefs.h. */
22530 rm -f conftest.$ac_objext
22531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22532 (eval $ac_compile) 2>conftest.er1
22534 grep -v '^ *+' conftest.er1 >conftest.err
22536 cat conftest.err >&5
22537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22538 (exit $ac_status); } &&
22539 { ac_try='test -z "$ac_c_werror_flag"
22540 || test ! -s conftest.err'
22541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22542 (eval $ac_try) 2>&5
22544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22545 (exit $ac_status); }; } &&
22546 { ac_try='test -s conftest.$ac_objext'
22547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22548 (eval $ac_try) 2>&5
22550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22551 (exit $ac_status); }; }; then
22552 ac_cv_prog_cc_g=yes
22554 echo "$as_me: failed program was:" >&5
22555 sed 's/^/| /' conftest.$ac_ext >&5
22559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22561 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
22562 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
22563 if test "$ac_test_CFLAGS" = set; then
22564 CFLAGS=$ac_save_CFLAGS
22565 elif test $ac_cv_prog_cc_g = yes; then
22566 if test "$GCC" = yes; then
22572 if test "$GCC" = yes; then
22578 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
22579 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
22580 if test "${ac_cv_prog_cc_stdc+set}" = set; then
22581 echo $ECHO_N "(cached) $ECHO_C" >&6
22583 ac_cv_prog_cc_stdc=no
22585 cat >conftest.$ac_ext <<_ACEOF
22588 cat confdefs.h >>conftest.$ac_ext
22589 cat >>conftest.$ac_ext <<_ACEOF
22590 /* end confdefs.h. */
22591 #include <stdarg.h>
22593 #include <sys/types.h>
22594 #include <sys/stat.h>
22595 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
22596 struct buf { int x; };
22597 FILE * (*rcsopen) (struct buf *, struct stat *, int);
22598 static char *e (p, i)
22604 static char *f (char * (*g) (char **, int), char **p, ...)
22609 s = g (p, va_arg (v,int));
22614 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
22615 function prototypes and stuff, but not '\xHH' hex character constants.
22616 These don't provoke an error unfortunately, instead are silently treated
22617 as 'x'. The following induces an error, until -std1 is added to get
22618 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
22619 array size at least. It's necessary to write '\x00'==0 to get something
22620 that's true only with -std1. */
22621 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
22623 int test (int i, double x);
22624 struct s1 {int (*f) (int a);};
22625 struct s2 {int (*f) (double a);};
22626 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
22632 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
22637 # Don't try gcc -ansi; that turns off useful extensions and
22638 # breaks some systems' header files.
22639 # AIX -qlanglvl=ansi
22640 # Ultrix and OSF/1 -std1
22641 # HP-UX 10.20 and later -Ae
22642 # HP-UX older versions -Aa -D_HPUX_SOURCE
22643 # SVR4 -Xc -D__EXTENSIONS__
22644 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
22646 CC="$ac_save_CC $ac_arg"
22647 rm -f conftest.$ac_objext
22648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22649 (eval $ac_compile) 2>conftest.er1
22651 grep -v '^ *+' conftest.er1 >conftest.err
22653 cat conftest.err >&5
22654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22655 (exit $ac_status); } &&
22656 { ac_try='test -z "$ac_c_werror_flag"
22657 || test ! -s conftest.err'
22658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22659 (eval $ac_try) 2>&5
22661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22662 (exit $ac_status); }; } &&
22663 { ac_try='test -s conftest.$ac_objext'
22664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22665 (eval $ac_try) 2>&5
22667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22668 (exit $ac_status); }; }; then
22669 ac_cv_prog_cc_stdc=$ac_arg
22672 echo "$as_me: failed program was:" >&5
22673 sed 's/^/| /' conftest.$ac_ext >&5
22676 rm -f conftest.err conftest.$ac_objext
22678 rm -f conftest.$ac_ext conftest.$ac_objext
22683 case "x$ac_cv_prog_cc_stdc" in
22685 echo "$as_me:$LINENO: result: none needed" >&5
22686 echo "${ECHO_T}none needed" >&6 ;;
22688 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
22689 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
22690 CC="$CC $ac_cv_prog_cc_stdc" ;;
22693 # Some people use a C++ compiler to compile C. Since we use `exit',
22694 # in C++ we need to declare it. In case someone uses the same compiler
22695 # for both compiling C and C++ we need to have the C++ compiler decide
22696 # the declaration of exit, since it's the most demanding environment.
22697 cat >conftest.$ac_ext <<_ACEOF
22698 #ifndef __cplusplus
22702 rm -f conftest.$ac_objext
22703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22704 (eval $ac_compile) 2>conftest.er1
22706 grep -v '^ *+' conftest.er1 >conftest.err
22708 cat conftest.err >&5
22709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22710 (exit $ac_status); } &&
22711 { ac_try='test -z "$ac_c_werror_flag"
22712 || test ! -s conftest.err'
22713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22714 (eval $ac_try) 2>&5
22716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22717 (exit $ac_status); }; } &&
22718 { ac_try='test -s conftest.$ac_objext'
22719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22720 (eval $ac_try) 2>&5
22722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22723 (exit $ac_status); }; }; then
22724 for ac_declaration in \
22726 'extern "C" void std::exit (int) throw (); using std::exit;' \
22727 'extern "C" void std::exit (int); using std::exit;' \
22728 'extern "C" void exit (int) throw ();' \
22729 'extern "C" void exit (int);' \
22732 cat >conftest.$ac_ext <<_ACEOF
22735 cat confdefs.h >>conftest.$ac_ext
22736 cat >>conftest.$ac_ext <<_ACEOF
22737 /* end confdefs.h. */
22739 #include <stdlib.h>
22748 rm -f conftest.$ac_objext
22749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22750 (eval $ac_compile) 2>conftest.er1
22752 grep -v '^ *+' conftest.er1 >conftest.err
22754 cat conftest.err >&5
22755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22756 (exit $ac_status); } &&
22757 { ac_try='test -z "$ac_c_werror_flag"
22758 || test ! -s conftest.err'
22759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22760 (eval $ac_try) 2>&5
22762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22763 (exit $ac_status); }; } &&
22764 { ac_try='test -s conftest.$ac_objext'
22765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22766 (eval $ac_try) 2>&5
22768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22769 (exit $ac_status); }; }; then
22772 echo "$as_me: failed program was:" >&5
22773 sed 's/^/| /' conftest.$ac_ext >&5
22777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22778 cat >conftest.$ac_ext <<_ACEOF
22781 cat confdefs.h >>conftest.$ac_ext
22782 cat >>conftest.$ac_ext <<_ACEOF
22783 /* end confdefs.h. */
22793 rm -f conftest.$ac_objext
22794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22795 (eval $ac_compile) 2>conftest.er1
22797 grep -v '^ *+' conftest.er1 >conftest.err
22799 cat conftest.err >&5
22800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22801 (exit $ac_status); } &&
22802 { ac_try='test -z "$ac_c_werror_flag"
22803 || test ! -s conftest.err'
22804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22805 (eval $ac_try) 2>&5
22807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22808 (exit $ac_status); }; } &&
22809 { ac_try='test -s conftest.$ac_objext'
22810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22811 (eval $ac_try) 2>&5
22813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22814 (exit $ac_status); }; }; then
22817 echo "$as_me: failed program was:" >&5
22818 sed 's/^/| /' conftest.$ac_ext >&5
22821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22824 if test -n "$ac_declaration"; then
22825 echo '#ifdef __cplusplus' >>confdefs.h
22826 echo $ac_declaration >>confdefs.h
22827 echo '#endif' >>confdefs.h
22831 echo "$as_me: failed program was:" >&5
22832 sed 's/^/| /' conftest.$ac_ext >&5
22835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22837 ac_cpp='$CPP $CPPFLAGS'
22838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22842 depcc="$CC" am_compiler_list=
22844 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
22845 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
22846 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
22847 echo $ECHO_N "(cached) $ECHO_C" >&6
22849 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
22850 # We make a subdir and do the tests there. Otherwise we can end up
22851 # making bogus files that we don't know about and never remove. For
22852 # instance it was reported that on HP-UX the gcc test will end up
22853 # making a dummy file named `D' -- because `-MD' means `put the output
22856 # Copy depcomp to subdir because otherwise we won't find it if we're
22857 # using a relative directory.
22858 cp "$am_depcomp" conftest.dir
22860 # We will build objects and dependencies in a subdirectory because
22861 # it helps to detect inapplicable dependency modes. For instance
22862 # both Tru64's cc and ICC support -MD to output dependencies as a
22863 # side effect of compilation, but ICC will put the dependencies in
22864 # the current directory while Tru64 will put them in the object
22868 am_cv_CC_dependencies_compiler_type=none
22869 if test "$am_compiler_list" = ""; then
22870 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
22872 for depmode in $am_compiler_list; do
22873 # Setup a source with many dependencies, because some compilers
22874 # like to wrap large dependency lists on column 80 (with \), and
22875 # we should not choose a depcomp mode which is confused by this.
22877 # We need to recreate these files for each test, as the compiler may
22878 # overwrite some of them when testing with obscure command lines.
22879 # This happens at least with the AIX C compiler.
22881 for i in 1 2 3 4 5 6; do
22882 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22883 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
22884 # Solaris 8's {/usr,}/bin/sh.
22885 touch sub/conftst$i.h
22887 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
22891 # after this tag, mechanisms are not by side-effect, so they'll
22892 # only be used when explicitly requested
22893 if test "x$enable_dependency_tracking" = xyes; then
22901 # We check with `-c' and `-o' for the sake of the "dashmstdout"
22902 # mode. It turns out that the SunPro C++ compiler does not properly
22903 # handle `-M -o', and we need to detect this.
22904 if depmode=$depmode \
22905 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
22906 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
22907 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
22908 >/dev/null 2>conftest.err &&
22909 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
22910 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
22911 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
22912 # icc doesn't choke on unknown options, it will just issue warnings
22913 # or remarks (even with -Werror). So we grep stderr for any message
22914 # that says an option was ignored or not supported.
22915 # When given -MP, icc 7.0 and 7.1 complain thusly:
22916 # icc: Command line warning: ignoring option '-M'; no argument required
22917 # The diagnosis changed in icc 8.0:
22918 # icc: Command line remark: option '-MP' not supported
22919 if (grep 'ignoring option' conftest.err ||
22920 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
22921 am_cv_CC_dependencies_compiler_type=$depmode
22928 rm -rf conftest.dir
22930 am_cv_CC_dependencies_compiler_type=none
22934 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
22935 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
22936 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
22941 test "x$enable_dependency_tracking" != xno \
22942 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
22943 am__fastdepCC_TRUE=
22944 am__fastdepCC_FALSE='#'
22946 am__fastdepCC_TRUE='#'
22947 am__fastdepCC_FALSE=
22951 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
22952 { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
22953 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
22954 { (exit 1); exit 1; }; }
22957 # test for make depend flag
22960 if test -z "${MKDEP}"; then
22961 OL_MKDEP="${CC-cc}"
22962 if test -z "${MKDEP_FLAGS}"; then
22963 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
22964 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
22965 if test "${ol_cv_mkdep+set}" = set; then
22966 echo $ECHO_N "(cached) $ECHO_C" >&6
22970 for flag in "-M" "-xM"; do
22971 cat > conftest.c <<EOF
22974 if { ac_try='$OL_MKDEP $flag conftest.c'
22975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22976 (eval $ac_try) 2>&5
22978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22979 (exit $ac_status); }; } \
22980 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
22982 if test ! -f conftest."${ac_object}" ; then
22984 OL_MKDEP_FLAGS="$flag"
22992 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
22993 echo "${ECHO_T}$ol_cv_mkdep" >&6
22996 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
23000 OL_MKDEP="${MKDEP}"
23001 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
23006 if test "${ol_cv_mkdep}" = no ; then
23007 # this will soon become an error
23008 { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
23009 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
23012 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
23013 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
23014 if test "${ac_cv_lib_s_afopen+set}" = set; then
23015 echo $ECHO_N "(cached) $ECHO_C" >&6
23017 ac_check_lib_save_LIBS=$LIBS
23019 cat >conftest.$ac_ext <<_ACEOF
23022 cat confdefs.h >>conftest.$ac_ext
23023 cat >>conftest.$ac_ext <<_ACEOF
23024 /* end confdefs.h. */
23026 /* Override any gcc2 internal prototype to avoid an error. */
23030 /* We use char because int might match the return type of a gcc2
23031 builtin and then its argument prototype would still apply. */
23041 rm -f conftest.$ac_objext conftest$ac_exeext
23042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23043 (eval $ac_link) 2>conftest.er1
23045 grep -v '^ *+' conftest.er1 >conftest.err
23047 cat conftest.err >&5
23048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23049 (exit $ac_status); } &&
23050 { ac_try='test -z "$ac_c_werror_flag"
23051 || test ! -s conftest.err'
23052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23053 (eval $ac_try) 2>&5
23055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23056 (exit $ac_status); }; } &&
23057 { ac_try='test -s conftest$ac_exeext'
23058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23059 (eval $ac_try) 2>&5
23061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23062 (exit $ac_status); }; }; then
23063 ac_cv_lib_s_afopen=yes
23065 echo "$as_me: failed program was:" >&5
23066 sed 's/^/| /' conftest.$ac_ext >&5
23068 ac_cv_lib_s_afopen=no
23070 rm -f conftest.err conftest.$ac_objext \
23071 conftest$ac_exeext conftest.$ac_ext
23072 LIBS=$ac_check_lib_save_LIBS
23074 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
23075 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
23076 if test $ac_cv_lib_s_afopen = yes; then
23080 cat >>confdefs.h <<\_ACEOF
23081 #define HAVE_AIX_SECURITY 1
23090 ac_cv_func_getopt=no
23092 cat >>confdefs.h <<\_ACEOF
23093 #define BOTH_STRINGS_H 1
23100 WITH_MODULES_ENABLED=no
23101 if test $ol_enable_modules != no ; then
23103 for ac_header in ltdl.h
23105 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23107 echo "$as_me:$LINENO: checking for $ac_header" >&5
23108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23109 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23110 echo $ECHO_N "(cached) $ECHO_C" >&6
23112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23113 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23115 # Is the header compilable?
23116 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23117 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23118 cat >conftest.$ac_ext <<_ACEOF
23121 cat confdefs.h >>conftest.$ac_ext
23122 cat >>conftest.$ac_ext <<_ACEOF
23123 /* end confdefs.h. */
23124 $ac_includes_default
23125 #include <$ac_header>
23127 rm -f conftest.$ac_objext
23128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23129 (eval $ac_compile) 2>conftest.er1
23131 grep -v '^ *+' conftest.er1 >conftest.err
23133 cat conftest.err >&5
23134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23135 (exit $ac_status); } &&
23136 { ac_try='test -z "$ac_c_werror_flag"
23137 || test ! -s conftest.err'
23138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23139 (eval $ac_try) 2>&5
23141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23142 (exit $ac_status); }; } &&
23143 { ac_try='test -s conftest.$ac_objext'
23144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23145 (eval $ac_try) 2>&5
23147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23148 (exit $ac_status); }; }; then
23149 ac_header_compiler=yes
23151 echo "$as_me: failed program was:" >&5
23152 sed 's/^/| /' conftest.$ac_ext >&5
23154 ac_header_compiler=no
23156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23157 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23158 echo "${ECHO_T}$ac_header_compiler" >&6
23160 # Is the header present?
23161 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23162 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23163 cat >conftest.$ac_ext <<_ACEOF
23166 cat confdefs.h >>conftest.$ac_ext
23167 cat >>conftest.$ac_ext <<_ACEOF
23168 /* end confdefs.h. */
23169 #include <$ac_header>
23171 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23172 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23174 grep -v '^ *+' conftest.er1 >conftest.err
23176 cat conftest.err >&5
23177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23178 (exit $ac_status); } >/dev/null; then
23179 if test -s conftest.err; then
23180 ac_cpp_err=$ac_c_preproc_warn_flag
23181 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23188 if test -z "$ac_cpp_err"; then
23189 ac_header_preproc=yes
23191 echo "$as_me: failed program was:" >&5
23192 sed 's/^/| /' conftest.$ac_ext >&5
23194 ac_header_preproc=no
23196 rm -f conftest.err conftest.$ac_ext
23197 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23198 echo "${ECHO_T}$ac_header_preproc" >&6
23200 # So? What about this header?
23201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23203 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23204 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23206 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23207 ac_header_preproc=yes
23210 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23211 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23212 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23213 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23214 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23215 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23216 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23217 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23219 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23220 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23221 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23224 ## ------------------------------------------ ##
23225 ## Report this to the AC_PACKAGE_NAME lists. ##
23226 ## ------------------------------------------ ##
23229 sed "s/^/$as_me: WARNING: /" >&2
23232 echo "$as_me:$LINENO: checking for $ac_header" >&5
23233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23235 echo $ECHO_N "(cached) $ECHO_C" >&6
23237 eval "$as_ac_Header=\$ac_header_preproc"
23239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23240 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23243 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23244 cat >>confdefs.h <<_ACEOF
23245 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23253 if test $ac_cv_header_ltdl_h = no ; then
23254 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
23255 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
23256 { (exit 1); exit 1; }; }
23259 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
23260 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
23261 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
23262 echo $ECHO_N "(cached) $ECHO_C" >&6
23264 ac_check_lib_save_LIBS=$LIBS
23265 LIBS="-lltdl $LIBS"
23266 cat >conftest.$ac_ext <<_ACEOF
23269 cat confdefs.h >>conftest.$ac_ext
23270 cat >>conftest.$ac_ext <<_ACEOF
23271 /* end confdefs.h. */
23273 /* Override any gcc2 internal prototype to avoid an error. */
23277 /* We use char because int might match the return type of a gcc2
23278 builtin and then its argument prototype would still apply. */
23288 rm -f conftest.$ac_objext conftest$ac_exeext
23289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23290 (eval $ac_link) 2>conftest.er1
23292 grep -v '^ *+' conftest.er1 >conftest.err
23294 cat conftest.err >&5
23295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23296 (exit $ac_status); } &&
23297 { ac_try='test -z "$ac_c_werror_flag"
23298 || test ! -s conftest.err'
23299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23300 (eval $ac_try) 2>&5
23302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23303 (exit $ac_status); }; } &&
23304 { ac_try='test -s conftest$ac_exeext'
23305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23306 (eval $ac_try) 2>&5
23308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23309 (exit $ac_status); }; }; then
23310 ac_cv_lib_ltdl_lt_dlinit=yes
23312 echo "$as_me: failed program was:" >&5
23313 sed 's/^/| /' conftest.$ac_ext >&5
23315 ac_cv_lib_ltdl_lt_dlinit=no
23317 rm -f conftest.err conftest.$ac_objext \
23318 conftest$ac_exeext conftest.$ac_ext
23319 LIBS=$ac_check_lib_save_LIBS
23321 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
23322 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
23323 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
23325 MODULES_LIBS=-lltdl
23327 cat >>confdefs.h <<\_ACEOF
23328 #define HAVE_LIBLTDL 1
23335 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
23336 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
23337 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
23338 { (exit 1); exit 1; }; }
23340 ol_link_modules=yes
23341 WITH_MODULES_ENABLED=yes
23344 for i in $Backends; do
23345 eval "ol_tmp=\$ol_enable_$i"
23346 if test $ol_tmp = mod ; then
23347 { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
23348 echo "$as_me: WARNING: building static $i backend" >&2;}
23349 eval "ol_enable_$i=yes"
23352 for i in $Overlays; do
23353 eval "ol_tmp=\$ol_enable_$i"
23354 if test $ol_tmp = mod ; then
23355 { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
23356 echo "$as_me: WARNING: building static $i overlay" >&2;}
23357 eval "ol_enable_$i=yes"
23363 echo "$as_me:$LINENO: checking for EBCDIC" >&5
23364 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
23365 if test "${ol_cv_cpp_ebcdic+set}" = set; then
23366 echo $ECHO_N "(cached) $ECHO_C" >&6
23369 cat >conftest.$ac_ext <<_ACEOF
23372 cat confdefs.h >>conftest.$ac_ext
23373 cat >>conftest.$ac_ext <<_ACEOF
23374 /* end confdefs.h. */
23377 #include <__ASCII__/generate_error.h>
23381 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23382 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23384 grep -v '^ *+' conftest.er1 >conftest.err
23386 cat conftest.err >&5
23387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23388 (exit $ac_status); } >/dev/null; then
23389 if test -s conftest.err; then
23390 ac_cpp_err=$ac_c_preproc_warn_flag
23391 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23398 if test -z "$ac_cpp_err"; then
23399 ol_cv_cpp_ebcdic=yes
23401 echo "$as_me: failed program was:" >&5
23402 sed 's/^/| /' conftest.$ac_ext >&5
23404 ol_cv_cpp_ebcdic=no
23406 rm -f conftest.err conftest.$ac_ext
23408 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
23409 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
23410 if test $ol_cv_cpp_ebcdic = yes ; then
23412 cat >>confdefs.h <<\_ACEOF
23413 #define HAVE_EBCDIC 1
23418 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
23419 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
23420 if test "${ol_cv_header_stdc+set}" = set; then
23421 echo $ECHO_N "(cached) $ECHO_C" >&6
23423 cat >conftest.$ac_ext <<_ACEOF
23426 cat confdefs.h >>conftest.$ac_ext
23427 cat >>conftest.$ac_ext <<_ACEOF
23428 /* end confdefs.h. */
23429 #include <stdlib.h>
23430 #include <stdarg.h>
23431 #include <string.h>
23434 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23435 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23437 grep -v '^ *+' conftest.er1 >conftest.err
23439 cat conftest.err >&5
23440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23441 (exit $ac_status); } >/dev/null; then
23442 if test -s conftest.err; then
23443 ac_cpp_err=$ac_c_preproc_warn_flag
23444 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23451 if test -z "$ac_cpp_err"; then
23452 ol_cv_header_stdc=yes
23454 echo "$as_me: failed program was:" >&5
23455 sed 's/^/| /' conftest.$ac_ext >&5
23457 ol_cv_header_stdc=no
23459 rm -f conftest.err conftest.$ac_ext
23461 if test $ol_cv_header_stdc = yes; then
23462 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
23463 cat >conftest.$ac_ext <<_ACEOF
23466 cat confdefs.h >>conftest.$ac_ext
23467 cat >>conftest.$ac_ext <<_ACEOF
23468 /* end confdefs.h. */
23469 #include <string.h>
23472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23473 $EGREP "memchr" >/dev/null 2>&1; then
23476 ol_cv_header_stdc=no
23482 if test $ol_cv_header_stdc = yes; then
23483 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
23484 cat >conftest.$ac_ext <<_ACEOF
23487 cat confdefs.h >>conftest.$ac_ext
23488 cat >>conftest.$ac_ext <<_ACEOF
23489 /* end confdefs.h. */
23490 #include <stdlib.h>
23493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23494 $EGREP "free" >/dev/null 2>&1; then
23497 ol_cv_header_stdc=no
23503 if test $ol_cv_header_stdc = yes; then
23504 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
23505 if test "$cross_compiling" = yes; then
23508 cat >conftest.$ac_ext <<_ACEOF
23511 cat confdefs.h >>conftest.$ac_ext
23512 cat >>conftest.$ac_ext <<_ACEOF
23513 /* end confdefs.h. */
23515 #ifndef HAVE_EBCDIC
23516 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
23517 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
23519 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
23520 || ('j' <= (c) && (c) <= 'r') \
23521 || ('s' <= (c) && (c) <= 'z'))
23522 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
23524 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
23525 int main () { int i; for (i = 0; i < 256; i++)
23526 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
23530 rm -f conftest$ac_exeext
23531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23532 (eval $ac_link) 2>&5
23534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23535 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23537 (eval $ac_try) 2>&5
23539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23540 (exit $ac_status); }; }; then
23543 echo "$as_me: program exited with status $ac_status" >&5
23544 echo "$as_me: failed program was:" >&5
23545 sed 's/^/| /' conftest.$ac_ext >&5
23547 ( exit $ac_status )
23548 ol_cv_header_stdc=no
23550 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23554 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
23555 echo "${ECHO_T}$ol_cv_header_stdc" >&6
23556 if test $ol_cv_header_stdc = yes; then
23557 cat >>confdefs.h <<\_ACEOF
23558 #define STDC_HEADERS 1
23562 ac_cv_header_stdc=disable
23565 if test $ol_cv_header_stdc != yes; then
23566 { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
23567 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
23575 ac_header_dirent=no
23576 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
23577 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
23578 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
23579 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
23580 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23581 echo $ECHO_N "(cached) $ECHO_C" >&6
23583 cat >conftest.$ac_ext <<_ACEOF
23586 cat confdefs.h >>conftest.$ac_ext
23587 cat >>conftest.$ac_ext <<_ACEOF
23588 /* end confdefs.h. */
23589 #include <sys/types.h>
23601 rm -f conftest.$ac_objext
23602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23603 (eval $ac_compile) 2>conftest.er1
23605 grep -v '^ *+' conftest.er1 >conftest.err
23607 cat conftest.err >&5
23608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23609 (exit $ac_status); } &&
23610 { ac_try='test -z "$ac_c_werror_flag"
23611 || test ! -s conftest.err'
23612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23613 (eval $ac_try) 2>&5
23615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23616 (exit $ac_status); }; } &&
23617 { ac_try='test -s conftest.$ac_objext'
23618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23619 (eval $ac_try) 2>&5
23621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23622 (exit $ac_status); }; }; then
23623 eval "$as_ac_Header=yes"
23625 echo "$as_me: failed program was:" >&5
23626 sed 's/^/| /' conftest.$ac_ext >&5
23628 eval "$as_ac_Header=no"
23630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23633 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23634 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23635 cat >>confdefs.h <<_ACEOF
23636 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
23639 ac_header_dirent=$ac_hdr; break
23643 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
23644 if test $ac_header_dirent = dirent.h; then
23645 echo "$as_me:$LINENO: checking for library containing opendir" >&5
23646 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23647 if test "${ac_cv_search_opendir+set}" = set; then
23648 echo $ECHO_N "(cached) $ECHO_C" >&6
23650 ac_func_search_save_LIBS=$LIBS
23651 ac_cv_search_opendir=no
23652 cat >conftest.$ac_ext <<_ACEOF
23655 cat confdefs.h >>conftest.$ac_ext
23656 cat >>conftest.$ac_ext <<_ACEOF
23657 /* end confdefs.h. */
23659 /* Override any gcc2 internal prototype to avoid an error. */
23663 /* We use char because int might match the return type of a gcc2
23664 builtin and then its argument prototype would still apply. */
23674 rm -f conftest.$ac_objext conftest$ac_exeext
23675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23676 (eval $ac_link) 2>conftest.er1
23678 grep -v '^ *+' conftest.er1 >conftest.err
23680 cat conftest.err >&5
23681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23682 (exit $ac_status); } &&
23683 { ac_try='test -z "$ac_c_werror_flag"
23684 || test ! -s conftest.err'
23685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23686 (eval $ac_try) 2>&5
23688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23689 (exit $ac_status); }; } &&
23690 { ac_try='test -s conftest$ac_exeext'
23691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23692 (eval $ac_try) 2>&5
23694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23695 (exit $ac_status); }; }; then
23696 ac_cv_search_opendir="none required"
23698 echo "$as_me: failed program was:" >&5
23699 sed 's/^/| /' conftest.$ac_ext >&5
23702 rm -f conftest.err conftest.$ac_objext \
23703 conftest$ac_exeext conftest.$ac_ext
23704 if test "$ac_cv_search_opendir" = no; then
23705 for ac_lib in dir; do
23706 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23707 cat >conftest.$ac_ext <<_ACEOF
23710 cat confdefs.h >>conftest.$ac_ext
23711 cat >>conftest.$ac_ext <<_ACEOF
23712 /* end confdefs.h. */
23714 /* Override any gcc2 internal prototype to avoid an error. */
23718 /* We use char because int might match the return type of a gcc2
23719 builtin and then its argument prototype would still apply. */
23729 rm -f conftest.$ac_objext conftest$ac_exeext
23730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23731 (eval $ac_link) 2>conftest.er1
23733 grep -v '^ *+' conftest.er1 >conftest.err
23735 cat conftest.err >&5
23736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23737 (exit $ac_status); } &&
23738 { ac_try='test -z "$ac_c_werror_flag"
23739 || test ! -s conftest.err'
23740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23741 (eval $ac_try) 2>&5
23743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23744 (exit $ac_status); }; } &&
23745 { ac_try='test -s conftest$ac_exeext'
23746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23747 (eval $ac_try) 2>&5
23749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23750 (exit $ac_status); }; }; then
23751 ac_cv_search_opendir="-l$ac_lib"
23754 echo "$as_me: failed program was:" >&5
23755 sed 's/^/| /' conftest.$ac_ext >&5
23758 rm -f conftest.err conftest.$ac_objext \
23759 conftest$ac_exeext conftest.$ac_ext
23762 LIBS=$ac_func_search_save_LIBS
23764 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23765 echo "${ECHO_T}$ac_cv_search_opendir" >&6
23766 if test "$ac_cv_search_opendir" != no; then
23767 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23772 echo "$as_me:$LINENO: checking for library containing opendir" >&5
23773 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23774 if test "${ac_cv_search_opendir+set}" = set; then
23775 echo $ECHO_N "(cached) $ECHO_C" >&6
23777 ac_func_search_save_LIBS=$LIBS
23778 ac_cv_search_opendir=no
23779 cat >conftest.$ac_ext <<_ACEOF
23782 cat confdefs.h >>conftest.$ac_ext
23783 cat >>conftest.$ac_ext <<_ACEOF
23784 /* end confdefs.h. */
23786 /* Override any gcc2 internal prototype to avoid an error. */
23790 /* We use char because int might match the return type of a gcc2
23791 builtin and then its argument prototype would still apply. */
23801 rm -f conftest.$ac_objext conftest$ac_exeext
23802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23803 (eval $ac_link) 2>conftest.er1
23805 grep -v '^ *+' conftest.er1 >conftest.err
23807 cat conftest.err >&5
23808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23809 (exit $ac_status); } &&
23810 { ac_try='test -z "$ac_c_werror_flag"
23811 || test ! -s conftest.err'
23812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23813 (eval $ac_try) 2>&5
23815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23816 (exit $ac_status); }; } &&
23817 { ac_try='test -s conftest$ac_exeext'
23818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23819 (eval $ac_try) 2>&5
23821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23822 (exit $ac_status); }; }; then
23823 ac_cv_search_opendir="none required"
23825 echo "$as_me: failed program was:" >&5
23826 sed 's/^/| /' conftest.$ac_ext >&5
23829 rm -f conftest.err conftest.$ac_objext \
23830 conftest$ac_exeext conftest.$ac_ext
23831 if test "$ac_cv_search_opendir" = no; then
23832 for ac_lib in x; do
23833 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23834 cat >conftest.$ac_ext <<_ACEOF
23837 cat confdefs.h >>conftest.$ac_ext
23838 cat >>conftest.$ac_ext <<_ACEOF
23839 /* end confdefs.h. */
23841 /* Override any gcc2 internal prototype to avoid an error. */
23845 /* We use char because int might match the return type of a gcc2
23846 builtin and then its argument prototype would still apply. */
23856 rm -f conftest.$ac_objext conftest$ac_exeext
23857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23858 (eval $ac_link) 2>conftest.er1
23860 grep -v '^ *+' conftest.er1 >conftest.err
23862 cat conftest.err >&5
23863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23864 (exit $ac_status); } &&
23865 { ac_try='test -z "$ac_c_werror_flag"
23866 || test ! -s conftest.err'
23867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23868 (eval $ac_try) 2>&5
23870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23871 (exit $ac_status); }; } &&
23872 { ac_try='test -s conftest$ac_exeext'
23873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23874 (eval $ac_try) 2>&5
23876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23877 (exit $ac_status); }; }; then
23878 ac_cv_search_opendir="-l$ac_lib"
23881 echo "$as_me: failed program was:" >&5
23882 sed 's/^/| /' conftest.$ac_ext >&5
23885 rm -f conftest.err conftest.$ac_objext \
23886 conftest$ac_exeext conftest.$ac_ext
23889 LIBS=$ac_func_search_save_LIBS
23891 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23892 echo "${ECHO_T}$ac_cv_search_opendir" >&6
23893 if test "$ac_cv_search_opendir" != no; then
23894 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23900 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
23901 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
23902 if test "${ac_cv_header_sys_wait_h+set}" = set; then
23903 echo $ECHO_N "(cached) $ECHO_C" >&6
23905 cat >conftest.$ac_ext <<_ACEOF
23908 cat confdefs.h >>conftest.$ac_ext
23909 cat >>conftest.$ac_ext <<_ACEOF
23910 /* end confdefs.h. */
23911 #include <sys/types.h>
23912 #include <sys/wait.h>
23913 #ifndef WEXITSTATUS
23914 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
23917 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
23925 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
23930 rm -f conftest.$ac_objext
23931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23932 (eval $ac_compile) 2>conftest.er1
23934 grep -v '^ *+' conftest.er1 >conftest.err
23936 cat conftest.err >&5
23937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23938 (exit $ac_status); } &&
23939 { ac_try='test -z "$ac_c_werror_flag"
23940 || test ! -s conftest.err'
23941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23942 (eval $ac_try) 2>&5
23944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23945 (exit $ac_status); }; } &&
23946 { ac_try='test -s conftest.$ac_objext'
23947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23948 (eval $ac_try) 2>&5
23950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23951 (exit $ac_status); }; }; then
23952 ac_cv_header_sys_wait_h=yes
23954 echo "$as_me: failed program was:" >&5
23955 sed 's/^/| /' conftest.$ac_ext >&5
23957 ac_cv_header_sys_wait_h=no
23959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23961 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
23962 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
23963 if test $ac_cv_header_sys_wait_h = yes; then
23965 cat >>confdefs.h <<\_ACEOF
23966 #define HAVE_SYS_WAIT_H 1
23971 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
23972 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
23973 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
23974 echo $ECHO_N "(cached) $ECHO_C" >&6
23976 cat >conftest.$ac_ext <<_ACEOF
23979 cat confdefs.h >>conftest.$ac_ext
23980 cat >>conftest.$ac_ext <<_ACEOF
23981 /* end confdefs.h. */
23982 #include <sys/types.h>
23983 #include <termios.h>
23989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23990 $EGREP "yes" >/dev/null 2>&1; then
23991 ac_cv_sys_tiocgwinsz_in_termios_h=yes
23993 ac_cv_sys_tiocgwinsz_in_termios_h=no
23998 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
23999 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
24001 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
24002 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
24003 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
24004 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
24005 echo $ECHO_N "(cached) $ECHO_C" >&6
24007 cat >conftest.$ac_ext <<_ACEOF
24010 cat confdefs.h >>conftest.$ac_ext
24011 cat >>conftest.$ac_ext <<_ACEOF
24012 /* end confdefs.h. */
24013 #include <sys/types.h>
24014 #include <sys/ioctl.h>
24020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24021 $EGREP "yes" >/dev/null 2>&1; then
24022 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
24024 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
24029 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
24030 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
24032 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
24034 cat >>confdefs.h <<\_ACEOF
24035 #define GWINSZ_IN_SYS_IOCTL 1
24143 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24145 echo "$as_me:$LINENO: checking for $ac_header" >&5
24146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24148 echo $ECHO_N "(cached) $ECHO_C" >&6
24150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24151 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24153 # Is the header compilable?
24154 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24155 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24156 cat >conftest.$ac_ext <<_ACEOF
24159 cat confdefs.h >>conftest.$ac_ext
24160 cat >>conftest.$ac_ext <<_ACEOF
24161 /* end confdefs.h. */
24162 $ac_includes_default
24163 #include <$ac_header>
24165 rm -f conftest.$ac_objext
24166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24167 (eval $ac_compile) 2>conftest.er1
24169 grep -v '^ *+' conftest.er1 >conftest.err
24171 cat conftest.err >&5
24172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24173 (exit $ac_status); } &&
24174 { ac_try='test -z "$ac_c_werror_flag"
24175 || test ! -s conftest.err'
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); }; } &&
24181 { ac_try='test -s conftest.$ac_objext'
24182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24183 (eval $ac_try) 2>&5
24185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24186 (exit $ac_status); }; }; then
24187 ac_header_compiler=yes
24189 echo "$as_me: failed program was:" >&5
24190 sed 's/^/| /' conftest.$ac_ext >&5
24192 ac_header_compiler=no
24194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24195 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24196 echo "${ECHO_T}$ac_header_compiler" >&6
24198 # Is the header present?
24199 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24200 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24201 cat >conftest.$ac_ext <<_ACEOF
24204 cat confdefs.h >>conftest.$ac_ext
24205 cat >>conftest.$ac_ext <<_ACEOF
24206 /* end confdefs.h. */
24207 #include <$ac_header>
24209 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24210 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24212 grep -v '^ *+' conftest.er1 >conftest.err
24214 cat conftest.err >&5
24215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24216 (exit $ac_status); } >/dev/null; then
24217 if test -s conftest.err; then
24218 ac_cpp_err=$ac_c_preproc_warn_flag
24219 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24226 if test -z "$ac_cpp_err"; then
24227 ac_header_preproc=yes
24229 echo "$as_me: failed program was:" >&5
24230 sed 's/^/| /' conftest.$ac_ext >&5
24232 ac_header_preproc=no
24234 rm -f conftest.err conftest.$ac_ext
24235 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24236 echo "${ECHO_T}$ac_header_preproc" >&6
24238 # So? What about this header?
24239 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24241 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24242 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24243 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24244 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24245 ac_header_preproc=yes
24248 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24249 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24250 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24251 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24252 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24253 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24254 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24255 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24256 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24257 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24258 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24259 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24262 ## ------------------------------------------ ##
24263 ## Report this to the AC_PACKAGE_NAME lists. ##
24264 ## ------------------------------------------ ##
24267 sed "s/^/$as_me: WARNING: /" >&2
24270 echo "$as_me:$LINENO: checking for $ac_header" >&5
24271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24272 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24273 echo $ECHO_N "(cached) $ECHO_C" >&6
24275 eval "$as_ac_Header=\$ac_header_preproc"
24277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24278 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24281 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24282 cat >>confdefs.h <<_ACEOF
24283 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24294 for ac_func in sigaction sigset
24296 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24297 echo "$as_me:$LINENO: checking for $ac_func" >&5
24298 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24299 if eval "test \"\${$as_ac_var+set}\" = set"; then
24300 echo $ECHO_N "(cached) $ECHO_C" >&6
24302 cat >conftest.$ac_ext <<_ACEOF
24305 cat confdefs.h >>conftest.$ac_ext
24306 cat >>conftest.$ac_ext <<_ACEOF
24307 /* end confdefs.h. */
24308 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24309 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24310 #define $ac_func innocuous_$ac_func
24312 /* System header to define __stub macros and hopefully few prototypes,
24313 which can conflict with char $ac_func (); below.
24314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24315 <limits.h> exists even on freestanding compilers. */
24318 # include <limits.h>
24320 # include <assert.h>
24325 /* Override any gcc2 internal prototype to avoid an error. */
24330 /* We use char because int might match the return type of a gcc2
24331 builtin and then its argument prototype would still apply. */
24333 /* The GNU C library defines this for functions which it implements
24334 to always fail with ENOSYS. Some functions are actually named
24335 something starting with __ and the normal name is an alias. */
24336 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24339 char (*f) () = $ac_func;
24348 return f != $ac_func;
24353 rm -f conftest.$ac_objext conftest$ac_exeext
24354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24355 (eval $ac_link) 2>conftest.er1
24357 grep -v '^ *+' conftest.er1 >conftest.err
24359 cat conftest.err >&5
24360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24361 (exit $ac_status); } &&
24362 { ac_try='test -z "$ac_c_werror_flag"
24363 || test ! -s conftest.err'
24364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24365 (eval $ac_try) 2>&5
24367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24368 (exit $ac_status); }; } &&
24369 { ac_try='test -s conftest$ac_exeext'
24370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24371 (eval $ac_try) 2>&5
24373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24374 (exit $ac_status); }; }; then
24375 eval "$as_ac_var=yes"
24377 echo "$as_me: failed program was:" >&5
24378 sed 's/^/| /' conftest.$ac_ext >&5
24380 eval "$as_ac_var=no"
24382 rm -f conftest.err conftest.$ac_objext \
24383 conftest$ac_exeext conftest.$ac_ext
24385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24386 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24387 if test `eval echo '${'$as_ac_var'}'` = yes; then
24388 cat >>confdefs.h <<_ACEOF
24389 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24396 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
24398 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
24399 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
24400 if test "${ac_cv_lib_V3_sigset+set}" = set; then
24401 echo $ECHO_N "(cached) $ECHO_C" >&6
24403 ac_check_lib_save_LIBS=$LIBS
24405 cat >conftest.$ac_ext <<_ACEOF
24408 cat confdefs.h >>conftest.$ac_ext
24409 cat >>conftest.$ac_ext <<_ACEOF
24410 /* end confdefs.h. */
24412 /* Override any gcc2 internal prototype to avoid an error. */
24416 /* We use char because int might match the return type of a gcc2
24417 builtin and then its argument prototype would still apply. */
24427 rm -f conftest.$ac_objext conftest$ac_exeext
24428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24429 (eval $ac_link) 2>conftest.er1
24431 grep -v '^ *+' conftest.er1 >conftest.err
24433 cat conftest.err >&5
24434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24435 (exit $ac_status); } &&
24436 { ac_try='test -z "$ac_c_werror_flag"
24437 || test ! -s conftest.err'
24438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24439 (eval $ac_try) 2>&5
24441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24442 (exit $ac_status); }; } &&
24443 { ac_try='test -s conftest$ac_exeext'
24444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24445 (eval $ac_try) 2>&5
24447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24448 (exit $ac_status); }; }; then
24449 ac_cv_lib_V3_sigset=yes
24451 echo "$as_me: failed program was:" >&5
24452 sed 's/^/| /' conftest.$ac_ext >&5
24454 ac_cv_lib_V3_sigset=no
24456 rm -f conftest.err conftest.$ac_objext \
24457 conftest$ac_exeext conftest.$ac_ext
24458 LIBS=$ac_check_lib_save_LIBS
24460 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
24461 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
24462 if test $ac_cv_lib_V3_sigset = yes; then
24463 cat >>confdefs.h <<_ACEOF
24464 #define HAVE_LIBV3 1
24473 if test "$ac_cv_cygwin" != yes && test "$ac_cv_header_winsock_h" = yes; then
24474 echo "$as_me:$LINENO: checking for winsock" >&5
24475 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
24476 if test "${ol_cv_winsock+set}" = set; then
24477 echo $ECHO_N "(cached) $ECHO_C" >&6
24480 for curlib in ws2_32 wsock32; do
24481 LIBS="$LIBS -l$curlib"
24482 cat >conftest.$ac_ext <<_ACEOF
24485 cat confdefs.h >>conftest.$ac_ext
24486 cat >>conftest.$ac_ext <<_ACEOF
24487 /* end confdefs.h. */
24488 #include <winsock.h>
24495 select(0,NULL,NULL,NULL,NULL);
24497 gethostname(NULL,0);
24503 rm -f conftest.$ac_objext conftest$ac_exeext
24504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24505 (eval $ac_link) 2>conftest.er1
24507 grep -v '^ *+' conftest.er1 >conftest.err
24509 cat conftest.err >&5
24510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24511 (exit $ac_status); } &&
24512 { ac_try='test -z "$ac_c_werror_flag"
24513 || test ! -s conftest.err'
24514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24515 (eval $ac_try) 2>&5
24517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24518 (exit $ac_status); }; } &&
24519 { ac_try='test -s conftest$ac_exeext'
24520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24521 (eval $ac_try) 2>&5
24523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24524 (exit $ac_status); }; }; then
24527 echo "$as_me: failed program was:" >&5
24528 sed 's/^/| /' conftest.$ac_ext >&5
24532 rm -f conftest.err conftest.$ac_objext \
24533 conftest$ac_exeext conftest.$ac_ext
24535 if test $ol_cv_winsock = yes; then
24537 cat >>confdefs.h <<\_ACEOF
24538 #define HAVE_WINSOCK 1
24541 ac_cv_func_socket=yes
24542 ac_cv_func_select=yes
24543 ac_cv_func_closesocket=yes
24544 ac_cv_func_gethostname=yes
24545 if test $curlib = ws2_32; then
24546 ol_cv_winsock=winsock2
24548 cat >>confdefs.h <<\_ACEOF
24549 #define HAVE_WINSOCK2 1
24558 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
24559 echo "${ECHO_T}$ol_cv_winsock" >&6
24563 echo "$as_me:$LINENO: checking for socket" >&5
24564 echo $ECHO_N "checking for socket... $ECHO_C" >&6
24565 if test "${ac_cv_func_socket+set}" = set; then
24566 echo $ECHO_N "(cached) $ECHO_C" >&6
24568 cat >conftest.$ac_ext <<_ACEOF
24571 cat confdefs.h >>conftest.$ac_ext
24572 cat >>conftest.$ac_ext <<_ACEOF
24573 /* end confdefs.h. */
24574 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24576 #define socket innocuous_socket
24578 /* System header to define __stub macros and hopefully few prototypes,
24579 which can conflict with char socket (); below.
24580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24581 <limits.h> exists even on freestanding compilers. */
24584 # include <limits.h>
24586 # include <assert.h>
24591 /* Override any gcc2 internal prototype to avoid an error. */
24596 /* We use char because int might match the return type of a gcc2
24597 builtin and then its argument prototype would still apply. */
24599 /* The GNU C library defines this for functions which it implements
24600 to always fail with ENOSYS. Some functions are actually named
24601 something starting with __ and the normal name is an alias. */
24602 #if defined (__stub_socket) || defined (__stub___socket)
24605 char (*f) () = socket;
24614 return f != socket;
24619 rm -f conftest.$ac_objext conftest$ac_exeext
24620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24621 (eval $ac_link) 2>conftest.er1
24623 grep -v '^ *+' conftest.er1 >conftest.err
24625 cat conftest.err >&5
24626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24627 (exit $ac_status); } &&
24628 { ac_try='test -z "$ac_c_werror_flag"
24629 || test ! -s conftest.err'
24630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24631 (eval $ac_try) 2>&5
24633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24634 (exit $ac_status); }; } &&
24635 { ac_try='test -s conftest$ac_exeext'
24636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24637 (eval $ac_try) 2>&5
24639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24640 (exit $ac_status); }; }; then
24641 ac_cv_func_socket=yes
24643 echo "$as_me: failed program was:" >&5
24644 sed 's/^/| /' conftest.$ac_ext >&5
24646 ac_cv_func_socket=no
24648 rm -f conftest.err conftest.$ac_objext \
24649 conftest$ac_exeext conftest.$ac_ext
24651 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24652 echo "${ECHO_T}$ac_cv_func_socket" >&6
24653 if test $ac_cv_func_socket = yes; then
24658 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
24659 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
24660 if test "${ac_cv_lib_socket_main+set}" = set; then
24661 echo $ECHO_N "(cached) $ECHO_C" >&6
24663 ac_check_lib_save_LIBS=$LIBS
24664 LIBS="-lsocket $LIBS"
24665 cat >conftest.$ac_ext <<_ACEOF
24668 cat confdefs.h >>conftest.$ac_ext
24669 cat >>conftest.$ac_ext <<_ACEOF
24670 /* end confdefs.h. */
24681 rm -f conftest.$ac_objext conftest$ac_exeext
24682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24683 (eval $ac_link) 2>conftest.er1
24685 grep -v '^ *+' conftest.er1 >conftest.err
24687 cat conftest.err >&5
24688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24689 (exit $ac_status); } &&
24690 { ac_try='test -z "$ac_c_werror_flag"
24691 || test ! -s conftest.err'
24692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24693 (eval $ac_try) 2>&5
24695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24696 (exit $ac_status); }; } &&
24697 { ac_try='test -s conftest$ac_exeext'
24698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24699 (eval $ac_try) 2>&5
24701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24702 (exit $ac_status); }; }; then
24703 ac_cv_lib_socket_main=yes
24705 echo "$as_me: failed program was:" >&5
24706 sed 's/^/| /' conftest.$ac_ext >&5
24708 ac_cv_lib_socket_main=no
24710 rm -f conftest.err conftest.$ac_objext \
24711 conftest$ac_exeext conftest.$ac_ext
24712 LIBS=$ac_check_lib_save_LIBS
24714 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
24715 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
24716 if test $ac_cv_lib_socket_main = yes; then
24717 cat >>confdefs.h <<_ACEOF
24718 #define HAVE_LIBSOCKET 1
24721 LIBS="-lsocket $LIBS"
24726 echo "$as_me:$LINENO: checking for main in -lnet" >&5
24727 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
24728 if test "${ac_cv_lib_net_main+set}" = set; then
24729 echo $ECHO_N "(cached) $ECHO_C" >&6
24731 ac_check_lib_save_LIBS=$LIBS
24733 cat >conftest.$ac_ext <<_ACEOF
24736 cat confdefs.h >>conftest.$ac_ext
24737 cat >>conftest.$ac_ext <<_ACEOF
24738 /* end confdefs.h. */
24749 rm -f conftest.$ac_objext conftest$ac_exeext
24750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24751 (eval $ac_link) 2>conftest.er1
24753 grep -v '^ *+' conftest.er1 >conftest.err
24755 cat conftest.err >&5
24756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24757 (exit $ac_status); } &&
24758 { ac_try='test -z "$ac_c_werror_flag"
24759 || test ! -s conftest.err'
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); }; } &&
24765 { ac_try='test -s conftest$ac_exeext'
24766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24767 (eval $ac_try) 2>&5
24769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24770 (exit $ac_status); }; }; then
24771 ac_cv_lib_net_main=yes
24773 echo "$as_me: failed program was:" >&5
24774 sed 's/^/| /' conftest.$ac_ext >&5
24776 ac_cv_lib_net_main=no
24778 rm -f conftest.err conftest.$ac_objext \
24779 conftest$ac_exeext conftest.$ac_ext
24780 LIBS=$ac_check_lib_save_LIBS
24782 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
24783 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
24784 if test $ac_cv_lib_net_main = yes; then
24785 cat >>confdefs.h <<_ACEOF
24786 #define HAVE_LIBNET 1
24794 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
24795 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
24796 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
24797 echo $ECHO_N "(cached) $ECHO_C" >&6
24799 ac_check_lib_save_LIBS=$LIBS
24800 LIBS="-lnsl_s $LIBS"
24801 cat >conftest.$ac_ext <<_ACEOF
24804 cat confdefs.h >>conftest.$ac_ext
24805 cat >>conftest.$ac_ext <<_ACEOF
24806 /* end confdefs.h. */
24817 rm -f conftest.$ac_objext conftest$ac_exeext
24818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24819 (eval $ac_link) 2>conftest.er1
24821 grep -v '^ *+' conftest.er1 >conftest.err
24823 cat conftest.err >&5
24824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24825 (exit $ac_status); } &&
24826 { ac_try='test -z "$ac_c_werror_flag"
24827 || test ! -s conftest.err'
24828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24829 (eval $ac_try) 2>&5
24831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24832 (exit $ac_status); }; } &&
24833 { ac_try='test -s conftest$ac_exeext'
24834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24835 (eval $ac_try) 2>&5
24837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24838 (exit $ac_status); }; }; then
24839 ac_cv_lib_nsl_s_main=yes
24841 echo "$as_me: failed program was:" >&5
24842 sed 's/^/| /' conftest.$ac_ext >&5
24844 ac_cv_lib_nsl_s_main=no
24846 rm -f conftest.err conftest.$ac_objext \
24847 conftest$ac_exeext conftest.$ac_ext
24848 LIBS=$ac_check_lib_save_LIBS
24850 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
24851 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
24852 if test $ac_cv_lib_nsl_s_main = yes; then
24853 cat >>confdefs.h <<_ACEOF
24854 #define HAVE_LIBNSL_S 1
24857 LIBS="-lnsl_s $LIBS"
24862 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
24863 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
24864 if test "${ac_cv_lib_nsl_main+set}" = set; then
24865 echo $ECHO_N "(cached) $ECHO_C" >&6
24867 ac_check_lib_save_LIBS=$LIBS
24869 cat >conftest.$ac_ext <<_ACEOF
24872 cat confdefs.h >>conftest.$ac_ext
24873 cat >>conftest.$ac_ext <<_ACEOF
24874 /* end confdefs.h. */
24885 rm -f conftest.$ac_objext conftest$ac_exeext
24886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24887 (eval $ac_link) 2>conftest.er1
24889 grep -v '^ *+' conftest.er1 >conftest.err
24891 cat conftest.err >&5
24892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24893 (exit $ac_status); } &&
24894 { ac_try='test -z "$ac_c_werror_flag"
24895 || test ! -s conftest.err'
24896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24897 (eval $ac_try) 2>&5
24899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24900 (exit $ac_status); }; } &&
24901 { ac_try='test -s conftest$ac_exeext'
24902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24903 (eval $ac_try) 2>&5
24905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24906 (exit $ac_status); }; }; then
24907 ac_cv_lib_nsl_main=yes
24909 echo "$as_me: failed program was:" >&5
24910 sed 's/^/| /' conftest.$ac_ext >&5
24912 ac_cv_lib_nsl_main=no
24914 rm -f conftest.err conftest.$ac_objext \
24915 conftest$ac_exeext conftest.$ac_ext
24916 LIBS=$ac_check_lib_save_LIBS
24918 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
24919 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
24920 if test $ac_cv_lib_nsl_main = yes; then
24921 cat >>confdefs.h <<_ACEOF
24922 #define HAVE_LIBNSL 1
24930 echo "$as_me:$LINENO: checking for socket in -linet" >&5
24931 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
24932 if test "${ac_cv_lib_inet_socket+set}" = set; then
24933 echo $ECHO_N "(cached) $ECHO_C" >&6
24935 ac_check_lib_save_LIBS=$LIBS
24936 LIBS="-linet $LIBS"
24937 cat >conftest.$ac_ext <<_ACEOF
24940 cat confdefs.h >>conftest.$ac_ext
24941 cat >>conftest.$ac_ext <<_ACEOF
24942 /* end confdefs.h. */
24944 /* Override any gcc2 internal prototype to avoid an error. */
24948 /* We use char because int might match the return type of a gcc2
24949 builtin and then its argument prototype would still apply. */
24959 rm -f conftest.$ac_objext conftest$ac_exeext
24960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24961 (eval $ac_link) 2>conftest.er1
24963 grep -v '^ *+' conftest.er1 >conftest.err
24965 cat conftest.err >&5
24966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24967 (exit $ac_status); } &&
24968 { ac_try='test -z "$ac_c_werror_flag"
24969 || test ! -s conftest.err'
24970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24971 (eval $ac_try) 2>&5
24973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24974 (exit $ac_status); }; } &&
24975 { ac_try='test -s conftest$ac_exeext'
24976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24977 (eval $ac_try) 2>&5
24979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24980 (exit $ac_status); }; }; then
24981 ac_cv_lib_inet_socket=yes
24983 echo "$as_me: failed program was:" >&5
24984 sed 's/^/| /' conftest.$ac_ext >&5
24986 ac_cv_lib_inet_socket=no
24988 rm -f conftest.err conftest.$ac_objext \
24989 conftest$ac_exeext conftest.$ac_ext
24990 LIBS=$ac_check_lib_save_LIBS
24992 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
24993 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
24994 if test $ac_cv_lib_inet_socket = yes; then
24995 cat >>confdefs.h <<_ACEOF
24996 #define HAVE_LIBINET 1
24999 LIBS="-linet $LIBS"
25004 echo "$as_me:$LINENO: checking for main in -lgen" >&5
25005 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
25006 if test "${ac_cv_lib_gen_main+set}" = set; then
25007 echo $ECHO_N "(cached) $ECHO_C" >&6
25009 ac_check_lib_save_LIBS=$LIBS
25011 cat >conftest.$ac_ext <<_ACEOF
25014 cat confdefs.h >>conftest.$ac_ext
25015 cat >>conftest.$ac_ext <<_ACEOF
25016 /* end confdefs.h. */
25027 rm -f conftest.$ac_objext conftest$ac_exeext
25028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25029 (eval $ac_link) 2>conftest.er1
25031 grep -v '^ *+' conftest.er1 >conftest.err
25033 cat conftest.err >&5
25034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25035 (exit $ac_status); } &&
25036 { ac_try='test -z "$ac_c_werror_flag"
25037 || test ! -s conftest.err'
25038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25039 (eval $ac_try) 2>&5
25041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25042 (exit $ac_status); }; } &&
25043 { ac_try='test -s conftest$ac_exeext'
25044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25045 (eval $ac_try) 2>&5
25047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25048 (exit $ac_status); }; }; then
25049 ac_cv_lib_gen_main=yes
25051 echo "$as_me: failed program was:" >&5
25052 sed 's/^/| /' conftest.$ac_ext >&5
25054 ac_cv_lib_gen_main=no
25056 rm -f conftest.err conftest.$ac_objext \
25057 conftest$ac_exeext conftest.$ac_ext
25058 LIBS=$ac_check_lib_save_LIBS
25060 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
25061 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
25062 if test $ac_cv_lib_gen_main = yes; then
25063 cat >>confdefs.h <<_ACEOF
25064 #define HAVE_LIBGEN 1
25075 echo "$as_me:$LINENO: checking for select" >&5
25076 echo $ECHO_N "checking for select... $ECHO_C" >&6
25077 if test "${ac_cv_func_select+set}" = set; then
25078 echo $ECHO_N "(cached) $ECHO_C" >&6
25080 cat >conftest.$ac_ext <<_ACEOF
25083 cat confdefs.h >>conftest.$ac_ext
25084 cat >>conftest.$ac_ext <<_ACEOF
25085 /* end confdefs.h. */
25086 /* Define select to an innocuous variant, in case <limits.h> declares select.
25087 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25088 #define select innocuous_select
25090 /* System header to define __stub macros and hopefully few prototypes,
25091 which can conflict with char select (); below.
25092 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25093 <limits.h> exists even on freestanding compilers. */
25096 # include <limits.h>
25098 # include <assert.h>
25103 /* Override any gcc2 internal prototype to avoid an error. */
25108 /* We use char because int might match the return type of a gcc2
25109 builtin and then its argument prototype would still apply. */
25111 /* The GNU C library defines this for functions which it implements
25112 to always fail with ENOSYS. Some functions are actually named
25113 something starting with __ and the normal name is an alias. */
25114 #if defined (__stub_select) || defined (__stub___select)
25117 char (*f) () = select;
25126 return f != select;
25131 rm -f conftest.$ac_objext conftest$ac_exeext
25132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25133 (eval $ac_link) 2>conftest.er1
25135 grep -v '^ *+' conftest.er1 >conftest.err
25137 cat conftest.err >&5
25138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25139 (exit $ac_status); } &&
25140 { ac_try='test -z "$ac_c_werror_flag"
25141 || test ! -s conftest.err'
25142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25143 (eval $ac_try) 2>&5
25145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25146 (exit $ac_status); }; } &&
25147 { ac_try='test -s conftest$ac_exeext'
25148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25149 (eval $ac_try) 2>&5
25151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25152 (exit $ac_status); }; }; then
25153 ac_cv_func_select=yes
25155 echo "$as_me: failed program was:" >&5
25156 sed 's/^/| /' conftest.$ac_ext >&5
25158 ac_cv_func_select=no
25160 rm -f conftest.err conftest.$ac_objext \
25161 conftest$ac_exeext conftest.$ac_ext
25163 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
25164 echo "${ECHO_T}$ac_cv_func_select" >&6
25165 if test $ac_cv_func_select = yes; then
25168 { { echo "$as_me:$LINENO: error: select() required." >&5
25169 echo "$as_me: error: select() required." >&2;}
25170 { (exit 1); exit 1; }; }
25174 if test "${ac_cv_header_winsock_h}" != yes; then
25177 for ac_header in sys/select.h sys/socket.h
25179 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25181 echo "$as_me:$LINENO: checking for $ac_header" >&5
25182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25184 echo $ECHO_N "(cached) $ECHO_C" >&6
25186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25187 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25189 # Is the header compilable?
25190 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25191 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25192 cat >conftest.$ac_ext <<_ACEOF
25195 cat confdefs.h >>conftest.$ac_ext
25196 cat >>conftest.$ac_ext <<_ACEOF
25197 /* end confdefs.h. */
25198 $ac_includes_default
25199 #include <$ac_header>
25201 rm -f conftest.$ac_objext
25202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25203 (eval $ac_compile) 2>conftest.er1
25205 grep -v '^ *+' conftest.er1 >conftest.err
25207 cat conftest.err >&5
25208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25209 (exit $ac_status); } &&
25210 { ac_try='test -z "$ac_c_werror_flag"
25211 || test ! -s conftest.err'
25212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25213 (eval $ac_try) 2>&5
25215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25216 (exit $ac_status); }; } &&
25217 { ac_try='test -s conftest.$ac_objext'
25218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25219 (eval $ac_try) 2>&5
25221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25222 (exit $ac_status); }; }; then
25223 ac_header_compiler=yes
25225 echo "$as_me: failed program was:" >&5
25226 sed 's/^/| /' conftest.$ac_ext >&5
25228 ac_header_compiler=no
25230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25231 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25232 echo "${ECHO_T}$ac_header_compiler" >&6
25234 # Is the header present?
25235 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25236 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25237 cat >conftest.$ac_ext <<_ACEOF
25240 cat confdefs.h >>conftest.$ac_ext
25241 cat >>conftest.$ac_ext <<_ACEOF
25242 /* end confdefs.h. */
25243 #include <$ac_header>
25245 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25246 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25248 grep -v '^ *+' conftest.er1 >conftest.err
25250 cat conftest.err >&5
25251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25252 (exit $ac_status); } >/dev/null; then
25253 if test -s conftest.err; then
25254 ac_cpp_err=$ac_c_preproc_warn_flag
25255 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25262 if test -z "$ac_cpp_err"; then
25263 ac_header_preproc=yes
25265 echo "$as_me: failed program was:" >&5
25266 sed 's/^/| /' conftest.$ac_ext >&5
25268 ac_header_preproc=no
25270 rm -f conftest.err conftest.$ac_ext
25271 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25272 echo "${ECHO_T}$ac_header_preproc" >&6
25274 # So? What about this header?
25275 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25277 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25278 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25279 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25280 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25281 ac_header_preproc=yes
25284 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25285 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25286 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25287 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25288 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25289 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25290 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25291 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25293 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25294 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25295 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25298 ## ------------------------------------------ ##
25299 ## Report this to the AC_PACKAGE_NAME lists. ##
25300 ## ------------------------------------------ ##
25303 sed "s/^/$as_me: WARNING: /" >&2
25306 echo "$as_me:$LINENO: checking for $ac_header" >&5
25307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25309 echo $ECHO_N "(cached) $ECHO_C" >&6
25311 eval "$as_ac_Header=\$ac_header_preproc"
25313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25314 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25317 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25318 cat >>confdefs.h <<_ACEOF
25319 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25326 echo "$as_me:$LINENO: checking types of arguments for select" >&5
25327 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
25328 if test "${ac_cv_func_select_args+set}" = set; then
25329 echo $ECHO_N "(cached) $ECHO_C" >&6
25331 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25332 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
25333 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
25334 cat >conftest.$ac_ext <<_ACEOF
25337 cat confdefs.h >>conftest.$ac_ext
25338 cat >>conftest.$ac_ext <<_ACEOF
25339 /* end confdefs.h. */
25340 $ac_includes_default
25341 #if HAVE_SYS_SELECT_H
25342 # include <sys/select.h>
25344 #if HAVE_SYS_SOCKET_H
25345 # include <sys/socket.h>
25351 extern int select ($ac_arg1,
25352 $ac_arg234, $ac_arg234, $ac_arg234,
25358 rm -f conftest.$ac_objext
25359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25360 (eval $ac_compile) 2>conftest.er1
25362 grep -v '^ *+' conftest.er1 >conftest.err
25364 cat conftest.err >&5
25365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25366 (exit $ac_status); } &&
25367 { ac_try='test -z "$ac_c_werror_flag"
25368 || test ! -s conftest.err'
25369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25370 (eval $ac_try) 2>&5
25372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25373 (exit $ac_status); }; } &&
25374 { ac_try='test -s conftest.$ac_objext'
25375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25376 (eval $ac_try) 2>&5
25378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25379 (exit $ac_status); }; }; then
25380 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
25382 echo "$as_me: failed program was:" >&5
25383 sed 's/^/| /' conftest.$ac_ext >&5
25386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25390 # Provide a safe default value.
25391 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
25394 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
25395 echo "${ECHO_T}$ac_cv_func_select_args" >&6
25396 ac_save_IFS=$IFS; IFS=','
25397 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25401 cat >>confdefs.h <<_ACEOF
25402 #define SELECT_TYPE_ARG1 $1
25406 cat >>confdefs.h <<_ACEOF
25407 #define SELECT_TYPE_ARG234 ($2)
25411 cat >>confdefs.h <<_ACEOF
25412 #define SELECT_TYPE_ARG5 ($3)
25421 for ac_func in poll
25423 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25424 echo "$as_me:$LINENO: checking for $ac_func" >&5
25425 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25426 if eval "test \"\${$as_ac_var+set}\" = set"; then
25427 echo $ECHO_N "(cached) $ECHO_C" >&6
25429 cat >conftest.$ac_ext <<_ACEOF
25432 cat confdefs.h >>conftest.$ac_ext
25433 cat >>conftest.$ac_ext <<_ACEOF
25434 /* end confdefs.h. */
25435 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25436 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25437 #define $ac_func innocuous_$ac_func
25439 /* System header to define __stub macros and hopefully few prototypes,
25440 which can conflict with char $ac_func (); below.
25441 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25442 <limits.h> exists even on freestanding compilers. */
25445 # include <limits.h>
25447 # include <assert.h>
25452 /* Override any gcc2 internal prototype to avoid an error. */
25457 /* We use char because int might match the return type of a gcc2
25458 builtin and then its argument prototype would still apply. */
25460 /* The GNU C library defines this for functions which it implements
25461 to always fail with ENOSYS. Some functions are actually named
25462 something starting with __ and the normal name is an alias. */
25463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25466 char (*f) () = $ac_func;
25475 return f != $ac_func;
25480 rm -f conftest.$ac_objext conftest$ac_exeext
25481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25482 (eval $ac_link) 2>conftest.er1
25484 grep -v '^ *+' conftest.er1 >conftest.err
25486 cat conftest.err >&5
25487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25488 (exit $ac_status); } &&
25489 { ac_try='test -z "$ac_c_werror_flag"
25490 || test ! -s conftest.err'
25491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25492 (eval $ac_try) 2>&5
25494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25495 (exit $ac_status); }; } &&
25496 { ac_try='test -s conftest$ac_exeext'
25497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25498 (eval $ac_try) 2>&5
25500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25501 (exit $ac_status); }; }; then
25502 eval "$as_ac_var=yes"
25504 echo "$as_me: failed program was:" >&5
25505 sed 's/^/| /' conftest.$ac_ext >&5
25507 eval "$as_ac_var=no"
25509 rm -f conftest.err conftest.$ac_objext \
25510 conftest$ac_exeext conftest.$ac_ext
25512 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25513 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25514 if test `eval echo '${'$as_ac_var'}'` = yes; then
25515 cat >>confdefs.h <<_ACEOF
25516 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25523 for ac_header in poll.h
25525 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25526 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25527 echo "$as_me:$LINENO: checking for $ac_header" >&5
25528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25529 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25530 echo $ECHO_N "(cached) $ECHO_C" >&6
25532 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25533 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25535 # Is the header compilable?
25536 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25537 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25538 cat >conftest.$ac_ext <<_ACEOF
25541 cat confdefs.h >>conftest.$ac_ext
25542 cat >>conftest.$ac_ext <<_ACEOF
25543 /* end confdefs.h. */
25544 $ac_includes_default
25545 #include <$ac_header>
25547 rm -f conftest.$ac_objext
25548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25549 (eval $ac_compile) 2>conftest.er1
25551 grep -v '^ *+' conftest.er1 >conftest.err
25553 cat conftest.err >&5
25554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25555 (exit $ac_status); } &&
25556 { ac_try='test -z "$ac_c_werror_flag"
25557 || test ! -s conftest.err'
25558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25559 (eval $ac_try) 2>&5
25561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25562 (exit $ac_status); }; } &&
25563 { ac_try='test -s conftest.$ac_objext'
25564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25565 (eval $ac_try) 2>&5
25567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25568 (exit $ac_status); }; }; then
25569 ac_header_compiler=yes
25571 echo "$as_me: failed program was:" >&5
25572 sed 's/^/| /' conftest.$ac_ext >&5
25574 ac_header_compiler=no
25576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25577 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25578 echo "${ECHO_T}$ac_header_compiler" >&6
25580 # Is the header present?
25581 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25582 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25583 cat >conftest.$ac_ext <<_ACEOF
25586 cat confdefs.h >>conftest.$ac_ext
25587 cat >>conftest.$ac_ext <<_ACEOF
25588 /* end confdefs.h. */
25589 #include <$ac_header>
25591 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25592 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25594 grep -v '^ *+' conftest.er1 >conftest.err
25596 cat conftest.err >&5
25597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25598 (exit $ac_status); } >/dev/null; then
25599 if test -s conftest.err; then
25600 ac_cpp_err=$ac_c_preproc_warn_flag
25601 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25608 if test -z "$ac_cpp_err"; then
25609 ac_header_preproc=yes
25611 echo "$as_me: failed program was:" >&5
25612 sed 's/^/| /' conftest.$ac_ext >&5
25614 ac_header_preproc=no
25616 rm -f conftest.err conftest.$ac_ext
25617 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25618 echo "${ECHO_T}$ac_header_preproc" >&6
25620 # So? What about this header?
25621 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25623 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25624 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25625 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25626 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25627 ac_header_preproc=yes
25630 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25631 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25632 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25633 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25634 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25635 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25636 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25637 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25638 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25639 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25640 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25641 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25644 ## ------------------------------------------ ##
25645 ## Report this to the AC_PACKAGE_NAME lists. ##
25646 ## ------------------------------------------ ##
25649 sed "s/^/$as_me: WARNING: /" >&2
25652 echo "$as_me:$LINENO: checking for $ac_header" >&5
25653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25654 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25655 echo $ECHO_N "(cached) $ECHO_C" >&6
25657 eval "$as_ac_Header=\$ac_header_preproc"
25659 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25660 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25663 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25664 cat >>confdefs.h <<_ACEOF
25665 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25674 for ac_header in sys/epoll.h
25676 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25677 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25678 echo "$as_me:$LINENO: checking for $ac_header" >&5
25679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25681 echo $ECHO_N "(cached) $ECHO_C" >&6
25683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25684 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25686 # Is the header compilable?
25687 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25688 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25689 cat >conftest.$ac_ext <<_ACEOF
25692 cat confdefs.h >>conftest.$ac_ext
25693 cat >>conftest.$ac_ext <<_ACEOF
25694 /* end confdefs.h. */
25695 $ac_includes_default
25696 #include <$ac_header>
25698 rm -f conftest.$ac_objext
25699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25700 (eval $ac_compile) 2>conftest.er1
25702 grep -v '^ *+' conftest.er1 >conftest.err
25704 cat conftest.err >&5
25705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25706 (exit $ac_status); } &&
25707 { ac_try='test -z "$ac_c_werror_flag"
25708 || test ! -s conftest.err'
25709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25710 (eval $ac_try) 2>&5
25712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25713 (exit $ac_status); }; } &&
25714 { ac_try='test -s conftest.$ac_objext'
25715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25716 (eval $ac_try) 2>&5
25718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25719 (exit $ac_status); }; }; then
25720 ac_header_compiler=yes
25722 echo "$as_me: failed program was:" >&5
25723 sed 's/^/| /' conftest.$ac_ext >&5
25725 ac_header_compiler=no
25727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25728 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25729 echo "${ECHO_T}$ac_header_compiler" >&6
25731 # Is the header present?
25732 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25733 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25734 cat >conftest.$ac_ext <<_ACEOF
25737 cat confdefs.h >>conftest.$ac_ext
25738 cat >>conftest.$ac_ext <<_ACEOF
25739 /* end confdefs.h. */
25740 #include <$ac_header>
25742 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25743 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25745 grep -v '^ *+' conftest.er1 >conftest.err
25747 cat conftest.err >&5
25748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25749 (exit $ac_status); } >/dev/null; then
25750 if test -s conftest.err; then
25751 ac_cpp_err=$ac_c_preproc_warn_flag
25752 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25759 if test -z "$ac_cpp_err"; then
25760 ac_header_preproc=yes
25762 echo "$as_me: failed program was:" >&5
25763 sed 's/^/| /' conftest.$ac_ext >&5
25765 ac_header_preproc=no
25767 rm -f conftest.err conftest.$ac_ext
25768 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25769 echo "${ECHO_T}$ac_header_preproc" >&6
25771 # So? What about this header?
25772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25774 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25775 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25776 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25777 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25778 ac_header_preproc=yes
25781 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25782 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25783 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25784 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25785 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25786 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25787 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25788 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25790 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25791 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25792 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25795 ## ------------------------------------------ ##
25796 ## Report this to the AC_PACKAGE_NAME lists. ##
25797 ## ------------------------------------------ ##
25800 sed "s/^/$as_me: WARNING: /" >&2
25803 echo "$as_me:$LINENO: checking for $ac_header" >&5
25804 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25805 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25806 echo $ECHO_N "(cached) $ECHO_C" >&6
25808 eval "$as_ac_Header=\$ac_header_preproc"
25810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25811 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25814 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25815 cat >>confdefs.h <<_ACEOF
25816 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25823 if test "${ac_cv_header_sys_epoll_h}" = yes; then
25824 echo "$as_me:$LINENO: checking for epoll system call" >&5
25825 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
25826 if test "$cross_compiling" = yes; then
25827 echo "$as_me:$LINENO: result: no" >&5
25828 echo "${ECHO_T}no" >&6
25830 cat >conftest.$ac_ext <<_ACEOF
25833 cat confdefs.h >>conftest.$ac_ext
25834 cat >>conftest.$ac_ext <<_ACEOF
25835 /* end confdefs.h. */
25836 int main(int argc, char *argv)
25838 int epfd = epoll_create(256);
25839 exit (epfd == -1 ? 1 : 0);
25842 rm -f conftest$ac_exeext
25843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25844 (eval $ac_link) 2>&5
25846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25847 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25849 (eval $ac_try) 2>&5
25851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25852 (exit $ac_status); }; }; then
25853 echo "$as_me:$LINENO: result: yes" >&5
25854 echo "${ECHO_T}yes" >&6
25856 cat >>confdefs.h <<\_ACEOF
25857 #define HAVE_EPOLL 1
25861 echo "$as_me: program exited with status $ac_status" >&5
25862 echo "$as_me: failed program was:" >&5
25863 sed 's/^/| /' conftest.$ac_ext >&5
25865 ( exit $ac_status )
25866 echo "$as_me:$LINENO: result: no" >&5
25867 echo "${ECHO_T}no" >&6
25869 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25874 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
25875 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
25876 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
25877 echo $ECHO_N "(cached) $ECHO_C" >&6
25880 cat >conftest.$ac_ext <<_ACEOF
25883 cat confdefs.h >>conftest.$ac_ext
25884 cat >>conftest.$ac_ext <<_ACEOF
25885 /* end confdefs.h. */
25888 #include <sys/types.h>
25891 #include <stdlib.h>
25896 char *c = (char *) *sys_errlist
25901 rm -f conftest.$ac_objext
25902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25903 (eval $ac_compile) 2>conftest.er1
25905 grep -v '^ *+' conftest.er1 >conftest.err
25907 cat conftest.err >&5
25908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25909 (exit $ac_status); } &&
25910 { ac_try='test -z "$ac_c_werror_flag"
25911 || test ! -s conftest.err'
25912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25913 (eval $ac_try) 2>&5
25915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25916 (exit $ac_status); }; } &&
25917 { ac_try='test -s conftest.$ac_objext'
25918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25919 (eval $ac_try) 2>&5
25921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25922 (exit $ac_status); }; }; then
25923 ol_cv_dcl_sys_errlist=yes
25924 ol_cv_have_sys_errlist=yes
25926 echo "$as_me: failed program was:" >&5
25927 sed 's/^/| /' conftest.$ac_ext >&5
25929 ol_cv_dcl_sys_errlist=no
25931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25933 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
25934 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
25936 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
25937 if test $ol_cv_dcl_sys_errlist = no ; then
25939 cat >>confdefs.h <<\_ACEOF
25940 #define DECL_SYS_ERRLIST 1
25944 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
25945 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
25946 if test "${ol_cv_have_sys_errlist+set}" = set; then
25947 echo $ECHO_N "(cached) $ECHO_C" >&6
25950 cat >conftest.$ac_ext <<_ACEOF
25953 cat confdefs.h >>conftest.$ac_ext
25954 cat >>conftest.$ac_ext <<_ACEOF
25955 /* end confdefs.h. */
25960 char *c = (char *) *sys_errlist
25965 rm -f conftest.$ac_objext conftest$ac_exeext
25966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25967 (eval $ac_link) 2>conftest.er1
25969 grep -v '^ *+' conftest.er1 >conftest.err
25971 cat conftest.err >&5
25972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25973 (exit $ac_status); } &&
25974 { ac_try='test -z "$ac_c_werror_flag"
25975 || test ! -s conftest.err'
25976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25977 (eval $ac_try) 2>&5
25979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25980 (exit $ac_status); }; } &&
25981 { ac_try='test -s conftest$ac_exeext'
25982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25983 (eval $ac_try) 2>&5
25985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25986 (exit $ac_status); }; }; then
25987 ol_cv_have_sys_errlist=yes
25989 echo "$as_me: failed program was:" >&5
25990 sed 's/^/| /' conftest.$ac_ext >&5
25992 ol_cv_have_sys_errlist=no
25994 rm -f conftest.err conftest.$ac_objext \
25995 conftest$ac_exeext conftest.$ac_ext
25997 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
25998 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
26000 if test $ol_cv_have_sys_errlist = yes ; then
26002 cat >>confdefs.h <<\_ACEOF
26003 #define HAVE_SYS_ERRLIST 1
26009 for ac_func in strerror strerror_r
26011 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26012 echo "$as_me:$LINENO: checking for $ac_func" >&5
26013 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26014 if eval "test \"\${$as_ac_var+set}\" = set"; then
26015 echo $ECHO_N "(cached) $ECHO_C" >&6
26017 cat >conftest.$ac_ext <<_ACEOF
26020 cat confdefs.h >>conftest.$ac_ext
26021 cat >>conftest.$ac_ext <<_ACEOF
26022 /* end confdefs.h. */
26023 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26024 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26025 #define $ac_func innocuous_$ac_func
26027 /* System header to define __stub macros and hopefully few prototypes,
26028 which can conflict with char $ac_func (); below.
26029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26030 <limits.h> exists even on freestanding compilers. */
26033 # include <limits.h>
26035 # include <assert.h>
26040 /* Override any gcc2 internal prototype to avoid an error. */
26045 /* We use char because int might match the return type of a gcc2
26046 builtin and then its argument prototype would still apply. */
26048 /* The GNU C library defines this for functions which it implements
26049 to always fail with ENOSYS. Some functions are actually named
26050 something starting with __ and the normal name is an alias. */
26051 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26054 char (*f) () = $ac_func;
26063 return f != $ac_func;
26068 rm -f conftest.$ac_objext conftest$ac_exeext
26069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26070 (eval $ac_link) 2>conftest.er1
26072 grep -v '^ *+' conftest.er1 >conftest.err
26074 cat conftest.err >&5
26075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26076 (exit $ac_status); } &&
26077 { ac_try='test -z "$ac_c_werror_flag"
26078 || test ! -s conftest.err'
26079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26080 (eval $ac_try) 2>&5
26082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26083 (exit $ac_status); }; } &&
26084 { ac_try='test -s conftest$ac_exeext'
26085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26086 (eval $ac_try) 2>&5
26088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26089 (exit $ac_status); }; }; then
26090 eval "$as_ac_var=yes"
26092 echo "$as_me: failed program was:" >&5
26093 sed 's/^/| /' conftest.$ac_ext >&5
26095 eval "$as_ac_var=no"
26097 rm -f conftest.err conftest.$ac_objext \
26098 conftest$ac_exeext conftest.$ac_ext
26100 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26101 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26102 if test `eval echo '${'$as_ac_var'}'` = yes; then
26103 cat >>confdefs.h <<_ACEOF
26104 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26110 ol_cv_func_strerror_r=no
26111 if test "${ac_cv_func_strerror_r}" = yes ; then
26112 echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
26113 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
26114 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
26115 echo $ECHO_N "(cached) $ECHO_C" >&6
26118 cat >conftest.$ac_ext <<_ACEOF
26121 cat confdefs.h >>conftest.$ac_ext
26122 cat >>conftest.$ac_ext <<_ACEOF
26123 /* end confdefs.h. */
26124 #include <string.h>
26126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26127 $EGREP "strerror_r" >/dev/null 2>&1; then
26128 ol_decl_strerror_r=yes
26130 ol_decl_strerror_r=no
26134 if test $ol_decl_strerror_r = yes ; then
26135 cat >conftest.$ac_ext <<_ACEOF
26138 cat confdefs.h >>conftest.$ac_ext
26139 cat >>conftest.$ac_ext <<_ACEOF
26140 /* end confdefs.h. */
26141 #include <string.h>
26145 /* from autoconf 2.59 */
26147 char x = *strerror_r (0, buf, sizeof buf);
26148 char *p = strerror_r (0, buf, sizeof buf);
26154 rm -f conftest.$ac_objext
26155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26156 (eval $ac_compile) 2>conftest.er1
26158 grep -v '^ *+' conftest.er1 >conftest.err
26160 cat conftest.err >&5
26161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26162 (exit $ac_status); } &&
26163 { ac_try='test -z "$ac_c_werror_flag"
26164 || test ! -s conftest.err'
26165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26166 (eval $ac_try) 2>&5
26168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26169 (exit $ac_status); }; } &&
26170 { ac_try='test -s conftest.$ac_objext'
26171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26172 (eval $ac_try) 2>&5
26174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26175 (exit $ac_status); }; }; then
26176 ol_cv_nonposix_strerror_r=yes
26178 echo "$as_me: failed program was:" >&5
26179 sed 's/^/| /' conftest.$ac_ext >&5
26181 ol_cv_nonposix_strerror_r=no
26183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26185 if test "$cross_compiling" = yes; then
26186 ol_cv_nonposix_strerror=no
26188 cat >conftest.$ac_ext <<_ACEOF
26191 cat confdefs.h >>conftest.$ac_ext
26192 cat >>conftest.$ac_ext <<_ACEOF
26193 /* end confdefs.h. */
26198 strerror_r( 1, buf, sizeof buf );
26199 exit( buf[0] == 0 );
26203 rm -f conftest$ac_exeext
26204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26205 (eval $ac_link) 2>&5
26207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26208 (exit $ac_status); } && { ac_try='./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 ol_cv_nonposix_strerror_r=yes
26216 echo "$as_me: program exited with status $ac_status" >&5
26217 echo "$as_me: failed program was:" >&5
26218 sed 's/^/| /' conftest.$ac_ext >&5
26220 ( exit $ac_status )
26221 ol_cv_nonposix_strerror=no
26223 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26228 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
26229 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
26230 if test $ol_cv_nonposix_strerror_r = yes ; then
26232 cat >>confdefs.h <<\_ACEOF
26233 #define HAVE_NONPOSIX_STRERROR_R 1
26238 elif test "${ac_cv_func_strerror}" = no ; then
26239 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
26240 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
26241 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
26242 echo $ECHO_N "(cached) $ECHO_C" >&6
26245 cat >conftest.$ac_ext <<_ACEOF
26248 cat confdefs.h >>conftest.$ac_ext
26249 cat >>conftest.$ac_ext <<_ACEOF
26250 /* end confdefs.h. */
26253 #include <sys/types.h>
26256 #include <stdlib.h>
26261 char *c = (char *) *sys_errlist
26266 rm -f conftest.$ac_objext
26267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26268 (eval $ac_compile) 2>conftest.er1
26270 grep -v '^ *+' conftest.er1 >conftest.err
26272 cat conftest.err >&5
26273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26274 (exit $ac_status); } &&
26275 { ac_try='test -z "$ac_c_werror_flag"
26276 || test ! -s conftest.err'
26277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26278 (eval $ac_try) 2>&5
26280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26281 (exit $ac_status); }; } &&
26282 { ac_try='test -s conftest.$ac_objext'
26283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26284 (eval $ac_try) 2>&5
26286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26287 (exit $ac_status); }; }; then
26288 ol_cv_dcl_sys_errlist=yes
26289 ol_cv_have_sys_errlist=yes
26291 echo "$as_me: failed program was:" >&5
26292 sed 's/^/| /' conftest.$ac_ext >&5
26294 ol_cv_dcl_sys_errlist=no
26296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26298 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
26299 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
26301 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
26302 if test $ol_cv_dcl_sys_errlist = no ; then
26304 cat >>confdefs.h <<\_ACEOF
26305 #define DECL_SYS_ERRLIST 1
26309 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
26310 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
26311 if test "${ol_cv_have_sys_errlist+set}" = set; then
26312 echo $ECHO_N "(cached) $ECHO_C" >&6
26315 cat >conftest.$ac_ext <<_ACEOF
26318 cat confdefs.h >>conftest.$ac_ext
26319 cat >>conftest.$ac_ext <<_ACEOF
26320 /* end confdefs.h. */
26325 char *c = (char *) *sys_errlist
26330 rm -f conftest.$ac_objext conftest$ac_exeext
26331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26332 (eval $ac_link) 2>conftest.er1
26334 grep -v '^ *+' conftest.er1 >conftest.err
26336 cat conftest.err >&5
26337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26338 (exit $ac_status); } &&
26339 { ac_try='test -z "$ac_c_werror_flag"
26340 || test ! -s conftest.err'
26341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26342 (eval $ac_try) 2>&5
26344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26345 (exit $ac_status); }; } &&
26346 { ac_try='test -s conftest$ac_exeext'
26347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26348 (eval $ac_try) 2>&5
26350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26351 (exit $ac_status); }; }; then
26352 ol_cv_have_sys_errlist=yes
26354 echo "$as_me: failed program was:" >&5
26355 sed 's/^/| /' conftest.$ac_ext >&5
26357 ol_cv_have_sys_errlist=no
26359 rm -f conftest.err conftest.$ac_objext \
26360 conftest$ac_exeext conftest.$ac_ext
26362 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
26363 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
26365 if test $ol_cv_have_sys_errlist = yes ; then
26367 cat >>confdefs.h <<\_ACEOF
26368 #define HAVE_SYS_ERRLIST 1
26377 for ac_header in regex.h
26379 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26380 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26381 echo "$as_me:$LINENO: checking for $ac_header" >&5
26382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26384 echo $ECHO_N "(cached) $ECHO_C" >&6
26386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26387 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26389 # Is the header compilable?
26390 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26391 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26392 cat >conftest.$ac_ext <<_ACEOF
26395 cat confdefs.h >>conftest.$ac_ext
26396 cat >>conftest.$ac_ext <<_ACEOF
26397 /* end confdefs.h. */
26398 $ac_includes_default
26399 #include <$ac_header>
26401 rm -f conftest.$ac_objext
26402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26403 (eval $ac_compile) 2>conftest.er1
26405 grep -v '^ *+' conftest.er1 >conftest.err
26407 cat conftest.err >&5
26408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26409 (exit $ac_status); } &&
26410 { ac_try='test -z "$ac_c_werror_flag"
26411 || test ! -s conftest.err'
26412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26413 (eval $ac_try) 2>&5
26415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26416 (exit $ac_status); }; } &&
26417 { ac_try='test -s conftest.$ac_objext'
26418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26419 (eval $ac_try) 2>&5
26421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26422 (exit $ac_status); }; }; then
26423 ac_header_compiler=yes
26425 echo "$as_me: failed program was:" >&5
26426 sed 's/^/| /' conftest.$ac_ext >&5
26428 ac_header_compiler=no
26430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26431 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26432 echo "${ECHO_T}$ac_header_compiler" >&6
26434 # Is the header present?
26435 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26436 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26437 cat >conftest.$ac_ext <<_ACEOF
26440 cat confdefs.h >>conftest.$ac_ext
26441 cat >>conftest.$ac_ext <<_ACEOF
26442 /* end confdefs.h. */
26443 #include <$ac_header>
26445 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26446 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26448 grep -v '^ *+' conftest.er1 >conftest.err
26450 cat conftest.err >&5
26451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26452 (exit $ac_status); } >/dev/null; then
26453 if test -s conftest.err; then
26454 ac_cpp_err=$ac_c_preproc_warn_flag
26455 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26462 if test -z "$ac_cpp_err"; then
26463 ac_header_preproc=yes
26465 echo "$as_me: failed program was:" >&5
26466 sed 's/^/| /' conftest.$ac_ext >&5
26468 ac_header_preproc=no
26470 rm -f conftest.err conftest.$ac_ext
26471 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26472 echo "${ECHO_T}$ac_header_preproc" >&6
26474 # So? What about this header?
26475 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26477 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26478 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26480 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26481 ac_header_preproc=yes
26484 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26485 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26486 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26487 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26488 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26489 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26490 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26491 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26493 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26494 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26495 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26498 ## ------------------------------------------ ##
26499 ## Report this to the AC_PACKAGE_NAME lists. ##
26500 ## ------------------------------------------ ##
26503 sed "s/^/$as_me: WARNING: /" >&2
26506 echo "$as_me:$LINENO: checking for $ac_header" >&5
26507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26509 echo $ECHO_N "(cached) $ECHO_C" >&6
26511 eval "$as_ac_Header=\$ac_header_preproc"
26513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26514 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26517 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26518 cat >>confdefs.h <<_ACEOF
26519 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26526 if test "$ac_cv_header_regex_h" != yes ; then
26527 { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
26528 echo "$as_me: error: POSIX regex.h required." >&2;}
26529 { (exit 1); exit 1; }; }
26531 echo "$as_me:$LINENO: checking for library containing regfree" >&5
26532 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
26533 if test "${ac_cv_search_regfree+set}" = set; then
26534 echo $ECHO_N "(cached) $ECHO_C" >&6
26536 ac_func_search_save_LIBS=$LIBS
26537 ac_cv_search_regfree=no
26538 cat >conftest.$ac_ext <<_ACEOF
26541 cat confdefs.h >>conftest.$ac_ext
26542 cat >>conftest.$ac_ext <<_ACEOF
26543 /* end confdefs.h. */
26545 /* Override any gcc2 internal prototype to avoid an error. */
26549 /* We use char because int might match the return type of a gcc2
26550 builtin and then its argument prototype would still apply. */
26560 rm -f conftest.$ac_objext conftest$ac_exeext
26561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26562 (eval $ac_link) 2>conftest.er1
26564 grep -v '^ *+' conftest.er1 >conftest.err
26566 cat conftest.err >&5
26567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26568 (exit $ac_status); } &&
26569 { ac_try='test -z "$ac_c_werror_flag"
26570 || test ! -s conftest.err'
26571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26572 (eval $ac_try) 2>&5
26574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26575 (exit $ac_status); }; } &&
26576 { ac_try='test -s conftest$ac_exeext'
26577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26578 (eval $ac_try) 2>&5
26580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26581 (exit $ac_status); }; }; then
26582 ac_cv_search_regfree="none required"
26584 echo "$as_me: failed program was:" >&5
26585 sed 's/^/| /' conftest.$ac_ext >&5
26588 rm -f conftest.err conftest.$ac_objext \
26589 conftest$ac_exeext conftest.$ac_ext
26590 if test "$ac_cv_search_regfree" = no; then
26591 for ac_lib in regex gnuregex; do
26592 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26593 cat >conftest.$ac_ext <<_ACEOF
26596 cat confdefs.h >>conftest.$ac_ext
26597 cat >>conftest.$ac_ext <<_ACEOF
26598 /* end confdefs.h. */
26600 /* Override any gcc2 internal prototype to avoid an error. */
26604 /* We use char because int might match the return type of a gcc2
26605 builtin and then its argument prototype would still apply. */
26615 rm -f conftest.$ac_objext conftest$ac_exeext
26616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26617 (eval $ac_link) 2>conftest.er1
26619 grep -v '^ *+' conftest.er1 >conftest.err
26621 cat conftest.err >&5
26622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26623 (exit $ac_status); } &&
26624 { ac_try='test -z "$ac_c_werror_flag"
26625 || test ! -s conftest.err'
26626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26627 (eval $ac_try) 2>&5
26629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26630 (exit $ac_status); }; } &&
26631 { ac_try='test -s conftest$ac_exeext'
26632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26633 (eval $ac_try) 2>&5
26635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26636 (exit $ac_status); }; }; then
26637 ac_cv_search_regfree="-l$ac_lib"
26640 echo "$as_me: failed program was:" >&5
26641 sed 's/^/| /' conftest.$ac_ext >&5
26644 rm -f conftest.err conftest.$ac_objext \
26645 conftest$ac_exeext conftest.$ac_ext
26648 LIBS=$ac_func_search_save_LIBS
26650 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
26651 echo "${ECHO_T}$ac_cv_search_regfree" >&6
26652 if test "$ac_cv_search_regfree" != no; then
26653 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
26656 { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
26657 echo "$as_me: error: POSIX regex required." >&2;}
26658 { (exit 1); exit 1; }; }
26663 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
26664 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
26665 if test "${ol_cv_c_posix_regex+set}" = set; then
26666 echo $ECHO_N "(cached) $ECHO_C" >&6
26669 if test "$cross_compiling" = yes; then
26670 ol_cv_c_posix_regex=cross
26672 cat >conftest.$ac_ext <<_ACEOF
26675 cat confdefs.h >>conftest.$ac_ext
26676 cat >>conftest.$ac_ext <<_ACEOF
26677 /* end confdefs.h. */
26679 #include <sys/types.h>
26681 static char *pattern, *string;
26689 if(regcomp(&re, pattern, 0)) {
26693 string = "ALL MATCH";
26695 rc = regexec(&re, string, 0, (void*)0, 0);
26702 rm -f conftest$ac_exeext
26703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26704 (eval $ac_link) 2>&5
26706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26707 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26709 (eval $ac_try) 2>&5
26711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26712 (exit $ac_status); }; }; then
26713 ol_cv_c_posix_regex=yes
26715 echo "$as_me: program exited with status $ac_status" >&5
26716 echo "$as_me: failed program was:" >&5
26717 sed 's/^/| /' conftest.$ac_ext >&5
26719 ( exit $ac_status )
26720 ol_cv_c_posix_regex=no
26722 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26725 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
26726 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
26728 if test "$ol_cv_c_posix_regex" = no ; then
26729 { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
26730 echo "$as_me: error: broken POSIX regex!" >&2;}
26731 { (exit 1); exit 1; }; }
26737 for ac_header in sys/uuid.h
26739 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26741 echo "$as_me:$LINENO: checking for $ac_header" >&5
26742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26743 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26744 echo $ECHO_N "(cached) $ECHO_C" >&6
26746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26747 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26749 # Is the header compilable?
26750 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26751 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26752 cat >conftest.$ac_ext <<_ACEOF
26755 cat confdefs.h >>conftest.$ac_ext
26756 cat >>conftest.$ac_ext <<_ACEOF
26757 /* end confdefs.h. */
26758 $ac_includes_default
26759 #include <$ac_header>
26761 rm -f conftest.$ac_objext
26762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26763 (eval $ac_compile) 2>conftest.er1
26765 grep -v '^ *+' conftest.er1 >conftest.err
26767 cat conftest.err >&5
26768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26769 (exit $ac_status); } &&
26770 { ac_try='test -z "$ac_c_werror_flag"
26771 || test ! -s conftest.err'
26772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26773 (eval $ac_try) 2>&5
26775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26776 (exit $ac_status); }; } &&
26777 { ac_try='test -s conftest.$ac_objext'
26778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26779 (eval $ac_try) 2>&5
26781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26782 (exit $ac_status); }; }; then
26783 ac_header_compiler=yes
26785 echo "$as_me: failed program was:" >&5
26786 sed 's/^/| /' conftest.$ac_ext >&5
26788 ac_header_compiler=no
26790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26791 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26792 echo "${ECHO_T}$ac_header_compiler" >&6
26794 # Is the header present?
26795 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26796 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26797 cat >conftest.$ac_ext <<_ACEOF
26800 cat confdefs.h >>conftest.$ac_ext
26801 cat >>conftest.$ac_ext <<_ACEOF
26802 /* end confdefs.h. */
26803 #include <$ac_header>
26805 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26806 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26808 grep -v '^ *+' conftest.er1 >conftest.err
26810 cat conftest.err >&5
26811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26812 (exit $ac_status); } >/dev/null; then
26813 if test -s conftest.err; then
26814 ac_cpp_err=$ac_c_preproc_warn_flag
26815 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26822 if test -z "$ac_cpp_err"; then
26823 ac_header_preproc=yes
26825 echo "$as_me: failed program was:" >&5
26826 sed 's/^/| /' conftest.$ac_ext >&5
26828 ac_header_preproc=no
26830 rm -f conftest.err conftest.$ac_ext
26831 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26832 echo "${ECHO_T}$ac_header_preproc" >&6
26834 # So? What about this header?
26835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26837 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26838 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26840 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26841 ac_header_preproc=yes
26844 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26845 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26846 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26847 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26848 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26849 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26850 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26851 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26853 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26854 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26855 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26858 ## ------------------------------------------ ##
26859 ## Report this to the AC_PACKAGE_NAME lists. ##
26860 ## ------------------------------------------ ##
26863 sed "s/^/$as_me: WARNING: /" >&2
26866 echo "$as_me:$LINENO: checking for $ac_header" >&5
26867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26869 echo $ECHO_N "(cached) $ECHO_C" >&6
26871 eval "$as_ac_Header=\$ac_header_preproc"
26873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26874 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26877 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26878 cat >>confdefs.h <<_ACEOF
26879 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26886 if test $ac_cv_header_sys_uuid_h = yes ; then
26888 echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
26889 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
26890 if test "${ac_cv_search_uuid_to_str+set}" = set; then
26891 echo $ECHO_N "(cached) $ECHO_C" >&6
26893 ac_func_search_save_LIBS=$LIBS
26894 ac_cv_search_uuid_to_str=no
26895 cat >conftest.$ac_ext <<_ACEOF
26898 cat confdefs.h >>conftest.$ac_ext
26899 cat >>conftest.$ac_ext <<_ACEOF
26900 /* end confdefs.h. */
26902 /* Override any gcc2 internal prototype to avoid an error. */
26906 /* We use char because int might match the return type of a gcc2
26907 builtin and then its argument prototype would still apply. */
26908 char uuid_to_str ();
26917 rm -f conftest.$ac_objext conftest$ac_exeext
26918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26919 (eval $ac_link) 2>conftest.er1
26921 grep -v '^ *+' conftest.er1 >conftest.err
26923 cat conftest.err >&5
26924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26925 (exit $ac_status); } &&
26926 { ac_try='test -z "$ac_c_werror_flag"
26927 || test ! -s conftest.err'
26928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26929 (eval $ac_try) 2>&5
26931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26932 (exit $ac_status); }; } &&
26933 { ac_try='test -s conftest$ac_exeext'
26934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26935 (eval $ac_try) 2>&5
26937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26938 (exit $ac_status); }; }; then
26939 ac_cv_search_uuid_to_str="none required"
26941 echo "$as_me: failed program was:" >&5
26942 sed 's/^/| /' conftest.$ac_ext >&5
26945 rm -f conftest.err conftest.$ac_objext \
26946 conftest$ac_exeext conftest.$ac_ext
26947 if test "$ac_cv_search_uuid_to_str" = no; then
26948 for ac_lib in uuid; do
26949 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26950 cat >conftest.$ac_ext <<_ACEOF
26953 cat confdefs.h >>conftest.$ac_ext
26954 cat >>conftest.$ac_ext <<_ACEOF
26955 /* end confdefs.h. */
26957 /* Override any gcc2 internal prototype to avoid an error. */
26961 /* We use char because int might match the return type of a gcc2
26962 builtin and then its argument prototype would still apply. */
26963 char uuid_to_str ();
26972 rm -f conftest.$ac_objext conftest$ac_exeext
26973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26974 (eval $ac_link) 2>conftest.er1
26976 grep -v '^ *+' conftest.er1 >conftest.err
26978 cat conftest.err >&5
26979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26980 (exit $ac_status); } &&
26981 { ac_try='test -z "$ac_c_werror_flag"
26982 || test ! -s conftest.err'
26983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26984 (eval $ac_try) 2>&5
26986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26987 (exit $ac_status); }; } &&
26988 { ac_try='test -s conftest$ac_exeext'
26989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26990 (eval $ac_try) 2>&5
26992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26993 (exit $ac_status); }; }; then
26994 ac_cv_search_uuid_to_str="-l$ac_lib"
26997 echo "$as_me: failed program was:" >&5
26998 sed 's/^/| /' conftest.$ac_ext >&5
27001 rm -f conftest.err conftest.$ac_objext \
27002 conftest$ac_exeext conftest.$ac_ext
27005 LIBS=$ac_func_search_save_LIBS
27007 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
27008 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
27009 if test "$ac_cv_search_uuid_to_str" != no; then
27010 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
27018 if test have_uuid = yes ; then
27020 cat >>confdefs.h <<\_ACEOF
27021 #define HAVE_UUID_TO_STR 1
27025 test "$ac_cv_search_uuid_to_str" = "none required" || \
27026 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
27030 if test $have_uuid = no ; then
27031 echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
27032 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
27034 LIBS="$LIBS -lrpcrt4"
27035 cat >conftest.$ac_ext <<_ACEOF
27038 cat confdefs.h >>conftest.$ac_ext
27039 cat >>conftest.$ac_ext <<_ACEOF
27040 /* end confdefs.h. */
27042 int __stdcall UuidCreate(void *);
27043 int __stdcall UuidToStringA(void *,void **);
27050 UuidToStringA(0,0);
27056 rm -f conftest.$ac_objext conftest$ac_exeext
27057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27058 (eval $ac_link) 2>conftest.er1
27060 grep -v '^ *+' conftest.er1 >conftest.err
27062 cat conftest.err >&5
27063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27064 (exit $ac_status); } &&
27065 { ac_try='test -z "$ac_c_werror_flag"
27066 || test ! -s conftest.err'
27067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27068 (eval $ac_try) 2>&5
27070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27071 (exit $ac_status); }; } &&
27072 { ac_try='test -s conftest$ac_exeext'
27073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27074 (eval $ac_try) 2>&5
27076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27077 (exit $ac_status); }; }; then
27080 echo "$as_me: failed program was:" >&5
27081 sed 's/^/| /' conftest.$ac_ext >&5
27085 rm -f conftest.err conftest.$ac_objext \
27086 conftest$ac_exeext conftest.$ac_ext
27087 if test $need_rpcrt = yes; then
27088 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
27091 echo "$as_me:$LINENO: result: $need_rpcrt" >&5
27092 echo "${ECHO_T}$need_rpcrt" >&6
27095 ol_cv_lib_resolver=no
27096 if test $ol_cv_lib_resolver = no ; then
27097 echo "$as_me:$LINENO: checking for resolver link (default)" >&5
27098 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
27099 if test "${ol_cv_resolver_none+set}" = set; then
27100 echo $ECHO_N "(cached) $ECHO_C" >&6
27105 LIBS="$ol_RESOLVER_LIB $LIBS"
27107 cat >conftest.$ac_ext <<_ACEOF
27110 cat confdefs.h >>conftest.$ac_ext
27111 cat >>conftest.$ac_ext <<_ACEOF
27112 /* end confdefs.h. */
27114 #ifdef HAVE_SYS_TYPES_H
27115 # include <sys/types.h>
27117 #include <netinet/in.h>
27118 #ifdef HAVE_ARPA_NAMESER_H
27119 # include <arpa/nameser.h>
27121 #ifdef HAVE_RESOLV_H
27122 # include <resolv.h>
27130 char *request = NULL;
27131 unsigned char reply[64*1024];
27132 unsigned char host[64*1024];
27136 /* Bind 8/9 interface */
27137 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27139 /* Bind 4 interface */
27143 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27147 /* Bind 8/9 interface */
27149 #elif defined(HFIXEDSZ)
27150 /* Bind 4 interface w/ HFIXEDSZ */
27153 /* Bind 4 interface w/o HFIXEDSZ */
27154 p += sizeof(HEADER);
27156 status = dn_expand( reply, reply+len, p, host, sizeof(host));
27162 rm -f conftest.$ac_objext conftest$ac_exeext
27163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27164 (eval $ac_link) 2>conftest.er1
27166 grep -v '^ *+' conftest.er1 >conftest.err
27168 cat conftest.err >&5
27169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27170 (exit $ac_status); } &&
27171 { ac_try='test -z "$ac_c_werror_flag"
27172 || test ! -s conftest.err'
27173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27174 (eval $ac_try) 2>&5
27176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27177 (exit $ac_status); }; } &&
27178 { ac_try='test -s conftest$ac_exeext'
27179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27180 (eval $ac_try) 2>&5
27182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27183 (exit $ac_status); }; }; then
27184 ol_cv_resolver_none=yes
27186 echo "$as_me: failed program was:" >&5
27187 sed 's/^/| /' conftest.$ac_ext >&5
27189 ol_cv_resolver_none=no
27191 rm -f conftest.err conftest.$ac_objext \
27192 conftest$ac_exeext conftest.$ac_ext
27197 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
27198 echo "${ECHO_T}$ol_cv_resolver_none" >&6
27200 if test $ol_cv_resolver_none = yes ; then
27201 ol_cv_lib_resolver=yes
27205 if test $ol_cv_lib_resolver = no ; then
27206 echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
27207 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
27208 if test "${ol_cv_resolver_resolv+set}" = set; then
27209 echo $ECHO_N "(cached) $ECHO_C" >&6
27212 ol_RESOLVER_LIB=-lresolv
27214 LIBS="$ol_RESOLVER_LIB $LIBS"
27216 cat >conftest.$ac_ext <<_ACEOF
27219 cat confdefs.h >>conftest.$ac_ext
27220 cat >>conftest.$ac_ext <<_ACEOF
27221 /* end confdefs.h. */
27223 #ifdef HAVE_SYS_TYPES_H
27224 # include <sys/types.h>
27226 #include <netinet/in.h>
27227 #ifdef HAVE_ARPA_NAMESER_H
27228 # include <arpa/nameser.h>
27230 #ifdef HAVE_RESOLV_H
27231 # include <resolv.h>
27239 char *request = NULL;
27240 unsigned char reply[64*1024];
27241 unsigned char host[64*1024];
27245 /* Bind 8/9 interface */
27246 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27248 /* Bind 4 interface */
27252 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27256 /* Bind 8/9 interface */
27258 #elif defined(HFIXEDSZ)
27259 /* Bind 4 interface w/ HFIXEDSZ */
27262 /* Bind 4 interface w/o HFIXEDSZ */
27263 p += sizeof(HEADER);
27265 status = dn_expand( reply, reply+len, p, host, sizeof(host));
27271 rm -f conftest.$ac_objext conftest$ac_exeext
27272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27273 (eval $ac_link) 2>conftest.er1
27275 grep -v '^ *+' conftest.er1 >conftest.err
27277 cat conftest.err >&5
27278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27279 (exit $ac_status); } &&
27280 { ac_try='test -z "$ac_c_werror_flag"
27281 || test ! -s conftest.err'
27282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27283 (eval $ac_try) 2>&5
27285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27286 (exit $ac_status); }; } &&
27287 { ac_try='test -s conftest$ac_exeext'
27288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27289 (eval $ac_try) 2>&5
27291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27292 (exit $ac_status); }; }; then
27293 ol_cv_resolver_resolv=yes
27295 echo "$as_me: failed program was:" >&5
27296 sed 's/^/| /' conftest.$ac_ext >&5
27298 ol_cv_resolver_resolv=no
27300 rm -f conftest.err conftest.$ac_objext \
27301 conftest$ac_exeext conftest.$ac_ext
27306 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
27307 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
27309 if test $ol_cv_resolver_resolv = yes ; then
27310 ol_cv_lib_resolver=-lresolv
27314 if test $ol_cv_lib_resolver = no ; then
27315 echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
27316 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
27317 if test "${ol_cv_resolver_bind+set}" = set; then
27318 echo $ECHO_N "(cached) $ECHO_C" >&6
27321 ol_RESOLVER_LIB=-lbind
27323 LIBS="$ol_RESOLVER_LIB $LIBS"
27325 cat >conftest.$ac_ext <<_ACEOF
27328 cat confdefs.h >>conftest.$ac_ext
27329 cat >>conftest.$ac_ext <<_ACEOF
27330 /* end confdefs.h. */
27332 #ifdef HAVE_SYS_TYPES_H
27333 # include <sys/types.h>
27335 #include <netinet/in.h>
27336 #ifdef HAVE_ARPA_NAMESER_H
27337 # include <arpa/nameser.h>
27339 #ifdef HAVE_RESOLV_H
27340 # include <resolv.h>
27348 char *request = NULL;
27349 unsigned char reply[64*1024];
27350 unsigned char host[64*1024];
27354 /* Bind 8/9 interface */
27355 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27357 /* Bind 4 interface */
27361 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27365 /* Bind 8/9 interface */
27367 #elif defined(HFIXEDSZ)
27368 /* Bind 4 interface w/ HFIXEDSZ */
27371 /* Bind 4 interface w/o HFIXEDSZ */
27372 p += sizeof(HEADER);
27374 status = dn_expand( reply, reply+len, p, host, sizeof(host));
27380 rm -f conftest.$ac_objext conftest$ac_exeext
27381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27382 (eval $ac_link) 2>conftest.er1
27384 grep -v '^ *+' conftest.er1 >conftest.err
27386 cat conftest.err >&5
27387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27388 (exit $ac_status); } &&
27389 { ac_try='test -z "$ac_c_werror_flag"
27390 || test ! -s conftest.err'
27391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27392 (eval $ac_try) 2>&5
27394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27395 (exit $ac_status); }; } &&
27396 { ac_try='test -s conftest$ac_exeext'
27397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27398 (eval $ac_try) 2>&5
27400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27401 (exit $ac_status); }; }; then
27402 ol_cv_resolver_bind=yes
27404 echo "$as_me: failed program was:" >&5
27405 sed 's/^/| /' conftest.$ac_ext >&5
27407 ol_cv_resolver_bind=no
27409 rm -f conftest.err conftest.$ac_objext \
27410 conftest$ac_exeext conftest.$ac_ext
27415 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
27416 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
27418 if test $ol_cv_resolver_bind = yes ; then
27419 ol_cv_lib_resolver=-lbind
27426 if test "$ol_cv_lib_resolver" != no ; then
27428 cat >>confdefs.h <<\_ACEOF
27429 #define HAVE_RES_QUERY 1
27433 if test "$ol_enable_dnssrv" != no ; then
27437 if test "$ol_cv_lib_resolver" != yes ; then
27438 LIBS="$ol_cv_lib_resolver $LIBS"
27442 if test "$ol_enable_dnssrv" = yes -o "$ol_enable_dnssrv" = mod ; then
27443 if test "$ol_link_dnssrv" = no ; then
27444 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
27445 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
27446 { (exit 1); exit 1; }; }
27449 ol_enable_dnssrv=no
27453 for ac_func in hstrerror
27455 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27456 echo "$as_me:$LINENO: checking for $ac_func" >&5
27457 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27458 if eval "test \"\${$as_ac_var+set}\" = set"; then
27459 echo $ECHO_N "(cached) $ECHO_C" >&6
27461 cat >conftest.$ac_ext <<_ACEOF
27464 cat confdefs.h >>conftest.$ac_ext
27465 cat >>conftest.$ac_ext <<_ACEOF
27466 /* end confdefs.h. */
27467 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27468 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27469 #define $ac_func innocuous_$ac_func
27471 /* System header to define __stub macros and hopefully few prototypes,
27472 which can conflict with char $ac_func (); below.
27473 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27474 <limits.h> exists even on freestanding compilers. */
27477 # include <limits.h>
27479 # include <assert.h>
27484 /* Override any gcc2 internal prototype to avoid an error. */
27489 /* We use char because int might match the return type of a gcc2
27490 builtin and then its argument prototype would still apply. */
27492 /* The GNU C library defines this for functions which it implements
27493 to always fail with ENOSYS. Some functions are actually named
27494 something starting with __ and the normal name is an alias. */
27495 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27498 char (*f) () = $ac_func;
27507 return f != $ac_func;
27512 rm -f conftest.$ac_objext conftest$ac_exeext
27513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27514 (eval $ac_link) 2>conftest.er1
27516 grep -v '^ *+' conftest.er1 >conftest.err
27518 cat conftest.err >&5
27519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27520 (exit $ac_status); } &&
27521 { ac_try='test -z "$ac_c_werror_flag"
27522 || test ! -s conftest.err'
27523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27524 (eval $ac_try) 2>&5
27526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27527 (exit $ac_status); }; } &&
27528 { ac_try='test -s conftest$ac_exeext'
27529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27530 (eval $ac_try) 2>&5
27532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27533 (exit $ac_status); }; }; then
27534 eval "$as_ac_var=yes"
27536 echo "$as_me: failed program was:" >&5
27537 sed 's/^/| /' conftest.$ac_ext >&5
27539 eval "$as_ac_var=no"
27541 rm -f conftest.err conftest.$ac_objext \
27542 conftest$ac_exeext conftest.$ac_ext
27544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27545 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27546 if test `eval echo '${'$as_ac_var'}'` = yes; then
27547 cat >>confdefs.h <<_ACEOF
27548 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27559 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
27561 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27562 echo "$as_me:$LINENO: checking for $ac_func" >&5
27563 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27564 if eval "test \"\${$as_ac_var+set}\" = set"; then
27565 echo $ECHO_N "(cached) $ECHO_C" >&6
27567 cat >conftest.$ac_ext <<_ACEOF
27570 cat confdefs.h >>conftest.$ac_ext
27571 cat >>conftest.$ac_ext <<_ACEOF
27572 /* end confdefs.h. */
27573 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27574 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27575 #define $ac_func innocuous_$ac_func
27577 /* System header to define __stub macros and hopefully few prototypes,
27578 which can conflict with char $ac_func (); below.
27579 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27580 <limits.h> exists even on freestanding compilers. */
27583 # include <limits.h>
27585 # include <assert.h>
27590 /* Override any gcc2 internal prototype to avoid an error. */
27595 /* We use char because int might match the return type of a gcc2
27596 builtin and then its argument prototype would still apply. */
27598 /* The GNU C library defines this for functions which it implements
27599 to always fail with ENOSYS. Some functions are actually named
27600 something starting with __ and the normal name is an alias. */
27601 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27604 char (*f) () = $ac_func;
27613 return f != $ac_func;
27618 rm -f conftest.$ac_objext conftest$ac_exeext
27619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27620 (eval $ac_link) 2>conftest.er1
27622 grep -v '^ *+' conftest.er1 >conftest.err
27624 cat conftest.err >&5
27625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27626 (exit $ac_status); } &&
27627 { ac_try='test -z "$ac_c_werror_flag"
27628 || test ! -s conftest.err'
27629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27630 (eval $ac_try) 2>&5
27632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27633 (exit $ac_status); }; } &&
27634 { ac_try='test -s conftest$ac_exeext'
27635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27636 (eval $ac_try) 2>&5
27638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27639 (exit $ac_status); }; }; then
27640 eval "$as_ac_var=yes"
27642 echo "$as_me: failed program was:" >&5
27643 sed 's/^/| /' conftest.$ac_ext >&5
27645 eval "$as_ac_var=no"
27647 rm -f conftest.err conftest.$ac_objext \
27648 conftest$ac_exeext conftest.$ac_ext
27650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27651 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27652 if test `eval echo '${'$as_ac_var'}'` = yes; then
27653 cat >>confdefs.h <<_ACEOF
27654 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27662 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
27663 if test $ol_enable_ipv6 = yes ; then
27664 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
27665 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
27666 { (exit 1); exit 1; }; }
27668 elif test $ol_enable_ipv6 != no ; then
27669 echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
27670 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
27671 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
27672 echo $ECHO_N "(cached) $ECHO_C" >&6
27675 cat >conftest.$ac_ext <<_ACEOF
27678 cat confdefs.h >>conftest.$ac_ext
27679 cat >>conftest.$ac_ext <<_ACEOF
27680 /* end confdefs.h. */
27682 # include <netinet/in.h>
27683 # ifdef INET6_ADDRSTRLEN
27684 __has_inet6_addrstrlen__;
27688 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27689 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
27690 ol_cv_inet6_addrstrlen=yes
27692 ol_cv_inet6_addrstrlen=no
27697 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
27698 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
27701 echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
27702 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
27703 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
27704 echo $ECHO_N "(cached) $ECHO_C" >&6
27707 cat >conftest.$ac_ext <<_ACEOF
27710 cat confdefs.h >>conftest.$ac_ext
27711 cat >>conftest.$ac_ext <<_ACEOF
27712 /* end confdefs.h. */
27714 #include <sys/types.h>
27715 #include <sys/socket.h>
27721 struct sockaddr_storage ss;
27727 rm -f conftest.$ac_objext
27728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27729 (eval $ac_compile) 2>conftest.er1
27731 grep -v '^ *+' conftest.er1 >conftest.err
27733 cat conftest.err >&5
27734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27735 (exit $ac_status); } &&
27736 { ac_try='test -z "$ac_c_werror_flag"
27737 || test ! -s conftest.err'
27738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27739 (eval $ac_try) 2>&5
27741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27742 (exit $ac_status); }; } &&
27743 { ac_try='test -s conftest.$ac_objext'
27744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27745 (eval $ac_try) 2>&5
27747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27748 (exit $ac_status); }; }; then
27749 ol_cv_struct_sockaddr_storage=yes
27751 echo "$as_me: failed program was:" >&5
27752 sed 's/^/| /' conftest.$ac_ext >&5
27754 ol_cv_struct_sockaddr_storage=no
27756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27758 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
27759 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
27761 if test $ol_cv_inet6_addrstrlen = yes \
27762 -a $ol_cv_struct_sockaddr_storage = yes ; then
27764 elif test $ol_enable_ipv6 = yes \
27765 -a $ol_cv_inet6_addrstrlen = no ; then
27766 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
27767 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
27768 { (exit 1); exit 1; }; }
27769 elif test $ol_enable_ipv6 = yes \
27770 -a $ol_cv_struct_sockaddr_storage = no ; then
27771 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
27772 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
27773 { (exit 1); exit 1; }; }
27777 if test $ol_enable_local != no ; then
27779 for ac_header in sys/un.h
27781 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27783 echo "$as_me:$LINENO: checking for $ac_header" >&5
27784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27786 echo $ECHO_N "(cached) $ECHO_C" >&6
27788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27789 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27791 # Is the header compilable?
27792 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27793 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27794 cat >conftest.$ac_ext <<_ACEOF
27797 cat confdefs.h >>conftest.$ac_ext
27798 cat >>conftest.$ac_ext <<_ACEOF
27799 /* end confdefs.h. */
27800 $ac_includes_default
27801 #include <$ac_header>
27803 rm -f conftest.$ac_objext
27804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27805 (eval $ac_compile) 2>conftest.er1
27807 grep -v '^ *+' conftest.er1 >conftest.err
27809 cat conftest.err >&5
27810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27811 (exit $ac_status); } &&
27812 { ac_try='test -z "$ac_c_werror_flag"
27813 || test ! -s conftest.err'
27814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27815 (eval $ac_try) 2>&5
27817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27818 (exit $ac_status); }; } &&
27819 { ac_try='test -s conftest.$ac_objext'
27820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27821 (eval $ac_try) 2>&5
27823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27824 (exit $ac_status); }; }; then
27825 ac_header_compiler=yes
27827 echo "$as_me: failed program was:" >&5
27828 sed 's/^/| /' conftest.$ac_ext >&5
27830 ac_header_compiler=no
27832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27833 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27834 echo "${ECHO_T}$ac_header_compiler" >&6
27836 # Is the header present?
27837 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27838 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27839 cat >conftest.$ac_ext <<_ACEOF
27842 cat confdefs.h >>conftest.$ac_ext
27843 cat >>conftest.$ac_ext <<_ACEOF
27844 /* end confdefs.h. */
27845 #include <$ac_header>
27847 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27848 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27850 grep -v '^ *+' conftest.er1 >conftest.err
27852 cat conftest.err >&5
27853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27854 (exit $ac_status); } >/dev/null; then
27855 if test -s conftest.err; then
27856 ac_cpp_err=$ac_c_preproc_warn_flag
27857 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27864 if test -z "$ac_cpp_err"; then
27865 ac_header_preproc=yes
27867 echo "$as_me: failed program was:" >&5
27868 sed 's/^/| /' conftest.$ac_ext >&5
27870 ac_header_preproc=no
27872 rm -f conftest.err conftest.$ac_ext
27873 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27874 echo "${ECHO_T}$ac_header_preproc" >&6
27876 # So? What about this header?
27877 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27879 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27880 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27881 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27882 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27883 ac_header_preproc=yes
27886 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27887 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27888 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27889 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27890 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27891 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27892 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27893 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27895 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27896 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27897 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27900 ## ------------------------------------------ ##
27901 ## Report this to the AC_PACKAGE_NAME lists. ##
27902 ## ------------------------------------------ ##
27905 sed "s/^/$as_me: WARNING: /" >&2
27908 echo "$as_me:$LINENO: checking for $ac_header" >&5
27909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27911 echo $ECHO_N "(cached) $ECHO_C" >&6
27913 eval "$as_ac_Header=\$ac_header_preproc"
27915 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27916 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27919 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27920 cat >>confdefs.h <<_ACEOF
27921 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27929 if test $ol_enable_local = auto ; then
27930 ol_enable_local=$ac_cv_header_sys_un_h
27931 elif test $ac_cv_header_sys_un_h = no ; then
27932 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
27933 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
27934 { (exit 1); exit 1; }; }
27942 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
27943 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
27944 -o $ol_with_kerberos = k425 ; then
27947 for ac_header in krb5.h
27949 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27950 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27951 echo "$as_me:$LINENO: checking for $ac_header" >&5
27952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27954 echo $ECHO_N "(cached) $ECHO_C" >&6
27956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27957 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27959 # Is the header compilable?
27960 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27961 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27962 cat >conftest.$ac_ext <<_ACEOF
27965 cat confdefs.h >>conftest.$ac_ext
27966 cat >>conftest.$ac_ext <<_ACEOF
27967 /* end confdefs.h. */
27968 $ac_includes_default
27969 #include <$ac_header>
27971 rm -f conftest.$ac_objext
27972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27973 (eval $ac_compile) 2>conftest.er1
27975 grep -v '^ *+' conftest.er1 >conftest.err
27977 cat conftest.err >&5
27978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27979 (exit $ac_status); } &&
27980 { ac_try='test -z "$ac_c_werror_flag"
27981 || test ! -s conftest.err'
27982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27983 (eval $ac_try) 2>&5
27985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27986 (exit $ac_status); }; } &&
27987 { ac_try='test -s conftest.$ac_objext'
27988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27989 (eval $ac_try) 2>&5
27991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27992 (exit $ac_status); }; }; then
27993 ac_header_compiler=yes
27995 echo "$as_me: failed program was:" >&5
27996 sed 's/^/| /' conftest.$ac_ext >&5
27998 ac_header_compiler=no
28000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28001 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28002 echo "${ECHO_T}$ac_header_compiler" >&6
28004 # Is the header present?
28005 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28006 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28007 cat >conftest.$ac_ext <<_ACEOF
28010 cat confdefs.h >>conftest.$ac_ext
28011 cat >>conftest.$ac_ext <<_ACEOF
28012 /* end confdefs.h. */
28013 #include <$ac_header>
28015 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28016 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28018 grep -v '^ *+' conftest.er1 >conftest.err
28020 cat conftest.err >&5
28021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28022 (exit $ac_status); } >/dev/null; then
28023 if test -s conftest.err; then
28024 ac_cpp_err=$ac_c_preproc_warn_flag
28025 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28032 if test -z "$ac_cpp_err"; then
28033 ac_header_preproc=yes
28035 echo "$as_me: failed program was:" >&5
28036 sed 's/^/| /' conftest.$ac_ext >&5
28038 ac_header_preproc=no
28040 rm -f conftest.err conftest.$ac_ext
28041 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28042 echo "${ECHO_T}$ac_header_preproc" >&6
28044 # So? What about this header?
28045 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28047 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28048 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28050 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28051 ac_header_preproc=yes
28054 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28055 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28056 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28057 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28058 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28059 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28060 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28061 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28063 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28064 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28065 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28068 ## ------------------------------------------ ##
28069 ## Report this to the AC_PACKAGE_NAME lists. ##
28070 ## ------------------------------------------ ##
28073 sed "s/^/$as_me: WARNING: /" >&2
28076 echo "$as_me:$LINENO: checking for $ac_header" >&5
28077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28079 echo $ECHO_N "(cached) $ECHO_C" >&6
28081 eval "$as_ac_Header=\$ac_header_preproc"
28083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28084 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28087 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28088 cat >>confdefs.h <<_ACEOF
28089 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28097 if test $ac_cv_header_krb5_h = yes ; then
28099 for ac_header in heim_err.h
28101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28103 echo "$as_me:$LINENO: checking for $ac_header" >&5
28104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28106 echo $ECHO_N "(cached) $ECHO_C" >&6
28108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28109 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28111 # Is the header compilable?
28112 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28113 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28114 cat >conftest.$ac_ext <<_ACEOF
28117 cat confdefs.h >>conftest.$ac_ext
28118 cat >>conftest.$ac_ext <<_ACEOF
28119 /* end confdefs.h. */
28120 $ac_includes_default
28121 #include <$ac_header>
28123 rm -f conftest.$ac_objext
28124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28125 (eval $ac_compile) 2>conftest.er1
28127 grep -v '^ *+' conftest.er1 >conftest.err
28129 cat conftest.err >&5
28130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28131 (exit $ac_status); } &&
28132 { ac_try='test -z "$ac_c_werror_flag"
28133 || test ! -s conftest.err'
28134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28135 (eval $ac_try) 2>&5
28137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28138 (exit $ac_status); }; } &&
28139 { ac_try='test -s conftest.$ac_objext'
28140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28141 (eval $ac_try) 2>&5
28143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28144 (exit $ac_status); }; }; then
28145 ac_header_compiler=yes
28147 echo "$as_me: failed program was:" >&5
28148 sed 's/^/| /' conftest.$ac_ext >&5
28150 ac_header_compiler=no
28152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28153 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28154 echo "${ECHO_T}$ac_header_compiler" >&6
28156 # Is the header present?
28157 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28158 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28159 cat >conftest.$ac_ext <<_ACEOF
28162 cat confdefs.h >>conftest.$ac_ext
28163 cat >>conftest.$ac_ext <<_ACEOF
28164 /* end confdefs.h. */
28165 #include <$ac_header>
28167 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28168 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28170 grep -v '^ *+' conftest.er1 >conftest.err
28172 cat conftest.err >&5
28173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28174 (exit $ac_status); } >/dev/null; then
28175 if test -s conftest.err; then
28176 ac_cpp_err=$ac_c_preproc_warn_flag
28177 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28184 if test -z "$ac_cpp_err"; then
28185 ac_header_preproc=yes
28187 echo "$as_me: failed program was:" >&5
28188 sed 's/^/| /' conftest.$ac_ext >&5
28190 ac_header_preproc=no
28192 rm -f conftest.err conftest.$ac_ext
28193 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28194 echo "${ECHO_T}$ac_header_preproc" >&6
28196 # So? What about this header?
28197 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28199 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28200 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28201 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28202 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28203 ac_header_preproc=yes
28206 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28207 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28208 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28209 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28210 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28211 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28212 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28213 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28215 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28216 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28217 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28220 ## ------------------------------------------ ##
28221 ## Report this to the AC_PACKAGE_NAME lists. ##
28222 ## ------------------------------------------ ##
28225 sed "s/^/$as_me: WARNING: /" >&2
28228 echo "$as_me:$LINENO: checking for $ac_header" >&5
28229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28231 echo $ECHO_N "(cached) $ECHO_C" >&6
28233 eval "$as_ac_Header=\$ac_header_preproc"
28235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28236 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28240 cat >>confdefs.h <<_ACEOF
28241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28248 if test $ac_cv_header_heim_err_h = yes ; then
28254 if test $krb5_impl = mit; then
28255 echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
28256 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
28257 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
28258 echo $ECHO_N "(cached) $ECHO_C" >&6
28260 ac_check_lib_save_LIBS=$LIBS
28261 LIBS="-lk5crypto $LIBS"
28262 cat >conftest.$ac_ext <<_ACEOF
28265 cat confdefs.h >>conftest.$ac_ext
28266 cat >>conftest.$ac_ext <<_ACEOF
28267 /* end confdefs.h. */
28278 rm -f conftest.$ac_objext conftest$ac_exeext
28279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28280 (eval $ac_link) 2>conftest.er1
28282 grep -v '^ *+' conftest.er1 >conftest.err
28284 cat conftest.err >&5
28285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28286 (exit $ac_status); } &&
28287 { ac_try='test -z "$ac_c_werror_flag"
28288 || test ! -s conftest.err'
28289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28290 (eval $ac_try) 2>&5
28292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28293 (exit $ac_status); }; } &&
28294 { ac_try='test -s conftest$ac_exeext'
28295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28296 (eval $ac_try) 2>&5
28298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28299 (exit $ac_status); }; }; then
28300 ac_cv_lib_k5crypto_main=yes
28302 echo "$as_me: failed program was:" >&5
28303 sed 's/^/| /' conftest.$ac_ext >&5
28305 ac_cv_lib_k5crypto_main=no
28307 rm -f conftest.err conftest.$ac_objext \
28308 conftest$ac_exeext conftest.$ac_ext
28309 LIBS=$ac_check_lib_save_LIBS
28311 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
28312 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
28313 if test $ac_cv_lib_k5crypto_main = yes; then
28314 krb5crypto=k5crypto
28320 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
28321 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
28322 if test "${ac_cv_lib_krb5_main+set}" = set; then
28323 echo $ECHO_N "(cached) $ECHO_C" >&6
28325 ac_check_lib_save_LIBS=$LIBS
28326 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
28327 cat >conftest.$ac_ext <<_ACEOF
28330 cat confdefs.h >>conftest.$ac_ext
28331 cat >>conftest.$ac_ext <<_ACEOF
28332 /* end confdefs.h. */
28343 rm -f conftest.$ac_objext conftest$ac_exeext
28344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28345 (eval $ac_link) 2>conftest.er1
28347 grep -v '^ *+' conftest.er1 >conftest.err
28349 cat conftest.err >&5
28350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28351 (exit $ac_status); } &&
28352 { ac_try='test -z "$ac_c_werror_flag"
28353 || test ! -s conftest.err'
28354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28355 (eval $ac_try) 2>&5
28357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28358 (exit $ac_status); }; } &&
28359 { ac_try='test -s conftest$ac_exeext'
28360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28361 (eval $ac_try) 2>&5
28363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28364 (exit $ac_status); }; }; then
28365 ac_cv_lib_krb5_main=yes
28367 echo "$as_me: failed program was:" >&5
28368 sed 's/^/| /' conftest.$ac_ext >&5
28370 ac_cv_lib_krb5_main=no
28372 rm -f conftest.err conftest.$ac_objext \
28373 conftest$ac_exeext conftest.$ac_ext
28374 LIBS=$ac_check_lib_save_LIBS
28376 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
28377 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
28378 if test $ac_cv_lib_krb5_main = yes; then
28380 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
28386 elif test $krb5_impl = heimdal; then
28387 echo "$as_me:$LINENO: checking for main in -ldes" >&5
28388 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
28389 if test "${ac_cv_lib_des_main+set}" = set; then
28390 echo $ECHO_N "(cached) $ECHO_C" >&6
28392 ac_check_lib_save_LIBS=$LIBS
28394 cat >conftest.$ac_ext <<_ACEOF
28397 cat confdefs.h >>conftest.$ac_ext
28398 cat >>conftest.$ac_ext <<_ACEOF
28399 /* end confdefs.h. */
28410 rm -f conftest.$ac_objext conftest$ac_exeext
28411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28412 (eval $ac_link) 2>conftest.er1
28414 grep -v '^ *+' conftest.er1 >conftest.err
28416 cat conftest.err >&5
28417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28418 (exit $ac_status); } &&
28419 { ac_try='test -z "$ac_c_werror_flag"
28420 || test ! -s conftest.err'
28421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28422 (eval $ac_try) 2>&5
28424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28425 (exit $ac_status); }; } &&
28426 { ac_try='test -s conftest$ac_exeext'
28427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28428 (eval $ac_try) 2>&5
28430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28431 (exit $ac_status); }; }; then
28432 ac_cv_lib_des_main=yes
28434 echo "$as_me: failed program was:" >&5
28435 sed 's/^/| /' conftest.$ac_ext >&5
28437 ac_cv_lib_des_main=no
28439 rm -f conftest.err conftest.$ac_objext \
28440 conftest$ac_exeext conftest.$ac_ext
28441 LIBS=$ac_check_lib_save_LIBS
28443 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
28444 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
28445 if test $ac_cv_lib_des_main = yes; then
28452 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
28453 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
28454 if test "${ac_cv_lib_krb5_main+set}" = set; then
28455 echo $ECHO_N "(cached) $ECHO_C" >&6
28457 ac_check_lib_save_LIBS=$LIBS
28458 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
28459 cat >conftest.$ac_ext <<_ACEOF
28462 cat confdefs.h >>conftest.$ac_ext
28463 cat >>conftest.$ac_ext <<_ACEOF
28464 /* end confdefs.h. */
28475 rm -f conftest.$ac_objext conftest$ac_exeext
28476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28477 (eval $ac_link) 2>conftest.er1
28479 grep -v '^ *+' conftest.er1 >conftest.err
28481 cat conftest.err >&5
28482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28483 (exit $ac_status); } &&
28484 { ac_try='test -z "$ac_c_werror_flag"
28485 || test ! -s conftest.err'
28486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28487 (eval $ac_try) 2>&5
28489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28490 (exit $ac_status); }; } &&
28491 { ac_try='test -s conftest$ac_exeext'
28492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28493 (eval $ac_try) 2>&5
28495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28496 (exit $ac_status); }; }; then
28497 ac_cv_lib_krb5_main=yes
28499 echo "$as_me: failed program was:" >&5
28500 sed 's/^/| /' conftest.$ac_ext >&5
28502 ac_cv_lib_krb5_main=no
28504 rm -f conftest.err conftest.$ac_objext \
28505 conftest$ac_exeext conftest.$ac_ext
28506 LIBS=$ac_check_lib_save_LIBS
28508 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
28509 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
28510 if test $ac_cv_lib_krb5_main = yes; then
28512 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
28519 cat >>confdefs.h <<\_ACEOF
28520 #define HAVE_HEIMDAL_KERBEROS 1
28526 { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
28527 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
28530 if test $have_krb5 = yes ; then
28534 cat >>confdefs.h <<\_ACEOF
28535 #define HAVE_KRB5 1
28539 if test $ol_with_kerberos = k5only ; then
28540 ol_with_kerberos=found
28543 elif test $ol_with_kerberos != auto ; then
28544 { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
28545 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
28546 { (exit 1); exit 1; }; }
28552 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
28553 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
28557 for ac_header in kerberosIV/krb.h kerberosIV/des.h
28559 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28560 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28561 echo "$as_me:$LINENO: checking for $ac_header" >&5
28562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28564 echo $ECHO_N "(cached) $ECHO_C" >&6
28566 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28567 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28569 # Is the header compilable?
28570 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28571 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28572 cat >conftest.$ac_ext <<_ACEOF
28575 cat confdefs.h >>conftest.$ac_ext
28576 cat >>conftest.$ac_ext <<_ACEOF
28577 /* end confdefs.h. */
28578 $ac_includes_default
28579 #include <$ac_header>
28581 rm -f conftest.$ac_objext
28582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28583 (eval $ac_compile) 2>conftest.er1
28585 grep -v '^ *+' conftest.er1 >conftest.err
28587 cat conftest.err >&5
28588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28589 (exit $ac_status); } &&
28590 { ac_try='test -z "$ac_c_werror_flag"
28591 || test ! -s conftest.err'
28592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28593 (eval $ac_try) 2>&5
28595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28596 (exit $ac_status); }; } &&
28597 { ac_try='test -s conftest.$ac_objext'
28598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28599 (eval $ac_try) 2>&5
28601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28602 (exit $ac_status); }; }; then
28603 ac_header_compiler=yes
28605 echo "$as_me: failed program was:" >&5
28606 sed 's/^/| /' conftest.$ac_ext >&5
28608 ac_header_compiler=no
28610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28611 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28612 echo "${ECHO_T}$ac_header_compiler" >&6
28614 # Is the header present?
28615 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28616 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28617 cat >conftest.$ac_ext <<_ACEOF
28620 cat confdefs.h >>conftest.$ac_ext
28621 cat >>conftest.$ac_ext <<_ACEOF
28622 /* end confdefs.h. */
28623 #include <$ac_header>
28625 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28626 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28628 grep -v '^ *+' conftest.er1 >conftest.err
28630 cat conftest.err >&5
28631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28632 (exit $ac_status); } >/dev/null; then
28633 if test -s conftest.err; then
28634 ac_cpp_err=$ac_c_preproc_warn_flag
28635 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28642 if test -z "$ac_cpp_err"; then
28643 ac_header_preproc=yes
28645 echo "$as_me: failed program was:" >&5
28646 sed 's/^/| /' conftest.$ac_ext >&5
28648 ac_header_preproc=no
28650 rm -f conftest.err conftest.$ac_ext
28651 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28652 echo "${ECHO_T}$ac_header_preproc" >&6
28654 # So? What about this header?
28655 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28657 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28658 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28660 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28661 ac_header_preproc=yes
28664 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28665 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28666 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28667 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28668 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28669 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28670 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28671 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28672 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28673 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28674 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28675 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28678 ## ------------------------------------------ ##
28679 ## Report this to the AC_PACKAGE_NAME lists. ##
28680 ## ------------------------------------------ ##
28683 sed "s/^/$as_me: WARNING: /" >&2
28686 echo "$as_me:$LINENO: checking for $ac_header" >&5
28687 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28688 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28689 echo $ECHO_N "(cached) $ECHO_C" >&6
28691 eval "$as_ac_Header=\$ac_header_preproc"
28693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28694 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28697 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28698 cat >>confdefs.h <<_ACEOF
28699 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28707 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
28708 if test $krb5_impl = mit; then
28709 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
28710 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
28711 if test "${ac_cv_lib_krb4_main+set}" = set; then
28712 echo $ECHO_N "(cached) $ECHO_C" >&6
28714 ac_check_lib_save_LIBS=$LIBS
28715 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
28716 cat >conftest.$ac_ext <<_ACEOF
28719 cat confdefs.h >>conftest.$ac_ext
28720 cat >>conftest.$ac_ext <<_ACEOF
28721 /* end confdefs.h. */
28732 rm -f conftest.$ac_objext conftest$ac_exeext
28733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28734 (eval $ac_link) 2>conftest.er1
28736 grep -v '^ *+' conftest.er1 >conftest.err
28738 cat conftest.err >&5
28739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28740 (exit $ac_status); } &&
28741 { ac_try='test -z "$ac_c_werror_flag"
28742 || test ! -s conftest.err'
28743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28744 (eval $ac_try) 2>&5
28746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28747 (exit $ac_status); }; } &&
28748 { ac_try='test -s conftest$ac_exeext'
28749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28750 (eval $ac_try) 2>&5
28752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28753 (exit $ac_status); }; }; then
28754 ac_cv_lib_krb4_main=yes
28756 echo "$as_me: failed program was:" >&5
28757 sed 's/^/| /' conftest.$ac_ext >&5
28759 ac_cv_lib_krb4_main=no
28761 rm -f conftest.err conftest.$ac_objext \
28762 conftest$ac_exeext conftest.$ac_ext
28763 LIBS=$ac_check_lib_save_LIBS
28765 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
28766 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
28767 if test $ac_cv_lib_krb4_main = yes; then
28769 KRB4_LIBS="-lkrb4 -ldes425"
28775 elif test $krb5_impl = heimdal; then
28776 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
28777 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
28778 if test "${ac_cv_lib_krb4_main+set}" = set; then
28779 echo $ECHO_N "(cached) $ECHO_C" >&6
28781 ac_check_lib_save_LIBS=$LIBS
28782 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
28783 cat >conftest.$ac_ext <<_ACEOF
28786 cat confdefs.h >>conftest.$ac_ext
28787 cat >>conftest.$ac_ext <<_ACEOF
28788 /* end confdefs.h. */
28799 rm -f conftest.$ac_objext conftest$ac_exeext
28800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28801 (eval $ac_link) 2>conftest.er1
28803 grep -v '^ *+' conftest.er1 >conftest.err
28805 cat conftest.err >&5
28806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28807 (exit $ac_status); } &&
28808 { ac_try='test -z "$ac_c_werror_flag"
28809 || test ! -s conftest.err'
28810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28811 (eval $ac_try) 2>&5
28813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28814 (exit $ac_status); }; } &&
28815 { ac_try='test -s conftest$ac_exeext'
28816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28817 (eval $ac_try) 2>&5
28819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28820 (exit $ac_status); }; }; then
28821 ac_cv_lib_krb4_main=yes
28823 echo "$as_me: failed program was:" >&5
28824 sed 's/^/| /' conftest.$ac_ext >&5
28826 ac_cv_lib_krb4_main=no
28828 rm -f conftest.err conftest.$ac_objext \
28829 conftest$ac_exeext conftest.$ac_ext
28830 LIBS=$ac_check_lib_save_LIBS
28832 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
28833 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
28834 if test $ac_cv_lib_krb4_main = yes; then
28844 { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
28845 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
28848 if test $have_k425 = yes ; then
28849 ol_with_kerberos=found
28853 cat >>confdefs.h <<\_ACEOF
28854 #define HAVE_KRB425 1
28858 cat >>confdefs.h <<\_ACEOF
28859 #define HAVE_KRB4 1
28863 echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
28864 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
28865 if test "${ol_cv_var_des_debug+set}" = set; then
28866 echo $ECHO_N "(cached) $ECHO_C" >&6
28870 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
28871 cat >conftest.$ac_ext <<_ACEOF
28874 cat confdefs.h >>conftest.$ac_ext
28875 cat >>conftest.$ac_ext <<_ACEOF
28876 /* end confdefs.h. */
28878 #include <kerberosIV/krb.h>
28879 #include <kerberosIV/des.h>
28880 extern int des_debug;
28892 rm -f conftest.$ac_objext conftest$ac_exeext
28893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28894 (eval $ac_link) 2>conftest.er1
28896 grep -v '^ *+' conftest.er1 >conftest.err
28898 cat conftest.err >&5
28899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28900 (exit $ac_status); } &&
28901 { ac_try='test -z "$ac_c_werror_flag"
28902 || test ! -s conftest.err'
28903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28904 (eval $ac_try) 2>&5
28906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28907 (exit $ac_status); }; } &&
28908 { ac_try='test -s conftest$ac_exeext'
28909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28910 (eval $ac_try) 2>&5
28912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28913 (exit $ac_status); }; }; then
28914 ol_cv_var_des_debug=yes
28916 echo "$as_me: failed program was:" >&5
28917 sed 's/^/| /' conftest.$ac_ext >&5
28919 ol_cv_var_des_debug=no
28921 rm -f conftest.err conftest.$ac_objext \
28922 conftest$ac_exeext conftest.$ac_ext
28926 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
28927 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
28929 if test $ol_cv_var_des_debug = yes ; then
28931 cat >>confdefs.h <<\_ACEOF
28932 #define HAVE_DES_DEBUG 1
28942 if test $ol_link_krb5 = yes ; then
28943 ol_with_kerberos=found
28946 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
28947 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
28952 for ac_header in krb.h des.h krb-archaeology.h
28954 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28955 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28956 echo "$as_me:$LINENO: checking for $ac_header" >&5
28957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28958 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28959 echo $ECHO_N "(cached) $ECHO_C" >&6
28961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28962 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28964 # Is the header compilable?
28965 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28966 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28967 cat >conftest.$ac_ext <<_ACEOF
28970 cat confdefs.h >>conftest.$ac_ext
28971 cat >>conftest.$ac_ext <<_ACEOF
28972 /* end confdefs.h. */
28973 $ac_includes_default
28974 #include <$ac_header>
28976 rm -f conftest.$ac_objext
28977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28978 (eval $ac_compile) 2>conftest.er1
28980 grep -v '^ *+' conftest.er1 >conftest.err
28982 cat conftest.err >&5
28983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28984 (exit $ac_status); } &&
28985 { ac_try='test -z "$ac_c_werror_flag"
28986 || test ! -s conftest.err'
28987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28988 (eval $ac_try) 2>&5
28990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28991 (exit $ac_status); }; } &&
28992 { ac_try='test -s conftest.$ac_objext'
28993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28994 (eval $ac_try) 2>&5
28996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28997 (exit $ac_status); }; }; then
28998 ac_header_compiler=yes
29000 echo "$as_me: failed program was:" >&5
29001 sed 's/^/| /' conftest.$ac_ext >&5
29003 ac_header_compiler=no
29005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29006 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29007 echo "${ECHO_T}$ac_header_compiler" >&6
29009 # Is the header present?
29010 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29011 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29012 cat >conftest.$ac_ext <<_ACEOF
29015 cat confdefs.h >>conftest.$ac_ext
29016 cat >>conftest.$ac_ext <<_ACEOF
29017 /* end confdefs.h. */
29018 #include <$ac_header>
29020 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29021 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29023 grep -v '^ *+' conftest.er1 >conftest.err
29025 cat conftest.err >&5
29026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29027 (exit $ac_status); } >/dev/null; then
29028 if test -s conftest.err; then
29029 ac_cpp_err=$ac_c_preproc_warn_flag
29030 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29037 if test -z "$ac_cpp_err"; then
29038 ac_header_preproc=yes
29040 echo "$as_me: failed program was:" >&5
29041 sed 's/^/| /' conftest.$ac_ext >&5
29043 ac_header_preproc=no
29045 rm -f conftest.err conftest.$ac_ext
29046 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29047 echo "${ECHO_T}$ac_header_preproc" >&6
29049 # So? What about this header?
29050 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29052 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29053 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29054 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29055 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29056 ac_header_preproc=yes
29059 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29060 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29061 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29062 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29063 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29064 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29065 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29066 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29068 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29069 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29070 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29073 ## ------------------------------------------ ##
29074 ## Report this to the AC_PACKAGE_NAME lists. ##
29075 ## ------------------------------------------ ##
29078 sed "s/^/$as_me: WARNING: /" >&2
29081 echo "$as_me:$LINENO: checking for $ac_header" >&5
29082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29084 echo $ECHO_N "(cached) $ECHO_C" >&6
29086 eval "$as_ac_Header=\$ac_header_preproc"
29088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29089 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29092 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29093 cat >>confdefs.h <<_ACEOF
29094 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29102 if test $ac_cv_header_krb_h = yes ; then
29103 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
29104 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
29105 if test "${ac_cv_lib_krb_main+set}" = set; then
29106 echo $ECHO_N "(cached) $ECHO_C" >&6
29108 ac_check_lib_save_LIBS=$LIBS
29109 LIBS="-lkrb -ldes $LIBS"
29110 cat >conftest.$ac_ext <<_ACEOF
29113 cat confdefs.h >>conftest.$ac_ext
29114 cat >>conftest.$ac_ext <<_ACEOF
29115 /* end confdefs.h. */
29126 rm -f conftest.$ac_objext conftest$ac_exeext
29127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29128 (eval $ac_link) 2>conftest.er1
29130 grep -v '^ *+' conftest.er1 >conftest.err
29132 cat conftest.err >&5
29133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29134 (exit $ac_status); } &&
29135 { ac_try='test -z "$ac_c_werror_flag"
29136 || test ! -s conftest.err'
29137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29138 (eval $ac_try) 2>&5
29140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29141 (exit $ac_status); }; } &&
29142 { ac_try='test -s conftest$ac_exeext'
29143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29144 (eval $ac_try) 2>&5
29146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29147 (exit $ac_status); }; }; then
29148 ac_cv_lib_krb_main=yes
29150 echo "$as_me: failed program was:" >&5
29151 sed 's/^/| /' conftest.$ac_ext >&5
29153 ac_cv_lib_krb_main=no
29155 rm -f conftest.err conftest.$ac_objext \
29156 conftest$ac_exeext conftest.$ac_ext
29157 LIBS=$ac_check_lib_save_LIBS
29159 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
29160 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
29161 if test $ac_cv_lib_krb_main = yes; then
29168 if test $have_k4 = yes ; then
29169 ol_with_kerberos=found
29173 cat >>confdefs.h <<\_ACEOF
29174 #define HAVE_KRB4 1
29178 KRB4_LIBS="-lkrb -ldes"
29180 if test $ac_cv_header_krb_archaeology_h = yes ; then
29182 cat >>confdefs.h <<\_ACEOF
29183 #define HAVE_KTH_KERBEROS 1
29191 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
29194 elif test $ol_enable_kbind = yes ; then
29195 { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
29196 echo "$as_me: error: Kerberos IV detection failed" >&2;}
29197 { (exit 1); exit 1; }; }
29200 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
29202 cat >>confdefs.h <<\_ACEOF
29203 #define HAVE_KERBEROS 1
29207 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
29208 { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
29209 echo "$as_me: error: Kerberos detection failed" >&2;}
29210 { (exit 1); exit 1; }; }
29215 if test $ol_with_tls != no ; then
29218 for ac_header in openssl/ssl.h ssl.h
29220 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29221 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29222 echo "$as_me:$LINENO: checking for $ac_header" >&5
29223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29224 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29225 echo $ECHO_N "(cached) $ECHO_C" >&6
29227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29228 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29230 # Is the header compilable?
29231 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29232 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29233 cat >conftest.$ac_ext <<_ACEOF
29236 cat confdefs.h >>conftest.$ac_ext
29237 cat >>conftest.$ac_ext <<_ACEOF
29238 /* end confdefs.h. */
29239 $ac_includes_default
29240 #include <$ac_header>
29242 rm -f conftest.$ac_objext
29243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29244 (eval $ac_compile) 2>conftest.er1
29246 grep -v '^ *+' conftest.er1 >conftest.err
29248 cat conftest.err >&5
29249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29250 (exit $ac_status); } &&
29251 { ac_try='test -z "$ac_c_werror_flag"
29252 || test ! -s conftest.err'
29253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29254 (eval $ac_try) 2>&5
29256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29257 (exit $ac_status); }; } &&
29258 { ac_try='test -s conftest.$ac_objext'
29259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29260 (eval $ac_try) 2>&5
29262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29263 (exit $ac_status); }; }; then
29264 ac_header_compiler=yes
29266 echo "$as_me: failed program was:" >&5
29267 sed 's/^/| /' conftest.$ac_ext >&5
29269 ac_header_compiler=no
29271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29272 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29273 echo "${ECHO_T}$ac_header_compiler" >&6
29275 # Is the header present?
29276 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29277 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29278 cat >conftest.$ac_ext <<_ACEOF
29281 cat confdefs.h >>conftest.$ac_ext
29282 cat >>conftest.$ac_ext <<_ACEOF
29283 /* end confdefs.h. */
29284 #include <$ac_header>
29286 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29287 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29289 grep -v '^ *+' conftest.er1 >conftest.err
29291 cat conftest.err >&5
29292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29293 (exit $ac_status); } >/dev/null; then
29294 if test -s conftest.err; then
29295 ac_cpp_err=$ac_c_preproc_warn_flag
29296 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29303 if test -z "$ac_cpp_err"; then
29304 ac_header_preproc=yes
29306 echo "$as_me: failed program was:" >&5
29307 sed 's/^/| /' conftest.$ac_ext >&5
29309 ac_header_preproc=no
29311 rm -f conftest.err conftest.$ac_ext
29312 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29313 echo "${ECHO_T}$ac_header_preproc" >&6
29315 # So? What about this header?
29316 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29318 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29319 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29320 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29321 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29322 ac_header_preproc=yes
29325 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29326 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29327 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29328 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29329 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29330 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29331 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29332 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29333 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29334 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29335 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29336 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29339 ## ------------------------------------------ ##
29340 ## Report this to the AC_PACKAGE_NAME lists. ##
29341 ## ------------------------------------------ ##
29344 sed "s/^/$as_me: WARNING: /" >&2
29347 echo "$as_me:$LINENO: checking for $ac_header" >&5
29348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29350 echo $ECHO_N "(cached) $ECHO_C" >&6
29352 eval "$as_ac_Header=\$ac_header_preproc"
29354 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29355 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29358 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29359 cat >>confdefs.h <<_ACEOF
29360 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29368 if test $ac_cv_header_openssl_ssl_h = yes \
29369 -o $ac_cv_header_ssl_h = yes ; then
29370 echo "$as_me:$LINENO: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
29371 echo $ECHO_N "checking for SSLeay_add_ssl_algorithms in -lssl... $ECHO_C" >&6
29372 if test "${ac_cv_lib_ssl_SSLeay_add_ssl_algorithms+set}" = set; then
29373 echo $ECHO_N "(cached) $ECHO_C" >&6
29375 ac_check_lib_save_LIBS=$LIBS
29376 LIBS="-lssl -lcrypto $LIBS"
29377 cat >conftest.$ac_ext <<_ACEOF
29380 cat confdefs.h >>conftest.$ac_ext
29381 cat >>conftest.$ac_ext <<_ACEOF
29382 /* end confdefs.h. */
29384 /* Override any gcc2 internal prototype to avoid an error. */
29388 /* We use char because int might match the return type of a gcc2
29389 builtin and then its argument prototype would still apply. */
29390 char SSLeay_add_ssl_algorithms ();
29394 SSLeay_add_ssl_algorithms ();
29399 rm -f conftest.$ac_objext conftest$ac_exeext
29400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29401 (eval $ac_link) 2>conftest.er1
29403 grep -v '^ *+' conftest.er1 >conftest.err
29405 cat conftest.err >&5
29406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29407 (exit $ac_status); } &&
29408 { ac_try='test -z "$ac_c_werror_flag"
29409 || test ! -s conftest.err'
29410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29411 (eval $ac_try) 2>&5
29413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29414 (exit $ac_status); }; } &&
29415 { ac_try='test -s conftest$ac_exeext'
29416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29417 (eval $ac_try) 2>&5
29419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29420 (exit $ac_status); }; }; then
29421 ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=yes
29423 echo "$as_me: failed program was:" >&5
29424 sed 's/^/| /' conftest.$ac_ext >&5
29426 ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=no
29428 rm -f conftest.err conftest.$ac_objext \
29429 conftest$ac_exeext conftest.$ac_ext
29430 LIBS=$ac_check_lib_save_LIBS
29432 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&5
29433 echo "${ECHO_T}$ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&6
29434 if test $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms = yes; then
29442 if test $have_ssleay = no ; then
29443 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
29444 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
29445 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
29446 echo $ECHO_N "(cached) $ECHO_C" >&6
29448 ac_check_lib_save_LIBS=$LIBS
29449 LIBS="-lssl -lcrypto $LIBS"
29450 cat >conftest.$ac_ext <<_ACEOF
29453 cat confdefs.h >>conftest.$ac_ext
29454 cat >>conftest.$ac_ext <<_ACEOF
29455 /* end confdefs.h. */
29457 /* Override any gcc2 internal prototype to avoid an error. */
29461 /* We use char because int might match the return type of a gcc2
29462 builtin and then its argument prototype would still apply. */
29463 char SSL_library_init ();
29467 SSL_library_init ();
29472 rm -f conftest.$ac_objext conftest$ac_exeext
29473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29474 (eval $ac_link) 2>conftest.er1
29476 grep -v '^ *+' conftest.er1 >conftest.err
29478 cat conftest.err >&5
29479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29480 (exit $ac_status); } &&
29481 { ac_try='test -z "$ac_c_werror_flag"
29482 || test ! -s conftest.err'
29483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29484 (eval $ac_try) 2>&5
29486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29487 (exit $ac_status); }; } &&
29488 { ac_try='test -s conftest$ac_exeext'
29489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29490 (eval $ac_try) 2>&5
29492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29493 (exit $ac_status); }; }; then
29494 ac_cv_lib_ssl_SSL_library_init=yes
29496 echo "$as_me: failed program was:" >&5
29497 sed 's/^/| /' conftest.$ac_ext >&5
29499 ac_cv_lib_ssl_SSL_library_init=no
29501 rm -f conftest.err conftest.$ac_objext \
29502 conftest$ac_exeext conftest.$ac_ext
29503 LIBS=$ac_check_lib_save_LIBS
29505 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
29506 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
29507 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
29516 if test $have_ssleay = no ; then
29517 echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
29518 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
29519 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
29520 echo $ECHO_N "(cached) $ECHO_C" >&6
29522 ac_check_lib_save_LIBS=$LIBS
29523 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
29524 cat >conftest.$ac_ext <<_ACEOF
29527 cat confdefs.h >>conftest.$ac_ext
29528 cat >>conftest.$ac_ext <<_ACEOF
29529 /* end confdefs.h. */
29531 /* Override any gcc2 internal prototype to avoid an error. */
29535 /* We use char because int might match the return type of a gcc2
29536 builtin and then its argument prototype would still apply. */
29537 char ssl3_accept ();
29546 rm -f conftest.$ac_objext conftest$ac_exeext
29547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29548 (eval $ac_link) 2>conftest.er1
29550 grep -v '^ *+' conftest.er1 >conftest.err
29552 cat conftest.err >&5
29553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29554 (exit $ac_status); } &&
29555 { ac_try='test -z "$ac_c_werror_flag"
29556 || test ! -s conftest.err'
29557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29558 (eval $ac_try) 2>&5
29560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29561 (exit $ac_status); }; } &&
29562 { ac_try='test -s conftest$ac_exeext'
29563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29564 (eval $ac_try) 2>&5
29566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29567 (exit $ac_status); }; }; then
29568 ac_cv_lib_ssl_ssl3_accept=yes
29570 echo "$as_me: failed program was:" >&5
29571 sed 's/^/| /' conftest.$ac_ext >&5
29573 ac_cv_lib_ssl_ssl3_accept=no
29575 rm -f conftest.err conftest.$ac_objext \
29576 conftest$ac_exeext conftest.$ac_ext
29577 LIBS=$ac_check_lib_save_LIBS
29579 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
29580 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
29581 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
29590 if test $have_ssleay = yes ; then
29595 cat >>confdefs.h <<\_ACEOF
29596 #define HAVE_SSLEAY 1
29600 if test $need_rsaref = yes; then
29602 cat >>confdefs.h <<\_ACEOF
29603 #define HAVE_RSAREF 1
29607 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
29609 TLS_LIBS="-lssl -lcrypto"
29612 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
29613 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
29614 if test "${ol_cv_ssl_crl_compat+set}" = set; then
29615 echo $ECHO_N "(cached) $ECHO_C" >&6
29618 cat >conftest.$ac_ext <<_ACEOF
29621 cat confdefs.h >>conftest.$ac_ext
29622 cat >>conftest.$ac_ext <<_ACEOF
29623 /* end confdefs.h. */
29625 #ifdef HAVE_OPENSSL_SSL_H
29626 #include <openssl/ssl.h>
29631 /* Require 0.9.7d+ */
29632 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
29633 char *__ssl_compat = "0.9.7d";
29637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29638 $EGREP "__ssl_compat" >/dev/null 2>&1; then
29639 ol_cv_ssl_crl_compat=yes
29641 ol_cv_ssl_crl_compat=no
29646 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
29647 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
29649 if test $ol_cv_ssl_crl_compat = no ; then
29653 cat >>confdefs.h <<\_ACEOF
29654 #define HAVE_OPENSSL_CRL 1
29661 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
29662 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
29666 if test $ol_link_tls = yes ; then
29668 cat >>confdefs.h <<\_ACEOF
29674 elif test $ol_with_tls = auto ; then
29675 { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
29676 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
29677 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
29678 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
29680 elif test $ol_with_tls != no ; then
29681 { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
29682 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
29683 { (exit 1); exit 1; }; }
29686 if test $ol_enable_lmpasswd != no; then
29687 if test $ol_link_tls != yes ; then
29688 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
29689 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
29690 { (exit 1); exit 1; }; }
29694 cat >>confdefs.h <<\_ACEOF
29695 #define SLAPD_LMHASH 1
29702 if test $ol_with_threads = auto -o $ol_with_threads = yes \
29703 -o $ol_with_threads = nt ; then
29706 echo "$as_me:$LINENO: checking for _beginthread" >&5
29707 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
29708 if test "${ac_cv_func__beginthread+set}" = set; then
29709 echo $ECHO_N "(cached) $ECHO_C" >&6
29711 cat >conftest.$ac_ext <<_ACEOF
29714 cat confdefs.h >>conftest.$ac_ext
29715 cat >>conftest.$ac_ext <<_ACEOF
29716 /* end confdefs.h. */
29717 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
29718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29719 #define _beginthread innocuous__beginthread
29721 /* System header to define __stub macros and hopefully few prototypes,
29722 which can conflict with char _beginthread (); below.
29723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29724 <limits.h> exists even on freestanding compilers. */
29727 # include <limits.h>
29729 # include <assert.h>
29732 #undef _beginthread
29734 /* Override any gcc2 internal prototype to avoid an error. */
29739 /* We use char because int might match the return type of a gcc2
29740 builtin and then its argument prototype would still apply. */
29741 char _beginthread ();
29742 /* The GNU C library defines this for functions which it implements
29743 to always fail with ENOSYS. Some functions are actually named
29744 something starting with __ and the normal name is an alias. */
29745 #if defined (__stub__beginthread) || defined (__stub____beginthread)
29748 char (*f) () = _beginthread;
29757 return f != _beginthread;
29762 rm -f conftest.$ac_objext conftest$ac_exeext
29763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29764 (eval $ac_link) 2>conftest.er1
29766 grep -v '^ *+' conftest.er1 >conftest.err
29768 cat conftest.err >&5
29769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29770 (exit $ac_status); } &&
29771 { ac_try='test -z "$ac_c_werror_flag"
29772 || test ! -s conftest.err'
29773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29774 (eval $ac_try) 2>&5
29776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29777 (exit $ac_status); }; } &&
29778 { ac_try='test -s conftest$ac_exeext'
29779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29780 (eval $ac_try) 2>&5
29782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29783 (exit $ac_status); }; }; then
29784 ac_cv_func__beginthread=yes
29786 echo "$as_me: failed program was:" >&5
29787 sed 's/^/| /' conftest.$ac_ext >&5
29789 ac_cv_func__beginthread=no
29791 rm -f conftest.err conftest.$ac_objext \
29792 conftest$ac_exeext conftest.$ac_ext
29794 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
29795 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
29798 if test $ac_cv_func__beginthread = yes ; then
29800 cat >>confdefs.h <<\_ACEOF
29801 #define HAVE_NT_THREADS 1
29804 ol_cv_nt_threads=yes
29808 if test "$ol_cv_nt_threads" = yes ; then
29810 ol_with_threads=found
29811 ol_with_yielding_select=yes
29814 cat >>confdefs.h <<\_ACEOF
29815 #define HAVE_NT_SERVICE_MANAGER 1
29819 cat >>confdefs.h <<\_ACEOF
29820 #define HAVE_NT_EVENT_LOG 1
29825 if test $ol_with_threads = nt ; then
29826 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
29827 echo "$as_me: error: could not locate NT Threads" >&2;}
29828 { (exit 1); exit 1; }; }
29832 if test $ol_with_threads = auto -o $ol_with_threads = yes \
29833 -o $ol_with_threads = posix ; then
29836 for ac_header in pthread.h
29838 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29840 echo "$as_me:$LINENO: checking for $ac_header" >&5
29841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29842 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29843 echo $ECHO_N "(cached) $ECHO_C" >&6
29845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29846 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29848 # Is the header compilable?
29849 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29850 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29851 cat >conftest.$ac_ext <<_ACEOF
29854 cat confdefs.h >>conftest.$ac_ext
29855 cat >>conftest.$ac_ext <<_ACEOF
29856 /* end confdefs.h. */
29857 $ac_includes_default
29858 #include <$ac_header>
29860 rm -f conftest.$ac_objext
29861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29862 (eval $ac_compile) 2>conftest.er1
29864 grep -v '^ *+' conftest.er1 >conftest.err
29866 cat conftest.err >&5
29867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29868 (exit $ac_status); } &&
29869 { ac_try='test -z "$ac_c_werror_flag"
29870 || test ! -s conftest.err'
29871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29872 (eval $ac_try) 2>&5
29874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29875 (exit $ac_status); }; } &&
29876 { ac_try='test -s conftest.$ac_objext'
29877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29878 (eval $ac_try) 2>&5
29880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29881 (exit $ac_status); }; }; then
29882 ac_header_compiler=yes
29884 echo "$as_me: failed program was:" >&5
29885 sed 's/^/| /' conftest.$ac_ext >&5
29887 ac_header_compiler=no
29889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29890 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29891 echo "${ECHO_T}$ac_header_compiler" >&6
29893 # Is the header present?
29894 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29895 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29896 cat >conftest.$ac_ext <<_ACEOF
29899 cat confdefs.h >>conftest.$ac_ext
29900 cat >>conftest.$ac_ext <<_ACEOF
29901 /* end confdefs.h. */
29902 #include <$ac_header>
29904 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29905 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29907 grep -v '^ *+' conftest.er1 >conftest.err
29909 cat conftest.err >&5
29910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29911 (exit $ac_status); } >/dev/null; then
29912 if test -s conftest.err; then
29913 ac_cpp_err=$ac_c_preproc_warn_flag
29914 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29921 if test -z "$ac_cpp_err"; then
29922 ac_header_preproc=yes
29924 echo "$as_me: failed program was:" >&5
29925 sed 's/^/| /' conftest.$ac_ext >&5
29927 ac_header_preproc=no
29929 rm -f conftest.err conftest.$ac_ext
29930 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29931 echo "${ECHO_T}$ac_header_preproc" >&6
29933 # So? What about this header?
29934 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29936 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29937 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29939 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29940 ac_header_preproc=yes
29943 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29944 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29945 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29946 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29947 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29948 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29949 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29950 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29952 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29953 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29954 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29957 ## ------------------------------------------ ##
29958 ## Report this to the AC_PACKAGE_NAME lists. ##
29959 ## ------------------------------------------ ##
29962 sed "s/^/$as_me: WARNING: /" >&2
29965 echo "$as_me:$LINENO: checking for $ac_header" >&5
29966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29968 echo $ECHO_N "(cached) $ECHO_C" >&6
29970 eval "$as_ac_Header=\$ac_header_preproc"
29972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29973 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29976 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29977 cat >>confdefs.h <<_ACEOF
29978 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29986 if test $ac_cv_header_pthread_h = yes ; then
29987 echo "$as_me:$LINENO: checking POSIX thread version" >&5
29988 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
29989 if test "${ol_cv_pthread_version+set}" = set; then
29990 echo $ECHO_N "(cached) $ECHO_C" >&6
29993 cat >conftest.$ac_ext <<_ACEOF
29996 cat confdefs.h >>conftest.$ac_ext
29997 cat >>conftest.$ac_ext <<_ACEOF
29998 /* end confdefs.h. */
30000 # include <pthread.h>
30006 int i = PTHREAD_CREATE_JOINABLE;
30012 rm -f conftest.$ac_objext
30013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30014 (eval $ac_compile) 2>conftest.er1
30016 grep -v '^ *+' conftest.er1 >conftest.err
30018 cat conftest.err >&5
30019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30020 (exit $ac_status); } &&
30021 { ac_try='test -z "$ac_c_werror_flag"
30022 || test ! -s conftest.err'
30023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30024 (eval $ac_try) 2>&5
30026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30027 (exit $ac_status); }; } &&
30028 { ac_try='test -s conftest.$ac_objext'
30029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30030 (eval $ac_try) 2>&5
30032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30033 (exit $ac_status); }; }; then
30035 cat >conftest.$ac_ext <<_ACEOF
30038 cat confdefs.h >>conftest.$ac_ext
30039 cat >>conftest.$ac_ext <<_ACEOF
30040 /* end confdefs.h. */
30041 #include <pthread.h>
30044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30045 $EGREP "pthread_detach" >/dev/null 2>&1; then
30046 ol_cv_pthread_version=10
30048 ol_cv_pthread_version=8
30053 echo "$as_me: failed program was:" >&5
30054 sed 's/^/| /' conftest.$ac_ext >&5
30057 cat >conftest.$ac_ext <<_ACEOF
30060 cat confdefs.h >>conftest.$ac_ext
30061 cat >>conftest.$ac_ext <<_ACEOF
30062 /* end confdefs.h. */
30064 # include <pthread.h>
30065 # ifdef PTHREAD_CREATE_UNDETACHED
30070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30071 $EGREP "draft7" >/dev/null 2>&1; then
30072 ol_cv_pthread_version=7
30075 cat >conftest.$ac_ext <<_ACEOF
30078 cat confdefs.h >>conftest.$ac_ext
30079 cat >>conftest.$ac_ext <<_ACEOF
30080 /* end confdefs.h. */
30081 #include <pthread.h>
30084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30085 $EGREP "pthread_attr_init" >/dev/null 2>&1; then
30086 ol_cv_pthread_version=6
30089 cat >conftest.$ac_ext <<_ACEOF
30092 cat confdefs.h >>conftest.$ac_ext
30093 cat >>conftest.$ac_ext <<_ACEOF
30094 /* end confdefs.h. */
30096 # include <pthread.h>
30097 #ifdef PTHREAD_MUTEX_INITIALIZER
30102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30103 $EGREP "draft5" >/dev/null 2>&1; then
30104 ol_cv_pthread_version=5
30106 ol_cv_pthread_version=4
30117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30120 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
30121 echo "${ECHO_T}$ol_cv_pthread_version" >&6
30124 if test $ol_cv_pthread_version != 0 ; then
30126 cat >>confdefs.h <<_ACEOF
30127 #define HAVE_PTHREADS $ol_cv_pthread_version
30131 { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
30132 echo "$as_me: error: unknown pthread version" >&2;}
30133 { (exit 1); exit 1; }; }
30136 # consider threads found
30137 ol_with_threads=found
30140 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
30141 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
30142 if test "${ol_cv_header_linux_threads+set}" = set; then
30143 echo $ECHO_N "(cached) $ECHO_C" >&6
30145 cat >conftest.$ac_ext <<_ACEOF
30148 cat confdefs.h >>conftest.$ac_ext
30149 cat >>conftest.$ac_ext <<_ACEOF
30150 /* end confdefs.h. */
30151 #include <pthread.h>
30153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30154 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
30155 ol_cv_header_linux_threads=yes
30157 ol_cv_header_linux_threads=no
30163 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
30164 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
30165 if test $ol_cv_header_linux_threads = yes; then
30167 cat >>confdefs.h <<\_ACEOF
30168 #define HAVE_LINUX_THREADS 1
30174 echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
30175 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
30176 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
30177 echo $ECHO_N "(cached) $ECHO_C" >&6
30179 cat >conftest.$ac_ext <<_ACEOF
30182 cat confdefs.h >>conftest.$ac_ext
30183 cat >>conftest.$ac_ext <<_ACEOF
30184 /* end confdefs.h. */
30185 #include <pthread.h>
30186 #ifdef _POSIX_THREAD_IS_GNU_PTH
30191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30192 $EGREP "__gnu_pth__" >/dev/null 2>&1; then
30193 ol_cv_header_gnu_pth_pthread_h=yes
30195 ol_cv_header_gnu_pth_pthread_h=no
30201 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
30202 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
30205 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
30207 for ac_header in sched.h
30209 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30211 echo "$as_me:$LINENO: checking for $ac_header" >&5
30212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30214 echo $ECHO_N "(cached) $ECHO_C" >&6
30216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30217 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30219 # Is the header compilable?
30220 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30221 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30222 cat >conftest.$ac_ext <<_ACEOF
30225 cat confdefs.h >>conftest.$ac_ext
30226 cat >>conftest.$ac_ext <<_ACEOF
30227 /* end confdefs.h. */
30228 $ac_includes_default
30229 #include <$ac_header>
30231 rm -f conftest.$ac_objext
30232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30233 (eval $ac_compile) 2>conftest.er1
30235 grep -v '^ *+' conftest.er1 >conftest.err
30237 cat conftest.err >&5
30238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30239 (exit $ac_status); } &&
30240 { ac_try='test -z "$ac_c_werror_flag"
30241 || test ! -s conftest.err'
30242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30243 (eval $ac_try) 2>&5
30245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30246 (exit $ac_status); }; } &&
30247 { ac_try='test -s conftest.$ac_objext'
30248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30249 (eval $ac_try) 2>&5
30251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30252 (exit $ac_status); }; }; then
30253 ac_header_compiler=yes
30255 echo "$as_me: failed program was:" >&5
30256 sed 's/^/| /' conftest.$ac_ext >&5
30258 ac_header_compiler=no
30260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30261 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30262 echo "${ECHO_T}$ac_header_compiler" >&6
30264 # Is the header present?
30265 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30266 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30267 cat >conftest.$ac_ext <<_ACEOF
30270 cat confdefs.h >>conftest.$ac_ext
30271 cat >>conftest.$ac_ext <<_ACEOF
30272 /* end confdefs.h. */
30273 #include <$ac_header>
30275 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30276 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30278 grep -v '^ *+' conftest.er1 >conftest.err
30280 cat conftest.err >&5
30281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30282 (exit $ac_status); } >/dev/null; then
30283 if test -s conftest.err; then
30284 ac_cpp_err=$ac_c_preproc_warn_flag
30285 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30292 if test -z "$ac_cpp_err"; then
30293 ac_header_preproc=yes
30295 echo "$as_me: failed program was:" >&5
30296 sed 's/^/| /' conftest.$ac_ext >&5
30298 ac_header_preproc=no
30300 rm -f conftest.err conftest.$ac_ext
30301 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30302 echo "${ECHO_T}$ac_header_preproc" >&6
30304 # So? What about this header?
30305 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30307 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30308 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30309 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30310 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30311 ac_header_preproc=yes
30314 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30315 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30316 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30317 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30318 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30319 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30320 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30321 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30322 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30323 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30324 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30325 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30328 ## ------------------------------------------ ##
30329 ## Report this to the AC_PACKAGE_NAME lists. ##
30330 ## ------------------------------------------ ##
30333 sed "s/^/$as_me: WARNING: /" >&2
30336 echo "$as_me:$LINENO: checking for $ac_header" >&5
30337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30339 echo $ECHO_N "(cached) $ECHO_C" >&6
30341 eval "$as_ac_Header=\$ac_header_preproc"
30343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30344 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30347 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30348 cat >>confdefs.h <<_ACEOF
30349 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30359 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
30360 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
30361 if test "${ol_cv_pthread_create+set}" = set; then
30362 echo $ECHO_N "(cached) $ECHO_C" >&6
30365 if test "$cross_compiling" = yes; then
30366 cat >conftest.$ac_ext <<_ACEOF
30369 cat confdefs.h >>conftest.$ac_ext
30370 cat >>conftest.$ac_ext <<_ACEOF
30371 /* end confdefs.h. */
30373 /* pthread test headers */
30374 #include <pthread.h>
30375 #if HAVE_PTHREADS < 7
30379 #define NULL (void*)0
30382 static void *task(p)
30385 return (void *) (p == NULL);
30392 /* pthread test function */
30393 #ifndef PTHREAD_CREATE_DETACHED
30394 #define PTHREAD_CREATE_DETACHED 1
30398 int detach = PTHREAD_CREATE_DETACHED;
30400 #if HAVE_PTHREADS > 4
30401 /* Final pthreads */
30402 pthread_attr_t attr;
30404 status = pthread_attr_init(&attr);
30405 if( status ) return status;
30407 #if HAVE_PTHREADS < 7
30408 status = pthread_attr_setdetachstate(&attr, &detach);
30409 if( status < 0 ) status = errno;
30411 status = pthread_attr_setdetachstate(&attr, detach);
30413 if( status ) return status;
30414 status = pthread_create( &t, &attr, task, NULL );
30415 #if HAVE_PTHREADS < 7
30416 if( status < 0 ) status = errno;
30418 if( status ) return status;
30420 /* Draft 4 pthreads */
30421 status = pthread_create( &t, pthread_attr_default, task, NULL );
30422 if( status ) return errno;
30424 /* give thread a chance to complete */
30425 /* it should remain joinable and hence detachable */
30428 status = pthread_detach( &t );
30429 if( status ) return errno;
30432 #ifdef HAVE_LINUX_THREADS
30433 pthread_kill_other_threads_np();
30442 rm -f conftest.$ac_objext conftest$ac_exeext
30443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30444 (eval $ac_link) 2>conftest.er1
30446 grep -v '^ *+' conftest.er1 >conftest.err
30448 cat conftest.err >&5
30449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30450 (exit $ac_status); } &&
30451 { ac_try='test -z "$ac_c_werror_flag"
30452 || test ! -s conftest.err'
30453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30454 (eval $ac_try) 2>&5
30456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30457 (exit $ac_status); }; } &&
30458 { ac_try='test -s conftest$ac_exeext'
30459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30460 (eval $ac_try) 2>&5
30462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30463 (exit $ac_status); }; }; then
30464 ol_cv_pthread_create=yes
30466 echo "$as_me: failed program was:" >&5
30467 sed 's/^/| /' conftest.$ac_ext >&5
30469 ol_cv_pthread_create=no
30471 rm -f conftest.err conftest.$ac_objext \
30472 conftest$ac_exeext conftest.$ac_ext
30474 cat >conftest.$ac_ext <<_ACEOF
30476 /* pthread test headers */
30477 #include <pthread.h>
30478 #if HAVE_PTHREADS < 7
30482 #define NULL (void*)0
30485 static void *task(p)
30488 return (void *) (p == NULL);
30492 int main(argc, argv)
30497 /* pthread test function */
30498 #ifndef PTHREAD_CREATE_DETACHED
30499 #define PTHREAD_CREATE_DETACHED 1
30503 int detach = PTHREAD_CREATE_DETACHED;
30505 #if HAVE_PTHREADS > 4
30506 /* Final pthreads */
30507 pthread_attr_t attr;
30509 status = pthread_attr_init(&attr);
30510 if( status ) return status;
30512 #if HAVE_PTHREADS < 7
30513 status = pthread_attr_setdetachstate(&attr, &detach);
30514 if( status < 0 ) status = errno;
30516 status = pthread_attr_setdetachstate(&attr, detach);
30518 if( status ) return status;
30519 status = pthread_create( &t, &attr, task, NULL );
30520 #if HAVE_PTHREADS < 7
30521 if( status < 0 ) status = errno;
30523 if( status ) return status;
30525 /* Draft 4 pthreads */
30526 status = pthread_create( &t, pthread_attr_default, task, NULL );
30527 if( status ) return errno;
30529 /* give thread a chance to complete */
30530 /* it should remain joinable and hence detachable */
30533 status = pthread_detach( &t );
30534 if( status ) return errno;
30537 #ifdef HAVE_LINUX_THREADS
30538 pthread_kill_other_threads_np();
30546 rm -f conftest$ac_exeext
30547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30548 (eval $ac_link) 2>&5
30550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30551 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30553 (eval $ac_try) 2>&5
30555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30556 (exit $ac_status); }; }; then
30557 ol_cv_pthread_create=yes
30559 echo "$as_me: program exited with status $ac_status" >&5
30560 echo "$as_me: failed program was:" >&5
30561 sed 's/^/| /' conftest.$ac_ext >&5
30563 ( exit $ac_status )
30564 ol_cv_pthread_create=no
30566 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30569 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
30570 echo "${ECHO_T}$ol_cv_pthread_create" >&6
30572 if test $ol_cv_pthread_create != no ; then
30573 ol_link_threads=posix
30574 ol_link_pthreads=""
30577 # Pthread try link: -kthread (ol_cv_pthread_kthread)
30578 if test "$ol_link_threads" = no ; then
30580 echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
30581 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
30582 if test "${ol_cv_pthread_kthread+set}" = set; then
30583 echo $ECHO_N "(cached) $ECHO_C" >&6
30588 LIBS="-kthread $LIBS"
30590 if test "$cross_compiling" = yes; then
30591 cat >conftest.$ac_ext <<_ACEOF
30594 cat confdefs.h >>conftest.$ac_ext
30595 cat >>conftest.$ac_ext <<_ACEOF
30596 /* end confdefs.h. */
30598 /* pthread test headers */
30599 #include <pthread.h>
30600 #if HAVE_PTHREADS < 7
30604 #define NULL (void*)0
30607 static void *task(p)
30610 return (void *) (p == NULL);
30617 /* pthread test function */
30618 #ifndef PTHREAD_CREATE_DETACHED
30619 #define PTHREAD_CREATE_DETACHED 1
30623 int detach = PTHREAD_CREATE_DETACHED;
30625 #if HAVE_PTHREADS > 4
30626 /* Final pthreads */
30627 pthread_attr_t attr;
30629 status = pthread_attr_init(&attr);
30630 if( status ) return status;
30632 #if HAVE_PTHREADS < 7
30633 status = pthread_attr_setdetachstate(&attr, &detach);
30634 if( status < 0 ) status = errno;
30636 status = pthread_attr_setdetachstate(&attr, detach);
30638 if( status ) return status;
30639 status = pthread_create( &t, &attr, task, NULL );
30640 #if HAVE_PTHREADS < 7
30641 if( status < 0 ) status = errno;
30643 if( status ) return status;
30645 /* Draft 4 pthreads */
30646 status = pthread_create( &t, pthread_attr_default, task, NULL );
30647 if( status ) return errno;
30649 /* give thread a chance to complete */
30650 /* it should remain joinable and hence detachable */
30653 status = pthread_detach( &t );
30654 if( status ) return errno;
30657 #ifdef HAVE_LINUX_THREADS
30658 pthread_kill_other_threads_np();
30667 rm -f conftest.$ac_objext conftest$ac_exeext
30668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30669 (eval $ac_link) 2>conftest.er1
30671 grep -v '^ *+' conftest.er1 >conftest.err
30673 cat conftest.err >&5
30674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30675 (exit $ac_status); } &&
30676 { ac_try='test -z "$ac_c_werror_flag"
30677 || test ! -s conftest.err'
30678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30679 (eval $ac_try) 2>&5
30681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30682 (exit $ac_status); }; } &&
30683 { ac_try='test -s conftest$ac_exeext'
30684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30685 (eval $ac_try) 2>&5
30687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30688 (exit $ac_status); }; }; then
30689 ol_cv_pthread_kthread=yes
30691 echo "$as_me: failed program was:" >&5
30692 sed 's/^/| /' conftest.$ac_ext >&5
30694 ol_cv_pthread_kthread=no
30696 rm -f conftest.err conftest.$ac_objext \
30697 conftest$ac_exeext conftest.$ac_ext
30699 cat >conftest.$ac_ext <<_ACEOF
30701 /* pthread test headers */
30702 #include <pthread.h>
30703 #if HAVE_PTHREADS < 7
30707 #define NULL (void*)0
30710 static void *task(p)
30713 return (void *) (p == NULL);
30717 int main(argc, argv)
30722 /* pthread test function */
30723 #ifndef PTHREAD_CREATE_DETACHED
30724 #define PTHREAD_CREATE_DETACHED 1
30728 int detach = PTHREAD_CREATE_DETACHED;
30730 #if HAVE_PTHREADS > 4
30731 /* Final pthreads */
30732 pthread_attr_t attr;
30734 status = pthread_attr_init(&attr);
30735 if( status ) return status;
30737 #if HAVE_PTHREADS < 7
30738 status = pthread_attr_setdetachstate(&attr, &detach);
30739 if( status < 0 ) status = errno;
30741 status = pthread_attr_setdetachstate(&attr, detach);
30743 if( status ) return status;
30744 status = pthread_create( &t, &attr, task, NULL );
30745 #if HAVE_PTHREADS < 7
30746 if( status < 0 ) status = errno;
30748 if( status ) return status;
30750 /* Draft 4 pthreads */
30751 status = pthread_create( &t, pthread_attr_default, task, NULL );
30752 if( status ) return errno;
30754 /* give thread a chance to complete */
30755 /* it should remain joinable and hence detachable */
30758 status = pthread_detach( &t );
30759 if( status ) return errno;
30762 #ifdef HAVE_LINUX_THREADS
30763 pthread_kill_other_threads_np();
30771 rm -f conftest$ac_exeext
30772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30773 (eval $ac_link) 2>&5
30775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30776 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30778 (eval $ac_try) 2>&5
30780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30781 (exit $ac_status); }; }; then
30782 ol_cv_pthread_kthread=yes
30784 echo "$as_me: program exited with status $ac_status" >&5
30785 echo "$as_me: failed program was:" >&5
30786 sed 's/^/| /' conftest.$ac_ext >&5
30788 ( exit $ac_status )
30789 ol_cv_pthread_kthread=no
30791 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30798 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
30799 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
30801 if test $ol_cv_pthread_kthread = yes ; then
30802 ol_link_pthreads="-kthread"
30803 ol_link_threads=posix
30807 # Pthread try link: -pthread (ol_cv_pthread_pthread)
30808 if test "$ol_link_threads" = no ; then
30810 echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
30811 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
30812 if test "${ol_cv_pthread_pthread+set}" = set; then
30813 echo $ECHO_N "(cached) $ECHO_C" >&6
30818 LIBS="-pthread $LIBS"
30820 if test "$cross_compiling" = yes; then
30821 cat >conftest.$ac_ext <<_ACEOF
30824 cat confdefs.h >>conftest.$ac_ext
30825 cat >>conftest.$ac_ext <<_ACEOF
30826 /* end confdefs.h. */
30828 /* pthread test headers */
30829 #include <pthread.h>
30830 #if HAVE_PTHREADS < 7
30834 #define NULL (void*)0
30837 static void *task(p)
30840 return (void *) (p == NULL);
30847 /* pthread test function */
30848 #ifndef PTHREAD_CREATE_DETACHED
30849 #define PTHREAD_CREATE_DETACHED 1
30853 int detach = PTHREAD_CREATE_DETACHED;
30855 #if HAVE_PTHREADS > 4
30856 /* Final pthreads */
30857 pthread_attr_t attr;
30859 status = pthread_attr_init(&attr);
30860 if( status ) return status;
30862 #if HAVE_PTHREADS < 7
30863 status = pthread_attr_setdetachstate(&attr, &detach);
30864 if( status < 0 ) status = errno;
30866 status = pthread_attr_setdetachstate(&attr, detach);
30868 if( status ) return status;
30869 status = pthread_create( &t, &attr, task, NULL );
30870 #if HAVE_PTHREADS < 7
30871 if( status < 0 ) status = errno;
30873 if( status ) return status;
30875 /* Draft 4 pthreads */
30876 status = pthread_create( &t, pthread_attr_default, task, NULL );
30877 if( status ) return errno;
30879 /* give thread a chance to complete */
30880 /* it should remain joinable and hence detachable */
30883 status = pthread_detach( &t );
30884 if( status ) return errno;
30887 #ifdef HAVE_LINUX_THREADS
30888 pthread_kill_other_threads_np();
30897 rm -f conftest.$ac_objext conftest$ac_exeext
30898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30899 (eval $ac_link) 2>conftest.er1
30901 grep -v '^ *+' conftest.er1 >conftest.err
30903 cat conftest.err >&5
30904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30905 (exit $ac_status); } &&
30906 { ac_try='test -z "$ac_c_werror_flag"
30907 || test ! -s conftest.err'
30908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30909 (eval $ac_try) 2>&5
30911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30912 (exit $ac_status); }; } &&
30913 { ac_try='test -s conftest$ac_exeext'
30914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30915 (eval $ac_try) 2>&5
30917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30918 (exit $ac_status); }; }; then
30919 ol_cv_pthread_pthread=yes
30921 echo "$as_me: failed program was:" >&5
30922 sed 's/^/| /' conftest.$ac_ext >&5
30924 ol_cv_pthread_pthread=no
30926 rm -f conftest.err conftest.$ac_objext \
30927 conftest$ac_exeext conftest.$ac_ext
30929 cat >conftest.$ac_ext <<_ACEOF
30931 /* pthread test headers */
30932 #include <pthread.h>
30933 #if HAVE_PTHREADS < 7
30937 #define NULL (void*)0
30940 static void *task(p)
30943 return (void *) (p == NULL);
30947 int main(argc, argv)
30952 /* pthread test function */
30953 #ifndef PTHREAD_CREATE_DETACHED
30954 #define PTHREAD_CREATE_DETACHED 1
30958 int detach = PTHREAD_CREATE_DETACHED;
30960 #if HAVE_PTHREADS > 4
30961 /* Final pthreads */
30962 pthread_attr_t attr;
30964 status = pthread_attr_init(&attr);
30965 if( status ) return status;
30967 #if HAVE_PTHREADS < 7
30968 status = pthread_attr_setdetachstate(&attr, &detach);
30969 if( status < 0 ) status = errno;
30971 status = pthread_attr_setdetachstate(&attr, detach);
30973 if( status ) return status;
30974 status = pthread_create( &t, &attr, task, NULL );
30975 #if HAVE_PTHREADS < 7
30976 if( status < 0 ) status = errno;
30978 if( status ) return status;
30980 /* Draft 4 pthreads */
30981 status = pthread_create( &t, pthread_attr_default, task, NULL );
30982 if( status ) return errno;
30984 /* give thread a chance to complete */
30985 /* it should remain joinable and hence detachable */
30988 status = pthread_detach( &t );
30989 if( status ) return errno;
30992 #ifdef HAVE_LINUX_THREADS
30993 pthread_kill_other_threads_np();
31001 rm -f conftest$ac_exeext
31002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31003 (eval $ac_link) 2>&5
31005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31006 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31008 (eval $ac_try) 2>&5
31010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31011 (exit $ac_status); }; }; then
31012 ol_cv_pthread_pthread=yes
31014 echo "$as_me: program exited with status $ac_status" >&5
31015 echo "$as_me: failed program was:" >&5
31016 sed 's/^/| /' conftest.$ac_ext >&5
31018 ( exit $ac_status )
31019 ol_cv_pthread_pthread=no
31021 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31028 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
31029 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
31031 if test $ol_cv_pthread_pthread = yes ; then
31032 ol_link_pthreads="-pthread"
31033 ol_link_threads=posix
31037 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
31038 if test "$ol_link_threads" = no ; then
31040 echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
31041 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
31042 if test "${ol_cv_pthread_pthreads+set}" = set; then
31043 echo $ECHO_N "(cached) $ECHO_C" >&6
31048 LIBS="-pthreads $LIBS"
31050 if test "$cross_compiling" = yes; then
31051 cat >conftest.$ac_ext <<_ACEOF
31054 cat confdefs.h >>conftest.$ac_ext
31055 cat >>conftest.$ac_ext <<_ACEOF
31056 /* end confdefs.h. */
31058 /* pthread test headers */
31059 #include <pthread.h>
31060 #if HAVE_PTHREADS < 7
31064 #define NULL (void*)0
31067 static void *task(p)
31070 return (void *) (p == NULL);
31077 /* pthread test function */
31078 #ifndef PTHREAD_CREATE_DETACHED
31079 #define PTHREAD_CREATE_DETACHED 1
31083 int detach = PTHREAD_CREATE_DETACHED;
31085 #if HAVE_PTHREADS > 4
31086 /* Final pthreads */
31087 pthread_attr_t attr;
31089 status = pthread_attr_init(&attr);
31090 if( status ) return status;
31092 #if HAVE_PTHREADS < 7
31093 status = pthread_attr_setdetachstate(&attr, &detach);
31094 if( status < 0 ) status = errno;
31096 status = pthread_attr_setdetachstate(&attr, detach);
31098 if( status ) return status;
31099 status = pthread_create( &t, &attr, task, NULL );
31100 #if HAVE_PTHREADS < 7
31101 if( status < 0 ) status = errno;
31103 if( status ) return status;
31105 /* Draft 4 pthreads */
31106 status = pthread_create( &t, pthread_attr_default, task, NULL );
31107 if( status ) return errno;
31109 /* give thread a chance to complete */
31110 /* it should remain joinable and hence detachable */
31113 status = pthread_detach( &t );
31114 if( status ) return errno;
31117 #ifdef HAVE_LINUX_THREADS
31118 pthread_kill_other_threads_np();
31127 rm -f conftest.$ac_objext conftest$ac_exeext
31128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31129 (eval $ac_link) 2>conftest.er1
31131 grep -v '^ *+' conftest.er1 >conftest.err
31133 cat conftest.err >&5
31134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31135 (exit $ac_status); } &&
31136 { ac_try='test -z "$ac_c_werror_flag"
31137 || test ! -s conftest.err'
31138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31139 (eval $ac_try) 2>&5
31141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31142 (exit $ac_status); }; } &&
31143 { ac_try='test -s conftest$ac_exeext'
31144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31145 (eval $ac_try) 2>&5
31147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31148 (exit $ac_status); }; }; then
31149 ol_cv_pthread_pthreads=yes
31151 echo "$as_me: failed program was:" >&5
31152 sed 's/^/| /' conftest.$ac_ext >&5
31154 ol_cv_pthread_pthreads=no
31156 rm -f conftest.err conftest.$ac_objext \
31157 conftest$ac_exeext conftest.$ac_ext
31159 cat >conftest.$ac_ext <<_ACEOF
31161 /* pthread test headers */
31162 #include <pthread.h>
31163 #if HAVE_PTHREADS < 7
31167 #define NULL (void*)0
31170 static void *task(p)
31173 return (void *) (p == NULL);
31177 int main(argc, argv)
31182 /* pthread test function */
31183 #ifndef PTHREAD_CREATE_DETACHED
31184 #define PTHREAD_CREATE_DETACHED 1
31188 int detach = PTHREAD_CREATE_DETACHED;
31190 #if HAVE_PTHREADS > 4
31191 /* Final pthreads */
31192 pthread_attr_t attr;
31194 status = pthread_attr_init(&attr);
31195 if( status ) return status;
31197 #if HAVE_PTHREADS < 7
31198 status = pthread_attr_setdetachstate(&attr, &detach);
31199 if( status < 0 ) status = errno;
31201 status = pthread_attr_setdetachstate(&attr, detach);
31203 if( status ) return status;
31204 status = pthread_create( &t, &attr, task, NULL );
31205 #if HAVE_PTHREADS < 7
31206 if( status < 0 ) status = errno;
31208 if( status ) return status;
31210 /* Draft 4 pthreads */
31211 status = pthread_create( &t, pthread_attr_default, task, NULL );
31212 if( status ) return errno;
31214 /* give thread a chance to complete */
31215 /* it should remain joinable and hence detachable */
31218 status = pthread_detach( &t );
31219 if( status ) return errno;
31222 #ifdef HAVE_LINUX_THREADS
31223 pthread_kill_other_threads_np();
31231 rm -f conftest$ac_exeext
31232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31233 (eval $ac_link) 2>&5
31235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31236 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31238 (eval $ac_try) 2>&5
31240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31241 (exit $ac_status); }; }; then
31242 ol_cv_pthread_pthreads=yes
31244 echo "$as_me: program exited with status $ac_status" >&5
31245 echo "$as_me: failed program was:" >&5
31246 sed 's/^/| /' conftest.$ac_ext >&5
31248 ( exit $ac_status )
31249 ol_cv_pthread_pthreads=no
31251 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31258 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
31259 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
31261 if test $ol_cv_pthread_pthreads = yes ; then
31262 ol_link_pthreads="-pthreads"
31263 ol_link_threads=posix
31267 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
31268 if test "$ol_link_threads" = no ; then
31270 echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
31271 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
31272 if test "${ol_cv_pthread_mthreads+set}" = set; then
31273 echo $ECHO_N "(cached) $ECHO_C" >&6
31278 LIBS="-mthreads $LIBS"
31280 if test "$cross_compiling" = yes; then
31281 cat >conftest.$ac_ext <<_ACEOF
31284 cat confdefs.h >>conftest.$ac_ext
31285 cat >>conftest.$ac_ext <<_ACEOF
31286 /* end confdefs.h. */
31288 /* pthread test headers */
31289 #include <pthread.h>
31290 #if HAVE_PTHREADS < 7
31294 #define NULL (void*)0
31297 static void *task(p)
31300 return (void *) (p == NULL);
31307 /* pthread test function */
31308 #ifndef PTHREAD_CREATE_DETACHED
31309 #define PTHREAD_CREATE_DETACHED 1
31313 int detach = PTHREAD_CREATE_DETACHED;
31315 #if HAVE_PTHREADS > 4
31316 /* Final pthreads */
31317 pthread_attr_t attr;
31319 status = pthread_attr_init(&attr);
31320 if( status ) return status;
31322 #if HAVE_PTHREADS < 7
31323 status = pthread_attr_setdetachstate(&attr, &detach);
31324 if( status < 0 ) status = errno;
31326 status = pthread_attr_setdetachstate(&attr, detach);
31328 if( status ) return status;
31329 status = pthread_create( &t, &attr, task, NULL );
31330 #if HAVE_PTHREADS < 7
31331 if( status < 0 ) status = errno;
31333 if( status ) return status;
31335 /* Draft 4 pthreads */
31336 status = pthread_create( &t, pthread_attr_default, task, NULL );
31337 if( status ) return errno;
31339 /* give thread a chance to complete */
31340 /* it should remain joinable and hence detachable */
31343 status = pthread_detach( &t );
31344 if( status ) return errno;
31347 #ifdef HAVE_LINUX_THREADS
31348 pthread_kill_other_threads_np();
31357 rm -f conftest.$ac_objext conftest$ac_exeext
31358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31359 (eval $ac_link) 2>conftest.er1
31361 grep -v '^ *+' conftest.er1 >conftest.err
31363 cat conftest.err >&5
31364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31365 (exit $ac_status); } &&
31366 { ac_try='test -z "$ac_c_werror_flag"
31367 || test ! -s conftest.err'
31368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31369 (eval $ac_try) 2>&5
31371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31372 (exit $ac_status); }; } &&
31373 { ac_try='test -s conftest$ac_exeext'
31374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31375 (eval $ac_try) 2>&5
31377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31378 (exit $ac_status); }; }; then
31379 ol_cv_pthread_mthreads=yes
31381 echo "$as_me: failed program was:" >&5
31382 sed 's/^/| /' conftest.$ac_ext >&5
31384 ol_cv_pthread_mthreads=no
31386 rm -f conftest.err conftest.$ac_objext \
31387 conftest$ac_exeext conftest.$ac_ext
31389 cat >conftest.$ac_ext <<_ACEOF
31391 /* pthread test headers */
31392 #include <pthread.h>
31393 #if HAVE_PTHREADS < 7
31397 #define NULL (void*)0
31400 static void *task(p)
31403 return (void *) (p == NULL);
31407 int main(argc, argv)
31412 /* pthread test function */
31413 #ifndef PTHREAD_CREATE_DETACHED
31414 #define PTHREAD_CREATE_DETACHED 1
31418 int detach = PTHREAD_CREATE_DETACHED;
31420 #if HAVE_PTHREADS > 4
31421 /* Final pthreads */
31422 pthread_attr_t attr;
31424 status = pthread_attr_init(&attr);
31425 if( status ) return status;
31427 #if HAVE_PTHREADS < 7
31428 status = pthread_attr_setdetachstate(&attr, &detach);
31429 if( status < 0 ) status = errno;
31431 status = pthread_attr_setdetachstate(&attr, detach);
31433 if( status ) return status;
31434 status = pthread_create( &t, &attr, task, NULL );
31435 #if HAVE_PTHREADS < 7
31436 if( status < 0 ) status = errno;
31438 if( status ) return status;
31440 /* Draft 4 pthreads */
31441 status = pthread_create( &t, pthread_attr_default, task, NULL );
31442 if( status ) return errno;
31444 /* give thread a chance to complete */
31445 /* it should remain joinable and hence detachable */
31448 status = pthread_detach( &t );
31449 if( status ) return errno;
31452 #ifdef HAVE_LINUX_THREADS
31453 pthread_kill_other_threads_np();
31461 rm -f conftest$ac_exeext
31462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31463 (eval $ac_link) 2>&5
31465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31466 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31468 (eval $ac_try) 2>&5
31470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31471 (exit $ac_status); }; }; then
31472 ol_cv_pthread_mthreads=yes
31474 echo "$as_me: program exited with status $ac_status" >&5
31475 echo "$as_me: failed program was:" >&5
31476 sed 's/^/| /' conftest.$ac_ext >&5
31478 ( exit $ac_status )
31479 ol_cv_pthread_mthreads=no
31481 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31488 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
31489 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
31491 if test $ol_cv_pthread_mthreads = yes ; then
31492 ol_link_pthreads="-mthreads"
31493 ol_link_threads=posix
31497 # Pthread try link: -thread (ol_cv_pthread_thread)
31498 if test "$ol_link_threads" = no ; then
31500 echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
31501 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
31502 if test "${ol_cv_pthread_thread+set}" = set; then
31503 echo $ECHO_N "(cached) $ECHO_C" >&6
31508 LIBS="-thread $LIBS"
31510 if test "$cross_compiling" = yes; then
31511 cat >conftest.$ac_ext <<_ACEOF
31514 cat confdefs.h >>conftest.$ac_ext
31515 cat >>conftest.$ac_ext <<_ACEOF
31516 /* end confdefs.h. */
31518 /* pthread test headers */
31519 #include <pthread.h>
31520 #if HAVE_PTHREADS < 7
31524 #define NULL (void*)0
31527 static void *task(p)
31530 return (void *) (p == NULL);
31537 /* pthread test function */
31538 #ifndef PTHREAD_CREATE_DETACHED
31539 #define PTHREAD_CREATE_DETACHED 1
31543 int detach = PTHREAD_CREATE_DETACHED;
31545 #if HAVE_PTHREADS > 4
31546 /* Final pthreads */
31547 pthread_attr_t attr;
31549 status = pthread_attr_init(&attr);
31550 if( status ) return status;
31552 #if HAVE_PTHREADS < 7
31553 status = pthread_attr_setdetachstate(&attr, &detach);
31554 if( status < 0 ) status = errno;
31556 status = pthread_attr_setdetachstate(&attr, detach);
31558 if( status ) return status;
31559 status = pthread_create( &t, &attr, task, NULL );
31560 #if HAVE_PTHREADS < 7
31561 if( status < 0 ) status = errno;
31563 if( status ) return status;
31565 /* Draft 4 pthreads */
31566 status = pthread_create( &t, pthread_attr_default, task, NULL );
31567 if( status ) return errno;
31569 /* give thread a chance to complete */
31570 /* it should remain joinable and hence detachable */
31573 status = pthread_detach( &t );
31574 if( status ) return errno;
31577 #ifdef HAVE_LINUX_THREADS
31578 pthread_kill_other_threads_np();
31587 rm -f conftest.$ac_objext conftest$ac_exeext
31588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31589 (eval $ac_link) 2>conftest.er1
31591 grep -v '^ *+' conftest.er1 >conftest.err
31593 cat conftest.err >&5
31594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31595 (exit $ac_status); } &&
31596 { ac_try='test -z "$ac_c_werror_flag"
31597 || test ! -s conftest.err'
31598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31599 (eval $ac_try) 2>&5
31601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31602 (exit $ac_status); }; } &&
31603 { ac_try='test -s conftest$ac_exeext'
31604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31605 (eval $ac_try) 2>&5
31607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31608 (exit $ac_status); }; }; then
31609 ol_cv_pthread_thread=yes
31611 echo "$as_me: failed program was:" >&5
31612 sed 's/^/| /' conftest.$ac_ext >&5
31614 ol_cv_pthread_thread=no
31616 rm -f conftest.err conftest.$ac_objext \
31617 conftest$ac_exeext conftest.$ac_ext
31619 cat >conftest.$ac_ext <<_ACEOF
31621 /* pthread test headers */
31622 #include <pthread.h>
31623 #if HAVE_PTHREADS < 7
31627 #define NULL (void*)0
31630 static void *task(p)
31633 return (void *) (p == NULL);
31637 int main(argc, argv)
31642 /* pthread test function */
31643 #ifndef PTHREAD_CREATE_DETACHED
31644 #define PTHREAD_CREATE_DETACHED 1
31648 int detach = PTHREAD_CREATE_DETACHED;
31650 #if HAVE_PTHREADS > 4
31651 /* Final pthreads */
31652 pthread_attr_t attr;
31654 status = pthread_attr_init(&attr);
31655 if( status ) return status;
31657 #if HAVE_PTHREADS < 7
31658 status = pthread_attr_setdetachstate(&attr, &detach);
31659 if( status < 0 ) status = errno;
31661 status = pthread_attr_setdetachstate(&attr, detach);
31663 if( status ) return status;
31664 status = pthread_create( &t, &attr, task, NULL );
31665 #if HAVE_PTHREADS < 7
31666 if( status < 0 ) status = errno;
31668 if( status ) return status;
31670 /* Draft 4 pthreads */
31671 status = pthread_create( &t, pthread_attr_default, task, NULL );
31672 if( status ) return errno;
31674 /* give thread a chance to complete */
31675 /* it should remain joinable and hence detachable */
31678 status = pthread_detach( &t );
31679 if( status ) return errno;
31682 #ifdef HAVE_LINUX_THREADS
31683 pthread_kill_other_threads_np();
31691 rm -f conftest$ac_exeext
31692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31693 (eval $ac_link) 2>&5
31695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31696 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31698 (eval $ac_try) 2>&5
31700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31701 (exit $ac_status); }; }; then
31702 ol_cv_pthread_thread=yes
31704 echo "$as_me: program exited with status $ac_status" >&5
31705 echo "$as_me: failed program was:" >&5
31706 sed 's/^/| /' conftest.$ac_ext >&5
31708 ( exit $ac_status )
31709 ol_cv_pthread_thread=no
31711 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31718 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
31719 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
31721 if test $ol_cv_pthread_thread = yes ; then
31722 ol_link_pthreads="-thread"
31723 ol_link_threads=posix
31728 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
31729 if test "$ol_link_threads" = no ; then
31730 # try -lpthread -lmach -lexc -lc_r
31731 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
31732 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
31733 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
31734 echo $ECHO_N "(cached) $ECHO_C" >&6
31739 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
31741 if test "$cross_compiling" = yes; then
31742 cat >conftest.$ac_ext <<_ACEOF
31745 cat confdefs.h >>conftest.$ac_ext
31746 cat >>conftest.$ac_ext <<_ACEOF
31747 /* end confdefs.h. */
31749 /* pthread test headers */
31750 #include <pthread.h>
31751 #if HAVE_PTHREADS < 7
31755 #define NULL (void*)0
31758 static void *task(p)
31761 return (void *) (p == NULL);
31768 /* pthread test function */
31769 #ifndef PTHREAD_CREATE_DETACHED
31770 #define PTHREAD_CREATE_DETACHED 1
31774 int detach = PTHREAD_CREATE_DETACHED;
31776 #if HAVE_PTHREADS > 4
31777 /* Final pthreads */
31778 pthread_attr_t attr;
31780 status = pthread_attr_init(&attr);
31781 if( status ) return status;
31783 #if HAVE_PTHREADS < 7
31784 status = pthread_attr_setdetachstate(&attr, &detach);
31785 if( status < 0 ) status = errno;
31787 status = pthread_attr_setdetachstate(&attr, detach);
31789 if( status ) return status;
31790 status = pthread_create( &t, &attr, task, NULL );
31791 #if HAVE_PTHREADS < 7
31792 if( status < 0 ) status = errno;
31794 if( status ) return status;
31796 /* Draft 4 pthreads */
31797 status = pthread_create( &t, pthread_attr_default, task, NULL );
31798 if( status ) return errno;
31800 /* give thread a chance to complete */
31801 /* it should remain joinable and hence detachable */
31804 status = pthread_detach( &t );
31805 if( status ) return errno;
31808 #ifdef HAVE_LINUX_THREADS
31809 pthread_kill_other_threads_np();
31818 rm -f conftest.$ac_objext conftest$ac_exeext
31819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31820 (eval $ac_link) 2>conftest.er1
31822 grep -v '^ *+' conftest.er1 >conftest.err
31824 cat conftest.err >&5
31825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31826 (exit $ac_status); } &&
31827 { ac_try='test -z "$ac_c_werror_flag"
31828 || test ! -s conftest.err'
31829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31830 (eval $ac_try) 2>&5
31832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31833 (exit $ac_status); }; } &&
31834 { ac_try='test -s conftest$ac_exeext'
31835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31836 (eval $ac_try) 2>&5
31838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31839 (exit $ac_status); }; }; then
31840 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
31842 echo "$as_me: failed program was:" >&5
31843 sed 's/^/| /' conftest.$ac_ext >&5
31845 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
31847 rm -f conftest.err conftest.$ac_objext \
31848 conftest$ac_exeext conftest.$ac_ext
31850 cat >conftest.$ac_ext <<_ACEOF
31852 /* pthread test headers */
31853 #include <pthread.h>
31854 #if HAVE_PTHREADS < 7
31858 #define NULL (void*)0
31861 static void *task(p)
31864 return (void *) (p == NULL);
31868 int main(argc, argv)
31873 /* pthread test function */
31874 #ifndef PTHREAD_CREATE_DETACHED
31875 #define PTHREAD_CREATE_DETACHED 1
31879 int detach = PTHREAD_CREATE_DETACHED;
31881 #if HAVE_PTHREADS > 4
31882 /* Final pthreads */
31883 pthread_attr_t attr;
31885 status = pthread_attr_init(&attr);
31886 if( status ) return status;
31888 #if HAVE_PTHREADS < 7
31889 status = pthread_attr_setdetachstate(&attr, &detach);
31890 if( status < 0 ) status = errno;
31892 status = pthread_attr_setdetachstate(&attr, detach);
31894 if( status ) return status;
31895 status = pthread_create( &t, &attr, task, NULL );
31896 #if HAVE_PTHREADS < 7
31897 if( status < 0 ) status = errno;
31899 if( status ) return status;
31901 /* Draft 4 pthreads */
31902 status = pthread_create( &t, pthread_attr_default, task, NULL );
31903 if( status ) return errno;
31905 /* give thread a chance to complete */
31906 /* it should remain joinable and hence detachable */
31909 status = pthread_detach( &t );
31910 if( status ) return errno;
31913 #ifdef HAVE_LINUX_THREADS
31914 pthread_kill_other_threads_np();
31922 rm -f conftest$ac_exeext
31923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31924 (eval $ac_link) 2>&5
31926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31927 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31929 (eval $ac_try) 2>&5
31931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31932 (exit $ac_status); }; }; then
31933 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
31935 echo "$as_me: program exited with status $ac_status" >&5
31936 echo "$as_me: failed program was:" >&5
31937 sed 's/^/| /' conftest.$ac_ext >&5
31939 ( exit $ac_status )
31940 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
31942 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31949 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
31950 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
31952 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
31953 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
31954 ol_link_threads=posix
31958 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
31959 if test "$ol_link_threads" = no ; then
31960 # try -lpthread -lmach -lexc
31961 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
31962 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
31963 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
31964 echo $ECHO_N "(cached) $ECHO_C" >&6
31969 LIBS="-lpthread -lmach -lexc $LIBS"
31971 if test "$cross_compiling" = yes; then
31972 cat >conftest.$ac_ext <<_ACEOF
31975 cat confdefs.h >>conftest.$ac_ext
31976 cat >>conftest.$ac_ext <<_ACEOF
31977 /* end confdefs.h. */
31979 /* pthread test headers */
31980 #include <pthread.h>
31981 #if HAVE_PTHREADS < 7
31985 #define NULL (void*)0
31988 static void *task(p)
31991 return (void *) (p == NULL);
31998 /* pthread test function */
31999 #ifndef PTHREAD_CREATE_DETACHED
32000 #define PTHREAD_CREATE_DETACHED 1
32004 int detach = PTHREAD_CREATE_DETACHED;
32006 #if HAVE_PTHREADS > 4
32007 /* Final pthreads */
32008 pthread_attr_t attr;
32010 status = pthread_attr_init(&attr);
32011 if( status ) return status;
32013 #if HAVE_PTHREADS < 7
32014 status = pthread_attr_setdetachstate(&attr, &detach);
32015 if( status < 0 ) status = errno;
32017 status = pthread_attr_setdetachstate(&attr, detach);
32019 if( status ) return status;
32020 status = pthread_create( &t, &attr, task, NULL );
32021 #if HAVE_PTHREADS < 7
32022 if( status < 0 ) status = errno;
32024 if( status ) return status;
32026 /* Draft 4 pthreads */
32027 status = pthread_create( &t, pthread_attr_default, task, NULL );
32028 if( status ) return errno;
32030 /* give thread a chance to complete */
32031 /* it should remain joinable and hence detachable */
32034 status = pthread_detach( &t );
32035 if( status ) return errno;
32038 #ifdef HAVE_LINUX_THREADS
32039 pthread_kill_other_threads_np();
32048 rm -f conftest.$ac_objext conftest$ac_exeext
32049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32050 (eval $ac_link) 2>conftest.er1
32052 grep -v '^ *+' conftest.er1 >conftest.err
32054 cat conftest.err >&5
32055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32056 (exit $ac_status); } &&
32057 { ac_try='test -z "$ac_c_werror_flag"
32058 || test ! -s conftest.err'
32059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32060 (eval $ac_try) 2>&5
32062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32063 (exit $ac_status); }; } &&
32064 { ac_try='test -s conftest$ac_exeext'
32065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32066 (eval $ac_try) 2>&5
32068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32069 (exit $ac_status); }; }; then
32070 ol_cv_pthread_lpthread_lmach_lexc=yes
32072 echo "$as_me: failed program was:" >&5
32073 sed 's/^/| /' conftest.$ac_ext >&5
32075 ol_cv_pthread_lpthread_lmach_lexc=no
32077 rm -f conftest.err conftest.$ac_objext \
32078 conftest$ac_exeext conftest.$ac_ext
32080 cat >conftest.$ac_ext <<_ACEOF
32082 /* pthread test headers */
32083 #include <pthread.h>
32084 #if HAVE_PTHREADS < 7
32088 #define NULL (void*)0
32091 static void *task(p)
32094 return (void *) (p == NULL);
32098 int main(argc, argv)
32103 /* pthread test function */
32104 #ifndef PTHREAD_CREATE_DETACHED
32105 #define PTHREAD_CREATE_DETACHED 1
32109 int detach = PTHREAD_CREATE_DETACHED;
32111 #if HAVE_PTHREADS > 4
32112 /* Final pthreads */
32113 pthread_attr_t attr;
32115 status = pthread_attr_init(&attr);
32116 if( status ) return status;
32118 #if HAVE_PTHREADS < 7
32119 status = pthread_attr_setdetachstate(&attr, &detach);
32120 if( status < 0 ) status = errno;
32122 status = pthread_attr_setdetachstate(&attr, detach);
32124 if( status ) return status;
32125 status = pthread_create( &t, &attr, task, NULL );
32126 #if HAVE_PTHREADS < 7
32127 if( status < 0 ) status = errno;
32129 if( status ) return status;
32131 /* Draft 4 pthreads */
32132 status = pthread_create( &t, pthread_attr_default, task, NULL );
32133 if( status ) return errno;
32135 /* give thread a chance to complete */
32136 /* it should remain joinable and hence detachable */
32139 status = pthread_detach( &t );
32140 if( status ) return errno;
32143 #ifdef HAVE_LINUX_THREADS
32144 pthread_kill_other_threads_np();
32152 rm -f conftest$ac_exeext
32153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32154 (eval $ac_link) 2>&5
32156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32157 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32159 (eval $ac_try) 2>&5
32161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32162 (exit $ac_status); }; }; then
32163 ol_cv_pthread_lpthread_lmach_lexc=yes
32165 echo "$as_me: program exited with status $ac_status" >&5
32166 echo "$as_me: failed program was:" >&5
32167 sed 's/^/| /' conftest.$ac_ext >&5
32169 ( exit $ac_status )
32170 ol_cv_pthread_lpthread_lmach_lexc=no
32172 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32179 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
32180 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
32182 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
32183 ol_link_pthreads="-lpthread -lmach -lexc"
32184 ol_link_threads=posix
32189 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
32190 if test "$ol_link_threads" = no ; then
32191 # try -lpthread -Wl,-woff,85
32192 echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
32193 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
32194 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
32195 echo $ECHO_N "(cached) $ECHO_C" >&6
32200 LIBS="-lpthread -Wl,-woff,85 $LIBS"
32202 if test "$cross_compiling" = yes; then
32203 cat >conftest.$ac_ext <<_ACEOF
32206 cat confdefs.h >>conftest.$ac_ext
32207 cat >>conftest.$ac_ext <<_ACEOF
32208 /* end confdefs.h. */
32210 /* pthread test headers */
32211 #include <pthread.h>
32212 #if HAVE_PTHREADS < 7
32216 #define NULL (void*)0
32219 static void *task(p)
32222 return (void *) (p == NULL);
32229 /* pthread test function */
32230 #ifndef PTHREAD_CREATE_DETACHED
32231 #define PTHREAD_CREATE_DETACHED 1
32235 int detach = PTHREAD_CREATE_DETACHED;
32237 #if HAVE_PTHREADS > 4
32238 /* Final pthreads */
32239 pthread_attr_t attr;
32241 status = pthread_attr_init(&attr);
32242 if( status ) return status;
32244 #if HAVE_PTHREADS < 7
32245 status = pthread_attr_setdetachstate(&attr, &detach);
32246 if( status < 0 ) status = errno;
32248 status = pthread_attr_setdetachstate(&attr, detach);
32250 if( status ) return status;
32251 status = pthread_create( &t, &attr, task, NULL );
32252 #if HAVE_PTHREADS < 7
32253 if( status < 0 ) status = errno;
32255 if( status ) return status;
32257 /* Draft 4 pthreads */
32258 status = pthread_create( &t, pthread_attr_default, task, NULL );
32259 if( status ) return errno;
32261 /* give thread a chance to complete */
32262 /* it should remain joinable and hence detachable */
32265 status = pthread_detach( &t );
32266 if( status ) return errno;
32269 #ifdef HAVE_LINUX_THREADS
32270 pthread_kill_other_threads_np();
32279 rm -f conftest.$ac_objext conftest$ac_exeext
32280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32281 (eval $ac_link) 2>conftest.er1
32283 grep -v '^ *+' conftest.er1 >conftest.err
32285 cat conftest.err >&5
32286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32287 (exit $ac_status); } &&
32288 { ac_try='test -z "$ac_c_werror_flag"
32289 || test ! -s conftest.err'
32290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32291 (eval $ac_try) 2>&5
32293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32294 (exit $ac_status); }; } &&
32295 { ac_try='test -s conftest$ac_exeext'
32296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32297 (eval $ac_try) 2>&5
32299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32300 (exit $ac_status); }; }; then
32301 ol_cv_pthread_lib_lpthread_woff=yes
32303 echo "$as_me: failed program was:" >&5
32304 sed 's/^/| /' conftest.$ac_ext >&5
32306 ol_cv_pthread_lib_lpthread_woff=no
32308 rm -f conftest.err conftest.$ac_objext \
32309 conftest$ac_exeext conftest.$ac_ext
32311 cat >conftest.$ac_ext <<_ACEOF
32313 /* pthread test headers */
32314 #include <pthread.h>
32315 #if HAVE_PTHREADS < 7
32319 #define NULL (void*)0
32322 static void *task(p)
32325 return (void *) (p == NULL);
32329 int main(argc, argv)
32334 /* pthread test function */
32335 #ifndef PTHREAD_CREATE_DETACHED
32336 #define PTHREAD_CREATE_DETACHED 1
32340 int detach = PTHREAD_CREATE_DETACHED;
32342 #if HAVE_PTHREADS > 4
32343 /* Final pthreads */
32344 pthread_attr_t attr;
32346 status = pthread_attr_init(&attr);
32347 if( status ) return status;
32349 #if HAVE_PTHREADS < 7
32350 status = pthread_attr_setdetachstate(&attr, &detach);
32351 if( status < 0 ) status = errno;
32353 status = pthread_attr_setdetachstate(&attr, detach);
32355 if( status ) return status;
32356 status = pthread_create( &t, &attr, task, NULL );
32357 #if HAVE_PTHREADS < 7
32358 if( status < 0 ) status = errno;
32360 if( status ) return status;
32362 /* Draft 4 pthreads */
32363 status = pthread_create( &t, pthread_attr_default, task, NULL );
32364 if( status ) return errno;
32366 /* give thread a chance to complete */
32367 /* it should remain joinable and hence detachable */
32370 status = pthread_detach( &t );
32371 if( status ) return errno;
32374 #ifdef HAVE_LINUX_THREADS
32375 pthread_kill_other_threads_np();
32383 rm -f conftest$ac_exeext
32384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32385 (eval $ac_link) 2>&5
32387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32388 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32390 (eval $ac_try) 2>&5
32392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32393 (exit $ac_status); }; }; then
32394 ol_cv_pthread_lib_lpthread_woff=yes
32396 echo "$as_me: program exited with status $ac_status" >&5
32397 echo "$as_me: failed program was:" >&5
32398 sed 's/^/| /' conftest.$ac_ext >&5
32400 ( exit $ac_status )
32401 ol_cv_pthread_lib_lpthread_woff=no
32403 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32410 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
32411 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
32413 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
32414 ol_link_pthreads="-lpthread -Wl,-woff,85"
32415 ol_link_threads=posix
32420 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
32421 if test "$ol_link_threads" = no ; then
32423 echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
32424 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
32425 if test "${ol_cv_pthread_lpthread+set}" = set; then
32426 echo $ECHO_N "(cached) $ECHO_C" >&6
32431 LIBS="-lpthread $LIBS"
32433 if test "$cross_compiling" = yes; then
32434 cat >conftest.$ac_ext <<_ACEOF
32437 cat confdefs.h >>conftest.$ac_ext
32438 cat >>conftest.$ac_ext <<_ACEOF
32439 /* end confdefs.h. */
32441 /* pthread test headers */
32442 #include <pthread.h>
32443 #if HAVE_PTHREADS < 7
32447 #define NULL (void*)0
32450 static void *task(p)
32453 return (void *) (p == NULL);
32460 /* pthread test function */
32461 #ifndef PTHREAD_CREATE_DETACHED
32462 #define PTHREAD_CREATE_DETACHED 1
32466 int detach = PTHREAD_CREATE_DETACHED;
32468 #if HAVE_PTHREADS > 4
32469 /* Final pthreads */
32470 pthread_attr_t attr;
32472 status = pthread_attr_init(&attr);
32473 if( status ) return status;
32475 #if HAVE_PTHREADS < 7
32476 status = pthread_attr_setdetachstate(&attr, &detach);
32477 if( status < 0 ) status = errno;
32479 status = pthread_attr_setdetachstate(&attr, detach);
32481 if( status ) return status;
32482 status = pthread_create( &t, &attr, task, NULL );
32483 #if HAVE_PTHREADS < 7
32484 if( status < 0 ) status = errno;
32486 if( status ) return status;
32488 /* Draft 4 pthreads */
32489 status = pthread_create( &t, pthread_attr_default, task, NULL );
32490 if( status ) return errno;
32492 /* give thread a chance to complete */
32493 /* it should remain joinable and hence detachable */
32496 status = pthread_detach( &t );
32497 if( status ) return errno;
32500 #ifdef HAVE_LINUX_THREADS
32501 pthread_kill_other_threads_np();
32510 rm -f conftest.$ac_objext conftest$ac_exeext
32511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32512 (eval $ac_link) 2>conftest.er1
32514 grep -v '^ *+' conftest.er1 >conftest.err
32516 cat conftest.err >&5
32517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32518 (exit $ac_status); } &&
32519 { ac_try='test -z "$ac_c_werror_flag"
32520 || test ! -s conftest.err'
32521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32522 (eval $ac_try) 2>&5
32524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32525 (exit $ac_status); }; } &&
32526 { ac_try='test -s conftest$ac_exeext'
32527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32528 (eval $ac_try) 2>&5
32530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32531 (exit $ac_status); }; }; then
32532 ol_cv_pthread_lpthread=yes
32534 echo "$as_me: failed program was:" >&5
32535 sed 's/^/| /' conftest.$ac_ext >&5
32537 ol_cv_pthread_lpthread=no
32539 rm -f conftest.err conftest.$ac_objext \
32540 conftest$ac_exeext conftest.$ac_ext
32542 cat >conftest.$ac_ext <<_ACEOF
32544 /* pthread test headers */
32545 #include <pthread.h>
32546 #if HAVE_PTHREADS < 7
32550 #define NULL (void*)0
32553 static void *task(p)
32556 return (void *) (p == NULL);
32560 int main(argc, argv)
32565 /* pthread test function */
32566 #ifndef PTHREAD_CREATE_DETACHED
32567 #define PTHREAD_CREATE_DETACHED 1
32571 int detach = PTHREAD_CREATE_DETACHED;
32573 #if HAVE_PTHREADS > 4
32574 /* Final pthreads */
32575 pthread_attr_t attr;
32577 status = pthread_attr_init(&attr);
32578 if( status ) return status;
32580 #if HAVE_PTHREADS < 7
32581 status = pthread_attr_setdetachstate(&attr, &detach);
32582 if( status < 0 ) status = errno;
32584 status = pthread_attr_setdetachstate(&attr, detach);
32586 if( status ) return status;
32587 status = pthread_create( &t, &attr, task, NULL );
32588 #if HAVE_PTHREADS < 7
32589 if( status < 0 ) status = errno;
32591 if( status ) return status;
32593 /* Draft 4 pthreads */
32594 status = pthread_create( &t, pthread_attr_default, task, NULL );
32595 if( status ) return errno;
32597 /* give thread a chance to complete */
32598 /* it should remain joinable and hence detachable */
32601 status = pthread_detach( &t );
32602 if( status ) return errno;
32605 #ifdef HAVE_LINUX_THREADS
32606 pthread_kill_other_threads_np();
32614 rm -f conftest$ac_exeext
32615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32616 (eval $ac_link) 2>&5
32618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32619 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32621 (eval $ac_try) 2>&5
32623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32624 (exit $ac_status); }; }; then
32625 ol_cv_pthread_lpthread=yes
32627 echo "$as_me: program exited with status $ac_status" >&5
32628 echo "$as_me: failed program was:" >&5
32629 sed 's/^/| /' conftest.$ac_ext >&5
32631 ( exit $ac_status )
32632 ol_cv_pthread_lpthread=no
32634 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32641 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
32642 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
32644 if test $ol_cv_pthread_lpthread = yes ; then
32645 ol_link_pthreads="-lpthread"
32646 ol_link_threads=posix
32650 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
32651 if test "$ol_link_threads" = no ; then
32653 echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
32654 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
32655 if test "${ol_cv_pthread_lc_r+set}" = set; then
32656 echo $ECHO_N "(cached) $ECHO_C" >&6
32663 if test "$cross_compiling" = yes; then
32664 cat >conftest.$ac_ext <<_ACEOF
32667 cat confdefs.h >>conftest.$ac_ext
32668 cat >>conftest.$ac_ext <<_ACEOF
32669 /* end confdefs.h. */
32671 /* pthread test headers */
32672 #include <pthread.h>
32673 #if HAVE_PTHREADS < 7
32677 #define NULL (void*)0
32680 static void *task(p)
32683 return (void *) (p == NULL);
32690 /* pthread test function */
32691 #ifndef PTHREAD_CREATE_DETACHED
32692 #define PTHREAD_CREATE_DETACHED 1
32696 int detach = PTHREAD_CREATE_DETACHED;
32698 #if HAVE_PTHREADS > 4
32699 /* Final pthreads */
32700 pthread_attr_t attr;
32702 status = pthread_attr_init(&attr);
32703 if( status ) return status;
32705 #if HAVE_PTHREADS < 7
32706 status = pthread_attr_setdetachstate(&attr, &detach);
32707 if( status < 0 ) status = errno;
32709 status = pthread_attr_setdetachstate(&attr, detach);
32711 if( status ) return status;
32712 status = pthread_create( &t, &attr, task, NULL );
32713 #if HAVE_PTHREADS < 7
32714 if( status < 0 ) status = errno;
32716 if( status ) return status;
32718 /* Draft 4 pthreads */
32719 status = pthread_create( &t, pthread_attr_default, task, NULL );
32720 if( status ) return errno;
32722 /* give thread a chance to complete */
32723 /* it should remain joinable and hence detachable */
32726 status = pthread_detach( &t );
32727 if( status ) return errno;
32730 #ifdef HAVE_LINUX_THREADS
32731 pthread_kill_other_threads_np();
32740 rm -f conftest.$ac_objext conftest$ac_exeext
32741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32742 (eval $ac_link) 2>conftest.er1
32744 grep -v '^ *+' conftest.er1 >conftest.err
32746 cat conftest.err >&5
32747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32748 (exit $ac_status); } &&
32749 { ac_try='test -z "$ac_c_werror_flag"
32750 || test ! -s conftest.err'
32751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32752 (eval $ac_try) 2>&5
32754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32755 (exit $ac_status); }; } &&
32756 { ac_try='test -s conftest$ac_exeext'
32757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32758 (eval $ac_try) 2>&5
32760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32761 (exit $ac_status); }; }; then
32762 ol_cv_pthread_lc_r=yes
32764 echo "$as_me: failed program was:" >&5
32765 sed 's/^/| /' conftest.$ac_ext >&5
32767 ol_cv_pthread_lc_r=no
32769 rm -f conftest.err conftest.$ac_objext \
32770 conftest$ac_exeext conftest.$ac_ext
32772 cat >conftest.$ac_ext <<_ACEOF
32774 /* pthread test headers */
32775 #include <pthread.h>
32776 #if HAVE_PTHREADS < 7
32780 #define NULL (void*)0
32783 static void *task(p)
32786 return (void *) (p == NULL);
32790 int main(argc, argv)
32795 /* pthread test function */
32796 #ifndef PTHREAD_CREATE_DETACHED
32797 #define PTHREAD_CREATE_DETACHED 1
32801 int detach = PTHREAD_CREATE_DETACHED;
32803 #if HAVE_PTHREADS > 4
32804 /* Final pthreads */
32805 pthread_attr_t attr;
32807 status = pthread_attr_init(&attr);
32808 if( status ) return status;
32810 #if HAVE_PTHREADS < 7
32811 status = pthread_attr_setdetachstate(&attr, &detach);
32812 if( status < 0 ) status = errno;
32814 status = pthread_attr_setdetachstate(&attr, detach);
32816 if( status ) return status;
32817 status = pthread_create( &t, &attr, task, NULL );
32818 #if HAVE_PTHREADS < 7
32819 if( status < 0 ) status = errno;
32821 if( status ) return status;
32823 /* Draft 4 pthreads */
32824 status = pthread_create( &t, pthread_attr_default, task, NULL );
32825 if( status ) return errno;
32827 /* give thread a chance to complete */
32828 /* it should remain joinable and hence detachable */
32831 status = pthread_detach( &t );
32832 if( status ) return errno;
32835 #ifdef HAVE_LINUX_THREADS
32836 pthread_kill_other_threads_np();
32844 rm -f conftest$ac_exeext
32845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32846 (eval $ac_link) 2>&5
32848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32849 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32851 (eval $ac_try) 2>&5
32853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32854 (exit $ac_status); }; }; then
32855 ol_cv_pthread_lc_r=yes
32857 echo "$as_me: program exited with status $ac_status" >&5
32858 echo "$as_me: failed program was:" >&5
32859 sed 's/^/| /' conftest.$ac_ext >&5
32861 ( exit $ac_status )
32862 ol_cv_pthread_lc_r=no
32864 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32871 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
32872 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
32874 if test $ol_cv_pthread_lc_r = yes ; then
32875 ol_link_pthreads="-lc_r"
32876 ol_link_threads=posix
32881 # Pthread try link: -threads (ol_cv_pthread_threads)
32882 if test "$ol_link_threads" = no ; then
32884 echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
32885 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
32886 if test "${ol_cv_pthread_threads+set}" = set; then
32887 echo $ECHO_N "(cached) $ECHO_C" >&6
32892 LIBS="-threads $LIBS"
32894 if test "$cross_compiling" = yes; then
32895 cat >conftest.$ac_ext <<_ACEOF
32898 cat confdefs.h >>conftest.$ac_ext
32899 cat >>conftest.$ac_ext <<_ACEOF
32900 /* end confdefs.h. */
32902 /* pthread test headers */
32903 #include <pthread.h>
32904 #if HAVE_PTHREADS < 7
32908 #define NULL (void*)0
32911 static void *task(p)
32914 return (void *) (p == NULL);
32921 /* pthread test function */
32922 #ifndef PTHREAD_CREATE_DETACHED
32923 #define PTHREAD_CREATE_DETACHED 1
32927 int detach = PTHREAD_CREATE_DETACHED;
32929 #if HAVE_PTHREADS > 4
32930 /* Final pthreads */
32931 pthread_attr_t attr;
32933 status = pthread_attr_init(&attr);
32934 if( status ) return status;
32936 #if HAVE_PTHREADS < 7
32937 status = pthread_attr_setdetachstate(&attr, &detach);
32938 if( status < 0 ) status = errno;
32940 status = pthread_attr_setdetachstate(&attr, detach);
32942 if( status ) return status;
32943 status = pthread_create( &t, &attr, task, NULL );
32944 #if HAVE_PTHREADS < 7
32945 if( status < 0 ) status = errno;
32947 if( status ) return status;
32949 /* Draft 4 pthreads */
32950 status = pthread_create( &t, pthread_attr_default, task, NULL );
32951 if( status ) return errno;
32953 /* give thread a chance to complete */
32954 /* it should remain joinable and hence detachable */
32957 status = pthread_detach( &t );
32958 if( status ) return errno;
32961 #ifdef HAVE_LINUX_THREADS
32962 pthread_kill_other_threads_np();
32971 rm -f conftest.$ac_objext conftest$ac_exeext
32972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32973 (eval $ac_link) 2>conftest.er1
32975 grep -v '^ *+' conftest.er1 >conftest.err
32977 cat conftest.err >&5
32978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32979 (exit $ac_status); } &&
32980 { ac_try='test -z "$ac_c_werror_flag"
32981 || test ! -s conftest.err'
32982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32983 (eval $ac_try) 2>&5
32985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32986 (exit $ac_status); }; } &&
32987 { ac_try='test -s conftest$ac_exeext'
32988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32989 (eval $ac_try) 2>&5
32991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32992 (exit $ac_status); }; }; then
32993 ol_cv_pthread_threads=yes
32995 echo "$as_me: failed program was:" >&5
32996 sed 's/^/| /' conftest.$ac_ext >&5
32998 ol_cv_pthread_threads=no
33000 rm -f conftest.err conftest.$ac_objext \
33001 conftest$ac_exeext conftest.$ac_ext
33003 cat >conftest.$ac_ext <<_ACEOF
33005 /* pthread test headers */
33006 #include <pthread.h>
33007 #if HAVE_PTHREADS < 7
33011 #define NULL (void*)0
33014 static void *task(p)
33017 return (void *) (p == NULL);
33021 int main(argc, argv)
33026 /* pthread test function */
33027 #ifndef PTHREAD_CREATE_DETACHED
33028 #define PTHREAD_CREATE_DETACHED 1
33032 int detach = PTHREAD_CREATE_DETACHED;
33034 #if HAVE_PTHREADS > 4
33035 /* Final pthreads */
33036 pthread_attr_t attr;
33038 status = pthread_attr_init(&attr);
33039 if( status ) return status;
33041 #if HAVE_PTHREADS < 7
33042 status = pthread_attr_setdetachstate(&attr, &detach);
33043 if( status < 0 ) status = errno;
33045 status = pthread_attr_setdetachstate(&attr, detach);
33047 if( status ) return status;
33048 status = pthread_create( &t, &attr, task, NULL );
33049 #if HAVE_PTHREADS < 7
33050 if( status < 0 ) status = errno;
33052 if( status ) return status;
33054 /* Draft 4 pthreads */
33055 status = pthread_create( &t, pthread_attr_default, task, NULL );
33056 if( status ) return errno;
33058 /* give thread a chance to complete */
33059 /* it should remain joinable and hence detachable */
33062 status = pthread_detach( &t );
33063 if( status ) return errno;
33066 #ifdef HAVE_LINUX_THREADS
33067 pthread_kill_other_threads_np();
33075 rm -f conftest$ac_exeext
33076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33077 (eval $ac_link) 2>&5
33079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33080 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33082 (eval $ac_try) 2>&5
33084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33085 (exit $ac_status); }; }; then
33086 ol_cv_pthread_threads=yes
33088 echo "$as_me: program exited with status $ac_status" >&5
33089 echo "$as_me: failed program was:" >&5
33090 sed 's/^/| /' conftest.$ac_ext >&5
33092 ( exit $ac_status )
33093 ol_cv_pthread_threads=no
33095 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33102 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
33103 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
33105 if test $ol_cv_pthread_threads = yes ; then
33106 ol_link_pthreads="-threads"
33107 ol_link_threads=posix
33112 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
33113 if test "$ol_link_threads" = no ; then
33114 # try -lpthreads -lmach -lexc -lc_r
33115 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
33116 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
33117 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
33118 echo $ECHO_N "(cached) $ECHO_C" >&6
33123 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
33125 if test "$cross_compiling" = yes; then
33126 cat >conftest.$ac_ext <<_ACEOF
33129 cat confdefs.h >>conftest.$ac_ext
33130 cat >>conftest.$ac_ext <<_ACEOF
33131 /* end confdefs.h. */
33133 /* pthread test headers */
33134 #include <pthread.h>
33135 #if HAVE_PTHREADS < 7
33139 #define NULL (void*)0
33142 static void *task(p)
33145 return (void *) (p == NULL);
33152 /* pthread test function */
33153 #ifndef PTHREAD_CREATE_DETACHED
33154 #define PTHREAD_CREATE_DETACHED 1
33158 int detach = PTHREAD_CREATE_DETACHED;
33160 #if HAVE_PTHREADS > 4
33161 /* Final pthreads */
33162 pthread_attr_t attr;
33164 status = pthread_attr_init(&attr);
33165 if( status ) return status;
33167 #if HAVE_PTHREADS < 7
33168 status = pthread_attr_setdetachstate(&attr, &detach);
33169 if( status < 0 ) status = errno;
33171 status = pthread_attr_setdetachstate(&attr, detach);
33173 if( status ) return status;
33174 status = pthread_create( &t, &attr, task, NULL );
33175 #if HAVE_PTHREADS < 7
33176 if( status < 0 ) status = errno;
33178 if( status ) return status;
33180 /* Draft 4 pthreads */
33181 status = pthread_create( &t, pthread_attr_default, task, NULL );
33182 if( status ) return errno;
33184 /* give thread a chance to complete */
33185 /* it should remain joinable and hence detachable */
33188 status = pthread_detach( &t );
33189 if( status ) return errno;
33192 #ifdef HAVE_LINUX_THREADS
33193 pthread_kill_other_threads_np();
33202 rm -f conftest.$ac_objext conftest$ac_exeext
33203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33204 (eval $ac_link) 2>conftest.er1
33206 grep -v '^ *+' conftest.er1 >conftest.err
33208 cat conftest.err >&5
33209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33210 (exit $ac_status); } &&
33211 { ac_try='test -z "$ac_c_werror_flag"
33212 || test ! -s conftest.err'
33213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33214 (eval $ac_try) 2>&5
33216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33217 (exit $ac_status); }; } &&
33218 { ac_try='test -s conftest$ac_exeext'
33219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33220 (eval $ac_try) 2>&5
33222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33223 (exit $ac_status); }; }; then
33224 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
33226 echo "$as_me: failed program was:" >&5
33227 sed 's/^/| /' conftest.$ac_ext >&5
33229 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
33231 rm -f conftest.err conftest.$ac_objext \
33232 conftest$ac_exeext conftest.$ac_ext
33234 cat >conftest.$ac_ext <<_ACEOF
33236 /* pthread test headers */
33237 #include <pthread.h>
33238 #if HAVE_PTHREADS < 7
33242 #define NULL (void*)0
33245 static void *task(p)
33248 return (void *) (p == NULL);
33252 int main(argc, argv)
33257 /* pthread test function */
33258 #ifndef PTHREAD_CREATE_DETACHED
33259 #define PTHREAD_CREATE_DETACHED 1
33263 int detach = PTHREAD_CREATE_DETACHED;
33265 #if HAVE_PTHREADS > 4
33266 /* Final pthreads */
33267 pthread_attr_t attr;
33269 status = pthread_attr_init(&attr);
33270 if( status ) return status;
33272 #if HAVE_PTHREADS < 7
33273 status = pthread_attr_setdetachstate(&attr, &detach);
33274 if( status < 0 ) status = errno;
33276 status = pthread_attr_setdetachstate(&attr, detach);
33278 if( status ) return status;
33279 status = pthread_create( &t, &attr, task, NULL );
33280 #if HAVE_PTHREADS < 7
33281 if( status < 0 ) status = errno;
33283 if( status ) return status;
33285 /* Draft 4 pthreads */
33286 status = pthread_create( &t, pthread_attr_default, task, NULL );
33287 if( status ) return errno;
33289 /* give thread a chance to complete */
33290 /* it should remain joinable and hence detachable */
33293 status = pthread_detach( &t );
33294 if( status ) return errno;
33297 #ifdef HAVE_LINUX_THREADS
33298 pthread_kill_other_threads_np();
33306 rm -f conftest$ac_exeext
33307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33308 (eval $ac_link) 2>&5
33310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33311 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33313 (eval $ac_try) 2>&5
33315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33316 (exit $ac_status); }; }; then
33317 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
33319 echo "$as_me: program exited with status $ac_status" >&5
33320 echo "$as_me: failed program was:" >&5
33321 sed 's/^/| /' conftest.$ac_ext >&5
33323 ( exit $ac_status )
33324 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
33326 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33333 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
33334 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
33336 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
33337 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
33338 ol_link_threads=posix
33342 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
33343 if test "$ol_link_threads" = no ; then
33344 # try -lpthreads -lmach -lexc
33345 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
33346 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
33347 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
33348 echo $ECHO_N "(cached) $ECHO_C" >&6
33353 LIBS="-lpthreads -lmach -lexc $LIBS"
33355 if test "$cross_compiling" = yes; then
33356 cat >conftest.$ac_ext <<_ACEOF
33359 cat confdefs.h >>conftest.$ac_ext
33360 cat >>conftest.$ac_ext <<_ACEOF
33361 /* end confdefs.h. */
33363 /* pthread test headers */
33364 #include <pthread.h>
33365 #if HAVE_PTHREADS < 7
33369 #define NULL (void*)0
33372 static void *task(p)
33375 return (void *) (p == NULL);
33382 /* pthread test function */
33383 #ifndef PTHREAD_CREATE_DETACHED
33384 #define PTHREAD_CREATE_DETACHED 1
33388 int detach = PTHREAD_CREATE_DETACHED;
33390 #if HAVE_PTHREADS > 4
33391 /* Final pthreads */
33392 pthread_attr_t attr;
33394 status = pthread_attr_init(&attr);
33395 if( status ) return status;
33397 #if HAVE_PTHREADS < 7
33398 status = pthread_attr_setdetachstate(&attr, &detach);
33399 if( status < 0 ) status = errno;
33401 status = pthread_attr_setdetachstate(&attr, detach);
33403 if( status ) return status;
33404 status = pthread_create( &t, &attr, task, NULL );
33405 #if HAVE_PTHREADS < 7
33406 if( status < 0 ) status = errno;
33408 if( status ) return status;
33410 /* Draft 4 pthreads */
33411 status = pthread_create( &t, pthread_attr_default, task, NULL );
33412 if( status ) return errno;
33414 /* give thread a chance to complete */
33415 /* it should remain joinable and hence detachable */
33418 status = pthread_detach( &t );
33419 if( status ) return errno;
33422 #ifdef HAVE_LINUX_THREADS
33423 pthread_kill_other_threads_np();
33432 rm -f conftest.$ac_objext conftest$ac_exeext
33433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33434 (eval $ac_link) 2>conftest.er1
33436 grep -v '^ *+' conftest.er1 >conftest.err
33438 cat conftest.err >&5
33439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33440 (exit $ac_status); } &&
33441 { ac_try='test -z "$ac_c_werror_flag"
33442 || test ! -s conftest.err'
33443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33444 (eval $ac_try) 2>&5
33446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33447 (exit $ac_status); }; } &&
33448 { ac_try='test -s conftest$ac_exeext'
33449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33450 (eval $ac_try) 2>&5
33452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33453 (exit $ac_status); }; }; then
33454 ol_cv_pthread_lpthreads_lmach_lexc=yes
33456 echo "$as_me: failed program was:" >&5
33457 sed 's/^/| /' conftest.$ac_ext >&5
33459 ol_cv_pthread_lpthreads_lmach_lexc=no
33461 rm -f conftest.err conftest.$ac_objext \
33462 conftest$ac_exeext conftest.$ac_ext
33464 cat >conftest.$ac_ext <<_ACEOF
33466 /* pthread test headers */
33467 #include <pthread.h>
33468 #if HAVE_PTHREADS < 7
33472 #define NULL (void*)0
33475 static void *task(p)
33478 return (void *) (p == NULL);
33482 int main(argc, argv)
33487 /* pthread test function */
33488 #ifndef PTHREAD_CREATE_DETACHED
33489 #define PTHREAD_CREATE_DETACHED 1
33493 int detach = PTHREAD_CREATE_DETACHED;
33495 #if HAVE_PTHREADS > 4
33496 /* Final pthreads */
33497 pthread_attr_t attr;
33499 status = pthread_attr_init(&attr);
33500 if( status ) return status;
33502 #if HAVE_PTHREADS < 7
33503 status = pthread_attr_setdetachstate(&attr, &detach);
33504 if( status < 0 ) status = errno;
33506 status = pthread_attr_setdetachstate(&attr, detach);
33508 if( status ) return status;
33509 status = pthread_create( &t, &attr, task, NULL );
33510 #if HAVE_PTHREADS < 7
33511 if( status < 0 ) status = errno;
33513 if( status ) return status;
33515 /* Draft 4 pthreads */
33516 status = pthread_create( &t, pthread_attr_default, task, NULL );
33517 if( status ) return errno;
33519 /* give thread a chance to complete */
33520 /* it should remain joinable and hence detachable */
33523 status = pthread_detach( &t );
33524 if( status ) return errno;
33527 #ifdef HAVE_LINUX_THREADS
33528 pthread_kill_other_threads_np();
33536 rm -f conftest$ac_exeext
33537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33538 (eval $ac_link) 2>&5
33540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33541 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33543 (eval $ac_try) 2>&5
33545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33546 (exit $ac_status); }; }; then
33547 ol_cv_pthread_lpthreads_lmach_lexc=yes
33549 echo "$as_me: program exited with status $ac_status" >&5
33550 echo "$as_me: failed program was:" >&5
33551 sed 's/^/| /' conftest.$ac_ext >&5
33553 ( exit $ac_status )
33554 ol_cv_pthread_lpthreads_lmach_lexc=no
33556 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33563 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
33564 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
33566 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
33567 ol_link_pthreads="-lpthreads -lmach -lexc"
33568 ol_link_threads=posix
33572 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
33573 if test "$ol_link_threads" = no ; then
33574 # try -lpthreads -lexc
33575 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
33576 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
33577 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
33578 echo $ECHO_N "(cached) $ECHO_C" >&6
33583 LIBS="-lpthreads -lexc $LIBS"
33585 if test "$cross_compiling" = yes; then
33586 cat >conftest.$ac_ext <<_ACEOF
33589 cat confdefs.h >>conftest.$ac_ext
33590 cat >>conftest.$ac_ext <<_ACEOF
33591 /* end confdefs.h. */
33593 /* pthread test headers */
33594 #include <pthread.h>
33595 #if HAVE_PTHREADS < 7
33599 #define NULL (void*)0
33602 static void *task(p)
33605 return (void *) (p == NULL);
33612 /* pthread test function */
33613 #ifndef PTHREAD_CREATE_DETACHED
33614 #define PTHREAD_CREATE_DETACHED 1
33618 int detach = PTHREAD_CREATE_DETACHED;
33620 #if HAVE_PTHREADS > 4
33621 /* Final pthreads */
33622 pthread_attr_t attr;
33624 status = pthread_attr_init(&attr);
33625 if( status ) return status;
33627 #if HAVE_PTHREADS < 7
33628 status = pthread_attr_setdetachstate(&attr, &detach);
33629 if( status < 0 ) status = errno;
33631 status = pthread_attr_setdetachstate(&attr, detach);
33633 if( status ) return status;
33634 status = pthread_create( &t, &attr, task, NULL );
33635 #if HAVE_PTHREADS < 7
33636 if( status < 0 ) status = errno;
33638 if( status ) return status;
33640 /* Draft 4 pthreads */
33641 status = pthread_create( &t, pthread_attr_default, task, NULL );
33642 if( status ) return errno;
33644 /* give thread a chance to complete */
33645 /* it should remain joinable and hence detachable */
33648 status = pthread_detach( &t );
33649 if( status ) return errno;
33652 #ifdef HAVE_LINUX_THREADS
33653 pthread_kill_other_threads_np();
33662 rm -f conftest.$ac_objext conftest$ac_exeext
33663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33664 (eval $ac_link) 2>conftest.er1
33666 grep -v '^ *+' conftest.er1 >conftest.err
33668 cat conftest.err >&5
33669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33670 (exit $ac_status); } &&
33671 { ac_try='test -z "$ac_c_werror_flag"
33672 || test ! -s conftest.err'
33673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33674 (eval $ac_try) 2>&5
33676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33677 (exit $ac_status); }; } &&
33678 { ac_try='test -s conftest$ac_exeext'
33679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33680 (eval $ac_try) 2>&5
33682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33683 (exit $ac_status); }; }; then
33684 ol_cv_pthread_lpthreads_lexc=yes
33686 echo "$as_me: failed program was:" >&5
33687 sed 's/^/| /' conftest.$ac_ext >&5
33689 ol_cv_pthread_lpthreads_lexc=no
33691 rm -f conftest.err conftest.$ac_objext \
33692 conftest$ac_exeext conftest.$ac_ext
33694 cat >conftest.$ac_ext <<_ACEOF
33696 /* pthread test headers */
33697 #include <pthread.h>
33698 #if HAVE_PTHREADS < 7
33702 #define NULL (void*)0
33705 static void *task(p)
33708 return (void *) (p == NULL);
33712 int main(argc, argv)
33717 /* pthread test function */
33718 #ifndef PTHREAD_CREATE_DETACHED
33719 #define PTHREAD_CREATE_DETACHED 1
33723 int detach = PTHREAD_CREATE_DETACHED;
33725 #if HAVE_PTHREADS > 4
33726 /* Final pthreads */
33727 pthread_attr_t attr;
33729 status = pthread_attr_init(&attr);
33730 if( status ) return status;
33732 #if HAVE_PTHREADS < 7
33733 status = pthread_attr_setdetachstate(&attr, &detach);
33734 if( status < 0 ) status = errno;
33736 status = pthread_attr_setdetachstate(&attr, detach);
33738 if( status ) return status;
33739 status = pthread_create( &t, &attr, task, NULL );
33740 #if HAVE_PTHREADS < 7
33741 if( status < 0 ) status = errno;
33743 if( status ) return status;
33745 /* Draft 4 pthreads */
33746 status = pthread_create( &t, pthread_attr_default, task, NULL );
33747 if( status ) return errno;
33749 /* give thread a chance to complete */
33750 /* it should remain joinable and hence detachable */
33753 status = pthread_detach( &t );
33754 if( status ) return errno;
33757 #ifdef HAVE_LINUX_THREADS
33758 pthread_kill_other_threads_np();
33766 rm -f conftest$ac_exeext
33767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33768 (eval $ac_link) 2>&5
33770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33771 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33773 (eval $ac_try) 2>&5
33775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33776 (exit $ac_status); }; }; then
33777 ol_cv_pthread_lpthreads_lexc=yes
33779 echo "$as_me: program exited with status $ac_status" >&5
33780 echo "$as_me: failed program was:" >&5
33781 sed 's/^/| /' conftest.$ac_ext >&5
33783 ( exit $ac_status )
33784 ol_cv_pthread_lpthreads_lexc=no
33786 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33793 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
33794 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
33796 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
33797 ol_link_pthreads="-lpthreads -lexc"
33798 ol_link_threads=posix
33803 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
33804 if test "$ol_link_threads" = no ; then
33806 echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
33807 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
33808 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
33809 echo $ECHO_N "(cached) $ECHO_C" >&6
33814 LIBS="-lpthreads $LIBS"
33816 if test "$cross_compiling" = yes; then
33817 cat >conftest.$ac_ext <<_ACEOF
33820 cat confdefs.h >>conftest.$ac_ext
33821 cat >>conftest.$ac_ext <<_ACEOF
33822 /* end confdefs.h. */
33824 /* pthread test headers */
33825 #include <pthread.h>
33826 #if HAVE_PTHREADS < 7
33830 #define NULL (void*)0
33833 static void *task(p)
33836 return (void *) (p == NULL);
33843 /* pthread test function */
33844 #ifndef PTHREAD_CREATE_DETACHED
33845 #define PTHREAD_CREATE_DETACHED 1
33849 int detach = PTHREAD_CREATE_DETACHED;
33851 #if HAVE_PTHREADS > 4
33852 /* Final pthreads */
33853 pthread_attr_t attr;
33855 status = pthread_attr_init(&attr);
33856 if( status ) return status;
33858 #if HAVE_PTHREADS < 7
33859 status = pthread_attr_setdetachstate(&attr, &detach);
33860 if( status < 0 ) status = errno;
33862 status = pthread_attr_setdetachstate(&attr, detach);
33864 if( status ) return status;
33865 status = pthread_create( &t, &attr, task, NULL );
33866 #if HAVE_PTHREADS < 7
33867 if( status < 0 ) status = errno;
33869 if( status ) return status;
33871 /* Draft 4 pthreads */
33872 status = pthread_create( &t, pthread_attr_default, task, NULL );
33873 if( status ) return errno;
33875 /* give thread a chance to complete */
33876 /* it should remain joinable and hence detachable */
33879 status = pthread_detach( &t );
33880 if( status ) return errno;
33883 #ifdef HAVE_LINUX_THREADS
33884 pthread_kill_other_threads_np();
33893 rm -f conftest.$ac_objext conftest$ac_exeext
33894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33895 (eval $ac_link) 2>conftest.er1
33897 grep -v '^ *+' conftest.er1 >conftest.err
33899 cat conftest.err >&5
33900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33901 (exit $ac_status); } &&
33902 { ac_try='test -z "$ac_c_werror_flag"
33903 || test ! -s conftest.err'
33904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33905 (eval $ac_try) 2>&5
33907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33908 (exit $ac_status); }; } &&
33909 { ac_try='test -s conftest$ac_exeext'
33910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33911 (eval $ac_try) 2>&5
33913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33914 (exit $ac_status); }; }; then
33915 ol_cv_pthread_lib_lpthreads=yes
33917 echo "$as_me: failed program was:" >&5
33918 sed 's/^/| /' conftest.$ac_ext >&5
33920 ol_cv_pthread_lib_lpthreads=no
33922 rm -f conftest.err conftest.$ac_objext \
33923 conftest$ac_exeext conftest.$ac_ext
33925 cat >conftest.$ac_ext <<_ACEOF
33927 /* pthread test headers */
33928 #include <pthread.h>
33929 #if HAVE_PTHREADS < 7
33933 #define NULL (void*)0
33936 static void *task(p)
33939 return (void *) (p == NULL);
33943 int main(argc, argv)
33948 /* pthread test function */
33949 #ifndef PTHREAD_CREATE_DETACHED
33950 #define PTHREAD_CREATE_DETACHED 1
33954 int detach = PTHREAD_CREATE_DETACHED;
33956 #if HAVE_PTHREADS > 4
33957 /* Final pthreads */
33958 pthread_attr_t attr;
33960 status = pthread_attr_init(&attr);
33961 if( status ) return status;
33963 #if HAVE_PTHREADS < 7
33964 status = pthread_attr_setdetachstate(&attr, &detach);
33965 if( status < 0 ) status = errno;
33967 status = pthread_attr_setdetachstate(&attr, detach);
33969 if( status ) return status;
33970 status = pthread_create( &t, &attr, task, NULL );
33971 #if HAVE_PTHREADS < 7
33972 if( status < 0 ) status = errno;
33974 if( status ) return status;
33976 /* Draft 4 pthreads */
33977 status = pthread_create( &t, pthread_attr_default, task, NULL );
33978 if( status ) return errno;
33980 /* give thread a chance to complete */
33981 /* it should remain joinable and hence detachable */
33984 status = pthread_detach( &t );
33985 if( status ) return errno;
33988 #ifdef HAVE_LINUX_THREADS
33989 pthread_kill_other_threads_np();
33997 rm -f conftest$ac_exeext
33998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33999 (eval $ac_link) 2>&5
34001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34002 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34004 (eval $ac_try) 2>&5
34006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34007 (exit $ac_status); }; }; then
34008 ol_cv_pthread_lib_lpthreads=yes
34010 echo "$as_me: program exited with status $ac_status" >&5
34011 echo "$as_me: failed program was:" >&5
34012 sed 's/^/| /' conftest.$ac_ext >&5
34014 ( exit $ac_status )
34015 ol_cv_pthread_lib_lpthreads=no
34017 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34024 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
34025 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
34027 if test $ol_cv_pthread_lib_lpthreads = yes ; then
34028 ol_link_pthreads="-lpthreads"
34029 ol_link_threads=posix
34034 if test $ol_link_threads != no ; then
34035 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
34037 save_CPPFLAGS="$CPPFLAGS"
34039 LIBS="$LTHREAD_LIBS $LIBS"
34044 for ac_func in sched_yield pthread_yield thr_yield
34046 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34047 echo "$as_me:$LINENO: checking for $ac_func" >&5
34048 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34049 if eval "test \"\${$as_ac_var+set}\" = set"; then
34050 echo $ECHO_N "(cached) $ECHO_C" >&6
34052 cat >conftest.$ac_ext <<_ACEOF
34055 cat confdefs.h >>conftest.$ac_ext
34056 cat >>conftest.$ac_ext <<_ACEOF
34057 /* end confdefs.h. */
34058 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34059 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34060 #define $ac_func innocuous_$ac_func
34062 /* System header to define __stub macros and hopefully few prototypes,
34063 which can conflict with char $ac_func (); below.
34064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34065 <limits.h> exists even on freestanding compilers. */
34068 # include <limits.h>
34070 # include <assert.h>
34075 /* Override any gcc2 internal prototype to avoid an error. */
34080 /* We use char because int might match the return type of a gcc2
34081 builtin and then its argument prototype would still apply. */
34083 /* The GNU C library defines this for functions which it implements
34084 to always fail with ENOSYS. Some functions are actually named
34085 something starting with __ and the normal name is an alias. */
34086 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34089 char (*f) () = $ac_func;
34098 return f != $ac_func;
34103 rm -f conftest.$ac_objext conftest$ac_exeext
34104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34105 (eval $ac_link) 2>conftest.er1
34107 grep -v '^ *+' conftest.er1 >conftest.err
34109 cat conftest.err >&5
34110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34111 (exit $ac_status); } &&
34112 { ac_try='test -z "$ac_c_werror_flag"
34113 || test ! -s conftest.err'
34114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34115 (eval $ac_try) 2>&5
34117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34118 (exit $ac_status); }; } &&
34119 { ac_try='test -s conftest$ac_exeext'
34120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34121 (eval $ac_try) 2>&5
34123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34124 (exit $ac_status); }; }; then
34125 eval "$as_ac_var=yes"
34127 echo "$as_me: failed program was:" >&5
34128 sed 's/^/| /' conftest.$ac_ext >&5
34130 eval "$as_ac_var=no"
34132 rm -f conftest.err conftest.$ac_objext \
34133 conftest$ac_exeext conftest.$ac_ext
34135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34136 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34137 if test `eval echo '${'$as_ac_var'}'` = yes; then
34138 cat >>confdefs.h <<_ACEOF
34139 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34146 if test $ac_cv_func_sched_yield = no -a \
34147 $ac_cv_func_pthread_yield = no -a \
34148 $ac_cv_func_thr_yield = no ; then
34149 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
34150 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
34151 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
34152 echo $ECHO_N "(cached) $ECHO_C" >&6
34154 ac_check_lib_save_LIBS=$LIBS
34156 cat >conftest.$ac_ext <<_ACEOF
34159 cat confdefs.h >>conftest.$ac_ext
34160 cat >>conftest.$ac_ext <<_ACEOF
34161 /* end confdefs.h. */
34163 /* Override any gcc2 internal prototype to avoid an error. */
34167 /* We use char because int might match the return type of a gcc2
34168 builtin and then its argument prototype would still apply. */
34169 char sched_yield ();
34178 rm -f conftest.$ac_objext conftest$ac_exeext
34179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34180 (eval $ac_link) 2>conftest.er1
34182 grep -v '^ *+' conftest.er1 >conftest.err
34184 cat conftest.err >&5
34185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34186 (exit $ac_status); } &&
34187 { ac_try='test -z "$ac_c_werror_flag"
34188 || test ! -s conftest.err'
34189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34190 (eval $ac_try) 2>&5
34192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34193 (exit $ac_status); }; } &&
34194 { ac_try='test -s conftest$ac_exeext'
34195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34196 (eval $ac_try) 2>&5
34198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34199 (exit $ac_status); }; }; then
34200 ac_cv_lib_rt_sched_yield=yes
34202 echo "$as_me: failed program was:" >&5
34203 sed 's/^/| /' conftest.$ac_ext >&5
34205 ac_cv_lib_rt_sched_yield=no
34207 rm -f conftest.err conftest.$ac_objext \
34208 conftest$ac_exeext conftest.$ac_ext
34209 LIBS=$ac_check_lib_save_LIBS
34211 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
34212 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
34213 if test $ac_cv_lib_rt_sched_yield = yes; then
34214 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
34216 cat >>confdefs.h <<\_ACEOF
34217 #define HAVE_SCHED_YIELD 1
34220 ac_cv_func_sched_yield=yes
34222 ac_cv_func_sched_yield=no
34226 if test $ac_cv_func_sched_yield = no -a \
34227 $ac_cv_func_pthread_yield = no -a \
34228 "$ac_cv_func_thr_yield" = no ; then
34229 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
34230 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
34235 for ac_func in pthread_kill pthread_rwlock_destroy
34237 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34238 echo "$as_me:$LINENO: checking for $ac_func" >&5
34239 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34240 if eval "test \"\${$as_ac_var+set}\" = set"; then
34241 echo $ECHO_N "(cached) $ECHO_C" >&6
34243 cat >conftest.$ac_ext <<_ACEOF
34246 cat confdefs.h >>conftest.$ac_ext
34247 cat >>conftest.$ac_ext <<_ACEOF
34248 /* end confdefs.h. */
34249 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34250 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34251 #define $ac_func innocuous_$ac_func
34253 /* System header to define __stub macros and hopefully few prototypes,
34254 which can conflict with char $ac_func (); below.
34255 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34256 <limits.h> exists even on freestanding compilers. */
34259 # include <limits.h>
34261 # include <assert.h>
34266 /* Override any gcc2 internal prototype to avoid an error. */
34271 /* We use char because int might match the return type of a gcc2
34272 builtin and then its argument prototype would still apply. */
34274 /* The GNU C library defines this for functions which it implements
34275 to always fail with ENOSYS. Some functions are actually named
34276 something starting with __ and the normal name is an alias. */
34277 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34280 char (*f) () = $ac_func;
34289 return f != $ac_func;
34294 rm -f conftest.$ac_objext conftest$ac_exeext
34295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34296 (eval $ac_link) 2>conftest.er1
34298 grep -v '^ *+' conftest.er1 >conftest.err
34300 cat conftest.err >&5
34301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34302 (exit $ac_status); } &&
34303 { ac_try='test -z "$ac_c_werror_flag"
34304 || test ! -s conftest.err'
34305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34306 (eval $ac_try) 2>&5
34308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34309 (exit $ac_status); }; } &&
34310 { ac_try='test -s conftest$ac_exeext'
34311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34312 (eval $ac_try) 2>&5
34314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34315 (exit $ac_status); }; }; then
34316 eval "$as_ac_var=yes"
34318 echo "$as_me: failed program was:" >&5
34319 sed 's/^/| /' conftest.$ac_ext >&5
34321 eval "$as_ac_var=no"
34323 rm -f conftest.err conftest.$ac_objext \
34324 conftest$ac_exeext conftest.$ac_ext
34326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34327 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34328 if test `eval echo '${'$as_ac_var'}'` = yes; then
34329 cat >>confdefs.h <<_ACEOF
34330 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34337 echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
34338 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
34339 if test "${ol_cv_func_pthread_detach+set}" = set; then
34340 echo $ECHO_N "(cached) $ECHO_C" >&6
34343 cat >conftest.$ac_ext <<_ACEOF
34346 cat confdefs.h >>conftest.$ac_ext
34347 cat >>conftest.$ac_ext <<_ACEOF
34348 /* end confdefs.h. */
34350 #include <pthread.h>
34352 #define NULL (void*)0
34358 pthread_detach(NULL);
34363 rm -f conftest.$ac_objext conftest$ac_exeext
34364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34365 (eval $ac_link) 2>conftest.er1
34367 grep -v '^ *+' conftest.er1 >conftest.err
34369 cat conftest.err >&5
34370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34371 (exit $ac_status); } &&
34372 { ac_try='test -z "$ac_c_werror_flag"
34373 || test ! -s conftest.err'
34374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34375 (eval $ac_try) 2>&5
34377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34378 (exit $ac_status); }; } &&
34379 { ac_try='test -s conftest$ac_exeext'
34380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34381 (eval $ac_try) 2>&5
34383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34384 (exit $ac_status); }; }; then
34385 ol_cv_func_pthread_detach=yes
34387 echo "$as_me: failed program was:" >&5
34388 sed 's/^/| /' conftest.$ac_ext >&5
34390 ol_cv_func_pthread_detach=no
34392 rm -f conftest.err conftest.$ac_objext \
34393 conftest$ac_exeext conftest.$ac_ext
34396 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
34397 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
34399 if test $ol_cv_func_pthread_detach = no ; then
34400 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
34401 echo "$as_me: error: could not locate pthread_detach()" >&2;}
34402 { (exit 1); exit 1; }; }
34406 cat >>confdefs.h <<\_ACEOF
34407 #define HAVE_PTHREAD_DETACH 1
34416 pthread_setconcurrency \
34417 pthread_getconcurrency \
34418 thr_setconcurrency \
34419 thr_getconcurrency \
34422 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34423 echo "$as_me:$LINENO: checking for $ac_func" >&5
34424 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34425 if eval "test \"\${$as_ac_var+set}\" = set"; then
34426 echo $ECHO_N "(cached) $ECHO_C" >&6
34428 cat >conftest.$ac_ext <<_ACEOF
34431 cat confdefs.h >>conftest.$ac_ext
34432 cat >>conftest.$ac_ext <<_ACEOF
34433 /* end confdefs.h. */
34434 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34435 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34436 #define $ac_func innocuous_$ac_func
34438 /* System header to define __stub macros and hopefully few prototypes,
34439 which can conflict with char $ac_func (); below.
34440 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34441 <limits.h> exists even on freestanding compilers. */
34444 # include <limits.h>
34446 # include <assert.h>
34451 /* Override any gcc2 internal prototype to avoid an error. */
34456 /* We use char because int might match the return type of a gcc2
34457 builtin and then its argument prototype would still apply. */
34459 /* The GNU C library defines this for functions which it implements
34460 to always fail with ENOSYS. Some functions are actually named
34461 something starting with __ and the normal name is an alias. */
34462 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34465 char (*f) () = $ac_func;
34474 return f != $ac_func;
34479 rm -f conftest.$ac_objext conftest$ac_exeext
34480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34481 (eval $ac_link) 2>conftest.er1
34483 grep -v '^ *+' conftest.er1 >conftest.err
34485 cat conftest.err >&5
34486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34487 (exit $ac_status); } &&
34488 { ac_try='test -z "$ac_c_werror_flag"
34489 || test ! -s conftest.err'
34490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34491 (eval $ac_try) 2>&5
34493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34494 (exit $ac_status); }; } &&
34495 { ac_try='test -s conftest$ac_exeext'
34496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34497 (eval $ac_try) 2>&5
34499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34500 (exit $ac_status); }; }; then
34501 eval "$as_ac_var=yes"
34503 echo "$as_me: failed program was:" >&5
34504 sed 's/^/| /' conftest.$ac_ext >&5
34506 eval "$as_ac_var=no"
34508 rm -f conftest.err conftest.$ac_objext \
34509 conftest$ac_exeext conftest.$ac_ext
34511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34512 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34513 if test `eval echo '${'$as_ac_var'}'` = yes; then
34514 cat >>confdefs.h <<_ACEOF
34515 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34524 for ac_func in pthread_kill_other_threads_np
34526 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34527 echo "$as_me:$LINENO: checking for $ac_func" >&5
34528 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34529 if eval "test \"\${$as_ac_var+set}\" = set"; then
34530 echo $ECHO_N "(cached) $ECHO_C" >&6
34532 cat >conftest.$ac_ext <<_ACEOF
34535 cat confdefs.h >>conftest.$ac_ext
34536 cat >>conftest.$ac_ext <<_ACEOF
34537 /* end confdefs.h. */
34538 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34539 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34540 #define $ac_func innocuous_$ac_func
34542 /* System header to define __stub macros and hopefully few prototypes,
34543 which can conflict with char $ac_func (); below.
34544 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34545 <limits.h> exists even on freestanding compilers. */
34548 # include <limits.h>
34550 # include <assert.h>
34555 /* Override any gcc2 internal prototype to avoid an error. */
34560 /* We use char because int might match the return type of a gcc2
34561 builtin and then its argument prototype would still apply. */
34563 /* The GNU C library defines this for functions which it implements
34564 to always fail with ENOSYS. Some functions are actually named
34565 something starting with __ and the normal name is an alias. */
34566 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34569 char (*f) () = $ac_func;
34578 return f != $ac_func;
34583 rm -f conftest.$ac_objext conftest$ac_exeext
34584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34585 (eval $ac_link) 2>conftest.er1
34587 grep -v '^ *+' conftest.er1 >conftest.err
34589 cat conftest.err >&5
34590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34591 (exit $ac_status); } &&
34592 { ac_try='test -z "$ac_c_werror_flag"
34593 || test ! -s conftest.err'
34594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34595 (eval $ac_try) 2>&5
34597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34598 (exit $ac_status); }; } &&
34599 { ac_try='test -s conftest$ac_exeext'
34600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34601 (eval $ac_try) 2>&5
34603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34604 (exit $ac_status); }; }; then
34605 eval "$as_ac_var=yes"
34607 echo "$as_me: failed program was:" >&5
34608 sed 's/^/| /' conftest.$ac_ext >&5
34610 eval "$as_ac_var=no"
34612 rm -f conftest.err conftest.$ac_objext \
34613 conftest$ac_exeext conftest.$ac_ext
34615 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34616 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34617 if test `eval echo '${'$as_ac_var'}'` = yes; then
34618 cat >>confdefs.h <<_ACEOF
34619 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34625 echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
34626 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
34627 if test "${ol_cv_sys_linux_threads+set}" = set; then
34628 echo $ECHO_N "(cached) $ECHO_C" >&6
34630 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
34632 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
34633 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
34638 echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
34639 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
34640 if test "${ol_cv_linux_threads+set}" = set; then
34641 echo $ECHO_N "(cached) $ECHO_C" >&6
34644 if test $ol_cv_header_linux_threads = yes -a \
34645 $ol_cv_sys_linux_threads = yes; then
34646 ol_cv_linux_threads=yes
34647 elif test $ol_cv_header_linux_threads = no -a \
34648 $ol_cv_sys_linux_threads = no; then
34649 ol_cv_linux_threads=no
34651 ol_cv_linux_threads=error
34655 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
34656 echo "${ECHO_T}$ol_cv_linux_threads" >&6
34659 if test $ol_cv_linux_threads = error; then
34660 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
34661 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
34662 { (exit 1); exit 1; }; };
34665 echo "$as_me:$LINENO: checking if pthread_create() works" >&5
34666 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
34667 if test "${ol_cv_pthread_create_works+set}" = set; then
34668 echo $ECHO_N "(cached) $ECHO_C" >&6
34671 if test "$cross_compiling" = yes; then
34672 ol_cv_pthread_create_works=yes
34674 cat >conftest.$ac_ext <<_ACEOF
34676 /* pthread test headers */
34677 #include <pthread.h>
34678 #if HAVE_PTHREADS < 7
34682 #define NULL (void*)0
34685 static void *task(p)
34688 return (void *) (p == NULL);
34692 int main(argc, argv)
34697 /* pthread test function */
34698 #ifndef PTHREAD_CREATE_DETACHED
34699 #define PTHREAD_CREATE_DETACHED 1
34703 int detach = PTHREAD_CREATE_DETACHED;
34705 #if HAVE_PTHREADS > 4
34706 /* Final pthreads */
34707 pthread_attr_t attr;
34709 status = pthread_attr_init(&attr);
34710 if( status ) return status;
34712 #if HAVE_PTHREADS < 7
34713 status = pthread_attr_setdetachstate(&attr, &detach);
34714 if( status < 0 ) status = errno;
34716 status = pthread_attr_setdetachstate(&attr, detach);
34718 if( status ) return status;
34719 status = pthread_create( &t, &attr, task, NULL );
34720 #if HAVE_PTHREADS < 7
34721 if( status < 0 ) status = errno;
34723 if( status ) return status;
34725 /* Draft 4 pthreads */
34726 status = pthread_create( &t, pthread_attr_default, task, NULL );
34727 if( status ) return errno;
34729 /* give thread a chance to complete */
34730 /* it should remain joinable and hence detachable */
34733 status = pthread_detach( &t );
34734 if( status ) return errno;
34737 #ifdef HAVE_LINUX_THREADS
34738 pthread_kill_other_threads_np();
34746 rm -f conftest$ac_exeext
34747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34748 (eval $ac_link) 2>&5
34750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34751 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34753 (eval $ac_try) 2>&5
34755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34756 (exit $ac_status); }; }; then
34757 ol_cv_pthread_create_works=yes
34759 echo "$as_me: program exited with status $ac_status" >&5
34760 echo "$as_me: failed program was:" >&5
34761 sed 's/^/| /' conftest.$ac_ext >&5
34763 ( exit $ac_status )
34764 ol_cv_pthread_create_works=no
34766 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34769 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
34770 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
34772 if test $ol_cv_pthread_create_works = no ; then
34773 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
34774 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
34775 { (exit 1); exit 1; }; }
34778 if test $ol_with_yielding_select = auto ; then
34779 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
34780 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
34781 if test "${ol_cv_pthread_select_yields+set}" = set; then
34782 echo $ECHO_N "(cached) $ECHO_C" >&6
34785 if test "$cross_compiling" = yes; then
34786 ol_cv_pthread_select_yields=cross
34788 cat >conftest.$ac_ext <<_ACEOF
34791 cat confdefs.h >>conftest.$ac_ext
34792 cat >>conftest.$ac_ext <<_ACEOF
34793 /* end confdefs.h. */
34795 #include <sys/types.h>
34796 #include <sys/time.h>
34797 #include <unistd.h>
34798 #include <pthread.h>
34800 #define NULL (void*) 0
34803 static int fildes[2];
34805 static void *task(p)
34817 FD_SET(fildes[0], &rfds);
34819 /* we're not interested in any fds */
34820 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
34827 exit(0); /* if we exit here, the select blocked the whole process */
34830 int main(argc, argv)
34836 /* create a pipe to select */
34837 if(pipe(&fildes[0])) {
34842 #ifdef HAVE_PTHREAD_SETCONCURRENCY
34843 (void) pthread_setconcurrency(2);
34845 #ifdef HAVE_THR_SETCONCURRENCY
34846 /* Set Solaris LWP concurrency to 2 */
34847 thr_setconcurrency(2);
34851 #if HAVE_PTHREADS < 6
34852 pthread_create(&t, pthread_attr_default, task, NULL);
34854 pthread_create(&t, NULL, task, NULL);
34857 /* make sure task runs first */
34860 #elif defined( HAVE_SCHED_YIELD )
34862 #elif defined( HAVE_PTHREAD_YIELD )
34869 rm -f conftest$ac_exeext
34870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34871 (eval $ac_link) 2>&5
34873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34874 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34876 (eval $ac_try) 2>&5
34878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34879 (exit $ac_status); }; }; then
34880 ol_cv_pthread_select_yields=no
34882 echo "$as_me: program exited with status $ac_status" >&5
34883 echo "$as_me: failed program was:" >&5
34884 sed 's/^/| /' conftest.$ac_ext >&5
34886 ( exit $ac_status )
34887 ol_cv_pthread_select_yields=yes
34889 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34892 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
34893 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
34895 if test $ol_cv_pthread_select_yields = cross ; then
34896 { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
34897 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
34898 { (exit 1); exit 1; }; }
34901 if test $ol_cv_pthread_select_yields = yes ; then
34902 ol_with_yielding_select=yes
34906 CPPFLAGS="$save_CPPFLAGS"
34909 { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
34910 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
34911 { (exit 1); exit 1; }; }
34915 if test $ol_with_threads = posix ; then
34916 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
34917 echo "$as_me: error: could not locate POSIX Threads" >&2;}
34918 { (exit 1); exit 1; }; }
34922 if test $ol_with_threads = auto -o $ol_with_threads = yes \
34923 -o $ol_with_threads = mach ; then
34927 for ac_header in mach/cthreads.h cthreads.h
34929 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34931 echo "$as_me:$LINENO: checking for $ac_header" >&5
34932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34934 echo $ECHO_N "(cached) $ECHO_C" >&6
34936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34937 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34939 # Is the header compilable?
34940 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34941 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34942 cat >conftest.$ac_ext <<_ACEOF
34945 cat confdefs.h >>conftest.$ac_ext
34946 cat >>conftest.$ac_ext <<_ACEOF
34947 /* end confdefs.h. */
34948 $ac_includes_default
34949 #include <$ac_header>
34951 rm -f conftest.$ac_objext
34952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34953 (eval $ac_compile) 2>conftest.er1
34955 grep -v '^ *+' conftest.er1 >conftest.err
34957 cat conftest.err >&5
34958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34959 (exit $ac_status); } &&
34960 { ac_try='test -z "$ac_c_werror_flag"
34961 || test ! -s conftest.err'
34962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34963 (eval $ac_try) 2>&5
34965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34966 (exit $ac_status); }; } &&
34967 { ac_try='test -s conftest.$ac_objext'
34968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34969 (eval $ac_try) 2>&5
34971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34972 (exit $ac_status); }; }; then
34973 ac_header_compiler=yes
34975 echo "$as_me: failed program was:" >&5
34976 sed 's/^/| /' conftest.$ac_ext >&5
34978 ac_header_compiler=no
34980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34981 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34982 echo "${ECHO_T}$ac_header_compiler" >&6
34984 # Is the header present?
34985 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34986 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34987 cat >conftest.$ac_ext <<_ACEOF
34990 cat confdefs.h >>conftest.$ac_ext
34991 cat >>conftest.$ac_ext <<_ACEOF
34992 /* end confdefs.h. */
34993 #include <$ac_header>
34995 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34996 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34998 grep -v '^ *+' conftest.er1 >conftest.err
35000 cat conftest.err >&5
35001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35002 (exit $ac_status); } >/dev/null; then
35003 if test -s conftest.err; then
35004 ac_cpp_err=$ac_c_preproc_warn_flag
35005 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35012 if test -z "$ac_cpp_err"; then
35013 ac_header_preproc=yes
35015 echo "$as_me: failed program was:" >&5
35016 sed 's/^/| /' conftest.$ac_ext >&5
35018 ac_header_preproc=no
35020 rm -f conftest.err conftest.$ac_ext
35021 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35022 echo "${ECHO_T}$ac_header_preproc" >&6
35024 # So? What about this header?
35025 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35027 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35028 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35030 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35031 ac_header_preproc=yes
35034 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35035 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35036 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35037 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35038 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35039 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35040 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35041 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35043 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35044 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35045 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35048 ## ------------------------------------------ ##
35049 ## Report this to the AC_PACKAGE_NAME lists. ##
35050 ## ------------------------------------------ ##
35053 sed "s/^/$as_me: WARNING: /" >&2
35056 echo "$as_me:$LINENO: checking for $ac_header" >&5
35057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35059 echo $ECHO_N "(cached) $ECHO_C" >&6
35061 eval "$as_ac_Header=\$ac_header_preproc"
35063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35064 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35067 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35068 cat >>confdefs.h <<_ACEOF
35069 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35076 if test $ac_cv_header_mach_cthreads_h = yes ; then
35077 ol_with_threads=found
35079 echo "$as_me:$LINENO: checking for cthread_fork" >&5
35080 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
35081 if test "${ac_cv_func_cthread_fork+set}" = set; then
35082 echo $ECHO_N "(cached) $ECHO_C" >&6
35084 cat >conftest.$ac_ext <<_ACEOF
35087 cat confdefs.h >>conftest.$ac_ext
35088 cat >>conftest.$ac_ext <<_ACEOF
35089 /* end confdefs.h. */
35090 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
35091 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35092 #define cthread_fork innocuous_cthread_fork
35094 /* System header to define __stub macros and hopefully few prototypes,
35095 which can conflict with char cthread_fork (); below.
35096 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35097 <limits.h> exists even on freestanding compilers. */
35100 # include <limits.h>
35102 # include <assert.h>
35105 #undef cthread_fork
35107 /* Override any gcc2 internal prototype to avoid an error. */
35112 /* We use char because int might match the return type of a gcc2
35113 builtin and then its argument prototype would still apply. */
35114 char cthread_fork ();
35115 /* The GNU C library defines this for functions which it implements
35116 to always fail with ENOSYS. Some functions are actually named
35117 something starting with __ and the normal name is an alias. */
35118 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
35121 char (*f) () = cthread_fork;
35130 return f != cthread_fork;
35135 rm -f conftest.$ac_objext conftest$ac_exeext
35136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35137 (eval $ac_link) 2>conftest.er1
35139 grep -v '^ *+' conftest.er1 >conftest.err
35141 cat conftest.err >&5
35142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35143 (exit $ac_status); } &&
35144 { ac_try='test -z "$ac_c_werror_flag"
35145 || test ! -s conftest.err'
35146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35147 (eval $ac_try) 2>&5
35149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35150 (exit $ac_status); }; } &&
35151 { ac_try='test -s conftest$ac_exeext'
35152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35153 (eval $ac_try) 2>&5
35155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35156 (exit $ac_status); }; }; then
35157 ac_cv_func_cthread_fork=yes
35159 echo "$as_me: failed program was:" >&5
35160 sed 's/^/| /' conftest.$ac_ext >&5
35162 ac_cv_func_cthread_fork=no
35164 rm -f conftest.err conftest.$ac_objext \
35165 conftest$ac_exeext conftest.$ac_ext
35167 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
35168 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
35169 if test $ac_cv_func_cthread_fork = yes; then
35170 ol_link_threads=yes
35174 if test $ol_link_threads = no ; then
35175 echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
35176 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
35177 if test "${ol_cv_cthread_all_load+set}" = set; then
35178 echo $ECHO_N "(cached) $ECHO_C" >&6
35182 LIBS="-all_load $LIBS"
35183 cat >conftest.$ac_ext <<_ACEOF
35186 cat confdefs.h >>conftest.$ac_ext
35187 cat >>conftest.$ac_ext <<_ACEOF
35188 /* end confdefs.h. */
35189 #include <mach/cthreads.h>
35194 cthread_fork((void *)0, (void *)0);
35200 rm -f conftest.$ac_objext conftest$ac_exeext
35201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35202 (eval $ac_link) 2>conftest.er1
35204 grep -v '^ *+' conftest.er1 >conftest.err
35206 cat conftest.err >&5
35207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35208 (exit $ac_status); } &&
35209 { ac_try='test -z "$ac_c_werror_flag"
35210 || test ! -s conftest.err'
35211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35212 (eval $ac_try) 2>&5
35214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35215 (exit $ac_status); }; } &&
35216 { ac_try='test -s conftest$ac_exeext'
35217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35218 (eval $ac_try) 2>&5
35220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35221 (exit $ac_status); }; }; then
35222 ol_cv_cthread_all_load=yes
35224 echo "$as_me: failed program was:" >&5
35225 sed 's/^/| /' conftest.$ac_ext >&5
35227 ol_cv_cthread_all_load=no
35229 rm -f conftest.err conftest.$ac_objext \
35230 conftest$ac_exeext conftest.$ac_ext
35234 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
35235 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
35237 if test $ol_cv_cthread_all_load = yes ; then
35238 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
35239 ol_link_threads=mach
35240 ol_with_threads=found
35244 elif test $ac_cv_header_cthreads_h = yes ; then
35246 ol_with_threads=found
35249 LIBS="$LIBS -lthreads"
35250 echo "$as_me:$LINENO: checking for cthread_fork" >&5
35251 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
35252 if test "${ac_cv_func_cthread_fork+set}" = set; then
35253 echo $ECHO_N "(cached) $ECHO_C" >&6
35255 cat >conftest.$ac_ext <<_ACEOF
35258 cat confdefs.h >>conftest.$ac_ext
35259 cat >>conftest.$ac_ext <<_ACEOF
35260 /* end confdefs.h. */
35261 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
35262 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35263 #define cthread_fork innocuous_cthread_fork
35265 /* System header to define __stub macros and hopefully few prototypes,
35266 which can conflict with char cthread_fork (); below.
35267 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35268 <limits.h> exists even on freestanding compilers. */
35271 # include <limits.h>
35273 # include <assert.h>
35276 #undef cthread_fork
35278 /* Override any gcc2 internal prototype to avoid an error. */
35283 /* We use char because int might match the return type of a gcc2
35284 builtin and then its argument prototype would still apply. */
35285 char cthread_fork ();
35286 /* The GNU C library defines this for functions which it implements
35287 to always fail with ENOSYS. Some functions are actually named
35288 something starting with __ and the normal name is an alias. */
35289 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
35292 char (*f) () = cthread_fork;
35301 return f != cthread_fork;
35306 rm -f conftest.$ac_objext conftest$ac_exeext
35307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35308 (eval $ac_link) 2>conftest.er1
35310 grep -v '^ *+' conftest.er1 >conftest.err
35312 cat conftest.err >&5
35313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35314 (exit $ac_status); } &&
35315 { ac_try='test -z "$ac_c_werror_flag"
35316 || test ! -s conftest.err'
35317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35318 (eval $ac_try) 2>&5
35320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35321 (exit $ac_status); }; } &&
35322 { ac_try='test -s conftest$ac_exeext'
35323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35324 (eval $ac_try) 2>&5
35326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35327 (exit $ac_status); }; }; then
35328 ac_cv_func_cthread_fork=yes
35330 echo "$as_me: failed program was:" >&5
35331 sed 's/^/| /' conftest.$ac_ext >&5
35333 ac_cv_func_cthread_fork=no
35335 rm -f conftest.err conftest.$ac_objext \
35336 conftest$ac_exeext conftest.$ac_ext
35338 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
35339 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
35340 if test $ac_cv_func_cthread_fork = yes; then
35341 ol_link_threads=yes
35346 if test $ol_link_threads = yes ; then
35347 LTHREAD_LIBS="-lthreads"
35348 ol_link_threads=mach
35349 ol_with_threads=found
35351 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
35352 echo "$as_me: error: could not link with Mach CThreads" >&2;}
35353 { (exit 1); exit 1; }; }
35356 elif test $ol_with_threads = mach ; then
35357 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
35358 echo "$as_me: error: could not locate Mach CThreads" >&2;}
35359 { (exit 1); exit 1; }; }
35362 if test $ol_link_threads = mach ; then
35364 cat >>confdefs.h <<\_ACEOF
35365 #define HAVE_MACH_CTHREADS 1
35368 elif test $ol_with_threads = found ; then
35369 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
35370 echo "$as_me: error: could not link with Mach CThreads" >&2;}
35371 { (exit 1); exit 1; }; }
35375 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35376 -o $ol_with_threads = pth ; then
35379 for ac_header in pth.h
35381 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35382 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35383 echo "$as_me:$LINENO: checking for $ac_header" >&5
35384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35386 echo $ECHO_N "(cached) $ECHO_C" >&6
35388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35389 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35391 # Is the header compilable?
35392 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35393 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35394 cat >conftest.$ac_ext <<_ACEOF
35397 cat confdefs.h >>conftest.$ac_ext
35398 cat >>conftest.$ac_ext <<_ACEOF
35399 /* end confdefs.h. */
35400 $ac_includes_default
35401 #include <$ac_header>
35403 rm -f conftest.$ac_objext
35404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35405 (eval $ac_compile) 2>conftest.er1
35407 grep -v '^ *+' conftest.er1 >conftest.err
35409 cat conftest.err >&5
35410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35411 (exit $ac_status); } &&
35412 { ac_try='test -z "$ac_c_werror_flag"
35413 || test ! -s conftest.err'
35414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35415 (eval $ac_try) 2>&5
35417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35418 (exit $ac_status); }; } &&
35419 { ac_try='test -s conftest.$ac_objext'
35420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35421 (eval $ac_try) 2>&5
35423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35424 (exit $ac_status); }; }; then
35425 ac_header_compiler=yes
35427 echo "$as_me: failed program was:" >&5
35428 sed 's/^/| /' conftest.$ac_ext >&5
35430 ac_header_compiler=no
35432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35433 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35434 echo "${ECHO_T}$ac_header_compiler" >&6
35436 # Is the header present?
35437 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35438 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35439 cat >conftest.$ac_ext <<_ACEOF
35442 cat confdefs.h >>conftest.$ac_ext
35443 cat >>conftest.$ac_ext <<_ACEOF
35444 /* end confdefs.h. */
35445 #include <$ac_header>
35447 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35448 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35450 grep -v '^ *+' conftest.er1 >conftest.err
35452 cat conftest.err >&5
35453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35454 (exit $ac_status); } >/dev/null; then
35455 if test -s conftest.err; then
35456 ac_cpp_err=$ac_c_preproc_warn_flag
35457 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35464 if test -z "$ac_cpp_err"; then
35465 ac_header_preproc=yes
35467 echo "$as_me: failed program was:" >&5
35468 sed 's/^/| /' conftest.$ac_ext >&5
35470 ac_header_preproc=no
35472 rm -f conftest.err conftest.$ac_ext
35473 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35474 echo "${ECHO_T}$ac_header_preproc" >&6
35476 # So? What about this header?
35477 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35479 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35480 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35482 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35483 ac_header_preproc=yes
35486 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35487 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35488 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35489 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35490 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35491 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35492 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35493 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35495 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35496 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35497 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35500 ## ------------------------------------------ ##
35501 ## Report this to the AC_PACKAGE_NAME lists. ##
35502 ## ------------------------------------------ ##
35505 sed "s/^/$as_me: WARNING: /" >&2
35508 echo "$as_me:$LINENO: checking for $ac_header" >&5
35509 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35510 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35511 echo $ECHO_N "(cached) $ECHO_C" >&6
35513 eval "$as_ac_Header=\$ac_header_preproc"
35515 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35516 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35519 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35520 cat >>confdefs.h <<_ACEOF
35521 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35529 if test $ac_cv_header_pth_h = yes ; then
35530 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
35531 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
35532 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
35533 echo $ECHO_N "(cached) $ECHO_C" >&6
35535 ac_check_lib_save_LIBS=$LIBS
35537 cat >conftest.$ac_ext <<_ACEOF
35540 cat confdefs.h >>conftest.$ac_ext
35541 cat >>conftest.$ac_ext <<_ACEOF
35542 /* end confdefs.h. */
35544 /* Override any gcc2 internal prototype to avoid an error. */
35548 /* We use char because int might match the return type of a gcc2
35549 builtin and then its argument prototype would still apply. */
35550 char pth_version ();
35559 rm -f conftest.$ac_objext conftest$ac_exeext
35560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35561 (eval $ac_link) 2>conftest.er1
35563 grep -v '^ *+' conftest.er1 >conftest.err
35565 cat conftest.err >&5
35566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35567 (exit $ac_status); } &&
35568 { ac_try='test -z "$ac_c_werror_flag"
35569 || test ! -s conftest.err'
35570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35571 (eval $ac_try) 2>&5
35573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35574 (exit $ac_status); }; } &&
35575 { ac_try='test -s conftest$ac_exeext'
35576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35577 (eval $ac_try) 2>&5
35579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35580 (exit $ac_status); }; }; then
35581 ac_cv_lib_pth_pth_version=yes
35583 echo "$as_me: failed program was:" >&5
35584 sed 's/^/| /' conftest.$ac_ext >&5
35586 ac_cv_lib_pth_pth_version=no
35588 rm -f conftest.err conftest.$ac_objext \
35589 conftest$ac_exeext conftest.$ac_ext
35590 LIBS=$ac_check_lib_save_LIBS
35592 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
35593 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
35594 if test $ac_cv_lib_pth_pth_version = yes; then
35601 if test $have_pth = yes ; then
35603 cat >>confdefs.h <<\_ACEOF
35604 #define HAVE_GNU_PTH 1
35607 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
35608 ol_link_threads=pth
35609 ol_with_threads=found
35611 if test $ol_with_yielding_select = auto ; then
35612 ol_with_yielding_select=yes
35618 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35619 -o $ol_with_threads = lwp ; then
35623 for ac_header in thread.h synch.h
35625 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35626 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35627 echo "$as_me:$LINENO: checking for $ac_header" >&5
35628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35629 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35630 echo $ECHO_N "(cached) $ECHO_C" >&6
35632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35633 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35635 # Is the header compilable?
35636 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35637 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35638 cat >conftest.$ac_ext <<_ACEOF
35641 cat confdefs.h >>conftest.$ac_ext
35642 cat >>conftest.$ac_ext <<_ACEOF
35643 /* end confdefs.h. */
35644 $ac_includes_default
35645 #include <$ac_header>
35647 rm -f conftest.$ac_objext
35648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35649 (eval $ac_compile) 2>conftest.er1
35651 grep -v '^ *+' conftest.er1 >conftest.err
35653 cat conftest.err >&5
35654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35655 (exit $ac_status); } &&
35656 { ac_try='test -z "$ac_c_werror_flag"
35657 || test ! -s conftest.err'
35658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35659 (eval $ac_try) 2>&5
35661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35662 (exit $ac_status); }; } &&
35663 { ac_try='test -s conftest.$ac_objext'
35664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35665 (eval $ac_try) 2>&5
35667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35668 (exit $ac_status); }; }; then
35669 ac_header_compiler=yes
35671 echo "$as_me: failed program was:" >&5
35672 sed 's/^/| /' conftest.$ac_ext >&5
35674 ac_header_compiler=no
35676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35677 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35678 echo "${ECHO_T}$ac_header_compiler" >&6
35680 # Is the header present?
35681 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35682 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35683 cat >conftest.$ac_ext <<_ACEOF
35686 cat confdefs.h >>conftest.$ac_ext
35687 cat >>conftest.$ac_ext <<_ACEOF
35688 /* end confdefs.h. */
35689 #include <$ac_header>
35691 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35692 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35694 grep -v '^ *+' conftest.er1 >conftest.err
35696 cat conftest.err >&5
35697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35698 (exit $ac_status); } >/dev/null; then
35699 if test -s conftest.err; then
35700 ac_cpp_err=$ac_c_preproc_warn_flag
35701 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35708 if test -z "$ac_cpp_err"; then
35709 ac_header_preproc=yes
35711 echo "$as_me: failed program was:" >&5
35712 sed 's/^/| /' conftest.$ac_ext >&5
35714 ac_header_preproc=no
35716 rm -f conftest.err conftest.$ac_ext
35717 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35718 echo "${ECHO_T}$ac_header_preproc" >&6
35720 # So? What about this header?
35721 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35723 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35724 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35725 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35726 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35727 ac_header_preproc=yes
35730 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35731 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35732 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35733 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35734 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35735 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35736 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35737 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35739 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35740 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35741 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35744 ## ------------------------------------------ ##
35745 ## Report this to the AC_PACKAGE_NAME lists. ##
35746 ## ------------------------------------------ ##
35749 sed "s/^/$as_me: WARNING: /" >&2
35752 echo "$as_me:$LINENO: checking for $ac_header" >&5
35753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35755 echo $ECHO_N "(cached) $ECHO_C" >&6
35757 eval "$as_ac_Header=\$ac_header_preproc"
35759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35760 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35764 cat >>confdefs.h <<_ACEOF
35765 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35772 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
35773 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
35774 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
35775 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
35776 echo $ECHO_N "(cached) $ECHO_C" >&6
35778 ac_check_lib_save_LIBS=$LIBS
35779 LIBS="-lthread $LIBS"
35780 cat >conftest.$ac_ext <<_ACEOF
35783 cat confdefs.h >>conftest.$ac_ext
35784 cat >>conftest.$ac_ext <<_ACEOF
35785 /* end confdefs.h. */
35787 /* Override any gcc2 internal prototype to avoid an error. */
35791 /* We use char because int might match the return type of a gcc2
35792 builtin and then its argument prototype would still apply. */
35793 char thr_create ();
35802 rm -f conftest.$ac_objext conftest$ac_exeext
35803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35804 (eval $ac_link) 2>conftest.er1
35806 grep -v '^ *+' conftest.er1 >conftest.err
35808 cat conftest.err >&5
35809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35810 (exit $ac_status); } &&
35811 { ac_try='test -z "$ac_c_werror_flag"
35812 || test ! -s conftest.err'
35813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35814 (eval $ac_try) 2>&5
35816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35817 (exit $ac_status); }; } &&
35818 { ac_try='test -s conftest$ac_exeext'
35819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35820 (eval $ac_try) 2>&5
35822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35823 (exit $ac_status); }; }; then
35824 ac_cv_lib_thread_thr_create=yes
35826 echo "$as_me: failed program was:" >&5
35827 sed 's/^/| /' conftest.$ac_ext >&5
35829 ac_cv_lib_thread_thr_create=no
35831 rm -f conftest.err conftest.$ac_objext \
35832 conftest$ac_exeext conftest.$ac_ext
35833 LIBS=$ac_check_lib_save_LIBS
35835 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
35836 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
35837 if test $ac_cv_lib_thread_thr_create = yes; then
35844 if test $have_thr = yes ; then
35846 cat >>confdefs.h <<\_ACEOF
35850 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
35851 ol_link_threads=thr
35853 if test $ol_with_yielding_select = auto ; then
35854 ol_with_yielding_select=yes
35860 thr_setconcurrency \
35861 thr_getconcurrency \
35864 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35865 echo "$as_me:$LINENO: checking for $ac_func" >&5
35866 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35867 if eval "test \"\${$as_ac_var+set}\" = set"; then
35868 echo $ECHO_N "(cached) $ECHO_C" >&6
35870 cat >conftest.$ac_ext <<_ACEOF
35873 cat confdefs.h >>conftest.$ac_ext
35874 cat >>conftest.$ac_ext <<_ACEOF
35875 /* end confdefs.h. */
35876 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35877 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35878 #define $ac_func innocuous_$ac_func
35880 /* System header to define __stub macros and hopefully few prototypes,
35881 which can conflict with char $ac_func (); below.
35882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35883 <limits.h> exists even on freestanding compilers. */
35886 # include <limits.h>
35888 # include <assert.h>
35893 /* Override any gcc2 internal prototype to avoid an error. */
35898 /* We use char because int might match the return type of a gcc2
35899 builtin and then its argument prototype would still apply. */
35901 /* The GNU C library defines this for functions which it implements
35902 to always fail with ENOSYS. Some functions are actually named
35903 something starting with __ and the normal name is an alias. */
35904 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35907 char (*f) () = $ac_func;
35916 return f != $ac_func;
35921 rm -f conftest.$ac_objext conftest$ac_exeext
35922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35923 (eval $ac_link) 2>conftest.er1
35925 grep -v '^ *+' conftest.er1 >conftest.err
35927 cat conftest.err >&5
35928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35929 (exit $ac_status); } &&
35930 { ac_try='test -z "$ac_c_werror_flag"
35931 || test ! -s conftest.err'
35932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35933 (eval $ac_try) 2>&5
35935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35936 (exit $ac_status); }; } &&
35937 { ac_try='test -s conftest$ac_exeext'
35938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35939 (eval $ac_try) 2>&5
35941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35942 (exit $ac_status); }; }; then
35943 eval "$as_ac_var=yes"
35945 echo "$as_me: failed program was:" >&5
35946 sed 's/^/| /' conftest.$ac_ext >&5
35948 eval "$as_ac_var=no"
35950 rm -f conftest.err conftest.$ac_objext \
35951 conftest$ac_exeext conftest.$ac_ext
35953 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35954 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35955 if test `eval echo '${'$as_ac_var'}'` = yes; then
35956 cat >>confdefs.h <<_ACEOF
35957 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35967 for ac_header in lwp/lwp.h
35969 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35970 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35971 echo "$as_me:$LINENO: checking for $ac_header" >&5
35972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35973 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35974 echo $ECHO_N "(cached) $ECHO_C" >&6
35976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35977 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35979 # Is the header compilable?
35980 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35981 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35982 cat >conftest.$ac_ext <<_ACEOF
35985 cat confdefs.h >>conftest.$ac_ext
35986 cat >>conftest.$ac_ext <<_ACEOF
35987 /* end confdefs.h. */
35988 $ac_includes_default
35989 #include <$ac_header>
35991 rm -f conftest.$ac_objext
35992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35993 (eval $ac_compile) 2>conftest.er1
35995 grep -v '^ *+' conftest.er1 >conftest.err
35997 cat conftest.err >&5
35998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35999 (exit $ac_status); } &&
36000 { ac_try='test -z "$ac_c_werror_flag"
36001 || test ! -s conftest.err'
36002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36003 (eval $ac_try) 2>&5
36005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36006 (exit $ac_status); }; } &&
36007 { ac_try='test -s conftest.$ac_objext'
36008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36009 (eval $ac_try) 2>&5
36011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36012 (exit $ac_status); }; }; then
36013 ac_header_compiler=yes
36015 echo "$as_me: failed program was:" >&5
36016 sed 's/^/| /' conftest.$ac_ext >&5
36018 ac_header_compiler=no
36020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36021 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36022 echo "${ECHO_T}$ac_header_compiler" >&6
36024 # Is the header present?
36025 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36026 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36027 cat >conftest.$ac_ext <<_ACEOF
36030 cat confdefs.h >>conftest.$ac_ext
36031 cat >>conftest.$ac_ext <<_ACEOF
36032 /* end confdefs.h. */
36033 #include <$ac_header>
36035 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36036 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36038 grep -v '^ *+' conftest.er1 >conftest.err
36040 cat conftest.err >&5
36041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36042 (exit $ac_status); } >/dev/null; then
36043 if test -s conftest.err; then
36044 ac_cpp_err=$ac_c_preproc_warn_flag
36045 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36052 if test -z "$ac_cpp_err"; then
36053 ac_header_preproc=yes
36055 echo "$as_me: failed program was:" >&5
36056 sed 's/^/| /' conftest.$ac_ext >&5
36058 ac_header_preproc=no
36060 rm -f conftest.err conftest.$ac_ext
36061 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36062 echo "${ECHO_T}$ac_header_preproc" >&6
36064 # So? What about this header?
36065 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36067 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36068 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36069 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36070 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36071 ac_header_preproc=yes
36074 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36075 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36076 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36077 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36078 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36079 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36080 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36081 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36082 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36083 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36084 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36085 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36088 ## ------------------------------------------ ##
36089 ## Report this to the AC_PACKAGE_NAME lists. ##
36090 ## ------------------------------------------ ##
36093 sed "s/^/$as_me: WARNING: /" >&2
36096 echo "$as_me:$LINENO: checking for $ac_header" >&5
36097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36099 echo $ECHO_N "(cached) $ECHO_C" >&6
36101 eval "$as_ac_Header=\$ac_header_preproc"
36103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36104 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36107 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36108 cat >>confdefs.h <<_ACEOF
36109 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36116 if test $ac_cv_header_lwp_lwp_h = yes ; then
36117 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
36118 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
36119 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
36120 echo $ECHO_N "(cached) $ECHO_C" >&6
36122 ac_check_lib_save_LIBS=$LIBS
36124 cat >conftest.$ac_ext <<_ACEOF
36127 cat confdefs.h >>conftest.$ac_ext
36128 cat >>conftest.$ac_ext <<_ACEOF
36129 /* end confdefs.h. */
36131 /* Override any gcc2 internal prototype to avoid an error. */
36135 /* We use char because int might match the return type of a gcc2
36136 builtin and then its argument prototype would still apply. */
36137 char lwp_create ();
36146 rm -f conftest.$ac_objext conftest$ac_exeext
36147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36148 (eval $ac_link) 2>conftest.er1
36150 grep -v '^ *+' conftest.er1 >conftest.err
36152 cat conftest.err >&5
36153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36154 (exit $ac_status); } &&
36155 { ac_try='test -z "$ac_c_werror_flag"
36156 || test ! -s conftest.err'
36157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36158 (eval $ac_try) 2>&5
36160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36161 (exit $ac_status); }; } &&
36162 { ac_try='test -s conftest$ac_exeext'
36163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36164 (eval $ac_try) 2>&5
36166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36167 (exit $ac_status); }; }; then
36168 ac_cv_lib_lwp_lwp_create=yes
36170 echo "$as_me: failed program was:" >&5
36171 sed 's/^/| /' conftest.$ac_ext >&5
36173 ac_cv_lib_lwp_lwp_create=no
36175 rm -f conftest.err conftest.$ac_objext \
36176 conftest$ac_exeext conftest.$ac_ext
36177 LIBS=$ac_check_lib_save_LIBS
36179 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
36180 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
36181 if test $ac_cv_lib_lwp_lwp_create = yes; then
36188 if test $have_lwp = yes ; then
36190 cat >>confdefs.h <<\_ACEOF
36194 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
36195 ol_link_threads=lwp
36197 if test $ol_with_yielding_select = auto ; then
36198 ol_with_yielding_select=no
36204 if test $ol_with_yielding_select = yes ; then
36206 cat >>confdefs.h <<\_ACEOF
36207 #define HAVE_YIELDING_SELECT 1
36212 if test $ol_with_threads = manual ; then
36213 ol_link_threads=yes
36215 { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
36216 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
36220 for ac_header in pthread.h sched.h
36222 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36224 echo "$as_me:$LINENO: checking for $ac_header" >&5
36225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36227 echo $ECHO_N "(cached) $ECHO_C" >&6
36229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36230 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36232 # Is the header compilable?
36233 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36234 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36235 cat >conftest.$ac_ext <<_ACEOF
36238 cat confdefs.h >>conftest.$ac_ext
36239 cat >>conftest.$ac_ext <<_ACEOF
36240 /* end confdefs.h. */
36241 $ac_includes_default
36242 #include <$ac_header>
36244 rm -f conftest.$ac_objext
36245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36246 (eval $ac_compile) 2>conftest.er1
36248 grep -v '^ *+' conftest.er1 >conftest.err
36250 cat conftest.err >&5
36251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36252 (exit $ac_status); } &&
36253 { ac_try='test -z "$ac_c_werror_flag"
36254 || test ! -s conftest.err'
36255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36256 (eval $ac_try) 2>&5
36258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36259 (exit $ac_status); }; } &&
36260 { ac_try='test -s conftest.$ac_objext'
36261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36262 (eval $ac_try) 2>&5
36264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36265 (exit $ac_status); }; }; then
36266 ac_header_compiler=yes
36268 echo "$as_me: failed program was:" >&5
36269 sed 's/^/| /' conftest.$ac_ext >&5
36271 ac_header_compiler=no
36273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36274 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36275 echo "${ECHO_T}$ac_header_compiler" >&6
36277 # Is the header present?
36278 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36279 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36280 cat >conftest.$ac_ext <<_ACEOF
36283 cat confdefs.h >>conftest.$ac_ext
36284 cat >>conftest.$ac_ext <<_ACEOF
36285 /* end confdefs.h. */
36286 #include <$ac_header>
36288 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36289 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36291 grep -v '^ *+' conftest.er1 >conftest.err
36293 cat conftest.err >&5
36294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36295 (exit $ac_status); } >/dev/null; then
36296 if test -s conftest.err; then
36297 ac_cpp_err=$ac_c_preproc_warn_flag
36298 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36305 if test -z "$ac_cpp_err"; then
36306 ac_header_preproc=yes
36308 echo "$as_me: failed program was:" >&5
36309 sed 's/^/| /' conftest.$ac_ext >&5
36311 ac_header_preproc=no
36313 rm -f conftest.err conftest.$ac_ext
36314 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36315 echo "${ECHO_T}$ac_header_preproc" >&6
36317 # So? What about this header?
36318 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36320 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36321 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36322 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36323 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36324 ac_header_preproc=yes
36327 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36328 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36329 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36330 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36331 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36332 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36333 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36334 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36336 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36337 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36338 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36341 ## ------------------------------------------ ##
36342 ## Report this to the AC_PACKAGE_NAME lists. ##
36343 ## ------------------------------------------ ##
36346 sed "s/^/$as_me: WARNING: /" >&2
36349 echo "$as_me:$LINENO: checking for $ac_header" >&5
36350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36352 echo $ECHO_N "(cached) $ECHO_C" >&6
36354 eval "$as_ac_Header=\$ac_header_preproc"
36356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36357 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36360 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36361 cat >>confdefs.h <<_ACEOF
36362 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36371 for ac_func in sched_yield pthread_yield
36373 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36374 echo "$as_me:$LINENO: checking for $ac_func" >&5
36375 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36376 if eval "test \"\${$as_ac_var+set}\" = set"; then
36377 echo $ECHO_N "(cached) $ECHO_C" >&6
36379 cat >conftest.$ac_ext <<_ACEOF
36382 cat confdefs.h >>conftest.$ac_ext
36383 cat >>conftest.$ac_ext <<_ACEOF
36384 /* end confdefs.h. */
36385 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36386 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36387 #define $ac_func innocuous_$ac_func
36389 /* System header to define __stub macros and hopefully few prototypes,
36390 which can conflict with char $ac_func (); below.
36391 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36392 <limits.h> exists even on freestanding compilers. */
36395 # include <limits.h>
36397 # include <assert.h>
36402 /* Override any gcc2 internal prototype to avoid an error. */
36407 /* We use char because int might match the return type of a gcc2
36408 builtin and then its argument prototype would still apply. */
36410 /* The GNU C library defines this for functions which it implements
36411 to always fail with ENOSYS. Some functions are actually named
36412 something starting with __ and the normal name is an alias. */
36413 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36416 char (*f) () = $ac_func;
36425 return f != $ac_func;
36430 rm -f conftest.$ac_objext conftest$ac_exeext
36431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36432 (eval $ac_link) 2>conftest.er1
36434 grep -v '^ *+' conftest.er1 >conftest.err
36436 cat conftest.err >&5
36437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36438 (exit $ac_status); } &&
36439 { ac_try='test -z "$ac_c_werror_flag"
36440 || test ! -s conftest.err'
36441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36442 (eval $ac_try) 2>&5
36444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36445 (exit $ac_status); }; } &&
36446 { ac_try='test -s conftest$ac_exeext'
36447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36448 (eval $ac_try) 2>&5
36450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36451 (exit $ac_status); }; }; then
36452 eval "$as_ac_var=yes"
36454 echo "$as_me: failed program was:" >&5
36455 sed 's/^/| /' conftest.$ac_ext >&5
36457 eval "$as_ac_var=no"
36459 rm -f conftest.err conftest.$ac_objext \
36460 conftest$ac_exeext conftest.$ac_ext
36462 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36463 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36464 if test `eval echo '${'$as_ac_var'}'` = yes; then
36465 cat >>confdefs.h <<_ACEOF
36466 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36473 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
36474 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
36475 if test "${ol_cv_header_linux_threads+set}" = set; then
36476 echo $ECHO_N "(cached) $ECHO_C" >&6
36478 cat >conftest.$ac_ext <<_ACEOF
36481 cat confdefs.h >>conftest.$ac_ext
36482 cat >>conftest.$ac_ext <<_ACEOF
36483 /* end confdefs.h. */
36484 #include <pthread.h>
36486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36487 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
36488 ol_cv_header_linux_threads=yes
36490 ol_cv_header_linux_threads=no
36496 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
36497 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
36498 if test $ol_cv_header_linux_threads = yes; then
36500 cat >>confdefs.h <<\_ACEOF
36501 #define HAVE_LINUX_THREADS 1
36508 for ac_header in mach/cthreads.h
36510 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36511 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36512 echo "$as_me:$LINENO: checking for $ac_header" >&5
36513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36514 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36515 echo $ECHO_N "(cached) $ECHO_C" >&6
36517 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36518 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36520 # Is the header compilable?
36521 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36522 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36523 cat >conftest.$ac_ext <<_ACEOF
36526 cat confdefs.h >>conftest.$ac_ext
36527 cat >>conftest.$ac_ext <<_ACEOF
36528 /* end confdefs.h. */
36529 $ac_includes_default
36530 #include <$ac_header>
36532 rm -f conftest.$ac_objext
36533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36534 (eval $ac_compile) 2>conftest.er1
36536 grep -v '^ *+' conftest.er1 >conftest.err
36538 cat conftest.err >&5
36539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36540 (exit $ac_status); } &&
36541 { ac_try='test -z "$ac_c_werror_flag"
36542 || test ! -s conftest.err'
36543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36544 (eval $ac_try) 2>&5
36546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36547 (exit $ac_status); }; } &&
36548 { ac_try='test -s conftest.$ac_objext'
36549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36550 (eval $ac_try) 2>&5
36552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36553 (exit $ac_status); }; }; then
36554 ac_header_compiler=yes
36556 echo "$as_me: failed program was:" >&5
36557 sed 's/^/| /' conftest.$ac_ext >&5
36559 ac_header_compiler=no
36561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36562 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36563 echo "${ECHO_T}$ac_header_compiler" >&6
36565 # Is the header present?
36566 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36567 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36568 cat >conftest.$ac_ext <<_ACEOF
36571 cat confdefs.h >>conftest.$ac_ext
36572 cat >>conftest.$ac_ext <<_ACEOF
36573 /* end confdefs.h. */
36574 #include <$ac_header>
36576 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36577 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36579 grep -v '^ *+' conftest.er1 >conftest.err
36581 cat conftest.err >&5
36582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36583 (exit $ac_status); } >/dev/null; then
36584 if test -s conftest.err; then
36585 ac_cpp_err=$ac_c_preproc_warn_flag
36586 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36593 if test -z "$ac_cpp_err"; then
36594 ac_header_preproc=yes
36596 echo "$as_me: failed program was:" >&5
36597 sed 's/^/| /' conftest.$ac_ext >&5
36599 ac_header_preproc=no
36601 rm -f conftest.err conftest.$ac_ext
36602 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36603 echo "${ECHO_T}$ac_header_preproc" >&6
36605 # So? What about this header?
36606 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36608 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36609 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36611 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36612 ac_header_preproc=yes
36615 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36616 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36617 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36618 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36619 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36620 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36621 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36622 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36623 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36624 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36625 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36626 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36629 ## ------------------------------------------ ##
36630 ## Report this to the AC_PACKAGE_NAME lists. ##
36631 ## ------------------------------------------ ##
36634 sed "s/^/$as_me: WARNING: /" >&2
36637 echo "$as_me:$LINENO: checking for $ac_header" >&5
36638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36639 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36640 echo $ECHO_N "(cached) $ECHO_C" >&6
36642 eval "$as_ac_Header=\$ac_header_preproc"
36644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36645 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36648 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36649 cat >>confdefs.h <<_ACEOF
36650 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36658 for ac_header in lwp/lwp.h
36660 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36662 echo "$as_me:$LINENO: checking for $ac_header" >&5
36663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36665 echo $ECHO_N "(cached) $ECHO_C" >&6
36667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36668 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36670 # Is the header compilable?
36671 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36672 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36673 cat >conftest.$ac_ext <<_ACEOF
36676 cat confdefs.h >>conftest.$ac_ext
36677 cat >>conftest.$ac_ext <<_ACEOF
36678 /* end confdefs.h. */
36679 $ac_includes_default
36680 #include <$ac_header>
36682 rm -f conftest.$ac_objext
36683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36684 (eval $ac_compile) 2>conftest.er1
36686 grep -v '^ *+' conftest.er1 >conftest.err
36688 cat conftest.err >&5
36689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36690 (exit $ac_status); } &&
36691 { ac_try='test -z "$ac_c_werror_flag"
36692 || test ! -s conftest.err'
36693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36694 (eval $ac_try) 2>&5
36696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36697 (exit $ac_status); }; } &&
36698 { ac_try='test -s conftest.$ac_objext'
36699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36700 (eval $ac_try) 2>&5
36702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36703 (exit $ac_status); }; }; then
36704 ac_header_compiler=yes
36706 echo "$as_me: failed program was:" >&5
36707 sed 's/^/| /' conftest.$ac_ext >&5
36709 ac_header_compiler=no
36711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36712 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36713 echo "${ECHO_T}$ac_header_compiler" >&6
36715 # Is the header present?
36716 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36717 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36718 cat >conftest.$ac_ext <<_ACEOF
36721 cat confdefs.h >>conftest.$ac_ext
36722 cat >>conftest.$ac_ext <<_ACEOF
36723 /* end confdefs.h. */
36724 #include <$ac_header>
36726 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36727 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36729 grep -v '^ *+' conftest.er1 >conftest.err
36731 cat conftest.err >&5
36732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36733 (exit $ac_status); } >/dev/null; then
36734 if test -s conftest.err; then
36735 ac_cpp_err=$ac_c_preproc_warn_flag
36736 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36743 if test -z "$ac_cpp_err"; then
36744 ac_header_preproc=yes
36746 echo "$as_me: failed program was:" >&5
36747 sed 's/^/| /' conftest.$ac_ext >&5
36749 ac_header_preproc=no
36751 rm -f conftest.err conftest.$ac_ext
36752 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36753 echo "${ECHO_T}$ac_header_preproc" >&6
36755 # So? What about this header?
36756 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36758 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36759 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36761 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36762 ac_header_preproc=yes
36765 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36766 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36767 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36768 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36769 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36770 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36771 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36772 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36774 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36775 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36776 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36779 ## ------------------------------------------ ##
36780 ## Report this to the AC_PACKAGE_NAME lists. ##
36781 ## ------------------------------------------ ##
36784 sed "s/^/$as_me: WARNING: /" >&2
36787 echo "$as_me:$LINENO: checking for $ac_header" >&5
36788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36789 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36790 echo $ECHO_N "(cached) $ECHO_C" >&6
36792 eval "$as_ac_Header=\$ac_header_preproc"
36794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36798 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36799 cat >>confdefs.h <<_ACEOF
36800 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36809 for ac_header in thread.h synch.h
36811 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36813 echo "$as_me:$LINENO: checking for $ac_header" >&5
36814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36816 echo $ECHO_N "(cached) $ECHO_C" >&6
36818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36819 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36821 # Is the header compilable?
36822 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36823 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36824 cat >conftest.$ac_ext <<_ACEOF
36827 cat confdefs.h >>conftest.$ac_ext
36828 cat >>conftest.$ac_ext <<_ACEOF
36829 /* end confdefs.h. */
36830 $ac_includes_default
36831 #include <$ac_header>
36833 rm -f conftest.$ac_objext
36834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36835 (eval $ac_compile) 2>conftest.er1
36837 grep -v '^ *+' conftest.er1 >conftest.err
36839 cat conftest.err >&5
36840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36841 (exit $ac_status); } &&
36842 { ac_try='test -z "$ac_c_werror_flag"
36843 || test ! -s conftest.err'
36844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36845 (eval $ac_try) 2>&5
36847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36848 (exit $ac_status); }; } &&
36849 { ac_try='test -s conftest.$ac_objext'
36850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36851 (eval $ac_try) 2>&5
36853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36854 (exit $ac_status); }; }; then
36855 ac_header_compiler=yes
36857 echo "$as_me: failed program was:" >&5
36858 sed 's/^/| /' conftest.$ac_ext >&5
36860 ac_header_compiler=no
36862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36863 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36864 echo "${ECHO_T}$ac_header_compiler" >&6
36866 # Is the header present?
36867 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36868 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36869 cat >conftest.$ac_ext <<_ACEOF
36872 cat confdefs.h >>conftest.$ac_ext
36873 cat >>conftest.$ac_ext <<_ACEOF
36874 /* end confdefs.h. */
36875 #include <$ac_header>
36877 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36878 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36880 grep -v '^ *+' conftest.er1 >conftest.err
36882 cat conftest.err >&5
36883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36884 (exit $ac_status); } >/dev/null; then
36885 if test -s conftest.err; then
36886 ac_cpp_err=$ac_c_preproc_warn_flag
36887 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36894 if test -z "$ac_cpp_err"; then
36895 ac_header_preproc=yes
36897 echo "$as_me: failed program was:" >&5
36898 sed 's/^/| /' conftest.$ac_ext >&5
36900 ac_header_preproc=no
36902 rm -f conftest.err conftest.$ac_ext
36903 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36904 echo "${ECHO_T}$ac_header_preproc" >&6
36906 # So? What about this header?
36907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36909 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36910 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36912 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36913 ac_header_preproc=yes
36916 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36917 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36918 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36919 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36920 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36921 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36922 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36923 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36925 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36926 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36927 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36930 ## ------------------------------------------ ##
36931 ## Report this to the AC_PACKAGE_NAME lists. ##
36932 ## ------------------------------------------ ##
36935 sed "s/^/$as_me: WARNING: /" >&2
36938 echo "$as_me:$LINENO: checking for $ac_header" >&5
36939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36941 echo $ECHO_N "(cached) $ECHO_C" >&6
36943 eval "$as_ac_Header=\$ac_header_preproc"
36945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36946 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36949 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36950 cat >>confdefs.h <<_ACEOF
36951 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36960 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
36961 cat >>confdefs.h <<\_ACEOF
36962 #define REENTRANT 1
36965 cat >>confdefs.h <<\_ACEOF
36966 #define _REENTRANT 1
36969 cat >>confdefs.h <<\_ACEOF
36970 #define THREAD_SAFE 1
36973 cat >>confdefs.h <<\_ACEOF
36974 #define _THREAD_SAFE 1
36977 cat >>confdefs.h <<\_ACEOF
36978 #define THREADSAFE 1
36981 cat >>confdefs.h <<\_ACEOF
36982 #define _THREADSAFE 1
36985 cat >>confdefs.h <<\_ACEOF
36986 #define _SGI_MP_SOURCE 1
36990 echo "$as_me:$LINENO: checking for thread specific errno" >&5
36991 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
36992 if test "${ol_cv_errno_thread_specific+set}" = set; then
36993 echo $ECHO_N "(cached) $ECHO_C" >&6
36996 cat >conftest.$ac_ext <<_ACEOF
36999 cat confdefs.h >>conftest.$ac_ext
37000 cat >>conftest.$ac_ext <<_ACEOF
37001 /* end confdefs.h. */
37011 rm -f conftest.$ac_objext conftest$ac_exeext
37012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37013 (eval $ac_link) 2>conftest.er1
37015 grep -v '^ *+' conftest.er1 >conftest.err
37017 cat conftest.err >&5
37018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37019 (exit $ac_status); } &&
37020 { ac_try='test -z "$ac_c_werror_flag"
37021 || test ! -s conftest.err'
37022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37023 (eval $ac_try) 2>&5
37025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37026 (exit $ac_status); }; } &&
37027 { ac_try='test -s conftest$ac_exeext'
37028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37029 (eval $ac_try) 2>&5
37031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37032 (exit $ac_status); }; }; then
37033 ol_cv_errno_thread_specific=yes
37035 echo "$as_me: failed program was:" >&5
37036 sed 's/^/| /' conftest.$ac_ext >&5
37038 ol_cv_errno_thread_specific=no
37040 rm -f conftest.err conftest.$ac_objext \
37041 conftest$ac_exeext conftest.$ac_ext
37044 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
37045 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
37047 echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
37048 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
37049 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
37050 echo $ECHO_N "(cached) $ECHO_C" >&6
37053 cat >conftest.$ac_ext <<_ACEOF
37056 cat confdefs.h >>conftest.$ac_ext
37057 cat >>conftest.$ac_ext <<_ACEOF
37058 /* end confdefs.h. */
37068 rm -f conftest.$ac_objext conftest$ac_exeext
37069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37070 (eval $ac_link) 2>conftest.er1
37072 grep -v '^ *+' conftest.er1 >conftest.err
37074 cat conftest.err >&5
37075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37076 (exit $ac_status); } &&
37077 { ac_try='test -z "$ac_c_werror_flag"
37078 || test ! -s conftest.err'
37079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37080 (eval $ac_try) 2>&5
37082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37083 (exit $ac_status); }; } &&
37084 { ac_try='test -s conftest$ac_exeext'
37085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37086 (eval $ac_try) 2>&5
37088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37089 (exit $ac_status); }; }; then
37090 ol_cv_h_errno_thread_specific=yes
37092 echo "$as_me: failed program was:" >&5
37093 sed 's/^/| /' conftest.$ac_ext >&5
37095 ol_cv_h_errno_thread_specific=no
37097 rm -f conftest.err conftest.$ac_objext \
37098 conftest$ac_exeext conftest.$ac_ext
37101 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
37102 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
37104 if test $ol_cv_errno_thread_specific != yes \
37105 -o $ol_cv_h_errno_thread_specific != yes ; then
37106 LIBS="$LTHREAD_LIBS $LIBS"
37112 if test $ol_link_threads = no ; then
37113 if test $ol_with_threads = yes ; then
37114 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
37115 echo "$as_me: error: no suitable thread support" >&2;}
37116 { (exit 1); exit 1; }; }
37119 if test $ol_with_threads = auto ; then
37120 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
37121 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
37126 cat >>confdefs.h <<\_ACEOF
37127 #define NO_THREADS 1
37133 if test $ol_link_threads != no ; then
37135 cat >>confdefs.h <<\_ACEOF
37136 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
37146 gethostbyname_r gethostbyaddr_r \
37149 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37150 echo "$as_me:$LINENO: checking for $ac_func" >&5
37151 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37152 if eval "test \"\${$as_ac_var+set}\" = set"; then
37153 echo $ECHO_N "(cached) $ECHO_C" >&6
37155 cat >conftest.$ac_ext <<_ACEOF
37158 cat confdefs.h >>conftest.$ac_ext
37159 cat >>conftest.$ac_ext <<_ACEOF
37160 /* end confdefs.h. */
37161 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37162 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37163 #define $ac_func innocuous_$ac_func
37165 /* System header to define __stub macros and hopefully few prototypes,
37166 which can conflict with char $ac_func (); below.
37167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37168 <limits.h> exists even on freestanding compilers. */
37171 # include <limits.h>
37173 # include <assert.h>
37178 /* Override any gcc2 internal prototype to avoid an error. */
37183 /* We use char because int might match the return type of a gcc2
37184 builtin and then its argument prototype would still apply. */
37186 /* The GNU C library defines this for functions which it implements
37187 to always fail with ENOSYS. Some functions are actually named
37188 something starting with __ and the normal name is an alias. */
37189 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37192 char (*f) () = $ac_func;
37201 return f != $ac_func;
37206 rm -f conftest.$ac_objext conftest$ac_exeext
37207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37208 (eval $ac_link) 2>conftest.er1
37210 grep -v '^ *+' conftest.er1 >conftest.err
37212 cat conftest.err >&5
37213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37214 (exit $ac_status); } &&
37215 { ac_try='test -z "$ac_c_werror_flag"
37216 || test ! -s conftest.err'
37217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37218 (eval $ac_try) 2>&5
37220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37221 (exit $ac_status); }; } &&
37222 { ac_try='test -s conftest$ac_exeext'
37223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37224 (eval $ac_try) 2>&5
37226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37227 (exit $ac_status); }; }; then
37228 eval "$as_ac_var=yes"
37230 echo "$as_me: failed program was:" >&5
37231 sed 's/^/| /' conftest.$ac_ext >&5
37233 eval "$as_ac_var=no"
37235 rm -f conftest.err conftest.$ac_objext \
37236 conftest$ac_exeext conftest.$ac_ext
37238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37239 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37240 if test `eval echo '${'$as_ac_var'}'` = yes; then
37241 cat >>confdefs.h <<_ACEOF
37242 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37249 if test "$ac_cv_func_ctime_r" = no ; then
37250 ol_cv_func_ctime_r_nargs=0
37252 echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
37253 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
37254 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
37255 echo $ECHO_N "(cached) $ECHO_C" >&6
37257 cat >conftest.$ac_ext <<_ACEOF
37260 cat confdefs.h >>conftest.$ac_ext
37261 cat >>conftest.$ac_ext <<_ACEOF
37262 /* end confdefs.h. */
37267 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
37272 rm -f conftest.$ac_objext
37273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37274 (eval $ac_compile) 2>conftest.er1
37276 grep -v '^ *+' conftest.er1 >conftest.err
37278 cat conftest.err >&5
37279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37280 (exit $ac_status); } &&
37281 { ac_try='test -z "$ac_c_werror_flag"
37282 || test ! -s conftest.err'
37283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37284 (eval $ac_try) 2>&5
37286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37287 (exit $ac_status); }; } &&
37288 { ac_try='test -s conftest.$ac_objext'
37289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37290 (eval $ac_try) 2>&5
37292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37293 (exit $ac_status); }; }; then
37294 ol_cv_func_ctime_r_nargs3=yes
37296 echo "$as_me: failed program was:" >&5
37297 sed 's/^/| /' conftest.$ac_ext >&5
37299 ol_cv_func_ctime_r_nargs3=no
37301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37303 cat >conftest.$ac_ext <<_ACEOF
37306 cat confdefs.h >>conftest.$ac_ext
37307 cat >>conftest.$ac_ext <<_ACEOF
37308 /* end confdefs.h. */
37313 time_t ti; char *buffer; ctime_r(&ti,buffer);
37318 rm -f conftest.$ac_objext
37319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37320 (eval $ac_compile) 2>conftest.er1
37322 grep -v '^ *+' conftest.er1 >conftest.err
37324 cat conftest.err >&5
37325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37326 (exit $ac_status); } &&
37327 { ac_try='test -z "$ac_c_werror_flag"
37328 || test ! -s conftest.err'
37329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37330 (eval $ac_try) 2>&5
37332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37333 (exit $ac_status); }; } &&
37334 { ac_try='test -s conftest.$ac_objext'
37335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37336 (eval $ac_try) 2>&5
37338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37339 (exit $ac_status); }; }; then
37340 ol_cv_func_ctime_r_nargs2=yes
37342 echo "$as_me: failed program was:" >&5
37343 sed 's/^/| /' conftest.$ac_ext >&5
37345 ol_cv_func_ctime_r_nargs2=no
37347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37349 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
37350 $ol_cv_func_ctime_r_nargs2 = no ; then
37352 ol_cv_func_ctime_r_nargs=3
37354 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
37355 $ol_cv_func_ctime_r_nargs2 = yes ; then
37357 ol_cv_func_ctime_r_nargs=2
37360 ol_cv_func_ctime_r_nargs=0
37364 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
37365 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
37367 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
37369 cat >>confdefs.h <<_ACEOF
37370 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
37377 if test "$ac_cv_func_gethostbyname_r" = yes ; then
37378 echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
37379 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
37380 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
37381 echo $ECHO_N "(cached) $ECHO_C" >&6
37383 cat >conftest.$ac_ext <<_ACEOF
37386 cat confdefs.h >>conftest.$ac_ext
37387 cat >>conftest.$ac_ext <<_ACEOF
37388 /* end confdefs.h. */
37389 #include <sys/types.h>
37390 #include <sys/socket.h>
37391 #include <netinet/in.h>
37393 #define BUFSIZE (sizeof(struct hostent)+10)
37397 struct hostent hent; char buffer[BUFSIZE];
37398 int bufsize=BUFSIZE;int h_errno;
37399 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
37400 buffer, bufsize, &h_errno);
37405 rm -f conftest.$ac_objext
37406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37407 (eval $ac_compile) 2>conftest.er1
37409 grep -v '^ *+' conftest.er1 >conftest.err
37411 cat conftest.err >&5
37412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37413 (exit $ac_status); } &&
37414 { ac_try='test -z "$ac_c_werror_flag"
37415 || test ! -s conftest.err'
37416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37417 (eval $ac_try) 2>&5
37419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37420 (exit $ac_status); }; } &&
37421 { ac_try='test -s conftest.$ac_objext'
37422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37423 (eval $ac_try) 2>&5
37425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37426 (exit $ac_status); }; }; then
37427 ol_cv_func_gethostbyname_r_nargs5=yes
37429 echo "$as_me: failed program was:" >&5
37430 sed 's/^/| /' conftest.$ac_ext >&5
37432 ol_cv_func_gethostbyname_r_nargs5=no
37434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37436 cat >conftest.$ac_ext <<_ACEOF
37439 cat confdefs.h >>conftest.$ac_ext
37440 cat >>conftest.$ac_ext <<_ACEOF
37441 /* end confdefs.h. */
37442 #include <sys/types.h>
37443 #include <sys/socket.h>
37444 #include <netinet/in.h>
37446 #define BUFSIZE (sizeof(struct hostent)+10)
37450 struct hostent hent;struct hostent *rhent;
37451 char buffer[BUFSIZE];
37452 int bufsize=BUFSIZE;int h_errno;
37453 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
37459 rm -f conftest.$ac_objext
37460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37461 (eval $ac_compile) 2>conftest.er1
37463 grep -v '^ *+' conftest.er1 >conftest.err
37465 cat conftest.err >&5
37466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37467 (exit $ac_status); } &&
37468 { ac_try='test -z "$ac_c_werror_flag"
37469 || test ! -s conftest.err'
37470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37471 (eval $ac_try) 2>&5
37473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37474 (exit $ac_status); }; } &&
37475 { ac_try='test -s conftest.$ac_objext'
37476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37477 (eval $ac_try) 2>&5
37479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37480 (exit $ac_status); }; }; then
37481 ol_cv_func_gethostbyname_r_nargs6=yes
37483 echo "$as_me: failed program was:" >&5
37484 sed 's/^/| /' conftest.$ac_ext >&5
37486 ol_cv_func_gethostbyname_r_nargs6=no
37488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37490 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
37491 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
37493 ol_cv_func_gethostbyname_r_nargs=5
37495 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
37496 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
37498 ol_cv_func_gethostbyname_r_nargs=6
37501 ol_cv_func_gethostbyname_r_nargs=0
37505 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
37506 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
37507 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
37509 cat >>confdefs.h <<_ACEOF
37510 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
37516 ol_cv_func_gethostbyname_r_nargs=0
37519 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
37520 echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
37521 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
37522 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
37523 echo $ECHO_N "(cached) $ECHO_C" >&6
37525 cat >conftest.$ac_ext <<_ACEOF
37528 cat confdefs.h >>conftest.$ac_ext
37529 cat >>conftest.$ac_ext <<_ACEOF
37530 /* end confdefs.h. */
37531 #include <sys/types.h>
37532 #include <sys/socket.h>
37533 #include <netinet/in.h>
37535 #define BUFSIZE (sizeof(struct hostent)+10)
37539 struct hostent hent; char buffer[BUFSIZE];
37540 struct in_addr add;
37541 size_t alen=sizeof(struct in_addr);
37542 int bufsize=BUFSIZE;int h_errno;
37543 (void)gethostbyaddr_r( (void *)&(add.s_addr),
37544 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
37549 rm -f conftest.$ac_objext
37550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37551 (eval $ac_compile) 2>conftest.er1
37553 grep -v '^ *+' conftest.er1 >conftest.err
37555 cat conftest.err >&5
37556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37557 (exit $ac_status); } &&
37558 { ac_try='test -z "$ac_c_werror_flag"
37559 || test ! -s conftest.err'
37560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37561 (eval $ac_try) 2>&5
37563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37564 (exit $ac_status); }; } &&
37565 { ac_try='test -s conftest.$ac_objext'
37566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37567 (eval $ac_try) 2>&5
37569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37570 (exit $ac_status); }; }; then
37571 ol_cv_func_gethostbyaddr_r_nargs7=yes
37573 echo "$as_me: failed program was:" >&5
37574 sed 's/^/| /' conftest.$ac_ext >&5
37576 ol_cv_func_gethostbyaddr_r_nargs7=no
37578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37580 cat >conftest.$ac_ext <<_ACEOF
37583 cat confdefs.h >>conftest.$ac_ext
37584 cat >>conftest.$ac_ext <<_ACEOF
37585 /* end confdefs.h. */
37586 #include <sys/types.h>
37587 #include <sys/socket.h>
37588 #include <netinet/in.h>
37590 #define BUFSIZE (sizeof(struct hostent)+10)
37594 struct hostent hent;
37595 struct hostent *rhent; char buffer[BUFSIZE];
37596 struct in_addr add;
37597 size_t alen=sizeof(struct in_addr);
37598 int bufsize=BUFSIZE;int h_errno;
37599 (void)gethostbyaddr_r( (void *)&(add.s_addr),
37600 alen, AF_INET, &hent, buffer, bufsize,
37606 rm -f conftest.$ac_objext
37607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37608 (eval $ac_compile) 2>conftest.er1
37610 grep -v '^ *+' conftest.er1 >conftest.err
37612 cat conftest.err >&5
37613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37614 (exit $ac_status); } &&
37615 { ac_try='test -z "$ac_c_werror_flag"
37616 || test ! -s conftest.err'
37617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37618 (eval $ac_try) 2>&5
37620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37621 (exit $ac_status); }; } &&
37622 { ac_try='test -s conftest.$ac_objext'
37623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37624 (eval $ac_try) 2>&5
37626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37627 (exit $ac_status); }; }; then
37628 ol_cv_func_gethostbyaddr_r_nargs8=yes
37630 echo "$as_me: failed program was:" >&5
37631 sed 's/^/| /' conftest.$ac_ext >&5
37633 ol_cv_func_gethostbyaddr_r_nargs8=no
37635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37637 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
37638 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
37640 ol_cv_func_gethostbyaddr_r_nargs=7
37642 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
37643 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
37645 ol_cv_func_gethostbyaddr_r_nargs=8
37648 ol_cv_func_gethostbyaddr_r_nargs=0
37652 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
37653 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
37654 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
37656 cat >>confdefs.h <<_ACEOF
37657 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
37663 ol_cv_func_gethostbyaddr_r_nargs=0
37668 if test $ol_with_ldbm_api = auto \
37669 -o $ol_with_ldbm_api = berkeley \
37670 -o $ol_with_ldbm_api = bcompat ; then
37672 if test $ol_with_ldbm_api = bcompat; then \
37675 for ac_header in db_185.h db.h
37677 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37678 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37679 echo "$as_me:$LINENO: checking for $ac_header" >&5
37680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37681 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37682 echo $ECHO_N "(cached) $ECHO_C" >&6
37684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37685 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37687 # Is the header compilable?
37688 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37689 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37690 cat >conftest.$ac_ext <<_ACEOF
37693 cat confdefs.h >>conftest.$ac_ext
37694 cat >>conftest.$ac_ext <<_ACEOF
37695 /* end confdefs.h. */
37696 $ac_includes_default
37697 #include <$ac_header>
37699 rm -f conftest.$ac_objext
37700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37701 (eval $ac_compile) 2>conftest.er1
37703 grep -v '^ *+' conftest.er1 >conftest.err
37705 cat conftest.err >&5
37706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37707 (exit $ac_status); } &&
37708 { ac_try='test -z "$ac_c_werror_flag"
37709 || test ! -s conftest.err'
37710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37711 (eval $ac_try) 2>&5
37713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37714 (exit $ac_status); }; } &&
37715 { ac_try='test -s conftest.$ac_objext'
37716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37717 (eval $ac_try) 2>&5
37719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37720 (exit $ac_status); }; }; then
37721 ac_header_compiler=yes
37723 echo "$as_me: failed program was:" >&5
37724 sed 's/^/| /' conftest.$ac_ext >&5
37726 ac_header_compiler=no
37728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37729 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37730 echo "${ECHO_T}$ac_header_compiler" >&6
37732 # Is the header present?
37733 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37734 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37735 cat >conftest.$ac_ext <<_ACEOF
37738 cat confdefs.h >>conftest.$ac_ext
37739 cat >>conftest.$ac_ext <<_ACEOF
37740 /* end confdefs.h. */
37741 #include <$ac_header>
37743 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37744 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37746 grep -v '^ *+' conftest.er1 >conftest.err
37748 cat conftest.err >&5
37749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37750 (exit $ac_status); } >/dev/null; then
37751 if test -s conftest.err; then
37752 ac_cpp_err=$ac_c_preproc_warn_flag
37753 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37760 if test -z "$ac_cpp_err"; then
37761 ac_header_preproc=yes
37763 echo "$as_me: failed program was:" >&5
37764 sed 's/^/| /' conftest.$ac_ext >&5
37766 ac_header_preproc=no
37768 rm -f conftest.err conftest.$ac_ext
37769 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37770 echo "${ECHO_T}$ac_header_preproc" >&6
37772 # So? What about this header?
37773 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37775 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37776 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37778 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37779 ac_header_preproc=yes
37782 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37783 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37784 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37785 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37786 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37787 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37788 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37789 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37790 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37791 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37792 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37793 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37796 ## ------------------------------------------ ##
37797 ## Report this to the AC_PACKAGE_NAME lists. ##
37798 ## ------------------------------------------ ##
37801 sed "s/^/$as_me: WARNING: /" >&2
37804 echo "$as_me:$LINENO: checking for $ac_header" >&5
37805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37807 echo $ECHO_N "(cached) $ECHO_C" >&6
37809 eval "$as_ac_Header=\$ac_header_preproc"
37811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37812 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37815 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37816 cat >>confdefs.h <<_ACEOF
37817 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37824 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
37825 echo "$as_me:$LINENO: checking if Berkeley DB header compatibility" >&5
37826 echo $ECHO_N "checking if Berkeley DB header compatibility... $ECHO_C" >&6
37827 if test "${ol_cv_header_db1+set}" = set; then
37828 echo $ECHO_N "(cached) $ECHO_C" >&6
37831 cat >conftest.$ac_ext <<_ACEOF
37834 cat confdefs.h >>conftest.$ac_ext
37835 cat >>conftest.$ac_ext <<_ACEOF
37836 /* end confdefs.h. */
37839 # include <db_185.h>
37844 /* this check could be improved */
37845 #ifndef DB_VERSION_MAJOR
37846 # define DB_VERSION_MAJOR 1
37849 #if DB_VERSION_MAJOR == 1
37854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37855 $EGREP "__db_version_1" >/dev/null 2>&1; then
37856 ol_cv_header_db1=yes
37858 ol_cv_header_db1=no
37863 echo "$as_me:$LINENO: result: $ol_cv_header_db1" >&5
37864 echo "${ECHO_T}$ol_cv_header_db1" >&6
37866 if test $ol_cv_header_db1 = yes ; then
37868 if test $ol_cv_lib_db = no ; then
37869 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
37870 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
37871 if test "${ol_cv_db_none+set}" = set; then
37872 echo $ECHO_N "(cached) $ECHO_C" >&6
37877 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
37879 cat >conftest.$ac_ext <<_ACEOF
37882 cat confdefs.h >>conftest.$ac_ext
37883 cat >>conftest.$ac_ext <<_ACEOF
37884 /* end confdefs.h. */
37886 #ifdef HAVE_DB_185_H
37887 # include <db_185.h>
37892 #ifndef DB_VERSION_MAJOR
37893 # define DB_VERSION_MAJOR 1
37897 #define NULL ((void*)0)
37904 #if DB_VERSION_MAJOR > 1
37907 int major, minor, patch;
37909 version = db_version( &major, &minor, &patch );
37911 if( major != DB_VERSION_MAJOR ||
37912 minor < DB_VERSION_MINOR )
37914 printf("Berkeley DB version mismatch\n"
37915 "\theader: %s\n\tlibrary: %s\n",
37916 DB_VERSION_STRING, version);
37922 #if DB_VERSION_MAJOR > 2
37923 db_env_create( NULL, 0 );
37924 #elif DB_VERSION_MAJOR > 1
37925 db_appexit( NULL );
37927 (void) dbopen( NULL, 0, 0, 0, NULL);
37934 rm -f conftest.$ac_objext conftest$ac_exeext
37935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37936 (eval $ac_link) 2>conftest.er1
37938 grep -v '^ *+' conftest.er1 >conftest.err
37940 cat conftest.err >&5
37941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37942 (exit $ac_status); } &&
37943 { ac_try='test -z "$ac_c_werror_flag"
37944 || test ! -s conftest.err'
37945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37946 (eval $ac_try) 2>&5
37948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37949 (exit $ac_status); }; } &&
37950 { ac_try='test -s conftest$ac_exeext'
37951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37952 (eval $ac_try) 2>&5
37954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37955 (exit $ac_status); }; }; then
37958 echo "$as_me: failed program was:" >&5
37959 sed 's/^/| /' conftest.$ac_ext >&5
37963 rm -f conftest.err conftest.$ac_objext \
37964 conftest$ac_exeext conftest.$ac_ext
37969 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
37970 echo "${ECHO_T}$ol_cv_db_none" >&6
37972 if test $ol_cv_db_none = yes ; then
37977 if test $ol_cv_lib_db = no ; then
37978 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
37979 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
37980 if test "${ol_cv_db_db43+set}" = set; then
37981 echo $ECHO_N "(cached) $ECHO_C" >&6
37986 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
37988 cat >conftest.$ac_ext <<_ACEOF
37991 cat confdefs.h >>conftest.$ac_ext
37992 cat >>conftest.$ac_ext <<_ACEOF
37993 /* end confdefs.h. */
37995 #ifdef HAVE_DB_185_H
37996 # include <db_185.h>
38001 #ifndef DB_VERSION_MAJOR
38002 # define DB_VERSION_MAJOR 1
38006 #define NULL ((void*)0)
38013 #if DB_VERSION_MAJOR > 1
38016 int major, minor, patch;
38018 version = db_version( &major, &minor, &patch );
38020 if( major != DB_VERSION_MAJOR ||
38021 minor < DB_VERSION_MINOR )
38023 printf("Berkeley DB version mismatch\n"
38024 "\theader: %s\n\tlibrary: %s\n",
38025 DB_VERSION_STRING, version);
38031 #if DB_VERSION_MAJOR > 2
38032 db_env_create( NULL, 0 );
38033 #elif DB_VERSION_MAJOR > 1
38034 db_appexit( NULL );
38036 (void) dbopen( NULL, 0, 0, 0, NULL);
38043 rm -f conftest.$ac_objext conftest$ac_exeext
38044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38045 (eval $ac_link) 2>conftest.er1
38047 grep -v '^ *+' conftest.er1 >conftest.err
38049 cat conftest.err >&5
38050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38051 (exit $ac_status); } &&
38052 { ac_try='test -z "$ac_c_werror_flag"
38053 || test ! -s conftest.err'
38054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38055 (eval $ac_try) 2>&5
38057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38058 (exit $ac_status); }; } &&
38059 { ac_try='test -s conftest$ac_exeext'
38060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38061 (eval $ac_try) 2>&5
38063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38064 (exit $ac_status); }; }; then
38067 echo "$as_me: failed program was:" >&5
38068 sed 's/^/| /' conftest.$ac_ext >&5
38072 rm -f conftest.err conftest.$ac_objext \
38073 conftest$ac_exeext conftest.$ac_ext
38078 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
38079 echo "${ECHO_T}$ol_cv_db_db43" >&6
38081 if test $ol_cv_db_db43 = yes ; then
38082 ol_cv_lib_db=-ldb43
38086 if test $ol_cv_lib_db = no ; then
38087 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
38088 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
38089 if test "${ol_cv_db_db_43+set}" = set; then
38090 echo $ECHO_N "(cached) $ECHO_C" >&6
38095 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38097 cat >conftest.$ac_ext <<_ACEOF
38100 cat confdefs.h >>conftest.$ac_ext
38101 cat >>conftest.$ac_ext <<_ACEOF
38102 /* end confdefs.h. */
38104 #ifdef HAVE_DB_185_H
38105 # include <db_185.h>
38110 #ifndef DB_VERSION_MAJOR
38111 # define DB_VERSION_MAJOR 1
38115 #define NULL ((void*)0)
38122 #if DB_VERSION_MAJOR > 1
38125 int major, minor, patch;
38127 version = db_version( &major, &minor, &patch );
38129 if( major != DB_VERSION_MAJOR ||
38130 minor < DB_VERSION_MINOR )
38132 printf("Berkeley DB version mismatch\n"
38133 "\theader: %s\n\tlibrary: %s\n",
38134 DB_VERSION_STRING, version);
38140 #if DB_VERSION_MAJOR > 2
38141 db_env_create( NULL, 0 );
38142 #elif DB_VERSION_MAJOR > 1
38143 db_appexit( NULL );
38145 (void) dbopen( NULL, 0, 0, 0, NULL);
38152 rm -f conftest.$ac_objext conftest$ac_exeext
38153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38154 (eval $ac_link) 2>conftest.er1
38156 grep -v '^ *+' conftest.er1 >conftest.err
38158 cat conftest.err >&5
38159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38160 (exit $ac_status); } &&
38161 { ac_try='test -z "$ac_c_werror_flag"
38162 || test ! -s conftest.err'
38163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38164 (eval $ac_try) 2>&5
38166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38167 (exit $ac_status); }; } &&
38168 { ac_try='test -s conftest$ac_exeext'
38169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38170 (eval $ac_try) 2>&5
38172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38173 (exit $ac_status); }; }; then
38176 echo "$as_me: failed program was:" >&5
38177 sed 's/^/| /' conftest.$ac_ext >&5
38181 rm -f conftest.err conftest.$ac_objext \
38182 conftest$ac_exeext conftest.$ac_ext
38187 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
38188 echo "${ECHO_T}$ol_cv_db_db_43" >&6
38190 if test $ol_cv_db_db_43 = yes ; then
38191 ol_cv_lib_db=-ldb-43
38195 if test $ol_cv_lib_db = no ; then
38196 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
38197 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
38198 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
38199 echo $ECHO_N "(cached) $ECHO_C" >&6
38204 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38206 cat >conftest.$ac_ext <<_ACEOF
38209 cat confdefs.h >>conftest.$ac_ext
38210 cat >>conftest.$ac_ext <<_ACEOF
38211 /* end confdefs.h. */
38213 #ifdef HAVE_DB_185_H
38214 # include <db_185.h>
38219 #ifndef DB_VERSION_MAJOR
38220 # define DB_VERSION_MAJOR 1
38224 #define NULL ((void*)0)
38231 #if DB_VERSION_MAJOR > 1
38234 int major, minor, patch;
38236 version = db_version( &major, &minor, &patch );
38238 if( major != DB_VERSION_MAJOR ||
38239 minor < DB_VERSION_MINOR )
38241 printf("Berkeley DB version mismatch\n"
38242 "\theader: %s\n\tlibrary: %s\n",
38243 DB_VERSION_STRING, version);
38249 #if DB_VERSION_MAJOR > 2
38250 db_env_create( NULL, 0 );
38251 #elif DB_VERSION_MAJOR > 1
38252 db_appexit( NULL );
38254 (void) dbopen( NULL, 0, 0, 0, NULL);
38261 rm -f conftest.$ac_objext conftest$ac_exeext
38262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38263 (eval $ac_link) 2>conftest.er1
38265 grep -v '^ *+' conftest.er1 >conftest.err
38267 cat conftest.err >&5
38268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38269 (exit $ac_status); } &&
38270 { ac_try='test -z "$ac_c_werror_flag"
38271 || test ! -s conftest.err'
38272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38273 (eval $ac_try) 2>&5
38275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38276 (exit $ac_status); }; } &&
38277 { ac_try='test -s conftest$ac_exeext'
38278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38279 (eval $ac_try) 2>&5
38281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38282 (exit $ac_status); }; }; then
38283 ol_cv_db_db_4_dot_3=yes
38285 echo "$as_me: failed program was:" >&5
38286 sed 's/^/| /' conftest.$ac_ext >&5
38288 ol_cv_db_db_4_dot_3=no
38290 rm -f conftest.err conftest.$ac_objext \
38291 conftest$ac_exeext conftest.$ac_ext
38296 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
38297 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
38299 if test $ol_cv_db_db_4_dot_3 = yes ; then
38300 ol_cv_lib_db=-ldb-4.3
38304 if test $ol_cv_lib_db = no ; then
38305 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
38306 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
38307 if test "${ol_cv_db_db_4_3+set}" = set; then
38308 echo $ECHO_N "(cached) $ECHO_C" >&6
38313 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38315 cat >conftest.$ac_ext <<_ACEOF
38318 cat confdefs.h >>conftest.$ac_ext
38319 cat >>conftest.$ac_ext <<_ACEOF
38320 /* end confdefs.h. */
38322 #ifdef HAVE_DB_185_H
38323 # include <db_185.h>
38328 #ifndef DB_VERSION_MAJOR
38329 # define DB_VERSION_MAJOR 1
38333 #define NULL ((void*)0)
38340 #if DB_VERSION_MAJOR > 1
38343 int major, minor, patch;
38345 version = db_version( &major, &minor, &patch );
38347 if( major != DB_VERSION_MAJOR ||
38348 minor < DB_VERSION_MINOR )
38350 printf("Berkeley DB version mismatch\n"
38351 "\theader: %s\n\tlibrary: %s\n",
38352 DB_VERSION_STRING, version);
38358 #if DB_VERSION_MAJOR > 2
38359 db_env_create( NULL, 0 );
38360 #elif DB_VERSION_MAJOR > 1
38361 db_appexit( NULL );
38363 (void) dbopen( NULL, 0, 0, 0, NULL);
38370 rm -f conftest.$ac_objext conftest$ac_exeext
38371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38372 (eval $ac_link) 2>conftest.er1
38374 grep -v '^ *+' conftest.er1 >conftest.err
38376 cat conftest.err >&5
38377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38378 (exit $ac_status); } &&
38379 { ac_try='test -z "$ac_c_werror_flag"
38380 || test ! -s conftest.err'
38381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38382 (eval $ac_try) 2>&5
38384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38385 (exit $ac_status); }; } &&
38386 { ac_try='test -s conftest$ac_exeext'
38387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38388 (eval $ac_try) 2>&5
38390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38391 (exit $ac_status); }; }; then
38392 ol_cv_db_db_4_3=yes
38394 echo "$as_me: failed program was:" >&5
38395 sed 's/^/| /' conftest.$ac_ext >&5
38399 rm -f conftest.err conftest.$ac_objext \
38400 conftest$ac_exeext conftest.$ac_ext
38405 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
38406 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
38408 if test $ol_cv_db_db_4_3 = yes ; then
38409 ol_cv_lib_db=-ldb-4-3
38413 if test $ol_cv_lib_db = no ; then
38414 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
38415 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
38416 if test "${ol_cv_db_db42+set}" = set; then
38417 echo $ECHO_N "(cached) $ECHO_C" >&6
38422 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38424 cat >conftest.$ac_ext <<_ACEOF
38427 cat confdefs.h >>conftest.$ac_ext
38428 cat >>conftest.$ac_ext <<_ACEOF
38429 /* end confdefs.h. */
38431 #ifdef HAVE_DB_185_H
38432 # include <db_185.h>
38437 #ifndef DB_VERSION_MAJOR
38438 # define DB_VERSION_MAJOR 1
38442 #define NULL ((void*)0)
38449 #if DB_VERSION_MAJOR > 1
38452 int major, minor, patch;
38454 version = db_version( &major, &minor, &patch );
38456 if( major != DB_VERSION_MAJOR ||
38457 minor < DB_VERSION_MINOR )
38459 printf("Berkeley DB version mismatch\n"
38460 "\theader: %s\n\tlibrary: %s\n",
38461 DB_VERSION_STRING, version);
38467 #if DB_VERSION_MAJOR > 2
38468 db_env_create( NULL, 0 );
38469 #elif DB_VERSION_MAJOR > 1
38470 db_appexit( NULL );
38472 (void) dbopen( NULL, 0, 0, 0, NULL);
38479 rm -f conftest.$ac_objext conftest$ac_exeext
38480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38481 (eval $ac_link) 2>conftest.er1
38483 grep -v '^ *+' conftest.er1 >conftest.err
38485 cat conftest.err >&5
38486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38487 (exit $ac_status); } &&
38488 { ac_try='test -z "$ac_c_werror_flag"
38489 || test ! -s conftest.err'
38490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38491 (eval $ac_try) 2>&5
38493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38494 (exit $ac_status); }; } &&
38495 { ac_try='test -s conftest$ac_exeext'
38496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38497 (eval $ac_try) 2>&5
38499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38500 (exit $ac_status); }; }; then
38503 echo "$as_me: failed program was:" >&5
38504 sed 's/^/| /' conftest.$ac_ext >&5
38508 rm -f conftest.err conftest.$ac_objext \
38509 conftest$ac_exeext conftest.$ac_ext
38514 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
38515 echo "${ECHO_T}$ol_cv_db_db42" >&6
38517 if test $ol_cv_db_db42 = yes ; then
38518 ol_cv_lib_db=-ldb42
38522 if test $ol_cv_lib_db = no ; then
38523 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
38524 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
38525 if test "${ol_cv_db_db_42+set}" = set; then
38526 echo $ECHO_N "(cached) $ECHO_C" >&6
38531 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38533 cat >conftest.$ac_ext <<_ACEOF
38536 cat confdefs.h >>conftest.$ac_ext
38537 cat >>conftest.$ac_ext <<_ACEOF
38538 /* end confdefs.h. */
38540 #ifdef HAVE_DB_185_H
38541 # include <db_185.h>
38546 #ifndef DB_VERSION_MAJOR
38547 # define DB_VERSION_MAJOR 1
38551 #define NULL ((void*)0)
38558 #if DB_VERSION_MAJOR > 1
38561 int major, minor, patch;
38563 version = db_version( &major, &minor, &patch );
38565 if( major != DB_VERSION_MAJOR ||
38566 minor < DB_VERSION_MINOR )
38568 printf("Berkeley DB version mismatch\n"
38569 "\theader: %s\n\tlibrary: %s\n",
38570 DB_VERSION_STRING, version);
38576 #if DB_VERSION_MAJOR > 2
38577 db_env_create( NULL, 0 );
38578 #elif DB_VERSION_MAJOR > 1
38579 db_appexit( NULL );
38581 (void) dbopen( NULL, 0, 0, 0, NULL);
38588 rm -f conftest.$ac_objext conftest$ac_exeext
38589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38590 (eval $ac_link) 2>conftest.er1
38592 grep -v '^ *+' conftest.er1 >conftest.err
38594 cat conftest.err >&5
38595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38596 (exit $ac_status); } &&
38597 { ac_try='test -z "$ac_c_werror_flag"
38598 || test ! -s conftest.err'
38599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38600 (eval $ac_try) 2>&5
38602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38603 (exit $ac_status); }; } &&
38604 { ac_try='test -s conftest$ac_exeext'
38605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38606 (eval $ac_try) 2>&5
38608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38609 (exit $ac_status); }; }; then
38612 echo "$as_me: failed program was:" >&5
38613 sed 's/^/| /' conftest.$ac_ext >&5
38617 rm -f conftest.err conftest.$ac_objext \
38618 conftest$ac_exeext conftest.$ac_ext
38623 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
38624 echo "${ECHO_T}$ol_cv_db_db_42" >&6
38626 if test $ol_cv_db_db_42 = yes ; then
38627 ol_cv_lib_db=-ldb-42
38631 if test $ol_cv_lib_db = no ; then
38632 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
38633 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
38634 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
38635 echo $ECHO_N "(cached) $ECHO_C" >&6
38640 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38642 cat >conftest.$ac_ext <<_ACEOF
38645 cat confdefs.h >>conftest.$ac_ext
38646 cat >>conftest.$ac_ext <<_ACEOF
38647 /* end confdefs.h. */
38649 #ifdef HAVE_DB_185_H
38650 # include <db_185.h>
38655 #ifndef DB_VERSION_MAJOR
38656 # define DB_VERSION_MAJOR 1
38660 #define NULL ((void*)0)
38667 #if DB_VERSION_MAJOR > 1
38670 int major, minor, patch;
38672 version = db_version( &major, &minor, &patch );
38674 if( major != DB_VERSION_MAJOR ||
38675 minor < DB_VERSION_MINOR )
38677 printf("Berkeley DB version mismatch\n"
38678 "\theader: %s\n\tlibrary: %s\n",
38679 DB_VERSION_STRING, version);
38685 #if DB_VERSION_MAJOR > 2
38686 db_env_create( NULL, 0 );
38687 #elif DB_VERSION_MAJOR > 1
38688 db_appexit( NULL );
38690 (void) dbopen( NULL, 0, 0, 0, NULL);
38697 rm -f conftest.$ac_objext conftest$ac_exeext
38698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38699 (eval $ac_link) 2>conftest.er1
38701 grep -v '^ *+' conftest.er1 >conftest.err
38703 cat conftest.err >&5
38704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38705 (exit $ac_status); } &&
38706 { ac_try='test -z "$ac_c_werror_flag"
38707 || test ! -s conftest.err'
38708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38709 (eval $ac_try) 2>&5
38711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38712 (exit $ac_status); }; } &&
38713 { ac_try='test -s conftest$ac_exeext'
38714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38715 (eval $ac_try) 2>&5
38717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38718 (exit $ac_status); }; }; then
38719 ol_cv_db_db_4_dot_2=yes
38721 echo "$as_me: failed program was:" >&5
38722 sed 's/^/| /' conftest.$ac_ext >&5
38724 ol_cv_db_db_4_dot_2=no
38726 rm -f conftest.err conftest.$ac_objext \
38727 conftest$ac_exeext conftest.$ac_ext
38732 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
38733 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
38735 if test $ol_cv_db_db_4_dot_2 = yes ; then
38736 ol_cv_lib_db=-ldb-4.2
38740 if test $ol_cv_lib_db = no ; then
38741 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
38742 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
38743 if test "${ol_cv_db_db_4_2+set}" = set; then
38744 echo $ECHO_N "(cached) $ECHO_C" >&6
38749 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38751 cat >conftest.$ac_ext <<_ACEOF
38754 cat confdefs.h >>conftest.$ac_ext
38755 cat >>conftest.$ac_ext <<_ACEOF
38756 /* end confdefs.h. */
38758 #ifdef HAVE_DB_185_H
38759 # include <db_185.h>
38764 #ifndef DB_VERSION_MAJOR
38765 # define DB_VERSION_MAJOR 1
38769 #define NULL ((void*)0)
38776 #if DB_VERSION_MAJOR > 1
38779 int major, minor, patch;
38781 version = db_version( &major, &minor, &patch );
38783 if( major != DB_VERSION_MAJOR ||
38784 minor < DB_VERSION_MINOR )
38786 printf("Berkeley DB version mismatch\n"
38787 "\theader: %s\n\tlibrary: %s\n",
38788 DB_VERSION_STRING, version);
38794 #if DB_VERSION_MAJOR > 2
38795 db_env_create( NULL, 0 );
38796 #elif DB_VERSION_MAJOR > 1
38797 db_appexit( NULL );
38799 (void) dbopen( NULL, 0, 0, 0, NULL);
38806 rm -f conftest.$ac_objext conftest$ac_exeext
38807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38808 (eval $ac_link) 2>conftest.er1
38810 grep -v '^ *+' conftest.er1 >conftest.err
38812 cat conftest.err >&5
38813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38814 (exit $ac_status); } &&
38815 { ac_try='test -z "$ac_c_werror_flag"
38816 || test ! -s conftest.err'
38817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38818 (eval $ac_try) 2>&5
38820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38821 (exit $ac_status); }; } &&
38822 { ac_try='test -s conftest$ac_exeext'
38823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38824 (eval $ac_try) 2>&5
38826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38827 (exit $ac_status); }; }; then
38828 ol_cv_db_db_4_2=yes
38830 echo "$as_me: failed program was:" >&5
38831 sed 's/^/| /' conftest.$ac_ext >&5
38835 rm -f conftest.err conftest.$ac_objext \
38836 conftest$ac_exeext conftest.$ac_ext
38841 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
38842 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
38844 if test $ol_cv_db_db_4_2 = yes ; then
38845 ol_cv_lib_db=-ldb-4-2
38849 if test $ol_cv_lib_db = no ; then
38850 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
38851 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
38852 if test "${ol_cv_db_db_4+set}" = set; then
38853 echo $ECHO_N "(cached) $ECHO_C" >&6
38858 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38860 cat >conftest.$ac_ext <<_ACEOF
38863 cat confdefs.h >>conftest.$ac_ext
38864 cat >>conftest.$ac_ext <<_ACEOF
38865 /* end confdefs.h. */
38867 #ifdef HAVE_DB_185_H
38868 # include <db_185.h>
38873 #ifndef DB_VERSION_MAJOR
38874 # define DB_VERSION_MAJOR 1
38878 #define NULL ((void*)0)
38885 #if DB_VERSION_MAJOR > 1
38888 int major, minor, patch;
38890 version = db_version( &major, &minor, &patch );
38892 if( major != DB_VERSION_MAJOR ||
38893 minor < DB_VERSION_MINOR )
38895 printf("Berkeley DB version mismatch\n"
38896 "\theader: %s\n\tlibrary: %s\n",
38897 DB_VERSION_STRING, version);
38903 #if DB_VERSION_MAJOR > 2
38904 db_env_create( NULL, 0 );
38905 #elif DB_VERSION_MAJOR > 1
38906 db_appexit( NULL );
38908 (void) dbopen( NULL, 0, 0, 0, NULL);
38915 rm -f conftest.$ac_objext conftest$ac_exeext
38916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38917 (eval $ac_link) 2>conftest.er1
38919 grep -v '^ *+' conftest.er1 >conftest.err
38921 cat conftest.err >&5
38922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38923 (exit $ac_status); } &&
38924 { ac_try='test -z "$ac_c_werror_flag"
38925 || test ! -s conftest.err'
38926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38927 (eval $ac_try) 2>&5
38929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38930 (exit $ac_status); }; } &&
38931 { ac_try='test -s conftest$ac_exeext'
38932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38933 (eval $ac_try) 2>&5
38935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38936 (exit $ac_status); }; }; then
38939 echo "$as_me: failed program was:" >&5
38940 sed 's/^/| /' conftest.$ac_ext >&5
38944 rm -f conftest.err conftest.$ac_objext \
38945 conftest$ac_exeext conftest.$ac_ext
38950 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
38951 echo "${ECHO_T}$ol_cv_db_db_4" >&6
38953 if test $ol_cv_db_db_4 = yes ; then
38954 ol_cv_lib_db=-ldb-4
38958 if test $ol_cv_lib_db = no ; then
38959 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
38960 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
38961 if test "${ol_cv_db_db4+set}" = set; then
38962 echo $ECHO_N "(cached) $ECHO_C" >&6
38967 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38969 cat >conftest.$ac_ext <<_ACEOF
38972 cat confdefs.h >>conftest.$ac_ext
38973 cat >>conftest.$ac_ext <<_ACEOF
38974 /* end confdefs.h. */
38976 #ifdef HAVE_DB_185_H
38977 # include <db_185.h>
38982 #ifndef DB_VERSION_MAJOR
38983 # define DB_VERSION_MAJOR 1
38987 #define NULL ((void*)0)
38994 #if DB_VERSION_MAJOR > 1
38997 int major, minor, patch;
38999 version = db_version( &major, &minor, &patch );
39001 if( major != DB_VERSION_MAJOR ||
39002 minor < DB_VERSION_MINOR )
39004 printf("Berkeley DB version mismatch\n"
39005 "\theader: %s\n\tlibrary: %s\n",
39006 DB_VERSION_STRING, version);
39012 #if DB_VERSION_MAJOR > 2
39013 db_env_create( NULL, 0 );
39014 #elif DB_VERSION_MAJOR > 1
39015 db_appexit( NULL );
39017 (void) dbopen( NULL, 0, 0, 0, NULL);
39024 rm -f conftest.$ac_objext conftest$ac_exeext
39025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39026 (eval $ac_link) 2>conftest.er1
39028 grep -v '^ *+' conftest.er1 >conftest.err
39030 cat conftest.err >&5
39031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39032 (exit $ac_status); } &&
39033 { ac_try='test -z "$ac_c_werror_flag"
39034 || test ! -s conftest.err'
39035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39036 (eval $ac_try) 2>&5
39038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39039 (exit $ac_status); }; } &&
39040 { ac_try='test -s conftest$ac_exeext'
39041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39042 (eval $ac_try) 2>&5
39044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39045 (exit $ac_status); }; }; then
39048 echo "$as_me: failed program was:" >&5
39049 sed 's/^/| /' conftest.$ac_ext >&5
39053 rm -f conftest.err conftest.$ac_objext \
39054 conftest$ac_exeext conftest.$ac_ext
39059 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
39060 echo "${ECHO_T}$ol_cv_db_db4" >&6
39062 if test $ol_cv_db_db4 = yes ; then
39067 if test $ol_cv_lib_db = no ; then
39068 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
39069 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
39070 if test "${ol_cv_db_db+set}" = set; then
39071 echo $ECHO_N "(cached) $ECHO_C" >&6
39076 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39078 cat >conftest.$ac_ext <<_ACEOF
39081 cat confdefs.h >>conftest.$ac_ext
39082 cat >>conftest.$ac_ext <<_ACEOF
39083 /* end confdefs.h. */
39085 #ifdef HAVE_DB_185_H
39086 # include <db_185.h>
39091 #ifndef DB_VERSION_MAJOR
39092 # define DB_VERSION_MAJOR 1
39096 #define NULL ((void*)0)
39103 #if DB_VERSION_MAJOR > 1
39106 int major, minor, patch;
39108 version = db_version( &major, &minor, &patch );
39110 if( major != DB_VERSION_MAJOR ||
39111 minor < DB_VERSION_MINOR )
39113 printf("Berkeley DB version mismatch\n"
39114 "\theader: %s\n\tlibrary: %s\n",
39115 DB_VERSION_STRING, version);
39121 #if DB_VERSION_MAJOR > 2
39122 db_env_create( NULL, 0 );
39123 #elif DB_VERSION_MAJOR > 1
39124 db_appexit( NULL );
39126 (void) dbopen( NULL, 0, 0, 0, NULL);
39133 rm -f conftest.$ac_objext conftest$ac_exeext
39134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39135 (eval $ac_link) 2>conftest.er1
39137 grep -v '^ *+' conftest.er1 >conftest.err
39139 cat conftest.err >&5
39140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39141 (exit $ac_status); } &&
39142 { ac_try='test -z "$ac_c_werror_flag"
39143 || test ! -s conftest.err'
39144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39145 (eval $ac_try) 2>&5
39147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39148 (exit $ac_status); }; } &&
39149 { ac_try='test -s conftest$ac_exeext'
39150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39151 (eval $ac_try) 2>&5
39153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39154 (exit $ac_status); }; }; then
39157 echo "$as_me: failed program was:" >&5
39158 sed 's/^/| /' conftest.$ac_ext >&5
39162 rm -f conftest.err conftest.$ac_objext \
39163 conftest$ac_exeext conftest.$ac_ext
39168 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
39169 echo "${ECHO_T}$ol_cv_db_db" >&6
39171 if test $ol_cv_db_db = yes ; then
39176 if test $ol_cv_lib_db = no ; then
39177 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
39178 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
39179 if test "${ol_cv_db_db41+set}" = set; then
39180 echo $ECHO_N "(cached) $ECHO_C" >&6
39185 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39187 cat >conftest.$ac_ext <<_ACEOF
39190 cat confdefs.h >>conftest.$ac_ext
39191 cat >>conftest.$ac_ext <<_ACEOF
39192 /* end confdefs.h. */
39194 #ifdef HAVE_DB_185_H
39195 # include <db_185.h>
39200 #ifndef DB_VERSION_MAJOR
39201 # define DB_VERSION_MAJOR 1
39205 #define NULL ((void*)0)
39212 #if DB_VERSION_MAJOR > 1
39215 int major, minor, patch;
39217 version = db_version( &major, &minor, &patch );
39219 if( major != DB_VERSION_MAJOR ||
39220 minor < DB_VERSION_MINOR )
39222 printf("Berkeley DB version mismatch\n"
39223 "\theader: %s\n\tlibrary: %s\n",
39224 DB_VERSION_STRING, version);
39230 #if DB_VERSION_MAJOR > 2
39231 db_env_create( NULL, 0 );
39232 #elif DB_VERSION_MAJOR > 1
39233 db_appexit( NULL );
39235 (void) dbopen( NULL, 0, 0, 0, NULL);
39242 rm -f conftest.$ac_objext conftest$ac_exeext
39243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39244 (eval $ac_link) 2>conftest.er1
39246 grep -v '^ *+' conftest.er1 >conftest.err
39248 cat conftest.err >&5
39249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39250 (exit $ac_status); } &&
39251 { ac_try='test -z "$ac_c_werror_flag"
39252 || test ! -s conftest.err'
39253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39254 (eval $ac_try) 2>&5
39256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39257 (exit $ac_status); }; } &&
39258 { ac_try='test -s conftest$ac_exeext'
39259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39260 (eval $ac_try) 2>&5
39262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39263 (exit $ac_status); }; }; then
39266 echo "$as_me: failed program was:" >&5
39267 sed 's/^/| /' conftest.$ac_ext >&5
39271 rm -f conftest.err conftest.$ac_objext \
39272 conftest$ac_exeext conftest.$ac_ext
39277 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
39278 echo "${ECHO_T}$ol_cv_db_db41" >&6
39280 if test $ol_cv_db_db41 = yes ; then
39281 ol_cv_lib_db=-ldb41
39285 if test $ol_cv_lib_db = no ; then
39286 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
39287 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
39288 if test "${ol_cv_db_db_41+set}" = set; then
39289 echo $ECHO_N "(cached) $ECHO_C" >&6
39294 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39296 cat >conftest.$ac_ext <<_ACEOF
39299 cat confdefs.h >>conftest.$ac_ext
39300 cat >>conftest.$ac_ext <<_ACEOF
39301 /* end confdefs.h. */
39303 #ifdef HAVE_DB_185_H
39304 # include <db_185.h>
39309 #ifndef DB_VERSION_MAJOR
39310 # define DB_VERSION_MAJOR 1
39314 #define NULL ((void*)0)
39321 #if DB_VERSION_MAJOR > 1
39324 int major, minor, patch;
39326 version = db_version( &major, &minor, &patch );
39328 if( major != DB_VERSION_MAJOR ||
39329 minor < DB_VERSION_MINOR )
39331 printf("Berkeley DB version mismatch\n"
39332 "\theader: %s\n\tlibrary: %s\n",
39333 DB_VERSION_STRING, version);
39339 #if DB_VERSION_MAJOR > 2
39340 db_env_create( NULL, 0 );
39341 #elif DB_VERSION_MAJOR > 1
39342 db_appexit( NULL );
39344 (void) dbopen( NULL, 0, 0, 0, NULL);
39351 rm -f conftest.$ac_objext conftest$ac_exeext
39352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39353 (eval $ac_link) 2>conftest.er1
39355 grep -v '^ *+' conftest.er1 >conftest.err
39357 cat conftest.err >&5
39358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39359 (exit $ac_status); } &&
39360 { ac_try='test -z "$ac_c_werror_flag"
39361 || test ! -s conftest.err'
39362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39363 (eval $ac_try) 2>&5
39365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39366 (exit $ac_status); }; } &&
39367 { ac_try='test -s conftest$ac_exeext'
39368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39369 (eval $ac_try) 2>&5
39371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39372 (exit $ac_status); }; }; then
39375 echo "$as_me: failed program was:" >&5
39376 sed 's/^/| /' conftest.$ac_ext >&5
39380 rm -f conftest.err conftest.$ac_objext \
39381 conftest$ac_exeext conftest.$ac_ext
39386 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
39387 echo "${ECHO_T}$ol_cv_db_db_41" >&6
39389 if test $ol_cv_db_db_41 = yes ; then
39390 ol_cv_lib_db=-ldb-41
39394 if test $ol_cv_lib_db = no ; then
39395 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
39396 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
39397 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
39398 echo $ECHO_N "(cached) $ECHO_C" >&6
39403 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39405 cat >conftest.$ac_ext <<_ACEOF
39408 cat confdefs.h >>conftest.$ac_ext
39409 cat >>conftest.$ac_ext <<_ACEOF
39410 /* end confdefs.h. */
39412 #ifdef HAVE_DB_185_H
39413 # include <db_185.h>
39418 #ifndef DB_VERSION_MAJOR
39419 # define DB_VERSION_MAJOR 1
39423 #define NULL ((void*)0)
39430 #if DB_VERSION_MAJOR > 1
39433 int major, minor, patch;
39435 version = db_version( &major, &minor, &patch );
39437 if( major != DB_VERSION_MAJOR ||
39438 minor < DB_VERSION_MINOR )
39440 printf("Berkeley DB version mismatch\n"
39441 "\theader: %s\n\tlibrary: %s\n",
39442 DB_VERSION_STRING, version);
39448 #if DB_VERSION_MAJOR > 2
39449 db_env_create( NULL, 0 );
39450 #elif DB_VERSION_MAJOR > 1
39451 db_appexit( NULL );
39453 (void) dbopen( NULL, 0, 0, 0, NULL);
39460 rm -f conftest.$ac_objext conftest$ac_exeext
39461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39462 (eval $ac_link) 2>conftest.er1
39464 grep -v '^ *+' conftest.er1 >conftest.err
39466 cat conftest.err >&5
39467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39468 (exit $ac_status); } &&
39469 { ac_try='test -z "$ac_c_werror_flag"
39470 || test ! -s conftest.err'
39471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39472 (eval $ac_try) 2>&5
39474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39475 (exit $ac_status); }; } &&
39476 { ac_try='test -s conftest$ac_exeext'
39477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39478 (eval $ac_try) 2>&5
39480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39481 (exit $ac_status); }; }; then
39482 ol_cv_db_db_4_dot_1=yes
39484 echo "$as_me: failed program was:" >&5
39485 sed 's/^/| /' conftest.$ac_ext >&5
39487 ol_cv_db_db_4_dot_1=no
39489 rm -f conftest.err conftest.$ac_objext \
39490 conftest$ac_exeext conftest.$ac_ext
39495 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
39496 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
39498 if test $ol_cv_db_db_4_dot_1 = yes ; then
39499 ol_cv_lib_db=-ldb-4.1
39503 if test $ol_cv_lib_db = no ; then
39504 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
39505 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
39506 if test "${ol_cv_db_db_4_1+set}" = set; then
39507 echo $ECHO_N "(cached) $ECHO_C" >&6
39512 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39514 cat >conftest.$ac_ext <<_ACEOF
39517 cat confdefs.h >>conftest.$ac_ext
39518 cat >>conftest.$ac_ext <<_ACEOF
39519 /* end confdefs.h. */
39521 #ifdef HAVE_DB_185_H
39522 # include <db_185.h>
39527 #ifndef DB_VERSION_MAJOR
39528 # define DB_VERSION_MAJOR 1
39532 #define NULL ((void*)0)
39539 #if DB_VERSION_MAJOR > 1
39542 int major, minor, patch;
39544 version = db_version( &major, &minor, &patch );
39546 if( major != DB_VERSION_MAJOR ||
39547 minor < DB_VERSION_MINOR )
39549 printf("Berkeley DB version mismatch\n"
39550 "\theader: %s\n\tlibrary: %s\n",
39551 DB_VERSION_STRING, version);
39557 #if DB_VERSION_MAJOR > 2
39558 db_env_create( NULL, 0 );
39559 #elif DB_VERSION_MAJOR > 1
39560 db_appexit( NULL );
39562 (void) dbopen( NULL, 0, 0, 0, NULL);
39569 rm -f conftest.$ac_objext conftest$ac_exeext
39570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39571 (eval $ac_link) 2>conftest.er1
39573 grep -v '^ *+' conftest.er1 >conftest.err
39575 cat conftest.err >&5
39576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39577 (exit $ac_status); } &&
39578 { ac_try='test -z "$ac_c_werror_flag"
39579 || test ! -s conftest.err'
39580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39581 (eval $ac_try) 2>&5
39583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39584 (exit $ac_status); }; } &&
39585 { ac_try='test -s conftest$ac_exeext'
39586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39587 (eval $ac_try) 2>&5
39589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39590 (exit $ac_status); }; }; then
39591 ol_cv_db_db_4_1=yes
39593 echo "$as_me: failed program was:" >&5
39594 sed 's/^/| /' conftest.$ac_ext >&5
39598 rm -f conftest.err conftest.$ac_objext \
39599 conftest$ac_exeext conftest.$ac_ext
39604 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
39605 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
39607 if test $ol_cv_db_db_4_1 = yes ; then
39608 ol_cv_lib_db=-ldb-4-1
39612 if test $ol_cv_lib_db = no ; then
39613 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
39614 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
39615 if test "${ol_cv_db_db3+set}" = set; then
39616 echo $ECHO_N "(cached) $ECHO_C" >&6
39621 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39623 cat >conftest.$ac_ext <<_ACEOF
39626 cat confdefs.h >>conftest.$ac_ext
39627 cat >>conftest.$ac_ext <<_ACEOF
39628 /* end confdefs.h. */
39630 #ifdef HAVE_DB_185_H
39631 # include <db_185.h>
39636 #ifndef DB_VERSION_MAJOR
39637 # define DB_VERSION_MAJOR 1
39641 #define NULL ((void*)0)
39648 #if DB_VERSION_MAJOR > 1
39651 int major, minor, patch;
39653 version = db_version( &major, &minor, &patch );
39655 if( major != DB_VERSION_MAJOR ||
39656 minor < DB_VERSION_MINOR )
39658 printf("Berkeley DB version mismatch\n"
39659 "\theader: %s\n\tlibrary: %s\n",
39660 DB_VERSION_STRING, version);
39666 #if DB_VERSION_MAJOR > 2
39667 db_env_create( NULL, 0 );
39668 #elif DB_VERSION_MAJOR > 1
39669 db_appexit( NULL );
39671 (void) dbopen( NULL, 0, 0, 0, NULL);
39678 rm -f conftest.$ac_objext conftest$ac_exeext
39679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39680 (eval $ac_link) 2>conftest.er1
39682 grep -v '^ *+' conftest.er1 >conftest.err
39684 cat conftest.err >&5
39685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39686 (exit $ac_status); } &&
39687 { ac_try='test -z "$ac_c_werror_flag"
39688 || test ! -s conftest.err'
39689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39690 (eval $ac_try) 2>&5
39692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39693 (exit $ac_status); }; } &&
39694 { ac_try='test -s conftest$ac_exeext'
39695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39696 (eval $ac_try) 2>&5
39698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39699 (exit $ac_status); }; }; then
39702 echo "$as_me: failed program was:" >&5
39703 sed 's/^/| /' conftest.$ac_ext >&5
39707 rm -f conftest.err conftest.$ac_objext \
39708 conftest$ac_exeext conftest.$ac_ext
39713 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
39714 echo "${ECHO_T}$ol_cv_db_db3" >&6
39716 if test $ol_cv_db_db3 = yes ; then
39721 if test $ol_cv_lib_db = no ; then
39722 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
39723 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
39724 if test "${ol_cv_db_db_3+set}" = set; then
39725 echo $ECHO_N "(cached) $ECHO_C" >&6
39730 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39732 cat >conftest.$ac_ext <<_ACEOF
39735 cat confdefs.h >>conftest.$ac_ext
39736 cat >>conftest.$ac_ext <<_ACEOF
39737 /* end confdefs.h. */
39739 #ifdef HAVE_DB_185_H
39740 # include <db_185.h>
39745 #ifndef DB_VERSION_MAJOR
39746 # define DB_VERSION_MAJOR 1
39750 #define NULL ((void*)0)
39757 #if DB_VERSION_MAJOR > 1
39760 int major, minor, patch;
39762 version = db_version( &major, &minor, &patch );
39764 if( major != DB_VERSION_MAJOR ||
39765 minor < DB_VERSION_MINOR )
39767 printf("Berkeley DB version mismatch\n"
39768 "\theader: %s\n\tlibrary: %s\n",
39769 DB_VERSION_STRING, version);
39775 #if DB_VERSION_MAJOR > 2
39776 db_env_create( NULL, 0 );
39777 #elif DB_VERSION_MAJOR > 1
39778 db_appexit( NULL );
39780 (void) dbopen( NULL, 0, 0, 0, NULL);
39787 rm -f conftest.$ac_objext conftest$ac_exeext
39788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39789 (eval $ac_link) 2>conftest.er1
39791 grep -v '^ *+' conftest.er1 >conftest.err
39793 cat conftest.err >&5
39794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39795 (exit $ac_status); } &&
39796 { ac_try='test -z "$ac_c_werror_flag"
39797 || test ! -s conftest.err'
39798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39799 (eval $ac_try) 2>&5
39801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39802 (exit $ac_status); }; } &&
39803 { ac_try='test -s conftest$ac_exeext'
39804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39805 (eval $ac_try) 2>&5
39807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39808 (exit $ac_status); }; }; then
39811 echo "$as_me: failed program was:" >&5
39812 sed 's/^/| /' conftest.$ac_ext >&5
39816 rm -f conftest.err conftest.$ac_objext \
39817 conftest$ac_exeext conftest.$ac_ext
39822 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
39823 echo "${ECHO_T}$ol_cv_db_db_3" >&6
39825 if test $ol_cv_db_db_3 = yes ; then
39826 ol_cv_lib_db=-ldb-3
39830 if test $ol_cv_lib_db = no ; then
39831 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
39832 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
39833 if test "${ol_cv_db_db2+set}" = set; then
39834 echo $ECHO_N "(cached) $ECHO_C" >&6
39839 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39841 cat >conftest.$ac_ext <<_ACEOF
39844 cat confdefs.h >>conftest.$ac_ext
39845 cat >>conftest.$ac_ext <<_ACEOF
39846 /* end confdefs.h. */
39848 #ifdef HAVE_DB_185_H
39849 # include <db_185.h>
39854 #ifndef DB_VERSION_MAJOR
39855 # define DB_VERSION_MAJOR 1
39859 #define NULL ((void*)0)
39866 #if DB_VERSION_MAJOR > 1
39869 int major, minor, patch;
39871 version = db_version( &major, &minor, &patch );
39873 if( major != DB_VERSION_MAJOR ||
39874 minor < DB_VERSION_MINOR )
39876 printf("Berkeley DB version mismatch\n"
39877 "\theader: %s\n\tlibrary: %s\n",
39878 DB_VERSION_STRING, version);
39884 #if DB_VERSION_MAJOR > 2
39885 db_env_create( NULL, 0 );
39886 #elif DB_VERSION_MAJOR > 1
39887 db_appexit( NULL );
39889 (void) dbopen( NULL, 0, 0, 0, NULL);
39896 rm -f conftest.$ac_objext conftest$ac_exeext
39897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39898 (eval $ac_link) 2>conftest.er1
39900 grep -v '^ *+' conftest.er1 >conftest.err
39902 cat conftest.err >&5
39903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39904 (exit $ac_status); } &&
39905 { ac_try='test -z "$ac_c_werror_flag"
39906 || test ! -s conftest.err'
39907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39908 (eval $ac_try) 2>&5
39910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39911 (exit $ac_status); }; } &&
39912 { ac_try='test -s conftest$ac_exeext'
39913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39914 (eval $ac_try) 2>&5
39916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39917 (exit $ac_status); }; }; then
39920 echo "$as_me: failed program was:" >&5
39921 sed 's/^/| /' conftest.$ac_ext >&5
39925 rm -f conftest.err conftest.$ac_objext \
39926 conftest$ac_exeext conftest.$ac_ext
39931 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
39932 echo "${ECHO_T}$ol_cv_db_db2" >&6
39934 if test $ol_cv_db_db2 = yes ; then
39939 if test $ol_cv_lib_db = no ; then
39940 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
39941 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
39942 if test "${ol_cv_db_db_2+set}" = set; then
39943 echo $ECHO_N "(cached) $ECHO_C" >&6
39948 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39950 cat >conftest.$ac_ext <<_ACEOF
39953 cat confdefs.h >>conftest.$ac_ext
39954 cat >>conftest.$ac_ext <<_ACEOF
39955 /* end confdefs.h. */
39957 #ifdef HAVE_DB_185_H
39958 # include <db_185.h>
39963 #ifndef DB_VERSION_MAJOR
39964 # define DB_VERSION_MAJOR 1
39968 #define NULL ((void*)0)
39975 #if DB_VERSION_MAJOR > 1
39978 int major, minor, patch;
39980 version = db_version( &major, &minor, &patch );
39982 if( major != DB_VERSION_MAJOR ||
39983 minor < DB_VERSION_MINOR )
39985 printf("Berkeley DB version mismatch\n"
39986 "\theader: %s\n\tlibrary: %s\n",
39987 DB_VERSION_STRING, version);
39993 #if DB_VERSION_MAJOR > 2
39994 db_env_create( NULL, 0 );
39995 #elif DB_VERSION_MAJOR > 1
39996 db_appexit( NULL );
39998 (void) dbopen( NULL, 0, 0, 0, NULL);
40005 rm -f conftest.$ac_objext conftest$ac_exeext
40006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40007 (eval $ac_link) 2>conftest.er1
40009 grep -v '^ *+' conftest.er1 >conftest.err
40011 cat conftest.err >&5
40012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40013 (exit $ac_status); } &&
40014 { ac_try='test -z "$ac_c_werror_flag"
40015 || test ! -s conftest.err'
40016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40017 (eval $ac_try) 2>&5
40019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40020 (exit $ac_status); }; } &&
40021 { ac_try='test -s conftest$ac_exeext'
40022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40023 (eval $ac_try) 2>&5
40025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40026 (exit $ac_status); }; }; then
40029 echo "$as_me: failed program was:" >&5
40030 sed 's/^/| /' conftest.$ac_ext >&5
40034 rm -f conftest.err conftest.$ac_objext \
40035 conftest$ac_exeext conftest.$ac_ext
40040 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
40041 echo "${ECHO_T}$ol_cv_db_db_2" >&6
40043 if test $ol_cv_db_db_2 = yes ; then
40044 ol_cv_lib_db=-ldb-2
40048 if test $ol_cv_lib_db = no ; then
40049 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
40050 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
40051 if test "${ol_cv_db_db1+set}" = set; then
40052 echo $ECHO_N "(cached) $ECHO_C" >&6
40057 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40059 cat >conftest.$ac_ext <<_ACEOF
40062 cat confdefs.h >>conftest.$ac_ext
40063 cat >>conftest.$ac_ext <<_ACEOF
40064 /* end confdefs.h. */
40066 #ifdef HAVE_DB_185_H
40067 # include <db_185.h>
40072 #ifndef DB_VERSION_MAJOR
40073 # define DB_VERSION_MAJOR 1
40077 #define NULL ((void*)0)
40084 #if DB_VERSION_MAJOR > 1
40087 int major, minor, patch;
40089 version = db_version( &major, &minor, &patch );
40091 if( major != DB_VERSION_MAJOR ||
40092 minor < DB_VERSION_MINOR )
40094 printf("Berkeley DB version mismatch\n"
40095 "\theader: %s\n\tlibrary: %s\n",
40096 DB_VERSION_STRING, version);
40102 #if DB_VERSION_MAJOR > 2
40103 db_env_create( NULL, 0 );
40104 #elif DB_VERSION_MAJOR > 1
40105 db_appexit( NULL );
40107 (void) dbopen( NULL, 0, 0, 0, NULL);
40114 rm -f conftest.$ac_objext conftest$ac_exeext
40115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40116 (eval $ac_link) 2>conftest.er1
40118 grep -v '^ *+' conftest.er1 >conftest.err
40120 cat conftest.err >&5
40121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40122 (exit $ac_status); } &&
40123 { ac_try='test -z "$ac_c_werror_flag"
40124 || test ! -s conftest.err'
40125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40126 (eval $ac_try) 2>&5
40128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40129 (exit $ac_status); }; } &&
40130 { ac_try='test -s conftest$ac_exeext'
40131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40132 (eval $ac_try) 2>&5
40134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40135 (exit $ac_status); }; }; then
40138 echo "$as_me: failed program was:" >&5
40139 sed 's/^/| /' conftest.$ac_ext >&5
40143 rm -f conftest.err conftest.$ac_objext \
40144 conftest$ac_exeext conftest.$ac_ext
40149 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
40150 echo "${ECHO_T}$ol_cv_db_db1" >&6
40152 if test $ol_cv_db_db1 = yes ; then
40157 if test $ol_cv_lib_db = no ; then
40158 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
40159 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
40160 if test "${ol_cv_db_db_1+set}" = set; then
40161 echo $ECHO_N "(cached) $ECHO_C" >&6
40166 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40168 cat >conftest.$ac_ext <<_ACEOF
40171 cat confdefs.h >>conftest.$ac_ext
40172 cat >>conftest.$ac_ext <<_ACEOF
40173 /* end confdefs.h. */
40175 #ifdef HAVE_DB_185_H
40176 # include <db_185.h>
40181 #ifndef DB_VERSION_MAJOR
40182 # define DB_VERSION_MAJOR 1
40186 #define NULL ((void*)0)
40193 #if DB_VERSION_MAJOR > 1
40196 int major, minor, patch;
40198 version = db_version( &major, &minor, &patch );
40200 if( major != DB_VERSION_MAJOR ||
40201 minor < DB_VERSION_MINOR )
40203 printf("Berkeley DB version mismatch\n"
40204 "\theader: %s\n\tlibrary: %s\n",
40205 DB_VERSION_STRING, version);
40211 #if DB_VERSION_MAJOR > 2
40212 db_env_create( NULL, 0 );
40213 #elif DB_VERSION_MAJOR > 1
40214 db_appexit( NULL );
40216 (void) dbopen( NULL, 0, 0, 0, NULL);
40223 rm -f conftest.$ac_objext conftest$ac_exeext
40224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40225 (eval $ac_link) 2>conftest.er1
40227 grep -v '^ *+' conftest.er1 >conftest.err
40229 cat conftest.err >&5
40230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40231 (exit $ac_status); } &&
40232 { ac_try='test -z "$ac_c_werror_flag"
40233 || test ! -s conftest.err'
40234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40235 (eval $ac_try) 2>&5
40237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40238 (exit $ac_status); }; } &&
40239 { ac_try='test -s conftest$ac_exeext'
40240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40241 (eval $ac_try) 2>&5
40243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40244 (exit $ac_status); }; }; then
40247 echo "$as_me: failed program was:" >&5
40248 sed 's/^/| /' conftest.$ac_ext >&5
40252 rm -f conftest.err conftest.$ac_objext \
40253 conftest$ac_exeext conftest.$ac_ext
40258 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
40259 echo "${ECHO_T}$ol_cv_db_db_1" >&6
40261 if test $ol_cv_db_db_1 = yes ; then
40262 ol_cv_lib_db=-ldb-1
40267 if test "$ol_cv_lib_db" != no ; then
40268 ol_cv_berkeley_db=yes
40274 ol_cv_berkeley_db=no
40276 for ac_header in db.h
40278 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40279 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40280 echo "$as_me:$LINENO: checking for $ac_header" >&5
40281 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40282 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40283 echo $ECHO_N "(cached) $ECHO_C" >&6
40285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40286 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40288 # Is the header compilable?
40289 echo "$as_me:$LINENO: checking $ac_header usability" >&5
40290 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
40291 cat >conftest.$ac_ext <<_ACEOF
40294 cat confdefs.h >>conftest.$ac_ext
40295 cat >>conftest.$ac_ext <<_ACEOF
40296 /* end confdefs.h. */
40297 $ac_includes_default
40298 #include <$ac_header>
40300 rm -f conftest.$ac_objext
40301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40302 (eval $ac_compile) 2>conftest.er1
40304 grep -v '^ *+' conftest.er1 >conftest.err
40306 cat conftest.err >&5
40307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40308 (exit $ac_status); } &&
40309 { ac_try='test -z "$ac_c_werror_flag"
40310 || test ! -s conftest.err'
40311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40312 (eval $ac_try) 2>&5
40314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40315 (exit $ac_status); }; } &&
40316 { ac_try='test -s conftest.$ac_objext'
40317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40318 (eval $ac_try) 2>&5
40320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40321 (exit $ac_status); }; }; then
40322 ac_header_compiler=yes
40324 echo "$as_me: failed program was:" >&5
40325 sed 's/^/| /' conftest.$ac_ext >&5
40327 ac_header_compiler=no
40329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40330 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40331 echo "${ECHO_T}$ac_header_compiler" >&6
40333 # Is the header present?
40334 echo "$as_me:$LINENO: checking $ac_header presence" >&5
40335 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
40336 cat >conftest.$ac_ext <<_ACEOF
40339 cat confdefs.h >>conftest.$ac_ext
40340 cat >>conftest.$ac_ext <<_ACEOF
40341 /* end confdefs.h. */
40342 #include <$ac_header>
40344 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
40345 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
40347 grep -v '^ *+' conftest.er1 >conftest.err
40349 cat conftest.err >&5
40350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40351 (exit $ac_status); } >/dev/null; then
40352 if test -s conftest.err; then
40353 ac_cpp_err=$ac_c_preproc_warn_flag
40354 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
40361 if test -z "$ac_cpp_err"; then
40362 ac_header_preproc=yes
40364 echo "$as_me: failed program was:" >&5
40365 sed 's/^/| /' conftest.$ac_ext >&5
40367 ac_header_preproc=no
40369 rm -f conftest.err conftest.$ac_ext
40370 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40371 echo "${ECHO_T}$ac_header_preproc" >&6
40373 # So? What about this header?
40374 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40376 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40377 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40378 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40379 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40380 ac_header_preproc=yes
40383 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40384 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40385 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40386 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40387 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40388 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40389 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40390 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
40391 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40392 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40393 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40394 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40397 ## ------------------------------------------ ##
40398 ## Report this to the AC_PACKAGE_NAME lists. ##
40399 ## ------------------------------------------ ##
40402 sed "s/^/$as_me: WARNING: /" >&2
40405 echo "$as_me:$LINENO: checking for $ac_header" >&5
40406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40408 echo $ECHO_N "(cached) $ECHO_C" >&6
40410 eval "$as_ac_Header=\$ac_header_preproc"
40412 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40413 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40416 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40417 cat >>confdefs.h <<_ACEOF
40418 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40425 if test $ac_cv_header_db_h = yes; then
40427 if test $ol_cv_lib_db = no ; then
40428 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
40429 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
40430 if test "${ol_cv_db_none+set}" = set; then
40431 echo $ECHO_N "(cached) $ECHO_C" >&6
40436 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40438 cat >conftest.$ac_ext <<_ACEOF
40441 cat confdefs.h >>conftest.$ac_ext
40442 cat >>conftest.$ac_ext <<_ACEOF
40443 /* end confdefs.h. */
40445 #ifdef HAVE_DB_185_H
40446 # include <db_185.h>
40451 #ifndef DB_VERSION_MAJOR
40452 # define DB_VERSION_MAJOR 1
40456 #define NULL ((void*)0)
40463 #if DB_VERSION_MAJOR > 1
40466 int major, minor, patch;
40468 version = db_version( &major, &minor, &patch );
40470 if( major != DB_VERSION_MAJOR ||
40471 minor < DB_VERSION_MINOR )
40473 printf("Berkeley DB version mismatch\n"
40474 "\theader: %s\n\tlibrary: %s\n",
40475 DB_VERSION_STRING, version);
40481 #if DB_VERSION_MAJOR > 2
40482 db_env_create( NULL, 0 );
40483 #elif DB_VERSION_MAJOR > 1
40484 db_appexit( NULL );
40486 (void) dbopen( NULL, 0, 0, 0, NULL);
40493 rm -f conftest.$ac_objext conftest$ac_exeext
40494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40495 (eval $ac_link) 2>conftest.er1
40497 grep -v '^ *+' conftest.er1 >conftest.err
40499 cat conftest.err >&5
40500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40501 (exit $ac_status); } &&
40502 { ac_try='test -z "$ac_c_werror_flag"
40503 || test ! -s conftest.err'
40504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40505 (eval $ac_try) 2>&5
40507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40508 (exit $ac_status); }; } &&
40509 { ac_try='test -s conftest$ac_exeext'
40510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40511 (eval $ac_try) 2>&5
40513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40514 (exit $ac_status); }; }; then
40517 echo "$as_me: failed program was:" >&5
40518 sed 's/^/| /' conftest.$ac_ext >&5
40522 rm -f conftest.err conftest.$ac_objext \
40523 conftest$ac_exeext conftest.$ac_ext
40528 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
40529 echo "${ECHO_T}$ol_cv_db_none" >&6
40531 if test $ol_cv_db_none = yes ; then
40536 if test $ol_cv_lib_db = no ; then
40537 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
40538 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
40539 if test "${ol_cv_db_db43+set}" = set; then
40540 echo $ECHO_N "(cached) $ECHO_C" >&6
40545 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40547 cat >conftest.$ac_ext <<_ACEOF
40550 cat confdefs.h >>conftest.$ac_ext
40551 cat >>conftest.$ac_ext <<_ACEOF
40552 /* end confdefs.h. */
40554 #ifdef HAVE_DB_185_H
40555 # include <db_185.h>
40560 #ifndef DB_VERSION_MAJOR
40561 # define DB_VERSION_MAJOR 1
40565 #define NULL ((void*)0)
40572 #if DB_VERSION_MAJOR > 1
40575 int major, minor, patch;
40577 version = db_version( &major, &minor, &patch );
40579 if( major != DB_VERSION_MAJOR ||
40580 minor < DB_VERSION_MINOR )
40582 printf("Berkeley DB version mismatch\n"
40583 "\theader: %s\n\tlibrary: %s\n",
40584 DB_VERSION_STRING, version);
40590 #if DB_VERSION_MAJOR > 2
40591 db_env_create( NULL, 0 );
40592 #elif DB_VERSION_MAJOR > 1
40593 db_appexit( NULL );
40595 (void) dbopen( NULL, 0, 0, 0, NULL);
40602 rm -f conftest.$ac_objext conftest$ac_exeext
40603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40604 (eval $ac_link) 2>conftest.er1
40606 grep -v '^ *+' conftest.er1 >conftest.err
40608 cat conftest.err >&5
40609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40610 (exit $ac_status); } &&
40611 { ac_try='test -z "$ac_c_werror_flag"
40612 || test ! -s conftest.err'
40613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40614 (eval $ac_try) 2>&5
40616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40617 (exit $ac_status); }; } &&
40618 { ac_try='test -s conftest$ac_exeext'
40619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40620 (eval $ac_try) 2>&5
40622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40623 (exit $ac_status); }; }; then
40626 echo "$as_me: failed program was:" >&5
40627 sed 's/^/| /' conftest.$ac_ext >&5
40631 rm -f conftest.err conftest.$ac_objext \
40632 conftest$ac_exeext conftest.$ac_ext
40637 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
40638 echo "${ECHO_T}$ol_cv_db_db43" >&6
40640 if test $ol_cv_db_db43 = yes ; then
40641 ol_cv_lib_db=-ldb43
40645 if test $ol_cv_lib_db = no ; then
40646 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
40647 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
40648 if test "${ol_cv_db_db_43+set}" = set; then
40649 echo $ECHO_N "(cached) $ECHO_C" >&6
40654 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40656 cat >conftest.$ac_ext <<_ACEOF
40659 cat confdefs.h >>conftest.$ac_ext
40660 cat >>conftest.$ac_ext <<_ACEOF
40661 /* end confdefs.h. */
40663 #ifdef HAVE_DB_185_H
40664 # include <db_185.h>
40669 #ifndef DB_VERSION_MAJOR
40670 # define DB_VERSION_MAJOR 1
40674 #define NULL ((void*)0)
40681 #if DB_VERSION_MAJOR > 1
40684 int major, minor, patch;
40686 version = db_version( &major, &minor, &patch );
40688 if( major != DB_VERSION_MAJOR ||
40689 minor < DB_VERSION_MINOR )
40691 printf("Berkeley DB version mismatch\n"
40692 "\theader: %s\n\tlibrary: %s\n",
40693 DB_VERSION_STRING, version);
40699 #if DB_VERSION_MAJOR > 2
40700 db_env_create( NULL, 0 );
40701 #elif DB_VERSION_MAJOR > 1
40702 db_appexit( NULL );
40704 (void) dbopen( NULL, 0, 0, 0, NULL);
40711 rm -f conftest.$ac_objext conftest$ac_exeext
40712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40713 (eval $ac_link) 2>conftest.er1
40715 grep -v '^ *+' conftest.er1 >conftest.err
40717 cat conftest.err >&5
40718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40719 (exit $ac_status); } &&
40720 { ac_try='test -z "$ac_c_werror_flag"
40721 || test ! -s conftest.err'
40722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40723 (eval $ac_try) 2>&5
40725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40726 (exit $ac_status); }; } &&
40727 { ac_try='test -s conftest$ac_exeext'
40728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40729 (eval $ac_try) 2>&5
40731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40732 (exit $ac_status); }; }; then
40735 echo "$as_me: failed program was:" >&5
40736 sed 's/^/| /' conftest.$ac_ext >&5
40740 rm -f conftest.err conftest.$ac_objext \
40741 conftest$ac_exeext conftest.$ac_ext
40746 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
40747 echo "${ECHO_T}$ol_cv_db_db_43" >&6
40749 if test $ol_cv_db_db_43 = yes ; then
40750 ol_cv_lib_db=-ldb-43
40754 if test $ol_cv_lib_db = no ; then
40755 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
40756 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
40757 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
40758 echo $ECHO_N "(cached) $ECHO_C" >&6
40763 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40765 cat >conftest.$ac_ext <<_ACEOF
40768 cat confdefs.h >>conftest.$ac_ext
40769 cat >>conftest.$ac_ext <<_ACEOF
40770 /* end confdefs.h. */
40772 #ifdef HAVE_DB_185_H
40773 # include <db_185.h>
40778 #ifndef DB_VERSION_MAJOR
40779 # define DB_VERSION_MAJOR 1
40783 #define NULL ((void*)0)
40790 #if DB_VERSION_MAJOR > 1
40793 int major, minor, patch;
40795 version = db_version( &major, &minor, &patch );
40797 if( major != DB_VERSION_MAJOR ||
40798 minor < DB_VERSION_MINOR )
40800 printf("Berkeley DB version mismatch\n"
40801 "\theader: %s\n\tlibrary: %s\n",
40802 DB_VERSION_STRING, version);
40808 #if DB_VERSION_MAJOR > 2
40809 db_env_create( NULL, 0 );
40810 #elif DB_VERSION_MAJOR > 1
40811 db_appexit( NULL );
40813 (void) dbopen( NULL, 0, 0, 0, NULL);
40820 rm -f conftest.$ac_objext conftest$ac_exeext
40821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40822 (eval $ac_link) 2>conftest.er1
40824 grep -v '^ *+' conftest.er1 >conftest.err
40826 cat conftest.err >&5
40827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40828 (exit $ac_status); } &&
40829 { ac_try='test -z "$ac_c_werror_flag"
40830 || test ! -s conftest.err'
40831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40832 (eval $ac_try) 2>&5
40834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40835 (exit $ac_status); }; } &&
40836 { ac_try='test -s conftest$ac_exeext'
40837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40838 (eval $ac_try) 2>&5
40840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40841 (exit $ac_status); }; }; then
40842 ol_cv_db_db_4_dot_3=yes
40844 echo "$as_me: failed program was:" >&5
40845 sed 's/^/| /' conftest.$ac_ext >&5
40847 ol_cv_db_db_4_dot_3=no
40849 rm -f conftest.err conftest.$ac_objext \
40850 conftest$ac_exeext conftest.$ac_ext
40855 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
40856 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
40858 if test $ol_cv_db_db_4_dot_3 = yes ; then
40859 ol_cv_lib_db=-ldb-4.3
40863 if test $ol_cv_lib_db = no ; then
40864 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
40865 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
40866 if test "${ol_cv_db_db_4_3+set}" = set; then
40867 echo $ECHO_N "(cached) $ECHO_C" >&6
40872 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40874 cat >conftest.$ac_ext <<_ACEOF
40877 cat confdefs.h >>conftest.$ac_ext
40878 cat >>conftest.$ac_ext <<_ACEOF
40879 /* end confdefs.h. */
40881 #ifdef HAVE_DB_185_H
40882 # include <db_185.h>
40887 #ifndef DB_VERSION_MAJOR
40888 # define DB_VERSION_MAJOR 1
40892 #define NULL ((void*)0)
40899 #if DB_VERSION_MAJOR > 1
40902 int major, minor, patch;
40904 version = db_version( &major, &minor, &patch );
40906 if( major != DB_VERSION_MAJOR ||
40907 minor < DB_VERSION_MINOR )
40909 printf("Berkeley DB version mismatch\n"
40910 "\theader: %s\n\tlibrary: %s\n",
40911 DB_VERSION_STRING, version);
40917 #if DB_VERSION_MAJOR > 2
40918 db_env_create( NULL, 0 );
40919 #elif DB_VERSION_MAJOR > 1
40920 db_appexit( NULL );
40922 (void) dbopen( NULL, 0, 0, 0, NULL);
40929 rm -f conftest.$ac_objext conftest$ac_exeext
40930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40931 (eval $ac_link) 2>conftest.er1
40933 grep -v '^ *+' conftest.er1 >conftest.err
40935 cat conftest.err >&5
40936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40937 (exit $ac_status); } &&
40938 { ac_try='test -z "$ac_c_werror_flag"
40939 || test ! -s conftest.err'
40940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40941 (eval $ac_try) 2>&5
40943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40944 (exit $ac_status); }; } &&
40945 { ac_try='test -s conftest$ac_exeext'
40946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40947 (eval $ac_try) 2>&5
40949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40950 (exit $ac_status); }; }; then
40951 ol_cv_db_db_4_3=yes
40953 echo "$as_me: failed program was:" >&5
40954 sed 's/^/| /' conftest.$ac_ext >&5
40958 rm -f conftest.err conftest.$ac_objext \
40959 conftest$ac_exeext conftest.$ac_ext
40964 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
40965 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
40967 if test $ol_cv_db_db_4_3 = yes ; then
40968 ol_cv_lib_db=-ldb-4-3
40972 if test $ol_cv_lib_db = no ; then
40973 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
40974 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
40975 if test "${ol_cv_db_db42+set}" = set; then
40976 echo $ECHO_N "(cached) $ECHO_C" >&6
40981 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40983 cat >conftest.$ac_ext <<_ACEOF
40986 cat confdefs.h >>conftest.$ac_ext
40987 cat >>conftest.$ac_ext <<_ACEOF
40988 /* end confdefs.h. */
40990 #ifdef HAVE_DB_185_H
40991 # include <db_185.h>
40996 #ifndef DB_VERSION_MAJOR
40997 # define DB_VERSION_MAJOR 1
41001 #define NULL ((void*)0)
41008 #if DB_VERSION_MAJOR > 1
41011 int major, minor, patch;
41013 version = db_version( &major, &minor, &patch );
41015 if( major != DB_VERSION_MAJOR ||
41016 minor < DB_VERSION_MINOR )
41018 printf("Berkeley DB version mismatch\n"
41019 "\theader: %s\n\tlibrary: %s\n",
41020 DB_VERSION_STRING, version);
41026 #if DB_VERSION_MAJOR > 2
41027 db_env_create( NULL, 0 );
41028 #elif DB_VERSION_MAJOR > 1
41029 db_appexit( NULL );
41031 (void) dbopen( NULL, 0, 0, 0, NULL);
41038 rm -f conftest.$ac_objext conftest$ac_exeext
41039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41040 (eval $ac_link) 2>conftest.er1
41042 grep -v '^ *+' conftest.er1 >conftest.err
41044 cat conftest.err >&5
41045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41046 (exit $ac_status); } &&
41047 { ac_try='test -z "$ac_c_werror_flag"
41048 || test ! -s conftest.err'
41049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41050 (eval $ac_try) 2>&5
41052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41053 (exit $ac_status); }; } &&
41054 { ac_try='test -s conftest$ac_exeext'
41055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41056 (eval $ac_try) 2>&5
41058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41059 (exit $ac_status); }; }; then
41062 echo "$as_me: failed program was:" >&5
41063 sed 's/^/| /' conftest.$ac_ext >&5
41067 rm -f conftest.err conftest.$ac_objext \
41068 conftest$ac_exeext conftest.$ac_ext
41073 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
41074 echo "${ECHO_T}$ol_cv_db_db42" >&6
41076 if test $ol_cv_db_db42 = yes ; then
41077 ol_cv_lib_db=-ldb42
41081 if test $ol_cv_lib_db = no ; then
41082 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
41083 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
41084 if test "${ol_cv_db_db_42+set}" = set; then
41085 echo $ECHO_N "(cached) $ECHO_C" >&6
41090 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41092 cat >conftest.$ac_ext <<_ACEOF
41095 cat confdefs.h >>conftest.$ac_ext
41096 cat >>conftest.$ac_ext <<_ACEOF
41097 /* end confdefs.h. */
41099 #ifdef HAVE_DB_185_H
41100 # include <db_185.h>
41105 #ifndef DB_VERSION_MAJOR
41106 # define DB_VERSION_MAJOR 1
41110 #define NULL ((void*)0)
41117 #if DB_VERSION_MAJOR > 1
41120 int major, minor, patch;
41122 version = db_version( &major, &minor, &patch );
41124 if( major != DB_VERSION_MAJOR ||
41125 minor < DB_VERSION_MINOR )
41127 printf("Berkeley DB version mismatch\n"
41128 "\theader: %s\n\tlibrary: %s\n",
41129 DB_VERSION_STRING, version);
41135 #if DB_VERSION_MAJOR > 2
41136 db_env_create( NULL, 0 );
41137 #elif DB_VERSION_MAJOR > 1
41138 db_appexit( NULL );
41140 (void) dbopen( NULL, 0, 0, 0, NULL);
41147 rm -f conftest.$ac_objext conftest$ac_exeext
41148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41149 (eval $ac_link) 2>conftest.er1
41151 grep -v '^ *+' conftest.er1 >conftest.err
41153 cat conftest.err >&5
41154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41155 (exit $ac_status); } &&
41156 { ac_try='test -z "$ac_c_werror_flag"
41157 || test ! -s conftest.err'
41158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41159 (eval $ac_try) 2>&5
41161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41162 (exit $ac_status); }; } &&
41163 { ac_try='test -s conftest$ac_exeext'
41164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41165 (eval $ac_try) 2>&5
41167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41168 (exit $ac_status); }; }; then
41171 echo "$as_me: failed program was:" >&5
41172 sed 's/^/| /' conftest.$ac_ext >&5
41176 rm -f conftest.err conftest.$ac_objext \
41177 conftest$ac_exeext conftest.$ac_ext
41182 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
41183 echo "${ECHO_T}$ol_cv_db_db_42" >&6
41185 if test $ol_cv_db_db_42 = yes ; then
41186 ol_cv_lib_db=-ldb-42
41190 if test $ol_cv_lib_db = no ; then
41191 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
41192 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
41193 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
41194 echo $ECHO_N "(cached) $ECHO_C" >&6
41199 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41201 cat >conftest.$ac_ext <<_ACEOF
41204 cat confdefs.h >>conftest.$ac_ext
41205 cat >>conftest.$ac_ext <<_ACEOF
41206 /* end confdefs.h. */
41208 #ifdef HAVE_DB_185_H
41209 # include <db_185.h>
41214 #ifndef DB_VERSION_MAJOR
41215 # define DB_VERSION_MAJOR 1
41219 #define NULL ((void*)0)
41226 #if DB_VERSION_MAJOR > 1
41229 int major, minor, patch;
41231 version = db_version( &major, &minor, &patch );
41233 if( major != DB_VERSION_MAJOR ||
41234 minor < DB_VERSION_MINOR )
41236 printf("Berkeley DB version mismatch\n"
41237 "\theader: %s\n\tlibrary: %s\n",
41238 DB_VERSION_STRING, version);
41244 #if DB_VERSION_MAJOR > 2
41245 db_env_create( NULL, 0 );
41246 #elif DB_VERSION_MAJOR > 1
41247 db_appexit( NULL );
41249 (void) dbopen( NULL, 0, 0, 0, NULL);
41256 rm -f conftest.$ac_objext conftest$ac_exeext
41257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41258 (eval $ac_link) 2>conftest.er1
41260 grep -v '^ *+' conftest.er1 >conftest.err
41262 cat conftest.err >&5
41263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41264 (exit $ac_status); } &&
41265 { ac_try='test -z "$ac_c_werror_flag"
41266 || test ! -s conftest.err'
41267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41268 (eval $ac_try) 2>&5
41270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41271 (exit $ac_status); }; } &&
41272 { ac_try='test -s conftest$ac_exeext'
41273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41274 (eval $ac_try) 2>&5
41276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41277 (exit $ac_status); }; }; then
41278 ol_cv_db_db_4_dot_2=yes
41280 echo "$as_me: failed program was:" >&5
41281 sed 's/^/| /' conftest.$ac_ext >&5
41283 ol_cv_db_db_4_dot_2=no
41285 rm -f conftest.err conftest.$ac_objext \
41286 conftest$ac_exeext conftest.$ac_ext
41291 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
41292 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
41294 if test $ol_cv_db_db_4_dot_2 = yes ; then
41295 ol_cv_lib_db=-ldb-4.2
41299 if test $ol_cv_lib_db = no ; then
41300 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
41301 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
41302 if test "${ol_cv_db_db_4_2+set}" = set; then
41303 echo $ECHO_N "(cached) $ECHO_C" >&6
41308 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41310 cat >conftest.$ac_ext <<_ACEOF
41313 cat confdefs.h >>conftest.$ac_ext
41314 cat >>conftest.$ac_ext <<_ACEOF
41315 /* end confdefs.h. */
41317 #ifdef HAVE_DB_185_H
41318 # include <db_185.h>
41323 #ifndef DB_VERSION_MAJOR
41324 # define DB_VERSION_MAJOR 1
41328 #define NULL ((void*)0)
41335 #if DB_VERSION_MAJOR > 1
41338 int major, minor, patch;
41340 version = db_version( &major, &minor, &patch );
41342 if( major != DB_VERSION_MAJOR ||
41343 minor < DB_VERSION_MINOR )
41345 printf("Berkeley DB version mismatch\n"
41346 "\theader: %s\n\tlibrary: %s\n",
41347 DB_VERSION_STRING, version);
41353 #if DB_VERSION_MAJOR > 2
41354 db_env_create( NULL, 0 );
41355 #elif DB_VERSION_MAJOR > 1
41356 db_appexit( NULL );
41358 (void) dbopen( NULL, 0, 0, 0, NULL);
41365 rm -f conftest.$ac_objext conftest$ac_exeext
41366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41367 (eval $ac_link) 2>conftest.er1
41369 grep -v '^ *+' conftest.er1 >conftest.err
41371 cat conftest.err >&5
41372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41373 (exit $ac_status); } &&
41374 { ac_try='test -z "$ac_c_werror_flag"
41375 || test ! -s conftest.err'
41376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41377 (eval $ac_try) 2>&5
41379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41380 (exit $ac_status); }; } &&
41381 { ac_try='test -s conftest$ac_exeext'
41382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41383 (eval $ac_try) 2>&5
41385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41386 (exit $ac_status); }; }; then
41387 ol_cv_db_db_4_2=yes
41389 echo "$as_me: failed program was:" >&5
41390 sed 's/^/| /' conftest.$ac_ext >&5
41394 rm -f conftest.err conftest.$ac_objext \
41395 conftest$ac_exeext conftest.$ac_ext
41400 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
41401 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
41403 if test $ol_cv_db_db_4_2 = yes ; then
41404 ol_cv_lib_db=-ldb-4-2
41408 if test $ol_cv_lib_db = no ; then
41409 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
41410 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
41411 if test "${ol_cv_db_db_4+set}" = set; then
41412 echo $ECHO_N "(cached) $ECHO_C" >&6
41417 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41419 cat >conftest.$ac_ext <<_ACEOF
41422 cat confdefs.h >>conftest.$ac_ext
41423 cat >>conftest.$ac_ext <<_ACEOF
41424 /* end confdefs.h. */
41426 #ifdef HAVE_DB_185_H
41427 # include <db_185.h>
41432 #ifndef DB_VERSION_MAJOR
41433 # define DB_VERSION_MAJOR 1
41437 #define NULL ((void*)0)
41444 #if DB_VERSION_MAJOR > 1
41447 int major, minor, patch;
41449 version = db_version( &major, &minor, &patch );
41451 if( major != DB_VERSION_MAJOR ||
41452 minor < DB_VERSION_MINOR )
41454 printf("Berkeley DB version mismatch\n"
41455 "\theader: %s\n\tlibrary: %s\n",
41456 DB_VERSION_STRING, version);
41462 #if DB_VERSION_MAJOR > 2
41463 db_env_create( NULL, 0 );
41464 #elif DB_VERSION_MAJOR > 1
41465 db_appexit( NULL );
41467 (void) dbopen( NULL, 0, 0, 0, NULL);
41474 rm -f conftest.$ac_objext conftest$ac_exeext
41475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41476 (eval $ac_link) 2>conftest.er1
41478 grep -v '^ *+' conftest.er1 >conftest.err
41480 cat conftest.err >&5
41481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41482 (exit $ac_status); } &&
41483 { ac_try='test -z "$ac_c_werror_flag"
41484 || test ! -s conftest.err'
41485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41486 (eval $ac_try) 2>&5
41488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41489 (exit $ac_status); }; } &&
41490 { ac_try='test -s conftest$ac_exeext'
41491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41492 (eval $ac_try) 2>&5
41494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41495 (exit $ac_status); }; }; then
41498 echo "$as_me: failed program was:" >&5
41499 sed 's/^/| /' conftest.$ac_ext >&5
41503 rm -f conftest.err conftest.$ac_objext \
41504 conftest$ac_exeext conftest.$ac_ext
41509 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
41510 echo "${ECHO_T}$ol_cv_db_db_4" >&6
41512 if test $ol_cv_db_db_4 = yes ; then
41513 ol_cv_lib_db=-ldb-4
41517 if test $ol_cv_lib_db = no ; then
41518 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
41519 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
41520 if test "${ol_cv_db_db4+set}" = set; then
41521 echo $ECHO_N "(cached) $ECHO_C" >&6
41526 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41528 cat >conftest.$ac_ext <<_ACEOF
41531 cat confdefs.h >>conftest.$ac_ext
41532 cat >>conftest.$ac_ext <<_ACEOF
41533 /* end confdefs.h. */
41535 #ifdef HAVE_DB_185_H
41536 # include <db_185.h>
41541 #ifndef DB_VERSION_MAJOR
41542 # define DB_VERSION_MAJOR 1
41546 #define NULL ((void*)0)
41553 #if DB_VERSION_MAJOR > 1
41556 int major, minor, patch;
41558 version = db_version( &major, &minor, &patch );
41560 if( major != DB_VERSION_MAJOR ||
41561 minor < DB_VERSION_MINOR )
41563 printf("Berkeley DB version mismatch\n"
41564 "\theader: %s\n\tlibrary: %s\n",
41565 DB_VERSION_STRING, version);
41571 #if DB_VERSION_MAJOR > 2
41572 db_env_create( NULL, 0 );
41573 #elif DB_VERSION_MAJOR > 1
41574 db_appexit( NULL );
41576 (void) dbopen( NULL, 0, 0, 0, NULL);
41583 rm -f conftest.$ac_objext conftest$ac_exeext
41584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41585 (eval $ac_link) 2>conftest.er1
41587 grep -v '^ *+' conftest.er1 >conftest.err
41589 cat conftest.err >&5
41590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41591 (exit $ac_status); } &&
41592 { ac_try='test -z "$ac_c_werror_flag"
41593 || test ! -s conftest.err'
41594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41595 (eval $ac_try) 2>&5
41597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41598 (exit $ac_status); }; } &&
41599 { ac_try='test -s conftest$ac_exeext'
41600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41601 (eval $ac_try) 2>&5
41603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41604 (exit $ac_status); }; }; then
41607 echo "$as_me: failed program was:" >&5
41608 sed 's/^/| /' conftest.$ac_ext >&5
41612 rm -f conftest.err conftest.$ac_objext \
41613 conftest$ac_exeext conftest.$ac_ext
41618 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
41619 echo "${ECHO_T}$ol_cv_db_db4" >&6
41621 if test $ol_cv_db_db4 = yes ; then
41626 if test $ol_cv_lib_db = no ; then
41627 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
41628 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
41629 if test "${ol_cv_db_db+set}" = set; then
41630 echo $ECHO_N "(cached) $ECHO_C" >&6
41635 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41637 cat >conftest.$ac_ext <<_ACEOF
41640 cat confdefs.h >>conftest.$ac_ext
41641 cat >>conftest.$ac_ext <<_ACEOF
41642 /* end confdefs.h. */
41644 #ifdef HAVE_DB_185_H
41645 # include <db_185.h>
41650 #ifndef DB_VERSION_MAJOR
41651 # define DB_VERSION_MAJOR 1
41655 #define NULL ((void*)0)
41662 #if DB_VERSION_MAJOR > 1
41665 int major, minor, patch;
41667 version = db_version( &major, &minor, &patch );
41669 if( major != DB_VERSION_MAJOR ||
41670 minor < DB_VERSION_MINOR )
41672 printf("Berkeley DB version mismatch\n"
41673 "\theader: %s\n\tlibrary: %s\n",
41674 DB_VERSION_STRING, version);
41680 #if DB_VERSION_MAJOR > 2
41681 db_env_create( NULL, 0 );
41682 #elif DB_VERSION_MAJOR > 1
41683 db_appexit( NULL );
41685 (void) dbopen( NULL, 0, 0, 0, NULL);
41692 rm -f conftest.$ac_objext conftest$ac_exeext
41693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41694 (eval $ac_link) 2>conftest.er1
41696 grep -v '^ *+' conftest.er1 >conftest.err
41698 cat conftest.err >&5
41699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41700 (exit $ac_status); } &&
41701 { ac_try='test -z "$ac_c_werror_flag"
41702 || test ! -s conftest.err'
41703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41704 (eval $ac_try) 2>&5
41706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41707 (exit $ac_status); }; } &&
41708 { ac_try='test -s conftest$ac_exeext'
41709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41710 (eval $ac_try) 2>&5
41712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41713 (exit $ac_status); }; }; then
41716 echo "$as_me: failed program was:" >&5
41717 sed 's/^/| /' conftest.$ac_ext >&5
41721 rm -f conftest.err conftest.$ac_objext \
41722 conftest$ac_exeext conftest.$ac_ext
41727 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
41728 echo "${ECHO_T}$ol_cv_db_db" >&6
41730 if test $ol_cv_db_db = yes ; then
41735 if test $ol_cv_lib_db = no ; then
41736 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
41737 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
41738 if test "${ol_cv_db_db41+set}" = set; then
41739 echo $ECHO_N "(cached) $ECHO_C" >&6
41744 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41746 cat >conftest.$ac_ext <<_ACEOF
41749 cat confdefs.h >>conftest.$ac_ext
41750 cat >>conftest.$ac_ext <<_ACEOF
41751 /* end confdefs.h. */
41753 #ifdef HAVE_DB_185_H
41754 # include <db_185.h>
41759 #ifndef DB_VERSION_MAJOR
41760 # define DB_VERSION_MAJOR 1
41764 #define NULL ((void*)0)
41771 #if DB_VERSION_MAJOR > 1
41774 int major, minor, patch;
41776 version = db_version( &major, &minor, &patch );
41778 if( major != DB_VERSION_MAJOR ||
41779 minor < DB_VERSION_MINOR )
41781 printf("Berkeley DB version mismatch\n"
41782 "\theader: %s\n\tlibrary: %s\n",
41783 DB_VERSION_STRING, version);
41789 #if DB_VERSION_MAJOR > 2
41790 db_env_create( NULL, 0 );
41791 #elif DB_VERSION_MAJOR > 1
41792 db_appexit( NULL );
41794 (void) dbopen( NULL, 0, 0, 0, NULL);
41801 rm -f conftest.$ac_objext conftest$ac_exeext
41802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41803 (eval $ac_link) 2>conftest.er1
41805 grep -v '^ *+' conftest.er1 >conftest.err
41807 cat conftest.err >&5
41808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41809 (exit $ac_status); } &&
41810 { ac_try='test -z "$ac_c_werror_flag"
41811 || test ! -s conftest.err'
41812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41813 (eval $ac_try) 2>&5
41815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41816 (exit $ac_status); }; } &&
41817 { ac_try='test -s conftest$ac_exeext'
41818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41819 (eval $ac_try) 2>&5
41821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41822 (exit $ac_status); }; }; then
41825 echo "$as_me: failed program was:" >&5
41826 sed 's/^/| /' conftest.$ac_ext >&5
41830 rm -f conftest.err conftest.$ac_objext \
41831 conftest$ac_exeext conftest.$ac_ext
41836 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
41837 echo "${ECHO_T}$ol_cv_db_db41" >&6
41839 if test $ol_cv_db_db41 = yes ; then
41840 ol_cv_lib_db=-ldb41
41844 if test $ol_cv_lib_db = no ; then
41845 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
41846 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
41847 if test "${ol_cv_db_db_41+set}" = set; then
41848 echo $ECHO_N "(cached) $ECHO_C" >&6
41853 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41855 cat >conftest.$ac_ext <<_ACEOF
41858 cat confdefs.h >>conftest.$ac_ext
41859 cat >>conftest.$ac_ext <<_ACEOF
41860 /* end confdefs.h. */
41862 #ifdef HAVE_DB_185_H
41863 # include <db_185.h>
41868 #ifndef DB_VERSION_MAJOR
41869 # define DB_VERSION_MAJOR 1
41873 #define NULL ((void*)0)
41880 #if DB_VERSION_MAJOR > 1
41883 int major, minor, patch;
41885 version = db_version( &major, &minor, &patch );
41887 if( major != DB_VERSION_MAJOR ||
41888 minor < DB_VERSION_MINOR )
41890 printf("Berkeley DB version mismatch\n"
41891 "\theader: %s\n\tlibrary: %s\n",
41892 DB_VERSION_STRING, version);
41898 #if DB_VERSION_MAJOR > 2
41899 db_env_create( NULL, 0 );
41900 #elif DB_VERSION_MAJOR > 1
41901 db_appexit( NULL );
41903 (void) dbopen( NULL, 0, 0, 0, NULL);
41910 rm -f conftest.$ac_objext conftest$ac_exeext
41911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41912 (eval $ac_link) 2>conftest.er1
41914 grep -v '^ *+' conftest.er1 >conftest.err
41916 cat conftest.err >&5
41917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41918 (exit $ac_status); } &&
41919 { ac_try='test -z "$ac_c_werror_flag"
41920 || test ! -s conftest.err'
41921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41922 (eval $ac_try) 2>&5
41924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41925 (exit $ac_status); }; } &&
41926 { ac_try='test -s conftest$ac_exeext'
41927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41928 (eval $ac_try) 2>&5
41930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41931 (exit $ac_status); }; }; then
41934 echo "$as_me: failed program was:" >&5
41935 sed 's/^/| /' conftest.$ac_ext >&5
41939 rm -f conftest.err conftest.$ac_objext \
41940 conftest$ac_exeext conftest.$ac_ext
41945 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
41946 echo "${ECHO_T}$ol_cv_db_db_41" >&6
41948 if test $ol_cv_db_db_41 = yes ; then
41949 ol_cv_lib_db=-ldb-41
41953 if test $ol_cv_lib_db = no ; then
41954 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
41955 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
41956 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
41957 echo $ECHO_N "(cached) $ECHO_C" >&6
41962 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41964 cat >conftest.$ac_ext <<_ACEOF
41967 cat confdefs.h >>conftest.$ac_ext
41968 cat >>conftest.$ac_ext <<_ACEOF
41969 /* end confdefs.h. */
41971 #ifdef HAVE_DB_185_H
41972 # include <db_185.h>
41977 #ifndef DB_VERSION_MAJOR
41978 # define DB_VERSION_MAJOR 1
41982 #define NULL ((void*)0)
41989 #if DB_VERSION_MAJOR > 1
41992 int major, minor, patch;
41994 version = db_version( &major, &minor, &patch );
41996 if( major != DB_VERSION_MAJOR ||
41997 minor < DB_VERSION_MINOR )
41999 printf("Berkeley DB version mismatch\n"
42000 "\theader: %s\n\tlibrary: %s\n",
42001 DB_VERSION_STRING, version);
42007 #if DB_VERSION_MAJOR > 2
42008 db_env_create( NULL, 0 );
42009 #elif DB_VERSION_MAJOR > 1
42010 db_appexit( NULL );
42012 (void) dbopen( NULL, 0, 0, 0, NULL);
42019 rm -f conftest.$ac_objext conftest$ac_exeext
42020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42021 (eval $ac_link) 2>conftest.er1
42023 grep -v '^ *+' conftest.er1 >conftest.err
42025 cat conftest.err >&5
42026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42027 (exit $ac_status); } &&
42028 { ac_try='test -z "$ac_c_werror_flag"
42029 || test ! -s conftest.err'
42030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42031 (eval $ac_try) 2>&5
42033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42034 (exit $ac_status); }; } &&
42035 { ac_try='test -s conftest$ac_exeext'
42036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42037 (eval $ac_try) 2>&5
42039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42040 (exit $ac_status); }; }; then
42041 ol_cv_db_db_4_dot_1=yes
42043 echo "$as_me: failed program was:" >&5
42044 sed 's/^/| /' conftest.$ac_ext >&5
42046 ol_cv_db_db_4_dot_1=no
42048 rm -f conftest.err conftest.$ac_objext \
42049 conftest$ac_exeext conftest.$ac_ext
42054 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
42055 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
42057 if test $ol_cv_db_db_4_dot_1 = yes ; then
42058 ol_cv_lib_db=-ldb-4.1
42062 if test $ol_cv_lib_db = no ; then
42063 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
42064 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
42065 if test "${ol_cv_db_db_4_1+set}" = set; then
42066 echo $ECHO_N "(cached) $ECHO_C" >&6
42071 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42073 cat >conftest.$ac_ext <<_ACEOF
42076 cat confdefs.h >>conftest.$ac_ext
42077 cat >>conftest.$ac_ext <<_ACEOF
42078 /* end confdefs.h. */
42080 #ifdef HAVE_DB_185_H
42081 # include <db_185.h>
42086 #ifndef DB_VERSION_MAJOR
42087 # define DB_VERSION_MAJOR 1
42091 #define NULL ((void*)0)
42098 #if DB_VERSION_MAJOR > 1
42101 int major, minor, patch;
42103 version = db_version( &major, &minor, &patch );
42105 if( major != DB_VERSION_MAJOR ||
42106 minor < DB_VERSION_MINOR )
42108 printf("Berkeley DB version mismatch\n"
42109 "\theader: %s\n\tlibrary: %s\n",
42110 DB_VERSION_STRING, version);
42116 #if DB_VERSION_MAJOR > 2
42117 db_env_create( NULL, 0 );
42118 #elif DB_VERSION_MAJOR > 1
42119 db_appexit( NULL );
42121 (void) dbopen( NULL, 0, 0, 0, NULL);
42128 rm -f conftest.$ac_objext conftest$ac_exeext
42129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42130 (eval $ac_link) 2>conftest.er1
42132 grep -v '^ *+' conftest.er1 >conftest.err
42134 cat conftest.err >&5
42135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42136 (exit $ac_status); } &&
42137 { ac_try='test -z "$ac_c_werror_flag"
42138 || test ! -s conftest.err'
42139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42140 (eval $ac_try) 2>&5
42142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42143 (exit $ac_status); }; } &&
42144 { ac_try='test -s conftest$ac_exeext'
42145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42146 (eval $ac_try) 2>&5
42148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42149 (exit $ac_status); }; }; then
42150 ol_cv_db_db_4_1=yes
42152 echo "$as_me: failed program was:" >&5
42153 sed 's/^/| /' conftest.$ac_ext >&5
42157 rm -f conftest.err conftest.$ac_objext \
42158 conftest$ac_exeext conftest.$ac_ext
42163 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
42164 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
42166 if test $ol_cv_db_db_4_1 = yes ; then
42167 ol_cv_lib_db=-ldb-4-1
42171 if test $ol_cv_lib_db = no ; then
42172 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
42173 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
42174 if test "${ol_cv_db_db3+set}" = set; then
42175 echo $ECHO_N "(cached) $ECHO_C" >&6
42180 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42182 cat >conftest.$ac_ext <<_ACEOF
42185 cat confdefs.h >>conftest.$ac_ext
42186 cat >>conftest.$ac_ext <<_ACEOF
42187 /* end confdefs.h. */
42189 #ifdef HAVE_DB_185_H
42190 # include <db_185.h>
42195 #ifndef DB_VERSION_MAJOR
42196 # define DB_VERSION_MAJOR 1
42200 #define NULL ((void*)0)
42207 #if DB_VERSION_MAJOR > 1
42210 int major, minor, patch;
42212 version = db_version( &major, &minor, &patch );
42214 if( major != DB_VERSION_MAJOR ||
42215 minor < DB_VERSION_MINOR )
42217 printf("Berkeley DB version mismatch\n"
42218 "\theader: %s\n\tlibrary: %s\n",
42219 DB_VERSION_STRING, version);
42225 #if DB_VERSION_MAJOR > 2
42226 db_env_create( NULL, 0 );
42227 #elif DB_VERSION_MAJOR > 1
42228 db_appexit( NULL );
42230 (void) dbopen( NULL, 0, 0, 0, NULL);
42237 rm -f conftest.$ac_objext conftest$ac_exeext
42238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42239 (eval $ac_link) 2>conftest.er1
42241 grep -v '^ *+' conftest.er1 >conftest.err
42243 cat conftest.err >&5
42244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42245 (exit $ac_status); } &&
42246 { ac_try='test -z "$ac_c_werror_flag"
42247 || test ! -s conftest.err'
42248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42249 (eval $ac_try) 2>&5
42251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42252 (exit $ac_status); }; } &&
42253 { ac_try='test -s conftest$ac_exeext'
42254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42255 (eval $ac_try) 2>&5
42257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42258 (exit $ac_status); }; }; then
42261 echo "$as_me: failed program was:" >&5
42262 sed 's/^/| /' conftest.$ac_ext >&5
42266 rm -f conftest.err conftest.$ac_objext \
42267 conftest$ac_exeext conftest.$ac_ext
42272 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
42273 echo "${ECHO_T}$ol_cv_db_db3" >&6
42275 if test $ol_cv_db_db3 = yes ; then
42280 if test $ol_cv_lib_db = no ; then
42281 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
42282 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
42283 if test "${ol_cv_db_db_3+set}" = set; then
42284 echo $ECHO_N "(cached) $ECHO_C" >&6
42289 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42291 cat >conftest.$ac_ext <<_ACEOF
42294 cat confdefs.h >>conftest.$ac_ext
42295 cat >>conftest.$ac_ext <<_ACEOF
42296 /* end confdefs.h. */
42298 #ifdef HAVE_DB_185_H
42299 # include <db_185.h>
42304 #ifndef DB_VERSION_MAJOR
42305 # define DB_VERSION_MAJOR 1
42309 #define NULL ((void*)0)
42316 #if DB_VERSION_MAJOR > 1
42319 int major, minor, patch;
42321 version = db_version( &major, &minor, &patch );
42323 if( major != DB_VERSION_MAJOR ||
42324 minor < DB_VERSION_MINOR )
42326 printf("Berkeley DB version mismatch\n"
42327 "\theader: %s\n\tlibrary: %s\n",
42328 DB_VERSION_STRING, version);
42334 #if DB_VERSION_MAJOR > 2
42335 db_env_create( NULL, 0 );
42336 #elif DB_VERSION_MAJOR > 1
42337 db_appexit( NULL );
42339 (void) dbopen( NULL, 0, 0, 0, NULL);
42346 rm -f conftest.$ac_objext conftest$ac_exeext
42347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42348 (eval $ac_link) 2>conftest.er1
42350 grep -v '^ *+' conftest.er1 >conftest.err
42352 cat conftest.err >&5
42353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42354 (exit $ac_status); } &&
42355 { ac_try='test -z "$ac_c_werror_flag"
42356 || test ! -s conftest.err'
42357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42358 (eval $ac_try) 2>&5
42360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42361 (exit $ac_status); }; } &&
42362 { ac_try='test -s conftest$ac_exeext'
42363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42364 (eval $ac_try) 2>&5
42366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42367 (exit $ac_status); }; }; then
42370 echo "$as_me: failed program was:" >&5
42371 sed 's/^/| /' conftest.$ac_ext >&5
42375 rm -f conftest.err conftest.$ac_objext \
42376 conftest$ac_exeext conftest.$ac_ext
42381 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
42382 echo "${ECHO_T}$ol_cv_db_db_3" >&6
42384 if test $ol_cv_db_db_3 = yes ; then
42385 ol_cv_lib_db=-ldb-3
42389 if test $ol_cv_lib_db = no ; then
42390 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
42391 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
42392 if test "${ol_cv_db_db2+set}" = set; then
42393 echo $ECHO_N "(cached) $ECHO_C" >&6
42398 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42400 cat >conftest.$ac_ext <<_ACEOF
42403 cat confdefs.h >>conftest.$ac_ext
42404 cat >>conftest.$ac_ext <<_ACEOF
42405 /* end confdefs.h. */
42407 #ifdef HAVE_DB_185_H
42408 # include <db_185.h>
42413 #ifndef DB_VERSION_MAJOR
42414 # define DB_VERSION_MAJOR 1
42418 #define NULL ((void*)0)
42425 #if DB_VERSION_MAJOR > 1
42428 int major, minor, patch;
42430 version = db_version( &major, &minor, &patch );
42432 if( major != DB_VERSION_MAJOR ||
42433 minor < DB_VERSION_MINOR )
42435 printf("Berkeley DB version mismatch\n"
42436 "\theader: %s\n\tlibrary: %s\n",
42437 DB_VERSION_STRING, version);
42443 #if DB_VERSION_MAJOR > 2
42444 db_env_create( NULL, 0 );
42445 #elif DB_VERSION_MAJOR > 1
42446 db_appexit( NULL );
42448 (void) dbopen( NULL, 0, 0, 0, NULL);
42455 rm -f conftest.$ac_objext conftest$ac_exeext
42456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42457 (eval $ac_link) 2>conftest.er1
42459 grep -v '^ *+' conftest.er1 >conftest.err
42461 cat conftest.err >&5
42462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42463 (exit $ac_status); } &&
42464 { ac_try='test -z "$ac_c_werror_flag"
42465 || test ! -s conftest.err'
42466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42467 (eval $ac_try) 2>&5
42469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42470 (exit $ac_status); }; } &&
42471 { ac_try='test -s conftest$ac_exeext'
42472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42473 (eval $ac_try) 2>&5
42475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42476 (exit $ac_status); }; }; then
42479 echo "$as_me: failed program was:" >&5
42480 sed 's/^/| /' conftest.$ac_ext >&5
42484 rm -f conftest.err conftest.$ac_objext \
42485 conftest$ac_exeext conftest.$ac_ext
42490 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
42491 echo "${ECHO_T}$ol_cv_db_db2" >&6
42493 if test $ol_cv_db_db2 = yes ; then
42498 if test $ol_cv_lib_db = no ; then
42499 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
42500 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
42501 if test "${ol_cv_db_db_2+set}" = set; then
42502 echo $ECHO_N "(cached) $ECHO_C" >&6
42507 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42509 cat >conftest.$ac_ext <<_ACEOF
42512 cat confdefs.h >>conftest.$ac_ext
42513 cat >>conftest.$ac_ext <<_ACEOF
42514 /* end confdefs.h. */
42516 #ifdef HAVE_DB_185_H
42517 # include <db_185.h>
42522 #ifndef DB_VERSION_MAJOR
42523 # define DB_VERSION_MAJOR 1
42527 #define NULL ((void*)0)
42534 #if DB_VERSION_MAJOR > 1
42537 int major, minor, patch;
42539 version = db_version( &major, &minor, &patch );
42541 if( major != DB_VERSION_MAJOR ||
42542 minor < DB_VERSION_MINOR )
42544 printf("Berkeley DB version mismatch\n"
42545 "\theader: %s\n\tlibrary: %s\n",
42546 DB_VERSION_STRING, version);
42552 #if DB_VERSION_MAJOR > 2
42553 db_env_create( NULL, 0 );
42554 #elif DB_VERSION_MAJOR > 1
42555 db_appexit( NULL );
42557 (void) dbopen( NULL, 0, 0, 0, NULL);
42564 rm -f conftest.$ac_objext conftest$ac_exeext
42565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42566 (eval $ac_link) 2>conftest.er1
42568 grep -v '^ *+' conftest.er1 >conftest.err
42570 cat conftest.err >&5
42571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42572 (exit $ac_status); } &&
42573 { ac_try='test -z "$ac_c_werror_flag"
42574 || test ! -s conftest.err'
42575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42576 (eval $ac_try) 2>&5
42578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42579 (exit $ac_status); }; } &&
42580 { ac_try='test -s conftest$ac_exeext'
42581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42582 (eval $ac_try) 2>&5
42584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42585 (exit $ac_status); }; }; then
42588 echo "$as_me: failed program was:" >&5
42589 sed 's/^/| /' conftest.$ac_ext >&5
42593 rm -f conftest.err conftest.$ac_objext \
42594 conftest$ac_exeext conftest.$ac_ext
42599 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
42600 echo "${ECHO_T}$ol_cv_db_db_2" >&6
42602 if test $ol_cv_db_db_2 = yes ; then
42603 ol_cv_lib_db=-ldb-2
42607 if test $ol_cv_lib_db = no ; then
42608 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
42609 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
42610 if test "${ol_cv_db_db1+set}" = set; then
42611 echo $ECHO_N "(cached) $ECHO_C" >&6
42616 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42618 cat >conftest.$ac_ext <<_ACEOF
42621 cat confdefs.h >>conftest.$ac_ext
42622 cat >>conftest.$ac_ext <<_ACEOF
42623 /* end confdefs.h. */
42625 #ifdef HAVE_DB_185_H
42626 # include <db_185.h>
42631 #ifndef DB_VERSION_MAJOR
42632 # define DB_VERSION_MAJOR 1
42636 #define NULL ((void*)0)
42643 #if DB_VERSION_MAJOR > 1
42646 int major, minor, patch;
42648 version = db_version( &major, &minor, &patch );
42650 if( major != DB_VERSION_MAJOR ||
42651 minor < DB_VERSION_MINOR )
42653 printf("Berkeley DB version mismatch\n"
42654 "\theader: %s\n\tlibrary: %s\n",
42655 DB_VERSION_STRING, version);
42661 #if DB_VERSION_MAJOR > 2
42662 db_env_create( NULL, 0 );
42663 #elif DB_VERSION_MAJOR > 1
42664 db_appexit( NULL );
42666 (void) dbopen( NULL, 0, 0, 0, NULL);
42673 rm -f conftest.$ac_objext conftest$ac_exeext
42674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42675 (eval $ac_link) 2>conftest.er1
42677 grep -v '^ *+' conftest.er1 >conftest.err
42679 cat conftest.err >&5
42680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42681 (exit $ac_status); } &&
42682 { ac_try='test -z "$ac_c_werror_flag"
42683 || test ! -s conftest.err'
42684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42685 (eval $ac_try) 2>&5
42687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42688 (exit $ac_status); }; } &&
42689 { ac_try='test -s conftest$ac_exeext'
42690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42691 (eval $ac_try) 2>&5
42693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42694 (exit $ac_status); }; }; then
42697 echo "$as_me: failed program was:" >&5
42698 sed 's/^/| /' conftest.$ac_ext >&5
42702 rm -f conftest.err conftest.$ac_objext \
42703 conftest$ac_exeext conftest.$ac_ext
42708 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
42709 echo "${ECHO_T}$ol_cv_db_db1" >&6
42711 if test $ol_cv_db_db1 = yes ; then
42716 if test $ol_cv_lib_db = no ; then
42717 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
42718 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
42719 if test "${ol_cv_db_db_1+set}" = set; then
42720 echo $ECHO_N "(cached) $ECHO_C" >&6
42725 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42727 cat >conftest.$ac_ext <<_ACEOF
42730 cat confdefs.h >>conftest.$ac_ext
42731 cat >>conftest.$ac_ext <<_ACEOF
42732 /* end confdefs.h. */
42734 #ifdef HAVE_DB_185_H
42735 # include <db_185.h>
42740 #ifndef DB_VERSION_MAJOR
42741 # define DB_VERSION_MAJOR 1
42745 #define NULL ((void*)0)
42752 #if DB_VERSION_MAJOR > 1
42755 int major, minor, patch;
42757 version = db_version( &major, &minor, &patch );
42759 if( major != DB_VERSION_MAJOR ||
42760 minor < DB_VERSION_MINOR )
42762 printf("Berkeley DB version mismatch\n"
42763 "\theader: %s\n\tlibrary: %s\n",
42764 DB_VERSION_STRING, version);
42770 #if DB_VERSION_MAJOR > 2
42771 db_env_create( NULL, 0 );
42772 #elif DB_VERSION_MAJOR > 1
42773 db_appexit( NULL );
42775 (void) dbopen( NULL, 0, 0, 0, NULL);
42782 rm -f conftest.$ac_objext conftest$ac_exeext
42783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42784 (eval $ac_link) 2>conftest.er1
42786 grep -v '^ *+' conftest.er1 >conftest.err
42788 cat conftest.err >&5
42789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42790 (exit $ac_status); } &&
42791 { ac_try='test -z "$ac_c_werror_flag"
42792 || test ! -s conftest.err'
42793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42794 (eval $ac_try) 2>&5
42796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42797 (exit $ac_status); }; } &&
42798 { ac_try='test -s conftest$ac_exeext'
42799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42800 (eval $ac_try) 2>&5
42802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42803 (exit $ac_status); }; }; then
42806 echo "$as_me: failed program was:" >&5
42807 sed 's/^/| /' conftest.$ac_ext >&5
42811 rm -f conftest.err conftest.$ac_objext \
42812 conftest$ac_exeext conftest.$ac_ext
42817 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
42818 echo "${ECHO_T}$ol_cv_db_db_1" >&6
42820 if test $ol_cv_db_db_1 = yes ; then
42821 ol_cv_lib_db=-ldb-1
42826 if test "$ol_cv_lib_db" != no ; then
42827 ol_cv_berkeley_db=yes
42828 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
42829 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
42830 if test "${ol_cv_berkeley_db_version+set}" = set; then
42831 echo $ECHO_N "(cached) $ECHO_C" >&6
42835 LIBS="$LTHREAD_LIBS $LIBS"
42836 if test $ol_cv_lib_db != yes ; then
42837 LIBS="$ol_cv_lib_db $LIBS"
42840 if test "$cross_compiling" = yes; then
42841 ol_cv_berkeley_db_version=cross
42843 cat >conftest.$ac_ext <<_ACEOF
42846 cat confdefs.h >>conftest.$ac_ext
42847 cat >>conftest.$ac_ext <<_ACEOF
42848 /* end confdefs.h. */
42850 #ifdef HAVE_DB_185_H
42855 #ifndef DB_VERSION_MAJOR
42856 # define DB_VERSION_MAJOR 1
42859 #define NULL ((void *)0)
42863 #if DB_VERSION_MAJOR > 1
42865 int major, minor, patch;
42867 version = db_version( &major, &minor, &patch );
42869 if( major != DB_VERSION_MAJOR ||
42870 minor != DB_VERSION_MINOR ||
42871 patch != DB_VERSION_PATCH )
42873 printf("Berkeley DB version mismatch\n"
42874 "\theader: %s\n\tlibrary: %s\n",
42875 DB_VERSION_STRING, version);
42883 rm -f conftest$ac_exeext
42884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42885 (eval $ac_link) 2>&5
42887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42888 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42890 (eval $ac_try) 2>&5
42892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42893 (exit $ac_status); }; }; then
42894 ol_cv_berkeley_db_version=yes
42896 echo "$as_me: program exited with status $ac_status" >&5
42897 echo "$as_me: failed program was:" >&5
42898 sed 's/^/| /' conftest.$ac_ext >&5
42900 ( exit $ac_status )
42901 ol_cv_berkeley_db_version=no
42903 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42909 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
42910 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
42912 if test $ol_cv_berkeley_db_version = no ; then
42913 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
42914 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
42915 { (exit 1); exit 1; }; }
42918 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
42919 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
42920 if test "${ol_cv_berkeley_db_thread+set}" = set; then
42921 echo $ECHO_N "(cached) $ECHO_C" >&6
42925 LIBS="$LTHREAD_LIBS $LIBS"
42926 if test $ol_cv_lib_db != yes ; then
42927 LIBS="$ol_cv_lib_db $LIBS"
42930 if test "$cross_compiling" = yes; then
42931 ol_cv_berkeley_db_thread=cross
42933 cat >conftest.$ac_ext <<_ACEOF
42936 cat confdefs.h >>conftest.$ac_ext
42937 cat >>conftest.$ac_ext <<_ACEOF
42938 /* end confdefs.h. */
42940 #ifdef HAVE_DB_185_H
42946 #define NULL ((void *)0)
42951 u_int32_t flags = DB_CREATE |
42957 #if DB_VERSION_MAJOR > 2
42958 DB_ENV *env = NULL;
42960 rc = db_env_create( &env, 0 );
42962 flags |= DB_INIT_MPOOL;
42963 #ifdef DB_MPOOL_PRIVATE
42964 flags |= DB_MPOOL_PRIVATE;
42968 printf("BerkeleyDB: %s\n", db_strerror(rc) );
42972 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
42973 rc = env->open( env, NULL, flags, 0 );
42975 rc = env->open( env, NULL, NULL, flags, 0 );
42979 rc = env->close( env, 0 );
42983 printf("BerkeleyDB: %s\n", db_strerror(rc) );
42989 memset( &env, '\0', sizeof(env) );
42991 rc = db_appinit( NULL, NULL, &env, flags );
42994 db_appexit( &env );
42997 unlink("__db_mpool.share");
42998 unlink("__db_lock.share");
43004 rm -f conftest$ac_exeext
43005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43006 (eval $ac_link) 2>&5
43008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43009 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43011 (eval $ac_try) 2>&5
43013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43014 (exit $ac_status); }; }; then
43015 ol_cv_berkeley_db_thread=yes
43017 echo "$as_me: program exited with status $ac_status" >&5
43018 echo "$as_me: failed program was:" >&5
43019 sed 's/^/| /' conftest.$ac_ext >&5
43021 ( exit $ac_status )
43022 ol_cv_berkeley_db_thread=no
43024 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43030 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
43031 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
43033 if test $ol_cv_berkeley_db_thread != no ; then
43035 cat >>confdefs.h <<\_ACEOF
43036 #define HAVE_BERKELEY_DB_THREAD 1
43046 if test $ol_cv_berkeley_db != no ; then
43048 cat >>confdefs.h <<\_ACEOF
43049 #define HAVE_BERKELEY_DB 1
43053 ol_link_ldbm=berkeley
43054 ol_with_ldbm_api=berkeley
43056 if test $ol_with_ldbm_type = hash ; then
43058 cat >>confdefs.h <<\_ACEOF
43059 #define LDBM_USE_DBHASH 1
43064 cat >>confdefs.h <<\_ACEOF
43065 #define LDBM_USE_DBBTREE 1
43070 if test $ol_cv_lib_db != yes ; then
43071 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
43076 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
43077 if test $ol_link_ldbm != berkeley ; then
43078 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
43079 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
43080 { (exit 1); exit 1; }; }
43082 echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
43083 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
43084 if test "${ol_cv_bdb_compat+set}" = set; then
43085 echo $ECHO_N "(cached) $ECHO_C" >&6
43088 cat >conftest.$ac_ext <<_ACEOF
43091 cat confdefs.h >>conftest.$ac_ext
43092 cat >>conftest.$ac_ext <<_ACEOF
43093 /* end confdefs.h. */
43097 /* this check could be improved */
43098 #ifndef DB_VERSION_MAJOR
43099 # define DB_VERSION_MAJOR 1
43101 #ifndef DB_VERSION_MINOR
43102 # define DB_VERSION_MINOR 0
43105 /* require 4.2 or later */
43106 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
43107 __db_version_compat
43111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43112 $EGREP "__db_version_compat" >/dev/null 2>&1; then
43113 ol_cv_bdb_compat=yes
43115 ol_cv_bdb_compat=no
43120 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
43121 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
43124 if test $ol_cv_bdb_compat != yes ; then
43125 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
43126 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
43127 { (exit 1); exit 1; }; }
43132 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
43133 { echo "$as_me:$LINENO: WARNING: Could not find LDBM with BTREE support" >&5
43134 echo "$as_me: WARNING: Could not find LDBM with BTREE support" >&2;}
43135 ol_with_ldbm_api=none
43138 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
43139 echo "$as_me:$LINENO: checking for MDBM library" >&5
43140 echo $ECHO_N "checking for MDBM library... $ECHO_C" >&6
43141 if test "${ol_cv_lib_mdbm+set}" = set; then
43142 echo $ECHO_N "(cached) $ECHO_C" >&6
43145 echo "$as_me:$LINENO: checking for mdbm_set_chain" >&5
43146 echo $ECHO_N "checking for mdbm_set_chain... $ECHO_C" >&6
43147 if test "${ac_cv_func_mdbm_set_chain+set}" = set; then
43148 echo $ECHO_N "(cached) $ECHO_C" >&6
43150 cat >conftest.$ac_ext <<_ACEOF
43153 cat confdefs.h >>conftest.$ac_ext
43154 cat >>conftest.$ac_ext <<_ACEOF
43155 /* end confdefs.h. */
43156 /* Define mdbm_set_chain to an innocuous variant, in case <limits.h> declares mdbm_set_chain.
43157 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43158 #define mdbm_set_chain innocuous_mdbm_set_chain
43160 /* System header to define __stub macros and hopefully few prototypes,
43161 which can conflict with char mdbm_set_chain (); below.
43162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43163 <limits.h> exists even on freestanding compilers. */
43166 # include <limits.h>
43168 # include <assert.h>
43171 #undef mdbm_set_chain
43173 /* Override any gcc2 internal prototype to avoid an error. */
43178 /* We use char because int might match the return type of a gcc2
43179 builtin and then its argument prototype would still apply. */
43180 char mdbm_set_chain ();
43181 /* The GNU C library defines this for functions which it implements
43182 to always fail with ENOSYS. Some functions are actually named
43183 something starting with __ and the normal name is an alias. */
43184 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
43187 char (*f) () = mdbm_set_chain;
43196 return f != mdbm_set_chain;
43201 rm -f conftest.$ac_objext conftest$ac_exeext
43202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43203 (eval $ac_link) 2>conftest.er1
43205 grep -v '^ *+' conftest.er1 >conftest.err
43207 cat conftest.err >&5
43208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43209 (exit $ac_status); } &&
43210 { ac_try='test -z "$ac_c_werror_flag"
43211 || test ! -s conftest.err'
43212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43213 (eval $ac_try) 2>&5
43215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43216 (exit $ac_status); }; } &&
43217 { ac_try='test -s conftest$ac_exeext'
43218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43219 (eval $ac_try) 2>&5
43221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43222 (exit $ac_status); }; }; then
43223 ac_cv_func_mdbm_set_chain=yes
43225 echo "$as_me: failed program was:" >&5
43226 sed 's/^/| /' conftest.$ac_ext >&5
43228 ac_cv_func_mdbm_set_chain=no
43230 rm -f conftest.err conftest.$ac_objext \
43231 conftest$ac_exeext conftest.$ac_ext
43233 echo "$as_me:$LINENO: result: $ac_cv_func_mdbm_set_chain" >&5
43234 echo "${ECHO_T}$ac_cv_func_mdbm_set_chain" >&6
43235 if test $ac_cv_func_mdbm_set_chain = yes; then
43239 echo "$as_me:$LINENO: checking for mdbm_set_chain in -lmdbm" >&5
43240 echo $ECHO_N "checking for mdbm_set_chain in -lmdbm... $ECHO_C" >&6
43241 if test "${ac_cv_lib_mdbm_mdbm_set_chain+set}" = set; then
43242 echo $ECHO_N "(cached) $ECHO_C" >&6
43244 ac_check_lib_save_LIBS=$LIBS
43245 LIBS="-lmdbm $LIBS"
43246 cat >conftest.$ac_ext <<_ACEOF
43249 cat confdefs.h >>conftest.$ac_ext
43250 cat >>conftest.$ac_ext <<_ACEOF
43251 /* end confdefs.h. */
43253 /* Override any gcc2 internal prototype to avoid an error. */
43257 /* We use char because int might match the return type of a gcc2
43258 builtin and then its argument prototype would still apply. */
43259 char mdbm_set_chain ();
43268 rm -f conftest.$ac_objext conftest$ac_exeext
43269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43270 (eval $ac_link) 2>conftest.er1
43272 grep -v '^ *+' conftest.er1 >conftest.err
43274 cat conftest.err >&5
43275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43276 (exit $ac_status); } &&
43277 { ac_try='test -z "$ac_c_werror_flag"
43278 || test ! -s conftest.err'
43279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43280 (eval $ac_try) 2>&5
43282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43283 (exit $ac_status); }; } &&
43284 { ac_try='test -s conftest$ac_exeext'
43285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43286 (eval $ac_try) 2>&5
43288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43289 (exit $ac_status); }; }; then
43290 ac_cv_lib_mdbm_mdbm_set_chain=yes
43292 echo "$as_me: failed program was:" >&5
43293 sed 's/^/| /' conftest.$ac_ext >&5
43295 ac_cv_lib_mdbm_mdbm_set_chain=no
43297 rm -f conftest.err conftest.$ac_objext \
43298 conftest$ac_exeext conftest.$ac_ext
43299 LIBS=$ac_check_lib_save_LIBS
43301 echo "$as_me:$LINENO: result: $ac_cv_lib_mdbm_mdbm_set_chain" >&5
43302 echo "${ECHO_T}$ac_cv_lib_mdbm_mdbm_set_chain" >&6
43303 if test $ac_cv_lib_mdbm_mdbm_set_chain = yes; then
43304 ol_cv_lib_mdbm=-lmdbm
43315 echo "$as_me:$LINENO: result: $ol_cv_lib_mdbm" >&5
43316 echo "${ECHO_T}$ol_cv_lib_mdbm" >&6
43320 for ac_header in mdbm.h
43322 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43324 echo "$as_me:$LINENO: checking for $ac_header" >&5
43325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43327 echo $ECHO_N "(cached) $ECHO_C" >&6
43329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43330 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43332 # Is the header compilable?
43333 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43334 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43335 cat >conftest.$ac_ext <<_ACEOF
43338 cat confdefs.h >>conftest.$ac_ext
43339 cat >>conftest.$ac_ext <<_ACEOF
43340 /* end confdefs.h. */
43341 $ac_includes_default
43342 #include <$ac_header>
43344 rm -f conftest.$ac_objext
43345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43346 (eval $ac_compile) 2>conftest.er1
43348 grep -v '^ *+' conftest.er1 >conftest.err
43350 cat conftest.err >&5
43351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43352 (exit $ac_status); } &&
43353 { ac_try='test -z "$ac_c_werror_flag"
43354 || test ! -s conftest.err'
43355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43356 (eval $ac_try) 2>&5
43358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43359 (exit $ac_status); }; } &&
43360 { ac_try='test -s conftest.$ac_objext'
43361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43362 (eval $ac_try) 2>&5
43364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43365 (exit $ac_status); }; }; then
43366 ac_header_compiler=yes
43368 echo "$as_me: failed program was:" >&5
43369 sed 's/^/| /' conftest.$ac_ext >&5
43371 ac_header_compiler=no
43373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43374 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43375 echo "${ECHO_T}$ac_header_compiler" >&6
43377 # Is the header present?
43378 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43379 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43380 cat >conftest.$ac_ext <<_ACEOF
43383 cat confdefs.h >>conftest.$ac_ext
43384 cat >>conftest.$ac_ext <<_ACEOF
43385 /* end confdefs.h. */
43386 #include <$ac_header>
43388 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43389 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43391 grep -v '^ *+' conftest.er1 >conftest.err
43393 cat conftest.err >&5
43394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43395 (exit $ac_status); } >/dev/null; then
43396 if test -s conftest.err; then
43397 ac_cpp_err=$ac_c_preproc_warn_flag
43398 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43405 if test -z "$ac_cpp_err"; then
43406 ac_header_preproc=yes
43408 echo "$as_me: failed program was:" >&5
43409 sed 's/^/| /' conftest.$ac_ext >&5
43411 ac_header_preproc=no
43413 rm -f conftest.err conftest.$ac_ext
43414 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43415 echo "${ECHO_T}$ac_header_preproc" >&6
43417 # So? What about this header?
43418 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43420 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43421 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43423 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43424 ac_header_preproc=yes
43427 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43428 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43429 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43430 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43431 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43432 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43433 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43434 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
43435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43436 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43437 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43438 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43441 ## ------------------------------------------ ##
43442 ## Report this to the AC_PACKAGE_NAME lists. ##
43443 ## ------------------------------------------ ##
43446 sed "s/^/$as_me: WARNING: /" >&2
43449 echo "$as_me:$LINENO: checking for $ac_header" >&5
43450 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43452 echo $ECHO_N "(cached) $ECHO_C" >&6
43454 eval "$as_ac_Header=\$ac_header_preproc"
43456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43457 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43460 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43461 cat >>confdefs.h <<_ACEOF
43462 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43469 echo "$as_me:$LINENO: checking for db" >&5
43470 echo $ECHO_N "checking for db... $ECHO_C" >&6
43471 if test "${ol_cv_mdbm+set}" = set; then
43472 echo $ECHO_N "(cached) $ECHO_C" >&6
43475 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
43482 echo "$as_me:$LINENO: result: $ol_cv_mdbm" >&5
43483 echo "${ECHO_T}$ol_cv_mdbm" >&6
43484 if test $ol_cv_mdbm = yes ; then
43486 cat >>confdefs.h <<\_ACEOF
43487 #define HAVE_MDBM 1
43493 if test $ol_cv_mdbm = yes ; then
43495 ol_with_ldbm_api=mdbm
43496 if test $ol_cv_lib_mdbm != yes ; then
43497 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
43502 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
43503 echo "$as_me:$LINENO: checking for GDBM library" >&5
43504 echo $ECHO_N "checking for GDBM library... $ECHO_C" >&6
43505 if test "${ol_cv_lib_gdbm+set}" = set; then
43506 echo $ECHO_N "(cached) $ECHO_C" >&6
43509 echo "$as_me:$LINENO: checking for gdbm_open" >&5
43510 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
43511 if test "${ac_cv_func_gdbm_open+set}" = set; then
43512 echo $ECHO_N "(cached) $ECHO_C" >&6
43514 cat >conftest.$ac_ext <<_ACEOF
43517 cat confdefs.h >>conftest.$ac_ext
43518 cat >>conftest.$ac_ext <<_ACEOF
43519 /* end confdefs.h. */
43520 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
43521 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43522 #define gdbm_open innocuous_gdbm_open
43524 /* System header to define __stub macros and hopefully few prototypes,
43525 which can conflict with char gdbm_open (); below.
43526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43527 <limits.h> exists even on freestanding compilers. */
43530 # include <limits.h>
43532 # include <assert.h>
43537 /* Override any gcc2 internal prototype to avoid an error. */
43542 /* We use char because int might match the return type of a gcc2
43543 builtin and then its argument prototype would still apply. */
43545 /* The GNU C library defines this for functions which it implements
43546 to always fail with ENOSYS. Some functions are actually named
43547 something starting with __ and the normal name is an alias. */
43548 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
43551 char (*f) () = gdbm_open;
43560 return f != gdbm_open;
43565 rm -f conftest.$ac_objext conftest$ac_exeext
43566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43567 (eval $ac_link) 2>conftest.er1
43569 grep -v '^ *+' conftest.er1 >conftest.err
43571 cat conftest.err >&5
43572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43573 (exit $ac_status); } &&
43574 { ac_try='test -z "$ac_c_werror_flag"
43575 || test ! -s conftest.err'
43576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43577 (eval $ac_try) 2>&5
43579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43580 (exit $ac_status); }; } &&
43581 { ac_try='test -s conftest$ac_exeext'
43582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43583 (eval $ac_try) 2>&5
43585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43586 (exit $ac_status); }; }; then
43587 ac_cv_func_gdbm_open=yes
43589 echo "$as_me: failed program was:" >&5
43590 sed 's/^/| /' conftest.$ac_ext >&5
43592 ac_cv_func_gdbm_open=no
43594 rm -f conftest.err conftest.$ac_objext \
43595 conftest$ac_exeext conftest.$ac_ext
43597 echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
43598 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6
43599 if test $ac_cv_func_gdbm_open = yes; then
43603 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
43604 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
43605 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
43606 echo $ECHO_N "(cached) $ECHO_C" >&6
43608 ac_check_lib_save_LIBS=$LIBS
43609 LIBS="-lgdbm $LIBS"
43610 cat >conftest.$ac_ext <<_ACEOF
43613 cat confdefs.h >>conftest.$ac_ext
43614 cat >>conftest.$ac_ext <<_ACEOF
43615 /* end confdefs.h. */
43617 /* Override any gcc2 internal prototype to avoid an error. */
43621 /* We use char because int might match the return type of a gcc2
43622 builtin and then its argument prototype would still apply. */
43632 rm -f conftest.$ac_objext conftest$ac_exeext
43633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43634 (eval $ac_link) 2>conftest.er1
43636 grep -v '^ *+' conftest.er1 >conftest.err
43638 cat conftest.err >&5
43639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43640 (exit $ac_status); } &&
43641 { ac_try='test -z "$ac_c_werror_flag"
43642 || test ! -s conftest.err'
43643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43644 (eval $ac_try) 2>&5
43646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43647 (exit $ac_status); }; } &&
43648 { ac_try='test -s conftest$ac_exeext'
43649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43650 (eval $ac_try) 2>&5
43652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43653 (exit $ac_status); }; }; then
43654 ac_cv_lib_gdbm_gdbm_open=yes
43656 echo "$as_me: failed program was:" >&5
43657 sed 's/^/| /' conftest.$ac_ext >&5
43659 ac_cv_lib_gdbm_gdbm_open=no
43661 rm -f conftest.err conftest.$ac_objext \
43662 conftest$ac_exeext conftest.$ac_ext
43663 LIBS=$ac_check_lib_save_LIBS
43665 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
43666 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
43667 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
43668 ol_cv_lib_gdbm=-lgdbm
43679 echo "$as_me:$LINENO: result: $ol_cv_lib_gdbm" >&5
43680 echo "${ECHO_T}$ol_cv_lib_gdbm" >&6
43684 for ac_header in gdbm.h
43686 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43688 echo "$as_me:$LINENO: checking for $ac_header" >&5
43689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43691 echo $ECHO_N "(cached) $ECHO_C" >&6
43693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43694 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43696 # Is the header compilable?
43697 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43698 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43699 cat >conftest.$ac_ext <<_ACEOF
43702 cat confdefs.h >>conftest.$ac_ext
43703 cat >>conftest.$ac_ext <<_ACEOF
43704 /* end confdefs.h. */
43705 $ac_includes_default
43706 #include <$ac_header>
43708 rm -f conftest.$ac_objext
43709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43710 (eval $ac_compile) 2>conftest.er1
43712 grep -v '^ *+' conftest.er1 >conftest.err
43714 cat conftest.err >&5
43715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43716 (exit $ac_status); } &&
43717 { ac_try='test -z "$ac_c_werror_flag"
43718 || test ! -s conftest.err'
43719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43720 (eval $ac_try) 2>&5
43722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43723 (exit $ac_status); }; } &&
43724 { ac_try='test -s conftest.$ac_objext'
43725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43726 (eval $ac_try) 2>&5
43728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43729 (exit $ac_status); }; }; then
43730 ac_header_compiler=yes
43732 echo "$as_me: failed program was:" >&5
43733 sed 's/^/| /' conftest.$ac_ext >&5
43735 ac_header_compiler=no
43737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43738 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43739 echo "${ECHO_T}$ac_header_compiler" >&6
43741 # Is the header present?
43742 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43743 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43744 cat >conftest.$ac_ext <<_ACEOF
43747 cat confdefs.h >>conftest.$ac_ext
43748 cat >>conftest.$ac_ext <<_ACEOF
43749 /* end confdefs.h. */
43750 #include <$ac_header>
43752 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43753 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43755 grep -v '^ *+' conftest.er1 >conftest.err
43757 cat conftest.err >&5
43758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43759 (exit $ac_status); } >/dev/null; then
43760 if test -s conftest.err; then
43761 ac_cpp_err=$ac_c_preproc_warn_flag
43762 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43769 if test -z "$ac_cpp_err"; then
43770 ac_header_preproc=yes
43772 echo "$as_me: failed program was:" >&5
43773 sed 's/^/| /' conftest.$ac_ext >&5
43775 ac_header_preproc=no
43777 rm -f conftest.err conftest.$ac_ext
43778 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43779 echo "${ECHO_T}$ac_header_preproc" >&6
43781 # So? What about this header?
43782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43784 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43785 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43787 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43788 ac_header_preproc=yes
43791 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43792 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43793 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43794 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43795 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43796 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43797 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43798 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
43799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43801 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43802 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43805 ## ------------------------------------------ ##
43806 ## Report this to the AC_PACKAGE_NAME lists. ##
43807 ## ------------------------------------------ ##
43810 sed "s/^/$as_me: WARNING: /" >&2
43813 echo "$as_me:$LINENO: checking for $ac_header" >&5
43814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43816 echo $ECHO_N "(cached) $ECHO_C" >&6
43818 eval "$as_ac_Header=\$ac_header_preproc"
43820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43821 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43824 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43825 cat >>confdefs.h <<_ACEOF
43826 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43833 echo "$as_me:$LINENO: checking for db" >&5
43834 echo $ECHO_N "checking for db... $ECHO_C" >&6
43835 if test "${ol_cv_gdbm+set}" = set; then
43836 echo $ECHO_N "(cached) $ECHO_C" >&6
43839 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
43846 echo "$as_me:$LINENO: result: $ol_cv_gdbm" >&5
43847 echo "${ECHO_T}$ol_cv_gdbm" >&6
43848 if test $ol_cv_gdbm = yes ; then
43850 cat >>confdefs.h <<\_ACEOF
43851 #define HAVE_GDBM 1
43857 if test $ol_cv_gdbm = yes ; then
43859 ol_with_ldbm_api=gdbm
43861 if test $ol_cv_lib_gdbm != yes ; then
43862 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
43867 if test $ol_with_ldbm_api = ndbm ; then
43868 echo "$as_me:$LINENO: checking for NDBM library" >&5
43869 echo $ECHO_N "checking for NDBM library... $ECHO_C" >&6
43870 if test "${ol_cv_lib_ndbm+set}" = set; then
43871 echo $ECHO_N "(cached) $ECHO_C" >&6
43874 echo "$as_me:$LINENO: checking for dbm_open" >&5
43875 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
43876 if test "${ac_cv_func_dbm_open+set}" = set; then
43877 echo $ECHO_N "(cached) $ECHO_C" >&6
43879 cat >conftest.$ac_ext <<_ACEOF
43882 cat confdefs.h >>conftest.$ac_ext
43883 cat >>conftest.$ac_ext <<_ACEOF
43884 /* end confdefs.h. */
43885 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
43886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43887 #define dbm_open innocuous_dbm_open
43889 /* System header to define __stub macros and hopefully few prototypes,
43890 which can conflict with char dbm_open (); below.
43891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43892 <limits.h> exists even on freestanding compilers. */
43895 # include <limits.h>
43897 # include <assert.h>
43902 /* Override any gcc2 internal prototype to avoid an error. */
43907 /* We use char because int might match the return type of a gcc2
43908 builtin and then its argument prototype would still apply. */
43910 /* The GNU C library defines this for functions which it implements
43911 to always fail with ENOSYS. Some functions are actually named
43912 something starting with __ and the normal name is an alias. */
43913 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
43916 char (*f) () = dbm_open;
43925 return f != dbm_open;
43930 rm -f conftest.$ac_objext conftest$ac_exeext
43931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43932 (eval $ac_link) 2>conftest.er1
43934 grep -v '^ *+' conftest.er1 >conftest.err
43936 cat conftest.err >&5
43937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43938 (exit $ac_status); } &&
43939 { ac_try='test -z "$ac_c_werror_flag"
43940 || test ! -s conftest.err'
43941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43942 (eval $ac_try) 2>&5
43944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43945 (exit $ac_status); }; } &&
43946 { ac_try='test -s conftest$ac_exeext'
43947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43948 (eval $ac_try) 2>&5
43950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43951 (exit $ac_status); }; }; then
43952 ac_cv_func_dbm_open=yes
43954 echo "$as_me: failed program was:" >&5
43955 sed 's/^/| /' conftest.$ac_ext >&5
43957 ac_cv_func_dbm_open=no
43959 rm -f conftest.err conftest.$ac_objext \
43960 conftest$ac_exeext conftest.$ac_ext
43962 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
43963 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
43964 if test $ac_cv_func_dbm_open = yes; then
43968 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
43969 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
43970 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
43971 echo $ECHO_N "(cached) $ECHO_C" >&6
43973 ac_check_lib_save_LIBS=$LIBS
43974 LIBS="-lndbm $LIBS"
43975 cat >conftest.$ac_ext <<_ACEOF
43978 cat confdefs.h >>conftest.$ac_ext
43979 cat >>conftest.$ac_ext <<_ACEOF
43980 /* end confdefs.h. */
43982 /* Override any gcc2 internal prototype to avoid an error. */
43986 /* We use char because int might match the return type of a gcc2
43987 builtin and then its argument prototype would still apply. */
43997 rm -f conftest.$ac_objext conftest$ac_exeext
43998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43999 (eval $ac_link) 2>conftest.er1
44001 grep -v '^ *+' conftest.er1 >conftest.err
44003 cat conftest.err >&5
44004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44005 (exit $ac_status); } &&
44006 { ac_try='test -z "$ac_c_werror_flag"
44007 || test ! -s conftest.err'
44008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44009 (eval $ac_try) 2>&5
44011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44012 (exit $ac_status); }; } &&
44013 { ac_try='test -s conftest$ac_exeext'
44014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44015 (eval $ac_try) 2>&5
44017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44018 (exit $ac_status); }; }; then
44019 ac_cv_lib_ndbm_dbm_open=yes
44021 echo "$as_me: failed program was:" >&5
44022 sed 's/^/| /' conftest.$ac_ext >&5
44024 ac_cv_lib_ndbm_dbm_open=no
44026 rm -f conftest.err conftest.$ac_objext \
44027 conftest$ac_exeext conftest.$ac_ext
44028 LIBS=$ac_check_lib_save_LIBS
44030 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
44031 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
44032 if test $ac_cv_lib_ndbm_dbm_open = yes; then
44033 ol_cv_lib_ndbm=-lndbm
44036 echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
44037 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
44038 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
44039 echo $ECHO_N "(cached) $ECHO_C" >&6
44041 ac_check_lib_save_LIBS=$LIBS
44043 cat >conftest.$ac_ext <<_ACEOF
44046 cat confdefs.h >>conftest.$ac_ext
44047 cat >>conftest.$ac_ext <<_ACEOF
44048 /* end confdefs.h. */
44050 /* Override any gcc2 internal prototype to avoid an error. */
44054 /* We use char because int might match the return type of a gcc2
44055 builtin and then its argument prototype would still apply. */
44065 rm -f conftest.$ac_objext conftest$ac_exeext
44066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44067 (eval $ac_link) 2>conftest.er1
44069 grep -v '^ *+' conftest.er1 >conftest.err
44071 cat conftest.err >&5
44072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44073 (exit $ac_status); } &&
44074 { ac_try='test -z "$ac_c_werror_flag"
44075 || test ! -s conftest.err'
44076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44077 (eval $ac_try) 2>&5
44079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44080 (exit $ac_status); }; } &&
44081 { ac_try='test -s conftest$ac_exeext'
44082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44083 (eval $ac_try) 2>&5
44085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44086 (exit $ac_status); }; }; then
44087 ac_cv_lib_dbm_dbm_open=yes
44089 echo "$as_me: failed program was:" >&5
44090 sed 's/^/| /' conftest.$ac_ext >&5
44092 ac_cv_lib_dbm_dbm_open=no
44094 rm -f conftest.err conftest.$ac_objext \
44095 conftest$ac_exeext conftest.$ac_ext
44096 LIBS=$ac_check_lib_save_LIBS
44098 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
44099 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
44100 if test $ac_cv_lib_dbm_dbm_open = yes; then
44101 ol_cv_lib_ndbm=-ldbm
44114 echo "$as_me:$LINENO: result: $ol_cv_lib_ndbm" >&5
44115 echo "${ECHO_T}$ol_cv_lib_ndbm" >&6
44119 for ac_header in ndbm.h
44121 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44122 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44123 echo "$as_me:$LINENO: checking for $ac_header" >&5
44124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44125 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44126 echo $ECHO_N "(cached) $ECHO_C" >&6
44128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44129 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44131 # Is the header compilable?
44132 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44133 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44134 cat >conftest.$ac_ext <<_ACEOF
44137 cat confdefs.h >>conftest.$ac_ext
44138 cat >>conftest.$ac_ext <<_ACEOF
44139 /* end confdefs.h. */
44140 $ac_includes_default
44141 #include <$ac_header>
44143 rm -f conftest.$ac_objext
44144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44145 (eval $ac_compile) 2>conftest.er1
44147 grep -v '^ *+' conftest.er1 >conftest.err
44149 cat conftest.err >&5
44150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44151 (exit $ac_status); } &&
44152 { ac_try='test -z "$ac_c_werror_flag"
44153 || test ! -s conftest.err'
44154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44155 (eval $ac_try) 2>&5
44157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44158 (exit $ac_status); }; } &&
44159 { ac_try='test -s conftest.$ac_objext'
44160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44161 (eval $ac_try) 2>&5
44163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44164 (exit $ac_status); }; }; then
44165 ac_header_compiler=yes
44167 echo "$as_me: failed program was:" >&5
44168 sed 's/^/| /' conftest.$ac_ext >&5
44170 ac_header_compiler=no
44172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44173 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44174 echo "${ECHO_T}$ac_header_compiler" >&6
44176 # Is the header present?
44177 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44178 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44179 cat >conftest.$ac_ext <<_ACEOF
44182 cat confdefs.h >>conftest.$ac_ext
44183 cat >>conftest.$ac_ext <<_ACEOF
44184 /* end confdefs.h. */
44185 #include <$ac_header>
44187 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44188 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44190 grep -v '^ *+' conftest.er1 >conftest.err
44192 cat conftest.err >&5
44193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44194 (exit $ac_status); } >/dev/null; then
44195 if test -s conftest.err; then
44196 ac_cpp_err=$ac_c_preproc_warn_flag
44197 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44204 if test -z "$ac_cpp_err"; then
44205 ac_header_preproc=yes
44207 echo "$as_me: failed program was:" >&5
44208 sed 's/^/| /' conftest.$ac_ext >&5
44210 ac_header_preproc=no
44212 rm -f conftest.err conftest.$ac_ext
44213 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44214 echo "${ECHO_T}$ac_header_preproc" >&6
44216 # So? What about this header?
44217 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44219 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44220 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44222 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44223 ac_header_preproc=yes
44226 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44227 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44228 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44229 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44230 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44231 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44232 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44233 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44235 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44236 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44237 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44240 ## ------------------------------------------ ##
44241 ## Report this to the AC_PACKAGE_NAME lists. ##
44242 ## ------------------------------------------ ##
44245 sed "s/^/$as_me: WARNING: /" >&2
44248 echo "$as_me:$LINENO: checking for $ac_header" >&5
44249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44251 echo $ECHO_N "(cached) $ECHO_C" >&6
44253 eval "$as_ac_Header=\$ac_header_preproc"
44255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44256 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44259 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44260 cat >>confdefs.h <<_ACEOF
44261 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44268 echo "$as_me:$LINENO: checking for db" >&5
44269 echo $ECHO_N "checking for db... $ECHO_C" >&6
44270 if test "${ol_cv_ndbm+set}" = set; then
44271 echo $ECHO_N "(cached) $ECHO_C" >&6
44274 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
44281 echo "$as_me:$LINENO: result: $ol_cv_ndbm" >&5
44282 echo "${ECHO_T}$ol_cv_ndbm" >&6
44283 if test $ol_cv_ndbm = yes ; then
44285 cat >>confdefs.h <<\_ACEOF
44286 #define HAVE_NDBM 1
44292 if test $ol_cv_ndbm = yes ; then
44294 ol_with_ldbm_api=ndbm
44296 if test $ol_cv_lib_ndbm != yes ; then
44297 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
44302 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
44303 { { echo "$as_me:$LINENO: error: could not find suitable LDBM backend" >&5
44304 echo "$as_me: error: could not find suitable LDBM backend" >&2;}
44305 { (exit 1); exit 1; }; }
44308 if test $ol_enable_bdb = yes -o \
44309 $ol_enable_hdb = yes -o \
44310 $ol_enable_ldbm = yes ; then
44311 SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
44315 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
44316 BUILD_LIBS_DYNAMIC=shared
44318 cat >>confdefs.h <<\_ACEOF
44319 #define LDAP_LIBS_DYNAMIC 1
44324 BUILD_LIBS_DYNAMIC=static
44328 if test $ol_enable_wrappers != no ; then
44330 for ac_header in tcpd.h
44332 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44333 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44334 echo "$as_me:$LINENO: checking for $ac_header" >&5
44335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44337 echo $ECHO_N "(cached) $ECHO_C" >&6
44339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44340 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44342 # Is the header compilable?
44343 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44344 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44345 cat >conftest.$ac_ext <<_ACEOF
44348 cat confdefs.h >>conftest.$ac_ext
44349 cat >>conftest.$ac_ext <<_ACEOF
44350 /* end confdefs.h. */
44351 $ac_includes_default
44352 #include <$ac_header>
44354 rm -f conftest.$ac_objext
44355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44356 (eval $ac_compile) 2>conftest.er1
44358 grep -v '^ *+' conftest.er1 >conftest.err
44360 cat conftest.err >&5
44361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44362 (exit $ac_status); } &&
44363 { ac_try='test -z "$ac_c_werror_flag"
44364 || test ! -s conftest.err'
44365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44366 (eval $ac_try) 2>&5
44368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44369 (exit $ac_status); }; } &&
44370 { ac_try='test -s conftest.$ac_objext'
44371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44372 (eval $ac_try) 2>&5
44374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44375 (exit $ac_status); }; }; then
44376 ac_header_compiler=yes
44378 echo "$as_me: failed program was:" >&5
44379 sed 's/^/| /' conftest.$ac_ext >&5
44381 ac_header_compiler=no
44383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44384 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44385 echo "${ECHO_T}$ac_header_compiler" >&6
44387 # Is the header present?
44388 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44389 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44390 cat >conftest.$ac_ext <<_ACEOF
44393 cat confdefs.h >>conftest.$ac_ext
44394 cat >>conftest.$ac_ext <<_ACEOF
44395 /* end confdefs.h. */
44396 #include <$ac_header>
44398 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44399 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44401 grep -v '^ *+' conftest.er1 >conftest.err
44403 cat conftest.err >&5
44404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44405 (exit $ac_status); } >/dev/null; then
44406 if test -s conftest.err; then
44407 ac_cpp_err=$ac_c_preproc_warn_flag
44408 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44415 if test -z "$ac_cpp_err"; then
44416 ac_header_preproc=yes
44418 echo "$as_me: failed program was:" >&5
44419 sed 's/^/| /' conftest.$ac_ext >&5
44421 ac_header_preproc=no
44423 rm -f conftest.err conftest.$ac_ext
44424 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44425 echo "${ECHO_T}$ac_header_preproc" >&6
44427 # So? What about this header?
44428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44430 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44431 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44433 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44434 ac_header_preproc=yes
44437 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44438 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44439 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44440 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44441 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44442 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44443 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44444 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44446 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44447 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44448 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44451 ## ------------------------------------------ ##
44452 ## Report this to the AC_PACKAGE_NAME lists. ##
44453 ## ------------------------------------------ ##
44456 sed "s/^/$as_me: WARNING: /" >&2
44459 echo "$as_me:$LINENO: checking for $ac_header" >&5
44460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44462 echo $ECHO_N "(cached) $ECHO_C" >&6
44464 eval "$as_ac_Header=\$ac_header_preproc"
44466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44467 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44471 cat >>confdefs.h <<_ACEOF
44472 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44475 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
44476 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
44478 LIBS="$LIBS -lwrap"
44479 cat >conftest.$ac_ext <<_ACEOF
44482 cat confdefs.h >>conftest.$ac_ext
44483 cat >>conftest.$ac_ext <<_ACEOF
44484 /* end confdefs.h. */
44487 int allow_severity = 0;
44488 int deny_severity = 0;
44490 struct request_info *req;
44502 rm -f conftest.$ac_objext conftest$ac_exeext
44503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44504 (eval $ac_link) 2>conftest.er1
44506 grep -v '^ *+' conftest.er1 >conftest.err
44508 cat conftest.err >&5
44509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44510 (exit $ac_status); } &&
44511 { ac_try='test -z "$ac_c_werror_flag"
44512 || test ! -s conftest.err'
44513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44514 (eval $ac_try) 2>&5
44516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44517 (exit $ac_status); }; } &&
44518 { ac_try='test -s conftest$ac_exeext'
44519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44520 (eval $ac_try) 2>&5
44522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44523 (exit $ac_status); }; }; then
44524 echo "$as_me:$LINENO: result: -lwrap" >&5
44525 echo "${ECHO_T}-lwrap" >&6
44529 echo "$as_me: failed program was:" >&5
44530 sed 's/^/| /' conftest.$ac_ext >&5
44534 cat >conftest.$ac_ext <<_ACEOF
44537 cat confdefs.h >>conftest.$ac_ext
44538 cat >>conftest.$ac_ext <<_ACEOF
44539 /* end confdefs.h. */
44542 int allow_severity = 0;
44543 int deny_severity = 0;
44545 struct request_info *req;
44557 rm -f conftest.$ac_objext conftest$ac_exeext
44558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44559 (eval $ac_link) 2>conftest.er1
44561 grep -v '^ *+' conftest.er1 >conftest.err
44563 cat conftest.err >&5
44564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44565 (exit $ac_status); } &&
44566 { ac_try='test -z "$ac_c_werror_flag"
44567 || test ! -s conftest.err'
44568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44569 (eval $ac_try) 2>&5
44571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44572 (exit $ac_status); }; } &&
44573 { ac_try='test -s conftest$ac_exeext'
44574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44575 (eval $ac_try) 2>&5
44577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44578 (exit $ac_status); }; }; then
44579 echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
44580 echo "${ECHO_T}-lwrap -lnsl" >&6
44582 LIBS="$save_LIBS -lnsl"
44584 echo "$as_me: failed program was:" >&5
44585 sed 's/^/| /' conftest.$ac_ext >&5
44588 echo "$as_me:$LINENO: result: no" >&5
44589 echo "${ECHO_T}no" >&6
44593 rm -f conftest.err conftest.$ac_objext \
44594 conftest$ac_exeext conftest.$ac_ext
44596 rm -f conftest.err conftest.$ac_objext \
44597 conftest$ac_exeext conftest.$ac_ext
44605 if test $have_wrappers = yes ; then
44607 cat >>confdefs.h <<\_ACEOF
44608 #define HAVE_TCPD 1
44612 elif test $ol_enable_wrappers = yes ; then
44613 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
44614 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
44615 { (exit 1); exit 1; }; }
44617 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
44618 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
44623 if test $ol_enable_syslog != no ; then
44624 echo "$as_me:$LINENO: checking for openlog" >&5
44625 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
44626 if test "${ac_cv_func_openlog+set}" = set; then
44627 echo $ECHO_N "(cached) $ECHO_C" >&6
44629 cat >conftest.$ac_ext <<_ACEOF
44632 cat confdefs.h >>conftest.$ac_ext
44633 cat >>conftest.$ac_ext <<_ACEOF
44634 /* end confdefs.h. */
44635 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
44636 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44637 #define openlog innocuous_openlog
44639 /* System header to define __stub macros and hopefully few prototypes,
44640 which can conflict with char openlog (); below.
44641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44642 <limits.h> exists even on freestanding compilers. */
44645 # include <limits.h>
44647 # include <assert.h>
44652 /* Override any gcc2 internal prototype to avoid an error. */
44657 /* We use char because int might match the return type of a gcc2
44658 builtin and then its argument prototype would still apply. */
44660 /* The GNU C library defines this for functions which it implements
44661 to always fail with ENOSYS. Some functions are actually named
44662 something starting with __ and the normal name is an alias. */
44663 #if defined (__stub_openlog) || defined (__stub___openlog)
44666 char (*f) () = openlog;
44675 return f != openlog;
44680 rm -f conftest.$ac_objext conftest$ac_exeext
44681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44682 (eval $ac_link) 2>conftest.er1
44684 grep -v '^ *+' conftest.er1 >conftest.err
44686 cat conftest.err >&5
44687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44688 (exit $ac_status); } &&
44689 { ac_try='test -z "$ac_c_werror_flag"
44690 || test ! -s conftest.err'
44691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44692 (eval $ac_try) 2>&5
44694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44695 (exit $ac_status); }; } &&
44696 { ac_try='test -s conftest$ac_exeext'
44697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44698 (eval $ac_try) 2>&5
44700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44701 (exit $ac_status); }; }; then
44702 ac_cv_func_openlog=yes
44704 echo "$as_me: failed program was:" >&5
44705 sed 's/^/| /' conftest.$ac_ext >&5
44707 ac_cv_func_openlog=no
44709 rm -f conftest.err conftest.$ac_objext \
44710 conftest$ac_exeext conftest.$ac_ext
44712 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
44713 echo "${ECHO_T}$ac_cv_func_openlog" >&6
44715 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
44716 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
44717 echo "$as_me: error: could not find syslog" >&2;}
44718 { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
44720 ol_enable_syslog=$ac_cv_func_openlog
44725 if test $ol_enable_sql != no ; then
44728 for ac_header in sql.h sqlext.h
44730 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44732 echo "$as_me:$LINENO: checking for $ac_header" >&5
44733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44734 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44735 echo $ECHO_N "(cached) $ECHO_C" >&6
44737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44738 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44740 # Is the header compilable?
44741 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44742 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44743 cat >conftest.$ac_ext <<_ACEOF
44746 cat confdefs.h >>conftest.$ac_ext
44747 cat >>conftest.$ac_ext <<_ACEOF
44748 /* end confdefs.h. */
44749 $ac_includes_default
44750 #include <$ac_header>
44752 rm -f conftest.$ac_objext
44753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44754 (eval $ac_compile) 2>conftest.er1
44756 grep -v '^ *+' conftest.er1 >conftest.err
44758 cat conftest.err >&5
44759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44760 (exit $ac_status); } &&
44761 { ac_try='test -z "$ac_c_werror_flag"
44762 || test ! -s conftest.err'
44763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44764 (eval $ac_try) 2>&5
44766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44767 (exit $ac_status); }; } &&
44768 { ac_try='test -s conftest.$ac_objext'
44769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44770 (eval $ac_try) 2>&5
44772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44773 (exit $ac_status); }; }; then
44774 ac_header_compiler=yes
44776 echo "$as_me: failed program was:" >&5
44777 sed 's/^/| /' conftest.$ac_ext >&5
44779 ac_header_compiler=no
44781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44782 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44783 echo "${ECHO_T}$ac_header_compiler" >&6
44785 # Is the header present?
44786 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44787 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44788 cat >conftest.$ac_ext <<_ACEOF
44791 cat confdefs.h >>conftest.$ac_ext
44792 cat >>conftest.$ac_ext <<_ACEOF
44793 /* end confdefs.h. */
44794 #include <$ac_header>
44796 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44797 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44799 grep -v '^ *+' conftest.er1 >conftest.err
44801 cat conftest.err >&5
44802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44803 (exit $ac_status); } >/dev/null; then
44804 if test -s conftest.err; then
44805 ac_cpp_err=$ac_c_preproc_warn_flag
44806 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44813 if test -z "$ac_cpp_err"; then
44814 ac_header_preproc=yes
44816 echo "$as_me: failed program was:" >&5
44817 sed 's/^/| /' conftest.$ac_ext >&5
44819 ac_header_preproc=no
44821 rm -f conftest.err conftest.$ac_ext
44822 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44823 echo "${ECHO_T}$ac_header_preproc" >&6
44825 # So? What about this header?
44826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44828 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44829 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44831 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44832 ac_header_preproc=yes
44835 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44836 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44837 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44838 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44839 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44840 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44841 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44842 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44844 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44845 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44846 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44849 ## ------------------------------------------ ##
44850 ## Report this to the AC_PACKAGE_NAME lists. ##
44851 ## ------------------------------------------ ##
44854 sed "s/^/$as_me: WARNING: /" >&2
44857 echo "$as_me:$LINENO: checking for $ac_header" >&5
44858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44860 echo $ECHO_N "(cached) $ECHO_C" >&6
44862 eval "$as_ac_Header=\$ac_header_preproc"
44864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44865 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44868 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44869 cat >>confdefs.h <<_ACEOF
44870 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44875 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
44876 echo "$as_me: error: could not locate SQL headers" >&2;}
44877 { (exit 1); exit 1; }; }
44885 LIBS="$LTHREAD_LIBS"
44887 echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
44888 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
44889 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
44890 echo $ECHO_N "(cached) $ECHO_C" >&6
44892 ac_check_lib_save_LIBS=$LIBS
44893 LIBS="-liodbc $LIBS"
44894 cat >conftest.$ac_ext <<_ACEOF
44897 cat confdefs.h >>conftest.$ac_ext
44898 cat >>conftest.$ac_ext <<_ACEOF
44899 /* end confdefs.h. */
44901 /* Override any gcc2 internal prototype to avoid an error. */
44905 /* We use char because int might match the return type of a gcc2
44906 builtin and then its argument prototype would still apply. */
44907 char SQLDriverConnect ();
44911 SQLDriverConnect ();
44916 rm -f conftest.$ac_objext conftest$ac_exeext
44917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44918 (eval $ac_link) 2>conftest.er1
44920 grep -v '^ *+' conftest.er1 >conftest.err
44922 cat conftest.err >&5
44923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44924 (exit $ac_status); } &&
44925 { ac_try='test -z "$ac_c_werror_flag"
44926 || test ! -s conftest.err'
44927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44928 (eval $ac_try) 2>&5
44930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44931 (exit $ac_status); }; } &&
44932 { ac_try='test -s conftest$ac_exeext'
44933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44934 (eval $ac_try) 2>&5
44936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44937 (exit $ac_status); }; }; then
44938 ac_cv_lib_iodbc_SQLDriverConnect=yes
44940 echo "$as_me: failed program was:" >&5
44941 sed 's/^/| /' conftest.$ac_ext >&5
44943 ac_cv_lib_iodbc_SQLDriverConnect=no
44945 rm -f conftest.err conftest.$ac_objext \
44946 conftest$ac_exeext conftest.$ac_ext
44947 LIBS=$ac_check_lib_save_LIBS
44949 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
44950 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
44951 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
44957 if test $have_iodbc = yes ; then
44958 ol_link_sql="-liodbc"
44960 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
44961 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
44962 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
44963 echo $ECHO_N "(cached) $ECHO_C" >&6
44965 ac_check_lib_save_LIBS=$LIBS
44966 LIBS="-lodbc $LIBS"
44967 cat >conftest.$ac_ext <<_ACEOF
44970 cat confdefs.h >>conftest.$ac_ext
44971 cat >>conftest.$ac_ext <<_ACEOF
44972 /* end confdefs.h. */
44974 /* Override any gcc2 internal prototype to avoid an error. */
44978 /* We use char because int might match the return type of a gcc2
44979 builtin and then its argument prototype would still apply. */
44980 char SQLDriverConnect ();
44984 SQLDriverConnect ();
44989 rm -f conftest.$ac_objext conftest$ac_exeext
44990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44991 (eval $ac_link) 2>conftest.er1
44993 grep -v '^ *+' conftest.er1 >conftest.err
44995 cat conftest.err >&5
44996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44997 (exit $ac_status); } &&
44998 { ac_try='test -z "$ac_c_werror_flag"
44999 || test ! -s conftest.err'
45000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45001 (eval $ac_try) 2>&5
45003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45004 (exit $ac_status); }; } &&
45005 { ac_try='test -s conftest$ac_exeext'
45006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45007 (eval $ac_try) 2>&5
45009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45010 (exit $ac_status); }; }; then
45011 ac_cv_lib_odbc_SQLDriverConnect=yes
45013 echo "$as_me: failed program was:" >&5
45014 sed 's/^/| /' conftest.$ac_ext >&5
45016 ac_cv_lib_odbc_SQLDriverConnect=no
45018 rm -f conftest.err conftest.$ac_objext \
45019 conftest$ac_exeext conftest.$ac_ext
45020 LIBS=$ac_check_lib_save_LIBS
45022 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
45023 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
45024 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
45030 if test $have_odbc = yes ; then
45031 ol_link_sql="-lodbc"
45037 if test $ol_link_sql != no ; then
45038 SLAPD_SQL_LIBS="$ol_link_sql"
45040 elif test $ol_enable_sql != auto ; then
45041 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
45042 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
45043 { (exit 1); exit 1; }; }
45050 if test $ol_with_cyrus_sasl != no ; then
45053 for ac_header in sasl/sasl.h sasl.h
45055 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45057 echo "$as_me:$LINENO: checking for $ac_header" >&5
45058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45060 echo $ECHO_N "(cached) $ECHO_C" >&6
45062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45063 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45065 # Is the header compilable?
45066 echo "$as_me:$LINENO: checking $ac_header usability" >&5
45067 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
45068 cat >conftest.$ac_ext <<_ACEOF
45071 cat confdefs.h >>conftest.$ac_ext
45072 cat >>conftest.$ac_ext <<_ACEOF
45073 /* end confdefs.h. */
45074 $ac_includes_default
45075 #include <$ac_header>
45077 rm -f conftest.$ac_objext
45078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45079 (eval $ac_compile) 2>conftest.er1
45081 grep -v '^ *+' conftest.er1 >conftest.err
45083 cat conftest.err >&5
45084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45085 (exit $ac_status); } &&
45086 { ac_try='test -z "$ac_c_werror_flag"
45087 || test ! -s conftest.err'
45088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45089 (eval $ac_try) 2>&5
45091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45092 (exit $ac_status); }; } &&
45093 { ac_try='test -s conftest.$ac_objext'
45094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45095 (eval $ac_try) 2>&5
45097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45098 (exit $ac_status); }; }; then
45099 ac_header_compiler=yes
45101 echo "$as_me: failed program was:" >&5
45102 sed 's/^/| /' conftest.$ac_ext >&5
45104 ac_header_compiler=no
45106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45107 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45108 echo "${ECHO_T}$ac_header_compiler" >&6
45110 # Is the header present?
45111 echo "$as_me:$LINENO: checking $ac_header presence" >&5
45112 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45113 cat >conftest.$ac_ext <<_ACEOF
45116 cat confdefs.h >>conftest.$ac_ext
45117 cat >>conftest.$ac_ext <<_ACEOF
45118 /* end confdefs.h. */
45119 #include <$ac_header>
45121 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45122 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45124 grep -v '^ *+' conftest.er1 >conftest.err
45126 cat conftest.err >&5
45127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45128 (exit $ac_status); } >/dev/null; then
45129 if test -s conftest.err; then
45130 ac_cpp_err=$ac_c_preproc_warn_flag
45131 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
45138 if test -z "$ac_cpp_err"; then
45139 ac_header_preproc=yes
45141 echo "$as_me: failed program was:" >&5
45142 sed 's/^/| /' conftest.$ac_ext >&5
45144 ac_header_preproc=no
45146 rm -f conftest.err conftest.$ac_ext
45147 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45148 echo "${ECHO_T}$ac_header_preproc" >&6
45150 # So? What about this header?
45151 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45153 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45154 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45155 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45156 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45157 ac_header_preproc=yes
45160 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45161 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45162 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
45163 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
45164 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45165 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45166 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
45167 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
45168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45169 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45170 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45171 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45174 ## ------------------------------------------ ##
45175 ## Report this to the AC_PACKAGE_NAME lists. ##
45176 ## ------------------------------------------ ##
45179 sed "s/^/$as_me: WARNING: /" >&2
45182 echo "$as_me:$LINENO: checking for $ac_header" >&5
45183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45185 echo $ECHO_N "(cached) $ECHO_C" >&6
45187 eval "$as_ac_Header=\$ac_header_preproc"
45189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45190 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45193 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45194 cat >>confdefs.h <<_ACEOF
45195 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45203 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
45204 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
45205 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
45206 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
45207 echo $ECHO_N "(cached) $ECHO_C" >&6
45209 ac_check_lib_save_LIBS=$LIBS
45210 LIBS="-lsasl2 $LIBS"
45211 cat >conftest.$ac_ext <<_ACEOF
45214 cat confdefs.h >>conftest.$ac_ext
45215 cat >>conftest.$ac_ext <<_ACEOF
45216 /* end confdefs.h. */
45218 /* Override any gcc2 internal prototype to avoid an error. */
45222 /* We use char because int might match the return type of a gcc2
45223 builtin and then its argument prototype would still apply. */
45224 char sasl_client_init ();
45228 sasl_client_init ();
45233 rm -f conftest.$ac_objext conftest$ac_exeext
45234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45235 (eval $ac_link) 2>conftest.er1
45237 grep -v '^ *+' conftest.er1 >conftest.err
45239 cat conftest.err >&5
45240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45241 (exit $ac_status); } &&
45242 { ac_try='test -z "$ac_c_werror_flag"
45243 || test ! -s conftest.err'
45244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45245 (eval $ac_try) 2>&5
45247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45248 (exit $ac_status); }; } &&
45249 { ac_try='test -s conftest$ac_exeext'
45250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45251 (eval $ac_try) 2>&5
45253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45254 (exit $ac_status); }; }; then
45255 ac_cv_lib_sasl2_sasl_client_init=yes
45257 echo "$as_me: failed program was:" >&5
45258 sed 's/^/| /' conftest.$ac_ext >&5
45260 ac_cv_lib_sasl2_sasl_client_init=no
45262 rm -f conftest.err conftest.$ac_objext \
45263 conftest$ac_exeext conftest.$ac_ext
45264 LIBS=$ac_check_lib_save_LIBS
45266 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
45267 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
45268 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
45269 ol_link_sasl="-lsasl2"
45271 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
45272 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
45273 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
45274 echo $ECHO_N "(cached) $ECHO_C" >&6
45276 ac_check_lib_save_LIBS=$LIBS
45277 LIBS="-lsasl $LIBS"
45278 cat >conftest.$ac_ext <<_ACEOF
45281 cat confdefs.h >>conftest.$ac_ext
45282 cat >>conftest.$ac_ext <<_ACEOF
45283 /* end confdefs.h. */
45285 /* Override any gcc2 internal prototype to avoid an error. */
45289 /* We use char because int might match the return type of a gcc2
45290 builtin and then its argument prototype would still apply. */
45291 char sasl_client_init ();
45295 sasl_client_init ();
45300 rm -f conftest.$ac_objext conftest$ac_exeext
45301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45302 (eval $ac_link) 2>conftest.er1
45304 grep -v '^ *+' conftest.er1 >conftest.err
45306 cat conftest.err >&5
45307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45308 (exit $ac_status); } &&
45309 { ac_try='test -z "$ac_c_werror_flag"
45310 || test ! -s conftest.err'
45311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45312 (eval $ac_try) 2>&5
45314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45315 (exit $ac_status); }; } &&
45316 { ac_try='test -s conftest$ac_exeext'
45317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45318 (eval $ac_try) 2>&5
45320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45321 (exit $ac_status); }; }; then
45322 ac_cv_lib_sasl_sasl_client_init=yes
45324 echo "$as_me: failed program was:" >&5
45325 sed 's/^/| /' conftest.$ac_ext >&5
45327 ac_cv_lib_sasl_sasl_client_init=no
45329 rm -f conftest.err conftest.$ac_objext \
45330 conftest$ac_exeext conftest.$ac_ext
45331 LIBS=$ac_check_lib_save_LIBS
45333 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
45334 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
45335 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
45336 ol_link_sasl="-lsasl"
45343 if test $ol_link_sasl = no ; then
45344 if test $ol_with_cyrus_sasl != auto ; then
45345 { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
45346 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
45347 { (exit 1); exit 1; }; }
45349 { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
45350 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
45351 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
45352 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
45353 if test $ol_link_tls = no ; then
45354 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
45355 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
45359 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
45360 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
45361 if test "${ol_cv_sasl_compat+set}" = set; then
45362 echo $ECHO_N "(cached) $ECHO_C" >&6
45365 cat >conftest.$ac_ext <<_ACEOF
45368 cat confdefs.h >>conftest.$ac_ext
45369 cat >>conftest.$ac_ext <<_ACEOF
45370 /* end confdefs.h. */
45372 #ifdef HAVE_SASL_SASL_H
45373 #include <sasl/sasl.h>
45378 /* Require 2.1.15+ */
45379 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
45380 char *__sasl_compat = "2.2+ or better okay (we guess)";
45381 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
45382 && SASL_VERSION_STEP >=15
45383 char *__sasl_compat = "2.1.15+ or better okay";
45387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45388 $EGREP "__sasl_compat" >/dev/null 2>&1; then
45389 ol_cv_sasl_compat=yes
45391 ol_cv_sasl_compat=no
45396 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
45397 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
45399 if test $ol_cv_sasl_compat = no ; then
45401 { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
45402 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
45403 { (exit 1); exit 1; }; }
45407 cat >>confdefs.h <<\_ACEOF
45408 #define HAVE_CYRUS_SASL 1
45411 SASL_LIBS="$ol_link_sasl"
45412 if test $ol_enable_spasswd != no ; then
45413 ol_link_spasswd=yes
45416 ac_save_LIBS="$LIBS"
45417 LIBS="$LIBS $ol_link_sasl"
45418 echo "$as_me:$LINENO: checking for sasl_version" >&5
45419 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
45420 if test "${ac_cv_func_sasl_version+set}" = set; then
45421 echo $ECHO_N "(cached) $ECHO_C" >&6
45423 cat >conftest.$ac_ext <<_ACEOF
45426 cat confdefs.h >>conftest.$ac_ext
45427 cat >>conftest.$ac_ext <<_ACEOF
45428 /* end confdefs.h. */
45429 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
45430 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45431 #define sasl_version innocuous_sasl_version
45433 /* System header to define __stub macros and hopefully few prototypes,
45434 which can conflict with char sasl_version (); below.
45435 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45436 <limits.h> exists even on freestanding compilers. */
45439 # include <limits.h>
45441 # include <assert.h>
45444 #undef sasl_version
45446 /* Override any gcc2 internal prototype to avoid an error. */
45451 /* We use char because int might match the return type of a gcc2
45452 builtin and then its argument prototype would still apply. */
45453 char sasl_version ();
45454 /* The GNU C library defines this for functions which it implements
45455 to always fail with ENOSYS. Some functions are actually named
45456 something starting with __ and the normal name is an alias. */
45457 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
45460 char (*f) () = sasl_version;
45469 return f != sasl_version;
45474 rm -f conftest.$ac_objext conftest$ac_exeext
45475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45476 (eval $ac_link) 2>conftest.er1
45478 grep -v '^ *+' conftest.er1 >conftest.err
45480 cat conftest.err >&5
45481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45482 (exit $ac_status); } &&
45483 { ac_try='test -z "$ac_c_werror_flag"
45484 || test ! -s conftest.err'
45485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45486 (eval $ac_try) 2>&5
45488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45489 (exit $ac_status); }; } &&
45490 { ac_try='test -s conftest$ac_exeext'
45491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45492 (eval $ac_try) 2>&5
45494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45495 (exit $ac_status); }; }; then
45496 ac_cv_func_sasl_version=yes
45498 echo "$as_me: failed program was:" >&5
45499 sed 's/^/| /' conftest.$ac_ext >&5
45501 ac_cv_func_sasl_version=no
45503 rm -f conftest.err conftest.$ac_objext \
45504 conftest$ac_exeext conftest.$ac_ext
45506 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
45507 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
45508 if test $ac_cv_func_sasl_version = yes; then
45510 cat >>confdefs.h <<\_ACEOF
45511 #define HAVE_SASL_VERSION 1
45516 LIBS="$ac_save_LIBS"
45522 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
45523 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
45524 if test $ol_link_tls = no ; then
45525 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
45526 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
45530 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
45532 if test -r /dev/urandom ; then
45533 dev="/dev/urandom";
45534 elif test -r /idev/urandom ; then
45535 dev="/idev/urandom";
45536 elif test -r /dev/srandom ; then
45537 dev="/dev/srandom";
45538 elif test -r /dev/random ; then
45540 elif test -r /idev/random ; then
45541 dev="/idev/random";
45544 if test $dev != no ; then
45546 cat >>confdefs.h <<_ACEOF
45547 #define URANDOM_DEVICE "$dev"
45554 if test $ol_with_fetch != no ; then
45556 LIBS="-lfetch -lcom_err $LIBS"
45557 echo "$as_me:$LINENO: checking fetch(3) library" >&5
45558 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
45559 if test "${ol_cv_lib_fetch+set}" = set; then
45560 echo $ECHO_N "(cached) $ECHO_C" >&6
45563 cat >conftest.$ac_ext <<_ACEOF
45566 cat confdefs.h >>conftest.$ac_ext
45567 cat >>conftest.$ac_ext <<_ACEOF
45568 /* end confdefs.h. */
45570 #include <sys/param.h>
45576 struct url *u = fetchParseURL("file:///");
45581 rm -f conftest.$ac_objext conftest$ac_exeext
45582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45583 (eval $ac_link) 2>conftest.er1
45585 grep -v '^ *+' conftest.er1 >conftest.err
45587 cat conftest.err >&5
45588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45589 (exit $ac_status); } &&
45590 { ac_try='test -z "$ac_c_werror_flag"
45591 || test ! -s conftest.err'
45592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45593 (eval $ac_try) 2>&5
45595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45596 (exit $ac_status); }; } &&
45597 { ac_try='test -s conftest$ac_exeext'
45598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45599 (eval $ac_try) 2>&5
45601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45602 (exit $ac_status); }; }; then
45603 ol_cv_lib_fetch=yes
45605 echo "$as_me: failed program was:" >&5
45606 sed 's/^/| /' conftest.$ac_ext >&5
45610 rm -f conftest.err conftest.$ac_objext \
45611 conftest$ac_exeext conftest.$ac_ext
45613 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
45614 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
45616 if test $ol_cv_lib_fetch != no ; then
45617 ol_link_fetch="-lfetch -lcom_err"
45619 cat >>confdefs.h <<\_ACEOF
45620 #define HAVE_FETCH 1
45626 if test $ol_cv_lib_fetch != no ; then
45627 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
45628 ol_link_fetch=freebsd
45630 elif test $ol_with_fetch != auto ; then
45631 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
45632 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
45633 { (exit 1); exit 1; }; }
45637 if test $ol_enable_crypt != no ; then
45639 LIBS="$TLS_LIBS $LIBS"
45641 echo "$as_me:$LINENO: checking for crypt" >&5
45642 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
45643 if test "${ac_cv_func_crypt+set}" = set; then
45644 echo $ECHO_N "(cached) $ECHO_C" >&6
45646 cat >conftest.$ac_ext <<_ACEOF
45649 cat confdefs.h >>conftest.$ac_ext
45650 cat >>conftest.$ac_ext <<_ACEOF
45651 /* end confdefs.h. */
45652 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
45653 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45654 #define crypt innocuous_crypt
45656 /* System header to define __stub macros and hopefully few prototypes,
45657 which can conflict with char crypt (); below.
45658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45659 <limits.h> exists even on freestanding compilers. */
45662 # include <limits.h>
45664 # include <assert.h>
45669 /* Override any gcc2 internal prototype to avoid an error. */
45674 /* We use char because int might match the return type of a gcc2
45675 builtin and then its argument prototype would still apply. */
45677 /* The GNU C library defines this for functions which it implements
45678 to always fail with ENOSYS. Some functions are actually named
45679 something starting with __ and the normal name is an alias. */
45680 #if defined (__stub_crypt) || defined (__stub___crypt)
45683 char (*f) () = crypt;
45697 rm -f conftest.$ac_objext conftest$ac_exeext
45698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45699 (eval $ac_link) 2>conftest.er1
45701 grep -v '^ *+' conftest.er1 >conftest.err
45703 cat conftest.err >&5
45704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45705 (exit $ac_status); } &&
45706 { ac_try='test -z "$ac_c_werror_flag"
45707 || test ! -s conftest.err'
45708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45709 (eval $ac_try) 2>&5
45711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45712 (exit $ac_status); }; } &&
45713 { ac_try='test -s conftest$ac_exeext'
45714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45715 (eval $ac_try) 2>&5
45717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45718 (exit $ac_status); }; }; then
45719 ac_cv_func_crypt=yes
45721 echo "$as_me: failed program was:" >&5
45722 sed 's/^/| /' conftest.$ac_ext >&5
45724 ac_cv_func_crypt=no
45726 rm -f conftest.err conftest.$ac_objext \
45727 conftest$ac_exeext conftest.$ac_ext
45729 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
45730 echo "${ECHO_T}$ac_cv_func_crypt" >&6
45731 if test $ac_cv_func_crypt = yes; then
45736 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
45737 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
45738 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
45739 echo $ECHO_N "(cached) $ECHO_C" >&6
45741 ac_check_lib_save_LIBS=$LIBS
45742 LIBS="-lcrypt $LIBS"
45743 cat >conftest.$ac_ext <<_ACEOF
45746 cat confdefs.h >>conftest.$ac_ext
45747 cat >>conftest.$ac_ext <<_ACEOF
45748 /* end confdefs.h. */
45750 /* Override any gcc2 internal prototype to avoid an error. */
45754 /* We use char because int might match the return type of a gcc2
45755 builtin and then its argument prototype would still apply. */
45765 rm -f conftest.$ac_objext conftest$ac_exeext
45766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45767 (eval $ac_link) 2>conftest.er1
45769 grep -v '^ *+' conftest.er1 >conftest.err
45771 cat conftest.err >&5
45772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45773 (exit $ac_status); } &&
45774 { ac_try='test -z "$ac_c_werror_flag"
45775 || test ! -s conftest.err'
45776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45777 (eval $ac_try) 2>&5
45779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45780 (exit $ac_status); }; } &&
45781 { ac_try='test -s conftest$ac_exeext'
45782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45783 (eval $ac_try) 2>&5
45785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45786 (exit $ac_status); }; }; then
45787 ac_cv_lib_crypt_crypt=yes
45789 echo "$as_me: failed program was:" >&5
45790 sed 's/^/| /' conftest.$ac_ext >&5
45792 ac_cv_lib_crypt_crypt=no
45794 rm -f conftest.err conftest.$ac_objext \
45795 conftest$ac_exeext conftest.$ac_ext
45796 LIBS=$ac_check_lib_save_LIBS
45798 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
45799 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
45800 if test $ac_cv_lib_crypt_crypt = yes; then
45801 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
45812 if test $have_crypt = yes ; then
45814 cat >>confdefs.h <<\_ACEOF
45815 #define HAVE_CRYPT 1
45819 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
45820 echo "$as_me: WARNING: could not find crypt" >&2;}
45821 if test $ol_enable_crypt = yes ; then
45822 { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
45823 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
45824 { (exit 1); exit 1; }; }
45827 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
45828 echo "$as_me: WARNING: disabling crypt support" >&2;}
45833 if test $ol_enable_proctitle != no ; then
45834 echo "$as_me:$LINENO: checking for setproctitle" >&5
45835 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
45836 if test "${ac_cv_func_setproctitle+set}" = set; then
45837 echo $ECHO_N "(cached) $ECHO_C" >&6
45839 cat >conftest.$ac_ext <<_ACEOF
45842 cat confdefs.h >>conftest.$ac_ext
45843 cat >>conftest.$ac_ext <<_ACEOF
45844 /* end confdefs.h. */
45845 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
45846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45847 #define setproctitle innocuous_setproctitle
45849 /* System header to define __stub macros and hopefully few prototypes,
45850 which can conflict with char setproctitle (); below.
45851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45852 <limits.h> exists even on freestanding compilers. */
45855 # include <limits.h>
45857 # include <assert.h>
45860 #undef setproctitle
45862 /* Override any gcc2 internal prototype to avoid an error. */
45867 /* We use char because int might match the return type of a gcc2
45868 builtin and then its argument prototype would still apply. */
45869 char setproctitle ();
45870 /* The GNU C library defines this for functions which it implements
45871 to always fail with ENOSYS. Some functions are actually named
45872 something starting with __ and the normal name is an alias. */
45873 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
45876 char (*f) () = setproctitle;
45885 return f != setproctitle;
45890 rm -f conftest.$ac_objext conftest$ac_exeext
45891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45892 (eval $ac_link) 2>conftest.er1
45894 grep -v '^ *+' conftest.er1 >conftest.err
45896 cat conftest.err >&5
45897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45898 (exit $ac_status); } &&
45899 { ac_try='test -z "$ac_c_werror_flag"
45900 || test ! -s conftest.err'
45901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45902 (eval $ac_try) 2>&5
45904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45905 (exit $ac_status); }; } &&
45906 { ac_try='test -s conftest$ac_exeext'
45907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45908 (eval $ac_try) 2>&5
45910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45911 (exit $ac_status); }; }; then
45912 ac_cv_func_setproctitle=yes
45914 echo "$as_me: failed program was:" >&5
45915 sed 's/^/| /' conftest.$ac_ext >&5
45917 ac_cv_func_setproctitle=no
45919 rm -f conftest.err conftest.$ac_objext \
45920 conftest$ac_exeext conftest.$ac_ext
45922 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
45923 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
45924 if test $ac_cv_func_setproctitle = yes; then
45925 have_setproctitle=yes
45928 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
45929 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
45930 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
45931 echo $ECHO_N "(cached) $ECHO_C" >&6
45933 ac_check_lib_save_LIBS=$LIBS
45934 LIBS="-lutil $LIBS"
45935 cat >conftest.$ac_ext <<_ACEOF
45938 cat confdefs.h >>conftest.$ac_ext
45939 cat >>conftest.$ac_ext <<_ACEOF
45940 /* end confdefs.h. */
45942 /* Override any gcc2 internal prototype to avoid an error. */
45946 /* We use char because int might match the return type of a gcc2
45947 builtin and then its argument prototype would still apply. */
45948 char setproctitle ();
45957 rm -f conftest.$ac_objext conftest$ac_exeext
45958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45959 (eval $ac_link) 2>conftest.er1
45961 grep -v '^ *+' conftest.er1 >conftest.err
45963 cat conftest.err >&5
45964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45965 (exit $ac_status); } &&
45966 { ac_try='test -z "$ac_c_werror_flag"
45967 || test ! -s conftest.err'
45968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45969 (eval $ac_try) 2>&5
45971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45972 (exit $ac_status); }; } &&
45973 { ac_try='test -s conftest$ac_exeext'
45974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45975 (eval $ac_try) 2>&5
45977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45978 (exit $ac_status); }; }; then
45979 ac_cv_lib_util_setproctitle=yes
45981 echo "$as_me: failed program was:" >&5
45982 sed 's/^/| /' conftest.$ac_ext >&5
45984 ac_cv_lib_util_setproctitle=no
45986 rm -f conftest.err conftest.$ac_objext \
45987 conftest$ac_exeext conftest.$ac_ext
45988 LIBS=$ac_check_lib_save_LIBS
45990 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
45991 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
45992 if test $ac_cv_lib_util_setproctitle = yes; then
45993 have_setproctitle=yes
45994 LUTIL_LIBS="$LUTIL_LIBS -lutil"
45996 have_setproctitle=no
45998 "setproctitle.$ac_objext" | \
45999 *" setproctitle.$ac_objext" | \
46000 "setproctitle.$ac_objext "* | \
46001 *" setproctitle.$ac_objext "* ) ;;
46002 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
46005 LIBSRCS="$LIBSRCS setproctitle.c"
46011 if test $have_setproctitle = yes ; then
46013 cat >>confdefs.h <<\_ACEOF
46014 #define HAVE_SETPROCTITLE 1
46020 if test $ol_enable_slp != no ; then
46022 for ac_header in slp.h
46024 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46026 echo "$as_me:$LINENO: checking for $ac_header" >&5
46027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46029 echo $ECHO_N "(cached) $ECHO_C" >&6
46031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46032 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46034 # Is the header compilable?
46035 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46036 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46037 cat >conftest.$ac_ext <<_ACEOF
46040 cat confdefs.h >>conftest.$ac_ext
46041 cat >>conftest.$ac_ext <<_ACEOF
46042 /* end confdefs.h. */
46043 $ac_includes_default
46044 #include <$ac_header>
46046 rm -f conftest.$ac_objext
46047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46048 (eval $ac_compile) 2>conftest.er1
46050 grep -v '^ *+' conftest.er1 >conftest.err
46052 cat conftest.err >&5
46053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46054 (exit $ac_status); } &&
46055 { ac_try='test -z "$ac_c_werror_flag"
46056 || test ! -s conftest.err'
46057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46058 (eval $ac_try) 2>&5
46060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46061 (exit $ac_status); }; } &&
46062 { ac_try='test -s conftest.$ac_objext'
46063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46064 (eval $ac_try) 2>&5
46066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46067 (exit $ac_status); }; }; then
46068 ac_header_compiler=yes
46070 echo "$as_me: failed program was:" >&5
46071 sed 's/^/| /' conftest.$ac_ext >&5
46073 ac_header_compiler=no
46075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46076 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46077 echo "${ECHO_T}$ac_header_compiler" >&6
46079 # Is the header present?
46080 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46081 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46082 cat >conftest.$ac_ext <<_ACEOF
46085 cat confdefs.h >>conftest.$ac_ext
46086 cat >>conftest.$ac_ext <<_ACEOF
46087 /* end confdefs.h. */
46088 #include <$ac_header>
46090 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46091 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46093 grep -v '^ *+' conftest.er1 >conftest.err
46095 cat conftest.err >&5
46096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46097 (exit $ac_status); } >/dev/null; then
46098 if test -s conftest.err; then
46099 ac_cpp_err=$ac_c_preproc_warn_flag
46100 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46107 if test -z "$ac_cpp_err"; then
46108 ac_header_preproc=yes
46110 echo "$as_me: failed program was:" >&5
46111 sed 's/^/| /' conftest.$ac_ext >&5
46113 ac_header_preproc=no
46115 rm -f conftest.err conftest.$ac_ext
46116 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46117 echo "${ECHO_T}$ac_header_preproc" >&6
46119 # So? What about this header?
46120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46122 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46123 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46125 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46126 ac_header_preproc=yes
46129 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46130 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46131 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46132 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46133 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46134 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46135 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
46136 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
46137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46138 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46139 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46140 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46143 ## ------------------------------------------ ##
46144 ## Report this to the AC_PACKAGE_NAME lists. ##
46145 ## ------------------------------------------ ##
46148 sed "s/^/$as_me: WARNING: /" >&2
46151 echo "$as_me:$LINENO: checking for $ac_header" >&5
46152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46154 echo $ECHO_N "(cached) $ECHO_C" >&6
46156 eval "$as_ac_Header=\$ac_header_preproc"
46158 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46159 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46163 cat >>confdefs.h <<_ACEOF
46164 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46172 if test $ac_cv_header_slp_h = yes ; then
46173 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
46174 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
46175 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
46176 echo $ECHO_N "(cached) $ECHO_C" >&6
46178 ac_check_lib_save_LIBS=$LIBS
46180 cat >conftest.$ac_ext <<_ACEOF
46183 cat confdefs.h >>conftest.$ac_ext
46184 cat >>conftest.$ac_ext <<_ACEOF
46185 /* end confdefs.h. */
46187 /* Override any gcc2 internal prototype to avoid an error. */
46191 /* We use char because int might match the return type of a gcc2
46192 builtin and then its argument prototype would still apply. */
46202 rm -f conftest.$ac_objext conftest$ac_exeext
46203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46204 (eval $ac_link) 2>conftest.er1
46206 grep -v '^ *+' conftest.er1 >conftest.err
46208 cat conftest.err >&5
46209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46210 (exit $ac_status); } &&
46211 { ac_try='test -z "$ac_c_werror_flag"
46212 || test ! -s conftest.err'
46213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46214 (eval $ac_try) 2>&5
46216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46217 (exit $ac_status); }; } &&
46218 { ac_try='test -s conftest$ac_exeext'
46219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46220 (eval $ac_try) 2>&5
46222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46223 (exit $ac_status); }; }; then
46224 ac_cv_lib_slp_SLPOpen=yes
46226 echo "$as_me: failed program was:" >&5
46227 sed 's/^/| /' conftest.$ac_ext >&5
46229 ac_cv_lib_slp_SLPOpen=no
46231 rm -f conftest.err conftest.$ac_objext \
46232 conftest$ac_exeext conftest.$ac_ext
46233 LIBS=$ac_check_lib_save_LIBS
46235 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
46236 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
46237 if test $ac_cv_lib_slp_SLPOpen = yes; then
46243 if test $have_slp = yes ; then
46245 cat >>confdefs.h <<\_ACEOF
46249 SLAPD_SLP_LIBS=-lslp
46252 elif test $ol_enable_slp = yes ; then
46253 { { echo "$as_me:$LINENO: error: SLP not found" >&5
46254 echo "$as_me: error: SLP not found" >&2;}
46255 { (exit 1); exit 1; }; }
46259 if test "$ol_with_multiple_precision" != "no" ; then
46265 for ac_header in openssl/bn.h bn.h
46267 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46268 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46269 echo "$as_me:$LINENO: checking for $ac_header" >&5
46270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46271 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46272 echo $ECHO_N "(cached) $ECHO_C" >&6
46274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46275 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46277 # Is the header compilable?
46278 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46279 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46280 cat >conftest.$ac_ext <<_ACEOF
46283 cat confdefs.h >>conftest.$ac_ext
46284 cat >>conftest.$ac_ext <<_ACEOF
46285 /* end confdefs.h. */
46286 $ac_includes_default
46287 #include <$ac_header>
46289 rm -f conftest.$ac_objext
46290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46291 (eval $ac_compile) 2>conftest.er1
46293 grep -v '^ *+' conftest.er1 >conftest.err
46295 cat conftest.err >&5
46296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46297 (exit $ac_status); } &&
46298 { ac_try='test -z "$ac_c_werror_flag"
46299 || test ! -s conftest.err'
46300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46301 (eval $ac_try) 2>&5
46303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46304 (exit $ac_status); }; } &&
46305 { ac_try='test -s conftest.$ac_objext'
46306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46307 (eval $ac_try) 2>&5
46309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46310 (exit $ac_status); }; }; then
46311 ac_header_compiler=yes
46313 echo "$as_me: failed program was:" >&5
46314 sed 's/^/| /' conftest.$ac_ext >&5
46316 ac_header_compiler=no
46318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46319 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46320 echo "${ECHO_T}$ac_header_compiler" >&6
46322 # Is the header present?
46323 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46324 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46325 cat >conftest.$ac_ext <<_ACEOF
46328 cat confdefs.h >>conftest.$ac_ext
46329 cat >>conftest.$ac_ext <<_ACEOF
46330 /* end confdefs.h. */
46331 #include <$ac_header>
46333 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46334 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46336 grep -v '^ *+' conftest.er1 >conftest.err
46338 cat conftest.err >&5
46339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46340 (exit $ac_status); } >/dev/null; then
46341 if test -s conftest.err; then
46342 ac_cpp_err=$ac_c_preproc_warn_flag
46343 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46350 if test -z "$ac_cpp_err"; then
46351 ac_header_preproc=yes
46353 echo "$as_me: failed program was:" >&5
46354 sed 's/^/| /' conftest.$ac_ext >&5
46356 ac_header_preproc=no
46358 rm -f conftest.err conftest.$ac_ext
46359 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46360 echo "${ECHO_T}$ac_header_preproc" >&6
46362 # So? What about this header?
46363 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46365 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46366 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46367 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46368 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46369 ac_header_preproc=yes
46372 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46373 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46374 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46375 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46376 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46377 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46378 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
46379 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
46380 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46381 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46382 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46383 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46386 ## ------------------------------------------ ##
46387 ## Report this to the AC_PACKAGE_NAME lists. ##
46388 ## ------------------------------------------ ##
46391 sed "s/^/$as_me: WARNING: /" >&2
46394 echo "$as_me:$LINENO: checking for $ac_header" >&5
46395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46397 echo $ECHO_N "(cached) $ECHO_C" >&6
46399 eval "$as_ac_Header=\$ac_header_preproc"
46401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46402 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46405 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46406 cat >>confdefs.h <<_ACEOF
46407 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46416 for ac_header in openssl/crypto.h crypto.h
46418 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46419 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46420 echo "$as_me:$LINENO: checking for $ac_header" >&5
46421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46423 echo $ECHO_N "(cached) $ECHO_C" >&6
46425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46426 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46428 # Is the header compilable?
46429 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46430 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46431 cat >conftest.$ac_ext <<_ACEOF
46434 cat confdefs.h >>conftest.$ac_ext
46435 cat >>conftest.$ac_ext <<_ACEOF
46436 /* end confdefs.h. */
46437 $ac_includes_default
46438 #include <$ac_header>
46440 rm -f conftest.$ac_objext
46441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46442 (eval $ac_compile) 2>conftest.er1
46444 grep -v '^ *+' conftest.er1 >conftest.err
46446 cat conftest.err >&5
46447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46448 (exit $ac_status); } &&
46449 { ac_try='test -z "$ac_c_werror_flag"
46450 || test ! -s conftest.err'
46451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46452 (eval $ac_try) 2>&5
46454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46455 (exit $ac_status); }; } &&
46456 { ac_try='test -s conftest.$ac_objext'
46457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46458 (eval $ac_try) 2>&5
46460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46461 (exit $ac_status); }; }; then
46462 ac_header_compiler=yes
46464 echo "$as_me: failed program was:" >&5
46465 sed 's/^/| /' conftest.$ac_ext >&5
46467 ac_header_compiler=no
46469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46470 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46471 echo "${ECHO_T}$ac_header_compiler" >&6
46473 # Is the header present?
46474 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46475 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46476 cat >conftest.$ac_ext <<_ACEOF
46479 cat confdefs.h >>conftest.$ac_ext
46480 cat >>conftest.$ac_ext <<_ACEOF
46481 /* end confdefs.h. */
46482 #include <$ac_header>
46484 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46485 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46487 grep -v '^ *+' conftest.er1 >conftest.err
46489 cat conftest.err >&5
46490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46491 (exit $ac_status); } >/dev/null; then
46492 if test -s conftest.err; then
46493 ac_cpp_err=$ac_c_preproc_warn_flag
46494 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46501 if test -z "$ac_cpp_err"; then
46502 ac_header_preproc=yes
46504 echo "$as_me: failed program was:" >&5
46505 sed 's/^/| /' conftest.$ac_ext >&5
46507 ac_header_preproc=no
46509 rm -f conftest.err conftest.$ac_ext
46510 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46511 echo "${ECHO_T}$ac_header_preproc" >&6
46513 # So? What about this header?
46514 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46516 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46517 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46519 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46520 ac_header_preproc=yes
46523 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46524 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46525 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46526 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46527 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46528 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46529 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
46530 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
46531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46532 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46533 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46534 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46537 ## ------------------------------------------ ##
46538 ## Report this to the AC_PACKAGE_NAME lists. ##
46539 ## ------------------------------------------ ##
46542 sed "s/^/$as_me: WARNING: /" >&2
46545 echo "$as_me:$LINENO: checking for $ac_header" >&5
46546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46548 echo $ECHO_N "(cached) $ECHO_C" >&6
46550 eval "$as_ac_Header=\$ac_header_preproc"
46552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46553 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46556 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46557 cat >>confdefs.h <<_ACEOF
46558 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46566 for ac_header in gmp.h
46568 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46570 echo "$as_me:$LINENO: checking for $ac_header" >&5
46571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46573 echo $ECHO_N "(cached) $ECHO_C" >&6
46575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46578 # Is the header compilable?
46579 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46580 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46581 cat >conftest.$ac_ext <<_ACEOF
46584 cat confdefs.h >>conftest.$ac_ext
46585 cat >>conftest.$ac_ext <<_ACEOF
46586 /* end confdefs.h. */
46587 $ac_includes_default
46588 #include <$ac_header>
46590 rm -f conftest.$ac_objext
46591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46592 (eval $ac_compile) 2>conftest.er1
46594 grep -v '^ *+' conftest.er1 >conftest.err
46596 cat conftest.err >&5
46597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46598 (exit $ac_status); } &&
46599 { ac_try='test -z "$ac_c_werror_flag"
46600 || test ! -s conftest.err'
46601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46602 (eval $ac_try) 2>&5
46604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46605 (exit $ac_status); }; } &&
46606 { ac_try='test -s conftest.$ac_objext'
46607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46608 (eval $ac_try) 2>&5
46610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46611 (exit $ac_status); }; }; then
46612 ac_header_compiler=yes
46614 echo "$as_me: failed program was:" >&5
46615 sed 's/^/| /' conftest.$ac_ext >&5
46617 ac_header_compiler=no
46619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46620 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46621 echo "${ECHO_T}$ac_header_compiler" >&6
46623 # Is the header present?
46624 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46625 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46626 cat >conftest.$ac_ext <<_ACEOF
46629 cat confdefs.h >>conftest.$ac_ext
46630 cat >>conftest.$ac_ext <<_ACEOF
46631 /* end confdefs.h. */
46632 #include <$ac_header>
46634 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46635 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46637 grep -v '^ *+' conftest.er1 >conftest.err
46639 cat conftest.err >&5
46640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46641 (exit $ac_status); } >/dev/null; then
46642 if test -s conftest.err; then
46643 ac_cpp_err=$ac_c_preproc_warn_flag
46644 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46651 if test -z "$ac_cpp_err"; then
46652 ac_header_preproc=yes
46654 echo "$as_me: failed program was:" >&5
46655 sed 's/^/| /' conftest.$ac_ext >&5
46657 ac_header_preproc=no
46659 rm -f conftest.err conftest.$ac_ext
46660 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46661 echo "${ECHO_T}$ac_header_preproc" >&6
46663 # So? What about this header?
46664 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46666 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46667 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46668 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46669 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46670 ac_header_preproc=yes
46673 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46674 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46675 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46676 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46677 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46678 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46679 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
46680 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
46681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46682 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46683 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46684 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46687 ## ------------------------------------------ ##
46688 ## Report this to the AC_PACKAGE_NAME lists. ##
46689 ## ------------------------------------------ ##
46692 sed "s/^/$as_me: WARNING: /" >&2
46695 echo "$as_me:$LINENO: checking for $ac_header" >&5
46696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46698 echo $ECHO_N "(cached) $ECHO_C" >&6
46700 eval "$as_ac_Header=\$ac_header_preproc"
46702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46703 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46706 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46707 cat >>confdefs.h <<_ACEOF
46708 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46716 if test "$ol_with_tls" = "found" ; then
46718 ol_have_crypto_h=no
46720 if test "$ac_cv_header_openssl_bn_h" = "yes" \
46721 -o "$ac_cv_header_bn_h" = "yes" ; then
46725 if test "$ac_cv_header_openssl_crypto_h" = "yes" \
46726 -o "$ac_cv_header_crypto_h" = "yes" ; then
46727 ol_have_crypto_h=yes
46730 if test "$ol_have_bn_h" = "yes" \
46731 -a "$ol_have_crypto_h" = "yes" ; then
46736 if test $ac_cv_header_gmp_h = yes ; then
46737 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
46738 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
46739 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
46740 echo $ECHO_N "(cached) $ECHO_C" >&6
46742 ac_check_lib_save_LIBS=$LIBS
46744 cat >conftest.$ac_ext <<_ACEOF
46747 cat confdefs.h >>conftest.$ac_ext
46748 cat >>conftest.$ac_ext <<_ACEOF
46749 /* end confdefs.h. */
46751 /* Override any gcc2 internal prototype to avoid an error. */
46755 /* We use char because int might match the return type of a gcc2
46756 builtin and then its argument prototype would still apply. */
46757 char __gmpz_add_ui ();
46766 rm -f conftest.$ac_objext conftest$ac_exeext
46767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46768 (eval $ac_link) 2>conftest.er1
46770 grep -v '^ *+' conftest.er1 >conftest.err
46772 cat conftest.err >&5
46773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46774 (exit $ac_status); } &&
46775 { ac_try='test -z "$ac_c_werror_flag"
46776 || test ! -s conftest.err'
46777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46778 (eval $ac_try) 2>&5
46780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46781 (exit $ac_status); }; } &&
46782 { ac_try='test -s conftest$ac_exeext'
46783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46784 (eval $ac_try) 2>&5
46786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46787 (exit $ac_status); }; }; then
46788 ac_cv_lib_gmp___gmpz_add_ui=yes
46790 echo "$as_me: failed program was:" >&5
46791 sed 's/^/| /' conftest.$ac_ext >&5
46793 ac_cv_lib_gmp___gmpz_add_ui=no
46795 rm -f conftest.err conftest.$ac_objext \
46796 conftest$ac_exeext conftest.$ac_ext
46797 LIBS=$ac_check_lib_save_LIBS
46799 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
46800 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
46801 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
46807 if test $have_gmp = yes ; then
46812 echo "$as_me:$LINENO: checking for multiple precision support" >&5
46813 echo $ECHO_N "checking for multiple precision support... $ECHO_C" >&6
46815 ol_mp_support="none"
46816 case "$ol_with_multiple_precision" in
46818 if test "$ol_have_bignum" = "yes" ; then
46819 ol_mp_support="bignum"
46821 if test "$ol_have_gmp" = "yes" ; then
46822 ol_mp_support="gmp"
46827 if test "$ol_have_bignum" != "yes" ; then
46828 { { echo "$as_me:$LINENO: error: OpenSSL's BIGNUM not available" >&5
46829 echo "$as_me: error: OpenSSL's BIGNUM not available" >&2;}
46830 { (exit 1); exit 1; }; }
46832 ol_mp_support="bignum"
46835 if test "$ol_have_gmp" != "yes" ; then
46836 { { echo "$as_me:$LINENO: error: GMP not available" >&5
46837 echo "$as_me: error: GMP not available" >&2;}
46838 { (exit 1); exit 1; }; }
46840 ol_mp_support="gmp"
46843 if test "$ol_have_bignum" = "yes" ; then
46844 ol_mp_support="bignum"
46845 elif test "$ol_have_gmp" = "yes" ; then
46846 ol_mp_support="gmp"
46848 { { echo "$as_me:$LINENO: error: not available" >&5
46849 echo "$as_me: error: not available" >&2;}
46850 { (exit 1); exit 1; }; }
46855 case "$ol_mp_support" in
46858 cat >>confdefs.h <<\_ACEOF
46859 #define HAVE_BIGNUM 1
46865 cat >>confdefs.h <<\_ACEOF
46869 SLAPD_GMP_LIBS=-lgmp
46875 echo "$as_me:$LINENO: result: $ol_mp_support" >&5
46876 echo "${ECHO_T}$ol_mp_support" >&6
46880 echo "$as_me:$LINENO: checking for mode_t" >&5
46881 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
46882 if test "${ac_cv_type_mode_t+set}" = set; then
46883 echo $ECHO_N "(cached) $ECHO_C" >&6
46885 cat >conftest.$ac_ext <<_ACEOF
46888 cat confdefs.h >>conftest.$ac_ext
46889 cat >>conftest.$ac_ext <<_ACEOF
46890 /* end confdefs.h. */
46891 $ac_includes_default
46897 if (sizeof (mode_t))
46903 rm -f conftest.$ac_objext
46904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46905 (eval $ac_compile) 2>conftest.er1
46907 grep -v '^ *+' conftest.er1 >conftest.err
46909 cat conftest.err >&5
46910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46911 (exit $ac_status); } &&
46912 { ac_try='test -z "$ac_c_werror_flag"
46913 || test ! -s conftest.err'
46914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46915 (eval $ac_try) 2>&5
46917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46918 (exit $ac_status); }; } &&
46919 { ac_try='test -s conftest.$ac_objext'
46920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46921 (eval $ac_try) 2>&5
46923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46924 (exit $ac_status); }; }; then
46925 ac_cv_type_mode_t=yes
46927 echo "$as_me: failed program was:" >&5
46928 sed 's/^/| /' conftest.$ac_ext >&5
46930 ac_cv_type_mode_t=no
46932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46934 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
46935 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
46936 if test $ac_cv_type_mode_t = yes; then
46940 cat >>confdefs.h <<_ACEOF
46946 echo "$as_me:$LINENO: checking for off_t" >&5
46947 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
46948 if test "${ac_cv_type_off_t+set}" = set; then
46949 echo $ECHO_N "(cached) $ECHO_C" >&6
46951 cat >conftest.$ac_ext <<_ACEOF
46954 cat confdefs.h >>conftest.$ac_ext
46955 cat >>conftest.$ac_ext <<_ACEOF
46956 /* end confdefs.h. */
46957 $ac_includes_default
46963 if (sizeof (off_t))
46969 rm -f conftest.$ac_objext
46970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46971 (eval $ac_compile) 2>conftest.er1
46973 grep -v '^ *+' conftest.er1 >conftest.err
46975 cat conftest.err >&5
46976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46977 (exit $ac_status); } &&
46978 { ac_try='test -z "$ac_c_werror_flag"
46979 || test ! -s conftest.err'
46980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46981 (eval $ac_try) 2>&5
46983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46984 (exit $ac_status); }; } &&
46985 { ac_try='test -s conftest.$ac_objext'
46986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46987 (eval $ac_try) 2>&5
46989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46990 (exit $ac_status); }; }; then
46991 ac_cv_type_off_t=yes
46993 echo "$as_me: failed program was:" >&5
46994 sed 's/^/| /' conftest.$ac_ext >&5
46996 ac_cv_type_off_t=no
46998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47000 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
47001 echo "${ECHO_T}$ac_cv_type_off_t" >&6
47002 if test $ac_cv_type_off_t = yes; then
47006 cat >>confdefs.h <<_ACEOF
47012 echo "$as_me:$LINENO: checking for pid_t" >&5
47013 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
47014 if test "${ac_cv_type_pid_t+set}" = set; then
47015 echo $ECHO_N "(cached) $ECHO_C" >&6
47017 cat >conftest.$ac_ext <<_ACEOF
47020 cat confdefs.h >>conftest.$ac_ext
47021 cat >>conftest.$ac_ext <<_ACEOF
47022 /* end confdefs.h. */
47023 $ac_includes_default
47029 if (sizeof (pid_t))
47035 rm -f conftest.$ac_objext
47036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47037 (eval $ac_compile) 2>conftest.er1
47039 grep -v '^ *+' conftest.er1 >conftest.err
47041 cat conftest.err >&5
47042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47043 (exit $ac_status); } &&
47044 { ac_try='test -z "$ac_c_werror_flag"
47045 || test ! -s conftest.err'
47046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47047 (eval $ac_try) 2>&5
47049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47050 (exit $ac_status); }; } &&
47051 { ac_try='test -s conftest.$ac_objext'
47052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47053 (eval $ac_try) 2>&5
47055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47056 (exit $ac_status); }; }; then
47057 ac_cv_type_pid_t=yes
47059 echo "$as_me: failed program was:" >&5
47060 sed 's/^/| /' conftest.$ac_ext >&5
47062 ac_cv_type_pid_t=no
47064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47066 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
47067 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
47068 if test $ac_cv_type_pid_t = yes; then
47072 cat >>confdefs.h <<_ACEOF
47078 echo "$as_me:$LINENO: checking for ssize_t" >&5
47079 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
47080 if test "${ac_cv_type_ssize_t+set}" = set; then
47081 echo $ECHO_N "(cached) $ECHO_C" >&6
47083 cat >conftest.$ac_ext <<_ACEOF
47086 cat confdefs.h >>conftest.$ac_ext
47087 cat >>conftest.$ac_ext <<_ACEOF
47088 /* end confdefs.h. */
47089 $ac_includes_default
47095 if (sizeof (ssize_t))
47101 rm -f conftest.$ac_objext
47102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47103 (eval $ac_compile) 2>conftest.er1
47105 grep -v '^ *+' conftest.er1 >conftest.err
47107 cat conftest.err >&5
47108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47109 (exit $ac_status); } &&
47110 { ac_try='test -z "$ac_c_werror_flag"
47111 || test ! -s conftest.err'
47112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47113 (eval $ac_try) 2>&5
47115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47116 (exit $ac_status); }; } &&
47117 { ac_try='test -s conftest.$ac_objext'
47118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47119 (eval $ac_try) 2>&5
47121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47122 (exit $ac_status); }; }; then
47123 ac_cv_type_ssize_t=yes
47125 echo "$as_me: failed program was:" >&5
47126 sed 's/^/| /' conftest.$ac_ext >&5
47128 ac_cv_type_ssize_t=no
47130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47132 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
47133 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
47134 if test $ac_cv_type_ssize_t = yes; then
47138 cat >>confdefs.h <<_ACEOF
47139 #define ssize_t signed int
47144 echo "$as_me:$LINENO: checking for caddr_t" >&5
47145 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
47146 if test "${ac_cv_type_caddr_t+set}" = set; then
47147 echo $ECHO_N "(cached) $ECHO_C" >&6
47149 cat >conftest.$ac_ext <<_ACEOF
47152 cat confdefs.h >>conftest.$ac_ext
47153 cat >>conftest.$ac_ext <<_ACEOF
47154 /* end confdefs.h. */
47155 $ac_includes_default
47161 if (sizeof (caddr_t))
47167 rm -f conftest.$ac_objext
47168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47169 (eval $ac_compile) 2>conftest.er1
47171 grep -v '^ *+' conftest.er1 >conftest.err
47173 cat conftest.err >&5
47174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47175 (exit $ac_status); } &&
47176 { ac_try='test -z "$ac_c_werror_flag"
47177 || test ! -s conftest.err'
47178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47179 (eval $ac_try) 2>&5
47181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47182 (exit $ac_status); }; } &&
47183 { ac_try='test -s conftest.$ac_objext'
47184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47185 (eval $ac_try) 2>&5
47187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47188 (exit $ac_status); }; }; then
47189 ac_cv_type_caddr_t=yes
47191 echo "$as_me: failed program was:" >&5
47192 sed 's/^/| /' conftest.$ac_ext >&5
47194 ac_cv_type_caddr_t=no
47196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47198 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
47199 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
47200 if test $ac_cv_type_caddr_t = yes; then
47204 cat >>confdefs.h <<_ACEOF
47205 #define caddr_t char *
47210 echo "$as_me:$LINENO: checking for size_t" >&5
47211 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
47212 if test "${ac_cv_type_size_t+set}" = set; then
47213 echo $ECHO_N "(cached) $ECHO_C" >&6
47215 cat >conftest.$ac_ext <<_ACEOF
47218 cat confdefs.h >>conftest.$ac_ext
47219 cat >>conftest.$ac_ext <<_ACEOF
47220 /* end confdefs.h. */
47221 $ac_includes_default
47227 if (sizeof (size_t))
47233 rm -f conftest.$ac_objext
47234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47235 (eval $ac_compile) 2>conftest.er1
47237 grep -v '^ *+' conftest.er1 >conftest.err
47239 cat conftest.err >&5
47240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47241 (exit $ac_status); } &&
47242 { ac_try='test -z "$ac_c_werror_flag"
47243 || test ! -s conftest.err'
47244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47245 (eval $ac_try) 2>&5
47247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47248 (exit $ac_status); }; } &&
47249 { ac_try='test -s conftest.$ac_objext'
47250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47251 (eval $ac_try) 2>&5
47253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47254 (exit $ac_status); }; }; then
47255 ac_cv_type_size_t=yes
47257 echo "$as_me: failed program was:" >&5
47258 sed 's/^/| /' conftest.$ac_ext >&5
47260 ac_cv_type_size_t=no
47262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47264 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
47265 echo "${ECHO_T}$ac_cv_type_size_t" >&6
47266 if test $ac_cv_type_size_t = yes; then
47270 cat >>confdefs.h <<_ACEOF
47271 #define size_t unsigned
47277 echo "$as_me:$LINENO: checking for long long" >&5
47278 echo $ECHO_N "checking for long long... $ECHO_C" >&6
47279 if test "${ac_cv_type_long_long+set}" = set; then
47280 echo $ECHO_N "(cached) $ECHO_C" >&6
47282 cat >conftest.$ac_ext <<_ACEOF
47285 cat confdefs.h >>conftest.$ac_ext
47286 cat >>conftest.$ac_ext <<_ACEOF
47287 /* end confdefs.h. */
47288 $ac_includes_default
47292 if ((long long *) 0)
47294 if (sizeof (long long))
47300 rm -f conftest.$ac_objext
47301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47302 (eval $ac_compile) 2>conftest.er1
47304 grep -v '^ *+' conftest.er1 >conftest.err
47306 cat conftest.err >&5
47307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47308 (exit $ac_status); } &&
47309 { ac_try='test -z "$ac_c_werror_flag"
47310 || test ! -s conftest.err'
47311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47312 (eval $ac_try) 2>&5
47314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47315 (exit $ac_status); }; } &&
47316 { ac_try='test -s conftest.$ac_objext'
47317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47318 (eval $ac_try) 2>&5
47320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47321 (exit $ac_status); }; }; then
47322 ac_cv_type_long_long=yes
47324 echo "$as_me: failed program was:" >&5
47325 sed 's/^/| /' conftest.$ac_ext >&5
47327 ac_cv_type_long_long=no
47329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47331 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
47332 echo "${ECHO_T}$ac_cv_type_long_long" >&6
47333 if test $ac_cv_type_long_long = yes; then
47335 cat >>confdefs.h <<_ACEOF
47336 #define HAVE_LONG_LONG 1
47342 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
47343 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
47344 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
47345 echo $ECHO_N "(cached) $ECHO_C" >&6
47347 cat >conftest.$ac_ext <<_ACEOF
47350 cat confdefs.h >>conftest.$ac_ext
47351 cat >>conftest.$ac_ext <<_ACEOF
47352 /* end confdefs.h. */
47353 $ac_includes_default
47357 if ((ptrdiff_t *) 0)
47359 if (sizeof (ptrdiff_t))
47365 rm -f conftest.$ac_objext
47366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47367 (eval $ac_compile) 2>conftest.er1
47369 grep -v '^ *+' conftest.er1 >conftest.err
47371 cat conftest.err >&5
47372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47373 (exit $ac_status); } &&
47374 { ac_try='test -z "$ac_c_werror_flag"
47375 || test ! -s conftest.err'
47376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47377 (eval $ac_try) 2>&5
47379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47380 (exit $ac_status); }; } &&
47381 { ac_try='test -s conftest.$ac_objext'
47382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47383 (eval $ac_try) 2>&5
47385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47386 (exit $ac_status); }; }; then
47387 ac_cv_type_ptrdiff_t=yes
47389 echo "$as_me: failed program was:" >&5
47390 sed 's/^/| /' conftest.$ac_ext >&5
47392 ac_cv_type_ptrdiff_t=no
47394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47396 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
47397 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
47398 if test $ac_cv_type_ptrdiff_t = yes; then
47400 cat >>confdefs.h <<_ACEOF
47401 #define HAVE_PTRDIFF_T 1
47408 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
47409 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
47410 if test "${ac_cv_type_signal+set}" = set; then
47411 echo $ECHO_N "(cached) $ECHO_C" >&6
47413 cat >conftest.$ac_ext <<_ACEOF
47416 cat confdefs.h >>conftest.$ac_ext
47417 cat >>conftest.$ac_ext <<_ACEOF
47418 /* end confdefs.h. */
47419 #include <sys/types.h>
47420 #include <signal.h>
47425 extern "C" void (*signal (int, void (*)(int)))(int);
47427 void (*signal ()) ();
47438 rm -f conftest.$ac_objext
47439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47440 (eval $ac_compile) 2>conftest.er1
47442 grep -v '^ *+' conftest.er1 >conftest.err
47444 cat conftest.err >&5
47445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47446 (exit $ac_status); } &&
47447 { ac_try='test -z "$ac_c_werror_flag"
47448 || test ! -s conftest.err'
47449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47450 (eval $ac_try) 2>&5
47452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47453 (exit $ac_status); }; } &&
47454 { ac_try='test -s conftest.$ac_objext'
47455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47456 (eval $ac_try) 2>&5
47458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47459 (exit $ac_status); }; }; then
47460 ac_cv_type_signal=void
47462 echo "$as_me: failed program was:" >&5
47463 sed 's/^/| /' conftest.$ac_ext >&5
47465 ac_cv_type_signal=int
47467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47469 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
47470 echo "${ECHO_T}$ac_cv_type_signal" >&6
47472 cat >>confdefs.h <<_ACEOF
47473 #define RETSIGTYPE $ac_cv_type_signal
47477 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
47478 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
47479 if test "${ac_cv_type_uid_t+set}" = set; then
47480 echo $ECHO_N "(cached) $ECHO_C" >&6
47482 cat >conftest.$ac_ext <<_ACEOF
47485 cat confdefs.h >>conftest.$ac_ext
47486 cat >>conftest.$ac_ext <<_ACEOF
47487 /* end confdefs.h. */
47488 #include <sys/types.h>
47491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47492 $EGREP "uid_t" >/dev/null 2>&1; then
47493 ac_cv_type_uid_t=yes
47495 ac_cv_type_uid_t=no
47500 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
47501 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
47502 if test $ac_cv_type_uid_t = no; then
47504 cat >>confdefs.h <<\_ACEOF
47509 cat >>confdefs.h <<\_ACEOF
47515 echo "$as_me:$LINENO: checking for socklen_t" >&5
47516 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
47517 if test "${ol_cv_type_socklen_t+set}" = set; then
47518 echo $ECHO_N "(cached) $ECHO_C" >&6
47520 cat >conftest.$ac_ext <<_ACEOF
47523 cat confdefs.h >>conftest.$ac_ext
47524 cat >>conftest.$ac_ext <<_ACEOF
47525 /* end confdefs.h. */
47527 #ifdef HAVE_SYS_TYPES_H
47528 #include <sys/types.h>
47530 #ifdef HAVE_SYS_SOCKET_H
47531 #include <sys/socket.h>
47542 rm -f conftest.$ac_objext
47543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47544 (eval $ac_compile) 2>conftest.er1
47546 grep -v '^ *+' conftest.er1 >conftest.err
47548 cat conftest.err >&5
47549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47550 (exit $ac_status); } &&
47551 { ac_try='test -z "$ac_c_werror_flag"
47552 || test ! -s conftest.err'
47553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47554 (eval $ac_try) 2>&5
47556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47557 (exit $ac_status); }; } &&
47558 { ac_try='test -s conftest.$ac_objext'
47559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47560 (eval $ac_try) 2>&5
47562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47563 (exit $ac_status); }; }; then
47564 ol_cv_type_socklen_t=yes
47566 echo "$as_me: failed program was:" >&5
47567 sed 's/^/| /' conftest.$ac_ext >&5
47569 ol_cv_type_socklen_t=no
47571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47573 echo "$as_me:$LINENO: result: $ol_cv_type_socklen_t" >&5
47574 echo "${ECHO_T}$ol_cv_type_socklen_t" >&6
47575 if test $ol_cv_type_socklen_t = no; then
47577 cat >>confdefs.h <<\_ACEOF
47578 #define socklen_t int
47583 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
47584 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
47585 if test "${ol_cv_type_sig_atomic_t+set}" = set; then
47586 echo $ECHO_N "(cached) $ECHO_C" >&6
47588 cat >conftest.$ac_ext <<_ACEOF
47591 cat confdefs.h >>conftest.$ac_ext
47592 cat >>conftest.$ac_ext <<_ACEOF
47593 /* end confdefs.h. */
47594 #include <signal.h>
47598 sig_atomic_t atomic;
47603 rm -f conftest.$ac_objext
47604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47605 (eval $ac_compile) 2>conftest.er1
47607 grep -v '^ *+' conftest.er1 >conftest.err
47609 cat conftest.err >&5
47610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47611 (exit $ac_status); } &&
47612 { ac_try='test -z "$ac_c_werror_flag"
47613 || test ! -s conftest.err'
47614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47615 (eval $ac_try) 2>&5
47617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47618 (exit $ac_status); }; } &&
47619 { ac_try='test -s conftest.$ac_objext'
47620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47621 (eval $ac_try) 2>&5
47623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47624 (exit $ac_status); }; }; then
47625 ol_cv_type_sig_atomic_t=yes
47627 echo "$as_me: failed program was:" >&5
47628 sed 's/^/| /' conftest.$ac_ext >&5
47630 ol_cv_type_sig_atomic_t=no
47632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47634 echo "$as_me:$LINENO: result: $ol_cv_type_sig_atomic_t" >&5
47635 echo "${ECHO_T}$ol_cv_type_sig_atomic_t" >&6
47636 if test $ol_cv_type_sig_atomic_t = no; then
47638 cat >>confdefs.h <<\_ACEOF
47639 #define sig_atomic_t int
47645 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
47646 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
47647 if test "${ac_cv_header_time+set}" = set; then
47648 echo $ECHO_N "(cached) $ECHO_C" >&6
47650 cat >conftest.$ac_ext <<_ACEOF
47653 cat confdefs.h >>conftest.$ac_ext
47654 cat >>conftest.$ac_ext <<_ACEOF
47655 /* end confdefs.h. */
47656 #include <sys/types.h>
47657 #include <sys/time.h>
47663 if ((struct tm *) 0)
47669 rm -f conftest.$ac_objext
47670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47671 (eval $ac_compile) 2>conftest.er1
47673 grep -v '^ *+' conftest.er1 >conftest.err
47675 cat conftest.err >&5
47676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47677 (exit $ac_status); } &&
47678 { ac_try='test -z "$ac_c_werror_flag"
47679 || test ! -s conftest.err'
47680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47681 (eval $ac_try) 2>&5
47683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47684 (exit $ac_status); }; } &&
47685 { ac_try='test -s conftest.$ac_objext'
47686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47687 (eval $ac_try) 2>&5
47689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47690 (exit $ac_status); }; }; then
47691 ac_cv_header_time=yes
47693 echo "$as_me: failed program was:" >&5
47694 sed 's/^/| /' conftest.$ac_ext >&5
47696 ac_cv_header_time=no
47698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47700 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
47701 echo "${ECHO_T}$ac_cv_header_time" >&6
47702 if test $ac_cv_header_time = yes; then
47704 cat >>confdefs.h <<\_ACEOF
47705 #define TIME_WITH_SYS_TIME 1
47710 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
47711 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
47712 if test "${ac_cv_struct_tm+set}" = set; then
47713 echo $ECHO_N "(cached) $ECHO_C" >&6
47715 cat >conftest.$ac_ext <<_ACEOF
47718 cat confdefs.h >>conftest.$ac_ext
47719 cat >>conftest.$ac_ext <<_ACEOF
47720 /* end confdefs.h. */
47721 #include <sys/types.h>
47727 struct tm *tp; tp->tm_sec;
47732 rm -f conftest.$ac_objext
47733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47734 (eval $ac_compile) 2>conftest.er1
47736 grep -v '^ *+' conftest.er1 >conftest.err
47738 cat conftest.err >&5
47739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47740 (exit $ac_status); } &&
47741 { ac_try='test -z "$ac_c_werror_flag"
47742 || test ! -s conftest.err'
47743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47744 (eval $ac_try) 2>&5
47746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47747 (exit $ac_status); }; } &&
47748 { ac_try='test -s conftest.$ac_objext'
47749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47750 (eval $ac_try) 2>&5
47752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47753 (exit $ac_status); }; }; then
47754 ac_cv_struct_tm=time.h
47756 echo "$as_me: failed program was:" >&5
47757 sed 's/^/| /' conftest.$ac_ext >&5
47759 ac_cv_struct_tm=sys/time.h
47761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47763 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
47764 echo "${ECHO_T}$ac_cv_struct_tm" >&6
47765 if test $ac_cv_struct_tm = sys/time.h; then
47767 cat >>confdefs.h <<\_ACEOF
47768 #define TM_IN_SYS_TIME 1
47773 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
47774 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
47775 if test "${ac_cv_member_struct_stat_st_blksize+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 $ac_includes_default
47788 static struct stat ac_aggr;
47789 if (ac_aggr.st_blksize)
47795 rm -f conftest.$ac_objext
47796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47797 (eval $ac_compile) 2>conftest.er1
47799 grep -v '^ *+' conftest.er1 >conftest.err
47801 cat conftest.err >&5
47802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47803 (exit $ac_status); } &&
47804 { ac_try='test -z "$ac_c_werror_flag"
47805 || test ! -s conftest.err'
47806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47807 (eval $ac_try) 2>&5
47809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47810 (exit $ac_status); }; } &&
47811 { ac_try='test -s conftest.$ac_objext'
47812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47813 (eval $ac_try) 2>&5
47815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47816 (exit $ac_status); }; }; then
47817 ac_cv_member_struct_stat_st_blksize=yes
47819 echo "$as_me: failed program was:" >&5
47820 sed 's/^/| /' conftest.$ac_ext >&5
47822 cat >conftest.$ac_ext <<_ACEOF
47825 cat confdefs.h >>conftest.$ac_ext
47826 cat >>conftest.$ac_ext <<_ACEOF
47827 /* end confdefs.h. */
47828 $ac_includes_default
47832 static struct stat ac_aggr;
47833 if (sizeof ac_aggr.st_blksize)
47839 rm -f conftest.$ac_objext
47840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47841 (eval $ac_compile) 2>conftest.er1
47843 grep -v '^ *+' conftest.er1 >conftest.err
47845 cat conftest.err >&5
47846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47847 (exit $ac_status); } &&
47848 { ac_try='test -z "$ac_c_werror_flag"
47849 || test ! -s conftest.err'
47850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47851 (eval $ac_try) 2>&5
47853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47854 (exit $ac_status); }; } &&
47855 { ac_try='test -s conftest.$ac_objext'
47856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47857 (eval $ac_try) 2>&5
47859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47860 (exit $ac_status); }; }; then
47861 ac_cv_member_struct_stat_st_blksize=yes
47863 echo "$as_me: failed program was:" >&5
47864 sed 's/^/| /' conftest.$ac_ext >&5
47866 ac_cv_member_struct_stat_st_blksize=no
47868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47872 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
47873 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
47874 if test $ac_cv_member_struct_stat_st_blksize = yes; then
47876 cat >>confdefs.h <<_ACEOF
47877 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
47883 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
47884 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
47885 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
47886 echo $ECHO_N "(cached) $ECHO_C" >&6
47888 cat >conftest.$ac_ext <<_ACEOF
47891 cat confdefs.h >>conftest.$ac_ext
47892 cat >>conftest.$ac_ext <<_ACEOF
47893 /* end confdefs.h. */
47899 static struct passwd ac_aggr;
47900 if (ac_aggr.pw_gecos)
47906 rm -f conftest.$ac_objext
47907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47908 (eval $ac_compile) 2>conftest.er1
47910 grep -v '^ *+' conftest.er1 >conftest.err
47912 cat conftest.err >&5
47913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47914 (exit $ac_status); } &&
47915 { ac_try='test -z "$ac_c_werror_flag"
47916 || test ! -s conftest.err'
47917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47918 (eval $ac_try) 2>&5
47920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47921 (exit $ac_status); }; } &&
47922 { ac_try='test -s conftest.$ac_objext'
47923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47924 (eval $ac_try) 2>&5
47926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47927 (exit $ac_status); }; }; then
47928 ac_cv_member_struct_passwd_pw_gecos=yes
47930 echo "$as_me: failed program was:" >&5
47931 sed 's/^/| /' conftest.$ac_ext >&5
47933 cat >conftest.$ac_ext <<_ACEOF
47936 cat confdefs.h >>conftest.$ac_ext
47937 cat >>conftest.$ac_ext <<_ACEOF
47938 /* end confdefs.h. */
47944 static struct passwd ac_aggr;
47945 if (sizeof ac_aggr.pw_gecos)
47951 rm -f conftest.$ac_objext
47952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47953 (eval $ac_compile) 2>conftest.er1
47955 grep -v '^ *+' conftest.er1 >conftest.err
47957 cat conftest.err >&5
47958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47959 (exit $ac_status); } &&
47960 { ac_try='test -z "$ac_c_werror_flag"
47961 || test ! -s conftest.err'
47962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47963 (eval $ac_try) 2>&5
47965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47966 (exit $ac_status); }; } &&
47967 { ac_try='test -s conftest.$ac_objext'
47968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47969 (eval $ac_try) 2>&5
47971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47972 (exit $ac_status); }; }; then
47973 ac_cv_member_struct_passwd_pw_gecos=yes
47975 echo "$as_me: failed program was:" >&5
47976 sed 's/^/| /' conftest.$ac_ext >&5
47978 ac_cv_member_struct_passwd_pw_gecos=no
47980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47984 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
47985 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
47986 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
47988 cat >>confdefs.h <<_ACEOF
47989 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
47995 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
47996 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
47997 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
47998 echo $ECHO_N "(cached) $ECHO_C" >&6
48000 cat >conftest.$ac_ext <<_ACEOF
48003 cat confdefs.h >>conftest.$ac_ext
48004 cat >>conftest.$ac_ext <<_ACEOF
48005 /* end confdefs.h. */
48011 static struct passwd ac_aggr;
48012 if (ac_aggr.pw_passwd)
48018 rm -f conftest.$ac_objext
48019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48020 (eval $ac_compile) 2>conftest.er1
48022 grep -v '^ *+' conftest.er1 >conftest.err
48024 cat conftest.err >&5
48025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48026 (exit $ac_status); } &&
48027 { ac_try='test -z "$ac_c_werror_flag"
48028 || test ! -s conftest.err'
48029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48030 (eval $ac_try) 2>&5
48032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48033 (exit $ac_status); }; } &&
48034 { ac_try='test -s conftest.$ac_objext'
48035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48036 (eval $ac_try) 2>&5
48038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48039 (exit $ac_status); }; }; then
48040 ac_cv_member_struct_passwd_pw_passwd=yes
48042 echo "$as_me: failed program was:" >&5
48043 sed 's/^/| /' conftest.$ac_ext >&5
48045 cat >conftest.$ac_ext <<_ACEOF
48048 cat confdefs.h >>conftest.$ac_ext
48049 cat >>conftest.$ac_ext <<_ACEOF
48050 /* end confdefs.h. */
48056 static struct passwd ac_aggr;
48057 if (sizeof ac_aggr.pw_passwd)
48063 rm -f conftest.$ac_objext
48064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48065 (eval $ac_compile) 2>conftest.er1
48067 grep -v '^ *+' conftest.er1 >conftest.err
48069 cat conftest.err >&5
48070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48071 (exit $ac_status); } &&
48072 { ac_try='test -z "$ac_c_werror_flag"
48073 || test ! -s conftest.err'
48074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48075 (eval $ac_try) 2>&5
48077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48078 (exit $ac_status); }; } &&
48079 { ac_try='test -s conftest.$ac_objext'
48080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48081 (eval $ac_try) 2>&5
48083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48084 (exit $ac_status); }; }; then
48085 ac_cv_member_struct_passwd_pw_passwd=yes
48087 echo "$as_me: failed program was:" >&5
48088 sed 's/^/| /' conftest.$ac_ext >&5
48090 ac_cv_member_struct_passwd_pw_passwd=no
48092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48096 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
48097 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
48098 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
48100 cat >>confdefs.h <<_ACEOF
48101 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
48108 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
48109 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
48110 if test "${ol_cv_c_upper_lower+set}" = set; then
48111 echo $ECHO_N "(cached) $ECHO_C" >&6
48114 if test "$cross_compiling" = yes; then
48115 ol_cv_c_upper_lower=safe
48117 cat >conftest.$ac_ext <<_ACEOF
48120 cat confdefs.h >>conftest.$ac_ext
48121 cat >>conftest.$ac_ext <<_ACEOF
48122 /* end confdefs.h. */
48127 if ('C' == toupper('C'))
48133 rm -f conftest$ac_exeext
48134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48135 (eval $ac_link) 2>&5
48137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48138 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48140 (eval $ac_try) 2>&5
48142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48143 (exit $ac_status); }; }; then
48144 ol_cv_c_upper_lower=no
48146 echo "$as_me: program exited with status $ac_status" >&5
48147 echo "$as_me: failed program was:" >&5
48148 sed 's/^/| /' conftest.$ac_ext >&5
48150 ( exit $ac_status )
48151 ol_cv_c_upper_lower=yes
48153 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48156 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
48157 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
48158 if test $ol_cv_c_upper_lower != no ; then
48160 cat >>confdefs.h <<\_ACEOF
48161 #define C_UPPER_LOWER 1
48166 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
48167 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
48168 if test "${ac_cv_c_const+set}" = set; then
48169 echo $ECHO_N "(cached) $ECHO_C" >&6
48171 cat >conftest.$ac_ext <<_ACEOF
48174 cat confdefs.h >>conftest.$ac_ext
48175 cat >>conftest.$ac_ext <<_ACEOF
48176 /* end confdefs.h. */
48181 /* FIXME: Include the comments suggested by Paul. */
48182 #ifndef __cplusplus
48183 /* Ultrix mips cc rejects this. */
48184 typedef int charset[2];
48186 /* SunOS 4.1.1 cc rejects this. */
48187 char const *const *ccp;
48189 /* NEC SVR4.0.2 mips cc rejects this. */
48190 struct point {int x, y;};
48191 static struct point const zero = {0,0};
48192 /* AIX XL C 1.02.0.0 rejects this.
48193 It does not let you subtract one const X* pointer from another in
48194 an arm of an if-expression whose if-part is not a constant
48196 const char *g = "string";
48197 ccp = &g + (g ? g-g : 0);
48198 /* HPUX 7.0 cc rejects these. */
48201 ccp = (char const *const *) p;
48202 { /* SCO 3.2v4 cc rejects this. */
48204 char const *s = 0 ? (char *) 0 : (char const *) 0;
48208 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
48209 int x[] = {25, 17};
48210 const int *foo = &x[0];
48213 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
48214 typedef const int *iptr;
48218 { /* AIX XL C 1.02.0.0 rejects this saying
48219 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
48220 struct s { int j; const int *ap[3]; };
48221 struct s *b; b->j = 5;
48223 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
48224 const int foo = 10;
48232 rm -f conftest.$ac_objext
48233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48234 (eval $ac_compile) 2>conftest.er1
48236 grep -v '^ *+' conftest.er1 >conftest.err
48238 cat conftest.err >&5
48239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48240 (exit $ac_status); } &&
48241 { ac_try='test -z "$ac_c_werror_flag"
48242 || test ! -s conftest.err'
48243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48244 (eval $ac_try) 2>&5
48246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48247 (exit $ac_status); }; } &&
48248 { ac_try='test -s conftest.$ac_objext'
48249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48250 (eval $ac_try) 2>&5
48252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48253 (exit $ac_status); }; }; then
48256 echo "$as_me: failed program was:" >&5
48257 sed 's/^/| /' conftest.$ac_ext >&5
48261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48263 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
48264 echo "${ECHO_T}$ac_cv_c_const" >&6
48265 if test $ac_cv_c_const = no; then
48267 cat >>confdefs.h <<\_ACEOF
48273 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
48274 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
48275 if test "${ol_cv_c_volatile+set}" = set; then
48276 echo $ECHO_N "(cached) $ECHO_C" >&6
48278 cat >conftest.$ac_ext <<_ACEOF
48281 cat confdefs.h >>conftest.$ac_ext
48282 cat >>conftest.$ac_ext <<_ACEOF
48283 /* end confdefs.h. */
48288 volatile int a; int * volatile b = x ? &y : &z;
48289 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
48295 rm -f conftest.$ac_objext
48296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48297 (eval $ac_compile) 2>conftest.er1
48299 grep -v '^ *+' conftest.er1 >conftest.err
48301 cat conftest.err >&5
48302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48303 (exit $ac_status); } &&
48304 { ac_try='test -z "$ac_c_werror_flag"
48305 || test ! -s conftest.err'
48306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48307 (eval $ac_try) 2>&5
48309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48310 (exit $ac_status); }; } &&
48311 { ac_try='test -s conftest.$ac_objext'
48312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48313 (eval $ac_try) 2>&5
48315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48316 (exit $ac_status); }; }; then
48317 ol_cv_c_volatile=yes
48319 echo "$as_me: failed program was:" >&5
48320 sed 's/^/| /' conftest.$ac_ext >&5
48322 ol_cv_c_volatile=no
48324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48326 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
48327 echo "${ECHO_T}$ol_cv_c_volatile" >&6
48328 if test $ol_cv_c_volatile = yes; then
48332 cat >>confdefs.h <<\_ACEOF
48339 if test $cross_compiling = yes ; then
48340 { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
48341 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
48343 cat >>confdefs.h <<\_ACEOF
48344 #define CROSS_COMPILING 1
48348 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
48349 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
48350 if test "${ac_cv_c_bigendian+set}" = set; then
48351 echo $ECHO_N "(cached) $ECHO_C" >&6
48353 # See if sys/param.h defines the BYTE_ORDER macro.
48354 cat >conftest.$ac_ext <<_ACEOF
48357 cat confdefs.h >>conftest.$ac_ext
48358 cat >>conftest.$ac_ext <<_ACEOF
48359 /* end confdefs.h. */
48360 #include <sys/types.h>
48361 #include <sys/param.h>
48366 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
48367 bogus endian macros
48374 rm -f conftest.$ac_objext
48375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48376 (eval $ac_compile) 2>conftest.er1
48378 grep -v '^ *+' conftest.er1 >conftest.err
48380 cat conftest.err >&5
48381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48382 (exit $ac_status); } &&
48383 { ac_try='test -z "$ac_c_werror_flag"
48384 || test ! -s conftest.err'
48385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48386 (eval $ac_try) 2>&5
48388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48389 (exit $ac_status); }; } &&
48390 { ac_try='test -s conftest.$ac_objext'
48391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48392 (eval $ac_try) 2>&5
48394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48395 (exit $ac_status); }; }; then
48396 # It does; now see whether it defined to BIG_ENDIAN or not.
48397 cat >conftest.$ac_ext <<_ACEOF
48400 cat confdefs.h >>conftest.$ac_ext
48401 cat >>conftest.$ac_ext <<_ACEOF
48402 /* end confdefs.h. */
48403 #include <sys/types.h>
48404 #include <sys/param.h>
48409 #if BYTE_ORDER != BIG_ENDIAN
48417 rm -f conftest.$ac_objext
48418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48419 (eval $ac_compile) 2>conftest.er1
48421 grep -v '^ *+' conftest.er1 >conftest.err
48423 cat conftest.err >&5
48424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48425 (exit $ac_status); } &&
48426 { ac_try='test -z "$ac_c_werror_flag"
48427 || test ! -s conftest.err'
48428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48429 (eval $ac_try) 2>&5
48431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48432 (exit $ac_status); }; } &&
48433 { ac_try='test -s conftest.$ac_objext'
48434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48435 (eval $ac_try) 2>&5
48437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48438 (exit $ac_status); }; }; then
48439 ac_cv_c_bigendian=yes
48441 echo "$as_me: failed program was:" >&5
48442 sed 's/^/| /' conftest.$ac_ext >&5
48444 ac_cv_c_bigendian=no
48446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48448 echo "$as_me: failed program was:" >&5
48449 sed 's/^/| /' conftest.$ac_ext >&5
48451 # It does not; compile a test program.
48452 if test "$cross_compiling" = yes; then
48453 # try to guess the endianness by grepping values into an object file
48454 ac_cv_c_bigendian=unknown
48455 cat >conftest.$ac_ext <<_ACEOF
48458 cat confdefs.h >>conftest.$ac_ext
48459 cat >>conftest.$ac_ext <<_ACEOF
48460 /* end confdefs.h. */
48461 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
48462 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
48463 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
48464 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
48465 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
48466 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
48470 _ascii (); _ebcdic ();
48475 rm -f conftest.$ac_objext
48476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48477 (eval $ac_compile) 2>conftest.er1
48479 grep -v '^ *+' conftest.er1 >conftest.err
48481 cat conftest.err >&5
48482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48483 (exit $ac_status); } &&
48484 { ac_try='test -z "$ac_c_werror_flag"
48485 || test ! -s conftest.err'
48486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48487 (eval $ac_try) 2>&5
48489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48490 (exit $ac_status); }; } &&
48491 { ac_try='test -s conftest.$ac_objext'
48492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48493 (eval $ac_try) 2>&5
48495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48496 (exit $ac_status); }; }; then
48497 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
48498 ac_cv_c_bigendian=yes
48500 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
48501 if test "$ac_cv_c_bigendian" = unknown; then
48502 ac_cv_c_bigendian=no
48504 # finding both strings is unlikely to happen, but who knows?
48505 ac_cv_c_bigendian=unknown
48509 echo "$as_me: failed program was:" >&5
48510 sed 's/^/| /' conftest.$ac_ext >&5
48513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48515 cat >conftest.$ac_ext <<_ACEOF
48518 cat confdefs.h >>conftest.$ac_ext
48519 cat >>conftest.$ac_ext <<_ACEOF
48520 /* end confdefs.h. */
48524 /* Are we little or big endian? From Harbison&Steele. */
48528 char c[sizeof (long)];
48531 exit (u.c[sizeof (long) - 1] == 1);
48534 rm -f conftest$ac_exeext
48535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48536 (eval $ac_link) 2>&5
48538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48539 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48541 (eval $ac_try) 2>&5
48543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48544 (exit $ac_status); }; }; then
48545 ac_cv_c_bigendian=no
48547 echo "$as_me: program exited with status $ac_status" >&5
48548 echo "$as_me: failed program was:" >&5
48549 sed 's/^/| /' conftest.$ac_ext >&5
48551 ( exit $ac_status )
48552 ac_cv_c_bigendian=yes
48554 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48559 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
48560 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
48561 case $ac_cv_c_bigendian in
48564 cat >>confdefs.h <<\_ACEOF
48565 #define WORDS_BIGENDIAN 1
48571 { { echo "$as_me:$LINENO: error: unknown endianness
48572 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
48573 echo "$as_me: error: unknown endianness
48574 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
48575 { (exit 1); exit 1; }; } ;;
48580 echo "$as_me:$LINENO: checking for short" >&5
48581 echo $ECHO_N "checking for short... $ECHO_C" >&6
48582 if test "${ac_cv_type_short+set}" = set; then
48583 echo $ECHO_N "(cached) $ECHO_C" >&6
48585 cat >conftest.$ac_ext <<_ACEOF
48588 cat confdefs.h >>conftest.$ac_ext
48589 cat >>conftest.$ac_ext <<_ACEOF
48590 /* end confdefs.h. */
48591 $ac_includes_default
48597 if (sizeof (short))
48603 rm -f conftest.$ac_objext
48604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48605 (eval $ac_compile) 2>conftest.er1
48607 grep -v '^ *+' conftest.er1 >conftest.err
48609 cat conftest.err >&5
48610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48611 (exit $ac_status); } &&
48612 { ac_try='test -z "$ac_c_werror_flag"
48613 || test ! -s conftest.err'
48614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48615 (eval $ac_try) 2>&5
48617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48618 (exit $ac_status); }; } &&
48619 { ac_try='test -s conftest.$ac_objext'
48620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48621 (eval $ac_try) 2>&5
48623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48624 (exit $ac_status); }; }; then
48625 ac_cv_type_short=yes
48627 echo "$as_me: failed program was:" >&5
48628 sed 's/^/| /' conftest.$ac_ext >&5
48630 ac_cv_type_short=no
48632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48634 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
48635 echo "${ECHO_T}$ac_cv_type_short" >&6
48637 echo "$as_me:$LINENO: checking size of short" >&5
48638 echo $ECHO_N "checking size of short... $ECHO_C" >&6
48639 if test "${ac_cv_sizeof_short+set}" = set; then
48640 echo $ECHO_N "(cached) $ECHO_C" >&6
48642 if test "$ac_cv_type_short" = yes; then
48643 # The cast to unsigned long works around a bug in the HP C Compiler
48644 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
48645 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
48646 # This bug is HP SR number 8606223364.
48647 if test "$cross_compiling" = yes; then
48648 # Depending upon the size, compute the lo and hi bounds.
48649 cat >conftest.$ac_ext <<_ACEOF
48652 cat confdefs.h >>conftest.$ac_ext
48653 cat >>conftest.$ac_ext <<_ACEOF
48654 /* end confdefs.h. */
48655 $ac_includes_default
48659 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
48666 rm -f conftest.$ac_objext
48667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48668 (eval $ac_compile) 2>conftest.er1
48670 grep -v '^ *+' conftest.er1 >conftest.err
48672 cat conftest.err >&5
48673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48674 (exit $ac_status); } &&
48675 { ac_try='test -z "$ac_c_werror_flag"
48676 || test ! -s conftest.err'
48677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48678 (eval $ac_try) 2>&5
48680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48681 (exit $ac_status); }; } &&
48682 { ac_try='test -s conftest.$ac_objext'
48683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48684 (eval $ac_try) 2>&5
48686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48687 (exit $ac_status); }; }; then
48690 cat >conftest.$ac_ext <<_ACEOF
48693 cat confdefs.h >>conftest.$ac_ext
48694 cat >>conftest.$ac_ext <<_ACEOF
48695 /* end confdefs.h. */
48696 $ac_includes_default
48700 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
48707 rm -f conftest.$ac_objext
48708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48709 (eval $ac_compile) 2>conftest.er1
48711 grep -v '^ *+' conftest.er1 >conftest.err
48713 cat conftest.err >&5
48714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48715 (exit $ac_status); } &&
48716 { ac_try='test -z "$ac_c_werror_flag"
48717 || test ! -s conftest.err'
48718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48719 (eval $ac_try) 2>&5
48721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48722 (exit $ac_status); }; } &&
48723 { ac_try='test -s conftest.$ac_objext'
48724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48725 (eval $ac_try) 2>&5
48727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48728 (exit $ac_status); }; }; then
48729 ac_hi=$ac_mid; break
48731 echo "$as_me: failed program was:" >&5
48732 sed 's/^/| /' conftest.$ac_ext >&5
48734 ac_lo=`expr $ac_mid + 1`
48735 if test $ac_lo -le $ac_mid; then
48739 ac_mid=`expr 2 '*' $ac_mid + 1`
48741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48744 echo "$as_me: failed program was:" >&5
48745 sed 's/^/| /' conftest.$ac_ext >&5
48747 cat >conftest.$ac_ext <<_ACEOF
48750 cat confdefs.h >>conftest.$ac_ext
48751 cat >>conftest.$ac_ext <<_ACEOF
48752 /* end confdefs.h. */
48753 $ac_includes_default
48757 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
48764 rm -f conftest.$ac_objext
48765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48766 (eval $ac_compile) 2>conftest.er1
48768 grep -v '^ *+' conftest.er1 >conftest.err
48770 cat conftest.err >&5
48771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48772 (exit $ac_status); } &&
48773 { ac_try='test -z "$ac_c_werror_flag"
48774 || test ! -s conftest.err'
48775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48776 (eval $ac_try) 2>&5
48778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48779 (exit $ac_status); }; } &&
48780 { ac_try='test -s conftest.$ac_objext'
48781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48782 (eval $ac_try) 2>&5
48784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48785 (exit $ac_status); }; }; then
48788 cat >conftest.$ac_ext <<_ACEOF
48791 cat confdefs.h >>conftest.$ac_ext
48792 cat >>conftest.$ac_ext <<_ACEOF
48793 /* end confdefs.h. */
48794 $ac_includes_default
48798 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
48805 rm -f conftest.$ac_objext
48806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48807 (eval $ac_compile) 2>conftest.er1
48809 grep -v '^ *+' conftest.er1 >conftest.err
48811 cat conftest.err >&5
48812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48813 (exit $ac_status); } &&
48814 { ac_try='test -z "$ac_c_werror_flag"
48815 || test ! -s conftest.err'
48816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48817 (eval $ac_try) 2>&5
48819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48820 (exit $ac_status); }; } &&
48821 { ac_try='test -s conftest.$ac_objext'
48822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48823 (eval $ac_try) 2>&5
48825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48826 (exit $ac_status); }; }; then
48827 ac_lo=$ac_mid; break
48829 echo "$as_me: failed program was:" >&5
48830 sed 's/^/| /' conftest.$ac_ext >&5
48832 ac_hi=`expr '(' $ac_mid ')' - 1`
48833 if test $ac_mid -le $ac_hi; then
48837 ac_mid=`expr 2 '*' $ac_mid`
48839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48842 echo "$as_me: failed program was:" >&5
48843 sed 's/^/| /' conftest.$ac_ext >&5
48847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48850 # Binary search between lo and hi bounds.
48851 while test "x$ac_lo" != "x$ac_hi"; do
48852 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
48853 cat >conftest.$ac_ext <<_ACEOF
48856 cat confdefs.h >>conftest.$ac_ext
48857 cat >>conftest.$ac_ext <<_ACEOF
48858 /* end confdefs.h. */
48859 $ac_includes_default
48863 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
48870 rm -f conftest.$ac_objext
48871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48872 (eval $ac_compile) 2>conftest.er1
48874 grep -v '^ *+' conftest.er1 >conftest.err
48876 cat conftest.err >&5
48877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48878 (exit $ac_status); } &&
48879 { ac_try='test -z "$ac_c_werror_flag"
48880 || test ! -s conftest.err'
48881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48882 (eval $ac_try) 2>&5
48884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48885 (exit $ac_status); }; } &&
48886 { ac_try='test -s conftest.$ac_objext'
48887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48888 (eval $ac_try) 2>&5
48890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48891 (exit $ac_status); }; }; then
48894 echo "$as_me: failed program was:" >&5
48895 sed 's/^/| /' conftest.$ac_ext >&5
48897 ac_lo=`expr '(' $ac_mid ')' + 1`
48899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48902 ?*) ac_cv_sizeof_short=$ac_lo;;
48903 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
48904 See \`config.log' for more details." >&5
48905 echo "$as_me: error: cannot compute sizeof (short), 77
48906 See \`config.log' for more details." >&2;}
48907 { (exit 1); exit 1; }; } ;;
48910 if test "$cross_compiling" = yes; then
48911 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
48912 See \`config.log' for more details." >&5
48913 echo "$as_me: error: cannot run test program while cross compiling
48914 See \`config.log' for more details." >&2;}
48915 { (exit 1); exit 1; }; }
48917 cat >conftest.$ac_ext <<_ACEOF
48920 cat confdefs.h >>conftest.$ac_ext
48921 cat >>conftest.$ac_ext <<_ACEOF
48922 /* end confdefs.h. */
48923 $ac_includes_default
48924 long longval () { return (long) (sizeof (short)); }
48925 unsigned long ulongval () { return (long) (sizeof (short)); }
48927 #include <stdlib.h>
48932 FILE *f = fopen ("conftest.val", "w");
48935 if (((long) (sizeof (short))) < 0)
48937 long i = longval ();
48938 if (i != ((long) (sizeof (short))))
48940 fprintf (f, "%ld\n", i);
48944 unsigned long i = ulongval ();
48945 if (i != ((long) (sizeof (short))))
48947 fprintf (f, "%lu\n", i);
48949 exit (ferror (f) || fclose (f) != 0);
48955 rm -f conftest$ac_exeext
48956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48957 (eval $ac_link) 2>&5
48959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48960 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48962 (eval $ac_try) 2>&5
48964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48965 (exit $ac_status); }; }; then
48966 ac_cv_sizeof_short=`cat conftest.val`
48968 echo "$as_me: program exited with status $ac_status" >&5
48969 echo "$as_me: failed program was:" >&5
48970 sed 's/^/| /' conftest.$ac_ext >&5
48972 ( exit $ac_status )
48973 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
48974 See \`config.log' for more details." >&5
48975 echo "$as_me: error: cannot compute sizeof (short), 77
48976 See \`config.log' for more details." >&2;}
48977 { (exit 1); exit 1; }; }
48979 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48984 ac_cv_sizeof_short=0
48987 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
48988 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
48989 cat >>confdefs.h <<_ACEOF
48990 #define SIZEOF_SHORT $ac_cv_sizeof_short
48994 echo "$as_me:$LINENO: checking for int" >&5
48995 echo $ECHO_N "checking for int... $ECHO_C" >&6
48996 if test "${ac_cv_type_int+set}" = set; then
48997 echo $ECHO_N "(cached) $ECHO_C" >&6
48999 cat >conftest.$ac_ext <<_ACEOF
49002 cat confdefs.h >>conftest.$ac_ext
49003 cat >>conftest.$ac_ext <<_ACEOF
49004 /* end confdefs.h. */
49005 $ac_includes_default
49017 rm -f conftest.$ac_objext
49018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49019 (eval $ac_compile) 2>conftest.er1
49021 grep -v '^ *+' conftest.er1 >conftest.err
49023 cat conftest.err >&5
49024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49025 (exit $ac_status); } &&
49026 { ac_try='test -z "$ac_c_werror_flag"
49027 || test ! -s conftest.err'
49028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49029 (eval $ac_try) 2>&5
49031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49032 (exit $ac_status); }; } &&
49033 { ac_try='test -s conftest.$ac_objext'
49034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49035 (eval $ac_try) 2>&5
49037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49038 (exit $ac_status); }; }; then
49041 echo "$as_me: failed program was:" >&5
49042 sed 's/^/| /' conftest.$ac_ext >&5
49046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49048 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
49049 echo "${ECHO_T}$ac_cv_type_int" >&6
49051 echo "$as_me:$LINENO: checking size of int" >&5
49052 echo $ECHO_N "checking size of int... $ECHO_C" >&6
49053 if test "${ac_cv_sizeof_int+set}" = set; then
49054 echo $ECHO_N "(cached) $ECHO_C" >&6
49056 if test "$ac_cv_type_int" = yes; then
49057 # The cast to unsigned long works around a bug in the HP C Compiler
49058 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
49059 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
49060 # This bug is HP SR number 8606223364.
49061 if test "$cross_compiling" = yes; then
49062 # Depending upon the size, compute the lo and hi bounds.
49063 cat >conftest.$ac_ext <<_ACEOF
49066 cat confdefs.h >>conftest.$ac_ext
49067 cat >>conftest.$ac_ext <<_ACEOF
49068 /* end confdefs.h. */
49069 $ac_includes_default
49073 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
49080 rm -f conftest.$ac_objext
49081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49082 (eval $ac_compile) 2>conftest.er1
49084 grep -v '^ *+' conftest.er1 >conftest.err
49086 cat conftest.err >&5
49087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49088 (exit $ac_status); } &&
49089 { ac_try='test -z "$ac_c_werror_flag"
49090 || test ! -s conftest.err'
49091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49092 (eval $ac_try) 2>&5
49094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49095 (exit $ac_status); }; } &&
49096 { ac_try='test -s conftest.$ac_objext'
49097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49098 (eval $ac_try) 2>&5
49100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49101 (exit $ac_status); }; }; then
49104 cat >conftest.$ac_ext <<_ACEOF
49107 cat confdefs.h >>conftest.$ac_ext
49108 cat >>conftest.$ac_ext <<_ACEOF
49109 /* end confdefs.h. */
49110 $ac_includes_default
49114 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
49121 rm -f conftest.$ac_objext
49122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49123 (eval $ac_compile) 2>conftest.er1
49125 grep -v '^ *+' conftest.er1 >conftest.err
49127 cat conftest.err >&5
49128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49129 (exit $ac_status); } &&
49130 { ac_try='test -z "$ac_c_werror_flag"
49131 || test ! -s conftest.err'
49132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49133 (eval $ac_try) 2>&5
49135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49136 (exit $ac_status); }; } &&
49137 { ac_try='test -s conftest.$ac_objext'
49138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49139 (eval $ac_try) 2>&5
49141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49142 (exit $ac_status); }; }; then
49143 ac_hi=$ac_mid; break
49145 echo "$as_me: failed program was:" >&5
49146 sed 's/^/| /' conftest.$ac_ext >&5
49148 ac_lo=`expr $ac_mid + 1`
49149 if test $ac_lo -le $ac_mid; then
49153 ac_mid=`expr 2 '*' $ac_mid + 1`
49155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49158 echo "$as_me: failed program was:" >&5
49159 sed 's/^/| /' conftest.$ac_ext >&5
49161 cat >conftest.$ac_ext <<_ACEOF
49164 cat confdefs.h >>conftest.$ac_ext
49165 cat >>conftest.$ac_ext <<_ACEOF
49166 /* end confdefs.h. */
49167 $ac_includes_default
49171 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
49178 rm -f conftest.$ac_objext
49179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49180 (eval $ac_compile) 2>conftest.er1
49182 grep -v '^ *+' conftest.er1 >conftest.err
49184 cat conftest.err >&5
49185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49186 (exit $ac_status); } &&
49187 { ac_try='test -z "$ac_c_werror_flag"
49188 || test ! -s conftest.err'
49189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49190 (eval $ac_try) 2>&5
49192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49193 (exit $ac_status); }; } &&
49194 { ac_try='test -s conftest.$ac_objext'
49195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49196 (eval $ac_try) 2>&5
49198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49199 (exit $ac_status); }; }; then
49202 cat >conftest.$ac_ext <<_ACEOF
49205 cat confdefs.h >>conftest.$ac_ext
49206 cat >>conftest.$ac_ext <<_ACEOF
49207 /* end confdefs.h. */
49208 $ac_includes_default
49212 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
49219 rm -f conftest.$ac_objext
49220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49221 (eval $ac_compile) 2>conftest.er1
49223 grep -v '^ *+' conftest.er1 >conftest.err
49225 cat conftest.err >&5
49226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49227 (exit $ac_status); } &&
49228 { ac_try='test -z "$ac_c_werror_flag"
49229 || test ! -s conftest.err'
49230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49231 (eval $ac_try) 2>&5
49233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49234 (exit $ac_status); }; } &&
49235 { ac_try='test -s conftest.$ac_objext'
49236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49237 (eval $ac_try) 2>&5
49239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49240 (exit $ac_status); }; }; then
49241 ac_lo=$ac_mid; break
49243 echo "$as_me: failed program was:" >&5
49244 sed 's/^/| /' conftest.$ac_ext >&5
49246 ac_hi=`expr '(' $ac_mid ')' - 1`
49247 if test $ac_mid -le $ac_hi; then
49251 ac_mid=`expr 2 '*' $ac_mid`
49253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49256 echo "$as_me: failed program was:" >&5
49257 sed 's/^/| /' conftest.$ac_ext >&5
49261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49264 # Binary search between lo and hi bounds.
49265 while test "x$ac_lo" != "x$ac_hi"; do
49266 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
49267 cat >conftest.$ac_ext <<_ACEOF
49270 cat confdefs.h >>conftest.$ac_ext
49271 cat >>conftest.$ac_ext <<_ACEOF
49272 /* end confdefs.h. */
49273 $ac_includes_default
49277 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
49284 rm -f conftest.$ac_objext
49285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49286 (eval $ac_compile) 2>conftest.er1
49288 grep -v '^ *+' conftest.er1 >conftest.err
49290 cat conftest.err >&5
49291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49292 (exit $ac_status); } &&
49293 { ac_try='test -z "$ac_c_werror_flag"
49294 || test ! -s conftest.err'
49295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49296 (eval $ac_try) 2>&5
49298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49299 (exit $ac_status); }; } &&
49300 { ac_try='test -s conftest.$ac_objext'
49301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49302 (eval $ac_try) 2>&5
49304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49305 (exit $ac_status); }; }; then
49308 echo "$as_me: failed program was:" >&5
49309 sed 's/^/| /' conftest.$ac_ext >&5
49311 ac_lo=`expr '(' $ac_mid ')' + 1`
49313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49316 ?*) ac_cv_sizeof_int=$ac_lo;;
49317 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
49318 See \`config.log' for more details." >&5
49319 echo "$as_me: error: cannot compute sizeof (int), 77
49320 See \`config.log' for more details." >&2;}
49321 { (exit 1); exit 1; }; } ;;
49324 if test "$cross_compiling" = yes; then
49325 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
49326 See \`config.log' for more details." >&5
49327 echo "$as_me: error: cannot run test program while cross compiling
49328 See \`config.log' for more details." >&2;}
49329 { (exit 1); exit 1; }; }
49331 cat >conftest.$ac_ext <<_ACEOF
49334 cat confdefs.h >>conftest.$ac_ext
49335 cat >>conftest.$ac_ext <<_ACEOF
49336 /* end confdefs.h. */
49337 $ac_includes_default
49338 long longval () { return (long) (sizeof (int)); }
49339 unsigned long ulongval () { return (long) (sizeof (int)); }
49341 #include <stdlib.h>
49346 FILE *f = fopen ("conftest.val", "w");
49349 if (((long) (sizeof (int))) < 0)
49351 long i = longval ();
49352 if (i != ((long) (sizeof (int))))
49354 fprintf (f, "%ld\n", i);
49358 unsigned long i = ulongval ();
49359 if (i != ((long) (sizeof (int))))
49361 fprintf (f, "%lu\n", i);
49363 exit (ferror (f) || fclose (f) != 0);
49369 rm -f conftest$ac_exeext
49370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49371 (eval $ac_link) 2>&5
49373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49374 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49376 (eval $ac_try) 2>&5
49378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49379 (exit $ac_status); }; }; then
49380 ac_cv_sizeof_int=`cat conftest.val`
49382 echo "$as_me: program exited with status $ac_status" >&5
49383 echo "$as_me: failed program was:" >&5
49384 sed 's/^/| /' conftest.$ac_ext >&5
49386 ( exit $ac_status )
49387 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
49388 See \`config.log' for more details." >&5
49389 echo "$as_me: error: cannot compute sizeof (int), 77
49390 See \`config.log' for more details." >&2;}
49391 { (exit 1); exit 1; }; }
49393 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49401 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
49402 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
49403 cat >>confdefs.h <<_ACEOF
49404 #define SIZEOF_INT $ac_cv_sizeof_int
49408 echo "$as_me:$LINENO: checking for long" >&5
49409 echo $ECHO_N "checking for long... $ECHO_C" >&6
49410 if test "${ac_cv_type_long+set}" = set; then
49411 echo $ECHO_N "(cached) $ECHO_C" >&6
49413 cat >conftest.$ac_ext <<_ACEOF
49416 cat confdefs.h >>conftest.$ac_ext
49417 cat >>conftest.$ac_ext <<_ACEOF
49418 /* end confdefs.h. */
49419 $ac_includes_default
49431 rm -f conftest.$ac_objext
49432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49433 (eval $ac_compile) 2>conftest.er1
49435 grep -v '^ *+' conftest.er1 >conftest.err
49437 cat conftest.err >&5
49438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49439 (exit $ac_status); } &&
49440 { ac_try='test -z "$ac_c_werror_flag"
49441 || test ! -s conftest.err'
49442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49443 (eval $ac_try) 2>&5
49445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49446 (exit $ac_status); }; } &&
49447 { ac_try='test -s conftest.$ac_objext'
49448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49449 (eval $ac_try) 2>&5
49451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49452 (exit $ac_status); }; }; then
49453 ac_cv_type_long=yes
49455 echo "$as_me: failed program was:" >&5
49456 sed 's/^/| /' conftest.$ac_ext >&5
49460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49462 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
49463 echo "${ECHO_T}$ac_cv_type_long" >&6
49465 echo "$as_me:$LINENO: checking size of long" >&5
49466 echo $ECHO_N "checking size of long... $ECHO_C" >&6
49467 if test "${ac_cv_sizeof_long+set}" = set; then
49468 echo $ECHO_N "(cached) $ECHO_C" >&6
49470 if test "$ac_cv_type_long" = yes; then
49471 # The cast to unsigned long works around a bug in the HP C Compiler
49472 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
49473 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
49474 # This bug is HP SR number 8606223364.
49475 if test "$cross_compiling" = yes; then
49476 # Depending upon the size, compute the lo and hi bounds.
49477 cat >conftest.$ac_ext <<_ACEOF
49480 cat confdefs.h >>conftest.$ac_ext
49481 cat >>conftest.$ac_ext <<_ACEOF
49482 /* end confdefs.h. */
49483 $ac_includes_default
49487 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
49494 rm -f conftest.$ac_objext
49495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49496 (eval $ac_compile) 2>conftest.er1
49498 grep -v '^ *+' conftest.er1 >conftest.err
49500 cat conftest.err >&5
49501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49502 (exit $ac_status); } &&
49503 { ac_try='test -z "$ac_c_werror_flag"
49504 || test ! -s conftest.err'
49505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49506 (eval $ac_try) 2>&5
49508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49509 (exit $ac_status); }; } &&
49510 { ac_try='test -s conftest.$ac_objext'
49511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49512 (eval $ac_try) 2>&5
49514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49515 (exit $ac_status); }; }; then
49518 cat >conftest.$ac_ext <<_ACEOF
49521 cat confdefs.h >>conftest.$ac_ext
49522 cat >>conftest.$ac_ext <<_ACEOF
49523 /* end confdefs.h. */
49524 $ac_includes_default
49528 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
49535 rm -f conftest.$ac_objext
49536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49537 (eval $ac_compile) 2>conftest.er1
49539 grep -v '^ *+' conftest.er1 >conftest.err
49541 cat conftest.err >&5
49542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49543 (exit $ac_status); } &&
49544 { ac_try='test -z "$ac_c_werror_flag"
49545 || test ! -s conftest.err'
49546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49547 (eval $ac_try) 2>&5
49549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49550 (exit $ac_status); }; } &&
49551 { ac_try='test -s conftest.$ac_objext'
49552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49553 (eval $ac_try) 2>&5
49555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49556 (exit $ac_status); }; }; then
49557 ac_hi=$ac_mid; break
49559 echo "$as_me: failed program was:" >&5
49560 sed 's/^/| /' conftest.$ac_ext >&5
49562 ac_lo=`expr $ac_mid + 1`
49563 if test $ac_lo -le $ac_mid; then
49567 ac_mid=`expr 2 '*' $ac_mid + 1`
49569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49572 echo "$as_me: failed program was:" >&5
49573 sed 's/^/| /' conftest.$ac_ext >&5
49575 cat >conftest.$ac_ext <<_ACEOF
49578 cat confdefs.h >>conftest.$ac_ext
49579 cat >>conftest.$ac_ext <<_ACEOF
49580 /* end confdefs.h. */
49581 $ac_includes_default
49585 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
49592 rm -f conftest.$ac_objext
49593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49594 (eval $ac_compile) 2>conftest.er1
49596 grep -v '^ *+' conftest.er1 >conftest.err
49598 cat conftest.err >&5
49599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49600 (exit $ac_status); } &&
49601 { ac_try='test -z "$ac_c_werror_flag"
49602 || test ! -s conftest.err'
49603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49604 (eval $ac_try) 2>&5
49606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49607 (exit $ac_status); }; } &&
49608 { ac_try='test -s conftest.$ac_objext'
49609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49610 (eval $ac_try) 2>&5
49612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49613 (exit $ac_status); }; }; then
49616 cat >conftest.$ac_ext <<_ACEOF
49619 cat confdefs.h >>conftest.$ac_ext
49620 cat >>conftest.$ac_ext <<_ACEOF
49621 /* end confdefs.h. */
49622 $ac_includes_default
49626 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
49633 rm -f conftest.$ac_objext
49634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49635 (eval $ac_compile) 2>conftest.er1
49637 grep -v '^ *+' conftest.er1 >conftest.err
49639 cat conftest.err >&5
49640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49641 (exit $ac_status); } &&
49642 { ac_try='test -z "$ac_c_werror_flag"
49643 || test ! -s conftest.err'
49644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49645 (eval $ac_try) 2>&5
49647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49648 (exit $ac_status); }; } &&
49649 { ac_try='test -s conftest.$ac_objext'
49650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49651 (eval $ac_try) 2>&5
49653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49654 (exit $ac_status); }; }; then
49655 ac_lo=$ac_mid; break
49657 echo "$as_me: failed program was:" >&5
49658 sed 's/^/| /' conftest.$ac_ext >&5
49660 ac_hi=`expr '(' $ac_mid ')' - 1`
49661 if test $ac_mid -le $ac_hi; then
49665 ac_mid=`expr 2 '*' $ac_mid`
49667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49670 echo "$as_me: failed program was:" >&5
49671 sed 's/^/| /' conftest.$ac_ext >&5
49675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49678 # Binary search between lo and hi bounds.
49679 while test "x$ac_lo" != "x$ac_hi"; do
49680 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
49681 cat >conftest.$ac_ext <<_ACEOF
49684 cat confdefs.h >>conftest.$ac_ext
49685 cat >>conftest.$ac_ext <<_ACEOF
49686 /* end confdefs.h. */
49687 $ac_includes_default
49691 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
49698 rm -f conftest.$ac_objext
49699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49700 (eval $ac_compile) 2>conftest.er1
49702 grep -v '^ *+' conftest.er1 >conftest.err
49704 cat conftest.err >&5
49705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49706 (exit $ac_status); } &&
49707 { ac_try='test -z "$ac_c_werror_flag"
49708 || test ! -s conftest.err'
49709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49710 (eval $ac_try) 2>&5
49712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49713 (exit $ac_status); }; } &&
49714 { ac_try='test -s conftest.$ac_objext'
49715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49716 (eval $ac_try) 2>&5
49718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49719 (exit $ac_status); }; }; then
49722 echo "$as_me: failed program was:" >&5
49723 sed 's/^/| /' conftest.$ac_ext >&5
49725 ac_lo=`expr '(' $ac_mid ')' + 1`
49727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49730 ?*) ac_cv_sizeof_long=$ac_lo;;
49731 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
49732 See \`config.log' for more details." >&5
49733 echo "$as_me: error: cannot compute sizeof (long), 77
49734 See \`config.log' for more details." >&2;}
49735 { (exit 1); exit 1; }; } ;;
49738 if test "$cross_compiling" = yes; then
49739 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
49740 See \`config.log' for more details." >&5
49741 echo "$as_me: error: cannot run test program while cross compiling
49742 See \`config.log' for more details." >&2;}
49743 { (exit 1); exit 1; }; }
49745 cat >conftest.$ac_ext <<_ACEOF
49748 cat confdefs.h >>conftest.$ac_ext
49749 cat >>conftest.$ac_ext <<_ACEOF
49750 /* end confdefs.h. */
49751 $ac_includes_default
49752 long longval () { return (long) (sizeof (long)); }
49753 unsigned long ulongval () { return (long) (sizeof (long)); }
49755 #include <stdlib.h>
49760 FILE *f = fopen ("conftest.val", "w");
49763 if (((long) (sizeof (long))) < 0)
49765 long i = longval ();
49766 if (i != ((long) (sizeof (long))))
49768 fprintf (f, "%ld\n", i);
49772 unsigned long i = ulongval ();
49773 if (i != ((long) (sizeof (long))))
49775 fprintf (f, "%lu\n", i);
49777 exit (ferror (f) || fclose (f) != 0);
49783 rm -f conftest$ac_exeext
49784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49785 (eval $ac_link) 2>&5
49787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49788 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49790 (eval $ac_try) 2>&5
49792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49793 (exit $ac_status); }; }; then
49794 ac_cv_sizeof_long=`cat conftest.val`
49796 echo "$as_me: program exited with status $ac_status" >&5
49797 echo "$as_me: failed program was:" >&5
49798 sed 's/^/| /' conftest.$ac_ext >&5
49800 ( exit $ac_status )
49801 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
49802 See \`config.log' for more details." >&5
49803 echo "$as_me: error: cannot compute sizeof (long), 77
49804 See \`config.log' for more details." >&2;}
49805 { (exit 1); exit 1; }; }
49807 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49812 ac_cv_sizeof_long=0
49815 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
49816 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
49817 cat >>confdefs.h <<_ACEOF
49818 #define SIZEOF_LONG $ac_cv_sizeof_long
49822 echo "$as_me:$LINENO: checking for wchar_t" >&5
49823 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
49824 if test "${ac_cv_type_wchar_t+set}" = set; then
49825 echo $ECHO_N "(cached) $ECHO_C" >&6
49827 cat >conftest.$ac_ext <<_ACEOF
49830 cat confdefs.h >>conftest.$ac_ext
49831 cat >>conftest.$ac_ext <<_ACEOF
49832 /* end confdefs.h. */
49833 $ac_includes_default
49839 if (sizeof (wchar_t))
49845 rm -f conftest.$ac_objext
49846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49847 (eval $ac_compile) 2>conftest.er1
49849 grep -v '^ *+' conftest.er1 >conftest.err
49851 cat conftest.err >&5
49852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49853 (exit $ac_status); } &&
49854 { ac_try='test -z "$ac_c_werror_flag"
49855 || test ! -s conftest.err'
49856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49857 (eval $ac_try) 2>&5
49859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49860 (exit $ac_status); }; } &&
49861 { ac_try='test -s conftest.$ac_objext'
49862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49863 (eval $ac_try) 2>&5
49865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49866 (exit $ac_status); }; }; then
49867 ac_cv_type_wchar_t=yes
49869 echo "$as_me: failed program was:" >&5
49870 sed 's/^/| /' conftest.$ac_ext >&5
49872 ac_cv_type_wchar_t=no
49874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49876 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
49877 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
49879 echo "$as_me:$LINENO: checking size of wchar_t" >&5
49880 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
49881 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
49882 echo $ECHO_N "(cached) $ECHO_C" >&6
49884 if test "$ac_cv_type_wchar_t" = yes; then
49885 # The cast to unsigned long works around a bug in the HP C Compiler
49886 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
49887 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
49888 # This bug is HP SR number 8606223364.
49889 if test "$cross_compiling" = yes; then
49890 # Depending upon the size, compute the lo and hi bounds.
49891 cat >conftest.$ac_ext <<_ACEOF
49894 cat confdefs.h >>conftest.$ac_ext
49895 cat >>conftest.$ac_ext <<_ACEOF
49896 /* end confdefs.h. */
49897 $ac_includes_default
49901 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
49908 rm -f conftest.$ac_objext
49909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49910 (eval $ac_compile) 2>conftest.er1
49912 grep -v '^ *+' conftest.er1 >conftest.err
49914 cat conftest.err >&5
49915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49916 (exit $ac_status); } &&
49917 { ac_try='test -z "$ac_c_werror_flag"
49918 || test ! -s conftest.err'
49919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49920 (eval $ac_try) 2>&5
49922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49923 (exit $ac_status); }; } &&
49924 { ac_try='test -s conftest.$ac_objext'
49925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49926 (eval $ac_try) 2>&5
49928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49929 (exit $ac_status); }; }; then
49932 cat >conftest.$ac_ext <<_ACEOF
49935 cat confdefs.h >>conftest.$ac_ext
49936 cat >>conftest.$ac_ext <<_ACEOF
49937 /* end confdefs.h. */
49938 $ac_includes_default
49942 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
49949 rm -f conftest.$ac_objext
49950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49951 (eval $ac_compile) 2>conftest.er1
49953 grep -v '^ *+' conftest.er1 >conftest.err
49955 cat conftest.err >&5
49956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49957 (exit $ac_status); } &&
49958 { ac_try='test -z "$ac_c_werror_flag"
49959 || test ! -s conftest.err'
49960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49961 (eval $ac_try) 2>&5
49963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49964 (exit $ac_status); }; } &&
49965 { ac_try='test -s conftest.$ac_objext'
49966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49967 (eval $ac_try) 2>&5
49969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49970 (exit $ac_status); }; }; then
49971 ac_hi=$ac_mid; break
49973 echo "$as_me: failed program was:" >&5
49974 sed 's/^/| /' conftest.$ac_ext >&5
49976 ac_lo=`expr $ac_mid + 1`
49977 if test $ac_lo -le $ac_mid; then
49981 ac_mid=`expr 2 '*' $ac_mid + 1`
49983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49986 echo "$as_me: failed program was:" >&5
49987 sed 's/^/| /' conftest.$ac_ext >&5
49989 cat >conftest.$ac_ext <<_ACEOF
49992 cat confdefs.h >>conftest.$ac_ext
49993 cat >>conftest.$ac_ext <<_ACEOF
49994 /* end confdefs.h. */
49995 $ac_includes_default
49999 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
50006 rm -f conftest.$ac_objext
50007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50008 (eval $ac_compile) 2>conftest.er1
50010 grep -v '^ *+' conftest.er1 >conftest.err
50012 cat conftest.err >&5
50013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50014 (exit $ac_status); } &&
50015 { ac_try='test -z "$ac_c_werror_flag"
50016 || test ! -s conftest.err'
50017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50018 (eval $ac_try) 2>&5
50020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50021 (exit $ac_status); }; } &&
50022 { ac_try='test -s conftest.$ac_objext'
50023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50024 (eval $ac_try) 2>&5
50026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50027 (exit $ac_status); }; }; then
50030 cat >conftest.$ac_ext <<_ACEOF
50033 cat confdefs.h >>conftest.$ac_ext
50034 cat >>conftest.$ac_ext <<_ACEOF
50035 /* end confdefs.h. */
50036 $ac_includes_default
50040 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
50047 rm -f conftest.$ac_objext
50048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50049 (eval $ac_compile) 2>conftest.er1
50051 grep -v '^ *+' conftest.er1 >conftest.err
50053 cat conftest.err >&5
50054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50055 (exit $ac_status); } &&
50056 { ac_try='test -z "$ac_c_werror_flag"
50057 || test ! -s conftest.err'
50058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50059 (eval $ac_try) 2>&5
50061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50062 (exit $ac_status); }; } &&
50063 { ac_try='test -s conftest.$ac_objext'
50064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50065 (eval $ac_try) 2>&5
50067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50068 (exit $ac_status); }; }; then
50069 ac_lo=$ac_mid; break
50071 echo "$as_me: failed program was:" >&5
50072 sed 's/^/| /' conftest.$ac_ext >&5
50074 ac_hi=`expr '(' $ac_mid ')' - 1`
50075 if test $ac_mid -le $ac_hi; then
50079 ac_mid=`expr 2 '*' $ac_mid`
50081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50084 echo "$as_me: failed program was:" >&5
50085 sed 's/^/| /' conftest.$ac_ext >&5
50089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50092 # Binary search between lo and hi bounds.
50093 while test "x$ac_lo" != "x$ac_hi"; do
50094 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
50095 cat >conftest.$ac_ext <<_ACEOF
50098 cat confdefs.h >>conftest.$ac_ext
50099 cat >>conftest.$ac_ext <<_ACEOF
50100 /* end confdefs.h. */
50101 $ac_includes_default
50105 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
50112 rm -f conftest.$ac_objext
50113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50114 (eval $ac_compile) 2>conftest.er1
50116 grep -v '^ *+' conftest.er1 >conftest.err
50118 cat conftest.err >&5
50119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50120 (exit $ac_status); } &&
50121 { ac_try='test -z "$ac_c_werror_flag"
50122 || test ! -s conftest.err'
50123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50124 (eval $ac_try) 2>&5
50126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50127 (exit $ac_status); }; } &&
50128 { ac_try='test -s conftest.$ac_objext'
50129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50130 (eval $ac_try) 2>&5
50132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50133 (exit $ac_status); }; }; then
50136 echo "$as_me: failed program was:" >&5
50137 sed 's/^/| /' conftest.$ac_ext >&5
50139 ac_lo=`expr '(' $ac_mid ')' + 1`
50141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50144 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
50145 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
50146 See \`config.log' for more details." >&5
50147 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
50148 See \`config.log' for more details." >&2;}
50149 { (exit 1); exit 1; }; } ;;
50152 if test "$cross_compiling" = yes; then
50153 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
50154 See \`config.log' for more details." >&5
50155 echo "$as_me: error: cannot run test program while cross compiling
50156 See \`config.log' for more details." >&2;}
50157 { (exit 1); exit 1; }; }
50159 cat >conftest.$ac_ext <<_ACEOF
50162 cat confdefs.h >>conftest.$ac_ext
50163 cat >>conftest.$ac_ext <<_ACEOF
50164 /* end confdefs.h. */
50165 $ac_includes_default
50166 long longval () { return (long) (sizeof (wchar_t)); }
50167 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
50169 #include <stdlib.h>
50174 FILE *f = fopen ("conftest.val", "w");
50177 if (((long) (sizeof (wchar_t))) < 0)
50179 long i = longval ();
50180 if (i != ((long) (sizeof (wchar_t))))
50182 fprintf (f, "%ld\n", i);
50186 unsigned long i = ulongval ();
50187 if (i != ((long) (sizeof (wchar_t))))
50189 fprintf (f, "%lu\n", i);
50191 exit (ferror (f) || fclose (f) != 0);
50197 rm -f conftest$ac_exeext
50198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50199 (eval $ac_link) 2>&5
50201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50202 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50204 (eval $ac_try) 2>&5
50206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50207 (exit $ac_status); }; }; then
50208 ac_cv_sizeof_wchar_t=`cat conftest.val`
50210 echo "$as_me: program exited with status $ac_status" >&5
50211 echo "$as_me: failed program was:" >&5
50212 sed 's/^/| /' conftest.$ac_ext >&5
50214 ( exit $ac_status )
50215 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
50216 See \`config.log' for more details." >&5
50217 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
50218 See \`config.log' for more details." >&2;}
50219 { (exit 1); exit 1; }; }
50221 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50226 ac_cv_sizeof_wchar_t=0
50229 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
50230 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
50231 cat >>confdefs.h <<_ACEOF
50232 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
50237 if test "$ac_cv_sizeof_int" -lt 4 ; then
50238 { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
50239 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
50242 cat >>confdefs.h <<\_ACEOF
50243 #define LBER_INT_T long
50248 cat >>confdefs.h <<\_ACEOF
50249 #define LBER_INT_T int
50255 cat >>confdefs.h <<\_ACEOF
50256 #define LBER_LEN_T long
50260 cat >>confdefs.h <<\_ACEOF
50261 #define LBER_SOCKET_T int
50265 cat >>confdefs.h <<\_ACEOF
50266 #define LBER_TAG_T long
50270 echo "$as_me:$LINENO: checking for working memcmp" >&5
50271 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
50272 if test "${ac_cv_func_memcmp_working+set}" = set; then
50273 echo $ECHO_N "(cached) $ECHO_C" >&6
50275 if test "$cross_compiling" = yes; then
50276 ac_cv_func_memcmp_working=no
50278 cat >conftest.$ac_ext <<_ACEOF
50281 cat confdefs.h >>conftest.$ac_ext
50282 cat >>conftest.$ac_ext <<_ACEOF
50283 /* end confdefs.h. */
50284 $ac_includes_default
50289 /* Some versions of memcmp are not 8-bit clean. */
50290 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
50291 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
50294 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
50295 or more and with at least one buffer not starting on a 4-byte boundary.
50296 William Lewis provided this test program. */
50301 for (i = 0; i < 4; i++)
50305 strcpy (a, "--------01111111");
50306 strcpy (b, "--------10000000");
50307 if (memcmp (a, b, 16) >= 0)
50317 rm -f conftest$ac_exeext
50318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50319 (eval $ac_link) 2>&5
50321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50322 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50324 (eval $ac_try) 2>&5
50326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50327 (exit $ac_status); }; }; then
50328 ac_cv_func_memcmp_working=yes
50330 echo "$as_me: program exited with status $ac_status" >&5
50331 echo "$as_me: failed program was:" >&5
50332 sed 's/^/| /' conftest.$ac_ext >&5
50334 ( exit $ac_status )
50335 ac_cv_func_memcmp_working=no
50337 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50340 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
50341 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
50342 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
50343 "memcmp.$ac_objext" | \
50344 *" memcmp.$ac_objext" | \
50345 "memcmp.$ac_objext "* | \
50346 *" memcmp.$ac_objext "* ) ;;
50347 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
50352 if test $ac_cv_func_memcmp_working = no ; then
50354 cat >>confdefs.h <<\_ACEOF
50355 #define NEED_MEMCMP_REPLACEMENT 1
50361 for ac_func in strftime
50363 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50364 echo "$as_me:$LINENO: checking for $ac_func" >&5
50365 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50366 if eval "test \"\${$as_ac_var+set}\" = set"; then
50367 echo $ECHO_N "(cached) $ECHO_C" >&6
50369 cat >conftest.$ac_ext <<_ACEOF
50372 cat confdefs.h >>conftest.$ac_ext
50373 cat >>conftest.$ac_ext <<_ACEOF
50374 /* end confdefs.h. */
50375 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50376 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50377 #define $ac_func innocuous_$ac_func
50379 /* System header to define __stub macros and hopefully few prototypes,
50380 which can conflict with char $ac_func (); below.
50381 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50382 <limits.h> exists even on freestanding compilers. */
50385 # include <limits.h>
50387 # include <assert.h>
50392 /* Override any gcc2 internal prototype to avoid an error. */
50397 /* We use char because int might match the return type of a gcc2
50398 builtin and then its argument prototype would still apply. */
50400 /* The GNU C library defines this for functions which it implements
50401 to always fail with ENOSYS. Some functions are actually named
50402 something starting with __ and the normal name is an alias. */
50403 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50406 char (*f) () = $ac_func;
50415 return f != $ac_func;
50420 rm -f conftest.$ac_objext conftest$ac_exeext
50421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50422 (eval $ac_link) 2>conftest.er1
50424 grep -v '^ *+' conftest.er1 >conftest.err
50426 cat conftest.err >&5
50427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50428 (exit $ac_status); } &&
50429 { ac_try='test -z "$ac_c_werror_flag"
50430 || test ! -s conftest.err'
50431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50432 (eval $ac_try) 2>&5
50434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50435 (exit $ac_status); }; } &&
50436 { ac_try='test -s conftest$ac_exeext'
50437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50438 (eval $ac_try) 2>&5
50440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50441 (exit $ac_status); }; }; then
50442 eval "$as_ac_var=yes"
50444 echo "$as_me: failed program was:" >&5
50445 sed 's/^/| /' conftest.$ac_ext >&5
50447 eval "$as_ac_var=no"
50449 rm -f conftest.err conftest.$ac_objext \
50450 conftest$ac_exeext conftest.$ac_ext
50452 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50453 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50454 if test `eval echo '${'$as_ac_var'}'` = yes; then
50455 cat >>confdefs.h <<_ACEOF
50456 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50460 # strftime is in -lintl on SCO UNIX.
50461 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
50462 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
50463 if test "${ac_cv_lib_intl_strftime+set}" = set; then
50464 echo $ECHO_N "(cached) $ECHO_C" >&6
50466 ac_check_lib_save_LIBS=$LIBS
50467 LIBS="-lintl $LIBS"
50468 cat >conftest.$ac_ext <<_ACEOF
50471 cat confdefs.h >>conftest.$ac_ext
50472 cat >>conftest.$ac_ext <<_ACEOF
50473 /* end confdefs.h. */
50475 /* Override any gcc2 internal prototype to avoid an error. */
50479 /* We use char because int might match the return type of a gcc2
50480 builtin and then its argument prototype would still apply. */
50490 rm -f conftest.$ac_objext conftest$ac_exeext
50491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50492 (eval $ac_link) 2>conftest.er1
50494 grep -v '^ *+' conftest.er1 >conftest.err
50496 cat conftest.err >&5
50497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50498 (exit $ac_status); } &&
50499 { ac_try='test -z "$ac_c_werror_flag"
50500 || test ! -s conftest.err'
50501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50502 (eval $ac_try) 2>&5
50504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50505 (exit $ac_status); }; } &&
50506 { ac_try='test -s conftest$ac_exeext'
50507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50508 (eval $ac_try) 2>&5
50510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50511 (exit $ac_status); }; }; then
50512 ac_cv_lib_intl_strftime=yes
50514 echo "$as_me: failed program was:" >&5
50515 sed 's/^/| /' conftest.$ac_ext >&5
50517 ac_cv_lib_intl_strftime=no
50519 rm -f conftest.err conftest.$ac_objext \
50520 conftest$ac_exeext conftest.$ac_ext
50521 LIBS=$ac_check_lib_save_LIBS
50523 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
50524 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
50525 if test $ac_cv_lib_intl_strftime = yes; then
50526 cat >>confdefs.h <<\_ACEOF
50527 #define HAVE_STRFTIME 1
50530 LIBS="-lintl $LIBS"
50537 echo "$as_me:$LINENO: checking for inet_aton()" >&5
50538 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
50539 if test "${ol_cv_func_inet_aton+set}" = set; then
50540 echo $ECHO_N "(cached) $ECHO_C" >&6
50542 cat >conftest.$ac_ext <<_ACEOF
50545 cat confdefs.h >>conftest.$ac_ext
50546 cat >>conftest.$ac_ext <<_ACEOF
50547 /* end confdefs.h. */
50549 #ifdef HAVE_SYS_TYPES_H
50550 # include <sys/types.h>
50552 #ifdef HAVE_SYS_SOCKET_H
50553 # include <sys/socket.h>
50554 # ifdef HAVE_SYS_SELECT_H
50555 # include <sys/select.h>
50557 # include <netinet/in.h>
50558 # ifdef HAVE_ARPA_INET_H
50559 # include <arpa/inet.h>
50567 int rc = inet_aton( "255.255.255.255", &in );
50572 rm -f conftest.$ac_objext conftest$ac_exeext
50573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50574 (eval $ac_link) 2>conftest.er1
50576 grep -v '^ *+' conftest.er1 >conftest.err
50578 cat conftest.err >&5
50579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50580 (exit $ac_status); } &&
50581 { ac_try='test -z "$ac_c_werror_flag"
50582 || test ! -s conftest.err'
50583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50584 (eval $ac_try) 2>&5
50586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50587 (exit $ac_status); }; } &&
50588 { ac_try='test -s conftest$ac_exeext'
50589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50590 (eval $ac_try) 2>&5
50592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50593 (exit $ac_status); }; }; then
50594 ol_cv_func_inet_aton=yes
50596 echo "$as_me: failed program was:" >&5
50597 sed 's/^/| /' conftest.$ac_ext >&5
50599 ol_cv_func_inet_aton=no
50601 rm -f conftest.err conftest.$ac_objext \
50602 conftest$ac_exeext conftest.$ac_ext
50604 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
50605 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
50606 if test $ol_cv_func_inet_aton != no; then
50608 cat >>confdefs.h <<\_ACEOF
50609 #define HAVE_INET_ATON 1
50615 echo "$as_me:$LINENO: checking for _spawnlp" >&5
50616 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
50617 if test "${ac_cv_func__spawnlp+set}" = set; then
50618 echo $ECHO_N "(cached) $ECHO_C" >&6
50620 cat >conftest.$ac_ext <<_ACEOF
50623 cat confdefs.h >>conftest.$ac_ext
50624 cat >>conftest.$ac_ext <<_ACEOF
50625 /* end confdefs.h. */
50626 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
50627 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50628 #define _spawnlp innocuous__spawnlp
50630 /* System header to define __stub macros and hopefully few prototypes,
50631 which can conflict with char _spawnlp (); below.
50632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50633 <limits.h> exists even on freestanding compilers. */
50636 # include <limits.h>
50638 # include <assert.h>
50643 /* Override any gcc2 internal prototype to avoid an error. */
50648 /* We use char because int might match the return type of a gcc2
50649 builtin and then its argument prototype would still apply. */
50651 /* The GNU C library defines this for functions which it implements
50652 to always fail with ENOSYS. Some functions are actually named
50653 something starting with __ and the normal name is an alias. */
50654 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
50657 char (*f) () = _spawnlp;
50666 return f != _spawnlp;
50671 rm -f conftest.$ac_objext conftest$ac_exeext
50672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50673 (eval $ac_link) 2>conftest.er1
50675 grep -v '^ *+' conftest.er1 >conftest.err
50677 cat conftest.err >&5
50678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50679 (exit $ac_status); } &&
50680 { ac_try='test -z "$ac_c_werror_flag"
50681 || test ! -s conftest.err'
50682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50683 (eval $ac_try) 2>&5
50685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50686 (exit $ac_status); }; } &&
50687 { ac_try='test -s conftest$ac_exeext'
50688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50689 (eval $ac_try) 2>&5
50691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50692 (exit $ac_status); }; }; then
50693 ac_cv_func__spawnlp=yes
50695 echo "$as_me: failed program was:" >&5
50696 sed 's/^/| /' conftest.$ac_ext >&5
50698 ac_cv_func__spawnlp=no
50700 rm -f conftest.err conftest.$ac_objext \
50701 conftest$ac_exeext conftest.$ac_ext
50703 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
50704 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
50705 if test $ac_cv_func__spawnlp = yes; then
50707 cat >>confdefs.h <<\_ACEOF
50708 #define HAVE_SPAWNLP 1
50714 echo "$as_me:$LINENO: checking for _snprintf" >&5
50715 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
50716 if test "${ac_cv_func__snprintf+set}" = set; then
50717 echo $ECHO_N "(cached) $ECHO_C" >&6
50719 cat >conftest.$ac_ext <<_ACEOF
50722 cat confdefs.h >>conftest.$ac_ext
50723 cat >>conftest.$ac_ext <<_ACEOF
50724 /* end confdefs.h. */
50725 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
50726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50727 #define _snprintf innocuous__snprintf
50729 /* System header to define __stub macros and hopefully few prototypes,
50730 which can conflict with char _snprintf (); below.
50731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50732 <limits.h> exists even on freestanding compilers. */
50735 # include <limits.h>
50737 # include <assert.h>
50742 /* Override any gcc2 internal prototype to avoid an error. */
50747 /* We use char because int might match the return type of a gcc2
50748 builtin and then its argument prototype would still apply. */
50750 /* The GNU C library defines this for functions which it implements
50751 to always fail with ENOSYS. Some functions are actually named
50752 something starting with __ and the normal name is an alias. */
50753 #if defined (__stub__snprintf) || defined (__stub____snprintf)
50756 char (*f) () = _snprintf;
50765 return f != _snprintf;
50770 rm -f conftest.$ac_objext conftest$ac_exeext
50771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50772 (eval $ac_link) 2>conftest.er1
50774 grep -v '^ *+' conftest.er1 >conftest.err
50776 cat conftest.err >&5
50777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50778 (exit $ac_status); } &&
50779 { ac_try='test -z "$ac_c_werror_flag"
50780 || test ! -s conftest.err'
50781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50782 (eval $ac_try) 2>&5
50784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50785 (exit $ac_status); }; } &&
50786 { ac_try='test -s conftest$ac_exeext'
50787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50788 (eval $ac_try) 2>&5
50790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50791 (exit $ac_status); }; }; then
50792 ac_cv_func__snprintf=yes
50794 echo "$as_me: failed program was:" >&5
50795 sed 's/^/| /' conftest.$ac_ext >&5
50797 ac_cv_func__snprintf=no
50799 rm -f conftest.err conftest.$ac_objext \
50800 conftest$ac_exeext conftest.$ac_ext
50802 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
50803 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
50804 if test $ac_cv_func__snprintf = yes; then
50805 ac_cv_func_snprintf=yes
50807 cat >>confdefs.h <<\_ACEOF
50808 #define snprintf _snprintf
50815 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
50816 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
50817 if test "${ac_cv_func__vsnprintf+set}" = set; then
50818 echo $ECHO_N "(cached) $ECHO_C" >&6
50820 cat >conftest.$ac_ext <<_ACEOF
50823 cat confdefs.h >>conftest.$ac_ext
50824 cat >>conftest.$ac_ext <<_ACEOF
50825 /* end confdefs.h. */
50826 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
50827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50828 #define _vsnprintf innocuous__vsnprintf
50830 /* System header to define __stub macros and hopefully few prototypes,
50831 which can conflict with char _vsnprintf (); below.
50832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50833 <limits.h> exists even on freestanding compilers. */
50836 # include <limits.h>
50838 # include <assert.h>
50843 /* Override any gcc2 internal prototype to avoid an error. */
50848 /* We use char because int might match the return type of a gcc2
50849 builtin and then its argument prototype would still apply. */
50850 char _vsnprintf ();
50851 /* The GNU C library defines this for functions which it implements
50852 to always fail with ENOSYS. Some functions are actually named
50853 something starting with __ and the normal name is an alias. */
50854 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
50857 char (*f) () = _vsnprintf;
50866 return f != _vsnprintf;
50871 rm -f conftest.$ac_objext conftest$ac_exeext
50872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50873 (eval $ac_link) 2>conftest.er1
50875 grep -v '^ *+' conftest.er1 >conftest.err
50877 cat conftest.err >&5
50878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50879 (exit $ac_status); } &&
50880 { ac_try='test -z "$ac_c_werror_flag"
50881 || test ! -s conftest.err'
50882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50883 (eval $ac_try) 2>&5
50885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50886 (exit $ac_status); }; } &&
50887 { ac_try='test -s conftest$ac_exeext'
50888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50889 (eval $ac_try) 2>&5
50891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50892 (exit $ac_status); }; }; then
50893 ac_cv_func__vsnprintf=yes
50895 echo "$as_me: failed program was:" >&5
50896 sed 's/^/| /' conftest.$ac_ext >&5
50898 ac_cv_func__vsnprintf=no
50900 rm -f conftest.err conftest.$ac_objext \
50901 conftest$ac_exeext conftest.$ac_ext
50903 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
50904 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
50905 if test $ac_cv_func__vsnprintf = yes; then
50906 ac_cv_func_vsnprintf=yes
50908 cat >>confdefs.h <<\_ACEOF
50909 #define vsnprintf _vsnprintf
50917 for ac_func in vprintf
50919 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50920 echo "$as_me:$LINENO: checking for $ac_func" >&5
50921 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50922 if eval "test \"\${$as_ac_var+set}\" = set"; then
50923 echo $ECHO_N "(cached) $ECHO_C" >&6
50925 cat >conftest.$ac_ext <<_ACEOF
50928 cat confdefs.h >>conftest.$ac_ext
50929 cat >>conftest.$ac_ext <<_ACEOF
50930 /* end confdefs.h. */
50931 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50933 #define $ac_func innocuous_$ac_func
50935 /* System header to define __stub macros and hopefully few prototypes,
50936 which can conflict with char $ac_func (); below.
50937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50938 <limits.h> exists even on freestanding compilers. */
50941 # include <limits.h>
50943 # include <assert.h>
50948 /* Override any gcc2 internal prototype to avoid an error. */
50953 /* We use char because int might match the return type of a gcc2
50954 builtin and then its argument prototype would still apply. */
50956 /* The GNU C library defines this for functions which it implements
50957 to always fail with ENOSYS. Some functions are actually named
50958 something starting with __ and the normal name is an alias. */
50959 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50962 char (*f) () = $ac_func;
50971 return f != $ac_func;
50976 rm -f conftest.$ac_objext conftest$ac_exeext
50977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50978 (eval $ac_link) 2>conftest.er1
50980 grep -v '^ *+' conftest.er1 >conftest.err
50982 cat conftest.err >&5
50983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50984 (exit $ac_status); } &&
50985 { ac_try='test -z "$ac_c_werror_flag"
50986 || test ! -s conftest.err'
50987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50988 (eval $ac_try) 2>&5
50990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50991 (exit $ac_status); }; } &&
50992 { ac_try='test -s conftest$ac_exeext'
50993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50994 (eval $ac_try) 2>&5
50996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50997 (exit $ac_status); }; }; then
50998 eval "$as_ac_var=yes"
51000 echo "$as_me: failed program was:" >&5
51001 sed 's/^/| /' conftest.$ac_ext >&5
51003 eval "$as_ac_var=no"
51005 rm -f conftest.err conftest.$ac_objext \
51006 conftest$ac_exeext conftest.$ac_ext
51008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51009 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51010 if test `eval echo '${'$as_ac_var'}'` = yes; then
51011 cat >>confdefs.h <<_ACEOF
51012 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51015 echo "$as_me:$LINENO: checking for _doprnt" >&5
51016 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
51017 if test "${ac_cv_func__doprnt+set}" = set; then
51018 echo $ECHO_N "(cached) $ECHO_C" >&6
51020 cat >conftest.$ac_ext <<_ACEOF
51023 cat confdefs.h >>conftest.$ac_ext
51024 cat >>conftest.$ac_ext <<_ACEOF
51025 /* end confdefs.h. */
51026 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
51027 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51028 #define _doprnt innocuous__doprnt
51030 /* System header to define __stub macros and hopefully few prototypes,
51031 which can conflict with char _doprnt (); below.
51032 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51033 <limits.h> exists even on freestanding compilers. */
51036 # include <limits.h>
51038 # include <assert.h>
51043 /* Override any gcc2 internal prototype to avoid an error. */
51048 /* We use char because int might match the return type of a gcc2
51049 builtin and then its argument prototype would still apply. */
51051 /* The GNU C library defines this for functions which it implements
51052 to always fail with ENOSYS. Some functions are actually named
51053 something starting with __ and the normal name is an alias. */
51054 #if defined (__stub__doprnt) || defined (__stub____doprnt)
51057 char (*f) () = _doprnt;
51066 return f != _doprnt;
51071 rm -f conftest.$ac_objext conftest$ac_exeext
51072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51073 (eval $ac_link) 2>conftest.er1
51075 grep -v '^ *+' conftest.er1 >conftest.err
51077 cat conftest.err >&5
51078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51079 (exit $ac_status); } &&
51080 { ac_try='test -z "$ac_c_werror_flag"
51081 || test ! -s conftest.err'
51082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51083 (eval $ac_try) 2>&5
51085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51086 (exit $ac_status); }; } &&
51087 { ac_try='test -s conftest$ac_exeext'
51088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51089 (eval $ac_try) 2>&5
51091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51092 (exit $ac_status); }; }; then
51093 ac_cv_func__doprnt=yes
51095 echo "$as_me: failed program was:" >&5
51096 sed 's/^/| /' conftest.$ac_ext >&5
51098 ac_cv_func__doprnt=no
51100 rm -f conftest.err conftest.$ac_objext \
51101 conftest$ac_exeext conftest.$ac_ext
51103 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
51104 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
51105 if test $ac_cv_func__doprnt = yes; then
51107 cat >>confdefs.h <<\_ACEOF
51108 #define HAVE_DOPRNT 1
51118 if test $ac_cv_func_vprintf = yes ; then
51121 for ac_func in snprintf vsnprintf
51123 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51124 echo "$as_me:$LINENO: checking for $ac_func" >&5
51125 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51126 if eval "test \"\${$as_ac_var+set}\" = set"; then
51127 echo $ECHO_N "(cached) $ECHO_C" >&6
51129 cat >conftest.$ac_ext <<_ACEOF
51132 cat confdefs.h >>conftest.$ac_ext
51133 cat >>conftest.$ac_ext <<_ACEOF
51134 /* end confdefs.h. */
51135 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51136 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51137 #define $ac_func innocuous_$ac_func
51139 /* System header to define __stub macros and hopefully few prototypes,
51140 which can conflict with char $ac_func (); below.
51141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51142 <limits.h> exists even on freestanding compilers. */
51145 # include <limits.h>
51147 # include <assert.h>
51152 /* Override any gcc2 internal prototype to avoid an error. */
51157 /* We use char because int might match the return type of a gcc2
51158 builtin and then its argument prototype would still apply. */
51160 /* The GNU C library defines this for functions which it implements
51161 to always fail with ENOSYS. Some functions are actually named
51162 something starting with __ and the normal name is an alias. */
51163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51166 char (*f) () = $ac_func;
51175 return f != $ac_func;
51180 rm -f conftest.$ac_objext conftest$ac_exeext
51181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51182 (eval $ac_link) 2>conftest.er1
51184 grep -v '^ *+' conftest.er1 >conftest.err
51186 cat conftest.err >&5
51187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51188 (exit $ac_status); } &&
51189 { ac_try='test -z "$ac_c_werror_flag"
51190 || test ! -s conftest.err'
51191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51192 (eval $ac_try) 2>&5
51194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51195 (exit $ac_status); }; } &&
51196 { ac_try='test -s conftest$ac_exeext'
51197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51198 (eval $ac_try) 2>&5
51200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51201 (exit $ac_status); }; }; then
51202 eval "$as_ac_var=yes"
51204 echo "$as_me: failed program was:" >&5
51205 sed 's/^/| /' conftest.$ac_ext >&5
51207 eval "$as_ac_var=no"
51209 rm -f conftest.err conftest.$ac_objext \
51210 conftest$ac_exeext conftest.$ac_ext
51212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51213 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51214 if test `eval echo '${'$as_ac_var'}'` = yes; then
51215 cat >>confdefs.h <<_ACEOF
51216 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51333 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51334 echo "$as_me:$LINENO: checking for $ac_func" >&5
51335 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51336 if eval "test \"\${$as_ac_var+set}\" = set"; then
51337 echo $ECHO_N "(cached) $ECHO_C" >&6
51339 cat >conftest.$ac_ext <<_ACEOF
51342 cat confdefs.h >>conftest.$ac_ext
51343 cat >>conftest.$ac_ext <<_ACEOF
51344 /* end confdefs.h. */
51345 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51346 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51347 #define $ac_func innocuous_$ac_func
51349 /* System header to define __stub macros and hopefully few prototypes,
51350 which can conflict with char $ac_func (); below.
51351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51352 <limits.h> exists even on freestanding compilers. */
51355 # include <limits.h>
51357 # include <assert.h>
51362 /* Override any gcc2 internal prototype to avoid an error. */
51367 /* We use char because int might match the return type of a gcc2
51368 builtin and then its argument prototype would still apply. */
51370 /* The GNU C library defines this for functions which it implements
51371 to always fail with ENOSYS. Some functions are actually named
51372 something starting with __ and the normal name is an alias. */
51373 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51376 char (*f) () = $ac_func;
51385 return f != $ac_func;
51390 rm -f conftest.$ac_objext conftest$ac_exeext
51391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51392 (eval $ac_link) 2>conftest.er1
51394 grep -v '^ *+' conftest.er1 >conftest.err
51396 cat conftest.err >&5
51397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51398 (exit $ac_status); } &&
51399 { ac_try='test -z "$ac_c_werror_flag"
51400 || test ! -s conftest.err'
51401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51402 (eval $ac_try) 2>&5
51404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51405 (exit $ac_status); }; } &&
51406 { ac_try='test -s conftest$ac_exeext'
51407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51408 (eval $ac_try) 2>&5
51410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51411 (exit $ac_status); }; }; then
51412 eval "$as_ac_var=yes"
51414 echo "$as_me: failed program was:" >&5
51415 sed 's/^/| /' conftest.$ac_ext >&5
51417 eval "$as_ac_var=no"
51419 rm -f conftest.err conftest.$ac_objext \
51420 conftest$ac_exeext conftest.$ac_ext
51422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51423 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51424 if test `eval echo '${'$as_ac_var'}'` = yes; then
51425 cat >>confdefs.h <<_ACEOF
51426 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51435 for ac_func in getopt getpeereid
51437 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51438 echo "$as_me:$LINENO: checking for $ac_func" >&5
51439 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51440 if eval "test \"\${$as_ac_var+set}\" = set"; then
51441 echo $ECHO_N "(cached) $ECHO_C" >&6
51443 cat >conftest.$ac_ext <<_ACEOF
51446 cat confdefs.h >>conftest.$ac_ext
51447 cat >>conftest.$ac_ext <<_ACEOF
51448 /* end confdefs.h. */
51449 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51451 #define $ac_func innocuous_$ac_func
51453 /* System header to define __stub macros and hopefully few prototypes,
51454 which can conflict with char $ac_func (); below.
51455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51456 <limits.h> exists even on freestanding compilers. */
51459 # include <limits.h>
51461 # include <assert.h>
51466 /* Override any gcc2 internal prototype to avoid an error. */
51471 /* We use char because int might match the return type of a gcc2
51472 builtin and then its argument prototype would still apply. */
51474 /* The GNU C library defines this for functions which it implements
51475 to always fail with ENOSYS. Some functions are actually named
51476 something starting with __ and the normal name is an alias. */
51477 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51480 char (*f) () = $ac_func;
51489 return f != $ac_func;
51494 rm -f conftest.$ac_objext conftest$ac_exeext
51495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51496 (eval $ac_link) 2>conftest.er1
51498 grep -v '^ *+' conftest.er1 >conftest.err
51500 cat conftest.err >&5
51501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51502 (exit $ac_status); } &&
51503 { ac_try='test -z "$ac_c_werror_flag"
51504 || test ! -s conftest.err'
51505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51506 (eval $ac_try) 2>&5
51508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51509 (exit $ac_status); }; } &&
51510 { ac_try='test -s conftest$ac_exeext'
51511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51512 (eval $ac_try) 2>&5
51514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51515 (exit $ac_status); }; }; then
51516 eval "$as_ac_var=yes"
51518 echo "$as_me: failed program was:" >&5
51519 sed 's/^/| /' conftest.$ac_ext >&5
51521 eval "$as_ac_var=no"
51523 rm -f conftest.err conftest.$ac_objext \
51524 conftest$ac_exeext conftest.$ac_ext
51526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51527 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51528 if test `eval echo '${'$as_ac_var'}'` = yes; then
51529 cat >>confdefs.h <<_ACEOF
51530 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51535 "$ac_func.$ac_objext" | \
51536 *" $ac_func.$ac_objext" | \
51537 "$ac_func.$ac_objext "* | \
51538 *" $ac_func.$ac_objext "* ) ;;
51539 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
51547 if test "$ac_cv_func_getopt" != yes; then
51548 LIBSRCS="$LIBSRCS getopt.c"
51550 if test "$ac_cv_func_getpeereid" != yes; then
51551 echo "$as_me:$LINENO: checking for msg_accrights in msghdr" >&5
51552 echo $ECHO_N "checking for msg_accrights in msghdr... $ECHO_C" >&6
51553 if test "${ol_cv_msghdr_msg_accrights+set}" = set; then
51554 echo $ECHO_N "(cached) $ECHO_C" >&6
51556 cat >conftest.$ac_ext <<_ACEOF
51559 cat confdefs.h >>conftest.$ac_ext
51560 cat >>conftest.$ac_ext <<_ACEOF
51561 /* end confdefs.h. */
51562 #include <sys/socket.h>
51566 struct msghdr m; m.msg_accrightslen=0
51571 rm -f conftest.$ac_objext
51572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51573 (eval $ac_compile) 2>conftest.er1
51575 grep -v '^ *+' conftest.er1 >conftest.err
51577 cat conftest.err >&5
51578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51579 (exit $ac_status); } &&
51580 { ac_try='test -z "$ac_c_werror_flag"
51581 || test ! -s conftest.err'
51582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51583 (eval $ac_try) 2>&5
51585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51586 (exit $ac_status); }; } &&
51587 { ac_try='test -s conftest.$ac_objext'
51588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51589 (eval $ac_try) 2>&5
51591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51592 (exit $ac_status); }; }; then
51593 ol_cv_msghdr_msg_accrights=yes
51595 echo "$as_me: failed program was:" >&5
51596 sed 's/^/| /' conftest.$ac_ext >&5
51598 ol_cv_msghdr_msg_accrights=no
51600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51602 echo "$as_me:$LINENO: result: $ol_cv_msghdr_msg_accrights" >&5
51603 echo "${ECHO_T}$ol_cv_msghdr_msg_accrights" >&6
51604 if test $ol_cv_msghdr_msg_accrights = "yes" ; then
51606 cat >>confdefs.h <<\_ACEOF
51607 #define HAVE_MSGHDR_MSG_ACCRIGHTS 1
51612 if test "$ac_cv_func_getpeereid" != yes; then
51613 echo "$as_me:$LINENO: checking for msg_control in msghdr" >&5
51614 echo $ECHO_N "checking for msg_control in msghdr... $ECHO_C" >&6
51615 if test "${ol_cv_msghdr_msg_control+set}" = set; then
51616 echo $ECHO_N "(cached) $ECHO_C" >&6
51618 cat >conftest.$ac_ext <<_ACEOF
51621 cat confdefs.h >>conftest.$ac_ext
51622 cat >>conftest.$ac_ext <<_ACEOF
51623 /* end confdefs.h. */
51624 #include <sys/socket.h>
51628 struct msghdr m; m.msg_control=(struct cmsghdr *)0
51633 rm -f conftest.$ac_objext
51634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51635 (eval $ac_compile) 2>conftest.er1
51637 grep -v '^ *+' conftest.er1 >conftest.err
51639 cat conftest.err >&5
51640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51641 (exit $ac_status); } &&
51642 { ac_try='test -z "$ac_c_werror_flag"
51643 || test ! -s conftest.err'
51644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51645 (eval $ac_try) 2>&5
51647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51648 (exit $ac_status); }; } &&
51649 { ac_try='test -s conftest.$ac_objext'
51650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51651 (eval $ac_try) 2>&5
51653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51654 (exit $ac_status); }; }; then
51655 ol_cv_msghdr_msg_control=yes
51657 echo "$as_me: failed program was:" >&5
51658 sed 's/^/| /' conftest.$ac_ext >&5
51660 ol_cv_msghdr_msg_control=no
51662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51664 echo "$as_me:$LINENO: result: $ol_cv_msghdr_msg_control" >&5
51665 echo "${ECHO_T}$ol_cv_msghdr_msg_control" >&6
51666 if test $ol_cv_msghdr_msg_control = "yes" ; then
51668 cat >>confdefs.h <<\_ACEOF
51669 #define HAVE_MSGHDR_MSG_CONTROL 1
51675 LIBSRCS="$LIBSRCS getpeereid.c"
51677 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
51678 if test "$ac_cv_func_snprintf" != yes; then
51680 cat >>confdefs.h <<\_ACEOF
51681 #define snprintf ber_pvt_snprintf
51685 if test "$ac_cv_func_vsnprintf" != yes; then
51687 cat >>confdefs.h <<\_ACEOF
51688 #define vsnprintf ber_pvt_vsnprintf
51695 if test "$ol_enable_slapi" != no ; then
51697 for ac_header in ltdl.h
51699 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
51700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51701 echo "$as_me:$LINENO: checking for $ac_header" >&5
51702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51703 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51704 echo $ECHO_N "(cached) $ECHO_C" >&6
51706 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51707 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51709 # Is the header compilable?
51710 echo "$as_me:$LINENO: checking $ac_header usability" >&5
51711 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
51712 cat >conftest.$ac_ext <<_ACEOF
51715 cat confdefs.h >>conftest.$ac_ext
51716 cat >>conftest.$ac_ext <<_ACEOF
51717 /* end confdefs.h. */
51718 $ac_includes_default
51719 #include <$ac_header>
51721 rm -f conftest.$ac_objext
51722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51723 (eval $ac_compile) 2>conftest.er1
51725 grep -v '^ *+' conftest.er1 >conftest.err
51727 cat conftest.err >&5
51728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51729 (exit $ac_status); } &&
51730 { ac_try='test -z "$ac_c_werror_flag"
51731 || test ! -s conftest.err'
51732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51733 (eval $ac_try) 2>&5
51735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51736 (exit $ac_status); }; } &&
51737 { ac_try='test -s conftest.$ac_objext'
51738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51739 (eval $ac_try) 2>&5
51741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51742 (exit $ac_status); }; }; then
51743 ac_header_compiler=yes
51745 echo "$as_me: failed program was:" >&5
51746 sed 's/^/| /' conftest.$ac_ext >&5
51748 ac_header_compiler=no
51750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51751 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
51752 echo "${ECHO_T}$ac_header_compiler" >&6
51754 # Is the header present?
51755 echo "$as_me:$LINENO: checking $ac_header presence" >&5
51756 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
51757 cat >conftest.$ac_ext <<_ACEOF
51760 cat confdefs.h >>conftest.$ac_ext
51761 cat >>conftest.$ac_ext <<_ACEOF
51762 /* end confdefs.h. */
51763 #include <$ac_header>
51765 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
51766 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
51768 grep -v '^ *+' conftest.er1 >conftest.err
51770 cat conftest.err >&5
51771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51772 (exit $ac_status); } >/dev/null; then
51773 if test -s conftest.err; then
51774 ac_cpp_err=$ac_c_preproc_warn_flag
51775 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
51782 if test -z "$ac_cpp_err"; then
51783 ac_header_preproc=yes
51785 echo "$as_me: failed program was:" >&5
51786 sed 's/^/| /' conftest.$ac_ext >&5
51788 ac_header_preproc=no
51790 rm -f conftest.err conftest.$ac_ext
51791 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
51792 echo "${ECHO_T}$ac_header_preproc" >&6
51794 # So? What about this header?
51795 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
51797 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
51798 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
51799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
51800 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
51801 ac_header_preproc=yes
51804 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
51805 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
51806 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
51807 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
51808 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
51809 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
51810 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
51811 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
51812 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
51813 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
51814 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
51815 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
51818 ## ------------------------------------------ ##
51819 ## Report this to the AC_PACKAGE_NAME lists. ##
51820 ## ------------------------------------------ ##
51823 sed "s/^/$as_me: WARNING: /" >&2
51826 echo "$as_me:$LINENO: checking for $ac_header" >&5
51827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51828 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51829 echo $ECHO_N "(cached) $ECHO_C" >&6
51831 eval "$as_ac_Header=\$ac_header_preproc"
51833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51834 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51837 if test `eval echo '${'$as_ac_Header'}'` = yes; then
51838 cat >>confdefs.h <<_ACEOF
51839 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
51847 if test $ac_cv_header_ltdl_h != yes ; then
51848 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
51849 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
51850 { (exit 1); exit 1; }; }
51852 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
51853 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
51854 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
51855 echo $ECHO_N "(cached) $ECHO_C" >&6
51857 ac_check_lib_save_LIBS=$LIBS
51858 LIBS="-lltdl $LIBS"
51859 cat >conftest.$ac_ext <<_ACEOF
51862 cat confdefs.h >>conftest.$ac_ext
51863 cat >>conftest.$ac_ext <<_ACEOF
51864 /* end confdefs.h. */
51866 /* Override any gcc2 internal prototype to avoid an error. */
51870 /* We use char because int might match the return type of a gcc2
51871 builtin and then its argument prototype would still apply. */
51881 rm -f conftest.$ac_objext conftest$ac_exeext
51882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51883 (eval $ac_link) 2>conftest.er1
51885 grep -v '^ *+' conftest.er1 >conftest.err
51887 cat conftest.err >&5
51888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51889 (exit $ac_status); } &&
51890 { ac_try='test -z "$ac_c_werror_flag"
51891 || test ! -s conftest.err'
51892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51893 (eval $ac_try) 2>&5
51895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51896 (exit $ac_status); }; } &&
51897 { ac_try='test -s conftest$ac_exeext'
51898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51899 (eval $ac_try) 2>&5
51901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51902 (exit $ac_status); }; }; then
51903 ac_cv_lib_ltdl_lt_dlinit=yes
51905 echo "$as_me: failed program was:" >&5
51906 sed 's/^/| /' conftest.$ac_ext >&5
51908 ac_cv_lib_ltdl_lt_dlinit=no
51910 rm -f conftest.err conftest.$ac_objext \
51911 conftest$ac_exeext conftest.$ac_ext
51912 LIBS=$ac_check_lib_save_LIBS
51914 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
51915 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
51916 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
51919 LIBSLAPI=libslapi.a
51920 LIBSLAPITOOLS=../libslapi.a
51922 cat >>confdefs.h <<\_ACEOF
51923 #define HAVE_LIBLTDL 1
51928 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
51929 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
51930 { (exit 1); exit 1; }; }
51935 cat >>confdefs.h <<\_ACEOF
51936 #define LDAP_SLAPI 1
51941 if test "$ol_enable_debug" != no ; then
51943 cat >>confdefs.h <<\_ACEOF
51944 #define LDAP_DEBUG 1
51948 if test "$ol_enable_syslog" = yes ; then
51950 cat >>confdefs.h <<\_ACEOF
51951 #define LDAP_SYSLOG 1
51955 if test "$ol_link_kbind" != no ; then
51957 cat >>confdefs.h <<\_ACEOF
51958 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
51962 if test "$ol_enable_proctitle" != no ; then
51964 cat >>confdefs.h <<\_ACEOF
51965 #define LDAP_PROCTITLE 1
51969 if test "$ol_enable_referrals" != no ; then
51971 cat >>confdefs.h <<\_ACEOF
51972 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
51976 if test "$ol_enable_local" != no; then
51978 cat >>confdefs.h <<\_ACEOF
51979 #define LDAP_PF_LOCAL 1
51983 if test "$ol_link_ipv6" != no; then
51985 cat >>confdefs.h <<\_ACEOF
51986 #define LDAP_PF_INET6 1
51990 if test "$ol_enable_cleartext" != no ; then
51992 cat >>confdefs.h <<\_ACEOF
51993 #define SLAPD_CLEARTEXT 1
51997 if test "$ol_enable_crypt" != no ; then
51999 cat >>confdefs.h <<\_ACEOF
52000 #define SLAPD_CRYPT 1
52004 if test "$ol_link_spasswd" != no ; then
52006 cat >>confdefs.h <<\_ACEOF
52007 #define SLAPD_SPASSWD 1
52011 if test "$ol_enable_multimaster" != no ; then
52013 cat >>confdefs.h <<\_ACEOF
52014 #define SLAPD_MULTIMASTER 1
52018 if test "$ol_enable_rlookups" != no ; then
52020 cat >>confdefs.h <<\_ACEOF
52021 #define SLAPD_RLOOKUPS 1
52025 if test "$ol_enable_aci" != no ; then
52027 cat >>confdefs.h <<\_ACEOF
52028 #define SLAPD_ACI_ENABLED 1
52033 if test "$ol_link_modules" != no ; then
52035 cat >>confdefs.h <<\_ACEOF
52036 #define SLAPD_MODULES 1
52040 SLAPD_MODULES_LDFLAGS="-dlopen self"
52044 cat >>confdefs.h <<\_ACEOF
52045 #define SLAPD_MOD_STATIC 1
52049 cat >>confdefs.h <<\_ACEOF
52050 #define SLAPD_MOD_DYNAMIC 2
52054 if test "$ol_enable_bdb" != no ; then
52056 BUILD_BDB=$ol_enable_bdb
52057 if test "$ol_enable_bdb" = mod ; then
52058 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
52059 MFLAG=SLAPD_MOD_DYNAMIC
52061 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
52062 MFLAG=SLAPD_MOD_STATIC
52065 cat >>confdefs.h <<_ACEOF
52066 #define SLAPD_BDB $MFLAG
52071 if test "$ol_enable_dnssrv" != no ; then
52073 BUILD_DNSSRV=$ol_enable_dnssrv
52074 if test "$ol_enable_dnssrv" = mod ; then
52075 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
52076 MFLAG=SLAPD_MOD_DYNAMIC
52078 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
52079 MFLAG=SLAPD_MOD_STATIC
52082 cat >>confdefs.h <<_ACEOF
52083 #define SLAPD_DNSSRV $MFLAG
52088 if test "$ol_enable_hdb" != no ; then
52090 BUILD_HDB=$ol_enable_hdb
52091 if test "$ol_enable_hdb" = mod ; then
52092 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
52093 MFLAG=SLAPD_MOD_DYNAMIC
52095 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
52096 MFLAG=SLAPD_MOD_STATIC
52099 cat >>confdefs.h <<_ACEOF
52100 #define SLAPD_HDB $MFLAG
52105 if test "$ol_enable_ldap" != no ; then
52107 BUILD_LDAP=$ol_enable_ldap
52108 if test "$ol_enable_ldap" = mod ; then
52109 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
52110 MFLAG=SLAPD_MOD_DYNAMIC
52112 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
52113 MFLAG=SLAPD_MOD_STATIC
52116 cat >>confdefs.h <<_ACEOF
52117 #define SLAPD_LDAP $MFLAG
52122 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
52124 BUILD_LDBM=$ol_enable_ldbm
52125 if test "$ol_enable_ldbm" = mod ; then
52126 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
52127 MFLAG=SLAPD_MOD_DYNAMIC
52129 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
52130 MFLAG=SLAPD_MOD_STATIC
52133 cat >>confdefs.h <<_ACEOF
52134 #define SLAPD_LDBM $MFLAG
52139 if test "$ol_enable_meta" != no ; then
52141 BUILD_META=$ol_enable_meta
52143 if test "$ol_enable_meta" = mod ; then
52144 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
52145 MFLAG=SLAPD_MOD_DYNAMIC
52147 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
52148 MFLAG=SLAPD_MOD_STATIC
52151 cat >>confdefs.h <<_ACEOF
52152 #define SLAPD_META $MFLAG
52157 if test "$ol_enable_monitor" != no ; then
52159 BUILD_MONITOR=$ol_enable_monitor
52160 if test "$ol_enable_monitor" = mod ; then
52161 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
52162 MFLAG=SLAPD_MOD_DYNAMIC
52164 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
52165 MFLAG=SLAPD_MOD_STATIC
52168 cat >>confdefs.h <<_ACEOF
52169 #define SLAPD_MONITOR $MFLAG
52174 if test "$ol_enable_null" != no ; then
52176 BUILD_NULL=$ol_enable_null
52177 if test "$ol_enable_null" = mod ; then
52178 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
52179 MFLAG=SLAPD_MOD_DYNAMIC
52181 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
52182 MFLAG=SLAPD_MOD_STATIC
52185 cat >>confdefs.h <<_ACEOF
52186 #define SLAPD_NULL $MFLAG
52191 if test "$ol_enable_passwd" != no ; then
52193 BUILD_PASSWD=$ol_enable_passwd
52194 if test "$ol_enable_passwd" = mod ; then
52195 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
52196 MFLAG=SLAPD_MOD_DYNAMIC
52198 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
52199 MFLAG=SLAPD_MOD_STATIC
52202 cat >>confdefs.h <<_ACEOF
52203 #define SLAPD_PASSWD $MFLAG
52208 if test "$ol_link_perl" != no ; then
52210 BUILD_PERL=$ol_enable_perl
52211 if test "$ol_enable_perl" = mod ; then
52212 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
52213 MFLAG=SLAPD_MOD_DYNAMIC
52215 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
52216 MFLAG=SLAPD_MOD_STATIC
52219 cat >>confdefs.h <<_ACEOF
52220 #define SLAPD_PERL $MFLAG
52225 if test "$ol_enable_relay" != no ; then
52227 BUILD_RELAY=$ol_enable_relay
52228 if test "$ol_enable_relay" = mod ; then
52229 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
52230 MFLAG=SLAPD_MOD_DYNAMIC
52232 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
52233 MFLAG=SLAPD_MOD_STATIC
52236 cat >>confdefs.h <<_ACEOF
52237 #define SLAPD_RELAY $MFLAG
52242 if test "$ol_enable_shell" != no ; then
52243 if test "$ol_link_thread" != no ; then
52244 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
52245 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
52248 BUILD_SHELL=$ol_enable_shell
52249 if test "$ol_enable_shell" = mod ; then
52250 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
52251 MFLAG=SLAPD_MOD_DYNAMIC
52253 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
52254 MFLAG=SLAPD_MOD_STATIC
52257 cat >>confdefs.h <<_ACEOF
52258 #define SLAPD_SHELL $MFLAG
52263 if test "$ol_link_sql" != no ; then
52265 BUILD_SQL=$ol_enable_sql
52266 if test "$ol_enable_sql" = mod; then
52267 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
52268 MFLAG=SLAPD_MOD_DYNAMIC
52270 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
52271 MFLAG=SLAPD_MOD_STATIC
52274 cat >>confdefs.h <<_ACEOF
52275 #define SLAPD_SQL $MFLAG
52280 if test "$ol_enable_accesslog" != no ; then
52281 BUILD_ACCESSLOG=$ol_enable_accesslog
52282 if test "$ol_enable_accesslog" = mod ; then
52283 MFLAG=SLAPD_MOD_DYNAMIC
52284 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
52286 MFLAG=SLAPD_MOD_STATIC
52287 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
52290 cat >>confdefs.h <<_ACEOF
52291 #define SLAPD_OVER_ACCESSLOG $MFLAG
52296 if test "$ol_enable_denyop" != no ; then
52297 BUILD_DENYOP=$ol_enable_denyop
52298 if test "$ol_enable_denyop" = mod ; then
52299 MFLAG=SLAPD_MOD_DYNAMIC
52300 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
52302 MFLAG=SLAPD_MOD_STATIC
52303 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
52306 cat >>confdefs.h <<_ACEOF
52307 #define SLAPD_OVER_DENYOP $MFLAG
52312 if test "$ol_enable_dyngroup" != no ; then
52313 BUILD_DYNGROUP=$ol_enable_dyngroup
52314 if test "$ol_enable_dyngroup" = mod ; then
52315 MFLAG=SLAPD_MOD_DYNAMIC
52316 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
52318 MFLAG=SLAPD_MOD_STATIC
52319 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
52322 cat >>confdefs.h <<_ACEOF
52323 #define SLAPD_OVER_DYNGROUP $MFLAG
52328 if test "$ol_enable_dynlist" != no ; then
52329 BUILD_DYNLIST=$ol_enable_dynlist
52330 if test "$ol_enable_dynlist" = mod ; then
52331 MFLAG=SLAPD_MOD_DYNAMIC
52332 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
52334 MFLAG=SLAPD_MOD_STATIC
52335 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
52338 cat >>confdefs.h <<_ACEOF
52339 #define SLAPD_OVER_DYNLIST $MFLAG
52344 if test "$ol_enable_glue" != no ; then
52345 BUILD_GLUE=$ol_enable_glue
52346 if test "$ol_enable_glue" = mod ; then
52347 MFLAG=SLAPD_MOD_DYNAMIC
52348 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS glue.la"
52350 MFLAG=SLAPD_MOD_STATIC
52351 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS glue.o"
52354 cat >>confdefs.h <<_ACEOF
52355 #define SLAPD_OVER_GLUE $MFLAG
52360 if test "$ol_enable_lastmod" != no ; then
52361 BUILD_LASTMOD=$ol_enable_lastmod
52362 if test "$ol_enable_lastmod" = mod ; then
52363 MFLAG=SLAPD_MOD_DYNAMIC
52364 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
52366 MFLAG=SLAPD_MOD_STATIC
52367 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
52370 cat >>confdefs.h <<_ACEOF
52371 #define SLAPD_OVER_LASTMOD $MFLAG
52376 if test "$ol_enable_ppolicy" != no ; then
52377 BUILD_PPOLICY=$ol_enable_ppolicy
52378 if test "$ol_enable_ppolicy" = mod ; then
52379 MFLAG=SLAPD_MOD_DYNAMIC
52380 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
52382 MFLAG=SLAPD_MOD_STATIC
52383 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
52386 cat >>confdefs.h <<_ACEOF
52387 #define SLAPD_OVER_PPOLICY $MFLAG
52392 if test "$ol_enable_proxycache" != no ; then
52393 BUILD_PROXYCACHE=$ol_enable_proxycache
52394 if test "$ol_enable_proxycache" = mod ; then
52395 MFLAG=SLAPD_MOD_DYNAMIC
52396 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
52398 MFLAG=SLAPD_MOD_STATIC
52399 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
52402 cat >>confdefs.h <<_ACEOF
52403 #define SLAPD_OVER_PROXYCACHE $MFLAG
52408 if test "$ol_enable_refint" != no ; then
52409 BUILD_REFINT=$ol_enable_refint
52410 if test "$ol_enable_refint" = mod ; then
52411 MFLAG=SLAPD_MOD_DYNAMIC
52412 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
52414 MFLAG=SLAPD_MOD_STATIC
52415 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
52418 cat >>confdefs.h <<_ACEOF
52419 #define SLAPD_OVER_REFINT $MFLAG
52424 if test "$ol_enable_retcode" != no ; then
52425 BUILD_RETCODE=$ol_enable_retcode
52426 if test "$ol_enable_retcode" = mod ; then
52427 MFLAG=SLAPD_MOD_DYNAMIC
52428 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
52430 MFLAG=SLAPD_MOD_STATIC
52431 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
52434 cat >>confdefs.h <<_ACEOF
52435 #define SLAPD_OVER_RETCODE $MFLAG
52440 if test "$ol_enable_rwm" != no ; then
52442 BUILD_RWM=$ol_enable_rwm
52443 if test "$ol_enable_rwm" = mod ; then
52444 MFLAG=SLAPD_MOD_DYNAMIC
52445 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
52447 MFLAG=SLAPD_MOD_STATIC
52448 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
52451 cat >>confdefs.h <<_ACEOF
52452 #define SLAPD_OVER_RWM $MFLAG
52457 if test "$ol_enable_syncprov" != no ; then
52458 BUILD_SYNCPROV=$ol_enable_syncprov
52459 if test "$ol_enable_syncprov" = mod ; then
52460 MFLAG=SLAPD_MOD_DYNAMIC
52461 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
52463 MFLAG=SLAPD_MOD_STATIC
52464 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
52467 cat >>confdefs.h <<_ACEOF
52468 #define SLAPD_OVER_SYNCPROV $MFLAG
52473 if test "$ol_enable_translucent" != no ; then
52474 BUILD_TRANSLUCENT=$ol_enable_translucent
52475 if test "$ol_enable_translucent" = mod ; then
52476 MFLAG=SLAPD_MOD_DYNAMIC
52477 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
52479 MFLAG=SLAPD_MOD_STATIC
52480 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
52483 cat >>confdefs.h <<_ACEOF
52484 #define SLAPD_OVER_TRANSLUCENT $MFLAG
52489 if test "$ol_enable_unique" != no ; then
52490 BUILD_UNIQUE=$ol_enable_unique
52491 if test "$ol_enable_unique" = mod ; then
52492 MFLAG=SLAPD_MOD_DYNAMIC
52493 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
52495 MFLAG=SLAPD_MOD_STATIC
52496 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
52499 cat >>confdefs.h <<_ACEOF
52500 #define SLAPD_OVER_UNIQUE $MFLAG
52505 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
52506 $BUILD_SLAPD = yes ; then
52510 if test "$ol_enable_rewrite" != no ; then
52512 cat >>confdefs.h <<\_ACEOF
52513 #define ENABLE_REWRITE 1
52519 if test "$ol_enable_slapi" != no ; then
52521 cat >>confdefs.h <<\_ACEOF
52522 #define ENABLE_SLAPI 1
52526 SLAPD_SLAPI_DEPEND=libslapi.a
52531 if test "$ac_cv_mingw32" = yes ; then
52533 SLAPD_MODULES_LDFLAGS=
52616 # Check whether --with-xxinstall or --without-xxinstall was given.
52617 if test "${with_xxinstall+set}" = set; then
52618 withval="$with_xxinstall"
52623 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"
52626 ac_config_commands="$ac_config_commands default"
52630 test "x$prefix" = xNONE && prefix=$ac_default_prefix
52631 # Let make expand exec_prefix.
52632 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
52634 # VPATH may cause trouble with some makes, so we remove $(srcdir),
52635 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
52636 # trailing colons and then remove the whole line if VPATH becomes empty
52637 # (actually we leave an empty line to preserve line numbers).
52638 if test "x$srcdir" = x.; then
52639 ac_vpsub='/^[ ]*VPATH[ ]*=/{
52640 s/:*\$(srcdir):*/:/;
52641 s/:*\${srcdir}:*/:/;
52643 s/^\([^=]*=[ ]*\):*/\1/;
52649 DEFS=-DHAVE_CONFIG_H
52653 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
52654 # 1. Remove the extension, and $U if already installed.
52655 ac_i=`echo "$ac_i" |
52656 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
52658 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
52659 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
52661 LIBOBJS=$ac_libobjs
52663 LTLIBOBJS=$ac_ltlibobjs
52666 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
52667 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
52668 Usually this means the macro was only invoked conditionally." >&5
52669 echo "$as_me: error: conditional \"AMDEP\" was never defined.
52670 Usually this means the macro was only invoked conditionally." >&2;}
52671 { (exit 1); exit 1; }; }
52673 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
52674 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
52675 Usually this means the macro was only invoked conditionally." >&5
52676 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
52677 Usually this means the macro was only invoked conditionally." >&2;}
52678 { (exit 1); exit 1; }; }
52680 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
52681 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
52682 Usually this means the macro was only invoked conditionally." >&5
52683 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
52684 Usually this means the macro was only invoked conditionally." >&2;}
52685 { (exit 1); exit 1; }; }
52687 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
52688 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
52689 Usually this means the macro was only invoked conditionally." >&5
52690 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
52691 Usually this means the macro was only invoked conditionally." >&2;}
52692 { (exit 1); exit 1; }; }
52695 : ${CONFIG_STATUS=./config.status}
52696 ac_clean_files_save=$ac_clean_files
52697 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
52698 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
52699 echo "$as_me: creating $CONFIG_STATUS" >&6;}
52700 cat >$CONFIG_STATUS <<_ACEOF
52702 # Generated by $as_me.
52703 # Run this file to recreate the current configuration.
52704 # Compiler output produced by configure, useful for debugging
52705 # configure, is in config.log if it exists.
52708 ac_cs_recheck=false
52710 SHELL=\${CONFIG_SHELL-$SHELL}
52713 cat >>$CONFIG_STATUS <<\_ACEOF
52714 ## --------------------- ##
52715 ## M4sh Initialization. ##
52716 ## --------------------- ##
52718 # Be Bourne compatible
52719 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
52722 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
52723 # is contrary to our usage. Disable this feature.
52724 alias -g '${1+"$@"}'='"$@"'
52725 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
52728 DUALCASE=1; export DUALCASE # for MKS sh
52730 # Support unset when possible.
52731 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
52738 # Work around bugs in pre-3.0 UWIN ksh.
52739 $as_unset ENV MAIL MAILPATH
52746 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
52747 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
52748 LC_TELEPHONE LC_TIME
52750 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
52751 eval $as_var=C; export $as_var
52757 # Required to use basename.
52758 if expr a : '\(a\)' >/dev/null 2>&1; then
52764 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
52765 as_basename=basename
52771 # Name of the executable.
52772 as_me=`$as_basename "$0" ||
52773 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
52774 X"$0" : 'X\(//\)$' \| \
52775 X"$0" : 'X\(/\)$' \| \
52776 . : '\(.\)' 2>/dev/null ||
52778 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
52779 /^X\/\(\/\/\)$/{ s//\1/; q; }
52780 /^X\/\(\/\).*/{ s//\1/; q; }
52784 # PATH needs CR, and LINENO needs CR and PATH.
52785 # Avoid depending upon Character Ranges.
52786 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
52787 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
52788 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
52789 as_cr_digits='0123456789'
52790 as_cr_alnum=$as_cr_Letters$as_cr_digits
52792 # The user is always right.
52793 if test "${PATH_SEPARATOR+set}" != set; then
52794 echo "#! /bin/sh" >conf$$.sh
52795 echo "exit 0" >>conf$$.sh
52797 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
52806 as_lineno_1=$LINENO
52807 as_lineno_2=$LINENO
52808 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
52809 test "x$as_lineno_1" != "x$as_lineno_2" &&
52810 test "x$as_lineno_3" = "x$as_lineno_2" || {
52811 # Find who we are. Look in the path if we contain no path at all
52814 *[\\/]* ) as_myself=$0 ;;
52815 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52816 for as_dir in $PATH
52819 test -z "$as_dir" && as_dir=.
52820 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
52825 # We did not find ourselves, most probably we were run as `sh COMMAND'
52826 # in which case we are not to be found in the path.
52827 if test "x$as_myself" = x; then
52830 if test ! -f "$as_myself"; then
52831 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
52832 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
52833 { (exit 1); exit 1; }; }
52835 case $CONFIG_SHELL in
52837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52838 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
52841 test -z "$as_dir" && as_dir=.
52842 for as_base in sh bash ksh sh5; do
52845 if ("$as_dir/$as_base" -c '
52846 as_lineno_1=$LINENO
52847 as_lineno_2=$LINENO
52848 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
52849 test "x$as_lineno_1" != "x$as_lineno_2" &&
52850 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
52851 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
52852 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
52853 CONFIG_SHELL=$as_dir/$as_base
52854 export CONFIG_SHELL
52855 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
52863 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
52864 # uniformly replaced by the line number. The first 'sed' inserts a
52865 # line-number line before each line; the second 'sed' does the real
52866 # work. The second script uses 'N' to pair each line-number line
52867 # with the numbered line, and appends trailing '-' during
52868 # substitution so that $LINENO is not a special case at line end.
52869 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
52870 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
52871 sed '=' <$as_myself |
52876 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
52879 s,^['$as_cr_digits']*\n,,
52880 ' >$as_me.lineno &&
52881 chmod +x $as_me.lineno ||
52882 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
52883 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
52884 { (exit 1); exit 1; }; }
52886 # Don't try to exec as it changes $[0], causing all sort of problems
52887 # (the dirname of $[0] is not the place where we might find the
52888 # original and so on. Autoconf is especially sensible to this).
52890 # Exit status is that of the last command.
52895 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
52896 *c*,-n*) ECHO_N= ECHO_C='
52898 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
52899 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
52902 if expr a : '\(a\)' >/dev/null 2>&1; then
52908 rm -f conf$$ conf$$.exe conf$$.file
52910 if ln -s conf$$.file conf$$ 2>/dev/null; then
52911 # We could just check for DJGPP; but this test a) works b) is more generic
52912 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
52913 if test -f conf$$.exe; then
52914 # Don't use ln at all; we don't have any links
52919 elif ln conf$$.file conf$$ 2>/dev/null; then
52924 rm -f conf$$ conf$$.exe conf$$.file
52926 if mkdir -p . 2>/dev/null; then
52929 test -d ./-p && rmdir ./-p
52933 as_executable_p="test -f"
52935 # Sed expression to map a string onto a valid CPP name.
52936 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
52938 # Sed expression to map a string onto a valid variable name.
52939 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
52943 # We need space, tab and new line, in precisely that order.
52953 # Open the log real soon, to keep \$[0] and so on meaningful, and to
52954 # report actual input values of CONFIG_FILES etc. instead of their
52955 # values after options handling. Logging --version etc. is OK.
52959 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
52960 ## Running $as_me. ##
52965 This file was extended by $as_me, which was
52966 generated by GNU Autoconf 2.59. Invocation command line was
52968 CONFIG_FILES = $CONFIG_FILES
52969 CONFIG_HEADERS = $CONFIG_HEADERS
52970 CONFIG_LINKS = $CONFIG_LINKS
52971 CONFIG_COMMANDS = $CONFIG_COMMANDS
52975 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
52979 # Files that config.status was made for.
52980 if test -n "$ac_config_files"; then
52981 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
52984 if test -n "$ac_config_headers"; then
52985 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
52988 if test -n "$ac_config_links"; then
52989 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
52992 if test -n "$ac_config_commands"; then
52993 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
52996 cat >>$CONFIG_STATUS <<\_ACEOF
52999 \`$as_me' instantiates files from templates according to the
53000 current configuration.
53002 Usage: $0 [OPTIONS] [FILE]...
53004 -h, --help print this help, then exit
53005 -V, --version print version number, then exit
53006 -q, --quiet do not print progress messages
53007 -d, --debug don't remove temporary files
53008 --recheck update $as_me by reconfiguring in the same conditions
53009 --file=FILE[:TEMPLATE]
53010 instantiate the configuration file FILE
53011 --header=FILE[:TEMPLATE]
53012 instantiate the configuration header FILE
53014 Configuration files:
53017 Configuration headers:
53020 Configuration commands:
53023 Report bugs to <bug-autoconf@gnu.org>."
53026 cat >>$CONFIG_STATUS <<_ACEOF
53029 configured by $0, generated by GNU Autoconf 2.59,
53030 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
53032 Copyright (C) 2003 Free Software Foundation, Inc.
53033 This config.status script is free software; the Free Software Foundation
53034 gives unlimited permission to copy, distribute and modify it."
53039 cat >>$CONFIG_STATUS <<\_ACEOF
53040 # If no file are specified by the user, then we need to provide default
53041 # value. By we need to know if files were specified by the user.
53047 ac_option=`expr "x$1" : 'x\([^=]*\)='`
53048 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
53056 *) # This is not an option, so the user has probably given explicit
53059 ac_need_defaults=false;;
53063 # Handling of the options.
53065 cat >>$CONFIG_STATUS <<\_ACEOF
53066 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
53068 --version | --vers* | -V )
53069 echo "$ac_cs_version"; exit 0 ;;
53071 # Conflict between --help and --header
53072 { { echo "$as_me:$LINENO: error: ambiguous option: $1
53073 Try \`$0 --help' for more information." >&5
53074 echo "$as_me: error: ambiguous option: $1
53075 Try \`$0 --help' for more information." >&2;}
53076 { (exit 1); exit 1; }; };;
53077 --help | --hel | -h )
53078 echo "$ac_cs_usage"; exit 0 ;;
53079 --debug | --d* | -d )
53081 --file | --fil | --fi | --f )
53083 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
53084 ac_need_defaults=false;;
53085 --header | --heade | --head | --hea )
53087 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
53088 ac_need_defaults=false;;
53089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
53090 | -silent | --silent | --silen | --sile | --sil | --si | --s)
53093 # This is an error.
53094 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
53095 Try \`$0 --help' for more information." >&5
53096 echo "$as_me: error: unrecognized option: $1
53097 Try \`$0 --help' for more information." >&2;}
53098 { (exit 1); exit 1; }; } ;;
53100 *) ac_config_targets="$ac_config_targets $1" ;;
53106 ac_configure_extra_args=
53108 if $ac_cs_silent; then
53110 ac_configure_extra_args="$ac_configure_extra_args --silent"
53114 cat >>$CONFIG_STATUS <<_ACEOF
53115 if \$ac_cs_recheck; then
53116 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
53117 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
53122 cat >>$CONFIG_STATUS <<_ACEOF
53124 # INIT-COMMANDS section.
53127 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
53128 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
53134 cat >>$CONFIG_STATUS <<\_ACEOF
53135 for ac_config_target in $ac_config_targets
53137 case "$ac_config_target" in
53138 # Handling of arguments.
53139 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
53140 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
53141 "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
53142 "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
53143 "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
53144 "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
53145 "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
53146 "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
53147 "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
53148 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
53149 "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
53150 "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
53151 "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
53152 "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" ;;
53153 "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
53154 "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
53155 "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
53156 "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
53157 "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
53158 "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" ;;
53159 "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" ;;
53160 "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" ;;
53161 "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" ;;
53162 "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" ;;
53163 "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" ;;
53164 "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" ;;
53165 "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" ;;
53166 "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" ;;
53167 "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" ;;
53168 "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" ;;
53169 "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" ;;
53170 "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" ;;
53171 "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" ;;
53172 "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" ;;
53173 "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" ;;
53174 "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
53175 "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
53176 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
53177 "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
53178 "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
53179 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
53180 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
53181 "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
53182 "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
53183 "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
53184 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
53185 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
53186 { (exit 1); exit 1; }; };;
53190 # If the user did not use the arguments to specify the items to instantiate,
53191 # then the envvar interface is used. Set only those that are not.
53192 # We use the long form for the default assignment because of an extremely
53193 # bizarre bug on SunOS 4.1.3.
53194 if $ac_need_defaults; then
53195 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
53196 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
53197 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
53200 # Have a temporary directory for convenience. Make it in the build tree
53201 # simply because there is no reason to put it here, and in addition,
53202 # creating and moving files from /tmp can sometimes cause problems.
53203 # Create a temporary directory, and hook for its removal unless debugging.
53206 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
53207 trap '{ (exit 1); exit 1; }' 1 2 13 15
53210 # Create a (secure) tmp directory for tmp files.
53213 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
53214 test -n "$tmp" && test -d "$tmp"
53217 tmp=./confstat$$-$RANDOM
53218 (umask 077 && mkdir $tmp)
53221 echo "$me: cannot create a temporary directory in ." >&2
53222 { (exit 1); exit 1; }
53227 cat >>$CONFIG_STATUS <<_ACEOF
53230 # CONFIG_FILES section.
53233 # No need to generate the scripts if there are no CONFIG_FILES.
53234 # This happens for instance when ./config.status config.h
53235 if test -n "\$CONFIG_FILES"; then
53236 # Protect against being on the right side of a sed subst in config.status.
53237 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
53238 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
53239 s,@SHELL@,$SHELL,;t t
53240 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
53241 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
53242 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
53243 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
53244 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
53245 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
53246 s,@exec_prefix@,$exec_prefix,;t t
53247 s,@prefix@,$prefix,;t t
53248 s,@program_transform_name@,$program_transform_name,;t t
53249 s,@bindir@,$bindir,;t t
53250 s,@sbindir@,$sbindir,;t t
53251 s,@libexecdir@,$libexecdir,;t t
53252 s,@datadir@,$datadir,;t t
53253 s,@sysconfdir@,$sysconfdir,;t t
53254 s,@sharedstatedir@,$sharedstatedir,;t t
53255 s,@localstatedir@,$localstatedir,;t t
53256 s,@libdir@,$libdir,;t t
53257 s,@includedir@,$includedir,;t t
53258 s,@oldincludedir@,$oldincludedir,;t t
53259 s,@infodir@,$infodir,;t t
53260 s,@mandir@,$mandir,;t t
53261 s,@build_alias@,$build_alias,;t t
53262 s,@host_alias@,$host_alias,;t t
53263 s,@target_alias@,$target_alias,;t t
53264 s,@DEFS@,$DEFS,;t t
53265 s,@ECHO_C@,$ECHO_C,;t t
53266 s,@ECHO_N@,$ECHO_N,;t t
53267 s,@ECHO_T@,$ECHO_T,;t t
53268 s,@LIBS@,$LIBS,;t t
53269 s,@build@,$build,;t t
53270 s,@build_cpu@,$build_cpu,;t t
53271 s,@build_vendor@,$build_vendor,;t t
53272 s,@build_os@,$build_os,;t t
53273 s,@host@,$host,;t t
53274 s,@host_cpu@,$host_cpu,;t t
53275 s,@host_vendor@,$host_vendor,;t t
53276 s,@host_os@,$host_os,;t t
53277 s,@target@,$target,;t t
53278 s,@target_cpu@,$target_cpu,;t t
53279 s,@target_vendor@,$target_vendor,;t t
53280 s,@target_os@,$target_os,;t t
53281 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
53282 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
53283 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
53284 s,@CYGPATH_W@,$CYGPATH_W,;t t
53285 s,@PACKAGE@,$PACKAGE,;t t
53286 s,@VERSION@,$VERSION,;t t
53287 s,@ACLOCAL@,$ACLOCAL,;t t
53288 s,@AUTOCONF@,$AUTOCONF,;t t
53289 s,@AUTOMAKE@,$AUTOMAKE,;t t
53290 s,@AUTOHEADER@,$AUTOHEADER,;t t
53291 s,@MAKEINFO@,$MAKEINFO,;t t
53292 s,@install_sh@,$install_sh,;t t
53293 s,@STRIP@,$STRIP,;t t
53294 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
53295 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
53296 s,@mkdir_p@,$mkdir_p,;t t
53298 s,@SET_MAKE@,$SET_MAKE,;t t
53299 s,@am__leading_dot@,$am__leading_dot,;t t
53300 s,@AMTAR@,$AMTAR,;t t
53301 s,@am__tar@,$am__tar,;t t
53302 s,@am__untar@,$am__untar,;t t
53303 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
53304 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
53305 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
53306 s,@top_builddir@,$top_builddir,;t t
53307 s,@ldap_subdir@,$ldap_subdir,;t t
53310 s,@CFLAGS@,$CFLAGS,;t t
53311 s,@LDFLAGS@,$LDFLAGS,;t t
53312 s,@CPPFLAGS@,$CPPFLAGS,;t t
53313 s,@ac_ct_CC@,$ac_ct_CC,;t t
53314 s,@EXEEXT@,$EXEEXT,;t t
53315 s,@OBJEXT@,$OBJEXT,;t t
53316 s,@DEPDIR@,$DEPDIR,;t t
53317 s,@am__include@,$am__include,;t t
53318 s,@am__quote@,$am__quote,;t t
53319 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
53320 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
53321 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
53322 s,@CCDEPMODE@,$CCDEPMODE,;t t
53323 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
53324 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
53325 s,@EGREP@,$EGREP,;t t
53326 s,@LN_S@,$LN_S,;t t
53327 s,@ECHO@,$ECHO,;t t
53328 s,@ac_ct_AR@,$ac_ct_AR,;t t
53329 s,@RANLIB@,$RANLIB,;t t
53330 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
53331 s,@DLLTOOL@,$DLLTOOL,;t t
53332 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
53334 s,@ac_ct_AS@,$ac_ct_AS,;t t
53335 s,@OBJDUMP@,$OBJDUMP,;t t
53336 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
53339 s,@CXXFLAGS@,$CXXFLAGS,;t t
53340 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
53341 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
53342 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
53343 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
53344 s,@CXXCPP@,$CXXCPP,;t t
53346 s,@FFLAGS@,$FFLAGS,;t t
53347 s,@ac_ct_F77@,$ac_ct_F77,;t t
53348 s,@LIBTOOL@,$LIBTOOL,;t t
53349 s,@PERLBIN@,$PERLBIN,;t t
53350 s,@OL_MKDEP@,$OL_MKDEP,;t t
53351 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
53352 s,@LTSTATIC@,$LTSTATIC,;t t
53353 s,@LIBOBJS@,$LIBOBJS,;t t
53354 s,@LIBSRCS@,$LIBSRCS,;t t
53355 s,@PLAT@,$PLAT,;t t
53356 s,@WITH_SASL@,$WITH_SASL,;t t
53357 s,@WITH_TLS@,$WITH_TLS,;t t
53358 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
53359 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
53360 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
53361 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
53362 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
53363 s,@BUILD_BDB@,$BUILD_BDB,;t t
53364 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
53365 s,@BUILD_HDB@,$BUILD_HDB,;t t
53366 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
53367 s,@BUILD_LDBM@,$BUILD_LDBM,;t t
53368 s,@BUILD_META@,$BUILD_META,;t t
53369 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
53370 s,@BUILD_NULL@,$BUILD_NULL,;t t
53371 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
53372 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
53373 s,@BUILD_PERL@,$BUILD_PERL,;t t
53374 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
53375 s,@BUILD_SQL@,$BUILD_SQL,;t t
53376 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
53377 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
53378 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
53379 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
53380 s,@BUILD_GLUE@,$BUILD_GLUE,;t t
53381 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
53382 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
53383 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
53384 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
53385 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
53386 s,@BUILD_RWM@,$BUILD_RWM,;t t
53387 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
53388 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
53389 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
53390 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
53391 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
53392 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
53393 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
53394 s,@LDBM_LIBS@,$LDBM_LIBS,;t t
53395 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
53396 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
53397 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
53398 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
53399 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
53400 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
53401 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
53402 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
53403 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
53404 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
53405 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
53406 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
53407 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
53408 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
53409 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
53410 s,@SASL_LIBS@,$SASL_LIBS,;t t
53411 s,@TLS_LIBS@,$TLS_LIBS,;t t
53412 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
53413 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
53414 s,@LIBSLAPI@,$LIBSLAPI,;t t
53415 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
53416 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
53417 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
53418 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
53419 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
53420 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
53421 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
53422 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
53427 cat >>$CONFIG_STATUS <<\_ACEOF
53428 # Split the substitutions into bite-sized pieces for seds with
53429 # small command number limits, like on Digital OSF/1 and HP-UX.
53430 ac_max_sed_lines=48
53431 ac_sed_frag=1 # Number of current file.
53432 ac_beg=1 # First line for current file.
53433 ac_end=$ac_max_sed_lines # Line after last line for current file.
53436 while $ac_more_lines; do
53437 if test $ac_beg -gt 1; then
53438 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
53440 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
53442 if test ! -s $tmp/subs.frag; then
53443 ac_more_lines=false
53445 # The purpose of the label and of the branching condition is to
53446 # speed up the sed processing (if there are no `@' at all, there
53447 # is no need to browse any of the substitutions).
53448 # These are the two extra sed commands mentioned above.
53450 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
53451 if test -z "$ac_sed_cmds"; then
53452 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
53454 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
53456 ac_sed_frag=`expr $ac_sed_frag + 1`
53458 ac_end=`expr $ac_end + $ac_max_sed_lines`
53461 if test -z "$ac_sed_cmds"; then
53464 fi # test -n "$CONFIG_FILES"
53467 cat >>$CONFIG_STATUS <<\_ACEOF
53468 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
53469 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
53471 - | *:- | *:-:* ) # input from stdin
53473 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
53474 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
53475 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
53476 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
53477 * ) ac_file_in=$ac_file.in ;;
53480 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
53481 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
53482 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53483 X"$ac_file" : 'X\(//\)[^/]' \| \
53484 X"$ac_file" : 'X\(//\)$' \| \
53485 X"$ac_file" : 'X\(/\)' \| \
53486 . : '\(.\)' 2>/dev/null ||
53488 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
53489 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
53490 /^X\(\/\/\)$/{ s//\1/; q; }
53491 /^X\(\/\).*/{ s//\1/; q; }
53493 { if $as_mkdir_p; then
53498 while test ! -d "$as_dir"; do
53499 as_dirs="$as_dir $as_dirs"
53500 as_dir=`(dirname "$as_dir") 2>/dev/null ||
53501 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53502 X"$as_dir" : 'X\(//\)[^/]' \| \
53503 X"$as_dir" : 'X\(//\)$' \| \
53504 X"$as_dir" : 'X\(/\)' \| \
53505 . : '\(.\)' 2>/dev/null ||
53507 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
53508 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
53509 /^X\(\/\/\)$/{ s//\1/; q; }
53510 /^X\(\/\).*/{ s//\1/; q; }
53513 test ! -n "$as_dirs" || mkdir $as_dirs
53514 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
53515 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
53516 { (exit 1); exit 1; }; }; }
53520 if test "$ac_dir" != .; then
53521 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
53522 # A "../" for each directory in $ac_dir_suffix.
53523 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
53525 ac_dir_suffix= ac_top_builddir=
53529 .) # No --srcdir option. We are building in place.
53531 if test -z "$ac_top_builddir"; then
53534 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
53536 [\\/]* | ?:[\\/]* ) # Absolute path.
53537 ac_srcdir=$srcdir$ac_dir_suffix;
53538 ac_top_srcdir=$srcdir ;;
53539 *) # Relative path.
53540 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
53541 ac_top_srcdir=$ac_top_builddir$srcdir ;;
53544 # Do not use `cd foo && pwd` to compute absolute paths, because
53545 # the directories may not exist.
53547 .) ac_abs_builddir="$ac_dir";;
53550 .) ac_abs_builddir=`pwd`;;
53551 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
53552 *) ac_abs_builddir=`pwd`/"$ac_dir";;
53555 case $ac_abs_builddir in
53556 .) ac_abs_top_builddir=${ac_top_builddir}.;;
53558 case ${ac_top_builddir}. in
53559 .) ac_abs_top_builddir=$ac_abs_builddir;;
53560 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
53561 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
53564 case $ac_abs_builddir in
53565 .) ac_abs_srcdir=$ac_srcdir;;
53568 .) ac_abs_srcdir=$ac_abs_builddir;;
53569 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
53570 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
53573 case $ac_abs_builddir in
53574 .) ac_abs_top_srcdir=$ac_top_srcdir;;
53576 case $ac_top_srcdir in
53577 .) ac_abs_top_srcdir=$ac_abs_builddir;;
53578 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
53579 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
53585 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
53586 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
53589 if test x"$ac_file" != x-; then
53590 { echo "$as_me:$LINENO: creating $ac_file" >&5
53591 echo "$as_me: creating $ac_file" >&6;}
53594 # Let's still pretend it is `configure' which instantiates (i.e., don't
53595 # use $as_me), people would be surprised to read:
53596 # /* config.h. Generated by config.status. */
53597 if test x"$ac_file" = x-; then
53600 configure_input="$ac_file. "
53602 configure_input=$configure_input"Generated from `echo $ac_file_in |
53603 sed 's,.*/,,'` by configure."
53605 # First look for the input files in the build tree, otherwise in the
53607 ac_file_inputs=`IFS=:
53608 for f in $ac_file_in; do
53610 -) echo $tmp/stdin ;;
53612 # Absolute (can't be DOS-style, as IFS=:)
53613 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
53614 echo "$as_me: error: cannot find input file: $f" >&2;}
53615 { (exit 1); exit 1; }; }
53618 if test -f "$f"; then
53621 elif test -f "$srcdir/$f"; then
53626 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
53627 echo "$as_me: error: cannot find input file: $f" >&2;}
53628 { (exit 1); exit 1; }; }
53631 done` || { (exit 1); exit 1; }
53633 cat >>$CONFIG_STATUS <<_ACEOF
53637 cat >>$CONFIG_STATUS <<\_ACEOF
53639 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
53640 s,@configure_input@,$configure_input,;t t
53641 s,@srcdir@,$ac_srcdir,;t t
53642 s,@abs_srcdir@,$ac_abs_srcdir,;t t
53643 s,@top_srcdir@,$ac_top_srcdir,;t t
53644 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
53645 s,@builddir@,$ac_builddir,;t t
53646 s,@abs_builddir@,$ac_abs_builddir,;t t
53647 s,@top_builddir@,$ac_top_builddir,;t t
53648 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
53649 s,@INSTALL@,$ac_INSTALL,;t t
53650 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
53652 if test x"$ac_file" != x-; then
53653 mv $tmp/out $ac_file
53661 cat >>$CONFIG_STATUS <<\_ACEOF
53664 # CONFIG_HEADER section.
53667 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
53668 # NAME is the cpp macro being defined and VALUE is the value it is being given.
53670 # ac_d sets the value in "#define NAME VALUE" lines.
53671 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
53672 ac_dB='[ ].*$,\1#\2'
53675 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
53676 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
53677 ac_uB='$,\1#\2define\3'
53681 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
53682 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
53684 - | *:- | *:-:* ) # input from stdin
53686 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
53687 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
53688 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
53689 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
53690 * ) ac_file_in=$ac_file.in ;;
53693 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
53694 echo "$as_me: creating $ac_file" >&6;}
53696 # First look for the input files in the build tree, otherwise in the
53698 ac_file_inputs=`IFS=:
53699 for f in $ac_file_in; do
53701 -) echo $tmp/stdin ;;
53703 # Absolute (can't be DOS-style, as IFS=:)
53704 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
53705 echo "$as_me: error: cannot find input file: $f" >&2;}
53706 { (exit 1); exit 1; }; }
53707 # Do quote $f, to prevent DOS paths from being IFS'd.
53710 if test -f "$f"; then
53713 elif test -f "$srcdir/$f"; then
53718 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
53719 echo "$as_me: error: cannot find input file: $f" >&2;}
53720 { (exit 1); exit 1; }; }
53723 done` || { (exit 1); exit 1; }
53724 # Remove the trailing spaces.
53725 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
53729 # Transform confdefs.h into two sed scripts, `conftest.defines' and
53730 # `conftest.undefs', that substitutes the proper values into
53731 # config.h.in to produce config.h. The first handles `#define'
53732 # templates, and the second `#undef' templates.
53733 # And first: Protect against being on the right side of a sed subst in
53734 # config.status. Protect against being in an unquoted here document
53735 # in config.status.
53736 rm -f conftest.defines conftest.undefs
53737 # Using a here document instead of a string reduces the quoting nightmare.
53738 # Putting comments in sed scripts is not portable.
53740 # `end' is used to avoid that the second main sed command (meant for
53741 # 0-ary CPP macros) applies to n-ary macro definitions.
53742 # See the Autoconf documentation for `clear'.
53743 cat >confdef2sed.sed <<\_ACEOF
53748 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
53750 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
53753 # If some macros were called several times there might be several times
53754 # the same #defines, which is useless. Nevertheless, we may not want to
53755 # sort them, since we want the *last* AC-DEFINE to be honored.
53756 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
53757 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
53758 rm -f confdef2sed.sed
53760 # This sed command replaces #undef with comments. This is necessary, for
53761 # example, in the case of _POSIX_SOURCE, which is predefined and required
53762 # on some systems where configure will not decide to define it.
53763 cat >>conftest.undefs <<\_ACEOF
53764 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
53767 # Break up conftest.defines because some shells have a limit on the size
53768 # of here documents, and old seds have small limits too (100 cmds).
53769 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
53770 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
53771 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
53772 echo ' :' >>$CONFIG_STATUS
53773 rm -f conftest.tail
53774 while grep . conftest.defines >/dev/null
53776 # Write a limited-size here document to $tmp/defines.sed.
53777 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
53778 # Speed up: don't consider the non `#define' lines.
53779 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
53780 # Work around the forget-to-reset-the-flag bug.
53781 echo 't clr' >>$CONFIG_STATUS
53782 echo ': clr' >>$CONFIG_STATUS
53783 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
53785 sed -f $tmp/defines.sed $tmp/in >$tmp/out
53787 mv $tmp/out $tmp/in
53789 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
53790 rm -f conftest.defines
53791 mv conftest.tail conftest.defines
53793 rm -f conftest.defines
53794 echo ' fi # grep' >>$CONFIG_STATUS
53795 echo >>$CONFIG_STATUS
53797 # Break up conftest.undefs because some shells have a limit on the size
53798 # of here documents, and old seds have small limits too (100 cmds).
53799 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
53800 rm -f conftest.tail
53801 while grep . conftest.undefs >/dev/null
53803 # Write a limited-size here document to $tmp/undefs.sed.
53804 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
53805 # Speed up: don't consider the non `#undef'
53806 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
53807 # Work around the forget-to-reset-the-flag bug.
53808 echo 't clr' >>$CONFIG_STATUS
53809 echo ': clr' >>$CONFIG_STATUS
53810 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
53812 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
53814 mv $tmp/out $tmp/in
53816 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
53817 rm -f conftest.undefs
53818 mv conftest.tail conftest.undefs
53820 rm -f conftest.undefs
53822 cat >>$CONFIG_STATUS <<\_ACEOF
53823 # Let's still pretend it is `configure' which instantiates (i.e., don't
53824 # use $as_me), people would be surprised to read:
53825 # /* config.h. Generated by config.status. */
53826 if test x"$ac_file" = x-; then
53827 echo "/* Generated by configure. */" >$tmp/config.h
53829 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
53831 cat $tmp/in >>$tmp/config.h
53833 if test x"$ac_file" != x-; then
53834 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
53835 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
53836 echo "$as_me: $ac_file is unchanged" >&6;}
53838 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
53839 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53840 X"$ac_file" : 'X\(//\)[^/]' \| \
53841 X"$ac_file" : 'X\(//\)$' \| \
53842 X"$ac_file" : 'X\(/\)' \| \
53843 . : '\(.\)' 2>/dev/null ||
53845 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
53846 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
53847 /^X\(\/\/\)$/{ s//\1/; q; }
53848 /^X\(\/\).*/{ s//\1/; q; }
53850 { if $as_mkdir_p; then
53855 while test ! -d "$as_dir"; do
53856 as_dirs="$as_dir $as_dirs"
53857 as_dir=`(dirname "$as_dir") 2>/dev/null ||
53858 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53859 X"$as_dir" : 'X\(//\)[^/]' \| \
53860 X"$as_dir" : 'X\(//\)$' \| \
53861 X"$as_dir" : 'X\(/\)' \| \
53862 . : '\(.\)' 2>/dev/null ||
53864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
53865 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
53866 /^X\(\/\/\)$/{ s//\1/; q; }
53867 /^X\(\/\).*/{ s//\1/; q; }
53870 test ! -n "$as_dirs" || mkdir $as_dirs
53871 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
53872 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
53873 { (exit 1); exit 1; }; }; }
53876 mv $tmp/config.h $ac_file
53880 rm -f $tmp/config.h
53882 # Compute $ac_file's index in $config_headers.
53884 for _am_header in $config_headers :; do
53885 case $_am_header in
53886 $ac_file | $ac_file:* )
53889 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
53892 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
53893 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53894 X$ac_file : 'X\(//\)[^/]' \| \
53895 X$ac_file : 'X\(//\)$' \| \
53896 X$ac_file : 'X\(/\)' \| \
53897 . : '\(.\)' 2>/dev/null ||
53899 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
53900 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
53901 /^X\(\/\/\)$/{ s//\1/; q; }
53902 /^X\(\/\).*/{ s//\1/; q; }
53903 s/.*/./; q'`/stamp-h$_am_stamp_count
53906 cat >>$CONFIG_STATUS <<\_ACEOF
53909 # CONFIG_COMMANDS section.
53911 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
53912 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
53913 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
53914 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
53915 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53916 X"$ac_dest" : 'X\(//\)[^/]' \| \
53917 X"$ac_dest" : 'X\(//\)$' \| \
53918 X"$ac_dest" : 'X\(/\)' \| \
53919 . : '\(.\)' 2>/dev/null ||
53921 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
53922 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
53923 /^X\(\/\/\)$/{ s//\1/; q; }
53924 /^X\(\/\).*/{ s//\1/; q; }
53926 { if $as_mkdir_p; then
53931 while test ! -d "$as_dir"; do
53932 as_dirs="$as_dir $as_dirs"
53933 as_dir=`(dirname "$as_dir") 2>/dev/null ||
53934 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53935 X"$as_dir" : 'X\(//\)[^/]' \| \
53936 X"$as_dir" : 'X\(//\)$' \| \
53937 X"$as_dir" : 'X\(/\)' \| \
53938 . : '\(.\)' 2>/dev/null ||
53940 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
53941 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
53942 /^X\(\/\/\)$/{ s//\1/; q; }
53943 /^X\(\/\).*/{ s//\1/; q; }
53946 test ! -n "$as_dirs" || mkdir $as_dirs
53947 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
53948 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
53949 { (exit 1); exit 1; }; }; }
53953 if test "$ac_dir" != .; then
53954 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
53955 # A "../" for each directory in $ac_dir_suffix.
53956 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
53958 ac_dir_suffix= ac_top_builddir=
53962 .) # No --srcdir option. We are building in place.
53964 if test -z "$ac_top_builddir"; then
53967 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
53969 [\\/]* | ?:[\\/]* ) # Absolute path.
53970 ac_srcdir=$srcdir$ac_dir_suffix;
53971 ac_top_srcdir=$srcdir ;;
53972 *) # Relative path.
53973 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
53974 ac_top_srcdir=$ac_top_builddir$srcdir ;;
53977 # Do not use `cd foo && pwd` to compute absolute paths, because
53978 # the directories may not exist.
53980 .) ac_abs_builddir="$ac_dir";;
53983 .) ac_abs_builddir=`pwd`;;
53984 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
53985 *) ac_abs_builddir=`pwd`/"$ac_dir";;
53988 case $ac_abs_builddir in
53989 .) ac_abs_top_builddir=${ac_top_builddir}.;;
53991 case ${ac_top_builddir}. in
53992 .) ac_abs_top_builddir=$ac_abs_builddir;;
53993 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
53994 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
53997 case $ac_abs_builddir in
53998 .) ac_abs_srcdir=$ac_srcdir;;
54001 .) ac_abs_srcdir=$ac_abs_builddir;;
54002 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
54003 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
54006 case $ac_abs_builddir in
54007 .) ac_abs_top_srcdir=$ac_top_srcdir;;
54009 case $ac_top_srcdir in
54010 .) ac_abs_top_srcdir=$ac_abs_builddir;;
54011 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
54012 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
54017 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
54018 echo "$as_me: executing $ac_dest commands" >&6;}
54020 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
54021 # Strip MF so we end up with the name of the file.
54022 mf=`echo "$mf" | sed -e 's/:.*$//'`
54023 # Check whether this is an Automake generated Makefile or not.
54024 # We used to match only the files named `Makefile.in', but
54025 # some people rename them; so instead we look at the file content.
54026 # Grep'ing the first line is not enough: some people post-process
54027 # each Makefile.in and add a new line on top of each file to say so.
54028 # So let's grep whole file.
54029 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
54030 dirpart=`(dirname "$mf") 2>/dev/null ||
54031 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54032 X"$mf" : 'X\(//\)[^/]' \| \
54033 X"$mf" : 'X\(//\)$' \| \
54034 X"$mf" : 'X\(/\)' \| \
54035 . : '\(.\)' 2>/dev/null ||
54037 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54038 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54039 /^X\(\/\/\)$/{ s//\1/; q; }
54040 /^X\(\/\).*/{ s//\1/; q; }
54045 # Extract the definition of DEPDIR, am__include, and am__quote
54046 # from the Makefile without running `make'.
54047 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
54048 test -z "$DEPDIR" && continue
54049 am__include=`sed -n 's/^am__include = //p' < "$mf"`
54050 test -z "am__include" && continue
54051 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
54052 # When using ansi2knr, U may be empty or an underscore; expand it
54053 U=`sed -n 's/^U = //p' < "$mf"`
54054 # Find all dependency output files, they are included files with
54055 # $(DEPDIR) in their names. We invoke sed twice because it is the
54056 # simplest approach to changing $(DEPDIR) to its actual value in the
54058 for file in `sed -n "
54059 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
54060 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
54061 # Make sure the directory exists.
54062 test -f "$dirpart/$file" && continue
54063 fdir=`(dirname "$file") 2>/dev/null ||
54064 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54065 X"$file" : 'X\(//\)[^/]' \| \
54066 X"$file" : 'X\(//\)$' \| \
54067 X"$file" : 'X\(/\)' \| \
54068 . : '\(.\)' 2>/dev/null ||
54070 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54071 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54072 /^X\(\/\/\)$/{ s//\1/; q; }
54073 /^X\(\/\).*/{ s//\1/; q; }
54075 { if $as_mkdir_p; then
54076 mkdir -p $dirpart/$fdir
54078 as_dir=$dirpart/$fdir
54080 while test ! -d "$as_dir"; do
54081 as_dirs="$as_dir $as_dirs"
54082 as_dir=`(dirname "$as_dir") 2>/dev/null ||
54083 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54084 X"$as_dir" : 'X\(//\)[^/]' \| \
54085 X"$as_dir" : 'X\(//\)$' \| \
54086 X"$as_dir" : 'X\(/\)' \| \
54087 . : '\(.\)' 2>/dev/null ||
54089 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54090 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54091 /^X\(\/\/\)$/{ s//\1/; q; }
54092 /^X\(\/\).*/{ s//\1/; q; }
54095 test ! -n "$as_dirs" || mkdir $as_dirs
54096 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
54097 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
54098 { (exit 1); exit 1; }; }; }
54100 # echo "creating $dirpart/$file"
54101 echo '# dummy' > "$dirpart/$file"
54108 BACKENDSC="servers/slapd/backends.c"
54109 echo "Making $BACKENDSC"
54111 cat > $BACKENDSC << ENDX
54112 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
54114 * Copyright 1998-2005 The OpenLDAP Foundation.
54115 * All rights reserved.
54117 * Redistribution and use in source and binary forms, with or without
54118 * modification, are permitted only as authorized by the OpenLDAP
54121 * A copy of this license is available in the file LICENSE in the
54122 * top-level directory of the distribution or, alternatively, at
54123 * <http://www.OpenLDAP.org/license.html>.
54125 /* This file is automatically generated by configure; please do not edit. */
54127 #include "portable.h"
54131 if test "${STATIC_BACKENDS}"; then
54132 for b in config ${STATIC_BACKENDS}; do
54133 bb=`echo "${b}" | sed -e 's/back-//'`
54134 cat >> $BACKENDSC << ENDX
54135 extern BI_init ${bb}_back_initialize;
54139 cat >> $BACKENDSC << ENDX
54141 BackendInfo slap_binfo[] = {
54144 for b in config ${STATIC_BACKENDS}; do
54145 bb=`echo "${b}" | sed -e 's/back-//'`
54146 echo " Add ${bb} ..."
54147 cat >> $BACKENDSC << ENDX
54148 { "${bb}", ${bb}_back_initialize },
54152 cat >> $BACKENDSC << ENDX
54156 /* end of generated file */
54160 echo Please run \"make depend\" to build dependencies
54166 cat >>$CONFIG_STATUS <<\_ACEOF
54168 { (exit 0); exit 0; }
54170 chmod +x $CONFIG_STATUS
54171 ac_clean_files=$ac_clean_files_save
54174 # configure is writing to config.log, and then calls config.status.
54175 # config.status does its own redirection, appending to config.log.
54176 # Unfortunately, on DOS this fails, as config.log is still kept open
54177 # by configure, so config.status won't be able to write to it; its
54178 # output is simply discarded. So we exec the FD to /dev/null,
54179 # effectively closing config.log, so it can be properly (re)opened and
54180 # appended to by config.status. When coming back to configure, we
54181 # need to make the FD available again.
54182 if test "$no_create" != yes; then
54184 ac_config_status_args=
54185 test "$silent" = yes &&
54186 ac_config_status_args="$ac_config_status_args --quiet"
54188 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
54190 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
54191 # would make configure fail if this is the last instruction.
54192 $ac_cs_success || { (exit 1); exit 1; }