2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright 1998-2005 The OpenLDAP Foundation. All rights reserved.
6 # Restrictions apply, see COPYRIGHT and LICENSE files.
8 # Copyright (C) 2003 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25 DUALCASE=1; export DUALCASE # for MKS sh
27 # Support unset when possible.
28 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C; export $as_var
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
68 # Name of the executable.
69 as_me=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits='0123456789'
87 as_cr_alnum=$as_cr_Letters$as_cr_digits
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
131 case $CONFIG_SHELL in
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
141 if ("$as_dir/$as_base" -c '
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
175 s,^['$as_cr_digits']*\n,,
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
185 # Exit status is that of the last command.
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
197 if expr a : '\(a\)' >/dev/null 2>&1; then
203 rm -f conf$$ conf$$.exe conf$$.file
205 if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
214 elif ln conf$$.file conf$$ 2>/dev/null; then
219 rm -f conf$$ conf$$.exe conf$$.file
221 if mkdir -p . 2>/dev/null; then
224 test -d ./-p && rmdir ./-p
228 as_executable_p="test -f"
230 # Sed expression to map a string onto a valid CPP name.
231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233 # Sed expression to map a string onto a valid variable name.
234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
238 # We need space, tab and new line, in precisely that order.
248 # Check that we are running under the correct shell.
249 SHELL=${CONFIG_SHELL-/bin/sh}
253 # Remove one level of quotation (which was required for Make).
254 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
259 if test "X$1" = X--no-reexec; then
260 # Discard the --no-reexec flag, and continue.
262 elif test "X$1" = X--fallback-echo; then
263 # Avoid inline document here, it may be left over
265 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
266 # Yippee, $echo works!
269 # Restart under the correct shell.
270 exec $SHELL "$0" --no-reexec ${1+"$@"}
273 if test "X$1" = X--fallback-echo; then
274 # used as fallback echo
282 # The HP-UX ksh and POSIX shell print the target directory to stdout
284 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
286 if test -z "$ECHO"; then
287 if test "X${echo_test_string+set}" != Xset; then
288 # find a string as large as possible, as long as the shell can cope with it
289 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
290 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
291 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
292 echo_test_string="`eval $cmd`" &&
293 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
300 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
301 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
302 test "X$echo_testing_string" = "X$echo_test_string"; then
305 # The Solaris, AIX, and Digital Unix default echo programs unquote
306 # backslashes. This makes it impossible to quote backslashes using
307 # echo "$something" | sed 's/\\/\\\\/g'
309 # So, first we look for a working echo in the user's PATH.
311 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
312 for dir in $PATH /usr/ucb; do
314 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
315 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
316 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
317 test "X$echo_testing_string" = "X$echo_test_string"; then
324 if test "X$echo" = Xecho; then
325 # We didn't find a better echo, so look for alternatives.
326 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
327 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
328 test "X$echo_testing_string" = "X$echo_test_string"; then
329 # This shell has a builtin print -r that does the trick.
331 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
332 test "X$CONFIG_SHELL" != X/bin/ksh; then
333 # If we have ksh, try running configure again with it.
334 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
335 export ORIGINAL_CONFIG_SHELL
336 CONFIG_SHELL=/bin/ksh
338 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
342 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
343 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
344 test "X$echo_testing_string" = "X$echo_test_string"; then
347 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
348 test "X$echo_testing_string" = 'X\t' &&
349 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
350 test "X$echo_testing_string" = "X$echo_test_string"; then
351 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
353 SHELL="$CONFIG_SHELL"
355 echo="$CONFIG_SHELL $0 --fallback-echo"
356 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
357 test "X$echo_testing_string" = 'X\t' &&
358 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
359 test "X$echo_testing_string" = "X$echo_test_string"; then
360 echo="$CONFIG_SHELL $0 --fallback-echo"
362 # maybe with a smaller string...
365 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
366 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373 if test "$prev" != 'sed 50q "$0"'; then
374 echo_test_string=`eval $prev`
375 export echo_test_string
376 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
378 # Oops. We lost completely, so just stick with echo.
387 # Copy echo and quote the copy suitably for passing to libtool from
388 # the Makefile, instead of quoting the original, which is used later.
390 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
391 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397 tagnames=${tagnames+${tagnames},}CXX
399 tagnames=${tagnames+${tagnames},}F77
402 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
403 # so uname gets run too.
404 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
411 ac_default_prefix=/usr/local
412 ac_config_libobj_dir=.
417 SHELL=${CONFIG_SHELL-/bin/sh}
419 # Maximum number of lines to put in a shell here document.
420 # This variable seems obsolete. It should probably be removed, and
421 # only ac_max_sed_lines should be used.
422 : ${ac_max_here_lines=38}
424 # Identity of this package.
431 ac_unique_file="build/version.sh"
432 ac_default_prefix=/usr/local
433 # Factoring default headers for most tests.
434 ac_includes_default="\
437 # include <sys/types.h>
440 # include <sys/stat.h>
451 # if !STDC_HEADERS && HAVE_MEMORY_H
457 # include <strings.h>
460 # include <inttypes.h>
470 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'
473 # Initialize some variables set by options.
475 ac_init_version=false
476 # The variables have the same names as the options, with
477 # dashes changed to underlines.
485 program_transform_name=s,x,x,
493 # Installation directory options.
494 # These are left unexpanded so users can "make install exec_prefix=/foo"
495 # and all the variables that are supposed to be based on exec_prefix
496 # by default will actually change.
497 # Use braces instead of parens because sh, perl, etc. also accept them.
498 bindir='${exec_prefix}/bin'
499 sbindir='${exec_prefix}/sbin'
500 libexecdir='${exec_prefix}/libexec'
501 datadir='${prefix}/share'
502 sysconfdir='${prefix}/etc'
503 sharedstatedir='${prefix}/com'
504 localstatedir='${prefix}/var'
505 libdir='${exec_prefix}/lib'
506 includedir='${prefix}/include'
507 oldincludedir='/usr/include'
508 infodir='${prefix}/info'
509 mandir='${prefix}/man'
514 # If the previous option needs an argument, assign it.
515 if test -n "$ac_prev"; then
516 eval "$ac_prev=\$ac_option"
521 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
523 # Accept the important Cygnus configure options, so we can diagnose typos.
527 -bindir | --bindir | --bindi | --bind | --bin | --bi)
529 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
532 -build | --build | --buil | --bui | --bu)
533 ac_prev=build_alias ;;
534 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
535 build_alias=$ac_optarg ;;
537 -cache-file | --cache-file | --cache-fil | --cache-fi \
538 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
539 ac_prev=cache_file ;;
540 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
541 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
542 cache_file=$ac_optarg ;;
545 cache_file=config.cache ;;
547 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
549 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
551 datadir=$ac_optarg ;;
553 -disable-* | --disable-*)
554 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
555 # Reject names that are not valid shell variable names.
556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558 { (exit 1); exit 1; }; }
559 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560 eval "enable_$ac_feature=no" ;;
562 -enable-* | --enable-*)
563 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
564 # Reject names that are not valid shell variable names.
565 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567 { (exit 1); exit 1; }; }
568 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
570 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
573 eval "enable_$ac_feature='$ac_optarg'" ;;
575 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
576 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
577 | --exec | --exe | --ex)
578 ac_prev=exec_prefix ;;
579 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
580 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
581 | --exec=* | --exe=* | --ex=*)
582 exec_prefix=$ac_optarg ;;
584 -gas | --gas | --ga | --g)
585 # Obsolete; use --with-gas.
588 -help | --help | --hel | --he | -h)
590 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
591 ac_init_help=recursive ;;
592 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
593 ac_init_help=short ;;
595 -host | --host | --hos | --ho)
596 ac_prev=host_alias ;;
597 -host=* | --host=* | --hos=* | --ho=*)
598 host_alias=$ac_optarg ;;
600 -includedir | --includedir | --includedi | --included | --include \
601 | --includ | --inclu | --incl | --inc)
602 ac_prev=includedir ;;
603 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
604 | --includ=* | --inclu=* | --incl=* | --inc=*)
605 includedir=$ac_optarg ;;
607 -infodir | --infodir | --infodi | --infod | --info | --inf)
609 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
610 infodir=$ac_optarg ;;
612 -libdir | --libdir | --libdi | --libd)
614 -libdir=* | --libdir=* | --libdi=* | --libd=*)
617 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
618 | --libexe | --libex | --libe)
619 ac_prev=libexecdir ;;
620 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
621 | --libexe=* | --libex=* | --libe=*)
622 libexecdir=$ac_optarg ;;
624 -localstatedir | --localstatedir | --localstatedi | --localstated \
625 | --localstate | --localstat | --localsta | --localst \
626 | --locals | --local | --loca | --loc | --lo)
627 ac_prev=localstatedir ;;
628 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
629 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
630 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
631 localstatedir=$ac_optarg ;;
633 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
635 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
639 # Obsolete; use --without-fp.
642 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
643 | --no-cr | --no-c | -n)
646 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
647 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
650 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
651 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
652 | --oldin | --oldi | --old | --ol | --o)
653 ac_prev=oldincludedir ;;
654 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
655 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
656 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
657 oldincludedir=$ac_optarg ;;
659 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
661 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
664 -program-prefix | --program-prefix | --program-prefi | --program-pref \
665 | --program-pre | --program-pr | --program-p)
666 ac_prev=program_prefix ;;
667 -program-prefix=* | --program-prefix=* | --program-prefi=* \
668 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
669 program_prefix=$ac_optarg ;;
671 -program-suffix | --program-suffix | --program-suffi | --program-suff \
672 | --program-suf | --program-su | --program-s)
673 ac_prev=program_suffix ;;
674 -program-suffix=* | --program-suffix=* | --program-suffi=* \
675 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
676 program_suffix=$ac_optarg ;;
678 -program-transform-name | --program-transform-name \
679 | --program-transform-nam | --program-transform-na \
680 | --program-transform-n | --program-transform- \
681 | --program-transform | --program-transfor \
682 | --program-transfo | --program-transf \
683 | --program-trans | --program-tran \
684 | --progr-tra | --program-tr | --program-t)
685 ac_prev=program_transform_name ;;
686 -program-transform-name=* | --program-transform-name=* \
687 | --program-transform-nam=* | --program-transform-na=* \
688 | --program-transform-n=* | --program-transform-=* \
689 | --program-transform=* | --program-transfor=* \
690 | --program-transfo=* | --program-transf=* \
691 | --program-trans=* | --program-tran=* \
692 | --progr-tra=* | --program-tr=* | --program-t=*)
693 program_transform_name=$ac_optarg ;;
695 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
696 | -silent | --silent | --silen | --sile | --sil)
699 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
701 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
703 sbindir=$ac_optarg ;;
705 -sharedstatedir | --sharedstatedir | --sharedstatedi \
706 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
707 | --sharedst | --shareds | --shared | --share | --shar \
709 ac_prev=sharedstatedir ;;
710 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
711 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
712 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
714 sharedstatedir=$ac_optarg ;;
716 -site | --site | --sit)
718 -site=* | --site=* | --sit=*)
721 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
723 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
726 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
727 | --syscon | --sysco | --sysc | --sys | --sy)
728 ac_prev=sysconfdir ;;
729 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
730 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
731 sysconfdir=$ac_optarg ;;
733 -target | --target | --targe | --targ | --tar | --ta | --t)
734 ac_prev=target_alias ;;
735 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
736 target_alias=$ac_optarg ;;
738 -v | -verbose | --verbose | --verbos | --verbo | --verb)
741 -version | --version | --versio | --versi | --vers | -V)
745 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
746 # Reject names that are not valid shell variable names.
747 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
748 { echo "$as_me: error: invalid package name: $ac_package" >&2
749 { (exit 1); exit 1; }; }
750 ac_package=`echo $ac_package| sed 's/-/_/g'`
752 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
755 eval "with_$ac_package='$ac_optarg'" ;;
757 -without-* | --without-*)
758 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
759 # Reject names that are not valid shell variable names.
760 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
761 { echo "$as_me: error: invalid package name: $ac_package" >&2
762 { (exit 1); exit 1; }; }
763 ac_package=`echo $ac_package | sed 's/-/_/g'`
764 eval "with_$ac_package=no" ;;
767 # Obsolete; use --with-x.
770 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
771 | --x-incl | --x-inc | --x-in | --x-i)
772 ac_prev=x_includes ;;
773 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
774 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
775 x_includes=$ac_optarg ;;
777 -x-libraries | --x-libraries | --x-librarie | --x-librari \
778 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
779 ac_prev=x_libraries ;;
780 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
781 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
782 x_libraries=$ac_optarg ;;
784 -*) { echo "$as_me: error: unrecognized option: $ac_option
785 Try \`$0 --help' for more information." >&2
786 { (exit 1); exit 1; }; }
790 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
791 # Reject names that are not valid shell variable names.
792 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
793 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
794 { (exit 1); exit 1; }; }
795 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
796 eval "$ac_envvar='$ac_optarg'"
800 # FIXME: should be removed in autoconf 3.0.
801 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
802 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
803 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
804 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810 if test -n "$ac_prev"; then
811 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
812 { echo "$as_me: error: missing argument to $ac_option" >&2
813 { (exit 1); exit 1; }; }
816 # Be sure to have absolute paths.
817 for ac_var in exec_prefix prefix
819 eval ac_val=$`echo $ac_var`
821 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
822 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
823 { (exit 1); exit 1; }; };;
827 # Be sure to have absolute paths.
828 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
829 localstatedir libdir includedir oldincludedir infodir mandir
831 eval ac_val=$`echo $ac_var`
833 [\\/$]* | ?:[\\/]* ) ;;
834 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
835 { (exit 1); exit 1; }; };;
839 # There might be people who depend on the old broken behavior: `$host'
840 # used to hold the argument of --host etc.
841 # FIXME: To remove some day.
846 # FIXME: To remove some day.
847 if test "x$host_alias" != x; then
848 if test "x$build_alias" = x; then
849 cross_compiling=maybe
850 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
851 If a cross compiler is detected then cross compile mode will be used." >&2
852 elif test "x$build_alias" != "x$host_alias"; then
858 test -n "$host_alias" && ac_tool_prefix=$host_alias-
860 test "$silent" = yes && exec 6>/dev/null
863 # Find the source files, if location was not specified.
864 if test -z "$srcdir"; then
865 ac_srcdir_defaulted=yes
866 # Try the directory containing this script, then its parent.
867 ac_confdir=`(dirname "$0") 2>/dev/null ||
868 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
869 X"$0" : 'X\(//\)[^/]' \| \
870 X"$0" : 'X\(//\)$' \| \
871 X"$0" : 'X\(/\)' \| \
872 . : '\(.\)' 2>/dev/null ||
874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
875 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
876 /^X\(\/\/\)$/{ s//\1/; q; }
877 /^X\(\/\).*/{ s//\1/; q; }
880 if test ! -r $srcdir/$ac_unique_file; then
884 ac_srcdir_defaulted=no
886 if test ! -r $srcdir/$ac_unique_file; then
887 if test "$ac_srcdir_defaulted" = yes; then
888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
889 { (exit 1); exit 1; }; }
891 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
892 { (exit 1); exit 1; }; }
895 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
896 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
897 { (exit 1); exit 1; }; }
898 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
899 ac_env_build_alias_set=${build_alias+set}
900 ac_env_build_alias_value=$build_alias
901 ac_cv_env_build_alias_set=${build_alias+set}
902 ac_cv_env_build_alias_value=$build_alias
903 ac_env_host_alias_set=${host_alias+set}
904 ac_env_host_alias_value=$host_alias
905 ac_cv_env_host_alias_set=${host_alias+set}
906 ac_cv_env_host_alias_value=$host_alias
907 ac_env_target_alias_set=${target_alias+set}
908 ac_env_target_alias_value=$target_alias
909 ac_cv_env_target_alias_set=${target_alias+set}
910 ac_cv_env_target_alias_value=$target_alias
911 ac_env_CC_set=${CC+set}
913 ac_cv_env_CC_set=${CC+set}
914 ac_cv_env_CC_value=$CC
915 ac_env_CFLAGS_set=${CFLAGS+set}
916 ac_env_CFLAGS_value=$CFLAGS
917 ac_cv_env_CFLAGS_set=${CFLAGS+set}
918 ac_cv_env_CFLAGS_value=$CFLAGS
919 ac_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_env_LDFLAGS_value=$LDFLAGS
921 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
922 ac_cv_env_LDFLAGS_value=$LDFLAGS
923 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_env_CPPFLAGS_value=$CPPFLAGS
925 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
926 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
927 ac_env_CPP_set=${CPP+set}
928 ac_env_CPP_value=$CPP
929 ac_cv_env_CPP_set=${CPP+set}
930 ac_cv_env_CPP_value=$CPP
931 ac_env_CXX_set=${CXX+set}
932 ac_env_CXX_value=$CXX
933 ac_cv_env_CXX_set=${CXX+set}
934 ac_cv_env_CXX_value=$CXX
935 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
936 ac_env_CXXFLAGS_value=$CXXFLAGS
937 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
938 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
939 ac_env_CXXCPP_set=${CXXCPP+set}
940 ac_env_CXXCPP_value=$CXXCPP
941 ac_cv_env_CXXCPP_set=${CXXCPP+set}
942 ac_cv_env_CXXCPP_value=$CXXCPP
943 ac_env_F77_set=${F77+set}
944 ac_env_F77_value=$F77
945 ac_cv_env_F77_set=${F77+set}
946 ac_cv_env_F77_value=$F77
947 ac_env_FFLAGS_set=${FFLAGS+set}
948 ac_env_FFLAGS_value=$FFLAGS
949 ac_cv_env_FFLAGS_set=${FFLAGS+set}
950 ac_cv_env_FFLAGS_value=$FFLAGS
953 # Report the --help message.
955 if test "$ac_init_help" = "long"; then
956 # Omit some internal or obsolete options to make the list less imposing.
957 # This message is too long to be a string in the A/UX 3.1 sh.
959 \`configure' configures this package to adapt to many kinds of systems.
961 Usage: $0 [OPTION]... [VAR=VALUE]...
963 To assign environment variables (e.g., CC, CFLAGS...), specify them as
964 VAR=VALUE. See below for descriptions of some of the useful variables.
966 Defaults for the options are specified in brackets.
969 -h, --help display this help and exit
970 --help=short display options specific to this package
971 --help=recursive display the short help of all the included packages
972 -V, --version display version information and exit
973 -q, --quiet, --silent do not print \`checking...' messages
974 --cache-file=FILE cache test results in FILE [disabled]
975 -C, --config-cache alias for \`--cache-file=config.cache'
976 -n, --no-create do not create output files
977 --srcdir=DIR find the sources in DIR [configure dir or \`..']
982 Installation directories:
983 --prefix=PREFIX install architecture-independent files in PREFIX
985 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
988 By default, \`make install' will install all the files in
989 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
990 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
991 for instance \`--prefix=\$HOME'.
993 For better control, use the options below.
995 Fine tuning of the installation directories:
996 --bindir=DIR user executables [EPREFIX/bin]
997 --sbindir=DIR system admin executables [EPREFIX/sbin]
998 --libexecdir=DIR program executables [EPREFIX/libexec]
999 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1000 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1001 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1002 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1003 --libdir=DIR object code libraries [EPREFIX/lib]
1004 --includedir=DIR C header files [PREFIX/include]
1005 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1006 --infodir=DIR info documentation [PREFIX/info]
1007 --mandir=DIR man documentation [PREFIX/man]
1013 --program-prefix=PREFIX prepend PREFIX to installed program names
1014 --program-suffix=SUFFIX append SUFFIX to installed program names
1015 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1018 --build=BUILD configure for building on BUILD [guessed]
1019 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1020 --target=TARGET configure for building compilers for TARGET [HOST]
1024 if test -n "$ac_init_help"; then
1029 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1030 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1031 --enable-debug enable debugging yes
1032 --enable-dynamic enable linking built binaries with dynamic libs no
1033 --enable-syslog enable syslog support auto
1034 --enable-proctitle enable proctitle support yes
1035 --enable-ipv6 enable IPv6 support auto
1036 --enable-local enable AF_LOCAL (AF_UNIX) socket support auto
1037 --enable-slapd enable building slapd yes
1038 --enable-aci enable per-object ACIs (experimental) no
1039 --enable-cleartext enable cleartext passwords yes
1040 --enable-crypt enable crypt(3) passwords no
1041 --enable-lmpasswd enable LAN Manager passwords no
1042 --enable-spasswd enable (Cyrus) SASL password verification no
1043 --enable-modules enable dynamic module support no
1044 --enable-rewrite enable DN rewriting in back-ldap and rwm overlay auto
1045 --enable-rlookups enable reverse lookups of client hostnames no
1046 --enable-slapi enable SLAPI support (experimental) no
1047 --enable-slp enable SLPv2 support no
1048 --enable-wrappers enable tcp wrapper support no
1049 --enable-backends enable all available backends no|yes|mod
1050 --enable-bdb enable Berkeley DB backend no|yes|mod ${ol_dflt_backends-yes}
1051 --enable-dnssrv enable dnssrv backend no|yes|mod ${ol_dflt_backends-no}
1052 --enable-hdb enable Hierarchical DB backend no|yes|mod ${ol_dflt_backends-yes}
1053 --enable-ldap enable ldap backend no|yes|mod ${ol_dflt_backends-no}
1054 --enable-ldbm enable ldbm backend no|yes|mod ${ol_dflt_backends-no}
1055 --enable-meta enable metadirectory backend no|yes|mod ${ol_dflt_backends-no}
1056 --enable-monitor enable monitor backend no|yes|mod ${ol_dflt_backends-yes}
1057 --enable-null enable null backend no|yes|mod ${ol_dflt_backends-no}
1058 --enable-passwd enable passwd backend no|yes|mod ${ol_dflt_backends-no}
1059 --enable-perl enable perl backend no|yes|mod ${ol_dflt_backends-no}
1060 --enable-relay enable relay backend no|yes|mod ${ol_dflt_backends-yes}
1061 --enable-shell enable shell backend no|yes|mod ${ol_dflt_backends-no}
1062 --enable-sql enable sql backend no|yes|mod ${ol_dflt_backends-no}
1063 --enable-overlays enable all available overlays no|yes|mod
1064 --enable-accesslog In-Directory Access Logging overlay no|yes|mod ${ol_dflt_overlays-no}
1065 --enable-denyop Deny Operation overlay no|yes|mod ${ol_dflt_overlays-no}
1066 --enable-dyngroup Dynamic Group overlay no|yes|mod ${ol_dflt_overlays-no}
1067 --enable-dynlist Dynamic List overlay no|yes|mod ${ol_dflt_overlays-no}
1068 --enable-glue Backend Glue overlay no|yes|mod ${ol_dflt_overlays-yes}
1069 --enable-lastmod Last Modification overlay no|yes|mod ${ol_dflt_overlays-no}
1070 --enable-ppolicy Password Policy overlay no|yes|mod ${ol_dflt_overlays-no}
1071 --enable-proxycache Proxy Cache overlay no|yes|mod ${ol_dflt_overlays-no}
1072 --enable-refint Referential Integrity overlay no|yes|mod ${ol_dflt_overlays-no}
1073 --enable-retcode Return Code testing overlay no|yes|mod ${ol_dflt_overlays-no}
1074 --enable-rwm Rewrite/Remap overlay no|yes|mod ${ol_dflt_overlays-no}
1075 --enable-syncprov Syncrepl Provider overlay no|yes|mod ${ol_dflt_overlays-yes}
1076 --enable-translucent Translucent Proxy overlay no|yes|mod ${ol_dflt_overlays-no}
1077 --enable-unique Attribute Uniqueness overlay no|yes|mod ${ol_dflt_overlays-no}
1078 --enable-slurpd enable building slurpd auto
1079 --enable-static[=PKGS]
1080 build static libraries [default=yes]
1081 --enable-shared[=PKGS]
1082 build shared libraries [default=yes]
1083 --enable-fast-install[=PKGS]
1084 optimize for fast installation [default=yes]
1085 --disable-dependency-tracking speeds up one-time build
1086 --enable-dependency-tracking do not reject slow dependency extractors
1087 --disable-libtool-lock avoid locking (might break parallel builds)
1090 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1091 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1092 --with-subdir=DIR change default subdirectory used for installs
1093 --with-cyrus-sasl with Cyrus SASL support auto
1094 --with-fetch with fetch(3) URL support auto
1095 --with-threads with threads auto
1096 --with-tls with TLS/SSL support auto
1097 --with-yielding-select with implicitly yielding select auto
1098 --with-multiple-precision
1099 multiple precision support for statistics
1100 auto|bignum|gmp auto
1102 SLAPD (Standalone LDAP Daemon) Options:
1104 SLAPD Backend Options:
1105 --with-ldbm-api with LDBM API auto|berkeley|bcompat|mdbm|gdbm auto
1106 --with-ldbm-type use LDBM type auto|btree|hash auto
1108 SLAPD Overlay Options:
1110 SLURPD (Replication Daemon) Options:
1112 Library Generation & Linking Options
1113 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1114 --with-pic try to use only PIC/non-PIC objects [default=use
1117 include additional configurations [automatic]
1119 See INSTALL file for further details.
1121 Some influential environment variables:
1122 CC C compiler command
1123 CFLAGS C compiler flags
1124 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1125 nonstandard directory <lib dir>
1126 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1127 headers in a nonstandard directory <include dir>
1129 CXX C++ compiler command
1130 CXXFLAGS C++ compiler flags
1131 CXXCPP C++ preprocessor
1132 F77 Fortran 77 compiler command
1133 FFLAGS Fortran 77 compiler flags
1135 Use these variables to override the choices made by `configure' or to help
1136 it to find libraries and programs with nonstandard names/locations.
1141 if test "$ac_init_help" = "recursive"; then
1142 # If there are subdirs, report their specific --help.
1144 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1145 test -d $ac_dir || continue
1148 if test "$ac_dir" != .; then
1149 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1150 # A "../" for each directory in $ac_dir_suffix.
1151 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1153 ac_dir_suffix= ac_top_builddir=
1157 .) # No --srcdir option. We are building in place.
1159 if test -z "$ac_top_builddir"; then
1162 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1164 [\\/]* | ?:[\\/]* ) # Absolute path.
1165 ac_srcdir=$srcdir$ac_dir_suffix;
1166 ac_top_srcdir=$srcdir ;;
1168 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1169 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1172 # Do not use `cd foo && pwd` to compute absolute paths, because
1173 # the directories may not exist.
1175 .) ac_abs_builddir="$ac_dir";;
1178 .) ac_abs_builddir=`pwd`;;
1179 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1180 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1183 case $ac_abs_builddir in
1184 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1186 case ${ac_top_builddir}. in
1187 .) ac_abs_top_builddir=$ac_abs_builddir;;
1188 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1189 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1192 case $ac_abs_builddir in
1193 .) ac_abs_srcdir=$ac_srcdir;;
1196 .) ac_abs_srcdir=$ac_abs_builddir;;
1197 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1198 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1201 case $ac_abs_builddir in
1202 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1204 case $ac_top_srcdir in
1205 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1206 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1207 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1212 # Check for guested configure; otherwise get Cygnus style configure.
1213 if test -f $ac_srcdir/configure.gnu; then
1215 $SHELL $ac_srcdir/configure.gnu --help=recursive
1216 elif test -f $ac_srcdir/configure; then
1218 $SHELL $ac_srcdir/configure --help=recursive
1219 elif test -f $ac_srcdir/configure.ac ||
1220 test -f $ac_srcdir/configure.in; then
1222 $ac_configure --help
1224 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1230 test -n "$ac_init_help" && exit 0
1231 if $ac_init_version; then
1234 Copyright (C) 2003 Free Software Foundation, Inc.
1235 This configure script is free software; the Free Software Foundation
1236 gives unlimited permission to copy, distribute and modify it.
1238 Copyright 1998-2005 The OpenLDAP Foundation. All rights reserved.
1239 Restrictions apply, see COPYRIGHT and LICENSE files.
1245 This file contains any messages produced by compilers while
1246 running configure, to aid debugging if configure makes a mistake.
1248 It was created by $as_me, which was
1249 generated by GNU Autoconf 2.59. Invocation command line was
1260 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1261 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1262 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1263 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1264 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1266 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1267 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1269 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1270 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1271 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1272 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1273 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1274 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1275 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1283 test -z "$as_dir" && as_dir=.
1284 echo "PATH: $as_dir"
1299 # Keep a trace of the command line.
1300 # Strip out --no-create and --no-recursion so they do not pile up.
1301 # Strip out --silent because we don't want to record it for future runs.
1302 # Also quote any args containing shell meta-characters.
1303 # Make two passes to allow for proper duplicate-argument suppression.
1308 ac_must_keep_next=false
1314 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1315 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1316 | -silent | --silent | --silen | --sile | --sil)
1318 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1319 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1322 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1324 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1325 if test $ac_must_keep_next = true; then
1326 ac_must_keep_next=false # Got value, back to normal.
1329 *=* | --config-cache | -C | -disable-* | --disable-* \
1330 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1331 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1332 | -with-* | --with-* | -without-* | --without-* | --x)
1333 case "$ac_configure_args0 " in
1334 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1337 -* ) ac_must_keep_next=true ;;
1340 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1341 # Get rid of the leading space.
1347 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1348 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1350 # When interrupted or exit'd, cleanup temporary files, and complete
1351 # config.log. We remove comments because anyway the quotes in there
1352 # would cause problems or look ugly.
1353 # WARNING: Be sure not to use single quotes in there, as some shells,
1354 # such as our DU 5.0 friend, will then `close' the trap.
1355 trap 'exit_status=$?
1356 # Save into config.log some information that might help in debugging.
1361 ## ---------------- ##
1362 ## Cache variables. ##
1363 ## ---------------- ##
1366 # The following way of writing the cache mishandles newlines in values,
1369 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1372 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1373 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1377 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1384 ## ----------------- ##
1385 ## Output variables. ##
1386 ## ----------------- ##
1389 for ac_var in $ac_subst_vars
1391 eval ac_val=$`echo $ac_var`
1392 echo "$ac_var='"'"'$ac_val'"'"'"
1396 if test -n "$ac_subst_files"; then
1403 for ac_var in $ac_subst_files
1405 eval ac_val=$`echo $ac_var`
1406 echo "$ac_var='"'"'$ac_val'"'"'"
1411 if test -s confdefs.h; then
1418 sed "/^$/d" confdefs.h | sort
1421 test "$ac_signal" != 0 &&
1422 echo "$as_me: caught signal $ac_signal"
1423 echo "$as_me: exit $exit_status"
1425 rm -f core *.core &&
1426 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1429 for ac_signal in 1 2 13 15; do
1430 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1434 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1435 rm -rf conftest* confdefs.h
1436 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1439 # Predefined preprocessor variables.
1441 cat >>confdefs.h <<_ACEOF
1442 #define PACKAGE_NAME "$PACKAGE_NAME"
1446 cat >>confdefs.h <<_ACEOF
1447 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1451 cat >>confdefs.h <<_ACEOF
1452 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1456 cat >>confdefs.h <<_ACEOF
1457 #define PACKAGE_STRING "$PACKAGE_STRING"
1461 cat >>confdefs.h <<_ACEOF
1462 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1466 # Let the site file select an alternate cache file if it wants to.
1467 # Prefer explicitly selected file to automatically selected ones.
1468 if test -z "$CONFIG_SITE"; then
1469 if test "x$prefix" != xNONE; then
1470 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1472 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1475 for ac_site_file in $CONFIG_SITE; do
1476 if test -r "$ac_site_file"; then
1477 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1478 echo "$as_me: loading site script $ac_site_file" >&6;}
1479 sed 's/^/| /' "$ac_site_file" >&5
1485 # Check that the precious variables saved in the cache have kept the same
1487 ac_cache_corrupted=false
1488 for ac_var in `(set) 2>&1 |
1489 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1490 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1491 eval ac_new_set=\$ac_env_${ac_var}_set
1492 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1493 eval ac_new_val="\$ac_env_${ac_var}_value"
1494 case $ac_old_set,$ac_new_set in
1496 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1497 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1498 ac_cache_corrupted=: ;;
1500 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1501 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1502 ac_cache_corrupted=: ;;
1505 if test "x$ac_old_val" != "x$ac_new_val"; then
1506 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1507 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1508 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1509 echo "$as_me: former value: $ac_old_val" >&2;}
1510 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1511 echo "$as_me: current value: $ac_new_val" >&2;}
1512 ac_cache_corrupted=:
1515 # Pass precious variables to config.status.
1516 if test "$ac_new_set" = set; then
1518 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1519 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1520 *) ac_arg=$ac_var=$ac_new_val ;;
1522 case " $ac_configure_args " in
1523 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1524 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1528 if $ac_cache_corrupted; then
1529 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1530 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1531 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1532 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1533 { (exit 1); exit 1; }; }
1537 ac_cpp='$CPP $CPPFLAGS'
1538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1561 # set unset (borrowed from autoconf 2.49c)
1562 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
1568 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
1571 for ac_dir in build $srcdir/build; do
1572 if test -f $ac_dir/install-sh; then
1574 ac_install_sh="$ac_aux_dir/install-sh -c"
1576 elif test -f $ac_dir/install.sh; then
1578 ac_install_sh="$ac_aux_dir/install.sh -c"
1580 elif test -f $ac_dir/shtool; then
1582 ac_install_sh="$ac_aux_dir/shtool install -c"
1586 if test -z "$ac_aux_dir"; then
1587 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1588 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1589 { (exit 1); exit 1; }; }
1591 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1592 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1593 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1595 eval `$ac_aux_dir/version.sh`
1596 if test -z "$OL_STRING"; then
1597 { { echo "$as_me:$LINENO: error: could not determine version" >&5
1598 echo "$as_me: error: could not determine version" >&2;}
1599 { (exit 1); exit 1; }; }
1602 if test -f "$ac_aux_dir/shtool" -a ! -d $ac_aux_dir/shtool; then
1603 ac_cv_shtool="$ac_aux_dir/shtool"
1605 { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1606 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1607 { (exit 1); exit 1; }; }
1610 SHTOOL="$ac_cv_shtool"
1612 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1613 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1616 if test -d $ac_aux_dir/CVS; then
1617 OPENLDAP_CVS="(from CVS sources) "
1620 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1622 # Make sure we can run config.sub.
1623 $ac_config_sub sun4 >/dev/null 2>&1 ||
1624 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1625 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1626 { (exit 1); exit 1; }; }
1628 echo "$as_me:$LINENO: checking build system type" >&5
1629 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1630 if test "${ac_cv_build+set}" = set; then
1631 echo $ECHO_N "(cached) $ECHO_C" >&6
1633 ac_cv_build_alias=$build_alias
1634 test -z "$ac_cv_build_alias" &&
1635 ac_cv_build_alias=`$ac_config_guess`
1636 test -z "$ac_cv_build_alias" &&
1637 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1638 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1639 { (exit 1); exit 1; }; }
1640 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1641 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1642 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1643 { (exit 1); exit 1; }; }
1646 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1647 echo "${ECHO_T}$ac_cv_build" >&6
1649 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1650 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1651 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1654 echo "$as_me:$LINENO: checking host system type" >&5
1655 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1656 if test "${ac_cv_host+set}" = set; then
1657 echo $ECHO_N "(cached) $ECHO_C" >&6
1659 ac_cv_host_alias=$host_alias
1660 test -z "$ac_cv_host_alias" &&
1661 ac_cv_host_alias=$ac_cv_build_alias
1662 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1663 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1664 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1665 { (exit 1); exit 1; }; }
1668 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1669 echo "${ECHO_T}$ac_cv_host" >&6
1671 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1672 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1673 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1676 echo "$as_me:$LINENO: checking target system type" >&5
1677 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1678 if test "${ac_cv_target+set}" = set; then
1679 echo $ECHO_N "(cached) $ECHO_C" >&6
1681 ac_cv_target_alias=$target_alias
1682 test "x$ac_cv_target_alias" = "x" &&
1683 ac_cv_target_alias=$ac_cv_host_alias
1684 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1685 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1686 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1687 { (exit 1); exit 1; }; }
1690 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1691 echo "${ECHO_T}$ac_cv_target" >&6
1692 target=$ac_cv_target
1693 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1694 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1695 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1698 # The aliases save the names the user supplied, while $host etc.
1699 # will get canonicalized.
1700 test -n "$target_alias" &&
1701 test "$program_prefix$program_suffix$program_transform_name" = \
1703 program_prefix=${target_alias}-
1705 am__api_version="1.9"
1706 # Find a good install program. We prefer a C program (faster),
1707 # so one script is as good as another. But avoid the broken or
1708 # incompatible versions:
1709 # SysV /etc/install, /usr/sbin/install
1710 # SunOS /usr/etc/install
1711 # IRIX /sbin/install
1713 # AmigaOS /C/install, which installs bootblocks on floppy discs
1714 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1715 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1716 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1717 # OS/2's system install, which has a completely different semantic
1718 # ./install, which can be erroneously created by make from ./install.sh.
1719 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1720 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1721 if test -z "$INSTALL"; then
1722 if test "${ac_cv_path_install+set}" = set; then
1723 echo $ECHO_N "(cached) $ECHO_C" >&6
1725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1729 test -z "$as_dir" && as_dir=.
1730 # Account for people who put trailing slashes in PATH elements.
1732 ./ | .// | /cC/* | \
1733 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1734 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1737 # OSF1 and SCO ODT 3.0 have their own names for install.
1738 # Don't use installbsd from OSF since it installs stuff as root
1740 for ac_prog in ginstall scoinst install; do
1741 for ac_exec_ext in '' $ac_executable_extensions; do
1742 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1743 if test $ac_prog = install &&
1744 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1745 # AIX install. It has an incompatible calling convention.
1747 elif test $ac_prog = install &&
1748 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1749 # program-specific install script used by HP pwplus--don't use.
1752 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1764 if test "${ac_cv_path_install+set}" = set; then
1765 INSTALL=$ac_cv_path_install
1767 # As a last resort, use the slow shell script. We don't cache a
1768 # path for INSTALL within a source directory, because that will
1769 # break other packages using the cache if that directory is
1770 # removed, or if the path is relative.
1771 INSTALL=$ac_install_sh
1774 echo "$as_me:$LINENO: result: $INSTALL" >&5
1775 echo "${ECHO_T}$INSTALL" >&6
1777 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1778 # It thinks the first close brace ends the variable substitution.
1779 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1781 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1783 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1785 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1786 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1789 echo timestamp > conftest.file
1790 # Do `set' in a subshell so we don't clobber the current shell's
1791 # arguments. Must try -L first in case configure is actually a
1792 # symlink; some systems play weird games with the mod time of symlinks
1793 # (eg FreeBSD returns the mod time of the symlink's containing
1796 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1797 if test "$*" = "X"; then
1799 set X `ls -t $srcdir/configure conftest.file`
1802 if test "$*" != "X $srcdir/configure conftest.file" \
1803 && test "$*" != "X conftest.file $srcdir/configure"; then
1805 # If neither matched, then we have a broken ls. This can happen
1806 # if, for instance, CONFIG_SHELL is bash and it inherits a
1807 # broken ls alias from the environment. This has actually
1808 # happened. Such a system could not be considered "sane".
1809 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1810 alias in your environment" >&5
1811 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1812 alias in your environment" >&2;}
1813 { (exit 1); exit 1; }; }
1816 test "$2" = conftest.file
1822 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1823 Check your system clock" >&5
1824 echo "$as_me: error: newly created file is older than distributed files!
1825 Check your system clock" >&2;}
1826 { (exit 1); exit 1; }; }
1828 echo "$as_me:$LINENO: result: yes" >&5
1829 echo "${ECHO_T}yes" >&6
1830 test "$program_prefix" != NONE &&
1831 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1832 # Use a double $ so make ignores it.
1833 test "$program_suffix" != NONE &&
1834 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1835 # Double any \ or $. echo might interpret backslashes.
1836 # By default was `s,x,x', remove it if useless.
1837 cat <<\_ACEOF >conftest.sed
1838 s/[\\$]/&&/g;s/;s,x,x,$//
1840 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1843 # expand $ac_aux_dir to an absolute path
1844 am_aux_dir=`cd $ac_aux_dir && pwd`
1846 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1847 # Use eval to expand $SHELL
1848 if eval "$MISSING --run true"; then
1849 am_missing_run="$MISSING --run "
1852 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1853 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1856 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1857 # We used to keeping the `.' as first argument, in order to
1858 # allow $(mkdir_p) to be used without argument. As in
1859 # $(mkdir_p) $(somedir)
1860 # where $(somedir) is conditionally defined. However this is wrong
1862 # 1. if the package is installed by a user who cannot write `.'
1863 # make install will fail,
1864 # 2. the above comment should most certainly read
1865 # $(mkdir_p) $(DESTDIR)$(somedir)
1866 # so it does not work when $(somedir) is undefined and
1867 # $(DESTDIR) is not.
1868 # To support the latter case, we have to write
1869 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1870 # so the `.' trick is pointless.
1871 mkdir_p='mkdir -p --'
1873 # On NextStep and OpenStep, the `mkdir' command does not
1874 # recognize any option. It will interpret all options as
1875 # directories to create, and then abort because `.' already
1877 for d in ./-p ./--version;
1879 test -d $d && rmdir $d
1881 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1882 if test -f "$ac_aux_dir/mkinstalldirs"; then
1883 mkdir_p='$(mkinstalldirs)'
1885 mkdir_p='$(install_sh) -d'
1889 for ac_prog in gawk mawk nawk awk
1891 # Extract the first word of "$ac_prog", so it can be a program name with args.
1892 set dummy $ac_prog; ac_word=$2
1893 echo "$as_me:$LINENO: checking for $ac_word" >&5
1894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1895 if test "${ac_cv_prog_AWK+set}" = set; then
1896 echo $ECHO_N "(cached) $ECHO_C" >&6
1898 if test -n "$AWK"; then
1899 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1905 test -z "$as_dir" && as_dir=.
1906 for ac_exec_ext in '' $ac_executable_extensions; do
1907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1908 ac_cv_prog_AWK="$ac_prog"
1909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1918 if test -n "$AWK"; then
1919 echo "$as_me:$LINENO: result: $AWK" >&5
1920 echo "${ECHO_T}$AWK" >&6
1922 echo "$as_me:$LINENO: result: no" >&5
1923 echo "${ECHO_T}no" >&6
1926 test -n "$AWK" && break
1929 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1930 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1931 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1932 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1933 echo $ECHO_N "(cached) $ECHO_C" >&6
1935 cat >conftest.make <<\_ACEOF
1937 @echo 'ac_maketemp="$(MAKE)"'
1939 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1940 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1941 if test -n "$ac_maketemp"; then
1942 eval ac_cv_prog_make_${ac_make}_set=yes
1944 eval ac_cv_prog_make_${ac_make}_set=no
1948 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1949 echo "$as_me:$LINENO: result: yes" >&5
1950 echo "${ECHO_T}yes" >&6
1953 echo "$as_me:$LINENO: result: no" >&5
1954 echo "${ECHO_T}no" >&6
1955 SET_MAKE="MAKE=${MAKE-make}"
1958 rm -rf .tst 2>/dev/null
1959 mkdir .tst 2>/dev/null
1960 if test -d .tst; then
1965 rmdir .tst 2>/dev/null
1967 # test to see if srcdir already configured
1968 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1969 test -f $srcdir/config.status; then
1970 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1971 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1972 { (exit 1); exit 1; }; }
1975 # test whether we have cygpath
1976 if test -z "$CYGPATH_W"; then
1977 if (cygpath --version) >/dev/null 2>/dev/null; then
1978 CYGPATH_W='cygpath -w'
1985 # Define the identity of the package.
1990 # Some tools Automake needs.
1992 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1995 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1998 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2001 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2004 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2006 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2008 # Installed binaries are usually stripped using `strip' when the user
2009 # run `make install-strip'. However `strip' might not be the right
2010 # tool to use in cross-compilation environments, therefore Automake
2011 # will honor the `STRIP' environment variable to overrule this program.
2012 if test "$cross_compiling" != no; then
2013 if test -n "$ac_tool_prefix"; then
2014 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2015 set dummy ${ac_tool_prefix}strip; ac_word=$2
2016 echo "$as_me:$LINENO: checking for $ac_word" >&5
2017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2018 if test "${ac_cv_prog_STRIP+set}" = set; then
2019 echo $ECHO_N "(cached) $ECHO_C" >&6
2021 if test -n "$STRIP"; then
2022 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2028 test -z "$as_dir" && as_dir=.
2029 for ac_exec_ext in '' $ac_executable_extensions; do
2030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2031 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2040 STRIP=$ac_cv_prog_STRIP
2041 if test -n "$STRIP"; then
2042 echo "$as_me:$LINENO: result: $STRIP" >&5
2043 echo "${ECHO_T}$STRIP" >&6
2045 echo "$as_me:$LINENO: result: no" >&5
2046 echo "${ECHO_T}no" >&6
2050 if test -z "$ac_cv_prog_STRIP"; then
2052 # Extract the first word of "strip", so it can be a program name with args.
2053 set dummy strip; ac_word=$2
2054 echo "$as_me:$LINENO: checking for $ac_word" >&5
2055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2056 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2057 echo $ECHO_N "(cached) $ECHO_C" >&6
2059 if test -n "$ac_ct_STRIP"; then
2060 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2066 test -z "$as_dir" && as_dir=.
2067 for ac_exec_ext in '' $ac_executable_extensions; do
2068 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2069 ac_cv_prog_ac_ct_STRIP="strip"
2070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2076 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2079 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2080 if test -n "$ac_ct_STRIP"; then
2081 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2082 echo "${ECHO_T}$ac_ct_STRIP" >&6
2084 echo "$as_me:$LINENO: result: no" >&5
2085 echo "${ECHO_T}no" >&6
2090 STRIP="$ac_cv_prog_STRIP"
2094 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2096 # We need awk for the "check" target. The system "awk" is bad on
2098 # Always define AMTAR for backward compatibility.
2100 AMTAR=${AMTAR-"${am_missing_run}tar"}
2102 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2108 cat >>confdefs.h <<_ACEOF
2109 #define OPENLDAP_PACKAGE "$PACKAGE"
2113 cat >>confdefs.h <<_ACEOF
2114 #define OPENLDAP_VERSION "$VERSION"
2119 cat >>confdefs.h <<_ACEOF
2120 #define LDAP_VENDOR_VERSION $OL_API_INC
2124 cat >>confdefs.h <<_ACEOF
2125 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2129 cat >>confdefs.h <<_ACEOF
2130 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2134 cat >>confdefs.h <<_ACEOF
2135 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2139 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2141 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2143 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2151 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2153 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2155 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2158 echo "$as_me:$LINENO: checking configure arguments" >&5
2159 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2164 ldap_subdir="/openldap"
2167 # Check whether --with-subdir or --without-subdir was given.
2168 if test "${with_subdir+set}" = set; then
2169 withval="$with_subdir"
2176 ldap_subdir="$withval"
2179 ldap_subdir="/$withval"
2185 # OpenLDAP --enable-debug
2186 # Check whether --enable-debug or --disable-debug was given.
2187 if test "${enable_debug+set}" = set; then
2188 enableval="$enable_debug"
2191 for ol_val in auto yes no ; do
2192 if test "$enableval" = "$ol_val" ; then
2196 if test "$ol_arg" = "invalid" ; then
2197 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2198 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2199 { (exit 1); exit 1; }; }
2201 ol_enable_debug="$ol_arg"
2204 ol_enable_debug="yes"
2205 fi; # end --enable-debug
2206 # OpenLDAP --enable-dynamic
2207 # Check whether --enable-dynamic or --disable-dynamic was given.
2208 if test "${enable_dynamic+set}" = set; then
2209 enableval="$enable_dynamic"
2212 for ol_val in auto yes no ; do
2213 if test "$enableval" = "$ol_val" ; then
2217 if test "$ol_arg" = "invalid" ; then
2218 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2219 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2220 { (exit 1); exit 1; }; }
2222 ol_enable_dynamic="$ol_arg"
2225 ol_enable_dynamic="no"
2226 fi; # end --enable-dynamic
2227 # OpenLDAP --enable-syslog
2228 # Check whether --enable-syslog or --disable-syslog was given.
2229 if test "${enable_syslog+set}" = set; then
2230 enableval="$enable_syslog"
2233 for ol_val in auto yes no ; do
2234 if test "$enableval" = "$ol_val" ; then
2238 if test "$ol_arg" = "invalid" ; then
2239 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2240 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2241 { (exit 1); exit 1; }; }
2243 ol_enable_syslog="$ol_arg"
2246 ol_enable_syslog="auto"
2247 fi; # end --enable-syslog
2248 # OpenLDAP --enable-proctitle
2249 # Check whether --enable-proctitle or --disable-proctitle was given.
2250 if test "${enable_proctitle+set}" = set; then
2251 enableval="$enable_proctitle"
2254 for ol_val in auto yes no ; do
2255 if test "$enableval" = "$ol_val" ; then
2259 if test "$ol_arg" = "invalid" ; then
2260 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2261 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2262 { (exit 1); exit 1; }; }
2264 ol_enable_proctitle="$ol_arg"
2267 ol_enable_proctitle="yes"
2268 fi; # end --enable-proctitle
2269 ol_enable_referrals=${ol_enable_referrals-no}
2270 ol_enable_kbind=${ol_enable_kbind-no}
2271 # OpenLDAP --enable-ipv6
2272 # Check whether --enable-ipv6 or --disable-ipv6 was given.
2273 if test "${enable_ipv6+set}" = set; then
2274 enableval="$enable_ipv6"
2277 for ol_val in auto yes no ; do
2278 if test "$enableval" = "$ol_val" ; then
2282 if test "$ol_arg" = "invalid" ; then
2283 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2284 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2285 { (exit 1); exit 1; }; }
2287 ol_enable_ipv6="$ol_arg"
2290 ol_enable_ipv6="auto"
2291 fi; # end --enable-ipv6
2292 # OpenLDAP --enable-local
2293 # Check whether --enable-local or --disable-local was given.
2294 if test "${enable_local+set}" = set; then
2295 enableval="$enable_local"
2298 for ol_val in auto yes no ; do
2299 if test "$enableval" = "$ol_val" ; then
2303 if test "$ol_arg" = "invalid" ; then
2304 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2305 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2306 { (exit 1); exit 1; }; }
2308 ol_enable_local="$ol_arg"
2311 ol_enable_local="auto"
2312 fi; # end --enable-local
2315 # OpenLDAP --with-cyrus_sasl
2317 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2318 if test "${with_cyrus_sasl+set}" = set; then
2319 withval="$with_cyrus_sasl"
2322 for ol_val in auto yes no ; do
2323 if test "$withval" = "$ol_val" ; then
2327 if test "$ol_arg" = "invalid" ; then
2328 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2329 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2330 { (exit 1); exit 1; }; }
2332 ol_with_cyrus_sasl="$ol_arg"
2335 ol_with_cyrus_sasl="auto"
2336 fi; # end --with-cyrus_sasl
2338 # OpenLDAP --with-fetch
2340 # Check whether --with-fetch or --without-fetch was given.
2341 if test "${with_fetch+set}" = set; then
2342 withval="$with_fetch"
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-fetch" >&5
2352 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2353 { (exit 1); exit 1; }; }
2355 ol_with_fetch="$ol_arg"
2358 ol_with_fetch="auto"
2359 fi; # end --with-fetch
2361 ol_with_kerberos=${ol_with_kerberos-auto}
2362 # OpenLDAP --with-threads
2364 # Check whether --with-threads or --without-threads was given.
2365 if test "${with_threads+set}" = set; then
2366 withval="$with_threads"
2369 for ol_val in auto nt posix mach pth lwp yes no manual ; do
2370 if test "$withval" = "$ol_val" ; then
2374 if test "$ol_arg" = "invalid" ; then
2375 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2376 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2377 { (exit 1); exit 1; }; }
2379 ol_with_threads="$ol_arg"
2382 ol_with_threads="auto"
2383 fi; # end --with-threads
2385 # OpenLDAP --with-tls
2387 # Check whether --with-tls or --without-tls was given.
2388 if test "${with_tls+set}" = set; then
2392 for ol_val in auto ssleay openssl yes no ; 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-tls" >&5
2399 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2400 { (exit 1); exit 1; }; }
2402 ol_with_tls="$ol_arg"
2406 fi; # end --with-tls
2408 # OpenLDAP --with-yielding_select
2410 # Check whether --with-yielding_select or --without-yielding_select was given.
2411 if test "${with_yielding_select+set}" = set; then
2412 withval="$with_yielding_select"
2415 for ol_val in auto yes no manual ; 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-yielding_select" >&5
2422 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2423 { (exit 1); exit 1; }; }
2425 ol_with_yielding_select="$ol_arg"
2428 ol_with_yielding_select="auto"
2429 fi; # end --with-yielding_select
2431 # OpenLDAP --with-multiple_precision
2433 # Check whether --with-multiple_precision or --without-multiple_precision was given.
2434 if test "${with_multiple_precision+set}" = set; then
2435 withval="$with_multiple_precision"
2438 for ol_val in auto bignum gmp yes no ; 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-multiple_precision" >&5
2445 echo "$as_me: error: bad value $withval for --with-multiple_precision" >&2;}
2446 { (exit 1); exit 1; }; }
2448 ol_with_multiple_precision="$ol_arg"
2451 ol_with_multiple_precision="auto"
2452 fi; # end --with-multiple_precision
2457 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
2458 if test "${with_xxslapdoptions+set}" = set; then
2459 withval="$with_xxslapdoptions"
2462 # OpenLDAP --enable-slapd
2463 # Check whether --enable-slapd or --disable-slapd was given.
2464 if test "${enable_slapd+set}" = set; then
2465 enableval="$enable_slapd"
2468 for ol_val in auto yes no ; do
2469 if test "$enableval" = "$ol_val" ; then
2473 if test "$ol_arg" = "invalid" ; then
2474 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2475 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2476 { (exit 1); exit 1; }; }
2478 ol_enable_slapd="$ol_arg"
2481 ol_enable_slapd="yes"
2482 fi; # end --enable-slapd
2483 # OpenLDAP --enable-aci
2484 # Check whether --enable-aci or --disable-aci was given.
2485 if test "${enable_aci+set}" = set; then
2486 enableval="$enable_aci"
2489 for ol_val in auto yes no ; do
2490 if test "$enableval" = "$ol_val" ; then
2494 if test "$ol_arg" = "invalid" ; then
2495 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2496 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2497 { (exit 1); exit 1; }; }
2499 ol_enable_aci="$ol_arg"
2503 fi; # end --enable-aci
2504 # OpenLDAP --enable-cleartext
2505 # Check whether --enable-cleartext or --disable-cleartext was given.
2506 if test "${enable_cleartext+set}" = set; then
2507 enableval="$enable_cleartext"
2510 for ol_val in auto yes no ; do
2511 if test "$enableval" = "$ol_val" ; then
2515 if test "$ol_arg" = "invalid" ; then
2516 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2517 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2518 { (exit 1); exit 1; }; }
2520 ol_enable_cleartext="$ol_arg"
2523 ol_enable_cleartext="yes"
2524 fi; # end --enable-cleartext
2525 # OpenLDAP --enable-crypt
2526 # Check whether --enable-crypt or --disable-crypt was given.
2527 if test "${enable_crypt+set}" = set; then
2528 enableval="$enable_crypt"
2531 for ol_val in auto yes no ; do
2532 if test "$enableval" = "$ol_val" ; then
2536 if test "$ol_arg" = "invalid" ; then
2537 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2538 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2539 { (exit 1); exit 1; }; }
2541 ol_enable_crypt="$ol_arg"
2544 ol_enable_crypt="no"
2545 fi; # end --enable-crypt
2546 # OpenLDAP --enable-lmpasswd
2547 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2548 if test "${enable_lmpasswd+set}" = set; then
2549 enableval="$enable_lmpasswd"
2552 for ol_val in auto yes no ; do
2553 if test "$enableval" = "$ol_val" ; then
2557 if test "$ol_arg" = "invalid" ; then
2558 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2559 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2560 { (exit 1); exit 1; }; }
2562 ol_enable_lmpasswd="$ol_arg"
2565 ol_enable_lmpasswd="no"
2566 fi; # end --enable-lmpasswd
2567 # OpenLDAP --enable-spasswd
2568 # Check whether --enable-spasswd or --disable-spasswd was given.
2569 if test "${enable_spasswd+set}" = set; then
2570 enableval="$enable_spasswd"
2573 for ol_val in auto yes no ; do
2574 if test "$enableval" = "$ol_val" ; then
2578 if test "$ol_arg" = "invalid" ; then
2579 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2580 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2581 { (exit 1); exit 1; }; }
2583 ol_enable_spasswd="$ol_arg"
2586 ol_enable_spasswd="no"
2587 fi; # end --enable-spasswd
2588 # OpenLDAP --enable-modules
2589 # Check whether --enable-modules or --disable-modules was given.
2590 if test "${enable_modules+set}" = set; then
2591 enableval="$enable_modules"
2594 for ol_val in auto yes no ; do
2595 if test "$enableval" = "$ol_val" ; then
2599 if test "$ol_arg" = "invalid" ; then
2600 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2601 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2602 { (exit 1); exit 1; }; }
2604 ol_enable_modules="$ol_arg"
2607 ol_enable_modules="no"
2608 fi; # end --enable-modules
2609 ol_enable_multimaster=${ol_enable_multimaster-no}
2610 # OpenLDAP --enable-rewrite
2611 # Check whether --enable-rewrite or --disable-rewrite was given.
2612 if test "${enable_rewrite+set}" = set; then
2613 enableval="$enable_rewrite"
2616 for ol_val in auto yes no ; do
2617 if test "$enableval" = "$ol_val" ; then
2621 if test "$ol_arg" = "invalid" ; then
2622 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2623 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2624 { (exit 1); exit 1; }; }
2626 ol_enable_rewrite="$ol_arg"
2629 ol_enable_rewrite="auto"
2630 fi; # end --enable-rewrite
2631 # OpenLDAP --enable-rlookups
2632 # Check whether --enable-rlookups or --disable-rlookups was given.
2633 if test "${enable_rlookups+set}" = set; then
2634 enableval="$enable_rlookups"
2637 for ol_val in auto yes no ; do
2638 if test "$enableval" = "$ol_val" ; then
2642 if test "$ol_arg" = "invalid" ; then
2643 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2644 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2645 { (exit 1); exit 1; }; }
2647 ol_enable_rlookups="$ol_arg"
2650 ol_enable_rlookups="no"
2651 fi; # end --enable-rlookups
2652 # OpenLDAP --enable-slapi
2653 # Check whether --enable-slapi or --disable-slapi was given.
2654 if test "${enable_slapi+set}" = set; then
2655 enableval="$enable_slapi"
2658 for ol_val in auto yes no ; do
2659 if test "$enableval" = "$ol_val" ; then
2663 if test "$ol_arg" = "invalid" ; then
2664 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2665 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2666 { (exit 1); exit 1; }; }
2668 ol_enable_slapi="$ol_arg"
2671 ol_enable_slapi="no"
2672 fi; # end --enable-slapi
2673 # OpenLDAP --enable-slp
2674 # Check whether --enable-slp or --disable-slp was given.
2675 if test "${enable_slp+set}" = set; then
2676 enableval="$enable_slp"
2679 for ol_val in auto yes no ; do
2680 if test "$enableval" = "$ol_val" ; then
2684 if test "$ol_arg" = "invalid" ; then
2685 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2686 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2687 { (exit 1); exit 1; }; }
2689 ol_enable_slp="$ol_arg"
2693 fi; # end --enable-slp
2694 # OpenLDAP --enable-wrappers
2695 # Check whether --enable-wrappers or --disable-wrappers was given.
2696 if test "${enable_wrappers+set}" = set; then
2697 enableval="$enable_wrappers"
2700 for ol_val in auto yes no ; do
2701 if test "$enableval" = "$ol_val" ; then
2705 if test "$ol_arg" = "invalid" ; then
2706 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2707 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2708 { (exit 1); exit 1; }; }
2710 ol_enable_wrappers="$ol_arg"
2713 ol_enable_wrappers="no"
2714 fi; # end --enable-wrappers
2716 Backends="bdb dnssrv hdb ldap ldbm meta monitor null \
2717 passwd perl relay shell sql"
2720 # Check whether --with-xxslapbackends or --without-xxslapbackends was given.
2721 if test "${with_xxslapbackends+set}" = set; then
2722 withval="$with_xxslapbackends"
2726 # OpenLDAP --enable-backends
2727 # Check whether --enable-backends or --disable-backends was given.
2728 if test "${enable_backends+set}" = set; then
2729 enableval="$enable_backends"
2732 for ol_val in no yes mod ; do
2733 if test "$enableval" = "$ol_val" ; then
2737 if test "$ol_arg" = "invalid" ; then
2738 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2739 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2740 { (exit 1); exit 1; }; }
2742 ol_enable_backends="$ol_arg"
2744 fi; # end --enable-backends
2745 test -n "$ol_enable_backends" && ol_dflt_backends="$ol_enable_backends"
2746 # OpenLDAP --enable-bdb
2747 # Check whether --enable-bdb or --disable-bdb was given.
2748 if test "${enable_bdb+set}" = set; then
2749 enableval="$enable_bdb"
2752 for ol_val in no yes mod ; do
2753 if test "$enableval" = "$ol_val" ; then
2757 if test "$ol_arg" = "invalid" ; then
2758 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2759 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2760 { (exit 1); exit 1; }; }
2762 ol_enable_bdb="$ol_arg"
2765 ol_enable_bdb="${ol_dflt_backends-yes}"
2766 fi; # end --enable-bdb
2767 # OpenLDAP --enable-dnssrv
2768 # Check whether --enable-dnssrv or --disable-dnssrv was given.
2769 if test "${enable_dnssrv+set}" = set; then
2770 enableval="$enable_dnssrv"
2773 for ol_val in no yes mod ; do
2774 if test "$enableval" = "$ol_val" ; then
2778 if test "$ol_arg" = "invalid" ; then
2779 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2780 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2781 { (exit 1); exit 1; }; }
2783 ol_enable_dnssrv="$ol_arg"
2786 ol_enable_dnssrv="${ol_dflt_backends-no}"
2787 fi; # end --enable-dnssrv
2788 # OpenLDAP --enable-hdb
2789 # Check whether --enable-hdb or --disable-hdb was given.
2790 if test "${enable_hdb+set}" = set; then
2791 enableval="$enable_hdb"
2794 for ol_val in no yes mod ; do
2795 if test "$enableval" = "$ol_val" ; then
2799 if test "$ol_arg" = "invalid" ; then
2800 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2801 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2802 { (exit 1); exit 1; }; }
2804 ol_enable_hdb="$ol_arg"
2807 ol_enable_hdb="${ol_dflt_backends-yes}"
2808 fi; # end --enable-hdb
2809 # OpenLDAP --enable-ldap
2810 # Check whether --enable-ldap or --disable-ldap was given.
2811 if test "${enable_ldap+set}" = set; then
2812 enableval="$enable_ldap"
2815 for ol_val in no yes mod ; do
2816 if test "$enableval" = "$ol_val" ; then
2820 if test "$ol_arg" = "invalid" ; then
2821 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2822 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2823 { (exit 1); exit 1; }; }
2825 ol_enable_ldap="$ol_arg"
2828 ol_enable_ldap="${ol_dflt_backends-no}"
2829 fi; # end --enable-ldap
2830 # OpenLDAP --enable-ldbm
2831 # Check whether --enable-ldbm or --disable-ldbm was given.
2832 if test "${enable_ldbm+set}" = set; then
2833 enableval="$enable_ldbm"
2836 for ol_val in no yes mod ; do
2837 if test "$enableval" = "$ol_val" ; then
2841 if test "$ol_arg" = "invalid" ; then
2842 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm" >&5
2843 echo "$as_me: error: bad value $enableval for --enable-ldbm" >&2;}
2844 { (exit 1); exit 1; }; }
2846 ol_enable_ldbm="$ol_arg"
2849 ol_enable_ldbm="${ol_dflt_backends-no}"
2850 fi; # end --enable-ldbm
2851 # OpenLDAP --with-ldbm_api
2853 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2854 if test "${with_ldbm_api+set}" = set; then
2855 withval="$with_ldbm_api"
2858 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2859 if test "$withval" = "$ol_val" ; then
2863 if test "$ol_arg" = "invalid" ; then
2864 { { echo "$as_me:$LINENO: error: bad value $withval for --with-ldbm_api" >&5
2865 echo "$as_me: error: bad value $withval for --with-ldbm_api" >&2;}
2866 { (exit 1); exit 1; }; }
2868 ol_with_ldbm_api="$ol_arg"
2871 ol_with_ldbm_api="auto"
2872 fi; # end --with-ldbm_api
2874 # OpenLDAP --with-ldbm_type
2876 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2877 if test "${with_ldbm_type+set}" = set; then
2878 withval="$with_ldbm_type"
2881 for ol_val in auto btree hash ; 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_type" >&5
2888 echo "$as_me: error: bad value $withval for --with-ldbm_type" >&2;}
2889 { (exit 1); exit 1; }; }
2891 ol_with_ldbm_type="$ol_arg"
2894 ol_with_ldbm_type="auto"
2895 fi; # end --with-ldbm_type
2897 # OpenLDAP --enable-meta
2898 # Check whether --enable-meta or --disable-meta was given.
2899 if test "${enable_meta+set}" = set; then
2900 enableval="$enable_meta"
2903 for ol_val in no yes mod ; do
2904 if test "$enableval" = "$ol_val" ; then
2908 if test "$ol_arg" = "invalid" ; then
2909 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2910 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2911 { (exit 1); exit 1; }; }
2913 ol_enable_meta="$ol_arg"
2916 ol_enable_meta="${ol_dflt_backends-no}"
2917 fi; # end --enable-meta
2918 # OpenLDAP --enable-monitor
2919 # Check whether --enable-monitor or --disable-monitor was given.
2920 if test "${enable_monitor+set}" = set; then
2921 enableval="$enable_monitor"
2924 for ol_val in no yes mod ; do
2925 if test "$enableval" = "$ol_val" ; then
2929 if test "$ol_arg" = "invalid" ; then
2930 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
2931 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
2932 { (exit 1); exit 1; }; }
2934 ol_enable_monitor="$ol_arg"
2937 ol_enable_monitor="${ol_dflt_backends-yes}"
2938 fi; # end --enable-monitor
2939 # OpenLDAP --enable-null
2940 # Check whether --enable-null or --disable-null was given.
2941 if test "${enable_null+set}" = set; then
2942 enableval="$enable_null"
2945 for ol_val in no yes mod ; do
2946 if test "$enableval" = "$ol_val" ; then
2950 if test "$ol_arg" = "invalid" ; then
2951 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
2952 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
2953 { (exit 1); exit 1; }; }
2955 ol_enable_null="$ol_arg"
2958 ol_enable_null="${ol_dflt_backends-no}"
2959 fi; # end --enable-null
2960 # OpenLDAP --enable-passwd
2961 # Check whether --enable-passwd or --disable-passwd was given.
2962 if test "${enable_passwd+set}" = set; then
2963 enableval="$enable_passwd"
2966 for ol_val in no yes mod ; do
2967 if test "$enableval" = "$ol_val" ; then
2971 if test "$ol_arg" = "invalid" ; then
2972 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
2973 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
2974 { (exit 1); exit 1; }; }
2976 ol_enable_passwd="$ol_arg"
2979 ol_enable_passwd="${ol_dflt_backends-no}"
2980 fi; # end --enable-passwd
2981 # OpenLDAP --enable-perl
2982 # Check whether --enable-perl or --disable-perl was given.
2983 if test "${enable_perl+set}" = set; then
2984 enableval="$enable_perl"
2987 for ol_val in no yes mod ; do
2988 if test "$enableval" = "$ol_val" ; then
2992 if test "$ol_arg" = "invalid" ; then
2993 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
2994 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
2995 { (exit 1); exit 1; }; }
2997 ol_enable_perl="$ol_arg"
3000 ol_enable_perl="${ol_dflt_backends-no}"
3001 fi; # end --enable-perl
3002 # OpenLDAP --enable-relay
3003 # Check whether --enable-relay or --disable-relay was given.
3004 if test "${enable_relay+set}" = set; then
3005 enableval="$enable_relay"
3008 for ol_val in no yes mod ; do
3009 if test "$enableval" = "$ol_val" ; then
3013 if test "$ol_arg" = "invalid" ; then
3014 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3015 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3016 { (exit 1); exit 1; }; }
3018 ol_enable_relay="$ol_arg"
3021 ol_enable_relay="${ol_dflt_backends-yes}"
3022 fi; # end --enable-relay
3023 # OpenLDAP --enable-shell
3024 # Check whether --enable-shell or --disable-shell was given.
3025 if test "${enable_shell+set}" = set; then
3026 enableval="$enable_shell"
3029 for ol_val in no yes mod ; do
3030 if test "$enableval" = "$ol_val" ; then
3034 if test "$ol_arg" = "invalid" ; then
3035 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3036 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3037 { (exit 1); exit 1; }; }
3039 ol_enable_shell="$ol_arg"
3042 ol_enable_shell="${ol_dflt_backends-no}"
3043 fi; # end --enable-shell
3044 # OpenLDAP --enable-sql
3045 # Check whether --enable-sql or --disable-sql was given.
3046 if test "${enable_sql+set}" = set; then
3047 enableval="$enable_sql"
3050 for ol_val in no yes mod ; do
3051 if test "$enableval" = "$ol_val" ; then
3055 if test "$ol_arg" = "invalid" ; then
3056 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3057 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3058 { (exit 1); exit 1; }; }
3060 ol_enable_sql="$ol_arg"
3063 ol_enable_sql="${ol_dflt_backends-no}"
3064 fi; # end --enable-sql
3066 Overlays="accesslog denyop dyngroup dynlist glue lastmod ppolicy proxycache \
3067 refint retcode rwm syncprov translucent unique"
3070 # Check whether --with-xxslapoverlays or --without-xxslapoverlays was given.
3071 if test "${with_xxslapoverlays+set}" = set; then
3072 withval="$with_xxslapoverlays"
3076 # OpenLDAP --enable-overlays
3077 # Check whether --enable-overlays or --disable-overlays was given.
3078 if test "${enable_overlays+set}" = set; then
3079 enableval="$enable_overlays"
3082 for ol_val in no yes mod ; do
3083 if test "$enableval" = "$ol_val" ; then
3087 if test "$ol_arg" = "invalid" ; then
3088 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3089 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3090 { (exit 1); exit 1; }; }
3092 ol_enable_overlays="$ol_arg"
3094 fi; # end --enable-overlays
3095 test -n "$ol_enable_overlays" && ol_dflt_overlays="$ol_enable_overlays"
3096 # OpenLDAP --enable-accesslog
3097 # Check whether --enable-accesslog or --disable-accesslog was given.
3098 if test "${enable_accesslog+set}" = set; then
3099 enableval="$enable_accesslog"
3102 for ol_val in no yes mod ; do
3103 if test "$enableval" = "$ol_val" ; then
3107 if test "$ol_arg" = "invalid" ; then
3108 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3109 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3110 { (exit 1); exit 1; }; }
3112 ol_enable_accesslog="$ol_arg"
3115 ol_enable_accesslog="${ol_dflt_overlays-no}"
3116 fi; # end --enable-accesslog
3118 # OpenLDAP --enable-denyop
3119 # Check whether --enable-denyop or --disable-denyop was given.
3120 if test "${enable_denyop+set}" = set; then
3121 enableval="$enable_denyop"
3124 for ol_val in no yes mod ; do
3125 if test "$enableval" = "$ol_val" ; then
3129 if test "$ol_arg" = "invalid" ; then
3130 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-denyop" >&5
3131 echo "$as_me: error: bad value $enableval for --enable-denyop" >&2;}
3132 { (exit 1); exit 1; }; }
3134 ol_enable_denyop="$ol_arg"
3137 ol_enable_denyop="${ol_dflt_overlays-no}"
3138 fi; # end --enable-denyop
3140 # OpenLDAP --enable-dyngroup
3141 # Check whether --enable-dyngroup or --disable-dyngroup was given.
3142 if test "${enable_dyngroup+set}" = set; then
3143 enableval="$enable_dyngroup"
3146 for ol_val in no yes mod ; do
3147 if test "$enableval" = "$ol_val" ; then
3151 if test "$ol_arg" = "invalid" ; then
3152 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3153 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3154 { (exit 1); exit 1; }; }
3156 ol_enable_dyngroup="$ol_arg"
3159 ol_enable_dyngroup="${ol_dflt_overlays-no}"
3160 fi; # end --enable-dyngroup
3162 # OpenLDAP --enable-dynlist
3163 # Check whether --enable-dynlist or --disable-dynlist was given.
3164 if test "${enable_dynlist+set}" = set; then
3165 enableval="$enable_dynlist"
3168 for ol_val in no yes mod ; do
3169 if test "$enableval" = "$ol_val" ; then
3173 if test "$ol_arg" = "invalid" ; then
3174 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3175 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3176 { (exit 1); exit 1; }; }
3178 ol_enable_dynlist="$ol_arg"
3181 ol_enable_dynlist="${ol_dflt_overlays-no}"
3182 fi; # end --enable-dynlist
3184 # OpenLDAP --enable-glue
3185 # Check whether --enable-glue or --disable-glue was given.
3186 if test "${enable_glue+set}" = set; then
3187 enableval="$enable_glue"
3190 for ol_val in no yes mod ; do
3191 if test "$enableval" = "$ol_val" ; then
3195 if test "$ol_arg" = "invalid" ; then
3196 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-glue" >&5
3197 echo "$as_me: error: bad value $enableval for --enable-glue" >&2;}
3198 { (exit 1); exit 1; }; }
3200 ol_enable_glue="$ol_arg"
3203 ol_enable_glue="${ol_dflt_overlays-yes}"
3204 fi; # end --enable-glue
3206 # OpenLDAP --enable-lastmod
3207 # Check whether --enable-lastmod or --disable-lastmod was given.
3208 if test "${enable_lastmod+set}" = set; then
3209 enableval="$enable_lastmod"
3212 for ol_val in no yes mod ; do
3213 if test "$enableval" = "$ol_val" ; then
3217 if test "$ol_arg" = "invalid" ; then
3218 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lastmod" >&5
3219 echo "$as_me: error: bad value $enableval for --enable-lastmod" >&2;}
3220 { (exit 1); exit 1; }; }
3222 ol_enable_lastmod="$ol_arg"
3225 ol_enable_lastmod="${ol_dflt_overlays-no}"
3226 fi; # end --enable-lastmod
3228 # OpenLDAP --enable-ppolicy
3229 # Check whether --enable-ppolicy or --disable-ppolicy was given.
3230 if test "${enable_ppolicy+set}" = set; then
3231 enableval="$enable_ppolicy"
3234 for ol_val in no yes mod ; do
3235 if test "$enableval" = "$ol_val" ; then
3239 if test "$ol_arg" = "invalid" ; then
3240 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3241 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3242 { (exit 1); exit 1; }; }
3244 ol_enable_ppolicy="$ol_arg"
3247 ol_enable_ppolicy="${ol_dflt_overlays-no}"
3248 fi; # end --enable-ppolicy
3250 # OpenLDAP --enable-proxycache
3251 # Check whether --enable-proxycache or --disable-proxycache was given.
3252 if test "${enable_proxycache+set}" = set; then
3253 enableval="$enable_proxycache"
3256 for ol_val in no yes mod ; do
3257 if test "$enableval" = "$ol_val" ; then
3261 if test "$ol_arg" = "invalid" ; then
3262 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3263 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3264 { (exit 1); exit 1; }; }
3266 ol_enable_proxycache="$ol_arg"
3269 ol_enable_proxycache="${ol_dflt_overlays-no}"
3270 fi; # end --enable-proxycache
3272 # OpenLDAP --enable-refint
3273 # Check whether --enable-refint or --disable-refint was given.
3274 if test "${enable_refint+set}" = set; then
3275 enableval="$enable_refint"
3278 for ol_val in no yes mod ; do
3279 if test "$enableval" = "$ol_val" ; then
3283 if test "$ol_arg" = "invalid" ; then
3284 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3285 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3286 { (exit 1); exit 1; }; }
3288 ol_enable_refint="$ol_arg"
3291 ol_enable_refint="${ol_dflt_overlays-no}"
3292 fi; # end --enable-refint
3294 # OpenLDAP --enable-retcode
3295 # Check whether --enable-retcode or --disable-retcode was given.
3296 if test "${enable_retcode+set}" = set; then
3297 enableval="$enable_retcode"
3300 for ol_val in no yes mod ; do
3301 if test "$enableval" = "$ol_val" ; then
3305 if test "$ol_arg" = "invalid" ; then
3306 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3307 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3308 { (exit 1); exit 1; }; }
3310 ol_enable_retcode="$ol_arg"
3313 ol_enable_retcode="${ol_dflt_overlays-no}"
3314 fi; # end --enable-retcode
3316 # OpenLDAP --enable-rwm
3317 # Check whether --enable-rwm or --disable-rwm was given.
3318 if test "${enable_rwm+set}" = set; then
3319 enableval="$enable_rwm"
3322 for ol_val in no yes mod ; do
3323 if test "$enableval" = "$ol_val" ; then
3327 if test "$ol_arg" = "invalid" ; then
3328 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3329 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3330 { (exit 1); exit 1; }; }
3332 ol_enable_rwm="$ol_arg"
3335 ol_enable_rwm="${ol_dflt_overlays-no}"
3336 fi; # end --enable-rwm
3338 # OpenLDAP --enable-syncprov
3339 # Check whether --enable-syncprov or --disable-syncprov was given.
3340 if test "${enable_syncprov+set}" = set; then
3341 enableval="$enable_syncprov"
3344 for ol_val in no yes mod ; do
3345 if test "$enableval" = "$ol_val" ; then
3349 if test "$ol_arg" = "invalid" ; then
3350 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3351 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3352 { (exit 1); exit 1; }; }
3354 ol_enable_syncprov="$ol_arg"
3357 ol_enable_syncprov="${ol_dflt_overlays-yes}"
3358 fi; # end --enable-syncprov
3360 # OpenLDAP --enable-translucent
3361 # Check whether --enable-translucent or --disable-translucent was given.
3362 if test "${enable_translucent+set}" = set; then
3363 enableval="$enable_translucent"
3366 for ol_val in no yes mod ; do
3367 if test "$enableval" = "$ol_val" ; then
3371 if test "$ol_arg" = "invalid" ; then
3372 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3373 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3374 { (exit 1); exit 1; }; }
3376 ol_enable_translucent="$ol_arg"
3379 ol_enable_translucent="${ol_dflt_overlays-no}"
3380 fi; # end --enable-translucent
3382 # OpenLDAP --enable-unique
3383 # Check whether --enable-unique or --disable-unique was given.
3384 if test "${enable_unique+set}" = set; then
3385 enableval="$enable_unique"
3388 for ol_val in no yes mod ; do
3389 if test "$enableval" = "$ol_val" ; then
3393 if test "$ol_arg" = "invalid" ; then
3394 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3395 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3396 { (exit 1); exit 1; }; }
3398 ol_enable_unique="$ol_arg"
3401 ol_enable_unique="${ol_dflt_overlays-no}"
3402 fi; # end --enable-unique
3407 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
3408 if test "${with_xxslurpdoptions+set}" = set; then
3409 withval="$with_xxslurpdoptions"
3412 # OpenLDAP --enable-slurpd
3413 # Check whether --enable-slurpd or --disable-slurpd was given.
3414 if test "${enable_slurpd+set}" = set; then
3415 enableval="$enable_slurpd"
3418 for ol_val in auto yes no ; do
3419 if test "$enableval" = "$ol_val" ; then
3423 if test "$ol_arg" = "invalid" ; then
3424 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slurpd" >&5
3425 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
3426 { (exit 1); exit 1; }; }
3428 ol_enable_slurpd="$ol_arg"
3431 ol_enable_slurpd="auto"
3432 fi; # end --enable-slurpd
3435 # Check whether --with-xxliboptions or --without-xxliboptions was given.
3436 if test "${with_xxliboptions+set}" = set; then
3437 withval="$with_xxliboptions"
3440 # Check whether --enable-static or --disable-static was given.
3441 if test "${enable_static+set}" = set; then
3442 enableval="$enable_static"
3443 p=${PACKAGE-default}
3445 yes) enable_static=yes ;;
3446 no) enable_static=no ;;
3449 # Look at the argument we got. We use all the common list separators.
3450 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3451 for pkg in $enableval; do
3453 if test "X$pkg" = "X$p"; then
3464 # Check whether --enable-shared or --disable-shared was given.
3465 if test "${enable_shared+set}" = set; then
3466 enableval="$enable_shared"
3467 p=${PACKAGE-default}
3469 yes) enable_shared=yes ;;
3470 no) enable_shared=no ;;
3473 # Look at the argument we got. We use all the common list separators.
3474 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3475 for pkg in $enableval; do
3477 if test "X$pkg" = "X$p"; then
3491 if test $ol_enable_slapd = no ; then
3492 if test $ol_enable_slapi = yes ; then
3493 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3494 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3496 case "$ol_enable_backends" in yes | mod)
3497 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3498 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3500 for i in $Backends; do
3501 eval "ol_tmp=\$ol_enable_$i"
3502 if test $ol_tmp != no ; then
3503 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3504 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3505 eval "ol_enable_$i=no"
3508 if test $ol_enable_modules = yes ; then
3509 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3510 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3512 if test $ol_enable_multimaster = yes ; then
3513 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&5
3514 echo "$as_me: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&2;}
3516 if test $ol_enable_wrappers = yes ; then
3517 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3518 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3520 if test $ol_enable_rlookups = yes ; then
3521 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3522 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3524 if test $ol_enable_aci = yes ; then
3525 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3526 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3528 if test $ol_with_ldbm_api != auto ; then
3529 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --with-ldbm-api argument" >&5
3530 echo "$as_me: WARNING: slapd disabled, ignoring --with-ldbm-api argument" >&2;}
3532 if test $ol_with_ldbm_type != auto ; then
3533 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --with-ldbm-type argument" >&5
3534 echo "$as_me: WARNING: slapd disabled, ignoring --with-ldbm-type argument" >&2;}
3536 if test $ol_enable_slurpd = yes ; then
3537 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3538 echo "$as_me: error: slurpd requires slapd" >&2;}
3539 { (exit 1); exit 1; }; }
3541 if test $ol_enable_rewrite = yes ; then
3542 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3543 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3545 case "$ol_enable_overlays" in yes | mod)
3546 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3547 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3549 for i in $Overlays; do
3550 eval "ol_tmp=\$ol_enable_$i"
3551 if test $ol_tmp != no ; then
3552 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3553 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3554 eval "ol_enable_$i=no"
3558 # force settings to no
3563 ol_enable_modules=no
3564 ol_enable_multimaster=no
3565 ol_enable_rlookups=no
3567 ol_enable_wrappers=no
3570 ol_with_ldbm_type=no
3574 ol_enable_rewrite=no
3576 elif test $ol_enable_ldbm = no ; then
3578 if test $ol_with_ldbm_api != auto ; then
3579 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --with-ldbm-api argument" >&5
3580 echo "$as_me: WARNING: LDBM disabled, ignoring --with-ldbm-api argument" >&2;}
3583 if test $ol_with_ldbm_type != auto ; then
3584 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --with-ldbm-type argument" >&5
3585 echo "$as_me: WARNING: LDBM disabled, ignoring --with-ldbm-type argument" >&2;}
3588 if test $ol_enable_modules != yes -a \
3589 $ol_enable_bdb = no -a \
3590 $ol_enable_dnssrv = no -a \
3591 $ol_enable_hdb = no -a \
3592 $ol_enable_ldap = no -a \
3593 $ol_enable_meta = no -a \
3594 $ol_enable_monitor = no -a \
3595 $ol_enable_null = no -a \
3596 $ol_enable_passwd = no -a \
3597 $ol_enable_perl = no -a \
3598 $ol_enable_relay = no -a \
3599 $ol_enable_shell = no -a \
3600 $ol_enable_sql = no ; then
3602 if test $ol_enable_slapd = yes ; then
3603 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3604 echo "$as_me: error: slapd requires a backend" >&2;}
3605 { (exit 1); exit 1; }; }
3607 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3608 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3614 ol_with_ldbm_type=no
3616 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
3617 ol_with_ldbm_api=berkeley
3621 if test $ol_with_ldbm_api = gdbm -a \
3622 $ol_with_ldbm_type = btree ; then
3623 { { echo "$as_me:$LINENO: error: GDBM only supports LDBM type hash" >&5
3624 echo "$as_me: error: GDBM only supports LDBM type hash" >&2;}
3625 { (exit 1); exit 1; }; }
3627 if test $ol_with_ldbm_api = mdbm -a \
3628 $ol_with_ldbm_type = btree ; then
3629 { { echo "$as_me:$LINENO: error: MDBM only supports LDBM type hash" >&5
3630 echo "$as_me: error: MDBM only supports LDBM type hash" >&2;}
3631 { (exit 1); exit 1; }; }
3633 if test $ol_with_ldbm_api = ndbm -a \
3634 $ol_with_ldbm_type = btree ; then
3635 { { echo "$as_me:$LINENO: error: NDBM only supports LDBM type hash" >&5
3636 echo "$as_me: error: NDBM only supports LDBM type hash" >&2;}
3637 { (exit 1); exit 1; }; }
3640 if test $ol_enable_bdb != no -o $ol_enable_hdb != no ; then
3641 if test $ol_with_ldbm_api = auto ; then
3642 ol_with_ldbm_api=berkeley
3643 elif test $ol_with_ldbm_api != berkeley ; then
3644 { { echo "$as_me:$LINENO: error: LDBM API not compatible with BDB/HDB" >&5
3645 echo "$as_me: error: LDBM API not compatible with BDB/HDB" >&2;}
3646 { (exit 1); exit 1; }; }
3651 if test $ol_enable_meta = yes -a $ol_enable_ldap = no ; then
3652 { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3653 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3654 { (exit 1); exit 1; }; }
3657 if test $ol_enable_slurpd = yes ; then
3658 if test $ol_with_threads = no ; then
3659 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3660 echo "$as_me: error: slurpd requires threads" >&2;}
3661 { (exit 1); exit 1; }; }
3665 if test $ol_enable_lmpasswd = yes ; then
3666 if test $ol_with_tls = no ; then
3667 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3668 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3669 { (exit 1); exit 1; }; }
3673 if test $ol_enable_kbind = yes ; then
3674 if test $ol_with_kerberos = no ; then
3675 { { echo "$as_me:$LINENO: error: options require --with-kerberos" >&5
3676 echo "$as_me: error: options require --with-kerberos" >&2;}
3677 { (exit 1); exit 1; }; }
3678 elif test $ol_with_kerberos = auto ; then
3679 ol_with_kerberos=yes
3682 elif test $ol_enable_kbind = no ; then
3683 if test $ol_with_kerberos = auto ; then
3685 elif test $ol_with_kerberos != no ; then
3686 { echo "$as_me:$LINENO: WARNING: Kerberos detection enabled unnecessarily" >&5
3687 echo "$as_me: WARNING: Kerberos detection enabled unnecessarily" >&2;};
3692 if test $ol_enable_spasswd = yes ; then
3693 if test $ol_with_cyrus_sasl = no ; then
3694 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3695 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3696 { (exit 1); exit 1; }; }
3698 ol_with_cyrus_sasl=yes
3701 echo "$as_me:$LINENO: result: done" >&5
3702 echo "${ECHO_T}done" >&6
3746 BUILD_TRANSLUCENT=no
3749 SLAPD_STATIC_OVERLAYS=
3750 SLAPD_DYNAMIC_OVERLAYS=
3752 SLAPD_MODULES_LDFLAGS=
3753 SLAPD_MODULES_CPPFLAGS=
3755 SLAPD_STATIC_BACKENDS=back-ldif
3756 SLAPD_DYNAMIC_BACKENDS=
3781 cat >>confdefs.h <<\_ACEOF
3782 #define HAVE_MKVERSION 1
3790 *-*-aix*) if test -z "$CC" ; then
3791 case "$ol_with_threads" in
3792 auto | yes | posix) ol_aix_threads=yes ;;
3798 if test $ol_aix_threads = yes ; then
3799 if test -z "${CC}" ; then
3800 for ac_prog in cc_r xlc_r cc
3802 # Extract the first word of "$ac_prog", so it can be a program name with args.
3803 set dummy $ac_prog; ac_word=$2
3804 echo "$as_me:$LINENO: checking for $ac_word" >&5
3805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3806 if test "${ac_cv_prog_CC+set}" = set; then
3807 echo $ECHO_N "(cached) $ECHO_C" >&6
3809 if test -n "$CC"; then
3810 ac_cv_prog_CC="$CC" # Let the user override the test.
3812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3816 test -z "$as_dir" && as_dir=.
3817 for ac_exec_ext in '' $ac_executable_extensions; do
3818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3819 ac_cv_prog_CC="$ac_prog"
3820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3829 if test -n "$CC"; then
3830 echo "$as_me:$LINENO: result: $CC" >&5
3831 echo "${ECHO_T}$CC" >&6
3833 echo "$as_me:$LINENO: result: no" >&5
3834 echo "${ECHO_T}no" >&6
3837 test -n "$CC" && break
3841 if test "$CC" = cc ; then
3842 if test $ol_with_threads != auto ; then
3843 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3844 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3845 { (exit 1); exit 1; }; }
3847 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
3848 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
3854 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
3855 ol_with_threads=posix
3856 ol_cv_pthread_create=yes
3860 if test -z "${CC}"; then
3861 for ac_prog in cc gcc
3863 # Extract the first word of "$ac_prog", so it can be a program name with args.
3864 set dummy $ac_prog; ac_word=$2
3865 echo "$as_me:$LINENO: checking for $ac_word" >&5
3866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3867 if test "${ac_cv_prog_CC+set}" = set; then
3868 echo $ECHO_N "(cached) $ECHO_C" >&6
3870 if test -n "$CC"; then
3871 ac_cv_prog_CC="$CC" # Let the user override the test.
3873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3877 test -z "$as_dir" && as_dir=.
3878 for ac_exec_ext in '' $ac_executable_extensions; do
3879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3880 ac_cv_prog_CC="$ac_prog"
3881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3890 if test -n "$CC"; then
3891 echo "$as_me:$LINENO: result: $CC" >&5
3892 echo "${ECHO_T}$CC" >&6
3894 echo "$as_me:$LINENO: result: no" >&5
3895 echo "${ECHO_T}no" >&6
3898 test -n "$CC" && break
3900 test -n "$CC" || CC="missing"
3903 if test "${CC}" = "missing" ; then
3904 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&5
3905 echo "$as_me: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&2;}
3906 { (exit 1); exit 1; }; }
3910 if test -z "${AR}"; then
3911 for ac_prog in ar gar
3913 # Extract the first word of "$ac_prog", so it can be a program name with args.
3914 set dummy $ac_prog; ac_word=$2
3915 echo "$as_me:$LINENO: checking for $ac_word" >&5
3916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3917 if test "${ac_cv_prog_AR+set}" = set; then
3918 echo $ECHO_N "(cached) $ECHO_C" >&6
3920 if test -n "$AR"; then
3921 ac_cv_prog_AR="$AR" # Let the user override the test.
3923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3927 test -z "$as_dir" && as_dir=.
3928 for ac_exec_ext in '' $ac_executable_extensions; do
3929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3930 ac_cv_prog_AR="$ac_prog"
3931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3940 if test -n "$AR"; then
3941 echo "$as_me:$LINENO: result: $AR" >&5
3942 echo "${ECHO_T}$AR" >&6
3944 echo "$as_me:$LINENO: result: no" >&5
3945 echo "${ECHO_T}no" >&6
3948 test -n "$AR" && break
3950 test -n "$AR" || AR="missing"
3953 if test "${AR}" = "missing" ; then
3954 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&5
3955 echo "$as_me: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&2;}
3956 { (exit 1); exit 1; }; }
3964 # Check whether --enable-fast-install or --disable-fast-install was given.
3965 if test "${enable_fast_install+set}" = set; then
3966 enableval="$enable_fast_install"
3967 p=${PACKAGE-default}
3969 yes) enable_fast_install=yes ;;
3970 no) enable_fast_install=no ;;
3972 enable_fast_install=no
3973 # Look at the argument we got. We use all the common list separators.
3974 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3975 for pkg in $enableval; do
3977 if test "X$pkg" = "X$p"; then
3978 enable_fast_install=yes
3985 enable_fast_install=yes
3988 DEPDIR="${am__leading_dot}deps"
3990 ac_config_commands="$ac_config_commands depfiles"
3993 am_make=${MAKE-make}
3994 cat > confinc << 'END'
3999 # If we don't find an include directive, just comment out the code.
4000 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4001 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4005 # First try GNU make style include.
4006 echo "include confinc" > confmf
4007 # We grep out `Entering directory' and `Leaving directory'
4008 # messages which can occur if `w' ends up in MAKEFLAGS.
4009 # In particular we don't look at `^make:' because GNU make might
4010 # be invoked under some other name (usually "gmake"), in which
4011 # case it prints its new name instead of `make'.
4012 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4017 # Now try BSD make style include.
4018 if test "$am__include" = "#"; then
4019 echo '.include "confinc"' > confmf
4020 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4021 am__include=.include
4028 echo "$as_me:$LINENO: result: $_am_result" >&5
4029 echo "${ECHO_T}$_am_result" >&6
4030 rm -f confinc confmf
4032 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4033 if test "${enable_dependency_tracking+set}" = set; then
4034 enableval="$enable_dependency_tracking"
4037 if test "x$enable_dependency_tracking" != xno; then
4038 am_depcomp="$ac_aux_dir/depcomp"
4043 if test "x$enable_dependency_tracking" != xno; then
4054 ac_cpp='$CPP $CPPFLAGS'
4055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4058 if test -n "$ac_tool_prefix"; then
4059 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4060 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4061 echo "$as_me:$LINENO: checking for $ac_word" >&5
4062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4063 if test "${ac_cv_prog_CC+set}" = set; then
4064 echo $ECHO_N "(cached) $ECHO_C" >&6
4066 if test -n "$CC"; then
4067 ac_cv_prog_CC="$CC" # Let the user override the test.
4069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4073 test -z "$as_dir" && as_dir=.
4074 for ac_exec_ext in '' $ac_executable_extensions; do
4075 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4076 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4086 if test -n "$CC"; then
4087 echo "$as_me:$LINENO: result: $CC" >&5
4088 echo "${ECHO_T}$CC" >&6
4090 echo "$as_me:$LINENO: result: no" >&5
4091 echo "${ECHO_T}no" >&6
4095 if test -z "$ac_cv_prog_CC"; then
4097 # Extract the first word of "gcc", so it can be a program name with args.
4098 set dummy gcc; ac_word=$2
4099 echo "$as_me:$LINENO: checking for $ac_word" >&5
4100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4101 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4102 echo $ECHO_N "(cached) $ECHO_C" >&6
4104 if test -n "$ac_ct_CC"; then
4105 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4111 test -z "$as_dir" && as_dir=.
4112 for ac_exec_ext in '' $ac_executable_extensions; do
4113 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4114 ac_cv_prog_ac_ct_CC="gcc"
4115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4123 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4124 if test -n "$ac_ct_CC"; then
4125 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4126 echo "${ECHO_T}$ac_ct_CC" >&6
4128 echo "$as_me:$LINENO: result: no" >&5
4129 echo "${ECHO_T}no" >&6
4137 if test -z "$CC"; then
4138 if test -n "$ac_tool_prefix"; then
4139 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4140 set dummy ${ac_tool_prefix}cc; ac_word=$2
4141 echo "$as_me:$LINENO: checking for $ac_word" >&5
4142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4143 if test "${ac_cv_prog_CC+set}" = set; then
4144 echo $ECHO_N "(cached) $ECHO_C" >&6
4146 if test -n "$CC"; then
4147 ac_cv_prog_CC="$CC" # Let the user override the test.
4149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4153 test -z "$as_dir" && as_dir=.
4154 for ac_exec_ext in '' $ac_executable_extensions; do
4155 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4156 ac_cv_prog_CC="${ac_tool_prefix}cc"
4157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4166 if test -n "$CC"; then
4167 echo "$as_me:$LINENO: result: $CC" >&5
4168 echo "${ECHO_T}$CC" >&6
4170 echo "$as_me:$LINENO: result: no" >&5
4171 echo "${ECHO_T}no" >&6
4175 if test -z "$ac_cv_prog_CC"; then
4177 # Extract the first word of "cc", so it can be a program name with args.
4178 set dummy cc; ac_word=$2
4179 echo "$as_me:$LINENO: checking for $ac_word" >&5
4180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4181 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4182 echo $ECHO_N "(cached) $ECHO_C" >&6
4184 if test -n "$ac_ct_CC"; then
4185 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191 test -z "$as_dir" && as_dir=.
4192 for ac_exec_ext in '' $ac_executable_extensions; do
4193 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4194 ac_cv_prog_ac_ct_CC="cc"
4195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4203 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4204 if test -n "$ac_ct_CC"; then
4205 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4206 echo "${ECHO_T}$ac_ct_CC" >&6
4208 echo "$as_me:$LINENO: result: no" >&5
4209 echo "${ECHO_T}no" >&6
4218 if test -z "$CC"; then
4219 # Extract the first word of "cc", so it can be a program name with args.
4220 set dummy cc; ac_word=$2
4221 echo "$as_me:$LINENO: checking for $ac_word" >&5
4222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4223 if test "${ac_cv_prog_CC+set}" = set; then
4224 echo $ECHO_N "(cached) $ECHO_C" >&6
4226 if test -n "$CC"; then
4227 ac_cv_prog_CC="$CC" # Let the user override the test.
4230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234 test -z "$as_dir" && as_dir=.
4235 for ac_exec_ext in '' $ac_executable_extensions; do
4236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4237 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4238 ac_prog_rejected=yes
4242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4248 if test $ac_prog_rejected = yes; then
4249 # We found a bogon in the path, so make sure we never use it.
4250 set dummy $ac_cv_prog_CC
4252 if test $# != 0; then
4253 # We chose a different compiler from the bogus one.
4254 # However, it has the same basename, so the bogon will be chosen
4255 # first if we set CC to just the basename; use the full file name.
4257 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4263 if test -n "$CC"; then
4264 echo "$as_me:$LINENO: result: $CC" >&5
4265 echo "${ECHO_T}$CC" >&6
4267 echo "$as_me:$LINENO: result: no" >&5
4268 echo "${ECHO_T}no" >&6
4272 if test -z "$CC"; then
4273 if test -n "$ac_tool_prefix"; then
4276 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4277 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4278 echo "$as_me:$LINENO: checking for $ac_word" >&5
4279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4280 if test "${ac_cv_prog_CC+set}" = set; then
4281 echo $ECHO_N "(cached) $ECHO_C" >&6
4283 if test -n "$CC"; then
4284 ac_cv_prog_CC="$CC" # Let the user override the test.
4286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4290 test -z "$as_dir" && as_dir=.
4291 for ac_exec_ext in '' $ac_executable_extensions; do
4292 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4293 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4303 if test -n "$CC"; then
4304 echo "$as_me:$LINENO: result: $CC" >&5
4305 echo "${ECHO_T}$CC" >&6
4307 echo "$as_me:$LINENO: result: no" >&5
4308 echo "${ECHO_T}no" >&6
4311 test -n "$CC" && break
4314 if test -z "$CC"; then
4318 # Extract the first word of "$ac_prog", so it can be a program name with args.
4319 set dummy $ac_prog; ac_word=$2
4320 echo "$as_me:$LINENO: checking for $ac_word" >&5
4321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4322 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4323 echo $ECHO_N "(cached) $ECHO_C" >&6
4325 if test -n "$ac_ct_CC"; then
4326 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4332 test -z "$as_dir" && as_dir=.
4333 for ac_exec_ext in '' $ac_executable_extensions; do
4334 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4335 ac_cv_prog_ac_ct_CC="$ac_prog"
4336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4344 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4345 if test -n "$ac_ct_CC"; then
4346 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4347 echo "${ECHO_T}$ac_ct_CC" >&6
4349 echo "$as_me:$LINENO: result: no" >&5
4350 echo "${ECHO_T}no" >&6
4353 test -n "$ac_ct_CC" && break
4362 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4363 See \`config.log' for more details." >&5
4364 echo "$as_me: error: no acceptable C compiler found in \$PATH
4365 See \`config.log' for more details." >&2;}
4366 { (exit 1); exit 1; }; }
4368 # Provide some information about the compiler.
4369 echo "$as_me:$LINENO:" \
4370 "checking for C compiler version" >&5
4371 ac_compiler=`set X $ac_compile; echo $2`
4372 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4373 (eval $ac_compiler --version </dev/null >&5) 2>&5
4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); }
4377 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4378 (eval $ac_compiler -v </dev/null >&5) 2>&5
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); }
4382 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4383 (eval $ac_compiler -V </dev/null >&5) 2>&5
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); }
4388 cat >conftest.$ac_ext <<_ACEOF
4391 cat confdefs.h >>conftest.$ac_ext
4392 cat >>conftest.$ac_ext <<_ACEOF
4393 /* end confdefs.h. */
4403 ac_clean_files_save=$ac_clean_files
4404 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4405 # Try to create an executable without -o first, disregard a.out.
4406 # It will help us diagnose broken compilers, and finding out an intuition
4408 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4409 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4410 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4411 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4412 (eval $ac_link_default) 2>&5
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); }; then
4416 # Find the output, starting from the most likely. This scheme is
4417 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4420 # Be careful to initialize this variable, since it used to be cached.
4421 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4423 # b.out is created by i960 compilers.
4424 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4426 test -f "$ac_file" || continue
4428 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4431 # This is the source file.
4434 # We found the default executable, but exeext='' is most
4438 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4439 # FIXME: I believe we export ac_cv_exeext for Libtool,
4440 # but it would be cool to find out if it's true. Does anybody
4441 # maintain Libtool? --akim.
4449 echo "$as_me: failed program was:" >&5
4450 sed 's/^/| /' conftest.$ac_ext >&5
4452 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4453 See \`config.log' for more details." >&5
4454 echo "$as_me: error: C compiler cannot create executables
4455 See \`config.log' for more details." >&2;}
4456 { (exit 77); exit 77; }; }
4459 ac_exeext=$ac_cv_exeext
4460 echo "$as_me:$LINENO: result: $ac_file" >&5
4461 echo "${ECHO_T}$ac_file" >&6
4463 # Check the compiler produces executables we can run. If not, either
4464 # the compiler is broken, or we cross compile.
4465 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4466 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4467 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4468 # If not cross compiling, check that we can run a simple program.
4469 if test "$cross_compiling" != yes; then
4470 if { ac_try='./$ac_file'
4471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); }; }; then
4478 if test "$cross_compiling" = maybe; then
4481 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4482 If you meant to cross compile, use \`--host'.
4483 See \`config.log' for more details." >&5
4484 echo "$as_me: error: cannot run C compiled programs.
4485 If you meant to cross compile, use \`--host'.
4486 See \`config.log' for more details." >&2;}
4487 { (exit 1); exit 1; }; }
4491 echo "$as_me:$LINENO: result: yes" >&5
4492 echo "${ECHO_T}yes" >&6
4494 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4495 ac_clean_files=$ac_clean_files_save
4496 # Check the compiler produces executables we can run. If not, either
4497 # the compiler is broken, or we cross compile.
4498 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4499 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4500 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4501 echo "${ECHO_T}$cross_compiling" >&6
4503 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4504 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4506 (eval $ac_link) 2>&5
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); }; then
4510 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4511 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4512 # work properly (i.e., refer to `conftest.exe'), while it won't with
4514 for ac_file in conftest.exe conftest conftest.*; do
4515 test -f "$ac_file" || continue
4517 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4518 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4525 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4526 See \`config.log' for more details." >&5
4527 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4528 See \`config.log' for more details." >&2;}
4529 { (exit 1); exit 1; }; }
4532 rm -f conftest$ac_cv_exeext
4533 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4534 echo "${ECHO_T}$ac_cv_exeext" >&6
4536 rm -f conftest.$ac_ext
4537 EXEEXT=$ac_cv_exeext
4539 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4540 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4541 if test "${ac_cv_objext+set}" = set; then
4542 echo $ECHO_N "(cached) $ECHO_C" >&6
4544 cat >conftest.$ac_ext <<_ACEOF
4547 cat confdefs.h >>conftest.$ac_ext
4548 cat >>conftest.$ac_ext <<_ACEOF
4549 /* end confdefs.h. */
4559 rm -f conftest.o conftest.obj
4560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4561 (eval $ac_compile) 2>&5
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); }; then
4565 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4567 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4568 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4573 echo "$as_me: failed program was:" >&5
4574 sed 's/^/| /' conftest.$ac_ext >&5
4576 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4577 See \`config.log' for more details." >&5
4578 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4579 See \`config.log' for more details." >&2;}
4580 { (exit 1); exit 1; }; }
4583 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4585 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4586 echo "${ECHO_T}$ac_cv_objext" >&6
4587 OBJEXT=$ac_cv_objext
4589 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4590 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4591 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4592 echo $ECHO_N "(cached) $ECHO_C" >&6
4594 cat >conftest.$ac_ext <<_ACEOF
4597 cat confdefs.h >>conftest.$ac_ext
4598 cat >>conftest.$ac_ext <<_ACEOF
4599 /* end confdefs.h. */
4612 rm -f conftest.$ac_objext
4613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4614 (eval $ac_compile) 2>conftest.er1
4616 grep -v '^ *+' conftest.er1 >conftest.err
4618 cat conftest.err >&5
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); } &&
4621 { ac_try='test -z "$ac_c_werror_flag"
4622 || test ! -s conftest.err'
4623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627 (exit $ac_status); }; } &&
4628 { ac_try='test -s conftest.$ac_objext'
4629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633 (exit $ac_status); }; }; then
4636 echo "$as_me: failed program was:" >&5
4637 sed 's/^/| /' conftest.$ac_ext >&5
4641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4642 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4645 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4646 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4647 GCC=`test $ac_compiler_gnu = yes && echo yes`
4648 ac_test_CFLAGS=${CFLAGS+set}
4649 ac_save_CFLAGS=$CFLAGS
4651 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4652 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4653 if test "${ac_cv_prog_cc_g+set}" = set; then
4654 echo $ECHO_N "(cached) $ECHO_C" >&6
4656 cat >conftest.$ac_ext <<_ACEOF
4659 cat confdefs.h >>conftest.$ac_ext
4660 cat >>conftest.$ac_ext <<_ACEOF
4661 /* end confdefs.h. */
4671 rm -f conftest.$ac_objext
4672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4673 (eval $ac_compile) 2>conftest.er1
4675 grep -v '^ *+' conftest.er1 >conftest.err
4677 cat conftest.err >&5
4678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679 (exit $ac_status); } &&
4680 { ac_try='test -z "$ac_c_werror_flag"
4681 || test ! -s conftest.err'
4682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686 (exit $ac_status); }; } &&
4687 { ac_try='test -s conftest.$ac_objext'
4688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692 (exit $ac_status); }; }; then
4695 echo "$as_me: failed program was:" >&5
4696 sed 's/^/| /' conftest.$ac_ext >&5
4700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4702 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4703 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4704 if test "$ac_test_CFLAGS" = set; then
4705 CFLAGS=$ac_save_CFLAGS
4706 elif test $ac_cv_prog_cc_g = yes; then
4707 if test "$GCC" = yes; then
4713 if test "$GCC" = yes; then
4719 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4720 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4721 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4722 echo $ECHO_N "(cached) $ECHO_C" >&6
4724 ac_cv_prog_cc_stdc=no
4726 cat >conftest.$ac_ext <<_ACEOF
4729 cat confdefs.h >>conftest.$ac_ext
4730 cat >>conftest.$ac_ext <<_ACEOF
4731 /* end confdefs.h. */
4734 #include <sys/types.h>
4735 #include <sys/stat.h>
4736 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4737 struct buf { int x; };
4738 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4739 static char *e (p, i)
4745 static char *f (char * (*g) (char **, int), char **p, ...)
4750 s = g (p, va_arg (v,int));
4755 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4756 function prototypes and stuff, but not '\xHH' hex character constants.
4757 These don't provoke an error unfortunately, instead are silently treated
4758 as 'x'. The following induces an error, until -std1 is added to get
4759 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4760 array size at least. It's necessary to write '\x00'==0 to get something
4761 that's true only with -std1. */
4762 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4764 int test (int i, double x);
4765 struct s1 {int (*f) (int a);};
4766 struct s2 {int (*f) (double a);};
4767 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4773 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4778 # Don't try gcc -ansi; that turns off useful extensions and
4779 # breaks some systems' header files.
4780 # AIX -qlanglvl=ansi
4781 # Ultrix and OSF/1 -std1
4782 # HP-UX 10.20 and later -Ae
4783 # HP-UX older versions -Aa -D_HPUX_SOURCE
4784 # SVR4 -Xc -D__EXTENSIONS__
4785 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4787 CC="$ac_save_CC $ac_arg"
4788 rm -f conftest.$ac_objext
4789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4790 (eval $ac_compile) 2>conftest.er1
4792 grep -v '^ *+' conftest.er1 >conftest.err
4794 cat conftest.err >&5
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); } &&
4797 { ac_try='test -z "$ac_c_werror_flag"
4798 || test ! -s conftest.err'
4799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); }; } &&
4804 { ac_try='test -s conftest.$ac_objext'
4805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); }; }; then
4810 ac_cv_prog_cc_stdc=$ac_arg
4813 echo "$as_me: failed program was:" >&5
4814 sed 's/^/| /' conftest.$ac_ext >&5
4817 rm -f conftest.err conftest.$ac_objext
4819 rm -f conftest.$ac_ext conftest.$ac_objext
4824 case "x$ac_cv_prog_cc_stdc" in
4826 echo "$as_me:$LINENO: result: none needed" >&5
4827 echo "${ECHO_T}none needed" >&6 ;;
4829 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4830 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4831 CC="$CC $ac_cv_prog_cc_stdc" ;;
4834 # Some people use a C++ compiler to compile C. Since we use `exit',
4835 # in C++ we need to declare it. In case someone uses the same compiler
4836 # for both compiling C and C++ we need to have the C++ compiler decide
4837 # the declaration of exit, since it's the most demanding environment.
4838 cat >conftest.$ac_ext <<_ACEOF
4843 rm -f conftest.$ac_objext
4844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4845 (eval $ac_compile) 2>conftest.er1
4847 grep -v '^ *+' conftest.er1 >conftest.err
4849 cat conftest.err >&5
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); } &&
4852 { ac_try='test -z "$ac_c_werror_flag"
4853 || test ! -s conftest.err'
4854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858 (exit $ac_status); }; } &&
4859 { ac_try='test -s conftest.$ac_objext'
4860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); }; }; then
4865 for ac_declaration in \
4867 'extern "C" void std::exit (int) throw (); using std::exit;' \
4868 'extern "C" void std::exit (int); using std::exit;' \
4869 'extern "C" void exit (int) throw ();' \
4870 'extern "C" void exit (int);' \
4873 cat >conftest.$ac_ext <<_ACEOF
4876 cat confdefs.h >>conftest.$ac_ext
4877 cat >>conftest.$ac_ext <<_ACEOF
4878 /* end confdefs.h. */
4889 rm -f conftest.$ac_objext
4890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4891 (eval $ac_compile) 2>conftest.er1
4893 grep -v '^ *+' conftest.er1 >conftest.err
4895 cat conftest.err >&5
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); } &&
4898 { ac_try='test -z "$ac_c_werror_flag"
4899 || test ! -s conftest.err'
4900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904 (exit $ac_status); }; } &&
4905 { ac_try='test -s conftest.$ac_objext'
4906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); }; }; then
4913 echo "$as_me: failed program was:" >&5
4914 sed 's/^/| /' conftest.$ac_ext >&5
4918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4919 cat >conftest.$ac_ext <<_ACEOF
4922 cat confdefs.h >>conftest.$ac_ext
4923 cat >>conftest.$ac_ext <<_ACEOF
4924 /* end confdefs.h. */
4934 rm -f conftest.$ac_objext
4935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4936 (eval $ac_compile) 2>conftest.er1
4938 grep -v '^ *+' conftest.er1 >conftest.err
4940 cat conftest.err >&5
4941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942 (exit $ac_status); } &&
4943 { ac_try='test -z "$ac_c_werror_flag"
4944 || test ! -s conftest.err'
4945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); }; } &&
4950 { ac_try='test -s conftest.$ac_objext'
4951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); }; }; then
4958 echo "$as_me: failed program was:" >&5
4959 sed 's/^/| /' conftest.$ac_ext >&5
4962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4965 if test -n "$ac_declaration"; then
4966 echo '#ifdef __cplusplus' >>confdefs.h
4967 echo $ac_declaration >>confdefs.h
4968 echo '#endif' >>confdefs.h
4972 echo "$as_me: failed program was:" >&5
4973 sed 's/^/| /' conftest.$ac_ext >&5
4976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4978 ac_cpp='$CPP $CPPFLAGS'
4979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4983 depcc="$CC" am_compiler_list=
4985 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4986 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4987 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4988 echo $ECHO_N "(cached) $ECHO_C" >&6
4990 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4991 # We make a subdir and do the tests there. Otherwise we can end up
4992 # making bogus files that we don't know about and never remove. For
4993 # instance it was reported that on HP-UX the gcc test will end up
4994 # making a dummy file named `D' -- because `-MD' means `put the output
4997 # Copy depcomp to subdir because otherwise we won't find it if we're
4998 # using a relative directory.
4999 cp "$am_depcomp" conftest.dir
5001 # We will build objects and dependencies in a subdirectory because
5002 # it helps to detect inapplicable dependency modes. For instance
5003 # both Tru64's cc and ICC support -MD to output dependencies as a
5004 # side effect of compilation, but ICC will put the dependencies in
5005 # the current directory while Tru64 will put them in the object
5009 am_cv_CC_dependencies_compiler_type=none
5010 if test "$am_compiler_list" = ""; then
5011 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5013 for depmode in $am_compiler_list; do
5014 # Setup a source with many dependencies, because some compilers
5015 # like to wrap large dependency lists on column 80 (with \), and
5016 # we should not choose a depcomp mode which is confused by this.
5018 # We need to recreate these files for each test, as the compiler may
5019 # overwrite some of them when testing with obscure command lines.
5020 # This happens at least with the AIX C compiler.
5022 for i in 1 2 3 4 5 6; do
5023 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5024 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5025 # Solaris 8's {/usr,}/bin/sh.
5026 touch sub/conftst$i.h
5028 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5032 # after this tag, mechanisms are not by side-effect, so they'll
5033 # only be used when explicitly requested
5034 if test "x$enable_dependency_tracking" = xyes; then
5042 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5043 # mode. It turns out that the SunPro C++ compiler does not properly
5044 # handle `-M -o', and we need to detect this.
5045 if depmode=$depmode \
5046 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5047 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5048 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5049 >/dev/null 2>conftest.err &&
5050 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5051 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5052 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5053 # icc doesn't choke on unknown options, it will just issue warnings
5054 # or remarks (even with -Werror). So we grep stderr for any message
5055 # that says an option was ignored or not supported.
5056 # When given -MP, icc 7.0 and 7.1 complain thusly:
5057 # icc: Command line warning: ignoring option '-M'; no argument required
5058 # The diagnosis changed in icc 8.0:
5059 # icc: Command line remark: option '-MP' not supported
5060 if (grep 'ignoring option' conftest.err ||
5061 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5062 am_cv_CC_dependencies_compiler_type=$depmode
5071 am_cv_CC_dependencies_compiler_type=none
5075 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5076 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5077 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5082 test "x$enable_dependency_tracking" != xno \
5083 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5085 am__fastdepCC_FALSE='#'
5087 am__fastdepCC_TRUE='#'
5088 am__fastdepCC_FALSE=
5092 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5093 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5094 if test "${lt_cv_path_SED+set}" = set; then
5095 echo $ECHO_N "(cached) $ECHO_C" >&6
5097 # Loop through the user's path and test for sed and gsed.
5098 # Then use that list of sed's as ones to test for truncation.
5099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5103 test -z "$as_dir" && as_dir=.
5104 for lt_ac_prog in sed gsed; do
5105 for ac_exec_ext in '' $ac_executable_extensions; do
5106 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5107 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5114 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5115 # along with /bin/sed that truncates output.
5116 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5117 test ! -f $lt_ac_sed && continue
5118 cat /dev/null > conftest.in
5120 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5121 # Check for GNU sed and select it if it is found.
5122 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5123 lt_cv_path_SED=$lt_ac_sed
5127 cat conftest.in conftest.in >conftest.tmp
5128 mv conftest.tmp conftest.in
5129 cp conftest.in conftest.nl
5131 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5132 cmp -s conftest.out conftest.nl || break
5133 # 10000 chars as input seems more than enough
5134 test $lt_ac_count -gt 10 && break
5135 lt_ac_count=`expr $lt_ac_count + 1`
5136 if test $lt_ac_count -gt $lt_ac_max; then
5137 lt_ac_max=$lt_ac_count
5138 lt_cv_path_SED=$lt_ac_sed
5146 echo "$as_me:$LINENO: result: $SED" >&5
5147 echo "${ECHO_T}$SED" >&6
5149 echo "$as_me:$LINENO: checking for egrep" >&5
5150 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5151 if test "${ac_cv_prog_egrep+set}" = set; then
5152 echo $ECHO_N "(cached) $ECHO_C" >&6
5154 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5155 then ac_cv_prog_egrep='grep -E'
5156 else ac_cv_prog_egrep='egrep'
5159 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5160 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5161 EGREP=$ac_cv_prog_egrep
5165 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5166 if test "${with_gnu_ld+set}" = set; then
5167 withval="$with_gnu_ld"
5168 test "$withval" = no || with_gnu_ld=yes
5173 if test "$GCC" = yes; then
5174 # Check if gcc -print-prog-name=ld gives a path.
5175 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5176 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5179 # gcc leaves a trailing carriage return which upsets mingw
5180 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5182 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5185 # Accept absolute paths.
5187 re_direlt='/[^/][^/]*/\.\./'
5188 # Canonicalize the pathname of ld
5189 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5190 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5191 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5193 test -z "$LD" && LD="$ac_prog"
5196 # If it fails, then pretend we aren't using GCC.
5200 # If it is relative, then search for the first ld in PATH.
5204 elif test "$with_gnu_ld" = yes; then
5205 echo "$as_me:$LINENO: checking for GNU ld" >&5
5206 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5208 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5209 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5211 if test "${lt_cv_path_LD+set}" = set; then
5212 echo $ECHO_N "(cached) $ECHO_C" >&6
5214 if test -z "$LD"; then
5215 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5216 for ac_dir in $PATH; do
5218 test -z "$ac_dir" && ac_dir=.
5219 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5220 lt_cv_path_LD="$ac_dir/$ac_prog"
5221 # Check to see if the program is GNU ld. I'd rather use --version,
5222 # but apparently some GNU ld's only accept -v.
5223 # Break only if it was the GNU/non-GNU ld that we prefer.
5224 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5225 *GNU* | *'with BFD'*)
5226 test "$with_gnu_ld" != no && break
5229 test "$with_gnu_ld" != yes && break
5236 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5241 if test -n "$LD"; then
5242 echo "$as_me:$LINENO: result: $LD" >&5
5243 echo "${ECHO_T}$LD" >&6
5245 echo "$as_me:$LINENO: result: no" >&5
5246 echo "${ECHO_T}no" >&6
5248 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5249 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5250 { (exit 1); exit 1; }; }
5251 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5252 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5253 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5254 echo $ECHO_N "(cached) $ECHO_C" >&6
5256 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5257 case `$LD -v 2>&1 </dev/null` in
5258 *GNU* | *'with BFD'*)
5259 lt_cv_prog_gnu_ld=yes
5262 lt_cv_prog_gnu_ld=no
5266 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5267 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5268 with_gnu_ld=$lt_cv_prog_gnu_ld
5271 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5272 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5273 if test "${lt_cv_ld_reload_flag+set}" = set; then
5274 echo $ECHO_N "(cached) $ECHO_C" >&6
5276 lt_cv_ld_reload_flag='-r'
5278 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5279 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5280 reload_flag=$lt_cv_ld_reload_flag
5281 case $reload_flag in
5283 *) reload_flag=" $reload_flag" ;;
5285 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5288 if test "$GCC" = yes; then
5289 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5291 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5296 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5297 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5298 if test "${lt_cv_path_NM+set}" = set; then
5299 echo $ECHO_N "(cached) $ECHO_C" >&6
5301 if test -n "$NM"; then
5302 # Let the user override the test.
5305 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5306 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5308 test -z "$ac_dir" && ac_dir=.
5309 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5310 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5311 # Check to see if the nm accepts a BSD-compat flag.
5312 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5313 # nm: unknown option "B" ignored
5314 # Tru64's nm complains that /dev/null is an invalid object file
5315 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5316 */dev/null* | *'Invalid file or object type'*)
5317 lt_cv_path_NM="$tmp_nm -B"
5321 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5323 lt_cv_path_NM="$tmp_nm -p"
5327 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5328 continue # so that we can try to find one that supports BSD flags
5335 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5338 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5339 echo "${ECHO_T}$lt_cv_path_NM" >&6
5342 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5343 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5345 if test "$LN_S" = "ln -s"; then
5346 echo "$as_me:$LINENO: result: yes" >&5
5347 echo "${ECHO_T}yes" >&6
5349 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5350 echo "${ECHO_T}no, using $LN_S" >&6
5353 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5354 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5355 if test "${lt_cv_deplibs_check_method+set}" = set; then
5356 echo $ECHO_N "(cached) $ECHO_C" >&6
5358 lt_cv_file_magic_cmd='$MAGIC_CMD'
5359 lt_cv_file_magic_test_file=
5360 lt_cv_deplibs_check_method='unknown'
5361 # Need to set the preceding variable on all platforms that support
5362 # interlibrary dependencies.
5363 # 'none' -- dependencies not supported.
5364 # `unknown' -- same as none, but documents that we really don't know.
5365 # 'pass_all' -- all dependencies passed with no checks.
5366 # 'test_compile' -- check by making test program.
5367 # 'file_magic [[regex]]' -- check by looking for files in library path
5368 # which responds to the $file_magic_cmd with a given extended regex.
5369 # If you have `file' or equivalent on your system and you're not sure
5370 # whether `pass_all' will *always* work, you probably want this one.
5374 lt_cv_deplibs_check_method=pass_all
5378 lt_cv_deplibs_check_method=pass_all
5382 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5383 lt_cv_file_magic_cmd='/usr/bin/file -L'
5384 lt_cv_file_magic_test_file=/shlib/libc.so
5388 # func_win32_libid is a shell function defined in ltmain.sh
5389 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5390 lt_cv_file_magic_cmd='func_win32_libid'
5394 # Base MSYS/MinGW do not provide the 'file' command needed by
5395 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5396 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5397 lt_cv_file_magic_cmd='$OBJDUMP -f'
5400 darwin* | rhapsody*)
5401 lt_cv_deplibs_check_method=pass_all
5404 freebsd* | kfreebsd*-gnu | dragonfly*)
5405 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5408 # Not sure whether the presence of OpenBSD here was a mistake.
5409 # Let's accept both of them until this is cleared up.
5410 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5411 lt_cv_file_magic_cmd=/usr/bin/file
5412 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5416 lt_cv_deplibs_check_method=pass_all
5421 lt_cv_deplibs_check_method=pass_all
5424 hpux10.20* | hpux11*)
5425 lt_cv_file_magic_cmd=/usr/bin/file
5428 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5429 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5432 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]'
5433 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5436 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5437 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5442 irix5* | irix6* | nonstopux*)
5444 *-32|*"-32 ") libmagic=32-bit;;
5445 *-n32|*"-n32 ") libmagic=N32;;
5446 *-64|*"-64 ") libmagic=64-bit;;
5447 *) libmagic=never-match;;
5449 lt_cv_deplibs_check_method=pass_all
5452 # This must be Linux ELF.
5454 lt_cv_deplibs_check_method=pass_all
5458 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5459 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5461 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5466 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5467 lt_cv_file_magic_cmd=/usr/bin/file
5468 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5472 lt_cv_deplibs_check_method=unknown
5476 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5477 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5479 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5483 osf3* | osf4* | osf5*)
5484 lt_cv_deplibs_check_method=pass_all
5488 lt_cv_deplibs_check_method=pass_all
5492 lt_cv_deplibs_check_method=pass_all
5495 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5496 case $host_vendor in
5498 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]'
5499 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5502 lt_cv_deplibs_check_method=pass_all
5505 lt_cv_file_magic_cmd='/bin/file'
5506 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5509 lt_cv_file_magic_cmd='/bin/file'
5510 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5511 lt_cv_file_magic_test_file=/lib/libc.so
5514 lt_cv_deplibs_check_method=pass_all
5519 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5520 lt_cv_deplibs_check_method=pass_all
5525 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5526 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5527 file_magic_cmd=$lt_cv_file_magic_cmd
5528 deplibs_check_method=$lt_cv_deplibs_check_method
5529 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5534 # If no C compiler was specified, use CC.
5537 # Allow CC to be a program name with arguments.
5541 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5542 if test "${enable_libtool_lock+set}" = set; then
5543 enableval="$enable_libtool_lock"
5546 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5548 # Some flags need to be propagated to the compiler or linker for good
5552 # Find out which ABI we are using.
5553 echo 'int i;' > conftest.$ac_ext
5554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5555 (eval $ac_compile) 2>&5
5557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); }; then
5559 case `/usr/bin/file conftest.$ac_objext` in
5571 # Find out which ABI we are using.
5572 echo '#line 5572 "configure"' > conftest.$ac_ext
5573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5574 (eval $ac_compile) 2>&5
5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); }; then
5578 if test "$lt_cv_prog_gnu_ld" = yes; then
5579 case `/usr/bin/file conftest.$ac_objext` in
5581 LD="${LD-ld} -melf32bsmip"
5584 LD="${LD-ld} -melf32bmipn32"
5587 LD="${LD-ld} -melf64bmip"
5591 case `/usr/bin/file conftest.$ac_objext` in
5607 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5608 # Find out which ABI we are using.
5609 echo 'int i;' > conftest.$ac_ext
5610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5611 (eval $ac_compile) 2>&5
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); }; then
5615 case "`/usr/bin/file conftest.o`" in
5619 LD="${LD-ld} -m elf_i386"
5621 ppc64-*linux*|powerpc64-*linux*)
5622 LD="${LD-ld} -m elf32ppclinux"
5625 LD="${LD-ld} -m elf_s390"
5628 LD="${LD-ld} -m elf32_sparc"
5635 LD="${LD-ld} -m elf_x86_64"
5637 ppc*-*linux*|powerpc*-*linux*)
5638 LD="${LD-ld} -m elf64ppc"
5641 LD="${LD-ld} -m elf64_s390"
5644 LD="${LD-ld} -m elf64_sparc"
5654 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5655 SAVE_CFLAGS="$CFLAGS"
5656 CFLAGS="$CFLAGS -belf"
5657 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5658 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5659 if test "${lt_cv_cc_needs_belf+set}" = set; then
5660 echo $ECHO_N "(cached) $ECHO_C" >&6
5663 ac_cpp='$CPP $CPPFLAGS'
5664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5668 cat >conftest.$ac_ext <<_ACEOF
5671 cat confdefs.h >>conftest.$ac_ext
5672 cat >>conftest.$ac_ext <<_ACEOF
5673 /* end confdefs.h. */
5683 rm -f conftest.$ac_objext conftest$ac_exeext
5684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5685 (eval $ac_link) 2>conftest.er1
5687 grep -v '^ *+' conftest.er1 >conftest.err
5689 cat conftest.err >&5
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); } &&
5692 { ac_try='test -z "$ac_c_werror_flag"
5693 || test ! -s conftest.err'
5694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); }; } &&
5699 { ac_try='test -s conftest$ac_exeext'
5700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704 (exit $ac_status); }; }; then
5705 lt_cv_cc_needs_belf=yes
5707 echo "$as_me: failed program was:" >&5
5708 sed 's/^/| /' conftest.$ac_ext >&5
5710 lt_cv_cc_needs_belf=no
5712 rm -f conftest.err conftest.$ac_objext \
5713 conftest$ac_exeext conftest.$ac_ext
5715 ac_cpp='$CPP $CPPFLAGS'
5716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5721 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5722 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5723 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5724 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5725 CFLAGS="$SAVE_CFLAGS"
5728 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5729 if test -n "$ac_tool_prefix"; then
5730 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5731 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5732 echo "$as_me:$LINENO: checking for $ac_word" >&5
5733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5734 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5735 echo $ECHO_N "(cached) $ECHO_C" >&6
5737 if test -n "$DLLTOOL"; then
5738 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5744 test -z "$as_dir" && as_dir=.
5745 for ac_exec_ext in '' $ac_executable_extensions; do
5746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5747 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5756 DLLTOOL=$ac_cv_prog_DLLTOOL
5757 if test -n "$DLLTOOL"; then
5758 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5759 echo "${ECHO_T}$DLLTOOL" >&6
5761 echo "$as_me:$LINENO: result: no" >&5
5762 echo "${ECHO_T}no" >&6
5766 if test -z "$ac_cv_prog_DLLTOOL"; then
5767 ac_ct_DLLTOOL=$DLLTOOL
5768 # Extract the first word of "dlltool", so it can be a program name with args.
5769 set dummy dlltool; ac_word=$2
5770 echo "$as_me:$LINENO: checking for $ac_word" >&5
5771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5772 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5773 echo $ECHO_N "(cached) $ECHO_C" >&6
5775 if test -n "$ac_ct_DLLTOOL"; then
5776 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5782 test -z "$as_dir" && as_dir=.
5783 for ac_exec_ext in '' $ac_executable_extensions; do
5784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5785 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5792 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5795 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5796 if test -n "$ac_ct_DLLTOOL"; then
5797 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5798 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5800 echo "$as_me:$LINENO: result: no" >&5
5801 echo "${ECHO_T}no" >&6
5804 DLLTOOL=$ac_ct_DLLTOOL
5806 DLLTOOL="$ac_cv_prog_DLLTOOL"
5809 if test -n "$ac_tool_prefix"; then
5810 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5811 set dummy ${ac_tool_prefix}as; ac_word=$2
5812 echo "$as_me:$LINENO: checking for $ac_word" >&5
5813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5814 if test "${ac_cv_prog_AS+set}" = set; then
5815 echo $ECHO_N "(cached) $ECHO_C" >&6
5817 if test -n "$AS"; then
5818 ac_cv_prog_AS="$AS" # Let the user override the test.
5820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5824 test -z "$as_dir" && as_dir=.
5825 for ac_exec_ext in '' $ac_executable_extensions; do
5826 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5827 ac_cv_prog_AS="${ac_tool_prefix}as"
5828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5837 if test -n "$AS"; then
5838 echo "$as_me:$LINENO: result: $AS" >&5
5839 echo "${ECHO_T}$AS" >&6
5841 echo "$as_me:$LINENO: result: no" >&5
5842 echo "${ECHO_T}no" >&6
5846 if test -z "$ac_cv_prog_AS"; then
5848 # Extract the first word of "as", so it can be a program name with args.
5849 set dummy as; ac_word=$2
5850 echo "$as_me:$LINENO: checking for $ac_word" >&5
5851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5852 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5853 echo $ECHO_N "(cached) $ECHO_C" >&6
5855 if test -n "$ac_ct_AS"; then
5856 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5862 test -z "$as_dir" && as_dir=.
5863 for ac_exec_ext in '' $ac_executable_extensions; do
5864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5865 ac_cv_prog_ac_ct_AS="as"
5866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5872 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
5875 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5876 if test -n "$ac_ct_AS"; then
5877 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5878 echo "${ECHO_T}$ac_ct_AS" >&6
5880 echo "$as_me:$LINENO: result: no" >&5
5881 echo "${ECHO_T}no" >&6
5889 if test -n "$ac_tool_prefix"; then
5890 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5891 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5892 echo "$as_me:$LINENO: checking for $ac_word" >&5
5893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5894 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5895 echo $ECHO_N "(cached) $ECHO_C" >&6
5897 if test -n "$OBJDUMP"; then
5898 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5904 test -z "$as_dir" && as_dir=.
5905 for ac_exec_ext in '' $ac_executable_extensions; do
5906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5907 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5916 OBJDUMP=$ac_cv_prog_OBJDUMP
5917 if test -n "$OBJDUMP"; then
5918 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5919 echo "${ECHO_T}$OBJDUMP" >&6
5921 echo "$as_me:$LINENO: result: no" >&5
5922 echo "${ECHO_T}no" >&6
5926 if test -z "$ac_cv_prog_OBJDUMP"; then
5927 ac_ct_OBJDUMP=$OBJDUMP
5928 # Extract the first word of "objdump", so it can be a program name with args.
5929 set dummy objdump; ac_word=$2
5930 echo "$as_me:$LINENO: checking for $ac_word" >&5
5931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5932 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5933 echo $ECHO_N "(cached) $ECHO_C" >&6
5935 if test -n "$ac_ct_OBJDUMP"; then
5936 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5942 test -z "$as_dir" && as_dir=.
5943 for ac_exec_ext in '' $ac_executable_extensions; do
5944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5945 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5952 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
5955 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5956 if test -n "$ac_ct_OBJDUMP"; then
5957 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5958 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
5960 echo "$as_me:$LINENO: result: no" >&5
5961 echo "${ECHO_T}no" >&6
5964 OBJDUMP=$ac_ct_OBJDUMP
5966 OBJDUMP="$ac_cv_prog_OBJDUMP"
5973 need_locks="$enable_libtool_lock"
5977 ac_cpp='$CPP $CPPFLAGS'
5978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5981 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5982 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5983 # On Suns, sometimes $CPP names a directory.
5984 if test -n "$CPP" && test -d "$CPP"; then
5987 if test -z "$CPP"; then
5988 if test "${ac_cv_prog_CPP+set}" = set; then
5989 echo $ECHO_N "(cached) $ECHO_C" >&6
5991 # Double quotes because CPP needs to be expanded
5992 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5995 for ac_c_preproc_warn_flag in '' yes
5997 # Use a header file that comes with gcc, so configuring glibc
5998 # with a fresh cross-compiler works.
5999 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6000 # <limits.h> exists even on freestanding compilers.
6001 # On the NeXT, cc -E runs the code through the compiler's parser,
6002 # not just through cpp. "Syntax error" is here to catch this case.
6003 cat >conftest.$ac_ext <<_ACEOF
6006 cat confdefs.h >>conftest.$ac_ext
6007 cat >>conftest.$ac_ext <<_ACEOF
6008 /* end confdefs.h. */
6010 # include <limits.h>
6012 # include <assert.h>
6016 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6017 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6019 grep -v '^ *+' conftest.er1 >conftest.err
6021 cat conftest.err >&5
6022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023 (exit $ac_status); } >/dev/null; then
6024 if test -s conftest.err; then
6025 ac_cpp_err=$ac_c_preproc_warn_flag
6026 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6033 if test -z "$ac_cpp_err"; then
6036 echo "$as_me: failed program was:" >&5
6037 sed 's/^/| /' conftest.$ac_ext >&5
6039 # Broken: fails on valid input.
6042 rm -f conftest.err conftest.$ac_ext
6044 # OK, works on sane cases. Now check whether non-existent headers
6045 # can be detected and how.
6046 cat >conftest.$ac_ext <<_ACEOF
6049 cat confdefs.h >>conftest.$ac_ext
6050 cat >>conftest.$ac_ext <<_ACEOF
6051 /* end confdefs.h. */
6052 #include <ac_nonexistent.h>
6054 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6055 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6057 grep -v '^ *+' conftest.er1 >conftest.err
6059 cat conftest.err >&5
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); } >/dev/null; then
6062 if test -s conftest.err; then
6063 ac_cpp_err=$ac_c_preproc_warn_flag
6064 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6071 if test -z "$ac_cpp_err"; then
6072 # Broken: success on invalid input.
6075 echo "$as_me: failed program was:" >&5
6076 sed 's/^/| /' conftest.$ac_ext >&5
6078 # Passes both tests.
6082 rm -f conftest.err conftest.$ac_ext
6085 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6086 rm -f conftest.err conftest.$ac_ext
6087 if $ac_preproc_ok; then
6099 echo "$as_me:$LINENO: result: $CPP" >&5
6100 echo "${ECHO_T}$CPP" >&6
6102 for ac_c_preproc_warn_flag in '' yes
6104 # Use a header file that comes with gcc, so configuring glibc
6105 # with a fresh cross-compiler works.
6106 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6107 # <limits.h> exists even on freestanding compilers.
6108 # On the NeXT, cc -E runs the code through the compiler's parser,
6109 # not just through cpp. "Syntax error" is here to catch this case.
6110 cat >conftest.$ac_ext <<_ACEOF
6113 cat confdefs.h >>conftest.$ac_ext
6114 cat >>conftest.$ac_ext <<_ACEOF
6115 /* end confdefs.h. */
6117 # include <limits.h>
6119 # include <assert.h>
6123 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6124 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6126 grep -v '^ *+' conftest.er1 >conftest.err
6128 cat conftest.err >&5
6129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); } >/dev/null; then
6131 if test -s conftest.err; then
6132 ac_cpp_err=$ac_c_preproc_warn_flag
6133 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6140 if test -z "$ac_cpp_err"; then
6143 echo "$as_me: failed program was:" >&5
6144 sed 's/^/| /' conftest.$ac_ext >&5
6146 # Broken: fails on valid input.
6149 rm -f conftest.err conftest.$ac_ext
6151 # OK, works on sane cases. Now check whether non-existent headers
6152 # can be detected and how.
6153 cat >conftest.$ac_ext <<_ACEOF
6156 cat confdefs.h >>conftest.$ac_ext
6157 cat >>conftest.$ac_ext <<_ACEOF
6158 /* end confdefs.h. */
6159 #include <ac_nonexistent.h>
6161 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6162 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6164 grep -v '^ *+' conftest.er1 >conftest.err
6166 cat conftest.err >&5
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); } >/dev/null; then
6169 if test -s conftest.err; then
6170 ac_cpp_err=$ac_c_preproc_warn_flag
6171 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6178 if test -z "$ac_cpp_err"; then
6179 # Broken: success on invalid input.
6182 echo "$as_me: failed program was:" >&5
6183 sed 's/^/| /' conftest.$ac_ext >&5
6185 # Passes both tests.
6189 rm -f conftest.err conftest.$ac_ext
6192 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6193 rm -f conftest.err conftest.$ac_ext
6194 if $ac_preproc_ok; then
6197 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6198 See \`config.log' for more details." >&5
6199 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6200 See \`config.log' for more details." >&2;}
6201 { (exit 1); exit 1; }; }
6205 ac_cpp='$CPP $CPPFLAGS'
6206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6211 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6212 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6213 if test "${ac_cv_header_stdc+set}" = set; then
6214 echo $ECHO_N "(cached) $ECHO_C" >&6
6216 cat >conftest.$ac_ext <<_ACEOF
6219 cat confdefs.h >>conftest.$ac_ext
6220 cat >>conftest.$ac_ext <<_ACEOF
6221 /* end confdefs.h. */
6235 rm -f conftest.$ac_objext
6236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6237 (eval $ac_compile) 2>conftest.er1
6239 grep -v '^ *+' conftest.er1 >conftest.err
6241 cat conftest.err >&5
6242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243 (exit $ac_status); } &&
6244 { ac_try='test -z "$ac_c_werror_flag"
6245 || test ! -s conftest.err'
6246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); }; } &&
6251 { ac_try='test -s conftest.$ac_objext'
6252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); }; }; then
6257 ac_cv_header_stdc=yes
6259 echo "$as_me: failed program was:" >&5
6260 sed 's/^/| /' conftest.$ac_ext >&5
6262 ac_cv_header_stdc=no
6264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6266 if test $ac_cv_header_stdc = yes; then
6267 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6268 cat >conftest.$ac_ext <<_ACEOF
6271 cat confdefs.h >>conftest.$ac_ext
6272 cat >>conftest.$ac_ext <<_ACEOF
6273 /* end confdefs.h. */
6277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6278 $EGREP "memchr" >/dev/null 2>&1; then
6281 ac_cv_header_stdc=no
6287 if test $ac_cv_header_stdc = yes; then
6288 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6289 cat >conftest.$ac_ext <<_ACEOF
6292 cat confdefs.h >>conftest.$ac_ext
6293 cat >>conftest.$ac_ext <<_ACEOF
6294 /* end confdefs.h. */
6298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6299 $EGREP "free" >/dev/null 2>&1; then
6302 ac_cv_header_stdc=no
6308 if test $ac_cv_header_stdc = yes; then
6309 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6310 if test "$cross_compiling" = yes; then
6313 cat >conftest.$ac_ext <<_ACEOF
6316 cat confdefs.h >>conftest.$ac_ext
6317 cat >>conftest.$ac_ext <<_ACEOF
6318 /* end confdefs.h. */
6320 #if ((' ' & 0x0FF) == 0x020)
6321 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6322 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6324 # define ISLOWER(c) \
6325 (('a' <= (c) && (c) <= 'i') \
6326 || ('j' <= (c) && (c) <= 'r') \
6327 || ('s' <= (c) && (c) <= 'z'))
6328 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6331 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6336 for (i = 0; i < 256; i++)
6337 if (XOR (islower (i), ISLOWER (i))
6338 || toupper (i) != TOUPPER (i))
6343 rm -f conftest$ac_exeext
6344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6345 (eval $ac_link) 2>&5
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); }; }; then
6356 echo "$as_me: program exited with status $ac_status" >&5
6357 echo "$as_me: failed program was:" >&5
6358 sed 's/^/| /' conftest.$ac_ext >&5
6361 ac_cv_header_stdc=no
6363 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6367 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6368 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6369 if test $ac_cv_header_stdc = yes; then
6371 cat >>confdefs.h <<\_ACEOF
6372 #define STDC_HEADERS 1
6377 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6387 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6388 inttypes.h stdint.h unistd.h
6390 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6391 echo "$as_me:$LINENO: checking for $ac_header" >&5
6392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6393 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6394 echo $ECHO_N "(cached) $ECHO_C" >&6
6396 cat >conftest.$ac_ext <<_ACEOF
6399 cat confdefs.h >>conftest.$ac_ext
6400 cat >>conftest.$ac_ext <<_ACEOF
6401 /* end confdefs.h. */
6402 $ac_includes_default
6404 #include <$ac_header>
6406 rm -f conftest.$ac_objext
6407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6408 (eval $ac_compile) 2>conftest.er1
6410 grep -v '^ *+' conftest.er1 >conftest.err
6412 cat conftest.err >&5
6413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414 (exit $ac_status); } &&
6415 { ac_try='test -z "$ac_c_werror_flag"
6416 || test ! -s conftest.err'
6417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421 (exit $ac_status); }; } &&
6422 { ac_try='test -s conftest.$ac_objext'
6423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427 (exit $ac_status); }; }; then
6428 eval "$as_ac_Header=yes"
6430 echo "$as_me: failed program was:" >&5
6431 sed 's/^/| /' conftest.$ac_ext >&5
6433 eval "$as_ac_Header=no"
6435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6438 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6439 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6440 cat >>confdefs.h <<_ACEOF
6441 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6450 for ac_header in dlfcn.h
6452 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6453 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6454 echo "$as_me:$LINENO: checking for $ac_header" >&5
6455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6457 echo $ECHO_N "(cached) $ECHO_C" >&6
6459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6460 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6462 # Is the header compilable?
6463 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6464 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6465 cat >conftest.$ac_ext <<_ACEOF
6468 cat confdefs.h >>conftest.$ac_ext
6469 cat >>conftest.$ac_ext <<_ACEOF
6470 /* end confdefs.h. */
6471 $ac_includes_default
6472 #include <$ac_header>
6474 rm -f conftest.$ac_objext
6475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6476 (eval $ac_compile) 2>conftest.er1
6478 grep -v '^ *+' conftest.er1 >conftest.err
6480 cat conftest.err >&5
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); } &&
6483 { ac_try='test -z "$ac_c_werror_flag"
6484 || test ! -s conftest.err'
6485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); }; } &&
6490 { ac_try='test -s conftest.$ac_objext'
6491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); }; }; then
6496 ac_header_compiler=yes
6498 echo "$as_me: failed program was:" >&5
6499 sed 's/^/| /' conftest.$ac_ext >&5
6501 ac_header_compiler=no
6503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6504 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6505 echo "${ECHO_T}$ac_header_compiler" >&6
6507 # Is the header present?
6508 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6509 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6510 cat >conftest.$ac_ext <<_ACEOF
6513 cat confdefs.h >>conftest.$ac_ext
6514 cat >>conftest.$ac_ext <<_ACEOF
6515 /* end confdefs.h. */
6516 #include <$ac_header>
6518 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6519 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6521 grep -v '^ *+' conftest.er1 >conftest.err
6523 cat conftest.err >&5
6524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525 (exit $ac_status); } >/dev/null; then
6526 if test -s conftest.err; then
6527 ac_cpp_err=$ac_c_preproc_warn_flag
6528 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6535 if test -z "$ac_cpp_err"; then
6536 ac_header_preproc=yes
6538 echo "$as_me: failed program was:" >&5
6539 sed 's/^/| /' conftest.$ac_ext >&5
6541 ac_header_preproc=no
6543 rm -f conftest.err conftest.$ac_ext
6544 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6545 echo "${ECHO_T}$ac_header_preproc" >&6
6547 # So? What about this header?
6548 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6550 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6551 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6553 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6554 ac_header_preproc=yes
6557 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6558 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6559 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6560 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6561 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6562 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6563 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6564 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6566 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6567 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6568 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6571 ## ------------------------------------------ ##
6572 ## Report this to the AC_PACKAGE_NAME lists. ##
6573 ## ------------------------------------------ ##
6576 sed "s/^/$as_me: WARNING: /" >&2
6579 echo "$as_me:$LINENO: checking for $ac_header" >&5
6580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6582 echo $ECHO_N "(cached) $ECHO_C" >&6
6584 eval "$as_ac_Header=\$ac_header_preproc"
6586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6587 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6590 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6591 cat >>confdefs.h <<_ACEOF
6592 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6600 ac_cpp='$CXXCPP $CPPFLAGS'
6601 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6602 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6603 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6604 if test -n "$ac_tool_prefix"; then
6605 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6607 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6608 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6609 echo "$as_me:$LINENO: checking for $ac_word" >&5
6610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6611 if test "${ac_cv_prog_CXX+set}" = set; then
6612 echo $ECHO_N "(cached) $ECHO_C" >&6
6614 if test -n "$CXX"; then
6615 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6621 test -z "$as_dir" && as_dir=.
6622 for ac_exec_ext in '' $ac_executable_extensions; do
6623 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6624 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6634 if test -n "$CXX"; then
6635 echo "$as_me:$LINENO: result: $CXX" >&5
6636 echo "${ECHO_T}$CXX" >&6
6638 echo "$as_me:$LINENO: result: no" >&5
6639 echo "${ECHO_T}no" >&6
6642 test -n "$CXX" && break
6645 if test -z "$CXX"; then
6647 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6649 # Extract the first word of "$ac_prog", so it can be a program name with args.
6650 set dummy $ac_prog; ac_word=$2
6651 echo "$as_me:$LINENO: checking for $ac_word" >&5
6652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6653 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6654 echo $ECHO_N "(cached) $ECHO_C" >&6
6656 if test -n "$ac_ct_CXX"; then
6657 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6663 test -z "$as_dir" && as_dir=.
6664 for ac_exec_ext in '' $ac_executable_extensions; do
6665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6666 ac_cv_prog_ac_ct_CXX="$ac_prog"
6667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6675 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6676 if test -n "$ac_ct_CXX"; then
6677 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6678 echo "${ECHO_T}$ac_ct_CXX" >&6
6680 echo "$as_me:$LINENO: result: no" >&5
6681 echo "${ECHO_T}no" >&6
6684 test -n "$ac_ct_CXX" && break
6686 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6692 # Provide some information about the compiler.
6693 echo "$as_me:$LINENO:" \
6694 "checking for C++ compiler version" >&5
6695 ac_compiler=`set X $ac_compile; echo $2`
6696 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6697 (eval $ac_compiler --version </dev/null >&5) 2>&5
6699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700 (exit $ac_status); }
6701 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6702 (eval $ac_compiler -v </dev/null >&5) 2>&5
6704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6705 (exit $ac_status); }
6706 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6707 (eval $ac_compiler -V </dev/null >&5) 2>&5
6709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710 (exit $ac_status); }
6712 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6713 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6714 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6715 echo $ECHO_N "(cached) $ECHO_C" >&6
6717 cat >conftest.$ac_ext <<_ACEOF
6720 cat confdefs.h >>conftest.$ac_ext
6721 cat >>conftest.$ac_ext <<_ACEOF
6722 /* end confdefs.h. */
6735 rm -f conftest.$ac_objext
6736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6737 (eval $ac_compile) 2>conftest.er1
6739 grep -v '^ *+' conftest.er1 >conftest.err
6741 cat conftest.err >&5
6742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743 (exit $ac_status); } &&
6744 { ac_try='test -z "$ac_cxx_werror_flag"
6745 || test ! -s conftest.err'
6746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750 (exit $ac_status); }; } &&
6751 { ac_try='test -s conftest.$ac_objext'
6752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756 (exit $ac_status); }; }; then
6759 echo "$as_me: failed program was:" >&5
6760 sed 's/^/| /' conftest.$ac_ext >&5
6764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6765 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6768 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6769 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6770 GXX=`test $ac_compiler_gnu = yes && echo yes`
6771 ac_test_CXXFLAGS=${CXXFLAGS+set}
6772 ac_save_CXXFLAGS=$CXXFLAGS
6774 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6775 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6776 if test "${ac_cv_prog_cxx_g+set}" = set; then
6777 echo $ECHO_N "(cached) $ECHO_C" >&6
6779 cat >conftest.$ac_ext <<_ACEOF
6782 cat confdefs.h >>conftest.$ac_ext
6783 cat >>conftest.$ac_ext <<_ACEOF
6784 /* end confdefs.h. */
6794 rm -f conftest.$ac_objext
6795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6796 (eval $ac_compile) 2>conftest.er1
6798 grep -v '^ *+' conftest.er1 >conftest.err
6800 cat conftest.err >&5
6801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802 (exit $ac_status); } &&
6803 { ac_try='test -z "$ac_cxx_werror_flag"
6804 || test ! -s conftest.err'
6805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809 (exit $ac_status); }; } &&
6810 { ac_try='test -s conftest.$ac_objext'
6811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815 (exit $ac_status); }; }; then
6816 ac_cv_prog_cxx_g=yes
6818 echo "$as_me: failed program was:" >&5
6819 sed 's/^/| /' conftest.$ac_ext >&5
6823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6825 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6826 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6827 if test "$ac_test_CXXFLAGS" = set; then
6828 CXXFLAGS=$ac_save_CXXFLAGS
6829 elif test $ac_cv_prog_cxx_g = yes; then
6830 if test "$GXX" = yes; then
6836 if test "$GXX" = yes; then
6842 for ac_declaration in \
6844 'extern "C" void std::exit (int) throw (); using std::exit;' \
6845 'extern "C" void std::exit (int); using std::exit;' \
6846 'extern "C" void exit (int) throw ();' \
6847 'extern "C" void exit (int);' \
6850 cat >conftest.$ac_ext <<_ACEOF
6853 cat confdefs.h >>conftest.$ac_ext
6854 cat >>conftest.$ac_ext <<_ACEOF
6855 /* end confdefs.h. */
6866 rm -f conftest.$ac_objext
6867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6868 (eval $ac_compile) 2>conftest.er1
6870 grep -v '^ *+' conftest.er1 >conftest.err
6872 cat conftest.err >&5
6873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874 (exit $ac_status); } &&
6875 { ac_try='test -z "$ac_cxx_werror_flag"
6876 || test ! -s conftest.err'
6877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881 (exit $ac_status); }; } &&
6882 { ac_try='test -s conftest.$ac_objext'
6883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887 (exit $ac_status); }; }; then
6890 echo "$as_me: failed program was:" >&5
6891 sed 's/^/| /' conftest.$ac_ext >&5
6895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6896 cat >conftest.$ac_ext <<_ACEOF
6899 cat confdefs.h >>conftest.$ac_ext
6900 cat >>conftest.$ac_ext <<_ACEOF
6901 /* end confdefs.h. */
6911 rm -f conftest.$ac_objext
6912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6913 (eval $ac_compile) 2>conftest.er1
6915 grep -v '^ *+' conftest.er1 >conftest.err
6917 cat conftest.err >&5
6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); } &&
6920 { ac_try='test -z "$ac_cxx_werror_flag"
6921 || test ! -s conftest.err'
6922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926 (exit $ac_status); }; } &&
6927 { ac_try='test -s conftest.$ac_objext'
6928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932 (exit $ac_status); }; }; then
6935 echo "$as_me: failed program was:" >&5
6936 sed 's/^/| /' conftest.$ac_ext >&5
6939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6942 if test -n "$ac_declaration"; then
6943 echo '#ifdef __cplusplus' >>confdefs.h
6944 echo $ac_declaration >>confdefs.h
6945 echo '#endif' >>confdefs.h
6949 ac_cpp='$CXXCPP $CPPFLAGS'
6950 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6951 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6952 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6954 depcc="$CXX" am_compiler_list=
6956 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6957 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6958 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6959 echo $ECHO_N "(cached) $ECHO_C" >&6
6961 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6962 # We make a subdir and do the tests there. Otherwise we can end up
6963 # making bogus files that we don't know about and never remove. For
6964 # instance it was reported that on HP-UX the gcc test will end up
6965 # making a dummy file named `D' -- because `-MD' means `put the output
6968 # Copy depcomp to subdir because otherwise we won't find it if we're
6969 # using a relative directory.
6970 cp "$am_depcomp" conftest.dir
6972 # We will build objects and dependencies in a subdirectory because
6973 # it helps to detect inapplicable dependency modes. For instance
6974 # both Tru64's cc and ICC support -MD to output dependencies as a
6975 # side effect of compilation, but ICC will put the dependencies in
6976 # the current directory while Tru64 will put them in the object
6980 am_cv_CXX_dependencies_compiler_type=none
6981 if test "$am_compiler_list" = ""; then
6982 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6984 for depmode in $am_compiler_list; do
6985 # Setup a source with many dependencies, because some compilers
6986 # like to wrap large dependency lists on column 80 (with \), and
6987 # we should not choose a depcomp mode which is confused by this.
6989 # We need to recreate these files for each test, as the compiler may
6990 # overwrite some of them when testing with obscure command lines.
6991 # This happens at least with the AIX C compiler.
6993 for i in 1 2 3 4 5 6; do
6994 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6995 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6996 # Solaris 8's {/usr,}/bin/sh.
6997 touch sub/conftst$i.h
6999 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7003 # after this tag, mechanisms are not by side-effect, so they'll
7004 # only be used when explicitly requested
7005 if test "x$enable_dependency_tracking" = xyes; then
7013 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7014 # mode. It turns out that the SunPro C++ compiler does not properly
7015 # handle `-M -o', and we need to detect this.
7016 if depmode=$depmode \
7017 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7018 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7019 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7020 >/dev/null 2>conftest.err &&
7021 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7022 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7023 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7024 # icc doesn't choke on unknown options, it will just issue warnings
7025 # or remarks (even with -Werror). So we grep stderr for any message
7026 # that says an option was ignored or not supported.
7027 # When given -MP, icc 7.0 and 7.1 complain thusly:
7028 # icc: Command line warning: ignoring option '-M'; no argument required
7029 # The diagnosis changed in icc 8.0:
7030 # icc: Command line remark: option '-MP' not supported
7031 if (grep 'ignoring option' conftest.err ||
7032 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7033 am_cv_CXX_dependencies_compiler_type=$depmode
7042 am_cv_CXX_dependencies_compiler_type=none
7046 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7047 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7048 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7053 test "x$enable_dependency_tracking" != xno \
7054 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7055 am__fastdepCXX_TRUE=
7056 am__fastdepCXX_FALSE='#'
7058 am__fastdepCXX_TRUE='#'
7059 am__fastdepCXX_FALSE=
7065 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7066 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7067 (test "X$CXX" != "Xg++"))) ; then
7069 ac_cpp='$CXXCPP $CPPFLAGS'
7070 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7071 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7072 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7073 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7074 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7075 if test -z "$CXXCPP"; then
7076 if test "${ac_cv_prog_CXXCPP+set}" = set; then
7077 echo $ECHO_N "(cached) $ECHO_C" >&6
7079 # Double quotes because CXXCPP needs to be expanded
7080 for CXXCPP in "$CXX -E" "/lib/cpp"
7083 for ac_cxx_preproc_warn_flag in '' yes
7085 # Use a header file that comes with gcc, so configuring glibc
7086 # with a fresh cross-compiler works.
7087 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7088 # <limits.h> exists even on freestanding compilers.
7089 # On the NeXT, cc -E runs the code through the compiler's parser,
7090 # not just through cpp. "Syntax error" is here to catch this case.
7091 cat >conftest.$ac_ext <<_ACEOF
7094 cat confdefs.h >>conftest.$ac_ext
7095 cat >>conftest.$ac_ext <<_ACEOF
7096 /* end confdefs.h. */
7098 # include <limits.h>
7100 # include <assert.h>
7104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7105 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7107 grep -v '^ *+' conftest.er1 >conftest.err
7109 cat conftest.err >&5
7110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111 (exit $ac_status); } >/dev/null; then
7112 if test -s conftest.err; then
7113 ac_cpp_err=$ac_cxx_preproc_warn_flag
7114 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7121 if test -z "$ac_cpp_err"; then
7124 echo "$as_me: failed program was:" >&5
7125 sed 's/^/| /' conftest.$ac_ext >&5
7127 # Broken: fails on valid input.
7130 rm -f conftest.err conftest.$ac_ext
7132 # OK, works on sane cases. Now check whether non-existent headers
7133 # can be detected and how.
7134 cat >conftest.$ac_ext <<_ACEOF
7137 cat confdefs.h >>conftest.$ac_ext
7138 cat >>conftest.$ac_ext <<_ACEOF
7139 /* end confdefs.h. */
7140 #include <ac_nonexistent.h>
7142 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7143 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7145 grep -v '^ *+' conftest.er1 >conftest.err
7147 cat conftest.err >&5
7148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149 (exit $ac_status); } >/dev/null; then
7150 if test -s conftest.err; then
7151 ac_cpp_err=$ac_cxx_preproc_warn_flag
7152 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7159 if test -z "$ac_cpp_err"; then
7160 # Broken: success on invalid input.
7163 echo "$as_me: failed program was:" >&5
7164 sed 's/^/| /' conftest.$ac_ext >&5
7166 # Passes both tests.
7170 rm -f conftest.err conftest.$ac_ext
7173 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7174 rm -f conftest.err conftest.$ac_ext
7175 if $ac_preproc_ok; then
7180 ac_cv_prog_CXXCPP=$CXXCPP
7183 CXXCPP=$ac_cv_prog_CXXCPP
7185 ac_cv_prog_CXXCPP=$CXXCPP
7187 echo "$as_me:$LINENO: result: $CXXCPP" >&5
7188 echo "${ECHO_T}$CXXCPP" >&6
7190 for ac_cxx_preproc_warn_flag in '' yes
7192 # Use a header file that comes with gcc, so configuring glibc
7193 # with a fresh cross-compiler works.
7194 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7195 # <limits.h> exists even on freestanding compilers.
7196 # On the NeXT, cc -E runs the code through the compiler's parser,
7197 # not just through cpp. "Syntax error" is here to catch this case.
7198 cat >conftest.$ac_ext <<_ACEOF
7201 cat confdefs.h >>conftest.$ac_ext
7202 cat >>conftest.$ac_ext <<_ACEOF
7203 /* end confdefs.h. */
7205 # include <limits.h>
7207 # include <assert.h>
7211 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7212 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7214 grep -v '^ *+' conftest.er1 >conftest.err
7216 cat conftest.err >&5
7217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218 (exit $ac_status); } >/dev/null; then
7219 if test -s conftest.err; then
7220 ac_cpp_err=$ac_cxx_preproc_warn_flag
7221 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7228 if test -z "$ac_cpp_err"; then
7231 echo "$as_me: failed program was:" >&5
7232 sed 's/^/| /' conftest.$ac_ext >&5
7234 # Broken: fails on valid input.
7237 rm -f conftest.err conftest.$ac_ext
7239 # OK, works on sane cases. Now check whether non-existent headers
7240 # can be detected and how.
7241 cat >conftest.$ac_ext <<_ACEOF
7244 cat confdefs.h >>conftest.$ac_ext
7245 cat >>conftest.$ac_ext <<_ACEOF
7246 /* end confdefs.h. */
7247 #include <ac_nonexistent.h>
7249 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7250 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7252 grep -v '^ *+' conftest.er1 >conftest.err
7254 cat conftest.err >&5
7255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256 (exit $ac_status); } >/dev/null; then
7257 if test -s conftest.err; then
7258 ac_cpp_err=$ac_cxx_preproc_warn_flag
7259 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7266 if test -z "$ac_cpp_err"; then
7267 # Broken: success on invalid input.
7270 echo "$as_me: failed program was:" >&5
7271 sed 's/^/| /' conftest.$ac_ext >&5
7273 # Passes both tests.
7277 rm -f conftest.err conftest.$ac_ext
7280 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7281 rm -f conftest.err conftest.$ac_ext
7282 if $ac_preproc_ok; then
7285 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7286 See \`config.log' for more details." >&5
7287 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7288 See \`config.log' for more details." >&2;}
7289 { (exit 1); exit 1; }; }
7293 ac_cpp='$CXXCPP $CPPFLAGS'
7294 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7295 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7296 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7302 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7303 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7304 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7305 if test -n "$ac_tool_prefix"; then
7306 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7308 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7309 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7310 echo "$as_me:$LINENO: checking for $ac_word" >&5
7311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7312 if test "${ac_cv_prog_F77+set}" = set; then
7313 echo $ECHO_N "(cached) $ECHO_C" >&6
7315 if test -n "$F77"; then
7316 ac_cv_prog_F77="$F77" # Let the user override the test.
7318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7322 test -z "$as_dir" && as_dir=.
7323 for ac_exec_ext in '' $ac_executable_extensions; do
7324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7325 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7335 if test -n "$F77"; then
7336 echo "$as_me:$LINENO: result: $F77" >&5
7337 echo "${ECHO_T}$F77" >&6
7339 echo "$as_me:$LINENO: result: no" >&5
7340 echo "${ECHO_T}no" >&6
7343 test -n "$F77" && break
7346 if test -z "$F77"; then
7348 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7350 # Extract the first word of "$ac_prog", so it can be a program name with args.
7351 set dummy $ac_prog; ac_word=$2
7352 echo "$as_me:$LINENO: checking for $ac_word" >&5
7353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7354 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7355 echo $ECHO_N "(cached) $ECHO_C" >&6
7357 if test -n "$ac_ct_F77"; then
7358 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7364 test -z "$as_dir" && as_dir=.
7365 for ac_exec_ext in '' $ac_executable_extensions; do
7366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7367 ac_cv_prog_ac_ct_F77="$ac_prog"
7368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7376 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7377 if test -n "$ac_ct_F77"; then
7378 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7379 echo "${ECHO_T}$ac_ct_F77" >&6
7381 echo "$as_me:$LINENO: result: no" >&5
7382 echo "${ECHO_T}no" >&6
7385 test -n "$ac_ct_F77" && break
7392 # Provide some information about the compiler.
7393 echo "$as_me:7393:" \
7394 "checking for Fortran 77 compiler version" >&5
7395 ac_compiler=`set X $ac_compile; echo $2`
7396 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7397 (eval $ac_compiler --version </dev/null >&5) 2>&5
7399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7400 (exit $ac_status); }
7401 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7402 (eval $ac_compiler -v </dev/null >&5) 2>&5
7404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7405 (exit $ac_status); }
7406 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7407 (eval $ac_compiler -V </dev/null >&5) 2>&5
7409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410 (exit $ac_status); }
7413 # If we don't use `.F' as extension, the preprocessor is not run on the
7414 # input file. (Note that this only needs to work for GNU compilers.)
7417 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7418 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7419 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7420 echo $ECHO_N "(cached) $ECHO_C" >&6
7422 cat >conftest.$ac_ext <<_ACEOF
7430 rm -f conftest.$ac_objext
7431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7432 (eval $ac_compile) 2>conftest.er1
7434 grep -v '^ *+' conftest.er1 >conftest.err
7436 cat conftest.err >&5
7437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438 (exit $ac_status); } &&
7439 { ac_try='test -z "$ac_f77_werror_flag"
7440 || test ! -s conftest.err'
7441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445 (exit $ac_status); }; } &&
7446 { ac_try='test -s conftest.$ac_objext'
7447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 (exit $ac_status); }; }; then
7454 echo "$as_me: failed program was:" >&5
7455 sed 's/^/| /' conftest.$ac_ext >&5
7459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7460 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7463 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7464 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7466 ac_test_FFLAGS=${FFLAGS+set}
7467 ac_save_FFLAGS=$FFLAGS
7469 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7470 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7471 if test "${ac_cv_prog_f77_g+set}" = set; then
7472 echo $ECHO_N "(cached) $ECHO_C" >&6
7475 cat >conftest.$ac_ext <<_ACEOF
7480 rm -f conftest.$ac_objext
7481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7482 (eval $ac_compile) 2>conftest.er1
7484 grep -v '^ *+' conftest.er1 >conftest.err
7486 cat conftest.err >&5
7487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488 (exit $ac_status); } &&
7489 { ac_try='test -z "$ac_f77_werror_flag"
7490 || test ! -s conftest.err'
7491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495 (exit $ac_status); }; } &&
7496 { ac_try='test -s conftest.$ac_objext'
7497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501 (exit $ac_status); }; }; then
7502 ac_cv_prog_f77_g=yes
7504 echo "$as_me: failed program was:" >&5
7505 sed 's/^/| /' conftest.$ac_ext >&5
7509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7512 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7513 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7514 if test "$ac_test_FFLAGS" = set; then
7515 FFLAGS=$ac_save_FFLAGS
7516 elif test $ac_cv_prog_f77_g = yes; then
7517 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7523 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7530 G77=`test $ac_compiler_gnu = yes && echo yes`
7532 ac_cpp='$CPP $CPPFLAGS'
7533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7539 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7541 # find the maximum length of command line arguments
7542 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7543 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7544 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7545 echo $ECHO_N "(cached) $ECHO_C" >&6
7552 # On DJGPP, this test can blow up pretty badly due to problems in libc
7553 # (any single argument exceeding 2000 bytes causes a buffer overrun
7554 # during glob expansion). Even if it were fixed, the result of this
7555 # check would be larger than it should be.
7556 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7560 # Under GNU Hurd, this test is not required because there is
7561 # no limit to the length of command line arguments.
7562 # Libtool will interpret -1 as no limit whatsoever
7563 lt_cv_sys_max_cmd_len=-1;
7567 # On Win9x/ME, this test blows up -- it succeeds, but takes
7568 # about 5 minutes as the teststring grows exponentially.
7569 # Worse, since 9x/ME are not pre-emptively multitasking,
7570 # you end up with a "frozen" computer, even though with patience
7571 # the test eventually succeeds (with a max line length of 256k).
7572 # Instead, let's just punt: use the minimum linelength reported by
7573 # all of the supported platforms: 8192 (on NT/2K/XP).
7574 lt_cv_sys_max_cmd_len=8192;
7578 # On AmigaOS with pdksh, this test takes hours, literally.
7579 # So we just punt and use a minimum line length of 8192.
7580 lt_cv_sys_max_cmd_len=8192;
7583 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7584 # This has been around since 386BSD, at least. Likely further.
7585 if test -x /sbin/sysctl; then
7586 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7587 elif test -x /usr/sbin/sysctl; then
7588 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7590 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
7592 # And add a safety zone
7593 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7594 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7597 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7598 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7599 # nice to cause kernel panics so lets avoid the loop below.
7600 # First set a reasonable default.
7601 lt_cv_sys_max_cmd_len=16384
7603 if test -x /sbin/sysconfig; then
7604 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7605 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7610 # If test is not a shell built-in, we'll probably end up computing a
7611 # maximum length that is only half of the actual maximum length, but
7613 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7614 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7615 = "XX$teststring") >/dev/null 2>&1 &&
7616 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7617 lt_cv_sys_max_cmd_len=$new_result &&
7618 test $i != 17 # 1/2 MB should be enough
7621 teststring=$teststring$teststring
7624 # Add a significant safety factor because C++ compilers can tack on massive
7625 # amounts of additional arguments before passing them to the linker.
7626 # It appears as though 1/2 is a usable value.
7627 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7633 if test -n $lt_cv_sys_max_cmd_len ; then
7634 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7635 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7637 echo "$as_me:$LINENO: result: none" >&5
7638 echo "${ECHO_T}none" >&6
7644 # Check for command to grab the raw symbol name followed by C symbol from nm.
7645 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7646 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7647 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7648 echo $ECHO_N "(cached) $ECHO_C" >&6
7651 # These are sane defaults that work on at least a few old systems.
7652 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7654 # Character class describing NM global symbol codes.
7655 symcode='[BCDEGRST]'
7657 # Regexp to match symbols that can be accessed directly from C.
7658 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7660 # Transform an extracted symbol line into a proper C declaration
7661 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7663 # Transform an extracted symbol line into symbol name and symbol address
7664 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'"
7666 # Define system-specific variables.
7671 cygwin* | mingw* | pw32*)
7672 symcode='[ABCDGISTW]'
7674 hpux*) # Its linker distinguishes data from code symbols
7675 if test "$host_cpu" = ia64; then
7676 symcode='[ABCDEGRST]'
7678 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7679 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'"
7682 if test "$host_cpu" = ia64; then
7683 symcode='[ABCDGIRSTW]'
7684 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7685 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 symcode='[BCDEGRST]'
7692 symcode='[BCDEGQRST]'
7702 # Handle CRLF in mingw tool chain
7706 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7710 # If we're using GNU nm, then use its standard symbol codes.
7711 case `$NM -V 2>&1` in
7712 *GNU* | *'with BFD'*)
7713 symcode='[ABCDGIRSTW]' ;;
7716 # Try without a prefix undercore, then with it.
7717 for ac_symprfx in "" "_"; do
7719 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7720 symxfrm="\\1 $ac_symprfx\\2 \\2"
7722 # Write the raw and C identifiers.
7723 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7725 # Check to see that the pipe works correctly.
7729 cat > conftest.$ac_ext <<EOF
7734 void nm_test_func(){}
7738 int main(){nm_test_var='a';nm_test_func();return(0);}
7741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7742 (eval $ac_compile) 2>&5
7744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745 (exit $ac_status); }; then
7746 # Now try to grab the symbols.
7748 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7749 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752 (exit $ac_status); } && test -s "$nlist"; then
7753 # Try sorting and uniquifying the output.
7754 if sort "$nlist" | uniq > "$nlist"T; then
7755 mv -f "$nlist"T "$nlist"
7760 # Make sure that we snagged all the symbols we need.
7761 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7762 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7763 cat <<EOF > conftest.$ac_ext
7769 # Now generate the symbol file.
7770 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7772 cat <<EOF >> conftest.$ac_ext
7773 #if defined (__STDC__) && __STDC__
7774 # define lt_ptr_t void *
7776 # define lt_ptr_t char *
7780 /* The mapping between symbol names and symbols. */
7785 lt_preloaded_symbols[] =
7788 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7789 cat <<\EOF >> conftest.$ac_ext
7797 # Now try linking the two files.
7798 mv conftest.$ac_objext conftstm.$ac_objext
7799 lt_save_LIBS="$LIBS"
7800 lt_save_CFLAGS="$CFLAGS"
7801 LIBS="conftstm.$ac_objext"
7802 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7804 (eval $ac_link) 2>&5
7806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7810 LIBS="$lt_save_LIBS"
7811 CFLAGS="$lt_save_CFLAGS"
7813 echo "cannot find nm_test_func in $nlist" >&5
7816 echo "cannot find nm_test_var in $nlist" >&5
7819 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7822 echo "$progname: failed program was:" >&5
7823 cat conftest.$ac_ext >&5
7825 rm -f conftest* conftst*
7827 # Do not use the global_symbol_pipe unless it works.
7828 if test "$pipe_works" = yes; then
7831 lt_cv_sys_global_symbol_pipe=
7837 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7838 lt_cv_sys_global_symbol_to_cdecl=
7840 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7841 echo "$as_me:$LINENO: result: failed" >&5
7842 echo "${ECHO_T}failed" >&6
7844 echo "$as_me:$LINENO: result: ok" >&5
7845 echo "${ECHO_T}ok" >&6
7848 echo "$as_me:$LINENO: checking for objdir" >&5
7849 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7850 if test "${lt_cv_objdir+set}" = set; then
7851 echo $ECHO_N "(cached) $ECHO_C" >&6
7853 rm -f .libs 2>/dev/null
7854 mkdir .libs 2>/dev/null
7855 if test -d .libs; then
7858 # MS-DOS does not allow filenames that begin with a dot.
7861 rmdir .libs 2>/dev/null
7863 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7864 echo "${ECHO_T}$lt_cv_objdir" >&6
7865 objdir=$lt_cv_objdir
7873 # AIX sometimes has problems with the GCC collect2 program. For some
7874 # reason, if we set the COLLECT_NAMES environment variable, the problems
7875 # vanish in a puff of smoke.
7876 if test "X${COLLECT_NAMES+set}" != Xset; then
7878 export COLLECT_NAMES
7883 # Sed substitution that helps us do robust quoting. It backslashifies
7884 # metacharacters that are still active within double-quoted strings.
7885 Xsed='sed -e 1s/^X//'
7886 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7888 # Same as above, but do not quote variable references.
7889 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7891 # Sed substitution to delay expansion of an escaped shell variable in a
7892 # double_quote_subst'ed string.
7893 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7895 # Sed substitution to avoid accidental globbing in evaled expressions
7896 no_glob_subst='s/\*/\\\*/g'
7902 default_ofile=libtool
7903 can_build_shared=yes
7905 # All known linkers require a `.a' archive for static linking (except M$VC,
7906 # which needs '.lib').
7908 ltmain="$ac_aux_dir/ltmain.sh"
7909 ofile="$default_ofile"
7910 with_gnu_ld="$lt_cv_prog_gnu_ld"
7912 if test -n "$ac_tool_prefix"; then
7913 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7914 set dummy ${ac_tool_prefix}ar; ac_word=$2
7915 echo "$as_me:$LINENO: checking for $ac_word" >&5
7916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7917 if test "${ac_cv_prog_AR+set}" = set; then
7918 echo $ECHO_N "(cached) $ECHO_C" >&6
7920 if test -n "$AR"; then
7921 ac_cv_prog_AR="$AR" # Let the user override the test.
7923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7927 test -z "$as_dir" && as_dir=.
7928 for ac_exec_ext in '' $ac_executable_extensions; do
7929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7930 ac_cv_prog_AR="${ac_tool_prefix}ar"
7931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7940 if test -n "$AR"; then
7941 echo "$as_me:$LINENO: result: $AR" >&5
7942 echo "${ECHO_T}$AR" >&6
7944 echo "$as_me:$LINENO: result: no" >&5
7945 echo "${ECHO_T}no" >&6
7949 if test -z "$ac_cv_prog_AR"; then
7951 # Extract the first word of "ar", so it can be a program name with args.
7952 set dummy ar; ac_word=$2
7953 echo "$as_me:$LINENO: checking for $ac_word" >&5
7954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7955 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7956 echo $ECHO_N "(cached) $ECHO_C" >&6
7958 if test -n "$ac_ct_AR"; then
7959 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7965 test -z "$as_dir" && as_dir=.
7966 for ac_exec_ext in '' $ac_executable_extensions; do
7967 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7968 ac_cv_prog_ac_ct_AR="ar"
7969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7975 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7978 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7979 if test -n "$ac_ct_AR"; then
7980 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7981 echo "${ECHO_T}$ac_ct_AR" >&6
7983 echo "$as_me:$LINENO: result: no" >&5
7984 echo "${ECHO_T}no" >&6
7992 if test -n "$ac_tool_prefix"; then
7993 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7994 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7995 echo "$as_me:$LINENO: checking for $ac_word" >&5
7996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7997 if test "${ac_cv_prog_RANLIB+set}" = set; then
7998 echo $ECHO_N "(cached) $ECHO_C" >&6
8000 if test -n "$RANLIB"; then
8001 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8007 test -z "$as_dir" && as_dir=.
8008 for ac_exec_ext in '' $ac_executable_extensions; do
8009 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8010 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8019 RANLIB=$ac_cv_prog_RANLIB
8020 if test -n "$RANLIB"; then
8021 echo "$as_me:$LINENO: result: $RANLIB" >&5
8022 echo "${ECHO_T}$RANLIB" >&6
8024 echo "$as_me:$LINENO: result: no" >&5
8025 echo "${ECHO_T}no" >&6
8029 if test -z "$ac_cv_prog_RANLIB"; then
8030 ac_ct_RANLIB=$RANLIB
8031 # Extract the first word of "ranlib", so it can be a program name with args.
8032 set dummy ranlib; ac_word=$2
8033 echo "$as_me:$LINENO: checking for $ac_word" >&5
8034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8035 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8036 echo $ECHO_N "(cached) $ECHO_C" >&6
8038 if test -n "$ac_ct_RANLIB"; then
8039 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8045 test -z "$as_dir" && as_dir=.
8046 for ac_exec_ext in '' $ac_executable_extensions; do
8047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8048 ac_cv_prog_ac_ct_RANLIB="ranlib"
8049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8055 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8058 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8059 if test -n "$ac_ct_RANLIB"; then
8060 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8061 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8063 echo "$as_me:$LINENO: result: no" >&5
8064 echo "${ECHO_T}no" >&6
8067 RANLIB=$ac_ct_RANLIB
8069 RANLIB="$ac_cv_prog_RANLIB"
8072 if test -n "$ac_tool_prefix"; then
8073 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8074 set dummy ${ac_tool_prefix}strip; ac_word=$2
8075 echo "$as_me:$LINENO: checking for $ac_word" >&5
8076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8077 if test "${ac_cv_prog_STRIP+set}" = set; then
8078 echo $ECHO_N "(cached) $ECHO_C" >&6
8080 if test -n "$STRIP"; then
8081 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8087 test -z "$as_dir" && as_dir=.
8088 for ac_exec_ext in '' $ac_executable_extensions; do
8089 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8090 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8099 STRIP=$ac_cv_prog_STRIP
8100 if test -n "$STRIP"; then
8101 echo "$as_me:$LINENO: result: $STRIP" >&5
8102 echo "${ECHO_T}$STRIP" >&6
8104 echo "$as_me:$LINENO: result: no" >&5
8105 echo "${ECHO_T}no" >&6
8109 if test -z "$ac_cv_prog_STRIP"; then
8111 # Extract the first word of "strip", so it can be a program name with args.
8112 set dummy strip; ac_word=$2
8113 echo "$as_me:$LINENO: checking for $ac_word" >&5
8114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8115 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8116 echo $ECHO_N "(cached) $ECHO_C" >&6
8118 if test -n "$ac_ct_STRIP"; then
8119 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8125 test -z "$as_dir" && as_dir=.
8126 for ac_exec_ext in '' $ac_executable_extensions; do
8127 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8128 ac_cv_prog_ac_ct_STRIP="strip"
8129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8135 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8138 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8139 if test -n "$ac_ct_STRIP"; then
8140 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8141 echo "${ECHO_T}$ac_ct_STRIP" >&6
8143 echo "$as_me:$LINENO: result: no" >&5
8144 echo "${ECHO_T}no" >&6
8149 STRIP="$ac_cv_prog_STRIP"
8154 old_CFLAGS="$CFLAGS"
8156 # Set sane defaults for various variables
8157 test -z "$AR" && AR=ar
8158 test -z "$AR_FLAGS" && AR_FLAGS=cru
8159 test -z "$AS" && AS=as
8160 test -z "$CC" && CC=cc
8161 test -z "$LTCC" && LTCC=$CC
8162 test -z "$DLLTOOL" && DLLTOOL=dlltool
8163 test -z "$LD" && LD=ld
8164 test -z "$LN_S" && LN_S="ln -s"
8165 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8166 test -z "$NM" && NM=nm
8167 test -z "$SED" && SED=sed
8168 test -z "$OBJDUMP" && OBJDUMP=objdump
8169 test -z "$RANLIB" && RANLIB=:
8170 test -z "$STRIP" && STRIP=:
8171 test -z "$ac_objext" && ac_objext=o
8173 # Determine commands to create old-style static archives.
8174 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8175 old_postinstall_cmds='chmod 644 $oldlib'
8176 old_postuninstall_cmds=
8178 if test -n "$RANLIB"; then
8181 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8184 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8187 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8190 for cc_temp in $compiler""; do
8192 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8193 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8198 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8201 # Only perform the check for file, if the check method requires it
8202 case $deplibs_check_method in
8204 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8205 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8206 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8207 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8208 echo $ECHO_N "(cached) $ECHO_C" >&6
8212 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8215 lt_save_MAGIC_CMD="$MAGIC_CMD"
8216 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8217 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8218 for ac_dir in $ac_dummy; do
8220 test -z "$ac_dir" && ac_dir=.
8221 if test -f $ac_dir/${ac_tool_prefix}file; then
8222 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8223 if test -n "$file_magic_test_file"; then
8224 case $deplibs_check_method in
8226 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8227 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8228 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8229 $EGREP "$file_magic_regex" > /dev/null; then
8234 *** Warning: the command libtool uses to detect shared libraries,
8235 *** $file_magic_cmd, produces output that libtool cannot recognize.
8236 *** The result is that libtool may fail to recognize shared libraries
8237 *** as such. This will affect the creation of libtool libraries that
8238 *** depend on shared libraries, but programs linked with such libtool
8239 *** libraries will work regardless of this problem. Nevertheless, you
8240 *** may want to report the problem to your system manager and/or to
8241 *** bug-libtool@gnu.org
8251 MAGIC_CMD="$lt_save_MAGIC_CMD"
8256 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8257 if test -n "$MAGIC_CMD"; then
8258 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8259 echo "${ECHO_T}$MAGIC_CMD" >&6
8261 echo "$as_me:$LINENO: result: no" >&5
8262 echo "${ECHO_T}no" >&6
8265 if test -z "$lt_cv_path_MAGIC_CMD"; then
8266 if test -n "$ac_tool_prefix"; then
8267 echo "$as_me:$LINENO: checking for file" >&5
8268 echo $ECHO_N "checking for file... $ECHO_C" >&6
8269 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8270 echo $ECHO_N "(cached) $ECHO_C" >&6
8274 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8277 lt_save_MAGIC_CMD="$MAGIC_CMD"
8278 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8279 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8280 for ac_dir in $ac_dummy; do
8282 test -z "$ac_dir" && ac_dir=.
8283 if test -f $ac_dir/file; then
8284 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8285 if test -n "$file_magic_test_file"; then
8286 case $deplibs_check_method in
8288 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8289 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8290 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8291 $EGREP "$file_magic_regex" > /dev/null; then
8296 *** Warning: the command libtool uses to detect shared libraries,
8297 *** $file_magic_cmd, produces output that libtool cannot recognize.
8298 *** The result is that libtool may fail to recognize shared libraries
8299 *** as such. This will affect the creation of libtool libraries that
8300 *** depend on shared libraries, but programs linked with such libtool
8301 *** libraries will work regardless of this problem. Nevertheless, you
8302 *** may want to report the problem to your system manager and/or to
8303 *** bug-libtool@gnu.org
8313 MAGIC_CMD="$lt_save_MAGIC_CMD"
8318 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8319 if test -n "$MAGIC_CMD"; then
8320 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8321 echo "${ECHO_T}$MAGIC_CMD" >&6
8323 echo "$as_me:$LINENO: result: no" >&5
8324 echo "${ECHO_T}no" >&6
8337 enable_win32_dll=yes
8339 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8340 if test "${enable_libtool_lock+set}" = set; then
8341 enableval="$enable_libtool_lock"
8344 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8347 # Check whether --with-pic or --without-pic was given.
8348 if test "${with_pic+set}" = set; then
8354 test -z "$pic_mode" && pic_mode=default
8356 # Use C for the default configuration in the libtool script
8360 ac_cpp='$CPP $CPPFLAGS'
8361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8366 # Source file extension for C test sources.
8369 # Object file extension for compiled C test sources.
8373 # Code to be used in simple compile tests
8374 lt_simple_compile_test_code="int some_variable = 0;\n"
8376 # Code to be used in simple link tests
8377 lt_simple_link_test_code='int main(){return(0);}\n'
8380 # If no C compiler was specified, use CC.
8383 # Allow CC to be a program name with arguments.
8387 # save warnings/boilerplate of simple test code
8388 ac_outfile=conftest.$ac_objext
8389 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8390 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8391 _lt_compiler_boilerplate=`cat conftest.err`
8394 ac_outfile=conftest.$ac_objext
8395 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8396 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8397 _lt_linker_boilerplate=`cat conftest.err`
8402 # Check for any special shared library compilation flags.
8405 if test "$GCC" = no; then
8408 lt_prog_cc_shlib='-belf'
8412 if test -n "$lt_prog_cc_shlib"; then
8413 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8414 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8415 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
8417 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8418 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8419 lt_cv_prog_cc_can_build_shared=no
8425 # Check to make sure the static flag actually works.
8427 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8428 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
8429 if test "${lt_prog_compiler_static_works+set}" = set; then
8430 echo $ECHO_N "(cached) $ECHO_C" >&6
8432 lt_prog_compiler_static_works=no
8433 save_LDFLAGS="$LDFLAGS"
8434 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8435 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8436 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8437 # The compiler can only warn and ignore the option if not recognized
8438 # So say no if there are warnings
8439 if test -s conftest.err; then
8440 # Append any errors to the config.log.
8441 cat conftest.err 1>&5
8442 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
8443 $SED '/^$/d' conftest.err >conftest.er2
8444 if diff conftest.exp conftest.er2 >/dev/null; then
8445 lt_prog_compiler_static_works=yes
8448 lt_prog_compiler_static_works=yes
8452 LDFLAGS="$save_LDFLAGS"
8455 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8456 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8458 if test x"$lt_prog_compiler_static_works" = xyes; then
8461 lt_prog_compiler_static=
8467 lt_prog_compiler_no_builtin_flag=
8469 if test "$GCC" = yes; then
8470 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8473 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8474 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8475 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8476 echo $ECHO_N "(cached) $ECHO_C" >&6
8478 lt_cv_prog_compiler_rtti_exceptions=no
8479 ac_outfile=conftest.$ac_objext
8480 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8481 lt_compiler_flag="-fno-rtti -fno-exceptions"
8482 # Insert the option either (1) after the last *FLAGS variable, or
8483 # (2) before a word containing "conftest.", or (3) at the end.
8484 # Note that $ac_compile itself does not contain backslashes and begins
8485 # with a dollar sign (not a hyphen), so the echo should work correctly.
8486 # The option is referenced via a variable to avoid confusing sed.
8487 lt_compile=`echo "$ac_compile" | $SED \
8488 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8489 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8490 -e 's:$: $lt_compiler_flag:'`
8491 (eval echo "\"\$as_me:8491: $lt_compile\"" >&5)
8492 (eval "$lt_compile" 2>conftest.err)
8494 cat conftest.err >&5
8495 echo "$as_me:8495: \$? = $ac_status" >&5
8496 if (exit $ac_status) && test -s "$ac_outfile"; then
8497 # The compiler can only warn and ignore the option if not recognized
8498 # So say no if there are warnings other than the usual output.
8499 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8500 $SED '/^$/d' conftest.err >conftest.er2
8501 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8502 lt_cv_prog_compiler_rtti_exceptions=yes
8508 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8509 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8511 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8512 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8519 lt_prog_compiler_wl=
8520 lt_prog_compiler_pic=
8521 lt_prog_compiler_static=
8523 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8524 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8526 if test "$GCC" = yes; then
8527 lt_prog_compiler_wl='-Wl,'
8528 lt_prog_compiler_static='-static'
8532 # All AIX code is PIC.
8533 if test "$host_cpu" = ia64; then
8534 # AIX 5 now supports IA64 processor
8535 lt_prog_compiler_static='-Bstatic'
8540 # FIXME: we need at least 68020 code to build shared libraries, but
8541 # adding the `-m68020' flag to GCC prevents building anything better,
8543 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8546 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8547 # PIC is the default for these OSes.
8550 mingw* | pw32* | os2*)
8551 # This hack is so that the source file can tell whether it is being
8552 # built for inclusion in a dll (and should export symbols for example).
8553 lt_prog_compiler_pic='-DDLL_EXPORT'
8556 darwin* | rhapsody*)
8557 # PIC is the default on this platform
8558 # Common symbols not allowed in MH_DYLIB files
8559 lt_prog_compiler_pic='-fno-common'
8563 # Just because we use GCC doesn't mean we suddenly get shared libraries
8564 # on systems that don't support them.
8565 lt_prog_compiler_can_build_shared=no
8570 if test -d /usr/nec; then
8571 lt_prog_compiler_pic=-Kconform_pic
8576 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8583 lt_prog_compiler_pic='-fPIC'
8589 lt_prog_compiler_pic='-fPIC'
8593 # PORTME Check for flag to pass linker flags through the system compiler.
8596 lt_prog_compiler_wl='-Wl,'
8597 if test "$host_cpu" = ia64; then
8598 # AIX 5 now supports IA64 processor
8599 lt_prog_compiler_static='-Bstatic'
8601 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8605 # PIC is the default on this platform
8606 # Common symbols not allowed in MH_DYLIB files
8607 case $cc_basename in
8609 lt_prog_compiler_pic='-qnocommon'
8610 lt_prog_compiler_wl='-Wl,'
8615 mingw* | pw32* | os2*)
8616 # This hack is so that the source file can tell whether it is being
8617 # built for inclusion in a dll (and should export symbols for example).
8618 lt_prog_compiler_pic='-DDLL_EXPORT'
8621 hpux9* | hpux10* | hpux11*)
8622 lt_prog_compiler_wl='-Wl,'
8623 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8630 lt_prog_compiler_pic='+Z'
8633 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8634 lt_prog_compiler_static='${wl}-a ${wl}archive'
8637 irix5* | irix6* | nonstopux*)
8638 lt_prog_compiler_wl='-Wl,'
8639 # PIC (with -KPIC) is the default.
8640 lt_prog_compiler_static='-non_shared'
8644 lt_prog_compiler_pic='-KPIC'
8645 lt_prog_compiler_static='-Bstatic'
8649 case $cc_basename in
8651 lt_prog_compiler_wl='-Wl,'
8652 lt_prog_compiler_pic='-KPIC'
8653 lt_prog_compiler_static='-static'
8655 pgcc* | pgf77* | pgf90*)
8656 # Portland Group compilers (*not* the Pentium gcc compiler,
8657 # which looks to be a dead project)
8658 lt_prog_compiler_wl='-Wl,'
8659 lt_prog_compiler_pic='-fpic'
8660 lt_prog_compiler_static='-static'
8663 lt_prog_compiler_wl='-Wl,'
8664 # All Alpha code is PIC.
8665 lt_prog_compiler_static='-non_shared'
8670 osf3* | osf4* | osf5*)
8671 lt_prog_compiler_wl='-Wl,'
8672 # All OSF/1 code is PIC.
8673 lt_prog_compiler_static='-non_shared'
8677 lt_prog_compiler_pic='-Kpic'
8678 lt_prog_compiler_static='-dn'
8682 lt_prog_compiler_pic='-KPIC'
8683 lt_prog_compiler_static='-Bstatic'
8684 case $cc_basename in
8686 lt_prog_compiler_wl='-Qoption ld ';;
8688 lt_prog_compiler_wl='-Wl,';;
8693 lt_prog_compiler_wl='-Qoption ld '
8694 lt_prog_compiler_pic='-PIC'
8695 lt_prog_compiler_static='-Bstatic'
8698 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8699 lt_prog_compiler_wl='-Wl,'
8700 lt_prog_compiler_pic='-KPIC'
8701 lt_prog_compiler_static='-Bstatic'
8705 if test -d /usr/nec ;then
8706 lt_prog_compiler_pic='-Kconform_pic'
8707 lt_prog_compiler_static='-Bstatic'
8712 lt_prog_compiler_wl='-Wl,'
8713 lt_prog_compiler_can_build_shared=no
8717 lt_prog_compiler_pic='-pic'
8718 lt_prog_compiler_static='-Bstatic'
8722 lt_prog_compiler_can_build_shared=no
8727 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8728 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8731 # Check to make sure the PIC flag actually works.
8733 if test -n "$lt_prog_compiler_pic"; then
8735 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8736 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8737 if test "${lt_prog_compiler_pic_works+set}" = set; then
8738 echo $ECHO_N "(cached) $ECHO_C" >&6
8740 lt_prog_compiler_pic_works=no
8741 ac_outfile=conftest.$ac_objext
8742 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8743 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8744 # Insert the option either (1) after the last *FLAGS variable, or
8745 # (2) before a word containing "conftest.", or (3) at the end.
8746 # Note that $ac_compile itself does not contain backslashes and begins
8747 # with a dollar sign (not a hyphen), so the echo should work correctly.
8748 # The option is referenced via a variable to avoid confusing sed.
8749 lt_compile=`echo "$ac_compile" | $SED \
8750 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8751 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8752 -e 's:$: $lt_compiler_flag:'`
8753 (eval echo "\"\$as_me:8753: $lt_compile\"" >&5)
8754 (eval "$lt_compile" 2>conftest.err)
8756 cat conftest.err >&5
8757 echo "$as_me:8757: \$? = $ac_status" >&5
8758 if (exit $ac_status) && test -s "$ac_outfile"; then
8759 # The compiler can only warn and ignore the option if not recognized
8760 # So say no if there are warnings other than the usual output.
8761 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8762 $SED '/^$/d' conftest.err >conftest.er2
8763 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8764 lt_prog_compiler_pic_works=yes
8770 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8771 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8773 if test x"$lt_prog_compiler_pic_works" = xyes; then
8774 case $lt_prog_compiler_pic in
8776 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8779 lt_prog_compiler_pic=
8780 lt_prog_compiler_can_build_shared=no
8785 # For platforms which do not support PIC, -DPIC is meaningless:
8787 lt_prog_compiler_pic=
8790 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8794 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8795 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8796 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8797 echo $ECHO_N "(cached) $ECHO_C" >&6
8799 lt_cv_prog_compiler_c_o=no
8800 $rm -r conftest 2>/dev/null
8804 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8806 lt_compiler_flag="-o out/conftest2.$ac_objext"
8807 # Insert the option either (1) after the last *FLAGS variable, or
8808 # (2) before a word containing "conftest.", or (3) at the end.
8809 # Note that $ac_compile itself does not contain backslashes and begins
8810 # with a dollar sign (not a hyphen), so the echo should work correctly.
8811 lt_compile=`echo "$ac_compile" | $SED \
8812 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8813 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8814 -e 's:$: $lt_compiler_flag:'`
8815 (eval echo "\"\$as_me:8815: $lt_compile\"" >&5)
8816 (eval "$lt_compile" 2>out/conftest.err)
8818 cat out/conftest.err >&5
8819 echo "$as_me:8819: \$? = $ac_status" >&5
8820 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8822 # The compiler can only warn and ignore the option if not recognized
8823 # So say no if there are warnings
8824 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8825 $SED '/^$/d' out/conftest.err >out/conftest.er2
8826 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8827 lt_cv_prog_compiler_c_o=yes
8832 # SGI C++ compiler will create directory out/ii_files/ for
8833 # template instantiation
8834 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8835 $rm out/* && rmdir out
8841 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8842 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8845 hard_links="nottested"
8846 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8847 # do not overwrite the value of need_locks provided by the user
8848 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8849 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8852 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8854 ln conftest.a conftest.b 2>&5 || hard_links=no
8855 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8856 echo "$as_me:$LINENO: result: $hard_links" >&5
8857 echo "${ECHO_T}$hard_links" >&6
8858 if test "$hard_links" = no; then
8859 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8860 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8867 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8868 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8871 allow_undefined_flag=
8872 enable_shared_with_static_runtimes=no
8874 archive_expsym_cmds=
8875 old_archive_From_new_cmds=
8876 old_archive_from_expsyms_cmds=
8877 export_dynamic_flag_spec=
8878 whole_archive_flag_spec=
8879 thread_safe_flag_spec=
8880 hardcode_libdir_flag_spec=
8881 hardcode_libdir_flag_spec_ld=
8882 hardcode_libdir_separator=
8885 hardcode_shlibpath_var=unsupported
8886 link_all_deplibs=unknown
8887 hardcode_automatic=no
8890 always_export_symbols=no
8891 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8892 # include_expsyms should be a list of space-separated symbols to be *always*
8893 # included in the symbol list
8895 # exclude_expsyms can be an extended regexp of symbols to exclude
8896 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8897 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8898 # as well as any symbol that contains `d'.
8899 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8900 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8901 # platforms (ab)use it in PIC code, but their linkers get confused if
8902 # the symbol is explicitly referenced. Since portable code cannot
8903 # rely on this symbol name, it's probably fine to never include it in
8904 # preloaded symbol tables.
8905 extract_expsyms_cmds=
8906 # Just being paranoid about ensuring that cc_basename is set.
8907 for cc_temp in $compiler""; do
8909 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8910 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8915 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8918 cygwin* | mingw* | pw32*)
8919 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8920 # When not using gcc, we currently assume that we are using
8921 # Microsoft Visual C++.
8922 if test "$GCC" != yes; then
8932 if test "$with_gnu_ld" = yes; then
8933 # If archive_cmds runs LD, not CC, wlarc should be empty
8936 # Set some defaults for GNU ld with shared library support. These
8937 # are reset later if shared libraries are not supported. Putting them
8938 # here allows them to be overridden if necessary.
8939 runpath_var=LD_RUN_PATH
8940 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8941 export_dynamic_flag_spec='${wl}--export-dynamic'
8942 # ancient GNU ld didn't support --whole-archive et. al.
8943 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8944 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8946 whole_archive_flag_spec=
8948 supports_anon_versioning=no
8949 case `$LD -v 2>/dev/null` in
8950 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8951 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8952 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8953 *\ 2.11.*) ;; # other 2.11 versions
8954 *) supports_anon_versioning=yes ;;
8957 # See if GNU ld supports shared libraries.
8959 aix3* | aix4* | aix5*)
8960 # On AIX/PPC, the GNU linker is very broken
8961 if test "$host_cpu" != ia64; then
8965 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8966 *** to be unable to reliably create shared libraries on AIX.
8967 *** Therefore, libtool is disabling shared libraries support. If you
8968 *** really care for shared libraries, you may want to modify your PATH
8969 *** so that a non-GNU linker is found, and then restart.
8976 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)'
8977 hardcode_libdir_flag_spec='-L$libdir'
8978 hardcode_minus_L=yes
8980 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8981 # that the semantics of dynamic libraries on AmigaOS, at least up
8982 # to version 4, is to share data among multiple programs linked
8983 # with the same dynamic library. Since this doesn't match the
8984 # behavior of shared libraries on other platforms, we can't use
8990 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8991 allow_undefined_flag=unsupported
8992 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8993 # support --undefined. This deserves some investigation. FIXME
8994 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9000 cygwin* | mingw* | pw32*)
9001 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9002 # as there is no search path for DLLs.
9003 hardcode_libdir_flag_spec='-L$libdir'
9004 allow_undefined_flag=unsupported
9005 always_export_symbols=no
9006 enable_shared_with_static_runtimes=yes
9007 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9009 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9010 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9011 # If the export-symbols file already is a .def file (1st line
9012 # is EXPORTS), use it as is; otherwise, prepend...
9013 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9014 cp $export_symbols $output_objdir/$soname.def;
9016 echo EXPORTS > $output_objdir/$soname.def;
9017 cat $export_symbols >> $output_objdir/$soname.def;
9019 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9026 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9028 case $cc_basename,$host_cpu in
9029 pgcc*) # Portland Group C compiler
9030 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'
9031 tmp_addflag=' $pic_flag'
9033 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
9034 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'
9035 tmp_addflag=' $pic_flag -Mnomain' ;;
9036 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9037 tmp_addflag=' -i_dynamic' ;;
9038 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9039 tmp_addflag=' -i_dynamic -nofor_main' ;;
9040 ifc* | ifort*) # Intel Fortran compiler
9041 tmp_addflag=' -nofor_main' ;;
9043 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9045 if test $supports_anon_versioning = yes; then
9046 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9047 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9048 $echo "local: *; };" >> $output_objdir/$libname.ver~
9049 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9057 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9058 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9061 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9062 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9067 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9071 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9072 *** create shared libraries on Solaris systems. Therefore, libtool
9073 *** is disabling shared libraries support. We urge you to upgrade GNU
9074 *** binutils to release 2.9.1 or newer. Another option is to modify
9075 *** your PATH or compiler configuration so that the native linker is
9076 *** used, and then restart.
9079 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9080 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9081 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9088 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9091 hardcode_shlibpath_var=no
9095 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9096 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9097 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9104 if test "$ld_shlibs" = no; then
9106 hardcode_libdir_flag_spec=
9107 export_dynamic_flag_spec=
9108 whole_archive_flag_spec=
9111 # PORTME fill in a description of your system's linker (not GNU ld)
9114 allow_undefined_flag=unsupported
9115 always_export_symbols=yes
9116 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'
9117 # Note: this linker hardcodes the directories in LIBPATH if there
9118 # are no directories specified by -L.
9119 hardcode_minus_L=yes
9120 if test "$GCC" = yes && test -z "$link_static_flag"; then
9121 # Neither direct hardcoding nor static linking is supported with a
9123 hardcode_direct=unsupported
9128 if test "$host_cpu" = ia64; then
9129 # On IA64, the linker does run time linking by default, so we don't
9130 # have to do anything special.
9131 aix_use_runtimelinking=no
9132 exp_sym_flag='-Bexport'
9135 # If we're using GNU nm, then we don't want the "-C" option.
9136 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9137 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9138 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'
9140 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'
9142 aix_use_runtimelinking=no
9144 # Test if we are trying to use run time linking or normal
9145 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9146 # need to do runtime linking.
9147 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9148 for ld_flag in $LDFLAGS; do
9149 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9150 aix_use_runtimelinking=yes
9156 exp_sym_flag='-bexport'
9157 no_entry_flag='-bnoentry'
9160 # When large executables or shared objects are built, AIX ld can
9161 # have problems creating the table of contents. If linking a library
9162 # or program results in "error TOC overflow" add -mminimal-toc to
9163 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9164 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9168 hardcode_libdir_separator=':'
9169 link_all_deplibs=yes
9171 if test "$GCC" = yes; then
9172 case $host_os in aix4.[012]|aix4.[012].*)
9173 # We only want to do this on AIX 4.2 and lower, the check
9174 # below for broken collect2 doesn't work under 4.3+
9175 collect2name=`${CC} -print-prog-name=collect2`
9176 if test -f "$collect2name" && \
9177 strings "$collect2name" | grep resolve_lib_name >/dev/null
9179 # We have reworked collect2
9182 # We have old collect2
9183 hardcode_direct=unsupported
9184 # It fails to find uninstalled libraries when the uninstalled
9185 # path is not listed in the libpath. Setting hardcode_minus_L
9186 # to unsupported forces relinking
9187 hardcode_minus_L=yes
9188 hardcode_libdir_flag_spec='-L$libdir'
9189 hardcode_libdir_separator=
9192 shared_flag='-shared'
9193 if test "$aix_use_runtimelinking" = yes; then
9194 shared_flag="$shared_flag "'${wl}-G'
9198 if test "$host_cpu" = ia64; then
9199 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9200 # chokes on -Wl,-G. The following line is correct:
9203 if test "$aix_use_runtimelinking" = yes; then
9204 shared_flag='${wl}-G'
9206 shared_flag='${wl}-bM:SRE'
9211 # It seems that -bexpall does not export symbols beginning with
9212 # underscore (_), so it is better to generate a list of symbols to export.
9213 always_export_symbols=yes
9214 if test "$aix_use_runtimelinking" = yes; then
9215 # Warning - without using the other runtime loading flags (-brtl),
9216 # -berok will link without error, but may produce a broken library.
9217 allow_undefined_flag='-berok'
9218 # Determine the default libpath from the value encoded in an empty executable.
9219 cat >conftest.$ac_ext <<_ACEOF
9222 cat confdefs.h >>conftest.$ac_ext
9223 cat >>conftest.$ac_ext <<_ACEOF
9224 /* end confdefs.h. */
9234 rm -f conftest.$ac_objext conftest$ac_exeext
9235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9236 (eval $ac_link) 2>conftest.er1
9238 grep -v '^ *+' conftest.er1 >conftest.err
9240 cat conftest.err >&5
9241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242 (exit $ac_status); } &&
9243 { ac_try='test -z "$ac_c_werror_flag"
9244 || test ! -s conftest.err'
9245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 (exit $ac_status); }; } &&
9250 { ac_try='test -s conftest$ac_exeext'
9251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255 (exit $ac_status); }; }; then
9257 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9259 # Check for a 64-bit object if we didn't find anything.
9260 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; }
9263 echo "$as_me: failed program was:" >&5
9264 sed 's/^/| /' conftest.$ac_ext >&5
9267 rm -f conftest.err conftest.$ac_objext \
9268 conftest$ac_exeext conftest.$ac_ext
9269 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9271 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9272 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"
9274 if test "$host_cpu" = ia64; then
9275 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9276 allow_undefined_flag="-z nodefs"
9277 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"
9279 # Determine the default libpath from the value encoded in an empty executable.
9280 cat >conftest.$ac_ext <<_ACEOF
9283 cat confdefs.h >>conftest.$ac_ext
9284 cat >>conftest.$ac_ext <<_ACEOF
9285 /* end confdefs.h. */
9295 rm -f conftest.$ac_objext conftest$ac_exeext
9296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9297 (eval $ac_link) 2>conftest.er1
9299 grep -v '^ *+' conftest.er1 >conftest.err
9301 cat conftest.err >&5
9302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303 (exit $ac_status); } &&
9304 { ac_try='test -z "$ac_c_werror_flag"
9305 || test ! -s conftest.err'
9306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310 (exit $ac_status); }; } &&
9311 { ac_try='test -s conftest$ac_exeext'
9312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316 (exit $ac_status); }; }; then
9318 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9320 # Check for a 64-bit object if we didn't find anything.
9321 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; }
9324 echo "$as_me: failed program was:" >&5
9325 sed 's/^/| /' conftest.$ac_ext >&5
9328 rm -f conftest.err conftest.$ac_objext \
9329 conftest$ac_exeext conftest.$ac_ext
9330 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9332 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9333 # Warning - without using the other run time loading flags,
9334 # -berok will link without error, but may produce a broken library.
9335 no_undefined_flag=' ${wl}-bernotok'
9336 allow_undefined_flag=' ${wl}-berok'
9337 # -bexpall does not export symbols beginning with underscore (_)
9338 always_export_symbols=yes
9339 # Exported symbols can be pulled into shared objects from archives
9340 whole_archive_flag_spec=' '
9341 archive_cmds_need_lc=yes
9342 # This is similar to how AIX traditionally builds it's shared libraries.
9343 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'
9349 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)'
9350 hardcode_libdir_flag_spec='-L$libdir'
9351 hardcode_minus_L=yes
9352 # see comment about different semantics on the GNU ld section
9357 export_dynamic_flag_spec=-rdynamic
9360 cygwin* | mingw* | pw32*)
9361 # When not using gcc, we currently assume that we are using
9362 # Microsoft Visual C++.
9363 # hardcode_libdir_flag_spec is actually meaningless, as there is
9364 # no search path for DLLs.
9365 hardcode_libdir_flag_spec=' '
9366 allow_undefined_flag=unsupported
9367 # Tell ltmain to make .lib files, not .a files.
9369 # Tell ltmain to make .dll files, not .so files.
9371 # FIXME: Setting linknames here is a bad hack.
9372 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9373 # The linker will automatically build a .lib file if we build a DLL.
9374 old_archive_From_new_cmds='true'
9375 # FIXME: Should let the user specify the lib program.
9376 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9377 fix_srcfile_path='`cygpath -w "$srcfile"`'
9378 enable_shared_with_static_runtimes=yes
9381 darwin* | rhapsody*)
9383 rhapsody* | darwin1.[012])
9384 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9387 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9388 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9390 case ${MACOSX_DEPLOYMENT_TARGET} in
9392 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9395 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9401 archive_cmds_need_lc=no
9403 hardcode_automatic=yes
9404 hardcode_shlibpath_var=unsupported
9405 whole_archive_flag_spec=''
9406 link_all_deplibs=yes
9407 if test "$GCC" = yes ; then
9408 output_verbose_link_cmd='echo'
9409 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9410 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9411 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9412 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}'
9413 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}'
9415 case $cc_basename in
9417 output_verbose_link_cmd='echo'
9418 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9419 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9420 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9421 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}'
9422 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}'
9432 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9433 hardcode_libdir_flag_spec='-L$libdir'
9434 hardcode_shlibpath_var=no
9441 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9442 # support. Future versions do this automatically, but an explicit c++rt0.o
9443 # does not break anything, and helps significantly (at the cost of a little
9446 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9447 hardcode_libdir_flag_spec='-R$libdir'
9449 hardcode_shlibpath_var=no
9452 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9454 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9456 hardcode_minus_L=yes
9457 hardcode_shlibpath_var=no
9460 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9461 freebsd* | kfreebsd*-gnu | dragonfly*)
9462 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9463 hardcode_libdir_flag_spec='-R$libdir'
9465 hardcode_shlibpath_var=no
9469 if test "$GCC" = yes; then
9470 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'
9472 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'
9474 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9475 hardcode_libdir_separator=:
9478 # hardcode_minus_L: Not really in the search PATH,
9479 # but as the default location of the library.
9480 hardcode_minus_L=yes
9481 export_dynamic_flag_spec='${wl}-E'
9485 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9488 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9491 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9497 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9500 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9504 if test "$with_gnu_ld" = no; then
9507 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9508 hardcode_libdir_flag_spec_ld='+b $libdir'
9509 hardcode_libdir_separator=:
9511 hardcode_shlibpath_var=no
9514 hardcode_libdir_flag_spec='-L$libdir'
9516 hardcode_shlibpath_var=no
9518 # hardcode_minus_L: Not really in the search PATH,
9519 # but as the default location of the library.
9520 hardcode_minus_L=yes
9523 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9524 hardcode_libdir_separator=:
9526 export_dynamic_flag_spec='${wl}-E'
9528 # hardcode_minus_L: Not really in the search PATH,
9529 # but as the default location of the library.
9530 hardcode_minus_L=yes
9536 irix5* | irix6* | nonstopux*)
9537 if test "$GCC" = yes; then
9538 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'
9540 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'
9541 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9543 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9544 hardcode_libdir_separator=:
9545 link_all_deplibs=yes
9549 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9550 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9552 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9554 hardcode_libdir_flag_spec='-R$libdir'
9556 hardcode_shlibpath_var=no
9560 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9562 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9563 hardcode_libdir_separator=:
9564 hardcode_shlibpath_var=no
9569 hardcode_shlibpath_var=no
9570 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9571 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9572 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9573 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9574 export_dynamic_flag_spec='${wl}-E'
9577 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9578 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9579 hardcode_libdir_flag_spec='-R$libdir'
9582 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9583 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9590 hardcode_libdir_flag_spec='-L$libdir'
9591 hardcode_minus_L=yes
9592 allow_undefined_flag=unsupported
9593 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'
9594 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9598 if test "$GCC" = yes; then
9599 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9600 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'
9602 allow_undefined_flag=' -expect_unresolved \*'
9603 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'
9605 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9606 hardcode_libdir_separator=:
9609 osf4* | osf5*) # as osf3* with the addition of -msym flag
9610 if test "$GCC" = yes; then
9611 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9612 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'
9613 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9615 allow_undefined_flag=' -expect_unresolved \*'
9616 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'
9617 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9618 $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'
9620 # Both c and cxx compiler support -rpath directly
9621 hardcode_libdir_flag_spec='-rpath $libdir'
9623 hardcode_libdir_separator=:
9627 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9628 hardcode_shlibpath_var=no
9629 export_dynamic_flag_spec='${wl}-Bexport'
9630 runpath_var=LD_RUN_PATH
9631 hardcode_runpath_var=yes
9635 no_undefined_flag=' -z text'
9636 if test "$GCC" = yes; then
9638 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9639 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9640 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9643 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9644 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9645 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9647 hardcode_libdir_flag_spec='-R$libdir'
9648 hardcode_shlibpath_var=no
9650 solaris2.[0-5] | solaris2.[0-5].*) ;;
9652 # The compiler driver will combine linker options so we
9653 # cannot just pass the convience library names through
9654 # without $wl, iff we do not link with $LD.
9655 # Luckily, gcc supports the same syntax we need for Sun Studio.
9656 # Supported since Solaris 2.6 (maybe 2.5.1?)
9659 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9661 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' ;;
9664 link_all_deplibs=yes
9668 if test "x$host_vendor" = xsequent; then
9669 # Use $CC to link under sequent, because it throws in some extra .o
9670 # files that make .init and .fini sections work.
9671 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9673 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9675 hardcode_libdir_flag_spec='-L$libdir'
9677 hardcode_minus_L=yes
9678 hardcode_shlibpath_var=no
9682 case $host_vendor in
9684 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9685 hardcode_direct=yes # is this really true???
9688 ## LD is ld it makes a PLAMLIB
9689 ## CC just makes a GrossModule.
9690 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9691 reload_cmds='$CC -r -o $output$reload_objs'
9695 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9696 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9699 runpath_var='LD_RUN_PATH'
9700 hardcode_shlibpath_var=no
9704 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9705 hardcode_shlibpath_var=no
9706 export_dynamic_flag_spec='-Bexport'
9710 if test -d /usr/nec; then
9711 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9712 hardcode_shlibpath_var=no
9713 runpath_var=LD_RUN_PATH
9714 hardcode_runpath_var=yes
9720 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9723 hardcode_shlibpath_var=no
9724 hardcode_runpath_var=yes
9725 runpath_var=LD_RUN_PATH
9728 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9729 no_undefined_flag='${wl}-z ${wl}text'
9730 if test "$GCC" = yes; then
9731 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9733 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9735 runpath_var='LD_RUN_PATH'
9736 hardcode_shlibpath_var=no
9740 no_undefined_flag=' -z text'
9741 # $CC -shared without GNU ld will not create a library from C++
9742 # object files and a static libstdc++, better avoid it by now
9743 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9744 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9745 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9746 hardcode_libdir_flag_spec=
9747 hardcode_shlibpath_var=no
9748 runpath_var='LD_RUN_PATH'
9752 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9753 hardcode_libdir_flag_spec='-L$libdir'
9754 hardcode_shlibpath_var=no
9763 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9764 echo "${ECHO_T}$ld_shlibs" >&6
9765 test "$ld_shlibs" = no && can_build_shared=no
9767 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9768 if test "$GCC" = yes; then
9769 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9773 # Do we need to explicitly link libc?
9775 case "x$archive_cmds_need_lc" in
9777 # Assume -lc should be added
9778 archive_cmds_need_lc=yes
9780 if test "$enable_shared" = yes && test "$GCC" = yes; then
9781 case $archive_cmds in
9783 # FIXME: we may have to deal with multi-command sequences.
9786 # Test whether the compiler implicitly links with -lc since on some
9787 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9788 # to ld, don't add -lc before -lgcc.
9789 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9790 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9792 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9795 (eval $ac_compile) 2>&5
9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); } 2>conftest.err; then
9801 libobjs=conftest.$ac_objext
9803 wl=$lt_prog_compiler_wl
9809 lt_save_allow_undefined_flag=$allow_undefined_flag
9810 allow_undefined_flag=
9811 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9812 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815 (exit $ac_status); }
9817 archive_cmds_need_lc=no
9819 archive_cmds_need_lc=yes
9821 allow_undefined_flag=$lt_save_allow_undefined_flag
9823 cat conftest.err 1>&5
9826 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9827 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9834 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9835 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9837 libname_spec='lib$name'
9845 shlibpath_overrides_runpath=unknown
9847 dynamic_linker="$host_os ld.so"
9848 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9849 if test "$GCC" = yes; then
9850 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9851 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9852 # if the path contains ";" then we assume it to be the separator
9853 # otherwise default to the standard path separator (i.e. ":") - it is
9854 # assumed that no part of a normal pathname contains ";" but that should
9855 # okay in the real world where ";" in dirpaths is itself problematic.
9856 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9858 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9861 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9863 need_lib_prefix=unknown
9864 hardcode_into_libs=no
9866 # when you set need_version to no, make sure it does not cause -set_version
9867 # flags to be left without arguments
9868 need_version=unknown
9873 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9874 shlibpath_var=LIBPATH
9876 # AIX 3 has no versioning support, so we append a major version to the name.
9877 soname_spec='${libname}${release}${shared_ext}$major'
9884 hardcode_into_libs=yes
9885 if test "$host_cpu" = ia64; then
9886 # AIX 5 supports IA64
9887 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9888 shlibpath_var=LD_LIBRARY_PATH
9890 # With GCC up to 2.95.x, collect2 would create an import file
9891 # for dependence libraries. The import file would start with
9892 # the line `#! .'. This would cause the generated library to
9893 # depend on `.', always an invalid library. This was fixed in
9894 # development snapshots of GCC prior to 3.0.
9896 aix4 | aix4.[01] | aix4.[01].*)
9897 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9899 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9906 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9907 # soname into executable. Probably we can add versioning support to
9908 # collect2, so additional links can be useful in future.
9909 if test "$aix_use_runtimelinking" = yes; then
9910 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9911 # instead of lib<name>.a to let people know that these are not
9912 # typical AIX shared libraries.
9913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9915 # We preserve .a as extension for shared libraries through AIX4.2
9916 # and later when we are not doing run time linking.
9917 library_names_spec='${libname}${release}.a $libname.a'
9918 soname_spec='${libname}${release}${shared_ext}$major'
9920 shlibpath_var=LIBPATH
9925 library_names_spec='$libname.ixlibrary $libname.a'
9926 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9927 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'
9931 library_names_spec='${libname}${shared_ext}'
9932 dynamic_linker="$host_os ld.so"
9933 shlibpath_var=LIBRARY_PATH
9939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9940 soname_spec='${libname}${release}${shared_ext}$major'
9941 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9942 shlibpath_var=LD_LIBRARY_PATH
9943 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9944 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9945 # the default ld.so.conf also contains /usr/contrib/lib and
9946 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9947 # libtool to hard-code these into programs
9950 cygwin* | mingw* | pw32*)
9951 version_type=windows
9956 case $GCC,$host_os in
9957 yes,cygwin* | yes,mingw* | yes,pw32*)
9958 library_names_spec='$libname.dll.a'
9959 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9960 postinstall_cmds='base_file=`basename \${file}`~
9961 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9962 dldir=$destdir/`dirname \$dlpath`~
9963 test -d \$dldir || mkdir -p \$dldir~
9964 $install_prog $dir/$dlname \$dldir/$dlname'
9965 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9966 dlpath=$dir/\$dldll~
9968 shlibpath_overrides_runpath=yes
9972 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9973 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9974 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9977 # MinGW DLLs use traditional 'lib' prefix
9978 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9979 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9980 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9981 # It is most probably a Windows format PATH printed by
9982 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9983 # path with ; separators, and with drive letters. We can handle the
9984 # drive letters (cygwin fileutils understands them), so leave them,
9985 # especially as we might pass files found there to a mingw objdump,
9986 # which wouldn't understand a cygwinified path. Ahh.
9987 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9989 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9993 # pw32 DLLs use 'pw' prefix rather than 'lib'
9994 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10000 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10003 dynamic_linker='Win32 ld.exe'
10004 # FIXME: first we should search . and the directory the executable is in
10008 darwin* | rhapsody*)
10009 dynamic_linker="$host_os dyld"
10010 version_type=darwin
10013 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10014 soname_spec='${libname}${release}${major}$shared_ext'
10015 shlibpath_overrides_runpath=yes
10016 shlibpath_var=DYLD_LIBRARY_PATH
10017 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
10018 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10019 if test "$GCC" = yes; then
10020 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"`
10022 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10024 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10032 soname_spec='${libname}${release}${shared_ext}$major'
10033 shlibpath_var=LD_LIBRARY_PATH
10044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10045 soname_spec='${libname}${release}${shared_ext}$major'
10046 shlibpath_var=LD_LIBRARY_PATH
10047 shlibpath_overrides_runpath=no
10048 hardcode_into_libs=yes
10049 dynamic_linker='GNU ld.so'
10052 freebsd* | dragonfly*)
10053 # DragonFly does not have aout. When/if they implement a new
10054 # versioning mechanism, adjust this.
10055 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10056 version_type=freebsd-$objformat
10057 case $version_type in
10059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10064 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10068 shlibpath_var=LD_LIBRARY_PATH
10071 shlibpath_overrides_runpath=yes
10073 freebsd3.[01]* | freebsdelf3.[01]*)
10074 shlibpath_overrides_runpath=yes
10075 hardcode_into_libs=yes
10078 shlibpath_overrides_runpath=no
10079 hardcode_into_libs=yes
10088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10089 soname_spec='${libname}${release}${shared_ext}$major'
10090 shlibpath_var=LD_LIBRARY_PATH
10091 hardcode_into_libs=yes
10094 hpux9* | hpux10* | hpux11*)
10095 # Give a soname corresponding to the major version so that dld.sl refuses to
10096 # link against other versions.
10100 case "$host_cpu" in
10103 hardcode_into_libs=yes
10104 dynamic_linker="$host_os dld.so"
10105 shlibpath_var=LD_LIBRARY_PATH
10106 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10108 soname_spec='${libname}${release}${shared_ext}$major'
10109 if test "X$HPUX_IA64_MODE" = X32; then
10110 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10112 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10114 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10118 hardcode_into_libs=yes
10119 dynamic_linker="$host_os dld.sl"
10120 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10121 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10123 soname_spec='${libname}${release}${shared_ext}$major'
10124 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10125 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10129 dynamic_linker="$host_os dld.sl"
10130 shlibpath_var=SHLIB_PATH
10131 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10133 soname_spec='${libname}${release}${shared_ext}$major'
10136 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10137 postinstall_cmds='chmod 555 $lib'
10140 irix5* | irix6* | nonstopux*)
10142 nonstopux*) version_type=nonstopux ;;
10144 if test "$lt_cv_prog_gnu_ld" = yes; then
10152 soname_spec='${libname}${release}${shared_ext}$major'
10153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10155 irix5* | nonstopux*)
10156 libsuff= shlibsuff=
10159 case $LD in # libtool.m4 will add one of these switches to LD
10160 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10161 libsuff= shlibsuff= libmagic=32-bit;;
10162 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10163 libsuff=32 shlibsuff=N32 libmagic=N32;;
10164 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10165 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10166 *) libsuff= shlibsuff= libmagic=never-match;;
10170 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10171 shlibpath_overrides_runpath=no
10172 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10173 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10174 hardcode_into_libs=yes
10177 # No shared lib support for Linux oldld, aout, or coff.
10178 linux*oldld* | linux*aout* | linux*coff*)
10182 # This must be Linux ELF.
10187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10188 soname_spec='${libname}${release}${shared_ext}$major'
10189 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10190 shlibpath_var=LD_LIBRARY_PATH
10191 shlibpath_overrides_runpath=no
10192 # This implies no fast_install, which is unacceptable.
10193 # Some rework will be needed to allow for fast_install
10194 # before this can be enabled.
10195 hardcode_into_libs=yes
10197 # Append ld.so.conf contents to the search path
10198 if test -f /etc/ld.so.conf; then
10199 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' ' '`
10200 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10203 # We used to test for /lib/ld.so.1 and disable shared libraries on
10204 # powerpc, because MkLinux only supported shared libraries with the
10205 # GNU dynamic linker. Since this was broken with cross compilers,
10206 # most powerpc-linux boxes support dynamic linking these days and
10207 # people can always --disable-shared, the test was removed, and we
10208 # assume the GNU/Linux dynamic linker is in use.
10209 dynamic_linker='GNU/Linux ld.so'
10216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10217 soname_spec='${libname}${release}${shared_ext}$major'
10218 shlibpath_var=LD_LIBRARY_PATH
10219 shlibpath_overrides_runpath=no
10220 hardcode_into_libs=yes
10221 dynamic_linker='GNU ld.so'
10228 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10230 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10231 dynamic_linker='NetBSD (a.out) ld.so'
10233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10234 soname_spec='${libname}${release}${shared_ext}$major'
10235 dynamic_linker='NetBSD ld.elf_so'
10237 shlibpath_var=LD_LIBRARY_PATH
10238 shlibpath_overrides_runpath=yes
10239 hardcode_into_libs=yes
10244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10245 shlibpath_var=LD_LIBRARY_PATH
10246 shlibpath_overrides_runpath=yes
10253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10254 soname_spec='${libname}${release}${shared_ext}$major'
10255 shlibpath_var=LD_LIBRARY_PATH
10256 shlibpath_overrides_runpath=yes
10262 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10264 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10265 *) need_version=no ;;
10267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10268 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10269 shlibpath_var=LD_LIBRARY_PATH
10270 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10272 openbsd2.[89] | openbsd2.[89].*)
10273 shlibpath_overrides_runpath=no
10276 shlibpath_overrides_runpath=yes
10280 shlibpath_overrides_runpath=yes
10285 libname_spec='$name'
10288 library_names_spec='$libname${shared_ext} $libname.a'
10289 dynamic_linker='OS/2 ld.exe'
10290 shlibpath_var=LIBPATH
10293 osf3* | osf4* | osf5*)
10297 soname_spec='${libname}${release}${shared_ext}$major'
10298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10299 shlibpath_var=LD_LIBRARY_PATH
10300 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10301 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10306 soname_spec='${libname}${release}${shared_ext}$major'
10307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10308 shlibpath_var=LD_LIBRARY_PATH
10315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10316 soname_spec='${libname}${release}${shared_ext}$major'
10317 shlibpath_var=LD_LIBRARY_PATH
10318 shlibpath_overrides_runpath=yes
10319 hardcode_into_libs=yes
10320 # ldd complains unless libraries are executable
10321 postinstall_cmds='chmod +x $lib'
10326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10327 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10328 shlibpath_var=LD_LIBRARY_PATH
10329 shlibpath_overrides_runpath=yes
10330 if test "$with_gnu_ld" = yes; then
10336 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
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 case $host_vendor in
10343 shlibpath_overrides_runpath=no
10345 export_dynamic_flag_spec='${wl}-Blargedynsym'
10346 runpath_var=LD_RUN_PATH
10354 shlibpath_overrides_runpath=no
10355 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10361 if test -d /usr/nec ;then
10363 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10364 soname_spec='$libname${shared_ext}.$major'
10365 shlibpath_var=LD_LIBRARY_PATH
10371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10372 soname_spec='${libname}${release}${shared_ext}$major'
10373 shlibpath_var=LD_LIBRARY_PATH
10380 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10381 echo "${ECHO_T}$dynamic_linker" >&6
10382 test "$dynamic_linker" = no && can_build_shared=no
10384 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10385 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10387 if test -n "$hardcode_libdir_flag_spec" || \
10388 test -n "$runpath_var" || \
10389 test "X$hardcode_automatic" = "Xyes" ; then
10391 # We can hardcode non-existant directories.
10392 if test "$hardcode_direct" != no &&
10393 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10394 # have to relink, otherwise we might link with an installed library
10395 # when we should be linking with a yet-to-be-installed one
10396 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10397 test "$hardcode_minus_L" != no; then
10398 # Linking always hardcodes the temporary library directory.
10399 hardcode_action=relink
10401 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10402 hardcode_action=immediate
10405 # We cannot hardcode anything, or else we can only hardcode existing
10407 hardcode_action=unsupported
10409 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10410 echo "${ECHO_T}$hardcode_action" >&6
10412 if test "$hardcode_action" = relink; then
10413 # Fast installation is not supported
10414 enable_fast_install=no
10415 elif test "$shlibpath_overrides_runpath" = yes ||
10416 test "$enable_shared" = no; then
10417 # Fast installation is not necessary
10418 enable_fast_install=needless
10423 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10424 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10425 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10426 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10427 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10428 echo "$as_me:$LINENO: result: yes" >&5
10429 echo "${ECHO_T}yes" >&6
10431 # FIXME - insert some real tests, host_os isn't really good enough
10434 if test -n "$STRIP" ; then
10435 striplib="$STRIP -x"
10436 echo "$as_me:$LINENO: result: yes" >&5
10437 echo "${ECHO_T}yes" >&6
10439 echo "$as_me:$LINENO: result: no" >&5
10440 echo "${ECHO_T}no" >&6
10444 echo "$as_me:$LINENO: result: no" >&5
10445 echo "${ECHO_T}no" >&6
10450 if test "x$enable_dlopen" != xyes; then
10451 enable_dlopen=unknown
10452 enable_dlopen_self=unknown
10453 enable_dlopen_self_static=unknown
10460 lt_cv_dlopen="load_add_on"
10462 lt_cv_dlopen_self=yes
10466 lt_cv_dlopen="LoadLibrary"
10471 lt_cv_dlopen="dlopen"
10476 # if libdl is installed we need to link against it
10477 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10478 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10479 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10480 echo $ECHO_N "(cached) $ECHO_C" >&6
10482 ac_check_lib_save_LIBS=$LIBS
10484 cat >conftest.$ac_ext <<_ACEOF
10487 cat confdefs.h >>conftest.$ac_ext
10488 cat >>conftest.$ac_ext <<_ACEOF
10489 /* end confdefs.h. */
10491 /* Override any gcc2 internal prototype to avoid an error. */
10495 /* We use char because int might match the return type of a gcc2
10496 builtin and then its argument prototype would still apply. */
10506 rm -f conftest.$ac_objext conftest$ac_exeext
10507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10508 (eval $ac_link) 2>conftest.er1
10510 grep -v '^ *+' conftest.er1 >conftest.err
10512 cat conftest.err >&5
10513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514 (exit $ac_status); } &&
10515 { ac_try='test -z "$ac_c_werror_flag"
10516 || test ! -s conftest.err'
10517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10518 (eval $ac_try) 2>&5
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); }; } &&
10522 { ac_try='test -s conftest$ac_exeext'
10523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10524 (eval $ac_try) 2>&5
10526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527 (exit $ac_status); }; }; then
10528 ac_cv_lib_dl_dlopen=yes
10530 echo "$as_me: failed program was:" >&5
10531 sed 's/^/| /' conftest.$ac_ext >&5
10533 ac_cv_lib_dl_dlopen=no
10535 rm -f conftest.err conftest.$ac_objext \
10536 conftest$ac_exeext conftest.$ac_ext
10537 LIBS=$ac_check_lib_save_LIBS
10539 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10540 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10541 if test $ac_cv_lib_dl_dlopen = yes; then
10542 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10545 lt_cv_dlopen="dyld"
10547 lt_cv_dlopen_self=yes
10554 echo "$as_me:$LINENO: checking for shl_load" >&5
10555 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10556 if test "${ac_cv_func_shl_load+set}" = set; then
10557 echo $ECHO_N "(cached) $ECHO_C" >&6
10559 cat >conftest.$ac_ext <<_ACEOF
10562 cat confdefs.h >>conftest.$ac_ext
10563 cat >>conftest.$ac_ext <<_ACEOF
10564 /* end confdefs.h. */
10565 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10566 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10567 #define shl_load innocuous_shl_load
10569 /* System header to define __stub macros and hopefully few prototypes,
10570 which can conflict with char shl_load (); below.
10571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10572 <limits.h> exists even on freestanding compilers. */
10575 # include <limits.h>
10577 # include <assert.h>
10582 /* Override any gcc2 internal prototype to avoid an error. */
10587 /* We use char because int might match the return type of a gcc2
10588 builtin and then its argument prototype would still apply. */
10590 /* The GNU C library defines this for functions which it implements
10591 to always fail with ENOSYS. Some functions are actually named
10592 something starting with __ and the normal name is an alias. */
10593 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10596 char (*f) () = shl_load;
10605 return f != shl_load;
10610 rm -f conftest.$ac_objext conftest$ac_exeext
10611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10612 (eval $ac_link) 2>conftest.er1
10614 grep -v '^ *+' conftest.er1 >conftest.err
10616 cat conftest.err >&5
10617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618 (exit $ac_status); } &&
10619 { ac_try='test -z "$ac_c_werror_flag"
10620 || test ! -s conftest.err'
10621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10622 (eval $ac_try) 2>&5
10624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625 (exit $ac_status); }; } &&
10626 { ac_try='test -s conftest$ac_exeext'
10627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10628 (eval $ac_try) 2>&5
10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631 (exit $ac_status); }; }; then
10632 ac_cv_func_shl_load=yes
10634 echo "$as_me: failed program was:" >&5
10635 sed 's/^/| /' conftest.$ac_ext >&5
10637 ac_cv_func_shl_load=no
10639 rm -f conftest.err conftest.$ac_objext \
10640 conftest$ac_exeext conftest.$ac_ext
10642 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10643 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10644 if test $ac_cv_func_shl_load = yes; then
10645 lt_cv_dlopen="shl_load"
10647 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10648 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10649 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10650 echo $ECHO_N "(cached) $ECHO_C" >&6
10652 ac_check_lib_save_LIBS=$LIBS
10654 cat >conftest.$ac_ext <<_ACEOF
10657 cat confdefs.h >>conftest.$ac_ext
10658 cat >>conftest.$ac_ext <<_ACEOF
10659 /* end confdefs.h. */
10661 /* Override any gcc2 internal prototype to avoid an error. */
10665 /* We use char because int might match the return type of a gcc2
10666 builtin and then its argument prototype would still apply. */
10676 rm -f conftest.$ac_objext conftest$ac_exeext
10677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10678 (eval $ac_link) 2>conftest.er1
10680 grep -v '^ *+' conftest.er1 >conftest.err
10682 cat conftest.err >&5
10683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684 (exit $ac_status); } &&
10685 { ac_try='test -z "$ac_c_werror_flag"
10686 || test ! -s conftest.err'
10687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10688 (eval $ac_try) 2>&5
10690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691 (exit $ac_status); }; } &&
10692 { ac_try='test -s conftest$ac_exeext'
10693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10694 (eval $ac_try) 2>&5
10696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697 (exit $ac_status); }; }; then
10698 ac_cv_lib_dld_shl_load=yes
10700 echo "$as_me: failed program was:" >&5
10701 sed 's/^/| /' conftest.$ac_ext >&5
10703 ac_cv_lib_dld_shl_load=no
10705 rm -f conftest.err conftest.$ac_objext \
10706 conftest$ac_exeext conftest.$ac_ext
10707 LIBS=$ac_check_lib_save_LIBS
10709 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10710 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10711 if test $ac_cv_lib_dld_shl_load = yes; then
10712 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10714 echo "$as_me:$LINENO: checking for dlopen" >&5
10715 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10716 if test "${ac_cv_func_dlopen+set}" = set; then
10717 echo $ECHO_N "(cached) $ECHO_C" >&6
10719 cat >conftest.$ac_ext <<_ACEOF
10722 cat confdefs.h >>conftest.$ac_ext
10723 cat >>conftest.$ac_ext <<_ACEOF
10724 /* end confdefs.h. */
10725 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10727 #define dlopen innocuous_dlopen
10729 /* System header to define __stub macros and hopefully few prototypes,
10730 which can conflict with char dlopen (); below.
10731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10732 <limits.h> exists even on freestanding compilers. */
10735 # include <limits.h>
10737 # include <assert.h>
10742 /* Override any gcc2 internal prototype to avoid an error. */
10747 /* We use char because int might match the return type of a gcc2
10748 builtin and then its argument prototype would still apply. */
10750 /* The GNU C library defines this for functions which it implements
10751 to always fail with ENOSYS. Some functions are actually named
10752 something starting with __ and the normal name is an alias. */
10753 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10756 char (*f) () = dlopen;
10765 return f != dlopen;
10770 rm -f conftest.$ac_objext conftest$ac_exeext
10771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10772 (eval $ac_link) 2>conftest.er1
10774 grep -v '^ *+' conftest.er1 >conftest.err
10776 cat conftest.err >&5
10777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); } &&
10779 { ac_try='test -z "$ac_c_werror_flag"
10780 || test ! -s conftest.err'
10781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10782 (eval $ac_try) 2>&5
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); }; } &&
10786 { ac_try='test -s conftest$ac_exeext'
10787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10788 (eval $ac_try) 2>&5
10790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791 (exit $ac_status); }; }; then
10792 ac_cv_func_dlopen=yes
10794 echo "$as_me: failed program was:" >&5
10795 sed 's/^/| /' conftest.$ac_ext >&5
10797 ac_cv_func_dlopen=no
10799 rm -f conftest.err conftest.$ac_objext \
10800 conftest$ac_exeext conftest.$ac_ext
10802 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10803 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10804 if test $ac_cv_func_dlopen = yes; then
10805 lt_cv_dlopen="dlopen"
10807 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10808 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10809 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10810 echo $ECHO_N "(cached) $ECHO_C" >&6
10812 ac_check_lib_save_LIBS=$LIBS
10814 cat >conftest.$ac_ext <<_ACEOF
10817 cat confdefs.h >>conftest.$ac_ext
10818 cat >>conftest.$ac_ext <<_ACEOF
10819 /* end confdefs.h. */
10821 /* Override any gcc2 internal prototype to avoid an error. */
10825 /* We use char because int might match the return type of a gcc2
10826 builtin and then its argument prototype would still apply. */
10836 rm -f conftest.$ac_objext conftest$ac_exeext
10837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10838 (eval $ac_link) 2>conftest.er1
10840 grep -v '^ *+' conftest.er1 >conftest.err
10842 cat conftest.err >&5
10843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10844 (exit $ac_status); } &&
10845 { ac_try='test -z "$ac_c_werror_flag"
10846 || test ! -s conftest.err'
10847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10848 (eval $ac_try) 2>&5
10850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851 (exit $ac_status); }; } &&
10852 { ac_try='test -s conftest$ac_exeext'
10853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10854 (eval $ac_try) 2>&5
10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); }; }; then
10858 ac_cv_lib_dl_dlopen=yes
10860 echo "$as_me: failed program was:" >&5
10861 sed 's/^/| /' conftest.$ac_ext >&5
10863 ac_cv_lib_dl_dlopen=no
10865 rm -f conftest.err conftest.$ac_objext \
10866 conftest$ac_exeext conftest.$ac_ext
10867 LIBS=$ac_check_lib_save_LIBS
10869 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10870 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10871 if test $ac_cv_lib_dl_dlopen = yes; then
10872 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10874 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10875 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10876 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10877 echo $ECHO_N "(cached) $ECHO_C" >&6
10879 ac_check_lib_save_LIBS=$LIBS
10880 LIBS="-lsvld $LIBS"
10881 cat >conftest.$ac_ext <<_ACEOF
10884 cat confdefs.h >>conftest.$ac_ext
10885 cat >>conftest.$ac_ext <<_ACEOF
10886 /* end confdefs.h. */
10888 /* Override any gcc2 internal prototype to avoid an error. */
10892 /* We use char because int might match the return type of a gcc2
10893 builtin and then its argument prototype would still apply. */
10903 rm -f conftest.$ac_objext conftest$ac_exeext
10904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10905 (eval $ac_link) 2>conftest.er1
10907 grep -v '^ *+' conftest.er1 >conftest.err
10909 cat conftest.err >&5
10910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911 (exit $ac_status); } &&
10912 { ac_try='test -z "$ac_c_werror_flag"
10913 || test ! -s conftest.err'
10914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10915 (eval $ac_try) 2>&5
10917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918 (exit $ac_status); }; } &&
10919 { ac_try='test -s conftest$ac_exeext'
10920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10921 (eval $ac_try) 2>&5
10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924 (exit $ac_status); }; }; then
10925 ac_cv_lib_svld_dlopen=yes
10927 echo "$as_me: failed program was:" >&5
10928 sed 's/^/| /' conftest.$ac_ext >&5
10930 ac_cv_lib_svld_dlopen=no
10932 rm -f conftest.err conftest.$ac_objext \
10933 conftest$ac_exeext conftest.$ac_ext
10934 LIBS=$ac_check_lib_save_LIBS
10936 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10937 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10938 if test $ac_cv_lib_svld_dlopen = yes; then
10939 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10941 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10942 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10943 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10944 echo $ECHO_N "(cached) $ECHO_C" >&6
10946 ac_check_lib_save_LIBS=$LIBS
10948 cat >conftest.$ac_ext <<_ACEOF
10951 cat confdefs.h >>conftest.$ac_ext
10952 cat >>conftest.$ac_ext <<_ACEOF
10953 /* end confdefs.h. */
10955 /* Override any gcc2 internal prototype to avoid an error. */
10959 /* We use char because int might match the return type of a gcc2
10960 builtin and then its argument prototype would still apply. */
10970 rm -f conftest.$ac_objext conftest$ac_exeext
10971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10972 (eval $ac_link) 2>conftest.er1
10974 grep -v '^ *+' conftest.er1 >conftest.err
10976 cat conftest.err >&5
10977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978 (exit $ac_status); } &&
10979 { ac_try='test -z "$ac_c_werror_flag"
10980 || test ! -s conftest.err'
10981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10982 (eval $ac_try) 2>&5
10984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985 (exit $ac_status); }; } &&
10986 { ac_try='test -s conftest$ac_exeext'
10987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10988 (eval $ac_try) 2>&5
10990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991 (exit $ac_status); }; }; then
10992 ac_cv_lib_dld_dld_link=yes
10994 echo "$as_me: failed program was:" >&5
10995 sed 's/^/| /' conftest.$ac_ext >&5
10997 ac_cv_lib_dld_dld_link=no
10999 rm -f conftest.err conftest.$ac_objext \
11000 conftest$ac_exeext conftest.$ac_ext
11001 LIBS=$ac_check_lib_save_LIBS
11003 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11004 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11005 if test $ac_cv_lib_dld_dld_link = yes; then
11006 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11027 if test "x$lt_cv_dlopen" != xno; then
11033 case $lt_cv_dlopen in
11035 save_CPPFLAGS="$CPPFLAGS"
11036 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11038 save_LDFLAGS="$LDFLAGS"
11039 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11042 LIBS="$lt_cv_dlopen_libs $LIBS"
11044 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11045 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11046 if test "${lt_cv_dlopen_self+set}" = set; then
11047 echo $ECHO_N "(cached) $ECHO_C" >&6
11049 if test "$cross_compiling" = yes; then :
11050 lt_cv_dlopen_self=cross
11052 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11053 lt_status=$lt_dlunknown
11054 cat > conftest.$ac_ext <<EOF
11055 #line 11055 "configure"
11056 #include "confdefs.h"
11065 # define LT_DLGLOBAL RTLD_GLOBAL
11068 # define LT_DLGLOBAL DL_GLOBAL
11070 # define LT_DLGLOBAL 0
11074 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11075 find out it does not work in some platform. */
11076 #ifndef LT_DLLAZY_OR_NOW
11078 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11081 # define LT_DLLAZY_OR_NOW DL_LAZY
11084 # define LT_DLLAZY_OR_NOW RTLD_NOW
11087 # define LT_DLLAZY_OR_NOW DL_NOW
11089 # define LT_DLLAZY_OR_NOW 0
11097 extern "C" void exit (int);
11100 void fnord() { int i=42;}
11103 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11104 int status = $lt_dlunknown;
11108 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11109 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11110 /* dlclose (self); */
11116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11117 (eval $ac_link) 2>&5
11119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11121 (./conftest; exit; ) 2>/dev/null
11123 case x$lt_status in
11124 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11125 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11126 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11129 # compilation failed
11130 lt_cv_dlopen_self=no
11137 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11138 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11140 if test "x$lt_cv_dlopen_self" = xyes; then
11141 LDFLAGS="$LDFLAGS $link_static_flag"
11142 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11143 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11144 if test "${lt_cv_dlopen_self_static+set}" = set; then
11145 echo $ECHO_N "(cached) $ECHO_C" >&6
11147 if test "$cross_compiling" = yes; then :
11148 lt_cv_dlopen_self_static=cross
11150 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11151 lt_status=$lt_dlunknown
11152 cat > conftest.$ac_ext <<EOF
11153 #line 11153 "configure"
11154 #include "confdefs.h"
11163 # define LT_DLGLOBAL RTLD_GLOBAL
11166 # define LT_DLGLOBAL DL_GLOBAL
11168 # define LT_DLGLOBAL 0
11172 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11173 find out it does not work in some platform. */
11174 #ifndef LT_DLLAZY_OR_NOW
11176 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11179 # define LT_DLLAZY_OR_NOW DL_LAZY
11182 # define LT_DLLAZY_OR_NOW RTLD_NOW
11185 # define LT_DLLAZY_OR_NOW DL_NOW
11187 # define LT_DLLAZY_OR_NOW 0
11195 extern "C" void exit (int);
11198 void fnord() { int i=42;}
11201 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11202 int status = $lt_dlunknown;
11206 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11207 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11208 /* dlclose (self); */
11214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11215 (eval $ac_link) 2>&5
11217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11219 (./conftest; exit; ) 2>/dev/null
11221 case x$lt_status in
11222 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11223 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11224 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11227 # compilation failed
11228 lt_cv_dlopen_self_static=no
11235 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11236 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11239 CPPFLAGS="$save_CPPFLAGS"
11240 LDFLAGS="$save_LDFLAGS"
11245 case $lt_cv_dlopen_self in
11246 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11247 *) enable_dlopen_self=unknown ;;
11250 case $lt_cv_dlopen_self_static in
11251 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11252 *) enable_dlopen_self_static=unknown ;;
11257 # Report which librarie types wil actually be built
11258 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11259 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11260 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11261 echo "${ECHO_T}$can_build_shared" >&6
11263 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11264 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11265 test "$can_build_shared" = "no" && enable_shared=no
11267 # On AIX, shared libraries and static libraries use the same namespace, and
11268 # are all built from PIC.
11271 test "$enable_shared" = yes && enable_static=no
11272 if test -n "$RANLIB"; then
11273 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11274 postinstall_cmds='$RANLIB $lib'
11279 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11280 test "$enable_shared" = yes && enable_static=no
11284 echo "$as_me:$LINENO: result: $enable_shared" >&5
11285 echo "${ECHO_T}$enable_shared" >&6
11287 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11288 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11289 # Make sure either enable_shared or enable_static is yes.
11290 test "$enable_shared" = yes || enable_static=yes
11291 echo "$as_me:$LINENO: result: $enable_static" >&5
11292 echo "${ECHO_T}$enable_static" >&6
11294 # The else clause should only fire when bootstrapping the
11295 # libtool distribution, otherwise you forgot to ship ltmain.sh
11296 # with your package, and you will get complaints that there are
11297 # no rules to generate ltmain.sh.
11298 if test -f "$ltmain"; then
11299 # See if we are running on zsh, and set the options which allow our commands through
11300 # without removal of \ escapes.
11301 if test -n "${ZSH_VERSION+set}" ; then
11302 setopt NO_GLOB_SUBST
11304 # Now quote all the things that may contain metacharacters while being
11305 # careful not to overquote the AC_SUBSTed values. We take copies of the
11306 # variables and quote the copies for generation of the libtool script.
11307 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11309 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11310 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11311 deplibs_check_method reload_flag reload_cmds need_locks \
11312 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11313 lt_cv_sys_global_symbol_to_c_name_address \
11314 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11315 old_postinstall_cmds old_postuninstall_cmds \
11319 lt_prog_compiler_wl \
11320 lt_prog_compiler_pic \
11321 lt_prog_compiler_static \
11322 lt_prog_compiler_no_builtin_flag \
11323 export_dynamic_flag_spec \
11324 thread_safe_flag_spec \
11325 whole_archive_flag_spec \
11326 enable_shared_with_static_runtimes \
11328 old_archive_from_new_cmds \
11333 compiler_lib_search_path \
11335 archive_expsym_cmds \
11337 postuninstall_cmds \
11338 old_archive_from_expsyms_cmds \
11339 allow_undefined_flag \
11340 no_undefined_flag \
11341 export_symbols_cmds \
11342 hardcode_libdir_flag_spec \
11343 hardcode_libdir_flag_spec_ld \
11344 hardcode_libdir_separator \
11345 hardcode_automatic \
11347 module_expsym_cmds \
11348 lt_cv_prog_compiler_c_o \
11350 include_expsyms; do
11353 old_archive_cmds | \
11354 old_archive_from_new_cmds | \
11356 archive_expsym_cmds | \
11358 module_expsym_cmds | \
11359 old_archive_from_expsyms_cmds | \
11360 export_symbols_cmds | \
11361 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11362 postinstall_cmds | postuninstall_cmds | \
11363 old_postinstall_cmds | old_postuninstall_cmds | \
11364 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11365 # Double-quote double-evaled strings.
11366 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11369 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11375 *'\$0 --fallback-echo"')
11376 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11380 cfgfile="${ofile}T"
11381 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11383 { echo "$as_me:$LINENO: creating $ofile" >&5
11384 echo "$as_me: creating $ofile" >&6;}
11386 cat <<__EOF__ >> "$cfgfile"
11389 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11390 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11391 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11393 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11394 # Free Software Foundation, Inc.
11396 # This file is part of GNU Libtool:
11397 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11399 # This program is free software; you can redistribute it and/or modify
11400 # it under the terms of the GNU General Public License as published by
11401 # the Free Software Foundation; either version 2 of the License, or
11402 # (at your option) any later version.
11404 # This program is distributed in the hope that it will be useful, but
11405 # WITHOUT ANY WARRANTY; without even the implied warranty of
11406 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11407 # General Public License for more details.
11409 # You should have received a copy of the GNU General Public License
11410 # along with this program; if not, write to the Free Software
11411 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11413 # As a special exception to the GNU General Public License, if you
11414 # distribute this file as part of a program that contains a
11415 # configuration script generated by Autoconf, you may include it under
11416 # the same distribution terms that you use for the rest of that program.
11418 # A sed program that does not truncate output.
11421 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11422 Xsed="$SED -e 1s/^X//"
11424 # The HP-UX ksh and POSIX shell print the target directory to stdout
11425 # if CDPATH is set.
11426 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11428 # The names of the tagged configurations supported by this script.
11431 # ### BEGIN LIBTOOL CONFIG
11433 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11435 # Shell to use when invoking shell scripts.
11438 # Whether or not to build shared libraries.
11439 build_libtool_libs=$enable_shared
11441 # Whether or not to build static libraries.
11442 build_old_libs=$enable_static
11444 # Whether or not to add -lc for building shared libraries.
11445 build_libtool_need_lc=$archive_cmds_need_lc
11447 # Whether or not to disallow shared libs when runtime libs are static
11448 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11450 # Whether or not to optimize for fast installation.
11451 fast_install=$enable_fast_install
11454 host_alias=$host_alias
11458 # The build system.
11459 build_alias=$build_alias
11463 # An echo program that does not interpret backslashes.
11468 AR_FLAGS=$lt_AR_FLAGS
11473 # A language-specific compiler.
11476 # Is the compiler the GNU C compiler?
11482 # The linker used to build libraries.
11485 # Whether we need hard or soft links.
11488 # A BSD-compatible nm program.
11491 # A symbol stripping program
11494 # Used to examine libraries when file_magic_cmd begins "file"
11495 MAGIC_CMD=$MAGIC_CMD
11497 # Used on cygwin: DLL creation program.
11500 # Used on cygwin: object dumper.
11503 # Used on cygwin: assembler.
11506 # The name of the directory that contains temporary libtool files.
11509 # How to create reloadable object files.
11510 reload_flag=$lt_reload_flag
11511 reload_cmds=$lt_reload_cmds
11513 # How to pass a linker flag through the compiler.
11514 wl=$lt_lt_prog_compiler_wl
11516 # Object file suffix (normally "o").
11517 objext="$ac_objext"
11519 # Old archive suffix (normally "a").
11522 # Shared library suffix (normally ".so").
11523 shrext_cmds='$shrext_cmds'
11525 # Executable file suffix (normally "").
11528 # Additional compiler flags for building library objects.
11529 pic_flag=$lt_lt_prog_compiler_pic
11532 # What is the maximum length of a command?
11533 max_cmd_len=$lt_cv_sys_max_cmd_len
11535 # Does compiler simultaneously support -c and -o options?
11536 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11538 # Must we lock files when doing compilation?
11539 need_locks=$lt_need_locks
11541 # Do we need the lib prefix for modules?
11542 need_lib_prefix=$need_lib_prefix
11544 # Do we need a version for libraries?
11545 need_version=$need_version
11547 # Whether dlopen is supported.
11548 dlopen_support=$enable_dlopen
11550 # Whether dlopen of programs is supported.
11551 dlopen_self=$enable_dlopen_self
11553 # Whether dlopen of statically linked programs is supported.
11554 dlopen_self_static=$enable_dlopen_self_static
11556 # Compiler flag to prevent dynamic linking.
11557 link_static_flag=$lt_lt_prog_compiler_static
11559 # Compiler flag to turn off builtin functions.
11560 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11562 # Compiler flag to allow reflexive dlopens.
11563 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11565 # Compiler flag to generate shared objects directly from archives.
11566 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11568 # Compiler flag to generate thread-safe objects.
11569 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11571 # Library versioning type.
11572 version_type=$version_type
11574 # Format of library name prefix.
11575 libname_spec=$lt_libname_spec
11577 # List of archive names. First name is the real one, the rest are links.
11578 # The last name is the one that the linker finds with -lNAME.
11579 library_names_spec=$lt_library_names_spec
11581 # The coded name of the library, if different from the real name.
11582 soname_spec=$lt_soname_spec
11584 # Commands used to build and install an old-style archive.
11586 old_archive_cmds=$lt_old_archive_cmds
11587 old_postinstall_cmds=$lt_old_postinstall_cmds
11588 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11590 # Create an old-style archive from a shared archive.
11591 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11593 # Create a temporary old-style archive to link instead of a shared archive.
11594 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11596 # Commands used to build and install a shared archive.
11597 archive_cmds=$lt_archive_cmds
11598 archive_expsym_cmds=$lt_archive_expsym_cmds
11599 postinstall_cmds=$lt_postinstall_cmds
11600 postuninstall_cmds=$lt_postuninstall_cmds
11602 # Commands used to build a loadable module (assumed same as above if empty)
11603 module_cmds=$lt_module_cmds
11604 module_expsym_cmds=$lt_module_expsym_cmds
11606 # Commands to strip libraries.
11607 old_striplib=$lt_old_striplib
11608 striplib=$lt_striplib
11610 # Dependencies to place before the objects being linked to create a
11612 predep_objects=$lt_predep_objects
11614 # Dependencies to place after the objects being linked to create a
11616 postdep_objects=$lt_postdep_objects
11618 # Dependencies to place before the objects being linked to create a
11620 predeps=$lt_predeps
11622 # Dependencies to place after the objects being linked to create a
11624 postdeps=$lt_postdeps
11626 # The library search path used internally by the compiler when linking
11627 # a shared library.
11628 compiler_lib_search_path=$lt_compiler_lib_search_path
11630 # Method to check whether dependent libraries are shared objects.
11631 deplibs_check_method=$lt_deplibs_check_method
11633 # Command to use when deplibs_check_method == file_magic.
11634 file_magic_cmd=$lt_file_magic_cmd
11636 # Flag that allows shared libraries with undefined symbols to be built.
11637 allow_undefined_flag=$lt_allow_undefined_flag
11639 # Flag that forces no undefined symbols.
11640 no_undefined_flag=$lt_no_undefined_flag
11642 # Commands used to finish a libtool library installation in a directory.
11643 finish_cmds=$lt_finish_cmds
11645 # Same as above, but a single script fragment to be evaled but not shown.
11646 finish_eval=$lt_finish_eval
11648 # Take the output of nm and produce a listing of raw symbols and C names.
11649 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11651 # Transform the output of nm in a proper C declaration
11652 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11654 # Transform the output of nm in a C name address pair
11655 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11657 # This is the shared library runtime path variable.
11658 runpath_var=$runpath_var
11660 # This is the shared library path variable.
11661 shlibpath_var=$shlibpath_var
11663 # Is shlibpath searched before the hard-coded library search path?
11664 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11666 # How to hardcode a shared library path into an executable.
11667 hardcode_action=$hardcode_action
11669 # Whether we should hardcode library paths into libraries.
11670 hardcode_into_libs=$hardcode_into_libs
11672 # Flag to hardcode \$libdir into a binary during linking.
11673 # This must work even if \$libdir does not exist.
11674 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11676 # If ld is used when linking, flag to hardcode \$libdir into
11677 # a binary during linking. This must work even if \$libdir does
11679 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11681 # Whether we need a single -rpath flag with a separated argument.
11682 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11684 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11685 # resulting binary.
11686 hardcode_direct=$hardcode_direct
11688 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11689 # resulting binary.
11690 hardcode_minus_L=$hardcode_minus_L
11692 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11693 # the resulting binary.
11694 hardcode_shlibpath_var=$hardcode_shlibpath_var
11696 # Set to yes if building a shared library automatically hardcodes DIR into the library
11697 # and all subsequent libraries and executables linked against it.
11698 hardcode_automatic=$hardcode_automatic
11700 # Variables whose values should be saved in libtool wrapper scripts and
11701 # restored at relink time.
11702 variables_saved_for_relink="$variables_saved_for_relink"
11704 # Whether libtool must link a program against all its dependency libraries.
11705 link_all_deplibs=$link_all_deplibs
11707 # Compile-time system search path for libraries
11708 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11710 # Run-time system search path for libraries
11711 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11713 # Fix the shell variable \$srcfile for the compiler.
11714 fix_srcfile_path="$fix_srcfile_path"
11716 # Set to yes if exported symbols are required.
11717 always_export_symbols=$always_export_symbols
11719 # The commands to list exported symbols.
11720 export_symbols_cmds=$lt_export_symbols_cmds
11722 # The commands to extract the exported symbol list from a shared archive.
11723 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11725 # Symbols that should not be listed in the preloaded symbols.
11726 exclude_expsyms=$lt_exclude_expsyms
11728 # Symbols that must always be exported.
11729 include_expsyms=$lt_include_expsyms
11731 # ### END LIBTOOL CONFIG
11738 cat <<\EOF >> "$cfgfile"
11740 # AIX sometimes has problems with the GCC collect2 program. For some
11741 # reason, if we set the COLLECT_NAMES environment variable, the problems
11742 # vanish in a puff of smoke.
11743 if test "X${COLLECT_NAMES+set}" != Xset; then
11745 export COLLECT_NAMES
11751 # We use sed instead of cat because bash on DJGPP gets confused if
11752 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11753 # text mode, it properly converts lines to CR/LF. This bash problem
11754 # is reportedly fixed, but why not run on old versions too?
11755 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11757 mv -f "$cfgfile" "$ofile" || \
11758 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11762 # If there is no Makefile yet, we rely on a make rule to execute
11763 # `config.status --recheck' to rerun these tests and create the
11764 # libtool script then.
11765 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11766 if test -f "$ltmain_in"; then
11767 test -f Makefile && make "$ltmain"
11773 ac_cpp='$CPP $CPPFLAGS'
11774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11781 # Check whether --with-tags or --without-tags was given.
11782 if test "${with_tags+set}" = set; then
11783 withval="$with_tags"
11784 tagnames="$withval"
11787 if test -f "$ltmain" && test -n "$tagnames"; then
11788 if test ! -f "${ofile}"; then
11789 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11790 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11793 if test -z "$LTCC"; then
11794 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11795 if test -z "$LTCC"; then
11796 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11797 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11799 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11800 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11804 # Extract list of available tagged configurations in $ofile.
11805 # Note that this assumes the entire list is on one line.
11806 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11808 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11809 for tagname in $tagnames; do
11811 # Check whether tagname contains only valid characters
11812 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11814 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11815 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11816 { (exit 1); exit 1; }; }
11820 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11822 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11823 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11824 { (exit 1); exit 1; }; }
11827 # Update the list of available tags.
11828 if test -n "$tagname"; then
11829 echo appending configuration tag \"$tagname\" to $ofile
11833 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11834 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11835 (test "X$CXX" != "Xg++"))) ; then
11837 ac_cpp='$CXXCPP $CPPFLAGS'
11838 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11839 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11840 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11845 archive_cmds_need_lc_CXX=no
11846 allow_undefined_flag_CXX=
11847 always_export_symbols_CXX=no
11848 archive_expsym_cmds_CXX=
11849 export_dynamic_flag_spec_CXX=
11850 hardcode_direct_CXX=no
11851 hardcode_libdir_flag_spec_CXX=
11852 hardcode_libdir_flag_spec_ld_CXX=
11853 hardcode_libdir_separator_CXX=
11854 hardcode_minus_L_CXX=no
11855 hardcode_automatic_CXX=no
11857 module_expsym_cmds_CXX=
11858 link_all_deplibs_CXX=unknown
11859 old_archive_cmds_CXX=$old_archive_cmds
11860 no_undefined_flag_CXX=
11861 whole_archive_flag_spec_CXX=
11862 enable_shared_with_static_runtimes_CXX=no
11864 # Dependencies to place before and after the object being linked:
11865 predep_objects_CXX=
11866 postdep_objects_CXX=
11869 compiler_lib_search_path_CXX=
11871 # Source file extension for C++ test sources.
11874 # Object file extension for compiled C++ test sources.
11878 # Code to be used in simple compile tests
11879 lt_simple_compile_test_code="int some_variable = 0;\n"
11881 # Code to be used in simple link tests
11882 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
11884 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11886 # If no C compiler was specified, use CC.
11889 # Allow CC to be a program name with arguments.
11893 # save warnings/boilerplate of simple test code
11894 ac_outfile=conftest.$ac_objext
11895 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11896 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11897 _lt_compiler_boilerplate=`cat conftest.err`
11900 ac_outfile=conftest.$ac_objext
11901 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11902 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11903 _lt_linker_boilerplate=`cat conftest.err`
11907 # Allow CC to be a program name with arguments.
11912 lt_save_with_gnu_ld=$with_gnu_ld
11913 lt_save_path_LD=$lt_cv_path_LD
11914 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11915 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11917 unset lt_cv_prog_gnu_ld
11919 if test -n "${lt_cv_path_LDCXX+set}"; then
11920 lt_cv_path_LD=$lt_cv_path_LDCXX
11922 unset lt_cv_path_LD
11924 test -z "${LDCXX+set}" || LD=$LDCXX
11928 for cc_temp in $compiler""; do
11930 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11931 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11936 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11939 # We don't want -fno-exception wen compiling C++ code, so set the
11940 # no_builtin_flag separately
11941 if test "$GXX" = yes; then
11942 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11944 lt_prog_compiler_no_builtin_flag_CXX=
11947 if test "$GXX" = yes; then
11948 # Set up default GNU C++ configuration
11951 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11952 if test "${with_gnu_ld+set}" = set; then
11953 withval="$with_gnu_ld"
11954 test "$withval" = no || with_gnu_ld=yes
11959 if test "$GCC" = yes; then
11960 # Check if gcc -print-prog-name=ld gives a path.
11961 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11962 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11965 # gcc leaves a trailing carriage return which upsets mingw
11966 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11968 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11971 # Accept absolute paths.
11973 re_direlt='/[^/][^/]*/\.\./'
11974 # Canonicalize the pathname of ld
11975 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11976 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11977 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11979 test -z "$LD" && LD="$ac_prog"
11982 # If it fails, then pretend we aren't using GCC.
11986 # If it is relative, then search for the first ld in PATH.
11987 with_gnu_ld=unknown
11990 elif test "$with_gnu_ld" = yes; then
11991 echo "$as_me:$LINENO: checking for GNU ld" >&5
11992 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11994 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11995 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11997 if test "${lt_cv_path_LD+set}" = set; then
11998 echo $ECHO_N "(cached) $ECHO_C" >&6
12000 if test -z "$LD"; then
12001 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12002 for ac_dir in $PATH; do
12004 test -z "$ac_dir" && ac_dir=.
12005 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12006 lt_cv_path_LD="$ac_dir/$ac_prog"
12007 # Check to see if the program is GNU ld. I'd rather use --version,
12008 # but apparently some GNU ld's only accept -v.
12009 # Break only if it was the GNU/non-GNU ld that we prefer.
12010 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12011 *GNU* | *'with BFD'*)
12012 test "$with_gnu_ld" != no && break
12015 test "$with_gnu_ld" != yes && break
12022 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12026 LD="$lt_cv_path_LD"
12027 if test -n "$LD"; then
12028 echo "$as_me:$LINENO: result: $LD" >&5
12029 echo "${ECHO_T}$LD" >&6
12031 echo "$as_me:$LINENO: result: no" >&5
12032 echo "${ECHO_T}no" >&6
12034 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12035 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12036 { (exit 1); exit 1; }; }
12037 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12038 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12039 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12040 echo $ECHO_N "(cached) $ECHO_C" >&6
12042 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12043 case `$LD -v 2>&1 </dev/null` in
12044 *GNU* | *'with BFD'*)
12045 lt_cv_prog_gnu_ld=yes
12048 lt_cv_prog_gnu_ld=no
12052 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12053 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12054 with_gnu_ld=$lt_cv_prog_gnu_ld
12058 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12059 # archiving commands below assume that GNU ld is being used.
12060 if test "$with_gnu_ld" = yes; then
12061 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12062 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'
12064 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12065 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12067 # If archive_cmds runs LD, not CC, wlarc should be empty
12068 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12069 # investigate it a little bit more. (MM)
12072 # ancient GNU ld didn't support --whole-archive et. al.
12073 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12074 grep 'no-whole-archive' > /dev/null; then
12075 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12077 whole_archive_flag_spec_CXX=
12083 # A generic and very simple default shared library creation
12084 # command for GNU C++ for the case where it uses the native
12085 # linker, instead of GNU ld. If possible, this setting should
12086 # overridden to take advantage of the native linker features on
12087 # the platform it is being used on.
12088 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12091 # Commands to make compiler produce verbose output that lists
12092 # what "hidden" libraries, object files and flags are used when
12093 # linking a shared library.
12094 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12102 # PORTME: fill in a description of your system's C++ link characteristics
12103 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12104 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12108 # FIXME: insert proper C++ library support
12112 if test "$host_cpu" = ia64; then
12113 # On IA64, the linker does run time linking by default, so we don't
12114 # have to do anything special.
12115 aix_use_runtimelinking=no
12116 exp_sym_flag='-Bexport'
12119 aix_use_runtimelinking=no
12121 # Test if we are trying to use run time linking or normal
12122 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12123 # need to do runtime linking.
12124 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12125 for ld_flag in $LDFLAGS; do
12128 aix_use_runtimelinking=yes
12135 exp_sym_flag='-bexport'
12136 no_entry_flag='-bnoentry'
12139 # When large executables or shared objects are built, AIX ld can
12140 # have problems creating the table of contents. If linking a library
12141 # or program results in "error TOC overflow" add -mminimal-toc to
12142 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12143 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12145 archive_cmds_CXX=''
12146 hardcode_direct_CXX=yes
12147 hardcode_libdir_separator_CXX=':'
12148 link_all_deplibs_CXX=yes
12150 if test "$GXX" = yes; then
12151 case $host_os in aix4.[012]|aix4.[012].*)
12152 # We only want to do this on AIX 4.2 and lower, the check
12153 # below for broken collect2 doesn't work under 4.3+
12154 collect2name=`${CC} -print-prog-name=collect2`
12155 if test -f "$collect2name" && \
12156 strings "$collect2name" | grep resolve_lib_name >/dev/null
12158 # We have reworked collect2
12159 hardcode_direct_CXX=yes
12161 # We have old collect2
12162 hardcode_direct_CXX=unsupported
12163 # It fails to find uninstalled libraries when the uninstalled
12164 # path is not listed in the libpath. Setting hardcode_minus_L
12165 # to unsupported forces relinking
12166 hardcode_minus_L_CXX=yes
12167 hardcode_libdir_flag_spec_CXX='-L$libdir'
12168 hardcode_libdir_separator_CXX=
12171 shared_flag='-shared'
12172 if test "$aix_use_runtimelinking" = yes; then
12173 shared_flag="$shared_flag "'${wl}-G'
12177 if test "$host_cpu" = ia64; then
12178 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12179 # chokes on -Wl,-G. The following line is correct:
12182 if test "$aix_use_runtimelinking" = yes; then
12183 shared_flag='${wl}-G'
12185 shared_flag='${wl}-bM:SRE'
12190 # It seems that -bexpall does not export symbols beginning with
12191 # underscore (_), so it is better to generate a list of symbols to export.
12192 always_export_symbols_CXX=yes
12193 if test "$aix_use_runtimelinking" = yes; then
12194 # Warning - without using the other runtime loading flags (-brtl),
12195 # -berok will link without error, but may produce a broken library.
12196 allow_undefined_flag_CXX='-berok'
12197 # Determine the default libpath from the value encoded in an empty executable.
12198 cat >conftest.$ac_ext <<_ACEOF
12201 cat confdefs.h >>conftest.$ac_ext
12202 cat >>conftest.$ac_ext <<_ACEOF
12203 /* end confdefs.h. */
12213 rm -f conftest.$ac_objext conftest$ac_exeext
12214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12215 (eval $ac_link) 2>conftest.er1
12217 grep -v '^ *+' conftest.er1 >conftest.err
12219 cat conftest.err >&5
12220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221 (exit $ac_status); } &&
12222 { ac_try='test -z "$ac_cxx_werror_flag"
12223 || test ! -s conftest.err'
12224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12225 (eval $ac_try) 2>&5
12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); }; } &&
12229 { ac_try='test -s conftest$ac_exeext'
12230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12231 (eval $ac_try) 2>&5
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); }; }; then
12236 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12238 # Check for a 64-bit object if we didn't find anything.
12239 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; }
12242 echo "$as_me: failed program was:" >&5
12243 sed 's/^/| /' conftest.$ac_ext >&5
12246 rm -f conftest.err conftest.$ac_objext \
12247 conftest$ac_exeext conftest.$ac_ext
12248 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12250 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12252 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"
12254 if test "$host_cpu" = ia64; then
12255 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12256 allow_undefined_flag_CXX="-z nodefs"
12257 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"
12259 # Determine the default libpath from the value encoded in an empty executable.
12260 cat >conftest.$ac_ext <<_ACEOF
12263 cat confdefs.h >>conftest.$ac_ext
12264 cat >>conftest.$ac_ext <<_ACEOF
12265 /* end confdefs.h. */
12275 rm -f conftest.$ac_objext conftest$ac_exeext
12276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12277 (eval $ac_link) 2>conftest.er1
12279 grep -v '^ *+' conftest.er1 >conftest.err
12281 cat conftest.err >&5
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); } &&
12284 { ac_try='test -z "$ac_cxx_werror_flag"
12285 || test ! -s conftest.err'
12286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12287 (eval $ac_try) 2>&5
12289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290 (exit $ac_status); }; } &&
12291 { ac_try='test -s conftest$ac_exeext'
12292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12293 (eval $ac_try) 2>&5
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); }; }; then
12298 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12300 # Check for a 64-bit object if we didn't find anything.
12301 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; }
12304 echo "$as_me: failed program was:" >&5
12305 sed 's/^/| /' conftest.$ac_ext >&5
12308 rm -f conftest.err conftest.$ac_objext \
12309 conftest$ac_exeext conftest.$ac_ext
12310 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12312 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12313 # Warning - without using the other run time loading flags,
12314 # -berok will link without error, but may produce a broken library.
12315 no_undefined_flag_CXX=' ${wl}-bernotok'
12316 allow_undefined_flag_CXX=' ${wl}-berok'
12317 # -bexpall does not export symbols beginning with underscore (_)
12318 always_export_symbols_CXX=yes
12319 # Exported symbols can be pulled into shared objects from archives
12320 whole_archive_flag_spec_CXX=' '
12321 archive_cmds_need_lc_CXX=yes
12322 # This is similar to how AIX traditionally builds it's shared libraries.
12323 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'
12328 case $cc_basename in
12330 # FIXME: insert proper C++ library support
12337 cygwin* | mingw* | pw32*)
12338 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12339 # as there is no search path for DLLs.
12340 hardcode_libdir_flag_spec_CXX='-L$libdir'
12341 allow_undefined_flag_CXX=unsupported
12342 always_export_symbols_CXX=no
12343 enable_shared_with_static_runtimes_CXX=yes
12345 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12346 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'
12347 # If the export-symbols file already is a .def file (1st line
12348 # is EXPORTS), use it as is; otherwise, prepend...
12349 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12350 cp $export_symbols $output_objdir/$soname.def;
12352 echo EXPORTS > $output_objdir/$soname.def;
12353 cat $export_symbols >> $output_objdir/$soname.def;
12355 $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'
12360 darwin* | rhapsody*)
12362 rhapsody* | darwin1.[012])
12363 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12366 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12367 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12369 case ${MACOSX_DEPLOYMENT_TARGET} in
12371 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12374 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12380 archive_cmds_need_lc_CXX=no
12381 hardcode_direct_CXX=no
12382 hardcode_automatic_CXX=yes
12383 hardcode_shlibpath_var_CXX=unsupported
12384 whole_archive_flag_spec_CXX=''
12385 link_all_deplibs_CXX=yes
12387 if test "$GXX" = yes ; then
12388 lt_int_apple_cc_single_mod=no
12389 output_verbose_link_cmd='echo'
12390 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12391 lt_int_apple_cc_single_mod=yes
12393 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12394 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12396 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'
12398 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12399 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12400 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12401 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}'
12403 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}'
12405 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}'
12407 case $cc_basename in
12409 output_verbose_link_cmd='echo'
12410 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'
12411 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12412 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12413 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}'
12414 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}'
12424 case $cc_basename in
12426 # FIXME: insert proper C++ library support
12430 # Green Hills C++ Compiler
12431 # FIXME: insert proper C++ library support
12435 # FIXME: insert proper C++ library support
12441 # C++ shared libraries reported to be fairly broken before switch to ELF
12445 archive_cmds_need_lc_CXX=no
12447 freebsd* | kfreebsd*-gnu | dragonfly*)
12448 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12455 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12456 hardcode_libdir_separator_CXX=:
12457 export_dynamic_flag_spec_CXX='${wl}-E'
12458 hardcode_direct_CXX=yes
12459 hardcode_minus_L_CXX=yes # Not in the search PATH,
12460 # but as the default
12461 # location of the library.
12463 case $cc_basename in
12465 # FIXME: insert proper C++ library support
12469 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'
12470 # Commands to make compiler produce verbose output that lists
12471 # what "hidden" libraries, object files and flags are used when
12472 # linking a shared library.
12474 # There doesn't appear to be a way to prevent this compiler from
12475 # explicitly linking system object files so we need to strip them
12476 # from the output so that they don't get included in the library
12478 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'
12481 if test "$GXX" = yes; then
12482 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'
12484 # FIXME: insert proper C++ library support
12491 if test $with_gnu_ld = no; then
12492 case "$host_cpu" in
12494 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12495 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12496 hardcode_libdir_separator_CXX=:
12499 hardcode_libdir_flag_spec_CXX='-L$libdir'
12502 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12503 hardcode_libdir_separator_CXX=:
12504 export_dynamic_flag_spec_CXX='${wl}-E'
12508 case "$host_cpu" in
12510 hardcode_direct_CXX=no
12511 hardcode_shlibpath_var_CXX=no
12514 hardcode_direct_CXX=no
12515 hardcode_shlibpath_var_CXX=no
12516 hardcode_minus_L_CXX=yes # Not in the search PATH,
12517 # but as the default
12518 # location of the library.
12521 hardcode_direct_CXX=yes
12522 hardcode_minus_L_CXX=yes # Not in the search PATH,
12523 # but as the default
12524 # location of the library.
12528 case $cc_basename in
12530 # FIXME: insert proper C++ library support
12534 case "$host_cpu" in
12536 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12539 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12542 # Commands to make compiler produce verbose output that lists
12543 # what "hidden" libraries, object files and flags are used when
12544 # linking a shared library.
12546 # There doesn't appear to be a way to prevent this compiler from
12547 # explicitly linking system object files so we need to strip them
12548 # from the output so that they don't get included in the library
12550 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'
12553 if test "$GXX" = yes; then
12554 if test $with_gnu_ld = no; then
12555 case "$host_cpu" in
12557 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12560 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'
12565 # FIXME: insert proper C++ library support
12572 case $cc_basename in
12575 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'
12577 # Archives containing C++ object files must be created using
12578 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12579 # necessary to make sure instantiated templates are included
12581 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12584 if test "$GXX" = yes; then
12585 if test "$with_gnu_ld" = no; then
12586 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'
12588 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'
12591 link_all_deplibs_CXX=yes
12594 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12595 hardcode_libdir_separator_CXX=:
12598 case $cc_basename in
12600 # Kuck and Associates, Inc. (KAI) C++ Compiler
12602 # KCC will only create a shared library if the output file
12603 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12604 # to its proper name (with version) after linking.
12605 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'
12606 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'
12607 # Commands to make compiler produce verbose output that lists
12608 # what "hidden" libraries, object files and flags are used when
12609 # linking a shared library.
12611 # There doesn't appear to be a way to prevent this compiler from
12612 # explicitly linking system object files so we need to strip them
12613 # from the output so that they don't get included in the library
12615 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'
12617 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12618 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12620 # Archives containing C++ object files must be created using
12621 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12622 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12627 # version 8.0 and above of icpc choke on multiply defined symbols
12628 # if we add $predep_objects and $postdep_objects, however 7.1 and
12629 # earlier do not add the objects themselves.
12630 case `$CC -V 2>&1` in
12632 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12633 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'
12635 *) # Version 8.0 or newer
12638 ia64*) tmp_idyn=' -i_dynamic';;
12640 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12641 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'
12644 archive_cmds_need_lc_CXX=no
12645 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12646 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12647 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12650 # Portland Group C++ compiler
12651 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12652 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'
12654 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12655 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12656 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'
12660 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12661 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'
12663 runpath_var=LD_RUN_PATH
12664 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12665 hardcode_libdir_separator_CXX=:
12667 # Commands to make compiler produce verbose output that lists
12668 # what "hidden" libraries, object files and flags are used when
12669 # linking a shared library.
12671 # There doesn't appear to be a way to prevent this compiler from
12672 # explicitly linking system object files so we need to strip them
12673 # from the output so that they don't get included in the library
12675 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'
12680 # FIXME: insert proper C++ library support
12684 # FIXME: insert proper C++ library support
12688 case $cc_basename in
12690 # FIXME: insert proper C++ library support
12694 # FIXME: insert proper C++ library support
12700 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12701 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12703 hardcode_libdir_flag_spec_CXX='-R$libdir'
12704 hardcode_direct_CXX=yes
12705 hardcode_shlibpath_var_CXX=no
12707 # Workaround some broken pre-1.5 toolchains
12708 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12711 # C++ shared libraries are fairly broken
12715 hardcode_direct_CXX=yes
12716 hardcode_shlibpath_var_CXX=no
12717 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12718 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12719 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12720 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12721 export_dynamic_flag_spec_CXX='${wl}-E'
12722 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12724 output_verbose_link_cmd='echo'
12727 case $cc_basename in
12729 # Kuck and Associates, Inc. (KAI) C++ Compiler
12731 # KCC will only create a shared library if the output file
12732 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12733 # to its proper name (with version) after linking.
12734 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'
12736 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12737 hardcode_libdir_separator_CXX=:
12739 # Archives containing C++ object files must be created using
12740 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12741 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12745 # Rational C++ 2.4.1
12746 # FIXME: insert proper C++ library support
12750 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12751 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'
12753 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12754 hardcode_libdir_separator_CXX=:
12756 # Commands to make compiler produce verbose output that lists
12757 # what "hidden" libraries, object files and flags are used when
12758 # linking a shared library.
12760 # There doesn't appear to be a way to prevent this compiler from
12761 # explicitly linking system object files so we need to strip them
12762 # from the output so that they don't get included in the library
12764 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'
12767 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12768 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12769 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'
12771 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12772 hardcode_libdir_separator_CXX=:
12774 # Commands to make compiler produce verbose output that lists
12775 # what "hidden" libraries, object files and flags are used when
12776 # linking a shared library.
12777 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12780 # FIXME: insert proper C++ library support
12787 case $cc_basename in
12789 # Kuck and Associates, Inc. (KAI) C++ Compiler
12791 # KCC will only create a shared library if the output file
12792 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12793 # to its proper name (with version) after linking.
12794 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'
12796 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12797 hardcode_libdir_separator_CXX=:
12799 # Archives containing C++ object files must be created using
12800 # the KAI C++ compiler.
12801 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12804 # Rational C++ 2.4.1
12805 # FIXME: insert proper C++ library support
12809 allow_undefined_flag_CXX=' -expect_unresolved \*'
12810 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'
12811 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12812 echo "-hidden">> $lib.exp~
12813 $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~
12816 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12817 hardcode_libdir_separator_CXX=:
12819 # Commands to make compiler produce verbose output that lists
12820 # what "hidden" libraries, object files and flags are used when
12821 # linking a shared library.
12823 # There doesn't appear to be a way to prevent this compiler from
12824 # explicitly linking system object files so we need to strip them
12825 # from the output so that they don't get included in the library
12827 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'
12830 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12831 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12832 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'
12834 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12835 hardcode_libdir_separator_CXX=:
12837 # Commands to make compiler produce verbose output that lists
12838 # what "hidden" libraries, object files and flags are used when
12839 # linking a shared library.
12840 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12843 # FIXME: insert proper C++ library support
12850 # FIXME: insert proper C++ library support
12854 archive_cmds_need_lc_CXX=no
12855 case $cc_basename in
12857 # FIXME: insert proper C++ library support
12861 # FIXME: insert proper C++ library support
12867 case $cc_basename in
12870 # FIXME: insert proper C++ library support
12875 # FIXME: insert proper C++ library support
12879 # FIXME: insert proper C++ library support
12885 case $cc_basename in
12887 # Sun C++ 4.2, 5.x and Centerline C++
12888 no_undefined_flag_CXX=' -zdefs'
12889 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12890 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12891 $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'
12893 hardcode_libdir_flag_spec_CXX='-R$libdir'
12894 hardcode_shlibpath_var_CXX=no
12896 solaris2.[0-5] | solaris2.[0-5].*) ;;
12898 # The C++ compiler is used as linker so we must use $wl
12899 # flag to pass the commands to the underlying system
12900 # linker. We must also pass each convience library through
12901 # to the system linker between allextract/defaultextract.
12902 # The C++ compiler will combine linker options so we
12903 # cannot just pass the convience library names through
12905 # Supported since Solaris 2.6 (maybe 2.5.1?)
12906 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'
12909 link_all_deplibs_CXX=yes
12911 # Commands to make compiler produce verbose output that lists
12912 # what "hidden" libraries, object files and flags are used when
12913 # linking a shared library.
12915 # There doesn't appear to be a way to prevent this compiler from
12916 # explicitly linking system object files so we need to strip them
12917 # from the output so that they don't get included in the library
12919 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'
12921 # Archives containing C++ object files must be created using
12922 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12923 # necessary to make sure instantiated templates are included
12925 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12928 # Green Hills C++ Compiler
12929 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12931 # The C++ compiler must be used to create the archive.
12932 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12935 # GNU C++ compiler with Solaris linker
12936 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12937 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12938 if $CC --version | grep -v '^2\.7' > /dev/null; then
12939 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12940 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12941 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12943 # Commands to make compiler produce verbose output that lists
12944 # what "hidden" libraries, object files and flags are used when
12945 # linking a shared library.
12946 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12948 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12950 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12951 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12952 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12954 # Commands to make compiler produce verbose output that lists
12955 # what "hidden" libraries, object files and flags are used when
12956 # linking a shared library.
12957 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12960 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12965 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12966 archive_cmds_need_lc_CXX=no
12969 case $cc_basename in
12971 # NonStop-UX NCC 3.20
12972 # FIXME: insert proper C++ library support
12976 # FIXME: insert proper C++ library support
12982 # FIXME: insert proper C++ library support
12986 # FIXME: insert proper C++ library support
12990 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12991 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12992 test "$ld_shlibs_CXX" = no && can_build_shared=no
12998 cat > conftest.$ac_ext <<EOF
13002 Foo (void) { a = 0; }
13008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13009 (eval $ac_compile) 2>&5
13011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012 (exit $ac_status); }; then
13013 # Parse the compiler output and extract the necessary
13014 # objects, libraries and library flags.
13016 # Sentinel used to keep track of whether or not we are before
13017 # the conftest object file.
13018 pre_test_object_deps_done=no
13020 # The `*' in the case matches for architectures that use `case' in
13021 # $output_verbose_cmd can trigger glob expansion during the loop
13022 # eval without this substitution.
13023 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
13025 for p in `eval $output_verbose_link_cmd`; do
13029 # Some compilers place space between "-{L,R}" and the path.
13030 # Remove the space.
13031 if test $p = "-L" \
13032 || test $p = "-R"; then
13039 if test "$pre_test_object_deps_done" = no; then
13042 # Internal compiler library paths should come after those
13043 # provided the user. The postdeps already come after the
13044 # user supplied libs so there is no need to process them.
13045 if test -z "$compiler_lib_search_path_CXX"; then
13046 compiler_lib_search_path_CXX="${prev}${p}"
13048 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13051 # The "-l" case would never come before the object being
13052 # linked, so don't bother handling this case.
13055 if test -z "$postdeps_CXX"; then
13056 postdeps_CXX="${prev}${p}"
13058 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13064 # This assumes that the test object file only shows up
13065 # once in the compiler output.
13066 if test "$p" = "conftest.$objext"; then
13067 pre_test_object_deps_done=yes
13071 if test "$pre_test_object_deps_done" = no; then
13072 if test -z "$predep_objects_CXX"; then
13073 predep_objects_CXX="$p"
13075 predep_objects_CXX="$predep_objects_CXX $p"
13078 if test -z "$postdep_objects_CXX"; then
13079 postdep_objects_CXX="$p"
13081 postdep_objects_CXX="$postdep_objects_CXX $p"
13086 *) ;; # Ignore the rest.
13094 echo "libtool.m4: error: problem compiling CXX test program"
13097 $rm -f confest.$objext
13099 case " $postdeps_CXX " in
13100 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13103 lt_prog_compiler_wl_CXX=
13104 lt_prog_compiler_pic_CXX=
13105 lt_prog_compiler_static_CXX=
13107 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13108 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13110 # C++ specific cases for pic, static, wl, etc.
13111 if test "$GXX" = yes; then
13112 lt_prog_compiler_wl_CXX='-Wl,'
13113 lt_prog_compiler_static_CXX='-static'
13117 # All AIX code is PIC.
13118 if test "$host_cpu" = ia64; then
13119 # AIX 5 now supports IA64 processor
13120 lt_prog_compiler_static_CXX='-Bstatic'
13124 # FIXME: we need at least 68020 code to build shared libraries, but
13125 # adding the `-m68020' flag to GCC prevents building anything better,
13127 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13129 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13130 # PIC is the default for these OSes.
13132 mingw* | os2* | pw32*)
13133 # This hack is so that the source file can tell whether it is being
13134 # built for inclusion in a dll (and should export symbols for example).
13135 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13137 darwin* | rhapsody*)
13138 # PIC is the default on this platform
13139 # Common symbols not allowed in MH_DYLIB files
13140 lt_prog_compiler_pic_CXX='-fno-common'
13143 # DJGPP does not support shared libraries at all
13144 lt_prog_compiler_pic_CXX=
13147 if test -d /usr/nec; then
13148 lt_prog_compiler_pic_CXX=-Kconform_pic
13152 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13153 # not for PA HP-UX.
13154 case "$host_cpu" in
13158 lt_prog_compiler_pic_CXX='-fPIC'
13163 lt_prog_compiler_pic_CXX='-fPIC'
13169 # All AIX code is PIC.
13170 if test "$host_cpu" = ia64; then
13171 # AIX 5 now supports IA64 processor
13172 lt_prog_compiler_static_CXX='-Bstatic'
13174 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13178 case $cc_basename in
13180 # Green Hills C++ Compiler
13181 # _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"
13186 # PIC is the default on this platform
13187 # Common symbols not allowed in MH_DYLIB files
13188 case $cc_basename in
13190 lt_prog_compiler_pic_CXX='-qnocommon'
13191 lt_prog_compiler_wl_CXX='-Wl,'
13196 case $cc_basename in
13198 lt_prog_compiler_pic_CXX='-KPIC'
13201 # Green Hills C++ Compiler
13202 lt_prog_compiler_pic_CXX='-pic'
13208 freebsd* | kfreebsd*-gnu | dragonfly*)
13209 # FreeBSD uses GNU C++
13211 hpux9* | hpux10* | hpux11*)
13212 case $cc_basename in
13214 lt_prog_compiler_wl_CXX='-Wl,'
13215 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13216 if test "$host_cpu" != ia64; then
13217 lt_prog_compiler_pic_CXX='+Z'
13221 lt_prog_compiler_wl_CXX='-Wl,'
13222 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13223 case "$host_cpu" in
13228 lt_prog_compiler_pic_CXX='+Z'
13236 irix5* | irix6* | nonstopux*)
13237 case $cc_basename in
13239 lt_prog_compiler_wl_CXX='-Wl,'
13240 lt_prog_compiler_static_CXX='-non_shared'
13241 # CC pic flag -KPIC is the default.
13248 case $cc_basename in
13251 lt_prog_compiler_wl_CXX='--backend -Wl,'
13252 lt_prog_compiler_pic_CXX='-fPIC'
13256 lt_prog_compiler_wl_CXX='-Wl,'
13257 lt_prog_compiler_pic_CXX='-KPIC'
13258 lt_prog_compiler_static_CXX='-static'
13261 # Portland Group C++ compiler.
13262 lt_prog_compiler_wl_CXX='-Wl,'
13263 lt_prog_compiler_pic_CXX='-fpic'
13264 lt_prog_compiler_static_CXX='-static'
13268 # Make sure the PIC flag is empty. It appears that all Alpha
13269 # Linux and Compaq Tru64 Unix objects are PIC.
13270 lt_prog_compiler_pic_CXX=
13271 lt_prog_compiler_static_CXX='-non_shared'
13282 case $cc_basename in
13284 lt_prog_compiler_pic_CXX='-W c,exportall'
13292 osf3* | osf4* | osf5*)
13293 case $cc_basename in
13295 lt_prog_compiler_wl_CXX='--backend -Wl,'
13298 # Rational C++ 2.4.1
13299 lt_prog_compiler_pic_CXX='-pic'
13302 # Digital/Compaq C++
13303 lt_prog_compiler_wl_CXX='-Wl,'
13304 # Make sure the PIC flag is empty. It appears that all Alpha
13305 # Linux and Compaq Tru64 Unix objects are PIC.
13306 lt_prog_compiler_pic_CXX=
13307 lt_prog_compiler_static_CXX='-non_shared'
13316 case $cc_basename in
13318 lt_prog_compiler_pic_CXX='-fPIC'
13325 case $cc_basename in
13327 # Sun C++ 4.2, 5.x and Centerline C++
13328 lt_prog_compiler_pic_CXX='-KPIC'
13329 lt_prog_compiler_static_CXX='-Bstatic'
13330 lt_prog_compiler_wl_CXX='-Qoption ld '
13333 # Green Hills C++ Compiler
13334 lt_prog_compiler_pic_CXX='-PIC'
13341 case $cc_basename in
13344 lt_prog_compiler_pic_CXX='-pic'
13345 lt_prog_compiler_static_CXX='-Bstatic'
13349 lt_prog_compiler_pic_CXX='-pic'
13356 case $cc_basename in
13358 # NonStop-UX NCC 3.20
13359 lt_prog_compiler_pic_CXX='-KPIC'
13370 lt_prog_compiler_can_build_shared_CXX=no
13375 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13376 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13379 # Check to make sure the PIC flag actually works.
13381 if test -n "$lt_prog_compiler_pic_CXX"; then
13383 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13384 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13385 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13386 echo $ECHO_N "(cached) $ECHO_C" >&6
13388 lt_prog_compiler_pic_works_CXX=no
13389 ac_outfile=conftest.$ac_objext
13390 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13391 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13392 # Insert the option either (1) after the last *FLAGS variable, or
13393 # (2) before a word containing "conftest.", or (3) at the end.
13394 # Note that $ac_compile itself does not contain backslashes and begins
13395 # with a dollar sign (not a hyphen), so the echo should work correctly.
13396 # The option is referenced via a variable to avoid confusing sed.
13397 lt_compile=`echo "$ac_compile" | $SED \
13398 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13399 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13400 -e 's:$: $lt_compiler_flag:'`
13401 (eval echo "\"\$as_me:13401: $lt_compile\"" >&5)
13402 (eval "$lt_compile" 2>conftest.err)
13404 cat conftest.err >&5
13405 echo "$as_me:13405: \$? = $ac_status" >&5
13406 if (exit $ac_status) && test -s "$ac_outfile"; then
13407 # The compiler can only warn and ignore the option if not recognized
13408 # So say no if there are warnings other than the usual output.
13409 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13410 $SED '/^$/d' conftest.err >conftest.er2
13411 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13412 lt_prog_compiler_pic_works_CXX=yes
13418 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13419 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13421 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13422 case $lt_prog_compiler_pic_CXX in
13424 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13427 lt_prog_compiler_pic_CXX=
13428 lt_prog_compiler_can_build_shared_CXX=no
13433 # For platforms which do not support PIC, -DPIC is meaningless:
13435 lt_prog_compiler_pic_CXX=
13438 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13442 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13443 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13444 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13445 echo $ECHO_N "(cached) $ECHO_C" >&6
13447 lt_cv_prog_compiler_c_o_CXX=no
13448 $rm -r conftest 2>/dev/null
13452 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13454 lt_compiler_flag="-o out/conftest2.$ac_objext"
13455 # Insert the option either (1) after the last *FLAGS variable, or
13456 # (2) before a word containing "conftest.", or (3) at the end.
13457 # Note that $ac_compile itself does not contain backslashes and begins
13458 # with a dollar sign (not a hyphen), so the echo should work correctly.
13459 lt_compile=`echo "$ac_compile" | $SED \
13460 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13461 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13462 -e 's:$: $lt_compiler_flag:'`
13463 (eval echo "\"\$as_me:13463: $lt_compile\"" >&5)
13464 (eval "$lt_compile" 2>out/conftest.err)
13466 cat out/conftest.err >&5
13467 echo "$as_me:13467: \$? = $ac_status" >&5
13468 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13470 # The compiler can only warn and ignore the option if not recognized
13471 # So say no if there are warnings
13472 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13473 $SED '/^$/d' out/conftest.err >out/conftest.er2
13474 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13475 lt_cv_prog_compiler_c_o_CXX=yes
13480 # SGI C++ compiler will create directory out/ii_files/ for
13481 # template instantiation
13482 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13483 $rm out/* && rmdir out
13489 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13490 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13493 hard_links="nottested"
13494 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13495 # do not overwrite the value of need_locks provided by the user
13496 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13497 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13500 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13502 ln conftest.a conftest.b 2>&5 || hard_links=no
13503 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13504 echo "$as_me:$LINENO: result: $hard_links" >&5
13505 echo "${ECHO_T}$hard_links" >&6
13506 if test "$hard_links" = no; then
13507 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13508 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13515 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13516 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13518 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13521 # If we're using GNU nm, then we don't want the "-C" option.
13522 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13523 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13524 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'
13526 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'
13530 export_symbols_cmds_CXX="$ltdll_cmds"
13533 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'
13536 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13540 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13541 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13542 test "$ld_shlibs_CXX" = no && can_build_shared=no
13544 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13545 if test "$GCC" = yes; then
13546 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13550 # Do we need to explicitly link libc?
13552 case "x$archive_cmds_need_lc_CXX" in
13554 # Assume -lc should be added
13555 archive_cmds_need_lc_CXX=yes
13557 if test "$enable_shared" = yes && test "$GCC" = yes; then
13558 case $archive_cmds_CXX in
13560 # FIXME: we may have to deal with multi-command sequences.
13563 # Test whether the compiler implicitly links with -lc since on some
13564 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13565 # to ld, don't add -lc before -lgcc.
13566 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13567 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13569 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13572 (eval $ac_compile) 2>&5
13574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575 (exit $ac_status); } 2>conftest.err; then
13578 libobjs=conftest.$ac_objext
13580 wl=$lt_prog_compiler_wl_CXX
13586 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13587 allow_undefined_flag_CXX=
13588 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13589 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592 (exit $ac_status); }
13594 archive_cmds_need_lc_CXX=no
13596 archive_cmds_need_lc_CXX=yes
13598 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13600 cat conftest.err 1>&5
13603 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13604 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13611 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13612 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13613 library_names_spec=
13614 libname_spec='lib$name'
13618 postuninstall_cmds=
13622 shlibpath_overrides_runpath=unknown
13624 dynamic_linker="$host_os ld.so"
13625 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13626 if test "$GCC" = yes; then
13627 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13628 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13629 # if the path contains ";" then we assume it to be the separator
13630 # otherwise default to the standard path separator (i.e. ":") - it is
13631 # assumed that no part of a normal pathname contains ";" but that should
13632 # okay in the real world where ";" in dirpaths is itself problematic.
13633 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13635 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13638 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13640 need_lib_prefix=unknown
13641 hardcode_into_libs=no
13643 # when you set need_version to no, make sure it does not cause -set_version
13644 # flags to be left without arguments
13645 need_version=unknown
13650 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13651 shlibpath_var=LIBPATH
13653 # AIX 3 has no versioning support, so we append a major version to the name.
13654 soname_spec='${libname}${release}${shared_ext}$major'
13661 hardcode_into_libs=yes
13662 if test "$host_cpu" = ia64; then
13663 # AIX 5 supports IA64
13664 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13665 shlibpath_var=LD_LIBRARY_PATH
13667 # With GCC up to 2.95.x, collect2 would create an import file
13668 # for dependence libraries. The import file would start with
13669 # the line `#! .'. This would cause the generated library to
13670 # depend on `.', always an invalid library. This was fixed in
13671 # development snapshots of GCC prior to 3.0.
13673 aix4 | aix4.[01] | aix4.[01].*)
13674 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13676 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13679 can_build_shared=no
13683 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13684 # soname into executable. Probably we can add versioning support to
13685 # collect2, so additional links can be useful in future.
13686 if test "$aix_use_runtimelinking" = yes; then
13687 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13688 # instead of lib<name>.a to let people know that these are not
13689 # typical AIX shared libraries.
13690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13692 # We preserve .a as extension for shared libraries through AIX4.2
13693 # and later when we are not doing run time linking.
13694 library_names_spec='${libname}${release}.a $libname.a'
13695 soname_spec='${libname}${release}${shared_ext}$major'
13697 shlibpath_var=LIBPATH
13702 library_names_spec='$libname.ixlibrary $libname.a'
13703 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13704 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'
13708 library_names_spec='${libname}${shared_ext}'
13709 dynamic_linker="$host_os ld.so"
13710 shlibpath_var=LIBRARY_PATH
13716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13717 soname_spec='${libname}${release}${shared_ext}$major'
13718 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13719 shlibpath_var=LD_LIBRARY_PATH
13720 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13721 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13722 # the default ld.so.conf also contains /usr/contrib/lib and
13723 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13724 # libtool to hard-code these into programs
13727 cygwin* | mingw* | pw32*)
13728 version_type=windows
13733 case $GCC,$host_os in
13734 yes,cygwin* | yes,mingw* | yes,pw32*)
13735 library_names_spec='$libname.dll.a'
13736 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13737 postinstall_cmds='base_file=`basename \${file}`~
13738 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13739 dldir=$destdir/`dirname \$dlpath`~
13740 test -d \$dldir || mkdir -p \$dldir~
13741 $install_prog $dir/$dlname \$dldir/$dlname'
13742 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13743 dlpath=$dir/\$dldll~
13745 shlibpath_overrides_runpath=yes
13749 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13750 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13751 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13754 # MinGW DLLs use traditional 'lib' prefix
13755 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13756 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13757 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13758 # It is most probably a Windows format PATH printed by
13759 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13760 # path with ; separators, and with drive letters. We can handle the
13761 # drive letters (cygwin fileutils understands them), so leave them,
13762 # especially as we might pass files found there to a mingw objdump,
13763 # which wouldn't understand a cygwinified path. Ahh.
13764 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13766 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13770 # pw32 DLLs use 'pw' prefix rather than 'lib'
13771 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13777 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13780 dynamic_linker='Win32 ld.exe'
13781 # FIXME: first we should search . and the directory the executable is in
13785 darwin* | rhapsody*)
13786 dynamic_linker="$host_os dyld"
13787 version_type=darwin
13790 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13791 soname_spec='${libname}${release}${major}$shared_ext'
13792 shlibpath_overrides_runpath=yes
13793 shlibpath_var=DYLD_LIBRARY_PATH
13794 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13795 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13796 if test "$GCC" = yes; then
13797 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"`
13799 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13801 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13809 soname_spec='${libname}${release}${shared_ext}$major'
13810 shlibpath_var=LD_LIBRARY_PATH
13821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13822 soname_spec='${libname}${release}${shared_ext}$major'
13823 shlibpath_var=LD_LIBRARY_PATH
13824 shlibpath_overrides_runpath=no
13825 hardcode_into_libs=yes
13826 dynamic_linker='GNU ld.so'
13829 freebsd* | dragonfly*)
13830 # DragonFly does not have aout. When/if they implement a new
13831 # versioning mechanism, adjust this.
13832 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13833 version_type=freebsd-$objformat
13834 case $version_type in
13836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13841 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13845 shlibpath_var=LD_LIBRARY_PATH
13848 shlibpath_overrides_runpath=yes
13850 freebsd3.[01]* | freebsdelf3.[01]*)
13851 shlibpath_overrides_runpath=yes
13852 hardcode_into_libs=yes
13855 shlibpath_overrides_runpath=no
13856 hardcode_into_libs=yes
13865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13866 soname_spec='${libname}${release}${shared_ext}$major'
13867 shlibpath_var=LD_LIBRARY_PATH
13868 hardcode_into_libs=yes
13871 hpux9* | hpux10* | hpux11*)
13872 # Give a soname corresponding to the major version so that dld.sl refuses to
13873 # link against other versions.
13877 case "$host_cpu" in
13880 hardcode_into_libs=yes
13881 dynamic_linker="$host_os dld.so"
13882 shlibpath_var=LD_LIBRARY_PATH
13883 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13885 soname_spec='${libname}${release}${shared_ext}$major'
13886 if test "X$HPUX_IA64_MODE" = X32; then
13887 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13889 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13891 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13895 hardcode_into_libs=yes
13896 dynamic_linker="$host_os dld.sl"
13897 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13898 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13900 soname_spec='${libname}${release}${shared_ext}$major'
13901 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13902 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13906 dynamic_linker="$host_os dld.sl"
13907 shlibpath_var=SHLIB_PATH
13908 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13910 soname_spec='${libname}${release}${shared_ext}$major'
13913 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13914 postinstall_cmds='chmod 555 $lib'
13917 irix5* | irix6* | nonstopux*)
13919 nonstopux*) version_type=nonstopux ;;
13921 if test "$lt_cv_prog_gnu_ld" = yes; then
13929 soname_spec='${libname}${release}${shared_ext}$major'
13930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13932 irix5* | nonstopux*)
13933 libsuff= shlibsuff=
13936 case $LD in # libtool.m4 will add one of these switches to LD
13937 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13938 libsuff= shlibsuff= libmagic=32-bit;;
13939 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13940 libsuff=32 shlibsuff=N32 libmagic=N32;;
13941 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13942 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13943 *) libsuff= shlibsuff= libmagic=never-match;;
13947 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13948 shlibpath_overrides_runpath=no
13949 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13950 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13951 hardcode_into_libs=yes
13954 # No shared lib support for Linux oldld, aout, or coff.
13955 linux*oldld* | linux*aout* | linux*coff*)
13959 # This must be Linux ELF.
13964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13965 soname_spec='${libname}${release}${shared_ext}$major'
13966 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13967 shlibpath_var=LD_LIBRARY_PATH
13968 shlibpath_overrides_runpath=no
13969 # This implies no fast_install, which is unacceptable.
13970 # Some rework will be needed to allow for fast_install
13971 # before this can be enabled.
13972 hardcode_into_libs=yes
13974 # Append ld.so.conf contents to the search path
13975 if test -f /etc/ld.so.conf; then
13976 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' ' '`
13977 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13980 # We used to test for /lib/ld.so.1 and disable shared libraries on
13981 # powerpc, because MkLinux only supported shared libraries with the
13982 # GNU dynamic linker. Since this was broken with cross compilers,
13983 # most powerpc-linux boxes support dynamic linking these days and
13984 # people can always --disable-shared, the test was removed, and we
13985 # assume the GNU/Linux dynamic linker is in use.
13986 dynamic_linker='GNU/Linux ld.so'
13993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13994 soname_spec='${libname}${release}${shared_ext}$major'
13995 shlibpath_var=LD_LIBRARY_PATH
13996 shlibpath_overrides_runpath=no
13997 hardcode_into_libs=yes
13998 dynamic_linker='GNU ld.so'
14005 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14007 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14008 dynamic_linker='NetBSD (a.out) ld.so'
14010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14011 soname_spec='${libname}${release}${shared_ext}$major'
14012 dynamic_linker='NetBSD ld.elf_so'
14014 shlibpath_var=LD_LIBRARY_PATH
14015 shlibpath_overrides_runpath=yes
14016 hardcode_into_libs=yes
14021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14022 shlibpath_var=LD_LIBRARY_PATH
14023 shlibpath_overrides_runpath=yes
14030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14031 soname_spec='${libname}${release}${shared_ext}$major'
14032 shlibpath_var=LD_LIBRARY_PATH
14033 shlibpath_overrides_runpath=yes
14039 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14041 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14042 *) need_version=no ;;
14044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14045 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14046 shlibpath_var=LD_LIBRARY_PATH
14047 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14049 openbsd2.[89] | openbsd2.[89].*)
14050 shlibpath_overrides_runpath=no
14053 shlibpath_overrides_runpath=yes
14057 shlibpath_overrides_runpath=yes
14062 libname_spec='$name'
14065 library_names_spec='$libname${shared_ext} $libname.a'
14066 dynamic_linker='OS/2 ld.exe'
14067 shlibpath_var=LIBPATH
14070 osf3* | osf4* | osf5*)
14074 soname_spec='${libname}${release}${shared_ext}$major'
14075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14076 shlibpath_var=LD_LIBRARY_PATH
14077 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14078 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14083 soname_spec='${libname}${release}${shared_ext}$major'
14084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14085 shlibpath_var=LD_LIBRARY_PATH
14092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14093 soname_spec='${libname}${release}${shared_ext}$major'
14094 shlibpath_var=LD_LIBRARY_PATH
14095 shlibpath_overrides_runpath=yes
14096 hardcode_into_libs=yes
14097 # ldd complains unless libraries are executable
14098 postinstall_cmds='chmod +x $lib'
14103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14104 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14105 shlibpath_var=LD_LIBRARY_PATH
14106 shlibpath_overrides_runpath=yes
14107 if test "$with_gnu_ld" = yes; then
14113 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
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 case $host_vendor in
14120 shlibpath_overrides_runpath=no
14122 export_dynamic_flag_spec='${wl}-Blargedynsym'
14123 runpath_var=LD_RUN_PATH
14131 shlibpath_overrides_runpath=no
14132 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14138 if test -d /usr/nec ;then
14140 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14141 soname_spec='$libname${shared_ext}.$major'
14142 shlibpath_var=LD_LIBRARY_PATH
14148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14149 soname_spec='${libname}${release}${shared_ext}$major'
14150 shlibpath_var=LD_LIBRARY_PATH
14157 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14158 echo "${ECHO_T}$dynamic_linker" >&6
14159 test "$dynamic_linker" = no && can_build_shared=no
14161 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14162 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14163 hardcode_action_CXX=
14164 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14165 test -n "$runpath_var_CXX" || \
14166 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14168 # We can hardcode non-existant directories.
14169 if test "$hardcode_direct_CXX" != no &&
14170 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14171 # have to relink, otherwise we might link with an installed library
14172 # when we should be linking with a yet-to-be-installed one
14173 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14174 test "$hardcode_minus_L_CXX" != no; then
14175 # Linking always hardcodes the temporary library directory.
14176 hardcode_action_CXX=relink
14178 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14179 hardcode_action_CXX=immediate
14182 # We cannot hardcode anything, or else we can only hardcode existing
14184 hardcode_action_CXX=unsupported
14186 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14187 echo "${ECHO_T}$hardcode_action_CXX" >&6
14189 if test "$hardcode_action_CXX" = relink; then
14190 # Fast installation is not supported
14191 enable_fast_install=no
14192 elif test "$shlibpath_overrides_runpath" = yes ||
14193 test "$enable_shared" = no; then
14194 # Fast installation is not necessary
14195 enable_fast_install=needless
14200 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14201 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14202 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14203 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14204 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14205 echo "$as_me:$LINENO: result: yes" >&5
14206 echo "${ECHO_T}yes" >&6
14208 # FIXME - insert some real tests, host_os isn't really good enough
14211 if test -n "$STRIP" ; then
14212 striplib="$STRIP -x"
14213 echo "$as_me:$LINENO: result: yes" >&5
14214 echo "${ECHO_T}yes" >&6
14216 echo "$as_me:$LINENO: result: no" >&5
14217 echo "${ECHO_T}no" >&6
14221 echo "$as_me:$LINENO: result: no" >&5
14222 echo "${ECHO_T}no" >&6
14227 if test "x$enable_dlopen" != xyes; then
14228 enable_dlopen=unknown
14229 enable_dlopen_self=unknown
14230 enable_dlopen_self_static=unknown
14237 lt_cv_dlopen="load_add_on"
14239 lt_cv_dlopen_self=yes
14243 lt_cv_dlopen="LoadLibrary"
14248 lt_cv_dlopen="dlopen"
14253 # if libdl is installed we need to link against it
14254 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14255 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14256 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14257 echo $ECHO_N "(cached) $ECHO_C" >&6
14259 ac_check_lib_save_LIBS=$LIBS
14261 cat >conftest.$ac_ext <<_ACEOF
14264 cat confdefs.h >>conftest.$ac_ext
14265 cat >>conftest.$ac_ext <<_ACEOF
14266 /* end confdefs.h. */
14268 /* Override any gcc2 internal prototype to avoid an error. */
14272 /* We use char because int might match the return type of a gcc2
14273 builtin and then its argument prototype would still apply. */
14283 rm -f conftest.$ac_objext conftest$ac_exeext
14284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14285 (eval $ac_link) 2>conftest.er1
14287 grep -v '^ *+' conftest.er1 >conftest.err
14289 cat conftest.err >&5
14290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291 (exit $ac_status); } &&
14292 { ac_try='test -z "$ac_cxx_werror_flag"
14293 || test ! -s conftest.err'
14294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14295 (eval $ac_try) 2>&5
14297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298 (exit $ac_status); }; } &&
14299 { ac_try='test -s conftest$ac_exeext'
14300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14301 (eval $ac_try) 2>&5
14303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304 (exit $ac_status); }; }; then
14305 ac_cv_lib_dl_dlopen=yes
14307 echo "$as_me: failed program was:" >&5
14308 sed 's/^/| /' conftest.$ac_ext >&5
14310 ac_cv_lib_dl_dlopen=no
14312 rm -f conftest.err conftest.$ac_objext \
14313 conftest$ac_exeext conftest.$ac_ext
14314 LIBS=$ac_check_lib_save_LIBS
14316 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14317 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14318 if test $ac_cv_lib_dl_dlopen = yes; then
14319 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14322 lt_cv_dlopen="dyld"
14324 lt_cv_dlopen_self=yes
14331 echo "$as_me:$LINENO: checking for shl_load" >&5
14332 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14333 if test "${ac_cv_func_shl_load+set}" = set; then
14334 echo $ECHO_N "(cached) $ECHO_C" >&6
14336 cat >conftest.$ac_ext <<_ACEOF
14339 cat confdefs.h >>conftest.$ac_ext
14340 cat >>conftest.$ac_ext <<_ACEOF
14341 /* end confdefs.h. */
14342 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14343 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14344 #define shl_load innocuous_shl_load
14346 /* System header to define __stub macros and hopefully few prototypes,
14347 which can conflict with char shl_load (); below.
14348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14349 <limits.h> exists even on freestanding compilers. */
14352 # include <limits.h>
14354 # include <assert.h>
14359 /* Override any gcc2 internal prototype to avoid an error. */
14364 /* We use char because int might match the return type of a gcc2
14365 builtin and then its argument prototype would still apply. */
14367 /* The GNU C library defines this for functions which it implements
14368 to always fail with ENOSYS. Some functions are actually named
14369 something starting with __ and the normal name is an alias. */
14370 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14373 char (*f) () = shl_load;
14382 return f != shl_load;
14387 rm -f conftest.$ac_objext conftest$ac_exeext
14388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14389 (eval $ac_link) 2>conftest.er1
14391 grep -v '^ *+' conftest.er1 >conftest.err
14393 cat conftest.err >&5
14394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395 (exit $ac_status); } &&
14396 { ac_try='test -z "$ac_cxx_werror_flag"
14397 || test ! -s conftest.err'
14398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14399 (eval $ac_try) 2>&5
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); }; } &&
14403 { ac_try='test -s conftest$ac_exeext'
14404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14405 (eval $ac_try) 2>&5
14407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408 (exit $ac_status); }; }; then
14409 ac_cv_func_shl_load=yes
14411 echo "$as_me: failed program was:" >&5
14412 sed 's/^/| /' conftest.$ac_ext >&5
14414 ac_cv_func_shl_load=no
14416 rm -f conftest.err conftest.$ac_objext \
14417 conftest$ac_exeext conftest.$ac_ext
14419 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14420 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14421 if test $ac_cv_func_shl_load = yes; then
14422 lt_cv_dlopen="shl_load"
14424 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14425 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14426 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14427 echo $ECHO_N "(cached) $ECHO_C" >&6
14429 ac_check_lib_save_LIBS=$LIBS
14431 cat >conftest.$ac_ext <<_ACEOF
14434 cat confdefs.h >>conftest.$ac_ext
14435 cat >>conftest.$ac_ext <<_ACEOF
14436 /* end confdefs.h. */
14438 /* Override any gcc2 internal prototype to avoid an error. */
14442 /* We use char because int might match the return type of a gcc2
14443 builtin and then its argument prototype would still apply. */
14453 rm -f conftest.$ac_objext conftest$ac_exeext
14454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14455 (eval $ac_link) 2>conftest.er1
14457 grep -v '^ *+' conftest.er1 >conftest.err
14459 cat conftest.err >&5
14460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14461 (exit $ac_status); } &&
14462 { ac_try='test -z "$ac_cxx_werror_flag"
14463 || test ! -s conftest.err'
14464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14465 (eval $ac_try) 2>&5
14467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468 (exit $ac_status); }; } &&
14469 { ac_try='test -s conftest$ac_exeext'
14470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14471 (eval $ac_try) 2>&5
14473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474 (exit $ac_status); }; }; then
14475 ac_cv_lib_dld_shl_load=yes
14477 echo "$as_me: failed program was:" >&5
14478 sed 's/^/| /' conftest.$ac_ext >&5
14480 ac_cv_lib_dld_shl_load=no
14482 rm -f conftest.err conftest.$ac_objext \
14483 conftest$ac_exeext conftest.$ac_ext
14484 LIBS=$ac_check_lib_save_LIBS
14486 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14487 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14488 if test $ac_cv_lib_dld_shl_load = yes; then
14489 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14491 echo "$as_me:$LINENO: checking for dlopen" >&5
14492 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14493 if test "${ac_cv_func_dlopen+set}" = set; then
14494 echo $ECHO_N "(cached) $ECHO_C" >&6
14496 cat >conftest.$ac_ext <<_ACEOF
14499 cat confdefs.h >>conftest.$ac_ext
14500 cat >>conftest.$ac_ext <<_ACEOF
14501 /* end confdefs.h. */
14502 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14504 #define dlopen innocuous_dlopen
14506 /* System header to define __stub macros and hopefully few prototypes,
14507 which can conflict with char dlopen (); below.
14508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14509 <limits.h> exists even on freestanding compilers. */
14512 # include <limits.h>
14514 # include <assert.h>
14519 /* Override any gcc2 internal prototype to avoid an error. */
14524 /* We use char because int might match the return type of a gcc2
14525 builtin and then its argument prototype would still apply. */
14527 /* The GNU C library defines this for functions which it implements
14528 to always fail with ENOSYS. Some functions are actually named
14529 something starting with __ and the normal name is an alias. */
14530 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14533 char (*f) () = dlopen;
14542 return f != dlopen;
14547 rm -f conftest.$ac_objext conftest$ac_exeext
14548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14549 (eval $ac_link) 2>conftest.er1
14551 grep -v '^ *+' conftest.er1 >conftest.err
14553 cat conftest.err >&5
14554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555 (exit $ac_status); } &&
14556 { ac_try='test -z "$ac_cxx_werror_flag"
14557 || test ! -s conftest.err'
14558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14559 (eval $ac_try) 2>&5
14561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562 (exit $ac_status); }; } &&
14563 { ac_try='test -s conftest$ac_exeext'
14564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14565 (eval $ac_try) 2>&5
14567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568 (exit $ac_status); }; }; then
14569 ac_cv_func_dlopen=yes
14571 echo "$as_me: failed program was:" >&5
14572 sed 's/^/| /' conftest.$ac_ext >&5
14574 ac_cv_func_dlopen=no
14576 rm -f conftest.err conftest.$ac_objext \
14577 conftest$ac_exeext conftest.$ac_ext
14579 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14580 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14581 if test $ac_cv_func_dlopen = yes; then
14582 lt_cv_dlopen="dlopen"
14584 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14585 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14586 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14587 echo $ECHO_N "(cached) $ECHO_C" >&6
14589 ac_check_lib_save_LIBS=$LIBS
14591 cat >conftest.$ac_ext <<_ACEOF
14594 cat confdefs.h >>conftest.$ac_ext
14595 cat >>conftest.$ac_ext <<_ACEOF
14596 /* end confdefs.h. */
14598 /* Override any gcc2 internal prototype to avoid an error. */
14602 /* We use char because int might match the return type of a gcc2
14603 builtin and then its argument prototype would still apply. */
14613 rm -f conftest.$ac_objext conftest$ac_exeext
14614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14615 (eval $ac_link) 2>conftest.er1
14617 grep -v '^ *+' conftest.er1 >conftest.err
14619 cat conftest.err >&5
14620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14621 (exit $ac_status); } &&
14622 { ac_try='test -z "$ac_cxx_werror_flag"
14623 || test ! -s conftest.err'
14624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14625 (eval $ac_try) 2>&5
14627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628 (exit $ac_status); }; } &&
14629 { ac_try='test -s conftest$ac_exeext'
14630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14631 (eval $ac_try) 2>&5
14633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634 (exit $ac_status); }; }; then
14635 ac_cv_lib_dl_dlopen=yes
14637 echo "$as_me: failed program was:" >&5
14638 sed 's/^/| /' conftest.$ac_ext >&5
14640 ac_cv_lib_dl_dlopen=no
14642 rm -f conftest.err conftest.$ac_objext \
14643 conftest$ac_exeext conftest.$ac_ext
14644 LIBS=$ac_check_lib_save_LIBS
14646 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14647 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14648 if test $ac_cv_lib_dl_dlopen = yes; then
14649 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14651 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14652 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14653 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14654 echo $ECHO_N "(cached) $ECHO_C" >&6
14656 ac_check_lib_save_LIBS=$LIBS
14657 LIBS="-lsvld $LIBS"
14658 cat >conftest.$ac_ext <<_ACEOF
14661 cat confdefs.h >>conftest.$ac_ext
14662 cat >>conftest.$ac_ext <<_ACEOF
14663 /* end confdefs.h. */
14665 /* Override any gcc2 internal prototype to avoid an error. */
14669 /* We use char because int might match the return type of a gcc2
14670 builtin and then its argument prototype would still apply. */
14680 rm -f conftest.$ac_objext conftest$ac_exeext
14681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14682 (eval $ac_link) 2>conftest.er1
14684 grep -v '^ *+' conftest.er1 >conftest.err
14686 cat conftest.err >&5
14687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14688 (exit $ac_status); } &&
14689 { ac_try='test -z "$ac_cxx_werror_flag"
14690 || test ! -s conftest.err'
14691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14692 (eval $ac_try) 2>&5
14694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14695 (exit $ac_status); }; } &&
14696 { ac_try='test -s conftest$ac_exeext'
14697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14698 (eval $ac_try) 2>&5
14700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14701 (exit $ac_status); }; }; then
14702 ac_cv_lib_svld_dlopen=yes
14704 echo "$as_me: failed program was:" >&5
14705 sed 's/^/| /' conftest.$ac_ext >&5
14707 ac_cv_lib_svld_dlopen=no
14709 rm -f conftest.err conftest.$ac_objext \
14710 conftest$ac_exeext conftest.$ac_ext
14711 LIBS=$ac_check_lib_save_LIBS
14713 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14714 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14715 if test $ac_cv_lib_svld_dlopen = yes; then
14716 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14718 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14719 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14720 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14721 echo $ECHO_N "(cached) $ECHO_C" >&6
14723 ac_check_lib_save_LIBS=$LIBS
14725 cat >conftest.$ac_ext <<_ACEOF
14728 cat confdefs.h >>conftest.$ac_ext
14729 cat >>conftest.$ac_ext <<_ACEOF
14730 /* end confdefs.h. */
14732 /* Override any gcc2 internal prototype to avoid an error. */
14736 /* We use char because int might match the return type of a gcc2
14737 builtin and then its argument prototype would still apply. */
14747 rm -f conftest.$ac_objext conftest$ac_exeext
14748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14749 (eval $ac_link) 2>conftest.er1
14751 grep -v '^ *+' conftest.er1 >conftest.err
14753 cat conftest.err >&5
14754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755 (exit $ac_status); } &&
14756 { ac_try='test -z "$ac_cxx_werror_flag"
14757 || test ! -s conftest.err'
14758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14759 (eval $ac_try) 2>&5
14761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762 (exit $ac_status); }; } &&
14763 { ac_try='test -s conftest$ac_exeext'
14764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14765 (eval $ac_try) 2>&5
14767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768 (exit $ac_status); }; }; then
14769 ac_cv_lib_dld_dld_link=yes
14771 echo "$as_me: failed program was:" >&5
14772 sed 's/^/| /' conftest.$ac_ext >&5
14774 ac_cv_lib_dld_dld_link=no
14776 rm -f conftest.err conftest.$ac_objext \
14777 conftest$ac_exeext conftest.$ac_ext
14778 LIBS=$ac_check_lib_save_LIBS
14780 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14781 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14782 if test $ac_cv_lib_dld_dld_link = yes; then
14783 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14804 if test "x$lt_cv_dlopen" != xno; then
14810 case $lt_cv_dlopen in
14812 save_CPPFLAGS="$CPPFLAGS"
14813 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14815 save_LDFLAGS="$LDFLAGS"
14816 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14819 LIBS="$lt_cv_dlopen_libs $LIBS"
14821 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14822 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14823 if test "${lt_cv_dlopen_self+set}" = set; then
14824 echo $ECHO_N "(cached) $ECHO_C" >&6
14826 if test "$cross_compiling" = yes; then :
14827 lt_cv_dlopen_self=cross
14829 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14830 lt_status=$lt_dlunknown
14831 cat > conftest.$ac_ext <<EOF
14832 #line 14832 "configure"
14833 #include "confdefs.h"
14842 # define LT_DLGLOBAL RTLD_GLOBAL
14845 # define LT_DLGLOBAL DL_GLOBAL
14847 # define LT_DLGLOBAL 0
14851 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14852 find out it does not work in some platform. */
14853 #ifndef LT_DLLAZY_OR_NOW
14855 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14858 # define LT_DLLAZY_OR_NOW DL_LAZY
14861 # define LT_DLLAZY_OR_NOW RTLD_NOW
14864 # define LT_DLLAZY_OR_NOW DL_NOW
14866 # define LT_DLLAZY_OR_NOW 0
14874 extern "C" void exit (int);
14877 void fnord() { int i=42;}
14880 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14881 int status = $lt_dlunknown;
14885 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14886 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14887 /* dlclose (self); */
14893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14894 (eval $ac_link) 2>&5
14896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14897 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14898 (./conftest; exit; ) 2>/dev/null
14900 case x$lt_status in
14901 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14902 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14903 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14906 # compilation failed
14907 lt_cv_dlopen_self=no
14914 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14915 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14917 if test "x$lt_cv_dlopen_self" = xyes; then
14918 LDFLAGS="$LDFLAGS $link_static_flag"
14919 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14920 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14921 if test "${lt_cv_dlopen_self_static+set}" = set; then
14922 echo $ECHO_N "(cached) $ECHO_C" >&6
14924 if test "$cross_compiling" = yes; then :
14925 lt_cv_dlopen_self_static=cross
14927 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14928 lt_status=$lt_dlunknown
14929 cat > conftest.$ac_ext <<EOF
14930 #line 14930 "configure"
14931 #include "confdefs.h"
14940 # define LT_DLGLOBAL RTLD_GLOBAL
14943 # define LT_DLGLOBAL DL_GLOBAL
14945 # define LT_DLGLOBAL 0
14949 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14950 find out it does not work in some platform. */
14951 #ifndef LT_DLLAZY_OR_NOW
14953 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14956 # define LT_DLLAZY_OR_NOW DL_LAZY
14959 # define LT_DLLAZY_OR_NOW RTLD_NOW
14962 # define LT_DLLAZY_OR_NOW DL_NOW
14964 # define LT_DLLAZY_OR_NOW 0
14972 extern "C" void exit (int);
14975 void fnord() { int i=42;}
14978 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14979 int status = $lt_dlunknown;
14983 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14984 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14985 /* dlclose (self); */
14991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14992 (eval $ac_link) 2>&5
14994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14996 (./conftest; exit; ) 2>/dev/null
14998 case x$lt_status in
14999 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15000 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15001 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
15004 # compilation failed
15005 lt_cv_dlopen_self_static=no
15012 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
15013 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
15016 CPPFLAGS="$save_CPPFLAGS"
15017 LDFLAGS="$save_LDFLAGS"
15022 case $lt_cv_dlopen_self in
15023 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15024 *) enable_dlopen_self=unknown ;;
15027 case $lt_cv_dlopen_self_static in
15028 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15029 *) enable_dlopen_self_static=unknown ;;
15034 # The else clause should only fire when bootstrapping the
15035 # libtool distribution, otherwise you forgot to ship ltmain.sh
15036 # with your package, and you will get complaints that there are
15037 # no rules to generate ltmain.sh.
15038 if test -f "$ltmain"; then
15039 # See if we are running on zsh, and set the options which allow our commands through
15040 # without removal of \ escapes.
15041 if test -n "${ZSH_VERSION+set}" ; then
15042 setopt NO_GLOB_SUBST
15044 # Now quote all the things that may contain metacharacters while being
15045 # careful not to overquote the AC_SUBSTed values. We take copies of the
15046 # variables and quote the copies for generation of the libtool script.
15047 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15049 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15050 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15051 deplibs_check_method reload_flag reload_cmds need_locks \
15052 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15053 lt_cv_sys_global_symbol_to_c_name_address \
15054 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15055 old_postinstall_cmds old_postuninstall_cmds \
15059 lt_prog_compiler_wl_CXX \
15060 lt_prog_compiler_pic_CXX \
15061 lt_prog_compiler_static_CXX \
15062 lt_prog_compiler_no_builtin_flag_CXX \
15063 export_dynamic_flag_spec_CXX \
15064 thread_safe_flag_spec_CXX \
15065 whole_archive_flag_spec_CXX \
15066 enable_shared_with_static_runtimes_CXX \
15067 old_archive_cmds_CXX \
15068 old_archive_from_new_cmds_CXX \
15069 predep_objects_CXX \
15070 postdep_objects_CXX \
15073 compiler_lib_search_path_CXX \
15075 archive_expsym_cmds_CXX \
15076 postinstall_cmds_CXX \
15077 postuninstall_cmds_CXX \
15078 old_archive_from_expsyms_cmds_CXX \
15079 allow_undefined_flag_CXX \
15080 no_undefined_flag_CXX \
15081 export_symbols_cmds_CXX \
15082 hardcode_libdir_flag_spec_CXX \
15083 hardcode_libdir_flag_spec_ld_CXX \
15084 hardcode_libdir_separator_CXX \
15085 hardcode_automatic_CXX \
15087 module_expsym_cmds_CXX \
15088 lt_cv_prog_compiler_c_o_CXX \
15089 exclude_expsyms_CXX \
15090 include_expsyms_CXX; do
15093 old_archive_cmds_CXX | \
15094 old_archive_from_new_cmds_CXX | \
15095 archive_cmds_CXX | \
15096 archive_expsym_cmds_CXX | \
15097 module_cmds_CXX | \
15098 module_expsym_cmds_CXX | \
15099 old_archive_from_expsyms_cmds_CXX | \
15100 export_symbols_cmds_CXX | \
15101 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15102 postinstall_cmds | postuninstall_cmds | \
15103 old_postinstall_cmds | old_postuninstall_cmds | \
15104 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15105 # Double-quote double-evaled strings.
15106 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15109 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15115 *'\$0 --fallback-echo"')
15116 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15122 cat <<__EOF__ >> "$cfgfile"
15123 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15125 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15127 # Shell to use when invoking shell scripts.
15130 # Whether or not to build shared libraries.
15131 build_libtool_libs=$enable_shared
15133 # Whether or not to build static libraries.
15134 build_old_libs=$enable_static
15136 # Whether or not to add -lc for building shared libraries.
15137 build_libtool_need_lc=$archive_cmds_need_lc_CXX
15139 # Whether or not to disallow shared libs when runtime libs are static
15140 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15142 # Whether or not to optimize for fast installation.
15143 fast_install=$enable_fast_install
15146 host_alias=$host_alias
15150 # The build system.
15151 build_alias=$build_alias
15155 # An echo program that does not interpret backslashes.
15160 AR_FLAGS=$lt_AR_FLAGS
15165 # A language-specific compiler.
15166 CC=$lt_compiler_CXX
15168 # Is the compiler the GNU C compiler?
15174 # The linker used to build libraries.
15177 # Whether we need hard or soft links.
15180 # A BSD-compatible nm program.
15183 # A symbol stripping program
15186 # Used to examine libraries when file_magic_cmd begins "file"
15187 MAGIC_CMD=$MAGIC_CMD
15189 # Used on cygwin: DLL creation program.
15192 # Used on cygwin: object dumper.
15195 # Used on cygwin: assembler.
15198 # The name of the directory that contains temporary libtool files.
15201 # How to create reloadable object files.
15202 reload_flag=$lt_reload_flag
15203 reload_cmds=$lt_reload_cmds
15205 # How to pass a linker flag through the compiler.
15206 wl=$lt_lt_prog_compiler_wl_CXX
15208 # Object file suffix (normally "o").
15209 objext="$ac_objext"
15211 # Old archive suffix (normally "a").
15214 # Shared library suffix (normally ".so").
15215 shrext_cmds='$shrext_cmds'
15217 # Executable file suffix (normally "").
15220 # Additional compiler flags for building library objects.
15221 pic_flag=$lt_lt_prog_compiler_pic_CXX
15224 # What is the maximum length of a command?
15225 max_cmd_len=$lt_cv_sys_max_cmd_len
15227 # Does compiler simultaneously support -c and -o options?
15228 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15230 # Must we lock files when doing compilation?
15231 need_locks=$lt_need_locks
15233 # Do we need the lib prefix for modules?
15234 need_lib_prefix=$need_lib_prefix
15236 # Do we need a version for libraries?
15237 need_version=$need_version
15239 # Whether dlopen is supported.
15240 dlopen_support=$enable_dlopen
15242 # Whether dlopen of programs is supported.
15243 dlopen_self=$enable_dlopen_self
15245 # Whether dlopen of statically linked programs is supported.
15246 dlopen_self_static=$enable_dlopen_self_static
15248 # Compiler flag to prevent dynamic linking.
15249 link_static_flag=$lt_lt_prog_compiler_static_CXX
15251 # Compiler flag to turn off builtin functions.
15252 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15254 # Compiler flag to allow reflexive dlopens.
15255 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15257 # Compiler flag to generate shared objects directly from archives.
15258 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15260 # Compiler flag to generate thread-safe objects.
15261 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15263 # Library versioning type.
15264 version_type=$version_type
15266 # Format of library name prefix.
15267 libname_spec=$lt_libname_spec
15269 # List of archive names. First name is the real one, the rest are links.
15270 # The last name is the one that the linker finds with -lNAME.
15271 library_names_spec=$lt_library_names_spec
15273 # The coded name of the library, if different from the real name.
15274 soname_spec=$lt_soname_spec
15276 # Commands used to build and install an old-style archive.
15278 old_archive_cmds=$lt_old_archive_cmds_CXX
15279 old_postinstall_cmds=$lt_old_postinstall_cmds
15280 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15282 # Create an old-style archive from a shared archive.
15283 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15285 # Create a temporary old-style archive to link instead of a shared archive.
15286 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15288 # Commands used to build and install a shared archive.
15289 archive_cmds=$lt_archive_cmds_CXX
15290 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15291 postinstall_cmds=$lt_postinstall_cmds
15292 postuninstall_cmds=$lt_postuninstall_cmds
15294 # Commands used to build a loadable module (assumed same as above if empty)
15295 module_cmds=$lt_module_cmds_CXX
15296 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15298 # Commands to strip libraries.
15299 old_striplib=$lt_old_striplib
15300 striplib=$lt_striplib
15302 # Dependencies to place before the objects being linked to create a
15304 predep_objects=$lt_predep_objects_CXX
15306 # Dependencies to place after the objects being linked to create a
15308 postdep_objects=$lt_postdep_objects_CXX
15310 # Dependencies to place before the objects being linked to create a
15312 predeps=$lt_predeps_CXX
15314 # Dependencies to place after the objects being linked to create a
15316 postdeps=$lt_postdeps_CXX
15318 # The library search path used internally by the compiler when linking
15319 # a shared library.
15320 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15322 # Method to check whether dependent libraries are shared objects.
15323 deplibs_check_method=$lt_deplibs_check_method
15325 # Command to use when deplibs_check_method == file_magic.
15326 file_magic_cmd=$lt_file_magic_cmd
15328 # Flag that allows shared libraries with undefined symbols to be built.
15329 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15331 # Flag that forces no undefined symbols.
15332 no_undefined_flag=$lt_no_undefined_flag_CXX
15334 # Commands used to finish a libtool library installation in a directory.
15335 finish_cmds=$lt_finish_cmds
15337 # Same as above, but a single script fragment to be evaled but not shown.
15338 finish_eval=$lt_finish_eval
15340 # Take the output of nm and produce a listing of raw symbols and C names.
15341 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15343 # Transform the output of nm in a proper C declaration
15344 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15346 # Transform the output of nm in a C name address pair
15347 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15349 # This is the shared library runtime path variable.
15350 runpath_var=$runpath_var
15352 # This is the shared library path variable.
15353 shlibpath_var=$shlibpath_var
15355 # Is shlibpath searched before the hard-coded library search path?
15356 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15358 # How to hardcode a shared library path into an executable.
15359 hardcode_action=$hardcode_action_CXX
15361 # Whether we should hardcode library paths into libraries.
15362 hardcode_into_libs=$hardcode_into_libs
15364 # Flag to hardcode \$libdir into a binary during linking.
15365 # This must work even if \$libdir does not exist.
15366 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15368 # If ld is used when linking, flag to hardcode \$libdir into
15369 # a binary during linking. This must work even if \$libdir does
15371 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15373 # Whether we need a single -rpath flag with a separated argument.
15374 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15376 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15377 # resulting binary.
15378 hardcode_direct=$hardcode_direct_CXX
15380 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15381 # resulting binary.
15382 hardcode_minus_L=$hardcode_minus_L_CXX
15384 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15385 # the resulting binary.
15386 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15388 # Set to yes if building a shared library automatically hardcodes DIR into the library
15389 # and all subsequent libraries and executables linked against it.
15390 hardcode_automatic=$hardcode_automatic_CXX
15392 # Variables whose values should be saved in libtool wrapper scripts and
15393 # restored at relink time.
15394 variables_saved_for_relink="$variables_saved_for_relink"
15396 # Whether libtool must link a program against all its dependency libraries.
15397 link_all_deplibs=$link_all_deplibs_CXX
15399 # Compile-time system search path for libraries
15400 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15402 # Run-time system search path for libraries
15403 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15405 # Fix the shell variable \$srcfile for the compiler.
15406 fix_srcfile_path="$fix_srcfile_path_CXX"
15408 # Set to yes if exported symbols are required.
15409 always_export_symbols=$always_export_symbols_CXX
15411 # The commands to list exported symbols.
15412 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15414 # The commands to extract the exported symbol list from a shared archive.
15415 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15417 # Symbols that should not be listed in the preloaded symbols.
15418 exclude_expsyms=$lt_exclude_expsyms_CXX
15420 # Symbols that must always be exported.
15421 include_expsyms=$lt_include_expsyms_CXX
15423 # ### END LIBTOOL TAG CONFIG: $tagname
15429 # If there is no Makefile yet, we rely on a make rule to execute
15430 # `config.status --recheck' to rerun these tests and create the
15431 # libtool script then.
15432 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15433 if test -f "$ltmain_in"; then
15434 test -f Makefile && make "$ltmain"
15440 ac_cpp='$CPP $CPPFLAGS'
15441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15449 with_gnu_ldcxx=$with_gnu_ld
15450 with_gnu_ld=$lt_save_with_gnu_ld
15451 lt_cv_path_LDCXX=$lt_cv_path_LD
15452 lt_cv_path_LD=$lt_save_path_LD
15453 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15454 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15462 if test -n "$F77" && test "X$F77" != "Xno"; then
15465 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15466 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15467 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15470 archive_cmds_need_lc_F77=no
15471 allow_undefined_flag_F77=
15472 always_export_symbols_F77=no
15473 archive_expsym_cmds_F77=
15474 export_dynamic_flag_spec_F77=
15475 hardcode_direct_F77=no
15476 hardcode_libdir_flag_spec_F77=
15477 hardcode_libdir_flag_spec_ld_F77=
15478 hardcode_libdir_separator_F77=
15479 hardcode_minus_L_F77=no
15480 hardcode_automatic_F77=no
15482 module_expsym_cmds_F77=
15483 link_all_deplibs_F77=unknown
15484 old_archive_cmds_F77=$old_archive_cmds
15485 no_undefined_flag_F77=
15486 whole_archive_flag_spec_F77=
15487 enable_shared_with_static_runtimes_F77=no
15489 # Source file extension for f77 test sources.
15492 # Object file extension for compiled f77 test sources.
15496 # Code to be used in simple compile tests
15497 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
15499 # Code to be used in simple link tests
15500 lt_simple_link_test_code=" program t\n end\n"
15502 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15504 # If no C compiler was specified, use CC.
15507 # Allow CC to be a program name with arguments.
15511 # save warnings/boilerplate of simple test code
15512 ac_outfile=conftest.$ac_objext
15513 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15514 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15515 _lt_compiler_boilerplate=`cat conftest.err`
15518 ac_outfile=conftest.$ac_objext
15519 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15520 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15521 _lt_linker_boilerplate=`cat conftest.err`
15525 # Allow CC to be a program name with arguments.
15530 for cc_temp in $compiler""; do
15532 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15533 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15538 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15541 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15542 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
15543 echo "$as_me:$LINENO: result: $can_build_shared" >&5
15544 echo "${ECHO_T}$can_build_shared" >&6
15546 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15547 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
15548 test "$can_build_shared" = "no" && enable_shared=no
15550 # On AIX, shared libraries and static libraries use the same namespace, and
15551 # are all built from PIC.
15554 test "$enable_shared" = yes && enable_static=no
15555 if test -n "$RANLIB"; then
15556 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15557 postinstall_cmds='$RANLIB $lib'
15561 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15562 test "$enable_shared" = yes && enable_static=no
15566 echo "$as_me:$LINENO: result: $enable_shared" >&5
15567 echo "${ECHO_T}$enable_shared" >&6
15569 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15570 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
15571 # Make sure either enable_shared or enable_static is yes.
15572 test "$enable_shared" = yes || enable_static=yes
15573 echo "$as_me:$LINENO: result: $enable_static" >&5
15574 echo "${ECHO_T}$enable_static" >&6
15576 test "$ld_shlibs_F77" = no && can_build_shared=no
15581 lt_prog_compiler_wl_F77=
15582 lt_prog_compiler_pic_F77=
15583 lt_prog_compiler_static_F77=
15585 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15586 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15588 if test "$GCC" = yes; then
15589 lt_prog_compiler_wl_F77='-Wl,'
15590 lt_prog_compiler_static_F77='-static'
15594 # All AIX code is PIC.
15595 if test "$host_cpu" = ia64; then
15596 # AIX 5 now supports IA64 processor
15597 lt_prog_compiler_static_F77='-Bstatic'
15602 # FIXME: we need at least 68020 code to build shared libraries, but
15603 # adding the `-m68020' flag to GCC prevents building anything better,
15605 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15608 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15609 # PIC is the default for these OSes.
15612 mingw* | pw32* | os2*)
15613 # This hack is so that the source file can tell whether it is being
15614 # built for inclusion in a dll (and should export symbols for example).
15615 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15618 darwin* | rhapsody*)
15619 # PIC is the default on this platform
15620 # Common symbols not allowed in MH_DYLIB files
15621 lt_prog_compiler_pic_F77='-fno-common'
15625 # Just because we use GCC doesn't mean we suddenly get shared libraries
15626 # on systems that don't support them.
15627 lt_prog_compiler_can_build_shared_F77=no
15632 if test -d /usr/nec; then
15633 lt_prog_compiler_pic_F77=-Kconform_pic
15638 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15639 # not for PA HP-UX.
15640 case "$host_cpu" in
15645 lt_prog_compiler_pic_F77='-fPIC'
15651 lt_prog_compiler_pic_F77='-fPIC'
15655 # PORTME Check for flag to pass linker flags through the system compiler.
15658 lt_prog_compiler_wl_F77='-Wl,'
15659 if test "$host_cpu" = ia64; then
15660 # AIX 5 now supports IA64 processor
15661 lt_prog_compiler_static_F77='-Bstatic'
15663 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15667 # PIC is the default on this platform
15668 # Common symbols not allowed in MH_DYLIB files
15669 case $cc_basename in
15671 lt_prog_compiler_pic_F77='-qnocommon'
15672 lt_prog_compiler_wl_F77='-Wl,'
15677 mingw* | pw32* | os2*)
15678 # This hack is so that the source file can tell whether it is being
15679 # built for inclusion in a dll (and should export symbols for example).
15680 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15683 hpux9* | hpux10* | hpux11*)
15684 lt_prog_compiler_wl_F77='-Wl,'
15685 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15686 # not for PA HP-UX.
15687 case "$host_cpu" in
15692 lt_prog_compiler_pic_F77='+Z'
15695 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15696 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15699 irix5* | irix6* | nonstopux*)
15700 lt_prog_compiler_wl_F77='-Wl,'
15701 # PIC (with -KPIC) is the default.
15702 lt_prog_compiler_static_F77='-non_shared'
15706 lt_prog_compiler_pic_F77='-KPIC'
15707 lt_prog_compiler_static_F77='-Bstatic'
15711 case $cc_basename in
15713 lt_prog_compiler_wl_F77='-Wl,'
15714 lt_prog_compiler_pic_F77='-KPIC'
15715 lt_prog_compiler_static_F77='-static'
15717 pgcc* | pgf77* | pgf90*)
15718 # Portland Group compilers (*not* the Pentium gcc compiler,
15719 # which looks to be a dead project)
15720 lt_prog_compiler_wl_F77='-Wl,'
15721 lt_prog_compiler_pic_F77='-fpic'
15722 lt_prog_compiler_static_F77='-static'
15725 lt_prog_compiler_wl_F77='-Wl,'
15726 # All Alpha code is PIC.
15727 lt_prog_compiler_static_F77='-non_shared'
15732 osf3* | osf4* | osf5*)
15733 lt_prog_compiler_wl_F77='-Wl,'
15734 # All OSF/1 code is PIC.
15735 lt_prog_compiler_static_F77='-non_shared'
15739 lt_prog_compiler_pic_F77='-Kpic'
15740 lt_prog_compiler_static_F77='-dn'
15744 lt_prog_compiler_pic_F77='-KPIC'
15745 lt_prog_compiler_static_F77='-Bstatic'
15746 case $cc_basename in
15747 f77* | f90* | f95*)
15748 lt_prog_compiler_wl_F77='-Qoption ld ';;
15750 lt_prog_compiler_wl_F77='-Wl,';;
15755 lt_prog_compiler_wl_F77='-Qoption ld '
15756 lt_prog_compiler_pic_F77='-PIC'
15757 lt_prog_compiler_static_F77='-Bstatic'
15760 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15761 lt_prog_compiler_wl_F77='-Wl,'
15762 lt_prog_compiler_pic_F77='-KPIC'
15763 lt_prog_compiler_static_F77='-Bstatic'
15767 if test -d /usr/nec ;then
15768 lt_prog_compiler_pic_F77='-Kconform_pic'
15769 lt_prog_compiler_static_F77='-Bstatic'
15774 lt_prog_compiler_wl_F77='-Wl,'
15775 lt_prog_compiler_can_build_shared_F77=no
15779 lt_prog_compiler_pic_F77='-pic'
15780 lt_prog_compiler_static_F77='-Bstatic'
15784 lt_prog_compiler_can_build_shared_F77=no
15789 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15790 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
15793 # Check to make sure the PIC flag actually works.
15795 if test -n "$lt_prog_compiler_pic_F77"; then
15797 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15798 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
15799 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15800 echo $ECHO_N "(cached) $ECHO_C" >&6
15802 lt_prog_compiler_pic_works_F77=no
15803 ac_outfile=conftest.$ac_objext
15804 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15805 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15806 # Insert the option either (1) after the last *FLAGS variable, or
15807 # (2) before a word containing "conftest.", or (3) at the end.
15808 # Note that $ac_compile itself does not contain backslashes and begins
15809 # with a dollar sign (not a hyphen), so the echo should work correctly.
15810 # The option is referenced via a variable to avoid confusing sed.
15811 lt_compile=`echo "$ac_compile" | $SED \
15812 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15813 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15814 -e 's:$: $lt_compiler_flag:'`
15815 (eval echo "\"\$as_me:15815: $lt_compile\"" >&5)
15816 (eval "$lt_compile" 2>conftest.err)
15818 cat conftest.err >&5
15819 echo "$as_me:15819: \$? = $ac_status" >&5
15820 if (exit $ac_status) && test -s "$ac_outfile"; then
15821 # The compiler can only warn and ignore the option if not recognized
15822 # So say no if there are warnings other than the usual output.
15823 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15824 $SED '/^$/d' conftest.err >conftest.er2
15825 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15826 lt_prog_compiler_pic_works_F77=yes
15832 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15833 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
15835 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15836 case $lt_prog_compiler_pic_F77 in
15838 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15841 lt_prog_compiler_pic_F77=
15842 lt_prog_compiler_can_build_shared_F77=no
15847 # For platforms which do not support PIC, -DPIC is meaningless:
15849 lt_prog_compiler_pic_F77=
15852 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15856 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15857 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15858 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15859 echo $ECHO_N "(cached) $ECHO_C" >&6
15861 lt_cv_prog_compiler_c_o_F77=no
15862 $rm -r conftest 2>/dev/null
15866 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15868 lt_compiler_flag="-o out/conftest2.$ac_objext"
15869 # Insert the option either (1) after the last *FLAGS variable, or
15870 # (2) before a word containing "conftest.", or (3) at the end.
15871 # Note that $ac_compile itself does not contain backslashes and begins
15872 # with a dollar sign (not a hyphen), so the echo should work correctly.
15873 lt_compile=`echo "$ac_compile" | $SED \
15874 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15875 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15876 -e 's:$: $lt_compiler_flag:'`
15877 (eval echo "\"\$as_me:15877: $lt_compile\"" >&5)
15878 (eval "$lt_compile" 2>out/conftest.err)
15880 cat out/conftest.err >&5
15881 echo "$as_me:15881: \$? = $ac_status" >&5
15882 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15884 # The compiler can only warn and ignore the option if not recognized
15885 # So say no if there are warnings
15886 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
15887 $SED '/^$/d' out/conftest.err >out/conftest.er2
15888 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15889 lt_cv_prog_compiler_c_o_F77=yes
15894 # SGI C++ compiler will create directory out/ii_files/ for
15895 # template instantiation
15896 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15897 $rm out/* && rmdir out
15903 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15904 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15907 hard_links="nottested"
15908 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15909 # do not overwrite the value of need_locks provided by the user
15910 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15911 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15914 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15916 ln conftest.a conftest.b 2>&5 || hard_links=no
15917 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15918 echo "$as_me:$LINENO: result: $hard_links" >&5
15919 echo "${ECHO_T}$hard_links" >&6
15920 if test "$hard_links" = no; then
15921 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15922 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15929 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15930 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15933 allow_undefined_flag_F77=
15934 enable_shared_with_static_runtimes_F77=no
15936 archive_expsym_cmds_F77=
15937 old_archive_From_new_cmds_F77=
15938 old_archive_from_expsyms_cmds_F77=
15939 export_dynamic_flag_spec_F77=
15940 whole_archive_flag_spec_F77=
15941 thread_safe_flag_spec_F77=
15942 hardcode_libdir_flag_spec_F77=
15943 hardcode_libdir_flag_spec_ld_F77=
15944 hardcode_libdir_separator_F77=
15945 hardcode_direct_F77=no
15946 hardcode_minus_L_F77=no
15947 hardcode_shlibpath_var_F77=unsupported
15948 link_all_deplibs_F77=unknown
15949 hardcode_automatic_F77=no
15951 module_expsym_cmds_F77=
15952 always_export_symbols_F77=no
15953 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15954 # include_expsyms should be a list of space-separated symbols to be *always*
15955 # included in the symbol list
15956 include_expsyms_F77=
15957 # exclude_expsyms can be an extended regexp of symbols to exclude
15958 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15959 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15960 # as well as any symbol that contains `d'.
15961 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15962 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15963 # platforms (ab)use it in PIC code, but their linkers get confused if
15964 # the symbol is explicitly referenced. Since portable code cannot
15965 # rely on this symbol name, it's probably fine to never include it in
15966 # preloaded symbol tables.
15967 extract_expsyms_cmds=
15968 # Just being paranoid about ensuring that cc_basename is set.
15969 for cc_temp in $compiler""; do
15971 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15972 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15977 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15980 cygwin* | mingw* | pw32*)
15981 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15982 # When not using gcc, we currently assume that we are using
15983 # Microsoft Visual C++.
15984 if test "$GCC" != yes; then
15994 if test "$with_gnu_ld" = yes; then
15995 # If archive_cmds runs LD, not CC, wlarc should be empty
15998 # Set some defaults for GNU ld with shared library support. These
15999 # are reset later if shared libraries are not supported. Putting them
16000 # here allows them to be overridden if necessary.
16001 runpath_var=LD_RUN_PATH
16002 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
16003 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
16004 # ancient GNU ld didn't support --whole-archive et. al.
16005 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16006 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16008 whole_archive_flag_spec_F77=
16010 supports_anon_versioning=no
16011 case `$LD -v 2>/dev/null` in
16012 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16013 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16014 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16015 *\ 2.11.*) ;; # other 2.11 versions
16016 *) supports_anon_versioning=yes ;;
16019 # See if GNU ld supports shared libraries.
16021 aix3* | aix4* | aix5*)
16022 # On AIX/PPC, the GNU linker is very broken
16023 if test "$host_cpu" != ia64; then
16027 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16028 *** to be unable to reliably create shared libraries on AIX.
16029 *** Therefore, libtool is disabling shared libraries support. If you
16030 *** really care for shared libraries, you may want to modify your PATH
16031 *** so that a non-GNU linker is found, and then restart.
16038 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)'
16039 hardcode_libdir_flag_spec_F77='-L$libdir'
16040 hardcode_minus_L_F77=yes
16042 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16043 # that the semantics of dynamic libraries on AmigaOS, at least up
16044 # to version 4, is to share data among multiple programs linked
16045 # with the same dynamic library. Since this doesn't match the
16046 # behavior of shared libraries on other platforms, we can't use
16052 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16053 allow_undefined_flag_F77=unsupported
16054 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16055 # support --undefined. This deserves some investigation. FIXME
16056 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16062 cygwin* | mingw* | pw32*)
16063 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16064 # as there is no search path for DLLs.
16065 hardcode_libdir_flag_spec_F77='-L$libdir'
16066 allow_undefined_flag_F77=unsupported
16067 always_export_symbols_F77=no
16068 enable_shared_with_static_runtimes_F77=yes
16069 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16071 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16072 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16073 # If the export-symbols file already is a .def file (1st line
16074 # is EXPORTS), use it as is; otherwise, prepend...
16075 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16076 cp $export_symbols $output_objdir/$soname.def;
16078 echo EXPORTS > $output_objdir/$soname.def;
16079 cat $export_symbols >> $output_objdir/$soname.def;
16081 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16088 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16090 case $cc_basename,$host_cpu in
16091 pgcc*) # Portland Group C compiler
16092 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'
16093 tmp_addflag=' $pic_flag'
16095 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
16096 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'
16097 tmp_addflag=' $pic_flag -Mnomain' ;;
16098 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16099 tmp_addflag=' -i_dynamic' ;;
16100 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16101 tmp_addflag=' -i_dynamic -nofor_main' ;;
16102 ifc* | ifort*) # Intel Fortran compiler
16103 tmp_addflag=' -nofor_main' ;;
16105 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16107 if test $supports_anon_versioning = yes; then
16108 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16109 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16110 $echo "local: *; };" >> $output_objdir/$libname.ver~
16111 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16119 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16120 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16123 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16124 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16129 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16133 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16134 *** create shared libraries on Solaris systems. Therefore, libtool
16135 *** is disabling shared libraries support. We urge you to upgrade GNU
16136 *** binutils to release 2.9.1 or newer. Another option is to modify
16137 *** your PATH or compiler configuration so that the native linker is
16138 *** used, and then restart.
16141 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16142 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16143 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16150 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16152 hardcode_direct_F77=yes
16153 hardcode_shlibpath_var_F77=no
16157 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16158 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16159 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16166 if test "$ld_shlibs_F77" = no; then
16168 hardcode_libdir_flag_spec_F77=
16169 export_dynamic_flag_spec_F77=
16170 whole_archive_flag_spec_F77=
16173 # PORTME fill in a description of your system's linker (not GNU ld)
16176 allow_undefined_flag_F77=unsupported
16177 always_export_symbols_F77=yes
16178 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'
16179 # Note: this linker hardcodes the directories in LIBPATH if there
16180 # are no directories specified by -L.
16181 hardcode_minus_L_F77=yes
16182 if test "$GCC" = yes && test -z "$link_static_flag"; then
16183 # Neither direct hardcoding nor static linking is supported with a
16185 hardcode_direct_F77=unsupported
16190 if test "$host_cpu" = ia64; then
16191 # On IA64, the linker does run time linking by default, so we don't
16192 # have to do anything special.
16193 aix_use_runtimelinking=no
16194 exp_sym_flag='-Bexport'
16197 # If we're using GNU nm, then we don't want the "-C" option.
16198 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16199 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16200 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'
16202 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'
16204 aix_use_runtimelinking=no
16206 # Test if we are trying to use run time linking or normal
16207 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16208 # need to do runtime linking.
16209 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16210 for ld_flag in $LDFLAGS; do
16211 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16212 aix_use_runtimelinking=yes
16218 exp_sym_flag='-bexport'
16219 no_entry_flag='-bnoentry'
16222 # When large executables or shared objects are built, AIX ld can
16223 # have problems creating the table of contents. If linking a library
16224 # or program results in "error TOC overflow" add -mminimal-toc to
16225 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16226 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16228 archive_cmds_F77=''
16229 hardcode_direct_F77=yes
16230 hardcode_libdir_separator_F77=':'
16231 link_all_deplibs_F77=yes
16233 if test "$GCC" = yes; then
16234 case $host_os in aix4.[012]|aix4.[012].*)
16235 # We only want to do this on AIX 4.2 and lower, the check
16236 # below for broken collect2 doesn't work under 4.3+
16237 collect2name=`${CC} -print-prog-name=collect2`
16238 if test -f "$collect2name" && \
16239 strings "$collect2name" | grep resolve_lib_name >/dev/null
16241 # We have reworked collect2
16242 hardcode_direct_F77=yes
16244 # We have old collect2
16245 hardcode_direct_F77=unsupported
16246 # It fails to find uninstalled libraries when the uninstalled
16247 # path is not listed in the libpath. Setting hardcode_minus_L
16248 # to unsupported forces relinking
16249 hardcode_minus_L_F77=yes
16250 hardcode_libdir_flag_spec_F77='-L$libdir'
16251 hardcode_libdir_separator_F77=
16254 shared_flag='-shared'
16255 if test "$aix_use_runtimelinking" = yes; then
16256 shared_flag="$shared_flag "'${wl}-G'
16260 if test "$host_cpu" = ia64; then
16261 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16262 # chokes on -Wl,-G. The following line is correct:
16265 if test "$aix_use_runtimelinking" = yes; then
16266 shared_flag='${wl}-G'
16268 shared_flag='${wl}-bM:SRE'
16273 # It seems that -bexpall does not export symbols beginning with
16274 # underscore (_), so it is better to generate a list of symbols to export.
16275 always_export_symbols_F77=yes
16276 if test "$aix_use_runtimelinking" = yes; then
16277 # Warning - without using the other runtime loading flags (-brtl),
16278 # -berok will link without error, but may produce a broken library.
16279 allow_undefined_flag_F77='-berok'
16280 # Determine the default libpath from the value encoded in an empty executable.
16281 cat >conftest.$ac_ext <<_ACEOF
16286 rm -f conftest.$ac_objext conftest$ac_exeext
16287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16288 (eval $ac_link) 2>conftest.er1
16290 grep -v '^ *+' conftest.er1 >conftest.err
16292 cat conftest.err >&5
16293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16294 (exit $ac_status); } &&
16295 { ac_try='test -z "$ac_f77_werror_flag"
16296 || test ! -s conftest.err'
16297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16298 (eval $ac_try) 2>&5
16300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16301 (exit $ac_status); }; } &&
16302 { ac_try='test -s conftest$ac_exeext'
16303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16304 (eval $ac_try) 2>&5
16306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16307 (exit $ac_status); }; }; then
16309 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16311 # Check for a 64-bit object if we didn't find anything.
16312 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; }
16315 echo "$as_me: failed program was:" >&5
16316 sed 's/^/| /' conftest.$ac_ext >&5
16319 rm -f conftest.err conftest.$ac_objext \
16320 conftest$ac_exeext conftest.$ac_ext
16321 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16323 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16324 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"
16326 if test "$host_cpu" = ia64; then
16327 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16328 allow_undefined_flag_F77="-z nodefs"
16329 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"
16331 # Determine the default libpath from the value encoded in an empty executable.
16332 cat >conftest.$ac_ext <<_ACEOF
16337 rm -f conftest.$ac_objext conftest$ac_exeext
16338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16339 (eval $ac_link) 2>conftest.er1
16341 grep -v '^ *+' conftest.er1 >conftest.err
16343 cat conftest.err >&5
16344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345 (exit $ac_status); } &&
16346 { ac_try='test -z "$ac_f77_werror_flag"
16347 || test ! -s conftest.err'
16348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16349 (eval $ac_try) 2>&5
16351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16352 (exit $ac_status); }; } &&
16353 { ac_try='test -s conftest$ac_exeext'
16354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16355 (eval $ac_try) 2>&5
16357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16358 (exit $ac_status); }; }; then
16360 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16362 # Check for a 64-bit object if we didn't find anything.
16363 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; }
16366 echo "$as_me: failed program was:" >&5
16367 sed 's/^/| /' conftest.$ac_ext >&5
16370 rm -f conftest.err conftest.$ac_objext \
16371 conftest$ac_exeext conftest.$ac_ext
16372 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16374 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16375 # Warning - without using the other run time loading flags,
16376 # -berok will link without error, but may produce a broken library.
16377 no_undefined_flag_F77=' ${wl}-bernotok'
16378 allow_undefined_flag_F77=' ${wl}-berok'
16379 # -bexpall does not export symbols beginning with underscore (_)
16380 always_export_symbols_F77=yes
16381 # Exported symbols can be pulled into shared objects from archives
16382 whole_archive_flag_spec_F77=' '
16383 archive_cmds_need_lc_F77=yes
16384 # This is similar to how AIX traditionally builds it's shared libraries.
16385 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'
16391 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)'
16392 hardcode_libdir_flag_spec_F77='-L$libdir'
16393 hardcode_minus_L_F77=yes
16394 # see comment about different semantics on the GNU ld section
16399 export_dynamic_flag_spec_F77=-rdynamic
16402 cygwin* | mingw* | pw32*)
16403 # When not using gcc, we currently assume that we are using
16404 # Microsoft Visual C++.
16405 # hardcode_libdir_flag_spec is actually meaningless, as there is
16406 # no search path for DLLs.
16407 hardcode_libdir_flag_spec_F77=' '
16408 allow_undefined_flag_F77=unsupported
16409 # Tell ltmain to make .lib files, not .a files.
16411 # Tell ltmain to make .dll files, not .so files.
16413 # FIXME: Setting linknames here is a bad hack.
16414 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16415 # The linker will automatically build a .lib file if we build a DLL.
16416 old_archive_From_new_cmds_F77='true'
16417 # FIXME: Should let the user specify the lib program.
16418 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
16419 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16420 enable_shared_with_static_runtimes_F77=yes
16423 darwin* | rhapsody*)
16425 rhapsody* | darwin1.[012])
16426 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16429 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16430 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16432 case ${MACOSX_DEPLOYMENT_TARGET} in
16434 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16437 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16443 archive_cmds_need_lc_F77=no
16444 hardcode_direct_F77=no
16445 hardcode_automatic_F77=yes
16446 hardcode_shlibpath_var_F77=unsupported
16447 whole_archive_flag_spec_F77=''
16448 link_all_deplibs_F77=yes
16449 if test "$GCC" = yes ; then
16450 output_verbose_link_cmd='echo'
16451 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16452 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16453 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16454 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}'
16455 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}'
16457 case $cc_basename in
16459 output_verbose_link_cmd='echo'
16460 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16461 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16462 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16463 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}'
16464 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}'
16474 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16475 hardcode_libdir_flag_spec_F77='-L$libdir'
16476 hardcode_shlibpath_var_F77=no
16483 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16484 # support. Future versions do this automatically, but an explicit c++rt0.o
16485 # does not break anything, and helps significantly (at the cost of a little
16488 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16489 hardcode_libdir_flag_spec_F77='-R$libdir'
16490 hardcode_direct_F77=yes
16491 hardcode_shlibpath_var_F77=no
16494 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16496 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16497 hardcode_direct_F77=yes
16498 hardcode_minus_L_F77=yes
16499 hardcode_shlibpath_var_F77=no
16502 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16503 freebsd* | kfreebsd*-gnu | dragonfly*)
16504 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16505 hardcode_libdir_flag_spec_F77='-R$libdir'
16506 hardcode_direct_F77=yes
16507 hardcode_shlibpath_var_F77=no
16511 if test "$GCC" = yes; then
16512 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'
16514 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'
16516 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16517 hardcode_libdir_separator_F77=:
16518 hardcode_direct_F77=yes
16520 # hardcode_minus_L: Not really in the search PATH,
16521 # but as the default location of the library.
16522 hardcode_minus_L_F77=yes
16523 export_dynamic_flag_spec_F77='${wl}-E'
16527 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16528 case "$host_cpu" in
16530 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16533 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16537 case "$host_cpu" in
16539 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16542 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16546 if test "$with_gnu_ld" = no; then
16547 case "$host_cpu" in
16549 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16550 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16551 hardcode_libdir_separator_F77=:
16552 hardcode_direct_F77=no
16553 hardcode_shlibpath_var_F77=no
16556 hardcode_libdir_flag_spec_F77='-L$libdir'
16557 hardcode_direct_F77=no
16558 hardcode_shlibpath_var_F77=no
16560 # hardcode_minus_L: Not really in the search PATH,
16561 # but as the default location of the library.
16562 hardcode_minus_L_F77=yes
16565 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16566 hardcode_libdir_separator_F77=:
16567 hardcode_direct_F77=yes
16568 export_dynamic_flag_spec_F77='${wl}-E'
16570 # hardcode_minus_L: Not really in the search PATH,
16571 # but as the default location of the library.
16572 hardcode_minus_L_F77=yes
16578 irix5* | irix6* | nonstopux*)
16579 if test "$GCC" = yes; then
16580 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'
16582 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'
16583 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16585 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16586 hardcode_libdir_separator_F77=:
16587 link_all_deplibs_F77=yes
16591 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16592 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16594 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16596 hardcode_libdir_flag_spec_F77='-R$libdir'
16597 hardcode_direct_F77=yes
16598 hardcode_shlibpath_var_F77=no
16602 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16603 hardcode_direct_F77=yes
16604 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16605 hardcode_libdir_separator_F77=:
16606 hardcode_shlibpath_var_F77=no
16610 hardcode_direct_F77=yes
16611 hardcode_shlibpath_var_F77=no
16612 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16613 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16614 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16615 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16616 export_dynamic_flag_spec_F77='${wl}-E'
16619 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16620 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16621 hardcode_libdir_flag_spec_F77='-R$libdir'
16624 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16625 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16632 hardcode_libdir_flag_spec_F77='-L$libdir'
16633 hardcode_minus_L_F77=yes
16634 allow_undefined_flag_F77=unsupported
16635 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'
16636 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16640 if test "$GCC" = yes; then
16641 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16642 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'
16644 allow_undefined_flag_F77=' -expect_unresolved \*'
16645 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'
16647 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16648 hardcode_libdir_separator_F77=:
16651 osf4* | osf5*) # as osf3* with the addition of -msym flag
16652 if test "$GCC" = yes; then
16653 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16654 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'
16655 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16657 allow_undefined_flag_F77=' -expect_unresolved \*'
16658 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'
16659 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~
16660 $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'
16662 # Both c and cxx compiler support -rpath directly
16663 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16665 hardcode_libdir_separator_F77=:
16669 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16670 hardcode_shlibpath_var_F77=no
16671 export_dynamic_flag_spec_F77='${wl}-Bexport'
16672 runpath_var=LD_RUN_PATH
16673 hardcode_runpath_var=yes
16677 no_undefined_flag_F77=' -z text'
16678 if test "$GCC" = yes; then
16680 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16681 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16682 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16685 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16686 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16687 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16689 hardcode_libdir_flag_spec_F77='-R$libdir'
16690 hardcode_shlibpath_var_F77=no
16692 solaris2.[0-5] | solaris2.[0-5].*) ;;
16694 # The compiler driver will combine linker options so we
16695 # cannot just pass the convience library names through
16696 # without $wl, iff we do not link with $LD.
16697 # Luckily, gcc supports the same syntax we need for Sun Studio.
16698 # Supported since Solaris 2.6 (maybe 2.5.1?)
16701 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16703 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' ;;
16706 link_all_deplibs_F77=yes
16710 if test "x$host_vendor" = xsequent; then
16711 # Use $CC to link under sequent, because it throws in some extra .o
16712 # files that make .init and .fini sections work.
16713 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16715 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16717 hardcode_libdir_flag_spec_F77='-L$libdir'
16718 hardcode_direct_F77=yes
16719 hardcode_minus_L_F77=yes
16720 hardcode_shlibpath_var_F77=no
16724 case $host_vendor in
16726 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16727 hardcode_direct_F77=yes # is this really true???
16730 ## LD is ld it makes a PLAMLIB
16731 ## CC just makes a GrossModule.
16732 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16733 reload_cmds_F77='$CC -r -o $output$reload_objs'
16734 hardcode_direct_F77=no
16737 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16738 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16741 runpath_var='LD_RUN_PATH'
16742 hardcode_shlibpath_var_F77=no
16746 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16747 hardcode_shlibpath_var_F77=no
16748 export_dynamic_flag_spec_F77='-Bexport'
16752 if test -d /usr/nec; then
16753 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16754 hardcode_shlibpath_var_F77=no
16755 runpath_var=LD_RUN_PATH
16756 hardcode_runpath_var=yes
16762 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16763 hardcode_direct_F77=yes
16764 hardcode_minus_L_F77=no
16765 hardcode_shlibpath_var_F77=no
16766 hardcode_runpath_var=yes
16767 runpath_var=LD_RUN_PATH
16770 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16771 no_undefined_flag_F77='${wl}-z ${wl}text'
16772 if test "$GCC" = yes; then
16773 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16775 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16777 runpath_var='LD_RUN_PATH'
16778 hardcode_shlibpath_var_F77=no
16782 no_undefined_flag_F77=' -z text'
16783 # $CC -shared without GNU ld will not create a library from C++
16784 # object files and a static libstdc++, better avoid it by now
16785 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16786 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16787 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16788 hardcode_libdir_flag_spec_F77=
16789 hardcode_shlibpath_var_F77=no
16790 runpath_var='LD_RUN_PATH'
16794 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16795 hardcode_libdir_flag_spec_F77='-L$libdir'
16796 hardcode_shlibpath_var_F77=no
16805 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16806 echo "${ECHO_T}$ld_shlibs_F77" >&6
16807 test "$ld_shlibs_F77" = no && can_build_shared=no
16809 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16810 if test "$GCC" = yes; then
16811 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16815 # Do we need to explicitly link libc?
16817 case "x$archive_cmds_need_lc_F77" in
16819 # Assume -lc should be added
16820 archive_cmds_need_lc_F77=yes
16822 if test "$enable_shared" = yes && test "$GCC" = yes; then
16823 case $archive_cmds_F77 in
16825 # FIXME: we may have to deal with multi-command sequences.
16828 # Test whether the compiler implicitly links with -lc since on some
16829 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16830 # to ld, don't add -lc before -lgcc.
16831 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16832 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16834 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16837 (eval $ac_compile) 2>&5
16839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840 (exit $ac_status); } 2>conftest.err; then
16843 libobjs=conftest.$ac_objext
16845 wl=$lt_prog_compiler_wl_F77
16851 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16852 allow_undefined_flag_F77=
16853 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16854 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); }
16859 archive_cmds_need_lc_F77=no
16861 archive_cmds_need_lc_F77=yes
16863 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16865 cat conftest.err 1>&5
16868 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16869 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
16876 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16877 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16878 library_names_spec=
16879 libname_spec='lib$name'
16883 postuninstall_cmds=
16887 shlibpath_overrides_runpath=unknown
16889 dynamic_linker="$host_os ld.so"
16890 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16891 if test "$GCC" = yes; then
16892 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16893 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16894 # if the path contains ";" then we assume it to be the separator
16895 # otherwise default to the standard path separator (i.e. ":") - it is
16896 # assumed that no part of a normal pathname contains ";" but that should
16897 # okay in the real world where ";" in dirpaths is itself problematic.
16898 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16900 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16903 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16905 need_lib_prefix=unknown
16906 hardcode_into_libs=no
16908 # when you set need_version to no, make sure it does not cause -set_version
16909 # flags to be left without arguments
16910 need_version=unknown
16915 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16916 shlibpath_var=LIBPATH
16918 # AIX 3 has no versioning support, so we append a major version to the name.
16919 soname_spec='${libname}${release}${shared_ext}$major'
16926 hardcode_into_libs=yes
16927 if test "$host_cpu" = ia64; then
16928 # AIX 5 supports IA64
16929 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16930 shlibpath_var=LD_LIBRARY_PATH
16932 # With GCC up to 2.95.x, collect2 would create an import file
16933 # for dependence libraries. The import file would start with
16934 # the line `#! .'. This would cause the generated library to
16935 # depend on `.', always an invalid library. This was fixed in
16936 # development snapshots of GCC prior to 3.0.
16938 aix4 | aix4.[01] | aix4.[01].*)
16939 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16941 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16944 can_build_shared=no
16948 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16949 # soname into executable. Probably we can add versioning support to
16950 # collect2, so additional links can be useful in future.
16951 if test "$aix_use_runtimelinking" = yes; then
16952 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16953 # instead of lib<name>.a to let people know that these are not
16954 # typical AIX shared libraries.
16955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16957 # We preserve .a as extension for shared libraries through AIX4.2
16958 # and later when we are not doing run time linking.
16959 library_names_spec='${libname}${release}.a $libname.a'
16960 soname_spec='${libname}${release}${shared_ext}$major'
16962 shlibpath_var=LIBPATH
16967 library_names_spec='$libname.ixlibrary $libname.a'
16968 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16969 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'
16973 library_names_spec='${libname}${shared_ext}'
16974 dynamic_linker="$host_os ld.so"
16975 shlibpath_var=LIBRARY_PATH
16981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16982 soname_spec='${libname}${release}${shared_ext}$major'
16983 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16984 shlibpath_var=LD_LIBRARY_PATH
16985 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16986 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16987 # the default ld.so.conf also contains /usr/contrib/lib and
16988 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16989 # libtool to hard-code these into programs
16992 cygwin* | mingw* | pw32*)
16993 version_type=windows
16998 case $GCC,$host_os in
16999 yes,cygwin* | yes,mingw* | yes,pw32*)
17000 library_names_spec='$libname.dll.a'
17001 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17002 postinstall_cmds='base_file=`basename \${file}`~
17003 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17004 dldir=$destdir/`dirname \$dlpath`~
17005 test -d \$dldir || mkdir -p \$dldir~
17006 $install_prog $dir/$dlname \$dldir/$dlname'
17007 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17008 dlpath=$dir/\$dldll~
17010 shlibpath_overrides_runpath=yes
17014 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17015 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17016 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17019 # MinGW DLLs use traditional 'lib' prefix
17020 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17021 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17022 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17023 # It is most probably a Windows format PATH printed by
17024 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17025 # path with ; separators, and with drive letters. We can handle the
17026 # drive letters (cygwin fileutils understands them), so leave them,
17027 # especially as we might pass files found there to a mingw objdump,
17028 # which wouldn't understand a cygwinified path. Ahh.
17029 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17031 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17035 # pw32 DLLs use 'pw' prefix rather than 'lib'
17036 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17042 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17045 dynamic_linker='Win32 ld.exe'
17046 # FIXME: first we should search . and the directory the executable is in
17050 darwin* | rhapsody*)
17051 dynamic_linker="$host_os dyld"
17052 version_type=darwin
17055 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17056 soname_spec='${libname}${release}${major}$shared_ext'
17057 shlibpath_overrides_runpath=yes
17058 shlibpath_var=DYLD_LIBRARY_PATH
17059 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17060 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17061 if test "$GCC" = yes; then
17062 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"`
17064 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17066 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17074 soname_spec='${libname}${release}${shared_ext}$major'
17075 shlibpath_var=LD_LIBRARY_PATH
17086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17087 soname_spec='${libname}${release}${shared_ext}$major'
17088 shlibpath_var=LD_LIBRARY_PATH
17089 shlibpath_overrides_runpath=no
17090 hardcode_into_libs=yes
17091 dynamic_linker='GNU ld.so'
17094 freebsd* | dragonfly*)
17095 # DragonFly does not have aout. When/if they implement a new
17096 # versioning mechanism, adjust this.
17097 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17098 version_type=freebsd-$objformat
17099 case $version_type in
17101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17106 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17110 shlibpath_var=LD_LIBRARY_PATH
17113 shlibpath_overrides_runpath=yes
17115 freebsd3.[01]* | freebsdelf3.[01]*)
17116 shlibpath_overrides_runpath=yes
17117 hardcode_into_libs=yes
17120 shlibpath_overrides_runpath=no
17121 hardcode_into_libs=yes
17130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17131 soname_spec='${libname}${release}${shared_ext}$major'
17132 shlibpath_var=LD_LIBRARY_PATH
17133 hardcode_into_libs=yes
17136 hpux9* | hpux10* | hpux11*)
17137 # Give a soname corresponding to the major version so that dld.sl refuses to
17138 # link against other versions.
17142 case "$host_cpu" in
17145 hardcode_into_libs=yes
17146 dynamic_linker="$host_os dld.so"
17147 shlibpath_var=LD_LIBRARY_PATH
17148 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17150 soname_spec='${libname}${release}${shared_ext}$major'
17151 if test "X$HPUX_IA64_MODE" = X32; then
17152 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17154 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17156 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17160 hardcode_into_libs=yes
17161 dynamic_linker="$host_os dld.sl"
17162 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17163 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17165 soname_spec='${libname}${release}${shared_ext}$major'
17166 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17167 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17171 dynamic_linker="$host_os dld.sl"
17172 shlibpath_var=SHLIB_PATH
17173 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17175 soname_spec='${libname}${release}${shared_ext}$major'
17178 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17179 postinstall_cmds='chmod 555 $lib'
17182 irix5* | irix6* | nonstopux*)
17184 nonstopux*) version_type=nonstopux ;;
17186 if test "$lt_cv_prog_gnu_ld" = yes; then
17194 soname_spec='${libname}${release}${shared_ext}$major'
17195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17197 irix5* | nonstopux*)
17198 libsuff= shlibsuff=
17201 case $LD in # libtool.m4 will add one of these switches to LD
17202 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17203 libsuff= shlibsuff= libmagic=32-bit;;
17204 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17205 libsuff=32 shlibsuff=N32 libmagic=N32;;
17206 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17207 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17208 *) libsuff= shlibsuff= libmagic=never-match;;
17212 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17213 shlibpath_overrides_runpath=no
17214 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17215 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17216 hardcode_into_libs=yes
17219 # No shared lib support for Linux oldld, aout, or coff.
17220 linux*oldld* | linux*aout* | linux*coff*)
17224 # This must be Linux ELF.
17229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17230 soname_spec='${libname}${release}${shared_ext}$major'
17231 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17232 shlibpath_var=LD_LIBRARY_PATH
17233 shlibpath_overrides_runpath=no
17234 # This implies no fast_install, which is unacceptable.
17235 # Some rework will be needed to allow for fast_install
17236 # before this can be enabled.
17237 hardcode_into_libs=yes
17239 # Append ld.so.conf contents to the search path
17240 if test -f /etc/ld.so.conf; then
17241 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' ' '`
17242 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17245 # We used to test for /lib/ld.so.1 and disable shared libraries on
17246 # powerpc, because MkLinux only supported shared libraries with the
17247 # GNU dynamic linker. Since this was broken with cross compilers,
17248 # most powerpc-linux boxes support dynamic linking these days and
17249 # people can always --disable-shared, the test was removed, and we
17250 # assume the GNU/Linux dynamic linker is in use.
17251 dynamic_linker='GNU/Linux ld.so'
17258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17259 soname_spec='${libname}${release}${shared_ext}$major'
17260 shlibpath_var=LD_LIBRARY_PATH
17261 shlibpath_overrides_runpath=no
17262 hardcode_into_libs=yes
17263 dynamic_linker='GNU ld.so'
17270 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17272 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17273 dynamic_linker='NetBSD (a.out) ld.so'
17275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17276 soname_spec='${libname}${release}${shared_ext}$major'
17277 dynamic_linker='NetBSD ld.elf_so'
17279 shlibpath_var=LD_LIBRARY_PATH
17280 shlibpath_overrides_runpath=yes
17281 hardcode_into_libs=yes
17286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17287 shlibpath_var=LD_LIBRARY_PATH
17288 shlibpath_overrides_runpath=yes
17295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17296 soname_spec='${libname}${release}${shared_ext}$major'
17297 shlibpath_var=LD_LIBRARY_PATH
17298 shlibpath_overrides_runpath=yes
17304 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17306 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17307 *) need_version=no ;;
17309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17310 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17311 shlibpath_var=LD_LIBRARY_PATH
17312 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17314 openbsd2.[89] | openbsd2.[89].*)
17315 shlibpath_overrides_runpath=no
17318 shlibpath_overrides_runpath=yes
17322 shlibpath_overrides_runpath=yes
17327 libname_spec='$name'
17330 library_names_spec='$libname${shared_ext} $libname.a'
17331 dynamic_linker='OS/2 ld.exe'
17332 shlibpath_var=LIBPATH
17335 osf3* | osf4* | osf5*)
17339 soname_spec='${libname}${release}${shared_ext}$major'
17340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17341 shlibpath_var=LD_LIBRARY_PATH
17342 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17343 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17348 soname_spec='${libname}${release}${shared_ext}$major'
17349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17350 shlibpath_var=LD_LIBRARY_PATH
17357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17358 soname_spec='${libname}${release}${shared_ext}$major'
17359 shlibpath_var=LD_LIBRARY_PATH
17360 shlibpath_overrides_runpath=yes
17361 hardcode_into_libs=yes
17362 # ldd complains unless libraries are executable
17363 postinstall_cmds='chmod +x $lib'
17368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17369 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17370 shlibpath_var=LD_LIBRARY_PATH
17371 shlibpath_overrides_runpath=yes
17372 if test "$with_gnu_ld" = yes; then
17378 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
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 case $host_vendor in
17385 shlibpath_overrides_runpath=no
17387 export_dynamic_flag_spec='${wl}-Blargedynsym'
17388 runpath_var=LD_RUN_PATH
17396 shlibpath_overrides_runpath=no
17397 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17403 if test -d /usr/nec ;then
17405 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17406 soname_spec='$libname${shared_ext}.$major'
17407 shlibpath_var=LD_LIBRARY_PATH
17413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17414 soname_spec='${libname}${release}${shared_ext}$major'
17415 shlibpath_var=LD_LIBRARY_PATH
17422 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17423 echo "${ECHO_T}$dynamic_linker" >&6
17424 test "$dynamic_linker" = no && can_build_shared=no
17426 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17427 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17428 hardcode_action_F77=
17429 if test -n "$hardcode_libdir_flag_spec_F77" || \
17430 test -n "$runpath_var_F77" || \
17431 test "X$hardcode_automatic_F77" = "Xyes" ; then
17433 # We can hardcode non-existant directories.
17434 if test "$hardcode_direct_F77" != no &&
17435 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17436 # have to relink, otherwise we might link with an installed library
17437 # when we should be linking with a yet-to-be-installed one
17438 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17439 test "$hardcode_minus_L_F77" != no; then
17440 # Linking always hardcodes the temporary library directory.
17441 hardcode_action_F77=relink
17443 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17444 hardcode_action_F77=immediate
17447 # We cannot hardcode anything, or else we can only hardcode existing
17449 hardcode_action_F77=unsupported
17451 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17452 echo "${ECHO_T}$hardcode_action_F77" >&6
17454 if test "$hardcode_action_F77" = relink; then
17455 # Fast installation is not supported
17456 enable_fast_install=no
17457 elif test "$shlibpath_overrides_runpath" = yes ||
17458 test "$enable_shared" = no; then
17459 # Fast installation is not necessary
17460 enable_fast_install=needless
17465 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17466 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17467 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17468 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17469 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17470 echo "$as_me:$LINENO: result: yes" >&5
17471 echo "${ECHO_T}yes" >&6
17473 # FIXME - insert some real tests, host_os isn't really good enough
17476 if test -n "$STRIP" ; then
17477 striplib="$STRIP -x"
17478 echo "$as_me:$LINENO: result: yes" >&5
17479 echo "${ECHO_T}yes" >&6
17481 echo "$as_me:$LINENO: result: no" >&5
17482 echo "${ECHO_T}no" >&6
17486 echo "$as_me:$LINENO: result: no" >&5
17487 echo "${ECHO_T}no" >&6
17494 # The else clause should only fire when bootstrapping the
17495 # libtool distribution, otherwise you forgot to ship ltmain.sh
17496 # with your package, and you will get complaints that there are
17497 # no rules to generate ltmain.sh.
17498 if test -f "$ltmain"; then
17499 # See if we are running on zsh, and set the options which allow our commands through
17500 # without removal of \ escapes.
17501 if test -n "${ZSH_VERSION+set}" ; then
17502 setopt NO_GLOB_SUBST
17504 # Now quote all the things that may contain metacharacters while being
17505 # careful not to overquote the AC_SUBSTed values. We take copies of the
17506 # variables and quote the copies for generation of the libtool script.
17507 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17509 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17510 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17511 deplibs_check_method reload_flag reload_cmds need_locks \
17512 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17513 lt_cv_sys_global_symbol_to_c_name_address \
17514 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17515 old_postinstall_cmds old_postuninstall_cmds \
17519 lt_prog_compiler_wl_F77 \
17520 lt_prog_compiler_pic_F77 \
17521 lt_prog_compiler_static_F77 \
17522 lt_prog_compiler_no_builtin_flag_F77 \
17523 export_dynamic_flag_spec_F77 \
17524 thread_safe_flag_spec_F77 \
17525 whole_archive_flag_spec_F77 \
17526 enable_shared_with_static_runtimes_F77 \
17527 old_archive_cmds_F77 \
17528 old_archive_from_new_cmds_F77 \
17529 predep_objects_F77 \
17530 postdep_objects_F77 \
17533 compiler_lib_search_path_F77 \
17535 archive_expsym_cmds_F77 \
17536 postinstall_cmds_F77 \
17537 postuninstall_cmds_F77 \
17538 old_archive_from_expsyms_cmds_F77 \
17539 allow_undefined_flag_F77 \
17540 no_undefined_flag_F77 \
17541 export_symbols_cmds_F77 \
17542 hardcode_libdir_flag_spec_F77 \
17543 hardcode_libdir_flag_spec_ld_F77 \
17544 hardcode_libdir_separator_F77 \
17545 hardcode_automatic_F77 \
17547 module_expsym_cmds_F77 \
17548 lt_cv_prog_compiler_c_o_F77 \
17549 exclude_expsyms_F77 \
17550 include_expsyms_F77; do
17553 old_archive_cmds_F77 | \
17554 old_archive_from_new_cmds_F77 | \
17555 archive_cmds_F77 | \
17556 archive_expsym_cmds_F77 | \
17557 module_cmds_F77 | \
17558 module_expsym_cmds_F77 | \
17559 old_archive_from_expsyms_cmds_F77 | \
17560 export_symbols_cmds_F77 | \
17561 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17562 postinstall_cmds | postuninstall_cmds | \
17563 old_postinstall_cmds | old_postuninstall_cmds | \
17564 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17565 # Double-quote double-evaled strings.
17566 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17569 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17575 *'\$0 --fallback-echo"')
17576 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17582 cat <<__EOF__ >> "$cfgfile"
17583 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17585 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17587 # Shell to use when invoking shell scripts.
17590 # Whether or not to build shared libraries.
17591 build_libtool_libs=$enable_shared
17593 # Whether or not to build static libraries.
17594 build_old_libs=$enable_static
17596 # Whether or not to add -lc for building shared libraries.
17597 build_libtool_need_lc=$archive_cmds_need_lc_F77
17599 # Whether or not to disallow shared libs when runtime libs are static
17600 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17602 # Whether or not to optimize for fast installation.
17603 fast_install=$enable_fast_install
17606 host_alias=$host_alias
17610 # The build system.
17611 build_alias=$build_alias
17615 # An echo program that does not interpret backslashes.
17620 AR_FLAGS=$lt_AR_FLAGS
17625 # A language-specific compiler.
17626 CC=$lt_compiler_F77
17628 # Is the compiler the GNU C compiler?
17634 # The linker used to build libraries.
17637 # Whether we need hard or soft links.
17640 # A BSD-compatible nm program.
17643 # A symbol stripping program
17646 # Used to examine libraries when file_magic_cmd begins "file"
17647 MAGIC_CMD=$MAGIC_CMD
17649 # Used on cygwin: DLL creation program.
17652 # Used on cygwin: object dumper.
17655 # Used on cygwin: assembler.
17658 # The name of the directory that contains temporary libtool files.
17661 # How to create reloadable object files.
17662 reload_flag=$lt_reload_flag
17663 reload_cmds=$lt_reload_cmds
17665 # How to pass a linker flag through the compiler.
17666 wl=$lt_lt_prog_compiler_wl_F77
17668 # Object file suffix (normally "o").
17669 objext="$ac_objext"
17671 # Old archive suffix (normally "a").
17674 # Shared library suffix (normally ".so").
17675 shrext_cmds='$shrext_cmds'
17677 # Executable file suffix (normally "").
17680 # Additional compiler flags for building library objects.
17681 pic_flag=$lt_lt_prog_compiler_pic_F77
17684 # What is the maximum length of a command?
17685 max_cmd_len=$lt_cv_sys_max_cmd_len
17687 # Does compiler simultaneously support -c and -o options?
17688 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17690 # Must we lock files when doing compilation?
17691 need_locks=$lt_need_locks
17693 # Do we need the lib prefix for modules?
17694 need_lib_prefix=$need_lib_prefix
17696 # Do we need a version for libraries?
17697 need_version=$need_version
17699 # Whether dlopen is supported.
17700 dlopen_support=$enable_dlopen
17702 # Whether dlopen of programs is supported.
17703 dlopen_self=$enable_dlopen_self
17705 # Whether dlopen of statically linked programs is supported.
17706 dlopen_self_static=$enable_dlopen_self_static
17708 # Compiler flag to prevent dynamic linking.
17709 link_static_flag=$lt_lt_prog_compiler_static_F77
17711 # Compiler flag to turn off builtin functions.
17712 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17714 # Compiler flag to allow reflexive dlopens.
17715 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17717 # Compiler flag to generate shared objects directly from archives.
17718 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17720 # Compiler flag to generate thread-safe objects.
17721 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17723 # Library versioning type.
17724 version_type=$version_type
17726 # Format of library name prefix.
17727 libname_spec=$lt_libname_spec
17729 # List of archive names. First name is the real one, the rest are links.
17730 # The last name is the one that the linker finds with -lNAME.
17731 library_names_spec=$lt_library_names_spec
17733 # The coded name of the library, if different from the real name.
17734 soname_spec=$lt_soname_spec
17736 # Commands used to build and install an old-style archive.
17738 old_archive_cmds=$lt_old_archive_cmds_F77
17739 old_postinstall_cmds=$lt_old_postinstall_cmds
17740 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17742 # Create an old-style archive from a shared archive.
17743 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17745 # Create a temporary old-style archive to link instead of a shared archive.
17746 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17748 # Commands used to build and install a shared archive.
17749 archive_cmds=$lt_archive_cmds_F77
17750 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17751 postinstall_cmds=$lt_postinstall_cmds
17752 postuninstall_cmds=$lt_postuninstall_cmds
17754 # Commands used to build a loadable module (assumed same as above if empty)
17755 module_cmds=$lt_module_cmds_F77
17756 module_expsym_cmds=$lt_module_expsym_cmds_F77
17758 # Commands to strip libraries.
17759 old_striplib=$lt_old_striplib
17760 striplib=$lt_striplib
17762 # Dependencies to place before the objects being linked to create a
17764 predep_objects=$lt_predep_objects_F77
17766 # Dependencies to place after the objects being linked to create a
17768 postdep_objects=$lt_postdep_objects_F77
17770 # Dependencies to place before the objects being linked to create a
17772 predeps=$lt_predeps_F77
17774 # Dependencies to place after the objects being linked to create a
17776 postdeps=$lt_postdeps_F77
17778 # The library search path used internally by the compiler when linking
17779 # a shared library.
17780 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17782 # Method to check whether dependent libraries are shared objects.
17783 deplibs_check_method=$lt_deplibs_check_method
17785 # Command to use when deplibs_check_method == file_magic.
17786 file_magic_cmd=$lt_file_magic_cmd
17788 # Flag that allows shared libraries with undefined symbols to be built.
17789 allow_undefined_flag=$lt_allow_undefined_flag_F77
17791 # Flag that forces no undefined symbols.
17792 no_undefined_flag=$lt_no_undefined_flag_F77
17794 # Commands used to finish a libtool library installation in a directory.
17795 finish_cmds=$lt_finish_cmds
17797 # Same as above, but a single script fragment to be evaled but not shown.
17798 finish_eval=$lt_finish_eval
17800 # Take the output of nm and produce a listing of raw symbols and C names.
17801 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17803 # Transform the output of nm in a proper C declaration
17804 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17806 # Transform the output of nm in a C name address pair
17807 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17809 # This is the shared library runtime path variable.
17810 runpath_var=$runpath_var
17812 # This is the shared library path variable.
17813 shlibpath_var=$shlibpath_var
17815 # Is shlibpath searched before the hard-coded library search path?
17816 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17818 # How to hardcode a shared library path into an executable.
17819 hardcode_action=$hardcode_action_F77
17821 # Whether we should hardcode library paths into libraries.
17822 hardcode_into_libs=$hardcode_into_libs
17824 # Flag to hardcode \$libdir into a binary during linking.
17825 # This must work even if \$libdir does not exist.
17826 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17828 # If ld is used when linking, flag to hardcode \$libdir into
17829 # a binary during linking. This must work even if \$libdir does
17831 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17833 # Whether we need a single -rpath flag with a separated argument.
17834 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17836 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17837 # resulting binary.
17838 hardcode_direct=$hardcode_direct_F77
17840 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17841 # resulting binary.
17842 hardcode_minus_L=$hardcode_minus_L_F77
17844 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17845 # the resulting binary.
17846 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17848 # Set to yes if building a shared library automatically hardcodes DIR into the library
17849 # and all subsequent libraries and executables linked against it.
17850 hardcode_automatic=$hardcode_automatic_F77
17852 # Variables whose values should be saved in libtool wrapper scripts and
17853 # restored at relink time.
17854 variables_saved_for_relink="$variables_saved_for_relink"
17856 # Whether libtool must link a program against all its dependency libraries.
17857 link_all_deplibs=$link_all_deplibs_F77
17859 # Compile-time system search path for libraries
17860 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17862 # Run-time system search path for libraries
17863 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17865 # Fix the shell variable \$srcfile for the compiler.
17866 fix_srcfile_path="$fix_srcfile_path_F77"
17868 # Set to yes if exported symbols are required.
17869 always_export_symbols=$always_export_symbols_F77
17871 # The commands to list exported symbols.
17872 export_symbols_cmds=$lt_export_symbols_cmds_F77
17874 # The commands to extract the exported symbol list from a shared archive.
17875 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17877 # Symbols that should not be listed in the preloaded symbols.
17878 exclude_expsyms=$lt_exclude_expsyms_F77
17880 # Symbols that must always be exported.
17881 include_expsyms=$lt_include_expsyms_F77
17883 # ### END LIBTOOL TAG CONFIG: $tagname
17889 # If there is no Makefile yet, we rely on a make rule to execute
17890 # `config.status --recheck' to rerun these tests and create the
17891 # libtool script then.
17892 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17893 if test -f "$ltmain_in"; then
17894 test -f Makefile && make "$ltmain"
17900 ac_cpp='$CPP $CPPFLAGS'
17901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17913 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17917 # Source file extension for Java test sources.
17920 # Object file extension for compiled Java test sources.
17924 # Code to be used in simple compile tests
17925 lt_simple_compile_test_code="class foo {}\n"
17927 # Code to be used in simple link tests
17928 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17930 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17932 # If no C compiler was specified, use CC.
17935 # Allow CC to be a program name with arguments.
17939 # save warnings/boilerplate of simple test code
17940 ac_outfile=conftest.$ac_objext
17941 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17942 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
17943 _lt_compiler_boilerplate=`cat conftest.err`
17946 ac_outfile=conftest.$ac_objext
17947 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17948 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
17949 _lt_linker_boilerplate=`cat conftest.err`
17953 # Allow CC to be a program name with arguments.
17958 for cc_temp in $compiler""; do
17960 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17961 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17966 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17969 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17970 archive_cmds_need_lc_GCJ=no
17972 old_archive_cmds_GCJ=$old_archive_cmds
17975 lt_prog_compiler_no_builtin_flag_GCJ=
17977 if test "$GCC" = yes; then
17978 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17981 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17982 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17983 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17984 echo $ECHO_N "(cached) $ECHO_C" >&6
17986 lt_cv_prog_compiler_rtti_exceptions=no
17987 ac_outfile=conftest.$ac_objext
17988 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17989 lt_compiler_flag="-fno-rtti -fno-exceptions"
17990 # Insert the option either (1) after the last *FLAGS variable, or
17991 # (2) before a word containing "conftest.", or (3) at the end.
17992 # Note that $ac_compile itself does not contain backslashes and begins
17993 # with a dollar sign (not a hyphen), so the echo should work correctly.
17994 # The option is referenced via a variable to avoid confusing sed.
17995 lt_compile=`echo "$ac_compile" | $SED \
17996 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17997 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17998 -e 's:$: $lt_compiler_flag:'`
17999 (eval echo "\"\$as_me:17999: $lt_compile\"" >&5)
18000 (eval "$lt_compile" 2>conftest.err)
18002 cat conftest.err >&5
18003 echo "$as_me:18003: \$? = $ac_status" >&5
18004 if (exit $ac_status) && test -s "$ac_outfile"; then
18005 # The compiler can only warn and ignore the option if not recognized
18006 # So say no if there are warnings other than the usual output.
18007 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
18008 $SED '/^$/d' conftest.err >conftest.er2
18009 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
18010 lt_cv_prog_compiler_rtti_exceptions=yes
18016 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18017 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
18019 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18020 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18027 lt_prog_compiler_wl_GCJ=
18028 lt_prog_compiler_pic_GCJ=
18029 lt_prog_compiler_static_GCJ=
18031 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18032 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18034 if test "$GCC" = yes; then
18035 lt_prog_compiler_wl_GCJ='-Wl,'
18036 lt_prog_compiler_static_GCJ='-static'
18040 # All AIX code is PIC.
18041 if test "$host_cpu" = ia64; then
18042 # AIX 5 now supports IA64 processor
18043 lt_prog_compiler_static_GCJ='-Bstatic'
18048 # FIXME: we need at least 68020 code to build shared libraries, but
18049 # adding the `-m68020' flag to GCC prevents building anything better,
18051 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18054 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18055 # PIC is the default for these OSes.
18058 mingw* | pw32* | os2*)
18059 # This hack is so that the source file can tell whether it is being
18060 # built for inclusion in a dll (and should export symbols for example).
18061 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18064 darwin* | rhapsody*)
18065 # PIC is the default on this platform
18066 # Common symbols not allowed in MH_DYLIB files
18067 lt_prog_compiler_pic_GCJ='-fno-common'
18071 # Just because we use GCC doesn't mean we suddenly get shared libraries
18072 # on systems that don't support them.
18073 lt_prog_compiler_can_build_shared_GCJ=no
18078 if test -d /usr/nec; then
18079 lt_prog_compiler_pic_GCJ=-Kconform_pic
18084 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18085 # not for PA HP-UX.
18086 case "$host_cpu" in
18091 lt_prog_compiler_pic_GCJ='-fPIC'
18097 lt_prog_compiler_pic_GCJ='-fPIC'
18101 # PORTME Check for flag to pass linker flags through the system compiler.
18104 lt_prog_compiler_wl_GCJ='-Wl,'
18105 if test "$host_cpu" = ia64; then
18106 # AIX 5 now supports IA64 processor
18107 lt_prog_compiler_static_GCJ='-Bstatic'
18109 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18113 # PIC is the default on this platform
18114 # Common symbols not allowed in MH_DYLIB files
18115 case $cc_basename in
18117 lt_prog_compiler_pic_GCJ='-qnocommon'
18118 lt_prog_compiler_wl_GCJ='-Wl,'
18123 mingw* | pw32* | os2*)
18124 # This hack is so that the source file can tell whether it is being
18125 # built for inclusion in a dll (and should export symbols for example).
18126 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18129 hpux9* | hpux10* | hpux11*)
18130 lt_prog_compiler_wl_GCJ='-Wl,'
18131 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18132 # not for PA HP-UX.
18133 case "$host_cpu" in
18138 lt_prog_compiler_pic_GCJ='+Z'
18141 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18142 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18145 irix5* | irix6* | nonstopux*)
18146 lt_prog_compiler_wl_GCJ='-Wl,'
18147 # PIC (with -KPIC) is the default.
18148 lt_prog_compiler_static_GCJ='-non_shared'
18152 lt_prog_compiler_pic_GCJ='-KPIC'
18153 lt_prog_compiler_static_GCJ='-Bstatic'
18157 case $cc_basename in
18159 lt_prog_compiler_wl_GCJ='-Wl,'
18160 lt_prog_compiler_pic_GCJ='-KPIC'
18161 lt_prog_compiler_static_GCJ='-static'
18163 pgcc* | pgf77* | pgf90*)
18164 # Portland Group compilers (*not* the Pentium gcc compiler,
18165 # which looks to be a dead project)
18166 lt_prog_compiler_wl_GCJ='-Wl,'
18167 lt_prog_compiler_pic_GCJ='-fpic'
18168 lt_prog_compiler_static_GCJ='-static'
18171 lt_prog_compiler_wl_GCJ='-Wl,'
18172 # All Alpha code is PIC.
18173 lt_prog_compiler_static_GCJ='-non_shared'
18178 osf3* | osf4* | osf5*)
18179 lt_prog_compiler_wl_GCJ='-Wl,'
18180 # All OSF/1 code is PIC.
18181 lt_prog_compiler_static_GCJ='-non_shared'
18185 lt_prog_compiler_pic_GCJ='-Kpic'
18186 lt_prog_compiler_static_GCJ='-dn'
18190 lt_prog_compiler_pic_GCJ='-KPIC'
18191 lt_prog_compiler_static_GCJ='-Bstatic'
18192 case $cc_basename in
18193 f77* | f90* | f95*)
18194 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18196 lt_prog_compiler_wl_GCJ='-Wl,';;
18201 lt_prog_compiler_wl_GCJ='-Qoption ld '
18202 lt_prog_compiler_pic_GCJ='-PIC'
18203 lt_prog_compiler_static_GCJ='-Bstatic'
18206 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18207 lt_prog_compiler_wl_GCJ='-Wl,'
18208 lt_prog_compiler_pic_GCJ='-KPIC'
18209 lt_prog_compiler_static_GCJ='-Bstatic'
18213 if test -d /usr/nec ;then
18214 lt_prog_compiler_pic_GCJ='-Kconform_pic'
18215 lt_prog_compiler_static_GCJ='-Bstatic'
18220 lt_prog_compiler_wl_GCJ='-Wl,'
18221 lt_prog_compiler_can_build_shared_GCJ=no
18225 lt_prog_compiler_pic_GCJ='-pic'
18226 lt_prog_compiler_static_GCJ='-Bstatic'
18230 lt_prog_compiler_can_build_shared_GCJ=no
18235 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18236 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
18239 # Check to make sure the PIC flag actually works.
18241 if test -n "$lt_prog_compiler_pic_GCJ"; then
18243 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18244 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
18245 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18246 echo $ECHO_N "(cached) $ECHO_C" >&6
18248 lt_prog_compiler_pic_works_GCJ=no
18249 ac_outfile=conftest.$ac_objext
18250 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18251 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18252 # Insert the option either (1) after the last *FLAGS variable, or
18253 # (2) before a word containing "conftest.", or (3) at the end.
18254 # Note that $ac_compile itself does not contain backslashes and begins
18255 # with a dollar sign (not a hyphen), so the echo should work correctly.
18256 # The option is referenced via a variable to avoid confusing sed.
18257 lt_compile=`echo "$ac_compile" | $SED \
18258 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18259 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18260 -e 's:$: $lt_compiler_flag:'`
18261 (eval echo "\"\$as_me:18261: $lt_compile\"" >&5)
18262 (eval "$lt_compile" 2>conftest.err)
18264 cat conftest.err >&5
18265 echo "$as_me:18265: \$? = $ac_status" >&5
18266 if (exit $ac_status) && test -s "$ac_outfile"; then
18267 # The compiler can only warn and ignore the option if not recognized
18268 # So say no if there are warnings other than the usual output.
18269 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
18270 $SED '/^$/d' conftest.err >conftest.er2
18271 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
18272 lt_prog_compiler_pic_works_GCJ=yes
18278 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18279 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
18281 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18282 case $lt_prog_compiler_pic_GCJ in
18284 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18287 lt_prog_compiler_pic_GCJ=
18288 lt_prog_compiler_can_build_shared_GCJ=no
18293 # For platforms which do not support PIC, -DPIC is meaningless:
18295 lt_prog_compiler_pic_GCJ=
18298 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18302 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18303 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18304 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18305 echo $ECHO_N "(cached) $ECHO_C" >&6
18307 lt_cv_prog_compiler_c_o_GCJ=no
18308 $rm -r conftest 2>/dev/null
18312 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18314 lt_compiler_flag="-o out/conftest2.$ac_objext"
18315 # Insert the option either (1) after the last *FLAGS variable, or
18316 # (2) before a word containing "conftest.", or (3) at the end.
18317 # Note that $ac_compile itself does not contain backslashes and begins
18318 # with a dollar sign (not a hyphen), so the echo should work correctly.
18319 lt_compile=`echo "$ac_compile" | $SED \
18320 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18321 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18322 -e 's:$: $lt_compiler_flag:'`
18323 (eval echo "\"\$as_me:18323: $lt_compile\"" >&5)
18324 (eval "$lt_compile" 2>out/conftest.err)
18326 cat out/conftest.err >&5
18327 echo "$as_me:18327: \$? = $ac_status" >&5
18328 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18330 # The compiler can only warn and ignore the option if not recognized
18331 # So say no if there are warnings
18332 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
18333 $SED '/^$/d' out/conftest.err >out/conftest.er2
18334 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18335 lt_cv_prog_compiler_c_o_GCJ=yes
18340 # SGI C++ compiler will create directory out/ii_files/ for
18341 # template instantiation
18342 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18343 $rm out/* && rmdir out
18349 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18350 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
18353 hard_links="nottested"
18354 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18355 # do not overwrite the value of need_locks provided by the user
18356 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18357 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18360 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18362 ln conftest.a conftest.b 2>&5 || hard_links=no
18363 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18364 echo "$as_me:$LINENO: result: $hard_links" >&5
18365 echo "${ECHO_T}$hard_links" >&6
18366 if test "$hard_links" = no; then
18367 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18368 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18375 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18376 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18379 allow_undefined_flag_GCJ=
18380 enable_shared_with_static_runtimes_GCJ=no
18382 archive_expsym_cmds_GCJ=
18383 old_archive_From_new_cmds_GCJ=
18384 old_archive_from_expsyms_cmds_GCJ=
18385 export_dynamic_flag_spec_GCJ=
18386 whole_archive_flag_spec_GCJ=
18387 thread_safe_flag_spec_GCJ=
18388 hardcode_libdir_flag_spec_GCJ=
18389 hardcode_libdir_flag_spec_ld_GCJ=
18390 hardcode_libdir_separator_GCJ=
18391 hardcode_direct_GCJ=no
18392 hardcode_minus_L_GCJ=no
18393 hardcode_shlibpath_var_GCJ=unsupported
18394 link_all_deplibs_GCJ=unknown
18395 hardcode_automatic_GCJ=no
18397 module_expsym_cmds_GCJ=
18398 always_export_symbols_GCJ=no
18399 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18400 # include_expsyms should be a list of space-separated symbols to be *always*
18401 # included in the symbol list
18402 include_expsyms_GCJ=
18403 # exclude_expsyms can be an extended regexp of symbols to exclude
18404 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18405 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18406 # as well as any symbol that contains `d'.
18407 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18408 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18409 # platforms (ab)use it in PIC code, but their linkers get confused if
18410 # the symbol is explicitly referenced. Since portable code cannot
18411 # rely on this symbol name, it's probably fine to never include it in
18412 # preloaded symbol tables.
18413 extract_expsyms_cmds=
18414 # Just being paranoid about ensuring that cc_basename is set.
18415 for cc_temp in $compiler""; do
18417 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18418 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18423 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18426 cygwin* | mingw* | pw32*)
18427 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18428 # When not using gcc, we currently assume that we are using
18429 # Microsoft Visual C++.
18430 if test "$GCC" != yes; then
18440 if test "$with_gnu_ld" = yes; then
18441 # If archive_cmds runs LD, not CC, wlarc should be empty
18444 # Set some defaults for GNU ld with shared library support. These
18445 # are reset later if shared libraries are not supported. Putting them
18446 # here allows them to be overridden if necessary.
18447 runpath_var=LD_RUN_PATH
18448 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18449 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18450 # ancient GNU ld didn't support --whole-archive et. al.
18451 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18452 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18454 whole_archive_flag_spec_GCJ=
18456 supports_anon_versioning=no
18457 case `$LD -v 2>/dev/null` in
18458 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18459 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18460 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18461 *\ 2.11.*) ;; # other 2.11 versions
18462 *) supports_anon_versioning=yes ;;
18465 # See if GNU ld supports shared libraries.
18467 aix3* | aix4* | aix5*)
18468 # On AIX/PPC, the GNU linker is very broken
18469 if test "$host_cpu" != ia64; then
18473 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18474 *** to be unable to reliably create shared libraries on AIX.
18475 *** Therefore, libtool is disabling shared libraries support. If you
18476 *** really care for shared libraries, you may want to modify your PATH
18477 *** so that a non-GNU linker is found, and then restart.
18484 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)'
18485 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18486 hardcode_minus_L_GCJ=yes
18488 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18489 # that the semantics of dynamic libraries on AmigaOS, at least up
18490 # to version 4, is to share data among multiple programs linked
18491 # with the same dynamic library. Since this doesn't match the
18492 # behavior of shared libraries on other platforms, we can't use
18498 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18499 allow_undefined_flag_GCJ=unsupported
18500 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18501 # support --undefined. This deserves some investigation. FIXME
18502 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18508 cygwin* | mingw* | pw32*)
18509 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18510 # as there is no search path for DLLs.
18511 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18512 allow_undefined_flag_GCJ=unsupported
18513 always_export_symbols_GCJ=no
18514 enable_shared_with_static_runtimes_GCJ=yes
18515 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18517 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18518 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
18519 # If the export-symbols file already is a .def file (1st line
18520 # is EXPORTS), use it as is; otherwise, prepend...
18521 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18522 cp $export_symbols $output_objdir/$soname.def;
18524 echo EXPORTS > $output_objdir/$soname.def;
18525 cat $export_symbols >> $output_objdir/$soname.def;
18527 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
18534 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18536 case $cc_basename,$host_cpu in
18537 pgcc*) # Portland Group C compiler
18538 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'
18539 tmp_addflag=' $pic_flag'
18541 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
18542 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'
18543 tmp_addflag=' $pic_flag -Mnomain' ;;
18544 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18545 tmp_addflag=' -i_dynamic' ;;
18546 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18547 tmp_addflag=' -i_dynamic -nofor_main' ;;
18548 ifc* | ifort*) # Intel Fortran compiler
18549 tmp_addflag=' -nofor_main' ;;
18551 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18553 if test $supports_anon_versioning = yes; then
18554 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18555 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18556 $echo "local: *; };" >> $output_objdir/$libname.ver~
18557 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18565 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18566 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18569 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18570 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18575 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18579 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18580 *** create shared libraries on Solaris systems. Therefore, libtool
18581 *** is disabling shared libraries support. We urge you to upgrade GNU
18582 *** binutils to release 2.9.1 or newer. Another option is to modify
18583 *** your PATH or compiler configuration so that the native linker is
18584 *** used, and then restart.
18587 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18588 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18589 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18596 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18598 hardcode_direct_GCJ=yes
18599 hardcode_shlibpath_var_GCJ=no
18603 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18604 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18605 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18612 if test "$ld_shlibs_GCJ" = no; then
18614 hardcode_libdir_flag_spec_GCJ=
18615 export_dynamic_flag_spec_GCJ=
18616 whole_archive_flag_spec_GCJ=
18619 # PORTME fill in a description of your system's linker (not GNU ld)
18622 allow_undefined_flag_GCJ=unsupported
18623 always_export_symbols_GCJ=yes
18624 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'
18625 # Note: this linker hardcodes the directories in LIBPATH if there
18626 # are no directories specified by -L.
18627 hardcode_minus_L_GCJ=yes
18628 if test "$GCC" = yes && test -z "$link_static_flag"; then
18629 # Neither direct hardcoding nor static linking is supported with a
18631 hardcode_direct_GCJ=unsupported
18636 if test "$host_cpu" = ia64; then
18637 # On IA64, the linker does run time linking by default, so we don't
18638 # have to do anything special.
18639 aix_use_runtimelinking=no
18640 exp_sym_flag='-Bexport'
18643 # If we're using GNU nm, then we don't want the "-C" option.
18644 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18645 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18646 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'
18648 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'
18650 aix_use_runtimelinking=no
18652 # Test if we are trying to use run time linking or normal
18653 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18654 # need to do runtime linking.
18655 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18656 for ld_flag in $LDFLAGS; do
18657 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18658 aix_use_runtimelinking=yes
18664 exp_sym_flag='-bexport'
18665 no_entry_flag='-bnoentry'
18668 # When large executables or shared objects are built, AIX ld can
18669 # have problems creating the table of contents. If linking a library
18670 # or program results in "error TOC overflow" add -mminimal-toc to
18671 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18672 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18674 archive_cmds_GCJ=''
18675 hardcode_direct_GCJ=yes
18676 hardcode_libdir_separator_GCJ=':'
18677 link_all_deplibs_GCJ=yes
18679 if test "$GCC" = yes; then
18680 case $host_os in aix4.[012]|aix4.[012].*)
18681 # We only want to do this on AIX 4.2 and lower, the check
18682 # below for broken collect2 doesn't work under 4.3+
18683 collect2name=`${CC} -print-prog-name=collect2`
18684 if test -f "$collect2name" && \
18685 strings "$collect2name" | grep resolve_lib_name >/dev/null
18687 # We have reworked collect2
18688 hardcode_direct_GCJ=yes
18690 # We have old collect2
18691 hardcode_direct_GCJ=unsupported
18692 # It fails to find uninstalled libraries when the uninstalled
18693 # path is not listed in the libpath. Setting hardcode_minus_L
18694 # to unsupported forces relinking
18695 hardcode_minus_L_GCJ=yes
18696 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18697 hardcode_libdir_separator_GCJ=
18700 shared_flag='-shared'
18701 if test "$aix_use_runtimelinking" = yes; then
18702 shared_flag="$shared_flag "'${wl}-G'
18706 if test "$host_cpu" = ia64; then
18707 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18708 # chokes on -Wl,-G. The following line is correct:
18711 if test "$aix_use_runtimelinking" = yes; then
18712 shared_flag='${wl}-G'
18714 shared_flag='${wl}-bM:SRE'
18719 # It seems that -bexpall does not export symbols beginning with
18720 # underscore (_), so it is better to generate a list of symbols to export.
18721 always_export_symbols_GCJ=yes
18722 if test "$aix_use_runtimelinking" = yes; then
18723 # Warning - without using the other runtime loading flags (-brtl),
18724 # -berok will link without error, but may produce a broken library.
18725 allow_undefined_flag_GCJ='-berok'
18726 # Determine the default libpath from the value encoded in an empty executable.
18727 cat >conftest.$ac_ext <<_ACEOF
18730 cat confdefs.h >>conftest.$ac_ext
18731 cat >>conftest.$ac_ext <<_ACEOF
18732 /* end confdefs.h. */
18742 rm -f conftest.$ac_objext conftest$ac_exeext
18743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18744 (eval $ac_link) 2>conftest.er1
18746 grep -v '^ *+' conftest.er1 >conftest.err
18748 cat conftest.err >&5
18749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18750 (exit $ac_status); } &&
18751 { ac_try='test -z "$ac_c_werror_flag"
18752 || test ! -s conftest.err'
18753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18754 (eval $ac_try) 2>&5
18756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18757 (exit $ac_status); }; } &&
18758 { ac_try='test -s conftest$ac_exeext'
18759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18760 (eval $ac_try) 2>&5
18762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18763 (exit $ac_status); }; }; then
18765 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18767 # Check for a 64-bit object if we didn't find anything.
18768 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; }
18771 echo "$as_me: failed program was:" >&5
18772 sed 's/^/| /' conftest.$ac_ext >&5
18775 rm -f conftest.err conftest.$ac_objext \
18776 conftest$ac_exeext conftest.$ac_ext
18777 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18779 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18780 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"
18782 if test "$host_cpu" = ia64; then
18783 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18784 allow_undefined_flag_GCJ="-z nodefs"
18785 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"
18787 # Determine the default libpath from the value encoded in an empty executable.
18788 cat >conftest.$ac_ext <<_ACEOF
18791 cat confdefs.h >>conftest.$ac_ext
18792 cat >>conftest.$ac_ext <<_ACEOF
18793 /* end confdefs.h. */
18803 rm -f conftest.$ac_objext conftest$ac_exeext
18804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18805 (eval $ac_link) 2>conftest.er1
18807 grep -v '^ *+' conftest.er1 >conftest.err
18809 cat conftest.err >&5
18810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18811 (exit $ac_status); } &&
18812 { ac_try='test -z "$ac_c_werror_flag"
18813 || test ! -s conftest.err'
18814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18815 (eval $ac_try) 2>&5
18817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18818 (exit $ac_status); }; } &&
18819 { ac_try='test -s conftest$ac_exeext'
18820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18821 (eval $ac_try) 2>&5
18823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824 (exit $ac_status); }; }; then
18826 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18828 # Check for a 64-bit object if we didn't find anything.
18829 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; }
18832 echo "$as_me: failed program was:" >&5
18833 sed 's/^/| /' conftest.$ac_ext >&5
18836 rm -f conftest.err conftest.$ac_objext \
18837 conftest$ac_exeext conftest.$ac_ext
18838 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18840 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18841 # Warning - without using the other run time loading flags,
18842 # -berok will link without error, but may produce a broken library.
18843 no_undefined_flag_GCJ=' ${wl}-bernotok'
18844 allow_undefined_flag_GCJ=' ${wl}-berok'
18845 # -bexpall does not export symbols beginning with underscore (_)
18846 always_export_symbols_GCJ=yes
18847 # Exported symbols can be pulled into shared objects from archives
18848 whole_archive_flag_spec_GCJ=' '
18849 archive_cmds_need_lc_GCJ=yes
18850 # This is similar to how AIX traditionally builds it's shared libraries.
18851 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'
18857 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)'
18858 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18859 hardcode_minus_L_GCJ=yes
18860 # see comment about different semantics on the GNU ld section
18865 export_dynamic_flag_spec_GCJ=-rdynamic
18868 cygwin* | mingw* | pw32*)
18869 # When not using gcc, we currently assume that we are using
18870 # Microsoft Visual C++.
18871 # hardcode_libdir_flag_spec is actually meaningless, as there is
18872 # no search path for DLLs.
18873 hardcode_libdir_flag_spec_GCJ=' '
18874 allow_undefined_flag_GCJ=unsupported
18875 # Tell ltmain to make .lib files, not .a files.
18877 # Tell ltmain to make .dll files, not .so files.
18879 # FIXME: Setting linknames here is a bad hack.
18880 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18881 # The linker will automatically build a .lib file if we build a DLL.
18882 old_archive_From_new_cmds_GCJ='true'
18883 # FIXME: Should let the user specify the lib program.
18884 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18885 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18886 enable_shared_with_static_runtimes_GCJ=yes
18889 darwin* | rhapsody*)
18891 rhapsody* | darwin1.[012])
18892 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18895 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18896 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18898 case ${MACOSX_DEPLOYMENT_TARGET} in
18900 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18903 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18909 archive_cmds_need_lc_GCJ=no
18910 hardcode_direct_GCJ=no
18911 hardcode_automatic_GCJ=yes
18912 hardcode_shlibpath_var_GCJ=unsupported
18913 whole_archive_flag_spec_GCJ=''
18914 link_all_deplibs_GCJ=yes
18915 if test "$GCC" = yes ; then
18916 output_verbose_link_cmd='echo'
18917 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18918 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18919 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18920 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}'
18921 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}'
18923 case $cc_basename in
18925 output_verbose_link_cmd='echo'
18926 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18927 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18928 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18929 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}'
18930 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}'
18940 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18941 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18942 hardcode_shlibpath_var_GCJ=no
18949 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18950 # support. Future versions do this automatically, but an explicit c++rt0.o
18951 # does not break anything, and helps significantly (at the cost of a little
18954 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18955 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18956 hardcode_direct_GCJ=yes
18957 hardcode_shlibpath_var_GCJ=no
18960 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18962 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18963 hardcode_direct_GCJ=yes
18964 hardcode_minus_L_GCJ=yes
18965 hardcode_shlibpath_var_GCJ=no
18968 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18969 freebsd* | kfreebsd*-gnu | dragonfly*)
18970 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18971 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18972 hardcode_direct_GCJ=yes
18973 hardcode_shlibpath_var_GCJ=no
18977 if test "$GCC" = yes; then
18978 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'
18980 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'
18982 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18983 hardcode_libdir_separator_GCJ=:
18984 hardcode_direct_GCJ=yes
18986 # hardcode_minus_L: Not really in the search PATH,
18987 # but as the default location of the library.
18988 hardcode_minus_L_GCJ=yes
18989 export_dynamic_flag_spec_GCJ='${wl}-E'
18993 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18994 case "$host_cpu" in
18996 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18999 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19003 case "$host_cpu" in
19005 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19008 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19012 if test "$with_gnu_ld" = no; then
19013 case "$host_cpu" in
19015 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19016 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19017 hardcode_libdir_separator_GCJ=:
19018 hardcode_direct_GCJ=no
19019 hardcode_shlibpath_var_GCJ=no
19022 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19023 hardcode_direct_GCJ=no
19024 hardcode_shlibpath_var_GCJ=no
19026 # hardcode_minus_L: Not really in the search PATH,
19027 # but as the default location of the library.
19028 hardcode_minus_L_GCJ=yes
19031 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19032 hardcode_libdir_separator_GCJ=:
19033 hardcode_direct_GCJ=yes
19034 export_dynamic_flag_spec_GCJ='${wl}-E'
19036 # hardcode_minus_L: Not really in the search PATH,
19037 # but as the default location of the library.
19038 hardcode_minus_L_GCJ=yes
19044 irix5* | irix6* | nonstopux*)
19045 if test "$GCC" = yes; then
19046 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'
19048 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'
19049 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19051 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19052 hardcode_libdir_separator_GCJ=:
19053 link_all_deplibs_GCJ=yes
19057 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19058 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19060 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19062 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19063 hardcode_direct_GCJ=yes
19064 hardcode_shlibpath_var_GCJ=no
19068 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19069 hardcode_direct_GCJ=yes
19070 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19071 hardcode_libdir_separator_GCJ=:
19072 hardcode_shlibpath_var_GCJ=no
19076 hardcode_direct_GCJ=yes
19077 hardcode_shlibpath_var_GCJ=no
19078 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19079 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19080 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19081 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19082 export_dynamic_flag_spec_GCJ='${wl}-E'
19085 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19086 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19087 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19090 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19091 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19098 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19099 hardcode_minus_L_GCJ=yes
19100 allow_undefined_flag_GCJ=unsupported
19101 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'
19102 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19106 if test "$GCC" = yes; then
19107 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19108 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'
19110 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19111 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'
19113 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19114 hardcode_libdir_separator_GCJ=:
19117 osf4* | osf5*) # as osf3* with the addition of -msym flag
19118 if test "$GCC" = yes; then
19119 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19120 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'
19121 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19123 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19124 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'
19125 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~
19126 $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'
19128 # Both c and cxx compiler support -rpath directly
19129 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19131 hardcode_libdir_separator_GCJ=:
19135 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19136 hardcode_shlibpath_var_GCJ=no
19137 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19138 runpath_var=LD_RUN_PATH
19139 hardcode_runpath_var=yes
19143 no_undefined_flag_GCJ=' -z text'
19144 if test "$GCC" = yes; then
19146 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19147 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19148 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19151 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19152 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19153 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19155 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19156 hardcode_shlibpath_var_GCJ=no
19158 solaris2.[0-5] | solaris2.[0-5].*) ;;
19160 # The compiler driver will combine linker options so we
19161 # cannot just pass the convience library names through
19162 # without $wl, iff we do not link with $LD.
19163 # Luckily, gcc supports the same syntax we need for Sun Studio.
19164 # Supported since Solaris 2.6 (maybe 2.5.1?)
19167 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19169 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' ;;
19172 link_all_deplibs_GCJ=yes
19176 if test "x$host_vendor" = xsequent; then
19177 # Use $CC to link under sequent, because it throws in some extra .o
19178 # files that make .init and .fini sections work.
19179 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19181 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19183 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19184 hardcode_direct_GCJ=yes
19185 hardcode_minus_L_GCJ=yes
19186 hardcode_shlibpath_var_GCJ=no
19190 case $host_vendor in
19192 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19193 hardcode_direct_GCJ=yes # is this really true???
19196 ## LD is ld it makes a PLAMLIB
19197 ## CC just makes a GrossModule.
19198 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19199 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19200 hardcode_direct_GCJ=no
19203 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19204 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19207 runpath_var='LD_RUN_PATH'
19208 hardcode_shlibpath_var_GCJ=no
19212 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19213 hardcode_shlibpath_var_GCJ=no
19214 export_dynamic_flag_spec_GCJ='-Bexport'
19218 if test -d /usr/nec; then
19219 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19220 hardcode_shlibpath_var_GCJ=no
19221 runpath_var=LD_RUN_PATH
19222 hardcode_runpath_var=yes
19228 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19229 hardcode_direct_GCJ=yes
19230 hardcode_minus_L_GCJ=no
19231 hardcode_shlibpath_var_GCJ=no
19232 hardcode_runpath_var=yes
19233 runpath_var=LD_RUN_PATH
19236 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19237 no_undefined_flag_GCJ='${wl}-z ${wl}text'
19238 if test "$GCC" = yes; then
19239 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19241 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19243 runpath_var='LD_RUN_PATH'
19244 hardcode_shlibpath_var_GCJ=no
19248 no_undefined_flag_GCJ=' -z text'
19249 # $CC -shared without GNU ld will not create a library from C++
19250 # object files and a static libstdc++, better avoid it by now
19251 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19252 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19253 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19254 hardcode_libdir_flag_spec_GCJ=
19255 hardcode_shlibpath_var_GCJ=no
19256 runpath_var='LD_RUN_PATH'
19260 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19261 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19262 hardcode_shlibpath_var_GCJ=no
19271 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19272 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
19273 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19275 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19276 if test "$GCC" = yes; then
19277 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19281 # Do we need to explicitly link libc?
19283 case "x$archive_cmds_need_lc_GCJ" in
19285 # Assume -lc should be added
19286 archive_cmds_need_lc_GCJ=yes
19288 if test "$enable_shared" = yes && test "$GCC" = yes; then
19289 case $archive_cmds_GCJ in
19291 # FIXME: we may have to deal with multi-command sequences.
19294 # Test whether the compiler implicitly links with -lc since on some
19295 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19296 # to ld, don't add -lc before -lgcc.
19297 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19298 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19300 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19303 (eval $ac_compile) 2>&5
19305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306 (exit $ac_status); } 2>conftest.err; then
19309 libobjs=conftest.$ac_objext
19311 wl=$lt_prog_compiler_wl_GCJ
19317 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19318 allow_undefined_flag_GCJ=
19319 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19320 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323 (exit $ac_status); }
19325 archive_cmds_need_lc_GCJ=no
19327 archive_cmds_need_lc_GCJ=yes
19329 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19331 cat conftest.err 1>&5
19334 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19335 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
19342 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19343 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19344 library_names_spec=
19345 libname_spec='lib$name'
19349 postuninstall_cmds=
19353 shlibpath_overrides_runpath=unknown
19355 dynamic_linker="$host_os ld.so"
19356 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19357 if test "$GCC" = yes; then
19358 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19359 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19360 # if the path contains ";" then we assume it to be the separator
19361 # otherwise default to the standard path separator (i.e. ":") - it is
19362 # assumed that no part of a normal pathname contains ";" but that should
19363 # okay in the real world where ";" in dirpaths is itself problematic.
19364 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19366 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19369 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19371 need_lib_prefix=unknown
19372 hardcode_into_libs=no
19374 # when you set need_version to no, make sure it does not cause -set_version
19375 # flags to be left without arguments
19376 need_version=unknown
19381 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19382 shlibpath_var=LIBPATH
19384 # AIX 3 has no versioning support, so we append a major version to the name.
19385 soname_spec='${libname}${release}${shared_ext}$major'
19392 hardcode_into_libs=yes
19393 if test "$host_cpu" = ia64; then
19394 # AIX 5 supports IA64
19395 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19396 shlibpath_var=LD_LIBRARY_PATH
19398 # With GCC up to 2.95.x, collect2 would create an import file
19399 # for dependence libraries. The import file would start with
19400 # the line `#! .'. This would cause the generated library to
19401 # depend on `.', always an invalid library. This was fixed in
19402 # development snapshots of GCC prior to 3.0.
19404 aix4 | aix4.[01] | aix4.[01].*)
19405 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19407 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19410 can_build_shared=no
19414 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19415 # soname into executable. Probably we can add versioning support to
19416 # collect2, so additional links can be useful in future.
19417 if test "$aix_use_runtimelinking" = yes; then
19418 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19419 # instead of lib<name>.a to let people know that these are not
19420 # typical AIX shared libraries.
19421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19423 # We preserve .a as extension for shared libraries through AIX4.2
19424 # and later when we are not doing run time linking.
19425 library_names_spec='${libname}${release}.a $libname.a'
19426 soname_spec='${libname}${release}${shared_ext}$major'
19428 shlibpath_var=LIBPATH
19433 library_names_spec='$libname.ixlibrary $libname.a'
19434 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19435 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'
19439 library_names_spec='${libname}${shared_ext}'
19440 dynamic_linker="$host_os ld.so"
19441 shlibpath_var=LIBRARY_PATH
19447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19448 soname_spec='${libname}${release}${shared_ext}$major'
19449 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19450 shlibpath_var=LD_LIBRARY_PATH
19451 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19452 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19453 # the default ld.so.conf also contains /usr/contrib/lib and
19454 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19455 # libtool to hard-code these into programs
19458 cygwin* | mingw* | pw32*)
19459 version_type=windows
19464 case $GCC,$host_os in
19465 yes,cygwin* | yes,mingw* | yes,pw32*)
19466 library_names_spec='$libname.dll.a'
19467 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19468 postinstall_cmds='base_file=`basename \${file}`~
19469 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19470 dldir=$destdir/`dirname \$dlpath`~
19471 test -d \$dldir || mkdir -p \$dldir~
19472 $install_prog $dir/$dlname \$dldir/$dlname'
19473 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19474 dlpath=$dir/\$dldll~
19476 shlibpath_overrides_runpath=yes
19480 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19481 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19482 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19485 # MinGW DLLs use traditional 'lib' prefix
19486 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19487 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19488 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19489 # It is most probably a Windows format PATH printed by
19490 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19491 # path with ; separators, and with drive letters. We can handle the
19492 # drive letters (cygwin fileutils understands them), so leave them,
19493 # especially as we might pass files found there to a mingw objdump,
19494 # which wouldn't understand a cygwinified path. Ahh.
19495 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19497 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19501 # pw32 DLLs use 'pw' prefix rather than 'lib'
19502 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19508 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19511 dynamic_linker='Win32 ld.exe'
19512 # FIXME: first we should search . and the directory the executable is in
19516 darwin* | rhapsody*)
19517 dynamic_linker="$host_os dyld"
19518 version_type=darwin
19521 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19522 soname_spec='${libname}${release}${major}$shared_ext'
19523 shlibpath_overrides_runpath=yes
19524 shlibpath_var=DYLD_LIBRARY_PATH
19525 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
19526 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19527 if test "$GCC" = yes; then
19528 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"`
19530 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19532 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19540 soname_spec='${libname}${release}${shared_ext}$major'
19541 shlibpath_var=LD_LIBRARY_PATH
19552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19553 soname_spec='${libname}${release}${shared_ext}$major'
19554 shlibpath_var=LD_LIBRARY_PATH
19555 shlibpath_overrides_runpath=no
19556 hardcode_into_libs=yes
19557 dynamic_linker='GNU ld.so'
19560 freebsd* | dragonfly*)
19561 # DragonFly does not have aout. When/if they implement a new
19562 # versioning mechanism, adjust this.
19563 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
19564 version_type=freebsd-$objformat
19565 case $version_type in
19567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19572 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19576 shlibpath_var=LD_LIBRARY_PATH
19579 shlibpath_overrides_runpath=yes
19581 freebsd3.[01]* | freebsdelf3.[01]*)
19582 shlibpath_overrides_runpath=yes
19583 hardcode_into_libs=yes
19586 shlibpath_overrides_runpath=no
19587 hardcode_into_libs=yes
19596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19597 soname_spec='${libname}${release}${shared_ext}$major'
19598 shlibpath_var=LD_LIBRARY_PATH
19599 hardcode_into_libs=yes
19602 hpux9* | hpux10* | hpux11*)
19603 # Give a soname corresponding to the major version so that dld.sl refuses to
19604 # link against other versions.
19608 case "$host_cpu" in
19611 hardcode_into_libs=yes
19612 dynamic_linker="$host_os dld.so"
19613 shlibpath_var=LD_LIBRARY_PATH
19614 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19616 soname_spec='${libname}${release}${shared_ext}$major'
19617 if test "X$HPUX_IA64_MODE" = X32; then
19618 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19620 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19622 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19626 hardcode_into_libs=yes
19627 dynamic_linker="$host_os dld.sl"
19628 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19629 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19631 soname_spec='${libname}${release}${shared_ext}$major'
19632 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19633 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19637 dynamic_linker="$host_os dld.sl"
19638 shlibpath_var=SHLIB_PATH
19639 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19641 soname_spec='${libname}${release}${shared_ext}$major'
19644 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19645 postinstall_cmds='chmod 555 $lib'
19648 irix5* | irix6* | nonstopux*)
19650 nonstopux*) version_type=nonstopux ;;
19652 if test "$lt_cv_prog_gnu_ld" = yes; then
19660 soname_spec='${libname}${release}${shared_ext}$major'
19661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19663 irix5* | nonstopux*)
19664 libsuff= shlibsuff=
19667 case $LD in # libtool.m4 will add one of these switches to LD
19668 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19669 libsuff= shlibsuff= libmagic=32-bit;;
19670 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19671 libsuff=32 shlibsuff=N32 libmagic=N32;;
19672 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19673 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19674 *) libsuff= shlibsuff= libmagic=never-match;;
19678 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19679 shlibpath_overrides_runpath=no
19680 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19681 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19682 hardcode_into_libs=yes
19685 # No shared lib support for Linux oldld, aout, or coff.
19686 linux*oldld* | linux*aout* | linux*coff*)
19690 # This must be Linux ELF.
19695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19696 soname_spec='${libname}${release}${shared_ext}$major'
19697 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19698 shlibpath_var=LD_LIBRARY_PATH
19699 shlibpath_overrides_runpath=no
19700 # This implies no fast_install, which is unacceptable.
19701 # Some rework will be needed to allow for fast_install
19702 # before this can be enabled.
19703 hardcode_into_libs=yes
19705 # Append ld.so.conf contents to the search path
19706 if test -f /etc/ld.so.conf; then
19707 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' ' '`
19708 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19711 # We used to test for /lib/ld.so.1 and disable shared libraries on
19712 # powerpc, because MkLinux only supported shared libraries with the
19713 # GNU dynamic linker. Since this was broken with cross compilers,
19714 # most powerpc-linux boxes support dynamic linking these days and
19715 # people can always --disable-shared, the test was removed, and we
19716 # assume the GNU/Linux dynamic linker is in use.
19717 dynamic_linker='GNU/Linux ld.so'
19724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19725 soname_spec='${libname}${release}${shared_ext}$major'
19726 shlibpath_var=LD_LIBRARY_PATH
19727 shlibpath_overrides_runpath=no
19728 hardcode_into_libs=yes
19729 dynamic_linker='GNU ld.so'
19736 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19738 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19739 dynamic_linker='NetBSD (a.out) ld.so'
19741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19742 soname_spec='${libname}${release}${shared_ext}$major'
19743 dynamic_linker='NetBSD ld.elf_so'
19745 shlibpath_var=LD_LIBRARY_PATH
19746 shlibpath_overrides_runpath=yes
19747 hardcode_into_libs=yes
19752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19753 shlibpath_var=LD_LIBRARY_PATH
19754 shlibpath_overrides_runpath=yes
19761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19762 soname_spec='${libname}${release}${shared_ext}$major'
19763 shlibpath_var=LD_LIBRARY_PATH
19764 shlibpath_overrides_runpath=yes
19770 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19772 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19773 *) need_version=no ;;
19775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19776 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19777 shlibpath_var=LD_LIBRARY_PATH
19778 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19780 openbsd2.[89] | openbsd2.[89].*)
19781 shlibpath_overrides_runpath=no
19784 shlibpath_overrides_runpath=yes
19788 shlibpath_overrides_runpath=yes
19793 libname_spec='$name'
19796 library_names_spec='$libname${shared_ext} $libname.a'
19797 dynamic_linker='OS/2 ld.exe'
19798 shlibpath_var=LIBPATH
19801 osf3* | osf4* | osf5*)
19805 soname_spec='${libname}${release}${shared_ext}$major'
19806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19807 shlibpath_var=LD_LIBRARY_PATH
19808 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19809 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19814 soname_spec='${libname}${release}${shared_ext}$major'
19815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19816 shlibpath_var=LD_LIBRARY_PATH
19823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19824 soname_spec='${libname}${release}${shared_ext}$major'
19825 shlibpath_var=LD_LIBRARY_PATH
19826 shlibpath_overrides_runpath=yes
19827 hardcode_into_libs=yes
19828 # ldd complains unless libraries are executable
19829 postinstall_cmds='chmod +x $lib'
19834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19835 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19836 shlibpath_var=LD_LIBRARY_PATH
19837 shlibpath_overrides_runpath=yes
19838 if test "$with_gnu_ld" = yes; then
19844 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
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 case $host_vendor in
19851 shlibpath_overrides_runpath=no
19853 export_dynamic_flag_spec='${wl}-Blargedynsym'
19854 runpath_var=LD_RUN_PATH
19862 shlibpath_overrides_runpath=no
19863 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19869 if test -d /usr/nec ;then
19871 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19872 soname_spec='$libname${shared_ext}.$major'
19873 shlibpath_var=LD_LIBRARY_PATH
19879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19880 soname_spec='${libname}${release}${shared_ext}$major'
19881 shlibpath_var=LD_LIBRARY_PATH
19888 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19889 echo "${ECHO_T}$dynamic_linker" >&6
19890 test "$dynamic_linker" = no && can_build_shared=no
19892 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19893 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19894 hardcode_action_GCJ=
19895 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19896 test -n "$runpath_var_GCJ" || \
19897 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19899 # We can hardcode non-existant directories.
19900 if test "$hardcode_direct_GCJ" != no &&
19901 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19902 # have to relink, otherwise we might link with an installed library
19903 # when we should be linking with a yet-to-be-installed one
19904 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19905 test "$hardcode_minus_L_GCJ" != no; then
19906 # Linking always hardcodes the temporary library directory.
19907 hardcode_action_GCJ=relink
19909 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19910 hardcode_action_GCJ=immediate
19913 # We cannot hardcode anything, or else we can only hardcode existing
19915 hardcode_action_GCJ=unsupported
19917 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19918 echo "${ECHO_T}$hardcode_action_GCJ" >&6
19920 if test "$hardcode_action_GCJ" = relink; then
19921 # Fast installation is not supported
19922 enable_fast_install=no
19923 elif test "$shlibpath_overrides_runpath" = yes ||
19924 test "$enable_shared" = no; then
19925 # Fast installation is not necessary
19926 enable_fast_install=needless
19931 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19932 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19933 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
19934 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19935 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19936 echo "$as_me:$LINENO: result: yes" >&5
19937 echo "${ECHO_T}yes" >&6
19939 # FIXME - insert some real tests, host_os isn't really good enough
19942 if test -n "$STRIP" ; then
19943 striplib="$STRIP -x"
19944 echo "$as_me:$LINENO: result: yes" >&5
19945 echo "${ECHO_T}yes" >&6
19947 echo "$as_me:$LINENO: result: no" >&5
19948 echo "${ECHO_T}no" >&6
19952 echo "$as_me:$LINENO: result: no" >&5
19953 echo "${ECHO_T}no" >&6
19958 if test "x$enable_dlopen" != xyes; then
19959 enable_dlopen=unknown
19960 enable_dlopen_self=unknown
19961 enable_dlopen_self_static=unknown
19968 lt_cv_dlopen="load_add_on"
19970 lt_cv_dlopen_self=yes
19974 lt_cv_dlopen="LoadLibrary"
19979 lt_cv_dlopen="dlopen"
19984 # if libdl is installed we need to link against it
19985 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19986 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19987 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19988 echo $ECHO_N "(cached) $ECHO_C" >&6
19990 ac_check_lib_save_LIBS=$LIBS
19992 cat >conftest.$ac_ext <<_ACEOF
19995 cat confdefs.h >>conftest.$ac_ext
19996 cat >>conftest.$ac_ext <<_ACEOF
19997 /* end confdefs.h. */
19999 /* Override any gcc2 internal prototype to avoid an error. */
20003 /* We use char because int might match the return type of a gcc2
20004 builtin and then its argument prototype would still apply. */
20014 rm -f conftest.$ac_objext conftest$ac_exeext
20015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20016 (eval $ac_link) 2>conftest.er1
20018 grep -v '^ *+' conftest.er1 >conftest.err
20020 cat conftest.err >&5
20021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022 (exit $ac_status); } &&
20023 { ac_try='test -z "$ac_c_werror_flag"
20024 || test ! -s conftest.err'
20025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20026 (eval $ac_try) 2>&5
20028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029 (exit $ac_status); }; } &&
20030 { ac_try='test -s conftest$ac_exeext'
20031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20032 (eval $ac_try) 2>&5
20034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035 (exit $ac_status); }; }; then
20036 ac_cv_lib_dl_dlopen=yes
20038 echo "$as_me: failed program was:" >&5
20039 sed 's/^/| /' conftest.$ac_ext >&5
20041 ac_cv_lib_dl_dlopen=no
20043 rm -f conftest.err conftest.$ac_objext \
20044 conftest$ac_exeext conftest.$ac_ext
20045 LIBS=$ac_check_lib_save_LIBS
20047 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20048 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20049 if test $ac_cv_lib_dl_dlopen = yes; then
20050 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20053 lt_cv_dlopen="dyld"
20055 lt_cv_dlopen_self=yes
20062 echo "$as_me:$LINENO: checking for shl_load" >&5
20063 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
20064 if test "${ac_cv_func_shl_load+set}" = set; then
20065 echo $ECHO_N "(cached) $ECHO_C" >&6
20067 cat >conftest.$ac_ext <<_ACEOF
20070 cat confdefs.h >>conftest.$ac_ext
20071 cat >>conftest.$ac_ext <<_ACEOF
20072 /* end confdefs.h. */
20073 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20075 #define shl_load innocuous_shl_load
20077 /* System header to define __stub macros and hopefully few prototypes,
20078 which can conflict with char shl_load (); below.
20079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20080 <limits.h> exists even on freestanding compilers. */
20083 # include <limits.h>
20085 # include <assert.h>
20090 /* Override any gcc2 internal prototype to avoid an error. */
20095 /* We use char because int might match the return type of a gcc2
20096 builtin and then its argument prototype would still apply. */
20098 /* The GNU C library defines this for functions which it implements
20099 to always fail with ENOSYS. Some functions are actually named
20100 something starting with __ and the normal name is an alias. */
20101 #if defined (__stub_shl_load) || defined (__stub___shl_load)
20104 char (*f) () = shl_load;
20113 return f != shl_load;
20118 rm -f conftest.$ac_objext conftest$ac_exeext
20119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20120 (eval $ac_link) 2>conftest.er1
20122 grep -v '^ *+' conftest.er1 >conftest.err
20124 cat conftest.err >&5
20125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20126 (exit $ac_status); } &&
20127 { ac_try='test -z "$ac_c_werror_flag"
20128 || test ! -s conftest.err'
20129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20130 (eval $ac_try) 2>&5
20132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20133 (exit $ac_status); }; } &&
20134 { ac_try='test -s conftest$ac_exeext'
20135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20136 (eval $ac_try) 2>&5
20138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20139 (exit $ac_status); }; }; then
20140 ac_cv_func_shl_load=yes
20142 echo "$as_me: failed program was:" >&5
20143 sed 's/^/| /' conftest.$ac_ext >&5
20145 ac_cv_func_shl_load=no
20147 rm -f conftest.err conftest.$ac_objext \
20148 conftest$ac_exeext conftest.$ac_ext
20150 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20151 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
20152 if test $ac_cv_func_shl_load = yes; then
20153 lt_cv_dlopen="shl_load"
20155 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20156 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
20157 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20158 echo $ECHO_N "(cached) $ECHO_C" >&6
20160 ac_check_lib_save_LIBS=$LIBS
20162 cat >conftest.$ac_ext <<_ACEOF
20165 cat confdefs.h >>conftest.$ac_ext
20166 cat >>conftest.$ac_ext <<_ACEOF
20167 /* end confdefs.h. */
20169 /* Override any gcc2 internal prototype to avoid an error. */
20173 /* We use char because int might match the return type of a gcc2
20174 builtin and then its argument prototype would still apply. */
20184 rm -f conftest.$ac_objext conftest$ac_exeext
20185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20186 (eval $ac_link) 2>conftest.er1
20188 grep -v '^ *+' conftest.er1 >conftest.err
20190 cat conftest.err >&5
20191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20192 (exit $ac_status); } &&
20193 { ac_try='test -z "$ac_c_werror_flag"
20194 || test ! -s conftest.err'
20195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20196 (eval $ac_try) 2>&5
20198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199 (exit $ac_status); }; } &&
20200 { ac_try='test -s conftest$ac_exeext'
20201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20202 (eval $ac_try) 2>&5
20204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20205 (exit $ac_status); }; }; then
20206 ac_cv_lib_dld_shl_load=yes
20208 echo "$as_me: failed program was:" >&5
20209 sed 's/^/| /' conftest.$ac_ext >&5
20211 ac_cv_lib_dld_shl_load=no
20213 rm -f conftest.err conftest.$ac_objext \
20214 conftest$ac_exeext conftest.$ac_ext
20215 LIBS=$ac_check_lib_save_LIBS
20217 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20218 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
20219 if test $ac_cv_lib_dld_shl_load = yes; then
20220 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
20222 echo "$as_me:$LINENO: checking for dlopen" >&5
20223 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
20224 if test "${ac_cv_func_dlopen+set}" = set; then
20225 echo $ECHO_N "(cached) $ECHO_C" >&6
20227 cat >conftest.$ac_ext <<_ACEOF
20230 cat confdefs.h >>conftest.$ac_ext
20231 cat >>conftest.$ac_ext <<_ACEOF
20232 /* end confdefs.h. */
20233 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
20234 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20235 #define dlopen innocuous_dlopen
20237 /* System header to define __stub macros and hopefully few prototypes,
20238 which can conflict with char dlopen (); below.
20239 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20240 <limits.h> exists even on freestanding compilers. */
20243 # include <limits.h>
20245 # include <assert.h>
20250 /* Override any gcc2 internal prototype to avoid an error. */
20255 /* We use char because int might match the return type of a gcc2
20256 builtin and then its argument prototype would still apply. */
20258 /* The GNU C library defines this for functions which it implements
20259 to always fail with ENOSYS. Some functions are actually named
20260 something starting with __ and the normal name is an alias. */
20261 #if defined (__stub_dlopen) || defined (__stub___dlopen)
20264 char (*f) () = dlopen;
20273 return f != dlopen;
20278 rm -f conftest.$ac_objext conftest$ac_exeext
20279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20280 (eval $ac_link) 2>conftest.er1
20282 grep -v '^ *+' conftest.er1 >conftest.err
20284 cat conftest.err >&5
20285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286 (exit $ac_status); } &&
20287 { ac_try='test -z "$ac_c_werror_flag"
20288 || test ! -s conftest.err'
20289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20290 (eval $ac_try) 2>&5
20292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293 (exit $ac_status); }; } &&
20294 { ac_try='test -s conftest$ac_exeext'
20295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20296 (eval $ac_try) 2>&5
20298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299 (exit $ac_status); }; }; then
20300 ac_cv_func_dlopen=yes
20302 echo "$as_me: failed program was:" >&5
20303 sed 's/^/| /' conftest.$ac_ext >&5
20305 ac_cv_func_dlopen=no
20307 rm -f conftest.err conftest.$ac_objext \
20308 conftest$ac_exeext conftest.$ac_ext
20310 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
20311 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
20312 if test $ac_cv_func_dlopen = yes; then
20313 lt_cv_dlopen="dlopen"
20315 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20316 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20317 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20318 echo $ECHO_N "(cached) $ECHO_C" >&6
20320 ac_check_lib_save_LIBS=$LIBS
20322 cat >conftest.$ac_ext <<_ACEOF
20325 cat confdefs.h >>conftest.$ac_ext
20326 cat >>conftest.$ac_ext <<_ACEOF
20327 /* end confdefs.h. */
20329 /* Override any gcc2 internal prototype to avoid an error. */
20333 /* We use char because int might match the return type of a gcc2
20334 builtin and then its argument prototype would still apply. */
20344 rm -f conftest.$ac_objext conftest$ac_exeext
20345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20346 (eval $ac_link) 2>conftest.er1
20348 grep -v '^ *+' conftest.er1 >conftest.err
20350 cat conftest.err >&5
20351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352 (exit $ac_status); } &&
20353 { ac_try='test -z "$ac_c_werror_flag"
20354 || test ! -s conftest.err'
20355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20356 (eval $ac_try) 2>&5
20358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20359 (exit $ac_status); }; } &&
20360 { ac_try='test -s conftest$ac_exeext'
20361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20362 (eval $ac_try) 2>&5
20364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365 (exit $ac_status); }; }; then
20366 ac_cv_lib_dl_dlopen=yes
20368 echo "$as_me: failed program was:" >&5
20369 sed 's/^/| /' conftest.$ac_ext >&5
20371 ac_cv_lib_dl_dlopen=no
20373 rm -f conftest.err conftest.$ac_objext \
20374 conftest$ac_exeext conftest.$ac_ext
20375 LIBS=$ac_check_lib_save_LIBS
20377 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20378 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20379 if test $ac_cv_lib_dl_dlopen = yes; then
20380 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20382 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20383 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
20384 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20385 echo $ECHO_N "(cached) $ECHO_C" >&6
20387 ac_check_lib_save_LIBS=$LIBS
20388 LIBS="-lsvld $LIBS"
20389 cat >conftest.$ac_ext <<_ACEOF
20392 cat confdefs.h >>conftest.$ac_ext
20393 cat >>conftest.$ac_ext <<_ACEOF
20394 /* end confdefs.h. */
20396 /* Override any gcc2 internal prototype to avoid an error. */
20400 /* We use char because int might match the return type of a gcc2
20401 builtin and then its argument prototype would still apply. */
20411 rm -f conftest.$ac_objext conftest$ac_exeext
20412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20413 (eval $ac_link) 2>conftest.er1
20415 grep -v '^ *+' conftest.er1 >conftest.err
20417 cat conftest.err >&5
20418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20419 (exit $ac_status); } &&
20420 { ac_try='test -z "$ac_c_werror_flag"
20421 || test ! -s conftest.err'
20422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20423 (eval $ac_try) 2>&5
20425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426 (exit $ac_status); }; } &&
20427 { ac_try='test -s conftest$ac_exeext'
20428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20429 (eval $ac_try) 2>&5
20431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432 (exit $ac_status); }; }; then
20433 ac_cv_lib_svld_dlopen=yes
20435 echo "$as_me: failed program was:" >&5
20436 sed 's/^/| /' conftest.$ac_ext >&5
20438 ac_cv_lib_svld_dlopen=no
20440 rm -f conftest.err conftest.$ac_objext \
20441 conftest$ac_exeext conftest.$ac_ext
20442 LIBS=$ac_check_lib_save_LIBS
20444 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20445 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
20446 if test $ac_cv_lib_svld_dlopen = yes; then
20447 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
20449 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20450 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
20451 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20452 echo $ECHO_N "(cached) $ECHO_C" >&6
20454 ac_check_lib_save_LIBS=$LIBS
20456 cat >conftest.$ac_ext <<_ACEOF
20459 cat confdefs.h >>conftest.$ac_ext
20460 cat >>conftest.$ac_ext <<_ACEOF
20461 /* end confdefs.h. */
20463 /* Override any gcc2 internal prototype to avoid an error. */
20467 /* We use char because int might match the return type of a gcc2
20468 builtin and then its argument prototype would still apply. */
20478 rm -f conftest.$ac_objext conftest$ac_exeext
20479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20480 (eval $ac_link) 2>conftest.er1
20482 grep -v '^ *+' conftest.er1 >conftest.err
20484 cat conftest.err >&5
20485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20486 (exit $ac_status); } &&
20487 { ac_try='test -z "$ac_c_werror_flag"
20488 || test ! -s conftest.err'
20489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20490 (eval $ac_try) 2>&5
20492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493 (exit $ac_status); }; } &&
20494 { ac_try='test -s conftest$ac_exeext'
20495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20496 (eval $ac_try) 2>&5
20498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20499 (exit $ac_status); }; }; then
20500 ac_cv_lib_dld_dld_link=yes
20502 echo "$as_me: failed program was:" >&5
20503 sed 's/^/| /' conftest.$ac_ext >&5
20505 ac_cv_lib_dld_dld_link=no
20507 rm -f conftest.err conftest.$ac_objext \
20508 conftest$ac_exeext conftest.$ac_ext
20509 LIBS=$ac_check_lib_save_LIBS
20511 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20512 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
20513 if test $ac_cv_lib_dld_dld_link = yes; then
20514 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
20535 if test "x$lt_cv_dlopen" != xno; then
20541 case $lt_cv_dlopen in
20543 save_CPPFLAGS="$CPPFLAGS"
20544 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
20546 save_LDFLAGS="$LDFLAGS"
20547 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20550 LIBS="$lt_cv_dlopen_libs $LIBS"
20552 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
20553 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
20554 if test "${lt_cv_dlopen_self+set}" = set; then
20555 echo $ECHO_N "(cached) $ECHO_C" >&6
20557 if test "$cross_compiling" = yes; then :
20558 lt_cv_dlopen_self=cross
20560 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20561 lt_status=$lt_dlunknown
20562 cat > conftest.$ac_ext <<EOF
20563 #line 20563 "configure"
20564 #include "confdefs.h"
20573 # define LT_DLGLOBAL RTLD_GLOBAL
20576 # define LT_DLGLOBAL DL_GLOBAL
20578 # define LT_DLGLOBAL 0
20582 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20583 find out it does not work in some platform. */
20584 #ifndef LT_DLLAZY_OR_NOW
20586 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20589 # define LT_DLLAZY_OR_NOW DL_LAZY
20592 # define LT_DLLAZY_OR_NOW RTLD_NOW
20595 # define LT_DLLAZY_OR_NOW DL_NOW
20597 # define LT_DLLAZY_OR_NOW 0
20605 extern "C" void exit (int);
20608 void fnord() { int i=42;}
20611 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20612 int status = $lt_dlunknown;
20616 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20617 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20618 /* dlclose (self); */
20624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20625 (eval $ac_link) 2>&5
20627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20629 (./conftest; exit; ) 2>/dev/null
20631 case x$lt_status in
20632 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20633 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20634 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
20637 # compilation failed
20638 lt_cv_dlopen_self=no
20645 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
20646 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
20648 if test "x$lt_cv_dlopen_self" = xyes; then
20649 LDFLAGS="$LDFLAGS $link_static_flag"
20650 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
20651 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
20652 if test "${lt_cv_dlopen_self_static+set}" = set; then
20653 echo $ECHO_N "(cached) $ECHO_C" >&6
20655 if test "$cross_compiling" = yes; then :
20656 lt_cv_dlopen_self_static=cross
20658 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20659 lt_status=$lt_dlunknown
20660 cat > conftest.$ac_ext <<EOF
20661 #line 20661 "configure"
20662 #include "confdefs.h"
20671 # define LT_DLGLOBAL RTLD_GLOBAL
20674 # define LT_DLGLOBAL DL_GLOBAL
20676 # define LT_DLGLOBAL 0
20680 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20681 find out it does not work in some platform. */
20682 #ifndef LT_DLLAZY_OR_NOW
20684 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20687 # define LT_DLLAZY_OR_NOW DL_LAZY
20690 # define LT_DLLAZY_OR_NOW RTLD_NOW
20693 # define LT_DLLAZY_OR_NOW DL_NOW
20695 # define LT_DLLAZY_OR_NOW 0
20703 extern "C" void exit (int);
20706 void fnord() { int i=42;}
20709 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20710 int status = $lt_dlunknown;
20714 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20715 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20716 /* dlclose (self); */
20722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20723 (eval $ac_link) 2>&5
20725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20727 (./conftest; exit; ) 2>/dev/null
20729 case x$lt_status in
20730 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20731 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20732 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
20735 # compilation failed
20736 lt_cv_dlopen_self_static=no
20743 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
20744 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
20747 CPPFLAGS="$save_CPPFLAGS"
20748 LDFLAGS="$save_LDFLAGS"
20753 case $lt_cv_dlopen_self in
20754 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20755 *) enable_dlopen_self=unknown ;;
20758 case $lt_cv_dlopen_self_static in
20759 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20760 *) enable_dlopen_self_static=unknown ;;
20765 # The else clause should only fire when bootstrapping the
20766 # libtool distribution, otherwise you forgot to ship ltmain.sh
20767 # with your package, and you will get complaints that there are
20768 # no rules to generate ltmain.sh.
20769 if test -f "$ltmain"; then
20770 # See if we are running on zsh, and set the options which allow our commands through
20771 # without removal of \ escapes.
20772 if test -n "${ZSH_VERSION+set}" ; then
20773 setopt NO_GLOB_SUBST
20775 # Now quote all the things that may contain metacharacters while being
20776 # careful not to overquote the AC_SUBSTed values. We take copies of the
20777 # variables and quote the copies for generation of the libtool script.
20778 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20780 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20781 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20782 deplibs_check_method reload_flag reload_cmds need_locks \
20783 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20784 lt_cv_sys_global_symbol_to_c_name_address \
20785 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20786 old_postinstall_cmds old_postuninstall_cmds \
20790 lt_prog_compiler_wl_GCJ \
20791 lt_prog_compiler_pic_GCJ \
20792 lt_prog_compiler_static_GCJ \
20793 lt_prog_compiler_no_builtin_flag_GCJ \
20794 export_dynamic_flag_spec_GCJ \
20795 thread_safe_flag_spec_GCJ \
20796 whole_archive_flag_spec_GCJ \
20797 enable_shared_with_static_runtimes_GCJ \
20798 old_archive_cmds_GCJ \
20799 old_archive_from_new_cmds_GCJ \
20800 predep_objects_GCJ \
20801 postdep_objects_GCJ \
20804 compiler_lib_search_path_GCJ \
20806 archive_expsym_cmds_GCJ \
20807 postinstall_cmds_GCJ \
20808 postuninstall_cmds_GCJ \
20809 old_archive_from_expsyms_cmds_GCJ \
20810 allow_undefined_flag_GCJ \
20811 no_undefined_flag_GCJ \
20812 export_symbols_cmds_GCJ \
20813 hardcode_libdir_flag_spec_GCJ \
20814 hardcode_libdir_flag_spec_ld_GCJ \
20815 hardcode_libdir_separator_GCJ \
20816 hardcode_automatic_GCJ \
20818 module_expsym_cmds_GCJ \
20819 lt_cv_prog_compiler_c_o_GCJ \
20820 exclude_expsyms_GCJ \
20821 include_expsyms_GCJ; do
20824 old_archive_cmds_GCJ | \
20825 old_archive_from_new_cmds_GCJ | \
20826 archive_cmds_GCJ | \
20827 archive_expsym_cmds_GCJ | \
20828 module_cmds_GCJ | \
20829 module_expsym_cmds_GCJ | \
20830 old_archive_from_expsyms_cmds_GCJ | \
20831 export_symbols_cmds_GCJ | \
20832 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20833 postinstall_cmds | postuninstall_cmds | \
20834 old_postinstall_cmds | old_postuninstall_cmds | \
20835 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20836 # Double-quote double-evaled strings.
20837 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20840 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20846 *'\$0 --fallback-echo"')
20847 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20853 cat <<__EOF__ >> "$cfgfile"
20854 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20856 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20858 # Shell to use when invoking shell scripts.
20861 # Whether or not to build shared libraries.
20862 build_libtool_libs=$enable_shared
20864 # Whether or not to build static libraries.
20865 build_old_libs=$enable_static
20867 # Whether or not to add -lc for building shared libraries.
20868 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20870 # Whether or not to disallow shared libs when runtime libs are static
20871 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20873 # Whether or not to optimize for fast installation.
20874 fast_install=$enable_fast_install
20877 host_alias=$host_alias
20881 # The build system.
20882 build_alias=$build_alias
20886 # An echo program that does not interpret backslashes.
20891 AR_FLAGS=$lt_AR_FLAGS
20896 # A language-specific compiler.
20897 CC=$lt_compiler_GCJ
20899 # Is the compiler the GNU C compiler?
20905 # The linker used to build libraries.
20908 # Whether we need hard or soft links.
20911 # A BSD-compatible nm program.
20914 # A symbol stripping program
20917 # Used to examine libraries when file_magic_cmd begins "file"
20918 MAGIC_CMD=$MAGIC_CMD
20920 # Used on cygwin: DLL creation program.
20923 # Used on cygwin: object dumper.
20926 # Used on cygwin: assembler.
20929 # The name of the directory that contains temporary libtool files.
20932 # How to create reloadable object files.
20933 reload_flag=$lt_reload_flag
20934 reload_cmds=$lt_reload_cmds
20936 # How to pass a linker flag through the compiler.
20937 wl=$lt_lt_prog_compiler_wl_GCJ
20939 # Object file suffix (normally "o").
20940 objext="$ac_objext"
20942 # Old archive suffix (normally "a").
20945 # Shared library suffix (normally ".so").
20946 shrext_cmds='$shrext_cmds'
20948 # Executable file suffix (normally "").
20951 # Additional compiler flags for building library objects.
20952 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20955 # What is the maximum length of a command?
20956 max_cmd_len=$lt_cv_sys_max_cmd_len
20958 # Does compiler simultaneously support -c and -o options?
20959 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20961 # Must we lock files when doing compilation?
20962 need_locks=$lt_need_locks
20964 # Do we need the lib prefix for modules?
20965 need_lib_prefix=$need_lib_prefix
20967 # Do we need a version for libraries?
20968 need_version=$need_version
20970 # Whether dlopen is supported.
20971 dlopen_support=$enable_dlopen
20973 # Whether dlopen of programs is supported.
20974 dlopen_self=$enable_dlopen_self
20976 # Whether dlopen of statically linked programs is supported.
20977 dlopen_self_static=$enable_dlopen_self_static
20979 # Compiler flag to prevent dynamic linking.
20980 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20982 # Compiler flag to turn off builtin functions.
20983 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20985 # Compiler flag to allow reflexive dlopens.
20986 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20988 # Compiler flag to generate shared objects directly from archives.
20989 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20991 # Compiler flag to generate thread-safe objects.
20992 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20994 # Library versioning type.
20995 version_type=$version_type
20997 # Format of library name prefix.
20998 libname_spec=$lt_libname_spec
21000 # List of archive names. First name is the real one, the rest are links.
21001 # The last name is the one that the linker finds with -lNAME.
21002 library_names_spec=$lt_library_names_spec
21004 # The coded name of the library, if different from the real name.
21005 soname_spec=$lt_soname_spec
21007 # Commands used to build and install an old-style archive.
21009 old_archive_cmds=$lt_old_archive_cmds_GCJ
21010 old_postinstall_cmds=$lt_old_postinstall_cmds
21011 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21013 # Create an old-style archive from a shared archive.
21014 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
21016 # Create a temporary old-style archive to link instead of a shared archive.
21017 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
21019 # Commands used to build and install a shared archive.
21020 archive_cmds=$lt_archive_cmds_GCJ
21021 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
21022 postinstall_cmds=$lt_postinstall_cmds
21023 postuninstall_cmds=$lt_postuninstall_cmds
21025 # Commands used to build a loadable module (assumed same as above if empty)
21026 module_cmds=$lt_module_cmds_GCJ
21027 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
21029 # Commands to strip libraries.
21030 old_striplib=$lt_old_striplib
21031 striplib=$lt_striplib
21033 # Dependencies to place before the objects being linked to create a
21035 predep_objects=$lt_predep_objects_GCJ
21037 # Dependencies to place after the objects being linked to create a
21039 postdep_objects=$lt_postdep_objects_GCJ
21041 # Dependencies to place before the objects being linked to create a
21043 predeps=$lt_predeps_GCJ
21045 # Dependencies to place after the objects being linked to create a
21047 postdeps=$lt_postdeps_GCJ
21049 # The library search path used internally by the compiler when linking
21050 # a shared library.
21051 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
21053 # Method to check whether dependent libraries are shared objects.
21054 deplibs_check_method=$lt_deplibs_check_method
21056 # Command to use when deplibs_check_method == file_magic.
21057 file_magic_cmd=$lt_file_magic_cmd
21059 # Flag that allows shared libraries with undefined symbols to be built.
21060 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
21062 # Flag that forces no undefined symbols.
21063 no_undefined_flag=$lt_no_undefined_flag_GCJ
21065 # Commands used to finish a libtool library installation in a directory.
21066 finish_cmds=$lt_finish_cmds
21068 # Same as above, but a single script fragment to be evaled but not shown.
21069 finish_eval=$lt_finish_eval
21071 # Take the output of nm and produce a listing of raw symbols and C names.
21072 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21074 # Transform the output of nm in a proper C declaration
21075 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21077 # Transform the output of nm in a C name address pair
21078 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21080 # This is the shared library runtime path variable.
21081 runpath_var=$runpath_var
21083 # This is the shared library path variable.
21084 shlibpath_var=$shlibpath_var
21086 # Is shlibpath searched before the hard-coded library search path?
21087 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21089 # How to hardcode a shared library path into an executable.
21090 hardcode_action=$hardcode_action_GCJ
21092 # Whether we should hardcode library paths into libraries.
21093 hardcode_into_libs=$hardcode_into_libs
21095 # Flag to hardcode \$libdir into a binary during linking.
21096 # This must work even if \$libdir does not exist.
21097 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
21099 # If ld is used when linking, flag to hardcode \$libdir into
21100 # a binary during linking. This must work even if \$libdir does
21102 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
21104 # Whether we need a single -rpath flag with a separated argument.
21105 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
21107 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21108 # resulting binary.
21109 hardcode_direct=$hardcode_direct_GCJ
21111 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21112 # resulting binary.
21113 hardcode_minus_L=$hardcode_minus_L_GCJ
21115 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21116 # the resulting binary.
21117 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
21119 # Set to yes if building a shared library automatically hardcodes DIR into the library
21120 # and all subsequent libraries and executables linked against it.
21121 hardcode_automatic=$hardcode_automatic_GCJ
21123 # Variables whose values should be saved in libtool wrapper scripts and
21124 # restored at relink time.
21125 variables_saved_for_relink="$variables_saved_for_relink"
21127 # Whether libtool must link a program against all its dependency libraries.
21128 link_all_deplibs=$link_all_deplibs_GCJ
21130 # Compile-time system search path for libraries
21131 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21133 # Run-time system search path for libraries
21134 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21136 # Fix the shell variable \$srcfile for the compiler.
21137 fix_srcfile_path="$fix_srcfile_path_GCJ"
21139 # Set to yes if exported symbols are required.
21140 always_export_symbols=$always_export_symbols_GCJ
21142 # The commands to list exported symbols.
21143 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
21145 # The commands to extract the exported symbol list from a shared archive.
21146 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21148 # Symbols that should not be listed in the preloaded symbols.
21149 exclude_expsyms=$lt_exclude_expsyms_GCJ
21151 # Symbols that must always be exported.
21152 include_expsyms=$lt_include_expsyms_GCJ
21154 # ### END LIBTOOL TAG CONFIG: $tagname
21160 # If there is no Makefile yet, we rely on a make rule to execute
21161 # `config.status --recheck' to rerun these tests and create the
21162 # libtool script then.
21163 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21164 if test -f "$ltmain_in"; then
21165 test -f Makefile && make "$ltmain"
21171 ac_cpp='$CPP $CPPFLAGS'
21172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21187 # Source file extension for RC test sources.
21190 # Object file extension for compiled RC test sources.
21194 # Code to be used in simple compile tests
21195 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
21197 # Code to be used in simple link tests
21198 lt_simple_link_test_code="$lt_simple_compile_test_code"
21200 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21202 # If no C compiler was specified, use CC.
21205 # Allow CC to be a program name with arguments.
21209 # save warnings/boilerplate of simple test code
21210 ac_outfile=conftest.$ac_objext
21211 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21212 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
21213 _lt_compiler_boilerplate=`cat conftest.err`
21216 ac_outfile=conftest.$ac_objext
21217 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21218 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
21219 _lt_linker_boilerplate=`cat conftest.err`
21223 # Allow CC to be a program name with arguments.
21228 for cc_temp in $compiler""; do
21230 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21231 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21236 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21238 lt_cv_prog_compiler_c_o_RC=yes
21240 # The else clause should only fire when bootstrapping the
21241 # libtool distribution, otherwise you forgot to ship ltmain.sh
21242 # with your package, and you will get complaints that there are
21243 # no rules to generate ltmain.sh.
21244 if test -f "$ltmain"; then
21245 # See if we are running on zsh, and set the options which allow our commands through
21246 # without removal of \ escapes.
21247 if test -n "${ZSH_VERSION+set}" ; then
21248 setopt NO_GLOB_SUBST
21250 # Now quote all the things that may contain metacharacters while being
21251 # careful not to overquote the AC_SUBSTed values. We take copies of the
21252 # variables and quote the copies for generation of the libtool script.
21253 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
21255 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21256 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21257 deplibs_check_method reload_flag reload_cmds need_locks \
21258 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21259 lt_cv_sys_global_symbol_to_c_name_address \
21260 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21261 old_postinstall_cmds old_postuninstall_cmds \
21265 lt_prog_compiler_wl_RC \
21266 lt_prog_compiler_pic_RC \
21267 lt_prog_compiler_static_RC \
21268 lt_prog_compiler_no_builtin_flag_RC \
21269 export_dynamic_flag_spec_RC \
21270 thread_safe_flag_spec_RC \
21271 whole_archive_flag_spec_RC \
21272 enable_shared_with_static_runtimes_RC \
21273 old_archive_cmds_RC \
21274 old_archive_from_new_cmds_RC \
21275 predep_objects_RC \
21276 postdep_objects_RC \
21279 compiler_lib_search_path_RC \
21281 archive_expsym_cmds_RC \
21282 postinstall_cmds_RC \
21283 postuninstall_cmds_RC \
21284 old_archive_from_expsyms_cmds_RC \
21285 allow_undefined_flag_RC \
21286 no_undefined_flag_RC \
21287 export_symbols_cmds_RC \
21288 hardcode_libdir_flag_spec_RC \
21289 hardcode_libdir_flag_spec_ld_RC \
21290 hardcode_libdir_separator_RC \
21291 hardcode_automatic_RC \
21293 module_expsym_cmds_RC \
21294 lt_cv_prog_compiler_c_o_RC \
21295 exclude_expsyms_RC \
21296 include_expsyms_RC; do
21299 old_archive_cmds_RC | \
21300 old_archive_from_new_cmds_RC | \
21301 archive_cmds_RC | \
21302 archive_expsym_cmds_RC | \
21304 module_expsym_cmds_RC | \
21305 old_archive_from_expsyms_cmds_RC | \
21306 export_symbols_cmds_RC | \
21307 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21308 postinstall_cmds | postuninstall_cmds | \
21309 old_postinstall_cmds | old_postuninstall_cmds | \
21310 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21311 # Double-quote double-evaled strings.
21312 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21315 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21321 *'\$0 --fallback-echo"')
21322 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21328 cat <<__EOF__ >> "$cfgfile"
21329 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21331 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21333 # Shell to use when invoking shell scripts.
21336 # Whether or not to build shared libraries.
21337 build_libtool_libs=$enable_shared
21339 # Whether or not to build static libraries.
21340 build_old_libs=$enable_static
21342 # Whether or not to add -lc for building shared libraries.
21343 build_libtool_need_lc=$archive_cmds_need_lc_RC
21345 # Whether or not to disallow shared libs when runtime libs are static
21346 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21348 # Whether or not to optimize for fast installation.
21349 fast_install=$enable_fast_install
21352 host_alias=$host_alias
21356 # The build system.
21357 build_alias=$build_alias
21361 # An echo program that does not interpret backslashes.
21366 AR_FLAGS=$lt_AR_FLAGS
21371 # A language-specific compiler.
21374 # Is the compiler the GNU C compiler?
21380 # The linker used to build libraries.
21383 # Whether we need hard or soft links.
21386 # A BSD-compatible nm program.
21389 # A symbol stripping program
21392 # Used to examine libraries when file_magic_cmd begins "file"
21393 MAGIC_CMD=$MAGIC_CMD
21395 # Used on cygwin: DLL creation program.
21398 # Used on cygwin: object dumper.
21401 # Used on cygwin: assembler.
21404 # The name of the directory that contains temporary libtool files.
21407 # How to create reloadable object files.
21408 reload_flag=$lt_reload_flag
21409 reload_cmds=$lt_reload_cmds
21411 # How to pass a linker flag through the compiler.
21412 wl=$lt_lt_prog_compiler_wl_RC
21414 # Object file suffix (normally "o").
21415 objext="$ac_objext"
21417 # Old archive suffix (normally "a").
21420 # Shared library suffix (normally ".so").
21421 shrext_cmds='$shrext_cmds'
21423 # Executable file suffix (normally "").
21426 # Additional compiler flags for building library objects.
21427 pic_flag=$lt_lt_prog_compiler_pic_RC
21430 # What is the maximum length of a command?
21431 max_cmd_len=$lt_cv_sys_max_cmd_len
21433 # Does compiler simultaneously support -c and -o options?
21434 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21436 # Must we lock files when doing compilation?
21437 need_locks=$lt_need_locks
21439 # Do we need the lib prefix for modules?
21440 need_lib_prefix=$need_lib_prefix
21442 # Do we need a version for libraries?
21443 need_version=$need_version
21445 # Whether dlopen is supported.
21446 dlopen_support=$enable_dlopen
21448 # Whether dlopen of programs is supported.
21449 dlopen_self=$enable_dlopen_self
21451 # Whether dlopen of statically linked programs is supported.
21452 dlopen_self_static=$enable_dlopen_self_static
21454 # Compiler flag to prevent dynamic linking.
21455 link_static_flag=$lt_lt_prog_compiler_static_RC
21457 # Compiler flag to turn off builtin functions.
21458 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21460 # Compiler flag to allow reflexive dlopens.
21461 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21463 # Compiler flag to generate shared objects directly from archives.
21464 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21466 # Compiler flag to generate thread-safe objects.
21467 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21469 # Library versioning type.
21470 version_type=$version_type
21472 # Format of library name prefix.
21473 libname_spec=$lt_libname_spec
21475 # List of archive names. First name is the real one, the rest are links.
21476 # The last name is the one that the linker finds with -lNAME.
21477 library_names_spec=$lt_library_names_spec
21479 # The coded name of the library, if different from the real name.
21480 soname_spec=$lt_soname_spec
21482 # Commands used to build and install an old-style archive.
21484 old_archive_cmds=$lt_old_archive_cmds_RC
21485 old_postinstall_cmds=$lt_old_postinstall_cmds
21486 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21488 # Create an old-style archive from a shared archive.
21489 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21491 # Create a temporary old-style archive to link instead of a shared archive.
21492 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21494 # Commands used to build and install a shared archive.
21495 archive_cmds=$lt_archive_cmds_RC
21496 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21497 postinstall_cmds=$lt_postinstall_cmds
21498 postuninstall_cmds=$lt_postuninstall_cmds
21500 # Commands used to build a loadable module (assumed same as above if empty)
21501 module_cmds=$lt_module_cmds_RC
21502 module_expsym_cmds=$lt_module_expsym_cmds_RC
21504 # Commands to strip libraries.
21505 old_striplib=$lt_old_striplib
21506 striplib=$lt_striplib
21508 # Dependencies to place before the objects being linked to create a
21510 predep_objects=$lt_predep_objects_RC
21512 # Dependencies to place after the objects being linked to create a
21514 postdep_objects=$lt_postdep_objects_RC
21516 # Dependencies to place before the objects being linked to create a
21518 predeps=$lt_predeps_RC
21520 # Dependencies to place after the objects being linked to create a
21522 postdeps=$lt_postdeps_RC
21524 # The library search path used internally by the compiler when linking
21525 # a shared library.
21526 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21528 # Method to check whether dependent libraries are shared objects.
21529 deplibs_check_method=$lt_deplibs_check_method
21531 # Command to use when deplibs_check_method == file_magic.
21532 file_magic_cmd=$lt_file_magic_cmd
21534 # Flag that allows shared libraries with undefined symbols to be built.
21535 allow_undefined_flag=$lt_allow_undefined_flag_RC
21537 # Flag that forces no undefined symbols.
21538 no_undefined_flag=$lt_no_undefined_flag_RC
21540 # Commands used to finish a libtool library installation in a directory.
21541 finish_cmds=$lt_finish_cmds
21543 # Same as above, but a single script fragment to be evaled but not shown.
21544 finish_eval=$lt_finish_eval
21546 # Take the output of nm and produce a listing of raw symbols and C names.
21547 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21549 # Transform the output of nm in a proper C declaration
21550 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21552 # Transform the output of nm in a C name address pair
21553 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21555 # This is the shared library runtime path variable.
21556 runpath_var=$runpath_var
21558 # This is the shared library path variable.
21559 shlibpath_var=$shlibpath_var
21561 # Is shlibpath searched before the hard-coded library search path?
21562 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21564 # How to hardcode a shared library path into an executable.
21565 hardcode_action=$hardcode_action_RC
21567 # Whether we should hardcode library paths into libraries.
21568 hardcode_into_libs=$hardcode_into_libs
21570 # Flag to hardcode \$libdir into a binary during linking.
21571 # This must work even if \$libdir does not exist.
21572 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21574 # If ld is used when linking, flag to hardcode \$libdir into
21575 # a binary during linking. This must work even if \$libdir does
21577 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21579 # Whether we need a single -rpath flag with a separated argument.
21580 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21582 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21583 # resulting binary.
21584 hardcode_direct=$hardcode_direct_RC
21586 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21587 # resulting binary.
21588 hardcode_minus_L=$hardcode_minus_L_RC
21590 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21591 # the resulting binary.
21592 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21594 # Set to yes if building a shared library automatically hardcodes DIR into the library
21595 # and all subsequent libraries and executables linked against it.
21596 hardcode_automatic=$hardcode_automatic_RC
21598 # Variables whose values should be saved in libtool wrapper scripts and
21599 # restored at relink time.
21600 variables_saved_for_relink="$variables_saved_for_relink"
21602 # Whether libtool must link a program against all its dependency libraries.
21603 link_all_deplibs=$link_all_deplibs_RC
21605 # Compile-time system search path for libraries
21606 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21608 # Run-time system search path for libraries
21609 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21611 # Fix the shell variable \$srcfile for the compiler.
21612 fix_srcfile_path="$fix_srcfile_path_RC"
21614 # Set to yes if exported symbols are required.
21615 always_export_symbols=$always_export_symbols_RC
21617 # The commands to list exported symbols.
21618 export_symbols_cmds=$lt_export_symbols_cmds_RC
21620 # The commands to extract the exported symbol list from a shared archive.
21621 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21623 # Symbols that should not be listed in the preloaded symbols.
21624 exclude_expsyms=$lt_exclude_expsyms_RC
21626 # Symbols that must always be exported.
21627 include_expsyms=$lt_include_expsyms_RC
21629 # ### END LIBTOOL TAG CONFIG: $tagname
21635 # If there is no Makefile yet, we rely on a make rule to execute
21636 # `config.status --recheck' to rerun these tests and create the
21637 # libtool script then.
21638 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21639 if test -f "$ltmain_in"; then
21640 test -f Makefile && make "$ltmain"
21646 ac_cpp='$CPP $CPPFLAGS'
21647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21656 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21657 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21658 { (exit 1); exit 1; }; }
21662 # Append the new tag name to the list of available tags.
21663 if test -n "$tagname" ; then
21664 available_tags="$available_tags $tagname"
21670 # Now substitute the updated list of available tags.
21671 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21672 mv "${ofile}T" "$ofile"
21676 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21677 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21678 { (exit 1); exit 1; }; }
21684 # This can be used to rebuild libtool when needed
21685 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21687 # Always use our own libtool.
21688 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21690 # Prevent multiple expansion
21713 if test $ol_enable_perl != no ; then
21714 # Extract the first word of "perl", so it can be a program name with args.
21715 set dummy perl; ac_word=$2
21716 echo "$as_me:$LINENO: checking for $ac_word" >&5
21717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21718 if test "${ac_cv_path_PERLBIN+set}" = set; then
21719 echo $ECHO_N "(cached) $ECHO_C" >&6
21723 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
21726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21727 for as_dir in $PATH
21730 test -z "$as_dir" && as_dir=.
21731 for ac_exec_ext in '' $ac_executable_extensions; do
21732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21733 ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
21734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21740 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
21744 PERLBIN=$ac_cv_path_PERLBIN
21746 if test -n "$PERLBIN"; then
21747 echo "$as_me:$LINENO: result: $PERLBIN" >&5
21748 echo "${ECHO_T}$PERLBIN" >&6
21750 echo "$as_me:$LINENO: result: no" >&5
21751 echo "${ECHO_T}no" >&6
21755 if test "no$PERLBIN" = "no" ; then
21756 if test $ol_enable_perl = yes ; then
21757 { { echo "$as_me:$LINENO: error: could not locate perl" >&5
21758 echo "$as_me: error: could not locate perl" >&2;}
21759 { (exit 1); exit 1; }; }
21763 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
21764 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
21766 if test x"$ol_enable_perl" = "xyes" ; then
21767 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
21769 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
21776 ac_cpp='$CPP $CPPFLAGS'
21777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21780 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
21781 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
21782 # On Suns, sometimes $CPP names a directory.
21783 if test -n "$CPP" && test -d "$CPP"; then
21786 if test -z "$CPP"; then
21787 if test "${ac_cv_prog_CPP+set}" = set; then
21788 echo $ECHO_N "(cached) $ECHO_C" >&6
21790 # Double quotes because CPP needs to be expanded
21791 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
21793 ac_preproc_ok=false
21794 for ac_c_preproc_warn_flag in '' yes
21796 # Use a header file that comes with gcc, so configuring glibc
21797 # with a fresh cross-compiler works.
21798 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21799 # <limits.h> exists even on freestanding compilers.
21800 # On the NeXT, cc -E runs the code through the compiler's parser,
21801 # not just through cpp. "Syntax error" is here to catch this case.
21802 cat >conftest.$ac_ext <<_ACEOF
21805 cat confdefs.h >>conftest.$ac_ext
21806 cat >>conftest.$ac_ext <<_ACEOF
21807 /* end confdefs.h. */
21809 # include <limits.h>
21811 # include <assert.h>
21815 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21816 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21818 grep -v '^ *+' conftest.er1 >conftest.err
21820 cat conftest.err >&5
21821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21822 (exit $ac_status); } >/dev/null; then
21823 if test -s conftest.err; then
21824 ac_cpp_err=$ac_c_preproc_warn_flag
21825 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21832 if test -z "$ac_cpp_err"; then
21835 echo "$as_me: failed program was:" >&5
21836 sed 's/^/| /' conftest.$ac_ext >&5
21838 # Broken: fails on valid input.
21841 rm -f conftest.err conftest.$ac_ext
21843 # OK, works on sane cases. Now check whether non-existent headers
21844 # can be detected and how.
21845 cat >conftest.$ac_ext <<_ACEOF
21848 cat confdefs.h >>conftest.$ac_ext
21849 cat >>conftest.$ac_ext <<_ACEOF
21850 /* end confdefs.h. */
21851 #include <ac_nonexistent.h>
21853 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21854 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21856 grep -v '^ *+' conftest.er1 >conftest.err
21858 cat conftest.err >&5
21859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21860 (exit $ac_status); } >/dev/null; then
21861 if test -s conftest.err; then
21862 ac_cpp_err=$ac_c_preproc_warn_flag
21863 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21870 if test -z "$ac_cpp_err"; then
21871 # Broken: success on invalid input.
21874 echo "$as_me: failed program was:" >&5
21875 sed 's/^/| /' conftest.$ac_ext >&5
21877 # Passes both tests.
21881 rm -f conftest.err conftest.$ac_ext
21884 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21885 rm -f conftest.err conftest.$ac_ext
21886 if $ac_preproc_ok; then
21891 ac_cv_prog_CPP=$CPP
21894 CPP=$ac_cv_prog_CPP
21896 ac_cv_prog_CPP=$CPP
21898 echo "$as_me:$LINENO: result: $CPP" >&5
21899 echo "${ECHO_T}$CPP" >&6
21900 ac_preproc_ok=false
21901 for ac_c_preproc_warn_flag in '' yes
21903 # Use a header file that comes with gcc, so configuring glibc
21904 # with a fresh cross-compiler works.
21905 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21906 # <limits.h> exists even on freestanding compilers.
21907 # On the NeXT, cc -E runs the code through the compiler's parser,
21908 # not just through cpp. "Syntax error" is here to catch this case.
21909 cat >conftest.$ac_ext <<_ACEOF
21912 cat confdefs.h >>conftest.$ac_ext
21913 cat >>conftest.$ac_ext <<_ACEOF
21914 /* end confdefs.h. */
21916 # include <limits.h>
21918 # include <assert.h>
21922 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21923 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21925 grep -v '^ *+' conftest.er1 >conftest.err
21927 cat conftest.err >&5
21928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21929 (exit $ac_status); } >/dev/null; then
21930 if test -s conftest.err; then
21931 ac_cpp_err=$ac_c_preproc_warn_flag
21932 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21939 if test -z "$ac_cpp_err"; then
21942 echo "$as_me: failed program was:" >&5
21943 sed 's/^/| /' conftest.$ac_ext >&5
21945 # Broken: fails on valid input.
21948 rm -f conftest.err conftest.$ac_ext
21950 # OK, works on sane cases. Now check whether non-existent headers
21951 # can be detected and how.
21952 cat >conftest.$ac_ext <<_ACEOF
21955 cat confdefs.h >>conftest.$ac_ext
21956 cat >>conftest.$ac_ext <<_ACEOF
21957 /* end confdefs.h. */
21958 #include <ac_nonexistent.h>
21960 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21961 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21963 grep -v '^ *+' conftest.er1 >conftest.err
21965 cat conftest.err >&5
21966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21967 (exit $ac_status); } >/dev/null; then
21968 if test -s conftest.err; then
21969 ac_cpp_err=$ac_c_preproc_warn_flag
21970 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21977 if test -z "$ac_cpp_err"; then
21978 # Broken: success on invalid input.
21981 echo "$as_me: failed program was:" >&5
21982 sed 's/^/| /' conftest.$ac_ext >&5
21984 # Passes both tests.
21988 rm -f conftest.err conftest.$ac_ext
21991 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21992 rm -f conftest.err conftest.$ac_ext
21993 if $ac_preproc_ok; then
21996 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
21997 See \`config.log' for more details." >&5
21998 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
21999 See \`config.log' for more details." >&2;}
22000 { (exit 1); exit 1; }; }
22004 ac_cpp='$CPP $CPPFLAGS'
22005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22014 cat >>confdefs.h <<_ACEOF
22015 #define EXEEXT "${EXEEXT}"
22019 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
22020 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
22021 if test "${ac_cv_lib_be_be_app+set}" = set; then
22022 echo $ECHO_N "(cached) $ECHO_C" >&6
22024 ac_check_lib_save_LIBS=$LIBS
22025 LIBS="-lbe -lroot -lnet $LIBS"
22026 cat >conftest.$ac_ext <<_ACEOF
22029 cat confdefs.h >>conftest.$ac_ext
22030 cat >>conftest.$ac_ext <<_ACEOF
22031 /* end confdefs.h. */
22033 /* Override any gcc2 internal prototype to avoid an error. */
22037 /* We use char because int might match the return type of a gcc2
22038 builtin and then its argument prototype would still apply. */
22048 rm -f conftest.$ac_objext conftest$ac_exeext
22049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22050 (eval $ac_link) 2>conftest.er1
22052 grep -v '^ *+' conftest.er1 >conftest.err
22054 cat conftest.err >&5
22055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22056 (exit $ac_status); } &&
22057 { ac_try='test -z "$ac_c_werror_flag"
22058 || test ! -s conftest.err'
22059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22060 (eval $ac_try) 2>&5
22062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22063 (exit $ac_status); }; } &&
22064 { ac_try='test -s conftest$ac_exeext'
22065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22066 (eval $ac_try) 2>&5
22068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22069 (exit $ac_status); }; }; then
22070 ac_cv_lib_be_be_app=yes
22072 echo "$as_me: failed program was:" >&5
22073 sed 's/^/| /' conftest.$ac_ext >&5
22075 ac_cv_lib_be_be_app=no
22077 rm -f conftest.err conftest.$ac_objext \
22078 conftest$ac_exeext conftest.$ac_ext
22079 LIBS=$ac_check_lib_save_LIBS
22081 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
22082 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
22083 if test $ac_cv_lib_be_be_app = yes; then
22084 LIBS="$LIBS -lbe -lroot -lnet"
22091 ac_cpp='$CPP $CPPFLAGS'
22092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22095 if test -n "$ac_tool_prefix"; then
22096 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
22097 set dummy ${ac_tool_prefix}gcc; ac_word=$2
22098 echo "$as_me:$LINENO: checking for $ac_word" >&5
22099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22100 if test "${ac_cv_prog_CC+set}" = set; then
22101 echo $ECHO_N "(cached) $ECHO_C" >&6
22103 if test -n "$CC"; then
22104 ac_cv_prog_CC="$CC" # Let the user override the test.
22106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22107 for as_dir in $PATH
22110 test -z "$as_dir" && as_dir=.
22111 for ac_exec_ext in '' $ac_executable_extensions; do
22112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22113 ac_cv_prog_CC="${ac_tool_prefix}gcc"
22114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22123 if test -n "$CC"; then
22124 echo "$as_me:$LINENO: result: $CC" >&5
22125 echo "${ECHO_T}$CC" >&6
22127 echo "$as_me:$LINENO: result: no" >&5
22128 echo "${ECHO_T}no" >&6
22132 if test -z "$ac_cv_prog_CC"; then
22134 # Extract the first word of "gcc", so it can be a program name with args.
22135 set dummy gcc; ac_word=$2
22136 echo "$as_me:$LINENO: checking for $ac_word" >&5
22137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22138 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22139 echo $ECHO_N "(cached) $ECHO_C" >&6
22141 if test -n "$ac_ct_CC"; then
22142 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22145 for as_dir in $PATH
22148 test -z "$as_dir" && as_dir=.
22149 for ac_exec_ext in '' $ac_executable_extensions; do
22150 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22151 ac_cv_prog_ac_ct_CC="gcc"
22152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22160 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22161 if test -n "$ac_ct_CC"; then
22162 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22163 echo "${ECHO_T}$ac_ct_CC" >&6
22165 echo "$as_me:$LINENO: result: no" >&5
22166 echo "${ECHO_T}no" >&6
22171 CC="$ac_cv_prog_CC"
22174 if test -z "$CC"; then
22175 if test -n "$ac_tool_prefix"; then
22176 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
22177 set dummy ${ac_tool_prefix}cc; ac_word=$2
22178 echo "$as_me:$LINENO: checking for $ac_word" >&5
22179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22180 if test "${ac_cv_prog_CC+set}" = set; then
22181 echo $ECHO_N "(cached) $ECHO_C" >&6
22183 if test -n "$CC"; then
22184 ac_cv_prog_CC="$CC" # Let the user override the test.
22186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22187 for as_dir in $PATH
22190 test -z "$as_dir" && as_dir=.
22191 for ac_exec_ext in '' $ac_executable_extensions; do
22192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22193 ac_cv_prog_CC="${ac_tool_prefix}cc"
22194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22203 if test -n "$CC"; then
22204 echo "$as_me:$LINENO: result: $CC" >&5
22205 echo "${ECHO_T}$CC" >&6
22207 echo "$as_me:$LINENO: result: no" >&5
22208 echo "${ECHO_T}no" >&6
22212 if test -z "$ac_cv_prog_CC"; then
22214 # Extract the first word of "cc", so it can be a program name with args.
22215 set dummy cc; ac_word=$2
22216 echo "$as_me:$LINENO: checking for $ac_word" >&5
22217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22218 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22219 echo $ECHO_N "(cached) $ECHO_C" >&6
22221 if test -n "$ac_ct_CC"; then
22222 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22225 for as_dir in $PATH
22228 test -z "$as_dir" && as_dir=.
22229 for ac_exec_ext in '' $ac_executable_extensions; do
22230 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22231 ac_cv_prog_ac_ct_CC="cc"
22232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22240 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22241 if test -n "$ac_ct_CC"; then
22242 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22243 echo "${ECHO_T}$ac_ct_CC" >&6
22245 echo "$as_me:$LINENO: result: no" >&5
22246 echo "${ECHO_T}no" >&6
22251 CC="$ac_cv_prog_CC"
22255 if test -z "$CC"; then
22256 # Extract the first word of "cc", so it can be a program name with args.
22257 set dummy cc; ac_word=$2
22258 echo "$as_me:$LINENO: checking for $ac_word" >&5
22259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22260 if test "${ac_cv_prog_CC+set}" = set; then
22261 echo $ECHO_N "(cached) $ECHO_C" >&6
22263 if test -n "$CC"; then
22264 ac_cv_prog_CC="$CC" # Let the user override the test.
22266 ac_prog_rejected=no
22267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22268 for as_dir in $PATH
22271 test -z "$as_dir" && as_dir=.
22272 for ac_exec_ext in '' $ac_executable_extensions; do
22273 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22274 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
22275 ac_prog_rejected=yes
22279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22285 if test $ac_prog_rejected = yes; then
22286 # We found a bogon in the path, so make sure we never use it.
22287 set dummy $ac_cv_prog_CC
22289 if test $# != 0; then
22290 # We chose a different compiler from the bogus one.
22291 # However, it has the same basename, so the bogon will be chosen
22292 # first if we set CC to just the basename; use the full file name.
22294 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
22300 if test -n "$CC"; then
22301 echo "$as_me:$LINENO: result: $CC" >&5
22302 echo "${ECHO_T}$CC" >&6
22304 echo "$as_me:$LINENO: result: no" >&5
22305 echo "${ECHO_T}no" >&6
22309 if test -z "$CC"; then
22310 if test -n "$ac_tool_prefix"; then
22313 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
22314 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
22315 echo "$as_me:$LINENO: checking for $ac_word" >&5
22316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22317 if test "${ac_cv_prog_CC+set}" = set; then
22318 echo $ECHO_N "(cached) $ECHO_C" >&6
22320 if test -n "$CC"; then
22321 ac_cv_prog_CC="$CC" # Let the user override the test.
22323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22324 for as_dir in $PATH
22327 test -z "$as_dir" && as_dir=.
22328 for ac_exec_ext in '' $ac_executable_extensions; do
22329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22330 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
22331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22340 if test -n "$CC"; then
22341 echo "$as_me:$LINENO: result: $CC" >&5
22342 echo "${ECHO_T}$CC" >&6
22344 echo "$as_me:$LINENO: result: no" >&5
22345 echo "${ECHO_T}no" >&6
22348 test -n "$CC" && break
22351 if test -z "$CC"; then
22355 # Extract the first word of "$ac_prog", so it can be a program name with args.
22356 set dummy $ac_prog; ac_word=$2
22357 echo "$as_me:$LINENO: checking for $ac_word" >&5
22358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22359 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22360 echo $ECHO_N "(cached) $ECHO_C" >&6
22362 if test -n "$ac_ct_CC"; then
22363 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22366 for as_dir in $PATH
22369 test -z "$as_dir" && as_dir=.
22370 for ac_exec_ext in '' $ac_executable_extensions; do
22371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22372 ac_cv_prog_ac_ct_CC="$ac_prog"
22373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22381 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22382 if test -n "$ac_ct_CC"; then
22383 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22384 echo "${ECHO_T}$ac_ct_CC" >&6
22386 echo "$as_me:$LINENO: result: no" >&5
22387 echo "${ECHO_T}no" >&6
22390 test -n "$ac_ct_CC" && break
22399 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
22400 See \`config.log' for more details." >&5
22401 echo "$as_me: error: no acceptable C compiler found in \$PATH
22402 See \`config.log' for more details." >&2;}
22403 { (exit 1); exit 1; }; }
22405 # Provide some information about the compiler.
22406 echo "$as_me:$LINENO:" \
22407 "checking for C compiler version" >&5
22408 ac_compiler=`set X $ac_compile; echo $2`
22409 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
22410 (eval $ac_compiler --version </dev/null >&5) 2>&5
22412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22413 (exit $ac_status); }
22414 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
22415 (eval $ac_compiler -v </dev/null >&5) 2>&5
22417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22418 (exit $ac_status); }
22419 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
22420 (eval $ac_compiler -V </dev/null >&5) 2>&5
22422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22423 (exit $ac_status); }
22425 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
22426 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
22427 if test "${ac_cv_c_compiler_gnu+set}" = set; then
22428 echo $ECHO_N "(cached) $ECHO_C" >&6
22430 cat >conftest.$ac_ext <<_ACEOF
22433 cat confdefs.h >>conftest.$ac_ext
22434 cat >>conftest.$ac_ext <<_ACEOF
22435 /* end confdefs.h. */
22448 rm -f conftest.$ac_objext
22449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22450 (eval $ac_compile) 2>conftest.er1
22452 grep -v '^ *+' conftest.er1 >conftest.err
22454 cat conftest.err >&5
22455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22456 (exit $ac_status); } &&
22457 { ac_try='test -z "$ac_c_werror_flag"
22458 || test ! -s conftest.err'
22459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22460 (eval $ac_try) 2>&5
22462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22463 (exit $ac_status); }; } &&
22464 { ac_try='test -s conftest.$ac_objext'
22465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22466 (eval $ac_try) 2>&5
22468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22469 (exit $ac_status); }; }; then
22470 ac_compiler_gnu=yes
22472 echo "$as_me: failed program was:" >&5
22473 sed 's/^/| /' conftest.$ac_ext >&5
22477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22478 ac_cv_c_compiler_gnu=$ac_compiler_gnu
22481 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
22482 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
22483 GCC=`test $ac_compiler_gnu = yes && echo yes`
22484 ac_test_CFLAGS=${CFLAGS+set}
22485 ac_save_CFLAGS=$CFLAGS
22487 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
22488 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
22489 if test "${ac_cv_prog_cc_g+set}" = set; then
22490 echo $ECHO_N "(cached) $ECHO_C" >&6
22492 cat >conftest.$ac_ext <<_ACEOF
22495 cat confdefs.h >>conftest.$ac_ext
22496 cat >>conftest.$ac_ext <<_ACEOF
22497 /* end confdefs.h. */
22507 rm -f conftest.$ac_objext
22508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22509 (eval $ac_compile) 2>conftest.er1
22511 grep -v '^ *+' conftest.er1 >conftest.err
22513 cat conftest.err >&5
22514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22515 (exit $ac_status); } &&
22516 { ac_try='test -z "$ac_c_werror_flag"
22517 || test ! -s conftest.err'
22518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22519 (eval $ac_try) 2>&5
22521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22522 (exit $ac_status); }; } &&
22523 { ac_try='test -s conftest.$ac_objext'
22524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22525 (eval $ac_try) 2>&5
22527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22528 (exit $ac_status); }; }; then
22529 ac_cv_prog_cc_g=yes
22531 echo "$as_me: failed program was:" >&5
22532 sed 's/^/| /' conftest.$ac_ext >&5
22536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22538 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
22539 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
22540 if test "$ac_test_CFLAGS" = set; then
22541 CFLAGS=$ac_save_CFLAGS
22542 elif test $ac_cv_prog_cc_g = yes; then
22543 if test "$GCC" = yes; then
22549 if test "$GCC" = yes; then
22555 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
22556 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
22557 if test "${ac_cv_prog_cc_stdc+set}" = set; then
22558 echo $ECHO_N "(cached) $ECHO_C" >&6
22560 ac_cv_prog_cc_stdc=no
22562 cat >conftest.$ac_ext <<_ACEOF
22565 cat confdefs.h >>conftest.$ac_ext
22566 cat >>conftest.$ac_ext <<_ACEOF
22567 /* end confdefs.h. */
22568 #include <stdarg.h>
22570 #include <sys/types.h>
22571 #include <sys/stat.h>
22572 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
22573 struct buf { int x; };
22574 FILE * (*rcsopen) (struct buf *, struct stat *, int);
22575 static char *e (p, i)
22581 static char *f (char * (*g) (char **, int), char **p, ...)
22586 s = g (p, va_arg (v,int));
22591 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
22592 function prototypes and stuff, but not '\xHH' hex character constants.
22593 These don't provoke an error unfortunately, instead are silently treated
22594 as 'x'. The following induces an error, until -std1 is added to get
22595 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
22596 array size at least. It's necessary to write '\x00'==0 to get something
22597 that's true only with -std1. */
22598 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
22600 int test (int i, double x);
22601 struct s1 {int (*f) (int a);};
22602 struct s2 {int (*f) (double a);};
22603 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
22609 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
22614 # Don't try gcc -ansi; that turns off useful extensions and
22615 # breaks some systems' header files.
22616 # AIX -qlanglvl=ansi
22617 # Ultrix and OSF/1 -std1
22618 # HP-UX 10.20 and later -Ae
22619 # HP-UX older versions -Aa -D_HPUX_SOURCE
22620 # SVR4 -Xc -D__EXTENSIONS__
22621 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
22623 CC="$ac_save_CC $ac_arg"
22624 rm -f conftest.$ac_objext
22625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22626 (eval $ac_compile) 2>conftest.er1
22628 grep -v '^ *+' conftest.er1 >conftest.err
22630 cat conftest.err >&5
22631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22632 (exit $ac_status); } &&
22633 { ac_try='test -z "$ac_c_werror_flag"
22634 || test ! -s conftest.err'
22635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22636 (eval $ac_try) 2>&5
22638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22639 (exit $ac_status); }; } &&
22640 { ac_try='test -s conftest.$ac_objext'
22641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22642 (eval $ac_try) 2>&5
22644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22645 (exit $ac_status); }; }; then
22646 ac_cv_prog_cc_stdc=$ac_arg
22649 echo "$as_me: failed program was:" >&5
22650 sed 's/^/| /' conftest.$ac_ext >&5
22653 rm -f conftest.err conftest.$ac_objext
22655 rm -f conftest.$ac_ext conftest.$ac_objext
22660 case "x$ac_cv_prog_cc_stdc" in
22662 echo "$as_me:$LINENO: result: none needed" >&5
22663 echo "${ECHO_T}none needed" >&6 ;;
22665 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
22666 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
22667 CC="$CC $ac_cv_prog_cc_stdc" ;;
22670 # Some people use a C++ compiler to compile C. Since we use `exit',
22671 # in C++ we need to declare it. In case someone uses the same compiler
22672 # for both compiling C and C++ we need to have the C++ compiler decide
22673 # the declaration of exit, since it's the most demanding environment.
22674 cat >conftest.$ac_ext <<_ACEOF
22675 #ifndef __cplusplus
22679 rm -f conftest.$ac_objext
22680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22681 (eval $ac_compile) 2>conftest.er1
22683 grep -v '^ *+' conftest.er1 >conftest.err
22685 cat conftest.err >&5
22686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22687 (exit $ac_status); } &&
22688 { ac_try='test -z "$ac_c_werror_flag"
22689 || test ! -s conftest.err'
22690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22691 (eval $ac_try) 2>&5
22693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22694 (exit $ac_status); }; } &&
22695 { ac_try='test -s conftest.$ac_objext'
22696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22697 (eval $ac_try) 2>&5
22699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22700 (exit $ac_status); }; }; then
22701 for ac_declaration in \
22703 'extern "C" void std::exit (int) throw (); using std::exit;' \
22704 'extern "C" void std::exit (int); using std::exit;' \
22705 'extern "C" void exit (int) throw ();' \
22706 'extern "C" void exit (int);' \
22709 cat >conftest.$ac_ext <<_ACEOF
22712 cat confdefs.h >>conftest.$ac_ext
22713 cat >>conftest.$ac_ext <<_ACEOF
22714 /* end confdefs.h. */
22716 #include <stdlib.h>
22725 rm -f conftest.$ac_objext
22726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22727 (eval $ac_compile) 2>conftest.er1
22729 grep -v '^ *+' conftest.er1 >conftest.err
22731 cat conftest.err >&5
22732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22733 (exit $ac_status); } &&
22734 { ac_try='test -z "$ac_c_werror_flag"
22735 || test ! -s conftest.err'
22736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22737 (eval $ac_try) 2>&5
22739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22740 (exit $ac_status); }; } &&
22741 { ac_try='test -s conftest.$ac_objext'
22742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22743 (eval $ac_try) 2>&5
22745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22746 (exit $ac_status); }; }; then
22749 echo "$as_me: failed program was:" >&5
22750 sed 's/^/| /' conftest.$ac_ext >&5
22754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22755 cat >conftest.$ac_ext <<_ACEOF
22758 cat confdefs.h >>conftest.$ac_ext
22759 cat >>conftest.$ac_ext <<_ACEOF
22760 /* end confdefs.h. */
22770 rm -f conftest.$ac_objext
22771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22772 (eval $ac_compile) 2>conftest.er1
22774 grep -v '^ *+' conftest.er1 >conftest.err
22776 cat conftest.err >&5
22777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22778 (exit $ac_status); } &&
22779 { ac_try='test -z "$ac_c_werror_flag"
22780 || test ! -s conftest.err'
22781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22782 (eval $ac_try) 2>&5
22784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22785 (exit $ac_status); }; } &&
22786 { ac_try='test -s conftest.$ac_objext'
22787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22788 (eval $ac_try) 2>&5
22790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22791 (exit $ac_status); }; }; then
22794 echo "$as_me: failed program was:" >&5
22795 sed 's/^/| /' conftest.$ac_ext >&5
22798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22801 if test -n "$ac_declaration"; then
22802 echo '#ifdef __cplusplus' >>confdefs.h
22803 echo $ac_declaration >>confdefs.h
22804 echo '#endif' >>confdefs.h
22808 echo "$as_me: failed program was:" >&5
22809 sed 's/^/| /' conftest.$ac_ext >&5
22812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22814 ac_cpp='$CPP $CPPFLAGS'
22815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22819 depcc="$CC" am_compiler_list=
22821 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
22822 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
22823 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
22824 echo $ECHO_N "(cached) $ECHO_C" >&6
22826 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
22827 # We make a subdir and do the tests there. Otherwise we can end up
22828 # making bogus files that we don't know about and never remove. For
22829 # instance it was reported that on HP-UX the gcc test will end up
22830 # making a dummy file named `D' -- because `-MD' means `put the output
22833 # Copy depcomp to subdir because otherwise we won't find it if we're
22834 # using a relative directory.
22835 cp "$am_depcomp" conftest.dir
22837 # We will build objects and dependencies in a subdirectory because
22838 # it helps to detect inapplicable dependency modes. For instance
22839 # both Tru64's cc and ICC support -MD to output dependencies as a
22840 # side effect of compilation, but ICC will put the dependencies in
22841 # the current directory while Tru64 will put them in the object
22845 am_cv_CC_dependencies_compiler_type=none
22846 if test "$am_compiler_list" = ""; then
22847 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
22849 for depmode in $am_compiler_list; do
22850 # Setup a source with many dependencies, because some compilers
22851 # like to wrap large dependency lists on column 80 (with \), and
22852 # we should not choose a depcomp mode which is confused by this.
22854 # We need to recreate these files for each test, as the compiler may
22855 # overwrite some of them when testing with obscure command lines.
22856 # This happens at least with the AIX C compiler.
22858 for i in 1 2 3 4 5 6; do
22859 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22860 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
22861 # Solaris 8's {/usr,}/bin/sh.
22862 touch sub/conftst$i.h
22864 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
22868 # after this tag, mechanisms are not by side-effect, so they'll
22869 # only be used when explicitly requested
22870 if test "x$enable_dependency_tracking" = xyes; then
22878 # We check with `-c' and `-o' for the sake of the "dashmstdout"
22879 # mode. It turns out that the SunPro C++ compiler does not properly
22880 # handle `-M -o', and we need to detect this.
22881 if depmode=$depmode \
22882 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
22883 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
22884 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
22885 >/dev/null 2>conftest.err &&
22886 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
22887 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
22888 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
22889 # icc doesn't choke on unknown options, it will just issue warnings
22890 # or remarks (even with -Werror). So we grep stderr for any message
22891 # that says an option was ignored or not supported.
22892 # When given -MP, icc 7.0 and 7.1 complain thusly:
22893 # icc: Command line warning: ignoring option '-M'; no argument required
22894 # The diagnosis changed in icc 8.0:
22895 # icc: Command line remark: option '-MP' not supported
22896 if (grep 'ignoring option' conftest.err ||
22897 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
22898 am_cv_CC_dependencies_compiler_type=$depmode
22905 rm -rf conftest.dir
22907 am_cv_CC_dependencies_compiler_type=none
22911 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
22912 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
22913 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
22918 test "x$enable_dependency_tracking" != xno \
22919 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
22920 am__fastdepCC_TRUE=
22921 am__fastdepCC_FALSE='#'
22923 am__fastdepCC_TRUE='#'
22924 am__fastdepCC_FALSE=
22928 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
22929 { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
22930 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
22931 { (exit 1); exit 1; }; }
22934 # test for make depend flag
22937 if test -z "${MKDEP}"; then
22938 OL_MKDEP="${CC-cc}"
22939 if test -z "${MKDEP_FLAGS}"; then
22940 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
22941 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
22942 if test "${ol_cv_mkdep+set}" = set; then
22943 echo $ECHO_N "(cached) $ECHO_C" >&6
22947 for flag in "-M" "-xM"; do
22948 cat > conftest.c <<EOF
22951 if { ac_try='$OL_MKDEP $flag conftest.c'
22952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22953 (eval $ac_try) 2>&5
22955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22956 (exit $ac_status); }; } \
22957 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
22959 if test ! -f conftest."${ac_object}" ; then
22961 OL_MKDEP_FLAGS="$flag"
22969 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
22970 echo "${ECHO_T}$ol_cv_mkdep" >&6
22973 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
22977 OL_MKDEP="${MKDEP}"
22978 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
22983 if test "${ol_cv_mkdep}" = no ; then
22984 # this will soon become an error
22985 { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
22986 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
22989 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
22990 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
22991 if test "${ac_cv_lib_s_afopen+set}" = set; then
22992 echo $ECHO_N "(cached) $ECHO_C" >&6
22994 ac_check_lib_save_LIBS=$LIBS
22996 cat >conftest.$ac_ext <<_ACEOF
22999 cat confdefs.h >>conftest.$ac_ext
23000 cat >>conftest.$ac_ext <<_ACEOF
23001 /* end confdefs.h. */
23003 /* Override any gcc2 internal prototype to avoid an error. */
23007 /* We use char because int might match the return type of a gcc2
23008 builtin and then its argument prototype would still apply. */
23018 rm -f conftest.$ac_objext conftest$ac_exeext
23019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23020 (eval $ac_link) 2>conftest.er1
23022 grep -v '^ *+' conftest.er1 >conftest.err
23024 cat conftest.err >&5
23025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23026 (exit $ac_status); } &&
23027 { ac_try='test -z "$ac_c_werror_flag"
23028 || test ! -s conftest.err'
23029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23030 (eval $ac_try) 2>&5
23032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23033 (exit $ac_status); }; } &&
23034 { ac_try='test -s conftest$ac_exeext'
23035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23036 (eval $ac_try) 2>&5
23038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23039 (exit $ac_status); }; }; then
23040 ac_cv_lib_s_afopen=yes
23042 echo "$as_me: failed program was:" >&5
23043 sed 's/^/| /' conftest.$ac_ext >&5
23045 ac_cv_lib_s_afopen=no
23047 rm -f conftest.err conftest.$ac_objext \
23048 conftest$ac_exeext conftest.$ac_ext
23049 LIBS=$ac_check_lib_save_LIBS
23051 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
23052 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
23053 if test $ac_cv_lib_s_afopen = yes; then
23057 cat >>confdefs.h <<\_ACEOF
23058 #define HAVE_AIX_SECURITY 1
23067 ac_cv_func_getopt=no
23069 cat >>confdefs.h <<\_ACEOF
23070 #define BOTH_STRINGS_H 1
23077 WITH_MODULES_ENABLED=no
23078 if test $ol_enable_modules != no ; then
23080 for ac_header in ltdl.h
23082 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23084 echo "$as_me:$LINENO: checking for $ac_header" >&5
23085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23086 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23087 echo $ECHO_N "(cached) $ECHO_C" >&6
23089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23090 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23092 # Is the header compilable?
23093 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23094 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23095 cat >conftest.$ac_ext <<_ACEOF
23098 cat confdefs.h >>conftest.$ac_ext
23099 cat >>conftest.$ac_ext <<_ACEOF
23100 /* end confdefs.h. */
23101 $ac_includes_default
23102 #include <$ac_header>
23104 rm -f conftest.$ac_objext
23105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23106 (eval $ac_compile) 2>conftest.er1
23108 grep -v '^ *+' conftest.er1 >conftest.err
23110 cat conftest.err >&5
23111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23112 (exit $ac_status); } &&
23113 { ac_try='test -z "$ac_c_werror_flag"
23114 || test ! -s conftest.err'
23115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23116 (eval $ac_try) 2>&5
23118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23119 (exit $ac_status); }; } &&
23120 { ac_try='test -s conftest.$ac_objext'
23121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23122 (eval $ac_try) 2>&5
23124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23125 (exit $ac_status); }; }; then
23126 ac_header_compiler=yes
23128 echo "$as_me: failed program was:" >&5
23129 sed 's/^/| /' conftest.$ac_ext >&5
23131 ac_header_compiler=no
23133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23134 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23135 echo "${ECHO_T}$ac_header_compiler" >&6
23137 # Is the header present?
23138 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23139 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23140 cat >conftest.$ac_ext <<_ACEOF
23143 cat confdefs.h >>conftest.$ac_ext
23144 cat >>conftest.$ac_ext <<_ACEOF
23145 /* end confdefs.h. */
23146 #include <$ac_header>
23148 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23149 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23151 grep -v '^ *+' conftest.er1 >conftest.err
23153 cat conftest.err >&5
23154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23155 (exit $ac_status); } >/dev/null; then
23156 if test -s conftest.err; then
23157 ac_cpp_err=$ac_c_preproc_warn_flag
23158 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23165 if test -z "$ac_cpp_err"; then
23166 ac_header_preproc=yes
23168 echo "$as_me: failed program was:" >&5
23169 sed 's/^/| /' conftest.$ac_ext >&5
23171 ac_header_preproc=no
23173 rm -f conftest.err conftest.$ac_ext
23174 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23175 echo "${ECHO_T}$ac_header_preproc" >&6
23177 # So? What about this header?
23178 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23180 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23181 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23183 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23184 ac_header_preproc=yes
23187 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23188 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23189 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23190 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23191 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23192 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23193 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23194 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23195 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23196 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23197 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23198 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23201 ## ------------------------------------------ ##
23202 ## Report this to the AC_PACKAGE_NAME lists. ##
23203 ## ------------------------------------------ ##
23206 sed "s/^/$as_me: WARNING: /" >&2
23209 echo "$as_me:$LINENO: checking for $ac_header" >&5
23210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23212 echo $ECHO_N "(cached) $ECHO_C" >&6
23214 eval "$as_ac_Header=\$ac_header_preproc"
23216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23217 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23220 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23221 cat >>confdefs.h <<_ACEOF
23222 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23230 if test $ac_cv_header_ltdl_h = no ; then
23231 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
23232 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
23233 { (exit 1); exit 1; }; }
23236 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
23237 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
23238 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
23239 echo $ECHO_N "(cached) $ECHO_C" >&6
23241 ac_check_lib_save_LIBS=$LIBS
23242 LIBS="-lltdl $LIBS"
23243 cat >conftest.$ac_ext <<_ACEOF
23246 cat confdefs.h >>conftest.$ac_ext
23247 cat >>conftest.$ac_ext <<_ACEOF
23248 /* end confdefs.h. */
23250 /* Override any gcc2 internal prototype to avoid an error. */
23254 /* We use char because int might match the return type of a gcc2
23255 builtin and then its argument prototype would still apply. */
23265 rm -f conftest.$ac_objext conftest$ac_exeext
23266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23267 (eval $ac_link) 2>conftest.er1
23269 grep -v '^ *+' conftest.er1 >conftest.err
23271 cat conftest.err >&5
23272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23273 (exit $ac_status); } &&
23274 { ac_try='test -z "$ac_c_werror_flag"
23275 || test ! -s conftest.err'
23276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23277 (eval $ac_try) 2>&5
23279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23280 (exit $ac_status); }; } &&
23281 { ac_try='test -s conftest$ac_exeext'
23282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23283 (eval $ac_try) 2>&5
23285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23286 (exit $ac_status); }; }; then
23287 ac_cv_lib_ltdl_lt_dlinit=yes
23289 echo "$as_me: failed program was:" >&5
23290 sed 's/^/| /' conftest.$ac_ext >&5
23292 ac_cv_lib_ltdl_lt_dlinit=no
23294 rm -f conftest.err conftest.$ac_objext \
23295 conftest$ac_exeext conftest.$ac_ext
23296 LIBS=$ac_check_lib_save_LIBS
23298 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
23299 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
23300 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
23302 MODULES_LIBS=-lltdl
23304 cat >>confdefs.h <<\_ACEOF
23305 #define HAVE_LIBLTDL 1
23312 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
23313 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
23314 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
23315 { (exit 1); exit 1; }; }
23317 ol_link_modules=yes
23318 WITH_MODULES_ENABLED=yes
23321 for i in $Backends; do
23322 eval "ol_tmp=\$ol_enable_$i"
23323 if test $ol_tmp = mod ; then
23324 { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
23325 echo "$as_me: WARNING: building static $i backend" >&2;}
23326 eval "ol_enable_$i=yes"
23329 for i in $Overlays; do
23330 eval "ol_tmp=\$ol_enable_$i"
23331 if test $ol_tmp = mod ; then
23332 { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
23333 echo "$as_me: WARNING: building static $i overlay" >&2;}
23334 eval "ol_enable_$i=yes"
23340 echo "$as_me:$LINENO: checking for EBCDIC" >&5
23341 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
23342 if test "${ol_cv_cpp_ebcdic+set}" = set; then
23343 echo $ECHO_N "(cached) $ECHO_C" >&6
23346 cat >conftest.$ac_ext <<_ACEOF
23349 cat confdefs.h >>conftest.$ac_ext
23350 cat >>conftest.$ac_ext <<_ACEOF
23351 /* end confdefs.h. */
23354 #include <__ASCII__/generate_error.h>
23358 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23359 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23361 grep -v '^ *+' conftest.er1 >conftest.err
23363 cat conftest.err >&5
23364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23365 (exit $ac_status); } >/dev/null; then
23366 if test -s conftest.err; then
23367 ac_cpp_err=$ac_c_preproc_warn_flag
23368 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23375 if test -z "$ac_cpp_err"; then
23376 ol_cv_cpp_ebcdic=yes
23378 echo "$as_me: failed program was:" >&5
23379 sed 's/^/| /' conftest.$ac_ext >&5
23381 ol_cv_cpp_ebcdic=no
23383 rm -f conftest.err conftest.$ac_ext
23385 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
23386 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
23387 if test $ol_cv_cpp_ebcdic = yes ; then
23389 cat >>confdefs.h <<\_ACEOF
23390 #define HAVE_EBCDIC 1
23395 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
23396 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
23397 if test "${ol_cv_header_stdc+set}" = set; then
23398 echo $ECHO_N "(cached) $ECHO_C" >&6
23400 cat >conftest.$ac_ext <<_ACEOF
23403 cat confdefs.h >>conftest.$ac_ext
23404 cat >>conftest.$ac_ext <<_ACEOF
23405 /* end confdefs.h. */
23406 #include <stdlib.h>
23407 #include <stdarg.h>
23408 #include <string.h>
23411 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23412 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23414 grep -v '^ *+' conftest.er1 >conftest.err
23416 cat conftest.err >&5
23417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23418 (exit $ac_status); } >/dev/null; then
23419 if test -s conftest.err; then
23420 ac_cpp_err=$ac_c_preproc_warn_flag
23421 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23428 if test -z "$ac_cpp_err"; then
23429 ol_cv_header_stdc=yes
23431 echo "$as_me: failed program was:" >&5
23432 sed 's/^/| /' conftest.$ac_ext >&5
23434 ol_cv_header_stdc=no
23436 rm -f conftest.err conftest.$ac_ext
23438 if test $ol_cv_header_stdc = yes; then
23439 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
23440 cat >conftest.$ac_ext <<_ACEOF
23443 cat confdefs.h >>conftest.$ac_ext
23444 cat >>conftest.$ac_ext <<_ACEOF
23445 /* end confdefs.h. */
23446 #include <string.h>
23449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23450 $EGREP "memchr" >/dev/null 2>&1; then
23453 ol_cv_header_stdc=no
23459 if test $ol_cv_header_stdc = yes; then
23460 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
23461 cat >conftest.$ac_ext <<_ACEOF
23464 cat confdefs.h >>conftest.$ac_ext
23465 cat >>conftest.$ac_ext <<_ACEOF
23466 /* end confdefs.h. */
23467 #include <stdlib.h>
23470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23471 $EGREP "free" >/dev/null 2>&1; then
23474 ol_cv_header_stdc=no
23480 if test $ol_cv_header_stdc = yes; then
23481 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
23482 if test "$cross_compiling" = yes; then
23485 cat >conftest.$ac_ext <<_ACEOF
23488 cat confdefs.h >>conftest.$ac_ext
23489 cat >>conftest.$ac_ext <<_ACEOF
23490 /* end confdefs.h. */
23492 #ifndef HAVE_EBCDIC
23493 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
23494 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
23496 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
23497 || ('j' <= (c) && (c) <= 'r') \
23498 || ('s' <= (c) && (c) <= 'z'))
23499 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
23501 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
23502 int main () { int i; for (i = 0; i < 256; i++)
23503 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
23507 rm -f conftest$ac_exeext
23508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23509 (eval $ac_link) 2>&5
23511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23512 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23514 (eval $ac_try) 2>&5
23516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23517 (exit $ac_status); }; }; then
23520 echo "$as_me: program exited with status $ac_status" >&5
23521 echo "$as_me: failed program was:" >&5
23522 sed 's/^/| /' conftest.$ac_ext >&5
23524 ( exit $ac_status )
23525 ol_cv_header_stdc=no
23527 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23531 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
23532 echo "${ECHO_T}$ol_cv_header_stdc" >&6
23533 if test $ol_cv_header_stdc = yes; then
23534 cat >>confdefs.h <<\_ACEOF
23535 #define STDC_HEADERS 1
23539 ac_cv_header_stdc=disable
23542 if test $ol_cv_header_stdc != yes; then
23543 { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
23544 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
23552 ac_header_dirent=no
23553 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
23554 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
23555 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
23556 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
23557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23558 echo $ECHO_N "(cached) $ECHO_C" >&6
23560 cat >conftest.$ac_ext <<_ACEOF
23563 cat confdefs.h >>conftest.$ac_ext
23564 cat >>conftest.$ac_ext <<_ACEOF
23565 /* end confdefs.h. */
23566 #include <sys/types.h>
23578 rm -f conftest.$ac_objext
23579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23580 (eval $ac_compile) 2>conftest.er1
23582 grep -v '^ *+' conftest.er1 >conftest.err
23584 cat conftest.err >&5
23585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23586 (exit $ac_status); } &&
23587 { ac_try='test -z "$ac_c_werror_flag"
23588 || test ! -s conftest.err'
23589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23590 (eval $ac_try) 2>&5
23592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23593 (exit $ac_status); }; } &&
23594 { ac_try='test -s conftest.$ac_objext'
23595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23596 (eval $ac_try) 2>&5
23598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23599 (exit $ac_status); }; }; then
23600 eval "$as_ac_Header=yes"
23602 echo "$as_me: failed program was:" >&5
23603 sed 's/^/| /' conftest.$ac_ext >&5
23605 eval "$as_ac_Header=no"
23607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23610 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23611 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23612 cat >>confdefs.h <<_ACEOF
23613 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
23616 ac_header_dirent=$ac_hdr; break
23620 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
23621 if test $ac_header_dirent = dirent.h; then
23622 echo "$as_me:$LINENO: checking for library containing opendir" >&5
23623 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23624 if test "${ac_cv_search_opendir+set}" = set; then
23625 echo $ECHO_N "(cached) $ECHO_C" >&6
23627 ac_func_search_save_LIBS=$LIBS
23628 ac_cv_search_opendir=no
23629 cat >conftest.$ac_ext <<_ACEOF
23632 cat confdefs.h >>conftest.$ac_ext
23633 cat >>conftest.$ac_ext <<_ACEOF
23634 /* end confdefs.h. */
23636 /* Override any gcc2 internal prototype to avoid an error. */
23640 /* We use char because int might match the return type of a gcc2
23641 builtin and then its argument prototype would still apply. */
23651 rm -f conftest.$ac_objext conftest$ac_exeext
23652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23653 (eval $ac_link) 2>conftest.er1
23655 grep -v '^ *+' conftest.er1 >conftest.err
23657 cat conftest.err >&5
23658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23659 (exit $ac_status); } &&
23660 { ac_try='test -z "$ac_c_werror_flag"
23661 || test ! -s conftest.err'
23662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23663 (eval $ac_try) 2>&5
23665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23666 (exit $ac_status); }; } &&
23667 { ac_try='test -s conftest$ac_exeext'
23668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23669 (eval $ac_try) 2>&5
23671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23672 (exit $ac_status); }; }; then
23673 ac_cv_search_opendir="none required"
23675 echo "$as_me: failed program was:" >&5
23676 sed 's/^/| /' conftest.$ac_ext >&5
23679 rm -f conftest.err conftest.$ac_objext \
23680 conftest$ac_exeext conftest.$ac_ext
23681 if test "$ac_cv_search_opendir" = no; then
23682 for ac_lib in dir; do
23683 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23684 cat >conftest.$ac_ext <<_ACEOF
23687 cat confdefs.h >>conftest.$ac_ext
23688 cat >>conftest.$ac_ext <<_ACEOF
23689 /* end confdefs.h. */
23691 /* Override any gcc2 internal prototype to avoid an error. */
23695 /* We use char because int might match the return type of a gcc2
23696 builtin and then its argument prototype would still apply. */
23706 rm -f conftest.$ac_objext conftest$ac_exeext
23707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23708 (eval $ac_link) 2>conftest.er1
23710 grep -v '^ *+' conftest.er1 >conftest.err
23712 cat conftest.err >&5
23713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23714 (exit $ac_status); } &&
23715 { ac_try='test -z "$ac_c_werror_flag"
23716 || test ! -s conftest.err'
23717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23718 (eval $ac_try) 2>&5
23720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23721 (exit $ac_status); }; } &&
23722 { ac_try='test -s conftest$ac_exeext'
23723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23724 (eval $ac_try) 2>&5
23726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23727 (exit $ac_status); }; }; then
23728 ac_cv_search_opendir="-l$ac_lib"
23731 echo "$as_me: failed program was:" >&5
23732 sed 's/^/| /' conftest.$ac_ext >&5
23735 rm -f conftest.err conftest.$ac_objext \
23736 conftest$ac_exeext conftest.$ac_ext
23739 LIBS=$ac_func_search_save_LIBS
23741 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23742 echo "${ECHO_T}$ac_cv_search_opendir" >&6
23743 if test "$ac_cv_search_opendir" != no; then
23744 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23749 echo "$as_me:$LINENO: checking for library containing opendir" >&5
23750 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23751 if test "${ac_cv_search_opendir+set}" = set; then
23752 echo $ECHO_N "(cached) $ECHO_C" >&6
23754 ac_func_search_save_LIBS=$LIBS
23755 ac_cv_search_opendir=no
23756 cat >conftest.$ac_ext <<_ACEOF
23759 cat confdefs.h >>conftest.$ac_ext
23760 cat >>conftest.$ac_ext <<_ACEOF
23761 /* end confdefs.h. */
23763 /* Override any gcc2 internal prototype to avoid an error. */
23767 /* We use char because int might match the return type of a gcc2
23768 builtin and then its argument prototype would still apply. */
23778 rm -f conftest.$ac_objext conftest$ac_exeext
23779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23780 (eval $ac_link) 2>conftest.er1
23782 grep -v '^ *+' conftest.er1 >conftest.err
23784 cat conftest.err >&5
23785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23786 (exit $ac_status); } &&
23787 { ac_try='test -z "$ac_c_werror_flag"
23788 || test ! -s conftest.err'
23789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23790 (eval $ac_try) 2>&5
23792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23793 (exit $ac_status); }; } &&
23794 { ac_try='test -s conftest$ac_exeext'
23795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23796 (eval $ac_try) 2>&5
23798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23799 (exit $ac_status); }; }; then
23800 ac_cv_search_opendir="none required"
23802 echo "$as_me: failed program was:" >&5
23803 sed 's/^/| /' conftest.$ac_ext >&5
23806 rm -f conftest.err conftest.$ac_objext \
23807 conftest$ac_exeext conftest.$ac_ext
23808 if test "$ac_cv_search_opendir" = no; then
23809 for ac_lib in x; do
23810 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23811 cat >conftest.$ac_ext <<_ACEOF
23814 cat confdefs.h >>conftest.$ac_ext
23815 cat >>conftest.$ac_ext <<_ACEOF
23816 /* end confdefs.h. */
23818 /* Override any gcc2 internal prototype to avoid an error. */
23822 /* We use char because int might match the return type of a gcc2
23823 builtin and then its argument prototype would still apply. */
23833 rm -f conftest.$ac_objext conftest$ac_exeext
23834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23835 (eval $ac_link) 2>conftest.er1
23837 grep -v '^ *+' conftest.er1 >conftest.err
23839 cat conftest.err >&5
23840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23841 (exit $ac_status); } &&
23842 { ac_try='test -z "$ac_c_werror_flag"
23843 || test ! -s conftest.err'
23844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23845 (eval $ac_try) 2>&5
23847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23848 (exit $ac_status); }; } &&
23849 { ac_try='test -s conftest$ac_exeext'
23850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23851 (eval $ac_try) 2>&5
23853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23854 (exit $ac_status); }; }; then
23855 ac_cv_search_opendir="-l$ac_lib"
23858 echo "$as_me: failed program was:" >&5
23859 sed 's/^/| /' conftest.$ac_ext >&5
23862 rm -f conftest.err conftest.$ac_objext \
23863 conftest$ac_exeext conftest.$ac_ext
23866 LIBS=$ac_func_search_save_LIBS
23868 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23869 echo "${ECHO_T}$ac_cv_search_opendir" >&6
23870 if test "$ac_cv_search_opendir" != no; then
23871 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23877 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
23878 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
23879 if test "${ac_cv_header_sys_wait_h+set}" = set; then
23880 echo $ECHO_N "(cached) $ECHO_C" >&6
23882 cat >conftest.$ac_ext <<_ACEOF
23885 cat confdefs.h >>conftest.$ac_ext
23886 cat >>conftest.$ac_ext <<_ACEOF
23887 /* end confdefs.h. */
23888 #include <sys/types.h>
23889 #include <sys/wait.h>
23890 #ifndef WEXITSTATUS
23891 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
23894 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
23902 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
23907 rm -f conftest.$ac_objext
23908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23909 (eval $ac_compile) 2>conftest.er1
23911 grep -v '^ *+' conftest.er1 >conftest.err
23913 cat conftest.err >&5
23914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23915 (exit $ac_status); } &&
23916 { ac_try='test -z "$ac_c_werror_flag"
23917 || test ! -s conftest.err'
23918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23919 (eval $ac_try) 2>&5
23921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23922 (exit $ac_status); }; } &&
23923 { ac_try='test -s conftest.$ac_objext'
23924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23925 (eval $ac_try) 2>&5
23927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23928 (exit $ac_status); }; }; then
23929 ac_cv_header_sys_wait_h=yes
23931 echo "$as_me: failed program was:" >&5
23932 sed 's/^/| /' conftest.$ac_ext >&5
23934 ac_cv_header_sys_wait_h=no
23936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23938 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
23939 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
23940 if test $ac_cv_header_sys_wait_h = yes; then
23942 cat >>confdefs.h <<\_ACEOF
23943 #define HAVE_SYS_WAIT_H 1
23948 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
23949 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
23950 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
23951 echo $ECHO_N "(cached) $ECHO_C" >&6
23953 cat >conftest.$ac_ext <<_ACEOF
23956 cat confdefs.h >>conftest.$ac_ext
23957 cat >>conftest.$ac_ext <<_ACEOF
23958 /* end confdefs.h. */
23959 #include <sys/types.h>
23960 #include <termios.h>
23966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23967 $EGREP "yes" >/dev/null 2>&1; then
23968 ac_cv_sys_tiocgwinsz_in_termios_h=yes
23970 ac_cv_sys_tiocgwinsz_in_termios_h=no
23975 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
23976 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
23978 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
23979 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
23980 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
23981 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
23982 echo $ECHO_N "(cached) $ECHO_C" >&6
23984 cat >conftest.$ac_ext <<_ACEOF
23987 cat confdefs.h >>conftest.$ac_ext
23988 cat >>conftest.$ac_ext <<_ACEOF
23989 /* end confdefs.h. */
23990 #include <sys/types.h>
23991 #include <sys/ioctl.h>
23997 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23998 $EGREP "yes" >/dev/null 2>&1; then
23999 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
24001 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
24006 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
24007 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
24009 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
24011 cat >>confdefs.h <<\_ACEOF
24012 #define GWINSZ_IN_SYS_IOCTL 1
24120 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24121 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24122 echo "$as_me:$LINENO: checking for $ac_header" >&5
24123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24125 echo $ECHO_N "(cached) $ECHO_C" >&6
24127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24128 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24130 # Is the header compilable?
24131 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24132 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24133 cat >conftest.$ac_ext <<_ACEOF
24136 cat confdefs.h >>conftest.$ac_ext
24137 cat >>conftest.$ac_ext <<_ACEOF
24138 /* end confdefs.h. */
24139 $ac_includes_default
24140 #include <$ac_header>
24142 rm -f conftest.$ac_objext
24143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24144 (eval $ac_compile) 2>conftest.er1
24146 grep -v '^ *+' conftest.er1 >conftest.err
24148 cat conftest.err >&5
24149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24150 (exit $ac_status); } &&
24151 { ac_try='test -z "$ac_c_werror_flag"
24152 || test ! -s conftest.err'
24153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24154 (eval $ac_try) 2>&5
24156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24157 (exit $ac_status); }; } &&
24158 { ac_try='test -s conftest.$ac_objext'
24159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24160 (eval $ac_try) 2>&5
24162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24163 (exit $ac_status); }; }; then
24164 ac_header_compiler=yes
24166 echo "$as_me: failed program was:" >&5
24167 sed 's/^/| /' conftest.$ac_ext >&5
24169 ac_header_compiler=no
24171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24172 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24173 echo "${ECHO_T}$ac_header_compiler" >&6
24175 # Is the header present?
24176 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24177 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24178 cat >conftest.$ac_ext <<_ACEOF
24181 cat confdefs.h >>conftest.$ac_ext
24182 cat >>conftest.$ac_ext <<_ACEOF
24183 /* end confdefs.h. */
24184 #include <$ac_header>
24186 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24187 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24189 grep -v '^ *+' conftest.er1 >conftest.err
24191 cat conftest.err >&5
24192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24193 (exit $ac_status); } >/dev/null; then
24194 if test -s conftest.err; then
24195 ac_cpp_err=$ac_c_preproc_warn_flag
24196 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24203 if test -z "$ac_cpp_err"; then
24204 ac_header_preproc=yes
24206 echo "$as_me: failed program was:" >&5
24207 sed 's/^/| /' conftest.$ac_ext >&5
24209 ac_header_preproc=no
24211 rm -f conftest.err conftest.$ac_ext
24212 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24213 echo "${ECHO_T}$ac_header_preproc" >&6
24215 # So? What about this header?
24216 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24218 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24219 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24221 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24222 ac_header_preproc=yes
24225 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24226 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24227 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24228 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24229 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24230 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24231 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24232 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24233 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24234 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24235 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24236 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24239 ## ------------------------------------------ ##
24240 ## Report this to the AC_PACKAGE_NAME lists. ##
24241 ## ------------------------------------------ ##
24244 sed "s/^/$as_me: WARNING: /" >&2
24247 echo "$as_me:$LINENO: checking for $ac_header" >&5
24248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24250 echo $ECHO_N "(cached) $ECHO_C" >&6
24252 eval "$as_ac_Header=\$ac_header_preproc"
24254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24255 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24258 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24259 cat >>confdefs.h <<_ACEOF
24260 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24271 for ac_func in sigaction sigset
24273 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24274 echo "$as_me:$LINENO: checking for $ac_func" >&5
24275 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24276 if eval "test \"\${$as_ac_var+set}\" = set"; then
24277 echo $ECHO_N "(cached) $ECHO_C" >&6
24279 cat >conftest.$ac_ext <<_ACEOF
24282 cat confdefs.h >>conftest.$ac_ext
24283 cat >>conftest.$ac_ext <<_ACEOF
24284 /* end confdefs.h. */
24285 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24286 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24287 #define $ac_func innocuous_$ac_func
24289 /* System header to define __stub macros and hopefully few prototypes,
24290 which can conflict with char $ac_func (); below.
24291 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24292 <limits.h> exists even on freestanding compilers. */
24295 # include <limits.h>
24297 # include <assert.h>
24302 /* Override any gcc2 internal prototype to avoid an error. */
24307 /* We use char because int might match the return type of a gcc2
24308 builtin and then its argument prototype would still apply. */
24310 /* The GNU C library defines this for functions which it implements
24311 to always fail with ENOSYS. Some functions are actually named
24312 something starting with __ and the normal name is an alias. */
24313 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24316 char (*f) () = $ac_func;
24325 return f != $ac_func;
24330 rm -f conftest.$ac_objext conftest$ac_exeext
24331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24332 (eval $ac_link) 2>conftest.er1
24334 grep -v '^ *+' conftest.er1 >conftest.err
24336 cat conftest.err >&5
24337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24338 (exit $ac_status); } &&
24339 { ac_try='test -z "$ac_c_werror_flag"
24340 || test ! -s conftest.err'
24341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24342 (eval $ac_try) 2>&5
24344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24345 (exit $ac_status); }; } &&
24346 { ac_try='test -s conftest$ac_exeext'
24347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24348 (eval $ac_try) 2>&5
24350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24351 (exit $ac_status); }; }; then
24352 eval "$as_ac_var=yes"
24354 echo "$as_me: failed program was:" >&5
24355 sed 's/^/| /' conftest.$ac_ext >&5
24357 eval "$as_ac_var=no"
24359 rm -f conftest.err conftest.$ac_objext \
24360 conftest$ac_exeext conftest.$ac_ext
24362 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24363 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24364 if test `eval echo '${'$as_ac_var'}'` = yes; then
24365 cat >>confdefs.h <<_ACEOF
24366 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24373 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
24375 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
24376 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
24377 if test "${ac_cv_lib_V3_sigset+set}" = set; then
24378 echo $ECHO_N "(cached) $ECHO_C" >&6
24380 ac_check_lib_save_LIBS=$LIBS
24382 cat >conftest.$ac_ext <<_ACEOF
24385 cat confdefs.h >>conftest.$ac_ext
24386 cat >>conftest.$ac_ext <<_ACEOF
24387 /* end confdefs.h. */
24389 /* Override any gcc2 internal prototype to avoid an error. */
24393 /* We use char because int might match the return type of a gcc2
24394 builtin and then its argument prototype would still apply. */
24404 rm -f conftest.$ac_objext conftest$ac_exeext
24405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24406 (eval $ac_link) 2>conftest.er1
24408 grep -v '^ *+' conftest.er1 >conftest.err
24410 cat conftest.err >&5
24411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24412 (exit $ac_status); } &&
24413 { ac_try='test -z "$ac_c_werror_flag"
24414 || test ! -s conftest.err'
24415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24416 (eval $ac_try) 2>&5
24418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24419 (exit $ac_status); }; } &&
24420 { ac_try='test -s conftest$ac_exeext'
24421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24422 (eval $ac_try) 2>&5
24424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24425 (exit $ac_status); }; }; then
24426 ac_cv_lib_V3_sigset=yes
24428 echo "$as_me: failed program was:" >&5
24429 sed 's/^/| /' conftest.$ac_ext >&5
24431 ac_cv_lib_V3_sigset=no
24433 rm -f conftest.err conftest.$ac_objext \
24434 conftest$ac_exeext conftest.$ac_ext
24435 LIBS=$ac_check_lib_save_LIBS
24437 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
24438 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
24439 if test $ac_cv_lib_V3_sigset = yes; then
24440 cat >>confdefs.h <<_ACEOF
24441 #define HAVE_LIBV3 1
24450 if test "$ac_cv_cygwin" != yes && test "$ac_cv_header_winsock_h" = yes; then
24451 echo "$as_me:$LINENO: checking for winsock" >&5
24452 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
24453 if test "${ol_cv_winsock+set}" = set; then
24454 echo $ECHO_N "(cached) $ECHO_C" >&6
24457 for curlib in ws2_32 wsock32; do
24458 LIBS="$LIBS -l$curlib"
24459 cat >conftest.$ac_ext <<_ACEOF
24462 cat confdefs.h >>conftest.$ac_ext
24463 cat >>conftest.$ac_ext <<_ACEOF
24464 /* end confdefs.h. */
24465 #include <winsock.h>
24472 select(0,NULL,NULL,NULL,NULL);
24474 gethostname(NULL,0);
24480 rm -f conftest.$ac_objext conftest$ac_exeext
24481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24482 (eval $ac_link) 2>conftest.er1
24484 grep -v '^ *+' conftest.er1 >conftest.err
24486 cat conftest.err >&5
24487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24488 (exit $ac_status); } &&
24489 { ac_try='test -z "$ac_c_werror_flag"
24490 || test ! -s conftest.err'
24491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24492 (eval $ac_try) 2>&5
24494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24495 (exit $ac_status); }; } &&
24496 { ac_try='test -s conftest$ac_exeext'
24497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24498 (eval $ac_try) 2>&5
24500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24501 (exit $ac_status); }; }; then
24504 echo "$as_me: failed program was:" >&5
24505 sed 's/^/| /' conftest.$ac_ext >&5
24509 rm -f conftest.err conftest.$ac_objext \
24510 conftest$ac_exeext conftest.$ac_ext
24512 if test $ol_cv_winsock = yes; then
24514 cat >>confdefs.h <<\_ACEOF
24515 #define HAVE_WINSOCK 1
24518 ac_cv_func_socket=yes
24519 ac_cv_func_select=yes
24520 ac_cv_func_closesocket=yes
24521 ac_cv_func_gethostname=yes
24522 if test $curlib = ws2_32; then
24523 ol_cv_winsock=winsock2
24525 cat >>confdefs.h <<\_ACEOF
24526 #define HAVE_WINSOCK2 1
24535 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
24536 echo "${ECHO_T}$ol_cv_winsock" >&6
24540 echo "$as_me:$LINENO: checking for socket" >&5
24541 echo $ECHO_N "checking for socket... $ECHO_C" >&6
24542 if test "${ac_cv_func_socket+set}" = set; then
24543 echo $ECHO_N "(cached) $ECHO_C" >&6
24545 cat >conftest.$ac_ext <<_ACEOF
24548 cat confdefs.h >>conftest.$ac_ext
24549 cat >>conftest.$ac_ext <<_ACEOF
24550 /* end confdefs.h. */
24551 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24552 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24553 #define socket innocuous_socket
24555 /* System header to define __stub macros and hopefully few prototypes,
24556 which can conflict with char socket (); below.
24557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24558 <limits.h> exists even on freestanding compilers. */
24561 # include <limits.h>
24563 # include <assert.h>
24568 /* Override any gcc2 internal prototype to avoid an error. */
24573 /* We use char because int might match the return type of a gcc2
24574 builtin and then its argument prototype would still apply. */
24576 /* The GNU C library defines this for functions which it implements
24577 to always fail with ENOSYS. Some functions are actually named
24578 something starting with __ and the normal name is an alias. */
24579 #if defined (__stub_socket) || defined (__stub___socket)
24582 char (*f) () = socket;
24591 return f != socket;
24596 rm -f conftest.$ac_objext conftest$ac_exeext
24597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24598 (eval $ac_link) 2>conftest.er1
24600 grep -v '^ *+' conftest.er1 >conftest.err
24602 cat conftest.err >&5
24603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24604 (exit $ac_status); } &&
24605 { ac_try='test -z "$ac_c_werror_flag"
24606 || test ! -s conftest.err'
24607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24608 (eval $ac_try) 2>&5
24610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24611 (exit $ac_status); }; } &&
24612 { ac_try='test -s conftest$ac_exeext'
24613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24614 (eval $ac_try) 2>&5
24616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24617 (exit $ac_status); }; }; then
24618 ac_cv_func_socket=yes
24620 echo "$as_me: failed program was:" >&5
24621 sed 's/^/| /' conftest.$ac_ext >&5
24623 ac_cv_func_socket=no
24625 rm -f conftest.err conftest.$ac_objext \
24626 conftest$ac_exeext conftest.$ac_ext
24628 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24629 echo "${ECHO_T}$ac_cv_func_socket" >&6
24630 if test $ac_cv_func_socket = yes; then
24635 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
24636 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
24637 if test "${ac_cv_lib_socket_main+set}" = set; then
24638 echo $ECHO_N "(cached) $ECHO_C" >&6
24640 ac_check_lib_save_LIBS=$LIBS
24641 LIBS="-lsocket $LIBS"
24642 cat >conftest.$ac_ext <<_ACEOF
24645 cat confdefs.h >>conftest.$ac_ext
24646 cat >>conftest.$ac_ext <<_ACEOF
24647 /* end confdefs.h. */
24658 rm -f conftest.$ac_objext conftest$ac_exeext
24659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24660 (eval $ac_link) 2>conftest.er1
24662 grep -v '^ *+' conftest.er1 >conftest.err
24664 cat conftest.err >&5
24665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24666 (exit $ac_status); } &&
24667 { ac_try='test -z "$ac_c_werror_flag"
24668 || test ! -s conftest.err'
24669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24670 (eval $ac_try) 2>&5
24672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24673 (exit $ac_status); }; } &&
24674 { ac_try='test -s conftest$ac_exeext'
24675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24676 (eval $ac_try) 2>&5
24678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24679 (exit $ac_status); }; }; then
24680 ac_cv_lib_socket_main=yes
24682 echo "$as_me: failed program was:" >&5
24683 sed 's/^/| /' conftest.$ac_ext >&5
24685 ac_cv_lib_socket_main=no
24687 rm -f conftest.err conftest.$ac_objext \
24688 conftest$ac_exeext conftest.$ac_ext
24689 LIBS=$ac_check_lib_save_LIBS
24691 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
24692 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
24693 if test $ac_cv_lib_socket_main = yes; then
24694 cat >>confdefs.h <<_ACEOF
24695 #define HAVE_LIBSOCKET 1
24698 LIBS="-lsocket $LIBS"
24703 echo "$as_me:$LINENO: checking for main in -lnet" >&5
24704 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
24705 if test "${ac_cv_lib_net_main+set}" = set; then
24706 echo $ECHO_N "(cached) $ECHO_C" >&6
24708 ac_check_lib_save_LIBS=$LIBS
24710 cat >conftest.$ac_ext <<_ACEOF
24713 cat confdefs.h >>conftest.$ac_ext
24714 cat >>conftest.$ac_ext <<_ACEOF
24715 /* end confdefs.h. */
24726 rm -f conftest.$ac_objext conftest$ac_exeext
24727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24728 (eval $ac_link) 2>conftest.er1
24730 grep -v '^ *+' conftest.er1 >conftest.err
24732 cat conftest.err >&5
24733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24734 (exit $ac_status); } &&
24735 { ac_try='test -z "$ac_c_werror_flag"
24736 || test ! -s conftest.err'
24737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24738 (eval $ac_try) 2>&5
24740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24741 (exit $ac_status); }; } &&
24742 { ac_try='test -s conftest$ac_exeext'
24743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24744 (eval $ac_try) 2>&5
24746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24747 (exit $ac_status); }; }; then
24748 ac_cv_lib_net_main=yes
24750 echo "$as_me: failed program was:" >&5
24751 sed 's/^/| /' conftest.$ac_ext >&5
24753 ac_cv_lib_net_main=no
24755 rm -f conftest.err conftest.$ac_objext \
24756 conftest$ac_exeext conftest.$ac_ext
24757 LIBS=$ac_check_lib_save_LIBS
24759 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
24760 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
24761 if test $ac_cv_lib_net_main = yes; then
24762 cat >>confdefs.h <<_ACEOF
24763 #define HAVE_LIBNET 1
24771 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
24772 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
24773 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
24774 echo $ECHO_N "(cached) $ECHO_C" >&6
24776 ac_check_lib_save_LIBS=$LIBS
24777 LIBS="-lnsl_s $LIBS"
24778 cat >conftest.$ac_ext <<_ACEOF
24781 cat confdefs.h >>conftest.$ac_ext
24782 cat >>conftest.$ac_ext <<_ACEOF
24783 /* end confdefs.h. */
24794 rm -f conftest.$ac_objext conftest$ac_exeext
24795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24796 (eval $ac_link) 2>conftest.er1
24798 grep -v '^ *+' conftest.er1 >conftest.err
24800 cat conftest.err >&5
24801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24802 (exit $ac_status); } &&
24803 { ac_try='test -z "$ac_c_werror_flag"
24804 || test ! -s conftest.err'
24805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24806 (eval $ac_try) 2>&5
24808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24809 (exit $ac_status); }; } &&
24810 { ac_try='test -s conftest$ac_exeext'
24811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24812 (eval $ac_try) 2>&5
24814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24815 (exit $ac_status); }; }; then
24816 ac_cv_lib_nsl_s_main=yes
24818 echo "$as_me: failed program was:" >&5
24819 sed 's/^/| /' conftest.$ac_ext >&5
24821 ac_cv_lib_nsl_s_main=no
24823 rm -f conftest.err conftest.$ac_objext \
24824 conftest$ac_exeext conftest.$ac_ext
24825 LIBS=$ac_check_lib_save_LIBS
24827 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
24828 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
24829 if test $ac_cv_lib_nsl_s_main = yes; then
24830 cat >>confdefs.h <<_ACEOF
24831 #define HAVE_LIBNSL_S 1
24834 LIBS="-lnsl_s $LIBS"
24839 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
24840 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
24841 if test "${ac_cv_lib_nsl_main+set}" = set; then
24842 echo $ECHO_N "(cached) $ECHO_C" >&6
24844 ac_check_lib_save_LIBS=$LIBS
24846 cat >conftest.$ac_ext <<_ACEOF
24849 cat confdefs.h >>conftest.$ac_ext
24850 cat >>conftest.$ac_ext <<_ACEOF
24851 /* end confdefs.h. */
24862 rm -f conftest.$ac_objext conftest$ac_exeext
24863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24864 (eval $ac_link) 2>conftest.er1
24866 grep -v '^ *+' conftest.er1 >conftest.err
24868 cat conftest.err >&5
24869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24870 (exit $ac_status); } &&
24871 { ac_try='test -z "$ac_c_werror_flag"
24872 || test ! -s conftest.err'
24873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24874 (eval $ac_try) 2>&5
24876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24877 (exit $ac_status); }; } &&
24878 { ac_try='test -s conftest$ac_exeext'
24879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24880 (eval $ac_try) 2>&5
24882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24883 (exit $ac_status); }; }; then
24884 ac_cv_lib_nsl_main=yes
24886 echo "$as_me: failed program was:" >&5
24887 sed 's/^/| /' conftest.$ac_ext >&5
24889 ac_cv_lib_nsl_main=no
24891 rm -f conftest.err conftest.$ac_objext \
24892 conftest$ac_exeext conftest.$ac_ext
24893 LIBS=$ac_check_lib_save_LIBS
24895 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
24896 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
24897 if test $ac_cv_lib_nsl_main = yes; then
24898 cat >>confdefs.h <<_ACEOF
24899 #define HAVE_LIBNSL 1
24907 echo "$as_me:$LINENO: checking for socket in -linet" >&5
24908 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
24909 if test "${ac_cv_lib_inet_socket+set}" = set; then
24910 echo $ECHO_N "(cached) $ECHO_C" >&6
24912 ac_check_lib_save_LIBS=$LIBS
24913 LIBS="-linet $LIBS"
24914 cat >conftest.$ac_ext <<_ACEOF
24917 cat confdefs.h >>conftest.$ac_ext
24918 cat >>conftest.$ac_ext <<_ACEOF
24919 /* end confdefs.h. */
24921 /* Override any gcc2 internal prototype to avoid an error. */
24925 /* We use char because int might match the return type of a gcc2
24926 builtin and then its argument prototype would still apply. */
24936 rm -f conftest.$ac_objext conftest$ac_exeext
24937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24938 (eval $ac_link) 2>conftest.er1
24940 grep -v '^ *+' conftest.er1 >conftest.err
24942 cat conftest.err >&5
24943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24944 (exit $ac_status); } &&
24945 { ac_try='test -z "$ac_c_werror_flag"
24946 || test ! -s conftest.err'
24947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24948 (eval $ac_try) 2>&5
24950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24951 (exit $ac_status); }; } &&
24952 { ac_try='test -s conftest$ac_exeext'
24953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24954 (eval $ac_try) 2>&5
24956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24957 (exit $ac_status); }; }; then
24958 ac_cv_lib_inet_socket=yes
24960 echo "$as_me: failed program was:" >&5
24961 sed 's/^/| /' conftest.$ac_ext >&5
24963 ac_cv_lib_inet_socket=no
24965 rm -f conftest.err conftest.$ac_objext \
24966 conftest$ac_exeext conftest.$ac_ext
24967 LIBS=$ac_check_lib_save_LIBS
24969 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
24970 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
24971 if test $ac_cv_lib_inet_socket = yes; then
24972 cat >>confdefs.h <<_ACEOF
24973 #define HAVE_LIBINET 1
24976 LIBS="-linet $LIBS"
24981 echo "$as_me:$LINENO: checking for main in -lgen" >&5
24982 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
24983 if test "${ac_cv_lib_gen_main+set}" = set; then
24984 echo $ECHO_N "(cached) $ECHO_C" >&6
24986 ac_check_lib_save_LIBS=$LIBS
24988 cat >conftest.$ac_ext <<_ACEOF
24991 cat confdefs.h >>conftest.$ac_ext
24992 cat >>conftest.$ac_ext <<_ACEOF
24993 /* end confdefs.h. */
25004 rm -f conftest.$ac_objext conftest$ac_exeext
25005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25006 (eval $ac_link) 2>conftest.er1
25008 grep -v '^ *+' conftest.er1 >conftest.err
25010 cat conftest.err >&5
25011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25012 (exit $ac_status); } &&
25013 { ac_try='test -z "$ac_c_werror_flag"
25014 || test ! -s conftest.err'
25015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25016 (eval $ac_try) 2>&5
25018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25019 (exit $ac_status); }; } &&
25020 { ac_try='test -s conftest$ac_exeext'
25021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25022 (eval $ac_try) 2>&5
25024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25025 (exit $ac_status); }; }; then
25026 ac_cv_lib_gen_main=yes
25028 echo "$as_me: failed program was:" >&5
25029 sed 's/^/| /' conftest.$ac_ext >&5
25031 ac_cv_lib_gen_main=no
25033 rm -f conftest.err conftest.$ac_objext \
25034 conftest$ac_exeext conftest.$ac_ext
25035 LIBS=$ac_check_lib_save_LIBS
25037 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
25038 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
25039 if test $ac_cv_lib_gen_main = yes; then
25040 cat >>confdefs.h <<_ACEOF
25041 #define HAVE_LIBGEN 1
25052 echo "$as_me:$LINENO: checking for select" >&5
25053 echo $ECHO_N "checking for select... $ECHO_C" >&6
25054 if test "${ac_cv_func_select+set}" = set; then
25055 echo $ECHO_N "(cached) $ECHO_C" >&6
25057 cat >conftest.$ac_ext <<_ACEOF
25060 cat confdefs.h >>conftest.$ac_ext
25061 cat >>conftest.$ac_ext <<_ACEOF
25062 /* end confdefs.h. */
25063 /* Define select to an innocuous variant, in case <limits.h> declares select.
25064 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25065 #define select innocuous_select
25067 /* System header to define __stub macros and hopefully few prototypes,
25068 which can conflict with char select (); below.
25069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25070 <limits.h> exists even on freestanding compilers. */
25073 # include <limits.h>
25075 # include <assert.h>
25080 /* Override any gcc2 internal prototype to avoid an error. */
25085 /* We use char because int might match the return type of a gcc2
25086 builtin and then its argument prototype would still apply. */
25088 /* The GNU C library defines this for functions which it implements
25089 to always fail with ENOSYS. Some functions are actually named
25090 something starting with __ and the normal name is an alias. */
25091 #if defined (__stub_select) || defined (__stub___select)
25094 char (*f) () = select;
25103 return f != select;
25108 rm -f conftest.$ac_objext conftest$ac_exeext
25109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25110 (eval $ac_link) 2>conftest.er1
25112 grep -v '^ *+' conftest.er1 >conftest.err
25114 cat conftest.err >&5
25115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25116 (exit $ac_status); } &&
25117 { ac_try='test -z "$ac_c_werror_flag"
25118 || test ! -s conftest.err'
25119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25120 (eval $ac_try) 2>&5
25122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25123 (exit $ac_status); }; } &&
25124 { ac_try='test -s conftest$ac_exeext'
25125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25126 (eval $ac_try) 2>&5
25128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25129 (exit $ac_status); }; }; then
25130 ac_cv_func_select=yes
25132 echo "$as_me: failed program was:" >&5
25133 sed 's/^/| /' conftest.$ac_ext >&5
25135 ac_cv_func_select=no
25137 rm -f conftest.err conftest.$ac_objext \
25138 conftest$ac_exeext conftest.$ac_ext
25140 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
25141 echo "${ECHO_T}$ac_cv_func_select" >&6
25142 if test $ac_cv_func_select = yes; then
25145 { { echo "$as_me:$LINENO: error: select() required." >&5
25146 echo "$as_me: error: select() required." >&2;}
25147 { (exit 1); exit 1; }; }
25151 if test "${ac_cv_header_winsock_h}" != yes; then
25154 for ac_header in sys/select.h sys/socket.h
25156 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25157 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25158 echo "$as_me:$LINENO: checking for $ac_header" >&5
25159 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25160 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25161 echo $ECHO_N "(cached) $ECHO_C" >&6
25163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25164 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25166 # Is the header compilable?
25167 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25168 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25169 cat >conftest.$ac_ext <<_ACEOF
25172 cat confdefs.h >>conftest.$ac_ext
25173 cat >>conftest.$ac_ext <<_ACEOF
25174 /* end confdefs.h. */
25175 $ac_includes_default
25176 #include <$ac_header>
25178 rm -f conftest.$ac_objext
25179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25180 (eval $ac_compile) 2>conftest.er1
25182 grep -v '^ *+' conftest.er1 >conftest.err
25184 cat conftest.err >&5
25185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25186 (exit $ac_status); } &&
25187 { ac_try='test -z "$ac_c_werror_flag"
25188 || test ! -s conftest.err'
25189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25190 (eval $ac_try) 2>&5
25192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25193 (exit $ac_status); }; } &&
25194 { ac_try='test -s conftest.$ac_objext'
25195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25196 (eval $ac_try) 2>&5
25198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25199 (exit $ac_status); }; }; then
25200 ac_header_compiler=yes
25202 echo "$as_me: failed program was:" >&5
25203 sed 's/^/| /' conftest.$ac_ext >&5
25205 ac_header_compiler=no
25207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25208 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25209 echo "${ECHO_T}$ac_header_compiler" >&6
25211 # Is the header present?
25212 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25213 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25214 cat >conftest.$ac_ext <<_ACEOF
25217 cat confdefs.h >>conftest.$ac_ext
25218 cat >>conftest.$ac_ext <<_ACEOF
25219 /* end confdefs.h. */
25220 #include <$ac_header>
25222 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25223 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25225 grep -v '^ *+' conftest.er1 >conftest.err
25227 cat conftest.err >&5
25228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25229 (exit $ac_status); } >/dev/null; then
25230 if test -s conftest.err; then
25231 ac_cpp_err=$ac_c_preproc_warn_flag
25232 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25239 if test -z "$ac_cpp_err"; then
25240 ac_header_preproc=yes
25242 echo "$as_me: failed program was:" >&5
25243 sed 's/^/| /' conftest.$ac_ext >&5
25245 ac_header_preproc=no
25247 rm -f conftest.err conftest.$ac_ext
25248 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25249 echo "${ECHO_T}$ac_header_preproc" >&6
25251 # So? What about this header?
25252 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25254 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25255 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25256 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25257 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25258 ac_header_preproc=yes
25261 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25262 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25263 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25264 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25265 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25266 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25267 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25268 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25269 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25270 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25271 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25272 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25275 ## ------------------------------------------ ##
25276 ## Report this to the AC_PACKAGE_NAME lists. ##
25277 ## ------------------------------------------ ##
25280 sed "s/^/$as_me: WARNING: /" >&2
25283 echo "$as_me:$LINENO: checking for $ac_header" >&5
25284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25285 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25286 echo $ECHO_N "(cached) $ECHO_C" >&6
25288 eval "$as_ac_Header=\$ac_header_preproc"
25290 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25291 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25294 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25295 cat >>confdefs.h <<_ACEOF
25296 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25303 echo "$as_me:$LINENO: checking types of arguments for select" >&5
25304 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
25305 if test "${ac_cv_func_select_args+set}" = set; then
25306 echo $ECHO_N "(cached) $ECHO_C" >&6
25308 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25309 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
25310 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
25311 cat >conftest.$ac_ext <<_ACEOF
25314 cat confdefs.h >>conftest.$ac_ext
25315 cat >>conftest.$ac_ext <<_ACEOF
25316 /* end confdefs.h. */
25317 $ac_includes_default
25318 #if HAVE_SYS_SELECT_H
25319 # include <sys/select.h>
25321 #if HAVE_SYS_SOCKET_H
25322 # include <sys/socket.h>
25328 extern int select ($ac_arg1,
25329 $ac_arg234, $ac_arg234, $ac_arg234,
25335 rm -f conftest.$ac_objext
25336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25337 (eval $ac_compile) 2>conftest.er1
25339 grep -v '^ *+' conftest.er1 >conftest.err
25341 cat conftest.err >&5
25342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25343 (exit $ac_status); } &&
25344 { ac_try='test -z "$ac_c_werror_flag"
25345 || test ! -s conftest.err'
25346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25347 (eval $ac_try) 2>&5
25349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25350 (exit $ac_status); }; } &&
25351 { ac_try='test -s conftest.$ac_objext'
25352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25353 (eval $ac_try) 2>&5
25355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25356 (exit $ac_status); }; }; then
25357 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
25359 echo "$as_me: failed program was:" >&5
25360 sed 's/^/| /' conftest.$ac_ext >&5
25363 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25367 # Provide a safe default value.
25368 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
25371 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
25372 echo "${ECHO_T}$ac_cv_func_select_args" >&6
25373 ac_save_IFS=$IFS; IFS=','
25374 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25378 cat >>confdefs.h <<_ACEOF
25379 #define SELECT_TYPE_ARG1 $1
25383 cat >>confdefs.h <<_ACEOF
25384 #define SELECT_TYPE_ARG234 ($2)
25388 cat >>confdefs.h <<_ACEOF
25389 #define SELECT_TYPE_ARG5 ($3)
25398 for ac_func in poll
25400 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25401 echo "$as_me:$LINENO: checking for $ac_func" >&5
25402 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25403 if eval "test \"\${$as_ac_var+set}\" = set"; then
25404 echo $ECHO_N "(cached) $ECHO_C" >&6
25406 cat >conftest.$ac_ext <<_ACEOF
25409 cat confdefs.h >>conftest.$ac_ext
25410 cat >>conftest.$ac_ext <<_ACEOF
25411 /* end confdefs.h. */
25412 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25413 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25414 #define $ac_func innocuous_$ac_func
25416 /* System header to define __stub macros and hopefully few prototypes,
25417 which can conflict with char $ac_func (); below.
25418 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25419 <limits.h> exists even on freestanding compilers. */
25422 # include <limits.h>
25424 # include <assert.h>
25429 /* Override any gcc2 internal prototype to avoid an error. */
25434 /* We use char because int might match the return type of a gcc2
25435 builtin and then its argument prototype would still apply. */
25437 /* The GNU C library defines this for functions which it implements
25438 to always fail with ENOSYS. Some functions are actually named
25439 something starting with __ and the normal name is an alias. */
25440 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25443 char (*f) () = $ac_func;
25452 return f != $ac_func;
25457 rm -f conftest.$ac_objext conftest$ac_exeext
25458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25459 (eval $ac_link) 2>conftest.er1
25461 grep -v '^ *+' conftest.er1 >conftest.err
25463 cat conftest.err >&5
25464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25465 (exit $ac_status); } &&
25466 { ac_try='test -z "$ac_c_werror_flag"
25467 || test ! -s conftest.err'
25468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25469 (eval $ac_try) 2>&5
25471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25472 (exit $ac_status); }; } &&
25473 { ac_try='test -s conftest$ac_exeext'
25474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25475 (eval $ac_try) 2>&5
25477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25478 (exit $ac_status); }; }; then
25479 eval "$as_ac_var=yes"
25481 echo "$as_me: failed program was:" >&5
25482 sed 's/^/| /' conftest.$ac_ext >&5
25484 eval "$as_ac_var=no"
25486 rm -f conftest.err conftest.$ac_objext \
25487 conftest$ac_exeext conftest.$ac_ext
25489 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25490 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25491 if test `eval echo '${'$as_ac_var'}'` = yes; then
25492 cat >>confdefs.h <<_ACEOF
25493 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25500 for ac_header in poll.h
25502 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25503 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25504 echo "$as_me:$LINENO: checking for $ac_header" >&5
25505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25506 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25507 echo $ECHO_N "(cached) $ECHO_C" >&6
25509 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25510 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25512 # Is the header compilable?
25513 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25514 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25515 cat >conftest.$ac_ext <<_ACEOF
25518 cat confdefs.h >>conftest.$ac_ext
25519 cat >>conftest.$ac_ext <<_ACEOF
25520 /* end confdefs.h. */
25521 $ac_includes_default
25522 #include <$ac_header>
25524 rm -f conftest.$ac_objext
25525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25526 (eval $ac_compile) 2>conftest.er1
25528 grep -v '^ *+' conftest.er1 >conftest.err
25530 cat conftest.err >&5
25531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25532 (exit $ac_status); } &&
25533 { ac_try='test -z "$ac_c_werror_flag"
25534 || test ! -s conftest.err'
25535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25536 (eval $ac_try) 2>&5
25538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25539 (exit $ac_status); }; } &&
25540 { ac_try='test -s conftest.$ac_objext'
25541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25542 (eval $ac_try) 2>&5
25544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25545 (exit $ac_status); }; }; then
25546 ac_header_compiler=yes
25548 echo "$as_me: failed program was:" >&5
25549 sed 's/^/| /' conftest.$ac_ext >&5
25551 ac_header_compiler=no
25553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25554 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25555 echo "${ECHO_T}$ac_header_compiler" >&6
25557 # Is the header present?
25558 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25559 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25560 cat >conftest.$ac_ext <<_ACEOF
25563 cat confdefs.h >>conftest.$ac_ext
25564 cat >>conftest.$ac_ext <<_ACEOF
25565 /* end confdefs.h. */
25566 #include <$ac_header>
25568 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25569 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25571 grep -v '^ *+' conftest.er1 >conftest.err
25573 cat conftest.err >&5
25574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25575 (exit $ac_status); } >/dev/null; then
25576 if test -s conftest.err; then
25577 ac_cpp_err=$ac_c_preproc_warn_flag
25578 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25585 if test -z "$ac_cpp_err"; then
25586 ac_header_preproc=yes
25588 echo "$as_me: failed program was:" >&5
25589 sed 's/^/| /' conftest.$ac_ext >&5
25591 ac_header_preproc=no
25593 rm -f conftest.err conftest.$ac_ext
25594 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25595 echo "${ECHO_T}$ac_header_preproc" >&6
25597 # So? What about this header?
25598 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25600 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25601 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25603 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25604 ac_header_preproc=yes
25607 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25608 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25609 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25610 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25611 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25612 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25613 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25614 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25616 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25617 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25618 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25621 ## ------------------------------------------ ##
25622 ## Report this to the AC_PACKAGE_NAME lists. ##
25623 ## ------------------------------------------ ##
25626 sed "s/^/$as_me: WARNING: /" >&2
25629 echo "$as_me:$LINENO: checking for $ac_header" >&5
25630 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25631 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25632 echo $ECHO_N "(cached) $ECHO_C" >&6
25634 eval "$as_ac_Header=\$ac_header_preproc"
25636 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25637 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25640 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25641 cat >>confdefs.h <<_ACEOF
25642 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25651 for ac_header in sys/epoll.h
25653 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25654 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25655 echo "$as_me:$LINENO: checking for $ac_header" >&5
25656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25657 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25658 echo $ECHO_N "(cached) $ECHO_C" >&6
25660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25661 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25663 # Is the header compilable?
25664 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25665 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25666 cat >conftest.$ac_ext <<_ACEOF
25669 cat confdefs.h >>conftest.$ac_ext
25670 cat >>conftest.$ac_ext <<_ACEOF
25671 /* end confdefs.h. */
25672 $ac_includes_default
25673 #include <$ac_header>
25675 rm -f conftest.$ac_objext
25676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25677 (eval $ac_compile) 2>conftest.er1
25679 grep -v '^ *+' conftest.er1 >conftest.err
25681 cat conftest.err >&5
25682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25683 (exit $ac_status); } &&
25684 { ac_try='test -z "$ac_c_werror_flag"
25685 || test ! -s conftest.err'
25686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25687 (eval $ac_try) 2>&5
25689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25690 (exit $ac_status); }; } &&
25691 { ac_try='test -s conftest.$ac_objext'
25692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25693 (eval $ac_try) 2>&5
25695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25696 (exit $ac_status); }; }; then
25697 ac_header_compiler=yes
25699 echo "$as_me: failed program was:" >&5
25700 sed 's/^/| /' conftest.$ac_ext >&5
25702 ac_header_compiler=no
25704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25705 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25706 echo "${ECHO_T}$ac_header_compiler" >&6
25708 # Is the header present?
25709 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25710 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25711 cat >conftest.$ac_ext <<_ACEOF
25714 cat confdefs.h >>conftest.$ac_ext
25715 cat >>conftest.$ac_ext <<_ACEOF
25716 /* end confdefs.h. */
25717 #include <$ac_header>
25719 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25720 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25722 grep -v '^ *+' conftest.er1 >conftest.err
25724 cat conftest.err >&5
25725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25726 (exit $ac_status); } >/dev/null; then
25727 if test -s conftest.err; then
25728 ac_cpp_err=$ac_c_preproc_warn_flag
25729 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25736 if test -z "$ac_cpp_err"; then
25737 ac_header_preproc=yes
25739 echo "$as_me: failed program was:" >&5
25740 sed 's/^/| /' conftest.$ac_ext >&5
25742 ac_header_preproc=no
25744 rm -f conftest.err conftest.$ac_ext
25745 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25746 echo "${ECHO_T}$ac_header_preproc" >&6
25748 # So? What about this header?
25749 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25751 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25752 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25754 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25755 ac_header_preproc=yes
25758 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25759 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25760 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25761 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25762 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25763 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25764 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25765 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25767 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25768 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25769 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25772 ## ------------------------------------------ ##
25773 ## Report this to the AC_PACKAGE_NAME lists. ##
25774 ## ------------------------------------------ ##
25777 sed "s/^/$as_me: WARNING: /" >&2
25780 echo "$as_me:$LINENO: checking for $ac_header" >&5
25781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25783 echo $ECHO_N "(cached) $ECHO_C" >&6
25785 eval "$as_ac_Header=\$ac_header_preproc"
25787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25791 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25792 cat >>confdefs.h <<_ACEOF
25793 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25800 if test "${ac_cv_header_sys_epoll_h}" = yes; then
25801 echo "$as_me:$LINENO: checking for epoll system call" >&5
25802 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
25803 if test "$cross_compiling" = yes; then
25804 echo "$as_me:$LINENO: result: no" >&5
25805 echo "${ECHO_T}no" >&6
25807 cat >conftest.$ac_ext <<_ACEOF
25810 cat confdefs.h >>conftest.$ac_ext
25811 cat >>conftest.$ac_ext <<_ACEOF
25812 /* end confdefs.h. */
25813 int main(int argc, char *argv)
25815 int epfd = epoll_create(256);
25816 exit (epfd == -1 ? 1 : 0);
25819 rm -f conftest$ac_exeext
25820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25821 (eval $ac_link) 2>&5
25823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25824 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25826 (eval $ac_try) 2>&5
25828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25829 (exit $ac_status); }; }; then
25830 echo "$as_me:$LINENO: result: yes" >&5
25831 echo "${ECHO_T}yes" >&6
25833 cat >>confdefs.h <<\_ACEOF
25834 #define HAVE_EPOLL 1
25838 echo "$as_me: program exited with status $ac_status" >&5
25839 echo "$as_me: failed program was:" >&5
25840 sed 's/^/| /' conftest.$ac_ext >&5
25842 ( exit $ac_status )
25843 echo "$as_me:$LINENO: result: no" >&5
25844 echo "${ECHO_T}no" >&6
25846 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25851 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
25852 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
25853 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
25854 echo $ECHO_N "(cached) $ECHO_C" >&6
25857 cat >conftest.$ac_ext <<_ACEOF
25860 cat confdefs.h >>conftest.$ac_ext
25861 cat >>conftest.$ac_ext <<_ACEOF
25862 /* end confdefs.h. */
25865 #include <sys/types.h>
25868 #include <stdlib.h>
25873 char *c = (char *) *sys_errlist
25878 rm -f conftest.$ac_objext
25879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25880 (eval $ac_compile) 2>conftest.er1
25882 grep -v '^ *+' conftest.er1 >conftest.err
25884 cat conftest.err >&5
25885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25886 (exit $ac_status); } &&
25887 { ac_try='test -z "$ac_c_werror_flag"
25888 || test ! -s conftest.err'
25889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25890 (eval $ac_try) 2>&5
25892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25893 (exit $ac_status); }; } &&
25894 { ac_try='test -s conftest.$ac_objext'
25895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25896 (eval $ac_try) 2>&5
25898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25899 (exit $ac_status); }; }; then
25900 ol_cv_dcl_sys_errlist=yes
25901 ol_cv_have_sys_errlist=yes
25903 echo "$as_me: failed program was:" >&5
25904 sed 's/^/| /' conftest.$ac_ext >&5
25906 ol_cv_dcl_sys_errlist=no
25908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25910 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
25911 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
25913 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
25914 if test $ol_cv_dcl_sys_errlist = no ; then
25916 cat >>confdefs.h <<\_ACEOF
25917 #define DECL_SYS_ERRLIST 1
25921 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
25922 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
25923 if test "${ol_cv_have_sys_errlist+set}" = set; then
25924 echo $ECHO_N "(cached) $ECHO_C" >&6
25927 cat >conftest.$ac_ext <<_ACEOF
25930 cat confdefs.h >>conftest.$ac_ext
25931 cat >>conftest.$ac_ext <<_ACEOF
25932 /* end confdefs.h. */
25937 char *c = (char *) *sys_errlist
25942 rm -f conftest.$ac_objext conftest$ac_exeext
25943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25944 (eval $ac_link) 2>conftest.er1
25946 grep -v '^ *+' conftest.er1 >conftest.err
25948 cat conftest.err >&5
25949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25950 (exit $ac_status); } &&
25951 { ac_try='test -z "$ac_c_werror_flag"
25952 || test ! -s conftest.err'
25953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25954 (eval $ac_try) 2>&5
25956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25957 (exit $ac_status); }; } &&
25958 { ac_try='test -s conftest$ac_exeext'
25959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25960 (eval $ac_try) 2>&5
25962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25963 (exit $ac_status); }; }; then
25964 ol_cv_have_sys_errlist=yes
25966 echo "$as_me: failed program was:" >&5
25967 sed 's/^/| /' conftest.$ac_ext >&5
25969 ol_cv_have_sys_errlist=no
25971 rm -f conftest.err conftest.$ac_objext \
25972 conftest$ac_exeext conftest.$ac_ext
25974 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
25975 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
25977 if test $ol_cv_have_sys_errlist = yes ; then
25979 cat >>confdefs.h <<\_ACEOF
25980 #define HAVE_SYS_ERRLIST 1
25986 for ac_func in strerror strerror_r
25988 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25989 echo "$as_me:$LINENO: checking for $ac_func" >&5
25990 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25991 if eval "test \"\${$as_ac_var+set}\" = set"; then
25992 echo $ECHO_N "(cached) $ECHO_C" >&6
25994 cat >conftest.$ac_ext <<_ACEOF
25997 cat confdefs.h >>conftest.$ac_ext
25998 cat >>conftest.$ac_ext <<_ACEOF
25999 /* end confdefs.h. */
26000 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26002 #define $ac_func innocuous_$ac_func
26004 /* System header to define __stub macros and hopefully few prototypes,
26005 which can conflict with char $ac_func (); below.
26006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26007 <limits.h> exists even on freestanding compilers. */
26010 # include <limits.h>
26012 # include <assert.h>
26017 /* Override any gcc2 internal prototype to avoid an error. */
26022 /* We use char because int might match the return type of a gcc2
26023 builtin and then its argument prototype would still apply. */
26025 /* The GNU C library defines this for functions which it implements
26026 to always fail with ENOSYS. Some functions are actually named
26027 something starting with __ and the normal name is an alias. */
26028 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26031 char (*f) () = $ac_func;
26040 return f != $ac_func;
26045 rm -f conftest.$ac_objext conftest$ac_exeext
26046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26047 (eval $ac_link) 2>conftest.er1
26049 grep -v '^ *+' conftest.er1 >conftest.err
26051 cat conftest.err >&5
26052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26053 (exit $ac_status); } &&
26054 { ac_try='test -z "$ac_c_werror_flag"
26055 || test ! -s conftest.err'
26056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26057 (eval $ac_try) 2>&5
26059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26060 (exit $ac_status); }; } &&
26061 { ac_try='test -s conftest$ac_exeext'
26062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26063 (eval $ac_try) 2>&5
26065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26066 (exit $ac_status); }; }; then
26067 eval "$as_ac_var=yes"
26069 echo "$as_me: failed program was:" >&5
26070 sed 's/^/| /' conftest.$ac_ext >&5
26072 eval "$as_ac_var=no"
26074 rm -f conftest.err conftest.$ac_objext \
26075 conftest$ac_exeext conftest.$ac_ext
26077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26078 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26079 if test `eval echo '${'$as_ac_var'}'` = yes; then
26080 cat >>confdefs.h <<_ACEOF
26081 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26087 ol_cv_func_strerror_r=no
26088 if test "${ac_cv_func_strerror_r}" = yes ; then
26089 echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
26090 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
26091 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
26092 echo $ECHO_N "(cached) $ECHO_C" >&6
26095 cat >conftest.$ac_ext <<_ACEOF
26098 cat confdefs.h >>conftest.$ac_ext
26099 cat >>conftest.$ac_ext <<_ACEOF
26100 /* end confdefs.h. */
26101 #include <string.h>
26103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26104 $EGREP "strerror_r" >/dev/null 2>&1; then
26105 ol_decl_strerror_r=yes
26107 ol_decl_strerror_r=no
26111 if test $ol_decl_strerror_r = yes ; then
26112 cat >conftest.$ac_ext <<_ACEOF
26115 cat confdefs.h >>conftest.$ac_ext
26116 cat >>conftest.$ac_ext <<_ACEOF
26117 /* end confdefs.h. */
26118 #include <string.h>
26122 /* from autoconf 2.59 */
26124 char x = *strerror_r (0, buf, sizeof buf);
26125 char *p = strerror_r (0, buf, sizeof buf);
26131 rm -f conftest.$ac_objext
26132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26133 (eval $ac_compile) 2>conftest.er1
26135 grep -v '^ *+' conftest.er1 >conftest.err
26137 cat conftest.err >&5
26138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26139 (exit $ac_status); } &&
26140 { ac_try='test -z "$ac_c_werror_flag"
26141 || test ! -s conftest.err'
26142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26143 (eval $ac_try) 2>&5
26145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26146 (exit $ac_status); }; } &&
26147 { ac_try='test -s conftest.$ac_objext'
26148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26149 (eval $ac_try) 2>&5
26151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26152 (exit $ac_status); }; }; then
26153 ol_cv_nonposix_strerror_r=yes
26155 echo "$as_me: failed program was:" >&5
26156 sed 's/^/| /' conftest.$ac_ext >&5
26158 ol_cv_nonposix_strerror_r=no
26160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26162 if test "$cross_compiling" = yes; then
26163 ol_cv_nonposix_strerror=no
26165 cat >conftest.$ac_ext <<_ACEOF
26168 cat confdefs.h >>conftest.$ac_ext
26169 cat >>conftest.$ac_ext <<_ACEOF
26170 /* end confdefs.h. */
26175 strerror_r( 1, buf, sizeof buf );
26176 exit( buf[0] == 0 );
26180 rm -f conftest$ac_exeext
26181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26182 (eval $ac_link) 2>&5
26184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26185 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26187 (eval $ac_try) 2>&5
26189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26190 (exit $ac_status); }; }; then
26191 ol_cv_nonposix_strerror_r=yes
26193 echo "$as_me: program exited with status $ac_status" >&5
26194 echo "$as_me: failed program was:" >&5
26195 sed 's/^/| /' conftest.$ac_ext >&5
26197 ( exit $ac_status )
26198 ol_cv_nonposix_strerror=no
26200 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26205 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
26206 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
26207 if test $ol_cv_nonposix_strerror_r = yes ; then
26209 cat >>confdefs.h <<\_ACEOF
26210 #define HAVE_NONPOSIX_STRERROR_R 1
26215 elif test "${ac_cv_func_strerror}" = no ; then
26216 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
26217 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
26218 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
26219 echo $ECHO_N "(cached) $ECHO_C" >&6
26222 cat >conftest.$ac_ext <<_ACEOF
26225 cat confdefs.h >>conftest.$ac_ext
26226 cat >>conftest.$ac_ext <<_ACEOF
26227 /* end confdefs.h. */
26230 #include <sys/types.h>
26233 #include <stdlib.h>
26238 char *c = (char *) *sys_errlist
26243 rm -f conftest.$ac_objext
26244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26245 (eval $ac_compile) 2>conftest.er1
26247 grep -v '^ *+' conftest.er1 >conftest.err
26249 cat conftest.err >&5
26250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26251 (exit $ac_status); } &&
26252 { ac_try='test -z "$ac_c_werror_flag"
26253 || test ! -s conftest.err'
26254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26255 (eval $ac_try) 2>&5
26257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26258 (exit $ac_status); }; } &&
26259 { ac_try='test -s conftest.$ac_objext'
26260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26261 (eval $ac_try) 2>&5
26263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26264 (exit $ac_status); }; }; then
26265 ol_cv_dcl_sys_errlist=yes
26266 ol_cv_have_sys_errlist=yes
26268 echo "$as_me: failed program was:" >&5
26269 sed 's/^/| /' conftest.$ac_ext >&5
26271 ol_cv_dcl_sys_errlist=no
26273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26275 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
26276 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
26278 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
26279 if test $ol_cv_dcl_sys_errlist = no ; then
26281 cat >>confdefs.h <<\_ACEOF
26282 #define DECL_SYS_ERRLIST 1
26286 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
26287 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
26288 if test "${ol_cv_have_sys_errlist+set}" = set; then
26289 echo $ECHO_N "(cached) $ECHO_C" >&6
26292 cat >conftest.$ac_ext <<_ACEOF
26295 cat confdefs.h >>conftest.$ac_ext
26296 cat >>conftest.$ac_ext <<_ACEOF
26297 /* end confdefs.h. */
26302 char *c = (char *) *sys_errlist
26307 rm -f conftest.$ac_objext conftest$ac_exeext
26308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26309 (eval $ac_link) 2>conftest.er1
26311 grep -v '^ *+' conftest.er1 >conftest.err
26313 cat conftest.err >&5
26314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26315 (exit $ac_status); } &&
26316 { ac_try='test -z "$ac_c_werror_flag"
26317 || test ! -s conftest.err'
26318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26319 (eval $ac_try) 2>&5
26321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26322 (exit $ac_status); }; } &&
26323 { ac_try='test -s conftest$ac_exeext'
26324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26325 (eval $ac_try) 2>&5
26327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26328 (exit $ac_status); }; }; then
26329 ol_cv_have_sys_errlist=yes
26331 echo "$as_me: failed program was:" >&5
26332 sed 's/^/| /' conftest.$ac_ext >&5
26334 ol_cv_have_sys_errlist=no
26336 rm -f conftest.err conftest.$ac_objext \
26337 conftest$ac_exeext conftest.$ac_ext
26339 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
26340 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
26342 if test $ol_cv_have_sys_errlist = yes ; then
26344 cat >>confdefs.h <<\_ACEOF
26345 #define HAVE_SYS_ERRLIST 1
26354 for ac_header in regex.h
26356 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26357 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26358 echo "$as_me:$LINENO: checking for $ac_header" >&5
26359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26361 echo $ECHO_N "(cached) $ECHO_C" >&6
26363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26364 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26366 # Is the header compilable?
26367 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26368 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26369 cat >conftest.$ac_ext <<_ACEOF
26372 cat confdefs.h >>conftest.$ac_ext
26373 cat >>conftest.$ac_ext <<_ACEOF
26374 /* end confdefs.h. */
26375 $ac_includes_default
26376 #include <$ac_header>
26378 rm -f conftest.$ac_objext
26379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26380 (eval $ac_compile) 2>conftest.er1
26382 grep -v '^ *+' conftest.er1 >conftest.err
26384 cat conftest.err >&5
26385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26386 (exit $ac_status); } &&
26387 { ac_try='test -z "$ac_c_werror_flag"
26388 || test ! -s conftest.err'
26389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26390 (eval $ac_try) 2>&5
26392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26393 (exit $ac_status); }; } &&
26394 { ac_try='test -s conftest.$ac_objext'
26395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26396 (eval $ac_try) 2>&5
26398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26399 (exit $ac_status); }; }; then
26400 ac_header_compiler=yes
26402 echo "$as_me: failed program was:" >&5
26403 sed 's/^/| /' conftest.$ac_ext >&5
26405 ac_header_compiler=no
26407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26408 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26409 echo "${ECHO_T}$ac_header_compiler" >&6
26411 # Is the header present?
26412 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26413 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26414 cat >conftest.$ac_ext <<_ACEOF
26417 cat confdefs.h >>conftest.$ac_ext
26418 cat >>conftest.$ac_ext <<_ACEOF
26419 /* end confdefs.h. */
26420 #include <$ac_header>
26422 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26423 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26425 grep -v '^ *+' conftest.er1 >conftest.err
26427 cat conftest.err >&5
26428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26429 (exit $ac_status); } >/dev/null; then
26430 if test -s conftest.err; then
26431 ac_cpp_err=$ac_c_preproc_warn_flag
26432 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26439 if test -z "$ac_cpp_err"; then
26440 ac_header_preproc=yes
26442 echo "$as_me: failed program was:" >&5
26443 sed 's/^/| /' conftest.$ac_ext >&5
26445 ac_header_preproc=no
26447 rm -f conftest.err conftest.$ac_ext
26448 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26449 echo "${ECHO_T}$ac_header_preproc" >&6
26451 # So? What about this header?
26452 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26454 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26455 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26457 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26458 ac_header_preproc=yes
26461 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26462 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26463 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26464 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26465 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26466 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26467 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26468 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26469 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26470 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26471 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26472 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26475 ## ------------------------------------------ ##
26476 ## Report this to the AC_PACKAGE_NAME lists. ##
26477 ## ------------------------------------------ ##
26480 sed "s/^/$as_me: WARNING: /" >&2
26483 echo "$as_me:$LINENO: checking for $ac_header" >&5
26484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26486 echo $ECHO_N "(cached) $ECHO_C" >&6
26488 eval "$as_ac_Header=\$ac_header_preproc"
26490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26491 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26494 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26495 cat >>confdefs.h <<_ACEOF
26496 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26503 if test "$ac_cv_header_regex_h" != yes ; then
26504 { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
26505 echo "$as_me: error: POSIX regex.h required." >&2;}
26506 { (exit 1); exit 1; }; }
26508 echo "$as_me:$LINENO: checking for library containing regfree" >&5
26509 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
26510 if test "${ac_cv_search_regfree+set}" = set; then
26511 echo $ECHO_N "(cached) $ECHO_C" >&6
26513 ac_func_search_save_LIBS=$LIBS
26514 ac_cv_search_regfree=no
26515 cat >conftest.$ac_ext <<_ACEOF
26518 cat confdefs.h >>conftest.$ac_ext
26519 cat >>conftest.$ac_ext <<_ACEOF
26520 /* end confdefs.h. */
26522 /* Override any gcc2 internal prototype to avoid an error. */
26526 /* We use char because int might match the return type of a gcc2
26527 builtin and then its argument prototype would still apply. */
26537 rm -f conftest.$ac_objext conftest$ac_exeext
26538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26539 (eval $ac_link) 2>conftest.er1
26541 grep -v '^ *+' conftest.er1 >conftest.err
26543 cat conftest.err >&5
26544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26545 (exit $ac_status); } &&
26546 { ac_try='test -z "$ac_c_werror_flag"
26547 || test ! -s conftest.err'
26548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26549 (eval $ac_try) 2>&5
26551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26552 (exit $ac_status); }; } &&
26553 { ac_try='test -s conftest$ac_exeext'
26554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26555 (eval $ac_try) 2>&5
26557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26558 (exit $ac_status); }; }; then
26559 ac_cv_search_regfree="none required"
26561 echo "$as_me: failed program was:" >&5
26562 sed 's/^/| /' conftest.$ac_ext >&5
26565 rm -f conftest.err conftest.$ac_objext \
26566 conftest$ac_exeext conftest.$ac_ext
26567 if test "$ac_cv_search_regfree" = no; then
26568 for ac_lib in regex gnuregex; do
26569 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26570 cat >conftest.$ac_ext <<_ACEOF
26573 cat confdefs.h >>conftest.$ac_ext
26574 cat >>conftest.$ac_ext <<_ACEOF
26575 /* end confdefs.h. */
26577 /* Override any gcc2 internal prototype to avoid an error. */
26581 /* We use char because int might match the return type of a gcc2
26582 builtin and then its argument prototype would still apply. */
26592 rm -f conftest.$ac_objext conftest$ac_exeext
26593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26594 (eval $ac_link) 2>conftest.er1
26596 grep -v '^ *+' conftest.er1 >conftest.err
26598 cat conftest.err >&5
26599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26600 (exit $ac_status); } &&
26601 { ac_try='test -z "$ac_c_werror_flag"
26602 || test ! -s conftest.err'
26603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26604 (eval $ac_try) 2>&5
26606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26607 (exit $ac_status); }; } &&
26608 { ac_try='test -s conftest$ac_exeext'
26609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26610 (eval $ac_try) 2>&5
26612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26613 (exit $ac_status); }; }; then
26614 ac_cv_search_regfree="-l$ac_lib"
26617 echo "$as_me: failed program was:" >&5
26618 sed 's/^/| /' conftest.$ac_ext >&5
26621 rm -f conftest.err conftest.$ac_objext \
26622 conftest$ac_exeext conftest.$ac_ext
26625 LIBS=$ac_func_search_save_LIBS
26627 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
26628 echo "${ECHO_T}$ac_cv_search_regfree" >&6
26629 if test "$ac_cv_search_regfree" != no; then
26630 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
26633 { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
26634 echo "$as_me: error: POSIX regex required." >&2;}
26635 { (exit 1); exit 1; }; }
26640 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
26641 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
26642 if test "${ol_cv_c_posix_regex+set}" = set; then
26643 echo $ECHO_N "(cached) $ECHO_C" >&6
26646 if test "$cross_compiling" = yes; then
26647 ol_cv_c_posix_regex=cross
26649 cat >conftest.$ac_ext <<_ACEOF
26652 cat confdefs.h >>conftest.$ac_ext
26653 cat >>conftest.$ac_ext <<_ACEOF
26654 /* end confdefs.h. */
26656 #include <sys/types.h>
26658 static char *pattern, *string;
26666 if(regcomp(&re, pattern, 0)) {
26670 string = "ALL MATCH";
26672 rc = regexec(&re, string, 0, (void*)0, 0);
26679 rm -f conftest$ac_exeext
26680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26681 (eval $ac_link) 2>&5
26683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26684 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26686 (eval $ac_try) 2>&5
26688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26689 (exit $ac_status); }; }; then
26690 ol_cv_c_posix_regex=yes
26692 echo "$as_me: program exited with status $ac_status" >&5
26693 echo "$as_me: failed program was:" >&5
26694 sed 's/^/| /' conftest.$ac_ext >&5
26696 ( exit $ac_status )
26697 ol_cv_c_posix_regex=no
26699 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26702 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
26703 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
26705 if test "$ol_cv_c_posix_regex" = no ; then
26706 { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
26707 echo "$as_me: error: broken POSIX regex!" >&2;}
26708 { (exit 1); exit 1; }; }
26714 for ac_header in sys/uuid.h
26716 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26717 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26718 echo "$as_me:$LINENO: checking for $ac_header" >&5
26719 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26720 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26721 echo $ECHO_N "(cached) $ECHO_C" >&6
26723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26724 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26726 # Is the header compilable?
26727 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26728 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26729 cat >conftest.$ac_ext <<_ACEOF
26732 cat confdefs.h >>conftest.$ac_ext
26733 cat >>conftest.$ac_ext <<_ACEOF
26734 /* end confdefs.h. */
26735 $ac_includes_default
26736 #include <$ac_header>
26738 rm -f conftest.$ac_objext
26739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26740 (eval $ac_compile) 2>conftest.er1
26742 grep -v '^ *+' conftest.er1 >conftest.err
26744 cat conftest.err >&5
26745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26746 (exit $ac_status); } &&
26747 { ac_try='test -z "$ac_c_werror_flag"
26748 || test ! -s conftest.err'
26749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26750 (eval $ac_try) 2>&5
26752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26753 (exit $ac_status); }; } &&
26754 { ac_try='test -s conftest.$ac_objext'
26755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26756 (eval $ac_try) 2>&5
26758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26759 (exit $ac_status); }; }; then
26760 ac_header_compiler=yes
26762 echo "$as_me: failed program was:" >&5
26763 sed 's/^/| /' conftest.$ac_ext >&5
26765 ac_header_compiler=no
26767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26768 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26769 echo "${ECHO_T}$ac_header_compiler" >&6
26771 # Is the header present?
26772 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26773 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26774 cat >conftest.$ac_ext <<_ACEOF
26777 cat confdefs.h >>conftest.$ac_ext
26778 cat >>conftest.$ac_ext <<_ACEOF
26779 /* end confdefs.h. */
26780 #include <$ac_header>
26782 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26783 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26785 grep -v '^ *+' conftest.er1 >conftest.err
26787 cat conftest.err >&5
26788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26789 (exit $ac_status); } >/dev/null; then
26790 if test -s conftest.err; then
26791 ac_cpp_err=$ac_c_preproc_warn_flag
26792 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26799 if test -z "$ac_cpp_err"; then
26800 ac_header_preproc=yes
26802 echo "$as_me: failed program was:" >&5
26803 sed 's/^/| /' conftest.$ac_ext >&5
26805 ac_header_preproc=no
26807 rm -f conftest.err conftest.$ac_ext
26808 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26809 echo "${ECHO_T}$ac_header_preproc" >&6
26811 # So? What about this header?
26812 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26814 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26815 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26817 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26818 ac_header_preproc=yes
26821 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26822 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26823 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26824 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26825 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26826 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26827 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26828 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26829 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26830 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26831 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26832 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26835 ## ------------------------------------------ ##
26836 ## Report this to the AC_PACKAGE_NAME lists. ##
26837 ## ------------------------------------------ ##
26840 sed "s/^/$as_me: WARNING: /" >&2
26843 echo "$as_me:$LINENO: checking for $ac_header" >&5
26844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26845 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26846 echo $ECHO_N "(cached) $ECHO_C" >&6
26848 eval "$as_ac_Header=\$ac_header_preproc"
26850 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26851 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26854 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26855 cat >>confdefs.h <<_ACEOF
26856 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26863 if test $ac_cv_header_sys_uuid_h = yes ; then
26865 echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
26866 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
26867 if test "${ac_cv_search_uuid_to_str+set}" = set; then
26868 echo $ECHO_N "(cached) $ECHO_C" >&6
26870 ac_func_search_save_LIBS=$LIBS
26871 ac_cv_search_uuid_to_str=no
26872 cat >conftest.$ac_ext <<_ACEOF
26875 cat confdefs.h >>conftest.$ac_ext
26876 cat >>conftest.$ac_ext <<_ACEOF
26877 /* end confdefs.h. */
26879 /* Override any gcc2 internal prototype to avoid an error. */
26883 /* We use char because int might match the return type of a gcc2
26884 builtin and then its argument prototype would still apply. */
26885 char uuid_to_str ();
26894 rm -f conftest.$ac_objext conftest$ac_exeext
26895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26896 (eval $ac_link) 2>conftest.er1
26898 grep -v '^ *+' conftest.er1 >conftest.err
26900 cat conftest.err >&5
26901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26902 (exit $ac_status); } &&
26903 { ac_try='test -z "$ac_c_werror_flag"
26904 || test ! -s conftest.err'
26905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26906 (eval $ac_try) 2>&5
26908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26909 (exit $ac_status); }; } &&
26910 { ac_try='test -s conftest$ac_exeext'
26911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26912 (eval $ac_try) 2>&5
26914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26915 (exit $ac_status); }; }; then
26916 ac_cv_search_uuid_to_str="none required"
26918 echo "$as_me: failed program was:" >&5
26919 sed 's/^/| /' conftest.$ac_ext >&5
26922 rm -f conftest.err conftest.$ac_objext \
26923 conftest$ac_exeext conftest.$ac_ext
26924 if test "$ac_cv_search_uuid_to_str" = no; then
26925 for ac_lib in uuid; do
26926 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26927 cat >conftest.$ac_ext <<_ACEOF
26930 cat confdefs.h >>conftest.$ac_ext
26931 cat >>conftest.$ac_ext <<_ACEOF
26932 /* end confdefs.h. */
26934 /* Override any gcc2 internal prototype to avoid an error. */
26938 /* We use char because int might match the return type of a gcc2
26939 builtin and then its argument prototype would still apply. */
26940 char uuid_to_str ();
26949 rm -f conftest.$ac_objext conftest$ac_exeext
26950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26951 (eval $ac_link) 2>conftest.er1
26953 grep -v '^ *+' conftest.er1 >conftest.err
26955 cat conftest.err >&5
26956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26957 (exit $ac_status); } &&
26958 { ac_try='test -z "$ac_c_werror_flag"
26959 || test ! -s conftest.err'
26960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26961 (eval $ac_try) 2>&5
26963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26964 (exit $ac_status); }; } &&
26965 { ac_try='test -s conftest$ac_exeext'
26966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26967 (eval $ac_try) 2>&5
26969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26970 (exit $ac_status); }; }; then
26971 ac_cv_search_uuid_to_str="-l$ac_lib"
26974 echo "$as_me: failed program was:" >&5
26975 sed 's/^/| /' conftest.$ac_ext >&5
26978 rm -f conftest.err conftest.$ac_objext \
26979 conftest$ac_exeext conftest.$ac_ext
26982 LIBS=$ac_func_search_save_LIBS
26984 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
26985 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
26986 if test "$ac_cv_search_uuid_to_str" != no; then
26987 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
26995 if test have_uuid = yes ; then
26997 cat >>confdefs.h <<\_ACEOF
26998 #define HAVE_UUID_TO_STR 1
27002 test "$ac_cv_search_uuid_to_str" = "none required" || \
27003 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
27007 if test $have_uuid = no ; then
27008 echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
27009 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
27011 LIBS="$LIBS -lrpcrt4"
27012 cat >conftest.$ac_ext <<_ACEOF
27015 cat confdefs.h >>conftest.$ac_ext
27016 cat >>conftest.$ac_ext <<_ACEOF
27017 /* end confdefs.h. */
27019 int __stdcall UuidCreate(void *);
27020 int __stdcall UuidToStringA(void *,void **);
27027 UuidToStringA(0,0);
27033 rm -f conftest.$ac_objext conftest$ac_exeext
27034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27035 (eval $ac_link) 2>conftest.er1
27037 grep -v '^ *+' conftest.er1 >conftest.err
27039 cat conftest.err >&5
27040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27041 (exit $ac_status); } &&
27042 { ac_try='test -z "$ac_c_werror_flag"
27043 || test ! -s conftest.err'
27044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27045 (eval $ac_try) 2>&5
27047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27048 (exit $ac_status); }; } &&
27049 { ac_try='test -s conftest$ac_exeext'
27050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27051 (eval $ac_try) 2>&5
27053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27054 (exit $ac_status); }; }; then
27057 echo "$as_me: failed program was:" >&5
27058 sed 's/^/| /' conftest.$ac_ext >&5
27062 rm -f conftest.err conftest.$ac_objext \
27063 conftest$ac_exeext conftest.$ac_ext
27064 if test $need_rpcrt = yes; then
27065 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
27068 echo "$as_me:$LINENO: result: $need_rpcrt" >&5
27069 echo "${ECHO_T}$need_rpcrt" >&6
27072 ol_cv_lib_resolver=no
27073 if test $ol_cv_lib_resolver = no ; then
27074 echo "$as_me:$LINENO: checking for resolver link (default)" >&5
27075 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
27076 if test "${ol_cv_resolver_none+set}" = set; then
27077 echo $ECHO_N "(cached) $ECHO_C" >&6
27082 LIBS="$ol_RESOLVER_LIB $LIBS"
27084 cat >conftest.$ac_ext <<_ACEOF
27087 cat confdefs.h >>conftest.$ac_ext
27088 cat >>conftest.$ac_ext <<_ACEOF
27089 /* end confdefs.h. */
27091 #ifdef HAVE_SYS_TYPES_H
27092 # include <sys/types.h>
27094 #include <netinet/in.h>
27095 #ifdef HAVE_ARPA_NAMESER_H
27096 # include <arpa/nameser.h>
27098 #ifdef HAVE_RESOLV_H
27099 # include <resolv.h>
27107 char *request = NULL;
27108 unsigned char reply[64*1024];
27109 unsigned char host[64*1024];
27113 /* Bind 8/9 interface */
27114 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27116 /* Bind 4 interface */
27120 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27124 /* Bind 8/9 interface */
27126 #elif defined(HFIXEDSZ)
27127 /* Bind 4 interface w/ HFIXEDSZ */
27130 /* Bind 4 interface w/o HFIXEDSZ */
27131 p += sizeof(HEADER);
27133 status = dn_expand( reply, reply+len, p, host, sizeof(host));
27139 rm -f conftest.$ac_objext conftest$ac_exeext
27140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27141 (eval $ac_link) 2>conftest.er1
27143 grep -v '^ *+' conftest.er1 >conftest.err
27145 cat conftest.err >&5
27146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27147 (exit $ac_status); } &&
27148 { ac_try='test -z "$ac_c_werror_flag"
27149 || test ! -s conftest.err'
27150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27151 (eval $ac_try) 2>&5
27153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27154 (exit $ac_status); }; } &&
27155 { ac_try='test -s conftest$ac_exeext'
27156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27157 (eval $ac_try) 2>&5
27159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27160 (exit $ac_status); }; }; then
27161 ol_cv_resolver_none=yes
27163 echo "$as_me: failed program was:" >&5
27164 sed 's/^/| /' conftest.$ac_ext >&5
27166 ol_cv_resolver_none=no
27168 rm -f conftest.err conftest.$ac_objext \
27169 conftest$ac_exeext conftest.$ac_ext
27174 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
27175 echo "${ECHO_T}$ol_cv_resolver_none" >&6
27177 if test $ol_cv_resolver_none = yes ; then
27178 ol_cv_lib_resolver=yes
27182 if test $ol_cv_lib_resolver = no ; then
27183 echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
27184 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
27185 if test "${ol_cv_resolver_resolv+set}" = set; then
27186 echo $ECHO_N "(cached) $ECHO_C" >&6
27189 ol_RESOLVER_LIB=-lresolv
27191 LIBS="$ol_RESOLVER_LIB $LIBS"
27193 cat >conftest.$ac_ext <<_ACEOF
27196 cat confdefs.h >>conftest.$ac_ext
27197 cat >>conftest.$ac_ext <<_ACEOF
27198 /* end confdefs.h. */
27200 #ifdef HAVE_SYS_TYPES_H
27201 # include <sys/types.h>
27203 #include <netinet/in.h>
27204 #ifdef HAVE_ARPA_NAMESER_H
27205 # include <arpa/nameser.h>
27207 #ifdef HAVE_RESOLV_H
27208 # include <resolv.h>
27216 char *request = NULL;
27217 unsigned char reply[64*1024];
27218 unsigned char host[64*1024];
27222 /* Bind 8/9 interface */
27223 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27225 /* Bind 4 interface */
27229 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27233 /* Bind 8/9 interface */
27235 #elif defined(HFIXEDSZ)
27236 /* Bind 4 interface w/ HFIXEDSZ */
27239 /* Bind 4 interface w/o HFIXEDSZ */
27240 p += sizeof(HEADER);
27242 status = dn_expand( reply, reply+len, p, host, sizeof(host));
27248 rm -f conftest.$ac_objext conftest$ac_exeext
27249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27250 (eval $ac_link) 2>conftest.er1
27252 grep -v '^ *+' conftest.er1 >conftest.err
27254 cat conftest.err >&5
27255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27256 (exit $ac_status); } &&
27257 { ac_try='test -z "$ac_c_werror_flag"
27258 || test ! -s conftest.err'
27259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27260 (eval $ac_try) 2>&5
27262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27263 (exit $ac_status); }; } &&
27264 { ac_try='test -s conftest$ac_exeext'
27265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27266 (eval $ac_try) 2>&5
27268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27269 (exit $ac_status); }; }; then
27270 ol_cv_resolver_resolv=yes
27272 echo "$as_me: failed program was:" >&5
27273 sed 's/^/| /' conftest.$ac_ext >&5
27275 ol_cv_resolver_resolv=no
27277 rm -f conftest.err conftest.$ac_objext \
27278 conftest$ac_exeext conftest.$ac_ext
27283 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
27284 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
27286 if test $ol_cv_resolver_resolv = yes ; then
27287 ol_cv_lib_resolver=-lresolv
27291 if test $ol_cv_lib_resolver = no ; then
27292 echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
27293 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
27294 if test "${ol_cv_resolver_bind+set}" = set; then
27295 echo $ECHO_N "(cached) $ECHO_C" >&6
27298 ol_RESOLVER_LIB=-lbind
27300 LIBS="$ol_RESOLVER_LIB $LIBS"
27302 cat >conftest.$ac_ext <<_ACEOF
27305 cat confdefs.h >>conftest.$ac_ext
27306 cat >>conftest.$ac_ext <<_ACEOF
27307 /* end confdefs.h. */
27309 #ifdef HAVE_SYS_TYPES_H
27310 # include <sys/types.h>
27312 #include <netinet/in.h>
27313 #ifdef HAVE_ARPA_NAMESER_H
27314 # include <arpa/nameser.h>
27316 #ifdef HAVE_RESOLV_H
27317 # include <resolv.h>
27325 char *request = NULL;
27326 unsigned char reply[64*1024];
27327 unsigned char host[64*1024];
27331 /* Bind 8/9 interface */
27332 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27334 /* Bind 4 interface */
27338 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27342 /* Bind 8/9 interface */
27344 #elif defined(HFIXEDSZ)
27345 /* Bind 4 interface w/ HFIXEDSZ */
27348 /* Bind 4 interface w/o HFIXEDSZ */
27349 p += sizeof(HEADER);
27351 status = dn_expand( reply, reply+len, p, host, sizeof(host));
27357 rm -f conftest.$ac_objext conftest$ac_exeext
27358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27359 (eval $ac_link) 2>conftest.er1
27361 grep -v '^ *+' conftest.er1 >conftest.err
27363 cat conftest.err >&5
27364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27365 (exit $ac_status); } &&
27366 { ac_try='test -z "$ac_c_werror_flag"
27367 || test ! -s conftest.err'
27368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27369 (eval $ac_try) 2>&5
27371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27372 (exit $ac_status); }; } &&
27373 { ac_try='test -s conftest$ac_exeext'
27374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27375 (eval $ac_try) 2>&5
27377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27378 (exit $ac_status); }; }; then
27379 ol_cv_resolver_bind=yes
27381 echo "$as_me: failed program was:" >&5
27382 sed 's/^/| /' conftest.$ac_ext >&5
27384 ol_cv_resolver_bind=no
27386 rm -f conftest.err conftest.$ac_objext \
27387 conftest$ac_exeext conftest.$ac_ext
27392 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
27393 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
27395 if test $ol_cv_resolver_bind = yes ; then
27396 ol_cv_lib_resolver=-lbind
27403 if test "$ol_cv_lib_resolver" != no ; then
27405 cat >>confdefs.h <<\_ACEOF
27406 #define HAVE_RES_QUERY 1
27410 if test "$ol_enable_dnssrv" != no ; then
27414 if test "$ol_cv_lib_resolver" != yes ; then
27415 LIBS="$ol_cv_lib_resolver $LIBS"
27419 if test "$ol_enable_dnssrv" = yes -o "$ol_enable_dnssrv" = mod ; then
27420 if test "$ol_link_dnssrv" = no ; then
27421 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
27422 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
27423 { (exit 1); exit 1; }; }
27426 ol_enable_dnssrv=no
27430 for ac_func in hstrerror
27432 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27433 echo "$as_me:$LINENO: checking for $ac_func" >&5
27434 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27435 if eval "test \"\${$as_ac_var+set}\" = set"; then
27436 echo $ECHO_N "(cached) $ECHO_C" >&6
27438 cat >conftest.$ac_ext <<_ACEOF
27441 cat confdefs.h >>conftest.$ac_ext
27442 cat >>conftest.$ac_ext <<_ACEOF
27443 /* end confdefs.h. */
27444 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27445 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27446 #define $ac_func innocuous_$ac_func
27448 /* System header to define __stub macros and hopefully few prototypes,
27449 which can conflict with char $ac_func (); below.
27450 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27451 <limits.h> exists even on freestanding compilers. */
27454 # include <limits.h>
27456 # include <assert.h>
27461 /* Override any gcc2 internal prototype to avoid an error. */
27466 /* We use char because int might match the return type of a gcc2
27467 builtin and then its argument prototype would still apply. */
27469 /* The GNU C library defines this for functions which it implements
27470 to always fail with ENOSYS. Some functions are actually named
27471 something starting with __ and the normal name is an alias. */
27472 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27475 char (*f) () = $ac_func;
27484 return f != $ac_func;
27489 rm -f conftest.$ac_objext conftest$ac_exeext
27490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27491 (eval $ac_link) 2>conftest.er1
27493 grep -v '^ *+' conftest.er1 >conftest.err
27495 cat conftest.err >&5
27496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27497 (exit $ac_status); } &&
27498 { ac_try='test -z "$ac_c_werror_flag"
27499 || test ! -s conftest.err'
27500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27501 (eval $ac_try) 2>&5
27503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27504 (exit $ac_status); }; } &&
27505 { ac_try='test -s conftest$ac_exeext'
27506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27507 (eval $ac_try) 2>&5
27509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27510 (exit $ac_status); }; }; then
27511 eval "$as_ac_var=yes"
27513 echo "$as_me: failed program was:" >&5
27514 sed 's/^/| /' conftest.$ac_ext >&5
27516 eval "$as_ac_var=no"
27518 rm -f conftest.err conftest.$ac_objext \
27519 conftest$ac_exeext conftest.$ac_ext
27521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27522 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27523 if test `eval echo '${'$as_ac_var'}'` = yes; then
27524 cat >>confdefs.h <<_ACEOF
27525 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27536 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
27538 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27539 echo "$as_me:$LINENO: checking for $ac_func" >&5
27540 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27541 if eval "test \"\${$as_ac_var+set}\" = set"; then
27542 echo $ECHO_N "(cached) $ECHO_C" >&6
27544 cat >conftest.$ac_ext <<_ACEOF
27547 cat confdefs.h >>conftest.$ac_ext
27548 cat >>conftest.$ac_ext <<_ACEOF
27549 /* end confdefs.h. */
27550 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27551 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27552 #define $ac_func innocuous_$ac_func
27554 /* System header to define __stub macros and hopefully few prototypes,
27555 which can conflict with char $ac_func (); below.
27556 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27557 <limits.h> exists even on freestanding compilers. */
27560 # include <limits.h>
27562 # include <assert.h>
27567 /* Override any gcc2 internal prototype to avoid an error. */
27572 /* We use char because int might match the return type of a gcc2
27573 builtin and then its argument prototype would still apply. */
27575 /* The GNU C library defines this for functions which it implements
27576 to always fail with ENOSYS. Some functions are actually named
27577 something starting with __ and the normal name is an alias. */
27578 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27581 char (*f) () = $ac_func;
27590 return f != $ac_func;
27595 rm -f conftest.$ac_objext conftest$ac_exeext
27596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27597 (eval $ac_link) 2>conftest.er1
27599 grep -v '^ *+' conftest.er1 >conftest.err
27601 cat conftest.err >&5
27602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27603 (exit $ac_status); } &&
27604 { ac_try='test -z "$ac_c_werror_flag"
27605 || test ! -s conftest.err'
27606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27607 (eval $ac_try) 2>&5
27609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27610 (exit $ac_status); }; } &&
27611 { ac_try='test -s conftest$ac_exeext'
27612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27613 (eval $ac_try) 2>&5
27615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27616 (exit $ac_status); }; }; then
27617 eval "$as_ac_var=yes"
27619 echo "$as_me: failed program was:" >&5
27620 sed 's/^/| /' conftest.$ac_ext >&5
27622 eval "$as_ac_var=no"
27624 rm -f conftest.err conftest.$ac_objext \
27625 conftest$ac_exeext conftest.$ac_ext
27627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27628 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27629 if test `eval echo '${'$as_ac_var'}'` = yes; then
27630 cat >>confdefs.h <<_ACEOF
27631 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27639 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
27640 if test $ol_enable_ipv6 = yes ; then
27641 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
27642 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
27643 { (exit 1); exit 1; }; }
27645 elif test $ol_enable_ipv6 != no ; then
27646 echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
27647 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
27648 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
27649 echo $ECHO_N "(cached) $ECHO_C" >&6
27652 cat >conftest.$ac_ext <<_ACEOF
27655 cat confdefs.h >>conftest.$ac_ext
27656 cat >>conftest.$ac_ext <<_ACEOF
27657 /* end confdefs.h. */
27659 # include <netinet/in.h>
27660 # ifdef INET6_ADDRSTRLEN
27661 __has_inet6_addrstrlen__;
27665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27666 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
27667 ol_cv_inet6_addrstrlen=yes
27669 ol_cv_inet6_addrstrlen=no
27674 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
27675 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
27678 echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
27679 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
27680 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
27681 echo $ECHO_N "(cached) $ECHO_C" >&6
27684 cat >conftest.$ac_ext <<_ACEOF
27687 cat confdefs.h >>conftest.$ac_ext
27688 cat >>conftest.$ac_ext <<_ACEOF
27689 /* end confdefs.h. */
27691 #include <sys/types.h>
27692 #include <sys/socket.h>
27698 struct sockaddr_storage ss;
27704 rm -f conftest.$ac_objext
27705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27706 (eval $ac_compile) 2>conftest.er1
27708 grep -v '^ *+' conftest.er1 >conftest.err
27710 cat conftest.err >&5
27711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27712 (exit $ac_status); } &&
27713 { ac_try='test -z "$ac_c_werror_flag"
27714 || test ! -s conftest.err'
27715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27716 (eval $ac_try) 2>&5
27718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27719 (exit $ac_status); }; } &&
27720 { ac_try='test -s conftest.$ac_objext'
27721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27722 (eval $ac_try) 2>&5
27724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27725 (exit $ac_status); }; }; then
27726 ol_cv_struct_sockaddr_storage=yes
27728 echo "$as_me: failed program was:" >&5
27729 sed 's/^/| /' conftest.$ac_ext >&5
27731 ol_cv_struct_sockaddr_storage=no
27733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27735 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
27736 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
27738 if test $ol_cv_inet6_addrstrlen = yes \
27739 -a $ol_cv_struct_sockaddr_storage = yes ; then
27741 elif test $ol_enable_ipv6 = yes \
27742 -a $ol_cv_inet6_addrstrlen = no ; then
27743 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
27744 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
27745 { (exit 1); exit 1; }; }
27746 elif test $ol_enable_ipv6 = yes \
27747 -a $ol_cv_struct_sockaddr_storage = no ; then
27748 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
27749 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
27750 { (exit 1); exit 1; }; }
27754 if test $ol_enable_local != no ; then
27756 for ac_header in sys/un.h
27758 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27760 echo "$as_me:$LINENO: checking for $ac_header" >&5
27761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27762 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27763 echo $ECHO_N "(cached) $ECHO_C" >&6
27765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27766 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27768 # Is the header compilable?
27769 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27770 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27771 cat >conftest.$ac_ext <<_ACEOF
27774 cat confdefs.h >>conftest.$ac_ext
27775 cat >>conftest.$ac_ext <<_ACEOF
27776 /* end confdefs.h. */
27777 $ac_includes_default
27778 #include <$ac_header>
27780 rm -f conftest.$ac_objext
27781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27782 (eval $ac_compile) 2>conftest.er1
27784 grep -v '^ *+' conftest.er1 >conftest.err
27786 cat conftest.err >&5
27787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27788 (exit $ac_status); } &&
27789 { ac_try='test -z "$ac_c_werror_flag"
27790 || test ! -s conftest.err'
27791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27792 (eval $ac_try) 2>&5
27794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27795 (exit $ac_status); }; } &&
27796 { ac_try='test -s conftest.$ac_objext'
27797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27798 (eval $ac_try) 2>&5
27800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27801 (exit $ac_status); }; }; then
27802 ac_header_compiler=yes
27804 echo "$as_me: failed program was:" >&5
27805 sed 's/^/| /' conftest.$ac_ext >&5
27807 ac_header_compiler=no
27809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27810 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27811 echo "${ECHO_T}$ac_header_compiler" >&6
27813 # Is the header present?
27814 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27815 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27816 cat >conftest.$ac_ext <<_ACEOF
27819 cat confdefs.h >>conftest.$ac_ext
27820 cat >>conftest.$ac_ext <<_ACEOF
27821 /* end confdefs.h. */
27822 #include <$ac_header>
27824 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27825 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27827 grep -v '^ *+' conftest.er1 >conftest.err
27829 cat conftest.err >&5
27830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27831 (exit $ac_status); } >/dev/null; then
27832 if test -s conftest.err; then
27833 ac_cpp_err=$ac_c_preproc_warn_flag
27834 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27841 if test -z "$ac_cpp_err"; then
27842 ac_header_preproc=yes
27844 echo "$as_me: failed program was:" >&5
27845 sed 's/^/| /' conftest.$ac_ext >&5
27847 ac_header_preproc=no
27849 rm -f conftest.err conftest.$ac_ext
27850 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27851 echo "${ECHO_T}$ac_header_preproc" >&6
27853 # So? What about this header?
27854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27856 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27857 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27859 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27860 ac_header_preproc=yes
27863 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27864 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27865 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27866 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27867 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27868 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27869 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27870 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27871 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27872 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27873 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27874 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27877 ## ------------------------------------------ ##
27878 ## Report this to the AC_PACKAGE_NAME lists. ##
27879 ## ------------------------------------------ ##
27882 sed "s/^/$as_me: WARNING: /" >&2
27885 echo "$as_me:$LINENO: checking for $ac_header" >&5
27886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27888 echo $ECHO_N "(cached) $ECHO_C" >&6
27890 eval "$as_ac_Header=\$ac_header_preproc"
27892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27893 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27896 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27897 cat >>confdefs.h <<_ACEOF
27898 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27906 if test $ol_enable_local = auto ; then
27907 ol_enable_local=$ac_cv_header_sys_un_h
27908 elif test $ac_cv_header_sys_un_h = no ; then
27909 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
27910 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
27911 { (exit 1); exit 1; }; }
27919 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
27920 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
27921 -o $ol_with_kerberos = k425 ; then
27924 for ac_header in krb5.h
27926 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27927 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27928 echo "$as_me:$LINENO: checking for $ac_header" >&5
27929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27931 echo $ECHO_N "(cached) $ECHO_C" >&6
27933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27934 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27936 # Is the header compilable?
27937 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27938 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27939 cat >conftest.$ac_ext <<_ACEOF
27942 cat confdefs.h >>conftest.$ac_ext
27943 cat >>conftest.$ac_ext <<_ACEOF
27944 /* end confdefs.h. */
27945 $ac_includes_default
27946 #include <$ac_header>
27948 rm -f conftest.$ac_objext
27949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27950 (eval $ac_compile) 2>conftest.er1
27952 grep -v '^ *+' conftest.er1 >conftest.err
27954 cat conftest.err >&5
27955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27956 (exit $ac_status); } &&
27957 { ac_try='test -z "$ac_c_werror_flag"
27958 || test ! -s conftest.err'
27959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27960 (eval $ac_try) 2>&5
27962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27963 (exit $ac_status); }; } &&
27964 { ac_try='test -s conftest.$ac_objext'
27965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27966 (eval $ac_try) 2>&5
27968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27969 (exit $ac_status); }; }; then
27970 ac_header_compiler=yes
27972 echo "$as_me: failed program was:" >&5
27973 sed 's/^/| /' conftest.$ac_ext >&5
27975 ac_header_compiler=no
27977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27978 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27979 echo "${ECHO_T}$ac_header_compiler" >&6
27981 # Is the header present?
27982 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27983 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27984 cat >conftest.$ac_ext <<_ACEOF
27987 cat confdefs.h >>conftest.$ac_ext
27988 cat >>conftest.$ac_ext <<_ACEOF
27989 /* end confdefs.h. */
27990 #include <$ac_header>
27992 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27993 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27995 grep -v '^ *+' conftest.er1 >conftest.err
27997 cat conftest.err >&5
27998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27999 (exit $ac_status); } >/dev/null; then
28000 if test -s conftest.err; then
28001 ac_cpp_err=$ac_c_preproc_warn_flag
28002 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28009 if test -z "$ac_cpp_err"; then
28010 ac_header_preproc=yes
28012 echo "$as_me: failed program was:" >&5
28013 sed 's/^/| /' conftest.$ac_ext >&5
28015 ac_header_preproc=no
28017 rm -f conftest.err conftest.$ac_ext
28018 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28019 echo "${ECHO_T}$ac_header_preproc" >&6
28021 # So? What about this header?
28022 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28024 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28025 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28027 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28028 ac_header_preproc=yes
28031 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28032 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28033 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28034 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28035 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28036 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28037 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28038 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28040 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28041 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28042 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28045 ## ------------------------------------------ ##
28046 ## Report this to the AC_PACKAGE_NAME lists. ##
28047 ## ------------------------------------------ ##
28050 sed "s/^/$as_me: WARNING: /" >&2
28053 echo "$as_me:$LINENO: checking for $ac_header" >&5
28054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28056 echo $ECHO_N "(cached) $ECHO_C" >&6
28058 eval "$as_ac_Header=\$ac_header_preproc"
28060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28061 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28064 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28065 cat >>confdefs.h <<_ACEOF
28066 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28074 if test $ac_cv_header_krb5_h = yes ; then
28076 for ac_header in heim_err.h
28078 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28079 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28080 echo "$as_me:$LINENO: checking for $ac_header" >&5
28081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28082 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28083 echo $ECHO_N "(cached) $ECHO_C" >&6
28085 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28086 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28088 # Is the header compilable?
28089 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28090 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28091 cat >conftest.$ac_ext <<_ACEOF
28094 cat confdefs.h >>conftest.$ac_ext
28095 cat >>conftest.$ac_ext <<_ACEOF
28096 /* end confdefs.h. */
28097 $ac_includes_default
28098 #include <$ac_header>
28100 rm -f conftest.$ac_objext
28101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28102 (eval $ac_compile) 2>conftest.er1
28104 grep -v '^ *+' conftest.er1 >conftest.err
28106 cat conftest.err >&5
28107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28108 (exit $ac_status); } &&
28109 { ac_try='test -z "$ac_c_werror_flag"
28110 || test ! -s conftest.err'
28111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28112 (eval $ac_try) 2>&5
28114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28115 (exit $ac_status); }; } &&
28116 { ac_try='test -s conftest.$ac_objext'
28117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28118 (eval $ac_try) 2>&5
28120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28121 (exit $ac_status); }; }; then
28122 ac_header_compiler=yes
28124 echo "$as_me: failed program was:" >&5
28125 sed 's/^/| /' conftest.$ac_ext >&5
28127 ac_header_compiler=no
28129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28130 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28131 echo "${ECHO_T}$ac_header_compiler" >&6
28133 # Is the header present?
28134 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28135 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28136 cat >conftest.$ac_ext <<_ACEOF
28139 cat confdefs.h >>conftest.$ac_ext
28140 cat >>conftest.$ac_ext <<_ACEOF
28141 /* end confdefs.h. */
28142 #include <$ac_header>
28144 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28145 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28147 grep -v '^ *+' conftest.er1 >conftest.err
28149 cat conftest.err >&5
28150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28151 (exit $ac_status); } >/dev/null; then
28152 if test -s conftest.err; then
28153 ac_cpp_err=$ac_c_preproc_warn_flag
28154 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28161 if test -z "$ac_cpp_err"; then
28162 ac_header_preproc=yes
28164 echo "$as_me: failed program was:" >&5
28165 sed 's/^/| /' conftest.$ac_ext >&5
28167 ac_header_preproc=no
28169 rm -f conftest.err conftest.$ac_ext
28170 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28171 echo "${ECHO_T}$ac_header_preproc" >&6
28173 # So? What about this header?
28174 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28176 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28177 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28179 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28180 ac_header_preproc=yes
28183 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28184 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28185 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28186 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28187 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28188 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28189 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28190 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28192 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28193 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28194 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28197 ## ------------------------------------------ ##
28198 ## Report this to the AC_PACKAGE_NAME lists. ##
28199 ## ------------------------------------------ ##
28202 sed "s/^/$as_me: WARNING: /" >&2
28205 echo "$as_me:$LINENO: checking for $ac_header" >&5
28206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28207 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28208 echo $ECHO_N "(cached) $ECHO_C" >&6
28210 eval "$as_ac_Header=\$ac_header_preproc"
28212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28213 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28216 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28217 cat >>confdefs.h <<_ACEOF
28218 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28225 if test $ac_cv_header_heim_err_h = yes ; then
28231 if test $krb5_impl = mit; then
28232 echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
28233 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
28234 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
28235 echo $ECHO_N "(cached) $ECHO_C" >&6
28237 ac_check_lib_save_LIBS=$LIBS
28238 LIBS="-lk5crypto $LIBS"
28239 cat >conftest.$ac_ext <<_ACEOF
28242 cat confdefs.h >>conftest.$ac_ext
28243 cat >>conftest.$ac_ext <<_ACEOF
28244 /* end confdefs.h. */
28255 rm -f conftest.$ac_objext conftest$ac_exeext
28256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28257 (eval $ac_link) 2>conftest.er1
28259 grep -v '^ *+' conftest.er1 >conftest.err
28261 cat conftest.err >&5
28262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28263 (exit $ac_status); } &&
28264 { ac_try='test -z "$ac_c_werror_flag"
28265 || test ! -s conftest.err'
28266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28267 (eval $ac_try) 2>&5
28269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28270 (exit $ac_status); }; } &&
28271 { ac_try='test -s conftest$ac_exeext'
28272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28273 (eval $ac_try) 2>&5
28275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28276 (exit $ac_status); }; }; then
28277 ac_cv_lib_k5crypto_main=yes
28279 echo "$as_me: failed program was:" >&5
28280 sed 's/^/| /' conftest.$ac_ext >&5
28282 ac_cv_lib_k5crypto_main=no
28284 rm -f conftest.err conftest.$ac_objext \
28285 conftest$ac_exeext conftest.$ac_ext
28286 LIBS=$ac_check_lib_save_LIBS
28288 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
28289 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
28290 if test $ac_cv_lib_k5crypto_main = yes; then
28291 krb5crypto=k5crypto
28297 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
28298 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
28299 if test "${ac_cv_lib_krb5_main+set}" = set; then
28300 echo $ECHO_N "(cached) $ECHO_C" >&6
28302 ac_check_lib_save_LIBS=$LIBS
28303 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
28304 cat >conftest.$ac_ext <<_ACEOF
28307 cat confdefs.h >>conftest.$ac_ext
28308 cat >>conftest.$ac_ext <<_ACEOF
28309 /* end confdefs.h. */
28320 rm -f conftest.$ac_objext conftest$ac_exeext
28321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28322 (eval $ac_link) 2>conftest.er1
28324 grep -v '^ *+' conftest.er1 >conftest.err
28326 cat conftest.err >&5
28327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28328 (exit $ac_status); } &&
28329 { ac_try='test -z "$ac_c_werror_flag"
28330 || test ! -s conftest.err'
28331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28332 (eval $ac_try) 2>&5
28334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28335 (exit $ac_status); }; } &&
28336 { ac_try='test -s conftest$ac_exeext'
28337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28338 (eval $ac_try) 2>&5
28340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28341 (exit $ac_status); }; }; then
28342 ac_cv_lib_krb5_main=yes
28344 echo "$as_me: failed program was:" >&5
28345 sed 's/^/| /' conftest.$ac_ext >&5
28347 ac_cv_lib_krb5_main=no
28349 rm -f conftest.err conftest.$ac_objext \
28350 conftest$ac_exeext conftest.$ac_ext
28351 LIBS=$ac_check_lib_save_LIBS
28353 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
28354 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
28355 if test $ac_cv_lib_krb5_main = yes; then
28357 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
28363 elif test $krb5_impl = heimdal; then
28364 echo "$as_me:$LINENO: checking for main in -ldes" >&5
28365 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
28366 if test "${ac_cv_lib_des_main+set}" = set; then
28367 echo $ECHO_N "(cached) $ECHO_C" >&6
28369 ac_check_lib_save_LIBS=$LIBS
28371 cat >conftest.$ac_ext <<_ACEOF
28374 cat confdefs.h >>conftest.$ac_ext
28375 cat >>conftest.$ac_ext <<_ACEOF
28376 /* end confdefs.h. */
28387 rm -f conftest.$ac_objext conftest$ac_exeext
28388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28389 (eval $ac_link) 2>conftest.er1
28391 grep -v '^ *+' conftest.er1 >conftest.err
28393 cat conftest.err >&5
28394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28395 (exit $ac_status); } &&
28396 { ac_try='test -z "$ac_c_werror_flag"
28397 || test ! -s conftest.err'
28398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28399 (eval $ac_try) 2>&5
28401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28402 (exit $ac_status); }; } &&
28403 { ac_try='test -s conftest$ac_exeext'
28404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28405 (eval $ac_try) 2>&5
28407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28408 (exit $ac_status); }; }; then
28409 ac_cv_lib_des_main=yes
28411 echo "$as_me: failed program was:" >&5
28412 sed 's/^/| /' conftest.$ac_ext >&5
28414 ac_cv_lib_des_main=no
28416 rm -f conftest.err conftest.$ac_objext \
28417 conftest$ac_exeext conftest.$ac_ext
28418 LIBS=$ac_check_lib_save_LIBS
28420 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
28421 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
28422 if test $ac_cv_lib_des_main = yes; then
28429 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
28430 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
28431 if test "${ac_cv_lib_krb5_main+set}" = set; then
28432 echo $ECHO_N "(cached) $ECHO_C" >&6
28434 ac_check_lib_save_LIBS=$LIBS
28435 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
28436 cat >conftest.$ac_ext <<_ACEOF
28439 cat confdefs.h >>conftest.$ac_ext
28440 cat >>conftest.$ac_ext <<_ACEOF
28441 /* end confdefs.h. */
28452 rm -f conftest.$ac_objext conftest$ac_exeext
28453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28454 (eval $ac_link) 2>conftest.er1
28456 grep -v '^ *+' conftest.er1 >conftest.err
28458 cat conftest.err >&5
28459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28460 (exit $ac_status); } &&
28461 { ac_try='test -z "$ac_c_werror_flag"
28462 || test ! -s conftest.err'
28463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28464 (eval $ac_try) 2>&5
28466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28467 (exit $ac_status); }; } &&
28468 { ac_try='test -s conftest$ac_exeext'
28469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28470 (eval $ac_try) 2>&5
28472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28473 (exit $ac_status); }; }; then
28474 ac_cv_lib_krb5_main=yes
28476 echo "$as_me: failed program was:" >&5
28477 sed 's/^/| /' conftest.$ac_ext >&5
28479 ac_cv_lib_krb5_main=no
28481 rm -f conftest.err conftest.$ac_objext \
28482 conftest$ac_exeext conftest.$ac_ext
28483 LIBS=$ac_check_lib_save_LIBS
28485 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
28486 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
28487 if test $ac_cv_lib_krb5_main = yes; then
28489 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
28496 cat >>confdefs.h <<\_ACEOF
28497 #define HAVE_HEIMDAL_KERBEROS 1
28503 { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
28504 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
28507 if test $have_krb5 = yes ; then
28511 cat >>confdefs.h <<\_ACEOF
28512 #define HAVE_KRB5 1
28516 if test $ol_with_kerberos = k5only ; then
28517 ol_with_kerberos=found
28520 elif test $ol_with_kerberos != auto ; then
28521 { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
28522 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
28523 { (exit 1); exit 1; }; }
28529 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
28530 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
28534 for ac_header in kerberosIV/krb.h kerberosIV/des.h
28536 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28538 echo "$as_me:$LINENO: checking for $ac_header" >&5
28539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28540 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28541 echo $ECHO_N "(cached) $ECHO_C" >&6
28543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28544 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28546 # Is the header compilable?
28547 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28548 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28549 cat >conftest.$ac_ext <<_ACEOF
28552 cat confdefs.h >>conftest.$ac_ext
28553 cat >>conftest.$ac_ext <<_ACEOF
28554 /* end confdefs.h. */
28555 $ac_includes_default
28556 #include <$ac_header>
28558 rm -f conftest.$ac_objext
28559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28560 (eval $ac_compile) 2>conftest.er1
28562 grep -v '^ *+' conftest.er1 >conftest.err
28564 cat conftest.err >&5
28565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28566 (exit $ac_status); } &&
28567 { ac_try='test -z "$ac_c_werror_flag"
28568 || test ! -s conftest.err'
28569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28570 (eval $ac_try) 2>&5
28572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28573 (exit $ac_status); }; } &&
28574 { ac_try='test -s conftest.$ac_objext'
28575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28576 (eval $ac_try) 2>&5
28578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28579 (exit $ac_status); }; }; then
28580 ac_header_compiler=yes
28582 echo "$as_me: failed program was:" >&5
28583 sed 's/^/| /' conftest.$ac_ext >&5
28585 ac_header_compiler=no
28587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28588 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28589 echo "${ECHO_T}$ac_header_compiler" >&6
28591 # Is the header present?
28592 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28593 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28594 cat >conftest.$ac_ext <<_ACEOF
28597 cat confdefs.h >>conftest.$ac_ext
28598 cat >>conftest.$ac_ext <<_ACEOF
28599 /* end confdefs.h. */
28600 #include <$ac_header>
28602 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28603 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28605 grep -v '^ *+' conftest.er1 >conftest.err
28607 cat conftest.err >&5
28608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28609 (exit $ac_status); } >/dev/null; then
28610 if test -s conftest.err; then
28611 ac_cpp_err=$ac_c_preproc_warn_flag
28612 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28619 if test -z "$ac_cpp_err"; then
28620 ac_header_preproc=yes
28622 echo "$as_me: failed program was:" >&5
28623 sed 's/^/| /' conftest.$ac_ext >&5
28625 ac_header_preproc=no
28627 rm -f conftest.err conftest.$ac_ext
28628 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28629 echo "${ECHO_T}$ac_header_preproc" >&6
28631 # So? What about this header?
28632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28634 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28635 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28636 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28637 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28638 ac_header_preproc=yes
28641 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28642 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28643 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28644 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28645 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28646 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28647 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28648 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28649 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28650 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28651 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28652 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28655 ## ------------------------------------------ ##
28656 ## Report this to the AC_PACKAGE_NAME lists. ##
28657 ## ------------------------------------------ ##
28660 sed "s/^/$as_me: WARNING: /" >&2
28663 echo "$as_me:$LINENO: checking for $ac_header" >&5
28664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28665 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28666 echo $ECHO_N "(cached) $ECHO_C" >&6
28668 eval "$as_ac_Header=\$ac_header_preproc"
28670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28671 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28674 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28675 cat >>confdefs.h <<_ACEOF
28676 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28684 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
28685 if test $krb5_impl = mit; then
28686 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
28687 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
28688 if test "${ac_cv_lib_krb4_main+set}" = set; then
28689 echo $ECHO_N "(cached) $ECHO_C" >&6
28691 ac_check_lib_save_LIBS=$LIBS
28692 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
28693 cat >conftest.$ac_ext <<_ACEOF
28696 cat confdefs.h >>conftest.$ac_ext
28697 cat >>conftest.$ac_ext <<_ACEOF
28698 /* end confdefs.h. */
28709 rm -f conftest.$ac_objext conftest$ac_exeext
28710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28711 (eval $ac_link) 2>conftest.er1
28713 grep -v '^ *+' conftest.er1 >conftest.err
28715 cat conftest.err >&5
28716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28717 (exit $ac_status); } &&
28718 { ac_try='test -z "$ac_c_werror_flag"
28719 || test ! -s conftest.err'
28720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28721 (eval $ac_try) 2>&5
28723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28724 (exit $ac_status); }; } &&
28725 { ac_try='test -s conftest$ac_exeext'
28726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28727 (eval $ac_try) 2>&5
28729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28730 (exit $ac_status); }; }; then
28731 ac_cv_lib_krb4_main=yes
28733 echo "$as_me: failed program was:" >&5
28734 sed 's/^/| /' conftest.$ac_ext >&5
28736 ac_cv_lib_krb4_main=no
28738 rm -f conftest.err conftest.$ac_objext \
28739 conftest$ac_exeext conftest.$ac_ext
28740 LIBS=$ac_check_lib_save_LIBS
28742 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
28743 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
28744 if test $ac_cv_lib_krb4_main = yes; then
28746 KRB4_LIBS="-lkrb4 -ldes425"
28752 elif test $krb5_impl = heimdal; then
28753 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
28754 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
28755 if test "${ac_cv_lib_krb4_main+set}" = set; then
28756 echo $ECHO_N "(cached) $ECHO_C" >&6
28758 ac_check_lib_save_LIBS=$LIBS
28759 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
28760 cat >conftest.$ac_ext <<_ACEOF
28763 cat confdefs.h >>conftest.$ac_ext
28764 cat >>conftest.$ac_ext <<_ACEOF
28765 /* end confdefs.h. */
28776 rm -f conftest.$ac_objext conftest$ac_exeext
28777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28778 (eval $ac_link) 2>conftest.er1
28780 grep -v '^ *+' conftest.er1 >conftest.err
28782 cat conftest.err >&5
28783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28784 (exit $ac_status); } &&
28785 { ac_try='test -z "$ac_c_werror_flag"
28786 || test ! -s conftest.err'
28787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28788 (eval $ac_try) 2>&5
28790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28791 (exit $ac_status); }; } &&
28792 { ac_try='test -s conftest$ac_exeext'
28793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28794 (eval $ac_try) 2>&5
28796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28797 (exit $ac_status); }; }; then
28798 ac_cv_lib_krb4_main=yes
28800 echo "$as_me: failed program was:" >&5
28801 sed 's/^/| /' conftest.$ac_ext >&5
28803 ac_cv_lib_krb4_main=no
28805 rm -f conftest.err conftest.$ac_objext \
28806 conftest$ac_exeext conftest.$ac_ext
28807 LIBS=$ac_check_lib_save_LIBS
28809 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
28810 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
28811 if test $ac_cv_lib_krb4_main = yes; then
28821 { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
28822 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
28825 if test $have_k425 = yes ; then
28826 ol_with_kerberos=found
28830 cat >>confdefs.h <<\_ACEOF
28831 #define HAVE_KRB425 1
28835 cat >>confdefs.h <<\_ACEOF
28836 #define HAVE_KRB4 1
28840 echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
28841 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
28842 if test "${ol_cv_var_des_debug+set}" = set; then
28843 echo $ECHO_N "(cached) $ECHO_C" >&6
28847 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
28848 cat >conftest.$ac_ext <<_ACEOF
28851 cat confdefs.h >>conftest.$ac_ext
28852 cat >>conftest.$ac_ext <<_ACEOF
28853 /* end confdefs.h. */
28855 #include <kerberosIV/krb.h>
28856 #include <kerberosIV/des.h>
28857 extern int des_debug;
28869 rm -f conftest.$ac_objext conftest$ac_exeext
28870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28871 (eval $ac_link) 2>conftest.er1
28873 grep -v '^ *+' conftest.er1 >conftest.err
28875 cat conftest.err >&5
28876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28877 (exit $ac_status); } &&
28878 { ac_try='test -z "$ac_c_werror_flag"
28879 || test ! -s conftest.err'
28880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28881 (eval $ac_try) 2>&5
28883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28884 (exit $ac_status); }; } &&
28885 { ac_try='test -s conftest$ac_exeext'
28886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28887 (eval $ac_try) 2>&5
28889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28890 (exit $ac_status); }; }; then
28891 ol_cv_var_des_debug=yes
28893 echo "$as_me: failed program was:" >&5
28894 sed 's/^/| /' conftest.$ac_ext >&5
28896 ol_cv_var_des_debug=no
28898 rm -f conftest.err conftest.$ac_objext \
28899 conftest$ac_exeext conftest.$ac_ext
28903 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
28904 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
28906 if test $ol_cv_var_des_debug = yes ; then
28908 cat >>confdefs.h <<\_ACEOF
28909 #define HAVE_DES_DEBUG 1
28919 if test $ol_link_krb5 = yes ; then
28920 ol_with_kerberos=found
28923 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
28924 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
28929 for ac_header in krb.h des.h krb-archaeology.h
28931 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28933 echo "$as_me:$LINENO: checking for $ac_header" >&5
28934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28935 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28936 echo $ECHO_N "(cached) $ECHO_C" >&6
28938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28939 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28941 # Is the header compilable?
28942 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28943 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28944 cat >conftest.$ac_ext <<_ACEOF
28947 cat confdefs.h >>conftest.$ac_ext
28948 cat >>conftest.$ac_ext <<_ACEOF
28949 /* end confdefs.h. */
28950 $ac_includes_default
28951 #include <$ac_header>
28953 rm -f conftest.$ac_objext
28954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28955 (eval $ac_compile) 2>conftest.er1
28957 grep -v '^ *+' conftest.er1 >conftest.err
28959 cat conftest.err >&5
28960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28961 (exit $ac_status); } &&
28962 { ac_try='test -z "$ac_c_werror_flag"
28963 || test ! -s conftest.err'
28964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28965 (eval $ac_try) 2>&5
28967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28968 (exit $ac_status); }; } &&
28969 { ac_try='test -s conftest.$ac_objext'
28970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28971 (eval $ac_try) 2>&5
28973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28974 (exit $ac_status); }; }; then
28975 ac_header_compiler=yes
28977 echo "$as_me: failed program was:" >&5
28978 sed 's/^/| /' conftest.$ac_ext >&5
28980 ac_header_compiler=no
28982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28983 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28984 echo "${ECHO_T}$ac_header_compiler" >&6
28986 # Is the header present?
28987 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28988 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28989 cat >conftest.$ac_ext <<_ACEOF
28992 cat confdefs.h >>conftest.$ac_ext
28993 cat >>conftest.$ac_ext <<_ACEOF
28994 /* end confdefs.h. */
28995 #include <$ac_header>
28997 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28998 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29000 grep -v '^ *+' conftest.er1 >conftest.err
29002 cat conftest.err >&5
29003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29004 (exit $ac_status); } >/dev/null; then
29005 if test -s conftest.err; then
29006 ac_cpp_err=$ac_c_preproc_warn_flag
29007 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29014 if test -z "$ac_cpp_err"; then
29015 ac_header_preproc=yes
29017 echo "$as_me: failed program was:" >&5
29018 sed 's/^/| /' conftest.$ac_ext >&5
29020 ac_header_preproc=no
29022 rm -f conftest.err conftest.$ac_ext
29023 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29024 echo "${ECHO_T}$ac_header_preproc" >&6
29026 # So? What about this header?
29027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29029 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29030 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29032 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29033 ac_header_preproc=yes
29036 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29037 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29038 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29039 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29040 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29041 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29042 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29043 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29045 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29046 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29047 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29050 ## ------------------------------------------ ##
29051 ## Report this to the AC_PACKAGE_NAME lists. ##
29052 ## ------------------------------------------ ##
29055 sed "s/^/$as_me: WARNING: /" >&2
29058 echo "$as_me:$LINENO: checking for $ac_header" >&5
29059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29061 echo $ECHO_N "(cached) $ECHO_C" >&6
29063 eval "$as_ac_Header=\$ac_header_preproc"
29065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29066 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29070 cat >>confdefs.h <<_ACEOF
29071 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29079 if test $ac_cv_header_krb_h = yes ; then
29080 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
29081 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
29082 if test "${ac_cv_lib_krb_main+set}" = set; then
29083 echo $ECHO_N "(cached) $ECHO_C" >&6
29085 ac_check_lib_save_LIBS=$LIBS
29086 LIBS="-lkrb -ldes $LIBS"
29087 cat >conftest.$ac_ext <<_ACEOF
29090 cat confdefs.h >>conftest.$ac_ext
29091 cat >>conftest.$ac_ext <<_ACEOF
29092 /* end confdefs.h. */
29103 rm -f conftest.$ac_objext conftest$ac_exeext
29104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29105 (eval $ac_link) 2>conftest.er1
29107 grep -v '^ *+' conftest.er1 >conftest.err
29109 cat conftest.err >&5
29110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29111 (exit $ac_status); } &&
29112 { ac_try='test -z "$ac_c_werror_flag"
29113 || test ! -s conftest.err'
29114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29115 (eval $ac_try) 2>&5
29117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29118 (exit $ac_status); }; } &&
29119 { ac_try='test -s conftest$ac_exeext'
29120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29121 (eval $ac_try) 2>&5
29123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29124 (exit $ac_status); }; }; then
29125 ac_cv_lib_krb_main=yes
29127 echo "$as_me: failed program was:" >&5
29128 sed 's/^/| /' conftest.$ac_ext >&5
29130 ac_cv_lib_krb_main=no
29132 rm -f conftest.err conftest.$ac_objext \
29133 conftest$ac_exeext conftest.$ac_ext
29134 LIBS=$ac_check_lib_save_LIBS
29136 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
29137 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
29138 if test $ac_cv_lib_krb_main = yes; then
29145 if test $have_k4 = yes ; then
29146 ol_with_kerberos=found
29150 cat >>confdefs.h <<\_ACEOF
29151 #define HAVE_KRB4 1
29155 KRB4_LIBS="-lkrb -ldes"
29157 if test $ac_cv_header_krb_archaeology_h = yes ; then
29159 cat >>confdefs.h <<\_ACEOF
29160 #define HAVE_KTH_KERBEROS 1
29168 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
29171 elif test $ol_enable_kbind = yes ; then
29172 { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
29173 echo "$as_me: error: Kerberos IV detection failed" >&2;}
29174 { (exit 1); exit 1; }; }
29177 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
29179 cat >>confdefs.h <<\_ACEOF
29180 #define HAVE_KERBEROS 1
29184 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
29185 { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
29186 echo "$as_me: error: Kerberos detection failed" >&2;}
29187 { (exit 1); exit 1; }; }
29192 if test $ol_with_tls != no ; then
29195 for ac_header in openssl/ssl.h ssl.h
29197 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29199 echo "$as_me:$LINENO: checking for $ac_header" >&5
29200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29201 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29202 echo $ECHO_N "(cached) $ECHO_C" >&6
29204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29205 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29207 # Is the header compilable?
29208 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29209 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29210 cat >conftest.$ac_ext <<_ACEOF
29213 cat confdefs.h >>conftest.$ac_ext
29214 cat >>conftest.$ac_ext <<_ACEOF
29215 /* end confdefs.h. */
29216 $ac_includes_default
29217 #include <$ac_header>
29219 rm -f conftest.$ac_objext
29220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29221 (eval $ac_compile) 2>conftest.er1
29223 grep -v '^ *+' conftest.er1 >conftest.err
29225 cat conftest.err >&5
29226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29227 (exit $ac_status); } &&
29228 { ac_try='test -z "$ac_c_werror_flag"
29229 || test ! -s conftest.err'
29230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29231 (eval $ac_try) 2>&5
29233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29234 (exit $ac_status); }; } &&
29235 { ac_try='test -s conftest.$ac_objext'
29236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29237 (eval $ac_try) 2>&5
29239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29240 (exit $ac_status); }; }; then
29241 ac_header_compiler=yes
29243 echo "$as_me: failed program was:" >&5
29244 sed 's/^/| /' conftest.$ac_ext >&5
29246 ac_header_compiler=no
29248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29249 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29250 echo "${ECHO_T}$ac_header_compiler" >&6
29252 # Is the header present?
29253 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29254 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29255 cat >conftest.$ac_ext <<_ACEOF
29258 cat confdefs.h >>conftest.$ac_ext
29259 cat >>conftest.$ac_ext <<_ACEOF
29260 /* end confdefs.h. */
29261 #include <$ac_header>
29263 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29264 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29266 grep -v '^ *+' conftest.er1 >conftest.err
29268 cat conftest.err >&5
29269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29270 (exit $ac_status); } >/dev/null; then
29271 if test -s conftest.err; then
29272 ac_cpp_err=$ac_c_preproc_warn_flag
29273 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29280 if test -z "$ac_cpp_err"; then
29281 ac_header_preproc=yes
29283 echo "$as_me: failed program was:" >&5
29284 sed 's/^/| /' conftest.$ac_ext >&5
29286 ac_header_preproc=no
29288 rm -f conftest.err conftest.$ac_ext
29289 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29290 echo "${ECHO_T}$ac_header_preproc" >&6
29292 # So? What about this header?
29293 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29295 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29296 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29298 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29299 ac_header_preproc=yes
29302 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29303 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29304 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29305 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29306 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29307 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29308 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29309 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29311 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29312 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29313 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29316 ## ------------------------------------------ ##
29317 ## Report this to the AC_PACKAGE_NAME lists. ##
29318 ## ------------------------------------------ ##
29321 sed "s/^/$as_me: WARNING: /" >&2
29324 echo "$as_me:$LINENO: checking for $ac_header" >&5
29325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29327 echo $ECHO_N "(cached) $ECHO_C" >&6
29329 eval "$as_ac_Header=\$ac_header_preproc"
29331 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29332 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29335 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29336 cat >>confdefs.h <<_ACEOF
29337 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29345 if test $ac_cv_header_openssl_ssl_h = yes \
29346 -o $ac_cv_header_ssl_h = yes ; then
29347 echo "$as_me:$LINENO: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
29348 echo $ECHO_N "checking for SSLeay_add_ssl_algorithms in -lssl... $ECHO_C" >&6
29349 if test "${ac_cv_lib_ssl_SSLeay_add_ssl_algorithms+set}" = set; then
29350 echo $ECHO_N "(cached) $ECHO_C" >&6
29352 ac_check_lib_save_LIBS=$LIBS
29353 LIBS="-lssl -lcrypto $LIBS"
29354 cat >conftest.$ac_ext <<_ACEOF
29357 cat confdefs.h >>conftest.$ac_ext
29358 cat >>conftest.$ac_ext <<_ACEOF
29359 /* end confdefs.h. */
29361 /* Override any gcc2 internal prototype to avoid an error. */
29365 /* We use char because int might match the return type of a gcc2
29366 builtin and then its argument prototype would still apply. */
29367 char SSLeay_add_ssl_algorithms ();
29371 SSLeay_add_ssl_algorithms ();
29376 rm -f conftest.$ac_objext conftest$ac_exeext
29377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29378 (eval $ac_link) 2>conftest.er1
29380 grep -v '^ *+' conftest.er1 >conftest.err
29382 cat conftest.err >&5
29383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29384 (exit $ac_status); } &&
29385 { ac_try='test -z "$ac_c_werror_flag"
29386 || test ! -s conftest.err'
29387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29388 (eval $ac_try) 2>&5
29390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29391 (exit $ac_status); }; } &&
29392 { ac_try='test -s conftest$ac_exeext'
29393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29394 (eval $ac_try) 2>&5
29396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29397 (exit $ac_status); }; }; then
29398 ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=yes
29400 echo "$as_me: failed program was:" >&5
29401 sed 's/^/| /' conftest.$ac_ext >&5
29403 ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=no
29405 rm -f conftest.err conftest.$ac_objext \
29406 conftest$ac_exeext conftest.$ac_ext
29407 LIBS=$ac_check_lib_save_LIBS
29409 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&5
29410 echo "${ECHO_T}$ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&6
29411 if test $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms = yes; then
29419 if test $have_ssleay = no ; then
29420 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
29421 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
29422 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
29423 echo $ECHO_N "(cached) $ECHO_C" >&6
29425 ac_check_lib_save_LIBS=$LIBS
29426 LIBS="-lssl -lcrypto $LIBS"
29427 cat >conftest.$ac_ext <<_ACEOF
29430 cat confdefs.h >>conftest.$ac_ext
29431 cat >>conftest.$ac_ext <<_ACEOF
29432 /* end confdefs.h. */
29434 /* Override any gcc2 internal prototype to avoid an error. */
29438 /* We use char because int might match the return type of a gcc2
29439 builtin and then its argument prototype would still apply. */
29440 char SSL_library_init ();
29444 SSL_library_init ();
29449 rm -f conftest.$ac_objext conftest$ac_exeext
29450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29451 (eval $ac_link) 2>conftest.er1
29453 grep -v '^ *+' conftest.er1 >conftest.err
29455 cat conftest.err >&5
29456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29457 (exit $ac_status); } &&
29458 { ac_try='test -z "$ac_c_werror_flag"
29459 || test ! -s conftest.err'
29460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29461 (eval $ac_try) 2>&5
29463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29464 (exit $ac_status); }; } &&
29465 { ac_try='test -s conftest$ac_exeext'
29466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29467 (eval $ac_try) 2>&5
29469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29470 (exit $ac_status); }; }; then
29471 ac_cv_lib_ssl_SSL_library_init=yes
29473 echo "$as_me: failed program was:" >&5
29474 sed 's/^/| /' conftest.$ac_ext >&5
29476 ac_cv_lib_ssl_SSL_library_init=no
29478 rm -f conftest.err conftest.$ac_objext \
29479 conftest$ac_exeext conftest.$ac_ext
29480 LIBS=$ac_check_lib_save_LIBS
29482 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
29483 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
29484 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
29493 if test $have_ssleay = no ; then
29494 echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
29495 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
29496 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
29497 echo $ECHO_N "(cached) $ECHO_C" >&6
29499 ac_check_lib_save_LIBS=$LIBS
29500 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
29501 cat >conftest.$ac_ext <<_ACEOF
29504 cat confdefs.h >>conftest.$ac_ext
29505 cat >>conftest.$ac_ext <<_ACEOF
29506 /* end confdefs.h. */
29508 /* Override any gcc2 internal prototype to avoid an error. */
29512 /* We use char because int might match the return type of a gcc2
29513 builtin and then its argument prototype would still apply. */
29514 char ssl3_accept ();
29523 rm -f conftest.$ac_objext conftest$ac_exeext
29524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29525 (eval $ac_link) 2>conftest.er1
29527 grep -v '^ *+' conftest.er1 >conftest.err
29529 cat conftest.err >&5
29530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29531 (exit $ac_status); } &&
29532 { ac_try='test -z "$ac_c_werror_flag"
29533 || test ! -s conftest.err'
29534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29535 (eval $ac_try) 2>&5
29537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29538 (exit $ac_status); }; } &&
29539 { ac_try='test -s conftest$ac_exeext'
29540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29541 (eval $ac_try) 2>&5
29543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29544 (exit $ac_status); }; }; then
29545 ac_cv_lib_ssl_ssl3_accept=yes
29547 echo "$as_me: failed program was:" >&5
29548 sed 's/^/| /' conftest.$ac_ext >&5
29550 ac_cv_lib_ssl_ssl3_accept=no
29552 rm -f conftest.err conftest.$ac_objext \
29553 conftest$ac_exeext conftest.$ac_ext
29554 LIBS=$ac_check_lib_save_LIBS
29556 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
29557 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
29558 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
29567 if test $have_ssleay = yes ; then
29572 cat >>confdefs.h <<\_ACEOF
29573 #define HAVE_SSLEAY 1
29577 if test $need_rsaref = yes; then
29579 cat >>confdefs.h <<\_ACEOF
29580 #define HAVE_RSAREF 1
29584 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
29586 TLS_LIBS="-lssl -lcrypto"
29589 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
29590 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
29591 if test "${ol_cv_ssl_crl_compat+set}" = set; then
29592 echo $ECHO_N "(cached) $ECHO_C" >&6
29595 cat >conftest.$ac_ext <<_ACEOF
29598 cat confdefs.h >>conftest.$ac_ext
29599 cat >>conftest.$ac_ext <<_ACEOF
29600 /* end confdefs.h. */
29602 #ifdef HAVE_OPENSSL_SSL_H
29603 #include <openssl/ssl.h>
29608 /* Require 0.9.7d+ */
29609 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
29610 char *__ssl_compat = "0.9.7d";
29614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29615 $EGREP "__ssl_compat" >/dev/null 2>&1; then
29616 ol_cv_ssl_crl_compat=yes
29618 ol_cv_ssl_crl_compat=no
29623 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
29624 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
29626 if test $ol_cv_ssl_crl_compat = no ; then
29630 cat >>confdefs.h <<\_ACEOF
29631 #define HAVE_OPENSSL_CRL 1
29638 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
29639 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
29643 if test $ol_link_tls = yes ; then
29645 cat >>confdefs.h <<\_ACEOF
29651 elif test $ol_with_tls = auto ; then
29652 { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
29653 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
29654 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
29655 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
29657 elif test $ol_with_tls != no ; then
29658 { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
29659 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
29660 { (exit 1); exit 1; }; }
29663 if test $ol_enable_lmpasswd != no; then
29664 if test $ol_link_tls != yes ; then
29665 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
29666 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
29667 { (exit 1); exit 1; }; }
29671 cat >>confdefs.h <<\_ACEOF
29672 #define SLAPD_LMHASH 1
29679 if test $ol_with_threads = auto -o $ol_with_threads = yes \
29680 -o $ol_with_threads = nt ; then
29683 echo "$as_me:$LINENO: checking for _beginthread" >&5
29684 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
29685 if test "${ac_cv_func__beginthread+set}" = set; then
29686 echo $ECHO_N "(cached) $ECHO_C" >&6
29688 cat >conftest.$ac_ext <<_ACEOF
29691 cat confdefs.h >>conftest.$ac_ext
29692 cat >>conftest.$ac_ext <<_ACEOF
29693 /* end confdefs.h. */
29694 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
29695 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29696 #define _beginthread innocuous__beginthread
29698 /* System header to define __stub macros and hopefully few prototypes,
29699 which can conflict with char _beginthread (); below.
29700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29701 <limits.h> exists even on freestanding compilers. */
29704 # include <limits.h>
29706 # include <assert.h>
29709 #undef _beginthread
29711 /* Override any gcc2 internal prototype to avoid an error. */
29716 /* We use char because int might match the return type of a gcc2
29717 builtin and then its argument prototype would still apply. */
29718 char _beginthread ();
29719 /* The GNU C library defines this for functions which it implements
29720 to always fail with ENOSYS. Some functions are actually named
29721 something starting with __ and the normal name is an alias. */
29722 #if defined (__stub__beginthread) || defined (__stub____beginthread)
29725 char (*f) () = _beginthread;
29734 return f != _beginthread;
29739 rm -f conftest.$ac_objext conftest$ac_exeext
29740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29741 (eval $ac_link) 2>conftest.er1
29743 grep -v '^ *+' conftest.er1 >conftest.err
29745 cat conftest.err >&5
29746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29747 (exit $ac_status); } &&
29748 { ac_try='test -z "$ac_c_werror_flag"
29749 || test ! -s conftest.err'
29750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29751 (eval $ac_try) 2>&5
29753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29754 (exit $ac_status); }; } &&
29755 { ac_try='test -s conftest$ac_exeext'
29756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29757 (eval $ac_try) 2>&5
29759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29760 (exit $ac_status); }; }; then
29761 ac_cv_func__beginthread=yes
29763 echo "$as_me: failed program was:" >&5
29764 sed 's/^/| /' conftest.$ac_ext >&5
29766 ac_cv_func__beginthread=no
29768 rm -f conftest.err conftest.$ac_objext \
29769 conftest$ac_exeext conftest.$ac_ext
29771 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
29772 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
29775 if test $ac_cv_func__beginthread = yes ; then
29777 cat >>confdefs.h <<\_ACEOF
29778 #define HAVE_NT_THREADS 1
29781 ol_cv_nt_threads=yes
29785 if test "$ol_cv_nt_threads" = yes ; then
29787 ol_with_threads=found
29788 ol_with_yielding_select=yes
29791 cat >>confdefs.h <<\_ACEOF
29792 #define HAVE_NT_SERVICE_MANAGER 1
29796 cat >>confdefs.h <<\_ACEOF
29797 #define HAVE_NT_EVENT_LOG 1
29802 if test $ol_with_threads = nt ; then
29803 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
29804 echo "$as_me: error: could not locate NT Threads" >&2;}
29805 { (exit 1); exit 1; }; }
29809 if test $ol_with_threads = auto -o $ol_with_threads = yes \
29810 -o $ol_with_threads = posix ; then
29813 for ac_header in pthread.h
29815 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29817 echo "$as_me:$LINENO: checking for $ac_header" >&5
29818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29819 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29820 echo $ECHO_N "(cached) $ECHO_C" >&6
29822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29823 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29825 # Is the header compilable?
29826 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29827 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29828 cat >conftest.$ac_ext <<_ACEOF
29831 cat confdefs.h >>conftest.$ac_ext
29832 cat >>conftest.$ac_ext <<_ACEOF
29833 /* end confdefs.h. */
29834 $ac_includes_default
29835 #include <$ac_header>
29837 rm -f conftest.$ac_objext
29838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29839 (eval $ac_compile) 2>conftest.er1
29841 grep -v '^ *+' conftest.er1 >conftest.err
29843 cat conftest.err >&5
29844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29845 (exit $ac_status); } &&
29846 { ac_try='test -z "$ac_c_werror_flag"
29847 || test ! -s conftest.err'
29848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29849 (eval $ac_try) 2>&5
29851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29852 (exit $ac_status); }; } &&
29853 { ac_try='test -s conftest.$ac_objext'
29854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29855 (eval $ac_try) 2>&5
29857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29858 (exit $ac_status); }; }; then
29859 ac_header_compiler=yes
29861 echo "$as_me: failed program was:" >&5
29862 sed 's/^/| /' conftest.$ac_ext >&5
29864 ac_header_compiler=no
29866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29867 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29868 echo "${ECHO_T}$ac_header_compiler" >&6
29870 # Is the header present?
29871 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29872 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29873 cat >conftest.$ac_ext <<_ACEOF
29876 cat confdefs.h >>conftest.$ac_ext
29877 cat >>conftest.$ac_ext <<_ACEOF
29878 /* end confdefs.h. */
29879 #include <$ac_header>
29881 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29882 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29884 grep -v '^ *+' conftest.er1 >conftest.err
29886 cat conftest.err >&5
29887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29888 (exit $ac_status); } >/dev/null; then
29889 if test -s conftest.err; then
29890 ac_cpp_err=$ac_c_preproc_warn_flag
29891 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29898 if test -z "$ac_cpp_err"; then
29899 ac_header_preproc=yes
29901 echo "$as_me: failed program was:" >&5
29902 sed 's/^/| /' conftest.$ac_ext >&5
29904 ac_header_preproc=no
29906 rm -f conftest.err conftest.$ac_ext
29907 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29908 echo "${ECHO_T}$ac_header_preproc" >&6
29910 # So? What about this header?
29911 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29913 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29914 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29916 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29917 ac_header_preproc=yes
29920 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29921 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29922 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29923 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29924 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29925 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29926 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29927 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29929 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29930 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29931 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29934 ## ------------------------------------------ ##
29935 ## Report this to the AC_PACKAGE_NAME lists. ##
29936 ## ------------------------------------------ ##
29939 sed "s/^/$as_me: WARNING: /" >&2
29942 echo "$as_me:$LINENO: checking for $ac_header" >&5
29943 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29944 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29945 echo $ECHO_N "(cached) $ECHO_C" >&6
29947 eval "$as_ac_Header=\$ac_header_preproc"
29949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29950 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29953 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29954 cat >>confdefs.h <<_ACEOF
29955 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29963 if test $ac_cv_header_pthread_h = yes ; then
29964 echo "$as_me:$LINENO: checking POSIX thread version" >&5
29965 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
29966 if test "${ol_cv_pthread_version+set}" = set; then
29967 echo $ECHO_N "(cached) $ECHO_C" >&6
29970 cat >conftest.$ac_ext <<_ACEOF
29973 cat confdefs.h >>conftest.$ac_ext
29974 cat >>conftest.$ac_ext <<_ACEOF
29975 /* end confdefs.h. */
29977 # include <pthread.h>
29983 int i = PTHREAD_CREATE_JOINABLE;
29989 rm -f conftest.$ac_objext
29990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29991 (eval $ac_compile) 2>conftest.er1
29993 grep -v '^ *+' conftest.er1 >conftest.err
29995 cat conftest.err >&5
29996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29997 (exit $ac_status); } &&
29998 { ac_try='test -z "$ac_c_werror_flag"
29999 || test ! -s conftest.err'
30000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30001 (eval $ac_try) 2>&5
30003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30004 (exit $ac_status); }; } &&
30005 { ac_try='test -s conftest.$ac_objext'
30006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30007 (eval $ac_try) 2>&5
30009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30010 (exit $ac_status); }; }; then
30012 cat >conftest.$ac_ext <<_ACEOF
30015 cat confdefs.h >>conftest.$ac_ext
30016 cat >>conftest.$ac_ext <<_ACEOF
30017 /* end confdefs.h. */
30018 #include <pthread.h>
30021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30022 $EGREP "pthread_detach" >/dev/null 2>&1; then
30023 ol_cv_pthread_version=10
30025 ol_cv_pthread_version=8
30030 echo "$as_me: failed program was:" >&5
30031 sed 's/^/| /' conftest.$ac_ext >&5
30034 cat >conftest.$ac_ext <<_ACEOF
30037 cat confdefs.h >>conftest.$ac_ext
30038 cat >>conftest.$ac_ext <<_ACEOF
30039 /* end confdefs.h. */
30041 # include <pthread.h>
30042 # ifdef PTHREAD_CREATE_UNDETACHED
30047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30048 $EGREP "draft7" >/dev/null 2>&1; then
30049 ol_cv_pthread_version=7
30052 cat >conftest.$ac_ext <<_ACEOF
30055 cat confdefs.h >>conftest.$ac_ext
30056 cat >>conftest.$ac_ext <<_ACEOF
30057 /* end confdefs.h. */
30058 #include <pthread.h>
30061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30062 $EGREP "pthread_attr_init" >/dev/null 2>&1; then
30063 ol_cv_pthread_version=6
30066 cat >conftest.$ac_ext <<_ACEOF
30069 cat confdefs.h >>conftest.$ac_ext
30070 cat >>conftest.$ac_ext <<_ACEOF
30071 /* end confdefs.h. */
30073 # include <pthread.h>
30074 #ifdef PTHREAD_MUTEX_INITIALIZER
30079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30080 $EGREP "draft5" >/dev/null 2>&1; then
30081 ol_cv_pthread_version=5
30083 ol_cv_pthread_version=4
30094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30097 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
30098 echo "${ECHO_T}$ol_cv_pthread_version" >&6
30101 if test $ol_cv_pthread_version != 0 ; then
30103 cat >>confdefs.h <<_ACEOF
30104 #define HAVE_PTHREADS $ol_cv_pthread_version
30108 { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
30109 echo "$as_me: error: unknown pthread version" >&2;}
30110 { (exit 1); exit 1; }; }
30113 # consider threads found
30114 ol_with_threads=found
30117 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
30118 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
30119 if test "${ol_cv_header_linux_threads+set}" = set; then
30120 echo $ECHO_N "(cached) $ECHO_C" >&6
30122 cat >conftest.$ac_ext <<_ACEOF
30125 cat confdefs.h >>conftest.$ac_ext
30126 cat >>conftest.$ac_ext <<_ACEOF
30127 /* end confdefs.h. */
30128 #include <pthread.h>
30130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30131 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
30132 ol_cv_header_linux_threads=yes
30134 ol_cv_header_linux_threads=no
30140 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
30141 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
30142 if test $ol_cv_header_linux_threads = yes; then
30144 cat >>confdefs.h <<\_ACEOF
30145 #define HAVE_LINUX_THREADS 1
30151 echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
30152 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
30153 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
30154 echo $ECHO_N "(cached) $ECHO_C" >&6
30156 cat >conftest.$ac_ext <<_ACEOF
30159 cat confdefs.h >>conftest.$ac_ext
30160 cat >>conftest.$ac_ext <<_ACEOF
30161 /* end confdefs.h. */
30162 #include <pthread.h>
30163 #ifdef _POSIX_THREAD_IS_GNU_PTH
30168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30169 $EGREP "__gnu_pth__" >/dev/null 2>&1; then
30170 ol_cv_header_gnu_pth_pthread_h=yes
30172 ol_cv_header_gnu_pth_pthread_h=no
30178 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
30179 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
30182 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
30184 for ac_header in sched.h
30186 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30187 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30188 echo "$as_me:$LINENO: checking for $ac_header" >&5
30189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30191 echo $ECHO_N "(cached) $ECHO_C" >&6
30193 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30194 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30196 # Is the header compilable?
30197 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30198 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30199 cat >conftest.$ac_ext <<_ACEOF
30202 cat confdefs.h >>conftest.$ac_ext
30203 cat >>conftest.$ac_ext <<_ACEOF
30204 /* end confdefs.h. */
30205 $ac_includes_default
30206 #include <$ac_header>
30208 rm -f conftest.$ac_objext
30209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30210 (eval $ac_compile) 2>conftest.er1
30212 grep -v '^ *+' conftest.er1 >conftest.err
30214 cat conftest.err >&5
30215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30216 (exit $ac_status); } &&
30217 { ac_try='test -z "$ac_c_werror_flag"
30218 || test ! -s conftest.err'
30219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30220 (eval $ac_try) 2>&5
30222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30223 (exit $ac_status); }; } &&
30224 { ac_try='test -s conftest.$ac_objext'
30225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30226 (eval $ac_try) 2>&5
30228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30229 (exit $ac_status); }; }; then
30230 ac_header_compiler=yes
30232 echo "$as_me: failed program was:" >&5
30233 sed 's/^/| /' conftest.$ac_ext >&5
30235 ac_header_compiler=no
30237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30238 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30239 echo "${ECHO_T}$ac_header_compiler" >&6
30241 # Is the header present?
30242 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30243 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30244 cat >conftest.$ac_ext <<_ACEOF
30247 cat confdefs.h >>conftest.$ac_ext
30248 cat >>conftest.$ac_ext <<_ACEOF
30249 /* end confdefs.h. */
30250 #include <$ac_header>
30252 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30253 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30255 grep -v '^ *+' conftest.er1 >conftest.err
30257 cat conftest.err >&5
30258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30259 (exit $ac_status); } >/dev/null; then
30260 if test -s conftest.err; then
30261 ac_cpp_err=$ac_c_preproc_warn_flag
30262 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30269 if test -z "$ac_cpp_err"; then
30270 ac_header_preproc=yes
30272 echo "$as_me: failed program was:" >&5
30273 sed 's/^/| /' conftest.$ac_ext >&5
30275 ac_header_preproc=no
30277 rm -f conftest.err conftest.$ac_ext
30278 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30279 echo "${ECHO_T}$ac_header_preproc" >&6
30281 # So? What about this header?
30282 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30284 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30285 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30287 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30288 ac_header_preproc=yes
30291 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30292 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30293 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30294 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30295 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30296 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30297 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30298 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30300 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30301 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30302 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30305 ## ------------------------------------------ ##
30306 ## Report this to the AC_PACKAGE_NAME lists. ##
30307 ## ------------------------------------------ ##
30310 sed "s/^/$as_me: WARNING: /" >&2
30313 echo "$as_me:$LINENO: checking for $ac_header" >&5
30314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30316 echo $ECHO_N "(cached) $ECHO_C" >&6
30318 eval "$as_ac_Header=\$ac_header_preproc"
30320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30321 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30324 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30325 cat >>confdefs.h <<_ACEOF
30326 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30336 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
30337 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
30338 if test "${ol_cv_pthread_create+set}" = set; then
30339 echo $ECHO_N "(cached) $ECHO_C" >&6
30342 if test "$cross_compiling" = yes; then
30343 cat >conftest.$ac_ext <<_ACEOF
30346 cat confdefs.h >>conftest.$ac_ext
30347 cat >>conftest.$ac_ext <<_ACEOF
30348 /* end confdefs.h. */
30350 /* pthread test headers */
30351 #include <pthread.h>
30352 #if HAVE_PTHREADS < 7
30356 #define NULL (void*)0
30359 static void *task(p)
30362 return (void *) (p == NULL);
30369 /* pthread test function */
30370 #ifndef PTHREAD_CREATE_DETACHED
30371 #define PTHREAD_CREATE_DETACHED 1
30375 int detach = PTHREAD_CREATE_DETACHED;
30377 #if HAVE_PTHREADS > 4
30378 /* Final pthreads */
30379 pthread_attr_t attr;
30381 status = pthread_attr_init(&attr);
30382 if( status ) return status;
30384 #if HAVE_PTHREADS < 7
30385 status = pthread_attr_setdetachstate(&attr, &detach);
30386 if( status < 0 ) status = errno;
30388 status = pthread_attr_setdetachstate(&attr, detach);
30390 if( status ) return status;
30391 status = pthread_create( &t, &attr, task, NULL );
30392 #if HAVE_PTHREADS < 7
30393 if( status < 0 ) status = errno;
30395 if( status ) return status;
30397 /* Draft 4 pthreads */
30398 status = pthread_create( &t, pthread_attr_default, task, NULL );
30399 if( status ) return errno;
30401 /* give thread a chance to complete */
30402 /* it should remain joinable and hence detachable */
30405 status = pthread_detach( &t );
30406 if( status ) return errno;
30409 #ifdef HAVE_LINUX_THREADS
30410 pthread_kill_other_threads_np();
30419 rm -f conftest.$ac_objext conftest$ac_exeext
30420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30421 (eval $ac_link) 2>conftest.er1
30423 grep -v '^ *+' conftest.er1 >conftest.err
30425 cat conftest.err >&5
30426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30427 (exit $ac_status); } &&
30428 { ac_try='test -z "$ac_c_werror_flag"
30429 || test ! -s conftest.err'
30430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30431 (eval $ac_try) 2>&5
30433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30434 (exit $ac_status); }; } &&
30435 { ac_try='test -s conftest$ac_exeext'
30436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30437 (eval $ac_try) 2>&5
30439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30440 (exit $ac_status); }; }; then
30441 ol_cv_pthread_create=yes
30443 echo "$as_me: failed program was:" >&5
30444 sed 's/^/| /' conftest.$ac_ext >&5
30446 ol_cv_pthread_create=no
30448 rm -f conftest.err conftest.$ac_objext \
30449 conftest$ac_exeext conftest.$ac_ext
30451 cat >conftest.$ac_ext <<_ACEOF
30453 /* pthread test headers */
30454 #include <pthread.h>
30455 #if HAVE_PTHREADS < 7
30459 #define NULL (void*)0
30462 static void *task(p)
30465 return (void *) (p == NULL);
30469 int main(argc, argv)
30474 /* pthread test function */
30475 #ifndef PTHREAD_CREATE_DETACHED
30476 #define PTHREAD_CREATE_DETACHED 1
30480 int detach = PTHREAD_CREATE_DETACHED;
30482 #if HAVE_PTHREADS > 4
30483 /* Final pthreads */
30484 pthread_attr_t attr;
30486 status = pthread_attr_init(&attr);
30487 if( status ) return status;
30489 #if HAVE_PTHREADS < 7
30490 status = pthread_attr_setdetachstate(&attr, &detach);
30491 if( status < 0 ) status = errno;
30493 status = pthread_attr_setdetachstate(&attr, detach);
30495 if( status ) return status;
30496 status = pthread_create( &t, &attr, task, NULL );
30497 #if HAVE_PTHREADS < 7
30498 if( status < 0 ) status = errno;
30500 if( status ) return status;
30502 /* Draft 4 pthreads */
30503 status = pthread_create( &t, pthread_attr_default, task, NULL );
30504 if( status ) return errno;
30506 /* give thread a chance to complete */
30507 /* it should remain joinable and hence detachable */
30510 status = pthread_detach( &t );
30511 if( status ) return errno;
30514 #ifdef HAVE_LINUX_THREADS
30515 pthread_kill_other_threads_np();
30523 rm -f conftest$ac_exeext
30524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30525 (eval $ac_link) 2>&5
30527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30528 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30530 (eval $ac_try) 2>&5
30532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30533 (exit $ac_status); }; }; then
30534 ol_cv_pthread_create=yes
30536 echo "$as_me: program exited with status $ac_status" >&5
30537 echo "$as_me: failed program was:" >&5
30538 sed 's/^/| /' conftest.$ac_ext >&5
30540 ( exit $ac_status )
30541 ol_cv_pthread_create=no
30543 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30546 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
30547 echo "${ECHO_T}$ol_cv_pthread_create" >&6
30549 if test $ol_cv_pthread_create != no ; then
30550 ol_link_threads=posix
30551 ol_link_pthreads=""
30554 # Pthread try link: -kthread (ol_cv_pthread_kthread)
30555 if test "$ol_link_threads" = no ; then
30557 echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
30558 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
30559 if test "${ol_cv_pthread_kthread+set}" = set; then
30560 echo $ECHO_N "(cached) $ECHO_C" >&6
30565 LIBS="-kthread $LIBS"
30567 if test "$cross_compiling" = yes; then
30568 cat >conftest.$ac_ext <<_ACEOF
30571 cat confdefs.h >>conftest.$ac_ext
30572 cat >>conftest.$ac_ext <<_ACEOF
30573 /* end confdefs.h. */
30575 /* pthread test headers */
30576 #include <pthread.h>
30577 #if HAVE_PTHREADS < 7
30581 #define NULL (void*)0
30584 static void *task(p)
30587 return (void *) (p == NULL);
30594 /* pthread test function */
30595 #ifndef PTHREAD_CREATE_DETACHED
30596 #define PTHREAD_CREATE_DETACHED 1
30600 int detach = PTHREAD_CREATE_DETACHED;
30602 #if HAVE_PTHREADS > 4
30603 /* Final pthreads */
30604 pthread_attr_t attr;
30606 status = pthread_attr_init(&attr);
30607 if( status ) return status;
30609 #if HAVE_PTHREADS < 7
30610 status = pthread_attr_setdetachstate(&attr, &detach);
30611 if( status < 0 ) status = errno;
30613 status = pthread_attr_setdetachstate(&attr, detach);
30615 if( status ) return status;
30616 status = pthread_create( &t, &attr, task, NULL );
30617 #if HAVE_PTHREADS < 7
30618 if( status < 0 ) status = errno;
30620 if( status ) return status;
30622 /* Draft 4 pthreads */
30623 status = pthread_create( &t, pthread_attr_default, task, NULL );
30624 if( status ) return errno;
30626 /* give thread a chance to complete */
30627 /* it should remain joinable and hence detachable */
30630 status = pthread_detach( &t );
30631 if( status ) return errno;
30634 #ifdef HAVE_LINUX_THREADS
30635 pthread_kill_other_threads_np();
30644 rm -f conftest.$ac_objext conftest$ac_exeext
30645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30646 (eval $ac_link) 2>conftest.er1
30648 grep -v '^ *+' conftest.er1 >conftest.err
30650 cat conftest.err >&5
30651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30652 (exit $ac_status); } &&
30653 { ac_try='test -z "$ac_c_werror_flag"
30654 || test ! -s conftest.err'
30655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30656 (eval $ac_try) 2>&5
30658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30659 (exit $ac_status); }; } &&
30660 { ac_try='test -s conftest$ac_exeext'
30661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30662 (eval $ac_try) 2>&5
30664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30665 (exit $ac_status); }; }; then
30666 ol_cv_pthread_kthread=yes
30668 echo "$as_me: failed program was:" >&5
30669 sed 's/^/| /' conftest.$ac_ext >&5
30671 ol_cv_pthread_kthread=no
30673 rm -f conftest.err conftest.$ac_objext \
30674 conftest$ac_exeext conftest.$ac_ext
30676 cat >conftest.$ac_ext <<_ACEOF
30678 /* pthread test headers */
30679 #include <pthread.h>
30680 #if HAVE_PTHREADS < 7
30684 #define NULL (void*)0
30687 static void *task(p)
30690 return (void *) (p == NULL);
30694 int main(argc, argv)
30699 /* pthread test function */
30700 #ifndef PTHREAD_CREATE_DETACHED
30701 #define PTHREAD_CREATE_DETACHED 1
30705 int detach = PTHREAD_CREATE_DETACHED;
30707 #if HAVE_PTHREADS > 4
30708 /* Final pthreads */
30709 pthread_attr_t attr;
30711 status = pthread_attr_init(&attr);
30712 if( status ) return status;
30714 #if HAVE_PTHREADS < 7
30715 status = pthread_attr_setdetachstate(&attr, &detach);
30716 if( status < 0 ) status = errno;
30718 status = pthread_attr_setdetachstate(&attr, detach);
30720 if( status ) return status;
30721 status = pthread_create( &t, &attr, task, NULL );
30722 #if HAVE_PTHREADS < 7
30723 if( status < 0 ) status = errno;
30725 if( status ) return status;
30727 /* Draft 4 pthreads */
30728 status = pthread_create( &t, pthread_attr_default, task, NULL );
30729 if( status ) return errno;
30731 /* give thread a chance to complete */
30732 /* it should remain joinable and hence detachable */
30735 status = pthread_detach( &t );
30736 if( status ) return errno;
30739 #ifdef HAVE_LINUX_THREADS
30740 pthread_kill_other_threads_np();
30748 rm -f conftest$ac_exeext
30749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30750 (eval $ac_link) 2>&5
30752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30753 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30755 (eval $ac_try) 2>&5
30757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30758 (exit $ac_status); }; }; then
30759 ol_cv_pthread_kthread=yes
30761 echo "$as_me: program exited with status $ac_status" >&5
30762 echo "$as_me: failed program was:" >&5
30763 sed 's/^/| /' conftest.$ac_ext >&5
30765 ( exit $ac_status )
30766 ol_cv_pthread_kthread=no
30768 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30775 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
30776 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
30778 if test $ol_cv_pthread_kthread = yes ; then
30779 ol_link_pthreads="-kthread"
30780 ol_link_threads=posix
30784 # Pthread try link: -pthread (ol_cv_pthread_pthread)
30785 if test "$ol_link_threads" = no ; then
30787 echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
30788 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
30789 if test "${ol_cv_pthread_pthread+set}" = set; then
30790 echo $ECHO_N "(cached) $ECHO_C" >&6
30795 LIBS="-pthread $LIBS"
30797 if test "$cross_compiling" = yes; then
30798 cat >conftest.$ac_ext <<_ACEOF
30801 cat confdefs.h >>conftest.$ac_ext
30802 cat >>conftest.$ac_ext <<_ACEOF
30803 /* end confdefs.h. */
30805 /* pthread test headers */
30806 #include <pthread.h>
30807 #if HAVE_PTHREADS < 7
30811 #define NULL (void*)0
30814 static void *task(p)
30817 return (void *) (p == NULL);
30824 /* pthread test function */
30825 #ifndef PTHREAD_CREATE_DETACHED
30826 #define PTHREAD_CREATE_DETACHED 1
30830 int detach = PTHREAD_CREATE_DETACHED;
30832 #if HAVE_PTHREADS > 4
30833 /* Final pthreads */
30834 pthread_attr_t attr;
30836 status = pthread_attr_init(&attr);
30837 if( status ) return status;
30839 #if HAVE_PTHREADS < 7
30840 status = pthread_attr_setdetachstate(&attr, &detach);
30841 if( status < 0 ) status = errno;
30843 status = pthread_attr_setdetachstate(&attr, detach);
30845 if( status ) return status;
30846 status = pthread_create( &t, &attr, task, NULL );
30847 #if HAVE_PTHREADS < 7
30848 if( status < 0 ) status = errno;
30850 if( status ) return status;
30852 /* Draft 4 pthreads */
30853 status = pthread_create( &t, pthread_attr_default, task, NULL );
30854 if( status ) return errno;
30856 /* give thread a chance to complete */
30857 /* it should remain joinable and hence detachable */
30860 status = pthread_detach( &t );
30861 if( status ) return errno;
30864 #ifdef HAVE_LINUX_THREADS
30865 pthread_kill_other_threads_np();
30874 rm -f conftest.$ac_objext conftest$ac_exeext
30875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30876 (eval $ac_link) 2>conftest.er1
30878 grep -v '^ *+' conftest.er1 >conftest.err
30880 cat conftest.err >&5
30881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30882 (exit $ac_status); } &&
30883 { ac_try='test -z "$ac_c_werror_flag"
30884 || test ! -s conftest.err'
30885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30886 (eval $ac_try) 2>&5
30888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30889 (exit $ac_status); }; } &&
30890 { ac_try='test -s conftest$ac_exeext'
30891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30892 (eval $ac_try) 2>&5
30894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30895 (exit $ac_status); }; }; then
30896 ol_cv_pthread_pthread=yes
30898 echo "$as_me: failed program was:" >&5
30899 sed 's/^/| /' conftest.$ac_ext >&5
30901 ol_cv_pthread_pthread=no
30903 rm -f conftest.err conftest.$ac_objext \
30904 conftest$ac_exeext conftest.$ac_ext
30906 cat >conftest.$ac_ext <<_ACEOF
30908 /* pthread test headers */
30909 #include <pthread.h>
30910 #if HAVE_PTHREADS < 7
30914 #define NULL (void*)0
30917 static void *task(p)
30920 return (void *) (p == NULL);
30924 int main(argc, argv)
30929 /* pthread test function */
30930 #ifndef PTHREAD_CREATE_DETACHED
30931 #define PTHREAD_CREATE_DETACHED 1
30935 int detach = PTHREAD_CREATE_DETACHED;
30937 #if HAVE_PTHREADS > 4
30938 /* Final pthreads */
30939 pthread_attr_t attr;
30941 status = pthread_attr_init(&attr);
30942 if( status ) return status;
30944 #if HAVE_PTHREADS < 7
30945 status = pthread_attr_setdetachstate(&attr, &detach);
30946 if( status < 0 ) status = errno;
30948 status = pthread_attr_setdetachstate(&attr, detach);
30950 if( status ) return status;
30951 status = pthread_create( &t, &attr, task, NULL );
30952 #if HAVE_PTHREADS < 7
30953 if( status < 0 ) status = errno;
30955 if( status ) return status;
30957 /* Draft 4 pthreads */
30958 status = pthread_create( &t, pthread_attr_default, task, NULL );
30959 if( status ) return errno;
30961 /* give thread a chance to complete */
30962 /* it should remain joinable and hence detachable */
30965 status = pthread_detach( &t );
30966 if( status ) return errno;
30969 #ifdef HAVE_LINUX_THREADS
30970 pthread_kill_other_threads_np();
30978 rm -f conftest$ac_exeext
30979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30980 (eval $ac_link) 2>&5
30982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30983 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30985 (eval $ac_try) 2>&5
30987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30988 (exit $ac_status); }; }; then
30989 ol_cv_pthread_pthread=yes
30991 echo "$as_me: program exited with status $ac_status" >&5
30992 echo "$as_me: failed program was:" >&5
30993 sed 's/^/| /' conftest.$ac_ext >&5
30995 ( exit $ac_status )
30996 ol_cv_pthread_pthread=no
30998 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31005 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
31006 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
31008 if test $ol_cv_pthread_pthread = yes ; then
31009 ol_link_pthreads="-pthread"
31010 ol_link_threads=posix
31014 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
31015 if test "$ol_link_threads" = no ; then
31017 echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
31018 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
31019 if test "${ol_cv_pthread_pthreads+set}" = set; then
31020 echo $ECHO_N "(cached) $ECHO_C" >&6
31025 LIBS="-pthreads $LIBS"
31027 if test "$cross_compiling" = yes; then
31028 cat >conftest.$ac_ext <<_ACEOF
31031 cat confdefs.h >>conftest.$ac_ext
31032 cat >>conftest.$ac_ext <<_ACEOF
31033 /* end confdefs.h. */
31035 /* pthread test headers */
31036 #include <pthread.h>
31037 #if HAVE_PTHREADS < 7
31041 #define NULL (void*)0
31044 static void *task(p)
31047 return (void *) (p == NULL);
31054 /* pthread test function */
31055 #ifndef PTHREAD_CREATE_DETACHED
31056 #define PTHREAD_CREATE_DETACHED 1
31060 int detach = PTHREAD_CREATE_DETACHED;
31062 #if HAVE_PTHREADS > 4
31063 /* Final pthreads */
31064 pthread_attr_t attr;
31066 status = pthread_attr_init(&attr);
31067 if( status ) return status;
31069 #if HAVE_PTHREADS < 7
31070 status = pthread_attr_setdetachstate(&attr, &detach);
31071 if( status < 0 ) status = errno;
31073 status = pthread_attr_setdetachstate(&attr, detach);
31075 if( status ) return status;
31076 status = pthread_create( &t, &attr, task, NULL );
31077 #if HAVE_PTHREADS < 7
31078 if( status < 0 ) status = errno;
31080 if( status ) return status;
31082 /* Draft 4 pthreads */
31083 status = pthread_create( &t, pthread_attr_default, task, NULL );
31084 if( status ) return errno;
31086 /* give thread a chance to complete */
31087 /* it should remain joinable and hence detachable */
31090 status = pthread_detach( &t );
31091 if( status ) return errno;
31094 #ifdef HAVE_LINUX_THREADS
31095 pthread_kill_other_threads_np();
31104 rm -f conftest.$ac_objext conftest$ac_exeext
31105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31106 (eval $ac_link) 2>conftest.er1
31108 grep -v '^ *+' conftest.er1 >conftest.err
31110 cat conftest.err >&5
31111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31112 (exit $ac_status); } &&
31113 { ac_try='test -z "$ac_c_werror_flag"
31114 || test ! -s conftest.err'
31115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31116 (eval $ac_try) 2>&5
31118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31119 (exit $ac_status); }; } &&
31120 { ac_try='test -s conftest$ac_exeext'
31121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31122 (eval $ac_try) 2>&5
31124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31125 (exit $ac_status); }; }; then
31126 ol_cv_pthread_pthreads=yes
31128 echo "$as_me: failed program was:" >&5
31129 sed 's/^/| /' conftest.$ac_ext >&5
31131 ol_cv_pthread_pthreads=no
31133 rm -f conftest.err conftest.$ac_objext \
31134 conftest$ac_exeext conftest.$ac_ext
31136 cat >conftest.$ac_ext <<_ACEOF
31138 /* pthread test headers */
31139 #include <pthread.h>
31140 #if HAVE_PTHREADS < 7
31144 #define NULL (void*)0
31147 static void *task(p)
31150 return (void *) (p == NULL);
31154 int main(argc, argv)
31159 /* pthread test function */
31160 #ifndef PTHREAD_CREATE_DETACHED
31161 #define PTHREAD_CREATE_DETACHED 1
31165 int detach = PTHREAD_CREATE_DETACHED;
31167 #if HAVE_PTHREADS > 4
31168 /* Final pthreads */
31169 pthread_attr_t attr;
31171 status = pthread_attr_init(&attr);
31172 if( status ) return status;
31174 #if HAVE_PTHREADS < 7
31175 status = pthread_attr_setdetachstate(&attr, &detach);
31176 if( status < 0 ) status = errno;
31178 status = pthread_attr_setdetachstate(&attr, detach);
31180 if( status ) return status;
31181 status = pthread_create( &t, &attr, task, NULL );
31182 #if HAVE_PTHREADS < 7
31183 if( status < 0 ) status = errno;
31185 if( status ) return status;
31187 /* Draft 4 pthreads */
31188 status = pthread_create( &t, pthread_attr_default, task, NULL );
31189 if( status ) return errno;
31191 /* give thread a chance to complete */
31192 /* it should remain joinable and hence detachable */
31195 status = pthread_detach( &t );
31196 if( status ) return errno;
31199 #ifdef HAVE_LINUX_THREADS
31200 pthread_kill_other_threads_np();
31208 rm -f conftest$ac_exeext
31209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31210 (eval $ac_link) 2>&5
31212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31213 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31215 (eval $ac_try) 2>&5
31217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31218 (exit $ac_status); }; }; then
31219 ol_cv_pthread_pthreads=yes
31221 echo "$as_me: program exited with status $ac_status" >&5
31222 echo "$as_me: failed program was:" >&5
31223 sed 's/^/| /' conftest.$ac_ext >&5
31225 ( exit $ac_status )
31226 ol_cv_pthread_pthreads=no
31228 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31235 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
31236 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
31238 if test $ol_cv_pthread_pthreads = yes ; then
31239 ol_link_pthreads="-pthreads"
31240 ol_link_threads=posix
31244 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
31245 if test "$ol_link_threads" = no ; then
31247 echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
31248 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
31249 if test "${ol_cv_pthread_mthreads+set}" = set; then
31250 echo $ECHO_N "(cached) $ECHO_C" >&6
31255 LIBS="-mthreads $LIBS"
31257 if test "$cross_compiling" = yes; then
31258 cat >conftest.$ac_ext <<_ACEOF
31261 cat confdefs.h >>conftest.$ac_ext
31262 cat >>conftest.$ac_ext <<_ACEOF
31263 /* end confdefs.h. */
31265 /* pthread test headers */
31266 #include <pthread.h>
31267 #if HAVE_PTHREADS < 7
31271 #define NULL (void*)0
31274 static void *task(p)
31277 return (void *) (p == NULL);
31284 /* pthread test function */
31285 #ifndef PTHREAD_CREATE_DETACHED
31286 #define PTHREAD_CREATE_DETACHED 1
31290 int detach = PTHREAD_CREATE_DETACHED;
31292 #if HAVE_PTHREADS > 4
31293 /* Final pthreads */
31294 pthread_attr_t attr;
31296 status = pthread_attr_init(&attr);
31297 if( status ) return status;
31299 #if HAVE_PTHREADS < 7
31300 status = pthread_attr_setdetachstate(&attr, &detach);
31301 if( status < 0 ) status = errno;
31303 status = pthread_attr_setdetachstate(&attr, detach);
31305 if( status ) return status;
31306 status = pthread_create( &t, &attr, task, NULL );
31307 #if HAVE_PTHREADS < 7
31308 if( status < 0 ) status = errno;
31310 if( status ) return status;
31312 /* Draft 4 pthreads */
31313 status = pthread_create( &t, pthread_attr_default, task, NULL );
31314 if( status ) return errno;
31316 /* give thread a chance to complete */
31317 /* it should remain joinable and hence detachable */
31320 status = pthread_detach( &t );
31321 if( status ) return errno;
31324 #ifdef HAVE_LINUX_THREADS
31325 pthread_kill_other_threads_np();
31334 rm -f conftest.$ac_objext conftest$ac_exeext
31335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31336 (eval $ac_link) 2>conftest.er1
31338 grep -v '^ *+' conftest.er1 >conftest.err
31340 cat conftest.err >&5
31341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31342 (exit $ac_status); } &&
31343 { ac_try='test -z "$ac_c_werror_flag"
31344 || test ! -s conftest.err'
31345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31346 (eval $ac_try) 2>&5
31348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31349 (exit $ac_status); }; } &&
31350 { ac_try='test -s conftest$ac_exeext'
31351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31352 (eval $ac_try) 2>&5
31354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31355 (exit $ac_status); }; }; then
31356 ol_cv_pthread_mthreads=yes
31358 echo "$as_me: failed program was:" >&5
31359 sed 's/^/| /' conftest.$ac_ext >&5
31361 ol_cv_pthread_mthreads=no
31363 rm -f conftest.err conftest.$ac_objext \
31364 conftest$ac_exeext conftest.$ac_ext
31366 cat >conftest.$ac_ext <<_ACEOF
31368 /* pthread test headers */
31369 #include <pthread.h>
31370 #if HAVE_PTHREADS < 7
31374 #define NULL (void*)0
31377 static void *task(p)
31380 return (void *) (p == NULL);
31384 int main(argc, argv)
31389 /* pthread test function */
31390 #ifndef PTHREAD_CREATE_DETACHED
31391 #define PTHREAD_CREATE_DETACHED 1
31395 int detach = PTHREAD_CREATE_DETACHED;
31397 #if HAVE_PTHREADS > 4
31398 /* Final pthreads */
31399 pthread_attr_t attr;
31401 status = pthread_attr_init(&attr);
31402 if( status ) return status;
31404 #if HAVE_PTHREADS < 7
31405 status = pthread_attr_setdetachstate(&attr, &detach);
31406 if( status < 0 ) status = errno;
31408 status = pthread_attr_setdetachstate(&attr, detach);
31410 if( status ) return status;
31411 status = pthread_create( &t, &attr, task, NULL );
31412 #if HAVE_PTHREADS < 7
31413 if( status < 0 ) status = errno;
31415 if( status ) return status;
31417 /* Draft 4 pthreads */
31418 status = pthread_create( &t, pthread_attr_default, task, NULL );
31419 if( status ) return errno;
31421 /* give thread a chance to complete */
31422 /* it should remain joinable and hence detachable */
31425 status = pthread_detach( &t );
31426 if( status ) return errno;
31429 #ifdef HAVE_LINUX_THREADS
31430 pthread_kill_other_threads_np();
31438 rm -f conftest$ac_exeext
31439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31440 (eval $ac_link) 2>&5
31442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31443 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31445 (eval $ac_try) 2>&5
31447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31448 (exit $ac_status); }; }; then
31449 ol_cv_pthread_mthreads=yes
31451 echo "$as_me: program exited with status $ac_status" >&5
31452 echo "$as_me: failed program was:" >&5
31453 sed 's/^/| /' conftest.$ac_ext >&5
31455 ( exit $ac_status )
31456 ol_cv_pthread_mthreads=no
31458 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31465 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
31466 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
31468 if test $ol_cv_pthread_mthreads = yes ; then
31469 ol_link_pthreads="-mthreads"
31470 ol_link_threads=posix
31474 # Pthread try link: -thread (ol_cv_pthread_thread)
31475 if test "$ol_link_threads" = no ; then
31477 echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
31478 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
31479 if test "${ol_cv_pthread_thread+set}" = set; then
31480 echo $ECHO_N "(cached) $ECHO_C" >&6
31485 LIBS="-thread $LIBS"
31487 if test "$cross_compiling" = yes; then
31488 cat >conftest.$ac_ext <<_ACEOF
31491 cat confdefs.h >>conftest.$ac_ext
31492 cat >>conftest.$ac_ext <<_ACEOF
31493 /* end confdefs.h. */
31495 /* pthread test headers */
31496 #include <pthread.h>
31497 #if HAVE_PTHREADS < 7
31501 #define NULL (void*)0
31504 static void *task(p)
31507 return (void *) (p == NULL);
31514 /* pthread test function */
31515 #ifndef PTHREAD_CREATE_DETACHED
31516 #define PTHREAD_CREATE_DETACHED 1
31520 int detach = PTHREAD_CREATE_DETACHED;
31522 #if HAVE_PTHREADS > 4
31523 /* Final pthreads */
31524 pthread_attr_t attr;
31526 status = pthread_attr_init(&attr);
31527 if( status ) return status;
31529 #if HAVE_PTHREADS < 7
31530 status = pthread_attr_setdetachstate(&attr, &detach);
31531 if( status < 0 ) status = errno;
31533 status = pthread_attr_setdetachstate(&attr, detach);
31535 if( status ) return status;
31536 status = pthread_create( &t, &attr, task, NULL );
31537 #if HAVE_PTHREADS < 7
31538 if( status < 0 ) status = errno;
31540 if( status ) return status;
31542 /* Draft 4 pthreads */
31543 status = pthread_create( &t, pthread_attr_default, task, NULL );
31544 if( status ) return errno;
31546 /* give thread a chance to complete */
31547 /* it should remain joinable and hence detachable */
31550 status = pthread_detach( &t );
31551 if( status ) return errno;
31554 #ifdef HAVE_LINUX_THREADS
31555 pthread_kill_other_threads_np();
31564 rm -f conftest.$ac_objext conftest$ac_exeext
31565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31566 (eval $ac_link) 2>conftest.er1
31568 grep -v '^ *+' conftest.er1 >conftest.err
31570 cat conftest.err >&5
31571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31572 (exit $ac_status); } &&
31573 { ac_try='test -z "$ac_c_werror_flag"
31574 || test ! -s conftest.err'
31575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31576 (eval $ac_try) 2>&5
31578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31579 (exit $ac_status); }; } &&
31580 { ac_try='test -s conftest$ac_exeext'
31581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31582 (eval $ac_try) 2>&5
31584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31585 (exit $ac_status); }; }; then
31586 ol_cv_pthread_thread=yes
31588 echo "$as_me: failed program was:" >&5
31589 sed 's/^/| /' conftest.$ac_ext >&5
31591 ol_cv_pthread_thread=no
31593 rm -f conftest.err conftest.$ac_objext \
31594 conftest$ac_exeext conftest.$ac_ext
31596 cat >conftest.$ac_ext <<_ACEOF
31598 /* pthread test headers */
31599 #include <pthread.h>
31600 #if HAVE_PTHREADS < 7
31604 #define NULL (void*)0
31607 static void *task(p)
31610 return (void *) (p == NULL);
31614 int main(argc, argv)
31619 /* pthread test function */
31620 #ifndef PTHREAD_CREATE_DETACHED
31621 #define PTHREAD_CREATE_DETACHED 1
31625 int detach = PTHREAD_CREATE_DETACHED;
31627 #if HAVE_PTHREADS > 4
31628 /* Final pthreads */
31629 pthread_attr_t attr;
31631 status = pthread_attr_init(&attr);
31632 if( status ) return status;
31634 #if HAVE_PTHREADS < 7
31635 status = pthread_attr_setdetachstate(&attr, &detach);
31636 if( status < 0 ) status = errno;
31638 status = pthread_attr_setdetachstate(&attr, detach);
31640 if( status ) return status;
31641 status = pthread_create( &t, &attr, task, NULL );
31642 #if HAVE_PTHREADS < 7
31643 if( status < 0 ) status = errno;
31645 if( status ) return status;
31647 /* Draft 4 pthreads */
31648 status = pthread_create( &t, pthread_attr_default, task, NULL );
31649 if( status ) return errno;
31651 /* give thread a chance to complete */
31652 /* it should remain joinable and hence detachable */
31655 status = pthread_detach( &t );
31656 if( status ) return errno;
31659 #ifdef HAVE_LINUX_THREADS
31660 pthread_kill_other_threads_np();
31668 rm -f conftest$ac_exeext
31669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31670 (eval $ac_link) 2>&5
31672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31675 (eval $ac_try) 2>&5
31677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31678 (exit $ac_status); }; }; then
31679 ol_cv_pthread_thread=yes
31681 echo "$as_me: program exited with status $ac_status" >&5
31682 echo "$as_me: failed program was:" >&5
31683 sed 's/^/| /' conftest.$ac_ext >&5
31685 ( exit $ac_status )
31686 ol_cv_pthread_thread=no
31688 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31695 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
31696 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
31698 if test $ol_cv_pthread_thread = yes ; then
31699 ol_link_pthreads="-thread"
31700 ol_link_threads=posix
31705 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
31706 if test "$ol_link_threads" = no ; then
31707 # try -lpthread -lmach -lexc -lc_r
31708 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
31709 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
31710 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
31711 echo $ECHO_N "(cached) $ECHO_C" >&6
31716 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
31718 if test "$cross_compiling" = yes; then
31719 cat >conftest.$ac_ext <<_ACEOF
31722 cat confdefs.h >>conftest.$ac_ext
31723 cat >>conftest.$ac_ext <<_ACEOF
31724 /* end confdefs.h. */
31726 /* pthread test headers */
31727 #include <pthread.h>
31728 #if HAVE_PTHREADS < 7
31732 #define NULL (void*)0
31735 static void *task(p)
31738 return (void *) (p == NULL);
31745 /* pthread test function */
31746 #ifndef PTHREAD_CREATE_DETACHED
31747 #define PTHREAD_CREATE_DETACHED 1
31751 int detach = PTHREAD_CREATE_DETACHED;
31753 #if HAVE_PTHREADS > 4
31754 /* Final pthreads */
31755 pthread_attr_t attr;
31757 status = pthread_attr_init(&attr);
31758 if( status ) return status;
31760 #if HAVE_PTHREADS < 7
31761 status = pthread_attr_setdetachstate(&attr, &detach);
31762 if( status < 0 ) status = errno;
31764 status = pthread_attr_setdetachstate(&attr, detach);
31766 if( status ) return status;
31767 status = pthread_create( &t, &attr, task, NULL );
31768 #if HAVE_PTHREADS < 7
31769 if( status < 0 ) status = errno;
31771 if( status ) return status;
31773 /* Draft 4 pthreads */
31774 status = pthread_create( &t, pthread_attr_default, task, NULL );
31775 if( status ) return errno;
31777 /* give thread a chance to complete */
31778 /* it should remain joinable and hence detachable */
31781 status = pthread_detach( &t );
31782 if( status ) return errno;
31785 #ifdef HAVE_LINUX_THREADS
31786 pthread_kill_other_threads_np();
31795 rm -f conftest.$ac_objext conftest$ac_exeext
31796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31797 (eval $ac_link) 2>conftest.er1
31799 grep -v '^ *+' conftest.er1 >conftest.err
31801 cat conftest.err >&5
31802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31803 (exit $ac_status); } &&
31804 { ac_try='test -z "$ac_c_werror_flag"
31805 || test ! -s conftest.err'
31806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31807 (eval $ac_try) 2>&5
31809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31810 (exit $ac_status); }; } &&
31811 { ac_try='test -s conftest$ac_exeext'
31812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31813 (eval $ac_try) 2>&5
31815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31816 (exit $ac_status); }; }; then
31817 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
31819 echo "$as_me: failed program was:" >&5
31820 sed 's/^/| /' conftest.$ac_ext >&5
31822 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
31824 rm -f conftest.err conftest.$ac_objext \
31825 conftest$ac_exeext conftest.$ac_ext
31827 cat >conftest.$ac_ext <<_ACEOF
31829 /* pthread test headers */
31830 #include <pthread.h>
31831 #if HAVE_PTHREADS < 7
31835 #define NULL (void*)0
31838 static void *task(p)
31841 return (void *) (p == NULL);
31845 int main(argc, argv)
31850 /* pthread test function */
31851 #ifndef PTHREAD_CREATE_DETACHED
31852 #define PTHREAD_CREATE_DETACHED 1
31856 int detach = PTHREAD_CREATE_DETACHED;
31858 #if HAVE_PTHREADS > 4
31859 /* Final pthreads */
31860 pthread_attr_t attr;
31862 status = pthread_attr_init(&attr);
31863 if( status ) return status;
31865 #if HAVE_PTHREADS < 7
31866 status = pthread_attr_setdetachstate(&attr, &detach);
31867 if( status < 0 ) status = errno;
31869 status = pthread_attr_setdetachstate(&attr, detach);
31871 if( status ) return status;
31872 status = pthread_create( &t, &attr, task, NULL );
31873 #if HAVE_PTHREADS < 7
31874 if( status < 0 ) status = errno;
31876 if( status ) return status;
31878 /* Draft 4 pthreads */
31879 status = pthread_create( &t, pthread_attr_default, task, NULL );
31880 if( status ) return errno;
31882 /* give thread a chance to complete */
31883 /* it should remain joinable and hence detachable */
31886 status = pthread_detach( &t );
31887 if( status ) return errno;
31890 #ifdef HAVE_LINUX_THREADS
31891 pthread_kill_other_threads_np();
31899 rm -f conftest$ac_exeext
31900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31901 (eval $ac_link) 2>&5
31903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31904 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31906 (eval $ac_try) 2>&5
31908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31909 (exit $ac_status); }; }; then
31910 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
31912 echo "$as_me: program exited with status $ac_status" >&5
31913 echo "$as_me: failed program was:" >&5
31914 sed 's/^/| /' conftest.$ac_ext >&5
31916 ( exit $ac_status )
31917 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
31919 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31926 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
31927 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
31929 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
31930 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
31931 ol_link_threads=posix
31935 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
31936 if test "$ol_link_threads" = no ; then
31937 # try -lpthread -lmach -lexc
31938 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
31939 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
31940 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
31941 echo $ECHO_N "(cached) $ECHO_C" >&6
31946 LIBS="-lpthread -lmach -lexc $LIBS"
31948 if test "$cross_compiling" = yes; then
31949 cat >conftest.$ac_ext <<_ACEOF
31952 cat confdefs.h >>conftest.$ac_ext
31953 cat >>conftest.$ac_ext <<_ACEOF
31954 /* end confdefs.h. */
31956 /* pthread test headers */
31957 #include <pthread.h>
31958 #if HAVE_PTHREADS < 7
31962 #define NULL (void*)0
31965 static void *task(p)
31968 return (void *) (p == NULL);
31975 /* pthread test function */
31976 #ifndef PTHREAD_CREATE_DETACHED
31977 #define PTHREAD_CREATE_DETACHED 1
31981 int detach = PTHREAD_CREATE_DETACHED;
31983 #if HAVE_PTHREADS > 4
31984 /* Final pthreads */
31985 pthread_attr_t attr;
31987 status = pthread_attr_init(&attr);
31988 if( status ) return status;
31990 #if HAVE_PTHREADS < 7
31991 status = pthread_attr_setdetachstate(&attr, &detach);
31992 if( status < 0 ) status = errno;
31994 status = pthread_attr_setdetachstate(&attr, detach);
31996 if( status ) return status;
31997 status = pthread_create( &t, &attr, task, NULL );
31998 #if HAVE_PTHREADS < 7
31999 if( status < 0 ) status = errno;
32001 if( status ) return status;
32003 /* Draft 4 pthreads */
32004 status = pthread_create( &t, pthread_attr_default, task, NULL );
32005 if( status ) return errno;
32007 /* give thread a chance to complete */
32008 /* it should remain joinable and hence detachable */
32011 status = pthread_detach( &t );
32012 if( status ) return errno;
32015 #ifdef HAVE_LINUX_THREADS
32016 pthread_kill_other_threads_np();
32025 rm -f conftest.$ac_objext conftest$ac_exeext
32026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32027 (eval $ac_link) 2>conftest.er1
32029 grep -v '^ *+' conftest.er1 >conftest.err
32031 cat conftest.err >&5
32032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32033 (exit $ac_status); } &&
32034 { ac_try='test -z "$ac_c_werror_flag"
32035 || test ! -s conftest.err'
32036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32037 (eval $ac_try) 2>&5
32039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32040 (exit $ac_status); }; } &&
32041 { ac_try='test -s conftest$ac_exeext'
32042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32043 (eval $ac_try) 2>&5
32045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32046 (exit $ac_status); }; }; then
32047 ol_cv_pthread_lpthread_lmach_lexc=yes
32049 echo "$as_me: failed program was:" >&5
32050 sed 's/^/| /' conftest.$ac_ext >&5
32052 ol_cv_pthread_lpthread_lmach_lexc=no
32054 rm -f conftest.err conftest.$ac_objext \
32055 conftest$ac_exeext conftest.$ac_ext
32057 cat >conftest.$ac_ext <<_ACEOF
32059 /* pthread test headers */
32060 #include <pthread.h>
32061 #if HAVE_PTHREADS < 7
32065 #define NULL (void*)0
32068 static void *task(p)
32071 return (void *) (p == NULL);
32075 int main(argc, argv)
32080 /* pthread test function */
32081 #ifndef PTHREAD_CREATE_DETACHED
32082 #define PTHREAD_CREATE_DETACHED 1
32086 int detach = PTHREAD_CREATE_DETACHED;
32088 #if HAVE_PTHREADS > 4
32089 /* Final pthreads */
32090 pthread_attr_t attr;
32092 status = pthread_attr_init(&attr);
32093 if( status ) return status;
32095 #if HAVE_PTHREADS < 7
32096 status = pthread_attr_setdetachstate(&attr, &detach);
32097 if( status < 0 ) status = errno;
32099 status = pthread_attr_setdetachstate(&attr, detach);
32101 if( status ) return status;
32102 status = pthread_create( &t, &attr, task, NULL );
32103 #if HAVE_PTHREADS < 7
32104 if( status < 0 ) status = errno;
32106 if( status ) return status;
32108 /* Draft 4 pthreads */
32109 status = pthread_create( &t, pthread_attr_default, task, NULL );
32110 if( status ) return errno;
32112 /* give thread a chance to complete */
32113 /* it should remain joinable and hence detachable */
32116 status = pthread_detach( &t );
32117 if( status ) return errno;
32120 #ifdef HAVE_LINUX_THREADS
32121 pthread_kill_other_threads_np();
32129 rm -f conftest$ac_exeext
32130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32131 (eval $ac_link) 2>&5
32133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32134 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32136 (eval $ac_try) 2>&5
32138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32139 (exit $ac_status); }; }; then
32140 ol_cv_pthread_lpthread_lmach_lexc=yes
32142 echo "$as_me: program exited with status $ac_status" >&5
32143 echo "$as_me: failed program was:" >&5
32144 sed 's/^/| /' conftest.$ac_ext >&5
32146 ( exit $ac_status )
32147 ol_cv_pthread_lpthread_lmach_lexc=no
32149 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32156 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
32157 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
32159 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
32160 ol_link_pthreads="-lpthread -lmach -lexc"
32161 ol_link_threads=posix
32166 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
32167 if test "$ol_link_threads" = no ; then
32168 # try -lpthread -Wl,-woff,85
32169 echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
32170 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
32171 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
32172 echo $ECHO_N "(cached) $ECHO_C" >&6
32177 LIBS="-lpthread -Wl,-woff,85 $LIBS"
32179 if test "$cross_compiling" = yes; then
32180 cat >conftest.$ac_ext <<_ACEOF
32183 cat confdefs.h >>conftest.$ac_ext
32184 cat >>conftest.$ac_ext <<_ACEOF
32185 /* end confdefs.h. */
32187 /* pthread test headers */
32188 #include <pthread.h>
32189 #if HAVE_PTHREADS < 7
32193 #define NULL (void*)0
32196 static void *task(p)
32199 return (void *) (p == NULL);
32206 /* pthread test function */
32207 #ifndef PTHREAD_CREATE_DETACHED
32208 #define PTHREAD_CREATE_DETACHED 1
32212 int detach = PTHREAD_CREATE_DETACHED;
32214 #if HAVE_PTHREADS > 4
32215 /* Final pthreads */
32216 pthread_attr_t attr;
32218 status = pthread_attr_init(&attr);
32219 if( status ) return status;
32221 #if HAVE_PTHREADS < 7
32222 status = pthread_attr_setdetachstate(&attr, &detach);
32223 if( status < 0 ) status = errno;
32225 status = pthread_attr_setdetachstate(&attr, detach);
32227 if( status ) return status;
32228 status = pthread_create( &t, &attr, task, NULL );
32229 #if HAVE_PTHREADS < 7
32230 if( status < 0 ) status = errno;
32232 if( status ) return status;
32234 /* Draft 4 pthreads */
32235 status = pthread_create( &t, pthread_attr_default, task, NULL );
32236 if( status ) return errno;
32238 /* give thread a chance to complete */
32239 /* it should remain joinable and hence detachable */
32242 status = pthread_detach( &t );
32243 if( status ) return errno;
32246 #ifdef HAVE_LINUX_THREADS
32247 pthread_kill_other_threads_np();
32256 rm -f conftest.$ac_objext conftest$ac_exeext
32257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32258 (eval $ac_link) 2>conftest.er1
32260 grep -v '^ *+' conftest.er1 >conftest.err
32262 cat conftest.err >&5
32263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32264 (exit $ac_status); } &&
32265 { ac_try='test -z "$ac_c_werror_flag"
32266 || test ! -s conftest.err'
32267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32268 (eval $ac_try) 2>&5
32270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32271 (exit $ac_status); }; } &&
32272 { ac_try='test -s conftest$ac_exeext'
32273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32274 (eval $ac_try) 2>&5
32276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32277 (exit $ac_status); }; }; then
32278 ol_cv_pthread_lib_lpthread_woff=yes
32280 echo "$as_me: failed program was:" >&5
32281 sed 's/^/| /' conftest.$ac_ext >&5
32283 ol_cv_pthread_lib_lpthread_woff=no
32285 rm -f conftest.err conftest.$ac_objext \
32286 conftest$ac_exeext conftest.$ac_ext
32288 cat >conftest.$ac_ext <<_ACEOF
32290 /* pthread test headers */
32291 #include <pthread.h>
32292 #if HAVE_PTHREADS < 7
32296 #define NULL (void*)0
32299 static void *task(p)
32302 return (void *) (p == NULL);
32306 int main(argc, argv)
32311 /* pthread test function */
32312 #ifndef PTHREAD_CREATE_DETACHED
32313 #define PTHREAD_CREATE_DETACHED 1
32317 int detach = PTHREAD_CREATE_DETACHED;
32319 #if HAVE_PTHREADS > 4
32320 /* Final pthreads */
32321 pthread_attr_t attr;
32323 status = pthread_attr_init(&attr);
32324 if( status ) return status;
32326 #if HAVE_PTHREADS < 7
32327 status = pthread_attr_setdetachstate(&attr, &detach);
32328 if( status < 0 ) status = errno;
32330 status = pthread_attr_setdetachstate(&attr, detach);
32332 if( status ) return status;
32333 status = pthread_create( &t, &attr, task, NULL );
32334 #if HAVE_PTHREADS < 7
32335 if( status < 0 ) status = errno;
32337 if( status ) return status;
32339 /* Draft 4 pthreads */
32340 status = pthread_create( &t, pthread_attr_default, task, NULL );
32341 if( status ) return errno;
32343 /* give thread a chance to complete */
32344 /* it should remain joinable and hence detachable */
32347 status = pthread_detach( &t );
32348 if( status ) return errno;
32351 #ifdef HAVE_LINUX_THREADS
32352 pthread_kill_other_threads_np();
32360 rm -f conftest$ac_exeext
32361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32362 (eval $ac_link) 2>&5
32364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32365 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32367 (eval $ac_try) 2>&5
32369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32370 (exit $ac_status); }; }; then
32371 ol_cv_pthread_lib_lpthread_woff=yes
32373 echo "$as_me: program exited with status $ac_status" >&5
32374 echo "$as_me: failed program was:" >&5
32375 sed 's/^/| /' conftest.$ac_ext >&5
32377 ( exit $ac_status )
32378 ol_cv_pthread_lib_lpthread_woff=no
32380 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32387 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
32388 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
32390 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
32391 ol_link_pthreads="-lpthread -Wl,-woff,85"
32392 ol_link_threads=posix
32397 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
32398 if test "$ol_link_threads" = no ; then
32400 echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
32401 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
32402 if test "${ol_cv_pthread_lpthread+set}" = set; then
32403 echo $ECHO_N "(cached) $ECHO_C" >&6
32408 LIBS="-lpthread $LIBS"
32410 if test "$cross_compiling" = yes; then
32411 cat >conftest.$ac_ext <<_ACEOF
32414 cat confdefs.h >>conftest.$ac_ext
32415 cat >>conftest.$ac_ext <<_ACEOF
32416 /* end confdefs.h. */
32418 /* pthread test headers */
32419 #include <pthread.h>
32420 #if HAVE_PTHREADS < 7
32424 #define NULL (void*)0
32427 static void *task(p)
32430 return (void *) (p == NULL);
32437 /* pthread test function */
32438 #ifndef PTHREAD_CREATE_DETACHED
32439 #define PTHREAD_CREATE_DETACHED 1
32443 int detach = PTHREAD_CREATE_DETACHED;
32445 #if HAVE_PTHREADS > 4
32446 /* Final pthreads */
32447 pthread_attr_t attr;
32449 status = pthread_attr_init(&attr);
32450 if( status ) return status;
32452 #if HAVE_PTHREADS < 7
32453 status = pthread_attr_setdetachstate(&attr, &detach);
32454 if( status < 0 ) status = errno;
32456 status = pthread_attr_setdetachstate(&attr, detach);
32458 if( status ) return status;
32459 status = pthread_create( &t, &attr, task, NULL );
32460 #if HAVE_PTHREADS < 7
32461 if( status < 0 ) status = errno;
32463 if( status ) return status;
32465 /* Draft 4 pthreads */
32466 status = pthread_create( &t, pthread_attr_default, task, NULL );
32467 if( status ) return errno;
32469 /* give thread a chance to complete */
32470 /* it should remain joinable and hence detachable */
32473 status = pthread_detach( &t );
32474 if( status ) return errno;
32477 #ifdef HAVE_LINUX_THREADS
32478 pthread_kill_other_threads_np();
32487 rm -f conftest.$ac_objext conftest$ac_exeext
32488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32489 (eval $ac_link) 2>conftest.er1
32491 grep -v '^ *+' conftest.er1 >conftest.err
32493 cat conftest.err >&5
32494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32495 (exit $ac_status); } &&
32496 { ac_try='test -z "$ac_c_werror_flag"
32497 || test ! -s conftest.err'
32498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32499 (eval $ac_try) 2>&5
32501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32502 (exit $ac_status); }; } &&
32503 { ac_try='test -s conftest$ac_exeext'
32504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32505 (eval $ac_try) 2>&5
32507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32508 (exit $ac_status); }; }; then
32509 ol_cv_pthread_lpthread=yes
32511 echo "$as_me: failed program was:" >&5
32512 sed 's/^/| /' conftest.$ac_ext >&5
32514 ol_cv_pthread_lpthread=no
32516 rm -f conftest.err conftest.$ac_objext \
32517 conftest$ac_exeext conftest.$ac_ext
32519 cat >conftest.$ac_ext <<_ACEOF
32521 /* pthread test headers */
32522 #include <pthread.h>
32523 #if HAVE_PTHREADS < 7
32527 #define NULL (void*)0
32530 static void *task(p)
32533 return (void *) (p == NULL);
32537 int main(argc, argv)
32542 /* pthread test function */
32543 #ifndef PTHREAD_CREATE_DETACHED
32544 #define PTHREAD_CREATE_DETACHED 1
32548 int detach = PTHREAD_CREATE_DETACHED;
32550 #if HAVE_PTHREADS > 4
32551 /* Final pthreads */
32552 pthread_attr_t attr;
32554 status = pthread_attr_init(&attr);
32555 if( status ) return status;
32557 #if HAVE_PTHREADS < 7
32558 status = pthread_attr_setdetachstate(&attr, &detach);
32559 if( status < 0 ) status = errno;
32561 status = pthread_attr_setdetachstate(&attr, detach);
32563 if( status ) return status;
32564 status = pthread_create( &t, &attr, task, NULL );
32565 #if HAVE_PTHREADS < 7
32566 if( status < 0 ) status = errno;
32568 if( status ) return status;
32570 /* Draft 4 pthreads */
32571 status = pthread_create( &t, pthread_attr_default, task, NULL );
32572 if( status ) return errno;
32574 /* give thread a chance to complete */
32575 /* it should remain joinable and hence detachable */
32578 status = pthread_detach( &t );
32579 if( status ) return errno;
32582 #ifdef HAVE_LINUX_THREADS
32583 pthread_kill_other_threads_np();
32591 rm -f conftest$ac_exeext
32592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32593 (eval $ac_link) 2>&5
32595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32596 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32598 (eval $ac_try) 2>&5
32600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32601 (exit $ac_status); }; }; then
32602 ol_cv_pthread_lpthread=yes
32604 echo "$as_me: program exited with status $ac_status" >&5
32605 echo "$as_me: failed program was:" >&5
32606 sed 's/^/| /' conftest.$ac_ext >&5
32608 ( exit $ac_status )
32609 ol_cv_pthread_lpthread=no
32611 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32618 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
32619 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
32621 if test $ol_cv_pthread_lpthread = yes ; then
32622 ol_link_pthreads="-lpthread"
32623 ol_link_threads=posix
32627 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
32628 if test "$ol_link_threads" = no ; then
32630 echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
32631 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
32632 if test "${ol_cv_pthread_lc_r+set}" = set; then
32633 echo $ECHO_N "(cached) $ECHO_C" >&6
32640 if test "$cross_compiling" = yes; then
32641 cat >conftest.$ac_ext <<_ACEOF
32644 cat confdefs.h >>conftest.$ac_ext
32645 cat >>conftest.$ac_ext <<_ACEOF
32646 /* end confdefs.h. */
32648 /* pthread test headers */
32649 #include <pthread.h>
32650 #if HAVE_PTHREADS < 7
32654 #define NULL (void*)0
32657 static void *task(p)
32660 return (void *) (p == NULL);
32667 /* pthread test function */
32668 #ifndef PTHREAD_CREATE_DETACHED
32669 #define PTHREAD_CREATE_DETACHED 1
32673 int detach = PTHREAD_CREATE_DETACHED;
32675 #if HAVE_PTHREADS > 4
32676 /* Final pthreads */
32677 pthread_attr_t attr;
32679 status = pthread_attr_init(&attr);
32680 if( status ) return status;
32682 #if HAVE_PTHREADS < 7
32683 status = pthread_attr_setdetachstate(&attr, &detach);
32684 if( status < 0 ) status = errno;
32686 status = pthread_attr_setdetachstate(&attr, detach);
32688 if( status ) return status;
32689 status = pthread_create( &t, &attr, task, NULL );
32690 #if HAVE_PTHREADS < 7
32691 if( status < 0 ) status = errno;
32693 if( status ) return status;
32695 /* Draft 4 pthreads */
32696 status = pthread_create( &t, pthread_attr_default, task, NULL );
32697 if( status ) return errno;
32699 /* give thread a chance to complete */
32700 /* it should remain joinable and hence detachable */
32703 status = pthread_detach( &t );
32704 if( status ) return errno;
32707 #ifdef HAVE_LINUX_THREADS
32708 pthread_kill_other_threads_np();
32717 rm -f conftest.$ac_objext conftest$ac_exeext
32718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32719 (eval $ac_link) 2>conftest.er1
32721 grep -v '^ *+' conftest.er1 >conftest.err
32723 cat conftest.err >&5
32724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32725 (exit $ac_status); } &&
32726 { ac_try='test -z "$ac_c_werror_flag"
32727 || test ! -s conftest.err'
32728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32729 (eval $ac_try) 2>&5
32731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32732 (exit $ac_status); }; } &&
32733 { ac_try='test -s conftest$ac_exeext'
32734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32735 (eval $ac_try) 2>&5
32737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32738 (exit $ac_status); }; }; then
32739 ol_cv_pthread_lc_r=yes
32741 echo "$as_me: failed program was:" >&5
32742 sed 's/^/| /' conftest.$ac_ext >&5
32744 ol_cv_pthread_lc_r=no
32746 rm -f conftest.err conftest.$ac_objext \
32747 conftest$ac_exeext conftest.$ac_ext
32749 cat >conftest.$ac_ext <<_ACEOF
32751 /* pthread test headers */
32752 #include <pthread.h>
32753 #if HAVE_PTHREADS < 7
32757 #define NULL (void*)0
32760 static void *task(p)
32763 return (void *) (p == NULL);
32767 int main(argc, argv)
32772 /* pthread test function */
32773 #ifndef PTHREAD_CREATE_DETACHED
32774 #define PTHREAD_CREATE_DETACHED 1
32778 int detach = PTHREAD_CREATE_DETACHED;
32780 #if HAVE_PTHREADS > 4
32781 /* Final pthreads */
32782 pthread_attr_t attr;
32784 status = pthread_attr_init(&attr);
32785 if( status ) return status;
32787 #if HAVE_PTHREADS < 7
32788 status = pthread_attr_setdetachstate(&attr, &detach);
32789 if( status < 0 ) status = errno;
32791 status = pthread_attr_setdetachstate(&attr, detach);
32793 if( status ) return status;
32794 status = pthread_create( &t, &attr, task, NULL );
32795 #if HAVE_PTHREADS < 7
32796 if( status < 0 ) status = errno;
32798 if( status ) return status;
32800 /* Draft 4 pthreads */
32801 status = pthread_create( &t, pthread_attr_default, task, NULL );
32802 if( status ) return errno;
32804 /* give thread a chance to complete */
32805 /* it should remain joinable and hence detachable */
32808 status = pthread_detach( &t );
32809 if( status ) return errno;
32812 #ifdef HAVE_LINUX_THREADS
32813 pthread_kill_other_threads_np();
32821 rm -f conftest$ac_exeext
32822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32823 (eval $ac_link) 2>&5
32825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32826 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32828 (eval $ac_try) 2>&5
32830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32831 (exit $ac_status); }; }; then
32832 ol_cv_pthread_lc_r=yes
32834 echo "$as_me: program exited with status $ac_status" >&5
32835 echo "$as_me: failed program was:" >&5
32836 sed 's/^/| /' conftest.$ac_ext >&5
32838 ( exit $ac_status )
32839 ol_cv_pthread_lc_r=no
32841 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32848 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
32849 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
32851 if test $ol_cv_pthread_lc_r = yes ; then
32852 ol_link_pthreads="-lc_r"
32853 ol_link_threads=posix
32858 # Pthread try link: -threads (ol_cv_pthread_threads)
32859 if test "$ol_link_threads" = no ; then
32861 echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
32862 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
32863 if test "${ol_cv_pthread_threads+set}" = set; then
32864 echo $ECHO_N "(cached) $ECHO_C" >&6
32869 LIBS="-threads $LIBS"
32871 if test "$cross_compiling" = yes; then
32872 cat >conftest.$ac_ext <<_ACEOF
32875 cat confdefs.h >>conftest.$ac_ext
32876 cat >>conftest.$ac_ext <<_ACEOF
32877 /* end confdefs.h. */
32879 /* pthread test headers */
32880 #include <pthread.h>
32881 #if HAVE_PTHREADS < 7
32885 #define NULL (void*)0
32888 static void *task(p)
32891 return (void *) (p == NULL);
32898 /* pthread test function */
32899 #ifndef PTHREAD_CREATE_DETACHED
32900 #define PTHREAD_CREATE_DETACHED 1
32904 int detach = PTHREAD_CREATE_DETACHED;
32906 #if HAVE_PTHREADS > 4
32907 /* Final pthreads */
32908 pthread_attr_t attr;
32910 status = pthread_attr_init(&attr);
32911 if( status ) return status;
32913 #if HAVE_PTHREADS < 7
32914 status = pthread_attr_setdetachstate(&attr, &detach);
32915 if( status < 0 ) status = errno;
32917 status = pthread_attr_setdetachstate(&attr, detach);
32919 if( status ) return status;
32920 status = pthread_create( &t, &attr, task, NULL );
32921 #if HAVE_PTHREADS < 7
32922 if( status < 0 ) status = errno;
32924 if( status ) return status;
32926 /* Draft 4 pthreads */
32927 status = pthread_create( &t, pthread_attr_default, task, NULL );
32928 if( status ) return errno;
32930 /* give thread a chance to complete */
32931 /* it should remain joinable and hence detachable */
32934 status = pthread_detach( &t );
32935 if( status ) return errno;
32938 #ifdef HAVE_LINUX_THREADS
32939 pthread_kill_other_threads_np();
32948 rm -f conftest.$ac_objext conftest$ac_exeext
32949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32950 (eval $ac_link) 2>conftest.er1
32952 grep -v '^ *+' conftest.er1 >conftest.err
32954 cat conftest.err >&5
32955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32956 (exit $ac_status); } &&
32957 { ac_try='test -z "$ac_c_werror_flag"
32958 || test ! -s conftest.err'
32959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32960 (eval $ac_try) 2>&5
32962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32963 (exit $ac_status); }; } &&
32964 { ac_try='test -s conftest$ac_exeext'
32965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32966 (eval $ac_try) 2>&5
32968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32969 (exit $ac_status); }; }; then
32970 ol_cv_pthread_threads=yes
32972 echo "$as_me: failed program was:" >&5
32973 sed 's/^/| /' conftest.$ac_ext >&5
32975 ol_cv_pthread_threads=no
32977 rm -f conftest.err conftest.$ac_objext \
32978 conftest$ac_exeext conftest.$ac_ext
32980 cat >conftest.$ac_ext <<_ACEOF
32982 /* pthread test headers */
32983 #include <pthread.h>
32984 #if HAVE_PTHREADS < 7
32988 #define NULL (void*)0
32991 static void *task(p)
32994 return (void *) (p == NULL);
32998 int main(argc, argv)
33003 /* pthread test function */
33004 #ifndef PTHREAD_CREATE_DETACHED
33005 #define PTHREAD_CREATE_DETACHED 1
33009 int detach = PTHREAD_CREATE_DETACHED;
33011 #if HAVE_PTHREADS > 4
33012 /* Final pthreads */
33013 pthread_attr_t attr;
33015 status = pthread_attr_init(&attr);
33016 if( status ) return status;
33018 #if HAVE_PTHREADS < 7
33019 status = pthread_attr_setdetachstate(&attr, &detach);
33020 if( status < 0 ) status = errno;
33022 status = pthread_attr_setdetachstate(&attr, detach);
33024 if( status ) return status;
33025 status = pthread_create( &t, &attr, task, NULL );
33026 #if HAVE_PTHREADS < 7
33027 if( status < 0 ) status = errno;
33029 if( status ) return status;
33031 /* Draft 4 pthreads */
33032 status = pthread_create( &t, pthread_attr_default, task, NULL );
33033 if( status ) return errno;
33035 /* give thread a chance to complete */
33036 /* it should remain joinable and hence detachable */
33039 status = pthread_detach( &t );
33040 if( status ) return errno;
33043 #ifdef HAVE_LINUX_THREADS
33044 pthread_kill_other_threads_np();
33052 rm -f conftest$ac_exeext
33053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33054 (eval $ac_link) 2>&5
33056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33057 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33059 (eval $ac_try) 2>&5
33061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33062 (exit $ac_status); }; }; then
33063 ol_cv_pthread_threads=yes
33065 echo "$as_me: program exited with status $ac_status" >&5
33066 echo "$as_me: failed program was:" >&5
33067 sed 's/^/| /' conftest.$ac_ext >&5
33069 ( exit $ac_status )
33070 ol_cv_pthread_threads=no
33072 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33079 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
33080 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
33082 if test $ol_cv_pthread_threads = yes ; then
33083 ol_link_pthreads="-threads"
33084 ol_link_threads=posix
33089 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
33090 if test "$ol_link_threads" = no ; then
33091 # try -lpthreads -lmach -lexc -lc_r
33092 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
33093 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
33094 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
33095 echo $ECHO_N "(cached) $ECHO_C" >&6
33100 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
33102 if test "$cross_compiling" = yes; then
33103 cat >conftest.$ac_ext <<_ACEOF
33106 cat confdefs.h >>conftest.$ac_ext
33107 cat >>conftest.$ac_ext <<_ACEOF
33108 /* end confdefs.h. */
33110 /* pthread test headers */
33111 #include <pthread.h>
33112 #if HAVE_PTHREADS < 7
33116 #define NULL (void*)0
33119 static void *task(p)
33122 return (void *) (p == NULL);
33129 /* pthread test function */
33130 #ifndef PTHREAD_CREATE_DETACHED
33131 #define PTHREAD_CREATE_DETACHED 1
33135 int detach = PTHREAD_CREATE_DETACHED;
33137 #if HAVE_PTHREADS > 4
33138 /* Final pthreads */
33139 pthread_attr_t attr;
33141 status = pthread_attr_init(&attr);
33142 if( status ) return status;
33144 #if HAVE_PTHREADS < 7
33145 status = pthread_attr_setdetachstate(&attr, &detach);
33146 if( status < 0 ) status = errno;
33148 status = pthread_attr_setdetachstate(&attr, detach);
33150 if( status ) return status;
33151 status = pthread_create( &t, &attr, task, NULL );
33152 #if HAVE_PTHREADS < 7
33153 if( status < 0 ) status = errno;
33155 if( status ) return status;
33157 /* Draft 4 pthreads */
33158 status = pthread_create( &t, pthread_attr_default, task, NULL );
33159 if( status ) return errno;
33161 /* give thread a chance to complete */
33162 /* it should remain joinable and hence detachable */
33165 status = pthread_detach( &t );
33166 if( status ) return errno;
33169 #ifdef HAVE_LINUX_THREADS
33170 pthread_kill_other_threads_np();
33179 rm -f conftest.$ac_objext conftest$ac_exeext
33180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33181 (eval $ac_link) 2>conftest.er1
33183 grep -v '^ *+' conftest.er1 >conftest.err
33185 cat conftest.err >&5
33186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33187 (exit $ac_status); } &&
33188 { ac_try='test -z "$ac_c_werror_flag"
33189 || test ! -s conftest.err'
33190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33191 (eval $ac_try) 2>&5
33193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33194 (exit $ac_status); }; } &&
33195 { ac_try='test -s conftest$ac_exeext'
33196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33197 (eval $ac_try) 2>&5
33199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33200 (exit $ac_status); }; }; then
33201 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
33203 echo "$as_me: failed program was:" >&5
33204 sed 's/^/| /' conftest.$ac_ext >&5
33206 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
33208 rm -f conftest.err conftest.$ac_objext \
33209 conftest$ac_exeext conftest.$ac_ext
33211 cat >conftest.$ac_ext <<_ACEOF
33213 /* pthread test headers */
33214 #include <pthread.h>
33215 #if HAVE_PTHREADS < 7
33219 #define NULL (void*)0
33222 static void *task(p)
33225 return (void *) (p == NULL);
33229 int main(argc, argv)
33234 /* pthread test function */
33235 #ifndef PTHREAD_CREATE_DETACHED
33236 #define PTHREAD_CREATE_DETACHED 1
33240 int detach = PTHREAD_CREATE_DETACHED;
33242 #if HAVE_PTHREADS > 4
33243 /* Final pthreads */
33244 pthread_attr_t attr;
33246 status = pthread_attr_init(&attr);
33247 if( status ) return status;
33249 #if HAVE_PTHREADS < 7
33250 status = pthread_attr_setdetachstate(&attr, &detach);
33251 if( status < 0 ) status = errno;
33253 status = pthread_attr_setdetachstate(&attr, detach);
33255 if( status ) return status;
33256 status = pthread_create( &t, &attr, task, NULL );
33257 #if HAVE_PTHREADS < 7
33258 if( status < 0 ) status = errno;
33260 if( status ) return status;
33262 /* Draft 4 pthreads */
33263 status = pthread_create( &t, pthread_attr_default, task, NULL );
33264 if( status ) return errno;
33266 /* give thread a chance to complete */
33267 /* it should remain joinable and hence detachable */
33270 status = pthread_detach( &t );
33271 if( status ) return errno;
33274 #ifdef HAVE_LINUX_THREADS
33275 pthread_kill_other_threads_np();
33283 rm -f conftest$ac_exeext
33284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33285 (eval $ac_link) 2>&5
33287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33288 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33290 (eval $ac_try) 2>&5
33292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33293 (exit $ac_status); }; }; then
33294 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
33296 echo "$as_me: program exited with status $ac_status" >&5
33297 echo "$as_me: failed program was:" >&5
33298 sed 's/^/| /' conftest.$ac_ext >&5
33300 ( exit $ac_status )
33301 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
33303 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33310 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
33311 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
33313 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
33314 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
33315 ol_link_threads=posix
33319 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
33320 if test "$ol_link_threads" = no ; then
33321 # try -lpthreads -lmach -lexc
33322 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
33323 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
33324 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
33325 echo $ECHO_N "(cached) $ECHO_C" >&6
33330 LIBS="-lpthreads -lmach -lexc $LIBS"
33332 if test "$cross_compiling" = yes; then
33333 cat >conftest.$ac_ext <<_ACEOF
33336 cat confdefs.h >>conftest.$ac_ext
33337 cat >>conftest.$ac_ext <<_ACEOF
33338 /* end confdefs.h. */
33340 /* pthread test headers */
33341 #include <pthread.h>
33342 #if HAVE_PTHREADS < 7
33346 #define NULL (void*)0
33349 static void *task(p)
33352 return (void *) (p == NULL);
33359 /* pthread test function */
33360 #ifndef PTHREAD_CREATE_DETACHED
33361 #define PTHREAD_CREATE_DETACHED 1
33365 int detach = PTHREAD_CREATE_DETACHED;
33367 #if HAVE_PTHREADS > 4
33368 /* Final pthreads */
33369 pthread_attr_t attr;
33371 status = pthread_attr_init(&attr);
33372 if( status ) return status;
33374 #if HAVE_PTHREADS < 7
33375 status = pthread_attr_setdetachstate(&attr, &detach);
33376 if( status < 0 ) status = errno;
33378 status = pthread_attr_setdetachstate(&attr, detach);
33380 if( status ) return status;
33381 status = pthread_create( &t, &attr, task, NULL );
33382 #if HAVE_PTHREADS < 7
33383 if( status < 0 ) status = errno;
33385 if( status ) return status;
33387 /* Draft 4 pthreads */
33388 status = pthread_create( &t, pthread_attr_default, task, NULL );
33389 if( status ) return errno;
33391 /* give thread a chance to complete */
33392 /* it should remain joinable and hence detachable */
33395 status = pthread_detach( &t );
33396 if( status ) return errno;
33399 #ifdef HAVE_LINUX_THREADS
33400 pthread_kill_other_threads_np();
33409 rm -f conftest.$ac_objext conftest$ac_exeext
33410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33411 (eval $ac_link) 2>conftest.er1
33413 grep -v '^ *+' conftest.er1 >conftest.err
33415 cat conftest.err >&5
33416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33417 (exit $ac_status); } &&
33418 { ac_try='test -z "$ac_c_werror_flag"
33419 || test ! -s conftest.err'
33420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33421 (eval $ac_try) 2>&5
33423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33424 (exit $ac_status); }; } &&
33425 { ac_try='test -s conftest$ac_exeext'
33426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33427 (eval $ac_try) 2>&5
33429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33430 (exit $ac_status); }; }; then
33431 ol_cv_pthread_lpthreads_lmach_lexc=yes
33433 echo "$as_me: failed program was:" >&5
33434 sed 's/^/| /' conftest.$ac_ext >&5
33436 ol_cv_pthread_lpthreads_lmach_lexc=no
33438 rm -f conftest.err conftest.$ac_objext \
33439 conftest$ac_exeext conftest.$ac_ext
33441 cat >conftest.$ac_ext <<_ACEOF
33443 /* pthread test headers */
33444 #include <pthread.h>
33445 #if HAVE_PTHREADS < 7
33449 #define NULL (void*)0
33452 static void *task(p)
33455 return (void *) (p == NULL);
33459 int main(argc, argv)
33464 /* pthread test function */
33465 #ifndef PTHREAD_CREATE_DETACHED
33466 #define PTHREAD_CREATE_DETACHED 1
33470 int detach = PTHREAD_CREATE_DETACHED;
33472 #if HAVE_PTHREADS > 4
33473 /* Final pthreads */
33474 pthread_attr_t attr;
33476 status = pthread_attr_init(&attr);
33477 if( status ) return status;
33479 #if HAVE_PTHREADS < 7
33480 status = pthread_attr_setdetachstate(&attr, &detach);
33481 if( status < 0 ) status = errno;
33483 status = pthread_attr_setdetachstate(&attr, detach);
33485 if( status ) return status;
33486 status = pthread_create( &t, &attr, task, NULL );
33487 #if HAVE_PTHREADS < 7
33488 if( status < 0 ) status = errno;
33490 if( status ) return status;
33492 /* Draft 4 pthreads */
33493 status = pthread_create( &t, pthread_attr_default, task, NULL );
33494 if( status ) return errno;
33496 /* give thread a chance to complete */
33497 /* it should remain joinable and hence detachable */
33500 status = pthread_detach( &t );
33501 if( status ) return errno;
33504 #ifdef HAVE_LINUX_THREADS
33505 pthread_kill_other_threads_np();
33513 rm -f conftest$ac_exeext
33514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33515 (eval $ac_link) 2>&5
33517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33518 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33520 (eval $ac_try) 2>&5
33522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33523 (exit $ac_status); }; }; then
33524 ol_cv_pthread_lpthreads_lmach_lexc=yes
33526 echo "$as_me: program exited with status $ac_status" >&5
33527 echo "$as_me: failed program was:" >&5
33528 sed 's/^/| /' conftest.$ac_ext >&5
33530 ( exit $ac_status )
33531 ol_cv_pthread_lpthreads_lmach_lexc=no
33533 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33540 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
33541 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
33543 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
33544 ol_link_pthreads="-lpthreads -lmach -lexc"
33545 ol_link_threads=posix
33549 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
33550 if test "$ol_link_threads" = no ; then
33551 # try -lpthreads -lexc
33552 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
33553 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
33554 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
33555 echo $ECHO_N "(cached) $ECHO_C" >&6
33560 LIBS="-lpthreads -lexc $LIBS"
33562 if test "$cross_compiling" = yes; then
33563 cat >conftest.$ac_ext <<_ACEOF
33566 cat confdefs.h >>conftest.$ac_ext
33567 cat >>conftest.$ac_ext <<_ACEOF
33568 /* end confdefs.h. */
33570 /* pthread test headers */
33571 #include <pthread.h>
33572 #if HAVE_PTHREADS < 7
33576 #define NULL (void*)0
33579 static void *task(p)
33582 return (void *) (p == NULL);
33589 /* pthread test function */
33590 #ifndef PTHREAD_CREATE_DETACHED
33591 #define PTHREAD_CREATE_DETACHED 1
33595 int detach = PTHREAD_CREATE_DETACHED;
33597 #if HAVE_PTHREADS > 4
33598 /* Final pthreads */
33599 pthread_attr_t attr;
33601 status = pthread_attr_init(&attr);
33602 if( status ) return status;
33604 #if HAVE_PTHREADS < 7
33605 status = pthread_attr_setdetachstate(&attr, &detach);
33606 if( status < 0 ) status = errno;
33608 status = pthread_attr_setdetachstate(&attr, detach);
33610 if( status ) return status;
33611 status = pthread_create( &t, &attr, task, NULL );
33612 #if HAVE_PTHREADS < 7
33613 if( status < 0 ) status = errno;
33615 if( status ) return status;
33617 /* Draft 4 pthreads */
33618 status = pthread_create( &t, pthread_attr_default, task, NULL );
33619 if( status ) return errno;
33621 /* give thread a chance to complete */
33622 /* it should remain joinable and hence detachable */
33625 status = pthread_detach( &t );
33626 if( status ) return errno;
33629 #ifdef HAVE_LINUX_THREADS
33630 pthread_kill_other_threads_np();
33639 rm -f conftest.$ac_objext conftest$ac_exeext
33640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33641 (eval $ac_link) 2>conftest.er1
33643 grep -v '^ *+' conftest.er1 >conftest.err
33645 cat conftest.err >&5
33646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33647 (exit $ac_status); } &&
33648 { ac_try='test -z "$ac_c_werror_flag"
33649 || test ! -s conftest.err'
33650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33651 (eval $ac_try) 2>&5
33653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33654 (exit $ac_status); }; } &&
33655 { ac_try='test -s conftest$ac_exeext'
33656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33657 (eval $ac_try) 2>&5
33659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33660 (exit $ac_status); }; }; then
33661 ol_cv_pthread_lpthreads_lexc=yes
33663 echo "$as_me: failed program was:" >&5
33664 sed 's/^/| /' conftest.$ac_ext >&5
33666 ol_cv_pthread_lpthreads_lexc=no
33668 rm -f conftest.err conftest.$ac_objext \
33669 conftest$ac_exeext conftest.$ac_ext
33671 cat >conftest.$ac_ext <<_ACEOF
33673 /* pthread test headers */
33674 #include <pthread.h>
33675 #if HAVE_PTHREADS < 7
33679 #define NULL (void*)0
33682 static void *task(p)
33685 return (void *) (p == NULL);
33689 int main(argc, argv)
33694 /* pthread test function */
33695 #ifndef PTHREAD_CREATE_DETACHED
33696 #define PTHREAD_CREATE_DETACHED 1
33700 int detach = PTHREAD_CREATE_DETACHED;
33702 #if HAVE_PTHREADS > 4
33703 /* Final pthreads */
33704 pthread_attr_t attr;
33706 status = pthread_attr_init(&attr);
33707 if( status ) return status;
33709 #if HAVE_PTHREADS < 7
33710 status = pthread_attr_setdetachstate(&attr, &detach);
33711 if( status < 0 ) status = errno;
33713 status = pthread_attr_setdetachstate(&attr, detach);
33715 if( status ) return status;
33716 status = pthread_create( &t, &attr, task, NULL );
33717 #if HAVE_PTHREADS < 7
33718 if( status < 0 ) status = errno;
33720 if( status ) return status;
33722 /* Draft 4 pthreads */
33723 status = pthread_create( &t, pthread_attr_default, task, NULL );
33724 if( status ) return errno;
33726 /* give thread a chance to complete */
33727 /* it should remain joinable and hence detachable */
33730 status = pthread_detach( &t );
33731 if( status ) return errno;
33734 #ifdef HAVE_LINUX_THREADS
33735 pthread_kill_other_threads_np();
33743 rm -f conftest$ac_exeext
33744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33745 (eval $ac_link) 2>&5
33747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33748 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33750 (eval $ac_try) 2>&5
33752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33753 (exit $ac_status); }; }; then
33754 ol_cv_pthread_lpthreads_lexc=yes
33756 echo "$as_me: program exited with status $ac_status" >&5
33757 echo "$as_me: failed program was:" >&5
33758 sed 's/^/| /' conftest.$ac_ext >&5
33760 ( exit $ac_status )
33761 ol_cv_pthread_lpthreads_lexc=no
33763 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33770 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
33771 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
33773 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
33774 ol_link_pthreads="-lpthreads -lexc"
33775 ol_link_threads=posix
33780 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
33781 if test "$ol_link_threads" = no ; then
33783 echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
33784 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
33785 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
33786 echo $ECHO_N "(cached) $ECHO_C" >&6
33791 LIBS="-lpthreads $LIBS"
33793 if test "$cross_compiling" = yes; then
33794 cat >conftest.$ac_ext <<_ACEOF
33797 cat confdefs.h >>conftest.$ac_ext
33798 cat >>conftest.$ac_ext <<_ACEOF
33799 /* end confdefs.h. */
33801 /* pthread test headers */
33802 #include <pthread.h>
33803 #if HAVE_PTHREADS < 7
33807 #define NULL (void*)0
33810 static void *task(p)
33813 return (void *) (p == NULL);
33820 /* pthread test function */
33821 #ifndef PTHREAD_CREATE_DETACHED
33822 #define PTHREAD_CREATE_DETACHED 1
33826 int detach = PTHREAD_CREATE_DETACHED;
33828 #if HAVE_PTHREADS > 4
33829 /* Final pthreads */
33830 pthread_attr_t attr;
33832 status = pthread_attr_init(&attr);
33833 if( status ) return status;
33835 #if HAVE_PTHREADS < 7
33836 status = pthread_attr_setdetachstate(&attr, &detach);
33837 if( status < 0 ) status = errno;
33839 status = pthread_attr_setdetachstate(&attr, detach);
33841 if( status ) return status;
33842 status = pthread_create( &t, &attr, task, NULL );
33843 #if HAVE_PTHREADS < 7
33844 if( status < 0 ) status = errno;
33846 if( status ) return status;
33848 /* Draft 4 pthreads */
33849 status = pthread_create( &t, pthread_attr_default, task, NULL );
33850 if( status ) return errno;
33852 /* give thread a chance to complete */
33853 /* it should remain joinable and hence detachable */
33856 status = pthread_detach( &t );
33857 if( status ) return errno;
33860 #ifdef HAVE_LINUX_THREADS
33861 pthread_kill_other_threads_np();
33870 rm -f conftest.$ac_objext conftest$ac_exeext
33871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33872 (eval $ac_link) 2>conftest.er1
33874 grep -v '^ *+' conftest.er1 >conftest.err
33876 cat conftest.err >&5
33877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33878 (exit $ac_status); } &&
33879 { ac_try='test -z "$ac_c_werror_flag"
33880 || test ! -s conftest.err'
33881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33882 (eval $ac_try) 2>&5
33884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33885 (exit $ac_status); }; } &&
33886 { ac_try='test -s conftest$ac_exeext'
33887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33888 (eval $ac_try) 2>&5
33890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33891 (exit $ac_status); }; }; then
33892 ol_cv_pthread_lib_lpthreads=yes
33894 echo "$as_me: failed program was:" >&5
33895 sed 's/^/| /' conftest.$ac_ext >&5
33897 ol_cv_pthread_lib_lpthreads=no
33899 rm -f conftest.err conftest.$ac_objext \
33900 conftest$ac_exeext conftest.$ac_ext
33902 cat >conftest.$ac_ext <<_ACEOF
33904 /* pthread test headers */
33905 #include <pthread.h>
33906 #if HAVE_PTHREADS < 7
33910 #define NULL (void*)0
33913 static void *task(p)
33916 return (void *) (p == NULL);
33920 int main(argc, argv)
33925 /* pthread test function */
33926 #ifndef PTHREAD_CREATE_DETACHED
33927 #define PTHREAD_CREATE_DETACHED 1
33931 int detach = PTHREAD_CREATE_DETACHED;
33933 #if HAVE_PTHREADS > 4
33934 /* Final pthreads */
33935 pthread_attr_t attr;
33937 status = pthread_attr_init(&attr);
33938 if( status ) return status;
33940 #if HAVE_PTHREADS < 7
33941 status = pthread_attr_setdetachstate(&attr, &detach);
33942 if( status < 0 ) status = errno;
33944 status = pthread_attr_setdetachstate(&attr, detach);
33946 if( status ) return status;
33947 status = pthread_create( &t, &attr, task, NULL );
33948 #if HAVE_PTHREADS < 7
33949 if( status < 0 ) status = errno;
33951 if( status ) return status;
33953 /* Draft 4 pthreads */
33954 status = pthread_create( &t, pthread_attr_default, task, NULL );
33955 if( status ) return errno;
33957 /* give thread a chance to complete */
33958 /* it should remain joinable and hence detachable */
33961 status = pthread_detach( &t );
33962 if( status ) return errno;
33965 #ifdef HAVE_LINUX_THREADS
33966 pthread_kill_other_threads_np();
33974 rm -f conftest$ac_exeext
33975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33976 (eval $ac_link) 2>&5
33978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33979 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33981 (eval $ac_try) 2>&5
33983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33984 (exit $ac_status); }; }; then
33985 ol_cv_pthread_lib_lpthreads=yes
33987 echo "$as_me: program exited with status $ac_status" >&5
33988 echo "$as_me: failed program was:" >&5
33989 sed 's/^/| /' conftest.$ac_ext >&5
33991 ( exit $ac_status )
33992 ol_cv_pthread_lib_lpthreads=no
33994 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34001 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
34002 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
34004 if test $ol_cv_pthread_lib_lpthreads = yes ; then
34005 ol_link_pthreads="-lpthreads"
34006 ol_link_threads=posix
34011 if test $ol_link_threads != no ; then
34012 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
34014 save_CPPFLAGS="$CPPFLAGS"
34016 LIBS="$LTHREAD_LIBS $LIBS"
34021 for ac_func in sched_yield pthread_yield thr_yield
34023 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34024 echo "$as_me:$LINENO: checking for $ac_func" >&5
34025 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34026 if eval "test \"\${$as_ac_var+set}\" = set"; then
34027 echo $ECHO_N "(cached) $ECHO_C" >&6
34029 cat >conftest.$ac_ext <<_ACEOF
34032 cat confdefs.h >>conftest.$ac_ext
34033 cat >>conftest.$ac_ext <<_ACEOF
34034 /* end confdefs.h. */
34035 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34036 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34037 #define $ac_func innocuous_$ac_func
34039 /* System header to define __stub macros and hopefully few prototypes,
34040 which can conflict with char $ac_func (); below.
34041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34042 <limits.h> exists even on freestanding compilers. */
34045 # include <limits.h>
34047 # include <assert.h>
34052 /* Override any gcc2 internal prototype to avoid an error. */
34057 /* We use char because int might match the return type of a gcc2
34058 builtin and then its argument prototype would still apply. */
34060 /* The GNU C library defines this for functions which it implements
34061 to always fail with ENOSYS. Some functions are actually named
34062 something starting with __ and the normal name is an alias. */
34063 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34066 char (*f) () = $ac_func;
34075 return f != $ac_func;
34080 rm -f conftest.$ac_objext conftest$ac_exeext
34081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34082 (eval $ac_link) 2>conftest.er1
34084 grep -v '^ *+' conftest.er1 >conftest.err
34086 cat conftest.err >&5
34087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34088 (exit $ac_status); } &&
34089 { ac_try='test -z "$ac_c_werror_flag"
34090 || test ! -s conftest.err'
34091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34092 (eval $ac_try) 2>&5
34094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34095 (exit $ac_status); }; } &&
34096 { ac_try='test -s conftest$ac_exeext'
34097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34098 (eval $ac_try) 2>&5
34100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34101 (exit $ac_status); }; }; then
34102 eval "$as_ac_var=yes"
34104 echo "$as_me: failed program was:" >&5
34105 sed 's/^/| /' conftest.$ac_ext >&5
34107 eval "$as_ac_var=no"
34109 rm -f conftest.err conftest.$ac_objext \
34110 conftest$ac_exeext conftest.$ac_ext
34112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34113 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34114 if test `eval echo '${'$as_ac_var'}'` = yes; then
34115 cat >>confdefs.h <<_ACEOF
34116 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34123 if test $ac_cv_func_sched_yield = no -a \
34124 $ac_cv_func_pthread_yield = no -a \
34125 $ac_cv_func_thr_yield = no ; then
34126 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
34127 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
34128 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
34129 echo $ECHO_N "(cached) $ECHO_C" >&6
34131 ac_check_lib_save_LIBS=$LIBS
34133 cat >conftest.$ac_ext <<_ACEOF
34136 cat confdefs.h >>conftest.$ac_ext
34137 cat >>conftest.$ac_ext <<_ACEOF
34138 /* end confdefs.h. */
34140 /* Override any gcc2 internal prototype to avoid an error. */
34144 /* We use char because int might match the return type of a gcc2
34145 builtin and then its argument prototype would still apply. */
34146 char sched_yield ();
34155 rm -f conftest.$ac_objext conftest$ac_exeext
34156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34157 (eval $ac_link) 2>conftest.er1
34159 grep -v '^ *+' conftest.er1 >conftest.err
34161 cat conftest.err >&5
34162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34163 (exit $ac_status); } &&
34164 { ac_try='test -z "$ac_c_werror_flag"
34165 || test ! -s conftest.err'
34166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34167 (eval $ac_try) 2>&5
34169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34170 (exit $ac_status); }; } &&
34171 { ac_try='test -s conftest$ac_exeext'
34172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34173 (eval $ac_try) 2>&5
34175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34176 (exit $ac_status); }; }; then
34177 ac_cv_lib_rt_sched_yield=yes
34179 echo "$as_me: failed program was:" >&5
34180 sed 's/^/| /' conftest.$ac_ext >&5
34182 ac_cv_lib_rt_sched_yield=no
34184 rm -f conftest.err conftest.$ac_objext \
34185 conftest$ac_exeext conftest.$ac_ext
34186 LIBS=$ac_check_lib_save_LIBS
34188 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
34189 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
34190 if test $ac_cv_lib_rt_sched_yield = yes; then
34191 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
34193 cat >>confdefs.h <<\_ACEOF
34194 #define HAVE_SCHED_YIELD 1
34197 ac_cv_func_sched_yield=yes
34199 ac_cv_func_sched_yield=no
34203 if test $ac_cv_func_sched_yield = no -a \
34204 $ac_cv_func_pthread_yield = no -a \
34205 "$ac_cv_func_thr_yield" = no ; then
34206 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
34207 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
34212 for ac_func in pthread_kill pthread_rwlock_destroy
34214 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34215 echo "$as_me:$LINENO: checking for $ac_func" >&5
34216 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34217 if eval "test \"\${$as_ac_var+set}\" = set"; then
34218 echo $ECHO_N "(cached) $ECHO_C" >&6
34220 cat >conftest.$ac_ext <<_ACEOF
34223 cat confdefs.h >>conftest.$ac_ext
34224 cat >>conftest.$ac_ext <<_ACEOF
34225 /* end confdefs.h. */
34226 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34228 #define $ac_func innocuous_$ac_func
34230 /* System header to define __stub macros and hopefully few prototypes,
34231 which can conflict with char $ac_func (); below.
34232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34233 <limits.h> exists even on freestanding compilers. */
34236 # include <limits.h>
34238 # include <assert.h>
34243 /* Override any gcc2 internal prototype to avoid an error. */
34248 /* We use char because int might match the return type of a gcc2
34249 builtin and then its argument prototype would still apply. */
34251 /* The GNU C library defines this for functions which it implements
34252 to always fail with ENOSYS. Some functions are actually named
34253 something starting with __ and the normal name is an alias. */
34254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34257 char (*f) () = $ac_func;
34266 return f != $ac_func;
34271 rm -f conftest.$ac_objext conftest$ac_exeext
34272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34273 (eval $ac_link) 2>conftest.er1
34275 grep -v '^ *+' conftest.er1 >conftest.err
34277 cat conftest.err >&5
34278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34279 (exit $ac_status); } &&
34280 { ac_try='test -z "$ac_c_werror_flag"
34281 || test ! -s conftest.err'
34282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34283 (eval $ac_try) 2>&5
34285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34286 (exit $ac_status); }; } &&
34287 { ac_try='test -s conftest$ac_exeext'
34288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34289 (eval $ac_try) 2>&5
34291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34292 (exit $ac_status); }; }; then
34293 eval "$as_ac_var=yes"
34295 echo "$as_me: failed program was:" >&5
34296 sed 's/^/| /' conftest.$ac_ext >&5
34298 eval "$as_ac_var=no"
34300 rm -f conftest.err conftest.$ac_objext \
34301 conftest$ac_exeext conftest.$ac_ext
34303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34304 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34305 if test `eval echo '${'$as_ac_var'}'` = yes; then
34306 cat >>confdefs.h <<_ACEOF
34307 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34314 echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
34315 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
34316 if test "${ol_cv_func_pthread_detach+set}" = set; then
34317 echo $ECHO_N "(cached) $ECHO_C" >&6
34320 cat >conftest.$ac_ext <<_ACEOF
34323 cat confdefs.h >>conftest.$ac_ext
34324 cat >>conftest.$ac_ext <<_ACEOF
34325 /* end confdefs.h. */
34327 #include <pthread.h>
34329 #define NULL (void*)0
34335 pthread_detach(NULL);
34340 rm -f conftest.$ac_objext conftest$ac_exeext
34341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34342 (eval $ac_link) 2>conftest.er1
34344 grep -v '^ *+' conftest.er1 >conftest.err
34346 cat conftest.err >&5
34347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34348 (exit $ac_status); } &&
34349 { ac_try='test -z "$ac_c_werror_flag"
34350 || test ! -s conftest.err'
34351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34352 (eval $ac_try) 2>&5
34354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34355 (exit $ac_status); }; } &&
34356 { ac_try='test -s conftest$ac_exeext'
34357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34358 (eval $ac_try) 2>&5
34360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34361 (exit $ac_status); }; }; then
34362 ol_cv_func_pthread_detach=yes
34364 echo "$as_me: failed program was:" >&5
34365 sed 's/^/| /' conftest.$ac_ext >&5
34367 ol_cv_func_pthread_detach=no
34369 rm -f conftest.err conftest.$ac_objext \
34370 conftest$ac_exeext conftest.$ac_ext
34373 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
34374 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
34376 if test $ol_cv_func_pthread_detach = no ; then
34377 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
34378 echo "$as_me: error: could not locate pthread_detach()" >&2;}
34379 { (exit 1); exit 1; }; }
34383 cat >>confdefs.h <<\_ACEOF
34384 #define HAVE_PTHREAD_DETACH 1
34393 pthread_setconcurrency \
34394 pthread_getconcurrency \
34395 thr_setconcurrency \
34396 thr_getconcurrency \
34399 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34400 echo "$as_me:$LINENO: checking for $ac_func" >&5
34401 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34402 if eval "test \"\${$as_ac_var+set}\" = set"; then
34403 echo $ECHO_N "(cached) $ECHO_C" >&6
34405 cat >conftest.$ac_ext <<_ACEOF
34408 cat confdefs.h >>conftest.$ac_ext
34409 cat >>conftest.$ac_ext <<_ACEOF
34410 /* end confdefs.h. */
34411 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34412 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34413 #define $ac_func innocuous_$ac_func
34415 /* System header to define __stub macros and hopefully few prototypes,
34416 which can conflict with char $ac_func (); below.
34417 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34418 <limits.h> exists even on freestanding compilers. */
34421 # include <limits.h>
34423 # include <assert.h>
34428 /* Override any gcc2 internal prototype to avoid an error. */
34433 /* We use char because int might match the return type of a gcc2
34434 builtin and then its argument prototype would still apply. */
34436 /* The GNU C library defines this for functions which it implements
34437 to always fail with ENOSYS. Some functions are actually named
34438 something starting with __ and the normal name is an alias. */
34439 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34442 char (*f) () = $ac_func;
34451 return f != $ac_func;
34456 rm -f conftest.$ac_objext conftest$ac_exeext
34457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34458 (eval $ac_link) 2>conftest.er1
34460 grep -v '^ *+' conftest.er1 >conftest.err
34462 cat conftest.err >&5
34463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34464 (exit $ac_status); } &&
34465 { ac_try='test -z "$ac_c_werror_flag"
34466 || test ! -s conftest.err'
34467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34468 (eval $ac_try) 2>&5
34470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34471 (exit $ac_status); }; } &&
34472 { ac_try='test -s conftest$ac_exeext'
34473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34474 (eval $ac_try) 2>&5
34476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34477 (exit $ac_status); }; }; then
34478 eval "$as_ac_var=yes"
34480 echo "$as_me: failed program was:" >&5
34481 sed 's/^/| /' conftest.$ac_ext >&5
34483 eval "$as_ac_var=no"
34485 rm -f conftest.err conftest.$ac_objext \
34486 conftest$ac_exeext conftest.$ac_ext
34488 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34489 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34490 if test `eval echo '${'$as_ac_var'}'` = yes; then
34491 cat >>confdefs.h <<_ACEOF
34492 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34501 for ac_func in pthread_kill_other_threads_np
34503 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34504 echo "$as_me:$LINENO: checking for $ac_func" >&5
34505 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34506 if eval "test \"\${$as_ac_var+set}\" = set"; then
34507 echo $ECHO_N "(cached) $ECHO_C" >&6
34509 cat >conftest.$ac_ext <<_ACEOF
34512 cat confdefs.h >>conftest.$ac_ext
34513 cat >>conftest.$ac_ext <<_ACEOF
34514 /* end confdefs.h. */
34515 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34517 #define $ac_func innocuous_$ac_func
34519 /* System header to define __stub macros and hopefully few prototypes,
34520 which can conflict with char $ac_func (); below.
34521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34522 <limits.h> exists even on freestanding compilers. */
34525 # include <limits.h>
34527 # include <assert.h>
34532 /* Override any gcc2 internal prototype to avoid an error. */
34537 /* We use char because int might match the return type of a gcc2
34538 builtin and then its argument prototype would still apply. */
34540 /* The GNU C library defines this for functions which it implements
34541 to always fail with ENOSYS. Some functions are actually named
34542 something starting with __ and the normal name is an alias. */
34543 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34546 char (*f) () = $ac_func;
34555 return f != $ac_func;
34560 rm -f conftest.$ac_objext conftest$ac_exeext
34561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34562 (eval $ac_link) 2>conftest.er1
34564 grep -v '^ *+' conftest.er1 >conftest.err
34566 cat conftest.err >&5
34567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34568 (exit $ac_status); } &&
34569 { ac_try='test -z "$ac_c_werror_flag"
34570 || test ! -s conftest.err'
34571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34572 (eval $ac_try) 2>&5
34574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34575 (exit $ac_status); }; } &&
34576 { ac_try='test -s conftest$ac_exeext'
34577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34578 (eval $ac_try) 2>&5
34580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34581 (exit $ac_status); }; }; then
34582 eval "$as_ac_var=yes"
34584 echo "$as_me: failed program was:" >&5
34585 sed 's/^/| /' conftest.$ac_ext >&5
34587 eval "$as_ac_var=no"
34589 rm -f conftest.err conftest.$ac_objext \
34590 conftest$ac_exeext conftest.$ac_ext
34592 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34593 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34594 if test `eval echo '${'$as_ac_var'}'` = yes; then
34595 cat >>confdefs.h <<_ACEOF
34596 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34602 echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
34603 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
34604 if test "${ol_cv_sys_linux_threads+set}" = set; then
34605 echo $ECHO_N "(cached) $ECHO_C" >&6
34607 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
34609 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
34610 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
34615 echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
34616 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
34617 if test "${ol_cv_linux_threads+set}" = set; then
34618 echo $ECHO_N "(cached) $ECHO_C" >&6
34621 if test $ol_cv_header_linux_threads = yes -a \
34622 $ol_cv_sys_linux_threads = yes; then
34623 ol_cv_linux_threads=yes
34624 elif test $ol_cv_header_linux_threads = no -a \
34625 $ol_cv_sys_linux_threads = no; then
34626 ol_cv_linux_threads=no
34628 ol_cv_linux_threads=error
34632 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
34633 echo "${ECHO_T}$ol_cv_linux_threads" >&6
34636 if test $ol_cv_linux_threads = error; then
34637 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
34638 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
34639 { (exit 1); exit 1; }; };
34642 echo "$as_me:$LINENO: checking if pthread_create() works" >&5
34643 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
34644 if test "${ol_cv_pthread_create_works+set}" = set; then
34645 echo $ECHO_N "(cached) $ECHO_C" >&6
34648 if test "$cross_compiling" = yes; then
34649 ol_cv_pthread_create_works=yes
34651 cat >conftest.$ac_ext <<_ACEOF
34653 /* pthread test headers */
34654 #include <pthread.h>
34655 #if HAVE_PTHREADS < 7
34659 #define NULL (void*)0
34662 static void *task(p)
34665 return (void *) (p == NULL);
34669 int main(argc, argv)
34674 /* pthread test function */
34675 #ifndef PTHREAD_CREATE_DETACHED
34676 #define PTHREAD_CREATE_DETACHED 1
34680 int detach = PTHREAD_CREATE_DETACHED;
34682 #if HAVE_PTHREADS > 4
34683 /* Final pthreads */
34684 pthread_attr_t attr;
34686 status = pthread_attr_init(&attr);
34687 if( status ) return status;
34689 #if HAVE_PTHREADS < 7
34690 status = pthread_attr_setdetachstate(&attr, &detach);
34691 if( status < 0 ) status = errno;
34693 status = pthread_attr_setdetachstate(&attr, detach);
34695 if( status ) return status;
34696 status = pthread_create( &t, &attr, task, NULL );
34697 #if HAVE_PTHREADS < 7
34698 if( status < 0 ) status = errno;
34700 if( status ) return status;
34702 /* Draft 4 pthreads */
34703 status = pthread_create( &t, pthread_attr_default, task, NULL );
34704 if( status ) return errno;
34706 /* give thread a chance to complete */
34707 /* it should remain joinable and hence detachable */
34710 status = pthread_detach( &t );
34711 if( status ) return errno;
34714 #ifdef HAVE_LINUX_THREADS
34715 pthread_kill_other_threads_np();
34723 rm -f conftest$ac_exeext
34724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34725 (eval $ac_link) 2>&5
34727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34728 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34730 (eval $ac_try) 2>&5
34732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34733 (exit $ac_status); }; }; then
34734 ol_cv_pthread_create_works=yes
34736 echo "$as_me: program exited with status $ac_status" >&5
34737 echo "$as_me: failed program was:" >&5
34738 sed 's/^/| /' conftest.$ac_ext >&5
34740 ( exit $ac_status )
34741 ol_cv_pthread_create_works=no
34743 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34746 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
34747 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
34749 if test $ol_cv_pthread_create_works = no ; then
34750 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
34751 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
34752 { (exit 1); exit 1; }; }
34755 if test $ol_with_yielding_select = auto ; then
34756 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
34757 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
34758 if test "${ol_cv_pthread_select_yields+set}" = set; then
34759 echo $ECHO_N "(cached) $ECHO_C" >&6
34762 if test "$cross_compiling" = yes; then
34763 ol_cv_pthread_select_yields=cross
34765 cat >conftest.$ac_ext <<_ACEOF
34768 cat confdefs.h >>conftest.$ac_ext
34769 cat >>conftest.$ac_ext <<_ACEOF
34770 /* end confdefs.h. */
34772 #include <sys/types.h>
34773 #include <sys/time.h>
34774 #include <unistd.h>
34775 #include <pthread.h>
34777 #define NULL (void*) 0
34780 static int fildes[2];
34782 static void *task(p)
34794 FD_SET(fildes[0], &rfds);
34796 /* we're not interested in any fds */
34797 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
34804 exit(0); /* if we exit here, the select blocked the whole process */
34807 int main(argc, argv)
34813 /* create a pipe to select */
34814 if(pipe(&fildes[0])) {
34819 #ifdef HAVE_PTHREAD_SETCONCURRENCY
34820 (void) pthread_setconcurrency(2);
34822 #ifdef HAVE_THR_SETCONCURRENCY
34823 /* Set Solaris LWP concurrency to 2 */
34824 thr_setconcurrency(2);
34828 #if HAVE_PTHREADS < 6
34829 pthread_create(&t, pthread_attr_default, task, NULL);
34831 pthread_create(&t, NULL, task, NULL);
34834 /* make sure task runs first */
34837 #elif defined( HAVE_SCHED_YIELD )
34839 #elif defined( HAVE_PTHREAD_YIELD )
34846 rm -f conftest$ac_exeext
34847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34848 (eval $ac_link) 2>&5
34850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34851 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34853 (eval $ac_try) 2>&5
34855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34856 (exit $ac_status); }; }; then
34857 ol_cv_pthread_select_yields=no
34859 echo "$as_me: program exited with status $ac_status" >&5
34860 echo "$as_me: failed program was:" >&5
34861 sed 's/^/| /' conftest.$ac_ext >&5
34863 ( exit $ac_status )
34864 ol_cv_pthread_select_yields=yes
34866 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34869 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
34870 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
34872 if test $ol_cv_pthread_select_yields = cross ; then
34873 { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
34874 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
34875 { (exit 1); exit 1; }; }
34878 if test $ol_cv_pthread_select_yields = yes ; then
34879 ol_with_yielding_select=yes
34883 CPPFLAGS="$save_CPPFLAGS"
34886 { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
34887 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
34888 { (exit 1); exit 1; }; }
34892 if test $ol_with_threads = posix ; then
34893 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
34894 echo "$as_me: error: could not locate POSIX Threads" >&2;}
34895 { (exit 1); exit 1; }; }
34899 if test $ol_with_threads = auto -o $ol_with_threads = yes \
34900 -o $ol_with_threads = mach ; then
34904 for ac_header in mach/cthreads.h cthreads.h
34906 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34907 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34908 echo "$as_me:$LINENO: checking for $ac_header" >&5
34909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34911 echo $ECHO_N "(cached) $ECHO_C" >&6
34913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34914 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34916 # Is the header compilable?
34917 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34918 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34919 cat >conftest.$ac_ext <<_ACEOF
34922 cat confdefs.h >>conftest.$ac_ext
34923 cat >>conftest.$ac_ext <<_ACEOF
34924 /* end confdefs.h. */
34925 $ac_includes_default
34926 #include <$ac_header>
34928 rm -f conftest.$ac_objext
34929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34930 (eval $ac_compile) 2>conftest.er1
34932 grep -v '^ *+' conftest.er1 >conftest.err
34934 cat conftest.err >&5
34935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34936 (exit $ac_status); } &&
34937 { ac_try='test -z "$ac_c_werror_flag"
34938 || test ! -s conftest.err'
34939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34940 (eval $ac_try) 2>&5
34942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34943 (exit $ac_status); }; } &&
34944 { ac_try='test -s conftest.$ac_objext'
34945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34946 (eval $ac_try) 2>&5
34948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34949 (exit $ac_status); }; }; then
34950 ac_header_compiler=yes
34952 echo "$as_me: failed program was:" >&5
34953 sed 's/^/| /' conftest.$ac_ext >&5
34955 ac_header_compiler=no
34957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34958 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34959 echo "${ECHO_T}$ac_header_compiler" >&6
34961 # Is the header present?
34962 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34963 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34964 cat >conftest.$ac_ext <<_ACEOF
34967 cat confdefs.h >>conftest.$ac_ext
34968 cat >>conftest.$ac_ext <<_ACEOF
34969 /* end confdefs.h. */
34970 #include <$ac_header>
34972 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34973 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34975 grep -v '^ *+' conftest.er1 >conftest.err
34977 cat conftest.err >&5
34978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34979 (exit $ac_status); } >/dev/null; then
34980 if test -s conftest.err; then
34981 ac_cpp_err=$ac_c_preproc_warn_flag
34982 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34989 if test -z "$ac_cpp_err"; then
34990 ac_header_preproc=yes
34992 echo "$as_me: failed program was:" >&5
34993 sed 's/^/| /' conftest.$ac_ext >&5
34995 ac_header_preproc=no
34997 rm -f conftest.err conftest.$ac_ext
34998 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34999 echo "${ECHO_T}$ac_header_preproc" >&6
35001 # So? What about this header?
35002 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35004 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35005 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35006 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35007 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35008 ac_header_preproc=yes
35011 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35012 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35013 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35014 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35015 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35016 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35017 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35018 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35019 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35020 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35021 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35022 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35025 ## ------------------------------------------ ##
35026 ## Report this to the AC_PACKAGE_NAME lists. ##
35027 ## ------------------------------------------ ##
35030 sed "s/^/$as_me: WARNING: /" >&2
35033 echo "$as_me:$LINENO: checking for $ac_header" >&5
35034 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35035 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35036 echo $ECHO_N "(cached) $ECHO_C" >&6
35038 eval "$as_ac_Header=\$ac_header_preproc"
35040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35041 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35044 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35045 cat >>confdefs.h <<_ACEOF
35046 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35053 if test $ac_cv_header_mach_cthreads_h = yes ; then
35054 ol_with_threads=found
35056 echo "$as_me:$LINENO: checking for cthread_fork" >&5
35057 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
35058 if test "${ac_cv_func_cthread_fork+set}" = set; then
35059 echo $ECHO_N "(cached) $ECHO_C" >&6
35061 cat >conftest.$ac_ext <<_ACEOF
35064 cat confdefs.h >>conftest.$ac_ext
35065 cat >>conftest.$ac_ext <<_ACEOF
35066 /* end confdefs.h. */
35067 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
35068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35069 #define cthread_fork innocuous_cthread_fork
35071 /* System header to define __stub macros and hopefully few prototypes,
35072 which can conflict with char cthread_fork (); below.
35073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35074 <limits.h> exists even on freestanding compilers. */
35077 # include <limits.h>
35079 # include <assert.h>
35082 #undef cthread_fork
35084 /* Override any gcc2 internal prototype to avoid an error. */
35089 /* We use char because int might match the return type of a gcc2
35090 builtin and then its argument prototype would still apply. */
35091 char cthread_fork ();
35092 /* The GNU C library defines this for functions which it implements
35093 to always fail with ENOSYS. Some functions are actually named
35094 something starting with __ and the normal name is an alias. */
35095 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
35098 char (*f) () = cthread_fork;
35107 return f != cthread_fork;
35112 rm -f conftest.$ac_objext conftest$ac_exeext
35113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35114 (eval $ac_link) 2>conftest.er1
35116 grep -v '^ *+' conftest.er1 >conftest.err
35118 cat conftest.err >&5
35119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35120 (exit $ac_status); } &&
35121 { ac_try='test -z "$ac_c_werror_flag"
35122 || test ! -s conftest.err'
35123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35124 (eval $ac_try) 2>&5
35126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35127 (exit $ac_status); }; } &&
35128 { ac_try='test -s conftest$ac_exeext'
35129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35130 (eval $ac_try) 2>&5
35132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35133 (exit $ac_status); }; }; then
35134 ac_cv_func_cthread_fork=yes
35136 echo "$as_me: failed program was:" >&5
35137 sed 's/^/| /' conftest.$ac_ext >&5
35139 ac_cv_func_cthread_fork=no
35141 rm -f conftest.err conftest.$ac_objext \
35142 conftest$ac_exeext conftest.$ac_ext
35144 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
35145 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
35146 if test $ac_cv_func_cthread_fork = yes; then
35147 ol_link_threads=yes
35151 if test $ol_link_threads = no ; then
35152 echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
35153 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
35154 if test "${ol_cv_cthread_all_load+set}" = set; then
35155 echo $ECHO_N "(cached) $ECHO_C" >&6
35159 LIBS="-all_load $LIBS"
35160 cat >conftest.$ac_ext <<_ACEOF
35163 cat confdefs.h >>conftest.$ac_ext
35164 cat >>conftest.$ac_ext <<_ACEOF
35165 /* end confdefs.h. */
35166 #include <mach/cthreads.h>
35171 cthread_fork((void *)0, (void *)0);
35177 rm -f conftest.$ac_objext conftest$ac_exeext
35178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35179 (eval $ac_link) 2>conftest.er1
35181 grep -v '^ *+' conftest.er1 >conftest.err
35183 cat conftest.err >&5
35184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35185 (exit $ac_status); } &&
35186 { ac_try='test -z "$ac_c_werror_flag"
35187 || test ! -s conftest.err'
35188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35189 (eval $ac_try) 2>&5
35191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35192 (exit $ac_status); }; } &&
35193 { ac_try='test -s conftest$ac_exeext'
35194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35195 (eval $ac_try) 2>&5
35197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35198 (exit $ac_status); }; }; then
35199 ol_cv_cthread_all_load=yes
35201 echo "$as_me: failed program was:" >&5
35202 sed 's/^/| /' conftest.$ac_ext >&5
35204 ol_cv_cthread_all_load=no
35206 rm -f conftest.err conftest.$ac_objext \
35207 conftest$ac_exeext conftest.$ac_ext
35211 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
35212 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
35214 if test $ol_cv_cthread_all_load = yes ; then
35215 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
35216 ol_link_threads=mach
35217 ol_with_threads=found
35221 elif test $ac_cv_header_cthreads_h = yes ; then
35223 ol_with_threads=found
35226 LIBS="$LIBS -lthreads"
35227 echo "$as_me:$LINENO: checking for cthread_fork" >&5
35228 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
35229 if test "${ac_cv_func_cthread_fork+set}" = set; then
35230 echo $ECHO_N "(cached) $ECHO_C" >&6
35232 cat >conftest.$ac_ext <<_ACEOF
35235 cat confdefs.h >>conftest.$ac_ext
35236 cat >>conftest.$ac_ext <<_ACEOF
35237 /* end confdefs.h. */
35238 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
35239 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35240 #define cthread_fork innocuous_cthread_fork
35242 /* System header to define __stub macros and hopefully few prototypes,
35243 which can conflict with char cthread_fork (); below.
35244 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35245 <limits.h> exists even on freestanding compilers. */
35248 # include <limits.h>
35250 # include <assert.h>
35253 #undef cthread_fork
35255 /* Override any gcc2 internal prototype to avoid an error. */
35260 /* We use char because int might match the return type of a gcc2
35261 builtin and then its argument prototype would still apply. */
35262 char cthread_fork ();
35263 /* The GNU C library defines this for functions which it implements
35264 to always fail with ENOSYS. Some functions are actually named
35265 something starting with __ and the normal name is an alias. */
35266 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
35269 char (*f) () = cthread_fork;
35278 return f != cthread_fork;
35283 rm -f conftest.$ac_objext conftest$ac_exeext
35284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35285 (eval $ac_link) 2>conftest.er1
35287 grep -v '^ *+' conftest.er1 >conftest.err
35289 cat conftest.err >&5
35290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35291 (exit $ac_status); } &&
35292 { ac_try='test -z "$ac_c_werror_flag"
35293 || test ! -s conftest.err'
35294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35295 (eval $ac_try) 2>&5
35297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35298 (exit $ac_status); }; } &&
35299 { ac_try='test -s conftest$ac_exeext'
35300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35301 (eval $ac_try) 2>&5
35303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35304 (exit $ac_status); }; }; then
35305 ac_cv_func_cthread_fork=yes
35307 echo "$as_me: failed program was:" >&5
35308 sed 's/^/| /' conftest.$ac_ext >&5
35310 ac_cv_func_cthread_fork=no
35312 rm -f conftest.err conftest.$ac_objext \
35313 conftest$ac_exeext conftest.$ac_ext
35315 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
35316 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
35317 if test $ac_cv_func_cthread_fork = yes; then
35318 ol_link_threads=yes
35323 if test $ol_link_threads = yes ; then
35324 LTHREAD_LIBS="-lthreads"
35325 ol_link_threads=mach
35326 ol_with_threads=found
35328 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
35329 echo "$as_me: error: could not link with Mach CThreads" >&2;}
35330 { (exit 1); exit 1; }; }
35333 elif test $ol_with_threads = mach ; then
35334 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
35335 echo "$as_me: error: could not locate Mach CThreads" >&2;}
35336 { (exit 1); exit 1; }; }
35339 if test $ol_link_threads = mach ; then
35341 cat >>confdefs.h <<\_ACEOF
35342 #define HAVE_MACH_CTHREADS 1
35345 elif test $ol_with_threads = found ; then
35346 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
35347 echo "$as_me: error: could not link with Mach CThreads" >&2;}
35348 { (exit 1); exit 1; }; }
35352 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35353 -o $ol_with_threads = pth ; then
35356 for ac_header in pth.h
35358 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35359 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35360 echo "$as_me:$LINENO: checking for $ac_header" >&5
35361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35362 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35363 echo $ECHO_N "(cached) $ECHO_C" >&6
35365 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35366 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35368 # Is the header compilable?
35369 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35370 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35371 cat >conftest.$ac_ext <<_ACEOF
35374 cat confdefs.h >>conftest.$ac_ext
35375 cat >>conftest.$ac_ext <<_ACEOF
35376 /* end confdefs.h. */
35377 $ac_includes_default
35378 #include <$ac_header>
35380 rm -f conftest.$ac_objext
35381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35382 (eval $ac_compile) 2>conftest.er1
35384 grep -v '^ *+' conftest.er1 >conftest.err
35386 cat conftest.err >&5
35387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35388 (exit $ac_status); } &&
35389 { ac_try='test -z "$ac_c_werror_flag"
35390 || test ! -s conftest.err'
35391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35392 (eval $ac_try) 2>&5
35394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35395 (exit $ac_status); }; } &&
35396 { ac_try='test -s conftest.$ac_objext'
35397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35398 (eval $ac_try) 2>&5
35400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35401 (exit $ac_status); }; }; then
35402 ac_header_compiler=yes
35404 echo "$as_me: failed program was:" >&5
35405 sed 's/^/| /' conftest.$ac_ext >&5
35407 ac_header_compiler=no
35409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35410 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35411 echo "${ECHO_T}$ac_header_compiler" >&6
35413 # Is the header present?
35414 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35415 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35416 cat >conftest.$ac_ext <<_ACEOF
35419 cat confdefs.h >>conftest.$ac_ext
35420 cat >>conftest.$ac_ext <<_ACEOF
35421 /* end confdefs.h. */
35422 #include <$ac_header>
35424 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35425 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35427 grep -v '^ *+' conftest.er1 >conftest.err
35429 cat conftest.err >&5
35430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35431 (exit $ac_status); } >/dev/null; then
35432 if test -s conftest.err; then
35433 ac_cpp_err=$ac_c_preproc_warn_flag
35434 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35441 if test -z "$ac_cpp_err"; then
35442 ac_header_preproc=yes
35444 echo "$as_me: failed program was:" >&5
35445 sed 's/^/| /' conftest.$ac_ext >&5
35447 ac_header_preproc=no
35449 rm -f conftest.err conftest.$ac_ext
35450 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35451 echo "${ECHO_T}$ac_header_preproc" >&6
35453 # So? What about this header?
35454 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35456 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35457 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35459 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35460 ac_header_preproc=yes
35463 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35464 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35465 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35466 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35467 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35468 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35469 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35470 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35471 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35472 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35473 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35474 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35477 ## ------------------------------------------ ##
35478 ## Report this to the AC_PACKAGE_NAME lists. ##
35479 ## ------------------------------------------ ##
35482 sed "s/^/$as_me: WARNING: /" >&2
35485 echo "$as_me:$LINENO: checking for $ac_header" >&5
35486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35487 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35488 echo $ECHO_N "(cached) $ECHO_C" >&6
35490 eval "$as_ac_Header=\$ac_header_preproc"
35492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35493 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35496 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35497 cat >>confdefs.h <<_ACEOF
35498 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35506 if test $ac_cv_header_pth_h = yes ; then
35507 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
35508 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
35509 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
35510 echo $ECHO_N "(cached) $ECHO_C" >&6
35512 ac_check_lib_save_LIBS=$LIBS
35514 cat >conftest.$ac_ext <<_ACEOF
35517 cat confdefs.h >>conftest.$ac_ext
35518 cat >>conftest.$ac_ext <<_ACEOF
35519 /* end confdefs.h. */
35521 /* Override any gcc2 internal prototype to avoid an error. */
35525 /* We use char because int might match the return type of a gcc2
35526 builtin and then its argument prototype would still apply. */
35527 char pth_version ();
35536 rm -f conftest.$ac_objext conftest$ac_exeext
35537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35538 (eval $ac_link) 2>conftest.er1
35540 grep -v '^ *+' conftest.er1 >conftest.err
35542 cat conftest.err >&5
35543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35544 (exit $ac_status); } &&
35545 { ac_try='test -z "$ac_c_werror_flag"
35546 || test ! -s conftest.err'
35547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35548 (eval $ac_try) 2>&5
35550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35551 (exit $ac_status); }; } &&
35552 { ac_try='test -s conftest$ac_exeext'
35553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35554 (eval $ac_try) 2>&5
35556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35557 (exit $ac_status); }; }; then
35558 ac_cv_lib_pth_pth_version=yes
35560 echo "$as_me: failed program was:" >&5
35561 sed 's/^/| /' conftest.$ac_ext >&5
35563 ac_cv_lib_pth_pth_version=no
35565 rm -f conftest.err conftest.$ac_objext \
35566 conftest$ac_exeext conftest.$ac_ext
35567 LIBS=$ac_check_lib_save_LIBS
35569 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
35570 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
35571 if test $ac_cv_lib_pth_pth_version = yes; then
35578 if test $have_pth = yes ; then
35580 cat >>confdefs.h <<\_ACEOF
35581 #define HAVE_GNU_PTH 1
35584 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
35585 ol_link_threads=pth
35586 ol_with_threads=found
35588 if test $ol_with_yielding_select = auto ; then
35589 ol_with_yielding_select=yes
35595 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35596 -o $ol_with_threads = lwp ; then
35600 for ac_header in thread.h synch.h
35602 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35604 echo "$as_me:$LINENO: checking for $ac_header" >&5
35605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35607 echo $ECHO_N "(cached) $ECHO_C" >&6
35609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35610 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35612 # Is the header compilable?
35613 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35614 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35615 cat >conftest.$ac_ext <<_ACEOF
35618 cat confdefs.h >>conftest.$ac_ext
35619 cat >>conftest.$ac_ext <<_ACEOF
35620 /* end confdefs.h. */
35621 $ac_includes_default
35622 #include <$ac_header>
35624 rm -f conftest.$ac_objext
35625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35626 (eval $ac_compile) 2>conftest.er1
35628 grep -v '^ *+' conftest.er1 >conftest.err
35630 cat conftest.err >&5
35631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35632 (exit $ac_status); } &&
35633 { ac_try='test -z "$ac_c_werror_flag"
35634 || test ! -s conftest.err'
35635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35636 (eval $ac_try) 2>&5
35638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35639 (exit $ac_status); }; } &&
35640 { ac_try='test -s conftest.$ac_objext'
35641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35642 (eval $ac_try) 2>&5
35644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35645 (exit $ac_status); }; }; then
35646 ac_header_compiler=yes
35648 echo "$as_me: failed program was:" >&5
35649 sed 's/^/| /' conftest.$ac_ext >&5
35651 ac_header_compiler=no
35653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35654 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35655 echo "${ECHO_T}$ac_header_compiler" >&6
35657 # Is the header present?
35658 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35659 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35660 cat >conftest.$ac_ext <<_ACEOF
35663 cat confdefs.h >>conftest.$ac_ext
35664 cat >>conftest.$ac_ext <<_ACEOF
35665 /* end confdefs.h. */
35666 #include <$ac_header>
35668 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35669 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35671 grep -v '^ *+' conftest.er1 >conftest.err
35673 cat conftest.err >&5
35674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35675 (exit $ac_status); } >/dev/null; then
35676 if test -s conftest.err; then
35677 ac_cpp_err=$ac_c_preproc_warn_flag
35678 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35685 if test -z "$ac_cpp_err"; then
35686 ac_header_preproc=yes
35688 echo "$as_me: failed program was:" >&5
35689 sed 's/^/| /' conftest.$ac_ext >&5
35691 ac_header_preproc=no
35693 rm -f conftest.err conftest.$ac_ext
35694 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35695 echo "${ECHO_T}$ac_header_preproc" >&6
35697 # So? What about this header?
35698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35700 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35701 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35703 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35704 ac_header_preproc=yes
35707 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35708 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35709 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35710 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35711 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35712 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35713 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35714 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35716 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35717 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35718 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35721 ## ------------------------------------------ ##
35722 ## Report this to the AC_PACKAGE_NAME lists. ##
35723 ## ------------------------------------------ ##
35726 sed "s/^/$as_me: WARNING: /" >&2
35729 echo "$as_me:$LINENO: checking for $ac_header" >&5
35730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35732 echo $ECHO_N "(cached) $ECHO_C" >&6
35734 eval "$as_ac_Header=\$ac_header_preproc"
35736 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35737 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35740 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35741 cat >>confdefs.h <<_ACEOF
35742 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35749 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
35750 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
35751 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
35752 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
35753 echo $ECHO_N "(cached) $ECHO_C" >&6
35755 ac_check_lib_save_LIBS=$LIBS
35756 LIBS="-lthread $LIBS"
35757 cat >conftest.$ac_ext <<_ACEOF
35760 cat confdefs.h >>conftest.$ac_ext
35761 cat >>conftest.$ac_ext <<_ACEOF
35762 /* end confdefs.h. */
35764 /* Override any gcc2 internal prototype to avoid an error. */
35768 /* We use char because int might match the return type of a gcc2
35769 builtin and then its argument prototype would still apply. */
35770 char thr_create ();
35779 rm -f conftest.$ac_objext conftest$ac_exeext
35780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35781 (eval $ac_link) 2>conftest.er1
35783 grep -v '^ *+' conftest.er1 >conftest.err
35785 cat conftest.err >&5
35786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35787 (exit $ac_status); } &&
35788 { ac_try='test -z "$ac_c_werror_flag"
35789 || test ! -s conftest.err'
35790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35791 (eval $ac_try) 2>&5
35793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35794 (exit $ac_status); }; } &&
35795 { ac_try='test -s conftest$ac_exeext'
35796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35797 (eval $ac_try) 2>&5
35799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35800 (exit $ac_status); }; }; then
35801 ac_cv_lib_thread_thr_create=yes
35803 echo "$as_me: failed program was:" >&5
35804 sed 's/^/| /' conftest.$ac_ext >&5
35806 ac_cv_lib_thread_thr_create=no
35808 rm -f conftest.err conftest.$ac_objext \
35809 conftest$ac_exeext conftest.$ac_ext
35810 LIBS=$ac_check_lib_save_LIBS
35812 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
35813 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
35814 if test $ac_cv_lib_thread_thr_create = yes; then
35821 if test $have_thr = yes ; then
35823 cat >>confdefs.h <<\_ACEOF
35827 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
35828 ol_link_threads=thr
35830 if test $ol_with_yielding_select = auto ; then
35831 ol_with_yielding_select=yes
35837 thr_setconcurrency \
35838 thr_getconcurrency \
35841 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35842 echo "$as_me:$LINENO: checking for $ac_func" >&5
35843 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35844 if eval "test \"\${$as_ac_var+set}\" = set"; then
35845 echo $ECHO_N "(cached) $ECHO_C" >&6
35847 cat >conftest.$ac_ext <<_ACEOF
35850 cat confdefs.h >>conftest.$ac_ext
35851 cat >>conftest.$ac_ext <<_ACEOF
35852 /* end confdefs.h. */
35853 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35855 #define $ac_func innocuous_$ac_func
35857 /* System header to define __stub macros and hopefully few prototypes,
35858 which can conflict with char $ac_func (); below.
35859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35860 <limits.h> exists even on freestanding compilers. */
35863 # include <limits.h>
35865 # include <assert.h>
35870 /* Override any gcc2 internal prototype to avoid an error. */
35875 /* We use char because int might match the return type of a gcc2
35876 builtin and then its argument prototype would still apply. */
35878 /* The GNU C library defines this for functions which it implements
35879 to always fail with ENOSYS. Some functions are actually named
35880 something starting with __ and the normal name is an alias. */
35881 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35884 char (*f) () = $ac_func;
35893 return f != $ac_func;
35898 rm -f conftest.$ac_objext conftest$ac_exeext
35899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35900 (eval $ac_link) 2>conftest.er1
35902 grep -v '^ *+' conftest.er1 >conftest.err
35904 cat conftest.err >&5
35905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35906 (exit $ac_status); } &&
35907 { ac_try='test -z "$ac_c_werror_flag"
35908 || test ! -s conftest.err'
35909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35910 (eval $ac_try) 2>&5
35912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35913 (exit $ac_status); }; } &&
35914 { ac_try='test -s conftest$ac_exeext'
35915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35916 (eval $ac_try) 2>&5
35918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35919 (exit $ac_status); }; }; then
35920 eval "$as_ac_var=yes"
35922 echo "$as_me: failed program was:" >&5
35923 sed 's/^/| /' conftest.$ac_ext >&5
35925 eval "$as_ac_var=no"
35927 rm -f conftest.err conftest.$ac_objext \
35928 conftest$ac_exeext conftest.$ac_ext
35930 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35931 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35932 if test `eval echo '${'$as_ac_var'}'` = yes; then
35933 cat >>confdefs.h <<_ACEOF
35934 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35944 for ac_header in lwp/lwp.h
35946 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35947 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35948 echo "$as_me:$LINENO: checking for $ac_header" >&5
35949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35950 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35951 echo $ECHO_N "(cached) $ECHO_C" >&6
35953 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35954 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35956 # Is the header compilable?
35957 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35958 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35959 cat >conftest.$ac_ext <<_ACEOF
35962 cat confdefs.h >>conftest.$ac_ext
35963 cat >>conftest.$ac_ext <<_ACEOF
35964 /* end confdefs.h. */
35965 $ac_includes_default
35966 #include <$ac_header>
35968 rm -f conftest.$ac_objext
35969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35970 (eval $ac_compile) 2>conftest.er1
35972 grep -v '^ *+' conftest.er1 >conftest.err
35974 cat conftest.err >&5
35975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35976 (exit $ac_status); } &&
35977 { ac_try='test -z "$ac_c_werror_flag"
35978 || test ! -s conftest.err'
35979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35980 (eval $ac_try) 2>&5
35982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35983 (exit $ac_status); }; } &&
35984 { ac_try='test -s conftest.$ac_objext'
35985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35986 (eval $ac_try) 2>&5
35988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35989 (exit $ac_status); }; }; then
35990 ac_header_compiler=yes
35992 echo "$as_me: failed program was:" >&5
35993 sed 's/^/| /' conftest.$ac_ext >&5
35995 ac_header_compiler=no
35997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35998 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35999 echo "${ECHO_T}$ac_header_compiler" >&6
36001 # Is the header present?
36002 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36003 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36004 cat >conftest.$ac_ext <<_ACEOF
36007 cat confdefs.h >>conftest.$ac_ext
36008 cat >>conftest.$ac_ext <<_ACEOF
36009 /* end confdefs.h. */
36010 #include <$ac_header>
36012 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36013 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36015 grep -v '^ *+' conftest.er1 >conftest.err
36017 cat conftest.err >&5
36018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36019 (exit $ac_status); } >/dev/null; then
36020 if test -s conftest.err; then
36021 ac_cpp_err=$ac_c_preproc_warn_flag
36022 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36029 if test -z "$ac_cpp_err"; then
36030 ac_header_preproc=yes
36032 echo "$as_me: failed program was:" >&5
36033 sed 's/^/| /' conftest.$ac_ext >&5
36035 ac_header_preproc=no
36037 rm -f conftest.err conftest.$ac_ext
36038 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36039 echo "${ECHO_T}$ac_header_preproc" >&6
36041 # So? What about this header?
36042 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36044 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36045 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36046 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36047 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36048 ac_header_preproc=yes
36051 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36052 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36053 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36054 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36055 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36056 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36057 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36058 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36059 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36060 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36061 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36062 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36065 ## ------------------------------------------ ##
36066 ## Report this to the AC_PACKAGE_NAME lists. ##
36067 ## ------------------------------------------ ##
36070 sed "s/^/$as_me: WARNING: /" >&2
36073 echo "$as_me:$LINENO: checking for $ac_header" >&5
36074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36076 echo $ECHO_N "(cached) $ECHO_C" >&6
36078 eval "$as_ac_Header=\$ac_header_preproc"
36080 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36081 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36084 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36085 cat >>confdefs.h <<_ACEOF
36086 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36093 if test $ac_cv_header_lwp_lwp_h = yes ; then
36094 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
36095 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
36096 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
36097 echo $ECHO_N "(cached) $ECHO_C" >&6
36099 ac_check_lib_save_LIBS=$LIBS
36101 cat >conftest.$ac_ext <<_ACEOF
36104 cat confdefs.h >>conftest.$ac_ext
36105 cat >>conftest.$ac_ext <<_ACEOF
36106 /* end confdefs.h. */
36108 /* Override any gcc2 internal prototype to avoid an error. */
36112 /* We use char because int might match the return type of a gcc2
36113 builtin and then its argument prototype would still apply. */
36114 char lwp_create ();
36123 rm -f conftest.$ac_objext conftest$ac_exeext
36124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36125 (eval $ac_link) 2>conftest.er1
36127 grep -v '^ *+' conftest.er1 >conftest.err
36129 cat conftest.err >&5
36130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36131 (exit $ac_status); } &&
36132 { ac_try='test -z "$ac_c_werror_flag"
36133 || test ! -s conftest.err'
36134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36135 (eval $ac_try) 2>&5
36137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36138 (exit $ac_status); }; } &&
36139 { ac_try='test -s conftest$ac_exeext'
36140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36141 (eval $ac_try) 2>&5
36143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36144 (exit $ac_status); }; }; then
36145 ac_cv_lib_lwp_lwp_create=yes
36147 echo "$as_me: failed program was:" >&5
36148 sed 's/^/| /' conftest.$ac_ext >&5
36150 ac_cv_lib_lwp_lwp_create=no
36152 rm -f conftest.err conftest.$ac_objext \
36153 conftest$ac_exeext conftest.$ac_ext
36154 LIBS=$ac_check_lib_save_LIBS
36156 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
36157 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
36158 if test $ac_cv_lib_lwp_lwp_create = yes; then
36165 if test $have_lwp = yes ; then
36167 cat >>confdefs.h <<\_ACEOF
36171 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
36172 ol_link_threads=lwp
36174 if test $ol_with_yielding_select = auto ; then
36175 ol_with_yielding_select=no
36181 if test $ol_with_yielding_select = yes ; then
36183 cat >>confdefs.h <<\_ACEOF
36184 #define HAVE_YIELDING_SELECT 1
36189 if test $ol_with_threads = manual ; then
36190 ol_link_threads=yes
36192 { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
36193 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
36197 for ac_header in pthread.h sched.h
36199 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36201 echo "$as_me:$LINENO: checking for $ac_header" >&5
36202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36204 echo $ECHO_N "(cached) $ECHO_C" >&6
36206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36207 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36209 # Is the header compilable?
36210 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36211 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36212 cat >conftest.$ac_ext <<_ACEOF
36215 cat confdefs.h >>conftest.$ac_ext
36216 cat >>conftest.$ac_ext <<_ACEOF
36217 /* end confdefs.h. */
36218 $ac_includes_default
36219 #include <$ac_header>
36221 rm -f conftest.$ac_objext
36222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36223 (eval $ac_compile) 2>conftest.er1
36225 grep -v '^ *+' conftest.er1 >conftest.err
36227 cat conftest.err >&5
36228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36229 (exit $ac_status); } &&
36230 { ac_try='test -z "$ac_c_werror_flag"
36231 || test ! -s conftest.err'
36232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36233 (eval $ac_try) 2>&5
36235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36236 (exit $ac_status); }; } &&
36237 { ac_try='test -s conftest.$ac_objext'
36238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36239 (eval $ac_try) 2>&5
36241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36242 (exit $ac_status); }; }; then
36243 ac_header_compiler=yes
36245 echo "$as_me: failed program was:" >&5
36246 sed 's/^/| /' conftest.$ac_ext >&5
36248 ac_header_compiler=no
36250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36251 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36252 echo "${ECHO_T}$ac_header_compiler" >&6
36254 # Is the header present?
36255 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36256 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36257 cat >conftest.$ac_ext <<_ACEOF
36260 cat confdefs.h >>conftest.$ac_ext
36261 cat >>conftest.$ac_ext <<_ACEOF
36262 /* end confdefs.h. */
36263 #include <$ac_header>
36265 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36266 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36268 grep -v '^ *+' conftest.er1 >conftest.err
36270 cat conftest.err >&5
36271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36272 (exit $ac_status); } >/dev/null; then
36273 if test -s conftest.err; then
36274 ac_cpp_err=$ac_c_preproc_warn_flag
36275 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36282 if test -z "$ac_cpp_err"; then
36283 ac_header_preproc=yes
36285 echo "$as_me: failed program was:" >&5
36286 sed 's/^/| /' conftest.$ac_ext >&5
36288 ac_header_preproc=no
36290 rm -f conftest.err conftest.$ac_ext
36291 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36292 echo "${ECHO_T}$ac_header_preproc" >&6
36294 # So? What about this header?
36295 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36297 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36298 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36300 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36301 ac_header_preproc=yes
36304 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36305 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36306 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36307 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36308 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36309 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36310 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36311 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36313 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36314 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36315 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36318 ## ------------------------------------------ ##
36319 ## Report this to the AC_PACKAGE_NAME lists. ##
36320 ## ------------------------------------------ ##
36323 sed "s/^/$as_me: WARNING: /" >&2
36326 echo "$as_me:$LINENO: checking for $ac_header" >&5
36327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36329 echo $ECHO_N "(cached) $ECHO_C" >&6
36331 eval "$as_ac_Header=\$ac_header_preproc"
36333 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36334 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36337 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36338 cat >>confdefs.h <<_ACEOF
36339 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36348 for ac_func in sched_yield pthread_yield
36350 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36351 echo "$as_me:$LINENO: checking for $ac_func" >&5
36352 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36353 if eval "test \"\${$as_ac_var+set}\" = set"; then
36354 echo $ECHO_N "(cached) $ECHO_C" >&6
36356 cat >conftest.$ac_ext <<_ACEOF
36359 cat confdefs.h >>conftest.$ac_ext
36360 cat >>conftest.$ac_ext <<_ACEOF
36361 /* end confdefs.h. */
36362 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36363 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36364 #define $ac_func innocuous_$ac_func
36366 /* System header to define __stub macros and hopefully few prototypes,
36367 which can conflict with char $ac_func (); below.
36368 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36369 <limits.h> exists even on freestanding compilers. */
36372 # include <limits.h>
36374 # include <assert.h>
36379 /* Override any gcc2 internal prototype to avoid an error. */
36384 /* We use char because int might match the return type of a gcc2
36385 builtin and then its argument prototype would still apply. */
36387 /* The GNU C library defines this for functions which it implements
36388 to always fail with ENOSYS. Some functions are actually named
36389 something starting with __ and the normal name is an alias. */
36390 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36393 char (*f) () = $ac_func;
36402 return f != $ac_func;
36407 rm -f conftest.$ac_objext conftest$ac_exeext
36408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36409 (eval $ac_link) 2>conftest.er1
36411 grep -v '^ *+' conftest.er1 >conftest.err
36413 cat conftest.err >&5
36414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36415 (exit $ac_status); } &&
36416 { ac_try='test -z "$ac_c_werror_flag"
36417 || test ! -s conftest.err'
36418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36419 (eval $ac_try) 2>&5
36421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36422 (exit $ac_status); }; } &&
36423 { ac_try='test -s conftest$ac_exeext'
36424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36425 (eval $ac_try) 2>&5
36427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36428 (exit $ac_status); }; }; then
36429 eval "$as_ac_var=yes"
36431 echo "$as_me: failed program was:" >&5
36432 sed 's/^/| /' conftest.$ac_ext >&5
36434 eval "$as_ac_var=no"
36436 rm -f conftest.err conftest.$ac_objext \
36437 conftest$ac_exeext conftest.$ac_ext
36439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36440 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36441 if test `eval echo '${'$as_ac_var'}'` = yes; then
36442 cat >>confdefs.h <<_ACEOF
36443 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36450 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
36451 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
36452 if test "${ol_cv_header_linux_threads+set}" = set; then
36453 echo $ECHO_N "(cached) $ECHO_C" >&6
36455 cat >conftest.$ac_ext <<_ACEOF
36458 cat confdefs.h >>conftest.$ac_ext
36459 cat >>conftest.$ac_ext <<_ACEOF
36460 /* end confdefs.h. */
36461 #include <pthread.h>
36463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36464 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
36465 ol_cv_header_linux_threads=yes
36467 ol_cv_header_linux_threads=no
36473 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
36474 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
36475 if test $ol_cv_header_linux_threads = yes; then
36477 cat >>confdefs.h <<\_ACEOF
36478 #define HAVE_LINUX_THREADS 1
36485 for ac_header in mach/cthreads.h
36487 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36488 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36489 echo "$as_me:$LINENO: checking for $ac_header" >&5
36490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36492 echo $ECHO_N "(cached) $ECHO_C" >&6
36494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36495 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36497 # Is the header compilable?
36498 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36499 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36500 cat >conftest.$ac_ext <<_ACEOF
36503 cat confdefs.h >>conftest.$ac_ext
36504 cat >>conftest.$ac_ext <<_ACEOF
36505 /* end confdefs.h. */
36506 $ac_includes_default
36507 #include <$ac_header>
36509 rm -f conftest.$ac_objext
36510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36511 (eval $ac_compile) 2>conftest.er1
36513 grep -v '^ *+' conftest.er1 >conftest.err
36515 cat conftest.err >&5
36516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36517 (exit $ac_status); } &&
36518 { ac_try='test -z "$ac_c_werror_flag"
36519 || test ! -s conftest.err'
36520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36521 (eval $ac_try) 2>&5
36523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36524 (exit $ac_status); }; } &&
36525 { ac_try='test -s conftest.$ac_objext'
36526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36527 (eval $ac_try) 2>&5
36529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36530 (exit $ac_status); }; }; then
36531 ac_header_compiler=yes
36533 echo "$as_me: failed program was:" >&5
36534 sed 's/^/| /' conftest.$ac_ext >&5
36536 ac_header_compiler=no
36538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36539 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36540 echo "${ECHO_T}$ac_header_compiler" >&6
36542 # Is the header present?
36543 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36544 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36545 cat >conftest.$ac_ext <<_ACEOF
36548 cat confdefs.h >>conftest.$ac_ext
36549 cat >>conftest.$ac_ext <<_ACEOF
36550 /* end confdefs.h. */
36551 #include <$ac_header>
36553 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36554 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36556 grep -v '^ *+' conftest.er1 >conftest.err
36558 cat conftest.err >&5
36559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36560 (exit $ac_status); } >/dev/null; then
36561 if test -s conftest.err; then
36562 ac_cpp_err=$ac_c_preproc_warn_flag
36563 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36570 if test -z "$ac_cpp_err"; then
36571 ac_header_preproc=yes
36573 echo "$as_me: failed program was:" >&5
36574 sed 's/^/| /' conftest.$ac_ext >&5
36576 ac_header_preproc=no
36578 rm -f conftest.err conftest.$ac_ext
36579 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36580 echo "${ECHO_T}$ac_header_preproc" >&6
36582 # So? What about this header?
36583 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36585 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36586 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36588 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36589 ac_header_preproc=yes
36592 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36593 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36594 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36595 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36596 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36597 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36598 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36599 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36601 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36602 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36603 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36606 ## ------------------------------------------ ##
36607 ## Report this to the AC_PACKAGE_NAME lists. ##
36608 ## ------------------------------------------ ##
36611 sed "s/^/$as_me: WARNING: /" >&2
36614 echo "$as_me:$LINENO: checking for $ac_header" >&5
36615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36616 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36617 echo $ECHO_N "(cached) $ECHO_C" >&6
36619 eval "$as_ac_Header=\$ac_header_preproc"
36621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36622 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36625 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36626 cat >>confdefs.h <<_ACEOF
36627 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36635 for ac_header in lwp/lwp.h
36637 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36639 echo "$as_me:$LINENO: checking for $ac_header" >&5
36640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36641 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36642 echo $ECHO_N "(cached) $ECHO_C" >&6
36644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36645 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36647 # Is the header compilable?
36648 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36649 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36650 cat >conftest.$ac_ext <<_ACEOF
36653 cat confdefs.h >>conftest.$ac_ext
36654 cat >>conftest.$ac_ext <<_ACEOF
36655 /* end confdefs.h. */
36656 $ac_includes_default
36657 #include <$ac_header>
36659 rm -f conftest.$ac_objext
36660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36661 (eval $ac_compile) 2>conftest.er1
36663 grep -v '^ *+' conftest.er1 >conftest.err
36665 cat conftest.err >&5
36666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36667 (exit $ac_status); } &&
36668 { ac_try='test -z "$ac_c_werror_flag"
36669 || test ! -s conftest.err'
36670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36671 (eval $ac_try) 2>&5
36673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36674 (exit $ac_status); }; } &&
36675 { ac_try='test -s conftest.$ac_objext'
36676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36677 (eval $ac_try) 2>&5
36679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36680 (exit $ac_status); }; }; then
36681 ac_header_compiler=yes
36683 echo "$as_me: failed program was:" >&5
36684 sed 's/^/| /' conftest.$ac_ext >&5
36686 ac_header_compiler=no
36688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36689 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36690 echo "${ECHO_T}$ac_header_compiler" >&6
36692 # Is the header present?
36693 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36694 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36695 cat >conftest.$ac_ext <<_ACEOF
36698 cat confdefs.h >>conftest.$ac_ext
36699 cat >>conftest.$ac_ext <<_ACEOF
36700 /* end confdefs.h. */
36701 #include <$ac_header>
36703 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36704 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36706 grep -v '^ *+' conftest.er1 >conftest.err
36708 cat conftest.err >&5
36709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36710 (exit $ac_status); } >/dev/null; then
36711 if test -s conftest.err; then
36712 ac_cpp_err=$ac_c_preproc_warn_flag
36713 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36720 if test -z "$ac_cpp_err"; then
36721 ac_header_preproc=yes
36723 echo "$as_me: failed program was:" >&5
36724 sed 's/^/| /' conftest.$ac_ext >&5
36726 ac_header_preproc=no
36728 rm -f conftest.err conftest.$ac_ext
36729 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36730 echo "${ECHO_T}$ac_header_preproc" >&6
36732 # So? What about this header?
36733 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36735 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36736 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36737 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36738 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36739 ac_header_preproc=yes
36742 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36743 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36744 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36745 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36746 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36747 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36748 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36749 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36750 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36751 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36752 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36753 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36756 ## ------------------------------------------ ##
36757 ## Report this to the AC_PACKAGE_NAME lists. ##
36758 ## ------------------------------------------ ##
36761 sed "s/^/$as_me: WARNING: /" >&2
36764 echo "$as_me:$LINENO: checking for $ac_header" >&5
36765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36766 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36767 echo $ECHO_N "(cached) $ECHO_C" >&6
36769 eval "$as_ac_Header=\$ac_header_preproc"
36771 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36772 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36775 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36776 cat >>confdefs.h <<_ACEOF
36777 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36786 for ac_header in thread.h synch.h
36788 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36789 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36790 echo "$as_me:$LINENO: checking for $ac_header" >&5
36791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36793 echo $ECHO_N "(cached) $ECHO_C" >&6
36795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36796 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36798 # Is the header compilable?
36799 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36800 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36801 cat >conftest.$ac_ext <<_ACEOF
36804 cat confdefs.h >>conftest.$ac_ext
36805 cat >>conftest.$ac_ext <<_ACEOF
36806 /* end confdefs.h. */
36807 $ac_includes_default
36808 #include <$ac_header>
36810 rm -f conftest.$ac_objext
36811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36812 (eval $ac_compile) 2>conftest.er1
36814 grep -v '^ *+' conftest.er1 >conftest.err
36816 cat conftest.err >&5
36817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36818 (exit $ac_status); } &&
36819 { ac_try='test -z "$ac_c_werror_flag"
36820 || test ! -s conftest.err'
36821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36822 (eval $ac_try) 2>&5
36824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36825 (exit $ac_status); }; } &&
36826 { ac_try='test -s conftest.$ac_objext'
36827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36828 (eval $ac_try) 2>&5
36830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36831 (exit $ac_status); }; }; then
36832 ac_header_compiler=yes
36834 echo "$as_me: failed program was:" >&5
36835 sed 's/^/| /' conftest.$ac_ext >&5
36837 ac_header_compiler=no
36839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36840 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36841 echo "${ECHO_T}$ac_header_compiler" >&6
36843 # Is the header present?
36844 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36845 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36846 cat >conftest.$ac_ext <<_ACEOF
36849 cat confdefs.h >>conftest.$ac_ext
36850 cat >>conftest.$ac_ext <<_ACEOF
36851 /* end confdefs.h. */
36852 #include <$ac_header>
36854 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36855 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36857 grep -v '^ *+' conftest.er1 >conftest.err
36859 cat conftest.err >&5
36860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36861 (exit $ac_status); } >/dev/null; then
36862 if test -s conftest.err; then
36863 ac_cpp_err=$ac_c_preproc_warn_flag
36864 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36871 if test -z "$ac_cpp_err"; then
36872 ac_header_preproc=yes
36874 echo "$as_me: failed program was:" >&5
36875 sed 's/^/| /' conftest.$ac_ext >&5
36877 ac_header_preproc=no
36879 rm -f conftest.err conftest.$ac_ext
36880 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36881 echo "${ECHO_T}$ac_header_preproc" >&6
36883 # So? What about this header?
36884 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36886 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36887 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36889 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36890 ac_header_preproc=yes
36893 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36894 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36895 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36896 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36897 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36898 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36899 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36900 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36902 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36903 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36904 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36907 ## ------------------------------------------ ##
36908 ## Report this to the AC_PACKAGE_NAME lists. ##
36909 ## ------------------------------------------ ##
36912 sed "s/^/$as_me: WARNING: /" >&2
36915 echo "$as_me:$LINENO: checking for $ac_header" >&5
36916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36918 echo $ECHO_N "(cached) $ECHO_C" >&6
36920 eval "$as_ac_Header=\$ac_header_preproc"
36922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36923 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36926 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36927 cat >>confdefs.h <<_ACEOF
36928 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36937 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
36938 cat >>confdefs.h <<\_ACEOF
36939 #define REENTRANT 1
36942 cat >>confdefs.h <<\_ACEOF
36943 #define _REENTRANT 1
36946 cat >>confdefs.h <<\_ACEOF
36947 #define THREAD_SAFE 1
36950 cat >>confdefs.h <<\_ACEOF
36951 #define _THREAD_SAFE 1
36954 cat >>confdefs.h <<\_ACEOF
36955 #define THREADSAFE 1
36958 cat >>confdefs.h <<\_ACEOF
36959 #define _THREADSAFE 1
36962 cat >>confdefs.h <<\_ACEOF
36963 #define _SGI_MP_SOURCE 1
36967 echo "$as_me:$LINENO: checking for thread specific errno" >&5
36968 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
36969 if test "${ol_cv_errno_thread_specific+set}" = set; then
36970 echo $ECHO_N "(cached) $ECHO_C" >&6
36973 cat >conftest.$ac_ext <<_ACEOF
36976 cat confdefs.h >>conftest.$ac_ext
36977 cat >>conftest.$ac_ext <<_ACEOF
36978 /* end confdefs.h. */
36988 rm -f conftest.$ac_objext conftest$ac_exeext
36989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36990 (eval $ac_link) 2>conftest.er1
36992 grep -v '^ *+' conftest.er1 >conftest.err
36994 cat conftest.err >&5
36995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36996 (exit $ac_status); } &&
36997 { ac_try='test -z "$ac_c_werror_flag"
36998 || test ! -s conftest.err'
36999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37000 (eval $ac_try) 2>&5
37002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37003 (exit $ac_status); }; } &&
37004 { ac_try='test -s conftest$ac_exeext'
37005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37006 (eval $ac_try) 2>&5
37008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37009 (exit $ac_status); }; }; then
37010 ol_cv_errno_thread_specific=yes
37012 echo "$as_me: failed program was:" >&5
37013 sed 's/^/| /' conftest.$ac_ext >&5
37015 ol_cv_errno_thread_specific=no
37017 rm -f conftest.err conftest.$ac_objext \
37018 conftest$ac_exeext conftest.$ac_ext
37021 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
37022 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
37024 echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
37025 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
37026 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
37027 echo $ECHO_N "(cached) $ECHO_C" >&6
37030 cat >conftest.$ac_ext <<_ACEOF
37033 cat confdefs.h >>conftest.$ac_ext
37034 cat >>conftest.$ac_ext <<_ACEOF
37035 /* end confdefs.h. */
37045 rm -f conftest.$ac_objext conftest$ac_exeext
37046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37047 (eval $ac_link) 2>conftest.er1
37049 grep -v '^ *+' conftest.er1 >conftest.err
37051 cat conftest.err >&5
37052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37053 (exit $ac_status); } &&
37054 { ac_try='test -z "$ac_c_werror_flag"
37055 || test ! -s conftest.err'
37056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37057 (eval $ac_try) 2>&5
37059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37060 (exit $ac_status); }; } &&
37061 { ac_try='test -s conftest$ac_exeext'
37062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37063 (eval $ac_try) 2>&5
37065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37066 (exit $ac_status); }; }; then
37067 ol_cv_h_errno_thread_specific=yes
37069 echo "$as_me: failed program was:" >&5
37070 sed 's/^/| /' conftest.$ac_ext >&5
37072 ol_cv_h_errno_thread_specific=no
37074 rm -f conftest.err conftest.$ac_objext \
37075 conftest$ac_exeext conftest.$ac_ext
37078 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
37079 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
37081 if test $ol_cv_errno_thread_specific != yes \
37082 -o $ol_cv_h_errno_thread_specific != yes ; then
37083 LIBS="$LTHREAD_LIBS $LIBS"
37089 if test $ol_link_threads = no ; then
37090 if test $ol_with_threads = yes ; then
37091 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
37092 echo "$as_me: error: no suitable thread support" >&2;}
37093 { (exit 1); exit 1; }; }
37096 if test $ol_with_threads = auto ; then
37097 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
37098 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
37103 cat >>confdefs.h <<\_ACEOF
37104 #define NO_THREADS 1
37110 if test $ol_link_threads != no ; then
37112 cat >>confdefs.h <<\_ACEOF
37113 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
37123 gethostbyname_r gethostbyaddr_r \
37126 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37127 echo "$as_me:$LINENO: checking for $ac_func" >&5
37128 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37129 if eval "test \"\${$as_ac_var+set}\" = set"; then
37130 echo $ECHO_N "(cached) $ECHO_C" >&6
37132 cat >conftest.$ac_ext <<_ACEOF
37135 cat confdefs.h >>conftest.$ac_ext
37136 cat >>conftest.$ac_ext <<_ACEOF
37137 /* end confdefs.h. */
37138 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37139 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37140 #define $ac_func innocuous_$ac_func
37142 /* System header to define __stub macros and hopefully few prototypes,
37143 which can conflict with char $ac_func (); below.
37144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37145 <limits.h> exists even on freestanding compilers. */
37148 # include <limits.h>
37150 # include <assert.h>
37155 /* Override any gcc2 internal prototype to avoid an error. */
37160 /* We use char because int might match the return type of a gcc2
37161 builtin and then its argument prototype would still apply. */
37163 /* The GNU C library defines this for functions which it implements
37164 to always fail with ENOSYS. Some functions are actually named
37165 something starting with __ and the normal name is an alias. */
37166 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37169 char (*f) () = $ac_func;
37178 return f != $ac_func;
37183 rm -f conftest.$ac_objext conftest$ac_exeext
37184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37185 (eval $ac_link) 2>conftest.er1
37187 grep -v '^ *+' conftest.er1 >conftest.err
37189 cat conftest.err >&5
37190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37191 (exit $ac_status); } &&
37192 { ac_try='test -z "$ac_c_werror_flag"
37193 || test ! -s conftest.err'
37194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37195 (eval $ac_try) 2>&5
37197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37198 (exit $ac_status); }; } &&
37199 { ac_try='test -s conftest$ac_exeext'
37200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37201 (eval $ac_try) 2>&5
37203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37204 (exit $ac_status); }; }; then
37205 eval "$as_ac_var=yes"
37207 echo "$as_me: failed program was:" >&5
37208 sed 's/^/| /' conftest.$ac_ext >&5
37210 eval "$as_ac_var=no"
37212 rm -f conftest.err conftest.$ac_objext \
37213 conftest$ac_exeext conftest.$ac_ext
37215 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37216 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37217 if test `eval echo '${'$as_ac_var'}'` = yes; then
37218 cat >>confdefs.h <<_ACEOF
37219 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37226 if test "$ac_cv_func_ctime_r" = no ; then
37227 ol_cv_func_ctime_r_nargs=0
37229 echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
37230 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
37231 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
37232 echo $ECHO_N "(cached) $ECHO_C" >&6
37234 cat >conftest.$ac_ext <<_ACEOF
37237 cat confdefs.h >>conftest.$ac_ext
37238 cat >>conftest.$ac_ext <<_ACEOF
37239 /* end confdefs.h. */
37244 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
37249 rm -f conftest.$ac_objext
37250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37251 (eval $ac_compile) 2>conftest.er1
37253 grep -v '^ *+' conftest.er1 >conftest.err
37255 cat conftest.err >&5
37256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37257 (exit $ac_status); } &&
37258 { ac_try='test -z "$ac_c_werror_flag"
37259 || test ! -s conftest.err'
37260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37261 (eval $ac_try) 2>&5
37263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37264 (exit $ac_status); }; } &&
37265 { ac_try='test -s conftest.$ac_objext'
37266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37267 (eval $ac_try) 2>&5
37269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37270 (exit $ac_status); }; }; then
37271 ol_cv_func_ctime_r_nargs3=yes
37273 echo "$as_me: failed program was:" >&5
37274 sed 's/^/| /' conftest.$ac_ext >&5
37276 ol_cv_func_ctime_r_nargs3=no
37278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37280 cat >conftest.$ac_ext <<_ACEOF
37283 cat confdefs.h >>conftest.$ac_ext
37284 cat >>conftest.$ac_ext <<_ACEOF
37285 /* end confdefs.h. */
37290 time_t ti; char *buffer; ctime_r(&ti,buffer);
37295 rm -f conftest.$ac_objext
37296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37297 (eval $ac_compile) 2>conftest.er1
37299 grep -v '^ *+' conftest.er1 >conftest.err
37301 cat conftest.err >&5
37302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37303 (exit $ac_status); } &&
37304 { ac_try='test -z "$ac_c_werror_flag"
37305 || test ! -s conftest.err'
37306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37307 (eval $ac_try) 2>&5
37309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37310 (exit $ac_status); }; } &&
37311 { ac_try='test -s conftest.$ac_objext'
37312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37313 (eval $ac_try) 2>&5
37315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37316 (exit $ac_status); }; }; then
37317 ol_cv_func_ctime_r_nargs2=yes
37319 echo "$as_me: failed program was:" >&5
37320 sed 's/^/| /' conftest.$ac_ext >&5
37322 ol_cv_func_ctime_r_nargs2=no
37324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37326 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
37327 $ol_cv_func_ctime_r_nargs2 = no ; then
37329 ol_cv_func_ctime_r_nargs=3
37331 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
37332 $ol_cv_func_ctime_r_nargs2 = yes ; then
37334 ol_cv_func_ctime_r_nargs=2
37337 ol_cv_func_ctime_r_nargs=0
37341 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
37342 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
37344 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
37346 cat >>confdefs.h <<_ACEOF
37347 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
37354 if test "$ac_cv_func_gethostbyname_r" = yes ; then
37355 echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
37356 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
37357 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
37358 echo $ECHO_N "(cached) $ECHO_C" >&6
37360 cat >conftest.$ac_ext <<_ACEOF
37363 cat confdefs.h >>conftest.$ac_ext
37364 cat >>conftest.$ac_ext <<_ACEOF
37365 /* end confdefs.h. */
37366 #include <sys/types.h>
37367 #include <sys/socket.h>
37368 #include <netinet/in.h>
37370 #define BUFSIZE (sizeof(struct hostent)+10)
37374 struct hostent hent; char buffer[BUFSIZE];
37375 int bufsize=BUFSIZE;int h_errno;
37376 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
37377 buffer, bufsize, &h_errno);
37382 rm -f conftest.$ac_objext
37383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37384 (eval $ac_compile) 2>conftest.er1
37386 grep -v '^ *+' conftest.er1 >conftest.err
37388 cat conftest.err >&5
37389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37390 (exit $ac_status); } &&
37391 { ac_try='test -z "$ac_c_werror_flag"
37392 || test ! -s conftest.err'
37393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37394 (eval $ac_try) 2>&5
37396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37397 (exit $ac_status); }; } &&
37398 { ac_try='test -s conftest.$ac_objext'
37399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37400 (eval $ac_try) 2>&5
37402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37403 (exit $ac_status); }; }; then
37404 ol_cv_func_gethostbyname_r_nargs5=yes
37406 echo "$as_me: failed program was:" >&5
37407 sed 's/^/| /' conftest.$ac_ext >&5
37409 ol_cv_func_gethostbyname_r_nargs5=no
37411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37413 cat >conftest.$ac_ext <<_ACEOF
37416 cat confdefs.h >>conftest.$ac_ext
37417 cat >>conftest.$ac_ext <<_ACEOF
37418 /* end confdefs.h. */
37419 #include <sys/types.h>
37420 #include <sys/socket.h>
37421 #include <netinet/in.h>
37423 #define BUFSIZE (sizeof(struct hostent)+10)
37427 struct hostent hent;struct hostent *rhent;
37428 char buffer[BUFSIZE];
37429 int bufsize=BUFSIZE;int h_errno;
37430 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
37436 rm -f conftest.$ac_objext
37437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37438 (eval $ac_compile) 2>conftest.er1
37440 grep -v '^ *+' conftest.er1 >conftest.err
37442 cat conftest.err >&5
37443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37444 (exit $ac_status); } &&
37445 { ac_try='test -z "$ac_c_werror_flag"
37446 || test ! -s conftest.err'
37447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37448 (eval $ac_try) 2>&5
37450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37451 (exit $ac_status); }; } &&
37452 { ac_try='test -s conftest.$ac_objext'
37453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37454 (eval $ac_try) 2>&5
37456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37457 (exit $ac_status); }; }; then
37458 ol_cv_func_gethostbyname_r_nargs6=yes
37460 echo "$as_me: failed program was:" >&5
37461 sed 's/^/| /' conftest.$ac_ext >&5
37463 ol_cv_func_gethostbyname_r_nargs6=no
37465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37467 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
37468 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
37470 ol_cv_func_gethostbyname_r_nargs=5
37472 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
37473 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
37475 ol_cv_func_gethostbyname_r_nargs=6
37478 ol_cv_func_gethostbyname_r_nargs=0
37482 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
37483 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
37484 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
37486 cat >>confdefs.h <<_ACEOF
37487 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
37493 ol_cv_func_gethostbyname_r_nargs=0
37496 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
37497 echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
37498 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
37499 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
37500 echo $ECHO_N "(cached) $ECHO_C" >&6
37502 cat >conftest.$ac_ext <<_ACEOF
37505 cat confdefs.h >>conftest.$ac_ext
37506 cat >>conftest.$ac_ext <<_ACEOF
37507 /* end confdefs.h. */
37508 #include <sys/types.h>
37509 #include <sys/socket.h>
37510 #include <netinet/in.h>
37512 #define BUFSIZE (sizeof(struct hostent)+10)
37516 struct hostent hent; char buffer[BUFSIZE];
37517 struct in_addr add;
37518 size_t alen=sizeof(struct in_addr);
37519 int bufsize=BUFSIZE;int h_errno;
37520 (void)gethostbyaddr_r( (void *)&(add.s_addr),
37521 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
37526 rm -f conftest.$ac_objext
37527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37528 (eval $ac_compile) 2>conftest.er1
37530 grep -v '^ *+' conftest.er1 >conftest.err
37532 cat conftest.err >&5
37533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37534 (exit $ac_status); } &&
37535 { ac_try='test -z "$ac_c_werror_flag"
37536 || test ! -s conftest.err'
37537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37538 (eval $ac_try) 2>&5
37540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37541 (exit $ac_status); }; } &&
37542 { ac_try='test -s conftest.$ac_objext'
37543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37544 (eval $ac_try) 2>&5
37546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37547 (exit $ac_status); }; }; then
37548 ol_cv_func_gethostbyaddr_r_nargs7=yes
37550 echo "$as_me: failed program was:" >&5
37551 sed 's/^/| /' conftest.$ac_ext >&5
37553 ol_cv_func_gethostbyaddr_r_nargs7=no
37555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37557 cat >conftest.$ac_ext <<_ACEOF
37560 cat confdefs.h >>conftest.$ac_ext
37561 cat >>conftest.$ac_ext <<_ACEOF
37562 /* end confdefs.h. */
37563 #include <sys/types.h>
37564 #include <sys/socket.h>
37565 #include <netinet/in.h>
37567 #define BUFSIZE (sizeof(struct hostent)+10)
37571 struct hostent hent;
37572 struct hostent *rhent; char buffer[BUFSIZE];
37573 struct in_addr add;
37574 size_t alen=sizeof(struct in_addr);
37575 int bufsize=BUFSIZE;int h_errno;
37576 (void)gethostbyaddr_r( (void *)&(add.s_addr),
37577 alen, AF_INET, &hent, buffer, bufsize,
37583 rm -f conftest.$ac_objext
37584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37585 (eval $ac_compile) 2>conftest.er1
37587 grep -v '^ *+' conftest.er1 >conftest.err
37589 cat conftest.err >&5
37590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37591 (exit $ac_status); } &&
37592 { ac_try='test -z "$ac_c_werror_flag"
37593 || test ! -s conftest.err'
37594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37595 (eval $ac_try) 2>&5
37597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37598 (exit $ac_status); }; } &&
37599 { ac_try='test -s conftest.$ac_objext'
37600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37601 (eval $ac_try) 2>&5
37603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37604 (exit $ac_status); }; }; then
37605 ol_cv_func_gethostbyaddr_r_nargs8=yes
37607 echo "$as_me: failed program was:" >&5
37608 sed 's/^/| /' conftest.$ac_ext >&5
37610 ol_cv_func_gethostbyaddr_r_nargs8=no
37612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37614 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
37615 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
37617 ol_cv_func_gethostbyaddr_r_nargs=7
37619 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
37620 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
37622 ol_cv_func_gethostbyaddr_r_nargs=8
37625 ol_cv_func_gethostbyaddr_r_nargs=0
37629 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
37630 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
37631 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
37633 cat >>confdefs.h <<_ACEOF
37634 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
37640 ol_cv_func_gethostbyaddr_r_nargs=0
37645 if test $ol_with_ldbm_api = auto \
37646 -o $ol_with_ldbm_api = berkeley \
37647 -o $ol_with_ldbm_api = bcompat ; then
37649 if test $ol_with_ldbm_api = bcompat; then \
37652 for ac_header in db_185.h db.h
37654 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37655 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37656 echo "$as_me:$LINENO: checking for $ac_header" >&5
37657 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37658 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37659 echo $ECHO_N "(cached) $ECHO_C" >&6
37661 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37662 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37664 # Is the header compilable?
37665 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37666 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37667 cat >conftest.$ac_ext <<_ACEOF
37670 cat confdefs.h >>conftest.$ac_ext
37671 cat >>conftest.$ac_ext <<_ACEOF
37672 /* end confdefs.h. */
37673 $ac_includes_default
37674 #include <$ac_header>
37676 rm -f conftest.$ac_objext
37677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37678 (eval $ac_compile) 2>conftest.er1
37680 grep -v '^ *+' conftest.er1 >conftest.err
37682 cat conftest.err >&5
37683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37684 (exit $ac_status); } &&
37685 { ac_try='test -z "$ac_c_werror_flag"
37686 || test ! -s conftest.err'
37687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37688 (eval $ac_try) 2>&5
37690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37691 (exit $ac_status); }; } &&
37692 { ac_try='test -s conftest.$ac_objext'
37693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37694 (eval $ac_try) 2>&5
37696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37697 (exit $ac_status); }; }; then
37698 ac_header_compiler=yes
37700 echo "$as_me: failed program was:" >&5
37701 sed 's/^/| /' conftest.$ac_ext >&5
37703 ac_header_compiler=no
37705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37706 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37707 echo "${ECHO_T}$ac_header_compiler" >&6
37709 # Is the header present?
37710 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37711 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37712 cat >conftest.$ac_ext <<_ACEOF
37715 cat confdefs.h >>conftest.$ac_ext
37716 cat >>conftest.$ac_ext <<_ACEOF
37717 /* end confdefs.h. */
37718 #include <$ac_header>
37720 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37721 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37723 grep -v '^ *+' conftest.er1 >conftest.err
37725 cat conftest.err >&5
37726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37727 (exit $ac_status); } >/dev/null; then
37728 if test -s conftest.err; then
37729 ac_cpp_err=$ac_c_preproc_warn_flag
37730 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37737 if test -z "$ac_cpp_err"; then
37738 ac_header_preproc=yes
37740 echo "$as_me: failed program was:" >&5
37741 sed 's/^/| /' conftest.$ac_ext >&5
37743 ac_header_preproc=no
37745 rm -f conftest.err conftest.$ac_ext
37746 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37747 echo "${ECHO_T}$ac_header_preproc" >&6
37749 # So? What about this header?
37750 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37752 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37753 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37754 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37755 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37756 ac_header_preproc=yes
37759 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37760 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37761 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37762 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37763 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37764 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37765 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37766 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37768 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37769 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37770 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37773 ## ------------------------------------------ ##
37774 ## Report this to the AC_PACKAGE_NAME lists. ##
37775 ## ------------------------------------------ ##
37778 sed "s/^/$as_me: WARNING: /" >&2
37781 echo "$as_me:$LINENO: checking for $ac_header" >&5
37782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37783 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37784 echo $ECHO_N "(cached) $ECHO_C" >&6
37786 eval "$as_ac_Header=\$ac_header_preproc"
37788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37789 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37792 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37793 cat >>confdefs.h <<_ACEOF
37794 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37801 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
37802 echo "$as_me:$LINENO: checking if Berkeley DB header compatibility" >&5
37803 echo $ECHO_N "checking if Berkeley DB header compatibility... $ECHO_C" >&6
37804 if test "${ol_cv_header_db1+set}" = set; then
37805 echo $ECHO_N "(cached) $ECHO_C" >&6
37808 cat >conftest.$ac_ext <<_ACEOF
37811 cat confdefs.h >>conftest.$ac_ext
37812 cat >>conftest.$ac_ext <<_ACEOF
37813 /* end confdefs.h. */
37816 # include <db_185.h>
37821 /* this check could be improved */
37822 #ifndef DB_VERSION_MAJOR
37823 # define DB_VERSION_MAJOR 1
37826 #if DB_VERSION_MAJOR == 1
37831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37832 $EGREP "__db_version_1" >/dev/null 2>&1; then
37833 ol_cv_header_db1=yes
37835 ol_cv_header_db1=no
37840 echo "$as_me:$LINENO: result: $ol_cv_header_db1" >&5
37841 echo "${ECHO_T}$ol_cv_header_db1" >&6
37843 if test $ol_cv_header_db1 = yes ; then
37845 if test $ol_cv_lib_db = no ; then
37846 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
37847 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
37848 if test "${ol_cv_db_none+set}" = set; then
37849 echo $ECHO_N "(cached) $ECHO_C" >&6
37854 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
37856 cat >conftest.$ac_ext <<_ACEOF
37859 cat confdefs.h >>conftest.$ac_ext
37860 cat >>conftest.$ac_ext <<_ACEOF
37861 /* end confdefs.h. */
37863 #ifdef HAVE_DB_185_H
37864 # include <db_185.h>
37869 #ifndef DB_VERSION_MAJOR
37870 # define DB_VERSION_MAJOR 1
37874 #define NULL ((void*)0)
37881 #if DB_VERSION_MAJOR > 1
37884 int major, minor, patch;
37886 version = db_version( &major, &minor, &patch );
37888 if( major != DB_VERSION_MAJOR ||
37889 minor < DB_VERSION_MINOR )
37891 printf("Berkeley DB version mismatch\n"
37892 "\theader: %s\n\tlibrary: %s\n",
37893 DB_VERSION_STRING, version);
37899 #if DB_VERSION_MAJOR > 2
37900 db_env_create( NULL, 0 );
37901 #elif DB_VERSION_MAJOR > 1
37902 db_appexit( NULL );
37904 (void) dbopen( NULL, 0, 0, 0, NULL);
37911 rm -f conftest.$ac_objext conftest$ac_exeext
37912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37913 (eval $ac_link) 2>conftest.er1
37915 grep -v '^ *+' conftest.er1 >conftest.err
37917 cat conftest.err >&5
37918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37919 (exit $ac_status); } &&
37920 { ac_try='test -z "$ac_c_werror_flag"
37921 || test ! -s conftest.err'
37922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37923 (eval $ac_try) 2>&5
37925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37926 (exit $ac_status); }; } &&
37927 { ac_try='test -s conftest$ac_exeext'
37928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37929 (eval $ac_try) 2>&5
37931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37932 (exit $ac_status); }; }; then
37935 echo "$as_me: failed program was:" >&5
37936 sed 's/^/| /' conftest.$ac_ext >&5
37940 rm -f conftest.err conftest.$ac_objext \
37941 conftest$ac_exeext conftest.$ac_ext
37946 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
37947 echo "${ECHO_T}$ol_cv_db_none" >&6
37949 if test $ol_cv_db_none = yes ; then
37954 if test $ol_cv_lib_db = no ; then
37955 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
37956 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
37957 if test "${ol_cv_db_db43+set}" = set; then
37958 echo $ECHO_N "(cached) $ECHO_C" >&6
37963 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
37965 cat >conftest.$ac_ext <<_ACEOF
37968 cat confdefs.h >>conftest.$ac_ext
37969 cat >>conftest.$ac_ext <<_ACEOF
37970 /* end confdefs.h. */
37972 #ifdef HAVE_DB_185_H
37973 # include <db_185.h>
37978 #ifndef DB_VERSION_MAJOR
37979 # define DB_VERSION_MAJOR 1
37983 #define NULL ((void*)0)
37990 #if DB_VERSION_MAJOR > 1
37993 int major, minor, patch;
37995 version = db_version( &major, &minor, &patch );
37997 if( major != DB_VERSION_MAJOR ||
37998 minor < DB_VERSION_MINOR )
38000 printf("Berkeley DB version mismatch\n"
38001 "\theader: %s\n\tlibrary: %s\n",
38002 DB_VERSION_STRING, version);
38008 #if DB_VERSION_MAJOR > 2
38009 db_env_create( NULL, 0 );
38010 #elif DB_VERSION_MAJOR > 1
38011 db_appexit( NULL );
38013 (void) dbopen( NULL, 0, 0, 0, NULL);
38020 rm -f conftest.$ac_objext conftest$ac_exeext
38021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38022 (eval $ac_link) 2>conftest.er1
38024 grep -v '^ *+' conftest.er1 >conftest.err
38026 cat conftest.err >&5
38027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38028 (exit $ac_status); } &&
38029 { ac_try='test -z "$ac_c_werror_flag"
38030 || test ! -s conftest.err'
38031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38032 (eval $ac_try) 2>&5
38034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38035 (exit $ac_status); }; } &&
38036 { ac_try='test -s conftest$ac_exeext'
38037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38038 (eval $ac_try) 2>&5
38040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38041 (exit $ac_status); }; }; then
38044 echo "$as_me: failed program was:" >&5
38045 sed 's/^/| /' conftest.$ac_ext >&5
38049 rm -f conftest.err conftest.$ac_objext \
38050 conftest$ac_exeext conftest.$ac_ext
38055 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
38056 echo "${ECHO_T}$ol_cv_db_db43" >&6
38058 if test $ol_cv_db_db43 = yes ; then
38059 ol_cv_lib_db=-ldb43
38063 if test $ol_cv_lib_db = no ; then
38064 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
38065 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
38066 if test "${ol_cv_db_db_43+set}" = set; then
38067 echo $ECHO_N "(cached) $ECHO_C" >&6
38072 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38074 cat >conftest.$ac_ext <<_ACEOF
38077 cat confdefs.h >>conftest.$ac_ext
38078 cat >>conftest.$ac_ext <<_ACEOF
38079 /* end confdefs.h. */
38081 #ifdef HAVE_DB_185_H
38082 # include <db_185.h>
38087 #ifndef DB_VERSION_MAJOR
38088 # define DB_VERSION_MAJOR 1
38092 #define NULL ((void*)0)
38099 #if DB_VERSION_MAJOR > 1
38102 int major, minor, patch;
38104 version = db_version( &major, &minor, &patch );
38106 if( major != DB_VERSION_MAJOR ||
38107 minor < DB_VERSION_MINOR )
38109 printf("Berkeley DB version mismatch\n"
38110 "\theader: %s\n\tlibrary: %s\n",
38111 DB_VERSION_STRING, version);
38117 #if DB_VERSION_MAJOR > 2
38118 db_env_create( NULL, 0 );
38119 #elif DB_VERSION_MAJOR > 1
38120 db_appexit( NULL );
38122 (void) dbopen( NULL, 0, 0, 0, NULL);
38129 rm -f conftest.$ac_objext conftest$ac_exeext
38130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38131 (eval $ac_link) 2>conftest.er1
38133 grep -v '^ *+' conftest.er1 >conftest.err
38135 cat conftest.err >&5
38136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38137 (exit $ac_status); } &&
38138 { ac_try='test -z "$ac_c_werror_flag"
38139 || test ! -s conftest.err'
38140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38141 (eval $ac_try) 2>&5
38143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38144 (exit $ac_status); }; } &&
38145 { ac_try='test -s conftest$ac_exeext'
38146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38147 (eval $ac_try) 2>&5
38149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38150 (exit $ac_status); }; }; then
38153 echo "$as_me: failed program was:" >&5
38154 sed 's/^/| /' conftest.$ac_ext >&5
38158 rm -f conftest.err conftest.$ac_objext \
38159 conftest$ac_exeext conftest.$ac_ext
38164 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
38165 echo "${ECHO_T}$ol_cv_db_db_43" >&6
38167 if test $ol_cv_db_db_43 = yes ; then
38168 ol_cv_lib_db=-ldb-43
38172 if test $ol_cv_lib_db = no ; then
38173 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
38174 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
38175 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
38176 echo $ECHO_N "(cached) $ECHO_C" >&6
38181 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38183 cat >conftest.$ac_ext <<_ACEOF
38186 cat confdefs.h >>conftest.$ac_ext
38187 cat >>conftest.$ac_ext <<_ACEOF
38188 /* end confdefs.h. */
38190 #ifdef HAVE_DB_185_H
38191 # include <db_185.h>
38196 #ifndef DB_VERSION_MAJOR
38197 # define DB_VERSION_MAJOR 1
38201 #define NULL ((void*)0)
38208 #if DB_VERSION_MAJOR > 1
38211 int major, minor, patch;
38213 version = db_version( &major, &minor, &patch );
38215 if( major != DB_VERSION_MAJOR ||
38216 minor < DB_VERSION_MINOR )
38218 printf("Berkeley DB version mismatch\n"
38219 "\theader: %s\n\tlibrary: %s\n",
38220 DB_VERSION_STRING, version);
38226 #if DB_VERSION_MAJOR > 2
38227 db_env_create( NULL, 0 );
38228 #elif DB_VERSION_MAJOR > 1
38229 db_appexit( NULL );
38231 (void) dbopen( NULL, 0, 0, 0, NULL);
38238 rm -f conftest.$ac_objext conftest$ac_exeext
38239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38240 (eval $ac_link) 2>conftest.er1
38242 grep -v '^ *+' conftest.er1 >conftest.err
38244 cat conftest.err >&5
38245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38246 (exit $ac_status); } &&
38247 { ac_try='test -z "$ac_c_werror_flag"
38248 || test ! -s conftest.err'
38249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38250 (eval $ac_try) 2>&5
38252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38253 (exit $ac_status); }; } &&
38254 { ac_try='test -s conftest$ac_exeext'
38255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38256 (eval $ac_try) 2>&5
38258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38259 (exit $ac_status); }; }; then
38260 ol_cv_db_db_4_dot_3=yes
38262 echo "$as_me: failed program was:" >&5
38263 sed 's/^/| /' conftest.$ac_ext >&5
38265 ol_cv_db_db_4_dot_3=no
38267 rm -f conftest.err conftest.$ac_objext \
38268 conftest$ac_exeext conftest.$ac_ext
38273 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
38274 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
38276 if test $ol_cv_db_db_4_dot_3 = yes ; then
38277 ol_cv_lib_db=-ldb-4.3
38281 if test $ol_cv_lib_db = no ; then
38282 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
38283 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
38284 if test "${ol_cv_db_db_4_3+set}" = set; then
38285 echo $ECHO_N "(cached) $ECHO_C" >&6
38290 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38292 cat >conftest.$ac_ext <<_ACEOF
38295 cat confdefs.h >>conftest.$ac_ext
38296 cat >>conftest.$ac_ext <<_ACEOF
38297 /* end confdefs.h. */
38299 #ifdef HAVE_DB_185_H
38300 # include <db_185.h>
38305 #ifndef DB_VERSION_MAJOR
38306 # define DB_VERSION_MAJOR 1
38310 #define NULL ((void*)0)
38317 #if DB_VERSION_MAJOR > 1
38320 int major, minor, patch;
38322 version = db_version( &major, &minor, &patch );
38324 if( major != DB_VERSION_MAJOR ||
38325 minor < DB_VERSION_MINOR )
38327 printf("Berkeley DB version mismatch\n"
38328 "\theader: %s\n\tlibrary: %s\n",
38329 DB_VERSION_STRING, version);
38335 #if DB_VERSION_MAJOR > 2
38336 db_env_create( NULL, 0 );
38337 #elif DB_VERSION_MAJOR > 1
38338 db_appexit( NULL );
38340 (void) dbopen( NULL, 0, 0, 0, NULL);
38347 rm -f conftest.$ac_objext conftest$ac_exeext
38348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38349 (eval $ac_link) 2>conftest.er1
38351 grep -v '^ *+' conftest.er1 >conftest.err
38353 cat conftest.err >&5
38354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38355 (exit $ac_status); } &&
38356 { ac_try='test -z "$ac_c_werror_flag"
38357 || test ! -s conftest.err'
38358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38359 (eval $ac_try) 2>&5
38361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38362 (exit $ac_status); }; } &&
38363 { ac_try='test -s conftest$ac_exeext'
38364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38365 (eval $ac_try) 2>&5
38367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38368 (exit $ac_status); }; }; then
38369 ol_cv_db_db_4_3=yes
38371 echo "$as_me: failed program was:" >&5
38372 sed 's/^/| /' conftest.$ac_ext >&5
38376 rm -f conftest.err conftest.$ac_objext \
38377 conftest$ac_exeext conftest.$ac_ext
38382 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
38383 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
38385 if test $ol_cv_db_db_4_3 = yes ; then
38386 ol_cv_lib_db=-ldb-4-3
38390 if test $ol_cv_lib_db = no ; then
38391 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
38392 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
38393 if test "${ol_cv_db_db42+set}" = set; then
38394 echo $ECHO_N "(cached) $ECHO_C" >&6
38399 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38401 cat >conftest.$ac_ext <<_ACEOF
38404 cat confdefs.h >>conftest.$ac_ext
38405 cat >>conftest.$ac_ext <<_ACEOF
38406 /* end confdefs.h. */
38408 #ifdef HAVE_DB_185_H
38409 # include <db_185.h>
38414 #ifndef DB_VERSION_MAJOR
38415 # define DB_VERSION_MAJOR 1
38419 #define NULL ((void*)0)
38426 #if DB_VERSION_MAJOR > 1
38429 int major, minor, patch;
38431 version = db_version( &major, &minor, &patch );
38433 if( major != DB_VERSION_MAJOR ||
38434 minor < DB_VERSION_MINOR )
38436 printf("Berkeley DB version mismatch\n"
38437 "\theader: %s\n\tlibrary: %s\n",
38438 DB_VERSION_STRING, version);
38444 #if DB_VERSION_MAJOR > 2
38445 db_env_create( NULL, 0 );
38446 #elif DB_VERSION_MAJOR > 1
38447 db_appexit( NULL );
38449 (void) dbopen( NULL, 0, 0, 0, NULL);
38456 rm -f conftest.$ac_objext conftest$ac_exeext
38457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38458 (eval $ac_link) 2>conftest.er1
38460 grep -v '^ *+' conftest.er1 >conftest.err
38462 cat conftest.err >&5
38463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38464 (exit $ac_status); } &&
38465 { ac_try='test -z "$ac_c_werror_flag"
38466 || test ! -s conftest.err'
38467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38468 (eval $ac_try) 2>&5
38470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38471 (exit $ac_status); }; } &&
38472 { ac_try='test -s conftest$ac_exeext'
38473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38474 (eval $ac_try) 2>&5
38476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38477 (exit $ac_status); }; }; then
38480 echo "$as_me: failed program was:" >&5
38481 sed 's/^/| /' conftest.$ac_ext >&5
38485 rm -f conftest.err conftest.$ac_objext \
38486 conftest$ac_exeext conftest.$ac_ext
38491 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
38492 echo "${ECHO_T}$ol_cv_db_db42" >&6
38494 if test $ol_cv_db_db42 = yes ; then
38495 ol_cv_lib_db=-ldb42
38499 if test $ol_cv_lib_db = no ; then
38500 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
38501 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
38502 if test "${ol_cv_db_db_42+set}" = set; then
38503 echo $ECHO_N "(cached) $ECHO_C" >&6
38508 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38510 cat >conftest.$ac_ext <<_ACEOF
38513 cat confdefs.h >>conftest.$ac_ext
38514 cat >>conftest.$ac_ext <<_ACEOF
38515 /* end confdefs.h. */
38517 #ifdef HAVE_DB_185_H
38518 # include <db_185.h>
38523 #ifndef DB_VERSION_MAJOR
38524 # define DB_VERSION_MAJOR 1
38528 #define NULL ((void*)0)
38535 #if DB_VERSION_MAJOR > 1
38538 int major, minor, patch;
38540 version = db_version( &major, &minor, &patch );
38542 if( major != DB_VERSION_MAJOR ||
38543 minor < DB_VERSION_MINOR )
38545 printf("Berkeley DB version mismatch\n"
38546 "\theader: %s\n\tlibrary: %s\n",
38547 DB_VERSION_STRING, version);
38553 #if DB_VERSION_MAJOR > 2
38554 db_env_create( NULL, 0 );
38555 #elif DB_VERSION_MAJOR > 1
38556 db_appexit( NULL );
38558 (void) dbopen( NULL, 0, 0, 0, NULL);
38565 rm -f conftest.$ac_objext conftest$ac_exeext
38566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38567 (eval $ac_link) 2>conftest.er1
38569 grep -v '^ *+' conftest.er1 >conftest.err
38571 cat conftest.err >&5
38572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38573 (exit $ac_status); } &&
38574 { ac_try='test -z "$ac_c_werror_flag"
38575 || test ! -s conftest.err'
38576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38577 (eval $ac_try) 2>&5
38579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38580 (exit $ac_status); }; } &&
38581 { ac_try='test -s conftest$ac_exeext'
38582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38583 (eval $ac_try) 2>&5
38585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38586 (exit $ac_status); }; }; then
38589 echo "$as_me: failed program was:" >&5
38590 sed 's/^/| /' conftest.$ac_ext >&5
38594 rm -f conftest.err conftest.$ac_objext \
38595 conftest$ac_exeext conftest.$ac_ext
38600 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
38601 echo "${ECHO_T}$ol_cv_db_db_42" >&6
38603 if test $ol_cv_db_db_42 = yes ; then
38604 ol_cv_lib_db=-ldb-42
38608 if test $ol_cv_lib_db = no ; then
38609 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
38610 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
38611 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
38612 echo $ECHO_N "(cached) $ECHO_C" >&6
38617 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38619 cat >conftest.$ac_ext <<_ACEOF
38622 cat confdefs.h >>conftest.$ac_ext
38623 cat >>conftest.$ac_ext <<_ACEOF
38624 /* end confdefs.h. */
38626 #ifdef HAVE_DB_185_H
38627 # include <db_185.h>
38632 #ifndef DB_VERSION_MAJOR
38633 # define DB_VERSION_MAJOR 1
38637 #define NULL ((void*)0)
38644 #if DB_VERSION_MAJOR > 1
38647 int major, minor, patch;
38649 version = db_version( &major, &minor, &patch );
38651 if( major != DB_VERSION_MAJOR ||
38652 minor < DB_VERSION_MINOR )
38654 printf("Berkeley DB version mismatch\n"
38655 "\theader: %s\n\tlibrary: %s\n",
38656 DB_VERSION_STRING, version);
38662 #if DB_VERSION_MAJOR > 2
38663 db_env_create( NULL, 0 );
38664 #elif DB_VERSION_MAJOR > 1
38665 db_appexit( NULL );
38667 (void) dbopen( NULL, 0, 0, 0, NULL);
38674 rm -f conftest.$ac_objext conftest$ac_exeext
38675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38676 (eval $ac_link) 2>conftest.er1
38678 grep -v '^ *+' conftest.er1 >conftest.err
38680 cat conftest.err >&5
38681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38682 (exit $ac_status); } &&
38683 { ac_try='test -z "$ac_c_werror_flag"
38684 || test ! -s conftest.err'
38685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38686 (eval $ac_try) 2>&5
38688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38689 (exit $ac_status); }; } &&
38690 { ac_try='test -s conftest$ac_exeext'
38691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38692 (eval $ac_try) 2>&5
38694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38695 (exit $ac_status); }; }; then
38696 ol_cv_db_db_4_dot_2=yes
38698 echo "$as_me: failed program was:" >&5
38699 sed 's/^/| /' conftest.$ac_ext >&5
38701 ol_cv_db_db_4_dot_2=no
38703 rm -f conftest.err conftest.$ac_objext \
38704 conftest$ac_exeext conftest.$ac_ext
38709 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
38710 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
38712 if test $ol_cv_db_db_4_dot_2 = yes ; then
38713 ol_cv_lib_db=-ldb-4.2
38717 if test $ol_cv_lib_db = no ; then
38718 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
38719 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
38720 if test "${ol_cv_db_db_4_2+set}" = set; then
38721 echo $ECHO_N "(cached) $ECHO_C" >&6
38726 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38728 cat >conftest.$ac_ext <<_ACEOF
38731 cat confdefs.h >>conftest.$ac_ext
38732 cat >>conftest.$ac_ext <<_ACEOF
38733 /* end confdefs.h. */
38735 #ifdef HAVE_DB_185_H
38736 # include <db_185.h>
38741 #ifndef DB_VERSION_MAJOR
38742 # define DB_VERSION_MAJOR 1
38746 #define NULL ((void*)0)
38753 #if DB_VERSION_MAJOR > 1
38756 int major, minor, patch;
38758 version = db_version( &major, &minor, &patch );
38760 if( major != DB_VERSION_MAJOR ||
38761 minor < DB_VERSION_MINOR )
38763 printf("Berkeley DB version mismatch\n"
38764 "\theader: %s\n\tlibrary: %s\n",
38765 DB_VERSION_STRING, version);
38771 #if DB_VERSION_MAJOR > 2
38772 db_env_create( NULL, 0 );
38773 #elif DB_VERSION_MAJOR > 1
38774 db_appexit( NULL );
38776 (void) dbopen( NULL, 0, 0, 0, NULL);
38783 rm -f conftest.$ac_objext conftest$ac_exeext
38784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38785 (eval $ac_link) 2>conftest.er1
38787 grep -v '^ *+' conftest.er1 >conftest.err
38789 cat conftest.err >&5
38790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38791 (exit $ac_status); } &&
38792 { ac_try='test -z "$ac_c_werror_flag"
38793 || test ! -s conftest.err'
38794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38795 (eval $ac_try) 2>&5
38797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38798 (exit $ac_status); }; } &&
38799 { ac_try='test -s conftest$ac_exeext'
38800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38801 (eval $ac_try) 2>&5
38803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38804 (exit $ac_status); }; }; then
38805 ol_cv_db_db_4_2=yes
38807 echo "$as_me: failed program was:" >&5
38808 sed 's/^/| /' conftest.$ac_ext >&5
38812 rm -f conftest.err conftest.$ac_objext \
38813 conftest$ac_exeext conftest.$ac_ext
38818 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
38819 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
38821 if test $ol_cv_db_db_4_2 = yes ; then
38822 ol_cv_lib_db=-ldb-4-2
38826 if test $ol_cv_lib_db = no ; then
38827 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
38828 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
38829 if test "${ol_cv_db_db_4+set}" = set; then
38830 echo $ECHO_N "(cached) $ECHO_C" >&6
38835 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38837 cat >conftest.$ac_ext <<_ACEOF
38840 cat confdefs.h >>conftest.$ac_ext
38841 cat >>conftest.$ac_ext <<_ACEOF
38842 /* end confdefs.h. */
38844 #ifdef HAVE_DB_185_H
38845 # include <db_185.h>
38850 #ifndef DB_VERSION_MAJOR
38851 # define DB_VERSION_MAJOR 1
38855 #define NULL ((void*)0)
38862 #if DB_VERSION_MAJOR > 1
38865 int major, minor, patch;
38867 version = db_version( &major, &minor, &patch );
38869 if( major != DB_VERSION_MAJOR ||
38870 minor < DB_VERSION_MINOR )
38872 printf("Berkeley DB version mismatch\n"
38873 "\theader: %s\n\tlibrary: %s\n",
38874 DB_VERSION_STRING, version);
38880 #if DB_VERSION_MAJOR > 2
38881 db_env_create( NULL, 0 );
38882 #elif DB_VERSION_MAJOR > 1
38883 db_appexit( NULL );
38885 (void) dbopen( NULL, 0, 0, 0, NULL);
38892 rm -f conftest.$ac_objext conftest$ac_exeext
38893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38894 (eval $ac_link) 2>conftest.er1
38896 grep -v '^ *+' conftest.er1 >conftest.err
38898 cat conftest.err >&5
38899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38900 (exit $ac_status); } &&
38901 { ac_try='test -z "$ac_c_werror_flag"
38902 || test ! -s conftest.err'
38903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38904 (eval $ac_try) 2>&5
38906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38907 (exit $ac_status); }; } &&
38908 { ac_try='test -s conftest$ac_exeext'
38909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38910 (eval $ac_try) 2>&5
38912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38913 (exit $ac_status); }; }; then
38916 echo "$as_me: failed program was:" >&5
38917 sed 's/^/| /' conftest.$ac_ext >&5
38921 rm -f conftest.err conftest.$ac_objext \
38922 conftest$ac_exeext conftest.$ac_ext
38927 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
38928 echo "${ECHO_T}$ol_cv_db_db_4" >&6
38930 if test $ol_cv_db_db_4 = yes ; then
38931 ol_cv_lib_db=-ldb-4
38935 if test $ol_cv_lib_db = no ; then
38936 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
38937 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
38938 if test "${ol_cv_db_db4+set}" = set; then
38939 echo $ECHO_N "(cached) $ECHO_C" >&6
38944 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38946 cat >conftest.$ac_ext <<_ACEOF
38949 cat confdefs.h >>conftest.$ac_ext
38950 cat >>conftest.$ac_ext <<_ACEOF
38951 /* end confdefs.h. */
38953 #ifdef HAVE_DB_185_H
38954 # include <db_185.h>
38959 #ifndef DB_VERSION_MAJOR
38960 # define DB_VERSION_MAJOR 1
38964 #define NULL ((void*)0)
38971 #if DB_VERSION_MAJOR > 1
38974 int major, minor, patch;
38976 version = db_version( &major, &minor, &patch );
38978 if( major != DB_VERSION_MAJOR ||
38979 minor < DB_VERSION_MINOR )
38981 printf("Berkeley DB version mismatch\n"
38982 "\theader: %s\n\tlibrary: %s\n",
38983 DB_VERSION_STRING, version);
38989 #if DB_VERSION_MAJOR > 2
38990 db_env_create( NULL, 0 );
38991 #elif DB_VERSION_MAJOR > 1
38992 db_appexit( NULL );
38994 (void) dbopen( NULL, 0, 0, 0, NULL);
39001 rm -f conftest.$ac_objext conftest$ac_exeext
39002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39003 (eval $ac_link) 2>conftest.er1
39005 grep -v '^ *+' conftest.er1 >conftest.err
39007 cat conftest.err >&5
39008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39009 (exit $ac_status); } &&
39010 { ac_try='test -z "$ac_c_werror_flag"
39011 || test ! -s conftest.err'
39012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39013 (eval $ac_try) 2>&5
39015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39016 (exit $ac_status); }; } &&
39017 { ac_try='test -s conftest$ac_exeext'
39018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39019 (eval $ac_try) 2>&5
39021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39022 (exit $ac_status); }; }; then
39025 echo "$as_me: failed program was:" >&5
39026 sed 's/^/| /' conftest.$ac_ext >&5
39030 rm -f conftest.err conftest.$ac_objext \
39031 conftest$ac_exeext conftest.$ac_ext
39036 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
39037 echo "${ECHO_T}$ol_cv_db_db4" >&6
39039 if test $ol_cv_db_db4 = yes ; then
39044 if test $ol_cv_lib_db = no ; then
39045 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
39046 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
39047 if test "${ol_cv_db_db+set}" = set; then
39048 echo $ECHO_N "(cached) $ECHO_C" >&6
39053 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39055 cat >conftest.$ac_ext <<_ACEOF
39058 cat confdefs.h >>conftest.$ac_ext
39059 cat >>conftest.$ac_ext <<_ACEOF
39060 /* end confdefs.h. */
39062 #ifdef HAVE_DB_185_H
39063 # include <db_185.h>
39068 #ifndef DB_VERSION_MAJOR
39069 # define DB_VERSION_MAJOR 1
39073 #define NULL ((void*)0)
39080 #if DB_VERSION_MAJOR > 1
39083 int major, minor, patch;
39085 version = db_version( &major, &minor, &patch );
39087 if( major != DB_VERSION_MAJOR ||
39088 minor < DB_VERSION_MINOR )
39090 printf("Berkeley DB version mismatch\n"
39091 "\theader: %s\n\tlibrary: %s\n",
39092 DB_VERSION_STRING, version);
39098 #if DB_VERSION_MAJOR > 2
39099 db_env_create( NULL, 0 );
39100 #elif DB_VERSION_MAJOR > 1
39101 db_appexit( NULL );
39103 (void) dbopen( NULL, 0, 0, 0, NULL);
39110 rm -f conftest.$ac_objext conftest$ac_exeext
39111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39112 (eval $ac_link) 2>conftest.er1
39114 grep -v '^ *+' conftest.er1 >conftest.err
39116 cat conftest.err >&5
39117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39118 (exit $ac_status); } &&
39119 { ac_try='test -z "$ac_c_werror_flag"
39120 || test ! -s conftest.err'
39121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39122 (eval $ac_try) 2>&5
39124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39125 (exit $ac_status); }; } &&
39126 { ac_try='test -s conftest$ac_exeext'
39127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39128 (eval $ac_try) 2>&5
39130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39131 (exit $ac_status); }; }; then
39134 echo "$as_me: failed program was:" >&5
39135 sed 's/^/| /' conftest.$ac_ext >&5
39139 rm -f conftest.err conftest.$ac_objext \
39140 conftest$ac_exeext conftest.$ac_ext
39145 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
39146 echo "${ECHO_T}$ol_cv_db_db" >&6
39148 if test $ol_cv_db_db = yes ; then
39153 if test $ol_cv_lib_db = no ; then
39154 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
39155 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
39156 if test "${ol_cv_db_db41+set}" = set; then
39157 echo $ECHO_N "(cached) $ECHO_C" >&6
39162 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39164 cat >conftest.$ac_ext <<_ACEOF
39167 cat confdefs.h >>conftest.$ac_ext
39168 cat >>conftest.$ac_ext <<_ACEOF
39169 /* end confdefs.h. */
39171 #ifdef HAVE_DB_185_H
39172 # include <db_185.h>
39177 #ifndef DB_VERSION_MAJOR
39178 # define DB_VERSION_MAJOR 1
39182 #define NULL ((void*)0)
39189 #if DB_VERSION_MAJOR > 1
39192 int major, minor, patch;
39194 version = db_version( &major, &minor, &patch );
39196 if( major != DB_VERSION_MAJOR ||
39197 minor < DB_VERSION_MINOR )
39199 printf("Berkeley DB version mismatch\n"
39200 "\theader: %s\n\tlibrary: %s\n",
39201 DB_VERSION_STRING, version);
39207 #if DB_VERSION_MAJOR > 2
39208 db_env_create( NULL, 0 );
39209 #elif DB_VERSION_MAJOR > 1
39210 db_appexit( NULL );
39212 (void) dbopen( NULL, 0, 0, 0, NULL);
39219 rm -f conftest.$ac_objext conftest$ac_exeext
39220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39221 (eval $ac_link) 2>conftest.er1
39223 grep -v '^ *+' conftest.er1 >conftest.err
39225 cat conftest.err >&5
39226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39227 (exit $ac_status); } &&
39228 { ac_try='test -z "$ac_c_werror_flag"
39229 || test ! -s conftest.err'
39230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39231 (eval $ac_try) 2>&5
39233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39234 (exit $ac_status); }; } &&
39235 { ac_try='test -s conftest$ac_exeext'
39236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39237 (eval $ac_try) 2>&5
39239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39240 (exit $ac_status); }; }; then
39243 echo "$as_me: failed program was:" >&5
39244 sed 's/^/| /' conftest.$ac_ext >&5
39248 rm -f conftest.err conftest.$ac_objext \
39249 conftest$ac_exeext conftest.$ac_ext
39254 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
39255 echo "${ECHO_T}$ol_cv_db_db41" >&6
39257 if test $ol_cv_db_db41 = yes ; then
39258 ol_cv_lib_db=-ldb41
39262 if test $ol_cv_lib_db = no ; then
39263 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
39264 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
39265 if test "${ol_cv_db_db_41+set}" = set; then
39266 echo $ECHO_N "(cached) $ECHO_C" >&6
39271 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39273 cat >conftest.$ac_ext <<_ACEOF
39276 cat confdefs.h >>conftest.$ac_ext
39277 cat >>conftest.$ac_ext <<_ACEOF
39278 /* end confdefs.h. */
39280 #ifdef HAVE_DB_185_H
39281 # include <db_185.h>
39286 #ifndef DB_VERSION_MAJOR
39287 # define DB_VERSION_MAJOR 1
39291 #define NULL ((void*)0)
39298 #if DB_VERSION_MAJOR > 1
39301 int major, minor, patch;
39303 version = db_version( &major, &minor, &patch );
39305 if( major != DB_VERSION_MAJOR ||
39306 minor < DB_VERSION_MINOR )
39308 printf("Berkeley DB version mismatch\n"
39309 "\theader: %s\n\tlibrary: %s\n",
39310 DB_VERSION_STRING, version);
39316 #if DB_VERSION_MAJOR > 2
39317 db_env_create( NULL, 0 );
39318 #elif DB_VERSION_MAJOR > 1
39319 db_appexit( NULL );
39321 (void) dbopen( NULL, 0, 0, 0, NULL);
39328 rm -f conftest.$ac_objext conftest$ac_exeext
39329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39330 (eval $ac_link) 2>conftest.er1
39332 grep -v '^ *+' conftest.er1 >conftest.err
39334 cat conftest.err >&5
39335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39336 (exit $ac_status); } &&
39337 { ac_try='test -z "$ac_c_werror_flag"
39338 || test ! -s conftest.err'
39339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39340 (eval $ac_try) 2>&5
39342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39343 (exit $ac_status); }; } &&
39344 { ac_try='test -s conftest$ac_exeext'
39345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39346 (eval $ac_try) 2>&5
39348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39349 (exit $ac_status); }; }; then
39352 echo "$as_me: failed program was:" >&5
39353 sed 's/^/| /' conftest.$ac_ext >&5
39357 rm -f conftest.err conftest.$ac_objext \
39358 conftest$ac_exeext conftest.$ac_ext
39363 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
39364 echo "${ECHO_T}$ol_cv_db_db_41" >&6
39366 if test $ol_cv_db_db_41 = yes ; then
39367 ol_cv_lib_db=-ldb-41
39371 if test $ol_cv_lib_db = no ; then
39372 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
39373 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
39374 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
39375 echo $ECHO_N "(cached) $ECHO_C" >&6
39380 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39382 cat >conftest.$ac_ext <<_ACEOF
39385 cat confdefs.h >>conftest.$ac_ext
39386 cat >>conftest.$ac_ext <<_ACEOF
39387 /* end confdefs.h. */
39389 #ifdef HAVE_DB_185_H
39390 # include <db_185.h>
39395 #ifndef DB_VERSION_MAJOR
39396 # define DB_VERSION_MAJOR 1
39400 #define NULL ((void*)0)
39407 #if DB_VERSION_MAJOR > 1
39410 int major, minor, patch;
39412 version = db_version( &major, &minor, &patch );
39414 if( major != DB_VERSION_MAJOR ||
39415 minor < DB_VERSION_MINOR )
39417 printf("Berkeley DB version mismatch\n"
39418 "\theader: %s\n\tlibrary: %s\n",
39419 DB_VERSION_STRING, version);
39425 #if DB_VERSION_MAJOR > 2
39426 db_env_create( NULL, 0 );
39427 #elif DB_VERSION_MAJOR > 1
39428 db_appexit( NULL );
39430 (void) dbopen( NULL, 0, 0, 0, NULL);
39437 rm -f conftest.$ac_objext conftest$ac_exeext
39438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39439 (eval $ac_link) 2>conftest.er1
39441 grep -v '^ *+' conftest.er1 >conftest.err
39443 cat conftest.err >&5
39444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39445 (exit $ac_status); } &&
39446 { ac_try='test -z "$ac_c_werror_flag"
39447 || test ! -s conftest.err'
39448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39449 (eval $ac_try) 2>&5
39451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39452 (exit $ac_status); }; } &&
39453 { ac_try='test -s conftest$ac_exeext'
39454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39455 (eval $ac_try) 2>&5
39457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39458 (exit $ac_status); }; }; then
39459 ol_cv_db_db_4_dot_1=yes
39461 echo "$as_me: failed program was:" >&5
39462 sed 's/^/| /' conftest.$ac_ext >&5
39464 ol_cv_db_db_4_dot_1=no
39466 rm -f conftest.err conftest.$ac_objext \
39467 conftest$ac_exeext conftest.$ac_ext
39472 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
39473 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
39475 if test $ol_cv_db_db_4_dot_1 = yes ; then
39476 ol_cv_lib_db=-ldb-4.1
39480 if test $ol_cv_lib_db = no ; then
39481 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
39482 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
39483 if test "${ol_cv_db_db_4_1+set}" = set; then
39484 echo $ECHO_N "(cached) $ECHO_C" >&6
39489 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39491 cat >conftest.$ac_ext <<_ACEOF
39494 cat confdefs.h >>conftest.$ac_ext
39495 cat >>conftest.$ac_ext <<_ACEOF
39496 /* end confdefs.h. */
39498 #ifdef HAVE_DB_185_H
39499 # include <db_185.h>
39504 #ifndef DB_VERSION_MAJOR
39505 # define DB_VERSION_MAJOR 1
39509 #define NULL ((void*)0)
39516 #if DB_VERSION_MAJOR > 1
39519 int major, minor, patch;
39521 version = db_version( &major, &minor, &patch );
39523 if( major != DB_VERSION_MAJOR ||
39524 minor < DB_VERSION_MINOR )
39526 printf("Berkeley DB version mismatch\n"
39527 "\theader: %s\n\tlibrary: %s\n",
39528 DB_VERSION_STRING, version);
39534 #if DB_VERSION_MAJOR > 2
39535 db_env_create( NULL, 0 );
39536 #elif DB_VERSION_MAJOR > 1
39537 db_appexit( NULL );
39539 (void) dbopen( NULL, 0, 0, 0, NULL);
39546 rm -f conftest.$ac_objext conftest$ac_exeext
39547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39548 (eval $ac_link) 2>conftest.er1
39550 grep -v '^ *+' conftest.er1 >conftest.err
39552 cat conftest.err >&5
39553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39554 (exit $ac_status); } &&
39555 { ac_try='test -z "$ac_c_werror_flag"
39556 || test ! -s conftest.err'
39557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39558 (eval $ac_try) 2>&5
39560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39561 (exit $ac_status); }; } &&
39562 { ac_try='test -s conftest$ac_exeext'
39563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39564 (eval $ac_try) 2>&5
39566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39567 (exit $ac_status); }; }; then
39568 ol_cv_db_db_4_1=yes
39570 echo "$as_me: failed program was:" >&5
39571 sed 's/^/| /' conftest.$ac_ext >&5
39575 rm -f conftest.err conftest.$ac_objext \
39576 conftest$ac_exeext conftest.$ac_ext
39581 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
39582 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
39584 if test $ol_cv_db_db_4_1 = yes ; then
39585 ol_cv_lib_db=-ldb-4-1
39589 if test $ol_cv_lib_db = no ; then
39590 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
39591 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
39592 if test "${ol_cv_db_db3+set}" = set; then
39593 echo $ECHO_N "(cached) $ECHO_C" >&6
39598 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39600 cat >conftest.$ac_ext <<_ACEOF
39603 cat confdefs.h >>conftest.$ac_ext
39604 cat >>conftest.$ac_ext <<_ACEOF
39605 /* end confdefs.h. */
39607 #ifdef HAVE_DB_185_H
39608 # include <db_185.h>
39613 #ifndef DB_VERSION_MAJOR
39614 # define DB_VERSION_MAJOR 1
39618 #define NULL ((void*)0)
39625 #if DB_VERSION_MAJOR > 1
39628 int major, minor, patch;
39630 version = db_version( &major, &minor, &patch );
39632 if( major != DB_VERSION_MAJOR ||
39633 minor < DB_VERSION_MINOR )
39635 printf("Berkeley DB version mismatch\n"
39636 "\theader: %s\n\tlibrary: %s\n",
39637 DB_VERSION_STRING, version);
39643 #if DB_VERSION_MAJOR > 2
39644 db_env_create( NULL, 0 );
39645 #elif DB_VERSION_MAJOR > 1
39646 db_appexit( NULL );
39648 (void) dbopen( NULL, 0, 0, 0, NULL);
39655 rm -f conftest.$ac_objext conftest$ac_exeext
39656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39657 (eval $ac_link) 2>conftest.er1
39659 grep -v '^ *+' conftest.er1 >conftest.err
39661 cat conftest.err >&5
39662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39663 (exit $ac_status); } &&
39664 { ac_try='test -z "$ac_c_werror_flag"
39665 || test ! -s conftest.err'
39666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39667 (eval $ac_try) 2>&5
39669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39670 (exit $ac_status); }; } &&
39671 { ac_try='test -s conftest$ac_exeext'
39672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39673 (eval $ac_try) 2>&5
39675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39676 (exit $ac_status); }; }; then
39679 echo "$as_me: failed program was:" >&5
39680 sed 's/^/| /' conftest.$ac_ext >&5
39684 rm -f conftest.err conftest.$ac_objext \
39685 conftest$ac_exeext conftest.$ac_ext
39690 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
39691 echo "${ECHO_T}$ol_cv_db_db3" >&6
39693 if test $ol_cv_db_db3 = yes ; then
39698 if test $ol_cv_lib_db = no ; then
39699 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
39700 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
39701 if test "${ol_cv_db_db_3+set}" = set; then
39702 echo $ECHO_N "(cached) $ECHO_C" >&6
39707 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39709 cat >conftest.$ac_ext <<_ACEOF
39712 cat confdefs.h >>conftest.$ac_ext
39713 cat >>conftest.$ac_ext <<_ACEOF
39714 /* end confdefs.h. */
39716 #ifdef HAVE_DB_185_H
39717 # include <db_185.h>
39722 #ifndef DB_VERSION_MAJOR
39723 # define DB_VERSION_MAJOR 1
39727 #define NULL ((void*)0)
39734 #if DB_VERSION_MAJOR > 1
39737 int major, minor, patch;
39739 version = db_version( &major, &minor, &patch );
39741 if( major != DB_VERSION_MAJOR ||
39742 minor < DB_VERSION_MINOR )
39744 printf("Berkeley DB version mismatch\n"
39745 "\theader: %s\n\tlibrary: %s\n",
39746 DB_VERSION_STRING, version);
39752 #if DB_VERSION_MAJOR > 2
39753 db_env_create( NULL, 0 );
39754 #elif DB_VERSION_MAJOR > 1
39755 db_appexit( NULL );
39757 (void) dbopen( NULL, 0, 0, 0, NULL);
39764 rm -f conftest.$ac_objext conftest$ac_exeext
39765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39766 (eval $ac_link) 2>conftest.er1
39768 grep -v '^ *+' conftest.er1 >conftest.err
39770 cat conftest.err >&5
39771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39772 (exit $ac_status); } &&
39773 { ac_try='test -z "$ac_c_werror_flag"
39774 || test ! -s conftest.err'
39775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39776 (eval $ac_try) 2>&5
39778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39779 (exit $ac_status); }; } &&
39780 { ac_try='test -s conftest$ac_exeext'
39781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39782 (eval $ac_try) 2>&5
39784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39785 (exit $ac_status); }; }; then
39788 echo "$as_me: failed program was:" >&5
39789 sed 's/^/| /' conftest.$ac_ext >&5
39793 rm -f conftest.err conftest.$ac_objext \
39794 conftest$ac_exeext conftest.$ac_ext
39799 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
39800 echo "${ECHO_T}$ol_cv_db_db_3" >&6
39802 if test $ol_cv_db_db_3 = yes ; then
39803 ol_cv_lib_db=-ldb-3
39807 if test $ol_cv_lib_db = no ; then
39808 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
39809 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
39810 if test "${ol_cv_db_db2+set}" = set; then
39811 echo $ECHO_N "(cached) $ECHO_C" >&6
39816 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39818 cat >conftest.$ac_ext <<_ACEOF
39821 cat confdefs.h >>conftest.$ac_ext
39822 cat >>conftest.$ac_ext <<_ACEOF
39823 /* end confdefs.h. */
39825 #ifdef HAVE_DB_185_H
39826 # include <db_185.h>
39831 #ifndef DB_VERSION_MAJOR
39832 # define DB_VERSION_MAJOR 1
39836 #define NULL ((void*)0)
39843 #if DB_VERSION_MAJOR > 1
39846 int major, minor, patch;
39848 version = db_version( &major, &minor, &patch );
39850 if( major != DB_VERSION_MAJOR ||
39851 minor < DB_VERSION_MINOR )
39853 printf("Berkeley DB version mismatch\n"
39854 "\theader: %s\n\tlibrary: %s\n",
39855 DB_VERSION_STRING, version);
39861 #if DB_VERSION_MAJOR > 2
39862 db_env_create( NULL, 0 );
39863 #elif DB_VERSION_MAJOR > 1
39864 db_appexit( NULL );
39866 (void) dbopen( NULL, 0, 0, 0, NULL);
39873 rm -f conftest.$ac_objext conftest$ac_exeext
39874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39875 (eval $ac_link) 2>conftest.er1
39877 grep -v '^ *+' conftest.er1 >conftest.err
39879 cat conftest.err >&5
39880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39881 (exit $ac_status); } &&
39882 { ac_try='test -z "$ac_c_werror_flag"
39883 || test ! -s conftest.err'
39884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39885 (eval $ac_try) 2>&5
39887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39888 (exit $ac_status); }; } &&
39889 { ac_try='test -s conftest$ac_exeext'
39890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39891 (eval $ac_try) 2>&5
39893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39894 (exit $ac_status); }; }; then
39897 echo "$as_me: failed program was:" >&5
39898 sed 's/^/| /' conftest.$ac_ext >&5
39902 rm -f conftest.err conftest.$ac_objext \
39903 conftest$ac_exeext conftest.$ac_ext
39908 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
39909 echo "${ECHO_T}$ol_cv_db_db2" >&6
39911 if test $ol_cv_db_db2 = yes ; then
39916 if test $ol_cv_lib_db = no ; then
39917 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
39918 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
39919 if test "${ol_cv_db_db_2+set}" = set; then
39920 echo $ECHO_N "(cached) $ECHO_C" >&6
39925 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39927 cat >conftest.$ac_ext <<_ACEOF
39930 cat confdefs.h >>conftest.$ac_ext
39931 cat >>conftest.$ac_ext <<_ACEOF
39932 /* end confdefs.h. */
39934 #ifdef HAVE_DB_185_H
39935 # include <db_185.h>
39940 #ifndef DB_VERSION_MAJOR
39941 # define DB_VERSION_MAJOR 1
39945 #define NULL ((void*)0)
39952 #if DB_VERSION_MAJOR > 1
39955 int major, minor, patch;
39957 version = db_version( &major, &minor, &patch );
39959 if( major != DB_VERSION_MAJOR ||
39960 minor < DB_VERSION_MINOR )
39962 printf("Berkeley DB version mismatch\n"
39963 "\theader: %s\n\tlibrary: %s\n",
39964 DB_VERSION_STRING, version);
39970 #if DB_VERSION_MAJOR > 2
39971 db_env_create( NULL, 0 );
39972 #elif DB_VERSION_MAJOR > 1
39973 db_appexit( NULL );
39975 (void) dbopen( NULL, 0, 0, 0, NULL);
39982 rm -f conftest.$ac_objext conftest$ac_exeext
39983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39984 (eval $ac_link) 2>conftest.er1
39986 grep -v '^ *+' conftest.er1 >conftest.err
39988 cat conftest.err >&5
39989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39990 (exit $ac_status); } &&
39991 { ac_try='test -z "$ac_c_werror_flag"
39992 || test ! -s conftest.err'
39993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39994 (eval $ac_try) 2>&5
39996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39997 (exit $ac_status); }; } &&
39998 { ac_try='test -s conftest$ac_exeext'
39999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40000 (eval $ac_try) 2>&5
40002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40003 (exit $ac_status); }; }; then
40006 echo "$as_me: failed program was:" >&5
40007 sed 's/^/| /' conftest.$ac_ext >&5
40011 rm -f conftest.err conftest.$ac_objext \
40012 conftest$ac_exeext conftest.$ac_ext
40017 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
40018 echo "${ECHO_T}$ol_cv_db_db_2" >&6
40020 if test $ol_cv_db_db_2 = yes ; then
40021 ol_cv_lib_db=-ldb-2
40025 if test $ol_cv_lib_db = no ; then
40026 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
40027 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
40028 if test "${ol_cv_db_db1+set}" = set; then
40029 echo $ECHO_N "(cached) $ECHO_C" >&6
40034 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40036 cat >conftest.$ac_ext <<_ACEOF
40039 cat confdefs.h >>conftest.$ac_ext
40040 cat >>conftest.$ac_ext <<_ACEOF
40041 /* end confdefs.h. */
40043 #ifdef HAVE_DB_185_H
40044 # include <db_185.h>
40049 #ifndef DB_VERSION_MAJOR
40050 # define DB_VERSION_MAJOR 1
40054 #define NULL ((void*)0)
40061 #if DB_VERSION_MAJOR > 1
40064 int major, minor, patch;
40066 version = db_version( &major, &minor, &patch );
40068 if( major != DB_VERSION_MAJOR ||
40069 minor < DB_VERSION_MINOR )
40071 printf("Berkeley DB version mismatch\n"
40072 "\theader: %s\n\tlibrary: %s\n",
40073 DB_VERSION_STRING, version);
40079 #if DB_VERSION_MAJOR > 2
40080 db_env_create( NULL, 0 );
40081 #elif DB_VERSION_MAJOR > 1
40082 db_appexit( NULL );
40084 (void) dbopen( NULL, 0, 0, 0, NULL);
40091 rm -f conftest.$ac_objext conftest$ac_exeext
40092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40093 (eval $ac_link) 2>conftest.er1
40095 grep -v '^ *+' conftest.er1 >conftest.err
40097 cat conftest.err >&5
40098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40099 (exit $ac_status); } &&
40100 { ac_try='test -z "$ac_c_werror_flag"
40101 || test ! -s conftest.err'
40102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40103 (eval $ac_try) 2>&5
40105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40106 (exit $ac_status); }; } &&
40107 { ac_try='test -s conftest$ac_exeext'
40108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40109 (eval $ac_try) 2>&5
40111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40112 (exit $ac_status); }; }; then
40115 echo "$as_me: failed program was:" >&5
40116 sed 's/^/| /' conftest.$ac_ext >&5
40120 rm -f conftest.err conftest.$ac_objext \
40121 conftest$ac_exeext conftest.$ac_ext
40126 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
40127 echo "${ECHO_T}$ol_cv_db_db1" >&6
40129 if test $ol_cv_db_db1 = yes ; then
40134 if test $ol_cv_lib_db = no ; then
40135 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
40136 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
40137 if test "${ol_cv_db_db_1+set}" = set; then
40138 echo $ECHO_N "(cached) $ECHO_C" >&6
40143 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40145 cat >conftest.$ac_ext <<_ACEOF
40148 cat confdefs.h >>conftest.$ac_ext
40149 cat >>conftest.$ac_ext <<_ACEOF
40150 /* end confdefs.h. */
40152 #ifdef HAVE_DB_185_H
40153 # include <db_185.h>
40158 #ifndef DB_VERSION_MAJOR
40159 # define DB_VERSION_MAJOR 1
40163 #define NULL ((void*)0)
40170 #if DB_VERSION_MAJOR > 1
40173 int major, minor, patch;
40175 version = db_version( &major, &minor, &patch );
40177 if( major != DB_VERSION_MAJOR ||
40178 minor < DB_VERSION_MINOR )
40180 printf("Berkeley DB version mismatch\n"
40181 "\theader: %s\n\tlibrary: %s\n",
40182 DB_VERSION_STRING, version);
40188 #if DB_VERSION_MAJOR > 2
40189 db_env_create( NULL, 0 );
40190 #elif DB_VERSION_MAJOR > 1
40191 db_appexit( NULL );
40193 (void) dbopen( NULL, 0, 0, 0, NULL);
40200 rm -f conftest.$ac_objext conftest$ac_exeext
40201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40202 (eval $ac_link) 2>conftest.er1
40204 grep -v '^ *+' conftest.er1 >conftest.err
40206 cat conftest.err >&5
40207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40208 (exit $ac_status); } &&
40209 { ac_try='test -z "$ac_c_werror_flag"
40210 || test ! -s conftest.err'
40211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40212 (eval $ac_try) 2>&5
40214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40215 (exit $ac_status); }; } &&
40216 { ac_try='test -s conftest$ac_exeext'
40217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40218 (eval $ac_try) 2>&5
40220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40221 (exit $ac_status); }; }; then
40224 echo "$as_me: failed program was:" >&5
40225 sed 's/^/| /' conftest.$ac_ext >&5
40229 rm -f conftest.err conftest.$ac_objext \
40230 conftest$ac_exeext conftest.$ac_ext
40235 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
40236 echo "${ECHO_T}$ol_cv_db_db_1" >&6
40238 if test $ol_cv_db_db_1 = yes ; then
40239 ol_cv_lib_db=-ldb-1
40244 if test "$ol_cv_lib_db" != no ; then
40245 ol_cv_berkeley_db=yes
40251 ol_cv_berkeley_db=no
40253 for ac_header in db.h
40255 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40257 echo "$as_me:$LINENO: checking for $ac_header" >&5
40258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40259 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40260 echo $ECHO_N "(cached) $ECHO_C" >&6
40262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40263 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40265 # Is the header compilable?
40266 echo "$as_me:$LINENO: checking $ac_header usability" >&5
40267 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
40268 cat >conftest.$ac_ext <<_ACEOF
40271 cat confdefs.h >>conftest.$ac_ext
40272 cat >>conftest.$ac_ext <<_ACEOF
40273 /* end confdefs.h. */
40274 $ac_includes_default
40275 #include <$ac_header>
40277 rm -f conftest.$ac_objext
40278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40279 (eval $ac_compile) 2>conftest.er1
40281 grep -v '^ *+' conftest.er1 >conftest.err
40283 cat conftest.err >&5
40284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40285 (exit $ac_status); } &&
40286 { ac_try='test -z "$ac_c_werror_flag"
40287 || test ! -s conftest.err'
40288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40289 (eval $ac_try) 2>&5
40291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40292 (exit $ac_status); }; } &&
40293 { ac_try='test -s conftest.$ac_objext'
40294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40295 (eval $ac_try) 2>&5
40297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40298 (exit $ac_status); }; }; then
40299 ac_header_compiler=yes
40301 echo "$as_me: failed program was:" >&5
40302 sed 's/^/| /' conftest.$ac_ext >&5
40304 ac_header_compiler=no
40306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40307 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40308 echo "${ECHO_T}$ac_header_compiler" >&6
40310 # Is the header present?
40311 echo "$as_me:$LINENO: checking $ac_header presence" >&5
40312 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
40313 cat >conftest.$ac_ext <<_ACEOF
40316 cat confdefs.h >>conftest.$ac_ext
40317 cat >>conftest.$ac_ext <<_ACEOF
40318 /* end confdefs.h. */
40319 #include <$ac_header>
40321 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
40322 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
40324 grep -v '^ *+' conftest.er1 >conftest.err
40326 cat conftest.err >&5
40327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40328 (exit $ac_status); } >/dev/null; then
40329 if test -s conftest.err; then
40330 ac_cpp_err=$ac_c_preproc_warn_flag
40331 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
40338 if test -z "$ac_cpp_err"; then
40339 ac_header_preproc=yes
40341 echo "$as_me: failed program was:" >&5
40342 sed 's/^/| /' conftest.$ac_ext >&5
40344 ac_header_preproc=no
40346 rm -f conftest.err conftest.$ac_ext
40347 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40348 echo "${ECHO_T}$ac_header_preproc" >&6
40350 # So? What about this header?
40351 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40353 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40354 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40356 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40357 ac_header_preproc=yes
40360 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40361 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40362 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40363 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40364 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40365 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40366 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40367 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
40368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40369 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40370 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40371 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40374 ## ------------------------------------------ ##
40375 ## Report this to the AC_PACKAGE_NAME lists. ##
40376 ## ------------------------------------------ ##
40379 sed "s/^/$as_me: WARNING: /" >&2
40382 echo "$as_me:$LINENO: checking for $ac_header" >&5
40383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40385 echo $ECHO_N "(cached) $ECHO_C" >&6
40387 eval "$as_ac_Header=\$ac_header_preproc"
40389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40390 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40393 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40394 cat >>confdefs.h <<_ACEOF
40395 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40402 if test $ac_cv_header_db_h = yes; then
40404 if test $ol_cv_lib_db = no ; then
40405 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
40406 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
40407 if test "${ol_cv_db_none+set}" = set; then
40408 echo $ECHO_N "(cached) $ECHO_C" >&6
40413 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40415 cat >conftest.$ac_ext <<_ACEOF
40418 cat confdefs.h >>conftest.$ac_ext
40419 cat >>conftest.$ac_ext <<_ACEOF
40420 /* end confdefs.h. */
40422 #ifdef HAVE_DB_185_H
40423 # include <db_185.h>
40428 #ifndef DB_VERSION_MAJOR
40429 # define DB_VERSION_MAJOR 1
40433 #define NULL ((void*)0)
40440 #if DB_VERSION_MAJOR > 1
40443 int major, minor, patch;
40445 version = db_version( &major, &minor, &patch );
40447 if( major != DB_VERSION_MAJOR ||
40448 minor < DB_VERSION_MINOR )
40450 printf("Berkeley DB version mismatch\n"
40451 "\theader: %s\n\tlibrary: %s\n",
40452 DB_VERSION_STRING, version);
40458 #if DB_VERSION_MAJOR > 2
40459 db_env_create( NULL, 0 );
40460 #elif DB_VERSION_MAJOR > 1
40461 db_appexit( NULL );
40463 (void) dbopen( NULL, 0, 0, 0, NULL);
40470 rm -f conftest.$ac_objext conftest$ac_exeext
40471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40472 (eval $ac_link) 2>conftest.er1
40474 grep -v '^ *+' conftest.er1 >conftest.err
40476 cat conftest.err >&5
40477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40478 (exit $ac_status); } &&
40479 { ac_try='test -z "$ac_c_werror_flag"
40480 || test ! -s conftest.err'
40481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40482 (eval $ac_try) 2>&5
40484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40485 (exit $ac_status); }; } &&
40486 { ac_try='test -s conftest$ac_exeext'
40487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40488 (eval $ac_try) 2>&5
40490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40491 (exit $ac_status); }; }; then
40494 echo "$as_me: failed program was:" >&5
40495 sed 's/^/| /' conftest.$ac_ext >&5
40499 rm -f conftest.err conftest.$ac_objext \
40500 conftest$ac_exeext conftest.$ac_ext
40505 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
40506 echo "${ECHO_T}$ol_cv_db_none" >&6
40508 if test $ol_cv_db_none = yes ; then
40513 if test $ol_cv_lib_db = no ; then
40514 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
40515 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
40516 if test "${ol_cv_db_db43+set}" = set; then
40517 echo $ECHO_N "(cached) $ECHO_C" >&6
40522 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40524 cat >conftest.$ac_ext <<_ACEOF
40527 cat confdefs.h >>conftest.$ac_ext
40528 cat >>conftest.$ac_ext <<_ACEOF
40529 /* end confdefs.h. */
40531 #ifdef HAVE_DB_185_H
40532 # include <db_185.h>
40537 #ifndef DB_VERSION_MAJOR
40538 # define DB_VERSION_MAJOR 1
40542 #define NULL ((void*)0)
40549 #if DB_VERSION_MAJOR > 1
40552 int major, minor, patch;
40554 version = db_version( &major, &minor, &patch );
40556 if( major != DB_VERSION_MAJOR ||
40557 minor < DB_VERSION_MINOR )
40559 printf("Berkeley DB version mismatch\n"
40560 "\theader: %s\n\tlibrary: %s\n",
40561 DB_VERSION_STRING, version);
40567 #if DB_VERSION_MAJOR > 2
40568 db_env_create( NULL, 0 );
40569 #elif DB_VERSION_MAJOR > 1
40570 db_appexit( NULL );
40572 (void) dbopen( NULL, 0, 0, 0, NULL);
40579 rm -f conftest.$ac_objext conftest$ac_exeext
40580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40581 (eval $ac_link) 2>conftest.er1
40583 grep -v '^ *+' conftest.er1 >conftest.err
40585 cat conftest.err >&5
40586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40587 (exit $ac_status); } &&
40588 { ac_try='test -z "$ac_c_werror_flag"
40589 || test ! -s conftest.err'
40590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40591 (eval $ac_try) 2>&5
40593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40594 (exit $ac_status); }; } &&
40595 { ac_try='test -s conftest$ac_exeext'
40596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40597 (eval $ac_try) 2>&5
40599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40600 (exit $ac_status); }; }; then
40603 echo "$as_me: failed program was:" >&5
40604 sed 's/^/| /' conftest.$ac_ext >&5
40608 rm -f conftest.err conftest.$ac_objext \
40609 conftest$ac_exeext conftest.$ac_ext
40614 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
40615 echo "${ECHO_T}$ol_cv_db_db43" >&6
40617 if test $ol_cv_db_db43 = yes ; then
40618 ol_cv_lib_db=-ldb43
40622 if test $ol_cv_lib_db = no ; then
40623 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
40624 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
40625 if test "${ol_cv_db_db_43+set}" = set; then
40626 echo $ECHO_N "(cached) $ECHO_C" >&6
40631 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40633 cat >conftest.$ac_ext <<_ACEOF
40636 cat confdefs.h >>conftest.$ac_ext
40637 cat >>conftest.$ac_ext <<_ACEOF
40638 /* end confdefs.h. */
40640 #ifdef HAVE_DB_185_H
40641 # include <db_185.h>
40646 #ifndef DB_VERSION_MAJOR
40647 # define DB_VERSION_MAJOR 1
40651 #define NULL ((void*)0)
40658 #if DB_VERSION_MAJOR > 1
40661 int major, minor, patch;
40663 version = db_version( &major, &minor, &patch );
40665 if( major != DB_VERSION_MAJOR ||
40666 minor < DB_VERSION_MINOR )
40668 printf("Berkeley DB version mismatch\n"
40669 "\theader: %s\n\tlibrary: %s\n",
40670 DB_VERSION_STRING, version);
40676 #if DB_VERSION_MAJOR > 2
40677 db_env_create( NULL, 0 );
40678 #elif DB_VERSION_MAJOR > 1
40679 db_appexit( NULL );
40681 (void) dbopen( NULL, 0, 0, 0, NULL);
40688 rm -f conftest.$ac_objext conftest$ac_exeext
40689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40690 (eval $ac_link) 2>conftest.er1
40692 grep -v '^ *+' conftest.er1 >conftest.err
40694 cat conftest.err >&5
40695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40696 (exit $ac_status); } &&
40697 { ac_try='test -z "$ac_c_werror_flag"
40698 || test ! -s conftest.err'
40699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40700 (eval $ac_try) 2>&5
40702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40703 (exit $ac_status); }; } &&
40704 { ac_try='test -s conftest$ac_exeext'
40705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40706 (eval $ac_try) 2>&5
40708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40709 (exit $ac_status); }; }; then
40712 echo "$as_me: failed program was:" >&5
40713 sed 's/^/| /' conftest.$ac_ext >&5
40717 rm -f conftest.err conftest.$ac_objext \
40718 conftest$ac_exeext conftest.$ac_ext
40723 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
40724 echo "${ECHO_T}$ol_cv_db_db_43" >&6
40726 if test $ol_cv_db_db_43 = yes ; then
40727 ol_cv_lib_db=-ldb-43
40731 if test $ol_cv_lib_db = no ; then
40732 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
40733 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
40734 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
40735 echo $ECHO_N "(cached) $ECHO_C" >&6
40740 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40742 cat >conftest.$ac_ext <<_ACEOF
40745 cat confdefs.h >>conftest.$ac_ext
40746 cat >>conftest.$ac_ext <<_ACEOF
40747 /* end confdefs.h. */
40749 #ifdef HAVE_DB_185_H
40750 # include <db_185.h>
40755 #ifndef DB_VERSION_MAJOR
40756 # define DB_VERSION_MAJOR 1
40760 #define NULL ((void*)0)
40767 #if DB_VERSION_MAJOR > 1
40770 int major, minor, patch;
40772 version = db_version( &major, &minor, &patch );
40774 if( major != DB_VERSION_MAJOR ||
40775 minor < DB_VERSION_MINOR )
40777 printf("Berkeley DB version mismatch\n"
40778 "\theader: %s\n\tlibrary: %s\n",
40779 DB_VERSION_STRING, version);
40785 #if DB_VERSION_MAJOR > 2
40786 db_env_create( NULL, 0 );
40787 #elif DB_VERSION_MAJOR > 1
40788 db_appexit( NULL );
40790 (void) dbopen( NULL, 0, 0, 0, NULL);
40797 rm -f conftest.$ac_objext conftest$ac_exeext
40798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40799 (eval $ac_link) 2>conftest.er1
40801 grep -v '^ *+' conftest.er1 >conftest.err
40803 cat conftest.err >&5
40804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40805 (exit $ac_status); } &&
40806 { ac_try='test -z "$ac_c_werror_flag"
40807 || test ! -s conftest.err'
40808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40809 (eval $ac_try) 2>&5
40811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40812 (exit $ac_status); }; } &&
40813 { ac_try='test -s conftest$ac_exeext'
40814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40815 (eval $ac_try) 2>&5
40817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40818 (exit $ac_status); }; }; then
40819 ol_cv_db_db_4_dot_3=yes
40821 echo "$as_me: failed program was:" >&5
40822 sed 's/^/| /' conftest.$ac_ext >&5
40824 ol_cv_db_db_4_dot_3=no
40826 rm -f conftest.err conftest.$ac_objext \
40827 conftest$ac_exeext conftest.$ac_ext
40832 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
40833 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
40835 if test $ol_cv_db_db_4_dot_3 = yes ; then
40836 ol_cv_lib_db=-ldb-4.3
40840 if test $ol_cv_lib_db = no ; then
40841 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
40842 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
40843 if test "${ol_cv_db_db_4_3+set}" = set; then
40844 echo $ECHO_N "(cached) $ECHO_C" >&6
40849 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40851 cat >conftest.$ac_ext <<_ACEOF
40854 cat confdefs.h >>conftest.$ac_ext
40855 cat >>conftest.$ac_ext <<_ACEOF
40856 /* end confdefs.h. */
40858 #ifdef HAVE_DB_185_H
40859 # include <db_185.h>
40864 #ifndef DB_VERSION_MAJOR
40865 # define DB_VERSION_MAJOR 1
40869 #define NULL ((void*)0)
40876 #if DB_VERSION_MAJOR > 1
40879 int major, minor, patch;
40881 version = db_version( &major, &minor, &patch );
40883 if( major != DB_VERSION_MAJOR ||
40884 minor < DB_VERSION_MINOR )
40886 printf("Berkeley DB version mismatch\n"
40887 "\theader: %s\n\tlibrary: %s\n",
40888 DB_VERSION_STRING, version);
40894 #if DB_VERSION_MAJOR > 2
40895 db_env_create( NULL, 0 );
40896 #elif DB_VERSION_MAJOR > 1
40897 db_appexit( NULL );
40899 (void) dbopen( NULL, 0, 0, 0, NULL);
40906 rm -f conftest.$ac_objext conftest$ac_exeext
40907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40908 (eval $ac_link) 2>conftest.er1
40910 grep -v '^ *+' conftest.er1 >conftest.err
40912 cat conftest.err >&5
40913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40914 (exit $ac_status); } &&
40915 { ac_try='test -z "$ac_c_werror_flag"
40916 || test ! -s conftest.err'
40917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40918 (eval $ac_try) 2>&5
40920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40921 (exit $ac_status); }; } &&
40922 { ac_try='test -s conftest$ac_exeext'
40923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40924 (eval $ac_try) 2>&5
40926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40927 (exit $ac_status); }; }; then
40928 ol_cv_db_db_4_3=yes
40930 echo "$as_me: failed program was:" >&5
40931 sed 's/^/| /' conftest.$ac_ext >&5
40935 rm -f conftest.err conftest.$ac_objext \
40936 conftest$ac_exeext conftest.$ac_ext
40941 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
40942 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
40944 if test $ol_cv_db_db_4_3 = yes ; then
40945 ol_cv_lib_db=-ldb-4-3
40949 if test $ol_cv_lib_db = no ; then
40950 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
40951 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
40952 if test "${ol_cv_db_db42+set}" = set; then
40953 echo $ECHO_N "(cached) $ECHO_C" >&6
40958 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40960 cat >conftest.$ac_ext <<_ACEOF
40963 cat confdefs.h >>conftest.$ac_ext
40964 cat >>conftest.$ac_ext <<_ACEOF
40965 /* end confdefs.h. */
40967 #ifdef HAVE_DB_185_H
40968 # include <db_185.h>
40973 #ifndef DB_VERSION_MAJOR
40974 # define DB_VERSION_MAJOR 1
40978 #define NULL ((void*)0)
40985 #if DB_VERSION_MAJOR > 1
40988 int major, minor, patch;
40990 version = db_version( &major, &minor, &patch );
40992 if( major != DB_VERSION_MAJOR ||
40993 minor < DB_VERSION_MINOR )
40995 printf("Berkeley DB version mismatch\n"
40996 "\theader: %s\n\tlibrary: %s\n",
40997 DB_VERSION_STRING, version);
41003 #if DB_VERSION_MAJOR > 2
41004 db_env_create( NULL, 0 );
41005 #elif DB_VERSION_MAJOR > 1
41006 db_appexit( NULL );
41008 (void) dbopen( NULL, 0, 0, 0, NULL);
41015 rm -f conftest.$ac_objext conftest$ac_exeext
41016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41017 (eval $ac_link) 2>conftest.er1
41019 grep -v '^ *+' conftest.er1 >conftest.err
41021 cat conftest.err >&5
41022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41023 (exit $ac_status); } &&
41024 { ac_try='test -z "$ac_c_werror_flag"
41025 || test ! -s conftest.err'
41026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41027 (eval $ac_try) 2>&5
41029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41030 (exit $ac_status); }; } &&
41031 { ac_try='test -s conftest$ac_exeext'
41032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41033 (eval $ac_try) 2>&5
41035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41036 (exit $ac_status); }; }; then
41039 echo "$as_me: failed program was:" >&5
41040 sed 's/^/| /' conftest.$ac_ext >&5
41044 rm -f conftest.err conftest.$ac_objext \
41045 conftest$ac_exeext conftest.$ac_ext
41050 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
41051 echo "${ECHO_T}$ol_cv_db_db42" >&6
41053 if test $ol_cv_db_db42 = yes ; then
41054 ol_cv_lib_db=-ldb42
41058 if test $ol_cv_lib_db = no ; then
41059 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
41060 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
41061 if test "${ol_cv_db_db_42+set}" = set; then
41062 echo $ECHO_N "(cached) $ECHO_C" >&6
41067 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41069 cat >conftest.$ac_ext <<_ACEOF
41072 cat confdefs.h >>conftest.$ac_ext
41073 cat >>conftest.$ac_ext <<_ACEOF
41074 /* end confdefs.h. */
41076 #ifdef HAVE_DB_185_H
41077 # include <db_185.h>
41082 #ifndef DB_VERSION_MAJOR
41083 # define DB_VERSION_MAJOR 1
41087 #define NULL ((void*)0)
41094 #if DB_VERSION_MAJOR > 1
41097 int major, minor, patch;
41099 version = db_version( &major, &minor, &patch );
41101 if( major != DB_VERSION_MAJOR ||
41102 minor < DB_VERSION_MINOR )
41104 printf("Berkeley DB version mismatch\n"
41105 "\theader: %s\n\tlibrary: %s\n",
41106 DB_VERSION_STRING, version);
41112 #if DB_VERSION_MAJOR > 2
41113 db_env_create( NULL, 0 );
41114 #elif DB_VERSION_MAJOR > 1
41115 db_appexit( NULL );
41117 (void) dbopen( NULL, 0, 0, 0, NULL);
41124 rm -f conftest.$ac_objext conftest$ac_exeext
41125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41126 (eval $ac_link) 2>conftest.er1
41128 grep -v '^ *+' conftest.er1 >conftest.err
41130 cat conftest.err >&5
41131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41132 (exit $ac_status); } &&
41133 { ac_try='test -z "$ac_c_werror_flag"
41134 || test ! -s conftest.err'
41135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41136 (eval $ac_try) 2>&5
41138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41139 (exit $ac_status); }; } &&
41140 { ac_try='test -s conftest$ac_exeext'
41141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41142 (eval $ac_try) 2>&5
41144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41145 (exit $ac_status); }; }; then
41148 echo "$as_me: failed program was:" >&5
41149 sed 's/^/| /' conftest.$ac_ext >&5
41153 rm -f conftest.err conftest.$ac_objext \
41154 conftest$ac_exeext conftest.$ac_ext
41159 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
41160 echo "${ECHO_T}$ol_cv_db_db_42" >&6
41162 if test $ol_cv_db_db_42 = yes ; then
41163 ol_cv_lib_db=-ldb-42
41167 if test $ol_cv_lib_db = no ; then
41168 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
41169 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
41170 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
41171 echo $ECHO_N "(cached) $ECHO_C" >&6
41176 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41178 cat >conftest.$ac_ext <<_ACEOF
41181 cat confdefs.h >>conftest.$ac_ext
41182 cat >>conftest.$ac_ext <<_ACEOF
41183 /* end confdefs.h. */
41185 #ifdef HAVE_DB_185_H
41186 # include <db_185.h>
41191 #ifndef DB_VERSION_MAJOR
41192 # define DB_VERSION_MAJOR 1
41196 #define NULL ((void*)0)
41203 #if DB_VERSION_MAJOR > 1
41206 int major, minor, patch;
41208 version = db_version( &major, &minor, &patch );
41210 if( major != DB_VERSION_MAJOR ||
41211 minor < DB_VERSION_MINOR )
41213 printf("Berkeley DB version mismatch\n"
41214 "\theader: %s\n\tlibrary: %s\n",
41215 DB_VERSION_STRING, version);
41221 #if DB_VERSION_MAJOR > 2
41222 db_env_create( NULL, 0 );
41223 #elif DB_VERSION_MAJOR > 1
41224 db_appexit( NULL );
41226 (void) dbopen( NULL, 0, 0, 0, NULL);
41233 rm -f conftest.$ac_objext conftest$ac_exeext
41234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41235 (eval $ac_link) 2>conftest.er1
41237 grep -v '^ *+' conftest.er1 >conftest.err
41239 cat conftest.err >&5
41240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41241 (exit $ac_status); } &&
41242 { ac_try='test -z "$ac_c_werror_flag"
41243 || test ! -s conftest.err'
41244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41245 (eval $ac_try) 2>&5
41247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41248 (exit $ac_status); }; } &&
41249 { ac_try='test -s conftest$ac_exeext'
41250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41251 (eval $ac_try) 2>&5
41253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41254 (exit $ac_status); }; }; then
41255 ol_cv_db_db_4_dot_2=yes
41257 echo "$as_me: failed program was:" >&5
41258 sed 's/^/| /' conftest.$ac_ext >&5
41260 ol_cv_db_db_4_dot_2=no
41262 rm -f conftest.err conftest.$ac_objext \
41263 conftest$ac_exeext conftest.$ac_ext
41268 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
41269 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
41271 if test $ol_cv_db_db_4_dot_2 = yes ; then
41272 ol_cv_lib_db=-ldb-4.2
41276 if test $ol_cv_lib_db = no ; then
41277 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
41278 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
41279 if test "${ol_cv_db_db_4_2+set}" = set; then
41280 echo $ECHO_N "(cached) $ECHO_C" >&6
41285 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41287 cat >conftest.$ac_ext <<_ACEOF
41290 cat confdefs.h >>conftest.$ac_ext
41291 cat >>conftest.$ac_ext <<_ACEOF
41292 /* end confdefs.h. */
41294 #ifdef HAVE_DB_185_H
41295 # include <db_185.h>
41300 #ifndef DB_VERSION_MAJOR
41301 # define DB_VERSION_MAJOR 1
41305 #define NULL ((void*)0)
41312 #if DB_VERSION_MAJOR > 1
41315 int major, minor, patch;
41317 version = db_version( &major, &minor, &patch );
41319 if( major != DB_VERSION_MAJOR ||
41320 minor < DB_VERSION_MINOR )
41322 printf("Berkeley DB version mismatch\n"
41323 "\theader: %s\n\tlibrary: %s\n",
41324 DB_VERSION_STRING, version);
41330 #if DB_VERSION_MAJOR > 2
41331 db_env_create( NULL, 0 );
41332 #elif DB_VERSION_MAJOR > 1
41333 db_appexit( NULL );
41335 (void) dbopen( NULL, 0, 0, 0, NULL);
41342 rm -f conftest.$ac_objext conftest$ac_exeext
41343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41344 (eval $ac_link) 2>conftest.er1
41346 grep -v '^ *+' conftest.er1 >conftest.err
41348 cat conftest.err >&5
41349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41350 (exit $ac_status); } &&
41351 { ac_try='test -z "$ac_c_werror_flag"
41352 || test ! -s conftest.err'
41353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41354 (eval $ac_try) 2>&5
41356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41357 (exit $ac_status); }; } &&
41358 { ac_try='test -s conftest$ac_exeext'
41359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41360 (eval $ac_try) 2>&5
41362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41363 (exit $ac_status); }; }; then
41364 ol_cv_db_db_4_2=yes
41366 echo "$as_me: failed program was:" >&5
41367 sed 's/^/| /' conftest.$ac_ext >&5
41371 rm -f conftest.err conftest.$ac_objext \
41372 conftest$ac_exeext conftest.$ac_ext
41377 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
41378 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
41380 if test $ol_cv_db_db_4_2 = yes ; then
41381 ol_cv_lib_db=-ldb-4-2
41385 if test $ol_cv_lib_db = no ; then
41386 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
41387 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
41388 if test "${ol_cv_db_db_4+set}" = set; then
41389 echo $ECHO_N "(cached) $ECHO_C" >&6
41394 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41396 cat >conftest.$ac_ext <<_ACEOF
41399 cat confdefs.h >>conftest.$ac_ext
41400 cat >>conftest.$ac_ext <<_ACEOF
41401 /* end confdefs.h. */
41403 #ifdef HAVE_DB_185_H
41404 # include <db_185.h>
41409 #ifndef DB_VERSION_MAJOR
41410 # define DB_VERSION_MAJOR 1
41414 #define NULL ((void*)0)
41421 #if DB_VERSION_MAJOR > 1
41424 int major, minor, patch;
41426 version = db_version( &major, &minor, &patch );
41428 if( major != DB_VERSION_MAJOR ||
41429 minor < DB_VERSION_MINOR )
41431 printf("Berkeley DB version mismatch\n"
41432 "\theader: %s\n\tlibrary: %s\n",
41433 DB_VERSION_STRING, version);
41439 #if DB_VERSION_MAJOR > 2
41440 db_env_create( NULL, 0 );
41441 #elif DB_VERSION_MAJOR > 1
41442 db_appexit( NULL );
41444 (void) dbopen( NULL, 0, 0, 0, NULL);
41451 rm -f conftest.$ac_objext conftest$ac_exeext
41452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41453 (eval $ac_link) 2>conftest.er1
41455 grep -v '^ *+' conftest.er1 >conftest.err
41457 cat conftest.err >&5
41458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41459 (exit $ac_status); } &&
41460 { ac_try='test -z "$ac_c_werror_flag"
41461 || test ! -s conftest.err'
41462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41463 (eval $ac_try) 2>&5
41465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41466 (exit $ac_status); }; } &&
41467 { ac_try='test -s conftest$ac_exeext'
41468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41469 (eval $ac_try) 2>&5
41471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41472 (exit $ac_status); }; }; then
41475 echo "$as_me: failed program was:" >&5
41476 sed 's/^/| /' conftest.$ac_ext >&5
41480 rm -f conftest.err conftest.$ac_objext \
41481 conftest$ac_exeext conftest.$ac_ext
41486 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
41487 echo "${ECHO_T}$ol_cv_db_db_4" >&6
41489 if test $ol_cv_db_db_4 = yes ; then
41490 ol_cv_lib_db=-ldb-4
41494 if test $ol_cv_lib_db = no ; then
41495 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
41496 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
41497 if test "${ol_cv_db_db4+set}" = set; then
41498 echo $ECHO_N "(cached) $ECHO_C" >&6
41503 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41505 cat >conftest.$ac_ext <<_ACEOF
41508 cat confdefs.h >>conftest.$ac_ext
41509 cat >>conftest.$ac_ext <<_ACEOF
41510 /* end confdefs.h. */
41512 #ifdef HAVE_DB_185_H
41513 # include <db_185.h>
41518 #ifndef DB_VERSION_MAJOR
41519 # define DB_VERSION_MAJOR 1
41523 #define NULL ((void*)0)
41530 #if DB_VERSION_MAJOR > 1
41533 int major, minor, patch;
41535 version = db_version( &major, &minor, &patch );
41537 if( major != DB_VERSION_MAJOR ||
41538 minor < DB_VERSION_MINOR )
41540 printf("Berkeley DB version mismatch\n"
41541 "\theader: %s\n\tlibrary: %s\n",
41542 DB_VERSION_STRING, version);
41548 #if DB_VERSION_MAJOR > 2
41549 db_env_create( NULL, 0 );
41550 #elif DB_VERSION_MAJOR > 1
41551 db_appexit( NULL );
41553 (void) dbopen( NULL, 0, 0, 0, NULL);
41560 rm -f conftest.$ac_objext conftest$ac_exeext
41561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41562 (eval $ac_link) 2>conftest.er1
41564 grep -v '^ *+' conftest.er1 >conftest.err
41566 cat conftest.err >&5
41567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41568 (exit $ac_status); } &&
41569 { ac_try='test -z "$ac_c_werror_flag"
41570 || test ! -s conftest.err'
41571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41572 (eval $ac_try) 2>&5
41574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41575 (exit $ac_status); }; } &&
41576 { ac_try='test -s conftest$ac_exeext'
41577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41578 (eval $ac_try) 2>&5
41580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41581 (exit $ac_status); }; }; then
41584 echo "$as_me: failed program was:" >&5
41585 sed 's/^/| /' conftest.$ac_ext >&5
41589 rm -f conftest.err conftest.$ac_objext \
41590 conftest$ac_exeext conftest.$ac_ext
41595 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
41596 echo "${ECHO_T}$ol_cv_db_db4" >&6
41598 if test $ol_cv_db_db4 = yes ; then
41603 if test $ol_cv_lib_db = no ; then
41604 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
41605 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
41606 if test "${ol_cv_db_db+set}" = set; then
41607 echo $ECHO_N "(cached) $ECHO_C" >&6
41612 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41614 cat >conftest.$ac_ext <<_ACEOF
41617 cat confdefs.h >>conftest.$ac_ext
41618 cat >>conftest.$ac_ext <<_ACEOF
41619 /* end confdefs.h. */
41621 #ifdef HAVE_DB_185_H
41622 # include <db_185.h>
41627 #ifndef DB_VERSION_MAJOR
41628 # define DB_VERSION_MAJOR 1
41632 #define NULL ((void*)0)
41639 #if DB_VERSION_MAJOR > 1
41642 int major, minor, patch;
41644 version = db_version( &major, &minor, &patch );
41646 if( major != DB_VERSION_MAJOR ||
41647 minor < DB_VERSION_MINOR )
41649 printf("Berkeley DB version mismatch\n"
41650 "\theader: %s\n\tlibrary: %s\n",
41651 DB_VERSION_STRING, version);
41657 #if DB_VERSION_MAJOR > 2
41658 db_env_create( NULL, 0 );
41659 #elif DB_VERSION_MAJOR > 1
41660 db_appexit( NULL );
41662 (void) dbopen( NULL, 0, 0, 0, NULL);
41669 rm -f conftest.$ac_objext conftest$ac_exeext
41670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41671 (eval $ac_link) 2>conftest.er1
41673 grep -v '^ *+' conftest.er1 >conftest.err
41675 cat conftest.err >&5
41676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41677 (exit $ac_status); } &&
41678 { ac_try='test -z "$ac_c_werror_flag"
41679 || test ! -s conftest.err'
41680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41681 (eval $ac_try) 2>&5
41683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41684 (exit $ac_status); }; } &&
41685 { ac_try='test -s conftest$ac_exeext'
41686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41687 (eval $ac_try) 2>&5
41689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41690 (exit $ac_status); }; }; then
41693 echo "$as_me: failed program was:" >&5
41694 sed 's/^/| /' conftest.$ac_ext >&5
41698 rm -f conftest.err conftest.$ac_objext \
41699 conftest$ac_exeext conftest.$ac_ext
41704 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
41705 echo "${ECHO_T}$ol_cv_db_db" >&6
41707 if test $ol_cv_db_db = yes ; then
41712 if test $ol_cv_lib_db = no ; then
41713 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
41714 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
41715 if test "${ol_cv_db_db41+set}" = set; then
41716 echo $ECHO_N "(cached) $ECHO_C" >&6
41721 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41723 cat >conftest.$ac_ext <<_ACEOF
41726 cat confdefs.h >>conftest.$ac_ext
41727 cat >>conftest.$ac_ext <<_ACEOF
41728 /* end confdefs.h. */
41730 #ifdef HAVE_DB_185_H
41731 # include <db_185.h>
41736 #ifndef DB_VERSION_MAJOR
41737 # define DB_VERSION_MAJOR 1
41741 #define NULL ((void*)0)
41748 #if DB_VERSION_MAJOR > 1
41751 int major, minor, patch;
41753 version = db_version( &major, &minor, &patch );
41755 if( major != DB_VERSION_MAJOR ||
41756 minor < DB_VERSION_MINOR )
41758 printf("Berkeley DB version mismatch\n"
41759 "\theader: %s\n\tlibrary: %s\n",
41760 DB_VERSION_STRING, version);
41766 #if DB_VERSION_MAJOR > 2
41767 db_env_create( NULL, 0 );
41768 #elif DB_VERSION_MAJOR > 1
41769 db_appexit( NULL );
41771 (void) dbopen( NULL, 0, 0, 0, NULL);
41778 rm -f conftest.$ac_objext conftest$ac_exeext
41779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41780 (eval $ac_link) 2>conftest.er1
41782 grep -v '^ *+' conftest.er1 >conftest.err
41784 cat conftest.err >&5
41785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41786 (exit $ac_status); } &&
41787 { ac_try='test -z "$ac_c_werror_flag"
41788 || test ! -s conftest.err'
41789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41790 (eval $ac_try) 2>&5
41792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41793 (exit $ac_status); }; } &&
41794 { ac_try='test -s conftest$ac_exeext'
41795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41796 (eval $ac_try) 2>&5
41798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41799 (exit $ac_status); }; }; then
41802 echo "$as_me: failed program was:" >&5
41803 sed 's/^/| /' conftest.$ac_ext >&5
41807 rm -f conftest.err conftest.$ac_objext \
41808 conftest$ac_exeext conftest.$ac_ext
41813 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
41814 echo "${ECHO_T}$ol_cv_db_db41" >&6
41816 if test $ol_cv_db_db41 = yes ; then
41817 ol_cv_lib_db=-ldb41
41821 if test $ol_cv_lib_db = no ; then
41822 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
41823 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
41824 if test "${ol_cv_db_db_41+set}" = set; then
41825 echo $ECHO_N "(cached) $ECHO_C" >&6
41830 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41832 cat >conftest.$ac_ext <<_ACEOF
41835 cat confdefs.h >>conftest.$ac_ext
41836 cat >>conftest.$ac_ext <<_ACEOF
41837 /* end confdefs.h. */
41839 #ifdef HAVE_DB_185_H
41840 # include <db_185.h>
41845 #ifndef DB_VERSION_MAJOR
41846 # define DB_VERSION_MAJOR 1
41850 #define NULL ((void*)0)
41857 #if DB_VERSION_MAJOR > 1
41860 int major, minor, patch;
41862 version = db_version( &major, &minor, &patch );
41864 if( major != DB_VERSION_MAJOR ||
41865 minor < DB_VERSION_MINOR )
41867 printf("Berkeley DB version mismatch\n"
41868 "\theader: %s\n\tlibrary: %s\n",
41869 DB_VERSION_STRING, version);
41875 #if DB_VERSION_MAJOR > 2
41876 db_env_create( NULL, 0 );
41877 #elif DB_VERSION_MAJOR > 1
41878 db_appexit( NULL );
41880 (void) dbopen( NULL, 0, 0, 0, NULL);
41887 rm -f conftest.$ac_objext conftest$ac_exeext
41888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41889 (eval $ac_link) 2>conftest.er1
41891 grep -v '^ *+' conftest.er1 >conftest.err
41893 cat conftest.err >&5
41894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41895 (exit $ac_status); } &&
41896 { ac_try='test -z "$ac_c_werror_flag"
41897 || test ! -s conftest.err'
41898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41899 (eval $ac_try) 2>&5
41901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41902 (exit $ac_status); }; } &&
41903 { ac_try='test -s conftest$ac_exeext'
41904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41905 (eval $ac_try) 2>&5
41907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41908 (exit $ac_status); }; }; then
41911 echo "$as_me: failed program was:" >&5
41912 sed 's/^/| /' conftest.$ac_ext >&5
41916 rm -f conftest.err conftest.$ac_objext \
41917 conftest$ac_exeext conftest.$ac_ext
41922 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
41923 echo "${ECHO_T}$ol_cv_db_db_41" >&6
41925 if test $ol_cv_db_db_41 = yes ; then
41926 ol_cv_lib_db=-ldb-41
41930 if test $ol_cv_lib_db = no ; then
41931 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
41932 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
41933 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
41934 echo $ECHO_N "(cached) $ECHO_C" >&6
41939 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41941 cat >conftest.$ac_ext <<_ACEOF
41944 cat confdefs.h >>conftest.$ac_ext
41945 cat >>conftest.$ac_ext <<_ACEOF
41946 /* end confdefs.h. */
41948 #ifdef HAVE_DB_185_H
41949 # include <db_185.h>
41954 #ifndef DB_VERSION_MAJOR
41955 # define DB_VERSION_MAJOR 1
41959 #define NULL ((void*)0)
41966 #if DB_VERSION_MAJOR > 1
41969 int major, minor, patch;
41971 version = db_version( &major, &minor, &patch );
41973 if( major != DB_VERSION_MAJOR ||
41974 minor < DB_VERSION_MINOR )
41976 printf("Berkeley DB version mismatch\n"
41977 "\theader: %s\n\tlibrary: %s\n",
41978 DB_VERSION_STRING, version);
41984 #if DB_VERSION_MAJOR > 2
41985 db_env_create( NULL, 0 );
41986 #elif DB_VERSION_MAJOR > 1
41987 db_appexit( NULL );
41989 (void) dbopen( NULL, 0, 0, 0, NULL);
41996 rm -f conftest.$ac_objext conftest$ac_exeext
41997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41998 (eval $ac_link) 2>conftest.er1
42000 grep -v '^ *+' conftest.er1 >conftest.err
42002 cat conftest.err >&5
42003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42004 (exit $ac_status); } &&
42005 { ac_try='test -z "$ac_c_werror_flag"
42006 || test ! -s conftest.err'
42007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42008 (eval $ac_try) 2>&5
42010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42011 (exit $ac_status); }; } &&
42012 { ac_try='test -s conftest$ac_exeext'
42013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42014 (eval $ac_try) 2>&5
42016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42017 (exit $ac_status); }; }; then
42018 ol_cv_db_db_4_dot_1=yes
42020 echo "$as_me: failed program was:" >&5
42021 sed 's/^/| /' conftest.$ac_ext >&5
42023 ol_cv_db_db_4_dot_1=no
42025 rm -f conftest.err conftest.$ac_objext \
42026 conftest$ac_exeext conftest.$ac_ext
42031 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
42032 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
42034 if test $ol_cv_db_db_4_dot_1 = yes ; then
42035 ol_cv_lib_db=-ldb-4.1
42039 if test $ol_cv_lib_db = no ; then
42040 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
42041 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
42042 if test "${ol_cv_db_db_4_1+set}" = set; then
42043 echo $ECHO_N "(cached) $ECHO_C" >&6
42048 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42050 cat >conftest.$ac_ext <<_ACEOF
42053 cat confdefs.h >>conftest.$ac_ext
42054 cat >>conftest.$ac_ext <<_ACEOF
42055 /* end confdefs.h. */
42057 #ifdef HAVE_DB_185_H
42058 # include <db_185.h>
42063 #ifndef DB_VERSION_MAJOR
42064 # define DB_VERSION_MAJOR 1
42068 #define NULL ((void*)0)
42075 #if DB_VERSION_MAJOR > 1
42078 int major, minor, patch;
42080 version = db_version( &major, &minor, &patch );
42082 if( major != DB_VERSION_MAJOR ||
42083 minor < DB_VERSION_MINOR )
42085 printf("Berkeley DB version mismatch\n"
42086 "\theader: %s\n\tlibrary: %s\n",
42087 DB_VERSION_STRING, version);
42093 #if DB_VERSION_MAJOR > 2
42094 db_env_create( NULL, 0 );
42095 #elif DB_VERSION_MAJOR > 1
42096 db_appexit( NULL );
42098 (void) dbopen( NULL, 0, 0, 0, NULL);
42105 rm -f conftest.$ac_objext conftest$ac_exeext
42106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42107 (eval $ac_link) 2>conftest.er1
42109 grep -v '^ *+' conftest.er1 >conftest.err
42111 cat conftest.err >&5
42112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42113 (exit $ac_status); } &&
42114 { ac_try='test -z "$ac_c_werror_flag"
42115 || test ! -s conftest.err'
42116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42117 (eval $ac_try) 2>&5
42119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42120 (exit $ac_status); }; } &&
42121 { ac_try='test -s conftest$ac_exeext'
42122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42123 (eval $ac_try) 2>&5
42125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42126 (exit $ac_status); }; }; then
42127 ol_cv_db_db_4_1=yes
42129 echo "$as_me: failed program was:" >&5
42130 sed 's/^/| /' conftest.$ac_ext >&5
42134 rm -f conftest.err conftest.$ac_objext \
42135 conftest$ac_exeext conftest.$ac_ext
42140 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
42141 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
42143 if test $ol_cv_db_db_4_1 = yes ; then
42144 ol_cv_lib_db=-ldb-4-1
42148 if test $ol_cv_lib_db = no ; then
42149 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
42150 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
42151 if test "${ol_cv_db_db3+set}" = set; then
42152 echo $ECHO_N "(cached) $ECHO_C" >&6
42157 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42159 cat >conftest.$ac_ext <<_ACEOF
42162 cat confdefs.h >>conftest.$ac_ext
42163 cat >>conftest.$ac_ext <<_ACEOF
42164 /* end confdefs.h. */
42166 #ifdef HAVE_DB_185_H
42167 # include <db_185.h>
42172 #ifndef DB_VERSION_MAJOR
42173 # define DB_VERSION_MAJOR 1
42177 #define NULL ((void*)0)
42184 #if DB_VERSION_MAJOR > 1
42187 int major, minor, patch;
42189 version = db_version( &major, &minor, &patch );
42191 if( major != DB_VERSION_MAJOR ||
42192 minor < DB_VERSION_MINOR )
42194 printf("Berkeley DB version mismatch\n"
42195 "\theader: %s\n\tlibrary: %s\n",
42196 DB_VERSION_STRING, version);
42202 #if DB_VERSION_MAJOR > 2
42203 db_env_create( NULL, 0 );
42204 #elif DB_VERSION_MAJOR > 1
42205 db_appexit( NULL );
42207 (void) dbopen( NULL, 0, 0, 0, NULL);
42214 rm -f conftest.$ac_objext conftest$ac_exeext
42215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42216 (eval $ac_link) 2>conftest.er1
42218 grep -v '^ *+' conftest.er1 >conftest.err
42220 cat conftest.err >&5
42221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42222 (exit $ac_status); } &&
42223 { ac_try='test -z "$ac_c_werror_flag"
42224 || test ! -s conftest.err'
42225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42226 (eval $ac_try) 2>&5
42228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42229 (exit $ac_status); }; } &&
42230 { ac_try='test -s conftest$ac_exeext'
42231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42232 (eval $ac_try) 2>&5
42234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42235 (exit $ac_status); }; }; then
42238 echo "$as_me: failed program was:" >&5
42239 sed 's/^/| /' conftest.$ac_ext >&5
42243 rm -f conftest.err conftest.$ac_objext \
42244 conftest$ac_exeext conftest.$ac_ext
42249 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
42250 echo "${ECHO_T}$ol_cv_db_db3" >&6
42252 if test $ol_cv_db_db3 = yes ; then
42257 if test $ol_cv_lib_db = no ; then
42258 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
42259 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
42260 if test "${ol_cv_db_db_3+set}" = set; then
42261 echo $ECHO_N "(cached) $ECHO_C" >&6
42266 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42268 cat >conftest.$ac_ext <<_ACEOF
42271 cat confdefs.h >>conftest.$ac_ext
42272 cat >>conftest.$ac_ext <<_ACEOF
42273 /* end confdefs.h. */
42275 #ifdef HAVE_DB_185_H
42276 # include <db_185.h>
42281 #ifndef DB_VERSION_MAJOR
42282 # define DB_VERSION_MAJOR 1
42286 #define NULL ((void*)0)
42293 #if DB_VERSION_MAJOR > 1
42296 int major, minor, patch;
42298 version = db_version( &major, &minor, &patch );
42300 if( major != DB_VERSION_MAJOR ||
42301 minor < DB_VERSION_MINOR )
42303 printf("Berkeley DB version mismatch\n"
42304 "\theader: %s\n\tlibrary: %s\n",
42305 DB_VERSION_STRING, version);
42311 #if DB_VERSION_MAJOR > 2
42312 db_env_create( NULL, 0 );
42313 #elif DB_VERSION_MAJOR > 1
42314 db_appexit( NULL );
42316 (void) dbopen( NULL, 0, 0, 0, NULL);
42323 rm -f conftest.$ac_objext conftest$ac_exeext
42324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42325 (eval $ac_link) 2>conftest.er1
42327 grep -v '^ *+' conftest.er1 >conftest.err
42329 cat conftest.err >&5
42330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42331 (exit $ac_status); } &&
42332 { ac_try='test -z "$ac_c_werror_flag"
42333 || test ! -s conftest.err'
42334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42335 (eval $ac_try) 2>&5
42337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42338 (exit $ac_status); }; } &&
42339 { ac_try='test -s conftest$ac_exeext'
42340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42341 (eval $ac_try) 2>&5
42343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42344 (exit $ac_status); }; }; then
42347 echo "$as_me: failed program was:" >&5
42348 sed 's/^/| /' conftest.$ac_ext >&5
42352 rm -f conftest.err conftest.$ac_objext \
42353 conftest$ac_exeext conftest.$ac_ext
42358 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
42359 echo "${ECHO_T}$ol_cv_db_db_3" >&6
42361 if test $ol_cv_db_db_3 = yes ; then
42362 ol_cv_lib_db=-ldb-3
42366 if test $ol_cv_lib_db = no ; then
42367 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
42368 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
42369 if test "${ol_cv_db_db2+set}" = set; then
42370 echo $ECHO_N "(cached) $ECHO_C" >&6
42375 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42377 cat >conftest.$ac_ext <<_ACEOF
42380 cat confdefs.h >>conftest.$ac_ext
42381 cat >>conftest.$ac_ext <<_ACEOF
42382 /* end confdefs.h. */
42384 #ifdef HAVE_DB_185_H
42385 # include <db_185.h>
42390 #ifndef DB_VERSION_MAJOR
42391 # define DB_VERSION_MAJOR 1
42395 #define NULL ((void*)0)
42402 #if DB_VERSION_MAJOR > 1
42405 int major, minor, patch;
42407 version = db_version( &major, &minor, &patch );
42409 if( major != DB_VERSION_MAJOR ||
42410 minor < DB_VERSION_MINOR )
42412 printf("Berkeley DB version mismatch\n"
42413 "\theader: %s\n\tlibrary: %s\n",
42414 DB_VERSION_STRING, version);
42420 #if DB_VERSION_MAJOR > 2
42421 db_env_create( NULL, 0 );
42422 #elif DB_VERSION_MAJOR > 1
42423 db_appexit( NULL );
42425 (void) dbopen( NULL, 0, 0, 0, NULL);
42432 rm -f conftest.$ac_objext conftest$ac_exeext
42433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42434 (eval $ac_link) 2>conftest.er1
42436 grep -v '^ *+' conftest.er1 >conftest.err
42438 cat conftest.err >&5
42439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42440 (exit $ac_status); } &&
42441 { ac_try='test -z "$ac_c_werror_flag"
42442 || test ! -s conftest.err'
42443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42444 (eval $ac_try) 2>&5
42446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42447 (exit $ac_status); }; } &&
42448 { ac_try='test -s conftest$ac_exeext'
42449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42450 (eval $ac_try) 2>&5
42452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42453 (exit $ac_status); }; }; then
42456 echo "$as_me: failed program was:" >&5
42457 sed 's/^/| /' conftest.$ac_ext >&5
42461 rm -f conftest.err conftest.$ac_objext \
42462 conftest$ac_exeext conftest.$ac_ext
42467 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
42468 echo "${ECHO_T}$ol_cv_db_db2" >&6
42470 if test $ol_cv_db_db2 = yes ; then
42475 if test $ol_cv_lib_db = no ; then
42476 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
42477 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
42478 if test "${ol_cv_db_db_2+set}" = set; then
42479 echo $ECHO_N "(cached) $ECHO_C" >&6
42484 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42486 cat >conftest.$ac_ext <<_ACEOF
42489 cat confdefs.h >>conftest.$ac_ext
42490 cat >>conftest.$ac_ext <<_ACEOF
42491 /* end confdefs.h. */
42493 #ifdef HAVE_DB_185_H
42494 # include <db_185.h>
42499 #ifndef DB_VERSION_MAJOR
42500 # define DB_VERSION_MAJOR 1
42504 #define NULL ((void*)0)
42511 #if DB_VERSION_MAJOR > 1
42514 int major, minor, patch;
42516 version = db_version( &major, &minor, &patch );
42518 if( major != DB_VERSION_MAJOR ||
42519 minor < DB_VERSION_MINOR )
42521 printf("Berkeley DB version mismatch\n"
42522 "\theader: %s\n\tlibrary: %s\n",
42523 DB_VERSION_STRING, version);
42529 #if DB_VERSION_MAJOR > 2
42530 db_env_create( NULL, 0 );
42531 #elif DB_VERSION_MAJOR > 1
42532 db_appexit( NULL );
42534 (void) dbopen( NULL, 0, 0, 0, NULL);
42541 rm -f conftest.$ac_objext conftest$ac_exeext
42542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42543 (eval $ac_link) 2>conftest.er1
42545 grep -v '^ *+' conftest.er1 >conftest.err
42547 cat conftest.err >&5
42548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42549 (exit $ac_status); } &&
42550 { ac_try='test -z "$ac_c_werror_flag"
42551 || test ! -s conftest.err'
42552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42553 (eval $ac_try) 2>&5
42555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42556 (exit $ac_status); }; } &&
42557 { ac_try='test -s conftest$ac_exeext'
42558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42559 (eval $ac_try) 2>&5
42561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42562 (exit $ac_status); }; }; then
42565 echo "$as_me: failed program was:" >&5
42566 sed 's/^/| /' conftest.$ac_ext >&5
42570 rm -f conftest.err conftest.$ac_objext \
42571 conftest$ac_exeext conftest.$ac_ext
42576 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
42577 echo "${ECHO_T}$ol_cv_db_db_2" >&6
42579 if test $ol_cv_db_db_2 = yes ; then
42580 ol_cv_lib_db=-ldb-2
42584 if test $ol_cv_lib_db = no ; then
42585 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
42586 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
42587 if test "${ol_cv_db_db1+set}" = set; then
42588 echo $ECHO_N "(cached) $ECHO_C" >&6
42593 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42595 cat >conftest.$ac_ext <<_ACEOF
42598 cat confdefs.h >>conftest.$ac_ext
42599 cat >>conftest.$ac_ext <<_ACEOF
42600 /* end confdefs.h. */
42602 #ifdef HAVE_DB_185_H
42603 # include <db_185.h>
42608 #ifndef DB_VERSION_MAJOR
42609 # define DB_VERSION_MAJOR 1
42613 #define NULL ((void*)0)
42620 #if DB_VERSION_MAJOR > 1
42623 int major, minor, patch;
42625 version = db_version( &major, &minor, &patch );
42627 if( major != DB_VERSION_MAJOR ||
42628 minor < DB_VERSION_MINOR )
42630 printf("Berkeley DB version mismatch\n"
42631 "\theader: %s\n\tlibrary: %s\n",
42632 DB_VERSION_STRING, version);
42638 #if DB_VERSION_MAJOR > 2
42639 db_env_create( NULL, 0 );
42640 #elif DB_VERSION_MAJOR > 1
42641 db_appexit( NULL );
42643 (void) dbopen( NULL, 0, 0, 0, NULL);
42650 rm -f conftest.$ac_objext conftest$ac_exeext
42651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42652 (eval $ac_link) 2>conftest.er1
42654 grep -v '^ *+' conftest.er1 >conftest.err
42656 cat conftest.err >&5
42657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42658 (exit $ac_status); } &&
42659 { ac_try='test -z "$ac_c_werror_flag"
42660 || test ! -s conftest.err'
42661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42662 (eval $ac_try) 2>&5
42664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42665 (exit $ac_status); }; } &&
42666 { ac_try='test -s conftest$ac_exeext'
42667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42668 (eval $ac_try) 2>&5
42670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42671 (exit $ac_status); }; }; then
42674 echo "$as_me: failed program was:" >&5
42675 sed 's/^/| /' conftest.$ac_ext >&5
42679 rm -f conftest.err conftest.$ac_objext \
42680 conftest$ac_exeext conftest.$ac_ext
42685 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
42686 echo "${ECHO_T}$ol_cv_db_db1" >&6
42688 if test $ol_cv_db_db1 = yes ; then
42693 if test $ol_cv_lib_db = no ; then
42694 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
42695 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
42696 if test "${ol_cv_db_db_1+set}" = set; then
42697 echo $ECHO_N "(cached) $ECHO_C" >&6
42702 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42704 cat >conftest.$ac_ext <<_ACEOF
42707 cat confdefs.h >>conftest.$ac_ext
42708 cat >>conftest.$ac_ext <<_ACEOF
42709 /* end confdefs.h. */
42711 #ifdef HAVE_DB_185_H
42712 # include <db_185.h>
42717 #ifndef DB_VERSION_MAJOR
42718 # define DB_VERSION_MAJOR 1
42722 #define NULL ((void*)0)
42729 #if DB_VERSION_MAJOR > 1
42732 int major, minor, patch;
42734 version = db_version( &major, &minor, &patch );
42736 if( major != DB_VERSION_MAJOR ||
42737 minor < DB_VERSION_MINOR )
42739 printf("Berkeley DB version mismatch\n"
42740 "\theader: %s\n\tlibrary: %s\n",
42741 DB_VERSION_STRING, version);
42747 #if DB_VERSION_MAJOR > 2
42748 db_env_create( NULL, 0 );
42749 #elif DB_VERSION_MAJOR > 1
42750 db_appexit( NULL );
42752 (void) dbopen( NULL, 0, 0, 0, NULL);
42759 rm -f conftest.$ac_objext conftest$ac_exeext
42760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42761 (eval $ac_link) 2>conftest.er1
42763 grep -v '^ *+' conftest.er1 >conftest.err
42765 cat conftest.err >&5
42766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42767 (exit $ac_status); } &&
42768 { ac_try='test -z "$ac_c_werror_flag"
42769 || test ! -s conftest.err'
42770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42771 (eval $ac_try) 2>&5
42773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42774 (exit $ac_status); }; } &&
42775 { ac_try='test -s conftest$ac_exeext'
42776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42777 (eval $ac_try) 2>&5
42779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42780 (exit $ac_status); }; }; then
42783 echo "$as_me: failed program was:" >&5
42784 sed 's/^/| /' conftest.$ac_ext >&5
42788 rm -f conftest.err conftest.$ac_objext \
42789 conftest$ac_exeext conftest.$ac_ext
42794 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
42795 echo "${ECHO_T}$ol_cv_db_db_1" >&6
42797 if test $ol_cv_db_db_1 = yes ; then
42798 ol_cv_lib_db=-ldb-1
42803 if test "$ol_cv_lib_db" != no ; then
42804 ol_cv_berkeley_db=yes
42805 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
42806 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
42807 if test "${ol_cv_berkeley_db_version+set}" = set; then
42808 echo $ECHO_N "(cached) $ECHO_C" >&6
42812 LIBS="$LTHREAD_LIBS $LIBS"
42813 if test $ol_cv_lib_db != yes ; then
42814 LIBS="$ol_cv_lib_db $LIBS"
42817 if test "$cross_compiling" = yes; then
42818 ol_cv_berkeley_db_version=cross
42820 cat >conftest.$ac_ext <<_ACEOF
42823 cat confdefs.h >>conftest.$ac_ext
42824 cat >>conftest.$ac_ext <<_ACEOF
42825 /* end confdefs.h. */
42827 #ifdef HAVE_DB_185_H
42832 #ifndef DB_VERSION_MAJOR
42833 # define DB_VERSION_MAJOR 1
42836 #define NULL ((void *)0)
42840 #if DB_VERSION_MAJOR > 1
42842 int major, minor, patch;
42844 version = db_version( &major, &minor, &patch );
42846 if( major != DB_VERSION_MAJOR ||
42847 minor != DB_VERSION_MINOR ||
42848 patch != DB_VERSION_PATCH )
42850 printf("Berkeley DB version mismatch\n"
42851 "\theader: %s\n\tlibrary: %s\n",
42852 DB_VERSION_STRING, version);
42860 rm -f conftest$ac_exeext
42861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42862 (eval $ac_link) 2>&5
42864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42865 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42867 (eval $ac_try) 2>&5
42869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42870 (exit $ac_status); }; }; then
42871 ol_cv_berkeley_db_version=yes
42873 echo "$as_me: program exited with status $ac_status" >&5
42874 echo "$as_me: failed program was:" >&5
42875 sed 's/^/| /' conftest.$ac_ext >&5
42877 ( exit $ac_status )
42878 ol_cv_berkeley_db_version=no
42880 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42886 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
42887 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
42889 if test $ol_cv_berkeley_db_version = no ; then
42890 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
42891 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
42892 { (exit 1); exit 1; }; }
42895 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
42896 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
42897 if test "${ol_cv_berkeley_db_thread+set}" = set; then
42898 echo $ECHO_N "(cached) $ECHO_C" >&6
42902 LIBS="$LTHREAD_LIBS $LIBS"
42903 if test $ol_cv_lib_db != yes ; then
42904 LIBS="$ol_cv_lib_db $LIBS"
42907 if test "$cross_compiling" = yes; then
42908 ol_cv_berkeley_db_thread=cross
42910 cat >conftest.$ac_ext <<_ACEOF
42913 cat confdefs.h >>conftest.$ac_ext
42914 cat >>conftest.$ac_ext <<_ACEOF
42915 /* end confdefs.h. */
42917 #ifdef HAVE_DB_185_H
42923 #define NULL ((void *)0)
42928 u_int32_t flags = DB_CREATE |
42934 #if DB_VERSION_MAJOR > 2
42935 DB_ENV *env = NULL;
42937 rc = db_env_create( &env, 0 );
42939 flags |= DB_INIT_MPOOL;
42940 #ifdef DB_MPOOL_PRIVATE
42941 flags |= DB_MPOOL_PRIVATE;
42945 printf("BerkeleyDB: %s\n", db_strerror(rc) );
42949 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
42950 rc = env->open( env, NULL, flags, 0 );
42952 rc = env->open( env, NULL, NULL, flags, 0 );
42956 rc = env->close( env, 0 );
42960 printf("BerkeleyDB: %s\n", db_strerror(rc) );
42966 memset( &env, '\0', sizeof(env) );
42968 rc = db_appinit( NULL, NULL, &env, flags );
42971 db_appexit( &env );
42974 unlink("__db_mpool.share");
42975 unlink("__db_lock.share");
42981 rm -f conftest$ac_exeext
42982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42983 (eval $ac_link) 2>&5
42985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42986 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42988 (eval $ac_try) 2>&5
42990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42991 (exit $ac_status); }; }; then
42992 ol_cv_berkeley_db_thread=yes
42994 echo "$as_me: program exited with status $ac_status" >&5
42995 echo "$as_me: failed program was:" >&5
42996 sed 's/^/| /' conftest.$ac_ext >&5
42998 ( exit $ac_status )
42999 ol_cv_berkeley_db_thread=no
43001 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43007 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
43008 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
43010 if test $ol_cv_berkeley_db_thread != no ; then
43012 cat >>confdefs.h <<\_ACEOF
43013 #define HAVE_BERKELEY_DB_THREAD 1
43023 if test $ol_cv_berkeley_db != no ; then
43025 cat >>confdefs.h <<\_ACEOF
43026 #define HAVE_BERKELEY_DB 1
43030 ol_link_ldbm=berkeley
43031 ol_with_ldbm_api=berkeley
43033 if test $ol_with_ldbm_type = hash ; then
43035 cat >>confdefs.h <<\_ACEOF
43036 #define LDBM_USE_DBHASH 1
43041 cat >>confdefs.h <<\_ACEOF
43042 #define LDBM_USE_DBBTREE 1
43047 if test $ol_cv_lib_db != yes ; then
43048 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
43053 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
43054 if test $ol_link_ldbm != berkeley ; then
43055 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
43056 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
43057 { (exit 1); exit 1; }; }
43059 echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
43060 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
43061 if test "${ol_cv_bdb_compat+set}" = set; then
43062 echo $ECHO_N "(cached) $ECHO_C" >&6
43065 cat >conftest.$ac_ext <<_ACEOF
43068 cat confdefs.h >>conftest.$ac_ext
43069 cat >>conftest.$ac_ext <<_ACEOF
43070 /* end confdefs.h. */
43074 /* this check could be improved */
43075 #ifndef DB_VERSION_MAJOR
43076 # define DB_VERSION_MAJOR 1
43078 #ifndef DB_VERSION_MINOR
43079 # define DB_VERSION_MINOR 0
43082 /* require 4.2 or later */
43083 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
43084 __db_version_compat
43088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43089 $EGREP "__db_version_compat" >/dev/null 2>&1; then
43090 ol_cv_bdb_compat=yes
43092 ol_cv_bdb_compat=no
43097 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
43098 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
43101 if test $ol_cv_bdb_compat != yes ; then
43102 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
43103 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
43104 { (exit 1); exit 1; }; }
43109 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
43110 { echo "$as_me:$LINENO: WARNING: Could not find LDBM with BTREE support" >&5
43111 echo "$as_me: WARNING: Could not find LDBM with BTREE support" >&2;}
43112 ol_with_ldbm_api=none
43115 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
43116 echo "$as_me:$LINENO: checking for MDBM library" >&5
43117 echo $ECHO_N "checking for MDBM library... $ECHO_C" >&6
43118 if test "${ol_cv_lib_mdbm+set}" = set; then
43119 echo $ECHO_N "(cached) $ECHO_C" >&6
43122 echo "$as_me:$LINENO: checking for mdbm_set_chain" >&5
43123 echo $ECHO_N "checking for mdbm_set_chain... $ECHO_C" >&6
43124 if test "${ac_cv_func_mdbm_set_chain+set}" = set; then
43125 echo $ECHO_N "(cached) $ECHO_C" >&6
43127 cat >conftest.$ac_ext <<_ACEOF
43130 cat confdefs.h >>conftest.$ac_ext
43131 cat >>conftest.$ac_ext <<_ACEOF
43132 /* end confdefs.h. */
43133 /* Define mdbm_set_chain to an innocuous variant, in case <limits.h> declares mdbm_set_chain.
43134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43135 #define mdbm_set_chain innocuous_mdbm_set_chain
43137 /* System header to define __stub macros and hopefully few prototypes,
43138 which can conflict with char mdbm_set_chain (); below.
43139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43140 <limits.h> exists even on freestanding compilers. */
43143 # include <limits.h>
43145 # include <assert.h>
43148 #undef mdbm_set_chain
43150 /* Override any gcc2 internal prototype to avoid an error. */
43155 /* We use char because int might match the return type of a gcc2
43156 builtin and then its argument prototype would still apply. */
43157 char mdbm_set_chain ();
43158 /* The GNU C library defines this for functions which it implements
43159 to always fail with ENOSYS. Some functions are actually named
43160 something starting with __ and the normal name is an alias. */
43161 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
43164 char (*f) () = mdbm_set_chain;
43173 return f != mdbm_set_chain;
43178 rm -f conftest.$ac_objext conftest$ac_exeext
43179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43180 (eval $ac_link) 2>conftest.er1
43182 grep -v '^ *+' conftest.er1 >conftest.err
43184 cat conftest.err >&5
43185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43186 (exit $ac_status); } &&
43187 { ac_try='test -z "$ac_c_werror_flag"
43188 || test ! -s conftest.err'
43189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43190 (eval $ac_try) 2>&5
43192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43193 (exit $ac_status); }; } &&
43194 { ac_try='test -s conftest$ac_exeext'
43195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43196 (eval $ac_try) 2>&5
43198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43199 (exit $ac_status); }; }; then
43200 ac_cv_func_mdbm_set_chain=yes
43202 echo "$as_me: failed program was:" >&5
43203 sed 's/^/| /' conftest.$ac_ext >&5
43205 ac_cv_func_mdbm_set_chain=no
43207 rm -f conftest.err conftest.$ac_objext \
43208 conftest$ac_exeext conftest.$ac_ext
43210 echo "$as_me:$LINENO: result: $ac_cv_func_mdbm_set_chain" >&5
43211 echo "${ECHO_T}$ac_cv_func_mdbm_set_chain" >&6
43212 if test $ac_cv_func_mdbm_set_chain = yes; then
43216 echo "$as_me:$LINENO: checking for mdbm_set_chain in -lmdbm" >&5
43217 echo $ECHO_N "checking for mdbm_set_chain in -lmdbm... $ECHO_C" >&6
43218 if test "${ac_cv_lib_mdbm_mdbm_set_chain+set}" = set; then
43219 echo $ECHO_N "(cached) $ECHO_C" >&6
43221 ac_check_lib_save_LIBS=$LIBS
43222 LIBS="-lmdbm $LIBS"
43223 cat >conftest.$ac_ext <<_ACEOF
43226 cat confdefs.h >>conftest.$ac_ext
43227 cat >>conftest.$ac_ext <<_ACEOF
43228 /* end confdefs.h. */
43230 /* Override any gcc2 internal prototype to avoid an error. */
43234 /* We use char because int might match the return type of a gcc2
43235 builtin and then its argument prototype would still apply. */
43236 char mdbm_set_chain ();
43245 rm -f conftest.$ac_objext conftest$ac_exeext
43246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43247 (eval $ac_link) 2>conftest.er1
43249 grep -v '^ *+' conftest.er1 >conftest.err
43251 cat conftest.err >&5
43252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43253 (exit $ac_status); } &&
43254 { ac_try='test -z "$ac_c_werror_flag"
43255 || test ! -s conftest.err'
43256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43257 (eval $ac_try) 2>&5
43259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43260 (exit $ac_status); }; } &&
43261 { ac_try='test -s conftest$ac_exeext'
43262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43263 (eval $ac_try) 2>&5
43265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43266 (exit $ac_status); }; }; then
43267 ac_cv_lib_mdbm_mdbm_set_chain=yes
43269 echo "$as_me: failed program was:" >&5
43270 sed 's/^/| /' conftest.$ac_ext >&5
43272 ac_cv_lib_mdbm_mdbm_set_chain=no
43274 rm -f conftest.err conftest.$ac_objext \
43275 conftest$ac_exeext conftest.$ac_ext
43276 LIBS=$ac_check_lib_save_LIBS
43278 echo "$as_me:$LINENO: result: $ac_cv_lib_mdbm_mdbm_set_chain" >&5
43279 echo "${ECHO_T}$ac_cv_lib_mdbm_mdbm_set_chain" >&6
43280 if test $ac_cv_lib_mdbm_mdbm_set_chain = yes; then
43281 ol_cv_lib_mdbm=-lmdbm
43292 echo "$as_me:$LINENO: result: $ol_cv_lib_mdbm" >&5
43293 echo "${ECHO_T}$ol_cv_lib_mdbm" >&6
43297 for ac_header in mdbm.h
43299 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43301 echo "$as_me:$LINENO: checking for $ac_header" >&5
43302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43303 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43304 echo $ECHO_N "(cached) $ECHO_C" >&6
43306 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43307 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43309 # Is the header compilable?
43310 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43311 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43312 cat >conftest.$ac_ext <<_ACEOF
43315 cat confdefs.h >>conftest.$ac_ext
43316 cat >>conftest.$ac_ext <<_ACEOF
43317 /* end confdefs.h. */
43318 $ac_includes_default
43319 #include <$ac_header>
43321 rm -f conftest.$ac_objext
43322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43323 (eval $ac_compile) 2>conftest.er1
43325 grep -v '^ *+' conftest.er1 >conftest.err
43327 cat conftest.err >&5
43328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43329 (exit $ac_status); } &&
43330 { ac_try='test -z "$ac_c_werror_flag"
43331 || test ! -s conftest.err'
43332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43333 (eval $ac_try) 2>&5
43335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43336 (exit $ac_status); }; } &&
43337 { ac_try='test -s conftest.$ac_objext'
43338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43339 (eval $ac_try) 2>&5
43341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43342 (exit $ac_status); }; }; then
43343 ac_header_compiler=yes
43345 echo "$as_me: failed program was:" >&5
43346 sed 's/^/| /' conftest.$ac_ext >&5
43348 ac_header_compiler=no
43350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43351 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43352 echo "${ECHO_T}$ac_header_compiler" >&6
43354 # Is the header present?
43355 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43356 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43357 cat >conftest.$ac_ext <<_ACEOF
43360 cat confdefs.h >>conftest.$ac_ext
43361 cat >>conftest.$ac_ext <<_ACEOF
43362 /* end confdefs.h. */
43363 #include <$ac_header>
43365 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43366 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43368 grep -v '^ *+' conftest.er1 >conftest.err
43370 cat conftest.err >&5
43371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43372 (exit $ac_status); } >/dev/null; then
43373 if test -s conftest.err; then
43374 ac_cpp_err=$ac_c_preproc_warn_flag
43375 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43382 if test -z "$ac_cpp_err"; then
43383 ac_header_preproc=yes
43385 echo "$as_me: failed program was:" >&5
43386 sed 's/^/| /' conftest.$ac_ext >&5
43388 ac_header_preproc=no
43390 rm -f conftest.err conftest.$ac_ext
43391 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43392 echo "${ECHO_T}$ac_header_preproc" >&6
43394 # So? What about this header?
43395 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43397 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43398 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43399 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43400 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43401 ac_header_preproc=yes
43404 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43405 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43406 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43407 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43408 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43409 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43410 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43411 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
43412 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43413 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43414 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43415 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43418 ## ------------------------------------------ ##
43419 ## Report this to the AC_PACKAGE_NAME lists. ##
43420 ## ------------------------------------------ ##
43423 sed "s/^/$as_me: WARNING: /" >&2
43426 echo "$as_me:$LINENO: checking for $ac_header" >&5
43427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43429 echo $ECHO_N "(cached) $ECHO_C" >&6
43431 eval "$as_ac_Header=\$ac_header_preproc"
43433 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43434 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43437 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43438 cat >>confdefs.h <<_ACEOF
43439 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43446 echo "$as_me:$LINENO: checking for db" >&5
43447 echo $ECHO_N "checking for db... $ECHO_C" >&6
43448 if test "${ol_cv_mdbm+set}" = set; then
43449 echo $ECHO_N "(cached) $ECHO_C" >&6
43452 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
43459 echo "$as_me:$LINENO: result: $ol_cv_mdbm" >&5
43460 echo "${ECHO_T}$ol_cv_mdbm" >&6
43461 if test $ol_cv_mdbm = yes ; then
43463 cat >>confdefs.h <<\_ACEOF
43464 #define HAVE_MDBM 1
43470 if test $ol_cv_mdbm = yes ; then
43472 ol_with_ldbm_api=mdbm
43473 if test $ol_cv_lib_mdbm != yes ; then
43474 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
43479 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
43480 echo "$as_me:$LINENO: checking for GDBM library" >&5
43481 echo $ECHO_N "checking for GDBM library... $ECHO_C" >&6
43482 if test "${ol_cv_lib_gdbm+set}" = set; then
43483 echo $ECHO_N "(cached) $ECHO_C" >&6
43486 echo "$as_me:$LINENO: checking for gdbm_open" >&5
43487 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
43488 if test "${ac_cv_func_gdbm_open+set}" = set; then
43489 echo $ECHO_N "(cached) $ECHO_C" >&6
43491 cat >conftest.$ac_ext <<_ACEOF
43494 cat confdefs.h >>conftest.$ac_ext
43495 cat >>conftest.$ac_ext <<_ACEOF
43496 /* end confdefs.h. */
43497 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
43498 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43499 #define gdbm_open innocuous_gdbm_open
43501 /* System header to define __stub macros and hopefully few prototypes,
43502 which can conflict with char gdbm_open (); below.
43503 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43504 <limits.h> exists even on freestanding compilers. */
43507 # include <limits.h>
43509 # include <assert.h>
43514 /* Override any gcc2 internal prototype to avoid an error. */
43519 /* We use char because int might match the return type of a gcc2
43520 builtin and then its argument prototype would still apply. */
43522 /* The GNU C library defines this for functions which it implements
43523 to always fail with ENOSYS. Some functions are actually named
43524 something starting with __ and the normal name is an alias. */
43525 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
43528 char (*f) () = gdbm_open;
43537 return f != gdbm_open;
43542 rm -f conftest.$ac_objext conftest$ac_exeext
43543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43544 (eval $ac_link) 2>conftest.er1
43546 grep -v '^ *+' conftest.er1 >conftest.err
43548 cat conftest.err >&5
43549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43550 (exit $ac_status); } &&
43551 { ac_try='test -z "$ac_c_werror_flag"
43552 || test ! -s conftest.err'
43553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43554 (eval $ac_try) 2>&5
43556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43557 (exit $ac_status); }; } &&
43558 { ac_try='test -s conftest$ac_exeext'
43559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43560 (eval $ac_try) 2>&5
43562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43563 (exit $ac_status); }; }; then
43564 ac_cv_func_gdbm_open=yes
43566 echo "$as_me: failed program was:" >&5
43567 sed 's/^/| /' conftest.$ac_ext >&5
43569 ac_cv_func_gdbm_open=no
43571 rm -f conftest.err conftest.$ac_objext \
43572 conftest$ac_exeext conftest.$ac_ext
43574 echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
43575 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6
43576 if test $ac_cv_func_gdbm_open = yes; then
43580 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
43581 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
43582 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
43583 echo $ECHO_N "(cached) $ECHO_C" >&6
43585 ac_check_lib_save_LIBS=$LIBS
43586 LIBS="-lgdbm $LIBS"
43587 cat >conftest.$ac_ext <<_ACEOF
43590 cat confdefs.h >>conftest.$ac_ext
43591 cat >>conftest.$ac_ext <<_ACEOF
43592 /* end confdefs.h. */
43594 /* Override any gcc2 internal prototype to avoid an error. */
43598 /* We use char because int might match the return type of a gcc2
43599 builtin and then its argument prototype would still apply. */
43609 rm -f conftest.$ac_objext conftest$ac_exeext
43610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43611 (eval $ac_link) 2>conftest.er1
43613 grep -v '^ *+' conftest.er1 >conftest.err
43615 cat conftest.err >&5
43616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43617 (exit $ac_status); } &&
43618 { ac_try='test -z "$ac_c_werror_flag"
43619 || test ! -s conftest.err'
43620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43621 (eval $ac_try) 2>&5
43623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43624 (exit $ac_status); }; } &&
43625 { ac_try='test -s conftest$ac_exeext'
43626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43627 (eval $ac_try) 2>&5
43629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43630 (exit $ac_status); }; }; then
43631 ac_cv_lib_gdbm_gdbm_open=yes
43633 echo "$as_me: failed program was:" >&5
43634 sed 's/^/| /' conftest.$ac_ext >&5
43636 ac_cv_lib_gdbm_gdbm_open=no
43638 rm -f conftest.err conftest.$ac_objext \
43639 conftest$ac_exeext conftest.$ac_ext
43640 LIBS=$ac_check_lib_save_LIBS
43642 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
43643 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
43644 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
43645 ol_cv_lib_gdbm=-lgdbm
43656 echo "$as_me:$LINENO: result: $ol_cv_lib_gdbm" >&5
43657 echo "${ECHO_T}$ol_cv_lib_gdbm" >&6
43661 for ac_header in gdbm.h
43663 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43665 echo "$as_me:$LINENO: checking for $ac_header" >&5
43666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43667 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43668 echo $ECHO_N "(cached) $ECHO_C" >&6
43670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43671 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43673 # Is the header compilable?
43674 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43675 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43676 cat >conftest.$ac_ext <<_ACEOF
43679 cat confdefs.h >>conftest.$ac_ext
43680 cat >>conftest.$ac_ext <<_ACEOF
43681 /* end confdefs.h. */
43682 $ac_includes_default
43683 #include <$ac_header>
43685 rm -f conftest.$ac_objext
43686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43687 (eval $ac_compile) 2>conftest.er1
43689 grep -v '^ *+' conftest.er1 >conftest.err
43691 cat conftest.err >&5
43692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43693 (exit $ac_status); } &&
43694 { ac_try='test -z "$ac_c_werror_flag"
43695 || test ! -s conftest.err'
43696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43697 (eval $ac_try) 2>&5
43699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43700 (exit $ac_status); }; } &&
43701 { ac_try='test -s conftest.$ac_objext'
43702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43703 (eval $ac_try) 2>&5
43705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43706 (exit $ac_status); }; }; then
43707 ac_header_compiler=yes
43709 echo "$as_me: failed program was:" >&5
43710 sed 's/^/| /' conftest.$ac_ext >&5
43712 ac_header_compiler=no
43714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43715 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43716 echo "${ECHO_T}$ac_header_compiler" >&6
43718 # Is the header present?
43719 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43720 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43721 cat >conftest.$ac_ext <<_ACEOF
43724 cat confdefs.h >>conftest.$ac_ext
43725 cat >>conftest.$ac_ext <<_ACEOF
43726 /* end confdefs.h. */
43727 #include <$ac_header>
43729 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43730 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43732 grep -v '^ *+' conftest.er1 >conftest.err
43734 cat conftest.err >&5
43735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43736 (exit $ac_status); } >/dev/null; then
43737 if test -s conftest.err; then
43738 ac_cpp_err=$ac_c_preproc_warn_flag
43739 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43746 if test -z "$ac_cpp_err"; then
43747 ac_header_preproc=yes
43749 echo "$as_me: failed program was:" >&5
43750 sed 's/^/| /' conftest.$ac_ext >&5
43752 ac_header_preproc=no
43754 rm -f conftest.err conftest.$ac_ext
43755 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43756 echo "${ECHO_T}$ac_header_preproc" >&6
43758 # So? What about this header?
43759 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43761 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43762 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43764 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43765 ac_header_preproc=yes
43768 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43769 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43770 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43771 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43772 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43773 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43774 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43775 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
43776 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43777 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43778 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43779 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43782 ## ------------------------------------------ ##
43783 ## Report this to the AC_PACKAGE_NAME lists. ##
43784 ## ------------------------------------------ ##
43787 sed "s/^/$as_me: WARNING: /" >&2
43790 echo "$as_me:$LINENO: checking for $ac_header" >&5
43791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43793 echo $ECHO_N "(cached) $ECHO_C" >&6
43795 eval "$as_ac_Header=\$ac_header_preproc"
43797 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43798 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43801 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43802 cat >>confdefs.h <<_ACEOF
43803 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43810 echo "$as_me:$LINENO: checking for db" >&5
43811 echo $ECHO_N "checking for db... $ECHO_C" >&6
43812 if test "${ol_cv_gdbm+set}" = set; then
43813 echo $ECHO_N "(cached) $ECHO_C" >&6
43816 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
43823 echo "$as_me:$LINENO: result: $ol_cv_gdbm" >&5
43824 echo "${ECHO_T}$ol_cv_gdbm" >&6
43825 if test $ol_cv_gdbm = yes ; then
43827 cat >>confdefs.h <<\_ACEOF
43828 #define HAVE_GDBM 1
43834 if test $ol_cv_gdbm = yes ; then
43836 ol_with_ldbm_api=gdbm
43838 if test $ol_cv_lib_gdbm != yes ; then
43839 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
43844 if test $ol_with_ldbm_api = ndbm ; then
43845 echo "$as_me:$LINENO: checking for NDBM library" >&5
43846 echo $ECHO_N "checking for NDBM library... $ECHO_C" >&6
43847 if test "${ol_cv_lib_ndbm+set}" = set; then
43848 echo $ECHO_N "(cached) $ECHO_C" >&6
43851 echo "$as_me:$LINENO: checking for dbm_open" >&5
43852 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
43853 if test "${ac_cv_func_dbm_open+set}" = set; then
43854 echo $ECHO_N "(cached) $ECHO_C" >&6
43856 cat >conftest.$ac_ext <<_ACEOF
43859 cat confdefs.h >>conftest.$ac_ext
43860 cat >>conftest.$ac_ext <<_ACEOF
43861 /* end confdefs.h. */
43862 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
43863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43864 #define dbm_open innocuous_dbm_open
43866 /* System header to define __stub macros and hopefully few prototypes,
43867 which can conflict with char dbm_open (); below.
43868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43869 <limits.h> exists even on freestanding compilers. */
43872 # include <limits.h>
43874 # include <assert.h>
43879 /* Override any gcc2 internal prototype to avoid an error. */
43884 /* We use char because int might match the return type of a gcc2
43885 builtin and then its argument prototype would still apply. */
43887 /* The GNU C library defines this for functions which it implements
43888 to always fail with ENOSYS. Some functions are actually named
43889 something starting with __ and the normal name is an alias. */
43890 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
43893 char (*f) () = dbm_open;
43902 return f != dbm_open;
43907 rm -f conftest.$ac_objext conftest$ac_exeext
43908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43909 (eval $ac_link) 2>conftest.er1
43911 grep -v '^ *+' conftest.er1 >conftest.err
43913 cat conftest.err >&5
43914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43915 (exit $ac_status); } &&
43916 { ac_try='test -z "$ac_c_werror_flag"
43917 || test ! -s conftest.err'
43918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43919 (eval $ac_try) 2>&5
43921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43922 (exit $ac_status); }; } &&
43923 { ac_try='test -s conftest$ac_exeext'
43924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43925 (eval $ac_try) 2>&5
43927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43928 (exit $ac_status); }; }; then
43929 ac_cv_func_dbm_open=yes
43931 echo "$as_me: failed program was:" >&5
43932 sed 's/^/| /' conftest.$ac_ext >&5
43934 ac_cv_func_dbm_open=no
43936 rm -f conftest.err conftest.$ac_objext \
43937 conftest$ac_exeext conftest.$ac_ext
43939 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
43940 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
43941 if test $ac_cv_func_dbm_open = yes; then
43945 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
43946 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
43947 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
43948 echo $ECHO_N "(cached) $ECHO_C" >&6
43950 ac_check_lib_save_LIBS=$LIBS
43951 LIBS="-lndbm $LIBS"
43952 cat >conftest.$ac_ext <<_ACEOF
43955 cat confdefs.h >>conftest.$ac_ext
43956 cat >>conftest.$ac_ext <<_ACEOF
43957 /* end confdefs.h. */
43959 /* Override any gcc2 internal prototype to avoid an error. */
43963 /* We use char because int might match the return type of a gcc2
43964 builtin and then its argument prototype would still apply. */
43974 rm -f conftest.$ac_objext conftest$ac_exeext
43975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43976 (eval $ac_link) 2>conftest.er1
43978 grep -v '^ *+' conftest.er1 >conftest.err
43980 cat conftest.err >&5
43981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43982 (exit $ac_status); } &&
43983 { ac_try='test -z "$ac_c_werror_flag"
43984 || test ! -s conftest.err'
43985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43986 (eval $ac_try) 2>&5
43988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43989 (exit $ac_status); }; } &&
43990 { ac_try='test -s conftest$ac_exeext'
43991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43992 (eval $ac_try) 2>&5
43994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43995 (exit $ac_status); }; }; then
43996 ac_cv_lib_ndbm_dbm_open=yes
43998 echo "$as_me: failed program was:" >&5
43999 sed 's/^/| /' conftest.$ac_ext >&5
44001 ac_cv_lib_ndbm_dbm_open=no
44003 rm -f conftest.err conftest.$ac_objext \
44004 conftest$ac_exeext conftest.$ac_ext
44005 LIBS=$ac_check_lib_save_LIBS
44007 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
44008 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
44009 if test $ac_cv_lib_ndbm_dbm_open = yes; then
44010 ol_cv_lib_ndbm=-lndbm
44013 echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
44014 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
44015 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
44016 echo $ECHO_N "(cached) $ECHO_C" >&6
44018 ac_check_lib_save_LIBS=$LIBS
44020 cat >conftest.$ac_ext <<_ACEOF
44023 cat confdefs.h >>conftest.$ac_ext
44024 cat >>conftest.$ac_ext <<_ACEOF
44025 /* end confdefs.h. */
44027 /* Override any gcc2 internal prototype to avoid an error. */
44031 /* We use char because int might match the return type of a gcc2
44032 builtin and then its argument prototype would still apply. */
44042 rm -f conftest.$ac_objext conftest$ac_exeext
44043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44044 (eval $ac_link) 2>conftest.er1
44046 grep -v '^ *+' conftest.er1 >conftest.err
44048 cat conftest.err >&5
44049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44050 (exit $ac_status); } &&
44051 { ac_try='test -z "$ac_c_werror_flag"
44052 || test ! -s conftest.err'
44053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44054 (eval $ac_try) 2>&5
44056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44057 (exit $ac_status); }; } &&
44058 { ac_try='test -s conftest$ac_exeext'
44059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44060 (eval $ac_try) 2>&5
44062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44063 (exit $ac_status); }; }; then
44064 ac_cv_lib_dbm_dbm_open=yes
44066 echo "$as_me: failed program was:" >&5
44067 sed 's/^/| /' conftest.$ac_ext >&5
44069 ac_cv_lib_dbm_dbm_open=no
44071 rm -f conftest.err conftest.$ac_objext \
44072 conftest$ac_exeext conftest.$ac_ext
44073 LIBS=$ac_check_lib_save_LIBS
44075 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
44076 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
44077 if test $ac_cv_lib_dbm_dbm_open = yes; then
44078 ol_cv_lib_ndbm=-ldbm
44091 echo "$as_me:$LINENO: result: $ol_cv_lib_ndbm" >&5
44092 echo "${ECHO_T}$ol_cv_lib_ndbm" >&6
44096 for ac_header in ndbm.h
44098 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44099 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44100 echo "$as_me:$LINENO: checking for $ac_header" >&5
44101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44103 echo $ECHO_N "(cached) $ECHO_C" >&6
44105 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44106 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44108 # Is the header compilable?
44109 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44110 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44111 cat >conftest.$ac_ext <<_ACEOF
44114 cat confdefs.h >>conftest.$ac_ext
44115 cat >>conftest.$ac_ext <<_ACEOF
44116 /* end confdefs.h. */
44117 $ac_includes_default
44118 #include <$ac_header>
44120 rm -f conftest.$ac_objext
44121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44122 (eval $ac_compile) 2>conftest.er1
44124 grep -v '^ *+' conftest.er1 >conftest.err
44126 cat conftest.err >&5
44127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44128 (exit $ac_status); } &&
44129 { ac_try='test -z "$ac_c_werror_flag"
44130 || test ! -s conftest.err'
44131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44132 (eval $ac_try) 2>&5
44134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44135 (exit $ac_status); }; } &&
44136 { ac_try='test -s conftest.$ac_objext'
44137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44138 (eval $ac_try) 2>&5
44140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44141 (exit $ac_status); }; }; then
44142 ac_header_compiler=yes
44144 echo "$as_me: failed program was:" >&5
44145 sed 's/^/| /' conftest.$ac_ext >&5
44147 ac_header_compiler=no
44149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44150 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44151 echo "${ECHO_T}$ac_header_compiler" >&6
44153 # Is the header present?
44154 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44155 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44156 cat >conftest.$ac_ext <<_ACEOF
44159 cat confdefs.h >>conftest.$ac_ext
44160 cat >>conftest.$ac_ext <<_ACEOF
44161 /* end confdefs.h. */
44162 #include <$ac_header>
44164 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44165 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44167 grep -v '^ *+' conftest.er1 >conftest.err
44169 cat conftest.err >&5
44170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44171 (exit $ac_status); } >/dev/null; then
44172 if test -s conftest.err; then
44173 ac_cpp_err=$ac_c_preproc_warn_flag
44174 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44181 if test -z "$ac_cpp_err"; then
44182 ac_header_preproc=yes
44184 echo "$as_me: failed program was:" >&5
44185 sed 's/^/| /' conftest.$ac_ext >&5
44187 ac_header_preproc=no
44189 rm -f conftest.err conftest.$ac_ext
44190 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44191 echo "${ECHO_T}$ac_header_preproc" >&6
44193 # So? What about this header?
44194 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44196 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44197 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44199 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44200 ac_header_preproc=yes
44203 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44204 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44205 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44206 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44207 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44208 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44209 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44210 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44211 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44212 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44213 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44214 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44217 ## ------------------------------------------ ##
44218 ## Report this to the AC_PACKAGE_NAME lists. ##
44219 ## ------------------------------------------ ##
44222 sed "s/^/$as_me: WARNING: /" >&2
44225 echo "$as_me:$LINENO: checking for $ac_header" >&5
44226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44227 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44228 echo $ECHO_N "(cached) $ECHO_C" >&6
44230 eval "$as_ac_Header=\$ac_header_preproc"
44232 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44233 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44236 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44237 cat >>confdefs.h <<_ACEOF
44238 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44245 echo "$as_me:$LINENO: checking for db" >&5
44246 echo $ECHO_N "checking for db... $ECHO_C" >&6
44247 if test "${ol_cv_ndbm+set}" = set; then
44248 echo $ECHO_N "(cached) $ECHO_C" >&6
44251 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
44258 echo "$as_me:$LINENO: result: $ol_cv_ndbm" >&5
44259 echo "${ECHO_T}$ol_cv_ndbm" >&6
44260 if test $ol_cv_ndbm = yes ; then
44262 cat >>confdefs.h <<\_ACEOF
44263 #define HAVE_NDBM 1
44269 if test $ol_cv_ndbm = yes ; then
44271 ol_with_ldbm_api=ndbm
44273 if test $ol_cv_lib_ndbm != yes ; then
44274 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
44279 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
44280 { { echo "$as_me:$LINENO: error: could not find suitable LDBM backend" >&5
44281 echo "$as_me: error: could not find suitable LDBM backend" >&2;}
44282 { (exit 1); exit 1; }; }
44285 if test $ol_enable_bdb = yes -o \
44286 $ol_enable_hdb = yes -o \
44287 $ol_enable_ldbm = yes ; then
44288 SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
44292 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
44293 BUILD_LIBS_DYNAMIC=shared
44295 cat >>confdefs.h <<\_ACEOF
44296 #define LDAP_LIBS_DYNAMIC 1
44301 BUILD_LIBS_DYNAMIC=static
44305 if test $ol_enable_wrappers != no ; then
44307 for ac_header in tcpd.h
44309 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44311 echo "$as_me:$LINENO: checking for $ac_header" >&5
44312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44314 echo $ECHO_N "(cached) $ECHO_C" >&6
44316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44317 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44319 # Is the header compilable?
44320 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44321 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44322 cat >conftest.$ac_ext <<_ACEOF
44325 cat confdefs.h >>conftest.$ac_ext
44326 cat >>conftest.$ac_ext <<_ACEOF
44327 /* end confdefs.h. */
44328 $ac_includes_default
44329 #include <$ac_header>
44331 rm -f conftest.$ac_objext
44332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44333 (eval $ac_compile) 2>conftest.er1
44335 grep -v '^ *+' conftest.er1 >conftest.err
44337 cat conftest.err >&5
44338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44339 (exit $ac_status); } &&
44340 { ac_try='test -z "$ac_c_werror_flag"
44341 || test ! -s conftest.err'
44342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44343 (eval $ac_try) 2>&5
44345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44346 (exit $ac_status); }; } &&
44347 { ac_try='test -s conftest.$ac_objext'
44348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44349 (eval $ac_try) 2>&5
44351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44352 (exit $ac_status); }; }; then
44353 ac_header_compiler=yes
44355 echo "$as_me: failed program was:" >&5
44356 sed 's/^/| /' conftest.$ac_ext >&5
44358 ac_header_compiler=no
44360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44361 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44362 echo "${ECHO_T}$ac_header_compiler" >&6
44364 # Is the header present?
44365 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44366 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44367 cat >conftest.$ac_ext <<_ACEOF
44370 cat confdefs.h >>conftest.$ac_ext
44371 cat >>conftest.$ac_ext <<_ACEOF
44372 /* end confdefs.h. */
44373 #include <$ac_header>
44375 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44376 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44378 grep -v '^ *+' conftest.er1 >conftest.err
44380 cat conftest.err >&5
44381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44382 (exit $ac_status); } >/dev/null; then
44383 if test -s conftest.err; then
44384 ac_cpp_err=$ac_c_preproc_warn_flag
44385 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44392 if test -z "$ac_cpp_err"; then
44393 ac_header_preproc=yes
44395 echo "$as_me: failed program was:" >&5
44396 sed 's/^/| /' conftest.$ac_ext >&5
44398 ac_header_preproc=no
44400 rm -f conftest.err conftest.$ac_ext
44401 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44402 echo "${ECHO_T}$ac_header_preproc" >&6
44404 # So? What about this header?
44405 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44407 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44408 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44409 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44410 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44411 ac_header_preproc=yes
44414 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44415 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44416 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44417 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44418 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44419 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44420 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44421 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44423 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44424 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44425 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44428 ## ------------------------------------------ ##
44429 ## Report this to the AC_PACKAGE_NAME lists. ##
44430 ## ------------------------------------------ ##
44433 sed "s/^/$as_me: WARNING: /" >&2
44436 echo "$as_me:$LINENO: checking for $ac_header" >&5
44437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44439 echo $ECHO_N "(cached) $ECHO_C" >&6
44441 eval "$as_ac_Header=\$ac_header_preproc"
44443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44444 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44447 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44448 cat >>confdefs.h <<_ACEOF
44449 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44452 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
44453 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
44455 LIBS="$LIBS -lwrap"
44456 cat >conftest.$ac_ext <<_ACEOF
44459 cat confdefs.h >>conftest.$ac_ext
44460 cat >>conftest.$ac_ext <<_ACEOF
44461 /* end confdefs.h. */
44464 int allow_severity = 0;
44465 int deny_severity = 0;
44467 struct request_info *req;
44479 rm -f conftest.$ac_objext conftest$ac_exeext
44480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44481 (eval $ac_link) 2>conftest.er1
44483 grep -v '^ *+' conftest.er1 >conftest.err
44485 cat conftest.err >&5
44486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44487 (exit $ac_status); } &&
44488 { ac_try='test -z "$ac_c_werror_flag"
44489 || test ! -s conftest.err'
44490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44491 (eval $ac_try) 2>&5
44493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44494 (exit $ac_status); }; } &&
44495 { ac_try='test -s conftest$ac_exeext'
44496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44497 (eval $ac_try) 2>&5
44499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44500 (exit $ac_status); }; }; then
44501 echo "$as_me:$LINENO: result: -lwrap" >&5
44502 echo "${ECHO_T}-lwrap" >&6
44506 echo "$as_me: failed program was:" >&5
44507 sed 's/^/| /' conftest.$ac_ext >&5
44511 cat >conftest.$ac_ext <<_ACEOF
44514 cat confdefs.h >>conftest.$ac_ext
44515 cat >>conftest.$ac_ext <<_ACEOF
44516 /* end confdefs.h. */
44519 int allow_severity = 0;
44520 int deny_severity = 0;
44522 struct request_info *req;
44534 rm -f conftest.$ac_objext conftest$ac_exeext
44535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44536 (eval $ac_link) 2>conftest.er1
44538 grep -v '^ *+' conftest.er1 >conftest.err
44540 cat conftest.err >&5
44541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44542 (exit $ac_status); } &&
44543 { ac_try='test -z "$ac_c_werror_flag"
44544 || test ! -s conftest.err'
44545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44546 (eval $ac_try) 2>&5
44548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44549 (exit $ac_status); }; } &&
44550 { ac_try='test -s conftest$ac_exeext'
44551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44552 (eval $ac_try) 2>&5
44554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44555 (exit $ac_status); }; }; then
44556 echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
44557 echo "${ECHO_T}-lwrap -lnsl" >&6
44559 LIBS="$save_LIBS -lnsl"
44561 echo "$as_me: failed program was:" >&5
44562 sed 's/^/| /' conftest.$ac_ext >&5
44565 echo "$as_me:$LINENO: result: no" >&5
44566 echo "${ECHO_T}no" >&6
44570 rm -f conftest.err conftest.$ac_objext \
44571 conftest$ac_exeext conftest.$ac_ext
44573 rm -f conftest.err conftest.$ac_objext \
44574 conftest$ac_exeext conftest.$ac_ext
44582 if test $have_wrappers = yes ; then
44584 cat >>confdefs.h <<\_ACEOF
44585 #define HAVE_TCPD 1
44589 elif test $ol_enable_wrappers = yes ; then
44590 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
44591 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
44592 { (exit 1); exit 1; }; }
44594 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
44595 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
44600 if test $ol_enable_syslog != no ; then
44601 echo "$as_me:$LINENO: checking for openlog" >&5
44602 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
44603 if test "${ac_cv_func_openlog+set}" = set; then
44604 echo $ECHO_N "(cached) $ECHO_C" >&6
44606 cat >conftest.$ac_ext <<_ACEOF
44609 cat confdefs.h >>conftest.$ac_ext
44610 cat >>conftest.$ac_ext <<_ACEOF
44611 /* end confdefs.h. */
44612 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
44613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44614 #define openlog innocuous_openlog
44616 /* System header to define __stub macros and hopefully few prototypes,
44617 which can conflict with char openlog (); below.
44618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44619 <limits.h> exists even on freestanding compilers. */
44622 # include <limits.h>
44624 # include <assert.h>
44629 /* Override any gcc2 internal prototype to avoid an error. */
44634 /* We use char because int might match the return type of a gcc2
44635 builtin and then its argument prototype would still apply. */
44637 /* The GNU C library defines this for functions which it implements
44638 to always fail with ENOSYS. Some functions are actually named
44639 something starting with __ and the normal name is an alias. */
44640 #if defined (__stub_openlog) || defined (__stub___openlog)
44643 char (*f) () = openlog;
44652 return f != openlog;
44657 rm -f conftest.$ac_objext conftest$ac_exeext
44658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44659 (eval $ac_link) 2>conftest.er1
44661 grep -v '^ *+' conftest.er1 >conftest.err
44663 cat conftest.err >&5
44664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44665 (exit $ac_status); } &&
44666 { ac_try='test -z "$ac_c_werror_flag"
44667 || test ! -s conftest.err'
44668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44669 (eval $ac_try) 2>&5
44671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44672 (exit $ac_status); }; } &&
44673 { ac_try='test -s conftest$ac_exeext'
44674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44675 (eval $ac_try) 2>&5
44677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44678 (exit $ac_status); }; }; then
44679 ac_cv_func_openlog=yes
44681 echo "$as_me: failed program was:" >&5
44682 sed 's/^/| /' conftest.$ac_ext >&5
44684 ac_cv_func_openlog=no
44686 rm -f conftest.err conftest.$ac_objext \
44687 conftest$ac_exeext conftest.$ac_ext
44689 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
44690 echo "${ECHO_T}$ac_cv_func_openlog" >&6
44692 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
44693 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
44694 echo "$as_me: error: could not find syslog" >&2;}
44695 { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
44697 ol_enable_syslog=$ac_cv_func_openlog
44702 if test $ol_enable_sql != no ; then
44705 for ac_header in sql.h sqlext.h
44707 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44708 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44709 echo "$as_me:$LINENO: checking for $ac_header" >&5
44710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44711 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44712 echo $ECHO_N "(cached) $ECHO_C" >&6
44714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44715 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44717 # Is the header compilable?
44718 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44719 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44720 cat >conftest.$ac_ext <<_ACEOF
44723 cat confdefs.h >>conftest.$ac_ext
44724 cat >>conftest.$ac_ext <<_ACEOF
44725 /* end confdefs.h. */
44726 $ac_includes_default
44727 #include <$ac_header>
44729 rm -f conftest.$ac_objext
44730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44731 (eval $ac_compile) 2>conftest.er1
44733 grep -v '^ *+' conftest.er1 >conftest.err
44735 cat conftest.err >&5
44736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44737 (exit $ac_status); } &&
44738 { ac_try='test -z "$ac_c_werror_flag"
44739 || test ! -s conftest.err'
44740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44741 (eval $ac_try) 2>&5
44743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44744 (exit $ac_status); }; } &&
44745 { ac_try='test -s conftest.$ac_objext'
44746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44747 (eval $ac_try) 2>&5
44749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44750 (exit $ac_status); }; }; then
44751 ac_header_compiler=yes
44753 echo "$as_me: failed program was:" >&5
44754 sed 's/^/| /' conftest.$ac_ext >&5
44756 ac_header_compiler=no
44758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44759 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44760 echo "${ECHO_T}$ac_header_compiler" >&6
44762 # Is the header present?
44763 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44764 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44765 cat >conftest.$ac_ext <<_ACEOF
44768 cat confdefs.h >>conftest.$ac_ext
44769 cat >>conftest.$ac_ext <<_ACEOF
44770 /* end confdefs.h. */
44771 #include <$ac_header>
44773 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44774 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44776 grep -v '^ *+' conftest.er1 >conftest.err
44778 cat conftest.err >&5
44779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44780 (exit $ac_status); } >/dev/null; then
44781 if test -s conftest.err; then
44782 ac_cpp_err=$ac_c_preproc_warn_flag
44783 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44790 if test -z "$ac_cpp_err"; then
44791 ac_header_preproc=yes
44793 echo "$as_me: failed program was:" >&5
44794 sed 's/^/| /' conftest.$ac_ext >&5
44796 ac_header_preproc=no
44798 rm -f conftest.err conftest.$ac_ext
44799 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44800 echo "${ECHO_T}$ac_header_preproc" >&6
44802 # So? What about this header?
44803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44805 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44806 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44808 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44809 ac_header_preproc=yes
44812 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44813 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44814 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44815 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44816 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44817 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44818 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44819 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44821 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44822 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44823 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44826 ## ------------------------------------------ ##
44827 ## Report this to the AC_PACKAGE_NAME lists. ##
44828 ## ------------------------------------------ ##
44831 sed "s/^/$as_me: WARNING: /" >&2
44834 echo "$as_me:$LINENO: checking for $ac_header" >&5
44835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44836 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44837 echo $ECHO_N "(cached) $ECHO_C" >&6
44839 eval "$as_ac_Header=\$ac_header_preproc"
44841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44842 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44845 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44846 cat >>confdefs.h <<_ACEOF
44847 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44852 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
44853 echo "$as_me: error: could not locate SQL headers" >&2;}
44854 { (exit 1); exit 1; }; }
44862 LIBS="$LTHREAD_LIBS"
44864 echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
44865 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
44866 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
44867 echo $ECHO_N "(cached) $ECHO_C" >&6
44869 ac_check_lib_save_LIBS=$LIBS
44870 LIBS="-liodbc $LIBS"
44871 cat >conftest.$ac_ext <<_ACEOF
44874 cat confdefs.h >>conftest.$ac_ext
44875 cat >>conftest.$ac_ext <<_ACEOF
44876 /* end confdefs.h. */
44878 /* Override any gcc2 internal prototype to avoid an error. */
44882 /* We use char because int might match the return type of a gcc2
44883 builtin and then its argument prototype would still apply. */
44884 char SQLDriverConnect ();
44888 SQLDriverConnect ();
44893 rm -f conftest.$ac_objext conftest$ac_exeext
44894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44895 (eval $ac_link) 2>conftest.er1
44897 grep -v '^ *+' conftest.er1 >conftest.err
44899 cat conftest.err >&5
44900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44901 (exit $ac_status); } &&
44902 { ac_try='test -z "$ac_c_werror_flag"
44903 || test ! -s conftest.err'
44904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44905 (eval $ac_try) 2>&5
44907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44908 (exit $ac_status); }; } &&
44909 { ac_try='test -s conftest$ac_exeext'
44910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44911 (eval $ac_try) 2>&5
44913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44914 (exit $ac_status); }; }; then
44915 ac_cv_lib_iodbc_SQLDriverConnect=yes
44917 echo "$as_me: failed program was:" >&5
44918 sed 's/^/| /' conftest.$ac_ext >&5
44920 ac_cv_lib_iodbc_SQLDriverConnect=no
44922 rm -f conftest.err conftest.$ac_objext \
44923 conftest$ac_exeext conftest.$ac_ext
44924 LIBS=$ac_check_lib_save_LIBS
44926 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
44927 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
44928 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
44934 if test $have_iodbc = yes ; then
44935 ol_link_sql="-liodbc"
44937 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
44938 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
44939 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
44940 echo $ECHO_N "(cached) $ECHO_C" >&6
44942 ac_check_lib_save_LIBS=$LIBS
44943 LIBS="-lodbc $LIBS"
44944 cat >conftest.$ac_ext <<_ACEOF
44947 cat confdefs.h >>conftest.$ac_ext
44948 cat >>conftest.$ac_ext <<_ACEOF
44949 /* end confdefs.h. */
44951 /* Override any gcc2 internal prototype to avoid an error. */
44955 /* We use char because int might match the return type of a gcc2
44956 builtin and then its argument prototype would still apply. */
44957 char SQLDriverConnect ();
44961 SQLDriverConnect ();
44966 rm -f conftest.$ac_objext conftest$ac_exeext
44967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44968 (eval $ac_link) 2>conftest.er1
44970 grep -v '^ *+' conftest.er1 >conftest.err
44972 cat conftest.err >&5
44973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44974 (exit $ac_status); } &&
44975 { ac_try='test -z "$ac_c_werror_flag"
44976 || test ! -s conftest.err'
44977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44978 (eval $ac_try) 2>&5
44980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44981 (exit $ac_status); }; } &&
44982 { ac_try='test -s conftest$ac_exeext'
44983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44984 (eval $ac_try) 2>&5
44986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44987 (exit $ac_status); }; }; then
44988 ac_cv_lib_odbc_SQLDriverConnect=yes
44990 echo "$as_me: failed program was:" >&5
44991 sed 's/^/| /' conftest.$ac_ext >&5
44993 ac_cv_lib_odbc_SQLDriverConnect=no
44995 rm -f conftest.err conftest.$ac_objext \
44996 conftest$ac_exeext conftest.$ac_ext
44997 LIBS=$ac_check_lib_save_LIBS
44999 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
45000 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
45001 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
45007 if test $have_odbc = yes ; then
45008 ol_link_sql="-lodbc"
45014 if test $ol_link_sql != no ; then
45015 SLAPD_SQL_LIBS="$ol_link_sql"
45017 elif test $ol_enable_sql != auto ; then
45018 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
45019 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
45020 { (exit 1); exit 1; }; }
45027 if test $ol_with_cyrus_sasl != no ; then
45030 for ac_header in sasl/sasl.h sasl.h
45032 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45034 echo "$as_me:$LINENO: checking for $ac_header" >&5
45035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45036 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45037 echo $ECHO_N "(cached) $ECHO_C" >&6
45039 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45040 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45042 # Is the header compilable?
45043 echo "$as_me:$LINENO: checking $ac_header usability" >&5
45044 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
45045 cat >conftest.$ac_ext <<_ACEOF
45048 cat confdefs.h >>conftest.$ac_ext
45049 cat >>conftest.$ac_ext <<_ACEOF
45050 /* end confdefs.h. */
45051 $ac_includes_default
45052 #include <$ac_header>
45054 rm -f conftest.$ac_objext
45055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45056 (eval $ac_compile) 2>conftest.er1
45058 grep -v '^ *+' conftest.er1 >conftest.err
45060 cat conftest.err >&5
45061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45062 (exit $ac_status); } &&
45063 { ac_try='test -z "$ac_c_werror_flag"
45064 || test ! -s conftest.err'
45065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45066 (eval $ac_try) 2>&5
45068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45069 (exit $ac_status); }; } &&
45070 { ac_try='test -s conftest.$ac_objext'
45071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45072 (eval $ac_try) 2>&5
45074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45075 (exit $ac_status); }; }; then
45076 ac_header_compiler=yes
45078 echo "$as_me: failed program was:" >&5
45079 sed 's/^/| /' conftest.$ac_ext >&5
45081 ac_header_compiler=no
45083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45084 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45085 echo "${ECHO_T}$ac_header_compiler" >&6
45087 # Is the header present?
45088 echo "$as_me:$LINENO: checking $ac_header presence" >&5
45089 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45090 cat >conftest.$ac_ext <<_ACEOF
45093 cat confdefs.h >>conftest.$ac_ext
45094 cat >>conftest.$ac_ext <<_ACEOF
45095 /* end confdefs.h. */
45096 #include <$ac_header>
45098 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45099 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45101 grep -v '^ *+' conftest.er1 >conftest.err
45103 cat conftest.err >&5
45104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45105 (exit $ac_status); } >/dev/null; then
45106 if test -s conftest.err; then
45107 ac_cpp_err=$ac_c_preproc_warn_flag
45108 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
45115 if test -z "$ac_cpp_err"; then
45116 ac_header_preproc=yes
45118 echo "$as_me: failed program was:" >&5
45119 sed 's/^/| /' conftest.$ac_ext >&5
45121 ac_header_preproc=no
45123 rm -f conftest.err conftest.$ac_ext
45124 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45125 echo "${ECHO_T}$ac_header_preproc" >&6
45127 # So? What about this header?
45128 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45130 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45131 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45133 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45134 ac_header_preproc=yes
45137 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45138 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45139 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
45140 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
45141 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45142 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45143 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
45144 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
45145 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45146 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45147 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45148 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45151 ## ------------------------------------------ ##
45152 ## Report this to the AC_PACKAGE_NAME lists. ##
45153 ## ------------------------------------------ ##
45156 sed "s/^/$as_me: WARNING: /" >&2
45159 echo "$as_me:$LINENO: checking for $ac_header" >&5
45160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45161 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45162 echo $ECHO_N "(cached) $ECHO_C" >&6
45164 eval "$as_ac_Header=\$ac_header_preproc"
45166 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45167 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45170 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45171 cat >>confdefs.h <<_ACEOF
45172 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45180 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
45181 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
45182 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
45183 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
45184 echo $ECHO_N "(cached) $ECHO_C" >&6
45186 ac_check_lib_save_LIBS=$LIBS
45187 LIBS="-lsasl2 $LIBS"
45188 cat >conftest.$ac_ext <<_ACEOF
45191 cat confdefs.h >>conftest.$ac_ext
45192 cat >>conftest.$ac_ext <<_ACEOF
45193 /* end confdefs.h. */
45195 /* Override any gcc2 internal prototype to avoid an error. */
45199 /* We use char because int might match the return type of a gcc2
45200 builtin and then its argument prototype would still apply. */
45201 char sasl_client_init ();
45205 sasl_client_init ();
45210 rm -f conftest.$ac_objext conftest$ac_exeext
45211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45212 (eval $ac_link) 2>conftest.er1
45214 grep -v '^ *+' conftest.er1 >conftest.err
45216 cat conftest.err >&5
45217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45218 (exit $ac_status); } &&
45219 { ac_try='test -z "$ac_c_werror_flag"
45220 || test ! -s conftest.err'
45221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45222 (eval $ac_try) 2>&5
45224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45225 (exit $ac_status); }; } &&
45226 { ac_try='test -s conftest$ac_exeext'
45227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45228 (eval $ac_try) 2>&5
45230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45231 (exit $ac_status); }; }; then
45232 ac_cv_lib_sasl2_sasl_client_init=yes
45234 echo "$as_me: failed program was:" >&5
45235 sed 's/^/| /' conftest.$ac_ext >&5
45237 ac_cv_lib_sasl2_sasl_client_init=no
45239 rm -f conftest.err conftest.$ac_objext \
45240 conftest$ac_exeext conftest.$ac_ext
45241 LIBS=$ac_check_lib_save_LIBS
45243 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
45244 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
45245 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
45246 ol_link_sasl="-lsasl2"
45248 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
45249 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
45250 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
45251 echo $ECHO_N "(cached) $ECHO_C" >&6
45253 ac_check_lib_save_LIBS=$LIBS
45254 LIBS="-lsasl $LIBS"
45255 cat >conftest.$ac_ext <<_ACEOF
45258 cat confdefs.h >>conftest.$ac_ext
45259 cat >>conftest.$ac_ext <<_ACEOF
45260 /* end confdefs.h. */
45262 /* Override any gcc2 internal prototype to avoid an error. */
45266 /* We use char because int might match the return type of a gcc2
45267 builtin and then its argument prototype would still apply. */
45268 char sasl_client_init ();
45272 sasl_client_init ();
45277 rm -f conftest.$ac_objext conftest$ac_exeext
45278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45279 (eval $ac_link) 2>conftest.er1
45281 grep -v '^ *+' conftest.er1 >conftest.err
45283 cat conftest.err >&5
45284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45285 (exit $ac_status); } &&
45286 { ac_try='test -z "$ac_c_werror_flag"
45287 || test ! -s conftest.err'
45288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45289 (eval $ac_try) 2>&5
45291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45292 (exit $ac_status); }; } &&
45293 { ac_try='test -s conftest$ac_exeext'
45294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45295 (eval $ac_try) 2>&5
45297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45298 (exit $ac_status); }; }; then
45299 ac_cv_lib_sasl_sasl_client_init=yes
45301 echo "$as_me: failed program was:" >&5
45302 sed 's/^/| /' conftest.$ac_ext >&5
45304 ac_cv_lib_sasl_sasl_client_init=no
45306 rm -f conftest.err conftest.$ac_objext \
45307 conftest$ac_exeext conftest.$ac_ext
45308 LIBS=$ac_check_lib_save_LIBS
45310 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
45311 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
45312 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
45313 ol_link_sasl="-lsasl"
45320 if test $ol_link_sasl = no ; then
45321 if test $ol_with_cyrus_sasl != auto ; then
45322 { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
45323 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
45324 { (exit 1); exit 1; }; }
45326 { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
45327 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
45328 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
45329 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
45330 if test $ol_link_tls = no ; then
45331 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
45332 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
45336 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
45337 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
45338 if test "${ol_cv_sasl_compat+set}" = set; then
45339 echo $ECHO_N "(cached) $ECHO_C" >&6
45342 cat >conftest.$ac_ext <<_ACEOF
45345 cat confdefs.h >>conftest.$ac_ext
45346 cat >>conftest.$ac_ext <<_ACEOF
45347 /* end confdefs.h. */
45349 #ifdef HAVE_SASL_SASL_H
45350 #include <sasl/sasl.h>
45355 /* Require 2.1.15+ */
45356 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
45357 char *__sasl_compat = "2.2+ or better okay (we guess)";
45358 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
45359 && SASL_VERSION_STEP >=15
45360 char *__sasl_compat = "2.1.15+ or better okay";
45364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45365 $EGREP "__sasl_compat" >/dev/null 2>&1; then
45366 ol_cv_sasl_compat=yes
45368 ol_cv_sasl_compat=no
45373 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
45374 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
45376 if test $ol_cv_sasl_compat = no ; then
45378 { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
45379 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
45380 { (exit 1); exit 1; }; }
45384 cat >>confdefs.h <<\_ACEOF
45385 #define HAVE_CYRUS_SASL 1
45388 SASL_LIBS="$ol_link_sasl"
45389 if test $ol_enable_spasswd != no ; then
45390 ol_link_spasswd=yes
45393 ac_save_LIBS="$LIBS"
45394 LIBS="$LIBS $ol_link_sasl"
45395 echo "$as_me:$LINENO: checking for sasl_version" >&5
45396 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
45397 if test "${ac_cv_func_sasl_version+set}" = set; then
45398 echo $ECHO_N "(cached) $ECHO_C" >&6
45400 cat >conftest.$ac_ext <<_ACEOF
45403 cat confdefs.h >>conftest.$ac_ext
45404 cat >>conftest.$ac_ext <<_ACEOF
45405 /* end confdefs.h. */
45406 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
45407 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45408 #define sasl_version innocuous_sasl_version
45410 /* System header to define __stub macros and hopefully few prototypes,
45411 which can conflict with char sasl_version (); below.
45412 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45413 <limits.h> exists even on freestanding compilers. */
45416 # include <limits.h>
45418 # include <assert.h>
45421 #undef sasl_version
45423 /* Override any gcc2 internal prototype to avoid an error. */
45428 /* We use char because int might match the return type of a gcc2
45429 builtin and then its argument prototype would still apply. */
45430 char sasl_version ();
45431 /* The GNU C library defines this for functions which it implements
45432 to always fail with ENOSYS. Some functions are actually named
45433 something starting with __ and the normal name is an alias. */
45434 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
45437 char (*f) () = sasl_version;
45446 return f != sasl_version;
45451 rm -f conftest.$ac_objext conftest$ac_exeext
45452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45453 (eval $ac_link) 2>conftest.er1
45455 grep -v '^ *+' conftest.er1 >conftest.err
45457 cat conftest.err >&5
45458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45459 (exit $ac_status); } &&
45460 { ac_try='test -z "$ac_c_werror_flag"
45461 || test ! -s conftest.err'
45462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45463 (eval $ac_try) 2>&5
45465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45466 (exit $ac_status); }; } &&
45467 { ac_try='test -s conftest$ac_exeext'
45468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45469 (eval $ac_try) 2>&5
45471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45472 (exit $ac_status); }; }; then
45473 ac_cv_func_sasl_version=yes
45475 echo "$as_me: failed program was:" >&5
45476 sed 's/^/| /' conftest.$ac_ext >&5
45478 ac_cv_func_sasl_version=no
45480 rm -f conftest.err conftest.$ac_objext \
45481 conftest$ac_exeext conftest.$ac_ext
45483 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
45484 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
45485 if test $ac_cv_func_sasl_version = yes; then
45487 cat >>confdefs.h <<\_ACEOF
45488 #define HAVE_SASL_VERSION 1
45493 LIBS="$ac_save_LIBS"
45499 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
45500 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
45501 if test $ol_link_tls = no ; then
45502 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
45503 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
45507 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
45509 if test -r /dev/urandom ; then
45510 dev="/dev/urandom";
45511 elif test -r /idev/urandom ; then
45512 dev="/idev/urandom";
45513 elif test -r /dev/srandom ; then
45514 dev="/dev/srandom";
45515 elif test -r /dev/random ; then
45517 elif test -r /idev/random ; then
45518 dev="/idev/random";
45521 if test $dev != no ; then
45523 cat >>confdefs.h <<_ACEOF
45524 #define URANDOM_DEVICE "$dev"
45531 if test $ol_with_fetch != no ; then
45533 LIBS="-lfetch -lcom_err $LIBS"
45534 echo "$as_me:$LINENO: checking fetch(3) library" >&5
45535 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
45536 if test "${ol_cv_lib_fetch+set}" = set; then
45537 echo $ECHO_N "(cached) $ECHO_C" >&6
45540 cat >conftest.$ac_ext <<_ACEOF
45543 cat confdefs.h >>conftest.$ac_ext
45544 cat >>conftest.$ac_ext <<_ACEOF
45545 /* end confdefs.h. */
45547 #include <sys/param.h>
45553 struct url *u = fetchParseURL("file:///");
45558 rm -f conftest.$ac_objext conftest$ac_exeext
45559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45560 (eval $ac_link) 2>conftest.er1
45562 grep -v '^ *+' conftest.er1 >conftest.err
45564 cat conftest.err >&5
45565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45566 (exit $ac_status); } &&
45567 { ac_try='test -z "$ac_c_werror_flag"
45568 || test ! -s conftest.err'
45569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45570 (eval $ac_try) 2>&5
45572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45573 (exit $ac_status); }; } &&
45574 { ac_try='test -s conftest$ac_exeext'
45575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45576 (eval $ac_try) 2>&5
45578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45579 (exit $ac_status); }; }; then
45580 ol_cv_lib_fetch=yes
45582 echo "$as_me: failed program was:" >&5
45583 sed 's/^/| /' conftest.$ac_ext >&5
45587 rm -f conftest.err conftest.$ac_objext \
45588 conftest$ac_exeext conftest.$ac_ext
45590 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
45591 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
45593 if test $ol_cv_lib_fetch != no ; then
45594 ol_link_fetch="-lfetch -lcom_err"
45596 cat >>confdefs.h <<\_ACEOF
45597 #define HAVE_FETCH 1
45603 if test $ol_cv_lib_fetch != no ; then
45604 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
45605 ol_link_fetch=freebsd
45607 elif test $ol_with_fetch != auto ; then
45608 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
45609 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
45610 { (exit 1); exit 1; }; }
45614 if test $ol_enable_crypt != no ; then
45616 LIBS="$TLS_LIBS $LIBS"
45618 echo "$as_me:$LINENO: checking for crypt" >&5
45619 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
45620 if test "${ac_cv_func_crypt+set}" = set; then
45621 echo $ECHO_N "(cached) $ECHO_C" >&6
45623 cat >conftest.$ac_ext <<_ACEOF
45626 cat confdefs.h >>conftest.$ac_ext
45627 cat >>conftest.$ac_ext <<_ACEOF
45628 /* end confdefs.h. */
45629 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
45630 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45631 #define crypt innocuous_crypt
45633 /* System header to define __stub macros and hopefully few prototypes,
45634 which can conflict with char crypt (); below.
45635 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45636 <limits.h> exists even on freestanding compilers. */
45639 # include <limits.h>
45641 # include <assert.h>
45646 /* Override any gcc2 internal prototype to avoid an error. */
45651 /* We use char because int might match the return type of a gcc2
45652 builtin and then its argument prototype would still apply. */
45654 /* The GNU C library defines this for functions which it implements
45655 to always fail with ENOSYS. Some functions are actually named
45656 something starting with __ and the normal name is an alias. */
45657 #if defined (__stub_crypt) || defined (__stub___crypt)
45660 char (*f) () = crypt;
45674 rm -f conftest.$ac_objext conftest$ac_exeext
45675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45676 (eval $ac_link) 2>conftest.er1
45678 grep -v '^ *+' conftest.er1 >conftest.err
45680 cat conftest.err >&5
45681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45682 (exit $ac_status); } &&
45683 { ac_try='test -z "$ac_c_werror_flag"
45684 || test ! -s conftest.err'
45685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45686 (eval $ac_try) 2>&5
45688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45689 (exit $ac_status); }; } &&
45690 { ac_try='test -s conftest$ac_exeext'
45691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45692 (eval $ac_try) 2>&5
45694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45695 (exit $ac_status); }; }; then
45696 ac_cv_func_crypt=yes
45698 echo "$as_me: failed program was:" >&5
45699 sed 's/^/| /' conftest.$ac_ext >&5
45701 ac_cv_func_crypt=no
45703 rm -f conftest.err conftest.$ac_objext \
45704 conftest$ac_exeext conftest.$ac_ext
45706 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
45707 echo "${ECHO_T}$ac_cv_func_crypt" >&6
45708 if test $ac_cv_func_crypt = yes; then
45713 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
45714 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
45715 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
45716 echo $ECHO_N "(cached) $ECHO_C" >&6
45718 ac_check_lib_save_LIBS=$LIBS
45719 LIBS="-lcrypt $LIBS"
45720 cat >conftest.$ac_ext <<_ACEOF
45723 cat confdefs.h >>conftest.$ac_ext
45724 cat >>conftest.$ac_ext <<_ACEOF
45725 /* end confdefs.h. */
45727 /* Override any gcc2 internal prototype to avoid an error. */
45731 /* We use char because int might match the return type of a gcc2
45732 builtin and then its argument prototype would still apply. */
45742 rm -f conftest.$ac_objext conftest$ac_exeext
45743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45744 (eval $ac_link) 2>conftest.er1
45746 grep -v '^ *+' conftest.er1 >conftest.err
45748 cat conftest.err >&5
45749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45750 (exit $ac_status); } &&
45751 { ac_try='test -z "$ac_c_werror_flag"
45752 || test ! -s conftest.err'
45753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45754 (eval $ac_try) 2>&5
45756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45757 (exit $ac_status); }; } &&
45758 { ac_try='test -s conftest$ac_exeext'
45759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45760 (eval $ac_try) 2>&5
45762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45763 (exit $ac_status); }; }; then
45764 ac_cv_lib_crypt_crypt=yes
45766 echo "$as_me: failed program was:" >&5
45767 sed 's/^/| /' conftest.$ac_ext >&5
45769 ac_cv_lib_crypt_crypt=no
45771 rm -f conftest.err conftest.$ac_objext \
45772 conftest$ac_exeext conftest.$ac_ext
45773 LIBS=$ac_check_lib_save_LIBS
45775 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
45776 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
45777 if test $ac_cv_lib_crypt_crypt = yes; then
45778 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
45789 if test $have_crypt = yes ; then
45791 cat >>confdefs.h <<\_ACEOF
45792 #define HAVE_CRYPT 1
45796 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
45797 echo "$as_me: WARNING: could not find crypt" >&2;}
45798 if test $ol_enable_crypt = yes ; then
45799 { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
45800 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
45801 { (exit 1); exit 1; }; }
45804 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
45805 echo "$as_me: WARNING: disabling crypt support" >&2;}
45810 if test $ol_enable_proctitle != no ; then
45811 echo "$as_me:$LINENO: checking for setproctitle" >&5
45812 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
45813 if test "${ac_cv_func_setproctitle+set}" = set; then
45814 echo $ECHO_N "(cached) $ECHO_C" >&6
45816 cat >conftest.$ac_ext <<_ACEOF
45819 cat confdefs.h >>conftest.$ac_ext
45820 cat >>conftest.$ac_ext <<_ACEOF
45821 /* end confdefs.h. */
45822 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
45823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45824 #define setproctitle innocuous_setproctitle
45826 /* System header to define __stub macros and hopefully few prototypes,
45827 which can conflict with char setproctitle (); below.
45828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45829 <limits.h> exists even on freestanding compilers. */
45832 # include <limits.h>
45834 # include <assert.h>
45837 #undef setproctitle
45839 /* Override any gcc2 internal prototype to avoid an error. */
45844 /* We use char because int might match the return type of a gcc2
45845 builtin and then its argument prototype would still apply. */
45846 char setproctitle ();
45847 /* The GNU C library defines this for functions which it implements
45848 to always fail with ENOSYS. Some functions are actually named
45849 something starting with __ and the normal name is an alias. */
45850 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
45853 char (*f) () = setproctitle;
45862 return f != setproctitle;
45867 rm -f conftest.$ac_objext conftest$ac_exeext
45868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45869 (eval $ac_link) 2>conftest.er1
45871 grep -v '^ *+' conftest.er1 >conftest.err
45873 cat conftest.err >&5
45874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45875 (exit $ac_status); } &&
45876 { ac_try='test -z "$ac_c_werror_flag"
45877 || test ! -s conftest.err'
45878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45879 (eval $ac_try) 2>&5
45881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45882 (exit $ac_status); }; } &&
45883 { ac_try='test -s conftest$ac_exeext'
45884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45885 (eval $ac_try) 2>&5
45887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45888 (exit $ac_status); }; }; then
45889 ac_cv_func_setproctitle=yes
45891 echo "$as_me: failed program was:" >&5
45892 sed 's/^/| /' conftest.$ac_ext >&5
45894 ac_cv_func_setproctitle=no
45896 rm -f conftest.err conftest.$ac_objext \
45897 conftest$ac_exeext conftest.$ac_ext
45899 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
45900 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
45901 if test $ac_cv_func_setproctitle = yes; then
45902 have_setproctitle=yes
45905 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
45906 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
45907 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
45908 echo $ECHO_N "(cached) $ECHO_C" >&6
45910 ac_check_lib_save_LIBS=$LIBS
45911 LIBS="-lutil $LIBS"
45912 cat >conftest.$ac_ext <<_ACEOF
45915 cat confdefs.h >>conftest.$ac_ext
45916 cat >>conftest.$ac_ext <<_ACEOF
45917 /* end confdefs.h. */
45919 /* Override any gcc2 internal prototype to avoid an error. */
45923 /* We use char because int might match the return type of a gcc2
45924 builtin and then its argument prototype would still apply. */
45925 char setproctitle ();
45934 rm -f conftest.$ac_objext conftest$ac_exeext
45935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45936 (eval $ac_link) 2>conftest.er1
45938 grep -v '^ *+' conftest.er1 >conftest.err
45940 cat conftest.err >&5
45941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45942 (exit $ac_status); } &&
45943 { ac_try='test -z "$ac_c_werror_flag"
45944 || test ! -s conftest.err'
45945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45946 (eval $ac_try) 2>&5
45948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45949 (exit $ac_status); }; } &&
45950 { ac_try='test -s conftest$ac_exeext'
45951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45952 (eval $ac_try) 2>&5
45954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45955 (exit $ac_status); }; }; then
45956 ac_cv_lib_util_setproctitle=yes
45958 echo "$as_me: failed program was:" >&5
45959 sed 's/^/| /' conftest.$ac_ext >&5
45961 ac_cv_lib_util_setproctitle=no
45963 rm -f conftest.err conftest.$ac_objext \
45964 conftest$ac_exeext conftest.$ac_ext
45965 LIBS=$ac_check_lib_save_LIBS
45967 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
45968 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
45969 if test $ac_cv_lib_util_setproctitle = yes; then
45970 have_setproctitle=yes
45971 LUTIL_LIBS="$LUTIL_LIBS -lutil"
45973 have_setproctitle=no
45975 "setproctitle.$ac_objext" | \
45976 *" setproctitle.$ac_objext" | \
45977 "setproctitle.$ac_objext "* | \
45978 *" setproctitle.$ac_objext "* ) ;;
45979 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
45982 LIBSRCS="$LIBSRCS setproctitle.c"
45988 if test $have_setproctitle = yes ; then
45990 cat >>confdefs.h <<\_ACEOF
45991 #define HAVE_SETPROCTITLE 1
45997 if test $ol_enable_slp != no ; then
45999 for ac_header in slp.h
46001 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46003 echo "$as_me:$LINENO: checking for $ac_header" >&5
46004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46005 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46006 echo $ECHO_N "(cached) $ECHO_C" >&6
46008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46009 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46011 # Is the header compilable?
46012 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46013 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46014 cat >conftest.$ac_ext <<_ACEOF
46017 cat confdefs.h >>conftest.$ac_ext
46018 cat >>conftest.$ac_ext <<_ACEOF
46019 /* end confdefs.h. */
46020 $ac_includes_default
46021 #include <$ac_header>
46023 rm -f conftest.$ac_objext
46024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46025 (eval $ac_compile) 2>conftest.er1
46027 grep -v '^ *+' conftest.er1 >conftest.err
46029 cat conftest.err >&5
46030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46031 (exit $ac_status); } &&
46032 { ac_try='test -z "$ac_c_werror_flag"
46033 || test ! -s conftest.err'
46034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46035 (eval $ac_try) 2>&5
46037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46038 (exit $ac_status); }; } &&
46039 { ac_try='test -s conftest.$ac_objext'
46040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46041 (eval $ac_try) 2>&5
46043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46044 (exit $ac_status); }; }; then
46045 ac_header_compiler=yes
46047 echo "$as_me: failed program was:" >&5
46048 sed 's/^/| /' conftest.$ac_ext >&5
46050 ac_header_compiler=no
46052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46053 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46054 echo "${ECHO_T}$ac_header_compiler" >&6
46056 # Is the header present?
46057 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46058 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46059 cat >conftest.$ac_ext <<_ACEOF
46062 cat confdefs.h >>conftest.$ac_ext
46063 cat >>conftest.$ac_ext <<_ACEOF
46064 /* end confdefs.h. */
46065 #include <$ac_header>
46067 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46068 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46070 grep -v '^ *+' conftest.er1 >conftest.err
46072 cat conftest.err >&5
46073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46074 (exit $ac_status); } >/dev/null; then
46075 if test -s conftest.err; then
46076 ac_cpp_err=$ac_c_preproc_warn_flag
46077 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46084 if test -z "$ac_cpp_err"; then
46085 ac_header_preproc=yes
46087 echo "$as_me: failed program was:" >&5
46088 sed 's/^/| /' conftest.$ac_ext >&5
46090 ac_header_preproc=no
46092 rm -f conftest.err conftest.$ac_ext
46093 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46094 echo "${ECHO_T}$ac_header_preproc" >&6
46096 # So? What about this header?
46097 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46099 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46100 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46102 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46103 ac_header_preproc=yes
46106 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46107 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46108 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46109 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46110 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46111 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46112 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
46113 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
46114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46115 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46116 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46117 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46120 ## ------------------------------------------ ##
46121 ## Report this to the AC_PACKAGE_NAME lists. ##
46122 ## ------------------------------------------ ##
46125 sed "s/^/$as_me: WARNING: /" >&2
46128 echo "$as_me:$LINENO: checking for $ac_header" >&5
46129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46131 echo $ECHO_N "(cached) $ECHO_C" >&6
46133 eval "$as_ac_Header=\$ac_header_preproc"
46135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46136 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46139 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46140 cat >>confdefs.h <<_ACEOF
46141 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46149 if test $ac_cv_header_slp_h = yes ; then
46150 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
46151 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
46152 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
46153 echo $ECHO_N "(cached) $ECHO_C" >&6
46155 ac_check_lib_save_LIBS=$LIBS
46157 cat >conftest.$ac_ext <<_ACEOF
46160 cat confdefs.h >>conftest.$ac_ext
46161 cat >>conftest.$ac_ext <<_ACEOF
46162 /* end confdefs.h. */
46164 /* Override any gcc2 internal prototype to avoid an error. */
46168 /* We use char because int might match the return type of a gcc2
46169 builtin and then its argument prototype would still apply. */
46179 rm -f conftest.$ac_objext conftest$ac_exeext
46180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46181 (eval $ac_link) 2>conftest.er1
46183 grep -v '^ *+' conftest.er1 >conftest.err
46185 cat conftest.err >&5
46186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46187 (exit $ac_status); } &&
46188 { ac_try='test -z "$ac_c_werror_flag"
46189 || test ! -s conftest.err'
46190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46191 (eval $ac_try) 2>&5
46193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46194 (exit $ac_status); }; } &&
46195 { ac_try='test -s conftest$ac_exeext'
46196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46197 (eval $ac_try) 2>&5
46199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46200 (exit $ac_status); }; }; then
46201 ac_cv_lib_slp_SLPOpen=yes
46203 echo "$as_me: failed program was:" >&5
46204 sed 's/^/| /' conftest.$ac_ext >&5
46206 ac_cv_lib_slp_SLPOpen=no
46208 rm -f conftest.err conftest.$ac_objext \
46209 conftest$ac_exeext conftest.$ac_ext
46210 LIBS=$ac_check_lib_save_LIBS
46212 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
46213 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
46214 if test $ac_cv_lib_slp_SLPOpen = yes; then
46220 if test $have_slp = yes ; then
46222 cat >>confdefs.h <<\_ACEOF
46226 SLAPD_SLP_LIBS=-lslp
46229 elif test $ol_enable_slp = yes ; then
46230 { { echo "$as_me:$LINENO: error: SLP not found" >&5
46231 echo "$as_me: error: SLP not found" >&2;}
46232 { (exit 1); exit 1; }; }
46236 if test "$ol_with_multiple_precision" != "no" ; then
46242 for ac_header in openssl/bn.h bn.h
46244 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46246 echo "$as_me:$LINENO: checking for $ac_header" >&5
46247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46249 echo $ECHO_N "(cached) $ECHO_C" >&6
46251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46252 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46254 # Is the header compilable?
46255 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46256 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46257 cat >conftest.$ac_ext <<_ACEOF
46260 cat confdefs.h >>conftest.$ac_ext
46261 cat >>conftest.$ac_ext <<_ACEOF
46262 /* end confdefs.h. */
46263 $ac_includes_default
46264 #include <$ac_header>
46266 rm -f conftest.$ac_objext
46267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46268 (eval $ac_compile) 2>conftest.er1
46270 grep -v '^ *+' conftest.er1 >conftest.err
46272 cat conftest.err >&5
46273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46274 (exit $ac_status); } &&
46275 { ac_try='test -z "$ac_c_werror_flag"
46276 || test ! -s conftest.err'
46277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46278 (eval $ac_try) 2>&5
46280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46281 (exit $ac_status); }; } &&
46282 { ac_try='test -s conftest.$ac_objext'
46283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46284 (eval $ac_try) 2>&5
46286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46287 (exit $ac_status); }; }; then
46288 ac_header_compiler=yes
46290 echo "$as_me: failed program was:" >&5
46291 sed 's/^/| /' conftest.$ac_ext >&5
46293 ac_header_compiler=no
46295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46296 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46297 echo "${ECHO_T}$ac_header_compiler" >&6
46299 # Is the header present?
46300 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46301 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46302 cat >conftest.$ac_ext <<_ACEOF
46305 cat confdefs.h >>conftest.$ac_ext
46306 cat >>conftest.$ac_ext <<_ACEOF
46307 /* end confdefs.h. */
46308 #include <$ac_header>
46310 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46311 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46313 grep -v '^ *+' conftest.er1 >conftest.err
46315 cat conftest.err >&5
46316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46317 (exit $ac_status); } >/dev/null; then
46318 if test -s conftest.err; then
46319 ac_cpp_err=$ac_c_preproc_warn_flag
46320 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46327 if test -z "$ac_cpp_err"; then
46328 ac_header_preproc=yes
46330 echo "$as_me: failed program was:" >&5
46331 sed 's/^/| /' conftest.$ac_ext >&5
46333 ac_header_preproc=no
46335 rm -f conftest.err conftest.$ac_ext
46336 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46337 echo "${ECHO_T}$ac_header_preproc" >&6
46339 # So? What about this header?
46340 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46342 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46343 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46345 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46346 ac_header_preproc=yes
46349 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46350 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46351 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46352 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46353 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46354 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46355 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
46356 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
46357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46358 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46359 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46360 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46363 ## ------------------------------------------ ##
46364 ## Report this to the AC_PACKAGE_NAME lists. ##
46365 ## ------------------------------------------ ##
46368 sed "s/^/$as_me: WARNING: /" >&2
46371 echo "$as_me:$LINENO: checking for $ac_header" >&5
46372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46374 echo $ECHO_N "(cached) $ECHO_C" >&6
46376 eval "$as_ac_Header=\$ac_header_preproc"
46378 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46379 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46383 cat >>confdefs.h <<_ACEOF
46384 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46393 for ac_header in openssl/crypto.h crypto.h
46395 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46397 echo "$as_me:$LINENO: checking for $ac_header" >&5
46398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46400 echo $ECHO_N "(cached) $ECHO_C" >&6
46402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46403 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46405 # Is the header compilable?
46406 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46407 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46408 cat >conftest.$ac_ext <<_ACEOF
46411 cat confdefs.h >>conftest.$ac_ext
46412 cat >>conftest.$ac_ext <<_ACEOF
46413 /* end confdefs.h. */
46414 $ac_includes_default
46415 #include <$ac_header>
46417 rm -f conftest.$ac_objext
46418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46419 (eval $ac_compile) 2>conftest.er1
46421 grep -v '^ *+' conftest.er1 >conftest.err
46423 cat conftest.err >&5
46424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46425 (exit $ac_status); } &&
46426 { ac_try='test -z "$ac_c_werror_flag"
46427 || test ! -s conftest.err'
46428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46429 (eval $ac_try) 2>&5
46431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46432 (exit $ac_status); }; } &&
46433 { ac_try='test -s conftest.$ac_objext'
46434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46435 (eval $ac_try) 2>&5
46437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46438 (exit $ac_status); }; }; then
46439 ac_header_compiler=yes
46441 echo "$as_me: failed program was:" >&5
46442 sed 's/^/| /' conftest.$ac_ext >&5
46444 ac_header_compiler=no
46446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46447 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46448 echo "${ECHO_T}$ac_header_compiler" >&6
46450 # Is the header present?
46451 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46452 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46453 cat >conftest.$ac_ext <<_ACEOF
46456 cat confdefs.h >>conftest.$ac_ext
46457 cat >>conftest.$ac_ext <<_ACEOF
46458 /* end confdefs.h. */
46459 #include <$ac_header>
46461 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46462 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46464 grep -v '^ *+' conftest.er1 >conftest.err
46466 cat conftest.err >&5
46467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46468 (exit $ac_status); } >/dev/null; then
46469 if test -s conftest.err; then
46470 ac_cpp_err=$ac_c_preproc_warn_flag
46471 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46478 if test -z "$ac_cpp_err"; then
46479 ac_header_preproc=yes
46481 echo "$as_me: failed program was:" >&5
46482 sed 's/^/| /' conftest.$ac_ext >&5
46484 ac_header_preproc=no
46486 rm -f conftest.err conftest.$ac_ext
46487 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46488 echo "${ECHO_T}$ac_header_preproc" >&6
46490 # So? What about this header?
46491 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46493 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46494 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46495 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46496 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46497 ac_header_preproc=yes
46500 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46501 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46502 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46503 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46504 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46505 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46506 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
46507 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
46508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46509 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46510 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46511 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46514 ## ------------------------------------------ ##
46515 ## Report this to the AC_PACKAGE_NAME lists. ##
46516 ## ------------------------------------------ ##
46519 sed "s/^/$as_me: WARNING: /" >&2
46522 echo "$as_me:$LINENO: checking for $ac_header" >&5
46523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46524 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46525 echo $ECHO_N "(cached) $ECHO_C" >&6
46527 eval "$as_ac_Header=\$ac_header_preproc"
46529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46530 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46533 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46534 cat >>confdefs.h <<_ACEOF
46535 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46543 for ac_header in gmp.h
46545 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46547 echo "$as_me:$LINENO: checking for $ac_header" >&5
46548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46549 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46550 echo $ECHO_N "(cached) $ECHO_C" >&6
46552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46553 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46555 # Is the header compilable?
46556 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46557 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46558 cat >conftest.$ac_ext <<_ACEOF
46561 cat confdefs.h >>conftest.$ac_ext
46562 cat >>conftest.$ac_ext <<_ACEOF
46563 /* end confdefs.h. */
46564 $ac_includes_default
46565 #include <$ac_header>
46567 rm -f conftest.$ac_objext
46568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46569 (eval $ac_compile) 2>conftest.er1
46571 grep -v '^ *+' conftest.er1 >conftest.err
46573 cat conftest.err >&5
46574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46575 (exit $ac_status); } &&
46576 { ac_try='test -z "$ac_c_werror_flag"
46577 || test ! -s conftest.err'
46578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46579 (eval $ac_try) 2>&5
46581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46582 (exit $ac_status); }; } &&
46583 { ac_try='test -s conftest.$ac_objext'
46584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46585 (eval $ac_try) 2>&5
46587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46588 (exit $ac_status); }; }; then
46589 ac_header_compiler=yes
46591 echo "$as_me: failed program was:" >&5
46592 sed 's/^/| /' conftest.$ac_ext >&5
46594 ac_header_compiler=no
46596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46597 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46598 echo "${ECHO_T}$ac_header_compiler" >&6
46600 # Is the header present?
46601 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46602 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46603 cat >conftest.$ac_ext <<_ACEOF
46606 cat confdefs.h >>conftest.$ac_ext
46607 cat >>conftest.$ac_ext <<_ACEOF
46608 /* end confdefs.h. */
46609 #include <$ac_header>
46611 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46612 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46614 grep -v '^ *+' conftest.er1 >conftest.err
46616 cat conftest.err >&5
46617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46618 (exit $ac_status); } >/dev/null; then
46619 if test -s conftest.err; then
46620 ac_cpp_err=$ac_c_preproc_warn_flag
46621 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46628 if test -z "$ac_cpp_err"; then
46629 ac_header_preproc=yes
46631 echo "$as_me: failed program was:" >&5
46632 sed 's/^/| /' conftest.$ac_ext >&5
46634 ac_header_preproc=no
46636 rm -f conftest.err conftest.$ac_ext
46637 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46638 echo "${ECHO_T}$ac_header_preproc" >&6
46640 # So? What about this header?
46641 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46643 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46644 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46645 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46646 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46647 ac_header_preproc=yes
46650 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46651 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46652 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46653 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46654 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46655 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46656 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
46657 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
46658 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46659 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46660 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46661 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46664 ## ------------------------------------------ ##
46665 ## Report this to the AC_PACKAGE_NAME lists. ##
46666 ## ------------------------------------------ ##
46669 sed "s/^/$as_me: WARNING: /" >&2
46672 echo "$as_me:$LINENO: checking for $ac_header" >&5
46673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46674 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46675 echo $ECHO_N "(cached) $ECHO_C" >&6
46677 eval "$as_ac_Header=\$ac_header_preproc"
46679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46680 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46683 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46684 cat >>confdefs.h <<_ACEOF
46685 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46693 if test "$ol_with_tls" = "found" ; then
46695 ol_have_crypto_h=no
46697 if test "$ac_cv_header_openssl_bn_h" = "yes" \
46698 -o "$ac_cv_header_bn_h" = "yes" ; then
46702 if test "$ac_cv_header_openssl_crypto_h" = "yes" \
46703 -o "$ac_cv_header_crypto_h" = "yes" ; then
46704 ol_have_crypto_h=yes
46707 if test "$ol_have_bn_h" = "yes" \
46708 -a "$ol_have_crypto_h" = "yes" ; then
46713 if test $ac_cv_header_gmp_h = yes ; then
46714 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
46715 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
46716 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
46717 echo $ECHO_N "(cached) $ECHO_C" >&6
46719 ac_check_lib_save_LIBS=$LIBS
46721 cat >conftest.$ac_ext <<_ACEOF
46724 cat confdefs.h >>conftest.$ac_ext
46725 cat >>conftest.$ac_ext <<_ACEOF
46726 /* end confdefs.h. */
46728 /* Override any gcc2 internal prototype to avoid an error. */
46732 /* We use char because int might match the return type of a gcc2
46733 builtin and then its argument prototype would still apply. */
46734 char __gmpz_add_ui ();
46743 rm -f conftest.$ac_objext conftest$ac_exeext
46744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46745 (eval $ac_link) 2>conftest.er1
46747 grep -v '^ *+' conftest.er1 >conftest.err
46749 cat conftest.err >&5
46750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46751 (exit $ac_status); } &&
46752 { ac_try='test -z "$ac_c_werror_flag"
46753 || test ! -s conftest.err'
46754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46755 (eval $ac_try) 2>&5
46757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46758 (exit $ac_status); }; } &&
46759 { ac_try='test -s conftest$ac_exeext'
46760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46761 (eval $ac_try) 2>&5
46763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46764 (exit $ac_status); }; }; then
46765 ac_cv_lib_gmp___gmpz_add_ui=yes
46767 echo "$as_me: failed program was:" >&5
46768 sed 's/^/| /' conftest.$ac_ext >&5
46770 ac_cv_lib_gmp___gmpz_add_ui=no
46772 rm -f conftest.err conftest.$ac_objext \
46773 conftest$ac_exeext conftest.$ac_ext
46774 LIBS=$ac_check_lib_save_LIBS
46776 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
46777 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
46778 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
46784 if test $have_gmp = yes ; then
46789 echo "$as_me:$LINENO: checking for multiple precision support" >&5
46790 echo $ECHO_N "checking for multiple precision support... $ECHO_C" >&6
46792 ol_mp_support="none"
46793 case "$ol_with_multiple_precision" in
46795 if test "$ol_have_bignum" = "yes" ; then
46796 ol_mp_support="bignum"
46798 if test "$ol_have_gmp" = "yes" ; then
46799 ol_mp_support="gmp"
46804 if test "$ol_have_bignum" != "yes" ; then
46805 { { echo "$as_me:$LINENO: error: OpenSSL's BIGNUM not available" >&5
46806 echo "$as_me: error: OpenSSL's BIGNUM not available" >&2;}
46807 { (exit 1); exit 1; }; }
46809 ol_mp_support="bignum"
46812 if test "$ol_have_gmp" != "yes" ; then
46813 { { echo "$as_me:$LINENO: error: GMP not available" >&5
46814 echo "$as_me: error: GMP not available" >&2;}
46815 { (exit 1); exit 1; }; }
46817 ol_mp_support="gmp"
46820 if test "$ol_have_bignum" = "yes" ; then
46821 ol_mp_support="bignum"
46822 elif test "$ol_have_gmp" = "yes" ; then
46823 ol_mp_support="gmp"
46825 { { echo "$as_me:$LINENO: error: not available" >&5
46826 echo "$as_me: error: not available" >&2;}
46827 { (exit 1); exit 1; }; }
46832 case "$ol_mp_support" in
46835 cat >>confdefs.h <<\_ACEOF
46836 #define HAVE_BIGNUM 1
46842 cat >>confdefs.h <<\_ACEOF
46846 SLAPD_GMP_LIBS=-lgmp
46852 echo "$as_me:$LINENO: result: $ol_mp_support" >&5
46853 echo "${ECHO_T}$ol_mp_support" >&6
46857 echo "$as_me:$LINENO: checking for mode_t" >&5
46858 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
46859 if test "${ac_cv_type_mode_t+set}" = set; then
46860 echo $ECHO_N "(cached) $ECHO_C" >&6
46862 cat >conftest.$ac_ext <<_ACEOF
46865 cat confdefs.h >>conftest.$ac_ext
46866 cat >>conftest.$ac_ext <<_ACEOF
46867 /* end confdefs.h. */
46868 $ac_includes_default
46874 if (sizeof (mode_t))
46880 rm -f conftest.$ac_objext
46881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46882 (eval $ac_compile) 2>conftest.er1
46884 grep -v '^ *+' conftest.er1 >conftest.err
46886 cat conftest.err >&5
46887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46888 (exit $ac_status); } &&
46889 { ac_try='test -z "$ac_c_werror_flag"
46890 || test ! -s conftest.err'
46891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46892 (eval $ac_try) 2>&5
46894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46895 (exit $ac_status); }; } &&
46896 { ac_try='test -s conftest.$ac_objext'
46897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46898 (eval $ac_try) 2>&5
46900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46901 (exit $ac_status); }; }; then
46902 ac_cv_type_mode_t=yes
46904 echo "$as_me: failed program was:" >&5
46905 sed 's/^/| /' conftest.$ac_ext >&5
46907 ac_cv_type_mode_t=no
46909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46911 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
46912 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
46913 if test $ac_cv_type_mode_t = yes; then
46917 cat >>confdefs.h <<_ACEOF
46923 echo "$as_me:$LINENO: checking for off_t" >&5
46924 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
46925 if test "${ac_cv_type_off_t+set}" = set; then
46926 echo $ECHO_N "(cached) $ECHO_C" >&6
46928 cat >conftest.$ac_ext <<_ACEOF
46931 cat confdefs.h >>conftest.$ac_ext
46932 cat >>conftest.$ac_ext <<_ACEOF
46933 /* end confdefs.h. */
46934 $ac_includes_default
46940 if (sizeof (off_t))
46946 rm -f conftest.$ac_objext
46947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46948 (eval $ac_compile) 2>conftest.er1
46950 grep -v '^ *+' conftest.er1 >conftest.err
46952 cat conftest.err >&5
46953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46954 (exit $ac_status); } &&
46955 { ac_try='test -z "$ac_c_werror_flag"
46956 || test ! -s conftest.err'
46957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46958 (eval $ac_try) 2>&5
46960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46961 (exit $ac_status); }; } &&
46962 { ac_try='test -s conftest.$ac_objext'
46963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46964 (eval $ac_try) 2>&5
46966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46967 (exit $ac_status); }; }; then
46968 ac_cv_type_off_t=yes
46970 echo "$as_me: failed program was:" >&5
46971 sed 's/^/| /' conftest.$ac_ext >&5
46973 ac_cv_type_off_t=no
46975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46977 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
46978 echo "${ECHO_T}$ac_cv_type_off_t" >&6
46979 if test $ac_cv_type_off_t = yes; then
46983 cat >>confdefs.h <<_ACEOF
46989 echo "$as_me:$LINENO: checking for pid_t" >&5
46990 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
46991 if test "${ac_cv_type_pid_t+set}" = set; then
46992 echo $ECHO_N "(cached) $ECHO_C" >&6
46994 cat >conftest.$ac_ext <<_ACEOF
46997 cat confdefs.h >>conftest.$ac_ext
46998 cat >>conftest.$ac_ext <<_ACEOF
46999 /* end confdefs.h. */
47000 $ac_includes_default
47006 if (sizeof (pid_t))
47012 rm -f conftest.$ac_objext
47013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47014 (eval $ac_compile) 2>conftest.er1
47016 grep -v '^ *+' conftest.er1 >conftest.err
47018 cat conftest.err >&5
47019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47020 (exit $ac_status); } &&
47021 { ac_try='test -z "$ac_c_werror_flag"
47022 || test ! -s conftest.err'
47023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47024 (eval $ac_try) 2>&5
47026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47027 (exit $ac_status); }; } &&
47028 { ac_try='test -s conftest.$ac_objext'
47029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47030 (eval $ac_try) 2>&5
47032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47033 (exit $ac_status); }; }; then
47034 ac_cv_type_pid_t=yes
47036 echo "$as_me: failed program was:" >&5
47037 sed 's/^/| /' conftest.$ac_ext >&5
47039 ac_cv_type_pid_t=no
47041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47043 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
47044 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
47045 if test $ac_cv_type_pid_t = yes; then
47049 cat >>confdefs.h <<_ACEOF
47055 echo "$as_me:$LINENO: checking for ssize_t" >&5
47056 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
47057 if test "${ac_cv_type_ssize_t+set}" = set; then
47058 echo $ECHO_N "(cached) $ECHO_C" >&6
47060 cat >conftest.$ac_ext <<_ACEOF
47063 cat confdefs.h >>conftest.$ac_ext
47064 cat >>conftest.$ac_ext <<_ACEOF
47065 /* end confdefs.h. */
47066 $ac_includes_default
47072 if (sizeof (ssize_t))
47078 rm -f conftest.$ac_objext
47079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47080 (eval $ac_compile) 2>conftest.er1
47082 grep -v '^ *+' conftest.er1 >conftest.err
47084 cat conftest.err >&5
47085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47086 (exit $ac_status); } &&
47087 { ac_try='test -z "$ac_c_werror_flag"
47088 || test ! -s conftest.err'
47089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47090 (eval $ac_try) 2>&5
47092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47093 (exit $ac_status); }; } &&
47094 { ac_try='test -s conftest.$ac_objext'
47095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47096 (eval $ac_try) 2>&5
47098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47099 (exit $ac_status); }; }; then
47100 ac_cv_type_ssize_t=yes
47102 echo "$as_me: failed program was:" >&5
47103 sed 's/^/| /' conftest.$ac_ext >&5
47105 ac_cv_type_ssize_t=no
47107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47109 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
47110 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
47111 if test $ac_cv_type_ssize_t = yes; then
47115 cat >>confdefs.h <<_ACEOF
47116 #define ssize_t signed int
47121 echo "$as_me:$LINENO: checking for caddr_t" >&5
47122 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
47123 if test "${ac_cv_type_caddr_t+set}" = set; then
47124 echo $ECHO_N "(cached) $ECHO_C" >&6
47126 cat >conftest.$ac_ext <<_ACEOF
47129 cat confdefs.h >>conftest.$ac_ext
47130 cat >>conftest.$ac_ext <<_ACEOF
47131 /* end confdefs.h. */
47132 $ac_includes_default
47138 if (sizeof (caddr_t))
47144 rm -f conftest.$ac_objext
47145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47146 (eval $ac_compile) 2>conftest.er1
47148 grep -v '^ *+' conftest.er1 >conftest.err
47150 cat conftest.err >&5
47151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47152 (exit $ac_status); } &&
47153 { ac_try='test -z "$ac_c_werror_flag"
47154 || test ! -s conftest.err'
47155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47156 (eval $ac_try) 2>&5
47158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47159 (exit $ac_status); }; } &&
47160 { ac_try='test -s conftest.$ac_objext'
47161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47162 (eval $ac_try) 2>&5
47164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47165 (exit $ac_status); }; }; then
47166 ac_cv_type_caddr_t=yes
47168 echo "$as_me: failed program was:" >&5
47169 sed 's/^/| /' conftest.$ac_ext >&5
47171 ac_cv_type_caddr_t=no
47173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47175 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
47176 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
47177 if test $ac_cv_type_caddr_t = yes; then
47181 cat >>confdefs.h <<_ACEOF
47182 #define caddr_t char *
47187 echo "$as_me:$LINENO: checking for size_t" >&5
47188 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
47189 if test "${ac_cv_type_size_t+set}" = set; then
47190 echo $ECHO_N "(cached) $ECHO_C" >&6
47192 cat >conftest.$ac_ext <<_ACEOF
47195 cat confdefs.h >>conftest.$ac_ext
47196 cat >>conftest.$ac_ext <<_ACEOF
47197 /* end confdefs.h. */
47198 $ac_includes_default
47204 if (sizeof (size_t))
47210 rm -f conftest.$ac_objext
47211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47212 (eval $ac_compile) 2>conftest.er1
47214 grep -v '^ *+' conftest.er1 >conftest.err
47216 cat conftest.err >&5
47217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47218 (exit $ac_status); } &&
47219 { ac_try='test -z "$ac_c_werror_flag"
47220 || test ! -s conftest.err'
47221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47222 (eval $ac_try) 2>&5
47224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47225 (exit $ac_status); }; } &&
47226 { ac_try='test -s conftest.$ac_objext'
47227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47228 (eval $ac_try) 2>&5
47230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47231 (exit $ac_status); }; }; then
47232 ac_cv_type_size_t=yes
47234 echo "$as_me: failed program was:" >&5
47235 sed 's/^/| /' conftest.$ac_ext >&5
47237 ac_cv_type_size_t=no
47239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47241 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
47242 echo "${ECHO_T}$ac_cv_type_size_t" >&6
47243 if test $ac_cv_type_size_t = yes; then
47247 cat >>confdefs.h <<_ACEOF
47248 #define size_t unsigned
47254 echo "$as_me:$LINENO: checking for long long" >&5
47255 echo $ECHO_N "checking for long long... $ECHO_C" >&6
47256 if test "${ac_cv_type_long_long+set}" = set; then
47257 echo $ECHO_N "(cached) $ECHO_C" >&6
47259 cat >conftest.$ac_ext <<_ACEOF
47262 cat confdefs.h >>conftest.$ac_ext
47263 cat >>conftest.$ac_ext <<_ACEOF
47264 /* end confdefs.h. */
47265 $ac_includes_default
47269 if ((long long *) 0)
47271 if (sizeof (long long))
47277 rm -f conftest.$ac_objext
47278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47279 (eval $ac_compile) 2>conftest.er1
47281 grep -v '^ *+' conftest.er1 >conftest.err
47283 cat conftest.err >&5
47284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47285 (exit $ac_status); } &&
47286 { ac_try='test -z "$ac_c_werror_flag"
47287 || test ! -s conftest.err'
47288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47289 (eval $ac_try) 2>&5
47291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47292 (exit $ac_status); }; } &&
47293 { ac_try='test -s conftest.$ac_objext'
47294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47295 (eval $ac_try) 2>&5
47297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47298 (exit $ac_status); }; }; then
47299 ac_cv_type_long_long=yes
47301 echo "$as_me: failed program was:" >&5
47302 sed 's/^/| /' conftest.$ac_ext >&5
47304 ac_cv_type_long_long=no
47306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47308 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
47309 echo "${ECHO_T}$ac_cv_type_long_long" >&6
47310 if test $ac_cv_type_long_long = yes; then
47312 cat >>confdefs.h <<_ACEOF
47313 #define HAVE_LONG_LONG 1
47319 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
47320 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
47321 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
47322 echo $ECHO_N "(cached) $ECHO_C" >&6
47324 cat >conftest.$ac_ext <<_ACEOF
47327 cat confdefs.h >>conftest.$ac_ext
47328 cat >>conftest.$ac_ext <<_ACEOF
47329 /* end confdefs.h. */
47330 $ac_includes_default
47334 if ((ptrdiff_t *) 0)
47336 if (sizeof (ptrdiff_t))
47342 rm -f conftest.$ac_objext
47343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47344 (eval $ac_compile) 2>conftest.er1
47346 grep -v '^ *+' conftest.er1 >conftest.err
47348 cat conftest.err >&5
47349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47350 (exit $ac_status); } &&
47351 { ac_try='test -z "$ac_c_werror_flag"
47352 || test ! -s conftest.err'
47353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47354 (eval $ac_try) 2>&5
47356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47357 (exit $ac_status); }; } &&
47358 { ac_try='test -s conftest.$ac_objext'
47359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47360 (eval $ac_try) 2>&5
47362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47363 (exit $ac_status); }; }; then
47364 ac_cv_type_ptrdiff_t=yes
47366 echo "$as_me: failed program was:" >&5
47367 sed 's/^/| /' conftest.$ac_ext >&5
47369 ac_cv_type_ptrdiff_t=no
47371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47373 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
47374 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
47375 if test $ac_cv_type_ptrdiff_t = yes; then
47377 cat >>confdefs.h <<_ACEOF
47378 #define HAVE_PTRDIFF_T 1
47385 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
47386 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
47387 if test "${ac_cv_type_signal+set}" = set; then
47388 echo $ECHO_N "(cached) $ECHO_C" >&6
47390 cat >conftest.$ac_ext <<_ACEOF
47393 cat confdefs.h >>conftest.$ac_ext
47394 cat >>conftest.$ac_ext <<_ACEOF
47395 /* end confdefs.h. */
47396 #include <sys/types.h>
47397 #include <signal.h>
47402 extern "C" void (*signal (int, void (*)(int)))(int);
47404 void (*signal ()) ();
47415 rm -f conftest.$ac_objext
47416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47417 (eval $ac_compile) 2>conftest.er1
47419 grep -v '^ *+' conftest.er1 >conftest.err
47421 cat conftest.err >&5
47422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47423 (exit $ac_status); } &&
47424 { ac_try='test -z "$ac_c_werror_flag"
47425 || test ! -s conftest.err'
47426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47427 (eval $ac_try) 2>&5
47429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47430 (exit $ac_status); }; } &&
47431 { ac_try='test -s conftest.$ac_objext'
47432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47433 (eval $ac_try) 2>&5
47435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47436 (exit $ac_status); }; }; then
47437 ac_cv_type_signal=void
47439 echo "$as_me: failed program was:" >&5
47440 sed 's/^/| /' conftest.$ac_ext >&5
47442 ac_cv_type_signal=int
47444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47446 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
47447 echo "${ECHO_T}$ac_cv_type_signal" >&6
47449 cat >>confdefs.h <<_ACEOF
47450 #define RETSIGTYPE $ac_cv_type_signal
47454 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
47455 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
47456 if test "${ac_cv_type_uid_t+set}" = set; then
47457 echo $ECHO_N "(cached) $ECHO_C" >&6
47459 cat >conftest.$ac_ext <<_ACEOF
47462 cat confdefs.h >>conftest.$ac_ext
47463 cat >>conftest.$ac_ext <<_ACEOF
47464 /* end confdefs.h. */
47465 #include <sys/types.h>
47468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47469 $EGREP "uid_t" >/dev/null 2>&1; then
47470 ac_cv_type_uid_t=yes
47472 ac_cv_type_uid_t=no
47477 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
47478 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
47479 if test $ac_cv_type_uid_t = no; then
47481 cat >>confdefs.h <<\_ACEOF
47486 cat >>confdefs.h <<\_ACEOF
47492 echo "$as_me:$LINENO: checking for socklen_t" >&5
47493 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
47494 if test "${ol_cv_type_socklen_t+set}" = set; then
47495 echo $ECHO_N "(cached) $ECHO_C" >&6
47497 cat >conftest.$ac_ext <<_ACEOF
47500 cat confdefs.h >>conftest.$ac_ext
47501 cat >>conftest.$ac_ext <<_ACEOF
47502 /* end confdefs.h. */
47504 #ifdef HAVE_SYS_TYPES_H
47505 #include <sys/types.h>
47507 #ifdef HAVE_SYS_SOCKET_H
47508 #include <sys/socket.h>
47519 rm -f conftest.$ac_objext
47520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47521 (eval $ac_compile) 2>conftest.er1
47523 grep -v '^ *+' conftest.er1 >conftest.err
47525 cat conftest.err >&5
47526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47527 (exit $ac_status); } &&
47528 { ac_try='test -z "$ac_c_werror_flag"
47529 || test ! -s conftest.err'
47530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47531 (eval $ac_try) 2>&5
47533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47534 (exit $ac_status); }; } &&
47535 { ac_try='test -s conftest.$ac_objext'
47536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47537 (eval $ac_try) 2>&5
47539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47540 (exit $ac_status); }; }; then
47541 ol_cv_type_socklen_t=yes
47543 echo "$as_me: failed program was:" >&5
47544 sed 's/^/| /' conftest.$ac_ext >&5
47546 ol_cv_type_socklen_t=no
47548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47550 echo "$as_me:$LINENO: result: $ol_cv_type_socklen_t" >&5
47551 echo "${ECHO_T}$ol_cv_type_socklen_t" >&6
47552 if test $ol_cv_type_socklen_t = no; then
47554 cat >>confdefs.h <<\_ACEOF
47555 #define socklen_t int
47560 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
47561 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
47562 if test "${ol_cv_type_sig_atomic_t+set}" = set; then
47563 echo $ECHO_N "(cached) $ECHO_C" >&6
47565 cat >conftest.$ac_ext <<_ACEOF
47568 cat confdefs.h >>conftest.$ac_ext
47569 cat >>conftest.$ac_ext <<_ACEOF
47570 /* end confdefs.h. */
47571 #include <signal.h>
47575 sig_atomic_t atomic;
47580 rm -f conftest.$ac_objext
47581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47582 (eval $ac_compile) 2>conftest.er1
47584 grep -v '^ *+' conftest.er1 >conftest.err
47586 cat conftest.err >&5
47587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47588 (exit $ac_status); } &&
47589 { ac_try='test -z "$ac_c_werror_flag"
47590 || test ! -s conftest.err'
47591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47592 (eval $ac_try) 2>&5
47594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47595 (exit $ac_status); }; } &&
47596 { ac_try='test -s conftest.$ac_objext'
47597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47598 (eval $ac_try) 2>&5
47600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47601 (exit $ac_status); }; }; then
47602 ol_cv_type_sig_atomic_t=yes
47604 echo "$as_me: failed program was:" >&5
47605 sed 's/^/| /' conftest.$ac_ext >&5
47607 ol_cv_type_sig_atomic_t=no
47609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47611 echo "$as_me:$LINENO: result: $ol_cv_type_sig_atomic_t" >&5
47612 echo "${ECHO_T}$ol_cv_type_sig_atomic_t" >&6
47613 if test $ol_cv_type_sig_atomic_t = no; then
47615 cat >>confdefs.h <<\_ACEOF
47616 #define sig_atomic_t int
47622 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
47623 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
47624 if test "${ac_cv_header_time+set}" = set; then
47625 echo $ECHO_N "(cached) $ECHO_C" >&6
47627 cat >conftest.$ac_ext <<_ACEOF
47630 cat confdefs.h >>conftest.$ac_ext
47631 cat >>conftest.$ac_ext <<_ACEOF
47632 /* end confdefs.h. */
47633 #include <sys/types.h>
47634 #include <sys/time.h>
47640 if ((struct tm *) 0)
47646 rm -f conftest.$ac_objext
47647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47648 (eval $ac_compile) 2>conftest.er1
47650 grep -v '^ *+' conftest.er1 >conftest.err
47652 cat conftest.err >&5
47653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47654 (exit $ac_status); } &&
47655 { ac_try='test -z "$ac_c_werror_flag"
47656 || test ! -s conftest.err'
47657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47658 (eval $ac_try) 2>&5
47660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47661 (exit $ac_status); }; } &&
47662 { ac_try='test -s conftest.$ac_objext'
47663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47664 (eval $ac_try) 2>&5
47666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47667 (exit $ac_status); }; }; then
47668 ac_cv_header_time=yes
47670 echo "$as_me: failed program was:" >&5
47671 sed 's/^/| /' conftest.$ac_ext >&5
47673 ac_cv_header_time=no
47675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47677 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
47678 echo "${ECHO_T}$ac_cv_header_time" >&6
47679 if test $ac_cv_header_time = yes; then
47681 cat >>confdefs.h <<\_ACEOF
47682 #define TIME_WITH_SYS_TIME 1
47687 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
47688 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
47689 if test "${ac_cv_struct_tm+set}" = set; then
47690 echo $ECHO_N "(cached) $ECHO_C" >&6
47692 cat >conftest.$ac_ext <<_ACEOF
47695 cat confdefs.h >>conftest.$ac_ext
47696 cat >>conftest.$ac_ext <<_ACEOF
47697 /* end confdefs.h. */
47698 #include <sys/types.h>
47704 struct tm *tp; tp->tm_sec;
47709 rm -f conftest.$ac_objext
47710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47711 (eval $ac_compile) 2>conftest.er1
47713 grep -v '^ *+' conftest.er1 >conftest.err
47715 cat conftest.err >&5
47716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47717 (exit $ac_status); } &&
47718 { ac_try='test -z "$ac_c_werror_flag"
47719 || test ! -s conftest.err'
47720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47721 (eval $ac_try) 2>&5
47723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47724 (exit $ac_status); }; } &&
47725 { ac_try='test -s conftest.$ac_objext'
47726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47727 (eval $ac_try) 2>&5
47729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47730 (exit $ac_status); }; }; then
47731 ac_cv_struct_tm=time.h
47733 echo "$as_me: failed program was:" >&5
47734 sed 's/^/| /' conftest.$ac_ext >&5
47736 ac_cv_struct_tm=sys/time.h
47738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47740 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
47741 echo "${ECHO_T}$ac_cv_struct_tm" >&6
47742 if test $ac_cv_struct_tm = sys/time.h; then
47744 cat >>confdefs.h <<\_ACEOF
47745 #define TM_IN_SYS_TIME 1
47750 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
47751 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
47752 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
47753 echo $ECHO_N "(cached) $ECHO_C" >&6
47755 cat >conftest.$ac_ext <<_ACEOF
47758 cat confdefs.h >>conftest.$ac_ext
47759 cat >>conftest.$ac_ext <<_ACEOF
47760 /* end confdefs.h. */
47761 $ac_includes_default
47765 static struct stat ac_aggr;
47766 if (ac_aggr.st_blksize)
47772 rm -f conftest.$ac_objext
47773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47774 (eval $ac_compile) 2>conftest.er1
47776 grep -v '^ *+' conftest.er1 >conftest.err
47778 cat conftest.err >&5
47779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47780 (exit $ac_status); } &&
47781 { ac_try='test -z "$ac_c_werror_flag"
47782 || test ! -s conftest.err'
47783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47784 (eval $ac_try) 2>&5
47786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47787 (exit $ac_status); }; } &&
47788 { ac_try='test -s conftest.$ac_objext'
47789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47790 (eval $ac_try) 2>&5
47792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47793 (exit $ac_status); }; }; then
47794 ac_cv_member_struct_stat_st_blksize=yes
47796 echo "$as_me: failed program was:" >&5
47797 sed 's/^/| /' conftest.$ac_ext >&5
47799 cat >conftest.$ac_ext <<_ACEOF
47802 cat confdefs.h >>conftest.$ac_ext
47803 cat >>conftest.$ac_ext <<_ACEOF
47804 /* end confdefs.h. */
47805 $ac_includes_default
47809 static struct stat ac_aggr;
47810 if (sizeof ac_aggr.st_blksize)
47816 rm -f conftest.$ac_objext
47817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47818 (eval $ac_compile) 2>conftest.er1
47820 grep -v '^ *+' conftest.er1 >conftest.err
47822 cat conftest.err >&5
47823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47824 (exit $ac_status); } &&
47825 { ac_try='test -z "$ac_c_werror_flag"
47826 || test ! -s conftest.err'
47827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47828 (eval $ac_try) 2>&5
47830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47831 (exit $ac_status); }; } &&
47832 { ac_try='test -s conftest.$ac_objext'
47833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47834 (eval $ac_try) 2>&5
47836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47837 (exit $ac_status); }; }; then
47838 ac_cv_member_struct_stat_st_blksize=yes
47840 echo "$as_me: failed program was:" >&5
47841 sed 's/^/| /' conftest.$ac_ext >&5
47843 ac_cv_member_struct_stat_st_blksize=no
47845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47849 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
47850 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
47851 if test $ac_cv_member_struct_stat_st_blksize = yes; then
47853 cat >>confdefs.h <<_ACEOF
47854 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
47860 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
47861 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
47862 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
47863 echo $ECHO_N "(cached) $ECHO_C" >&6
47865 cat >conftest.$ac_ext <<_ACEOF
47868 cat confdefs.h >>conftest.$ac_ext
47869 cat >>conftest.$ac_ext <<_ACEOF
47870 /* end confdefs.h. */
47871 $ac_includes_default
47875 static struct passwd ac_aggr;
47876 if (ac_aggr.pw_gecos)
47882 rm -f conftest.$ac_objext
47883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47884 (eval $ac_compile) 2>conftest.er1
47886 grep -v '^ *+' conftest.er1 >conftest.err
47888 cat conftest.err >&5
47889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47890 (exit $ac_status); } &&
47891 { ac_try='test -z "$ac_c_werror_flag"
47892 || test ! -s conftest.err'
47893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47894 (eval $ac_try) 2>&5
47896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47897 (exit $ac_status); }; } &&
47898 { ac_try='test -s conftest.$ac_objext'
47899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47900 (eval $ac_try) 2>&5
47902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47903 (exit $ac_status); }; }; then
47904 ac_cv_member_struct_passwd_pw_gecos=yes
47906 echo "$as_me: failed program was:" >&5
47907 sed 's/^/| /' conftest.$ac_ext >&5
47909 cat >conftest.$ac_ext <<_ACEOF
47912 cat confdefs.h >>conftest.$ac_ext
47913 cat >>conftest.$ac_ext <<_ACEOF
47914 /* end confdefs.h. */
47915 $ac_includes_default
47919 static struct passwd ac_aggr;
47920 if (sizeof ac_aggr.pw_gecos)
47926 rm -f conftest.$ac_objext
47927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47928 (eval $ac_compile) 2>conftest.er1
47930 grep -v '^ *+' conftest.er1 >conftest.err
47932 cat conftest.err >&5
47933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47934 (exit $ac_status); } &&
47935 { ac_try='test -z "$ac_c_werror_flag"
47936 || test ! -s conftest.err'
47937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47938 (eval $ac_try) 2>&5
47940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47941 (exit $ac_status); }; } &&
47942 { ac_try='test -s conftest.$ac_objext'
47943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47944 (eval $ac_try) 2>&5
47946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47947 (exit $ac_status); }; }; then
47948 ac_cv_member_struct_passwd_pw_gecos=yes
47950 echo "$as_me: failed program was:" >&5
47951 sed 's/^/| /' conftest.$ac_ext >&5
47953 ac_cv_member_struct_passwd_pw_gecos=no
47955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47959 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
47960 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
47961 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
47963 cat >>confdefs.h <<_ACEOF
47964 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
47970 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
47971 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
47972 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
47973 echo $ECHO_N "(cached) $ECHO_C" >&6
47975 cat >conftest.$ac_ext <<_ACEOF
47978 cat confdefs.h >>conftest.$ac_ext
47979 cat >>conftest.$ac_ext <<_ACEOF
47980 /* end confdefs.h. */
47981 $ac_includes_default
47985 static struct passwd ac_aggr;
47986 if (ac_aggr.pw_passwd)
47992 rm -f conftest.$ac_objext
47993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47994 (eval $ac_compile) 2>conftest.er1
47996 grep -v '^ *+' conftest.er1 >conftest.err
47998 cat conftest.err >&5
47999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48000 (exit $ac_status); } &&
48001 { ac_try='test -z "$ac_c_werror_flag"
48002 || test ! -s conftest.err'
48003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48004 (eval $ac_try) 2>&5
48006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48007 (exit $ac_status); }; } &&
48008 { ac_try='test -s conftest.$ac_objext'
48009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48010 (eval $ac_try) 2>&5
48012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48013 (exit $ac_status); }; }; then
48014 ac_cv_member_struct_passwd_pw_passwd=yes
48016 echo "$as_me: failed program was:" >&5
48017 sed 's/^/| /' conftest.$ac_ext >&5
48019 cat >conftest.$ac_ext <<_ACEOF
48022 cat confdefs.h >>conftest.$ac_ext
48023 cat >>conftest.$ac_ext <<_ACEOF
48024 /* end confdefs.h. */
48025 $ac_includes_default
48029 static struct passwd ac_aggr;
48030 if (sizeof ac_aggr.pw_passwd)
48036 rm -f conftest.$ac_objext
48037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48038 (eval $ac_compile) 2>conftest.er1
48040 grep -v '^ *+' conftest.er1 >conftest.err
48042 cat conftest.err >&5
48043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48044 (exit $ac_status); } &&
48045 { ac_try='test -z "$ac_c_werror_flag"
48046 || test ! -s conftest.err'
48047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48048 (eval $ac_try) 2>&5
48050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48051 (exit $ac_status); }; } &&
48052 { ac_try='test -s conftest.$ac_objext'
48053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48054 (eval $ac_try) 2>&5
48056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48057 (exit $ac_status); }; }; then
48058 ac_cv_member_struct_passwd_pw_passwd=yes
48060 echo "$as_me: failed program was:" >&5
48061 sed 's/^/| /' conftest.$ac_ext >&5
48063 ac_cv_member_struct_passwd_pw_passwd=no
48065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48069 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
48070 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
48071 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
48073 cat >>confdefs.h <<_ACEOF
48074 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
48081 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
48082 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
48083 if test "${ol_cv_c_upper_lower+set}" = set; then
48084 echo $ECHO_N "(cached) $ECHO_C" >&6
48087 if test "$cross_compiling" = yes; then
48088 ol_cv_c_upper_lower=safe
48090 cat >conftest.$ac_ext <<_ACEOF
48093 cat confdefs.h >>conftest.$ac_ext
48094 cat >>conftest.$ac_ext <<_ACEOF
48095 /* end confdefs.h. */
48100 if ('C' == toupper('C'))
48106 rm -f conftest$ac_exeext
48107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48108 (eval $ac_link) 2>&5
48110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48111 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48113 (eval $ac_try) 2>&5
48115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48116 (exit $ac_status); }; }; then
48117 ol_cv_c_upper_lower=no
48119 echo "$as_me: program exited with status $ac_status" >&5
48120 echo "$as_me: failed program was:" >&5
48121 sed 's/^/| /' conftest.$ac_ext >&5
48123 ( exit $ac_status )
48124 ol_cv_c_upper_lower=yes
48126 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48129 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
48130 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
48131 if test $ol_cv_c_upper_lower != no ; then
48133 cat >>confdefs.h <<\_ACEOF
48134 #define C_UPPER_LOWER 1
48139 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
48140 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
48141 if test "${ac_cv_c_const+set}" = set; then
48142 echo $ECHO_N "(cached) $ECHO_C" >&6
48144 cat >conftest.$ac_ext <<_ACEOF
48147 cat confdefs.h >>conftest.$ac_ext
48148 cat >>conftest.$ac_ext <<_ACEOF
48149 /* end confdefs.h. */
48154 /* FIXME: Include the comments suggested by Paul. */
48155 #ifndef __cplusplus
48156 /* Ultrix mips cc rejects this. */
48157 typedef int charset[2];
48159 /* SunOS 4.1.1 cc rejects this. */
48160 char const *const *ccp;
48162 /* NEC SVR4.0.2 mips cc rejects this. */
48163 struct point {int x, y;};
48164 static struct point const zero = {0,0};
48165 /* AIX XL C 1.02.0.0 rejects this.
48166 It does not let you subtract one const X* pointer from another in
48167 an arm of an if-expression whose if-part is not a constant
48169 const char *g = "string";
48170 ccp = &g + (g ? g-g : 0);
48171 /* HPUX 7.0 cc rejects these. */
48174 ccp = (char const *const *) p;
48175 { /* SCO 3.2v4 cc rejects this. */
48177 char const *s = 0 ? (char *) 0 : (char const *) 0;
48181 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
48182 int x[] = {25, 17};
48183 const int *foo = &x[0];
48186 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
48187 typedef const int *iptr;
48191 { /* AIX XL C 1.02.0.0 rejects this saying
48192 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
48193 struct s { int j; const int *ap[3]; };
48194 struct s *b; b->j = 5;
48196 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
48197 const int foo = 10;
48205 rm -f conftest.$ac_objext
48206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48207 (eval $ac_compile) 2>conftest.er1
48209 grep -v '^ *+' conftest.er1 >conftest.err
48211 cat conftest.err >&5
48212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48213 (exit $ac_status); } &&
48214 { ac_try='test -z "$ac_c_werror_flag"
48215 || test ! -s conftest.err'
48216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48217 (eval $ac_try) 2>&5
48219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48220 (exit $ac_status); }; } &&
48221 { ac_try='test -s conftest.$ac_objext'
48222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48223 (eval $ac_try) 2>&5
48225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48226 (exit $ac_status); }; }; then
48229 echo "$as_me: failed program was:" >&5
48230 sed 's/^/| /' conftest.$ac_ext >&5
48234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48236 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
48237 echo "${ECHO_T}$ac_cv_c_const" >&6
48238 if test $ac_cv_c_const = no; then
48240 cat >>confdefs.h <<\_ACEOF
48246 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
48247 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
48248 if test "${ol_cv_c_volatile+set}" = set; then
48249 echo $ECHO_N "(cached) $ECHO_C" >&6
48251 cat >conftest.$ac_ext <<_ACEOF
48254 cat confdefs.h >>conftest.$ac_ext
48255 cat >>conftest.$ac_ext <<_ACEOF
48256 /* end confdefs.h. */
48261 volatile int a; int * volatile b = x ? &y : &z;
48262 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
48268 rm -f conftest.$ac_objext
48269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48270 (eval $ac_compile) 2>conftest.er1
48272 grep -v '^ *+' conftest.er1 >conftest.err
48274 cat conftest.err >&5
48275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48276 (exit $ac_status); } &&
48277 { ac_try='test -z "$ac_c_werror_flag"
48278 || test ! -s conftest.err'
48279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48280 (eval $ac_try) 2>&5
48282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48283 (exit $ac_status); }; } &&
48284 { ac_try='test -s conftest.$ac_objext'
48285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48286 (eval $ac_try) 2>&5
48288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48289 (exit $ac_status); }; }; then
48290 ol_cv_c_volatile=yes
48292 echo "$as_me: failed program was:" >&5
48293 sed 's/^/| /' conftest.$ac_ext >&5
48295 ol_cv_c_volatile=no
48297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48299 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
48300 echo "${ECHO_T}$ol_cv_c_volatile" >&6
48301 if test $ol_cv_c_volatile = yes; then
48305 cat >>confdefs.h <<\_ACEOF
48312 if test $cross_compiling = yes ; then
48313 { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
48314 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
48316 cat >>confdefs.h <<\_ACEOF
48317 #define CROSS_COMPILING 1
48321 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
48322 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
48323 if test "${ac_cv_c_bigendian+set}" = set; then
48324 echo $ECHO_N "(cached) $ECHO_C" >&6
48326 # See if sys/param.h defines the BYTE_ORDER macro.
48327 cat >conftest.$ac_ext <<_ACEOF
48330 cat confdefs.h >>conftest.$ac_ext
48331 cat >>conftest.$ac_ext <<_ACEOF
48332 /* end confdefs.h. */
48333 #include <sys/types.h>
48334 #include <sys/param.h>
48339 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
48340 bogus endian macros
48347 rm -f conftest.$ac_objext
48348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48349 (eval $ac_compile) 2>conftest.er1
48351 grep -v '^ *+' conftest.er1 >conftest.err
48353 cat conftest.err >&5
48354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48355 (exit $ac_status); } &&
48356 { ac_try='test -z "$ac_c_werror_flag"
48357 || test ! -s conftest.err'
48358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48359 (eval $ac_try) 2>&5
48361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48362 (exit $ac_status); }; } &&
48363 { ac_try='test -s conftest.$ac_objext'
48364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48365 (eval $ac_try) 2>&5
48367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48368 (exit $ac_status); }; }; then
48369 # It does; now see whether it defined to BIG_ENDIAN or not.
48370 cat >conftest.$ac_ext <<_ACEOF
48373 cat confdefs.h >>conftest.$ac_ext
48374 cat >>conftest.$ac_ext <<_ACEOF
48375 /* end confdefs.h. */
48376 #include <sys/types.h>
48377 #include <sys/param.h>
48382 #if BYTE_ORDER != BIG_ENDIAN
48390 rm -f conftest.$ac_objext
48391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48392 (eval $ac_compile) 2>conftest.er1
48394 grep -v '^ *+' conftest.er1 >conftest.err
48396 cat conftest.err >&5
48397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48398 (exit $ac_status); } &&
48399 { ac_try='test -z "$ac_c_werror_flag"
48400 || test ! -s conftest.err'
48401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48402 (eval $ac_try) 2>&5
48404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48405 (exit $ac_status); }; } &&
48406 { ac_try='test -s conftest.$ac_objext'
48407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48408 (eval $ac_try) 2>&5
48410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48411 (exit $ac_status); }; }; then
48412 ac_cv_c_bigendian=yes
48414 echo "$as_me: failed program was:" >&5
48415 sed 's/^/| /' conftest.$ac_ext >&5
48417 ac_cv_c_bigendian=no
48419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48421 echo "$as_me: failed program was:" >&5
48422 sed 's/^/| /' conftest.$ac_ext >&5
48424 # It does not; compile a test program.
48425 if test "$cross_compiling" = yes; then
48426 # try to guess the endianness by grepping values into an object file
48427 ac_cv_c_bigendian=unknown
48428 cat >conftest.$ac_ext <<_ACEOF
48431 cat confdefs.h >>conftest.$ac_ext
48432 cat >>conftest.$ac_ext <<_ACEOF
48433 /* end confdefs.h. */
48434 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
48435 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
48436 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
48437 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
48438 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
48439 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
48443 _ascii (); _ebcdic ();
48448 rm -f conftest.$ac_objext
48449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48450 (eval $ac_compile) 2>conftest.er1
48452 grep -v '^ *+' conftest.er1 >conftest.err
48454 cat conftest.err >&5
48455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48456 (exit $ac_status); } &&
48457 { ac_try='test -z "$ac_c_werror_flag"
48458 || test ! -s conftest.err'
48459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48460 (eval $ac_try) 2>&5
48462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48463 (exit $ac_status); }; } &&
48464 { ac_try='test -s conftest.$ac_objext'
48465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48466 (eval $ac_try) 2>&5
48468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48469 (exit $ac_status); }; }; then
48470 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
48471 ac_cv_c_bigendian=yes
48473 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
48474 if test "$ac_cv_c_bigendian" = unknown; then
48475 ac_cv_c_bigendian=no
48477 # finding both strings is unlikely to happen, but who knows?
48478 ac_cv_c_bigendian=unknown
48482 echo "$as_me: failed program was:" >&5
48483 sed 's/^/| /' conftest.$ac_ext >&5
48486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48488 cat >conftest.$ac_ext <<_ACEOF
48491 cat confdefs.h >>conftest.$ac_ext
48492 cat >>conftest.$ac_ext <<_ACEOF
48493 /* end confdefs.h. */
48497 /* Are we little or big endian? From Harbison&Steele. */
48501 char c[sizeof (long)];
48504 exit (u.c[sizeof (long) - 1] == 1);
48507 rm -f conftest$ac_exeext
48508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48509 (eval $ac_link) 2>&5
48511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48512 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48514 (eval $ac_try) 2>&5
48516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48517 (exit $ac_status); }; }; then
48518 ac_cv_c_bigendian=no
48520 echo "$as_me: program exited with status $ac_status" >&5
48521 echo "$as_me: failed program was:" >&5
48522 sed 's/^/| /' conftest.$ac_ext >&5
48524 ( exit $ac_status )
48525 ac_cv_c_bigendian=yes
48527 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48532 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
48533 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
48534 case $ac_cv_c_bigendian in
48537 cat >>confdefs.h <<\_ACEOF
48538 #define WORDS_BIGENDIAN 1
48544 { { echo "$as_me:$LINENO: error: unknown endianness
48545 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
48546 echo "$as_me: error: unknown endianness
48547 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
48548 { (exit 1); exit 1; }; } ;;
48553 echo "$as_me:$LINENO: checking for short" >&5
48554 echo $ECHO_N "checking for short... $ECHO_C" >&6
48555 if test "${ac_cv_type_short+set}" = set; then
48556 echo $ECHO_N "(cached) $ECHO_C" >&6
48558 cat >conftest.$ac_ext <<_ACEOF
48561 cat confdefs.h >>conftest.$ac_ext
48562 cat >>conftest.$ac_ext <<_ACEOF
48563 /* end confdefs.h. */
48564 $ac_includes_default
48570 if (sizeof (short))
48576 rm -f conftest.$ac_objext
48577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48578 (eval $ac_compile) 2>conftest.er1
48580 grep -v '^ *+' conftest.er1 >conftest.err
48582 cat conftest.err >&5
48583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48584 (exit $ac_status); } &&
48585 { ac_try='test -z "$ac_c_werror_flag"
48586 || test ! -s conftest.err'
48587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48588 (eval $ac_try) 2>&5
48590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48591 (exit $ac_status); }; } &&
48592 { ac_try='test -s conftest.$ac_objext'
48593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48594 (eval $ac_try) 2>&5
48596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48597 (exit $ac_status); }; }; then
48598 ac_cv_type_short=yes
48600 echo "$as_me: failed program was:" >&5
48601 sed 's/^/| /' conftest.$ac_ext >&5
48603 ac_cv_type_short=no
48605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48607 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
48608 echo "${ECHO_T}$ac_cv_type_short" >&6
48610 echo "$as_me:$LINENO: checking size of short" >&5
48611 echo $ECHO_N "checking size of short... $ECHO_C" >&6
48612 if test "${ac_cv_sizeof_short+set}" = set; then
48613 echo $ECHO_N "(cached) $ECHO_C" >&6
48615 if test "$ac_cv_type_short" = yes; then
48616 # The cast to unsigned long works around a bug in the HP C Compiler
48617 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
48618 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
48619 # This bug is HP SR number 8606223364.
48620 if test "$cross_compiling" = yes; then
48621 # Depending upon the size, compute the lo and hi bounds.
48622 cat >conftest.$ac_ext <<_ACEOF
48625 cat confdefs.h >>conftest.$ac_ext
48626 cat >>conftest.$ac_ext <<_ACEOF
48627 /* end confdefs.h. */
48628 $ac_includes_default
48632 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
48639 rm -f conftest.$ac_objext
48640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48641 (eval $ac_compile) 2>conftest.er1
48643 grep -v '^ *+' conftest.er1 >conftest.err
48645 cat conftest.err >&5
48646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48647 (exit $ac_status); } &&
48648 { ac_try='test -z "$ac_c_werror_flag"
48649 || test ! -s conftest.err'
48650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48651 (eval $ac_try) 2>&5
48653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48654 (exit $ac_status); }; } &&
48655 { ac_try='test -s conftest.$ac_objext'
48656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48657 (eval $ac_try) 2>&5
48659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48660 (exit $ac_status); }; }; then
48663 cat >conftest.$ac_ext <<_ACEOF
48666 cat confdefs.h >>conftest.$ac_ext
48667 cat >>conftest.$ac_ext <<_ACEOF
48668 /* end confdefs.h. */
48669 $ac_includes_default
48673 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
48680 rm -f conftest.$ac_objext
48681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48682 (eval $ac_compile) 2>conftest.er1
48684 grep -v '^ *+' conftest.er1 >conftest.err
48686 cat conftest.err >&5
48687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48688 (exit $ac_status); } &&
48689 { ac_try='test -z "$ac_c_werror_flag"
48690 || test ! -s conftest.err'
48691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48692 (eval $ac_try) 2>&5
48694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48695 (exit $ac_status); }; } &&
48696 { ac_try='test -s conftest.$ac_objext'
48697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48698 (eval $ac_try) 2>&5
48700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48701 (exit $ac_status); }; }; then
48702 ac_hi=$ac_mid; break
48704 echo "$as_me: failed program was:" >&5
48705 sed 's/^/| /' conftest.$ac_ext >&5
48707 ac_lo=`expr $ac_mid + 1`
48708 if test $ac_lo -le $ac_mid; then
48712 ac_mid=`expr 2 '*' $ac_mid + 1`
48714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48717 echo "$as_me: failed program was:" >&5
48718 sed 's/^/| /' conftest.$ac_ext >&5
48720 cat >conftest.$ac_ext <<_ACEOF
48723 cat confdefs.h >>conftest.$ac_ext
48724 cat >>conftest.$ac_ext <<_ACEOF
48725 /* end confdefs.h. */
48726 $ac_includes_default
48730 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
48737 rm -f conftest.$ac_objext
48738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48739 (eval $ac_compile) 2>conftest.er1
48741 grep -v '^ *+' conftest.er1 >conftest.err
48743 cat conftest.err >&5
48744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48745 (exit $ac_status); } &&
48746 { ac_try='test -z "$ac_c_werror_flag"
48747 || test ! -s conftest.err'
48748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48749 (eval $ac_try) 2>&5
48751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48752 (exit $ac_status); }; } &&
48753 { ac_try='test -s conftest.$ac_objext'
48754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48755 (eval $ac_try) 2>&5
48757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48758 (exit $ac_status); }; }; then
48761 cat >conftest.$ac_ext <<_ACEOF
48764 cat confdefs.h >>conftest.$ac_ext
48765 cat >>conftest.$ac_ext <<_ACEOF
48766 /* end confdefs.h. */
48767 $ac_includes_default
48771 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
48778 rm -f conftest.$ac_objext
48779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48780 (eval $ac_compile) 2>conftest.er1
48782 grep -v '^ *+' conftest.er1 >conftest.err
48784 cat conftest.err >&5
48785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48786 (exit $ac_status); } &&
48787 { ac_try='test -z "$ac_c_werror_flag"
48788 || test ! -s conftest.err'
48789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48790 (eval $ac_try) 2>&5
48792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48793 (exit $ac_status); }; } &&
48794 { ac_try='test -s conftest.$ac_objext'
48795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48796 (eval $ac_try) 2>&5
48798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48799 (exit $ac_status); }; }; then
48800 ac_lo=$ac_mid; break
48802 echo "$as_me: failed program was:" >&5
48803 sed 's/^/| /' conftest.$ac_ext >&5
48805 ac_hi=`expr '(' $ac_mid ')' - 1`
48806 if test $ac_mid -le $ac_hi; then
48810 ac_mid=`expr 2 '*' $ac_mid`
48812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48815 echo "$as_me: failed program was:" >&5
48816 sed 's/^/| /' conftest.$ac_ext >&5
48820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48823 # Binary search between lo and hi bounds.
48824 while test "x$ac_lo" != "x$ac_hi"; do
48825 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
48826 cat >conftest.$ac_ext <<_ACEOF
48829 cat confdefs.h >>conftest.$ac_ext
48830 cat >>conftest.$ac_ext <<_ACEOF
48831 /* end confdefs.h. */
48832 $ac_includes_default
48836 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
48843 rm -f conftest.$ac_objext
48844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48845 (eval $ac_compile) 2>conftest.er1
48847 grep -v '^ *+' conftest.er1 >conftest.err
48849 cat conftest.err >&5
48850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48851 (exit $ac_status); } &&
48852 { ac_try='test -z "$ac_c_werror_flag"
48853 || test ! -s conftest.err'
48854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48855 (eval $ac_try) 2>&5
48857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48858 (exit $ac_status); }; } &&
48859 { ac_try='test -s conftest.$ac_objext'
48860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48861 (eval $ac_try) 2>&5
48863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48864 (exit $ac_status); }; }; then
48867 echo "$as_me: failed program was:" >&5
48868 sed 's/^/| /' conftest.$ac_ext >&5
48870 ac_lo=`expr '(' $ac_mid ')' + 1`
48872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48875 ?*) ac_cv_sizeof_short=$ac_lo;;
48876 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
48877 See \`config.log' for more details." >&5
48878 echo "$as_me: error: cannot compute sizeof (short), 77
48879 See \`config.log' for more details." >&2;}
48880 { (exit 1); exit 1; }; } ;;
48883 if test "$cross_compiling" = yes; then
48884 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
48885 See \`config.log' for more details." >&5
48886 echo "$as_me: error: cannot run test program while cross compiling
48887 See \`config.log' for more details." >&2;}
48888 { (exit 1); exit 1; }; }
48890 cat >conftest.$ac_ext <<_ACEOF
48893 cat confdefs.h >>conftest.$ac_ext
48894 cat >>conftest.$ac_ext <<_ACEOF
48895 /* end confdefs.h. */
48896 $ac_includes_default
48897 long longval () { return (long) (sizeof (short)); }
48898 unsigned long ulongval () { return (long) (sizeof (short)); }
48900 #include <stdlib.h>
48905 FILE *f = fopen ("conftest.val", "w");
48908 if (((long) (sizeof (short))) < 0)
48910 long i = longval ();
48911 if (i != ((long) (sizeof (short))))
48913 fprintf (f, "%ld\n", i);
48917 unsigned long i = ulongval ();
48918 if (i != ((long) (sizeof (short))))
48920 fprintf (f, "%lu\n", i);
48922 exit (ferror (f) || fclose (f) != 0);
48928 rm -f conftest$ac_exeext
48929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48930 (eval $ac_link) 2>&5
48932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48933 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48935 (eval $ac_try) 2>&5
48937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48938 (exit $ac_status); }; }; then
48939 ac_cv_sizeof_short=`cat conftest.val`
48941 echo "$as_me: program exited with status $ac_status" >&5
48942 echo "$as_me: failed program was:" >&5
48943 sed 's/^/| /' conftest.$ac_ext >&5
48945 ( exit $ac_status )
48946 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
48947 See \`config.log' for more details." >&5
48948 echo "$as_me: error: cannot compute sizeof (short), 77
48949 See \`config.log' for more details." >&2;}
48950 { (exit 1); exit 1; }; }
48952 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48957 ac_cv_sizeof_short=0
48960 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
48961 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
48962 cat >>confdefs.h <<_ACEOF
48963 #define SIZEOF_SHORT $ac_cv_sizeof_short
48967 echo "$as_me:$LINENO: checking for int" >&5
48968 echo $ECHO_N "checking for int... $ECHO_C" >&6
48969 if test "${ac_cv_type_int+set}" = set; then
48970 echo $ECHO_N "(cached) $ECHO_C" >&6
48972 cat >conftest.$ac_ext <<_ACEOF
48975 cat confdefs.h >>conftest.$ac_ext
48976 cat >>conftest.$ac_ext <<_ACEOF
48977 /* end confdefs.h. */
48978 $ac_includes_default
48990 rm -f conftest.$ac_objext
48991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48992 (eval $ac_compile) 2>conftest.er1
48994 grep -v '^ *+' conftest.er1 >conftest.err
48996 cat conftest.err >&5
48997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48998 (exit $ac_status); } &&
48999 { ac_try='test -z "$ac_c_werror_flag"
49000 || test ! -s conftest.err'
49001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49002 (eval $ac_try) 2>&5
49004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49005 (exit $ac_status); }; } &&
49006 { ac_try='test -s conftest.$ac_objext'
49007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49008 (eval $ac_try) 2>&5
49010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49011 (exit $ac_status); }; }; then
49014 echo "$as_me: failed program was:" >&5
49015 sed 's/^/| /' conftest.$ac_ext >&5
49019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49021 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
49022 echo "${ECHO_T}$ac_cv_type_int" >&6
49024 echo "$as_me:$LINENO: checking size of int" >&5
49025 echo $ECHO_N "checking size of int... $ECHO_C" >&6
49026 if test "${ac_cv_sizeof_int+set}" = set; then
49027 echo $ECHO_N "(cached) $ECHO_C" >&6
49029 if test "$ac_cv_type_int" = yes; then
49030 # The cast to unsigned long works around a bug in the HP C Compiler
49031 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
49032 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
49033 # This bug is HP SR number 8606223364.
49034 if test "$cross_compiling" = yes; then
49035 # Depending upon the size, compute the lo and hi bounds.
49036 cat >conftest.$ac_ext <<_ACEOF
49039 cat confdefs.h >>conftest.$ac_ext
49040 cat >>conftest.$ac_ext <<_ACEOF
49041 /* end confdefs.h. */
49042 $ac_includes_default
49046 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
49053 rm -f conftest.$ac_objext
49054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49055 (eval $ac_compile) 2>conftest.er1
49057 grep -v '^ *+' conftest.er1 >conftest.err
49059 cat conftest.err >&5
49060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49061 (exit $ac_status); } &&
49062 { ac_try='test -z "$ac_c_werror_flag"
49063 || test ! -s conftest.err'
49064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49065 (eval $ac_try) 2>&5
49067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49068 (exit $ac_status); }; } &&
49069 { ac_try='test -s conftest.$ac_objext'
49070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49071 (eval $ac_try) 2>&5
49073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49074 (exit $ac_status); }; }; then
49077 cat >conftest.$ac_ext <<_ACEOF
49080 cat confdefs.h >>conftest.$ac_ext
49081 cat >>conftest.$ac_ext <<_ACEOF
49082 /* end confdefs.h. */
49083 $ac_includes_default
49087 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
49094 rm -f conftest.$ac_objext
49095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49096 (eval $ac_compile) 2>conftest.er1
49098 grep -v '^ *+' conftest.er1 >conftest.err
49100 cat conftest.err >&5
49101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49102 (exit $ac_status); } &&
49103 { ac_try='test -z "$ac_c_werror_flag"
49104 || test ! -s conftest.err'
49105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49106 (eval $ac_try) 2>&5
49108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49109 (exit $ac_status); }; } &&
49110 { ac_try='test -s conftest.$ac_objext'
49111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49112 (eval $ac_try) 2>&5
49114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49115 (exit $ac_status); }; }; then
49116 ac_hi=$ac_mid; break
49118 echo "$as_me: failed program was:" >&5
49119 sed 's/^/| /' conftest.$ac_ext >&5
49121 ac_lo=`expr $ac_mid + 1`
49122 if test $ac_lo -le $ac_mid; then
49126 ac_mid=`expr 2 '*' $ac_mid + 1`
49128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49131 echo "$as_me: failed program was:" >&5
49132 sed 's/^/| /' conftest.$ac_ext >&5
49134 cat >conftest.$ac_ext <<_ACEOF
49137 cat confdefs.h >>conftest.$ac_ext
49138 cat >>conftest.$ac_ext <<_ACEOF
49139 /* end confdefs.h. */
49140 $ac_includes_default
49144 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
49151 rm -f conftest.$ac_objext
49152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49153 (eval $ac_compile) 2>conftest.er1
49155 grep -v '^ *+' conftest.er1 >conftest.err
49157 cat conftest.err >&5
49158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49159 (exit $ac_status); } &&
49160 { ac_try='test -z "$ac_c_werror_flag"
49161 || test ! -s conftest.err'
49162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49163 (eval $ac_try) 2>&5
49165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49166 (exit $ac_status); }; } &&
49167 { ac_try='test -s conftest.$ac_objext'
49168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49169 (eval $ac_try) 2>&5
49171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49172 (exit $ac_status); }; }; then
49175 cat >conftest.$ac_ext <<_ACEOF
49178 cat confdefs.h >>conftest.$ac_ext
49179 cat >>conftest.$ac_ext <<_ACEOF
49180 /* end confdefs.h. */
49181 $ac_includes_default
49185 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
49192 rm -f conftest.$ac_objext
49193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49194 (eval $ac_compile) 2>conftest.er1
49196 grep -v '^ *+' conftest.er1 >conftest.err
49198 cat conftest.err >&5
49199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49200 (exit $ac_status); } &&
49201 { ac_try='test -z "$ac_c_werror_flag"
49202 || test ! -s conftest.err'
49203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49204 (eval $ac_try) 2>&5
49206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49207 (exit $ac_status); }; } &&
49208 { ac_try='test -s conftest.$ac_objext'
49209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49210 (eval $ac_try) 2>&5
49212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49213 (exit $ac_status); }; }; then
49214 ac_lo=$ac_mid; break
49216 echo "$as_me: failed program was:" >&5
49217 sed 's/^/| /' conftest.$ac_ext >&5
49219 ac_hi=`expr '(' $ac_mid ')' - 1`
49220 if test $ac_mid -le $ac_hi; then
49224 ac_mid=`expr 2 '*' $ac_mid`
49226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49229 echo "$as_me: failed program was:" >&5
49230 sed 's/^/| /' conftest.$ac_ext >&5
49234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49237 # Binary search between lo and hi bounds.
49238 while test "x$ac_lo" != "x$ac_hi"; do
49239 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
49240 cat >conftest.$ac_ext <<_ACEOF
49243 cat confdefs.h >>conftest.$ac_ext
49244 cat >>conftest.$ac_ext <<_ACEOF
49245 /* end confdefs.h. */
49246 $ac_includes_default
49250 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
49257 rm -f conftest.$ac_objext
49258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49259 (eval $ac_compile) 2>conftest.er1
49261 grep -v '^ *+' conftest.er1 >conftest.err
49263 cat conftest.err >&5
49264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49265 (exit $ac_status); } &&
49266 { ac_try='test -z "$ac_c_werror_flag"
49267 || test ! -s conftest.err'
49268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49269 (eval $ac_try) 2>&5
49271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49272 (exit $ac_status); }; } &&
49273 { ac_try='test -s conftest.$ac_objext'
49274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49275 (eval $ac_try) 2>&5
49277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49278 (exit $ac_status); }; }; then
49281 echo "$as_me: failed program was:" >&5
49282 sed 's/^/| /' conftest.$ac_ext >&5
49284 ac_lo=`expr '(' $ac_mid ')' + 1`
49286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49289 ?*) ac_cv_sizeof_int=$ac_lo;;
49290 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
49291 See \`config.log' for more details." >&5
49292 echo "$as_me: error: cannot compute sizeof (int), 77
49293 See \`config.log' for more details." >&2;}
49294 { (exit 1); exit 1; }; } ;;
49297 if test "$cross_compiling" = yes; then
49298 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
49299 See \`config.log' for more details." >&5
49300 echo "$as_me: error: cannot run test program while cross compiling
49301 See \`config.log' for more details." >&2;}
49302 { (exit 1); exit 1; }; }
49304 cat >conftest.$ac_ext <<_ACEOF
49307 cat confdefs.h >>conftest.$ac_ext
49308 cat >>conftest.$ac_ext <<_ACEOF
49309 /* end confdefs.h. */
49310 $ac_includes_default
49311 long longval () { return (long) (sizeof (int)); }
49312 unsigned long ulongval () { return (long) (sizeof (int)); }
49314 #include <stdlib.h>
49319 FILE *f = fopen ("conftest.val", "w");
49322 if (((long) (sizeof (int))) < 0)
49324 long i = longval ();
49325 if (i != ((long) (sizeof (int))))
49327 fprintf (f, "%ld\n", i);
49331 unsigned long i = ulongval ();
49332 if (i != ((long) (sizeof (int))))
49334 fprintf (f, "%lu\n", i);
49336 exit (ferror (f) || fclose (f) != 0);
49342 rm -f conftest$ac_exeext
49343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49344 (eval $ac_link) 2>&5
49346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49347 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49349 (eval $ac_try) 2>&5
49351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49352 (exit $ac_status); }; }; then
49353 ac_cv_sizeof_int=`cat conftest.val`
49355 echo "$as_me: program exited with status $ac_status" >&5
49356 echo "$as_me: failed program was:" >&5
49357 sed 's/^/| /' conftest.$ac_ext >&5
49359 ( exit $ac_status )
49360 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
49361 See \`config.log' for more details." >&5
49362 echo "$as_me: error: cannot compute sizeof (int), 77
49363 See \`config.log' for more details." >&2;}
49364 { (exit 1); exit 1; }; }
49366 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49374 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
49375 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
49376 cat >>confdefs.h <<_ACEOF
49377 #define SIZEOF_INT $ac_cv_sizeof_int
49381 echo "$as_me:$LINENO: checking for long" >&5
49382 echo $ECHO_N "checking for long... $ECHO_C" >&6
49383 if test "${ac_cv_type_long+set}" = set; then
49384 echo $ECHO_N "(cached) $ECHO_C" >&6
49386 cat >conftest.$ac_ext <<_ACEOF
49389 cat confdefs.h >>conftest.$ac_ext
49390 cat >>conftest.$ac_ext <<_ACEOF
49391 /* end confdefs.h. */
49392 $ac_includes_default
49404 rm -f conftest.$ac_objext
49405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49406 (eval $ac_compile) 2>conftest.er1
49408 grep -v '^ *+' conftest.er1 >conftest.err
49410 cat conftest.err >&5
49411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49412 (exit $ac_status); } &&
49413 { ac_try='test -z "$ac_c_werror_flag"
49414 || test ! -s conftest.err'
49415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49416 (eval $ac_try) 2>&5
49418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49419 (exit $ac_status); }; } &&
49420 { ac_try='test -s conftest.$ac_objext'
49421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49422 (eval $ac_try) 2>&5
49424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49425 (exit $ac_status); }; }; then
49426 ac_cv_type_long=yes
49428 echo "$as_me: failed program was:" >&5
49429 sed 's/^/| /' conftest.$ac_ext >&5
49433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49435 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
49436 echo "${ECHO_T}$ac_cv_type_long" >&6
49438 echo "$as_me:$LINENO: checking size of long" >&5
49439 echo $ECHO_N "checking size of long... $ECHO_C" >&6
49440 if test "${ac_cv_sizeof_long+set}" = set; then
49441 echo $ECHO_N "(cached) $ECHO_C" >&6
49443 if test "$ac_cv_type_long" = yes; then
49444 # The cast to unsigned long works around a bug in the HP C Compiler
49445 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
49446 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
49447 # This bug is HP SR number 8606223364.
49448 if test "$cross_compiling" = yes; then
49449 # Depending upon the size, compute the lo and hi bounds.
49450 cat >conftest.$ac_ext <<_ACEOF
49453 cat confdefs.h >>conftest.$ac_ext
49454 cat >>conftest.$ac_ext <<_ACEOF
49455 /* end confdefs.h. */
49456 $ac_includes_default
49460 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
49467 rm -f conftest.$ac_objext
49468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49469 (eval $ac_compile) 2>conftest.er1
49471 grep -v '^ *+' conftest.er1 >conftest.err
49473 cat conftest.err >&5
49474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49475 (exit $ac_status); } &&
49476 { ac_try='test -z "$ac_c_werror_flag"
49477 || test ! -s conftest.err'
49478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49479 (eval $ac_try) 2>&5
49481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49482 (exit $ac_status); }; } &&
49483 { ac_try='test -s conftest.$ac_objext'
49484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49485 (eval $ac_try) 2>&5
49487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49488 (exit $ac_status); }; }; then
49491 cat >conftest.$ac_ext <<_ACEOF
49494 cat confdefs.h >>conftest.$ac_ext
49495 cat >>conftest.$ac_ext <<_ACEOF
49496 /* end confdefs.h. */
49497 $ac_includes_default
49501 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
49508 rm -f conftest.$ac_objext
49509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49510 (eval $ac_compile) 2>conftest.er1
49512 grep -v '^ *+' conftest.er1 >conftest.err
49514 cat conftest.err >&5
49515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49516 (exit $ac_status); } &&
49517 { ac_try='test -z "$ac_c_werror_flag"
49518 || test ! -s conftest.err'
49519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49520 (eval $ac_try) 2>&5
49522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49523 (exit $ac_status); }; } &&
49524 { ac_try='test -s conftest.$ac_objext'
49525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49526 (eval $ac_try) 2>&5
49528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49529 (exit $ac_status); }; }; then
49530 ac_hi=$ac_mid; break
49532 echo "$as_me: failed program was:" >&5
49533 sed 's/^/| /' conftest.$ac_ext >&5
49535 ac_lo=`expr $ac_mid + 1`
49536 if test $ac_lo -le $ac_mid; then
49540 ac_mid=`expr 2 '*' $ac_mid + 1`
49542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49545 echo "$as_me: failed program was:" >&5
49546 sed 's/^/| /' conftest.$ac_ext >&5
49548 cat >conftest.$ac_ext <<_ACEOF
49551 cat confdefs.h >>conftest.$ac_ext
49552 cat >>conftest.$ac_ext <<_ACEOF
49553 /* end confdefs.h. */
49554 $ac_includes_default
49558 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
49565 rm -f conftest.$ac_objext
49566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49567 (eval $ac_compile) 2>conftest.er1
49569 grep -v '^ *+' conftest.er1 >conftest.err
49571 cat conftest.err >&5
49572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49573 (exit $ac_status); } &&
49574 { ac_try='test -z "$ac_c_werror_flag"
49575 || test ! -s conftest.err'
49576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49577 (eval $ac_try) 2>&5
49579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49580 (exit $ac_status); }; } &&
49581 { ac_try='test -s conftest.$ac_objext'
49582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49583 (eval $ac_try) 2>&5
49585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49586 (exit $ac_status); }; }; then
49589 cat >conftest.$ac_ext <<_ACEOF
49592 cat confdefs.h >>conftest.$ac_ext
49593 cat >>conftest.$ac_ext <<_ACEOF
49594 /* end confdefs.h. */
49595 $ac_includes_default
49599 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
49606 rm -f conftest.$ac_objext
49607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49608 (eval $ac_compile) 2>conftest.er1
49610 grep -v '^ *+' conftest.er1 >conftest.err
49612 cat conftest.err >&5
49613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49614 (exit $ac_status); } &&
49615 { ac_try='test -z "$ac_c_werror_flag"
49616 || test ! -s conftest.err'
49617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49618 (eval $ac_try) 2>&5
49620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49621 (exit $ac_status); }; } &&
49622 { ac_try='test -s conftest.$ac_objext'
49623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49624 (eval $ac_try) 2>&5
49626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49627 (exit $ac_status); }; }; then
49628 ac_lo=$ac_mid; break
49630 echo "$as_me: failed program was:" >&5
49631 sed 's/^/| /' conftest.$ac_ext >&5
49633 ac_hi=`expr '(' $ac_mid ')' - 1`
49634 if test $ac_mid -le $ac_hi; then
49638 ac_mid=`expr 2 '*' $ac_mid`
49640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49643 echo "$as_me: failed program was:" >&5
49644 sed 's/^/| /' conftest.$ac_ext >&5
49648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49651 # Binary search between lo and hi bounds.
49652 while test "x$ac_lo" != "x$ac_hi"; do
49653 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
49654 cat >conftest.$ac_ext <<_ACEOF
49657 cat confdefs.h >>conftest.$ac_ext
49658 cat >>conftest.$ac_ext <<_ACEOF
49659 /* end confdefs.h. */
49660 $ac_includes_default
49664 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
49671 rm -f conftest.$ac_objext
49672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49673 (eval $ac_compile) 2>conftest.er1
49675 grep -v '^ *+' conftest.er1 >conftest.err
49677 cat conftest.err >&5
49678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49679 (exit $ac_status); } &&
49680 { ac_try='test -z "$ac_c_werror_flag"
49681 || test ! -s conftest.err'
49682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49683 (eval $ac_try) 2>&5
49685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49686 (exit $ac_status); }; } &&
49687 { ac_try='test -s conftest.$ac_objext'
49688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49689 (eval $ac_try) 2>&5
49691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49692 (exit $ac_status); }; }; then
49695 echo "$as_me: failed program was:" >&5
49696 sed 's/^/| /' conftest.$ac_ext >&5
49698 ac_lo=`expr '(' $ac_mid ')' + 1`
49700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49703 ?*) ac_cv_sizeof_long=$ac_lo;;
49704 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
49705 See \`config.log' for more details." >&5
49706 echo "$as_me: error: cannot compute sizeof (long), 77
49707 See \`config.log' for more details." >&2;}
49708 { (exit 1); exit 1; }; } ;;
49711 if test "$cross_compiling" = yes; then
49712 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
49713 See \`config.log' for more details." >&5
49714 echo "$as_me: error: cannot run test program while cross compiling
49715 See \`config.log' for more details." >&2;}
49716 { (exit 1); exit 1; }; }
49718 cat >conftest.$ac_ext <<_ACEOF
49721 cat confdefs.h >>conftest.$ac_ext
49722 cat >>conftest.$ac_ext <<_ACEOF
49723 /* end confdefs.h. */
49724 $ac_includes_default
49725 long longval () { return (long) (sizeof (long)); }
49726 unsigned long ulongval () { return (long) (sizeof (long)); }
49728 #include <stdlib.h>
49733 FILE *f = fopen ("conftest.val", "w");
49736 if (((long) (sizeof (long))) < 0)
49738 long i = longval ();
49739 if (i != ((long) (sizeof (long))))
49741 fprintf (f, "%ld\n", i);
49745 unsigned long i = ulongval ();
49746 if (i != ((long) (sizeof (long))))
49748 fprintf (f, "%lu\n", i);
49750 exit (ferror (f) || fclose (f) != 0);
49756 rm -f conftest$ac_exeext
49757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49758 (eval $ac_link) 2>&5
49760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49761 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49763 (eval $ac_try) 2>&5
49765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49766 (exit $ac_status); }; }; then
49767 ac_cv_sizeof_long=`cat conftest.val`
49769 echo "$as_me: program exited with status $ac_status" >&5
49770 echo "$as_me: failed program was:" >&5
49771 sed 's/^/| /' conftest.$ac_ext >&5
49773 ( exit $ac_status )
49774 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
49775 See \`config.log' for more details." >&5
49776 echo "$as_me: error: cannot compute sizeof (long), 77
49777 See \`config.log' for more details." >&2;}
49778 { (exit 1); exit 1; }; }
49780 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49785 ac_cv_sizeof_long=0
49788 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
49789 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
49790 cat >>confdefs.h <<_ACEOF
49791 #define SIZEOF_LONG $ac_cv_sizeof_long
49795 echo "$as_me:$LINENO: checking for wchar_t" >&5
49796 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
49797 if test "${ac_cv_type_wchar_t+set}" = set; then
49798 echo $ECHO_N "(cached) $ECHO_C" >&6
49800 cat >conftest.$ac_ext <<_ACEOF
49803 cat confdefs.h >>conftest.$ac_ext
49804 cat >>conftest.$ac_ext <<_ACEOF
49805 /* end confdefs.h. */
49806 $ac_includes_default
49812 if (sizeof (wchar_t))
49818 rm -f conftest.$ac_objext
49819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49820 (eval $ac_compile) 2>conftest.er1
49822 grep -v '^ *+' conftest.er1 >conftest.err
49824 cat conftest.err >&5
49825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49826 (exit $ac_status); } &&
49827 { ac_try='test -z "$ac_c_werror_flag"
49828 || test ! -s conftest.err'
49829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49830 (eval $ac_try) 2>&5
49832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49833 (exit $ac_status); }; } &&
49834 { ac_try='test -s conftest.$ac_objext'
49835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49836 (eval $ac_try) 2>&5
49838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49839 (exit $ac_status); }; }; then
49840 ac_cv_type_wchar_t=yes
49842 echo "$as_me: failed program was:" >&5
49843 sed 's/^/| /' conftest.$ac_ext >&5
49845 ac_cv_type_wchar_t=no
49847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49849 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
49850 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
49852 echo "$as_me:$LINENO: checking size of wchar_t" >&5
49853 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
49854 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
49855 echo $ECHO_N "(cached) $ECHO_C" >&6
49857 if test "$ac_cv_type_wchar_t" = yes; then
49858 # The cast to unsigned long works around a bug in the HP C Compiler
49859 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
49860 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
49861 # This bug is HP SR number 8606223364.
49862 if test "$cross_compiling" = yes; then
49863 # Depending upon the size, compute the lo and hi bounds.
49864 cat >conftest.$ac_ext <<_ACEOF
49867 cat confdefs.h >>conftest.$ac_ext
49868 cat >>conftest.$ac_ext <<_ACEOF
49869 /* end confdefs.h. */
49870 $ac_includes_default
49874 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
49881 rm -f conftest.$ac_objext
49882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49883 (eval $ac_compile) 2>conftest.er1
49885 grep -v '^ *+' conftest.er1 >conftest.err
49887 cat conftest.err >&5
49888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49889 (exit $ac_status); } &&
49890 { ac_try='test -z "$ac_c_werror_flag"
49891 || test ! -s conftest.err'
49892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49893 (eval $ac_try) 2>&5
49895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49896 (exit $ac_status); }; } &&
49897 { ac_try='test -s conftest.$ac_objext'
49898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49899 (eval $ac_try) 2>&5
49901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49902 (exit $ac_status); }; }; then
49905 cat >conftest.$ac_ext <<_ACEOF
49908 cat confdefs.h >>conftest.$ac_ext
49909 cat >>conftest.$ac_ext <<_ACEOF
49910 /* end confdefs.h. */
49911 $ac_includes_default
49915 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
49922 rm -f conftest.$ac_objext
49923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49924 (eval $ac_compile) 2>conftest.er1
49926 grep -v '^ *+' conftest.er1 >conftest.err
49928 cat conftest.err >&5
49929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49930 (exit $ac_status); } &&
49931 { ac_try='test -z "$ac_c_werror_flag"
49932 || test ! -s conftest.err'
49933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49934 (eval $ac_try) 2>&5
49936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49937 (exit $ac_status); }; } &&
49938 { ac_try='test -s conftest.$ac_objext'
49939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49940 (eval $ac_try) 2>&5
49942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49943 (exit $ac_status); }; }; then
49944 ac_hi=$ac_mid; break
49946 echo "$as_me: failed program was:" >&5
49947 sed 's/^/| /' conftest.$ac_ext >&5
49949 ac_lo=`expr $ac_mid + 1`
49950 if test $ac_lo -le $ac_mid; then
49954 ac_mid=`expr 2 '*' $ac_mid + 1`
49956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49959 echo "$as_me: failed program was:" >&5
49960 sed 's/^/| /' conftest.$ac_ext >&5
49962 cat >conftest.$ac_ext <<_ACEOF
49965 cat confdefs.h >>conftest.$ac_ext
49966 cat >>conftest.$ac_ext <<_ACEOF
49967 /* end confdefs.h. */
49968 $ac_includes_default
49972 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
49979 rm -f conftest.$ac_objext
49980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49981 (eval $ac_compile) 2>conftest.er1
49983 grep -v '^ *+' conftest.er1 >conftest.err
49985 cat conftest.err >&5
49986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49987 (exit $ac_status); } &&
49988 { ac_try='test -z "$ac_c_werror_flag"
49989 || test ! -s conftest.err'
49990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49991 (eval $ac_try) 2>&5
49993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49994 (exit $ac_status); }; } &&
49995 { ac_try='test -s conftest.$ac_objext'
49996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49997 (eval $ac_try) 2>&5
49999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50000 (exit $ac_status); }; }; then
50003 cat >conftest.$ac_ext <<_ACEOF
50006 cat confdefs.h >>conftest.$ac_ext
50007 cat >>conftest.$ac_ext <<_ACEOF
50008 /* end confdefs.h. */
50009 $ac_includes_default
50013 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
50020 rm -f conftest.$ac_objext
50021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50022 (eval $ac_compile) 2>conftest.er1
50024 grep -v '^ *+' conftest.er1 >conftest.err
50026 cat conftest.err >&5
50027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50028 (exit $ac_status); } &&
50029 { ac_try='test -z "$ac_c_werror_flag"
50030 || test ! -s conftest.err'
50031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50032 (eval $ac_try) 2>&5
50034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50035 (exit $ac_status); }; } &&
50036 { ac_try='test -s conftest.$ac_objext'
50037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50038 (eval $ac_try) 2>&5
50040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50041 (exit $ac_status); }; }; then
50042 ac_lo=$ac_mid; break
50044 echo "$as_me: failed program was:" >&5
50045 sed 's/^/| /' conftest.$ac_ext >&5
50047 ac_hi=`expr '(' $ac_mid ')' - 1`
50048 if test $ac_mid -le $ac_hi; then
50052 ac_mid=`expr 2 '*' $ac_mid`
50054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50057 echo "$as_me: failed program was:" >&5
50058 sed 's/^/| /' conftest.$ac_ext >&5
50062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50065 # Binary search between lo and hi bounds.
50066 while test "x$ac_lo" != "x$ac_hi"; do
50067 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
50068 cat >conftest.$ac_ext <<_ACEOF
50071 cat confdefs.h >>conftest.$ac_ext
50072 cat >>conftest.$ac_ext <<_ACEOF
50073 /* end confdefs.h. */
50074 $ac_includes_default
50078 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
50085 rm -f conftest.$ac_objext
50086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50087 (eval $ac_compile) 2>conftest.er1
50089 grep -v '^ *+' conftest.er1 >conftest.err
50091 cat conftest.err >&5
50092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50093 (exit $ac_status); } &&
50094 { ac_try='test -z "$ac_c_werror_flag"
50095 || test ! -s conftest.err'
50096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50097 (eval $ac_try) 2>&5
50099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50100 (exit $ac_status); }; } &&
50101 { ac_try='test -s conftest.$ac_objext'
50102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50103 (eval $ac_try) 2>&5
50105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50106 (exit $ac_status); }; }; then
50109 echo "$as_me: failed program was:" >&5
50110 sed 's/^/| /' conftest.$ac_ext >&5
50112 ac_lo=`expr '(' $ac_mid ')' + 1`
50114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50117 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
50118 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
50119 See \`config.log' for more details." >&5
50120 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
50121 See \`config.log' for more details." >&2;}
50122 { (exit 1); exit 1; }; } ;;
50125 if test "$cross_compiling" = yes; then
50126 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
50127 See \`config.log' for more details." >&5
50128 echo "$as_me: error: cannot run test program while cross compiling
50129 See \`config.log' for more details." >&2;}
50130 { (exit 1); exit 1; }; }
50132 cat >conftest.$ac_ext <<_ACEOF
50135 cat confdefs.h >>conftest.$ac_ext
50136 cat >>conftest.$ac_ext <<_ACEOF
50137 /* end confdefs.h. */
50138 $ac_includes_default
50139 long longval () { return (long) (sizeof (wchar_t)); }
50140 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
50142 #include <stdlib.h>
50147 FILE *f = fopen ("conftest.val", "w");
50150 if (((long) (sizeof (wchar_t))) < 0)
50152 long i = longval ();
50153 if (i != ((long) (sizeof (wchar_t))))
50155 fprintf (f, "%ld\n", i);
50159 unsigned long i = ulongval ();
50160 if (i != ((long) (sizeof (wchar_t))))
50162 fprintf (f, "%lu\n", i);
50164 exit (ferror (f) || fclose (f) != 0);
50170 rm -f conftest$ac_exeext
50171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50172 (eval $ac_link) 2>&5
50174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50175 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50177 (eval $ac_try) 2>&5
50179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50180 (exit $ac_status); }; }; then
50181 ac_cv_sizeof_wchar_t=`cat conftest.val`
50183 echo "$as_me: program exited with status $ac_status" >&5
50184 echo "$as_me: failed program was:" >&5
50185 sed 's/^/| /' conftest.$ac_ext >&5
50187 ( exit $ac_status )
50188 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
50189 See \`config.log' for more details." >&5
50190 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
50191 See \`config.log' for more details." >&2;}
50192 { (exit 1); exit 1; }; }
50194 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50199 ac_cv_sizeof_wchar_t=0
50202 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
50203 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
50204 cat >>confdefs.h <<_ACEOF
50205 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
50210 if test "$ac_cv_sizeof_int" -lt 4 ; then
50211 { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
50212 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
50215 cat >>confdefs.h <<\_ACEOF
50216 #define LBER_INT_T long
50221 cat >>confdefs.h <<\_ACEOF
50222 #define LBER_INT_T int
50228 cat >>confdefs.h <<\_ACEOF
50229 #define LBER_LEN_T long
50233 cat >>confdefs.h <<\_ACEOF
50234 #define LBER_SOCKET_T int
50238 cat >>confdefs.h <<\_ACEOF
50239 #define LBER_TAG_T long
50243 echo "$as_me:$LINENO: checking for working memcmp" >&5
50244 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
50245 if test "${ac_cv_func_memcmp_working+set}" = set; then
50246 echo $ECHO_N "(cached) $ECHO_C" >&6
50248 if test "$cross_compiling" = yes; then
50249 ac_cv_func_memcmp_working=no
50251 cat >conftest.$ac_ext <<_ACEOF
50254 cat confdefs.h >>conftest.$ac_ext
50255 cat >>conftest.$ac_ext <<_ACEOF
50256 /* end confdefs.h. */
50257 $ac_includes_default
50262 /* Some versions of memcmp are not 8-bit clean. */
50263 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
50264 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
50267 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
50268 or more and with at least one buffer not starting on a 4-byte boundary.
50269 William Lewis provided this test program. */
50274 for (i = 0; i < 4; i++)
50278 strcpy (a, "--------01111111");
50279 strcpy (b, "--------10000000");
50280 if (memcmp (a, b, 16) >= 0)
50290 rm -f conftest$ac_exeext
50291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50292 (eval $ac_link) 2>&5
50294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50295 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50297 (eval $ac_try) 2>&5
50299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50300 (exit $ac_status); }; }; then
50301 ac_cv_func_memcmp_working=yes
50303 echo "$as_me: program exited with status $ac_status" >&5
50304 echo "$as_me: failed program was:" >&5
50305 sed 's/^/| /' conftest.$ac_ext >&5
50307 ( exit $ac_status )
50308 ac_cv_func_memcmp_working=no
50310 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50313 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
50314 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
50315 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
50316 "memcmp.$ac_objext" | \
50317 *" memcmp.$ac_objext" | \
50318 "memcmp.$ac_objext "* | \
50319 *" memcmp.$ac_objext "* ) ;;
50320 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
50325 if test $ac_cv_func_memcmp_working = no ; then
50327 cat >>confdefs.h <<\_ACEOF
50328 #define NEED_MEMCMP_REPLACEMENT 1
50334 for ac_func in strftime
50336 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50337 echo "$as_me:$LINENO: checking for $ac_func" >&5
50338 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50339 if eval "test \"\${$as_ac_var+set}\" = set"; then
50340 echo $ECHO_N "(cached) $ECHO_C" >&6
50342 cat >conftest.$ac_ext <<_ACEOF
50345 cat confdefs.h >>conftest.$ac_ext
50346 cat >>conftest.$ac_ext <<_ACEOF
50347 /* end confdefs.h. */
50348 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50349 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50350 #define $ac_func innocuous_$ac_func
50352 /* System header to define __stub macros and hopefully few prototypes,
50353 which can conflict with char $ac_func (); below.
50354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50355 <limits.h> exists even on freestanding compilers. */
50358 # include <limits.h>
50360 # include <assert.h>
50365 /* Override any gcc2 internal prototype to avoid an error. */
50370 /* We use char because int might match the return type of a gcc2
50371 builtin and then its argument prototype would still apply. */
50373 /* The GNU C library defines this for functions which it implements
50374 to always fail with ENOSYS. Some functions are actually named
50375 something starting with __ and the normal name is an alias. */
50376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50379 char (*f) () = $ac_func;
50388 return f != $ac_func;
50393 rm -f conftest.$ac_objext conftest$ac_exeext
50394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50395 (eval $ac_link) 2>conftest.er1
50397 grep -v '^ *+' conftest.er1 >conftest.err
50399 cat conftest.err >&5
50400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50401 (exit $ac_status); } &&
50402 { ac_try='test -z "$ac_c_werror_flag"
50403 || test ! -s conftest.err'
50404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50405 (eval $ac_try) 2>&5
50407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50408 (exit $ac_status); }; } &&
50409 { ac_try='test -s conftest$ac_exeext'
50410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50411 (eval $ac_try) 2>&5
50413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50414 (exit $ac_status); }; }; then
50415 eval "$as_ac_var=yes"
50417 echo "$as_me: failed program was:" >&5
50418 sed 's/^/| /' conftest.$ac_ext >&5
50420 eval "$as_ac_var=no"
50422 rm -f conftest.err conftest.$ac_objext \
50423 conftest$ac_exeext conftest.$ac_ext
50425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50426 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50427 if test `eval echo '${'$as_ac_var'}'` = yes; then
50428 cat >>confdefs.h <<_ACEOF
50429 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50433 # strftime is in -lintl on SCO UNIX.
50434 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
50435 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
50436 if test "${ac_cv_lib_intl_strftime+set}" = set; then
50437 echo $ECHO_N "(cached) $ECHO_C" >&6
50439 ac_check_lib_save_LIBS=$LIBS
50440 LIBS="-lintl $LIBS"
50441 cat >conftest.$ac_ext <<_ACEOF
50444 cat confdefs.h >>conftest.$ac_ext
50445 cat >>conftest.$ac_ext <<_ACEOF
50446 /* end confdefs.h. */
50448 /* Override any gcc2 internal prototype to avoid an error. */
50452 /* We use char because int might match the return type of a gcc2
50453 builtin and then its argument prototype would still apply. */
50463 rm -f conftest.$ac_objext conftest$ac_exeext
50464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50465 (eval $ac_link) 2>conftest.er1
50467 grep -v '^ *+' conftest.er1 >conftest.err
50469 cat conftest.err >&5
50470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50471 (exit $ac_status); } &&
50472 { ac_try='test -z "$ac_c_werror_flag"
50473 || test ! -s conftest.err'
50474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50475 (eval $ac_try) 2>&5
50477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50478 (exit $ac_status); }; } &&
50479 { ac_try='test -s conftest$ac_exeext'
50480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50481 (eval $ac_try) 2>&5
50483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50484 (exit $ac_status); }; }; then
50485 ac_cv_lib_intl_strftime=yes
50487 echo "$as_me: failed program was:" >&5
50488 sed 's/^/| /' conftest.$ac_ext >&5
50490 ac_cv_lib_intl_strftime=no
50492 rm -f conftest.err conftest.$ac_objext \
50493 conftest$ac_exeext conftest.$ac_ext
50494 LIBS=$ac_check_lib_save_LIBS
50496 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
50497 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
50498 if test $ac_cv_lib_intl_strftime = yes; then
50499 cat >>confdefs.h <<\_ACEOF
50500 #define HAVE_STRFTIME 1
50503 LIBS="-lintl $LIBS"
50510 echo "$as_me:$LINENO: checking for inet_aton()" >&5
50511 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
50512 if test "${ol_cv_func_inet_aton+set}" = set; then
50513 echo $ECHO_N "(cached) $ECHO_C" >&6
50515 cat >conftest.$ac_ext <<_ACEOF
50518 cat confdefs.h >>conftest.$ac_ext
50519 cat >>conftest.$ac_ext <<_ACEOF
50520 /* end confdefs.h. */
50522 #ifdef HAVE_SYS_TYPES_H
50523 # include <sys/types.h>
50525 #ifdef HAVE_SYS_SOCKET_H
50526 # include <sys/socket.h>
50527 # ifdef HAVE_SYS_SELECT_H
50528 # include <sys/select.h>
50530 # include <netinet/in.h>
50531 # ifdef HAVE_ARPA_INET_H
50532 # include <arpa/inet.h>
50540 int rc = inet_aton( "255.255.255.255", &in );
50545 rm -f conftest.$ac_objext conftest$ac_exeext
50546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50547 (eval $ac_link) 2>conftest.er1
50549 grep -v '^ *+' conftest.er1 >conftest.err
50551 cat conftest.err >&5
50552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50553 (exit $ac_status); } &&
50554 { ac_try='test -z "$ac_c_werror_flag"
50555 || test ! -s conftest.err'
50556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50557 (eval $ac_try) 2>&5
50559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50560 (exit $ac_status); }; } &&
50561 { ac_try='test -s conftest$ac_exeext'
50562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50563 (eval $ac_try) 2>&5
50565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50566 (exit $ac_status); }; }; then
50567 ol_cv_func_inet_aton=yes
50569 echo "$as_me: failed program was:" >&5
50570 sed 's/^/| /' conftest.$ac_ext >&5
50572 ol_cv_func_inet_aton=no
50574 rm -f conftest.err conftest.$ac_objext \
50575 conftest$ac_exeext conftest.$ac_ext
50577 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
50578 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
50579 if test $ol_cv_func_inet_aton != no; then
50581 cat >>confdefs.h <<\_ACEOF
50582 #define HAVE_INET_ATON 1
50588 echo "$as_me:$LINENO: checking for _spawnlp" >&5
50589 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
50590 if test "${ac_cv_func__spawnlp+set}" = set; then
50591 echo $ECHO_N "(cached) $ECHO_C" >&6
50593 cat >conftest.$ac_ext <<_ACEOF
50596 cat confdefs.h >>conftest.$ac_ext
50597 cat >>conftest.$ac_ext <<_ACEOF
50598 /* end confdefs.h. */
50599 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
50600 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50601 #define _spawnlp innocuous__spawnlp
50603 /* System header to define __stub macros and hopefully few prototypes,
50604 which can conflict with char _spawnlp (); below.
50605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50606 <limits.h> exists even on freestanding compilers. */
50609 # include <limits.h>
50611 # include <assert.h>
50616 /* Override any gcc2 internal prototype to avoid an error. */
50621 /* We use char because int might match the return type of a gcc2
50622 builtin and then its argument prototype would still apply. */
50624 /* The GNU C library defines this for functions which it implements
50625 to always fail with ENOSYS. Some functions are actually named
50626 something starting with __ and the normal name is an alias. */
50627 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
50630 char (*f) () = _spawnlp;
50639 return f != _spawnlp;
50644 rm -f conftest.$ac_objext conftest$ac_exeext
50645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50646 (eval $ac_link) 2>conftest.er1
50648 grep -v '^ *+' conftest.er1 >conftest.err
50650 cat conftest.err >&5
50651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50652 (exit $ac_status); } &&
50653 { ac_try='test -z "$ac_c_werror_flag"
50654 || test ! -s conftest.err'
50655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50656 (eval $ac_try) 2>&5
50658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50659 (exit $ac_status); }; } &&
50660 { ac_try='test -s conftest$ac_exeext'
50661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50662 (eval $ac_try) 2>&5
50664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50665 (exit $ac_status); }; }; then
50666 ac_cv_func__spawnlp=yes
50668 echo "$as_me: failed program was:" >&5
50669 sed 's/^/| /' conftest.$ac_ext >&5
50671 ac_cv_func__spawnlp=no
50673 rm -f conftest.err conftest.$ac_objext \
50674 conftest$ac_exeext conftest.$ac_ext
50676 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
50677 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
50678 if test $ac_cv_func__spawnlp = yes; then
50680 cat >>confdefs.h <<\_ACEOF
50681 #define HAVE_SPAWNLP 1
50687 echo "$as_me:$LINENO: checking for _snprintf" >&5
50688 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
50689 if test "${ac_cv_func__snprintf+set}" = set; then
50690 echo $ECHO_N "(cached) $ECHO_C" >&6
50692 cat >conftest.$ac_ext <<_ACEOF
50695 cat confdefs.h >>conftest.$ac_ext
50696 cat >>conftest.$ac_ext <<_ACEOF
50697 /* end confdefs.h. */
50698 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
50699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50700 #define _snprintf innocuous__snprintf
50702 /* System header to define __stub macros and hopefully few prototypes,
50703 which can conflict with char _snprintf (); below.
50704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50705 <limits.h> exists even on freestanding compilers. */
50708 # include <limits.h>
50710 # include <assert.h>
50715 /* Override any gcc2 internal prototype to avoid an error. */
50720 /* We use char because int might match the return type of a gcc2
50721 builtin and then its argument prototype would still apply. */
50723 /* The GNU C library defines this for functions which it implements
50724 to always fail with ENOSYS. Some functions are actually named
50725 something starting with __ and the normal name is an alias. */
50726 #if defined (__stub__snprintf) || defined (__stub____snprintf)
50729 char (*f) () = _snprintf;
50738 return f != _snprintf;
50743 rm -f conftest.$ac_objext conftest$ac_exeext
50744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50745 (eval $ac_link) 2>conftest.er1
50747 grep -v '^ *+' conftest.er1 >conftest.err
50749 cat conftest.err >&5
50750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50751 (exit $ac_status); } &&
50752 { ac_try='test -z "$ac_c_werror_flag"
50753 || test ! -s conftest.err'
50754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50755 (eval $ac_try) 2>&5
50757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50758 (exit $ac_status); }; } &&
50759 { ac_try='test -s conftest$ac_exeext'
50760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50761 (eval $ac_try) 2>&5
50763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50764 (exit $ac_status); }; }; then
50765 ac_cv_func__snprintf=yes
50767 echo "$as_me: failed program was:" >&5
50768 sed 's/^/| /' conftest.$ac_ext >&5
50770 ac_cv_func__snprintf=no
50772 rm -f conftest.err conftest.$ac_objext \
50773 conftest$ac_exeext conftest.$ac_ext
50775 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
50776 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
50777 if test $ac_cv_func__snprintf = yes; then
50778 ac_cv_func_snprintf=yes
50780 cat >>confdefs.h <<\_ACEOF
50781 #define snprintf _snprintf
50788 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
50789 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
50790 if test "${ac_cv_func__vsnprintf+set}" = set; then
50791 echo $ECHO_N "(cached) $ECHO_C" >&6
50793 cat >conftest.$ac_ext <<_ACEOF
50796 cat confdefs.h >>conftest.$ac_ext
50797 cat >>conftest.$ac_ext <<_ACEOF
50798 /* end confdefs.h. */
50799 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
50800 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50801 #define _vsnprintf innocuous__vsnprintf
50803 /* System header to define __stub macros and hopefully few prototypes,
50804 which can conflict with char _vsnprintf (); below.
50805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50806 <limits.h> exists even on freestanding compilers. */
50809 # include <limits.h>
50811 # include <assert.h>
50816 /* Override any gcc2 internal prototype to avoid an error. */
50821 /* We use char because int might match the return type of a gcc2
50822 builtin and then its argument prototype would still apply. */
50823 char _vsnprintf ();
50824 /* The GNU C library defines this for functions which it implements
50825 to always fail with ENOSYS. Some functions are actually named
50826 something starting with __ and the normal name is an alias. */
50827 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
50830 char (*f) () = _vsnprintf;
50839 return f != _vsnprintf;
50844 rm -f conftest.$ac_objext conftest$ac_exeext
50845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50846 (eval $ac_link) 2>conftest.er1
50848 grep -v '^ *+' conftest.er1 >conftest.err
50850 cat conftest.err >&5
50851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50852 (exit $ac_status); } &&
50853 { ac_try='test -z "$ac_c_werror_flag"
50854 || test ! -s conftest.err'
50855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50856 (eval $ac_try) 2>&5
50858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50859 (exit $ac_status); }; } &&
50860 { ac_try='test -s conftest$ac_exeext'
50861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50862 (eval $ac_try) 2>&5
50864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50865 (exit $ac_status); }; }; then
50866 ac_cv_func__vsnprintf=yes
50868 echo "$as_me: failed program was:" >&5
50869 sed 's/^/| /' conftest.$ac_ext >&5
50871 ac_cv_func__vsnprintf=no
50873 rm -f conftest.err conftest.$ac_objext \
50874 conftest$ac_exeext conftest.$ac_ext
50876 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
50877 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
50878 if test $ac_cv_func__vsnprintf = yes; then
50879 ac_cv_func_vsnprintf=yes
50881 cat >>confdefs.h <<\_ACEOF
50882 #define vsnprintf _vsnprintf
50890 for ac_func in vprintf
50892 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50893 echo "$as_me:$LINENO: checking for $ac_func" >&5
50894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50895 if eval "test \"\${$as_ac_var+set}\" = set"; then
50896 echo $ECHO_N "(cached) $ECHO_C" >&6
50898 cat >conftest.$ac_ext <<_ACEOF
50901 cat confdefs.h >>conftest.$ac_ext
50902 cat >>conftest.$ac_ext <<_ACEOF
50903 /* end confdefs.h. */
50904 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50906 #define $ac_func innocuous_$ac_func
50908 /* System header to define __stub macros and hopefully few prototypes,
50909 which can conflict with char $ac_func (); below.
50910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50911 <limits.h> exists even on freestanding compilers. */
50914 # include <limits.h>
50916 # include <assert.h>
50921 /* Override any gcc2 internal prototype to avoid an error. */
50926 /* We use char because int might match the return type of a gcc2
50927 builtin and then its argument prototype would still apply. */
50929 /* The GNU C library defines this for functions which it implements
50930 to always fail with ENOSYS. Some functions are actually named
50931 something starting with __ and the normal name is an alias. */
50932 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50935 char (*f) () = $ac_func;
50944 return f != $ac_func;
50949 rm -f conftest.$ac_objext conftest$ac_exeext
50950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50951 (eval $ac_link) 2>conftest.er1
50953 grep -v '^ *+' conftest.er1 >conftest.err
50955 cat conftest.err >&5
50956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50957 (exit $ac_status); } &&
50958 { ac_try='test -z "$ac_c_werror_flag"
50959 || test ! -s conftest.err'
50960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50961 (eval $ac_try) 2>&5
50963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50964 (exit $ac_status); }; } &&
50965 { ac_try='test -s conftest$ac_exeext'
50966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50967 (eval $ac_try) 2>&5
50969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50970 (exit $ac_status); }; }; then
50971 eval "$as_ac_var=yes"
50973 echo "$as_me: failed program was:" >&5
50974 sed 's/^/| /' conftest.$ac_ext >&5
50976 eval "$as_ac_var=no"
50978 rm -f conftest.err conftest.$ac_objext \
50979 conftest$ac_exeext conftest.$ac_ext
50981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50982 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50983 if test `eval echo '${'$as_ac_var'}'` = yes; then
50984 cat >>confdefs.h <<_ACEOF
50985 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50988 echo "$as_me:$LINENO: checking for _doprnt" >&5
50989 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
50990 if test "${ac_cv_func__doprnt+set}" = set; then
50991 echo $ECHO_N "(cached) $ECHO_C" >&6
50993 cat >conftest.$ac_ext <<_ACEOF
50996 cat confdefs.h >>conftest.$ac_ext
50997 cat >>conftest.$ac_ext <<_ACEOF
50998 /* end confdefs.h. */
50999 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
51000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51001 #define _doprnt innocuous__doprnt
51003 /* System header to define __stub macros and hopefully few prototypes,
51004 which can conflict with char _doprnt (); below.
51005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51006 <limits.h> exists even on freestanding compilers. */
51009 # include <limits.h>
51011 # include <assert.h>
51016 /* Override any gcc2 internal prototype to avoid an error. */
51021 /* We use char because int might match the return type of a gcc2
51022 builtin and then its argument prototype would still apply. */
51024 /* The GNU C library defines this for functions which it implements
51025 to always fail with ENOSYS. Some functions are actually named
51026 something starting with __ and the normal name is an alias. */
51027 #if defined (__stub__doprnt) || defined (__stub____doprnt)
51030 char (*f) () = _doprnt;
51039 return f != _doprnt;
51044 rm -f conftest.$ac_objext conftest$ac_exeext
51045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51046 (eval $ac_link) 2>conftest.er1
51048 grep -v '^ *+' conftest.er1 >conftest.err
51050 cat conftest.err >&5
51051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51052 (exit $ac_status); } &&
51053 { ac_try='test -z "$ac_c_werror_flag"
51054 || test ! -s conftest.err'
51055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51056 (eval $ac_try) 2>&5
51058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51059 (exit $ac_status); }; } &&
51060 { ac_try='test -s conftest$ac_exeext'
51061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51062 (eval $ac_try) 2>&5
51064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51065 (exit $ac_status); }; }; then
51066 ac_cv_func__doprnt=yes
51068 echo "$as_me: failed program was:" >&5
51069 sed 's/^/| /' conftest.$ac_ext >&5
51071 ac_cv_func__doprnt=no
51073 rm -f conftest.err conftest.$ac_objext \
51074 conftest$ac_exeext conftest.$ac_ext
51076 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
51077 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
51078 if test $ac_cv_func__doprnt = yes; then
51080 cat >>confdefs.h <<\_ACEOF
51081 #define HAVE_DOPRNT 1
51091 if test $ac_cv_func_vprintf = yes ; then
51094 for ac_func in snprintf vsnprintf
51096 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51097 echo "$as_me:$LINENO: checking for $ac_func" >&5
51098 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51099 if eval "test \"\${$as_ac_var+set}\" = set"; then
51100 echo $ECHO_N "(cached) $ECHO_C" >&6
51102 cat >conftest.$ac_ext <<_ACEOF
51105 cat confdefs.h >>conftest.$ac_ext
51106 cat >>conftest.$ac_ext <<_ACEOF
51107 /* end confdefs.h. */
51108 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51109 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51110 #define $ac_func innocuous_$ac_func
51112 /* System header to define __stub macros and hopefully few prototypes,
51113 which can conflict with char $ac_func (); below.
51114 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51115 <limits.h> exists even on freestanding compilers. */
51118 # include <limits.h>
51120 # include <assert.h>
51125 /* Override any gcc2 internal prototype to avoid an error. */
51130 /* We use char because int might match the return type of a gcc2
51131 builtin and then its argument prototype would still apply. */
51133 /* The GNU C library defines this for functions which it implements
51134 to always fail with ENOSYS. Some functions are actually named
51135 something starting with __ and the normal name is an alias. */
51136 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51139 char (*f) () = $ac_func;
51148 return f != $ac_func;
51153 rm -f conftest.$ac_objext conftest$ac_exeext
51154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51155 (eval $ac_link) 2>conftest.er1
51157 grep -v '^ *+' conftest.er1 >conftest.err
51159 cat conftest.err >&5
51160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51161 (exit $ac_status); } &&
51162 { ac_try='test -z "$ac_c_werror_flag"
51163 || test ! -s conftest.err'
51164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51165 (eval $ac_try) 2>&5
51167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51168 (exit $ac_status); }; } &&
51169 { ac_try='test -s conftest$ac_exeext'
51170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51171 (eval $ac_try) 2>&5
51173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51174 (exit $ac_status); }; }; then
51175 eval "$as_ac_var=yes"
51177 echo "$as_me: failed program was:" >&5
51178 sed 's/^/| /' conftest.$ac_ext >&5
51180 eval "$as_ac_var=no"
51182 rm -f conftest.err conftest.$ac_objext \
51183 conftest$ac_exeext conftest.$ac_ext
51185 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51186 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51187 if test `eval echo '${'$as_ac_var'}'` = yes; then
51188 cat >>confdefs.h <<_ACEOF
51189 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51306 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51307 echo "$as_me:$LINENO: checking for $ac_func" >&5
51308 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51309 if eval "test \"\${$as_ac_var+set}\" = set"; then
51310 echo $ECHO_N "(cached) $ECHO_C" >&6
51312 cat >conftest.$ac_ext <<_ACEOF
51315 cat confdefs.h >>conftest.$ac_ext
51316 cat >>conftest.$ac_ext <<_ACEOF
51317 /* end confdefs.h. */
51318 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51319 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51320 #define $ac_func innocuous_$ac_func
51322 /* System header to define __stub macros and hopefully few prototypes,
51323 which can conflict with char $ac_func (); below.
51324 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51325 <limits.h> exists even on freestanding compilers. */
51328 # include <limits.h>
51330 # include <assert.h>
51335 /* Override any gcc2 internal prototype to avoid an error. */
51340 /* We use char because int might match the return type of a gcc2
51341 builtin and then its argument prototype would still apply. */
51343 /* The GNU C library defines this for functions which it implements
51344 to always fail with ENOSYS. Some functions are actually named
51345 something starting with __ and the normal name is an alias. */
51346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51349 char (*f) () = $ac_func;
51358 return f != $ac_func;
51363 rm -f conftest.$ac_objext conftest$ac_exeext
51364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51365 (eval $ac_link) 2>conftest.er1
51367 grep -v '^ *+' conftest.er1 >conftest.err
51369 cat conftest.err >&5
51370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51371 (exit $ac_status); } &&
51372 { ac_try='test -z "$ac_c_werror_flag"
51373 || test ! -s conftest.err'
51374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51375 (eval $ac_try) 2>&5
51377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51378 (exit $ac_status); }; } &&
51379 { ac_try='test -s conftest$ac_exeext'
51380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51381 (eval $ac_try) 2>&5
51383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51384 (exit $ac_status); }; }; then
51385 eval "$as_ac_var=yes"
51387 echo "$as_me: failed program was:" >&5
51388 sed 's/^/| /' conftest.$ac_ext >&5
51390 eval "$as_ac_var=no"
51392 rm -f conftest.err conftest.$ac_objext \
51393 conftest$ac_exeext conftest.$ac_ext
51395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51396 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51397 if test `eval echo '${'$as_ac_var'}'` = yes; then
51398 cat >>confdefs.h <<_ACEOF
51399 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51408 for ac_func in getopt getpeereid
51410 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51411 echo "$as_me:$LINENO: checking for $ac_func" >&5
51412 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51413 if eval "test \"\${$as_ac_var+set}\" = set"; then
51414 echo $ECHO_N "(cached) $ECHO_C" >&6
51416 cat >conftest.$ac_ext <<_ACEOF
51419 cat confdefs.h >>conftest.$ac_ext
51420 cat >>conftest.$ac_ext <<_ACEOF
51421 /* end confdefs.h. */
51422 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51423 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51424 #define $ac_func innocuous_$ac_func
51426 /* System header to define __stub macros and hopefully few prototypes,
51427 which can conflict with char $ac_func (); below.
51428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51429 <limits.h> exists even on freestanding compilers. */
51432 # include <limits.h>
51434 # include <assert.h>
51439 /* Override any gcc2 internal prototype to avoid an error. */
51444 /* We use char because int might match the return type of a gcc2
51445 builtin and then its argument prototype would still apply. */
51447 /* The GNU C library defines this for functions which it implements
51448 to always fail with ENOSYS. Some functions are actually named
51449 something starting with __ and the normal name is an alias. */
51450 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51453 char (*f) () = $ac_func;
51462 return f != $ac_func;
51467 rm -f conftest.$ac_objext conftest$ac_exeext
51468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51469 (eval $ac_link) 2>conftest.er1
51471 grep -v '^ *+' conftest.er1 >conftest.err
51473 cat conftest.err >&5
51474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51475 (exit $ac_status); } &&
51476 { ac_try='test -z "$ac_c_werror_flag"
51477 || test ! -s conftest.err'
51478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51479 (eval $ac_try) 2>&5
51481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51482 (exit $ac_status); }; } &&
51483 { ac_try='test -s conftest$ac_exeext'
51484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51485 (eval $ac_try) 2>&5
51487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51488 (exit $ac_status); }; }; then
51489 eval "$as_ac_var=yes"
51491 echo "$as_me: failed program was:" >&5
51492 sed 's/^/| /' conftest.$ac_ext >&5
51494 eval "$as_ac_var=no"
51496 rm -f conftest.err conftest.$ac_objext \
51497 conftest$ac_exeext conftest.$ac_ext
51499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51500 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51501 if test `eval echo '${'$as_ac_var'}'` = yes; then
51502 cat >>confdefs.h <<_ACEOF
51503 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51508 "$ac_func.$ac_objext" | \
51509 *" $ac_func.$ac_objext" | \
51510 "$ac_func.$ac_objext "* | \
51511 *" $ac_func.$ac_objext "* ) ;;
51512 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
51520 if test "$ac_cv_func_getopt" != yes; then
51521 LIBSRCS="$LIBSRCS getopt.c"
51523 if test "$ac_cv_func_getpeereid" != yes; then
51524 echo "$as_me:$LINENO: checking for msg_accrights in msghdr" >&5
51525 echo $ECHO_N "checking for msg_accrights in msghdr... $ECHO_C" >&6
51526 if test "${ol_cv_msghdr_msg_accrights+set}" = set; then
51527 echo $ECHO_N "(cached) $ECHO_C" >&6
51529 cat >conftest.$ac_ext <<_ACEOF
51532 cat confdefs.h >>conftest.$ac_ext
51533 cat >>conftest.$ac_ext <<_ACEOF
51534 /* end confdefs.h. */
51535 #include <sys/socket.h>
51539 struct msghdr m; m.msg_accrightslen=0
51544 rm -f conftest.$ac_objext
51545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51546 (eval $ac_compile) 2>conftest.er1
51548 grep -v '^ *+' conftest.er1 >conftest.err
51550 cat conftest.err >&5
51551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51552 (exit $ac_status); } &&
51553 { ac_try='test -z "$ac_c_werror_flag"
51554 || test ! -s conftest.err'
51555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51556 (eval $ac_try) 2>&5
51558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51559 (exit $ac_status); }; } &&
51560 { ac_try='test -s conftest.$ac_objext'
51561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51562 (eval $ac_try) 2>&5
51564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51565 (exit $ac_status); }; }; then
51566 ol_cv_msghdr_msg_accrights=yes
51568 echo "$as_me: failed program was:" >&5
51569 sed 's/^/| /' conftest.$ac_ext >&5
51571 ol_cv_msghdr_msg_accrights=no
51573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51575 echo "$as_me:$LINENO: result: $ol_cv_msghdr_msg_accrights" >&5
51576 echo "${ECHO_T}$ol_cv_msghdr_msg_accrights" >&6
51577 if test $ol_cv_msghdr_msg_accrights = "yes" ; then
51579 cat >>confdefs.h <<\_ACEOF
51580 #define HAVE_MSGHDR_MSG_ACCRIGHTS 1
51585 if test "$ac_cv_func_getpeereid" != yes; then
51586 echo "$as_me:$LINENO: checking for msg_control in msghdr" >&5
51587 echo $ECHO_N "checking for msg_control in msghdr... $ECHO_C" >&6
51588 if test "${ol_cv_msghdr_msg_control+set}" = set; then
51589 echo $ECHO_N "(cached) $ECHO_C" >&6
51591 cat >conftest.$ac_ext <<_ACEOF
51594 cat confdefs.h >>conftest.$ac_ext
51595 cat >>conftest.$ac_ext <<_ACEOF
51596 /* end confdefs.h. */
51597 #include <sys/socket.h>
51601 struct msghdr m; m.msg_control=(struct cmsghdr *)0
51606 rm -f conftest.$ac_objext
51607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51608 (eval $ac_compile) 2>conftest.er1
51610 grep -v '^ *+' conftest.er1 >conftest.err
51612 cat conftest.err >&5
51613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51614 (exit $ac_status); } &&
51615 { ac_try='test -z "$ac_c_werror_flag"
51616 || test ! -s conftest.err'
51617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51618 (eval $ac_try) 2>&5
51620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51621 (exit $ac_status); }; } &&
51622 { ac_try='test -s conftest.$ac_objext'
51623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51624 (eval $ac_try) 2>&5
51626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51627 (exit $ac_status); }; }; then
51628 ol_cv_msghdr_msg_control=yes
51630 echo "$as_me: failed program was:" >&5
51631 sed 's/^/| /' conftest.$ac_ext >&5
51633 ol_cv_msghdr_msg_control=no
51635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51637 echo "$as_me:$LINENO: result: $ol_cv_msghdr_msg_control" >&5
51638 echo "${ECHO_T}$ol_cv_msghdr_msg_control" >&6
51639 if test $ol_cv_msghdr_msg_control = "yes" ; then
51641 cat >>confdefs.h <<\_ACEOF
51642 #define HAVE_MSGHDR_MSG_CONTROL 1
51648 LIBSRCS="$LIBSRCS getpeereid.c"
51650 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
51651 if test "$ac_cv_func_snprintf" != yes; then
51653 cat >>confdefs.h <<\_ACEOF
51654 #define snprintf ber_pvt_snprintf
51658 if test "$ac_cv_func_vsnprintf" != yes; then
51660 cat >>confdefs.h <<\_ACEOF
51661 #define vsnprintf ber_pvt_vsnprintf
51668 if test "$ol_enable_slapi" != no ; then
51670 for ac_header in ltdl.h
51672 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
51673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51674 echo "$as_me:$LINENO: checking for $ac_header" >&5
51675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51676 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51677 echo $ECHO_N "(cached) $ECHO_C" >&6
51679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51680 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51682 # Is the header compilable?
51683 echo "$as_me:$LINENO: checking $ac_header usability" >&5
51684 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
51685 cat >conftest.$ac_ext <<_ACEOF
51688 cat confdefs.h >>conftest.$ac_ext
51689 cat >>conftest.$ac_ext <<_ACEOF
51690 /* end confdefs.h. */
51691 $ac_includes_default
51692 #include <$ac_header>
51694 rm -f conftest.$ac_objext
51695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51696 (eval $ac_compile) 2>conftest.er1
51698 grep -v '^ *+' conftest.er1 >conftest.err
51700 cat conftest.err >&5
51701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51702 (exit $ac_status); } &&
51703 { ac_try='test -z "$ac_c_werror_flag"
51704 || test ! -s conftest.err'
51705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51706 (eval $ac_try) 2>&5
51708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51709 (exit $ac_status); }; } &&
51710 { ac_try='test -s conftest.$ac_objext'
51711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51712 (eval $ac_try) 2>&5
51714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51715 (exit $ac_status); }; }; then
51716 ac_header_compiler=yes
51718 echo "$as_me: failed program was:" >&5
51719 sed 's/^/| /' conftest.$ac_ext >&5
51721 ac_header_compiler=no
51723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51724 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
51725 echo "${ECHO_T}$ac_header_compiler" >&6
51727 # Is the header present?
51728 echo "$as_me:$LINENO: checking $ac_header presence" >&5
51729 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
51730 cat >conftest.$ac_ext <<_ACEOF
51733 cat confdefs.h >>conftest.$ac_ext
51734 cat >>conftest.$ac_ext <<_ACEOF
51735 /* end confdefs.h. */
51736 #include <$ac_header>
51738 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
51739 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
51741 grep -v '^ *+' conftest.er1 >conftest.err
51743 cat conftest.err >&5
51744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51745 (exit $ac_status); } >/dev/null; then
51746 if test -s conftest.err; then
51747 ac_cpp_err=$ac_c_preproc_warn_flag
51748 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
51755 if test -z "$ac_cpp_err"; then
51756 ac_header_preproc=yes
51758 echo "$as_me: failed program was:" >&5
51759 sed 's/^/| /' conftest.$ac_ext >&5
51761 ac_header_preproc=no
51763 rm -f conftest.err conftest.$ac_ext
51764 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
51765 echo "${ECHO_T}$ac_header_preproc" >&6
51767 # So? What about this header?
51768 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
51770 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
51771 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
51772 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
51773 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
51774 ac_header_preproc=yes
51777 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
51778 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
51779 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
51780 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
51781 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
51782 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
51783 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
51784 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
51785 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
51786 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
51787 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
51788 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
51791 ## ------------------------------------------ ##
51792 ## Report this to the AC_PACKAGE_NAME lists. ##
51793 ## ------------------------------------------ ##
51796 sed "s/^/$as_me: WARNING: /" >&2
51799 echo "$as_me:$LINENO: checking for $ac_header" >&5
51800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51802 echo $ECHO_N "(cached) $ECHO_C" >&6
51804 eval "$as_ac_Header=\$ac_header_preproc"
51806 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51807 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51810 if test `eval echo '${'$as_ac_Header'}'` = yes; then
51811 cat >>confdefs.h <<_ACEOF
51812 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
51820 if test $ac_cv_header_ltdl_h != yes ; then
51821 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
51822 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
51823 { (exit 1); exit 1; }; }
51825 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
51826 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
51827 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
51828 echo $ECHO_N "(cached) $ECHO_C" >&6
51830 ac_check_lib_save_LIBS=$LIBS
51831 LIBS="-lltdl $LIBS"
51832 cat >conftest.$ac_ext <<_ACEOF
51835 cat confdefs.h >>conftest.$ac_ext
51836 cat >>conftest.$ac_ext <<_ACEOF
51837 /* end confdefs.h. */
51839 /* Override any gcc2 internal prototype to avoid an error. */
51843 /* We use char because int might match the return type of a gcc2
51844 builtin and then its argument prototype would still apply. */
51854 rm -f conftest.$ac_objext conftest$ac_exeext
51855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51856 (eval $ac_link) 2>conftest.er1
51858 grep -v '^ *+' conftest.er1 >conftest.err
51860 cat conftest.err >&5
51861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51862 (exit $ac_status); } &&
51863 { ac_try='test -z "$ac_c_werror_flag"
51864 || test ! -s conftest.err'
51865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51866 (eval $ac_try) 2>&5
51868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51869 (exit $ac_status); }; } &&
51870 { ac_try='test -s conftest$ac_exeext'
51871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51872 (eval $ac_try) 2>&5
51874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51875 (exit $ac_status); }; }; then
51876 ac_cv_lib_ltdl_lt_dlinit=yes
51878 echo "$as_me: failed program was:" >&5
51879 sed 's/^/| /' conftest.$ac_ext >&5
51881 ac_cv_lib_ltdl_lt_dlinit=no
51883 rm -f conftest.err conftest.$ac_objext \
51884 conftest$ac_exeext conftest.$ac_ext
51885 LIBS=$ac_check_lib_save_LIBS
51887 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
51888 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
51889 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
51892 LIBSLAPI=libslapi.a
51893 LIBSLAPITOOLS=../libslapi.a
51895 cat >>confdefs.h <<\_ACEOF
51896 #define HAVE_LIBLTDL 1
51901 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
51902 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
51903 { (exit 1); exit 1; }; }
51908 cat >>confdefs.h <<\_ACEOF
51909 #define LDAP_SLAPI 1
51914 if test "$ol_enable_debug" != no ; then
51916 cat >>confdefs.h <<\_ACEOF
51917 #define LDAP_DEBUG 1
51921 if test "$ol_enable_syslog" = yes ; then
51923 cat >>confdefs.h <<\_ACEOF
51924 #define LDAP_SYSLOG 1
51928 if test "$ol_link_kbind" != no ; then
51930 cat >>confdefs.h <<\_ACEOF
51931 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
51935 if test "$ol_enable_proctitle" != no ; then
51937 cat >>confdefs.h <<\_ACEOF
51938 #define LDAP_PROCTITLE 1
51942 if test "$ol_enable_referrals" != no ; then
51944 cat >>confdefs.h <<\_ACEOF
51945 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
51949 if test "$ol_enable_local" != no; then
51951 cat >>confdefs.h <<\_ACEOF
51952 #define LDAP_PF_LOCAL 1
51956 if test "$ol_link_ipv6" != no; then
51958 cat >>confdefs.h <<\_ACEOF
51959 #define LDAP_PF_INET6 1
51963 if test "$ol_enable_cleartext" != no ; then
51965 cat >>confdefs.h <<\_ACEOF
51966 #define SLAPD_CLEARTEXT 1
51970 if test "$ol_enable_crypt" != no ; then
51972 cat >>confdefs.h <<\_ACEOF
51973 #define SLAPD_CRYPT 1
51977 if test "$ol_link_spasswd" != no ; then
51979 cat >>confdefs.h <<\_ACEOF
51980 #define SLAPD_SPASSWD 1
51984 if test "$ol_enable_multimaster" != no ; then
51986 cat >>confdefs.h <<\_ACEOF
51987 #define SLAPD_MULTIMASTER 1
51991 if test "$ol_enable_rlookups" != no ; then
51993 cat >>confdefs.h <<\_ACEOF
51994 #define SLAPD_RLOOKUPS 1
51998 if test "$ol_enable_aci" != no ; then
52000 cat >>confdefs.h <<\_ACEOF
52001 #define SLAPD_ACI_ENABLED 1
52006 if test "$ol_link_modules" != no ; then
52008 cat >>confdefs.h <<\_ACEOF
52009 #define SLAPD_MODULES 1
52013 SLAPD_MODULES_LDFLAGS="-dlopen self"
52017 cat >>confdefs.h <<\_ACEOF
52018 #define SLAPD_MOD_STATIC 1
52022 cat >>confdefs.h <<\_ACEOF
52023 #define SLAPD_MOD_DYNAMIC 2
52027 if test "$ol_enable_bdb" != no ; then
52029 BUILD_BDB=$ol_enable_bdb
52030 if test "$ol_enable_bdb" = mod ; then
52031 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
52032 MFLAG=SLAPD_MOD_DYNAMIC
52034 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
52035 MFLAG=SLAPD_MOD_STATIC
52038 cat >>confdefs.h <<_ACEOF
52039 #define SLAPD_BDB $MFLAG
52044 if test "$ol_enable_dnssrv" != no ; then
52046 BUILD_DNSSRV=$ol_enable_dnssrv
52047 if test "$ol_enable_dnssrv" = mod ; then
52048 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
52049 MFLAG=SLAPD_MOD_DYNAMIC
52051 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
52052 MFLAG=SLAPD_MOD_STATIC
52055 cat >>confdefs.h <<_ACEOF
52056 #define SLAPD_DNSSRV $MFLAG
52061 if test "$ol_enable_hdb" != no ; then
52063 BUILD_HDB=$ol_enable_hdb
52064 if test "$ol_enable_hdb" = mod ; then
52065 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
52066 MFLAG=SLAPD_MOD_DYNAMIC
52068 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
52069 MFLAG=SLAPD_MOD_STATIC
52072 cat >>confdefs.h <<_ACEOF
52073 #define SLAPD_HDB $MFLAG
52078 if test "$ol_enable_ldap" != no ; then
52080 BUILD_LDAP=$ol_enable_ldap
52081 if test "$ol_enable_ldap" = mod ; then
52082 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
52083 MFLAG=SLAPD_MOD_DYNAMIC
52085 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
52086 MFLAG=SLAPD_MOD_STATIC
52089 cat >>confdefs.h <<_ACEOF
52090 #define SLAPD_LDAP $MFLAG
52095 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
52097 BUILD_LDBM=$ol_enable_ldbm
52098 if test "$ol_enable_ldbm" = mod ; then
52099 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
52100 MFLAG=SLAPD_MOD_DYNAMIC
52102 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
52103 MFLAG=SLAPD_MOD_STATIC
52106 cat >>confdefs.h <<_ACEOF
52107 #define SLAPD_LDBM $MFLAG
52112 if test "$ol_enable_meta" != no ; then
52114 BUILD_META=$ol_enable_meta
52116 if test "$ol_enable_meta" = mod ; then
52117 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
52118 MFLAG=SLAPD_MOD_DYNAMIC
52120 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
52121 MFLAG=SLAPD_MOD_STATIC
52124 cat >>confdefs.h <<_ACEOF
52125 #define SLAPD_META $MFLAG
52130 if test "$ol_enable_monitor" != no ; then
52132 BUILD_MONITOR=$ol_enable_monitor
52133 if test "$ol_enable_monitor" = mod ; then
52134 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
52135 MFLAG=SLAPD_MOD_DYNAMIC
52137 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
52138 MFLAG=SLAPD_MOD_STATIC
52141 cat >>confdefs.h <<_ACEOF
52142 #define SLAPD_MONITOR $MFLAG
52147 if test "$ol_enable_null" != no ; then
52149 BUILD_NULL=$ol_enable_null
52150 if test "$ol_enable_null" = mod ; then
52151 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
52152 MFLAG=SLAPD_MOD_DYNAMIC
52154 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
52155 MFLAG=SLAPD_MOD_STATIC
52158 cat >>confdefs.h <<_ACEOF
52159 #define SLAPD_NULL $MFLAG
52164 if test "$ol_enable_passwd" != no ; then
52166 BUILD_PASSWD=$ol_enable_passwd
52167 if test "$ol_enable_passwd" = mod ; then
52168 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
52169 MFLAG=SLAPD_MOD_DYNAMIC
52171 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
52172 MFLAG=SLAPD_MOD_STATIC
52175 cat >>confdefs.h <<_ACEOF
52176 #define SLAPD_PASSWD $MFLAG
52181 if test "$ol_link_perl" != no ; then
52183 BUILD_PERL=$ol_enable_perl
52184 if test "$ol_enable_perl" = mod ; then
52185 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
52186 MFLAG=SLAPD_MOD_DYNAMIC
52188 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
52189 MFLAG=SLAPD_MOD_STATIC
52192 cat >>confdefs.h <<_ACEOF
52193 #define SLAPD_PERL $MFLAG
52198 if test "$ol_enable_relay" != no ; then
52200 BUILD_RELAY=$ol_enable_relay
52201 if test "$ol_enable_relay" = mod ; then
52202 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
52203 MFLAG=SLAPD_MOD_DYNAMIC
52205 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
52206 MFLAG=SLAPD_MOD_STATIC
52209 cat >>confdefs.h <<_ACEOF
52210 #define SLAPD_RELAY $MFLAG
52215 if test "$ol_enable_shell" != no ; then
52216 if test "$ol_link_thread" != no ; then
52217 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
52218 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
52221 BUILD_SHELL=$ol_enable_shell
52222 if test "$ol_enable_shell" = mod ; then
52223 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
52224 MFLAG=SLAPD_MOD_DYNAMIC
52226 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
52227 MFLAG=SLAPD_MOD_STATIC
52230 cat >>confdefs.h <<_ACEOF
52231 #define SLAPD_SHELL $MFLAG
52236 if test "$ol_link_sql" != no ; then
52238 BUILD_SQL=$ol_enable_sql
52239 if test "$ol_enable_sql" = mod; then
52240 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
52241 MFLAG=SLAPD_MOD_DYNAMIC
52243 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
52244 MFLAG=SLAPD_MOD_STATIC
52247 cat >>confdefs.h <<_ACEOF
52248 #define SLAPD_SQL $MFLAG
52253 if test "$ol_enable_accesslog" != no ; then
52254 BUILD_ACCESSLOG=$ol_enable_accesslog
52255 if test "$ol_enable_accesslog" = mod ; then
52256 MFLAG=SLAPD_MOD_DYNAMIC
52257 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
52259 MFLAG=SLAPD_MOD_STATIC
52260 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
52263 cat >>confdefs.h <<_ACEOF
52264 #define SLAPD_OVER_ACCESSLOG $MFLAG
52269 if test "$ol_enable_denyop" != no ; then
52270 BUILD_DENYOP=$ol_enable_denyop
52271 if test "$ol_enable_denyop" = mod ; then
52272 MFLAG=SLAPD_MOD_DYNAMIC
52273 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
52275 MFLAG=SLAPD_MOD_STATIC
52276 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
52279 cat >>confdefs.h <<_ACEOF
52280 #define SLAPD_OVER_DENYOP $MFLAG
52285 if test "$ol_enable_dyngroup" != no ; then
52286 BUILD_DYNGROUP=$ol_enable_dyngroup
52287 if test "$ol_enable_dyngroup" = mod ; then
52288 MFLAG=SLAPD_MOD_DYNAMIC
52289 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
52291 MFLAG=SLAPD_MOD_STATIC
52292 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
52295 cat >>confdefs.h <<_ACEOF
52296 #define SLAPD_OVER_DYNGROUP $MFLAG
52301 if test "$ol_enable_dynlist" != no ; then
52302 BUILD_DYNLIST=$ol_enable_dynlist
52303 if test "$ol_enable_dynlist" = mod ; then
52304 MFLAG=SLAPD_MOD_DYNAMIC
52305 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
52307 MFLAG=SLAPD_MOD_STATIC
52308 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
52311 cat >>confdefs.h <<_ACEOF
52312 #define SLAPD_OVER_DYNLIST $MFLAG
52317 if test "$ol_enable_glue" != no ; then
52318 BUILD_GLUE=$ol_enable_glue
52319 if test "$ol_enable_glue" = mod ; then
52320 MFLAG=SLAPD_MOD_DYNAMIC
52321 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS glue.la"
52323 MFLAG=SLAPD_MOD_STATIC
52324 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS glue.o"
52327 cat >>confdefs.h <<_ACEOF
52328 #define SLAPD_OVER_GLUE $MFLAG
52333 if test "$ol_enable_lastmod" != no ; then
52334 BUILD_LASTMOD=$ol_enable_lastmod
52335 if test "$ol_enable_lastmod" = mod ; then
52336 MFLAG=SLAPD_MOD_DYNAMIC
52337 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
52339 MFLAG=SLAPD_MOD_STATIC
52340 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
52343 cat >>confdefs.h <<_ACEOF
52344 #define SLAPD_OVER_LASTMOD $MFLAG
52349 if test "$ol_enable_ppolicy" != no ; then
52350 BUILD_PPOLICY=$ol_enable_ppolicy
52351 if test "$ol_enable_ppolicy" = mod ; then
52352 MFLAG=SLAPD_MOD_DYNAMIC
52353 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
52355 MFLAG=SLAPD_MOD_STATIC
52356 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
52359 cat >>confdefs.h <<_ACEOF
52360 #define SLAPD_OVER_PPOLICY $MFLAG
52365 if test "$ol_enable_proxycache" != no ; then
52366 BUILD_PROXYCACHE=$ol_enable_proxycache
52367 if test "$ol_enable_proxycache" = mod ; then
52368 MFLAG=SLAPD_MOD_DYNAMIC
52369 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
52371 MFLAG=SLAPD_MOD_STATIC
52372 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
52375 cat >>confdefs.h <<_ACEOF
52376 #define SLAPD_OVER_PROXYCACHE $MFLAG
52381 if test "$ol_enable_refint" != no ; then
52382 BUILD_REFINT=$ol_enable_refint
52383 if test "$ol_enable_refint" = mod ; then
52384 MFLAG=SLAPD_MOD_DYNAMIC
52385 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
52387 MFLAG=SLAPD_MOD_STATIC
52388 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
52391 cat >>confdefs.h <<_ACEOF
52392 #define SLAPD_OVER_REFINT $MFLAG
52397 if test "$ol_enable_retcode" != no ; then
52398 BUILD_RETCODE=$ol_enable_retcode
52399 if test "$ol_enable_retcode" = mod ; then
52400 MFLAG=SLAPD_MOD_DYNAMIC
52401 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
52403 MFLAG=SLAPD_MOD_STATIC
52404 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
52407 cat >>confdefs.h <<_ACEOF
52408 #define SLAPD_OVER_RETCODE $MFLAG
52413 if test "$ol_enable_rwm" != no ; then
52415 BUILD_RWM=$ol_enable_rwm
52416 if test "$ol_enable_rwm" = mod ; then
52417 MFLAG=SLAPD_MOD_DYNAMIC
52418 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
52420 MFLAG=SLAPD_MOD_STATIC
52421 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
52424 cat >>confdefs.h <<_ACEOF
52425 #define SLAPD_OVER_RWM $MFLAG
52430 if test "$ol_enable_syncprov" != no ; then
52431 BUILD_SYNCPROV=$ol_enable_syncprov
52432 if test "$ol_enable_syncprov" = mod ; then
52433 MFLAG=SLAPD_MOD_DYNAMIC
52434 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
52436 MFLAG=SLAPD_MOD_STATIC
52437 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
52440 cat >>confdefs.h <<_ACEOF
52441 #define SLAPD_OVER_SYNCPROV $MFLAG
52446 if test "$ol_enable_translucent" != no ; then
52447 BUILD_TRANSLUCENT=$ol_enable_translucent
52448 if test "$ol_enable_translucent" = mod ; then
52449 MFLAG=SLAPD_MOD_DYNAMIC
52450 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
52452 MFLAG=SLAPD_MOD_STATIC
52453 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
52456 cat >>confdefs.h <<_ACEOF
52457 #define SLAPD_OVER_TRANSLUCENT $MFLAG
52462 if test "$ol_enable_unique" != no ; then
52463 BUILD_UNIQUE=$ol_enable_unique
52464 if test "$ol_enable_unique" = mod ; then
52465 MFLAG=SLAPD_MOD_DYNAMIC
52466 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
52468 MFLAG=SLAPD_MOD_STATIC
52469 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
52472 cat >>confdefs.h <<_ACEOF
52473 #define SLAPD_OVER_UNIQUE $MFLAG
52478 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
52479 $BUILD_SLAPD = yes ; then
52483 if test "$ol_enable_rewrite" != no ; then
52485 cat >>confdefs.h <<\_ACEOF
52486 #define ENABLE_REWRITE 1
52492 if test "$ol_enable_slapi" != no ; then
52494 cat >>confdefs.h <<\_ACEOF
52495 #define ENABLE_SLAPI 1
52499 SLAPD_SLAPI_DEPEND=libslapi.a
52504 if test "$ac_cv_mingw32" = yes ; then
52506 SLAPD_MODULES_LDFLAGS=
52589 # Check whether --with-xxinstall or --without-xxinstall was given.
52590 if test "${with_xxinstall+set}" = set; then
52591 withval="$with_xxinstall"
52596 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"
52598 ac_config_commands="$ac_config_commands default"
52602 test "x$prefix" = xNONE && prefix=$ac_default_prefix
52603 # Let make expand exec_prefix.
52604 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
52606 # VPATH may cause trouble with some makes, so we remove $(srcdir),
52607 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
52608 # trailing colons and then remove the whole line if VPATH becomes empty
52609 # (actually we leave an empty line to preserve line numbers).
52610 if test "x$srcdir" = x.; then
52611 ac_vpsub='/^[ ]*VPATH[ ]*=/{
52612 s/:*\$(srcdir):*/:/;
52613 s/:*\${srcdir}:*/:/;
52615 s/^\([^=]*=[ ]*\):*/\1/;
52621 DEFS=-DHAVE_CONFIG_H
52625 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
52626 # 1. Remove the extension, and $U if already installed.
52627 ac_i=`echo "$ac_i" |
52628 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
52630 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
52631 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
52633 LIBOBJS=$ac_libobjs
52635 LTLIBOBJS=$ac_ltlibobjs
52638 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
52639 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
52640 Usually this means the macro was only invoked conditionally." >&5
52641 echo "$as_me: error: conditional \"AMDEP\" was never defined.
52642 Usually this means the macro was only invoked conditionally." >&2;}
52643 { (exit 1); exit 1; }; }
52645 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
52646 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
52647 Usually this means the macro was only invoked conditionally." >&5
52648 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
52649 Usually this means the macro was only invoked conditionally." >&2;}
52650 { (exit 1); exit 1; }; }
52652 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
52653 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
52654 Usually this means the macro was only invoked conditionally." >&5
52655 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
52656 Usually this means the macro was only invoked conditionally." >&2;}
52657 { (exit 1); exit 1; }; }
52659 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
52660 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
52661 Usually this means the macro was only invoked conditionally." >&5
52662 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
52663 Usually this means the macro was only invoked conditionally." >&2;}
52664 { (exit 1); exit 1; }; }
52667 : ${CONFIG_STATUS=./config.status}
52668 ac_clean_files_save=$ac_clean_files
52669 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
52670 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
52671 echo "$as_me: creating $CONFIG_STATUS" >&6;}
52672 cat >$CONFIG_STATUS <<_ACEOF
52674 # Generated by $as_me.
52675 # Run this file to recreate the current configuration.
52676 # Compiler output produced by configure, useful for debugging
52677 # configure, is in config.log if it exists.
52680 ac_cs_recheck=false
52682 SHELL=\${CONFIG_SHELL-$SHELL}
52685 cat >>$CONFIG_STATUS <<\_ACEOF
52686 ## --------------------- ##
52687 ## M4sh Initialization. ##
52688 ## --------------------- ##
52690 # Be Bourne compatible
52691 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
52694 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
52695 # is contrary to our usage. Disable this feature.
52696 alias -g '${1+"$@"}'='"$@"'
52697 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
52700 DUALCASE=1; export DUALCASE # for MKS sh
52702 # Support unset when possible.
52703 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
52710 # Work around bugs in pre-3.0 UWIN ksh.
52711 $as_unset ENV MAIL MAILPATH
52718 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
52719 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
52720 LC_TELEPHONE LC_TIME
52722 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
52723 eval $as_var=C; export $as_var
52729 # Required to use basename.
52730 if expr a : '\(a\)' >/dev/null 2>&1; then
52736 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
52737 as_basename=basename
52743 # Name of the executable.
52744 as_me=`$as_basename "$0" ||
52745 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
52746 X"$0" : 'X\(//\)$' \| \
52747 X"$0" : 'X\(/\)$' \| \
52748 . : '\(.\)' 2>/dev/null ||
52750 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
52751 /^X\/\(\/\/\)$/{ s//\1/; q; }
52752 /^X\/\(\/\).*/{ s//\1/; q; }
52756 # PATH needs CR, and LINENO needs CR and PATH.
52757 # Avoid depending upon Character Ranges.
52758 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
52759 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
52760 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
52761 as_cr_digits='0123456789'
52762 as_cr_alnum=$as_cr_Letters$as_cr_digits
52764 # The user is always right.
52765 if test "${PATH_SEPARATOR+set}" != set; then
52766 echo "#! /bin/sh" >conf$$.sh
52767 echo "exit 0" >>conf$$.sh
52769 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
52778 as_lineno_1=$LINENO
52779 as_lineno_2=$LINENO
52780 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
52781 test "x$as_lineno_1" != "x$as_lineno_2" &&
52782 test "x$as_lineno_3" = "x$as_lineno_2" || {
52783 # Find who we are. Look in the path if we contain no path at all
52786 *[\\/]* ) as_myself=$0 ;;
52787 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52788 for as_dir in $PATH
52791 test -z "$as_dir" && as_dir=.
52792 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
52797 # We did not find ourselves, most probably we were run as `sh COMMAND'
52798 # in which case we are not to be found in the path.
52799 if test "x$as_myself" = x; then
52802 if test ! -f "$as_myself"; then
52803 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
52804 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
52805 { (exit 1); exit 1; }; }
52807 case $CONFIG_SHELL in
52809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52810 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
52813 test -z "$as_dir" && as_dir=.
52814 for as_base in sh bash ksh sh5; do
52817 if ("$as_dir/$as_base" -c '
52818 as_lineno_1=$LINENO
52819 as_lineno_2=$LINENO
52820 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
52821 test "x$as_lineno_1" != "x$as_lineno_2" &&
52822 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
52823 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
52824 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
52825 CONFIG_SHELL=$as_dir/$as_base
52826 export CONFIG_SHELL
52827 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
52835 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
52836 # uniformly replaced by the line number. The first 'sed' inserts a
52837 # line-number line before each line; the second 'sed' does the real
52838 # work. The second script uses 'N' to pair each line-number line
52839 # with the numbered line, and appends trailing '-' during
52840 # substitution so that $LINENO is not a special case at line end.
52841 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
52842 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
52843 sed '=' <$as_myself |
52848 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
52851 s,^['$as_cr_digits']*\n,,
52852 ' >$as_me.lineno &&
52853 chmod +x $as_me.lineno ||
52854 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
52855 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
52856 { (exit 1); exit 1; }; }
52858 # Don't try to exec as it changes $[0], causing all sort of problems
52859 # (the dirname of $[0] is not the place where we might find the
52860 # original and so on. Autoconf is especially sensible to this).
52862 # Exit status is that of the last command.
52867 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
52868 *c*,-n*) ECHO_N= ECHO_C='
52870 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
52871 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
52874 if expr a : '\(a\)' >/dev/null 2>&1; then
52880 rm -f conf$$ conf$$.exe conf$$.file
52882 if ln -s conf$$.file conf$$ 2>/dev/null; then
52883 # We could just check for DJGPP; but this test a) works b) is more generic
52884 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
52885 if test -f conf$$.exe; then
52886 # Don't use ln at all; we don't have any links
52891 elif ln conf$$.file conf$$ 2>/dev/null; then
52896 rm -f conf$$ conf$$.exe conf$$.file
52898 if mkdir -p . 2>/dev/null; then
52901 test -d ./-p && rmdir ./-p
52905 as_executable_p="test -f"
52907 # Sed expression to map a string onto a valid CPP name.
52908 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
52910 # Sed expression to map a string onto a valid variable name.
52911 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
52915 # We need space, tab and new line, in precisely that order.
52925 # Open the log real soon, to keep \$[0] and so on meaningful, and to
52926 # report actual input values of CONFIG_FILES etc. instead of their
52927 # values after options handling. Logging --version etc. is OK.
52931 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
52932 ## Running $as_me. ##
52937 This file was extended by $as_me, which was
52938 generated by GNU Autoconf 2.59. Invocation command line was
52940 CONFIG_FILES = $CONFIG_FILES
52941 CONFIG_HEADERS = $CONFIG_HEADERS
52942 CONFIG_LINKS = $CONFIG_LINKS
52943 CONFIG_COMMANDS = $CONFIG_COMMANDS
52947 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
52951 # Files that config.status was made for.
52952 if test -n "$ac_config_files"; then
52953 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
52956 if test -n "$ac_config_headers"; then
52957 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
52960 if test -n "$ac_config_links"; then
52961 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
52964 if test -n "$ac_config_commands"; then
52965 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
52968 cat >>$CONFIG_STATUS <<\_ACEOF
52971 \`$as_me' instantiates files from templates according to the
52972 current configuration.
52974 Usage: $0 [OPTIONS] [FILE]...
52976 -h, --help print this help, then exit
52977 -V, --version print version number, then exit
52978 -q, --quiet do not print progress messages
52979 -d, --debug don't remove temporary files
52980 --recheck update $as_me by reconfiguring in the same conditions
52981 --file=FILE[:TEMPLATE]
52982 instantiate the configuration file FILE
52983 --header=FILE[:TEMPLATE]
52984 instantiate the configuration header FILE
52986 Configuration files:
52989 Configuration headers:
52992 Configuration commands:
52995 Report bugs to <bug-autoconf@gnu.org>."
52998 cat >>$CONFIG_STATUS <<_ACEOF
53001 configured by $0, generated by GNU Autoconf 2.59,
53002 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
53004 Copyright (C) 2003 Free Software Foundation, Inc.
53005 This config.status script is free software; the Free Software Foundation
53006 gives unlimited permission to copy, distribute and modify it."
53011 cat >>$CONFIG_STATUS <<\_ACEOF
53012 # If no file are specified by the user, then we need to provide default
53013 # value. By we need to know if files were specified by the user.
53019 ac_option=`expr "x$1" : 'x\([^=]*\)='`
53020 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
53028 *) # This is not an option, so the user has probably given explicit
53031 ac_need_defaults=false;;
53035 # Handling of the options.
53037 cat >>$CONFIG_STATUS <<\_ACEOF
53038 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
53040 --version | --vers* | -V )
53041 echo "$ac_cs_version"; exit 0 ;;
53043 # Conflict between --help and --header
53044 { { echo "$as_me:$LINENO: error: ambiguous option: $1
53045 Try \`$0 --help' for more information." >&5
53046 echo "$as_me: error: ambiguous option: $1
53047 Try \`$0 --help' for more information." >&2;}
53048 { (exit 1); exit 1; }; };;
53049 --help | --hel | -h )
53050 echo "$ac_cs_usage"; exit 0 ;;
53051 --debug | --d* | -d )
53053 --file | --fil | --fi | --f )
53055 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
53056 ac_need_defaults=false;;
53057 --header | --heade | --head | --hea )
53059 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
53060 ac_need_defaults=false;;
53061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
53062 | -silent | --silent | --silen | --sile | --sil | --si | --s)
53065 # This is an error.
53066 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
53067 Try \`$0 --help' for more information." >&5
53068 echo "$as_me: error: unrecognized option: $1
53069 Try \`$0 --help' for more information." >&2;}
53070 { (exit 1); exit 1; }; } ;;
53072 *) ac_config_targets="$ac_config_targets $1" ;;
53078 ac_configure_extra_args=
53080 if $ac_cs_silent; then
53082 ac_configure_extra_args="$ac_configure_extra_args --silent"
53086 cat >>$CONFIG_STATUS <<_ACEOF
53087 if \$ac_cs_recheck; then
53088 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
53089 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
53094 cat >>$CONFIG_STATUS <<_ACEOF
53096 # INIT-COMMANDS section.
53099 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
53100 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
53106 cat >>$CONFIG_STATUS <<\_ACEOF
53107 for ac_config_target in $ac_config_targets
53109 case "$ac_config_target" in
53110 # Handling of arguments.
53111 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
53112 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
53113 "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
53114 "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
53115 "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
53116 "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
53117 "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
53118 "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
53119 "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
53120 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
53121 "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
53122 "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
53123 "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
53124 "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" ;;
53125 "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
53126 "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
53127 "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
53128 "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
53129 "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
53130 "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" ;;
53131 "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" ;;
53132 "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" ;;
53133 "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" ;;
53134 "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" ;;
53135 "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" ;;
53136 "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" ;;
53137 "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" ;;
53138 "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" ;;
53139 "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" ;;
53140 "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" ;;
53141 "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" ;;
53142 "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" ;;
53143 "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" ;;
53144 "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" ;;
53145 "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" ;;
53146 "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
53147 "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
53148 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
53149 "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
53150 "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
53151 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
53152 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
53153 "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
53154 "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
53155 "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
53156 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
53157 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
53158 { (exit 1); exit 1; }; };;
53162 # If the user did not use the arguments to specify the items to instantiate,
53163 # then the envvar interface is used. Set only those that are not.
53164 # We use the long form for the default assignment because of an extremely
53165 # bizarre bug on SunOS 4.1.3.
53166 if $ac_need_defaults; then
53167 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
53168 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
53169 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
53172 # Have a temporary directory for convenience. Make it in the build tree
53173 # simply because there is no reason to put it here, and in addition,
53174 # creating and moving files from /tmp can sometimes cause problems.
53175 # Create a temporary directory, and hook for its removal unless debugging.
53178 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
53179 trap '{ (exit 1); exit 1; }' 1 2 13 15
53182 # Create a (secure) tmp directory for tmp files.
53185 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
53186 test -n "$tmp" && test -d "$tmp"
53189 tmp=./confstat$$-$RANDOM
53190 (umask 077 && mkdir $tmp)
53193 echo "$me: cannot create a temporary directory in ." >&2
53194 { (exit 1); exit 1; }
53199 cat >>$CONFIG_STATUS <<_ACEOF
53202 # CONFIG_FILES section.
53205 # No need to generate the scripts if there are no CONFIG_FILES.
53206 # This happens for instance when ./config.status config.h
53207 if test -n "\$CONFIG_FILES"; then
53208 # Protect against being on the right side of a sed subst in config.status.
53209 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
53210 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
53211 s,@SHELL@,$SHELL,;t t
53212 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
53213 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
53214 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
53215 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
53216 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
53217 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
53218 s,@exec_prefix@,$exec_prefix,;t t
53219 s,@prefix@,$prefix,;t t
53220 s,@program_transform_name@,$program_transform_name,;t t
53221 s,@bindir@,$bindir,;t t
53222 s,@sbindir@,$sbindir,;t t
53223 s,@libexecdir@,$libexecdir,;t t
53224 s,@datadir@,$datadir,;t t
53225 s,@sysconfdir@,$sysconfdir,;t t
53226 s,@sharedstatedir@,$sharedstatedir,;t t
53227 s,@localstatedir@,$localstatedir,;t t
53228 s,@libdir@,$libdir,;t t
53229 s,@includedir@,$includedir,;t t
53230 s,@oldincludedir@,$oldincludedir,;t t
53231 s,@infodir@,$infodir,;t t
53232 s,@mandir@,$mandir,;t t
53233 s,@build_alias@,$build_alias,;t t
53234 s,@host_alias@,$host_alias,;t t
53235 s,@target_alias@,$target_alias,;t t
53236 s,@DEFS@,$DEFS,;t t
53237 s,@ECHO_C@,$ECHO_C,;t t
53238 s,@ECHO_N@,$ECHO_N,;t t
53239 s,@ECHO_T@,$ECHO_T,;t t
53240 s,@LIBS@,$LIBS,;t t
53241 s,@build@,$build,;t t
53242 s,@build_cpu@,$build_cpu,;t t
53243 s,@build_vendor@,$build_vendor,;t t
53244 s,@build_os@,$build_os,;t t
53245 s,@host@,$host,;t t
53246 s,@host_cpu@,$host_cpu,;t t
53247 s,@host_vendor@,$host_vendor,;t t
53248 s,@host_os@,$host_os,;t t
53249 s,@target@,$target,;t t
53250 s,@target_cpu@,$target_cpu,;t t
53251 s,@target_vendor@,$target_vendor,;t t
53252 s,@target_os@,$target_os,;t t
53253 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
53254 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
53255 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
53256 s,@CYGPATH_W@,$CYGPATH_W,;t t
53257 s,@PACKAGE@,$PACKAGE,;t t
53258 s,@VERSION@,$VERSION,;t t
53259 s,@ACLOCAL@,$ACLOCAL,;t t
53260 s,@AUTOCONF@,$AUTOCONF,;t t
53261 s,@AUTOMAKE@,$AUTOMAKE,;t t
53262 s,@AUTOHEADER@,$AUTOHEADER,;t t
53263 s,@MAKEINFO@,$MAKEINFO,;t t
53264 s,@install_sh@,$install_sh,;t t
53265 s,@STRIP@,$STRIP,;t t
53266 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
53267 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
53268 s,@mkdir_p@,$mkdir_p,;t t
53270 s,@SET_MAKE@,$SET_MAKE,;t t
53271 s,@am__leading_dot@,$am__leading_dot,;t t
53272 s,@AMTAR@,$AMTAR,;t t
53273 s,@am__tar@,$am__tar,;t t
53274 s,@am__untar@,$am__untar,;t t
53275 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
53276 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
53277 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
53278 s,@top_builddir@,$top_builddir,;t t
53279 s,@ldap_subdir@,$ldap_subdir,;t t
53282 s,@CFLAGS@,$CFLAGS,;t t
53283 s,@LDFLAGS@,$LDFLAGS,;t t
53284 s,@CPPFLAGS@,$CPPFLAGS,;t t
53285 s,@ac_ct_CC@,$ac_ct_CC,;t t
53286 s,@EXEEXT@,$EXEEXT,;t t
53287 s,@OBJEXT@,$OBJEXT,;t t
53288 s,@DEPDIR@,$DEPDIR,;t t
53289 s,@am__include@,$am__include,;t t
53290 s,@am__quote@,$am__quote,;t t
53291 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
53292 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
53293 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
53294 s,@CCDEPMODE@,$CCDEPMODE,;t t
53295 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
53296 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
53297 s,@EGREP@,$EGREP,;t t
53298 s,@LN_S@,$LN_S,;t t
53299 s,@ECHO@,$ECHO,;t t
53300 s,@ac_ct_AR@,$ac_ct_AR,;t t
53301 s,@RANLIB@,$RANLIB,;t t
53302 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
53303 s,@DLLTOOL@,$DLLTOOL,;t t
53304 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
53306 s,@ac_ct_AS@,$ac_ct_AS,;t t
53307 s,@OBJDUMP@,$OBJDUMP,;t t
53308 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
53311 s,@CXXFLAGS@,$CXXFLAGS,;t t
53312 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
53313 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
53314 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
53315 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
53316 s,@CXXCPP@,$CXXCPP,;t t
53318 s,@FFLAGS@,$FFLAGS,;t t
53319 s,@ac_ct_F77@,$ac_ct_F77,;t t
53320 s,@LIBTOOL@,$LIBTOOL,;t t
53321 s,@PERLBIN@,$PERLBIN,;t t
53322 s,@OL_MKDEP@,$OL_MKDEP,;t t
53323 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
53324 s,@LTSTATIC@,$LTSTATIC,;t t
53325 s,@LIBOBJS@,$LIBOBJS,;t t
53326 s,@LIBSRCS@,$LIBSRCS,;t t
53327 s,@PLAT@,$PLAT,;t t
53328 s,@WITH_SASL@,$WITH_SASL,;t t
53329 s,@WITH_TLS@,$WITH_TLS,;t t
53330 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
53331 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
53332 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
53333 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
53334 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
53335 s,@BUILD_BDB@,$BUILD_BDB,;t t
53336 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
53337 s,@BUILD_HDB@,$BUILD_HDB,;t t
53338 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
53339 s,@BUILD_LDBM@,$BUILD_LDBM,;t t
53340 s,@BUILD_META@,$BUILD_META,;t t
53341 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
53342 s,@BUILD_NULL@,$BUILD_NULL,;t t
53343 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
53344 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
53345 s,@BUILD_PERL@,$BUILD_PERL,;t t
53346 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
53347 s,@BUILD_SQL@,$BUILD_SQL,;t t
53348 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
53349 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
53350 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
53351 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
53352 s,@BUILD_GLUE@,$BUILD_GLUE,;t t
53353 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
53354 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
53355 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
53356 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
53357 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
53358 s,@BUILD_RWM@,$BUILD_RWM,;t t
53359 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
53360 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
53361 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
53362 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
53363 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
53364 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
53365 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
53366 s,@LDBM_LIBS@,$LDBM_LIBS,;t t
53367 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
53368 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
53369 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
53370 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
53371 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
53372 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
53373 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
53374 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
53375 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
53376 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
53377 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
53378 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
53379 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
53380 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
53381 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
53382 s,@SASL_LIBS@,$SASL_LIBS,;t t
53383 s,@TLS_LIBS@,$TLS_LIBS,;t t
53384 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
53385 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
53386 s,@LIBSLAPI@,$LIBSLAPI,;t t
53387 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
53388 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
53389 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
53390 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
53391 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
53392 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
53393 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
53394 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
53399 cat >>$CONFIG_STATUS <<\_ACEOF
53400 # Split the substitutions into bite-sized pieces for seds with
53401 # small command number limits, like on Digital OSF/1 and HP-UX.
53402 ac_max_sed_lines=48
53403 ac_sed_frag=1 # Number of current file.
53404 ac_beg=1 # First line for current file.
53405 ac_end=$ac_max_sed_lines # Line after last line for current file.
53408 while $ac_more_lines; do
53409 if test $ac_beg -gt 1; then
53410 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
53412 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
53414 if test ! -s $tmp/subs.frag; then
53415 ac_more_lines=false
53417 # The purpose of the label and of the branching condition is to
53418 # speed up the sed processing (if there are no `@' at all, there
53419 # is no need to browse any of the substitutions).
53420 # These are the two extra sed commands mentioned above.
53422 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
53423 if test -z "$ac_sed_cmds"; then
53424 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
53426 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
53428 ac_sed_frag=`expr $ac_sed_frag + 1`
53430 ac_end=`expr $ac_end + $ac_max_sed_lines`
53433 if test -z "$ac_sed_cmds"; then
53436 fi # test -n "$CONFIG_FILES"
53439 cat >>$CONFIG_STATUS <<\_ACEOF
53440 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
53441 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
53443 - | *:- | *:-:* ) # input from stdin
53445 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
53446 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
53447 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
53448 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
53449 * ) ac_file_in=$ac_file.in ;;
53452 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
53453 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
53454 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53455 X"$ac_file" : 'X\(//\)[^/]' \| \
53456 X"$ac_file" : 'X\(//\)$' \| \
53457 X"$ac_file" : 'X\(/\)' \| \
53458 . : '\(.\)' 2>/dev/null ||
53460 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
53461 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
53462 /^X\(\/\/\)$/{ s//\1/; q; }
53463 /^X\(\/\).*/{ s//\1/; q; }
53465 { if $as_mkdir_p; then
53470 while test ! -d "$as_dir"; do
53471 as_dirs="$as_dir $as_dirs"
53472 as_dir=`(dirname "$as_dir") 2>/dev/null ||
53473 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53474 X"$as_dir" : 'X\(//\)[^/]' \| \
53475 X"$as_dir" : 'X\(//\)$' \| \
53476 X"$as_dir" : 'X\(/\)' \| \
53477 . : '\(.\)' 2>/dev/null ||
53479 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
53480 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
53481 /^X\(\/\/\)$/{ s//\1/; q; }
53482 /^X\(\/\).*/{ s//\1/; q; }
53485 test ! -n "$as_dirs" || mkdir $as_dirs
53486 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
53487 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
53488 { (exit 1); exit 1; }; }; }
53492 if test "$ac_dir" != .; then
53493 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
53494 # A "../" for each directory in $ac_dir_suffix.
53495 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
53497 ac_dir_suffix= ac_top_builddir=
53501 .) # No --srcdir option. We are building in place.
53503 if test -z "$ac_top_builddir"; then
53506 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
53508 [\\/]* | ?:[\\/]* ) # Absolute path.
53509 ac_srcdir=$srcdir$ac_dir_suffix;
53510 ac_top_srcdir=$srcdir ;;
53511 *) # Relative path.
53512 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
53513 ac_top_srcdir=$ac_top_builddir$srcdir ;;
53516 # Do not use `cd foo && pwd` to compute absolute paths, because
53517 # the directories may not exist.
53519 .) ac_abs_builddir="$ac_dir";;
53522 .) ac_abs_builddir=`pwd`;;
53523 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
53524 *) ac_abs_builddir=`pwd`/"$ac_dir";;
53527 case $ac_abs_builddir in
53528 .) ac_abs_top_builddir=${ac_top_builddir}.;;
53530 case ${ac_top_builddir}. in
53531 .) ac_abs_top_builddir=$ac_abs_builddir;;
53532 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
53533 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
53536 case $ac_abs_builddir in
53537 .) ac_abs_srcdir=$ac_srcdir;;
53540 .) ac_abs_srcdir=$ac_abs_builddir;;
53541 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
53542 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
53545 case $ac_abs_builddir in
53546 .) ac_abs_top_srcdir=$ac_top_srcdir;;
53548 case $ac_top_srcdir in
53549 .) ac_abs_top_srcdir=$ac_abs_builddir;;
53550 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
53551 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
53557 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
53558 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
53561 if test x"$ac_file" != x-; then
53562 { echo "$as_me:$LINENO: creating $ac_file" >&5
53563 echo "$as_me: creating $ac_file" >&6;}
53566 # Let's still pretend it is `configure' which instantiates (i.e., don't
53567 # use $as_me), people would be surprised to read:
53568 # /* config.h. Generated by config.status. */
53569 if test x"$ac_file" = x-; then
53572 configure_input="$ac_file. "
53574 configure_input=$configure_input"Generated from `echo $ac_file_in |
53575 sed 's,.*/,,'` by configure."
53577 # First look for the input files in the build tree, otherwise in the
53579 ac_file_inputs=`IFS=:
53580 for f in $ac_file_in; do
53582 -) echo $tmp/stdin ;;
53584 # Absolute (can't be DOS-style, as IFS=:)
53585 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
53586 echo "$as_me: error: cannot find input file: $f" >&2;}
53587 { (exit 1); exit 1; }; }
53590 if test -f "$f"; then
53593 elif test -f "$srcdir/$f"; then
53598 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
53599 echo "$as_me: error: cannot find input file: $f" >&2;}
53600 { (exit 1); exit 1; }; }
53603 done` || { (exit 1); exit 1; }
53605 cat >>$CONFIG_STATUS <<_ACEOF
53609 cat >>$CONFIG_STATUS <<\_ACEOF
53611 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
53612 s,@configure_input@,$configure_input,;t t
53613 s,@srcdir@,$ac_srcdir,;t t
53614 s,@abs_srcdir@,$ac_abs_srcdir,;t t
53615 s,@top_srcdir@,$ac_top_srcdir,;t t
53616 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
53617 s,@builddir@,$ac_builddir,;t t
53618 s,@abs_builddir@,$ac_abs_builddir,;t t
53619 s,@top_builddir@,$ac_top_builddir,;t t
53620 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
53621 s,@INSTALL@,$ac_INSTALL,;t t
53622 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
53624 if test x"$ac_file" != x-; then
53625 mv $tmp/out $ac_file
53633 cat >>$CONFIG_STATUS <<\_ACEOF
53636 # CONFIG_HEADER section.
53639 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
53640 # NAME is the cpp macro being defined and VALUE is the value it is being given.
53642 # ac_d sets the value in "#define NAME VALUE" lines.
53643 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
53644 ac_dB='[ ].*$,\1#\2'
53647 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
53648 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
53649 ac_uB='$,\1#\2define\3'
53653 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
53654 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
53656 - | *:- | *:-:* ) # input from stdin
53658 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
53659 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
53660 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
53661 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
53662 * ) ac_file_in=$ac_file.in ;;
53665 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
53666 echo "$as_me: creating $ac_file" >&6;}
53668 # First look for the input files in the build tree, otherwise in the
53670 ac_file_inputs=`IFS=:
53671 for f in $ac_file_in; do
53673 -) echo $tmp/stdin ;;
53675 # Absolute (can't be DOS-style, as IFS=:)
53676 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
53677 echo "$as_me: error: cannot find input file: $f" >&2;}
53678 { (exit 1); exit 1; }; }
53679 # Do quote $f, to prevent DOS paths from being IFS'd.
53682 if test -f "$f"; then
53685 elif test -f "$srcdir/$f"; then
53690 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
53691 echo "$as_me: error: cannot find input file: $f" >&2;}
53692 { (exit 1); exit 1; }; }
53695 done` || { (exit 1); exit 1; }
53696 # Remove the trailing spaces.
53697 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
53701 # Transform confdefs.h into two sed scripts, `conftest.defines' and
53702 # `conftest.undefs', that substitutes the proper values into
53703 # config.h.in to produce config.h. The first handles `#define'
53704 # templates, and the second `#undef' templates.
53705 # And first: Protect against being on the right side of a sed subst in
53706 # config.status. Protect against being in an unquoted here document
53707 # in config.status.
53708 rm -f conftest.defines conftest.undefs
53709 # Using a here document instead of a string reduces the quoting nightmare.
53710 # Putting comments in sed scripts is not portable.
53712 # `end' is used to avoid that the second main sed command (meant for
53713 # 0-ary CPP macros) applies to n-ary macro definitions.
53714 # See the Autoconf documentation for `clear'.
53715 cat >confdef2sed.sed <<\_ACEOF
53720 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
53722 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
53725 # If some macros were called several times there might be several times
53726 # the same #defines, which is useless. Nevertheless, we may not want to
53727 # sort them, since we want the *last* AC-DEFINE to be honored.
53728 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
53729 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
53730 rm -f confdef2sed.sed
53732 # This sed command replaces #undef with comments. This is necessary, for
53733 # example, in the case of _POSIX_SOURCE, which is predefined and required
53734 # on some systems where configure will not decide to define it.
53735 cat >>conftest.undefs <<\_ACEOF
53736 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
53739 # Break up conftest.defines because some shells have a limit on the size
53740 # of here documents, and old seds have small limits too (100 cmds).
53741 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
53742 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
53743 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
53744 echo ' :' >>$CONFIG_STATUS
53745 rm -f conftest.tail
53746 while grep . conftest.defines >/dev/null
53748 # Write a limited-size here document to $tmp/defines.sed.
53749 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
53750 # Speed up: don't consider the non `#define' lines.
53751 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
53752 # Work around the forget-to-reset-the-flag bug.
53753 echo 't clr' >>$CONFIG_STATUS
53754 echo ': clr' >>$CONFIG_STATUS
53755 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
53757 sed -f $tmp/defines.sed $tmp/in >$tmp/out
53759 mv $tmp/out $tmp/in
53761 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
53762 rm -f conftest.defines
53763 mv conftest.tail conftest.defines
53765 rm -f conftest.defines
53766 echo ' fi # grep' >>$CONFIG_STATUS
53767 echo >>$CONFIG_STATUS
53769 # Break up conftest.undefs because some shells have a limit on the size
53770 # of here documents, and old seds have small limits too (100 cmds).
53771 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
53772 rm -f conftest.tail
53773 while grep . conftest.undefs >/dev/null
53775 # Write a limited-size here document to $tmp/undefs.sed.
53776 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
53777 # Speed up: don't consider the non `#undef'
53778 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
53779 # Work around the forget-to-reset-the-flag bug.
53780 echo 't clr' >>$CONFIG_STATUS
53781 echo ': clr' >>$CONFIG_STATUS
53782 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
53784 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
53786 mv $tmp/out $tmp/in
53788 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
53789 rm -f conftest.undefs
53790 mv conftest.tail conftest.undefs
53792 rm -f conftest.undefs
53794 cat >>$CONFIG_STATUS <<\_ACEOF
53795 # Let's still pretend it is `configure' which instantiates (i.e., don't
53796 # use $as_me), people would be surprised to read:
53797 # /* config.h. Generated by config.status. */
53798 if test x"$ac_file" = x-; then
53799 echo "/* Generated by configure. */" >$tmp/config.h
53801 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
53803 cat $tmp/in >>$tmp/config.h
53805 if test x"$ac_file" != x-; then
53806 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
53807 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
53808 echo "$as_me: $ac_file is unchanged" >&6;}
53810 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
53811 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53812 X"$ac_file" : 'X\(//\)[^/]' \| \
53813 X"$ac_file" : 'X\(//\)$' \| \
53814 X"$ac_file" : 'X\(/\)' \| \
53815 . : '\(.\)' 2>/dev/null ||
53817 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
53818 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
53819 /^X\(\/\/\)$/{ s//\1/; q; }
53820 /^X\(\/\).*/{ s//\1/; q; }
53822 { if $as_mkdir_p; then
53827 while test ! -d "$as_dir"; do
53828 as_dirs="$as_dir $as_dirs"
53829 as_dir=`(dirname "$as_dir") 2>/dev/null ||
53830 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53831 X"$as_dir" : 'X\(//\)[^/]' \| \
53832 X"$as_dir" : 'X\(//\)$' \| \
53833 X"$as_dir" : 'X\(/\)' \| \
53834 . : '\(.\)' 2>/dev/null ||
53836 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
53837 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
53838 /^X\(\/\/\)$/{ s//\1/; q; }
53839 /^X\(\/\).*/{ s//\1/; q; }
53842 test ! -n "$as_dirs" || mkdir $as_dirs
53843 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
53844 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
53845 { (exit 1); exit 1; }; }; }
53848 mv $tmp/config.h $ac_file
53852 rm -f $tmp/config.h
53854 # Compute $ac_file's index in $config_headers.
53856 for _am_header in $config_headers :; do
53857 case $_am_header in
53858 $ac_file | $ac_file:* )
53861 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
53864 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
53865 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53866 X$ac_file : 'X\(//\)[^/]' \| \
53867 X$ac_file : 'X\(//\)$' \| \
53868 X$ac_file : 'X\(/\)' \| \
53869 . : '\(.\)' 2>/dev/null ||
53871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
53872 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
53873 /^X\(\/\/\)$/{ s//\1/; q; }
53874 /^X\(\/\).*/{ s//\1/; q; }
53875 s/.*/./; q'`/stamp-h$_am_stamp_count
53878 cat >>$CONFIG_STATUS <<\_ACEOF
53881 # CONFIG_COMMANDS section.
53883 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
53884 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
53885 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
53886 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
53887 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53888 X"$ac_dest" : 'X\(//\)[^/]' \| \
53889 X"$ac_dest" : 'X\(//\)$' \| \
53890 X"$ac_dest" : 'X\(/\)' \| \
53891 . : '\(.\)' 2>/dev/null ||
53893 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
53894 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
53895 /^X\(\/\/\)$/{ s//\1/; q; }
53896 /^X\(\/\).*/{ s//\1/; q; }
53898 { if $as_mkdir_p; then
53903 while test ! -d "$as_dir"; do
53904 as_dirs="$as_dir $as_dirs"
53905 as_dir=`(dirname "$as_dir") 2>/dev/null ||
53906 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53907 X"$as_dir" : 'X\(//\)[^/]' \| \
53908 X"$as_dir" : 'X\(//\)$' \| \
53909 X"$as_dir" : 'X\(/\)' \| \
53910 . : '\(.\)' 2>/dev/null ||
53912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
53913 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
53914 /^X\(\/\/\)$/{ s//\1/; q; }
53915 /^X\(\/\).*/{ s//\1/; q; }
53918 test ! -n "$as_dirs" || mkdir $as_dirs
53919 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
53920 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
53921 { (exit 1); exit 1; }; }; }
53925 if test "$ac_dir" != .; then
53926 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
53927 # A "../" for each directory in $ac_dir_suffix.
53928 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
53930 ac_dir_suffix= ac_top_builddir=
53934 .) # No --srcdir option. We are building in place.
53936 if test -z "$ac_top_builddir"; then
53939 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
53941 [\\/]* | ?:[\\/]* ) # Absolute path.
53942 ac_srcdir=$srcdir$ac_dir_suffix;
53943 ac_top_srcdir=$srcdir ;;
53944 *) # Relative path.
53945 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
53946 ac_top_srcdir=$ac_top_builddir$srcdir ;;
53949 # Do not use `cd foo && pwd` to compute absolute paths, because
53950 # the directories may not exist.
53952 .) ac_abs_builddir="$ac_dir";;
53955 .) ac_abs_builddir=`pwd`;;
53956 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
53957 *) ac_abs_builddir=`pwd`/"$ac_dir";;
53960 case $ac_abs_builddir in
53961 .) ac_abs_top_builddir=${ac_top_builddir}.;;
53963 case ${ac_top_builddir}. in
53964 .) ac_abs_top_builddir=$ac_abs_builddir;;
53965 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
53966 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
53969 case $ac_abs_builddir in
53970 .) ac_abs_srcdir=$ac_srcdir;;
53973 .) ac_abs_srcdir=$ac_abs_builddir;;
53974 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
53975 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
53978 case $ac_abs_builddir in
53979 .) ac_abs_top_srcdir=$ac_top_srcdir;;
53981 case $ac_top_srcdir in
53982 .) ac_abs_top_srcdir=$ac_abs_builddir;;
53983 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
53984 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
53989 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
53990 echo "$as_me: executing $ac_dest commands" >&6;}
53992 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
53993 # Strip MF so we end up with the name of the file.
53994 mf=`echo "$mf" | sed -e 's/:.*$//'`
53995 # Check whether this is an Automake generated Makefile or not.
53996 # We used to match only the files named `Makefile.in', but
53997 # some people rename them; so instead we look at the file content.
53998 # Grep'ing the first line is not enough: some people post-process
53999 # each Makefile.in and add a new line on top of each file to say so.
54000 # So let's grep whole file.
54001 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
54002 dirpart=`(dirname "$mf") 2>/dev/null ||
54003 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54004 X"$mf" : 'X\(//\)[^/]' \| \
54005 X"$mf" : 'X\(//\)$' \| \
54006 X"$mf" : 'X\(/\)' \| \
54007 . : '\(.\)' 2>/dev/null ||
54009 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54010 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54011 /^X\(\/\/\)$/{ s//\1/; q; }
54012 /^X\(\/\).*/{ s//\1/; q; }
54017 # Extract the definition of DEPDIR, am__include, and am__quote
54018 # from the Makefile without running `make'.
54019 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
54020 test -z "$DEPDIR" && continue
54021 am__include=`sed -n 's/^am__include = //p' < "$mf"`
54022 test -z "am__include" && continue
54023 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
54024 # When using ansi2knr, U may be empty or an underscore; expand it
54025 U=`sed -n 's/^U = //p' < "$mf"`
54026 # Find all dependency output files, they are included files with
54027 # $(DEPDIR) in their names. We invoke sed twice because it is the
54028 # simplest approach to changing $(DEPDIR) to its actual value in the
54030 for file in `sed -n "
54031 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
54032 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
54033 # Make sure the directory exists.
54034 test -f "$dirpart/$file" && continue
54035 fdir=`(dirname "$file") 2>/dev/null ||
54036 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54037 X"$file" : 'X\(//\)[^/]' \| \
54038 X"$file" : 'X\(//\)$' \| \
54039 X"$file" : 'X\(/\)' \| \
54040 . : '\(.\)' 2>/dev/null ||
54042 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54043 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54044 /^X\(\/\/\)$/{ s//\1/; q; }
54045 /^X\(\/\).*/{ s//\1/; q; }
54047 { if $as_mkdir_p; then
54048 mkdir -p $dirpart/$fdir
54050 as_dir=$dirpart/$fdir
54052 while test ! -d "$as_dir"; do
54053 as_dirs="$as_dir $as_dirs"
54054 as_dir=`(dirname "$as_dir") 2>/dev/null ||
54055 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54056 X"$as_dir" : 'X\(//\)[^/]' \| \
54057 X"$as_dir" : 'X\(//\)$' \| \
54058 X"$as_dir" : 'X\(/\)' \| \
54059 . : '\(.\)' 2>/dev/null ||
54061 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54062 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54063 /^X\(\/\/\)$/{ s//\1/; q; }
54064 /^X\(\/\).*/{ s//\1/; q; }
54067 test ! -n "$as_dirs" || mkdir $as_dirs
54068 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
54069 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
54070 { (exit 1); exit 1; }; }; }
54072 # echo "creating $dirpart/$file"
54073 echo '# dummy' > "$dirpart/$file"
54080 BACKENDSC="servers/slapd/backends.c"
54081 echo "Making $BACKENDSC"
54083 cat > $BACKENDSC << ENDX
54084 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
54086 * Copyright 1998-2005 The OpenLDAP Foundation.
54087 * All rights reserved.
54089 * Redistribution and use in source and binary forms, with or without
54090 * modification, are permitted only as authorized by the OpenLDAP
54093 * A copy of this license is available in the file LICENSE in the
54094 * top-level directory of the distribution or, alternatively, at
54095 * <http://www.OpenLDAP.org/license.html>.
54097 /* This file is automatically generated by configure; please do not edit. */
54099 #include "portable.h"
54103 if test "${STATIC_BACKENDS}"; then
54104 for b in config ${STATIC_BACKENDS}; do
54105 bb=`echo "${b}" | sed -e 's/back-//'`
54106 cat >> $BACKENDSC << ENDX
54107 extern BI_init ${bb}_back_initialize;
54111 cat >> $BACKENDSC << ENDX
54113 BackendInfo slap_binfo[] = {
54116 for b in config ${STATIC_BACKENDS}; do
54117 bb=`echo "${b}" | sed -e 's/back-//'`
54118 echo " Add ${bb} ..."
54119 cat >> $BACKENDSC << ENDX
54120 { "${bb}", ${bb}_back_initialize },
54124 cat >> $BACKENDSC << ENDX
54128 /* end of generated file */
54132 echo Please run \"make depend\" to build dependencies
54138 cat >>$CONFIG_STATUS <<\_ACEOF
54140 { (exit 0); exit 0; }
54142 chmod +x $CONFIG_STATUS
54143 ac_clean_files=$ac_clean_files_save
54146 # configure is writing to config.log, and then calls config.status.
54147 # config.status does its own redirection, appending to config.log.
54148 # Unfortunately, on DOS this fails, as config.log is still kept open
54149 # by configure, so config.status won't be able to write to it; its
54150 # output is simply discarded. So we exec the FD to /dev/null,
54151 # effectively closing config.log, so it can be properly (re)opened and
54152 # appended to by config.status. When coming back to configure, we
54153 # need to make the FD available again.
54154 if test "$no_create" != yes; then
54156 ac_config_status_args=
54157 test "$silent" = yes &&
54158 ac_config_status_args="$ac_config_status_args --quiet"
54160 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
54162 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
54163 # would make configure fail if this is the last instruction.
54164 $ac_cs_success || { (exit 1); exit 1; }