2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $echo works!
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289 echo_test_string="`eval $cmd`" &&
290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299 test "X$echo_testing_string" = "X$echo_test_string"; then
302 # The Solaris, AIX, and Digital Unix default echo programs unquote
303 # backslashes. This makes it impossible to quote backslashes using
304 # echo "$something" | sed 's/\\/\\\\/g'
306 # So, first we look for a working echo in the user's PATH.
308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309 for dir in $PATH /usr/ucb; do
311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314 test "X$echo_testing_string" = "X$echo_test_string"; then
321 if test "X$echo" = Xecho; then
322 # We didn't find a better echo, so look for alternatives.
323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325 test "X$echo_testing_string" = "X$echo_test_string"; then
326 # This shell has a builtin print -r that does the trick.
328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329 test "X$CONFIG_SHELL" != X/bin/ksh; then
330 # If we have ksh, try running configure again with it.
331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332 export ORIGINAL_CONFIG_SHELL
333 CONFIG_SHELL=/bin/ksh
335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341 test "X$echo_testing_string" = "X$echo_test_string"; then
344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345 test "X$echo_testing_string" = 'X\t' &&
346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347 test "X$echo_testing_string" = "X$echo_test_string"; then
348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350 SHELL="$CONFIG_SHELL"
352 echo="$CONFIG_SHELL $0 --fallback-echo"
353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 echo="$CONFIG_SHELL $0 --fallback-echo"
359 # maybe with a smaller string...
362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
370 if test "$prev" != 'sed 50q "$0"'; then
371 echo_test_string=`eval $prev`
372 export echo_test_string
373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375 # Oops. We lost completely, so just stick with echo.
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
394 tagnames=${tagnames+${tagnames},}CXX
396 tagnames=${tagnames+${tagnames},}F77
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
414 SHELL=${CONFIG_SHELL-/bin/sh}
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete. It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
421 # Identity of this package.
428 ac_unique_file="build/version.sh"
429 ac_default_prefix=/usr/local
430 # Factoring default headers for most tests.
431 ac_includes_default="\
434 # include <sys/types.h>
437 # include <sys/stat.h>
448 # if !STDC_HEADERS && HAVE_MEMORY_H
454 # include <strings.h>
457 # include <inttypes.h>
467 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'
470 # Initialize some variables set by options.
472 ac_init_version=false
473 # The variables have the same names as the options, with
474 # dashes changed to underlines.
482 program_transform_name=s,x,x,
490 # Installation directory options.
491 # These are left unexpanded so users can "make install exec_prefix=/foo"
492 # and all the variables that are supposed to be based on exec_prefix
493 # by default will actually change.
494 # Use braces instead of parens because sh, perl, etc. also accept them.
495 bindir='${exec_prefix}/bin'
496 sbindir='${exec_prefix}/sbin'
497 libexecdir='${exec_prefix}/libexec'
498 datadir='${prefix}/share'
499 sysconfdir='${prefix}/etc'
500 sharedstatedir='${prefix}/com'
501 localstatedir='${prefix}/var'
502 libdir='${exec_prefix}/lib'
503 includedir='${prefix}/include'
504 oldincludedir='/usr/include'
505 infodir='${prefix}/info'
506 mandir='${prefix}/man'
511 # If the previous option needs an argument, assign it.
512 if test -n "$ac_prev"; then
513 eval "$ac_prev=\$ac_option"
518 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520 # Accept the important Cygnus configure options, so we can diagnose typos.
524 -bindir | --bindir | --bindi | --bind | --bin | --bi)
526 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529 -build | --build | --buil | --bui | --bu)
530 ac_prev=build_alias ;;
531 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532 build_alias=$ac_optarg ;;
534 -cache-file | --cache-file | --cache-fil | --cache-fi \
535 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536 ac_prev=cache_file ;;
537 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539 cache_file=$ac_optarg ;;
542 cache_file=config.cache ;;
544 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548 datadir=$ac_optarg ;;
550 -disable-* | --disable-*)
551 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552 # Reject names that are not valid shell variable names.
553 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555 { (exit 1); exit 1; }; }
556 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557 eval "enable_$ac_feature=no" ;;
559 -enable-* | --enable-*)
560 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561 # Reject names that are not valid shell variable names.
562 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564 { (exit 1); exit 1; }; }
565 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570 eval "enable_$ac_feature='$ac_optarg'" ;;
572 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574 | --exec | --exe | --ex)
575 ac_prev=exec_prefix ;;
576 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578 | --exec=* | --exe=* | --ex=*)
579 exec_prefix=$ac_optarg ;;
581 -gas | --gas | --ga | --g)
582 # Obsolete; use --with-gas.
585 -help | --help | --hel | --he | -h)
587 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588 ac_init_help=recursive ;;
589 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590 ac_init_help=short ;;
592 -host | --host | --hos | --ho)
593 ac_prev=host_alias ;;
594 -host=* | --host=* | --hos=* | --ho=*)
595 host_alias=$ac_optarg ;;
597 -includedir | --includedir | --includedi | --included | --include \
598 | --includ | --inclu | --incl | --inc)
599 ac_prev=includedir ;;
600 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601 | --includ=* | --inclu=* | --incl=* | --inc=*)
602 includedir=$ac_optarg ;;
604 -infodir | --infodir | --infodi | --infod | --info | --inf)
606 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607 infodir=$ac_optarg ;;
609 -libdir | --libdir | --libdi | --libd)
611 -libdir=* | --libdir=* | --libdi=* | --libd=*)
614 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615 | --libexe | --libex | --libe)
616 ac_prev=libexecdir ;;
617 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618 | --libexe=* | --libex=* | --libe=*)
619 libexecdir=$ac_optarg ;;
621 -localstatedir | --localstatedir | --localstatedi | --localstated \
622 | --localstate | --localstat | --localsta | --localst \
623 | --locals | --local | --loca | --loc | --lo)
624 ac_prev=localstatedir ;;
625 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628 localstatedir=$ac_optarg ;;
630 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
636 # Obsolete; use --without-fp.
639 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640 | --no-cr | --no-c | -n)
643 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649 | --oldin | --oldi | --old | --ol | --o)
650 ac_prev=oldincludedir ;;
651 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654 oldincludedir=$ac_optarg ;;
656 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661 -program-prefix | --program-prefix | --program-prefi | --program-pref \
662 | --program-pre | --program-pr | --program-p)
663 ac_prev=program_prefix ;;
664 -program-prefix=* | --program-prefix=* | --program-prefi=* \
665 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666 program_prefix=$ac_optarg ;;
668 -program-suffix | --program-suffix | --program-suffi | --program-suff \
669 | --program-suf | --program-su | --program-s)
670 ac_prev=program_suffix ;;
671 -program-suffix=* | --program-suffix=* | --program-suffi=* \
672 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673 program_suffix=$ac_optarg ;;
675 -program-transform-name | --program-transform-name \
676 | --program-transform-nam | --program-transform-na \
677 | --program-transform-n | --program-transform- \
678 | --program-transform | --program-transfor \
679 | --program-transfo | --program-transf \
680 | --program-trans | --program-tran \
681 | --progr-tra | --program-tr | --program-t)
682 ac_prev=program_transform_name ;;
683 -program-transform-name=* | --program-transform-name=* \
684 | --program-transform-nam=* | --program-transform-na=* \
685 | --program-transform-n=* | --program-transform-=* \
686 | --program-transform=* | --program-transfor=* \
687 | --program-transfo=* | --program-transf=* \
688 | --program-trans=* | --program-tran=* \
689 | --progr-tra=* | --program-tr=* | --program-t=*)
690 program_transform_name=$ac_optarg ;;
692 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693 | -silent | --silent | --silen | --sile | --sil)
696 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700 sbindir=$ac_optarg ;;
702 -sharedstatedir | --sharedstatedir | --sharedstatedi \
703 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704 | --sharedst | --shareds | --shared | --share | --shar \
706 ac_prev=sharedstatedir ;;
707 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711 sharedstatedir=$ac_optarg ;;
713 -site | --site | --sit)
715 -site=* | --site=* | --sit=*)
718 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724 | --syscon | --sysco | --sysc | --sys | --sy)
725 ac_prev=sysconfdir ;;
726 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728 sysconfdir=$ac_optarg ;;
730 -target | --target | --targe | --targ | --tar | --ta | --t)
731 ac_prev=target_alias ;;
732 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733 target_alias=$ac_optarg ;;
735 -v | -verbose | --verbose | --verbos | --verbo | --verb)
738 -version | --version | --versio | --versi | --vers | -V)
742 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743 # Reject names that are not valid shell variable names.
744 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745 { echo "$as_me: error: invalid package name: $ac_package" >&2
746 { (exit 1); exit 1; }; }
747 ac_package=`echo $ac_package| sed 's/-/_/g'`
749 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752 eval "with_$ac_package='$ac_optarg'" ;;
754 -without-* | --without-*)
755 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756 # Reject names that are not valid shell variable names.
757 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758 { echo "$as_me: error: invalid package name: $ac_package" >&2
759 { (exit 1); exit 1; }; }
760 ac_package=`echo $ac_package | sed 's/-/_/g'`
761 eval "with_$ac_package=no" ;;
764 # Obsolete; use --with-x.
767 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768 | --x-incl | --x-inc | --x-in | --x-i)
769 ac_prev=x_includes ;;
770 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772 x_includes=$ac_optarg ;;
774 -x-libraries | --x-libraries | --x-librarie | --x-librari \
775 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776 ac_prev=x_libraries ;;
777 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779 x_libraries=$ac_optarg ;;
781 -*) { echo "$as_me: error: unrecognized option: $ac_option
782 Try \`$0 --help' for more information." >&2
783 { (exit 1); exit 1; }; }
787 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788 # Reject names that are not valid shell variable names.
789 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791 { (exit 1); exit 1; }; }
792 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793 eval "$ac_envvar='$ac_optarg'"
797 # FIXME: should be removed in autoconf 3.0.
798 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
807 if test -n "$ac_prev"; then
808 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809 { echo "$as_me: error: missing argument to $ac_option" >&2
810 { (exit 1); exit 1; }; }
813 # Be sure to have absolute paths.
814 for ac_var in exec_prefix prefix
816 eval ac_val=$`echo $ac_var`
818 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820 { (exit 1); exit 1; }; };;
824 # Be sure to have absolute paths.
825 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826 localstatedir libdir includedir oldincludedir infodir mandir
828 eval ac_val=$`echo $ac_var`
830 [\\/$]* | ?:[\\/]* ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
836 # There might be people who depend on the old broken behavior: `$host'
837 # used to hold the argument of --host etc.
838 # FIXME: To remove some day.
843 # FIXME: To remove some day.
844 if test "x$host_alias" != x; then
845 if test "x$build_alias" = x; then
846 cross_compiling=maybe
847 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848 If a cross compiler is detected then cross compile mode will be used." >&2
849 elif test "x$build_alias" != "x$host_alias"; then
855 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857 test "$silent" = yes && exec 6>/dev/null
860 # Find the source files, if location was not specified.
861 if test -z "$srcdir"; then
862 ac_srcdir_defaulted=yes
863 # Try the directory containing this script, then its parent.
864 ac_confdir=`(dirname "$0") 2>/dev/null ||
865 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866 X"$0" : 'X\(//\)[^/]' \| \
867 X"$0" : 'X\(//\)$' \| \
868 X"$0" : 'X\(/\)' \| \
869 . : '\(.\)' 2>/dev/null ||
871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873 /^X\(\/\/\)$/{ s//\1/; q; }
874 /^X\(\/\).*/{ s//\1/; q; }
877 if test ! -r $srcdir/$ac_unique_file; then
881 ac_srcdir_defaulted=no
883 if test ! -r $srcdir/$ac_unique_file; then
884 if test "$ac_srcdir_defaulted" = yes; then
885 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886 { (exit 1); exit 1; }; }
888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889 { (exit 1); exit 1; }; }
892 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894 { (exit 1); exit 1; }; }
895 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896 ac_env_build_alias_set=${build_alias+set}
897 ac_env_build_alias_value=$build_alias
898 ac_cv_env_build_alias_set=${build_alias+set}
899 ac_cv_env_build_alias_value=$build_alias
900 ac_env_host_alias_set=${host_alias+set}
901 ac_env_host_alias_value=$host_alias
902 ac_cv_env_host_alias_set=${host_alias+set}
903 ac_cv_env_host_alias_value=$host_alias
904 ac_env_target_alias_set=${target_alias+set}
905 ac_env_target_alias_value=$target_alias
906 ac_cv_env_target_alias_set=${target_alias+set}
907 ac_cv_env_target_alias_value=$target_alias
908 ac_env_CC_set=${CC+set}
910 ac_cv_env_CC_set=${CC+set}
911 ac_cv_env_CC_value=$CC
912 ac_env_CFLAGS_set=${CFLAGS+set}
913 ac_env_CFLAGS_value=$CFLAGS
914 ac_cv_env_CFLAGS_set=${CFLAGS+set}
915 ac_cv_env_CFLAGS_value=$CFLAGS
916 ac_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_env_LDFLAGS_value=$LDFLAGS
918 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_cv_env_LDFLAGS_value=$LDFLAGS
920 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_env_CPPFLAGS_value=$CPPFLAGS
922 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924 ac_env_CPP_set=${CPP+set}
925 ac_env_CPP_value=$CPP
926 ac_cv_env_CPP_set=${CPP+set}
927 ac_cv_env_CPP_value=$CPP
928 ac_env_CXX_set=${CXX+set}
929 ac_env_CXX_value=$CXX
930 ac_cv_env_CXX_set=${CXX+set}
931 ac_cv_env_CXX_value=$CXX
932 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933 ac_env_CXXFLAGS_value=$CXXFLAGS
934 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936 ac_env_CXXCPP_set=${CXXCPP+set}
937 ac_env_CXXCPP_value=$CXXCPP
938 ac_cv_env_CXXCPP_set=${CXXCPP+set}
939 ac_cv_env_CXXCPP_value=$CXXCPP
940 ac_env_F77_set=${F77+set}
941 ac_env_F77_value=$F77
942 ac_cv_env_F77_set=${F77+set}
943 ac_cv_env_F77_value=$F77
944 ac_env_FFLAGS_set=${FFLAGS+set}
945 ac_env_FFLAGS_value=$FFLAGS
946 ac_cv_env_FFLAGS_set=${FFLAGS+set}
947 ac_cv_env_FFLAGS_value=$FFLAGS
950 # Report the --help message.
952 if test "$ac_init_help" = "long"; then
953 # Omit some internal or obsolete options to make the list less imposing.
954 # This message is too long to be a string in the A/UX 3.1 sh.
956 \`configure' configures this package to adapt to many kinds of systems.
958 Usage: $0 [OPTION]... [VAR=VALUE]...
960 To assign environment variables (e.g., CC, CFLAGS...), specify them as
961 VAR=VALUE. See below for descriptions of some of the useful variables.
963 Defaults for the options are specified in brackets.
966 -h, --help display this help and exit
967 --help=short display options specific to this package
968 --help=recursive display the short help of all the included packages
969 -V, --version display version information and exit
970 -q, --quiet, --silent do not print \`checking...' messages
971 --cache-file=FILE cache test results in FILE [disabled]
972 -C, --config-cache alias for \`--cache-file=config.cache'
973 -n, --no-create do not create output files
974 --srcdir=DIR find the sources in DIR [configure dir or \`..']
979 Installation directories:
980 --prefix=PREFIX install architecture-independent files in PREFIX
982 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
985 By default, \`make install' will install all the files in
986 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
987 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988 for instance \`--prefix=\$HOME'.
990 For better control, use the options below.
992 Fine tuning of the installation directories:
993 --bindir=DIR user executables [EPREFIX/bin]
994 --sbindir=DIR system admin executables [EPREFIX/sbin]
995 --libexecdir=DIR program executables [EPREFIX/libexec]
996 --datadir=DIR read-only architecture-independent data [PREFIX/share]
997 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
998 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
999 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1000 --libdir=DIR object code libraries [EPREFIX/lib]
1001 --includedir=DIR C header files [PREFIX/include]
1002 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1003 --infodir=DIR info documentation [PREFIX/info]
1004 --mandir=DIR man documentation [PREFIX/man]
1010 --program-prefix=PREFIX prepend PREFIX to installed program names
1011 --program-suffix=SUFFIX append SUFFIX to installed program names
1012 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1015 --build=BUILD configure for building on BUILD [guessed]
1016 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1017 --target=TARGET configure for building compilers for TARGET [HOST]
1021 if test -n "$ac_init_help"; then
1026 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1027 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1028 --enable-debug enable debugging yes
1029 --enable-dynamic enable linking built binaries with dynamic libs no
1030 --enable-syslog enable syslog support auto
1031 --enable-proctitle enable proctitle support yes
1032 --enable-ipv6 enable IPv6 support auto
1033 --enable-local enable AF_LOCAL (AF_UNIX) socket support auto
1034 --enable-slapd enable building slapd yes
1035 --enable-aci enable per-object ACIs (experimental) no
1036 --enable-cleartext enable cleartext passwords yes
1037 --enable-crypt enable crypt(3) passwords no
1038 --enable-lmpasswd enable LAN Manager passwords no
1039 --enable-spasswd enable (Cyrus) SASL password verification no
1040 --enable-modules enable dynamic module support no
1041 --enable-rewrite enable DN rewriting in back-ldap and rwm overlay auto
1042 --enable-rlookups enable reverse lookups of client hostnames no
1043 --enable-slapi enable SLAPI support (experimental) no
1044 --enable-slp enable SLPv2 support no
1045 --enable-wrappers enable tcp wrapper support no
1046 --enable-backends enable all available backends no|yes|mod
1047 --enable-bdb enable Berkeley DB backend no|yes|mod ${ol_dflt_backends-yes}
1048 --enable-dnssrv enable dnssrv backend no|yes|mod ${ol_dflt_backends-no}
1049 --enable-hdb enable Hierarchical DB backend no|yes|mod ${ol_dflt_backends-yes}
1050 --enable-ldap enable ldap backend no|yes|mod ${ol_dflt_backends-no}
1051 --enable-ldbm enable ldbm backend no|yes|mod ${ol_dflt_backends-no}
1052 --enable-meta enable metadirectory backend no|yes|mod ${ol_dflt_backends-no}
1053 --enable-monitor enable monitor backend no|yes|mod ${ol_dflt_backends-yes}
1054 --enable-null enable null backend no|yes|mod ${ol_dflt_backends-no}
1055 --enable-passwd enable passwd backend no|yes|mod ${ol_dflt_backends-no}
1056 --enable-perl enable perl backend no|yes|mod ${ol_dflt_backends-no}
1057 --enable-relay enable relay backend no|yes|mod ${ol_dflt_backends-yes}
1058 --enable-shell enable shell backend no|yes|mod ${ol_dflt_backends-no}
1059 --enable-sql enable sql backend no|yes|mod ${ol_dflt_backends-no}
1060 --enable-overlays enable all available overlays no|yes|mod
1061 --enable-accesslog In-Directory Access Logging overlay no|yes|mod ${ol_dflt_overlays-no}
1062 --enable-denyop Deny Operation overlay no|yes|mod ${ol_dflt_overlays-no}
1063 --enable-dyngroup Dynamic Group overlay no|yes|mod ${ol_dflt_overlays-no}
1064 --enable-dynlist Dynamic List overlay no|yes|mod ${ol_dflt_overlays-no}
1065 --enable-glue Backend Glue overlay no|yes|mod ${ol_dflt_overlays-yes}
1066 --enable-lastmod Last Modification overlay no|yes|mod ${ol_dflt_overlays-no}
1067 --enable-ppolicy Password Policy overlay no|yes|mod ${ol_dflt_overlays-no}
1068 --enable-proxycache Proxy Cache overlay no|yes|mod ${ol_dflt_overlays-no}
1069 --enable-refint Referential Integrity overlay no|yes|mod ${ol_dflt_overlays-no}
1070 --enable-retcode Return Code testing overlay no|yes|mod ${ol_dflt_overlays-no}
1071 --enable-rwm Rewrite/Remap overlay no|yes|mod ${ol_dflt_overlays-no}
1072 --enable-syncprov Syncrepl Provider overlay no|yes|mod ${ol_dflt_overlays-yes}
1073 --enable-translucent Translucent Proxy overlay no|yes|mod ${ol_dflt_overlays-no}
1074 --enable-unique Attribute Uniqueness overlay no|yes|mod ${ol_dflt_overlays-no}
1075 --enable-slurpd enable building slurpd auto
1076 --enable-static[=PKGS]
1077 build static libraries [default=yes]
1078 --enable-shared[=PKGS]
1079 build shared libraries [default=yes]
1080 --enable-fast-install[=PKGS]
1081 optimize for fast installation [default=yes]
1082 --disable-dependency-tracking speeds up one-time build
1083 --enable-dependency-tracking do not reject slow dependency extractors
1084 --disable-libtool-lock avoid locking (might break parallel builds)
1087 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1088 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1089 --with-subdir=DIR change default subdirectory used for installs
1090 --with-cyrus-sasl with Cyrus SASL support auto
1091 --with-fetch with fetch(3) URL support auto
1092 --with-threads with threads auto
1093 --with-tls with TLS/SSL support auto
1094 --with-yielding-select with implicitly yielding select auto
1095 --with-multiple-precision
1096 multiple precision support for statistics
1097 auto|bignum|gmp auto
1099 SLAPD (Standalone LDAP Daemon) Options:
1101 SLAPD Backend Options:
1102 --with-ldbm-api with LDBM API auto|berkeley|bcompat|mdbm|gdbm auto
1103 --with-ldbm-type use LDBM type auto|btree|hash auto
1105 SLAPD Overlay Options:
1107 SLURPD (Replication Daemon) Options:
1109 Library Generation & Linking Options
1110 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1111 --with-pic try to use only PIC/non-PIC objects [default=use
1114 include additional configurations [automatic]
1116 See INSTALL file for further details.
1118 Some influential environment variables:
1119 CC C compiler command
1120 CFLAGS C compiler flags
1121 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1122 nonstandard directory <lib dir>
1123 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1124 headers in a nonstandard directory <include dir>
1126 CXX C++ compiler command
1127 CXXFLAGS C++ compiler flags
1128 CXXCPP C++ preprocessor
1129 F77 Fortran 77 compiler command
1130 FFLAGS Fortran 77 compiler flags
1132 Use these variables to override the choices made by `configure' or to help
1133 it to find libraries and programs with nonstandard names/locations.
1138 if test "$ac_init_help" = "recursive"; then
1139 # If there are subdirs, report their specific --help.
1141 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1142 test -d $ac_dir || continue
1145 if test "$ac_dir" != .; then
1146 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1147 # A "../" for each directory in $ac_dir_suffix.
1148 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1150 ac_dir_suffix= ac_top_builddir=
1154 .) # No --srcdir option. We are building in place.
1156 if test -z "$ac_top_builddir"; then
1159 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1161 [\\/]* | ?:[\\/]* ) # Absolute path.
1162 ac_srcdir=$srcdir$ac_dir_suffix;
1163 ac_top_srcdir=$srcdir ;;
1165 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1166 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1169 # Do not use `cd foo && pwd` to compute absolute paths, because
1170 # the directories may not exist.
1172 .) ac_abs_builddir="$ac_dir";;
1175 .) ac_abs_builddir=`pwd`;;
1176 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1177 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1180 case $ac_abs_builddir in
1181 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1183 case ${ac_top_builddir}. in
1184 .) ac_abs_top_builddir=$ac_abs_builddir;;
1185 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1186 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1189 case $ac_abs_builddir in
1190 .) ac_abs_srcdir=$ac_srcdir;;
1193 .) ac_abs_srcdir=$ac_abs_builddir;;
1194 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1195 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1198 case $ac_abs_builddir in
1199 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1201 case $ac_top_srcdir in
1202 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1203 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1204 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1209 # Check for guested configure; otherwise get Cygnus style configure.
1210 if test -f $ac_srcdir/configure.gnu; then
1212 $SHELL $ac_srcdir/configure.gnu --help=recursive
1213 elif test -f $ac_srcdir/configure; then
1215 $SHELL $ac_srcdir/configure --help=recursive
1216 elif test -f $ac_srcdir/configure.ac ||
1217 test -f $ac_srcdir/configure.in; then
1219 $ac_configure --help
1221 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1227 test -n "$ac_init_help" && exit 0
1228 if $ac_init_version; then
1231 Copyright (C) 2003 Free Software Foundation, Inc.
1232 This configure script is free software; the Free Software Foundation
1233 gives unlimited permission to copy, distribute and modify it.
1239 This file contains any messages produced by compilers while
1240 running configure, to aid debugging if configure makes a mistake.
1242 It was created by $as_me, which was
1243 generated by GNU Autoconf 2.59. Invocation command line was
1254 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1255 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1256 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1257 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1258 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1260 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1261 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1263 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1264 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1265 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1266 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1267 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1268 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1269 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1277 test -z "$as_dir" && as_dir=.
1278 echo "PATH: $as_dir"
1293 # Keep a trace of the command line.
1294 # Strip out --no-create and --no-recursion so they do not pile up.
1295 # Strip out --silent because we don't want to record it for future runs.
1296 # Also quote any args containing shell meta-characters.
1297 # Make two passes to allow for proper duplicate-argument suppression.
1302 ac_must_keep_next=false
1308 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1309 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1310 | -silent | --silent | --silen | --sile | --sil)
1312 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1313 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1316 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1318 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1319 if test $ac_must_keep_next = true; then
1320 ac_must_keep_next=false # Got value, back to normal.
1323 *=* | --config-cache | -C | -disable-* | --disable-* \
1324 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1325 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1326 | -with-* | --with-* | -without-* | --without-* | --x)
1327 case "$ac_configure_args0 " in
1328 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1331 -* ) ac_must_keep_next=true ;;
1334 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1335 # Get rid of the leading space.
1341 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1342 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1344 # When interrupted or exit'd, cleanup temporary files, and complete
1345 # config.log. We remove comments because anyway the quotes in there
1346 # would cause problems or look ugly.
1347 # WARNING: Be sure not to use single quotes in there, as some shells,
1348 # such as our DU 5.0 friend, will then `close' the trap.
1349 trap 'exit_status=$?
1350 # Save into config.log some information that might help in debugging.
1355 ## ---------------- ##
1356 ## Cache variables. ##
1357 ## ---------------- ##
1360 # The following way of writing the cache mishandles newlines in values,
1363 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1366 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1367 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1371 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1378 ## ----------------- ##
1379 ## Output variables. ##
1380 ## ----------------- ##
1383 for ac_var in $ac_subst_vars
1385 eval ac_val=$`echo $ac_var`
1386 echo "$ac_var='"'"'$ac_val'"'"'"
1390 if test -n "$ac_subst_files"; then
1397 for ac_var in $ac_subst_files
1399 eval ac_val=$`echo $ac_var`
1400 echo "$ac_var='"'"'$ac_val'"'"'"
1405 if test -s confdefs.h; then
1412 sed "/^$/d" confdefs.h | sort
1415 test "$ac_signal" != 0 &&
1416 echo "$as_me: caught signal $ac_signal"
1417 echo "$as_me: exit $exit_status"
1419 rm -f core *.core &&
1420 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1423 for ac_signal in 1 2 13 15; do
1424 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1428 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1429 rm -rf conftest* confdefs.h
1430 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1433 # Predefined preprocessor variables.
1435 cat >>confdefs.h <<_ACEOF
1436 #define PACKAGE_NAME "$PACKAGE_NAME"
1440 cat >>confdefs.h <<_ACEOF
1441 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1445 cat >>confdefs.h <<_ACEOF
1446 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1450 cat >>confdefs.h <<_ACEOF
1451 #define PACKAGE_STRING "$PACKAGE_STRING"
1455 cat >>confdefs.h <<_ACEOF
1456 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1460 # Let the site file select an alternate cache file if it wants to.
1461 # Prefer explicitly selected file to automatically selected ones.
1462 if test -z "$CONFIG_SITE"; then
1463 if test "x$prefix" != xNONE; then
1464 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1466 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1469 for ac_site_file in $CONFIG_SITE; do
1470 if test -r "$ac_site_file"; then
1471 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1472 echo "$as_me: loading site script $ac_site_file" >&6;}
1473 sed 's/^/| /' "$ac_site_file" >&5
1479 # Check that the precious variables saved in the cache have kept the same
1481 ac_cache_corrupted=false
1482 for ac_var in `(set) 2>&1 |
1483 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1484 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1485 eval ac_new_set=\$ac_env_${ac_var}_set
1486 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1487 eval ac_new_val="\$ac_env_${ac_var}_value"
1488 case $ac_old_set,$ac_new_set in
1490 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1491 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1492 ac_cache_corrupted=: ;;
1494 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1495 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1496 ac_cache_corrupted=: ;;
1499 if test "x$ac_old_val" != "x$ac_new_val"; then
1500 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1501 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1502 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1503 echo "$as_me: former value: $ac_old_val" >&2;}
1504 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1505 echo "$as_me: current value: $ac_new_val" >&2;}
1506 ac_cache_corrupted=:
1509 # Pass precious variables to config.status.
1510 if test "$ac_new_set" = set; then
1512 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1513 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1514 *) ac_arg=$ac_var=$ac_new_val ;;
1516 case " $ac_configure_args " in
1517 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1518 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1522 if $ac_cache_corrupted; then
1523 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1524 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1525 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1526 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1527 { (exit 1); exit 1; }; }
1531 ac_cpp='$CPP $CPPFLAGS'
1532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1555 # set unset (borrowed from autoconf 2.49c)
1556 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
1562 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
1565 for ac_dir in build $srcdir/build; do
1566 if test -f $ac_dir/install-sh; then
1568 ac_install_sh="$ac_aux_dir/install-sh -c"
1570 elif test -f $ac_dir/install.sh; then
1572 ac_install_sh="$ac_aux_dir/install.sh -c"
1574 elif test -f $ac_dir/shtool; then
1576 ac_install_sh="$ac_aux_dir/shtool install -c"
1580 if test -z "$ac_aux_dir"; then
1581 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1582 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1583 { (exit 1); exit 1; }; }
1585 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1586 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1587 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1589 eval `$ac_aux_dir/version.sh`
1590 if test -z "$OL_STRING"; then
1591 { { echo "$as_me:$LINENO: error: could not determine version" >&5
1592 echo "$as_me: error: could not determine version" >&2;}
1593 { (exit 1); exit 1; }; }
1596 if test -f "$ac_aux_dir/shtool" -a ! -d $ac_aux_dir/shtool; then
1597 ac_cv_shtool="$ac_aux_dir/shtool"
1599 { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1600 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1601 { (exit 1); exit 1; }; }
1604 SHTOOL="$ac_cv_shtool"
1606 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1607 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1610 if test -d $ac_aux_dir/CVS; then
1611 OPENLDAP_CVS="(from CVS sources) "
1614 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1616 # Make sure we can run config.sub.
1617 $ac_config_sub sun4 >/dev/null 2>&1 ||
1618 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1619 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1620 { (exit 1); exit 1; }; }
1622 echo "$as_me:$LINENO: checking build system type" >&5
1623 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1624 if test "${ac_cv_build+set}" = set; then
1625 echo $ECHO_N "(cached) $ECHO_C" >&6
1627 ac_cv_build_alias=$build_alias
1628 test -z "$ac_cv_build_alias" &&
1629 ac_cv_build_alias=`$ac_config_guess`
1630 test -z "$ac_cv_build_alias" &&
1631 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1632 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1633 { (exit 1); exit 1; }; }
1634 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1635 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1636 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1637 { (exit 1); exit 1; }; }
1640 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1641 echo "${ECHO_T}$ac_cv_build" >&6
1643 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1644 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1645 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1648 echo "$as_me:$LINENO: checking host system type" >&5
1649 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1650 if test "${ac_cv_host+set}" = set; then
1651 echo $ECHO_N "(cached) $ECHO_C" >&6
1653 ac_cv_host_alias=$host_alias
1654 test -z "$ac_cv_host_alias" &&
1655 ac_cv_host_alias=$ac_cv_build_alias
1656 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1657 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1658 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1659 { (exit 1); exit 1; }; }
1662 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1663 echo "${ECHO_T}$ac_cv_host" >&6
1665 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1666 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1667 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1670 echo "$as_me:$LINENO: checking target system type" >&5
1671 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1672 if test "${ac_cv_target+set}" = set; then
1673 echo $ECHO_N "(cached) $ECHO_C" >&6
1675 ac_cv_target_alias=$target_alias
1676 test "x$ac_cv_target_alias" = "x" &&
1677 ac_cv_target_alias=$ac_cv_host_alias
1678 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1679 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1680 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1681 { (exit 1); exit 1; }; }
1684 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1685 echo "${ECHO_T}$ac_cv_target" >&6
1686 target=$ac_cv_target
1687 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1688 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1689 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1692 # The aliases save the names the user supplied, while $host etc.
1693 # will get canonicalized.
1694 test -n "$target_alias" &&
1695 test "$program_prefix$program_suffix$program_transform_name" = \
1697 program_prefix=${target_alias}-
1699 am__api_version="1.9"
1700 # Find a good install program. We prefer a C program (faster),
1701 # so one script is as good as another. But avoid the broken or
1702 # incompatible versions:
1703 # SysV /etc/install, /usr/sbin/install
1704 # SunOS /usr/etc/install
1705 # IRIX /sbin/install
1707 # AmigaOS /C/install, which installs bootblocks on floppy discs
1708 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1709 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1710 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1711 # OS/2's system install, which has a completely different semantic
1712 # ./install, which can be erroneously created by make from ./install.sh.
1713 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1714 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1715 if test -z "$INSTALL"; then
1716 if test "${ac_cv_path_install+set}" = set; then
1717 echo $ECHO_N "(cached) $ECHO_C" >&6
1719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1723 test -z "$as_dir" && as_dir=.
1724 # Account for people who put trailing slashes in PATH elements.
1726 ./ | .// | /cC/* | \
1727 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1728 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1731 # OSF1 and SCO ODT 3.0 have their own names for install.
1732 # Don't use installbsd from OSF since it installs stuff as root
1734 for ac_prog in ginstall scoinst install; do
1735 for ac_exec_ext in '' $ac_executable_extensions; do
1736 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1737 if test $ac_prog = install &&
1738 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1739 # AIX install. It has an incompatible calling convention.
1741 elif test $ac_prog = install &&
1742 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1743 # program-specific install script used by HP pwplus--don't use.
1746 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1758 if test "${ac_cv_path_install+set}" = set; then
1759 INSTALL=$ac_cv_path_install
1761 # As a last resort, use the slow shell script. We don't cache a
1762 # path for INSTALL within a source directory, because that will
1763 # break other packages using the cache if that directory is
1764 # removed, or if the path is relative.
1765 INSTALL=$ac_install_sh
1768 echo "$as_me:$LINENO: result: $INSTALL" >&5
1769 echo "${ECHO_T}$INSTALL" >&6
1771 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1772 # It thinks the first close brace ends the variable substitution.
1773 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1775 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1777 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1779 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1780 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1783 echo timestamp > conftest.file
1784 # Do `set' in a subshell so we don't clobber the current shell's
1785 # arguments. Must try -L first in case configure is actually a
1786 # symlink; some systems play weird games with the mod time of symlinks
1787 # (eg FreeBSD returns the mod time of the symlink's containing
1790 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1791 if test "$*" = "X"; then
1793 set X `ls -t $srcdir/configure conftest.file`
1796 if test "$*" != "X $srcdir/configure conftest.file" \
1797 && test "$*" != "X conftest.file $srcdir/configure"; then
1799 # If neither matched, then we have a broken ls. This can happen
1800 # if, for instance, CONFIG_SHELL is bash and it inherits a
1801 # broken ls alias from the environment. This has actually
1802 # happened. Such a system could not be considered "sane".
1803 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1804 alias in your environment" >&5
1805 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1806 alias in your environment" >&2;}
1807 { (exit 1); exit 1; }; }
1810 test "$2" = conftest.file
1816 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1817 Check your system clock" >&5
1818 echo "$as_me: error: newly created file is older than distributed files!
1819 Check your system clock" >&2;}
1820 { (exit 1); exit 1; }; }
1822 echo "$as_me:$LINENO: result: yes" >&5
1823 echo "${ECHO_T}yes" >&6
1824 test "$program_prefix" != NONE &&
1825 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1826 # Use a double $ so make ignores it.
1827 test "$program_suffix" != NONE &&
1828 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1829 # Double any \ or $. echo might interpret backslashes.
1830 # By default was `s,x,x', remove it if useless.
1831 cat <<\_ACEOF >conftest.sed
1832 s/[\\$]/&&/g;s/;s,x,x,$//
1834 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1837 # expand $ac_aux_dir to an absolute path
1838 am_aux_dir=`cd $ac_aux_dir && pwd`
1840 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1841 # Use eval to expand $SHELL
1842 if eval "$MISSING --run true"; then
1843 am_missing_run="$MISSING --run "
1846 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1847 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1850 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1851 # We used to keeping the `.' as first argument, in order to
1852 # allow $(mkdir_p) to be used without argument. As in
1853 # $(mkdir_p) $(somedir)
1854 # where $(somedir) is conditionally defined. However this is wrong
1856 # 1. if the package is installed by a user who cannot write `.'
1857 # make install will fail,
1858 # 2. the above comment should most certainly read
1859 # $(mkdir_p) $(DESTDIR)$(somedir)
1860 # so it does not work when $(somedir) is undefined and
1861 # $(DESTDIR) is not.
1862 # To support the latter case, we have to write
1863 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1864 # so the `.' trick is pointless.
1865 mkdir_p='mkdir -p --'
1867 # On NextStep and OpenStep, the `mkdir' command does not
1868 # recognize any option. It will interpret all options as
1869 # directories to create, and then abort because `.' already
1871 for d in ./-p ./--version;
1873 test -d $d && rmdir $d
1875 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1876 if test -f "$ac_aux_dir/mkinstalldirs"; then
1877 mkdir_p='$(mkinstalldirs)'
1879 mkdir_p='$(install_sh) -d'
1883 for ac_prog in gawk mawk nawk awk
1885 # Extract the first word of "$ac_prog", so it can be a program name with args.
1886 set dummy $ac_prog; ac_word=$2
1887 echo "$as_me:$LINENO: checking for $ac_word" >&5
1888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1889 if test "${ac_cv_prog_AWK+set}" = set; then
1890 echo $ECHO_N "(cached) $ECHO_C" >&6
1892 if test -n "$AWK"; then
1893 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1899 test -z "$as_dir" && as_dir=.
1900 for ac_exec_ext in '' $ac_executable_extensions; do
1901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1902 ac_cv_prog_AWK="$ac_prog"
1903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1912 if test -n "$AWK"; then
1913 echo "$as_me:$LINENO: result: $AWK" >&5
1914 echo "${ECHO_T}$AWK" >&6
1916 echo "$as_me:$LINENO: result: no" >&5
1917 echo "${ECHO_T}no" >&6
1920 test -n "$AWK" && break
1923 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1924 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1925 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1926 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1927 echo $ECHO_N "(cached) $ECHO_C" >&6
1929 cat >conftest.make <<\_ACEOF
1931 @echo 'ac_maketemp="$(MAKE)"'
1933 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1934 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1935 if test -n "$ac_maketemp"; then
1936 eval ac_cv_prog_make_${ac_make}_set=yes
1938 eval ac_cv_prog_make_${ac_make}_set=no
1942 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1943 echo "$as_me:$LINENO: result: yes" >&5
1944 echo "${ECHO_T}yes" >&6
1947 echo "$as_me:$LINENO: result: no" >&5
1948 echo "${ECHO_T}no" >&6
1949 SET_MAKE="MAKE=${MAKE-make}"
1952 rm -rf .tst 2>/dev/null
1953 mkdir .tst 2>/dev/null
1954 if test -d .tst; then
1959 rmdir .tst 2>/dev/null
1961 # test to see if srcdir already configured
1962 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1963 test -f $srcdir/config.status; then
1964 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1965 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1966 { (exit 1); exit 1; }; }
1969 # test whether we have cygpath
1970 if test -z "$CYGPATH_W"; then
1971 if (cygpath --version) >/dev/null 2>/dev/null; then
1972 CYGPATH_W='cygpath -w'
1979 # Define the identity of the package.
1984 # Some tools Automake needs.
1986 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1989 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1992 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1995 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1998 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2000 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2002 # Installed binaries are usually stripped using `strip' when the user
2003 # run `make install-strip'. However `strip' might not be the right
2004 # tool to use in cross-compilation environments, therefore Automake
2005 # will honor the `STRIP' environment variable to overrule this program.
2006 if test "$cross_compiling" != no; then
2007 if test -n "$ac_tool_prefix"; then
2008 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2009 set dummy ${ac_tool_prefix}strip; ac_word=$2
2010 echo "$as_me:$LINENO: checking for $ac_word" >&5
2011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2012 if test "${ac_cv_prog_STRIP+set}" = set; then
2013 echo $ECHO_N "(cached) $ECHO_C" >&6
2015 if test -n "$STRIP"; then
2016 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2022 test -z "$as_dir" && as_dir=.
2023 for ac_exec_ext in '' $ac_executable_extensions; do
2024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2025 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2034 STRIP=$ac_cv_prog_STRIP
2035 if test -n "$STRIP"; then
2036 echo "$as_me:$LINENO: result: $STRIP" >&5
2037 echo "${ECHO_T}$STRIP" >&6
2039 echo "$as_me:$LINENO: result: no" >&5
2040 echo "${ECHO_T}no" >&6
2044 if test -z "$ac_cv_prog_STRIP"; then
2046 # Extract the first word of "strip", so it can be a program name with args.
2047 set dummy strip; ac_word=$2
2048 echo "$as_me:$LINENO: checking for $ac_word" >&5
2049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2050 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2051 echo $ECHO_N "(cached) $ECHO_C" >&6
2053 if test -n "$ac_ct_STRIP"; then
2054 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2060 test -z "$as_dir" && as_dir=.
2061 for ac_exec_ext in '' $ac_executable_extensions; do
2062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2063 ac_cv_prog_ac_ct_STRIP="strip"
2064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2070 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2073 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2074 if test -n "$ac_ct_STRIP"; then
2075 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2076 echo "${ECHO_T}$ac_ct_STRIP" >&6
2078 echo "$as_me:$LINENO: result: no" >&5
2079 echo "${ECHO_T}no" >&6
2084 STRIP="$ac_cv_prog_STRIP"
2088 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2090 # We need awk for the "check" target. The system "awk" is bad on
2092 # Always define AMTAR for backward compatibility.
2094 AMTAR=${AMTAR-"${am_missing_run}tar"}
2096 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2102 cat >>confdefs.h <<_ACEOF
2103 #define OPENLDAP_PACKAGE "$PACKAGE"
2107 cat >>confdefs.h <<_ACEOF
2108 #define OPENLDAP_VERSION "$VERSION"
2113 cat >>confdefs.h <<_ACEOF
2114 #define LDAP_VENDOR_VERSION $OL_API_INC
2118 cat >>confdefs.h <<_ACEOF
2119 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2123 cat >>confdefs.h <<_ACEOF
2124 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2128 cat >>confdefs.h <<_ACEOF
2129 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2133 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2135 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2137 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2140 ac_config_headers="$ac_config_headers include/portable.h include/ldap_features.h include/lber_types.h"
2142 echo "$as_me:$LINENO: checking configure arguments" >&5
2143 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2148 ldap_subdir="/openldap"
2151 # Check whether --with-subdir or --without-subdir was given.
2152 if test "${with_subdir+set}" = set; then
2153 withval="$with_subdir"
2160 ldap_subdir="$withval"
2163 ldap_subdir="/$withval"
2169 # OpenLDAP --enable-debug
2170 # Check whether --enable-debug or --disable-debug was given.
2171 if test "${enable_debug+set}" = set; then
2172 enableval="$enable_debug"
2175 for ol_val in auto yes no ; do
2176 if test "$enableval" = "$ol_val" ; then
2180 if test "$ol_arg" = "invalid" ; then
2181 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2182 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2183 { (exit 1); exit 1; }; }
2185 ol_enable_debug="$ol_arg"
2188 ol_enable_debug="yes"
2189 fi; # end --enable-debug
2190 # OpenLDAP --enable-dynamic
2191 # Check whether --enable-dynamic or --disable-dynamic was given.
2192 if test "${enable_dynamic+set}" = set; then
2193 enableval="$enable_dynamic"
2196 for ol_val in auto yes no ; do
2197 if test "$enableval" = "$ol_val" ; then
2201 if test "$ol_arg" = "invalid" ; then
2202 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2203 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2204 { (exit 1); exit 1; }; }
2206 ol_enable_dynamic="$ol_arg"
2209 ol_enable_dynamic="no"
2210 fi; # end --enable-dynamic
2211 # OpenLDAP --enable-syslog
2212 # Check whether --enable-syslog or --disable-syslog was given.
2213 if test "${enable_syslog+set}" = set; then
2214 enableval="$enable_syslog"
2217 for ol_val in auto yes no ; do
2218 if test "$enableval" = "$ol_val" ; then
2222 if test "$ol_arg" = "invalid" ; then
2223 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2224 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2225 { (exit 1); exit 1; }; }
2227 ol_enable_syslog="$ol_arg"
2230 ol_enable_syslog="auto"
2231 fi; # end --enable-syslog
2232 # OpenLDAP --enable-proctitle
2233 # Check whether --enable-proctitle or --disable-proctitle was given.
2234 if test "${enable_proctitle+set}" = set; then
2235 enableval="$enable_proctitle"
2238 for ol_val in auto yes no ; do
2239 if test "$enableval" = "$ol_val" ; then
2243 if test "$ol_arg" = "invalid" ; then
2244 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2245 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2246 { (exit 1); exit 1; }; }
2248 ol_enable_proctitle="$ol_arg"
2251 ol_enable_proctitle="yes"
2252 fi; # end --enable-proctitle
2253 ol_enable_referrals=${ol_enable_referrals-no}
2254 ol_enable_kbind=${ol_enable_kbind-no}
2255 # OpenLDAP --enable-ipv6
2256 # Check whether --enable-ipv6 or --disable-ipv6 was given.
2257 if test "${enable_ipv6+set}" = set; then
2258 enableval="$enable_ipv6"
2261 for ol_val in auto yes no ; do
2262 if test "$enableval" = "$ol_val" ; then
2266 if test "$ol_arg" = "invalid" ; then
2267 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2268 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2269 { (exit 1); exit 1; }; }
2271 ol_enable_ipv6="$ol_arg"
2274 ol_enable_ipv6="auto"
2275 fi; # end --enable-ipv6
2276 # OpenLDAP --enable-local
2277 # Check whether --enable-local or --disable-local was given.
2278 if test "${enable_local+set}" = set; then
2279 enableval="$enable_local"
2282 for ol_val in auto yes no ; do
2283 if test "$enableval" = "$ol_val" ; then
2287 if test "$ol_arg" = "invalid" ; then
2288 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2289 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2290 { (exit 1); exit 1; }; }
2292 ol_enable_local="$ol_arg"
2295 ol_enable_local="auto"
2296 fi; # end --enable-local
2299 # OpenLDAP --with-cyrus_sasl
2301 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2302 if test "${with_cyrus_sasl+set}" = set; then
2303 withval="$with_cyrus_sasl"
2306 for ol_val in auto yes no ; do
2307 if test "$withval" = "$ol_val" ; then
2311 if test "$ol_arg" = "invalid" ; then
2312 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2313 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2314 { (exit 1); exit 1; }; }
2316 ol_with_cyrus_sasl="$ol_arg"
2319 ol_with_cyrus_sasl="auto"
2320 fi; # end --with-cyrus_sasl
2322 # OpenLDAP --with-fetch
2324 # Check whether --with-fetch or --without-fetch was given.
2325 if test "${with_fetch+set}" = set; then
2326 withval="$with_fetch"
2329 for ol_val in auto yes no ; do
2330 if test "$withval" = "$ol_val" ; then
2334 if test "$ol_arg" = "invalid" ; then
2335 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2336 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2337 { (exit 1); exit 1; }; }
2339 ol_with_fetch="$ol_arg"
2342 ol_with_fetch="auto"
2343 fi; # end --with-fetch
2345 ol_with_kerberos=${ol_with_kerberos-auto}
2346 # OpenLDAP --with-threads
2348 # Check whether --with-threads or --without-threads was given.
2349 if test "${with_threads+set}" = set; then
2350 withval="$with_threads"
2353 for ol_val in auto nt posix mach pth lwp yes no manual ; do
2354 if test "$withval" = "$ol_val" ; then
2358 if test "$ol_arg" = "invalid" ; then
2359 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2360 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2361 { (exit 1); exit 1; }; }
2363 ol_with_threads="$ol_arg"
2366 ol_with_threads="auto"
2367 fi; # end --with-threads
2369 # OpenLDAP --with-tls
2371 # Check whether --with-tls or --without-tls was given.
2372 if test "${with_tls+set}" = set; then
2376 for ol_val in auto ssleay openssl yes no ; do
2377 if test "$withval" = "$ol_val" ; then
2381 if test "$ol_arg" = "invalid" ; then
2382 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2383 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2384 { (exit 1); exit 1; }; }
2386 ol_with_tls="$ol_arg"
2390 fi; # end --with-tls
2392 # OpenLDAP --with-yielding_select
2394 # Check whether --with-yielding_select or --without-yielding_select was given.
2395 if test "${with_yielding_select+set}" = set; then
2396 withval="$with_yielding_select"
2399 for ol_val in auto yes no manual ; do
2400 if test "$withval" = "$ol_val" ; then
2404 if test "$ol_arg" = "invalid" ; then
2405 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2406 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2407 { (exit 1); exit 1; }; }
2409 ol_with_yielding_select="$ol_arg"
2412 ol_with_yielding_select="auto"
2413 fi; # end --with-yielding_select
2415 # OpenLDAP --with-multiple_precision
2417 # Check whether --with-multiple_precision or --without-multiple_precision was given.
2418 if test "${with_multiple_precision+set}" = set; then
2419 withval="$with_multiple_precision"
2422 for ol_val in auto bignum gmp yes no ; do
2423 if test "$withval" = "$ol_val" ; then
2427 if test "$ol_arg" = "invalid" ; then
2428 { { echo "$as_me:$LINENO: error: bad value $withval for --with-multiple_precision" >&5
2429 echo "$as_me: error: bad value $withval for --with-multiple_precision" >&2;}
2430 { (exit 1); exit 1; }; }
2432 ol_with_multiple_precision="$ol_arg"
2435 ol_with_multiple_precision="auto"
2436 fi; # end --with-multiple_precision
2441 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
2442 if test "${with_xxslapdoptions+set}" = set; then
2443 withval="$with_xxslapdoptions"
2446 # OpenLDAP --enable-slapd
2447 # Check whether --enable-slapd or --disable-slapd was given.
2448 if test "${enable_slapd+set}" = set; then
2449 enableval="$enable_slapd"
2452 for ol_val in auto yes no ; do
2453 if test "$enableval" = "$ol_val" ; then
2457 if test "$ol_arg" = "invalid" ; then
2458 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2459 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2460 { (exit 1); exit 1; }; }
2462 ol_enable_slapd="$ol_arg"
2465 ol_enable_slapd="yes"
2466 fi; # end --enable-slapd
2467 # OpenLDAP --enable-aci
2468 # Check whether --enable-aci or --disable-aci was given.
2469 if test "${enable_aci+set}" = set; then
2470 enableval="$enable_aci"
2473 for ol_val in auto yes no ; do
2474 if test "$enableval" = "$ol_val" ; then
2478 if test "$ol_arg" = "invalid" ; then
2479 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2480 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2481 { (exit 1); exit 1; }; }
2483 ol_enable_aci="$ol_arg"
2487 fi; # end --enable-aci
2488 # OpenLDAP --enable-cleartext
2489 # Check whether --enable-cleartext or --disable-cleartext was given.
2490 if test "${enable_cleartext+set}" = set; then
2491 enableval="$enable_cleartext"
2494 for ol_val in auto yes no ; do
2495 if test "$enableval" = "$ol_val" ; then
2499 if test "$ol_arg" = "invalid" ; then
2500 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2501 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2502 { (exit 1); exit 1; }; }
2504 ol_enable_cleartext="$ol_arg"
2507 ol_enable_cleartext="yes"
2508 fi; # end --enable-cleartext
2509 # OpenLDAP --enable-crypt
2510 # Check whether --enable-crypt or --disable-crypt was given.
2511 if test "${enable_crypt+set}" = set; then
2512 enableval="$enable_crypt"
2515 for ol_val in auto yes no ; do
2516 if test "$enableval" = "$ol_val" ; then
2520 if test "$ol_arg" = "invalid" ; then
2521 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2522 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2523 { (exit 1); exit 1; }; }
2525 ol_enable_crypt="$ol_arg"
2528 ol_enable_crypt="no"
2529 fi; # end --enable-crypt
2530 # OpenLDAP --enable-lmpasswd
2531 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2532 if test "${enable_lmpasswd+set}" = set; then
2533 enableval="$enable_lmpasswd"
2536 for ol_val in auto yes no ; do
2537 if test "$enableval" = "$ol_val" ; then
2541 if test "$ol_arg" = "invalid" ; then
2542 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2543 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2544 { (exit 1); exit 1; }; }
2546 ol_enable_lmpasswd="$ol_arg"
2549 ol_enable_lmpasswd="no"
2550 fi; # end --enable-lmpasswd
2551 # OpenLDAP --enable-spasswd
2552 # Check whether --enable-spasswd or --disable-spasswd was given.
2553 if test "${enable_spasswd+set}" = set; then
2554 enableval="$enable_spasswd"
2557 for ol_val in auto yes no ; do
2558 if test "$enableval" = "$ol_val" ; then
2562 if test "$ol_arg" = "invalid" ; then
2563 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2564 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2565 { (exit 1); exit 1; }; }
2567 ol_enable_spasswd="$ol_arg"
2570 ol_enable_spasswd="no"
2571 fi; # end --enable-spasswd
2572 # OpenLDAP --enable-modules
2573 # Check whether --enable-modules or --disable-modules was given.
2574 if test "${enable_modules+set}" = set; then
2575 enableval="$enable_modules"
2578 for ol_val in auto yes no ; do
2579 if test "$enableval" = "$ol_val" ; then
2583 if test "$ol_arg" = "invalid" ; then
2584 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2585 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2586 { (exit 1); exit 1; }; }
2588 ol_enable_modules="$ol_arg"
2591 ol_enable_modules="no"
2592 fi; # end --enable-modules
2593 ol_enable_multimaster=${ol_enable_multimaster-no}
2594 # OpenLDAP --enable-rewrite
2595 # Check whether --enable-rewrite or --disable-rewrite was given.
2596 if test "${enable_rewrite+set}" = set; then
2597 enableval="$enable_rewrite"
2600 for ol_val in auto yes no ; do
2601 if test "$enableval" = "$ol_val" ; then
2605 if test "$ol_arg" = "invalid" ; then
2606 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2607 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2608 { (exit 1); exit 1; }; }
2610 ol_enable_rewrite="$ol_arg"
2613 ol_enable_rewrite="auto"
2614 fi; # end --enable-rewrite
2615 # OpenLDAP --enable-rlookups
2616 # Check whether --enable-rlookups or --disable-rlookups was given.
2617 if test "${enable_rlookups+set}" = set; then
2618 enableval="$enable_rlookups"
2621 for ol_val in auto yes no ; do
2622 if test "$enableval" = "$ol_val" ; then
2626 if test "$ol_arg" = "invalid" ; then
2627 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2628 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2629 { (exit 1); exit 1; }; }
2631 ol_enable_rlookups="$ol_arg"
2634 ol_enable_rlookups="no"
2635 fi; # end --enable-rlookups
2636 # OpenLDAP --enable-slapi
2637 # Check whether --enable-slapi or --disable-slapi was given.
2638 if test "${enable_slapi+set}" = set; then
2639 enableval="$enable_slapi"
2642 for ol_val in auto yes no ; do
2643 if test "$enableval" = "$ol_val" ; then
2647 if test "$ol_arg" = "invalid" ; then
2648 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2649 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2650 { (exit 1); exit 1; }; }
2652 ol_enable_slapi="$ol_arg"
2655 ol_enable_slapi="no"
2656 fi; # end --enable-slapi
2657 # OpenLDAP --enable-slp
2658 # Check whether --enable-slp or --disable-slp was given.
2659 if test "${enable_slp+set}" = set; then
2660 enableval="$enable_slp"
2663 for ol_val in auto yes no ; do
2664 if test "$enableval" = "$ol_val" ; then
2668 if test "$ol_arg" = "invalid" ; then
2669 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2670 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2671 { (exit 1); exit 1; }; }
2673 ol_enable_slp="$ol_arg"
2677 fi; # end --enable-slp
2678 # OpenLDAP --enable-wrappers
2679 # Check whether --enable-wrappers or --disable-wrappers was given.
2680 if test "${enable_wrappers+set}" = set; then
2681 enableval="$enable_wrappers"
2684 for ol_val in auto yes no ; do
2685 if test "$enableval" = "$ol_val" ; then
2689 if test "$ol_arg" = "invalid" ; then
2690 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2691 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2692 { (exit 1); exit 1; }; }
2694 ol_enable_wrappers="$ol_arg"
2697 ol_enable_wrappers="no"
2698 fi; # end --enable-wrappers
2700 Backends="bdb dnssrv hdb ldap ldbm meta monitor null \
2701 passwd perl relay shell sql"
2704 # Check whether --with-xxslapbackends or --without-xxslapbackends was given.
2705 if test "${with_xxslapbackends+set}" = set; then
2706 withval="$with_xxslapbackends"
2710 # OpenLDAP --enable-backends
2711 # Check whether --enable-backends or --disable-backends was given.
2712 if test "${enable_backends+set}" = set; then
2713 enableval="$enable_backends"
2716 for ol_val in no yes mod ; do
2717 if test "$enableval" = "$ol_val" ; then
2721 if test "$ol_arg" = "invalid" ; then
2722 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2723 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2724 { (exit 1); exit 1; }; }
2726 ol_enable_backends="$ol_arg"
2728 fi; # end --enable-backends
2729 test -n "$ol_enable_backends" && ol_dflt_backends="$ol_enable_backends"
2730 # OpenLDAP --enable-bdb
2731 # Check whether --enable-bdb or --disable-bdb was given.
2732 if test "${enable_bdb+set}" = set; then
2733 enableval="$enable_bdb"
2736 for ol_val in no yes mod ; do
2737 if test "$enableval" = "$ol_val" ; then
2741 if test "$ol_arg" = "invalid" ; then
2742 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2743 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2744 { (exit 1); exit 1; }; }
2746 ol_enable_bdb="$ol_arg"
2749 ol_enable_bdb="${ol_dflt_backends-yes}"
2750 fi; # end --enable-bdb
2751 # OpenLDAP --enable-dnssrv
2752 # Check whether --enable-dnssrv or --disable-dnssrv was given.
2753 if test "${enable_dnssrv+set}" = set; then
2754 enableval="$enable_dnssrv"
2757 for ol_val in no yes mod ; do
2758 if test "$enableval" = "$ol_val" ; then
2762 if test "$ol_arg" = "invalid" ; then
2763 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2764 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2765 { (exit 1); exit 1; }; }
2767 ol_enable_dnssrv="$ol_arg"
2770 ol_enable_dnssrv="${ol_dflt_backends-no}"
2771 fi; # end --enable-dnssrv
2772 # OpenLDAP --enable-hdb
2773 # Check whether --enable-hdb or --disable-hdb was given.
2774 if test "${enable_hdb+set}" = set; then
2775 enableval="$enable_hdb"
2778 for ol_val in no yes mod ; do
2779 if test "$enableval" = "$ol_val" ; then
2783 if test "$ol_arg" = "invalid" ; then
2784 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2785 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2786 { (exit 1); exit 1; }; }
2788 ol_enable_hdb="$ol_arg"
2791 ol_enable_hdb="${ol_dflt_backends-yes}"
2792 fi; # end --enable-hdb
2793 # OpenLDAP --enable-ldap
2794 # Check whether --enable-ldap or --disable-ldap was given.
2795 if test "${enable_ldap+set}" = set; then
2796 enableval="$enable_ldap"
2799 for ol_val in no yes mod ; do
2800 if test "$enableval" = "$ol_val" ; then
2804 if test "$ol_arg" = "invalid" ; then
2805 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2806 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2807 { (exit 1); exit 1; }; }
2809 ol_enable_ldap="$ol_arg"
2812 ol_enable_ldap="${ol_dflt_backends-no}"
2813 fi; # end --enable-ldap
2814 # OpenLDAP --enable-ldbm
2815 # Check whether --enable-ldbm or --disable-ldbm was given.
2816 if test "${enable_ldbm+set}" = set; then
2817 enableval="$enable_ldbm"
2820 for ol_val in no yes mod ; do
2821 if test "$enableval" = "$ol_val" ; then
2825 if test "$ol_arg" = "invalid" ; then
2826 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm" >&5
2827 echo "$as_me: error: bad value $enableval for --enable-ldbm" >&2;}
2828 { (exit 1); exit 1; }; }
2830 ol_enable_ldbm="$ol_arg"
2833 ol_enable_ldbm="${ol_dflt_backends-no}"
2834 fi; # end --enable-ldbm
2835 # OpenLDAP --with-ldbm_api
2837 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2838 if test "${with_ldbm_api+set}" = set; then
2839 withval="$with_ldbm_api"
2842 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2843 if test "$withval" = "$ol_val" ; then
2847 if test "$ol_arg" = "invalid" ; then
2848 { { echo "$as_me:$LINENO: error: bad value $withval for --with-ldbm_api" >&5
2849 echo "$as_me: error: bad value $withval for --with-ldbm_api" >&2;}
2850 { (exit 1); exit 1; }; }
2852 ol_with_ldbm_api="$ol_arg"
2855 ol_with_ldbm_api="auto"
2856 fi; # end --with-ldbm_api
2858 # OpenLDAP --with-ldbm_type
2860 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2861 if test "${with_ldbm_type+set}" = set; then
2862 withval="$with_ldbm_type"
2865 for ol_val in auto btree hash ; do
2866 if test "$withval" = "$ol_val" ; then
2870 if test "$ol_arg" = "invalid" ; then
2871 { { echo "$as_me:$LINENO: error: bad value $withval for --with-ldbm_type" >&5
2872 echo "$as_me: error: bad value $withval for --with-ldbm_type" >&2;}
2873 { (exit 1); exit 1; }; }
2875 ol_with_ldbm_type="$ol_arg"
2878 ol_with_ldbm_type="auto"
2879 fi; # end --with-ldbm_type
2881 # OpenLDAP --enable-meta
2882 # Check whether --enable-meta or --disable-meta was given.
2883 if test "${enable_meta+set}" = set; then
2884 enableval="$enable_meta"
2887 for ol_val in no yes mod ; do
2888 if test "$enableval" = "$ol_val" ; then
2892 if test "$ol_arg" = "invalid" ; then
2893 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2894 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2895 { (exit 1); exit 1; }; }
2897 ol_enable_meta="$ol_arg"
2900 ol_enable_meta="${ol_dflt_backends-no}"
2901 fi; # end --enable-meta
2902 # OpenLDAP --enable-monitor
2903 # Check whether --enable-monitor or --disable-monitor was given.
2904 if test "${enable_monitor+set}" = set; then
2905 enableval="$enable_monitor"
2908 for ol_val in no yes mod ; do
2909 if test "$enableval" = "$ol_val" ; then
2913 if test "$ol_arg" = "invalid" ; then
2914 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
2915 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
2916 { (exit 1); exit 1; }; }
2918 ol_enable_monitor="$ol_arg"
2921 ol_enable_monitor="${ol_dflt_backends-yes}"
2922 fi; # end --enable-monitor
2923 # OpenLDAP --enable-null
2924 # Check whether --enable-null or --disable-null was given.
2925 if test "${enable_null+set}" = set; then
2926 enableval="$enable_null"
2929 for ol_val in no yes mod ; do
2930 if test "$enableval" = "$ol_val" ; then
2934 if test "$ol_arg" = "invalid" ; then
2935 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
2936 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
2937 { (exit 1); exit 1; }; }
2939 ol_enable_null="$ol_arg"
2942 ol_enable_null="${ol_dflt_backends-no}"
2943 fi; # end --enable-null
2944 # OpenLDAP --enable-passwd
2945 # Check whether --enable-passwd or --disable-passwd was given.
2946 if test "${enable_passwd+set}" = set; then
2947 enableval="$enable_passwd"
2950 for ol_val in no yes mod ; do
2951 if test "$enableval" = "$ol_val" ; then
2955 if test "$ol_arg" = "invalid" ; then
2956 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
2957 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
2958 { (exit 1); exit 1; }; }
2960 ol_enable_passwd="$ol_arg"
2963 ol_enable_passwd="${ol_dflt_backends-no}"
2964 fi; # end --enable-passwd
2965 # OpenLDAP --enable-perl
2966 # Check whether --enable-perl or --disable-perl was given.
2967 if test "${enable_perl+set}" = set; then
2968 enableval="$enable_perl"
2971 for ol_val in no yes mod ; do
2972 if test "$enableval" = "$ol_val" ; then
2976 if test "$ol_arg" = "invalid" ; then
2977 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
2978 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
2979 { (exit 1); exit 1; }; }
2981 ol_enable_perl="$ol_arg"
2984 ol_enable_perl="${ol_dflt_backends-no}"
2985 fi; # end --enable-perl
2986 # OpenLDAP --enable-relay
2987 # Check whether --enable-relay or --disable-relay was given.
2988 if test "${enable_relay+set}" = set; then
2989 enableval="$enable_relay"
2992 for ol_val in no yes mod ; do
2993 if test "$enableval" = "$ol_val" ; then
2997 if test "$ol_arg" = "invalid" ; then
2998 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
2999 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3000 { (exit 1); exit 1; }; }
3002 ol_enable_relay="$ol_arg"
3005 ol_enable_relay="${ol_dflt_backends-yes}"
3006 fi; # end --enable-relay
3007 # OpenLDAP --enable-shell
3008 # Check whether --enable-shell or --disable-shell was given.
3009 if test "${enable_shell+set}" = set; then
3010 enableval="$enable_shell"
3013 for ol_val in no yes mod ; do
3014 if test "$enableval" = "$ol_val" ; then
3018 if test "$ol_arg" = "invalid" ; then
3019 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3020 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3021 { (exit 1); exit 1; }; }
3023 ol_enable_shell="$ol_arg"
3026 ol_enable_shell="${ol_dflt_backends-no}"
3027 fi; # end --enable-shell
3028 # OpenLDAP --enable-sql
3029 # Check whether --enable-sql or --disable-sql was given.
3030 if test "${enable_sql+set}" = set; then
3031 enableval="$enable_sql"
3034 for ol_val in no yes mod ; do
3035 if test "$enableval" = "$ol_val" ; then
3039 if test "$ol_arg" = "invalid" ; then
3040 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3041 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3042 { (exit 1); exit 1; }; }
3044 ol_enable_sql="$ol_arg"
3047 ol_enable_sql="${ol_dflt_backends-no}"
3048 fi; # end --enable-sql
3050 Overlays="accesslog denyop dyngroup dynlist glue lastmod ppolicy proxycache \
3051 refint retcode rwm syncprov translucent unique"
3054 # Check whether --with-xxslapoverlays or --without-xxslapoverlays was given.
3055 if test "${with_xxslapoverlays+set}" = set; then
3056 withval="$with_xxslapoverlays"
3060 # OpenLDAP --enable-overlays
3061 # Check whether --enable-overlays or --disable-overlays was given.
3062 if test "${enable_overlays+set}" = set; then
3063 enableval="$enable_overlays"
3066 for ol_val in no yes mod ; do
3067 if test "$enableval" = "$ol_val" ; then
3071 if test "$ol_arg" = "invalid" ; then
3072 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3073 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3074 { (exit 1); exit 1; }; }
3076 ol_enable_overlays="$ol_arg"
3078 fi; # end --enable-overlays
3079 test -n "$ol_enable_overlays" && ol_dflt_overlays="$ol_enable_overlays"
3080 # OpenLDAP --enable-accesslog
3081 # Check whether --enable-accesslog or --disable-accesslog was given.
3082 if test "${enable_accesslog+set}" = set; then
3083 enableval="$enable_accesslog"
3086 for ol_val in no yes mod ; do
3087 if test "$enableval" = "$ol_val" ; then
3091 if test "$ol_arg" = "invalid" ; then
3092 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3093 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3094 { (exit 1); exit 1; }; }
3096 ol_enable_accesslog="$ol_arg"
3099 ol_enable_accesslog="${ol_dflt_overlays-no}"
3100 fi; # end --enable-accesslog
3102 # OpenLDAP --enable-denyop
3103 # Check whether --enable-denyop or --disable-denyop was given.
3104 if test "${enable_denyop+set}" = set; then
3105 enableval="$enable_denyop"
3108 for ol_val in no yes mod ; do
3109 if test "$enableval" = "$ol_val" ; then
3113 if test "$ol_arg" = "invalid" ; then
3114 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-denyop" >&5
3115 echo "$as_me: error: bad value $enableval for --enable-denyop" >&2;}
3116 { (exit 1); exit 1; }; }
3118 ol_enable_denyop="$ol_arg"
3121 ol_enable_denyop="${ol_dflt_overlays-no}"
3122 fi; # end --enable-denyop
3124 # OpenLDAP --enable-dyngroup
3125 # Check whether --enable-dyngroup or --disable-dyngroup was given.
3126 if test "${enable_dyngroup+set}" = set; then
3127 enableval="$enable_dyngroup"
3130 for ol_val in no yes mod ; do
3131 if test "$enableval" = "$ol_val" ; then
3135 if test "$ol_arg" = "invalid" ; then
3136 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3137 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3138 { (exit 1); exit 1; }; }
3140 ol_enable_dyngroup="$ol_arg"
3143 ol_enable_dyngroup="${ol_dflt_overlays-no}"
3144 fi; # end --enable-dyngroup
3146 # OpenLDAP --enable-dynlist
3147 # Check whether --enable-dynlist or --disable-dynlist was given.
3148 if test "${enable_dynlist+set}" = set; then
3149 enableval="$enable_dynlist"
3152 for ol_val in no yes mod ; do
3153 if test "$enableval" = "$ol_val" ; then
3157 if test "$ol_arg" = "invalid" ; then
3158 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3159 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3160 { (exit 1); exit 1; }; }
3162 ol_enable_dynlist="$ol_arg"
3165 ol_enable_dynlist="${ol_dflt_overlays-no}"
3166 fi; # end --enable-dynlist
3168 # OpenLDAP --enable-glue
3169 # Check whether --enable-glue or --disable-glue was given.
3170 if test "${enable_glue+set}" = set; then
3171 enableval="$enable_glue"
3174 for ol_val in no yes mod ; do
3175 if test "$enableval" = "$ol_val" ; then
3179 if test "$ol_arg" = "invalid" ; then
3180 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-glue" >&5
3181 echo "$as_me: error: bad value $enableval for --enable-glue" >&2;}
3182 { (exit 1); exit 1; }; }
3184 ol_enable_glue="$ol_arg"
3187 ol_enable_glue="${ol_dflt_overlays-yes}"
3188 fi; # end --enable-glue
3190 # OpenLDAP --enable-lastmod
3191 # Check whether --enable-lastmod or --disable-lastmod was given.
3192 if test "${enable_lastmod+set}" = set; then
3193 enableval="$enable_lastmod"
3196 for ol_val in no yes mod ; do
3197 if test "$enableval" = "$ol_val" ; then
3201 if test "$ol_arg" = "invalid" ; then
3202 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lastmod" >&5
3203 echo "$as_me: error: bad value $enableval for --enable-lastmod" >&2;}
3204 { (exit 1); exit 1; }; }
3206 ol_enable_lastmod="$ol_arg"
3209 ol_enable_lastmod="${ol_dflt_overlays-no}"
3210 fi; # end --enable-lastmod
3212 # OpenLDAP --enable-ppolicy
3213 # Check whether --enable-ppolicy or --disable-ppolicy was given.
3214 if test "${enable_ppolicy+set}" = set; then
3215 enableval="$enable_ppolicy"
3218 for ol_val in no yes mod ; do
3219 if test "$enableval" = "$ol_val" ; then
3223 if test "$ol_arg" = "invalid" ; then
3224 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3225 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3226 { (exit 1); exit 1; }; }
3228 ol_enable_ppolicy="$ol_arg"
3231 ol_enable_ppolicy="${ol_dflt_overlays-no}"
3232 fi; # end --enable-ppolicy
3234 # OpenLDAP --enable-proxycache
3235 # Check whether --enable-proxycache or --disable-proxycache was given.
3236 if test "${enable_proxycache+set}" = set; then
3237 enableval="$enable_proxycache"
3240 for ol_val in no yes mod ; do
3241 if test "$enableval" = "$ol_val" ; then
3245 if test "$ol_arg" = "invalid" ; then
3246 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3247 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3248 { (exit 1); exit 1; }; }
3250 ol_enable_proxycache="$ol_arg"
3253 ol_enable_proxycache="${ol_dflt_overlays-no}"
3254 fi; # end --enable-proxycache
3256 # OpenLDAP --enable-refint
3257 # Check whether --enable-refint or --disable-refint was given.
3258 if test "${enable_refint+set}" = set; then
3259 enableval="$enable_refint"
3262 for ol_val in no yes mod ; do
3263 if test "$enableval" = "$ol_val" ; then
3267 if test "$ol_arg" = "invalid" ; then
3268 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3269 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3270 { (exit 1); exit 1; }; }
3272 ol_enable_refint="$ol_arg"
3275 ol_enable_refint="${ol_dflt_overlays-no}"
3276 fi; # end --enable-refint
3278 # OpenLDAP --enable-retcode
3279 # Check whether --enable-retcode or --disable-retcode was given.
3280 if test "${enable_retcode+set}" = set; then
3281 enableval="$enable_retcode"
3284 for ol_val in no yes mod ; do
3285 if test "$enableval" = "$ol_val" ; then
3289 if test "$ol_arg" = "invalid" ; then
3290 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3291 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3292 { (exit 1); exit 1; }; }
3294 ol_enable_retcode="$ol_arg"
3297 ol_enable_retcode="${ol_dflt_overlays-no}"
3298 fi; # end --enable-retcode
3300 # OpenLDAP --enable-rwm
3301 # Check whether --enable-rwm or --disable-rwm was given.
3302 if test "${enable_rwm+set}" = set; then
3303 enableval="$enable_rwm"
3306 for ol_val in no yes mod ; do
3307 if test "$enableval" = "$ol_val" ; then
3311 if test "$ol_arg" = "invalid" ; then
3312 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3313 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3314 { (exit 1); exit 1; }; }
3316 ol_enable_rwm="$ol_arg"
3319 ol_enable_rwm="${ol_dflt_overlays-no}"
3320 fi; # end --enable-rwm
3322 # OpenLDAP --enable-syncprov
3323 # Check whether --enable-syncprov or --disable-syncprov was given.
3324 if test "${enable_syncprov+set}" = set; then
3325 enableval="$enable_syncprov"
3328 for ol_val in no yes mod ; do
3329 if test "$enableval" = "$ol_val" ; then
3333 if test "$ol_arg" = "invalid" ; then
3334 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3335 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3336 { (exit 1); exit 1; }; }
3338 ol_enable_syncprov="$ol_arg"
3341 ol_enable_syncprov="${ol_dflt_overlays-yes}"
3342 fi; # end --enable-syncprov
3344 # OpenLDAP --enable-translucent
3345 # Check whether --enable-translucent or --disable-translucent was given.
3346 if test "${enable_translucent+set}" = set; then
3347 enableval="$enable_translucent"
3350 for ol_val in no yes mod ; do
3351 if test "$enableval" = "$ol_val" ; then
3355 if test "$ol_arg" = "invalid" ; then
3356 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3357 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3358 { (exit 1); exit 1; }; }
3360 ol_enable_translucent="$ol_arg"
3363 ol_enable_translucent="${ol_dflt_overlays-no}"
3364 fi; # end --enable-translucent
3366 # OpenLDAP --enable-unique
3367 # Check whether --enable-unique or --disable-unique was given.
3368 if test "${enable_unique+set}" = set; then
3369 enableval="$enable_unique"
3372 for ol_val in no yes mod ; do
3373 if test "$enableval" = "$ol_val" ; then
3377 if test "$ol_arg" = "invalid" ; then
3378 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3379 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3380 { (exit 1); exit 1; }; }
3382 ol_enable_unique="$ol_arg"
3385 ol_enable_unique="${ol_dflt_overlays-no}"
3386 fi; # end --enable-unique
3391 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
3392 if test "${with_xxslurpdoptions+set}" = set; then
3393 withval="$with_xxslurpdoptions"
3396 # OpenLDAP --enable-slurpd
3397 # Check whether --enable-slurpd or --disable-slurpd was given.
3398 if test "${enable_slurpd+set}" = set; then
3399 enableval="$enable_slurpd"
3402 for ol_val in auto yes no ; do
3403 if test "$enableval" = "$ol_val" ; then
3407 if test "$ol_arg" = "invalid" ; then
3408 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slurpd" >&5
3409 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
3410 { (exit 1); exit 1; }; }
3412 ol_enable_slurpd="$ol_arg"
3415 ol_enable_slurpd="auto"
3416 fi; # end --enable-slurpd
3419 # Check whether --with-xxliboptions or --without-xxliboptions was given.
3420 if test "${with_xxliboptions+set}" = set; then
3421 withval="$with_xxliboptions"
3424 # Check whether --enable-static or --disable-static was given.
3425 if test "${enable_static+set}" = set; then
3426 enableval="$enable_static"
3427 p=${PACKAGE-default}
3429 yes) enable_static=yes ;;
3430 no) enable_static=no ;;
3433 # Look at the argument we got. We use all the common list separators.
3434 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3435 for pkg in $enableval; do
3437 if test "X$pkg" = "X$p"; then
3448 # Check whether --enable-shared or --disable-shared was given.
3449 if test "${enable_shared+set}" = set; then
3450 enableval="$enable_shared"
3451 p=${PACKAGE-default}
3453 yes) enable_shared=yes ;;
3454 no) enable_shared=no ;;
3457 # Look at the argument we got. We use all the common list separators.
3458 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3459 for pkg in $enableval; do
3461 if test "X$pkg" = "X$p"; then
3475 if test $ol_enable_slapd = no ; then
3476 if test $ol_enable_slapi = yes ; then
3477 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3478 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3480 case "$ol_enable_backends" in yes | mod)
3481 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3482 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3484 for i in $Backends; do
3485 eval "ol_tmp=\$ol_enable_$i"
3486 if test $ol_tmp != no ; then
3487 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3488 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3489 eval "ol_enable_$i=no"
3492 if test $ol_enable_modules = yes ; then
3493 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3494 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3496 if test $ol_enable_multimaster = yes ; then
3497 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&5
3498 echo "$as_me: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&2;}
3500 if test $ol_enable_wrappers = yes ; then
3501 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3502 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3504 if test $ol_enable_rlookups = yes ; then
3505 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3506 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3508 if test $ol_enable_aci = yes ; then
3509 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3510 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3512 if test $ol_with_ldbm_api != auto ; then
3513 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --with-ldbm-api argument" >&5
3514 echo "$as_me: WARNING: slapd disabled, ignoring --with-ldbm-api argument" >&2;}
3516 if test $ol_with_ldbm_type != auto ; then
3517 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --with-ldbm-type argument" >&5
3518 echo "$as_me: WARNING: slapd disabled, ignoring --with-ldbm-type argument" >&2;}
3520 if test $ol_enable_slurpd = yes ; then
3521 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3522 echo "$as_me: error: slurpd requires slapd" >&2;}
3523 { (exit 1); exit 1; }; }
3525 if test $ol_enable_rewrite = yes ; then
3526 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3527 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3529 case "$ol_enable_overlays" in yes | mod)
3530 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3531 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3533 for i in $Overlays; do
3534 eval "ol_tmp=\$ol_enable_$i"
3535 if test $ol_tmp != no ; then
3536 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3537 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3538 eval "ol_enable_$i=no"
3542 # force settings to no
3547 ol_enable_modules=no
3548 ol_enable_multimaster=no
3549 ol_enable_rlookups=no
3551 ol_enable_wrappers=no
3554 ol_with_ldbm_type=no
3558 ol_enable_rewrite=no
3560 elif test $ol_enable_ldbm = no ; then
3562 if test $ol_with_ldbm_api != auto ; then
3563 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --with-ldbm-api argument" >&5
3564 echo "$as_me: WARNING: LDBM disabled, ignoring --with-ldbm-api argument" >&2;}
3567 if test $ol_with_ldbm_type != auto ; then
3568 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --with-ldbm-type argument" >&5
3569 echo "$as_me: WARNING: LDBM disabled, ignoring --with-ldbm-type argument" >&2;}
3572 if test $ol_enable_modules != yes -a \
3573 $ol_enable_bdb = no -a \
3574 $ol_enable_dnssrv = no -a \
3575 $ol_enable_hdb = no -a \
3576 $ol_enable_ldap = no -a \
3577 $ol_enable_meta = no -a \
3578 $ol_enable_monitor = no -a \
3579 $ol_enable_null = no -a \
3580 $ol_enable_passwd = no -a \
3581 $ol_enable_perl = no -a \
3582 $ol_enable_relay = no -a \
3583 $ol_enable_shell = no -a \
3584 $ol_enable_sql = no ; then
3586 if test $ol_enable_slapd = yes ; then
3587 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3588 echo "$as_me: error: slapd requires a backend" >&2;}
3589 { (exit 1); exit 1; }; }
3591 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3592 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3598 ol_with_ldbm_type=no
3600 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
3601 ol_with_ldbm_api=berkeley
3605 if test $ol_with_ldbm_api = gdbm -a \
3606 $ol_with_ldbm_type = btree ; then
3607 { { echo "$as_me:$LINENO: error: GDBM only supports LDBM type hash" >&5
3608 echo "$as_me: error: GDBM only supports LDBM type hash" >&2;}
3609 { (exit 1); exit 1; }; }
3611 if test $ol_with_ldbm_api = mdbm -a \
3612 $ol_with_ldbm_type = btree ; then
3613 { { echo "$as_me:$LINENO: error: MDBM only supports LDBM type hash" >&5
3614 echo "$as_me: error: MDBM only supports LDBM type hash" >&2;}
3615 { (exit 1); exit 1; }; }
3617 if test $ol_with_ldbm_api = ndbm -a \
3618 $ol_with_ldbm_type = btree ; then
3619 { { echo "$as_me:$LINENO: error: NDBM only supports LDBM type hash" >&5
3620 echo "$as_me: error: NDBM only supports LDBM type hash" >&2;}
3621 { (exit 1); exit 1; }; }
3624 if test $ol_enable_bdb != no -o $ol_enable_hdb != no ; then
3625 if test $ol_with_ldbm_api = auto ; then
3626 ol_with_ldbm_api=berkeley
3627 elif test $ol_with_ldbm_api != berkeley ; then
3628 { { echo "$as_me:$LINENO: error: LDBM API not compatible with BDB/HDB" >&5
3629 echo "$as_me: error: LDBM API not compatible with BDB/HDB" >&2;}
3630 { (exit 1); exit 1; }; }
3635 if test $ol_enable_meta = yes -a $ol_enable_ldap = no ; then
3636 { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3637 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3638 { (exit 1); exit 1; }; }
3641 if test $ol_enable_slurpd = yes ; then
3642 if test $ol_with_threads = no ; then
3643 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3644 echo "$as_me: error: slurpd requires threads" >&2;}
3645 { (exit 1); exit 1; }; }
3649 if test $ol_enable_lmpasswd = yes ; then
3650 if test $ol_with_tls = no ; then
3651 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3652 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3653 { (exit 1); exit 1; }; }
3657 if test $ol_enable_kbind = yes ; then
3658 if test $ol_with_kerberos = no ; then
3659 { { echo "$as_me:$LINENO: error: options require --with-kerberos" >&5
3660 echo "$as_me: error: options require --with-kerberos" >&2;}
3661 { (exit 1); exit 1; }; }
3662 elif test $ol_with_kerberos = auto ; then
3663 ol_with_kerberos=yes
3666 elif test $ol_enable_kbind = no ; then
3667 if test $ol_with_kerberos = auto ; then
3669 elif test $ol_with_kerberos != no ; then
3670 { echo "$as_me:$LINENO: WARNING: Kerberos detection enabled unnecessarily" >&5
3671 echo "$as_me: WARNING: Kerberos detection enabled unnecessarily" >&2;};
3676 if test $ol_enable_spasswd = yes ; then
3677 if test $ol_with_cyrus_sasl = no ; then
3678 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3679 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3680 { (exit 1); exit 1; }; }
3682 ol_with_cyrus_sasl=yes
3685 echo "$as_me:$LINENO: result: done" >&5
3686 echo "${ECHO_T}done" >&6
3730 BUILD_TRANSLUCENT=no
3733 SLAPD_STATIC_OVERLAYS=
3734 SLAPD_DYNAMIC_OVERLAYS=
3736 SLAPD_MODULES_LDFLAGS=
3737 SLAPD_MODULES_CPPFLAGS=
3739 SLAPD_STATIC_BACKENDS=back-ldif
3740 SLAPD_DYNAMIC_BACKENDS=
3765 cat >>confdefs.h <<\_ACEOF
3766 #define HAVE_MKVERSION 1
3774 *-*-aix*) if test -z "$CC" ; then
3775 case "$ol_with_threads" in
3776 auto | yes | posix) ol_aix_threads=yes ;;
3782 if test $ol_aix_threads = yes ; then
3783 if test -z "${CC}" ; then
3784 for ac_prog in cc_r xlc_r cc
3786 # Extract the first word of "$ac_prog", so it can be a program name with args.
3787 set dummy $ac_prog; ac_word=$2
3788 echo "$as_me:$LINENO: checking for $ac_word" >&5
3789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3790 if test "${ac_cv_prog_CC+set}" = set; then
3791 echo $ECHO_N "(cached) $ECHO_C" >&6
3793 if test -n "$CC"; then
3794 ac_cv_prog_CC="$CC" # Let the user override the test.
3796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3800 test -z "$as_dir" && as_dir=.
3801 for ac_exec_ext in '' $ac_executable_extensions; do
3802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3803 ac_cv_prog_CC="$ac_prog"
3804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3813 if test -n "$CC"; then
3814 echo "$as_me:$LINENO: result: $CC" >&5
3815 echo "${ECHO_T}$CC" >&6
3817 echo "$as_me:$LINENO: result: no" >&5
3818 echo "${ECHO_T}no" >&6
3821 test -n "$CC" && break
3825 if test "$CC" = cc ; then
3826 if test $ol_with_threads != auto ; then
3827 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3828 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3829 { (exit 1); exit 1; }; }
3831 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
3832 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
3838 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
3839 ol_with_threads=posix
3840 ol_cv_pthread_create=yes
3844 if test -z "${CC}"; then
3845 for ac_prog in cc gcc
3847 # Extract the first word of "$ac_prog", so it can be a program name with args.
3848 set dummy $ac_prog; ac_word=$2
3849 echo "$as_me:$LINENO: checking for $ac_word" >&5
3850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3851 if test "${ac_cv_prog_CC+set}" = set; then
3852 echo $ECHO_N "(cached) $ECHO_C" >&6
3854 if test -n "$CC"; then
3855 ac_cv_prog_CC="$CC" # Let the user override the test.
3857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3861 test -z "$as_dir" && as_dir=.
3862 for ac_exec_ext in '' $ac_executable_extensions; do
3863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3864 ac_cv_prog_CC="$ac_prog"
3865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3874 if test -n "$CC"; then
3875 echo "$as_me:$LINENO: result: $CC" >&5
3876 echo "${ECHO_T}$CC" >&6
3878 echo "$as_me:$LINENO: result: no" >&5
3879 echo "${ECHO_T}no" >&6
3882 test -n "$CC" && break
3884 test -n "$CC" || CC="missing"
3887 if test "${CC}" = "missing" ; then
3888 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&5
3889 echo "$as_me: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&2;}
3890 { (exit 1); exit 1; }; }
3894 if test -z "${AR}"; then
3895 for ac_prog in ar gar
3897 # Extract the first word of "$ac_prog", so it can be a program name with args.
3898 set dummy $ac_prog; ac_word=$2
3899 echo "$as_me:$LINENO: checking for $ac_word" >&5
3900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3901 if test "${ac_cv_prog_AR+set}" = set; then
3902 echo $ECHO_N "(cached) $ECHO_C" >&6
3904 if test -n "$AR"; then
3905 ac_cv_prog_AR="$AR" # Let the user override the test.
3907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3911 test -z "$as_dir" && as_dir=.
3912 for ac_exec_ext in '' $ac_executable_extensions; do
3913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3914 ac_cv_prog_AR="$ac_prog"
3915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3924 if test -n "$AR"; then
3925 echo "$as_me:$LINENO: result: $AR" >&5
3926 echo "${ECHO_T}$AR" >&6
3928 echo "$as_me:$LINENO: result: no" >&5
3929 echo "${ECHO_T}no" >&6
3932 test -n "$AR" && break
3934 test -n "$AR" || AR="missing"
3937 if test "${AR}" = "missing" ; then
3938 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&5
3939 echo "$as_me: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&2;}
3940 { (exit 1); exit 1; }; }
3948 # Check whether --enable-fast-install or --disable-fast-install was given.
3949 if test "${enable_fast_install+set}" = set; then
3950 enableval="$enable_fast_install"
3951 p=${PACKAGE-default}
3953 yes) enable_fast_install=yes ;;
3954 no) enable_fast_install=no ;;
3956 enable_fast_install=no
3957 # Look at the argument we got. We use all the common list separators.
3958 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3959 for pkg in $enableval; do
3961 if test "X$pkg" = "X$p"; then
3962 enable_fast_install=yes
3969 enable_fast_install=yes
3972 DEPDIR="${am__leading_dot}deps"
3974 ac_config_commands="$ac_config_commands depfiles"
3977 am_make=${MAKE-make}
3978 cat > confinc << 'END'
3983 # If we don't find an include directive, just comment out the code.
3984 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3985 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3989 # First try GNU make style include.
3990 echo "include confinc" > confmf
3991 # We grep out `Entering directory' and `Leaving directory'
3992 # messages which can occur if `w' ends up in MAKEFLAGS.
3993 # In particular we don't look at `^make:' because GNU make might
3994 # be invoked under some other name (usually "gmake"), in which
3995 # case it prints its new name instead of `make'.
3996 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4001 # Now try BSD make style include.
4002 if test "$am__include" = "#"; then
4003 echo '.include "confinc"' > confmf
4004 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4005 am__include=.include
4012 echo "$as_me:$LINENO: result: $_am_result" >&5
4013 echo "${ECHO_T}$_am_result" >&6
4014 rm -f confinc confmf
4016 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4017 if test "${enable_dependency_tracking+set}" = set; then
4018 enableval="$enable_dependency_tracking"
4021 if test "x$enable_dependency_tracking" != xno; then
4022 am_depcomp="$ac_aux_dir/depcomp"
4027 if test "x$enable_dependency_tracking" != xno; then
4038 ac_cpp='$CPP $CPPFLAGS'
4039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4042 if test -n "$ac_tool_prefix"; then
4043 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4044 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4045 echo "$as_me:$LINENO: checking for $ac_word" >&5
4046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4047 if test "${ac_cv_prog_CC+set}" = set; then
4048 echo $ECHO_N "(cached) $ECHO_C" >&6
4050 if test -n "$CC"; then
4051 ac_cv_prog_CC="$CC" # Let the user override the test.
4053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4057 test -z "$as_dir" && as_dir=.
4058 for ac_exec_ext in '' $ac_executable_extensions; do
4059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4060 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4070 if test -n "$CC"; then
4071 echo "$as_me:$LINENO: result: $CC" >&5
4072 echo "${ECHO_T}$CC" >&6
4074 echo "$as_me:$LINENO: result: no" >&5
4075 echo "${ECHO_T}no" >&6
4079 if test -z "$ac_cv_prog_CC"; then
4081 # Extract the first word of "gcc", so it can be a program name with args.
4082 set dummy gcc; ac_word=$2
4083 echo "$as_me:$LINENO: checking for $ac_word" >&5
4084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4085 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4086 echo $ECHO_N "(cached) $ECHO_C" >&6
4088 if test -n "$ac_ct_CC"; then
4089 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4095 test -z "$as_dir" && as_dir=.
4096 for ac_exec_ext in '' $ac_executable_extensions; do
4097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4098 ac_cv_prog_ac_ct_CC="gcc"
4099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4107 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4108 if test -n "$ac_ct_CC"; then
4109 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4110 echo "${ECHO_T}$ac_ct_CC" >&6
4112 echo "$as_me:$LINENO: result: no" >&5
4113 echo "${ECHO_T}no" >&6
4121 if test -z "$CC"; then
4122 if test -n "$ac_tool_prefix"; then
4123 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4124 set dummy ${ac_tool_prefix}cc; ac_word=$2
4125 echo "$as_me:$LINENO: checking for $ac_word" >&5
4126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4127 if test "${ac_cv_prog_CC+set}" = set; then
4128 echo $ECHO_N "(cached) $ECHO_C" >&6
4130 if test -n "$CC"; then
4131 ac_cv_prog_CC="$CC" # Let the user override the test.
4133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4137 test -z "$as_dir" && as_dir=.
4138 for ac_exec_ext in '' $ac_executable_extensions; do
4139 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4140 ac_cv_prog_CC="${ac_tool_prefix}cc"
4141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4150 if test -n "$CC"; then
4151 echo "$as_me:$LINENO: result: $CC" >&5
4152 echo "${ECHO_T}$CC" >&6
4154 echo "$as_me:$LINENO: result: no" >&5
4155 echo "${ECHO_T}no" >&6
4159 if test -z "$ac_cv_prog_CC"; then
4161 # Extract the first word of "cc", so it can be a program name with args.
4162 set dummy cc; ac_word=$2
4163 echo "$as_me:$LINENO: checking for $ac_word" >&5
4164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4165 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4166 echo $ECHO_N "(cached) $ECHO_C" >&6
4168 if test -n "$ac_ct_CC"; then
4169 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4175 test -z "$as_dir" && as_dir=.
4176 for ac_exec_ext in '' $ac_executable_extensions; do
4177 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4178 ac_cv_prog_ac_ct_CC="cc"
4179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4187 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4188 if test -n "$ac_ct_CC"; then
4189 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4190 echo "${ECHO_T}$ac_ct_CC" >&6
4192 echo "$as_me:$LINENO: result: no" >&5
4193 echo "${ECHO_T}no" >&6
4202 if test -z "$CC"; then
4203 # Extract the first word of "cc", so it can be a program name with args.
4204 set dummy cc; ac_word=$2
4205 echo "$as_me:$LINENO: checking for $ac_word" >&5
4206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4207 if test "${ac_cv_prog_CC+set}" = set; then
4208 echo $ECHO_N "(cached) $ECHO_C" >&6
4210 if test -n "$CC"; then
4211 ac_cv_prog_CC="$CC" # Let the user override the test.
4214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4218 test -z "$as_dir" && as_dir=.
4219 for ac_exec_ext in '' $ac_executable_extensions; do
4220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4221 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4222 ac_prog_rejected=yes
4226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4232 if test $ac_prog_rejected = yes; then
4233 # We found a bogon in the path, so make sure we never use it.
4234 set dummy $ac_cv_prog_CC
4236 if test $# != 0; then
4237 # We chose a different compiler from the bogus one.
4238 # However, it has the same basename, so the bogon will be chosen
4239 # first if we set CC to just the basename; use the full file name.
4241 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4247 if test -n "$CC"; then
4248 echo "$as_me:$LINENO: result: $CC" >&5
4249 echo "${ECHO_T}$CC" >&6
4251 echo "$as_me:$LINENO: result: no" >&5
4252 echo "${ECHO_T}no" >&6
4256 if test -z "$CC"; then
4257 if test -n "$ac_tool_prefix"; then
4260 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4261 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4262 echo "$as_me:$LINENO: checking for $ac_word" >&5
4263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4264 if test "${ac_cv_prog_CC+set}" = set; then
4265 echo $ECHO_N "(cached) $ECHO_C" >&6
4267 if test -n "$CC"; then
4268 ac_cv_prog_CC="$CC" # Let the user override the test.
4270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274 test -z "$as_dir" && as_dir=.
4275 for ac_exec_ext in '' $ac_executable_extensions; do
4276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4277 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4287 if test -n "$CC"; then
4288 echo "$as_me:$LINENO: result: $CC" >&5
4289 echo "${ECHO_T}$CC" >&6
4291 echo "$as_me:$LINENO: result: no" >&5
4292 echo "${ECHO_T}no" >&6
4295 test -n "$CC" && break
4298 if test -z "$CC"; then
4302 # Extract the first word of "$ac_prog", so it can be a program name with args.
4303 set dummy $ac_prog; ac_word=$2
4304 echo "$as_me:$LINENO: checking for $ac_word" >&5
4305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4306 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4307 echo $ECHO_N "(cached) $ECHO_C" >&6
4309 if test -n "$ac_ct_CC"; then
4310 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4316 test -z "$as_dir" && as_dir=.
4317 for ac_exec_ext in '' $ac_executable_extensions; do
4318 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4319 ac_cv_prog_ac_ct_CC="$ac_prog"
4320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4328 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4329 if test -n "$ac_ct_CC"; then
4330 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4331 echo "${ECHO_T}$ac_ct_CC" >&6
4333 echo "$as_me:$LINENO: result: no" >&5
4334 echo "${ECHO_T}no" >&6
4337 test -n "$ac_ct_CC" && break
4346 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4347 See \`config.log' for more details." >&5
4348 echo "$as_me: error: no acceptable C compiler found in \$PATH
4349 See \`config.log' for more details." >&2;}
4350 { (exit 1); exit 1; }; }
4352 # Provide some information about the compiler.
4353 echo "$as_me:$LINENO:" \
4354 "checking for C compiler version" >&5
4355 ac_compiler=`set X $ac_compile; echo $2`
4356 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4357 (eval $ac_compiler --version </dev/null >&5) 2>&5
4359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360 (exit $ac_status); }
4361 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4362 (eval $ac_compiler -v </dev/null >&5) 2>&5
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); }
4366 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4367 (eval $ac_compiler -V </dev/null >&5) 2>&5
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); }
4372 cat >conftest.$ac_ext <<_ACEOF
4375 cat confdefs.h >>conftest.$ac_ext
4376 cat >>conftest.$ac_ext <<_ACEOF
4377 /* end confdefs.h. */
4387 ac_clean_files_save=$ac_clean_files
4388 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4389 # Try to create an executable without -o first, disregard a.out.
4390 # It will help us diagnose broken compilers, and finding out an intuition
4392 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4393 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4394 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4395 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4396 (eval $ac_link_default) 2>&5
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); }; then
4400 # Find the output, starting from the most likely. This scheme is
4401 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4404 # Be careful to initialize this variable, since it used to be cached.
4405 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4407 # b.out is created by i960 compilers.
4408 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4410 test -f "$ac_file" || continue
4412 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4415 # This is the source file.
4418 # We found the default executable, but exeext='' is most
4422 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4423 # FIXME: I believe we export ac_cv_exeext for Libtool,
4424 # but it would be cool to find out if it's true. Does anybody
4425 # maintain Libtool? --akim.
4433 echo "$as_me: failed program was:" >&5
4434 sed 's/^/| /' conftest.$ac_ext >&5
4436 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4437 See \`config.log' for more details." >&5
4438 echo "$as_me: error: C compiler cannot create executables
4439 See \`config.log' for more details." >&2;}
4440 { (exit 77); exit 77; }; }
4443 ac_exeext=$ac_cv_exeext
4444 echo "$as_me:$LINENO: result: $ac_file" >&5
4445 echo "${ECHO_T}$ac_file" >&6
4447 # Check the compiler produces executables we can run. If not, either
4448 # the compiler is broken, or we cross compile.
4449 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4450 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4451 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4452 # If not cross compiling, check that we can run a simple program.
4453 if test "$cross_compiling" != yes; then
4454 if { ac_try='./$ac_file'
4455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); }; }; then
4462 if test "$cross_compiling" = maybe; then
4465 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4466 If you meant to cross compile, use \`--host'.
4467 See \`config.log' for more details." >&5
4468 echo "$as_me: error: cannot run C compiled programs.
4469 If you meant to cross compile, use \`--host'.
4470 See \`config.log' for more details." >&2;}
4471 { (exit 1); exit 1; }; }
4475 echo "$as_me:$LINENO: result: yes" >&5
4476 echo "${ECHO_T}yes" >&6
4478 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4479 ac_clean_files=$ac_clean_files_save
4480 # Check the compiler produces executables we can run. If not, either
4481 # the compiler is broken, or we cross compile.
4482 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4483 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4484 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4485 echo "${ECHO_T}$cross_compiling" >&6
4487 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4488 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4490 (eval $ac_link) 2>&5
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); }; then
4494 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4495 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4496 # work properly (i.e., refer to `conftest.exe'), while it won't with
4498 for ac_file in conftest.exe conftest conftest.*; do
4499 test -f "$ac_file" || continue
4501 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4502 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4509 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4510 See \`config.log' for more details." >&5
4511 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4512 See \`config.log' for more details." >&2;}
4513 { (exit 1); exit 1; }; }
4516 rm -f conftest$ac_cv_exeext
4517 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4518 echo "${ECHO_T}$ac_cv_exeext" >&6
4520 rm -f conftest.$ac_ext
4521 EXEEXT=$ac_cv_exeext
4523 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4524 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4525 if test "${ac_cv_objext+set}" = set; then
4526 echo $ECHO_N "(cached) $ECHO_C" >&6
4528 cat >conftest.$ac_ext <<_ACEOF
4531 cat confdefs.h >>conftest.$ac_ext
4532 cat >>conftest.$ac_ext <<_ACEOF
4533 /* end confdefs.h. */
4543 rm -f conftest.o conftest.obj
4544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4545 (eval $ac_compile) 2>&5
4547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548 (exit $ac_status); }; then
4549 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4551 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4552 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4557 echo "$as_me: failed program was:" >&5
4558 sed 's/^/| /' conftest.$ac_ext >&5
4560 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4561 See \`config.log' for more details." >&5
4562 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4563 See \`config.log' for more details." >&2;}
4564 { (exit 1); exit 1; }; }
4567 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4569 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4570 echo "${ECHO_T}$ac_cv_objext" >&6
4571 OBJEXT=$ac_cv_objext
4573 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4574 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4575 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4576 echo $ECHO_N "(cached) $ECHO_C" >&6
4578 cat >conftest.$ac_ext <<_ACEOF
4581 cat confdefs.h >>conftest.$ac_ext
4582 cat >>conftest.$ac_ext <<_ACEOF
4583 /* end confdefs.h. */
4596 rm -f conftest.$ac_objext
4597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4598 (eval $ac_compile) 2>conftest.er1
4600 grep -v '^ *+' conftest.er1 >conftest.err
4602 cat conftest.err >&5
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); } &&
4605 { ac_try='test -z "$ac_c_werror_flag"
4606 || test ! -s conftest.err'
4607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); }; } &&
4612 { ac_try='test -s conftest.$ac_objext'
4613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); }; }; then
4620 echo "$as_me: failed program was:" >&5
4621 sed 's/^/| /' conftest.$ac_ext >&5
4625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4626 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4629 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4630 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4631 GCC=`test $ac_compiler_gnu = yes && echo yes`
4632 ac_test_CFLAGS=${CFLAGS+set}
4633 ac_save_CFLAGS=$CFLAGS
4635 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4636 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4637 if test "${ac_cv_prog_cc_g+set}" = set; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4640 cat >conftest.$ac_ext <<_ACEOF
4643 cat confdefs.h >>conftest.$ac_ext
4644 cat >>conftest.$ac_ext <<_ACEOF
4645 /* end confdefs.h. */
4655 rm -f conftest.$ac_objext
4656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4657 (eval $ac_compile) 2>conftest.er1
4659 grep -v '^ *+' conftest.er1 >conftest.err
4661 cat conftest.err >&5
4662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663 (exit $ac_status); } &&
4664 { ac_try='test -z "$ac_c_werror_flag"
4665 || test ! -s conftest.err'
4666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); }; } &&
4671 { ac_try='test -s conftest.$ac_objext'
4672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676 (exit $ac_status); }; }; then
4679 echo "$as_me: failed program was:" >&5
4680 sed 's/^/| /' conftest.$ac_ext >&5
4684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4686 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4687 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4688 if test "$ac_test_CFLAGS" = set; then
4689 CFLAGS=$ac_save_CFLAGS
4690 elif test $ac_cv_prog_cc_g = yes; then
4691 if test "$GCC" = yes; then
4697 if test "$GCC" = yes; then
4703 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4704 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4705 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4706 echo $ECHO_N "(cached) $ECHO_C" >&6
4708 ac_cv_prog_cc_stdc=no
4710 cat >conftest.$ac_ext <<_ACEOF
4713 cat confdefs.h >>conftest.$ac_ext
4714 cat >>conftest.$ac_ext <<_ACEOF
4715 /* end confdefs.h. */
4718 #include <sys/types.h>
4719 #include <sys/stat.h>
4720 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4721 struct buf { int x; };
4722 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4723 static char *e (p, i)
4729 static char *f (char * (*g) (char **, int), char **p, ...)
4734 s = g (p, va_arg (v,int));
4739 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4740 function prototypes and stuff, but not '\xHH' hex character constants.
4741 These don't provoke an error unfortunately, instead are silently treated
4742 as 'x'. The following induces an error, until -std1 is added to get
4743 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4744 array size at least. It's necessary to write '\x00'==0 to get something
4745 that's true only with -std1. */
4746 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4748 int test (int i, double x);
4749 struct s1 {int (*f) (int a);};
4750 struct s2 {int (*f) (double a);};
4751 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4757 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4762 # Don't try gcc -ansi; that turns off useful extensions and
4763 # breaks some systems' header files.
4764 # AIX -qlanglvl=ansi
4765 # Ultrix and OSF/1 -std1
4766 # HP-UX 10.20 and later -Ae
4767 # HP-UX older versions -Aa -D_HPUX_SOURCE
4768 # SVR4 -Xc -D__EXTENSIONS__
4769 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4771 CC="$ac_save_CC $ac_arg"
4772 rm -f conftest.$ac_objext
4773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4774 (eval $ac_compile) 2>conftest.er1
4776 grep -v '^ *+' conftest.er1 >conftest.err
4778 cat conftest.err >&5
4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); } &&
4781 { ac_try='test -z "$ac_c_werror_flag"
4782 || test ! -s conftest.err'
4783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); }; } &&
4788 { ac_try='test -s conftest.$ac_objext'
4789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); }; }; then
4794 ac_cv_prog_cc_stdc=$ac_arg
4797 echo "$as_me: failed program was:" >&5
4798 sed 's/^/| /' conftest.$ac_ext >&5
4801 rm -f conftest.err conftest.$ac_objext
4803 rm -f conftest.$ac_ext conftest.$ac_objext
4808 case "x$ac_cv_prog_cc_stdc" in
4810 echo "$as_me:$LINENO: result: none needed" >&5
4811 echo "${ECHO_T}none needed" >&6 ;;
4813 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4814 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4815 CC="$CC $ac_cv_prog_cc_stdc" ;;
4818 # Some people use a C++ compiler to compile C. Since we use `exit',
4819 # in C++ we need to declare it. In case someone uses the same compiler
4820 # for both compiling C and C++ we need to have the C++ compiler decide
4821 # the declaration of exit, since it's the most demanding environment.
4822 cat >conftest.$ac_ext <<_ACEOF
4827 rm -f conftest.$ac_objext
4828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4829 (eval $ac_compile) 2>conftest.er1
4831 grep -v '^ *+' conftest.er1 >conftest.err
4833 cat conftest.err >&5
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); } &&
4836 { ac_try='test -z "$ac_c_werror_flag"
4837 || test ! -s conftest.err'
4838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); }; } &&
4843 { ac_try='test -s conftest.$ac_objext'
4844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); }; }; then
4849 for ac_declaration in \
4851 'extern "C" void std::exit (int) throw (); using std::exit;' \
4852 'extern "C" void std::exit (int); using std::exit;' \
4853 'extern "C" void exit (int) throw ();' \
4854 'extern "C" void exit (int);' \
4857 cat >conftest.$ac_ext <<_ACEOF
4860 cat confdefs.h >>conftest.$ac_ext
4861 cat >>conftest.$ac_ext <<_ACEOF
4862 /* end confdefs.h. */
4873 rm -f conftest.$ac_objext
4874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4875 (eval $ac_compile) 2>conftest.er1
4877 grep -v '^ *+' conftest.er1 >conftest.err
4879 cat conftest.err >&5
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); } &&
4882 { ac_try='test -z "$ac_c_werror_flag"
4883 || test ! -s conftest.err'
4884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888 (exit $ac_status); }; } &&
4889 { ac_try='test -s conftest.$ac_objext'
4890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); }; }; then
4897 echo "$as_me: failed program was:" >&5
4898 sed 's/^/| /' conftest.$ac_ext >&5
4902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4903 cat >conftest.$ac_ext <<_ACEOF
4906 cat confdefs.h >>conftest.$ac_ext
4907 cat >>conftest.$ac_ext <<_ACEOF
4908 /* end confdefs.h. */
4918 rm -f conftest.$ac_objext
4919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4920 (eval $ac_compile) 2>conftest.er1
4922 grep -v '^ *+' conftest.er1 >conftest.err
4924 cat conftest.err >&5
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); } &&
4927 { ac_try='test -z "$ac_c_werror_flag"
4928 || test ! -s conftest.err'
4929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); }; } &&
4934 { ac_try='test -s conftest.$ac_objext'
4935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); }; }; then
4942 echo "$as_me: failed program was:" >&5
4943 sed 's/^/| /' conftest.$ac_ext >&5
4946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4949 if test -n "$ac_declaration"; then
4950 echo '#ifdef __cplusplus' >>confdefs.h
4951 echo $ac_declaration >>confdefs.h
4952 echo '#endif' >>confdefs.h
4956 echo "$as_me: failed program was:" >&5
4957 sed 's/^/| /' conftest.$ac_ext >&5
4960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4962 ac_cpp='$CPP $CPPFLAGS'
4963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4967 depcc="$CC" am_compiler_list=
4969 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4970 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4971 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4972 echo $ECHO_N "(cached) $ECHO_C" >&6
4974 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4975 # We make a subdir and do the tests there. Otherwise we can end up
4976 # making bogus files that we don't know about and never remove. For
4977 # instance it was reported that on HP-UX the gcc test will end up
4978 # making a dummy file named `D' -- because `-MD' means `put the output
4981 # Copy depcomp to subdir because otherwise we won't find it if we're
4982 # using a relative directory.
4983 cp "$am_depcomp" conftest.dir
4985 # We will build objects and dependencies in a subdirectory because
4986 # it helps to detect inapplicable dependency modes. For instance
4987 # both Tru64's cc and ICC support -MD to output dependencies as a
4988 # side effect of compilation, but ICC will put the dependencies in
4989 # the current directory while Tru64 will put them in the object
4993 am_cv_CC_dependencies_compiler_type=none
4994 if test "$am_compiler_list" = ""; then
4995 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4997 for depmode in $am_compiler_list; do
4998 # Setup a source with many dependencies, because some compilers
4999 # like to wrap large dependency lists on column 80 (with \), and
5000 # we should not choose a depcomp mode which is confused by this.
5002 # We need to recreate these files for each test, as the compiler may
5003 # overwrite some of them when testing with obscure command lines.
5004 # This happens at least with the AIX C compiler.
5006 for i in 1 2 3 4 5 6; do
5007 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5008 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5009 # Solaris 8's {/usr,}/bin/sh.
5010 touch sub/conftst$i.h
5012 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5016 # after this tag, mechanisms are not by side-effect, so they'll
5017 # only be used when explicitly requested
5018 if test "x$enable_dependency_tracking" = xyes; then
5026 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5027 # mode. It turns out that the SunPro C++ compiler does not properly
5028 # handle `-M -o', and we need to detect this.
5029 if depmode=$depmode \
5030 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5031 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5032 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5033 >/dev/null 2>conftest.err &&
5034 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5035 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5036 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5037 # icc doesn't choke on unknown options, it will just issue warnings
5038 # or remarks (even with -Werror). So we grep stderr for any message
5039 # that says an option was ignored or not supported.
5040 # When given -MP, icc 7.0 and 7.1 complain thusly:
5041 # icc: Command line warning: ignoring option '-M'; no argument required
5042 # The diagnosis changed in icc 8.0:
5043 # icc: Command line remark: option '-MP' not supported
5044 if (grep 'ignoring option' conftest.err ||
5045 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5046 am_cv_CC_dependencies_compiler_type=$depmode
5055 am_cv_CC_dependencies_compiler_type=none
5059 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5060 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5061 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5066 test "x$enable_dependency_tracking" != xno \
5067 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5069 am__fastdepCC_FALSE='#'
5071 am__fastdepCC_TRUE='#'
5072 am__fastdepCC_FALSE=
5076 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5077 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5078 if test "${lt_cv_path_SED+set}" = set; then
5079 echo $ECHO_N "(cached) $ECHO_C" >&6
5081 # Loop through the user's path and test for sed and gsed.
5082 # Then use that list of sed's as ones to test for truncation.
5083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5087 test -z "$as_dir" && as_dir=.
5088 for lt_ac_prog in sed gsed; do
5089 for ac_exec_ext in '' $ac_executable_extensions; do
5090 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5091 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5098 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5099 # along with /bin/sed that truncates output.
5100 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5101 test ! -f $lt_ac_sed && continue
5102 cat /dev/null > conftest.in
5104 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5105 # Check for GNU sed and select it if it is found.
5106 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5107 lt_cv_path_SED=$lt_ac_sed
5111 cat conftest.in conftest.in >conftest.tmp
5112 mv conftest.tmp conftest.in
5113 cp conftest.in conftest.nl
5115 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5116 cmp -s conftest.out conftest.nl || break
5117 # 10000 chars as input seems more than enough
5118 test $lt_ac_count -gt 10 && break
5119 lt_ac_count=`expr $lt_ac_count + 1`
5120 if test $lt_ac_count -gt $lt_ac_max; then
5121 lt_ac_max=$lt_ac_count
5122 lt_cv_path_SED=$lt_ac_sed
5130 echo "$as_me:$LINENO: result: $SED" >&5
5131 echo "${ECHO_T}$SED" >&6
5133 echo "$as_me:$LINENO: checking for egrep" >&5
5134 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5135 if test "${ac_cv_prog_egrep+set}" = set; then
5136 echo $ECHO_N "(cached) $ECHO_C" >&6
5138 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5139 then ac_cv_prog_egrep='grep -E'
5140 else ac_cv_prog_egrep='egrep'
5143 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5144 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5145 EGREP=$ac_cv_prog_egrep
5149 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5150 if test "${with_gnu_ld+set}" = set; then
5151 withval="$with_gnu_ld"
5152 test "$withval" = no || with_gnu_ld=yes
5157 if test "$GCC" = yes; then
5158 # Check if gcc -print-prog-name=ld gives a path.
5159 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5160 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5163 # gcc leaves a trailing carriage return which upsets mingw
5164 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5166 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5169 # Accept absolute paths.
5171 re_direlt='/[^/][^/]*/\.\./'
5172 # Canonicalize the pathname of ld
5173 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5174 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5175 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5177 test -z "$LD" && LD="$ac_prog"
5180 # If it fails, then pretend we aren't using GCC.
5184 # If it is relative, then search for the first ld in PATH.
5188 elif test "$with_gnu_ld" = yes; then
5189 echo "$as_me:$LINENO: checking for GNU ld" >&5
5190 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5192 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5193 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5195 if test "${lt_cv_path_LD+set}" = set; then
5196 echo $ECHO_N "(cached) $ECHO_C" >&6
5198 if test -z "$LD"; then
5199 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5200 for ac_dir in $PATH; do
5202 test -z "$ac_dir" && ac_dir=.
5203 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5204 lt_cv_path_LD="$ac_dir/$ac_prog"
5205 # Check to see if the program is GNU ld. I'd rather use --version,
5206 # but apparently some GNU ld's only accept -v.
5207 # Break only if it was the GNU/non-GNU ld that we prefer.
5208 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5209 *GNU* | *'with BFD'*)
5210 test "$with_gnu_ld" != no && break
5213 test "$with_gnu_ld" != yes && break
5220 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5225 if test -n "$LD"; then
5226 echo "$as_me:$LINENO: result: $LD" >&5
5227 echo "${ECHO_T}$LD" >&6
5229 echo "$as_me:$LINENO: result: no" >&5
5230 echo "${ECHO_T}no" >&6
5232 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5233 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5234 { (exit 1); exit 1; }; }
5235 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5236 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5237 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5238 echo $ECHO_N "(cached) $ECHO_C" >&6
5240 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5241 case `$LD -v 2>&1 </dev/null` in
5242 *GNU* | *'with BFD'*)
5243 lt_cv_prog_gnu_ld=yes
5246 lt_cv_prog_gnu_ld=no
5250 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5251 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5252 with_gnu_ld=$lt_cv_prog_gnu_ld
5255 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5256 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5257 if test "${lt_cv_ld_reload_flag+set}" = set; then
5258 echo $ECHO_N "(cached) $ECHO_C" >&6
5260 lt_cv_ld_reload_flag='-r'
5262 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5263 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5264 reload_flag=$lt_cv_ld_reload_flag
5265 case $reload_flag in
5267 *) reload_flag=" $reload_flag" ;;
5269 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5272 if test "$GCC" = yes; then
5273 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5275 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5280 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5281 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5282 if test "${lt_cv_path_NM+set}" = set; then
5283 echo $ECHO_N "(cached) $ECHO_C" >&6
5285 if test -n "$NM"; then
5286 # Let the user override the test.
5289 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5290 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5292 test -z "$ac_dir" && ac_dir=.
5293 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5294 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5295 # Check to see if the nm accepts a BSD-compat flag.
5296 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5297 # nm: unknown option "B" ignored
5298 # Tru64's nm complains that /dev/null is an invalid object file
5299 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5300 */dev/null* | *'Invalid file or object type'*)
5301 lt_cv_path_NM="$tmp_nm -B"
5305 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5307 lt_cv_path_NM="$tmp_nm -p"
5311 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5312 continue # so that we can try to find one that supports BSD flags
5319 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5322 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5323 echo "${ECHO_T}$lt_cv_path_NM" >&6
5326 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5327 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5329 if test "$LN_S" = "ln -s"; then
5330 echo "$as_me:$LINENO: result: yes" >&5
5331 echo "${ECHO_T}yes" >&6
5333 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5334 echo "${ECHO_T}no, using $LN_S" >&6
5337 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5338 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5339 if test "${lt_cv_deplibs_check_method+set}" = set; then
5340 echo $ECHO_N "(cached) $ECHO_C" >&6
5342 lt_cv_file_magic_cmd='$MAGIC_CMD'
5343 lt_cv_file_magic_test_file=
5344 lt_cv_deplibs_check_method='unknown'
5345 # Need to set the preceding variable on all platforms that support
5346 # interlibrary dependencies.
5347 # 'none' -- dependencies not supported.
5348 # `unknown' -- same as none, but documents that we really don't know.
5349 # 'pass_all' -- all dependencies passed with no checks.
5350 # 'test_compile' -- check by making test program.
5351 # 'file_magic [[regex]]' -- check by looking for files in library path
5352 # which responds to the $file_magic_cmd with a given extended regex.
5353 # If you have `file' or equivalent on your system and you're not sure
5354 # whether `pass_all' will *always* work, you probably want this one.
5358 lt_cv_deplibs_check_method=pass_all
5362 lt_cv_deplibs_check_method=pass_all
5366 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5367 lt_cv_file_magic_cmd='/usr/bin/file -L'
5368 lt_cv_file_magic_test_file=/shlib/libc.so
5372 # func_win32_libid is a shell function defined in ltmain.sh
5373 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5374 lt_cv_file_magic_cmd='func_win32_libid'
5378 # Base MSYS/MinGW do not provide the 'file' command needed by
5379 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5380 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5381 lt_cv_file_magic_cmd='$OBJDUMP -f'
5384 darwin* | rhapsody*)
5385 lt_cv_deplibs_check_method=pass_all
5388 freebsd* | kfreebsd*-gnu | dragonfly*)
5389 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5392 # Not sure whether the presence of OpenBSD here was a mistake.
5393 # Let's accept both of them until this is cleared up.
5394 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5395 lt_cv_file_magic_cmd=/usr/bin/file
5396 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5400 lt_cv_deplibs_check_method=pass_all
5405 lt_cv_deplibs_check_method=pass_all
5408 hpux10.20* | hpux11*)
5409 lt_cv_file_magic_cmd=/usr/bin/file
5412 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5413 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5416 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]'
5417 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5420 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5421 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5426 irix5* | irix6* | nonstopux*)
5428 *-32|*"-32 ") libmagic=32-bit;;
5429 *-n32|*"-n32 ") libmagic=N32;;
5430 *-64|*"-64 ") libmagic=64-bit;;
5431 *) libmagic=never-match;;
5433 lt_cv_deplibs_check_method=pass_all
5436 # This must be Linux ELF.
5438 lt_cv_deplibs_check_method=pass_all
5442 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5443 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5445 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5450 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5451 lt_cv_file_magic_cmd=/usr/bin/file
5452 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5456 lt_cv_deplibs_check_method=unknown
5460 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5461 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5463 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5467 osf3* | osf4* | osf5*)
5468 lt_cv_deplibs_check_method=pass_all
5472 lt_cv_deplibs_check_method=pass_all
5476 lt_cv_deplibs_check_method=pass_all
5479 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5480 case $host_vendor in
5482 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]'
5483 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5486 lt_cv_deplibs_check_method=pass_all
5489 lt_cv_file_magic_cmd='/bin/file'
5490 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5493 lt_cv_file_magic_cmd='/bin/file'
5494 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5495 lt_cv_file_magic_test_file=/lib/libc.so
5498 lt_cv_deplibs_check_method=pass_all
5503 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5504 lt_cv_deplibs_check_method=pass_all
5509 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5510 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5511 file_magic_cmd=$lt_cv_file_magic_cmd
5512 deplibs_check_method=$lt_cv_deplibs_check_method
5513 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5518 # If no C compiler was specified, use CC.
5521 # Allow CC to be a program name with arguments.
5525 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5526 if test "${enable_libtool_lock+set}" = set; then
5527 enableval="$enable_libtool_lock"
5530 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5532 # Some flags need to be propagated to the compiler or linker for good
5536 # Find out which ABI we are using.
5537 echo 'int i;' > conftest.$ac_ext
5538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5539 (eval $ac_compile) 2>&5
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); }; then
5543 case `/usr/bin/file conftest.$ac_objext` in
5555 # Find out which ABI we are using.
5556 echo '#line 5556 "configure"' > conftest.$ac_ext
5557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5558 (eval $ac_compile) 2>&5
5560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561 (exit $ac_status); }; then
5562 if test "$lt_cv_prog_gnu_ld" = yes; then
5563 case `/usr/bin/file conftest.$ac_objext` in
5565 LD="${LD-ld} -melf32bsmip"
5568 LD="${LD-ld} -melf32bmipn32"
5571 LD="${LD-ld} -melf64bmip"
5575 case `/usr/bin/file conftest.$ac_objext` in
5591 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5592 # Find out which ABI we are using.
5593 echo 'int i;' > conftest.$ac_ext
5594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5595 (eval $ac_compile) 2>&5
5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); }; then
5599 case "`/usr/bin/file conftest.o`" in
5603 LD="${LD-ld} -m elf_i386"
5605 ppc64-*linux*|powerpc64-*linux*)
5606 LD="${LD-ld} -m elf32ppclinux"
5609 LD="${LD-ld} -m elf_s390"
5612 LD="${LD-ld} -m elf32_sparc"
5619 LD="${LD-ld} -m elf_x86_64"
5621 ppc*-*linux*|powerpc*-*linux*)
5622 LD="${LD-ld} -m elf64ppc"
5625 LD="${LD-ld} -m elf64_s390"
5628 LD="${LD-ld} -m elf64_sparc"
5638 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5639 SAVE_CFLAGS="$CFLAGS"
5640 CFLAGS="$CFLAGS -belf"
5641 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5642 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5643 if test "${lt_cv_cc_needs_belf+set}" = set; then
5644 echo $ECHO_N "(cached) $ECHO_C" >&6
5647 ac_cpp='$CPP $CPPFLAGS'
5648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5652 cat >conftest.$ac_ext <<_ACEOF
5655 cat confdefs.h >>conftest.$ac_ext
5656 cat >>conftest.$ac_ext <<_ACEOF
5657 /* end confdefs.h. */
5667 rm -f conftest.$ac_objext conftest$ac_exeext
5668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5669 (eval $ac_link) 2>conftest.er1
5671 grep -v '^ *+' conftest.er1 >conftest.err
5673 cat conftest.err >&5
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); } &&
5676 { ac_try='test -z "$ac_c_werror_flag"
5677 || test ! -s conftest.err'
5678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); }; } &&
5683 { ac_try='test -s conftest$ac_exeext'
5684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); }; }; then
5689 lt_cv_cc_needs_belf=yes
5691 echo "$as_me: failed program was:" >&5
5692 sed 's/^/| /' conftest.$ac_ext >&5
5694 lt_cv_cc_needs_belf=no
5696 rm -f conftest.err conftest.$ac_objext \
5697 conftest$ac_exeext conftest.$ac_ext
5699 ac_cpp='$CPP $CPPFLAGS'
5700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5705 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5706 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5707 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5708 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5709 CFLAGS="$SAVE_CFLAGS"
5712 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5713 if test -n "$ac_tool_prefix"; then
5714 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5715 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5716 echo "$as_me:$LINENO: checking for $ac_word" >&5
5717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5718 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5719 echo $ECHO_N "(cached) $ECHO_C" >&6
5721 if test -n "$DLLTOOL"; then
5722 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5728 test -z "$as_dir" && as_dir=.
5729 for ac_exec_ext in '' $ac_executable_extensions; do
5730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5731 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5740 DLLTOOL=$ac_cv_prog_DLLTOOL
5741 if test -n "$DLLTOOL"; then
5742 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5743 echo "${ECHO_T}$DLLTOOL" >&6
5745 echo "$as_me:$LINENO: result: no" >&5
5746 echo "${ECHO_T}no" >&6
5750 if test -z "$ac_cv_prog_DLLTOOL"; then
5751 ac_ct_DLLTOOL=$DLLTOOL
5752 # Extract the first word of "dlltool", so it can be a program name with args.
5753 set dummy dlltool; ac_word=$2
5754 echo "$as_me:$LINENO: checking for $ac_word" >&5
5755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5756 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5757 echo $ECHO_N "(cached) $ECHO_C" >&6
5759 if test -n "$ac_ct_DLLTOOL"; then
5760 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5766 test -z "$as_dir" && as_dir=.
5767 for ac_exec_ext in '' $ac_executable_extensions; do
5768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5769 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5776 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5779 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5780 if test -n "$ac_ct_DLLTOOL"; then
5781 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5782 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5784 echo "$as_me:$LINENO: result: no" >&5
5785 echo "${ECHO_T}no" >&6
5788 DLLTOOL=$ac_ct_DLLTOOL
5790 DLLTOOL="$ac_cv_prog_DLLTOOL"
5793 if test -n "$ac_tool_prefix"; then
5794 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5795 set dummy ${ac_tool_prefix}as; ac_word=$2
5796 echo "$as_me:$LINENO: checking for $ac_word" >&5
5797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5798 if test "${ac_cv_prog_AS+set}" = set; then
5799 echo $ECHO_N "(cached) $ECHO_C" >&6
5801 if test -n "$AS"; then
5802 ac_cv_prog_AS="$AS" # Let the user override the test.
5804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5808 test -z "$as_dir" && as_dir=.
5809 for ac_exec_ext in '' $ac_executable_extensions; do
5810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5811 ac_cv_prog_AS="${ac_tool_prefix}as"
5812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5821 if test -n "$AS"; then
5822 echo "$as_me:$LINENO: result: $AS" >&5
5823 echo "${ECHO_T}$AS" >&6
5825 echo "$as_me:$LINENO: result: no" >&5
5826 echo "${ECHO_T}no" >&6
5830 if test -z "$ac_cv_prog_AS"; then
5832 # Extract the first word of "as", so it can be a program name with args.
5833 set dummy as; ac_word=$2
5834 echo "$as_me:$LINENO: checking for $ac_word" >&5
5835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5836 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5837 echo $ECHO_N "(cached) $ECHO_C" >&6
5839 if test -n "$ac_ct_AS"; then
5840 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5846 test -z "$as_dir" && as_dir=.
5847 for ac_exec_ext in '' $ac_executable_extensions; do
5848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5849 ac_cv_prog_ac_ct_AS="as"
5850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5856 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
5859 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5860 if test -n "$ac_ct_AS"; then
5861 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5862 echo "${ECHO_T}$ac_ct_AS" >&6
5864 echo "$as_me:$LINENO: result: no" >&5
5865 echo "${ECHO_T}no" >&6
5873 if test -n "$ac_tool_prefix"; then
5874 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5875 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5876 echo "$as_me:$LINENO: checking for $ac_word" >&5
5877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5878 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5879 echo $ECHO_N "(cached) $ECHO_C" >&6
5881 if test -n "$OBJDUMP"; then
5882 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888 test -z "$as_dir" && as_dir=.
5889 for ac_exec_ext in '' $ac_executable_extensions; do
5890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5891 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5900 OBJDUMP=$ac_cv_prog_OBJDUMP
5901 if test -n "$OBJDUMP"; then
5902 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5903 echo "${ECHO_T}$OBJDUMP" >&6
5905 echo "$as_me:$LINENO: result: no" >&5
5906 echo "${ECHO_T}no" >&6
5910 if test -z "$ac_cv_prog_OBJDUMP"; then
5911 ac_ct_OBJDUMP=$OBJDUMP
5912 # Extract the first word of "objdump", so it can be a program name with args.
5913 set dummy objdump; ac_word=$2
5914 echo "$as_me:$LINENO: checking for $ac_word" >&5
5915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5916 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5917 echo $ECHO_N "(cached) $ECHO_C" >&6
5919 if test -n "$ac_ct_OBJDUMP"; then
5920 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5926 test -z "$as_dir" && as_dir=.
5927 for ac_exec_ext in '' $ac_executable_extensions; do
5928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5929 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5936 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
5939 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5940 if test -n "$ac_ct_OBJDUMP"; then
5941 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5942 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
5944 echo "$as_me:$LINENO: result: no" >&5
5945 echo "${ECHO_T}no" >&6
5948 OBJDUMP=$ac_ct_OBJDUMP
5950 OBJDUMP="$ac_cv_prog_OBJDUMP"
5957 need_locks="$enable_libtool_lock"
5961 ac_cpp='$CPP $CPPFLAGS'
5962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5965 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5966 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5967 # On Suns, sometimes $CPP names a directory.
5968 if test -n "$CPP" && test -d "$CPP"; then
5971 if test -z "$CPP"; then
5972 if test "${ac_cv_prog_CPP+set}" = set; then
5973 echo $ECHO_N "(cached) $ECHO_C" >&6
5975 # Double quotes because CPP needs to be expanded
5976 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5979 for ac_c_preproc_warn_flag in '' yes
5981 # Use a header file that comes with gcc, so configuring glibc
5982 # with a fresh cross-compiler works.
5983 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5984 # <limits.h> exists even on freestanding compilers.
5985 # On the NeXT, cc -E runs the code through the compiler's parser,
5986 # not just through cpp. "Syntax error" is here to catch this case.
5987 cat >conftest.$ac_ext <<_ACEOF
5990 cat confdefs.h >>conftest.$ac_ext
5991 cat >>conftest.$ac_ext <<_ACEOF
5992 /* end confdefs.h. */
5994 # include <limits.h>
5996 # include <assert.h>
6000 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6001 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6003 grep -v '^ *+' conftest.er1 >conftest.err
6005 cat conftest.err >&5
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); } >/dev/null; then
6008 if test -s conftest.err; then
6009 ac_cpp_err=$ac_c_preproc_warn_flag
6010 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6017 if test -z "$ac_cpp_err"; then
6020 echo "$as_me: failed program was:" >&5
6021 sed 's/^/| /' conftest.$ac_ext >&5
6023 # Broken: fails on valid input.
6026 rm -f conftest.err conftest.$ac_ext
6028 # OK, works on sane cases. Now check whether non-existent headers
6029 # can be detected and how.
6030 cat >conftest.$ac_ext <<_ACEOF
6033 cat confdefs.h >>conftest.$ac_ext
6034 cat >>conftest.$ac_ext <<_ACEOF
6035 /* end confdefs.h. */
6036 #include <ac_nonexistent.h>
6038 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6039 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6041 grep -v '^ *+' conftest.er1 >conftest.err
6043 cat conftest.err >&5
6044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045 (exit $ac_status); } >/dev/null; then
6046 if test -s conftest.err; then
6047 ac_cpp_err=$ac_c_preproc_warn_flag
6048 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6055 if test -z "$ac_cpp_err"; then
6056 # Broken: success on invalid input.
6059 echo "$as_me: failed program was:" >&5
6060 sed 's/^/| /' conftest.$ac_ext >&5
6062 # Passes both tests.
6066 rm -f conftest.err conftest.$ac_ext
6069 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6070 rm -f conftest.err conftest.$ac_ext
6071 if $ac_preproc_ok; then
6083 echo "$as_me:$LINENO: result: $CPP" >&5
6084 echo "${ECHO_T}$CPP" >&6
6086 for ac_c_preproc_warn_flag in '' yes
6088 # Use a header file that comes with gcc, so configuring glibc
6089 # with a fresh cross-compiler works.
6090 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6091 # <limits.h> exists even on freestanding compilers.
6092 # On the NeXT, cc -E runs the code through the compiler's parser,
6093 # not just through cpp. "Syntax error" is here to catch this case.
6094 cat >conftest.$ac_ext <<_ACEOF
6097 cat confdefs.h >>conftest.$ac_ext
6098 cat >>conftest.$ac_ext <<_ACEOF
6099 /* end confdefs.h. */
6101 # include <limits.h>
6103 # include <assert.h>
6107 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6108 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6110 grep -v '^ *+' conftest.er1 >conftest.err
6112 cat conftest.err >&5
6113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114 (exit $ac_status); } >/dev/null; then
6115 if test -s conftest.err; then
6116 ac_cpp_err=$ac_c_preproc_warn_flag
6117 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6124 if test -z "$ac_cpp_err"; then
6127 echo "$as_me: failed program was:" >&5
6128 sed 's/^/| /' conftest.$ac_ext >&5
6130 # Broken: fails on valid input.
6133 rm -f conftest.err conftest.$ac_ext
6135 # OK, works on sane cases. Now check whether non-existent headers
6136 # can be detected and how.
6137 cat >conftest.$ac_ext <<_ACEOF
6140 cat confdefs.h >>conftest.$ac_ext
6141 cat >>conftest.$ac_ext <<_ACEOF
6142 /* end confdefs.h. */
6143 #include <ac_nonexistent.h>
6145 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6146 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6148 grep -v '^ *+' conftest.er1 >conftest.err
6150 cat conftest.err >&5
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); } >/dev/null; then
6153 if test -s conftest.err; then
6154 ac_cpp_err=$ac_c_preproc_warn_flag
6155 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6162 if test -z "$ac_cpp_err"; then
6163 # Broken: success on invalid input.
6166 echo "$as_me: failed program was:" >&5
6167 sed 's/^/| /' conftest.$ac_ext >&5
6169 # Passes both tests.
6173 rm -f conftest.err conftest.$ac_ext
6176 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6177 rm -f conftest.err conftest.$ac_ext
6178 if $ac_preproc_ok; then
6181 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6182 See \`config.log' for more details." >&5
6183 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6184 See \`config.log' for more details." >&2;}
6185 { (exit 1); exit 1; }; }
6189 ac_cpp='$CPP $CPPFLAGS'
6190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6195 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6196 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6197 if test "${ac_cv_header_stdc+set}" = set; then
6198 echo $ECHO_N "(cached) $ECHO_C" >&6
6200 cat >conftest.$ac_ext <<_ACEOF
6203 cat confdefs.h >>conftest.$ac_ext
6204 cat >>conftest.$ac_ext <<_ACEOF
6205 /* end confdefs.h. */
6219 rm -f conftest.$ac_objext
6220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6221 (eval $ac_compile) 2>conftest.er1
6223 grep -v '^ *+' conftest.er1 >conftest.err
6225 cat conftest.err >&5
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); } &&
6228 { ac_try='test -z "$ac_c_werror_flag"
6229 || test ! -s conftest.err'
6230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234 (exit $ac_status); }; } &&
6235 { ac_try='test -s conftest.$ac_objext'
6236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 (exit $ac_status); }; }; then
6241 ac_cv_header_stdc=yes
6243 echo "$as_me: failed program was:" >&5
6244 sed 's/^/| /' conftest.$ac_ext >&5
6246 ac_cv_header_stdc=no
6248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6250 if test $ac_cv_header_stdc = yes; then
6251 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6252 cat >conftest.$ac_ext <<_ACEOF
6255 cat confdefs.h >>conftest.$ac_ext
6256 cat >>conftest.$ac_ext <<_ACEOF
6257 /* end confdefs.h. */
6261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6262 $EGREP "memchr" >/dev/null 2>&1; then
6265 ac_cv_header_stdc=no
6271 if test $ac_cv_header_stdc = yes; then
6272 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6273 cat >conftest.$ac_ext <<_ACEOF
6276 cat confdefs.h >>conftest.$ac_ext
6277 cat >>conftest.$ac_ext <<_ACEOF
6278 /* end confdefs.h. */
6282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6283 $EGREP "free" >/dev/null 2>&1; then
6286 ac_cv_header_stdc=no
6292 if test $ac_cv_header_stdc = yes; then
6293 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6294 if test "$cross_compiling" = yes; then
6297 cat >conftest.$ac_ext <<_ACEOF
6300 cat confdefs.h >>conftest.$ac_ext
6301 cat >>conftest.$ac_ext <<_ACEOF
6302 /* end confdefs.h. */
6304 #if ((' ' & 0x0FF) == 0x020)
6305 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6306 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6308 # define ISLOWER(c) \
6309 (('a' <= (c) && (c) <= 'i') \
6310 || ('j' <= (c) && (c) <= 'r') \
6311 || ('s' <= (c) && (c) <= 'z'))
6312 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6315 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6320 for (i = 0; i < 256; i++)
6321 if (XOR (islower (i), ISLOWER (i))
6322 || toupper (i) != TOUPPER (i))
6327 rm -f conftest$ac_exeext
6328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6329 (eval $ac_link) 2>&5
6331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337 (exit $ac_status); }; }; then
6340 echo "$as_me: program exited with status $ac_status" >&5
6341 echo "$as_me: failed program was:" >&5
6342 sed 's/^/| /' conftest.$ac_ext >&5
6345 ac_cv_header_stdc=no
6347 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6351 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6352 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6353 if test $ac_cv_header_stdc = yes; then
6355 cat >>confdefs.h <<\_ACEOF
6356 #define STDC_HEADERS 1
6361 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6371 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6372 inttypes.h stdint.h unistd.h
6374 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6375 echo "$as_me:$LINENO: checking for $ac_header" >&5
6376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6377 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6378 echo $ECHO_N "(cached) $ECHO_C" >&6
6380 cat >conftest.$ac_ext <<_ACEOF
6383 cat confdefs.h >>conftest.$ac_ext
6384 cat >>conftest.$ac_ext <<_ACEOF
6385 /* end confdefs.h. */
6386 $ac_includes_default
6388 #include <$ac_header>
6390 rm -f conftest.$ac_objext
6391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6392 (eval $ac_compile) 2>conftest.er1
6394 grep -v '^ *+' conftest.er1 >conftest.err
6396 cat conftest.err >&5
6397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398 (exit $ac_status); } &&
6399 { ac_try='test -z "$ac_c_werror_flag"
6400 || test ! -s conftest.err'
6401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405 (exit $ac_status); }; } &&
6406 { ac_try='test -s conftest.$ac_objext'
6407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); }; }; then
6412 eval "$as_ac_Header=yes"
6414 echo "$as_me: failed program was:" >&5
6415 sed 's/^/| /' conftest.$ac_ext >&5
6417 eval "$as_ac_Header=no"
6419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6422 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6423 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6424 cat >>confdefs.h <<_ACEOF
6425 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6434 for ac_header in dlfcn.h
6436 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6437 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6438 echo "$as_me:$LINENO: checking for $ac_header" >&5
6439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6441 echo $ECHO_N "(cached) $ECHO_C" >&6
6443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6444 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6446 # Is the header compilable?
6447 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6448 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6449 cat >conftest.$ac_ext <<_ACEOF
6452 cat confdefs.h >>conftest.$ac_ext
6453 cat >>conftest.$ac_ext <<_ACEOF
6454 /* end confdefs.h. */
6455 $ac_includes_default
6456 #include <$ac_header>
6458 rm -f conftest.$ac_objext
6459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6460 (eval $ac_compile) 2>conftest.er1
6462 grep -v '^ *+' conftest.er1 >conftest.err
6464 cat conftest.err >&5
6465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466 (exit $ac_status); } &&
6467 { ac_try='test -z "$ac_c_werror_flag"
6468 || test ! -s conftest.err'
6469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473 (exit $ac_status); }; } &&
6474 { ac_try='test -s conftest.$ac_objext'
6475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479 (exit $ac_status); }; }; then
6480 ac_header_compiler=yes
6482 echo "$as_me: failed program was:" >&5
6483 sed 's/^/| /' conftest.$ac_ext >&5
6485 ac_header_compiler=no
6487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6488 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6489 echo "${ECHO_T}$ac_header_compiler" >&6
6491 # Is the header present?
6492 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6493 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6494 cat >conftest.$ac_ext <<_ACEOF
6497 cat confdefs.h >>conftest.$ac_ext
6498 cat >>conftest.$ac_ext <<_ACEOF
6499 /* end confdefs.h. */
6500 #include <$ac_header>
6502 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6503 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6505 grep -v '^ *+' conftest.er1 >conftest.err
6507 cat conftest.err >&5
6508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509 (exit $ac_status); } >/dev/null; then
6510 if test -s conftest.err; then
6511 ac_cpp_err=$ac_c_preproc_warn_flag
6512 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6519 if test -z "$ac_cpp_err"; then
6520 ac_header_preproc=yes
6522 echo "$as_me: failed program was:" >&5
6523 sed 's/^/| /' conftest.$ac_ext >&5
6525 ac_header_preproc=no
6527 rm -f conftest.err conftest.$ac_ext
6528 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6529 echo "${ECHO_T}$ac_header_preproc" >&6
6531 # So? What about this header?
6532 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6534 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6535 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6537 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6538 ac_header_preproc=yes
6541 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6542 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6543 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6544 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6545 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6546 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6547 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6548 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6550 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6551 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6552 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6555 ## ------------------------------------------ ##
6556 ## Report this to the AC_PACKAGE_NAME lists. ##
6557 ## ------------------------------------------ ##
6560 sed "s/^/$as_me: WARNING: /" >&2
6563 echo "$as_me:$LINENO: checking for $ac_header" >&5
6564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6565 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6566 echo $ECHO_N "(cached) $ECHO_C" >&6
6568 eval "$as_ac_Header=\$ac_header_preproc"
6570 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6571 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6574 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6575 cat >>confdefs.h <<_ACEOF
6576 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6584 ac_cpp='$CXXCPP $CPPFLAGS'
6585 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6586 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6587 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6588 if test -n "$ac_tool_prefix"; then
6589 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6591 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6592 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6593 echo "$as_me:$LINENO: checking for $ac_word" >&5
6594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6595 if test "${ac_cv_prog_CXX+set}" = set; then
6596 echo $ECHO_N "(cached) $ECHO_C" >&6
6598 if test -n "$CXX"; then
6599 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6605 test -z "$as_dir" && as_dir=.
6606 for ac_exec_ext in '' $ac_executable_extensions; do
6607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6608 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6618 if test -n "$CXX"; then
6619 echo "$as_me:$LINENO: result: $CXX" >&5
6620 echo "${ECHO_T}$CXX" >&6
6622 echo "$as_me:$LINENO: result: no" >&5
6623 echo "${ECHO_T}no" >&6
6626 test -n "$CXX" && break
6629 if test -z "$CXX"; then
6631 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6633 # Extract the first word of "$ac_prog", so it can be a program name with args.
6634 set dummy $ac_prog; ac_word=$2
6635 echo "$as_me:$LINENO: checking for $ac_word" >&5
6636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6637 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6638 echo $ECHO_N "(cached) $ECHO_C" >&6
6640 if test -n "$ac_ct_CXX"; then
6641 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6647 test -z "$as_dir" && as_dir=.
6648 for ac_exec_ext in '' $ac_executable_extensions; do
6649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6650 ac_cv_prog_ac_ct_CXX="$ac_prog"
6651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6659 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6660 if test -n "$ac_ct_CXX"; then
6661 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6662 echo "${ECHO_T}$ac_ct_CXX" >&6
6664 echo "$as_me:$LINENO: result: no" >&5
6665 echo "${ECHO_T}no" >&6
6668 test -n "$ac_ct_CXX" && break
6670 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6676 # Provide some information about the compiler.
6677 echo "$as_me:$LINENO:" \
6678 "checking for C++ compiler version" >&5
6679 ac_compiler=`set X $ac_compile; echo $2`
6680 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6681 (eval $ac_compiler --version </dev/null >&5) 2>&5
6683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684 (exit $ac_status); }
6685 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6686 (eval $ac_compiler -v </dev/null >&5) 2>&5
6688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689 (exit $ac_status); }
6690 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6691 (eval $ac_compiler -V </dev/null >&5) 2>&5
6693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694 (exit $ac_status); }
6696 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6697 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6698 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6699 echo $ECHO_N "(cached) $ECHO_C" >&6
6701 cat >conftest.$ac_ext <<_ACEOF
6704 cat confdefs.h >>conftest.$ac_ext
6705 cat >>conftest.$ac_ext <<_ACEOF
6706 /* end confdefs.h. */
6719 rm -f conftest.$ac_objext
6720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6721 (eval $ac_compile) 2>conftest.er1
6723 grep -v '^ *+' conftest.er1 >conftest.err
6725 cat conftest.err >&5
6726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727 (exit $ac_status); } &&
6728 { ac_try='test -z "$ac_cxx_werror_flag"
6729 || test ! -s conftest.err'
6730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734 (exit $ac_status); }; } &&
6735 { ac_try='test -s conftest.$ac_objext'
6736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740 (exit $ac_status); }; }; then
6743 echo "$as_me: failed program was:" >&5
6744 sed 's/^/| /' conftest.$ac_ext >&5
6748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6749 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6752 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6753 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6754 GXX=`test $ac_compiler_gnu = yes && echo yes`
6755 ac_test_CXXFLAGS=${CXXFLAGS+set}
6756 ac_save_CXXFLAGS=$CXXFLAGS
6758 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6759 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6760 if test "${ac_cv_prog_cxx_g+set}" = set; then
6761 echo $ECHO_N "(cached) $ECHO_C" >&6
6763 cat >conftest.$ac_ext <<_ACEOF
6766 cat confdefs.h >>conftest.$ac_ext
6767 cat >>conftest.$ac_ext <<_ACEOF
6768 /* end confdefs.h. */
6778 rm -f conftest.$ac_objext
6779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6780 (eval $ac_compile) 2>conftest.er1
6782 grep -v '^ *+' conftest.er1 >conftest.err
6784 cat conftest.err >&5
6785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786 (exit $ac_status); } &&
6787 { ac_try='test -z "$ac_cxx_werror_flag"
6788 || test ! -s conftest.err'
6789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793 (exit $ac_status); }; } &&
6794 { ac_try='test -s conftest.$ac_objext'
6795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799 (exit $ac_status); }; }; then
6800 ac_cv_prog_cxx_g=yes
6802 echo "$as_me: failed program was:" >&5
6803 sed 's/^/| /' conftest.$ac_ext >&5
6807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6809 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6810 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6811 if test "$ac_test_CXXFLAGS" = set; then
6812 CXXFLAGS=$ac_save_CXXFLAGS
6813 elif test $ac_cv_prog_cxx_g = yes; then
6814 if test "$GXX" = yes; then
6820 if test "$GXX" = yes; then
6826 for ac_declaration in \
6828 'extern "C" void std::exit (int) throw (); using std::exit;' \
6829 'extern "C" void std::exit (int); using std::exit;' \
6830 'extern "C" void exit (int) throw ();' \
6831 'extern "C" void exit (int);' \
6834 cat >conftest.$ac_ext <<_ACEOF
6837 cat confdefs.h >>conftest.$ac_ext
6838 cat >>conftest.$ac_ext <<_ACEOF
6839 /* end confdefs.h. */
6850 rm -f conftest.$ac_objext
6851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6852 (eval $ac_compile) 2>conftest.er1
6854 grep -v '^ *+' conftest.er1 >conftest.err
6856 cat conftest.err >&5
6857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858 (exit $ac_status); } &&
6859 { ac_try='test -z "$ac_cxx_werror_flag"
6860 || test ! -s conftest.err'
6861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865 (exit $ac_status); }; } &&
6866 { ac_try='test -s conftest.$ac_objext'
6867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871 (exit $ac_status); }; }; then
6874 echo "$as_me: failed program was:" >&5
6875 sed 's/^/| /' conftest.$ac_ext >&5
6879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6880 cat >conftest.$ac_ext <<_ACEOF
6883 cat confdefs.h >>conftest.$ac_ext
6884 cat >>conftest.$ac_ext <<_ACEOF
6885 /* end confdefs.h. */
6895 rm -f conftest.$ac_objext
6896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6897 (eval $ac_compile) 2>conftest.er1
6899 grep -v '^ *+' conftest.er1 >conftest.err
6901 cat conftest.err >&5
6902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903 (exit $ac_status); } &&
6904 { ac_try='test -z "$ac_cxx_werror_flag"
6905 || test ! -s conftest.err'
6906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); }; } &&
6911 { ac_try='test -s conftest.$ac_objext'
6912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916 (exit $ac_status); }; }; then
6919 echo "$as_me: failed program was:" >&5
6920 sed 's/^/| /' conftest.$ac_ext >&5
6923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6926 if test -n "$ac_declaration"; then
6927 echo '#ifdef __cplusplus' >>confdefs.h
6928 echo $ac_declaration >>confdefs.h
6929 echo '#endif' >>confdefs.h
6933 ac_cpp='$CXXCPP $CPPFLAGS'
6934 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6935 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6936 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6938 depcc="$CXX" am_compiler_list=
6940 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6941 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6942 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6943 echo $ECHO_N "(cached) $ECHO_C" >&6
6945 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6946 # We make a subdir and do the tests there. Otherwise we can end up
6947 # making bogus files that we don't know about and never remove. For
6948 # instance it was reported that on HP-UX the gcc test will end up
6949 # making a dummy file named `D' -- because `-MD' means `put the output
6952 # Copy depcomp to subdir because otherwise we won't find it if we're
6953 # using a relative directory.
6954 cp "$am_depcomp" conftest.dir
6956 # We will build objects and dependencies in a subdirectory because
6957 # it helps to detect inapplicable dependency modes. For instance
6958 # both Tru64's cc and ICC support -MD to output dependencies as a
6959 # side effect of compilation, but ICC will put the dependencies in
6960 # the current directory while Tru64 will put them in the object
6964 am_cv_CXX_dependencies_compiler_type=none
6965 if test "$am_compiler_list" = ""; then
6966 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6968 for depmode in $am_compiler_list; do
6969 # Setup a source with many dependencies, because some compilers
6970 # like to wrap large dependency lists on column 80 (with \), and
6971 # we should not choose a depcomp mode which is confused by this.
6973 # We need to recreate these files for each test, as the compiler may
6974 # overwrite some of them when testing with obscure command lines.
6975 # This happens at least with the AIX C compiler.
6977 for i in 1 2 3 4 5 6; do
6978 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6979 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6980 # Solaris 8's {/usr,}/bin/sh.
6981 touch sub/conftst$i.h
6983 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6987 # after this tag, mechanisms are not by side-effect, so they'll
6988 # only be used when explicitly requested
6989 if test "x$enable_dependency_tracking" = xyes; then
6997 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6998 # mode. It turns out that the SunPro C++ compiler does not properly
6999 # handle `-M -o', and we need to detect this.
7000 if depmode=$depmode \
7001 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7002 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7003 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7004 >/dev/null 2>conftest.err &&
7005 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7006 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7007 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7008 # icc doesn't choke on unknown options, it will just issue warnings
7009 # or remarks (even with -Werror). So we grep stderr for any message
7010 # that says an option was ignored or not supported.
7011 # When given -MP, icc 7.0 and 7.1 complain thusly:
7012 # icc: Command line warning: ignoring option '-M'; no argument required
7013 # The diagnosis changed in icc 8.0:
7014 # icc: Command line remark: option '-MP' not supported
7015 if (grep 'ignoring option' conftest.err ||
7016 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7017 am_cv_CXX_dependencies_compiler_type=$depmode
7026 am_cv_CXX_dependencies_compiler_type=none
7030 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7031 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7032 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7037 test "x$enable_dependency_tracking" != xno \
7038 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7039 am__fastdepCXX_TRUE=
7040 am__fastdepCXX_FALSE='#'
7042 am__fastdepCXX_TRUE='#'
7043 am__fastdepCXX_FALSE=
7049 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7050 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7051 (test "X$CXX" != "Xg++"))) ; then
7053 ac_cpp='$CXXCPP $CPPFLAGS'
7054 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7055 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7056 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7057 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7058 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7059 if test -z "$CXXCPP"; then
7060 if test "${ac_cv_prog_CXXCPP+set}" = set; then
7061 echo $ECHO_N "(cached) $ECHO_C" >&6
7063 # Double quotes because CXXCPP needs to be expanded
7064 for CXXCPP in "$CXX -E" "/lib/cpp"
7067 for ac_cxx_preproc_warn_flag in '' yes
7069 # Use a header file that comes with gcc, so configuring glibc
7070 # with a fresh cross-compiler works.
7071 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7072 # <limits.h> exists even on freestanding compilers.
7073 # On the NeXT, cc -E runs the code through the compiler's parser,
7074 # not just through cpp. "Syntax error" is here to catch this case.
7075 cat >conftest.$ac_ext <<_ACEOF
7078 cat confdefs.h >>conftest.$ac_ext
7079 cat >>conftest.$ac_ext <<_ACEOF
7080 /* end confdefs.h. */
7082 # include <limits.h>
7084 # include <assert.h>
7088 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7089 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7091 grep -v '^ *+' conftest.er1 >conftest.err
7093 cat conftest.err >&5
7094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095 (exit $ac_status); } >/dev/null; then
7096 if test -s conftest.err; then
7097 ac_cpp_err=$ac_cxx_preproc_warn_flag
7098 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7105 if test -z "$ac_cpp_err"; then
7108 echo "$as_me: failed program was:" >&5
7109 sed 's/^/| /' conftest.$ac_ext >&5
7111 # Broken: fails on valid input.
7114 rm -f conftest.err conftest.$ac_ext
7116 # OK, works on sane cases. Now check whether non-existent headers
7117 # can be detected and how.
7118 cat >conftest.$ac_ext <<_ACEOF
7121 cat confdefs.h >>conftest.$ac_ext
7122 cat >>conftest.$ac_ext <<_ACEOF
7123 /* end confdefs.h. */
7124 #include <ac_nonexistent.h>
7126 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7127 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7129 grep -v '^ *+' conftest.er1 >conftest.err
7131 cat conftest.err >&5
7132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 (exit $ac_status); } >/dev/null; then
7134 if test -s conftest.err; then
7135 ac_cpp_err=$ac_cxx_preproc_warn_flag
7136 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7143 if test -z "$ac_cpp_err"; then
7144 # Broken: success on invalid input.
7147 echo "$as_me: failed program was:" >&5
7148 sed 's/^/| /' conftest.$ac_ext >&5
7150 # Passes both tests.
7154 rm -f conftest.err conftest.$ac_ext
7157 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7158 rm -f conftest.err conftest.$ac_ext
7159 if $ac_preproc_ok; then
7164 ac_cv_prog_CXXCPP=$CXXCPP
7167 CXXCPP=$ac_cv_prog_CXXCPP
7169 ac_cv_prog_CXXCPP=$CXXCPP
7171 echo "$as_me:$LINENO: result: $CXXCPP" >&5
7172 echo "${ECHO_T}$CXXCPP" >&6
7174 for ac_cxx_preproc_warn_flag in '' yes
7176 # Use a header file that comes with gcc, so configuring glibc
7177 # with a fresh cross-compiler works.
7178 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7179 # <limits.h> exists even on freestanding compilers.
7180 # On the NeXT, cc -E runs the code through the compiler's parser,
7181 # not just through cpp. "Syntax error" is here to catch this case.
7182 cat >conftest.$ac_ext <<_ACEOF
7185 cat confdefs.h >>conftest.$ac_ext
7186 cat >>conftest.$ac_ext <<_ACEOF
7187 /* end confdefs.h. */
7189 # include <limits.h>
7191 # include <assert.h>
7195 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7196 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7198 grep -v '^ *+' conftest.er1 >conftest.err
7200 cat conftest.err >&5
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); } >/dev/null; then
7203 if test -s conftest.err; then
7204 ac_cpp_err=$ac_cxx_preproc_warn_flag
7205 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7212 if test -z "$ac_cpp_err"; then
7215 echo "$as_me: failed program was:" >&5
7216 sed 's/^/| /' conftest.$ac_ext >&5
7218 # Broken: fails on valid input.
7221 rm -f conftest.err conftest.$ac_ext
7223 # OK, works on sane cases. Now check whether non-existent headers
7224 # can be detected and how.
7225 cat >conftest.$ac_ext <<_ACEOF
7228 cat confdefs.h >>conftest.$ac_ext
7229 cat >>conftest.$ac_ext <<_ACEOF
7230 /* end confdefs.h. */
7231 #include <ac_nonexistent.h>
7233 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7234 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7236 grep -v '^ *+' conftest.er1 >conftest.err
7238 cat conftest.err >&5
7239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240 (exit $ac_status); } >/dev/null; then
7241 if test -s conftest.err; then
7242 ac_cpp_err=$ac_cxx_preproc_warn_flag
7243 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7250 if test -z "$ac_cpp_err"; then
7251 # Broken: success on invalid input.
7254 echo "$as_me: failed program was:" >&5
7255 sed 's/^/| /' conftest.$ac_ext >&5
7257 # Passes both tests.
7261 rm -f conftest.err conftest.$ac_ext
7264 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7265 rm -f conftest.err conftest.$ac_ext
7266 if $ac_preproc_ok; then
7269 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7270 See \`config.log' for more details." >&5
7271 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7272 See \`config.log' for more details." >&2;}
7273 { (exit 1); exit 1; }; }
7277 ac_cpp='$CXXCPP $CPPFLAGS'
7278 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7279 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7280 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7286 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7287 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7288 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7289 if test -n "$ac_tool_prefix"; then
7290 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7292 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7293 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7294 echo "$as_me:$LINENO: checking for $ac_word" >&5
7295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7296 if test "${ac_cv_prog_F77+set}" = set; then
7297 echo $ECHO_N "(cached) $ECHO_C" >&6
7299 if test -n "$F77"; then
7300 ac_cv_prog_F77="$F77" # Let the user override the test.
7302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7306 test -z "$as_dir" && as_dir=.
7307 for ac_exec_ext in '' $ac_executable_extensions; do
7308 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7309 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7319 if test -n "$F77"; then
7320 echo "$as_me:$LINENO: result: $F77" >&5
7321 echo "${ECHO_T}$F77" >&6
7323 echo "$as_me:$LINENO: result: no" >&5
7324 echo "${ECHO_T}no" >&6
7327 test -n "$F77" && break
7330 if test -z "$F77"; then
7332 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7334 # Extract the first word of "$ac_prog", so it can be a program name with args.
7335 set dummy $ac_prog; ac_word=$2
7336 echo "$as_me:$LINENO: checking for $ac_word" >&5
7337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7338 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7339 echo $ECHO_N "(cached) $ECHO_C" >&6
7341 if test -n "$ac_ct_F77"; then
7342 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348 test -z "$as_dir" && as_dir=.
7349 for ac_exec_ext in '' $ac_executable_extensions; do
7350 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7351 ac_cv_prog_ac_ct_F77="$ac_prog"
7352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7360 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7361 if test -n "$ac_ct_F77"; then
7362 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7363 echo "${ECHO_T}$ac_ct_F77" >&6
7365 echo "$as_me:$LINENO: result: no" >&5
7366 echo "${ECHO_T}no" >&6
7369 test -n "$ac_ct_F77" && break
7376 # Provide some information about the compiler.
7377 echo "$as_me:7377:" \
7378 "checking for Fortran 77 compiler version" >&5
7379 ac_compiler=`set X $ac_compile; echo $2`
7380 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7381 (eval $ac_compiler --version </dev/null >&5) 2>&5
7383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384 (exit $ac_status); }
7385 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7386 (eval $ac_compiler -v </dev/null >&5) 2>&5
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); }
7390 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7391 (eval $ac_compiler -V </dev/null >&5) 2>&5
7393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394 (exit $ac_status); }
7397 # If we don't use `.F' as extension, the preprocessor is not run on the
7398 # input file. (Note that this only needs to work for GNU compilers.)
7401 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7402 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7403 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7404 echo $ECHO_N "(cached) $ECHO_C" >&6
7406 cat >conftest.$ac_ext <<_ACEOF
7414 rm -f conftest.$ac_objext
7415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7416 (eval $ac_compile) 2>conftest.er1
7418 grep -v '^ *+' conftest.er1 >conftest.err
7420 cat conftest.err >&5
7421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422 (exit $ac_status); } &&
7423 { ac_try='test -z "$ac_f77_werror_flag"
7424 || test ! -s conftest.err'
7425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429 (exit $ac_status); }; } &&
7430 { ac_try='test -s conftest.$ac_objext'
7431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435 (exit $ac_status); }; }; then
7438 echo "$as_me: failed program was:" >&5
7439 sed 's/^/| /' conftest.$ac_ext >&5
7443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7444 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7447 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7448 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7450 ac_test_FFLAGS=${FFLAGS+set}
7451 ac_save_FFLAGS=$FFLAGS
7453 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7454 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7455 if test "${ac_cv_prog_f77_g+set}" = set; then
7456 echo $ECHO_N "(cached) $ECHO_C" >&6
7459 cat >conftest.$ac_ext <<_ACEOF
7464 rm -f conftest.$ac_objext
7465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7466 (eval $ac_compile) 2>conftest.er1
7468 grep -v '^ *+' conftest.er1 >conftest.err
7470 cat conftest.err >&5
7471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472 (exit $ac_status); } &&
7473 { ac_try='test -z "$ac_f77_werror_flag"
7474 || test ! -s conftest.err'
7475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479 (exit $ac_status); }; } &&
7480 { ac_try='test -s conftest.$ac_objext'
7481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485 (exit $ac_status); }; }; then
7486 ac_cv_prog_f77_g=yes
7488 echo "$as_me: failed program was:" >&5
7489 sed 's/^/| /' conftest.$ac_ext >&5
7493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7496 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7497 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7498 if test "$ac_test_FFLAGS" = set; then
7499 FFLAGS=$ac_save_FFLAGS
7500 elif test $ac_cv_prog_f77_g = yes; then
7501 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7507 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7514 G77=`test $ac_compiler_gnu = yes && echo yes`
7516 ac_cpp='$CPP $CPPFLAGS'
7517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7523 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7525 # find the maximum length of command line arguments
7526 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7527 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7528 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7529 echo $ECHO_N "(cached) $ECHO_C" >&6
7536 # On DJGPP, this test can blow up pretty badly due to problems in libc
7537 # (any single argument exceeding 2000 bytes causes a buffer overrun
7538 # during glob expansion). Even if it were fixed, the result of this
7539 # check would be larger than it should be.
7540 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7544 # Under GNU Hurd, this test is not required because there is
7545 # no limit to the length of command line arguments.
7546 # Libtool will interpret -1 as no limit whatsoever
7547 lt_cv_sys_max_cmd_len=-1;
7551 # On Win9x/ME, this test blows up -- it succeeds, but takes
7552 # about 5 minutes as the teststring grows exponentially.
7553 # Worse, since 9x/ME are not pre-emptively multitasking,
7554 # you end up with a "frozen" computer, even though with patience
7555 # the test eventually succeeds (with a max line length of 256k).
7556 # Instead, let's just punt: use the minimum linelength reported by
7557 # all of the supported platforms: 8192 (on NT/2K/XP).
7558 lt_cv_sys_max_cmd_len=8192;
7562 # On AmigaOS with pdksh, this test takes hours, literally.
7563 # So we just punt and use a minimum line length of 8192.
7564 lt_cv_sys_max_cmd_len=8192;
7567 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7568 # This has been around since 386BSD, at least. Likely further.
7569 if test -x /sbin/sysctl; then
7570 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7571 elif test -x /usr/sbin/sysctl; then
7572 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7574 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
7576 # And add a safety zone
7577 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7578 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7581 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7582 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7583 # nice to cause kernel panics so lets avoid the loop below.
7584 # First set a reasonable default.
7585 lt_cv_sys_max_cmd_len=16384
7587 if test -x /sbin/sysconfig; then
7588 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7589 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7594 # If test is not a shell built-in, we'll probably end up computing a
7595 # maximum length that is only half of the actual maximum length, but
7597 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7598 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7599 = "XX$teststring") >/dev/null 2>&1 &&
7600 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7601 lt_cv_sys_max_cmd_len=$new_result &&
7602 test $i != 17 # 1/2 MB should be enough
7605 teststring=$teststring$teststring
7608 # Add a significant safety factor because C++ compilers can tack on massive
7609 # amounts of additional arguments before passing them to the linker.
7610 # It appears as though 1/2 is a usable value.
7611 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7617 if test -n $lt_cv_sys_max_cmd_len ; then
7618 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7619 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7621 echo "$as_me:$LINENO: result: none" >&5
7622 echo "${ECHO_T}none" >&6
7628 # Check for command to grab the raw symbol name followed by C symbol from nm.
7629 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7630 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7631 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7632 echo $ECHO_N "(cached) $ECHO_C" >&6
7635 # These are sane defaults that work on at least a few old systems.
7636 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7638 # Character class describing NM global symbol codes.
7639 symcode='[BCDEGRST]'
7641 # Regexp to match symbols that can be accessed directly from C.
7642 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7644 # Transform an extracted symbol line into a proper C declaration
7645 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7647 # Transform an extracted symbol line into symbol name and symbol address
7648 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'"
7650 # Define system-specific variables.
7655 cygwin* | mingw* | pw32*)
7656 symcode='[ABCDGISTW]'
7658 hpux*) # Its linker distinguishes data from code symbols
7659 if test "$host_cpu" = ia64; then
7660 symcode='[ABCDEGRST]'
7662 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7663 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 if test "$host_cpu" = ia64; then
7667 symcode='[ABCDGIRSTW]'
7668 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7669 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'"
7673 symcode='[BCDEGRST]'
7676 symcode='[BCDEGQRST]'
7686 # Handle CRLF in mingw tool chain
7690 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7694 # If we're using GNU nm, then use its standard symbol codes.
7695 case `$NM -V 2>&1` in
7696 *GNU* | *'with BFD'*)
7697 symcode='[ABCDGIRSTW]' ;;
7700 # Try without a prefix undercore, then with it.
7701 for ac_symprfx in "" "_"; do
7703 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7704 symxfrm="\\1 $ac_symprfx\\2 \\2"
7706 # Write the raw and C identifiers.
7707 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7709 # Check to see that the pipe works correctly.
7713 cat > conftest.$ac_ext <<EOF
7718 void nm_test_func(){}
7722 int main(){nm_test_var='a';nm_test_func();return(0);}
7725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7726 (eval $ac_compile) 2>&5
7728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729 (exit $ac_status); }; then
7730 # Now try to grab the symbols.
7732 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7733 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7736 (exit $ac_status); } && test -s "$nlist"; then
7737 # Try sorting and uniquifying the output.
7738 if sort "$nlist" | uniq > "$nlist"T; then
7739 mv -f "$nlist"T "$nlist"
7744 # Make sure that we snagged all the symbols we need.
7745 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7746 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7747 cat <<EOF > conftest.$ac_ext
7753 # Now generate the symbol file.
7754 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7756 cat <<EOF >> conftest.$ac_ext
7757 #if defined (__STDC__) && __STDC__
7758 # define lt_ptr_t void *
7760 # define lt_ptr_t char *
7764 /* The mapping between symbol names and symbols. */
7769 lt_preloaded_symbols[] =
7772 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7773 cat <<\EOF >> conftest.$ac_ext
7781 # Now try linking the two files.
7782 mv conftest.$ac_objext conftstm.$ac_objext
7783 lt_save_LIBS="$LIBS"
7784 lt_save_CFLAGS="$CFLAGS"
7785 LIBS="conftstm.$ac_objext"
7786 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7788 (eval $ac_link) 2>&5
7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7794 LIBS="$lt_save_LIBS"
7795 CFLAGS="$lt_save_CFLAGS"
7797 echo "cannot find nm_test_func in $nlist" >&5
7800 echo "cannot find nm_test_var in $nlist" >&5
7803 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7806 echo "$progname: failed program was:" >&5
7807 cat conftest.$ac_ext >&5
7809 rm -f conftest* conftst*
7811 # Do not use the global_symbol_pipe unless it works.
7812 if test "$pipe_works" = yes; then
7815 lt_cv_sys_global_symbol_pipe=
7821 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7822 lt_cv_sys_global_symbol_to_cdecl=
7824 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7825 echo "$as_me:$LINENO: result: failed" >&5
7826 echo "${ECHO_T}failed" >&6
7828 echo "$as_me:$LINENO: result: ok" >&5
7829 echo "${ECHO_T}ok" >&6
7832 echo "$as_me:$LINENO: checking for objdir" >&5
7833 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7834 if test "${lt_cv_objdir+set}" = set; then
7835 echo $ECHO_N "(cached) $ECHO_C" >&6
7837 rm -f .libs 2>/dev/null
7838 mkdir .libs 2>/dev/null
7839 if test -d .libs; then
7842 # MS-DOS does not allow filenames that begin with a dot.
7845 rmdir .libs 2>/dev/null
7847 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7848 echo "${ECHO_T}$lt_cv_objdir" >&6
7849 objdir=$lt_cv_objdir
7857 # AIX sometimes has problems with the GCC collect2 program. For some
7858 # reason, if we set the COLLECT_NAMES environment variable, the problems
7859 # vanish in a puff of smoke.
7860 if test "X${COLLECT_NAMES+set}" != Xset; then
7862 export COLLECT_NAMES
7867 # Sed substitution that helps us do robust quoting. It backslashifies
7868 # metacharacters that are still active within double-quoted strings.
7869 Xsed='sed -e 1s/^X//'
7870 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7872 # Same as above, but do not quote variable references.
7873 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7875 # Sed substitution to delay expansion of an escaped shell variable in a
7876 # double_quote_subst'ed string.
7877 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7879 # Sed substitution to avoid accidental globbing in evaled expressions
7880 no_glob_subst='s/\*/\\\*/g'
7886 default_ofile=libtool
7887 can_build_shared=yes
7889 # All known linkers require a `.a' archive for static linking (except M$VC,
7890 # which needs '.lib').
7892 ltmain="$ac_aux_dir/ltmain.sh"
7893 ofile="$default_ofile"
7894 with_gnu_ld="$lt_cv_prog_gnu_ld"
7896 if test -n "$ac_tool_prefix"; then
7897 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7898 set dummy ${ac_tool_prefix}ar; ac_word=$2
7899 echo "$as_me:$LINENO: checking for $ac_word" >&5
7900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7901 if test "${ac_cv_prog_AR+set}" = set; then
7902 echo $ECHO_N "(cached) $ECHO_C" >&6
7904 if test -n "$AR"; then
7905 ac_cv_prog_AR="$AR" # Let the user override the test.
7907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7911 test -z "$as_dir" && as_dir=.
7912 for ac_exec_ext in '' $ac_executable_extensions; do
7913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7914 ac_cv_prog_AR="${ac_tool_prefix}ar"
7915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7924 if test -n "$AR"; then
7925 echo "$as_me:$LINENO: result: $AR" >&5
7926 echo "${ECHO_T}$AR" >&6
7928 echo "$as_me:$LINENO: result: no" >&5
7929 echo "${ECHO_T}no" >&6
7933 if test -z "$ac_cv_prog_AR"; then
7935 # Extract the first word of "ar", so it can be a program name with args.
7936 set dummy ar; ac_word=$2
7937 echo "$as_me:$LINENO: checking for $ac_word" >&5
7938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7939 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7940 echo $ECHO_N "(cached) $ECHO_C" >&6
7942 if test -n "$ac_ct_AR"; then
7943 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7949 test -z "$as_dir" && as_dir=.
7950 for ac_exec_ext in '' $ac_executable_extensions; do
7951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7952 ac_cv_prog_ac_ct_AR="ar"
7953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7959 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7962 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7963 if test -n "$ac_ct_AR"; then
7964 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7965 echo "${ECHO_T}$ac_ct_AR" >&6
7967 echo "$as_me:$LINENO: result: no" >&5
7968 echo "${ECHO_T}no" >&6
7976 if test -n "$ac_tool_prefix"; then
7977 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7978 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7979 echo "$as_me:$LINENO: checking for $ac_word" >&5
7980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7981 if test "${ac_cv_prog_RANLIB+set}" = set; then
7982 echo $ECHO_N "(cached) $ECHO_C" >&6
7984 if test -n "$RANLIB"; then
7985 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7991 test -z "$as_dir" && as_dir=.
7992 for ac_exec_ext in '' $ac_executable_extensions; do
7993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7994 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8003 RANLIB=$ac_cv_prog_RANLIB
8004 if test -n "$RANLIB"; then
8005 echo "$as_me:$LINENO: result: $RANLIB" >&5
8006 echo "${ECHO_T}$RANLIB" >&6
8008 echo "$as_me:$LINENO: result: no" >&5
8009 echo "${ECHO_T}no" >&6
8013 if test -z "$ac_cv_prog_RANLIB"; then
8014 ac_ct_RANLIB=$RANLIB
8015 # Extract the first word of "ranlib", so it can be a program name with args.
8016 set dummy ranlib; ac_word=$2
8017 echo "$as_me:$LINENO: checking for $ac_word" >&5
8018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8019 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8020 echo $ECHO_N "(cached) $ECHO_C" >&6
8022 if test -n "$ac_ct_RANLIB"; then
8023 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8029 test -z "$as_dir" && as_dir=.
8030 for ac_exec_ext in '' $ac_executable_extensions; do
8031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8032 ac_cv_prog_ac_ct_RANLIB="ranlib"
8033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8039 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8042 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8043 if test -n "$ac_ct_RANLIB"; then
8044 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8045 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8047 echo "$as_me:$LINENO: result: no" >&5
8048 echo "${ECHO_T}no" >&6
8051 RANLIB=$ac_ct_RANLIB
8053 RANLIB="$ac_cv_prog_RANLIB"
8056 if test -n "$ac_tool_prefix"; then
8057 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8058 set dummy ${ac_tool_prefix}strip; ac_word=$2
8059 echo "$as_me:$LINENO: checking for $ac_word" >&5
8060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8061 if test "${ac_cv_prog_STRIP+set}" = set; then
8062 echo $ECHO_N "(cached) $ECHO_C" >&6
8064 if test -n "$STRIP"; then
8065 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8071 test -z "$as_dir" && as_dir=.
8072 for ac_exec_ext in '' $ac_executable_extensions; do
8073 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8074 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8083 STRIP=$ac_cv_prog_STRIP
8084 if test -n "$STRIP"; then
8085 echo "$as_me:$LINENO: result: $STRIP" >&5
8086 echo "${ECHO_T}$STRIP" >&6
8088 echo "$as_me:$LINENO: result: no" >&5
8089 echo "${ECHO_T}no" >&6
8093 if test -z "$ac_cv_prog_STRIP"; then
8095 # Extract the first word of "strip", so it can be a program name with args.
8096 set dummy strip; ac_word=$2
8097 echo "$as_me:$LINENO: checking for $ac_word" >&5
8098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8099 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8100 echo $ECHO_N "(cached) $ECHO_C" >&6
8102 if test -n "$ac_ct_STRIP"; then
8103 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8109 test -z "$as_dir" && as_dir=.
8110 for ac_exec_ext in '' $ac_executable_extensions; do
8111 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8112 ac_cv_prog_ac_ct_STRIP="strip"
8113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8119 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8122 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8123 if test -n "$ac_ct_STRIP"; then
8124 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8125 echo "${ECHO_T}$ac_ct_STRIP" >&6
8127 echo "$as_me:$LINENO: result: no" >&5
8128 echo "${ECHO_T}no" >&6
8133 STRIP="$ac_cv_prog_STRIP"
8138 old_CFLAGS="$CFLAGS"
8140 # Set sane defaults for various variables
8141 test -z "$AR" && AR=ar
8142 test -z "$AR_FLAGS" && AR_FLAGS=cru
8143 test -z "$AS" && AS=as
8144 test -z "$CC" && CC=cc
8145 test -z "$LTCC" && LTCC=$CC
8146 test -z "$DLLTOOL" && DLLTOOL=dlltool
8147 test -z "$LD" && LD=ld
8148 test -z "$LN_S" && LN_S="ln -s"
8149 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8150 test -z "$NM" && NM=nm
8151 test -z "$SED" && SED=sed
8152 test -z "$OBJDUMP" && OBJDUMP=objdump
8153 test -z "$RANLIB" && RANLIB=:
8154 test -z "$STRIP" && STRIP=:
8155 test -z "$ac_objext" && ac_objext=o
8157 # Determine commands to create old-style static archives.
8158 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8159 old_postinstall_cmds='chmod 644 $oldlib'
8160 old_postuninstall_cmds=
8162 if test -n "$RANLIB"; then
8165 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8168 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8171 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8174 for cc_temp in $compiler""; do
8176 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8177 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8182 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8185 # Only perform the check for file, if the check method requires it
8186 case $deplibs_check_method in
8188 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8189 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8190 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8191 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8192 echo $ECHO_N "(cached) $ECHO_C" >&6
8196 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8199 lt_save_MAGIC_CMD="$MAGIC_CMD"
8200 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8201 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8202 for ac_dir in $ac_dummy; do
8204 test -z "$ac_dir" && ac_dir=.
8205 if test -f $ac_dir/${ac_tool_prefix}file; then
8206 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8207 if test -n "$file_magic_test_file"; then
8208 case $deplibs_check_method in
8210 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8211 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8212 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8213 $EGREP "$file_magic_regex" > /dev/null; then
8218 *** Warning: the command libtool uses to detect shared libraries,
8219 *** $file_magic_cmd, produces output that libtool cannot recognize.
8220 *** The result is that libtool may fail to recognize shared libraries
8221 *** as such. This will affect the creation of libtool libraries that
8222 *** depend on shared libraries, but programs linked with such libtool
8223 *** libraries will work regardless of this problem. Nevertheless, you
8224 *** may want to report the problem to your system manager and/or to
8225 *** bug-libtool@gnu.org
8235 MAGIC_CMD="$lt_save_MAGIC_CMD"
8240 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8241 if test -n "$MAGIC_CMD"; then
8242 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8243 echo "${ECHO_T}$MAGIC_CMD" >&6
8245 echo "$as_me:$LINENO: result: no" >&5
8246 echo "${ECHO_T}no" >&6
8249 if test -z "$lt_cv_path_MAGIC_CMD"; then
8250 if test -n "$ac_tool_prefix"; then
8251 echo "$as_me:$LINENO: checking for file" >&5
8252 echo $ECHO_N "checking for file... $ECHO_C" >&6
8253 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8254 echo $ECHO_N "(cached) $ECHO_C" >&6
8258 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8261 lt_save_MAGIC_CMD="$MAGIC_CMD"
8262 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8263 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8264 for ac_dir in $ac_dummy; do
8266 test -z "$ac_dir" && ac_dir=.
8267 if test -f $ac_dir/file; then
8268 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8269 if test -n "$file_magic_test_file"; then
8270 case $deplibs_check_method in
8272 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8273 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8274 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8275 $EGREP "$file_magic_regex" > /dev/null; then
8280 *** Warning: the command libtool uses to detect shared libraries,
8281 *** $file_magic_cmd, produces output that libtool cannot recognize.
8282 *** The result is that libtool may fail to recognize shared libraries
8283 *** as such. This will affect the creation of libtool libraries that
8284 *** depend on shared libraries, but programs linked with such libtool
8285 *** libraries will work regardless of this problem. Nevertheless, you
8286 *** may want to report the problem to your system manager and/or to
8287 *** bug-libtool@gnu.org
8297 MAGIC_CMD="$lt_save_MAGIC_CMD"
8302 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8303 if test -n "$MAGIC_CMD"; then
8304 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8305 echo "${ECHO_T}$MAGIC_CMD" >&6
8307 echo "$as_me:$LINENO: result: no" >&5
8308 echo "${ECHO_T}no" >&6
8321 enable_win32_dll=yes
8323 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8324 if test "${enable_libtool_lock+set}" = set; then
8325 enableval="$enable_libtool_lock"
8328 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8331 # Check whether --with-pic or --without-pic was given.
8332 if test "${with_pic+set}" = set; then
8338 test -z "$pic_mode" && pic_mode=default
8340 # Use C for the default configuration in the libtool script
8344 ac_cpp='$CPP $CPPFLAGS'
8345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8350 # Source file extension for C test sources.
8353 # Object file extension for compiled C test sources.
8357 # Code to be used in simple compile tests
8358 lt_simple_compile_test_code="int some_variable = 0;\n"
8360 # Code to be used in simple link tests
8361 lt_simple_link_test_code='int main(){return(0);}\n'
8364 # If no C compiler was specified, use CC.
8367 # Allow CC to be a program name with arguments.
8371 # save warnings/boilerplate of simple test code
8372 ac_outfile=conftest.$ac_objext
8373 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8374 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8375 _lt_compiler_boilerplate=`cat conftest.err`
8378 ac_outfile=conftest.$ac_objext
8379 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8380 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8381 _lt_linker_boilerplate=`cat conftest.err`
8386 # Check for any special shared library compilation flags.
8389 if test "$GCC" = no; then
8392 lt_prog_cc_shlib='-belf'
8396 if test -n "$lt_prog_cc_shlib"; then
8397 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8398 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8399 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
8401 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8402 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8403 lt_cv_prog_cc_can_build_shared=no
8409 # Check to make sure the static flag actually works.
8411 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8412 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
8413 if test "${lt_prog_compiler_static_works+set}" = set; then
8414 echo $ECHO_N "(cached) $ECHO_C" >&6
8416 lt_prog_compiler_static_works=no
8417 save_LDFLAGS="$LDFLAGS"
8418 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8419 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8420 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8421 # The compiler can only warn and ignore the option if not recognized
8422 # So say no if there are warnings
8423 if test -s conftest.err; then
8424 # Append any errors to the config.log.
8425 cat conftest.err 1>&5
8426 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
8427 $SED '/^$/d' conftest.err >conftest.er2
8428 if diff conftest.exp conftest.er2 >/dev/null; then
8429 lt_prog_compiler_static_works=yes
8432 lt_prog_compiler_static_works=yes
8436 LDFLAGS="$save_LDFLAGS"
8439 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8440 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8442 if test x"$lt_prog_compiler_static_works" = xyes; then
8445 lt_prog_compiler_static=
8451 lt_prog_compiler_no_builtin_flag=
8453 if test "$GCC" = yes; then
8454 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8457 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8458 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8459 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8460 echo $ECHO_N "(cached) $ECHO_C" >&6
8462 lt_cv_prog_compiler_rtti_exceptions=no
8463 ac_outfile=conftest.$ac_objext
8464 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8465 lt_compiler_flag="-fno-rtti -fno-exceptions"
8466 # Insert the option either (1) after the last *FLAGS variable, or
8467 # (2) before a word containing "conftest.", or (3) at the end.
8468 # Note that $ac_compile itself does not contain backslashes and begins
8469 # with a dollar sign (not a hyphen), so the echo should work correctly.
8470 # The option is referenced via a variable to avoid confusing sed.
8471 lt_compile=`echo "$ac_compile" | $SED \
8472 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8473 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8474 -e 's:$: $lt_compiler_flag:'`
8475 (eval echo "\"\$as_me:8475: $lt_compile\"" >&5)
8476 (eval "$lt_compile" 2>conftest.err)
8478 cat conftest.err >&5
8479 echo "$as_me:8479: \$? = $ac_status" >&5
8480 if (exit $ac_status) && test -s "$ac_outfile"; then
8481 # The compiler can only warn and ignore the option if not recognized
8482 # So say no if there are warnings other than the usual output.
8483 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8484 $SED '/^$/d' conftest.err >conftest.er2
8485 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8486 lt_cv_prog_compiler_rtti_exceptions=yes
8492 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8493 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8495 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8496 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8503 lt_prog_compiler_wl=
8504 lt_prog_compiler_pic=
8505 lt_prog_compiler_static=
8507 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8508 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8510 if test "$GCC" = yes; then
8511 lt_prog_compiler_wl='-Wl,'
8512 lt_prog_compiler_static='-static'
8516 # All AIX code is PIC.
8517 if test "$host_cpu" = ia64; then
8518 # AIX 5 now supports IA64 processor
8519 lt_prog_compiler_static='-Bstatic'
8524 # FIXME: we need at least 68020 code to build shared libraries, but
8525 # adding the `-m68020' flag to GCC prevents building anything better,
8527 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8530 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8531 # PIC is the default for these OSes.
8534 mingw* | pw32* | os2*)
8535 # This hack is so that the source file can tell whether it is being
8536 # built for inclusion in a dll (and should export symbols for example).
8537 lt_prog_compiler_pic='-DDLL_EXPORT'
8540 darwin* | rhapsody*)
8541 # PIC is the default on this platform
8542 # Common symbols not allowed in MH_DYLIB files
8543 lt_prog_compiler_pic='-fno-common'
8547 # Just because we use GCC doesn't mean we suddenly get shared libraries
8548 # on systems that don't support them.
8549 lt_prog_compiler_can_build_shared=no
8554 if test -d /usr/nec; then
8555 lt_prog_compiler_pic=-Kconform_pic
8560 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8567 lt_prog_compiler_pic='-fPIC'
8573 lt_prog_compiler_pic='-fPIC'
8577 # PORTME Check for flag to pass linker flags through the system compiler.
8580 lt_prog_compiler_wl='-Wl,'
8581 if test "$host_cpu" = ia64; then
8582 # AIX 5 now supports IA64 processor
8583 lt_prog_compiler_static='-Bstatic'
8585 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8589 # PIC is the default on this platform
8590 # Common symbols not allowed in MH_DYLIB files
8591 case $cc_basename in
8593 lt_prog_compiler_pic='-qnocommon'
8594 lt_prog_compiler_wl='-Wl,'
8599 mingw* | pw32* | os2*)
8600 # This hack is so that the source file can tell whether it is being
8601 # built for inclusion in a dll (and should export symbols for example).
8602 lt_prog_compiler_pic='-DDLL_EXPORT'
8605 hpux9* | hpux10* | hpux11*)
8606 lt_prog_compiler_wl='-Wl,'
8607 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8614 lt_prog_compiler_pic='+Z'
8617 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8618 lt_prog_compiler_static='${wl}-a ${wl}archive'
8621 irix5* | irix6* | nonstopux*)
8622 lt_prog_compiler_wl='-Wl,'
8623 # PIC (with -KPIC) is the default.
8624 lt_prog_compiler_static='-non_shared'
8628 lt_prog_compiler_pic='-KPIC'
8629 lt_prog_compiler_static='-Bstatic'
8633 case $cc_basename in
8635 lt_prog_compiler_wl='-Wl,'
8636 lt_prog_compiler_pic='-KPIC'
8637 lt_prog_compiler_static='-static'
8639 pgcc* | pgf77* | pgf90*)
8640 # Portland Group compilers (*not* the Pentium gcc compiler,
8641 # which looks to be a dead project)
8642 lt_prog_compiler_wl='-Wl,'
8643 lt_prog_compiler_pic='-fpic'
8644 lt_prog_compiler_static='-static'
8647 lt_prog_compiler_wl='-Wl,'
8648 # All Alpha code is PIC.
8649 lt_prog_compiler_static='-non_shared'
8654 osf3* | osf4* | osf5*)
8655 lt_prog_compiler_wl='-Wl,'
8656 # All OSF/1 code is PIC.
8657 lt_prog_compiler_static='-non_shared'
8661 lt_prog_compiler_pic='-Kpic'
8662 lt_prog_compiler_static='-dn'
8666 lt_prog_compiler_pic='-KPIC'
8667 lt_prog_compiler_static='-Bstatic'
8668 case $cc_basename in
8670 lt_prog_compiler_wl='-Qoption ld ';;
8672 lt_prog_compiler_wl='-Wl,';;
8677 lt_prog_compiler_wl='-Qoption ld '
8678 lt_prog_compiler_pic='-PIC'
8679 lt_prog_compiler_static='-Bstatic'
8682 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8683 lt_prog_compiler_wl='-Wl,'
8684 lt_prog_compiler_pic='-KPIC'
8685 lt_prog_compiler_static='-Bstatic'
8689 if test -d /usr/nec ;then
8690 lt_prog_compiler_pic='-Kconform_pic'
8691 lt_prog_compiler_static='-Bstatic'
8696 lt_prog_compiler_wl='-Wl,'
8697 lt_prog_compiler_can_build_shared=no
8701 lt_prog_compiler_pic='-pic'
8702 lt_prog_compiler_static='-Bstatic'
8706 lt_prog_compiler_can_build_shared=no
8711 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8712 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8715 # Check to make sure the PIC flag actually works.
8717 if test -n "$lt_prog_compiler_pic"; then
8719 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8720 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8721 if test "${lt_prog_compiler_pic_works+set}" = set; then
8722 echo $ECHO_N "(cached) $ECHO_C" >&6
8724 lt_prog_compiler_pic_works=no
8725 ac_outfile=conftest.$ac_objext
8726 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8727 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8728 # Insert the option either (1) after the last *FLAGS variable, or
8729 # (2) before a word containing "conftest.", or (3) at the end.
8730 # Note that $ac_compile itself does not contain backslashes and begins
8731 # with a dollar sign (not a hyphen), so the echo should work correctly.
8732 # The option is referenced via a variable to avoid confusing sed.
8733 lt_compile=`echo "$ac_compile" | $SED \
8734 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8735 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8736 -e 's:$: $lt_compiler_flag:'`
8737 (eval echo "\"\$as_me:8737: $lt_compile\"" >&5)
8738 (eval "$lt_compile" 2>conftest.err)
8740 cat conftest.err >&5
8741 echo "$as_me:8741: \$? = $ac_status" >&5
8742 if (exit $ac_status) && test -s "$ac_outfile"; then
8743 # The compiler can only warn and ignore the option if not recognized
8744 # So say no if there are warnings other than the usual output.
8745 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8746 $SED '/^$/d' conftest.err >conftest.er2
8747 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8748 lt_prog_compiler_pic_works=yes
8754 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8755 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8757 if test x"$lt_prog_compiler_pic_works" = xyes; then
8758 case $lt_prog_compiler_pic in
8760 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8763 lt_prog_compiler_pic=
8764 lt_prog_compiler_can_build_shared=no
8769 # For platforms which do not support PIC, -DPIC is meaningless:
8771 lt_prog_compiler_pic=
8774 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8778 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8779 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8780 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8781 echo $ECHO_N "(cached) $ECHO_C" >&6
8783 lt_cv_prog_compiler_c_o=no
8784 $rm -r conftest 2>/dev/null
8788 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8790 lt_compiler_flag="-o out/conftest2.$ac_objext"
8791 # Insert the option either (1) after the last *FLAGS variable, or
8792 # (2) before a word containing "conftest.", or (3) at the end.
8793 # Note that $ac_compile itself does not contain backslashes and begins
8794 # with a dollar sign (not a hyphen), so the echo should work correctly.
8795 lt_compile=`echo "$ac_compile" | $SED \
8796 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8797 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8798 -e 's:$: $lt_compiler_flag:'`
8799 (eval echo "\"\$as_me:8799: $lt_compile\"" >&5)
8800 (eval "$lt_compile" 2>out/conftest.err)
8802 cat out/conftest.err >&5
8803 echo "$as_me:8803: \$? = $ac_status" >&5
8804 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8806 # The compiler can only warn and ignore the option if not recognized
8807 # So say no if there are warnings
8808 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8809 $SED '/^$/d' out/conftest.err >out/conftest.er2
8810 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8811 lt_cv_prog_compiler_c_o=yes
8816 # SGI C++ compiler will create directory out/ii_files/ for
8817 # template instantiation
8818 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8819 $rm out/* && rmdir out
8825 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8826 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8829 hard_links="nottested"
8830 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8831 # do not overwrite the value of need_locks provided by the user
8832 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8833 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8836 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8838 ln conftest.a conftest.b 2>&5 || hard_links=no
8839 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8840 echo "$as_me:$LINENO: result: $hard_links" >&5
8841 echo "${ECHO_T}$hard_links" >&6
8842 if test "$hard_links" = no; then
8843 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8844 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8851 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8852 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8855 allow_undefined_flag=
8856 enable_shared_with_static_runtimes=no
8858 archive_expsym_cmds=
8859 old_archive_From_new_cmds=
8860 old_archive_from_expsyms_cmds=
8861 export_dynamic_flag_spec=
8862 whole_archive_flag_spec=
8863 thread_safe_flag_spec=
8864 hardcode_libdir_flag_spec=
8865 hardcode_libdir_flag_spec_ld=
8866 hardcode_libdir_separator=
8869 hardcode_shlibpath_var=unsupported
8870 link_all_deplibs=unknown
8871 hardcode_automatic=no
8874 always_export_symbols=no
8875 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8876 # include_expsyms should be a list of space-separated symbols to be *always*
8877 # included in the symbol list
8879 # exclude_expsyms can be an extended regexp of symbols to exclude
8880 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8881 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8882 # as well as any symbol that contains `d'.
8883 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8884 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8885 # platforms (ab)use it in PIC code, but their linkers get confused if
8886 # the symbol is explicitly referenced. Since portable code cannot
8887 # rely on this symbol name, it's probably fine to never include it in
8888 # preloaded symbol tables.
8889 extract_expsyms_cmds=
8890 # Just being paranoid about ensuring that cc_basename is set.
8891 for cc_temp in $compiler""; do
8893 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8894 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8899 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8902 cygwin* | mingw* | pw32*)
8903 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8904 # When not using gcc, we currently assume that we are using
8905 # Microsoft Visual C++.
8906 if test "$GCC" != yes; then
8916 if test "$with_gnu_ld" = yes; then
8917 # If archive_cmds runs LD, not CC, wlarc should be empty
8920 # Set some defaults for GNU ld with shared library support. These
8921 # are reset later if shared libraries are not supported. Putting them
8922 # here allows them to be overridden if necessary.
8923 runpath_var=LD_RUN_PATH
8924 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8925 export_dynamic_flag_spec='${wl}--export-dynamic'
8926 # ancient GNU ld didn't support --whole-archive et. al.
8927 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8928 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8930 whole_archive_flag_spec=
8932 supports_anon_versioning=no
8933 case `$LD -v 2>/dev/null` in
8934 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8935 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8936 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8937 *\ 2.11.*) ;; # other 2.11 versions
8938 *) supports_anon_versioning=yes ;;
8941 # See if GNU ld supports shared libraries.
8943 aix3* | aix4* | aix5*)
8944 # On AIX/PPC, the GNU linker is very broken
8945 if test "$host_cpu" != ia64; then
8949 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8950 *** to be unable to reliably create shared libraries on AIX.
8951 *** Therefore, libtool is disabling shared libraries support. If you
8952 *** really care for shared libraries, you may want to modify your PATH
8953 *** so that a non-GNU linker is found, and then restart.
8960 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)'
8961 hardcode_libdir_flag_spec='-L$libdir'
8962 hardcode_minus_L=yes
8964 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8965 # that the semantics of dynamic libraries on AmigaOS, at least up
8966 # to version 4, is to share data among multiple programs linked
8967 # with the same dynamic library. Since this doesn't match the
8968 # behavior of shared libraries on other platforms, we can't use
8974 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8975 allow_undefined_flag=unsupported
8976 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8977 # support --undefined. This deserves some investigation. FIXME
8978 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8984 cygwin* | mingw* | pw32*)
8985 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8986 # as there is no search path for DLLs.
8987 hardcode_libdir_flag_spec='-L$libdir'
8988 allow_undefined_flag=unsupported
8989 always_export_symbols=no
8990 enable_shared_with_static_runtimes=yes
8991 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8993 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8994 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8995 # If the export-symbols file already is a .def file (1st line
8996 # is EXPORTS), use it as is; otherwise, prepend...
8997 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8998 cp $export_symbols $output_objdir/$soname.def;
9000 echo EXPORTS > $output_objdir/$soname.def;
9001 cat $export_symbols >> $output_objdir/$soname.def;
9003 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9010 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9012 case $cc_basename,$host_cpu in
9013 pgcc*) # Portland Group C compiler
9014 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'
9015 tmp_addflag=' $pic_flag'
9017 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
9018 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'
9019 tmp_addflag=' $pic_flag -Mnomain' ;;
9020 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9021 tmp_addflag=' -i_dynamic' ;;
9022 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9023 tmp_addflag=' -i_dynamic -nofor_main' ;;
9024 ifc* | ifort*) # Intel Fortran compiler
9025 tmp_addflag=' -nofor_main' ;;
9027 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9029 if test $supports_anon_versioning = yes; then
9030 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9031 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9032 $echo "local: *; };" >> $output_objdir/$libname.ver~
9033 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9041 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9042 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9045 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9046 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9051 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9055 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9056 *** create shared libraries on Solaris systems. Therefore, libtool
9057 *** is disabling shared libraries support. We urge you to upgrade GNU
9058 *** binutils to release 2.9.1 or newer. Another option is to modify
9059 *** your PATH or compiler configuration so that the native linker is
9060 *** used, and then restart.
9063 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9064 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9065 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9072 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9075 hardcode_shlibpath_var=no
9079 if $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 if test "$ld_shlibs" = no; then
9090 hardcode_libdir_flag_spec=
9091 export_dynamic_flag_spec=
9092 whole_archive_flag_spec=
9095 # PORTME fill in a description of your system's linker (not GNU ld)
9098 allow_undefined_flag=unsupported
9099 always_export_symbols=yes
9100 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'
9101 # Note: this linker hardcodes the directories in LIBPATH if there
9102 # are no directories specified by -L.
9103 hardcode_minus_L=yes
9104 if test "$GCC" = yes && test -z "$link_static_flag"; then
9105 # Neither direct hardcoding nor static linking is supported with a
9107 hardcode_direct=unsupported
9112 if test "$host_cpu" = ia64; then
9113 # On IA64, the linker does run time linking by default, so we don't
9114 # have to do anything special.
9115 aix_use_runtimelinking=no
9116 exp_sym_flag='-Bexport'
9119 # If we're using GNU nm, then we don't want the "-C" option.
9120 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9121 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9122 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'
9124 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'
9126 aix_use_runtimelinking=no
9128 # Test if we are trying to use run time linking or normal
9129 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9130 # need to do runtime linking.
9131 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9132 for ld_flag in $LDFLAGS; do
9133 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9134 aix_use_runtimelinking=yes
9140 exp_sym_flag='-bexport'
9141 no_entry_flag='-bnoentry'
9144 # When large executables or shared objects are built, AIX ld can
9145 # have problems creating the table of contents. If linking a library
9146 # or program results in "error TOC overflow" add -mminimal-toc to
9147 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9148 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9152 hardcode_libdir_separator=':'
9153 link_all_deplibs=yes
9155 if test "$GCC" = yes; then
9156 case $host_os in aix4.[012]|aix4.[012].*)
9157 # We only want to do this on AIX 4.2 and lower, the check
9158 # below for broken collect2 doesn't work under 4.3+
9159 collect2name=`${CC} -print-prog-name=collect2`
9160 if test -f "$collect2name" && \
9161 strings "$collect2name" | grep resolve_lib_name >/dev/null
9163 # We have reworked collect2
9166 # We have old collect2
9167 hardcode_direct=unsupported
9168 # It fails to find uninstalled libraries when the uninstalled
9169 # path is not listed in the libpath. Setting hardcode_minus_L
9170 # to unsupported forces relinking
9171 hardcode_minus_L=yes
9172 hardcode_libdir_flag_spec='-L$libdir'
9173 hardcode_libdir_separator=
9176 shared_flag='-shared'
9177 if test "$aix_use_runtimelinking" = yes; then
9178 shared_flag="$shared_flag "'${wl}-G'
9182 if test "$host_cpu" = ia64; then
9183 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9184 # chokes on -Wl,-G. The following line is correct:
9187 if test "$aix_use_runtimelinking" = yes; then
9188 shared_flag='${wl}-G'
9190 shared_flag='${wl}-bM:SRE'
9195 # It seems that -bexpall does not export symbols beginning with
9196 # underscore (_), so it is better to generate a list of symbols to export.
9197 always_export_symbols=yes
9198 if test "$aix_use_runtimelinking" = yes; then
9199 # Warning - without using the other runtime loading flags (-brtl),
9200 # -berok will link without error, but may produce a broken library.
9201 allow_undefined_flag='-berok'
9202 # Determine the default libpath from the value encoded in an empty executable.
9203 cat >conftest.$ac_ext <<_ACEOF
9206 cat confdefs.h >>conftest.$ac_ext
9207 cat >>conftest.$ac_ext <<_ACEOF
9208 /* end confdefs.h. */
9218 rm -f conftest.$ac_objext conftest$ac_exeext
9219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9220 (eval $ac_link) 2>conftest.er1
9222 grep -v '^ *+' conftest.er1 >conftest.err
9224 cat conftest.err >&5
9225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226 (exit $ac_status); } &&
9227 { ac_try='test -z "$ac_c_werror_flag"
9228 || test ! -s conftest.err'
9229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9233 (exit $ac_status); }; } &&
9234 { ac_try='test -s conftest$ac_exeext'
9235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); }; }; then
9241 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9243 # Check for a 64-bit object if we didn't find anything.
9244 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; }
9247 echo "$as_me: failed program was:" >&5
9248 sed 's/^/| /' conftest.$ac_ext >&5
9251 rm -f conftest.err conftest.$ac_objext \
9252 conftest$ac_exeext conftest.$ac_ext
9253 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9255 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9256 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"
9258 if test "$host_cpu" = ia64; then
9259 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9260 allow_undefined_flag="-z nodefs"
9261 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"
9263 # Determine the default libpath from the value encoded in an empty executable.
9264 cat >conftest.$ac_ext <<_ACEOF
9267 cat confdefs.h >>conftest.$ac_ext
9268 cat >>conftest.$ac_ext <<_ACEOF
9269 /* end confdefs.h. */
9279 rm -f conftest.$ac_objext conftest$ac_exeext
9280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9281 (eval $ac_link) 2>conftest.er1
9283 grep -v '^ *+' conftest.er1 >conftest.err
9285 cat conftest.err >&5
9286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287 (exit $ac_status); } &&
9288 { ac_try='test -z "$ac_c_werror_flag"
9289 || test ! -s conftest.err'
9290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 (exit $ac_status); }; } &&
9295 { ac_try='test -s conftest$ac_exeext'
9296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300 (exit $ac_status); }; }; then
9302 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9304 # Check for a 64-bit object if we didn't find anything.
9305 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; }
9308 echo "$as_me: failed program was:" >&5
9309 sed 's/^/| /' conftest.$ac_ext >&5
9312 rm -f conftest.err conftest.$ac_objext \
9313 conftest$ac_exeext conftest.$ac_ext
9314 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9316 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9317 # Warning - without using the other run time loading flags,
9318 # -berok will link without error, but may produce a broken library.
9319 no_undefined_flag=' ${wl}-bernotok'
9320 allow_undefined_flag=' ${wl}-berok'
9321 # -bexpall does not export symbols beginning with underscore (_)
9322 always_export_symbols=yes
9323 # Exported symbols can be pulled into shared objects from archives
9324 whole_archive_flag_spec=' '
9325 archive_cmds_need_lc=yes
9326 # This is similar to how AIX traditionally builds it's shared libraries.
9327 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'
9333 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)'
9334 hardcode_libdir_flag_spec='-L$libdir'
9335 hardcode_minus_L=yes
9336 # see comment about different semantics on the GNU ld section
9341 export_dynamic_flag_spec=-rdynamic
9344 cygwin* | mingw* | pw32*)
9345 # When not using gcc, we currently assume that we are using
9346 # Microsoft Visual C++.
9347 # hardcode_libdir_flag_spec is actually meaningless, as there is
9348 # no search path for DLLs.
9349 hardcode_libdir_flag_spec=' '
9350 allow_undefined_flag=unsupported
9351 # Tell ltmain to make .lib files, not .a files.
9353 # Tell ltmain to make .dll files, not .so files.
9355 # FIXME: Setting linknames here is a bad hack.
9356 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9357 # The linker will automatically build a .lib file if we build a DLL.
9358 old_archive_From_new_cmds='true'
9359 # FIXME: Should let the user specify the lib program.
9360 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9361 fix_srcfile_path='`cygpath -w "$srcfile"`'
9362 enable_shared_with_static_runtimes=yes
9365 darwin* | rhapsody*)
9367 rhapsody* | darwin1.[012])
9368 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9371 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9372 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9374 case ${MACOSX_DEPLOYMENT_TARGET} in
9376 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9379 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9385 archive_cmds_need_lc=no
9387 hardcode_automatic=yes
9388 hardcode_shlibpath_var=unsupported
9389 whole_archive_flag_spec=''
9390 link_all_deplibs=yes
9391 if test "$GCC" = yes ; then
9392 output_verbose_link_cmd='echo'
9393 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9394 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9395 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9396 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}'
9397 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}'
9399 case $cc_basename in
9401 output_verbose_link_cmd='echo'
9402 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9403 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9404 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9405 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}'
9406 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}'
9416 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9417 hardcode_libdir_flag_spec='-L$libdir'
9418 hardcode_shlibpath_var=no
9425 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9426 # support. Future versions do this automatically, but an explicit c++rt0.o
9427 # does not break anything, and helps significantly (at the cost of a little
9430 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9431 hardcode_libdir_flag_spec='-R$libdir'
9433 hardcode_shlibpath_var=no
9436 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9438 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9440 hardcode_minus_L=yes
9441 hardcode_shlibpath_var=no
9444 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9445 freebsd* | kfreebsd*-gnu | dragonfly*)
9446 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9447 hardcode_libdir_flag_spec='-R$libdir'
9449 hardcode_shlibpath_var=no
9453 if test "$GCC" = yes; then
9454 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'
9456 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'
9458 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9459 hardcode_libdir_separator=:
9462 # hardcode_minus_L: Not really in the search PATH,
9463 # but as the default location of the library.
9464 hardcode_minus_L=yes
9465 export_dynamic_flag_spec='${wl}-E'
9469 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9472 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9475 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9481 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9484 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9488 if test "$with_gnu_ld" = no; then
9491 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9492 hardcode_libdir_flag_spec_ld='+b $libdir'
9493 hardcode_libdir_separator=:
9495 hardcode_shlibpath_var=no
9498 hardcode_libdir_flag_spec='-L$libdir'
9500 hardcode_shlibpath_var=no
9502 # hardcode_minus_L: Not really in the search PATH,
9503 # but as the default location of the library.
9504 hardcode_minus_L=yes
9507 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9508 hardcode_libdir_separator=:
9510 export_dynamic_flag_spec='${wl}-E'
9512 # hardcode_minus_L: Not really in the search PATH,
9513 # but as the default location of the library.
9514 hardcode_minus_L=yes
9520 irix5* | irix6* | nonstopux*)
9521 if test "$GCC" = yes; then
9522 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'
9524 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'
9525 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9527 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9528 hardcode_libdir_separator=:
9529 link_all_deplibs=yes
9533 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9534 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9536 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9538 hardcode_libdir_flag_spec='-R$libdir'
9540 hardcode_shlibpath_var=no
9544 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9546 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9547 hardcode_libdir_separator=:
9548 hardcode_shlibpath_var=no
9553 hardcode_shlibpath_var=no
9554 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9555 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9556 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9557 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9558 export_dynamic_flag_spec='${wl}-E'
9561 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9562 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9563 hardcode_libdir_flag_spec='-R$libdir'
9566 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9567 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9574 hardcode_libdir_flag_spec='-L$libdir'
9575 hardcode_minus_L=yes
9576 allow_undefined_flag=unsupported
9577 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'
9578 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9582 if test "$GCC" = yes; then
9583 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9584 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'
9586 allow_undefined_flag=' -expect_unresolved \*'
9587 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'
9589 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9590 hardcode_libdir_separator=:
9593 osf4* | osf5*) # as osf3* with the addition of -msym flag
9594 if test "$GCC" = yes; then
9595 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9596 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'
9597 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9599 allow_undefined_flag=' -expect_unresolved \*'
9600 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'
9601 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9602 $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'
9604 # Both c and cxx compiler support -rpath directly
9605 hardcode_libdir_flag_spec='-rpath $libdir'
9607 hardcode_libdir_separator=:
9611 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9612 hardcode_shlibpath_var=no
9613 export_dynamic_flag_spec='${wl}-Bexport'
9614 runpath_var=LD_RUN_PATH
9615 hardcode_runpath_var=yes
9619 no_undefined_flag=' -z text'
9620 if test "$GCC" = yes; then
9622 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9623 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9624 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9627 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9628 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9629 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9631 hardcode_libdir_flag_spec='-R$libdir'
9632 hardcode_shlibpath_var=no
9634 solaris2.[0-5] | solaris2.[0-5].*) ;;
9636 # The compiler driver will combine linker options so we
9637 # cannot just pass the convience library names through
9638 # without $wl, iff we do not link with $LD.
9639 # Luckily, gcc supports the same syntax we need for Sun Studio.
9640 # Supported since Solaris 2.6 (maybe 2.5.1?)
9643 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9645 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' ;;
9648 link_all_deplibs=yes
9652 if test "x$host_vendor" = xsequent; then
9653 # Use $CC to link under sequent, because it throws in some extra .o
9654 # files that make .init and .fini sections work.
9655 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9657 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9659 hardcode_libdir_flag_spec='-L$libdir'
9661 hardcode_minus_L=yes
9662 hardcode_shlibpath_var=no
9666 case $host_vendor in
9668 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9669 hardcode_direct=yes # is this really true???
9672 ## LD is ld it makes a PLAMLIB
9673 ## CC just makes a GrossModule.
9674 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9675 reload_cmds='$CC -r -o $output$reload_objs'
9679 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9680 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9683 runpath_var='LD_RUN_PATH'
9684 hardcode_shlibpath_var=no
9688 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9689 hardcode_shlibpath_var=no
9690 export_dynamic_flag_spec='-Bexport'
9694 if test -d /usr/nec; then
9695 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9696 hardcode_shlibpath_var=no
9697 runpath_var=LD_RUN_PATH
9698 hardcode_runpath_var=yes
9704 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9707 hardcode_shlibpath_var=no
9708 hardcode_runpath_var=yes
9709 runpath_var=LD_RUN_PATH
9712 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9713 no_undefined_flag='${wl}-z ${wl}text'
9714 if test "$GCC" = yes; then
9715 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9717 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9719 runpath_var='LD_RUN_PATH'
9720 hardcode_shlibpath_var=no
9724 no_undefined_flag=' -z text'
9725 # $CC -shared without GNU ld will not create a library from C++
9726 # object files and a static libstdc++, better avoid it by now
9727 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9728 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9729 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9730 hardcode_libdir_flag_spec=
9731 hardcode_shlibpath_var=no
9732 runpath_var='LD_RUN_PATH'
9736 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9737 hardcode_libdir_flag_spec='-L$libdir'
9738 hardcode_shlibpath_var=no
9747 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9748 echo "${ECHO_T}$ld_shlibs" >&6
9749 test "$ld_shlibs" = no && can_build_shared=no
9751 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9752 if test "$GCC" = yes; then
9753 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9757 # Do we need to explicitly link libc?
9759 case "x$archive_cmds_need_lc" in
9761 # Assume -lc should be added
9762 archive_cmds_need_lc=yes
9764 if test "$enable_shared" = yes && test "$GCC" = yes; then
9765 case $archive_cmds in
9767 # FIXME: we may have to deal with multi-command sequences.
9770 # Test whether the compiler implicitly links with -lc since on some
9771 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9772 # to ld, don't add -lc before -lgcc.
9773 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9774 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9776 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9779 (eval $ac_compile) 2>&5
9781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782 (exit $ac_status); } 2>conftest.err; then
9785 libobjs=conftest.$ac_objext
9787 wl=$lt_prog_compiler_wl
9793 lt_save_allow_undefined_flag=$allow_undefined_flag
9794 allow_undefined_flag=
9795 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9796 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799 (exit $ac_status); }
9801 archive_cmds_need_lc=no
9803 archive_cmds_need_lc=yes
9805 allow_undefined_flag=$lt_save_allow_undefined_flag
9807 cat conftest.err 1>&5
9810 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9811 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9818 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9819 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9821 libname_spec='lib$name'
9829 shlibpath_overrides_runpath=unknown
9831 dynamic_linker="$host_os ld.so"
9832 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9833 if test "$GCC" = yes; then
9834 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9835 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9836 # if the path contains ";" then we assume it to be the separator
9837 # otherwise default to the standard path separator (i.e. ":") - it is
9838 # assumed that no part of a normal pathname contains ";" but that should
9839 # okay in the real world where ";" in dirpaths is itself problematic.
9840 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9842 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9845 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9847 need_lib_prefix=unknown
9848 hardcode_into_libs=no
9850 # when you set need_version to no, make sure it does not cause -set_version
9851 # flags to be left without arguments
9852 need_version=unknown
9857 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9858 shlibpath_var=LIBPATH
9860 # AIX 3 has no versioning support, so we append a major version to the name.
9861 soname_spec='${libname}${release}${shared_ext}$major'
9868 hardcode_into_libs=yes
9869 if test "$host_cpu" = ia64; then
9870 # AIX 5 supports IA64
9871 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9872 shlibpath_var=LD_LIBRARY_PATH
9874 # With GCC up to 2.95.x, collect2 would create an import file
9875 # for dependence libraries. The import file would start with
9876 # the line `#! .'. This would cause the generated library to
9877 # depend on `.', always an invalid library. This was fixed in
9878 # development snapshots of GCC prior to 3.0.
9880 aix4 | aix4.[01] | aix4.[01].*)
9881 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9883 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9890 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9891 # soname into executable. Probably we can add versioning support to
9892 # collect2, so additional links can be useful in future.
9893 if test "$aix_use_runtimelinking" = yes; then
9894 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9895 # instead of lib<name>.a to let people know that these are not
9896 # typical AIX shared libraries.
9897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9899 # We preserve .a as extension for shared libraries through AIX4.2
9900 # and later when we are not doing run time linking.
9901 library_names_spec='${libname}${release}.a $libname.a'
9902 soname_spec='${libname}${release}${shared_ext}$major'
9904 shlibpath_var=LIBPATH
9909 library_names_spec='$libname.ixlibrary $libname.a'
9910 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9911 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'
9915 library_names_spec='${libname}${shared_ext}'
9916 dynamic_linker="$host_os ld.so"
9917 shlibpath_var=LIBRARY_PATH
9923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9924 soname_spec='${libname}${release}${shared_ext}$major'
9925 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9926 shlibpath_var=LD_LIBRARY_PATH
9927 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9928 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9929 # the default ld.so.conf also contains /usr/contrib/lib and
9930 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9931 # libtool to hard-code these into programs
9934 cygwin* | mingw* | pw32*)
9935 version_type=windows
9940 case $GCC,$host_os in
9941 yes,cygwin* | yes,mingw* | yes,pw32*)
9942 library_names_spec='$libname.dll.a'
9943 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9944 postinstall_cmds='base_file=`basename \${file}`~
9945 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9946 dldir=$destdir/`dirname \$dlpath`~
9947 test -d \$dldir || mkdir -p \$dldir~
9948 $install_prog $dir/$dlname \$dldir/$dlname'
9949 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9950 dlpath=$dir/\$dldll~
9952 shlibpath_overrides_runpath=yes
9956 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9957 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9958 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9961 # MinGW DLLs use traditional 'lib' prefix
9962 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9963 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9964 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9965 # It is most probably a Windows format PATH printed by
9966 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9967 # path with ; separators, and with drive letters. We can handle the
9968 # drive letters (cygwin fileutils understands them), so leave them,
9969 # especially as we might pass files found there to a mingw objdump,
9970 # which wouldn't understand a cygwinified path. Ahh.
9971 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9973 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9977 # pw32 DLLs use 'pw' prefix rather than 'lib'
9978 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9984 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9987 dynamic_linker='Win32 ld.exe'
9988 # FIXME: first we should search . and the directory the executable is in
9992 darwin* | rhapsody*)
9993 dynamic_linker="$host_os dyld"
9997 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9998 soname_spec='${libname}${release}${major}$shared_ext'
9999 shlibpath_overrides_runpath=yes
10000 shlibpath_var=DYLD_LIBRARY_PATH
10001 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
10002 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10003 if test "$GCC" = yes; then
10004 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"`
10006 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10008 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10016 soname_spec='${libname}${release}${shared_ext}$major'
10017 shlibpath_var=LD_LIBRARY_PATH
10028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10029 soname_spec='${libname}${release}${shared_ext}$major'
10030 shlibpath_var=LD_LIBRARY_PATH
10031 shlibpath_overrides_runpath=no
10032 hardcode_into_libs=yes
10033 dynamic_linker='GNU ld.so'
10036 freebsd* | dragonfly*)
10037 # DragonFly does not have aout. When/if they implement a new
10038 # versioning mechanism, adjust this.
10039 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10040 version_type=freebsd-$objformat
10041 case $version_type in
10043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10048 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10052 shlibpath_var=LD_LIBRARY_PATH
10055 shlibpath_overrides_runpath=yes
10057 freebsd3.[01]* | freebsdelf3.[01]*)
10058 shlibpath_overrides_runpath=yes
10059 hardcode_into_libs=yes
10062 shlibpath_overrides_runpath=no
10063 hardcode_into_libs=yes
10072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10073 soname_spec='${libname}${release}${shared_ext}$major'
10074 shlibpath_var=LD_LIBRARY_PATH
10075 hardcode_into_libs=yes
10078 hpux9* | hpux10* | hpux11*)
10079 # Give a soname corresponding to the major version so that dld.sl refuses to
10080 # link against other versions.
10084 case "$host_cpu" in
10087 hardcode_into_libs=yes
10088 dynamic_linker="$host_os dld.so"
10089 shlibpath_var=LD_LIBRARY_PATH
10090 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10092 soname_spec='${libname}${release}${shared_ext}$major'
10093 if test "X$HPUX_IA64_MODE" = X32; then
10094 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10096 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10098 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10102 hardcode_into_libs=yes
10103 dynamic_linker="$host_os dld.sl"
10104 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10105 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10107 soname_spec='${libname}${release}${shared_ext}$major'
10108 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10109 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10113 dynamic_linker="$host_os dld.sl"
10114 shlibpath_var=SHLIB_PATH
10115 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10117 soname_spec='${libname}${release}${shared_ext}$major'
10120 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10121 postinstall_cmds='chmod 555 $lib'
10124 irix5* | irix6* | nonstopux*)
10126 nonstopux*) version_type=nonstopux ;;
10128 if test "$lt_cv_prog_gnu_ld" = yes; then
10136 soname_spec='${libname}${release}${shared_ext}$major'
10137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10139 irix5* | nonstopux*)
10140 libsuff= shlibsuff=
10143 case $LD in # libtool.m4 will add one of these switches to LD
10144 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10145 libsuff= shlibsuff= libmagic=32-bit;;
10146 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10147 libsuff=32 shlibsuff=N32 libmagic=N32;;
10148 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10149 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10150 *) libsuff= shlibsuff= libmagic=never-match;;
10154 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10155 shlibpath_overrides_runpath=no
10156 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10157 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10158 hardcode_into_libs=yes
10161 # No shared lib support for Linux oldld, aout, or coff.
10162 linux*oldld* | linux*aout* | linux*coff*)
10166 # This must be Linux ELF.
10171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10172 soname_spec='${libname}${release}${shared_ext}$major'
10173 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10174 shlibpath_var=LD_LIBRARY_PATH
10175 shlibpath_overrides_runpath=no
10176 # This implies no fast_install, which is unacceptable.
10177 # Some rework will be needed to allow for fast_install
10178 # before this can be enabled.
10179 hardcode_into_libs=yes
10181 # Append ld.so.conf contents to the search path
10182 if test -f /etc/ld.so.conf; then
10183 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' ' '`
10184 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10187 # We used to test for /lib/ld.so.1 and disable shared libraries on
10188 # powerpc, because MkLinux only supported shared libraries with the
10189 # GNU dynamic linker. Since this was broken with cross compilers,
10190 # most powerpc-linux boxes support dynamic linking these days and
10191 # people can always --disable-shared, the test was removed, and we
10192 # assume the GNU/Linux dynamic linker is in use.
10193 dynamic_linker='GNU/Linux ld.so'
10200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10201 soname_spec='${libname}${release}${shared_ext}$major'
10202 shlibpath_var=LD_LIBRARY_PATH
10203 shlibpath_overrides_runpath=no
10204 hardcode_into_libs=yes
10205 dynamic_linker='GNU ld.so'
10212 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10214 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10215 dynamic_linker='NetBSD (a.out) ld.so'
10217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10218 soname_spec='${libname}${release}${shared_ext}$major'
10219 dynamic_linker='NetBSD ld.elf_so'
10221 shlibpath_var=LD_LIBRARY_PATH
10222 shlibpath_overrides_runpath=yes
10223 hardcode_into_libs=yes
10228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10229 shlibpath_var=LD_LIBRARY_PATH
10230 shlibpath_overrides_runpath=yes
10237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10238 soname_spec='${libname}${release}${shared_ext}$major'
10239 shlibpath_var=LD_LIBRARY_PATH
10240 shlibpath_overrides_runpath=yes
10246 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10248 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10249 *) need_version=no ;;
10251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10252 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10253 shlibpath_var=LD_LIBRARY_PATH
10254 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10256 openbsd2.[89] | openbsd2.[89].*)
10257 shlibpath_overrides_runpath=no
10260 shlibpath_overrides_runpath=yes
10264 shlibpath_overrides_runpath=yes
10269 libname_spec='$name'
10272 library_names_spec='$libname${shared_ext} $libname.a'
10273 dynamic_linker='OS/2 ld.exe'
10274 shlibpath_var=LIBPATH
10277 osf3* | osf4* | osf5*)
10281 soname_spec='${libname}${release}${shared_ext}$major'
10282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10283 shlibpath_var=LD_LIBRARY_PATH
10284 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10285 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10290 soname_spec='${libname}${release}${shared_ext}$major'
10291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10292 shlibpath_var=LD_LIBRARY_PATH
10299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10300 soname_spec='${libname}${release}${shared_ext}$major'
10301 shlibpath_var=LD_LIBRARY_PATH
10302 shlibpath_overrides_runpath=yes
10303 hardcode_into_libs=yes
10304 # ldd complains unless libraries are executable
10305 postinstall_cmds='chmod +x $lib'
10310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10311 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10312 shlibpath_var=LD_LIBRARY_PATH
10313 shlibpath_overrides_runpath=yes
10314 if test "$with_gnu_ld" = yes; then
10320 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10323 soname_spec='${libname}${release}${shared_ext}$major'
10324 shlibpath_var=LD_LIBRARY_PATH
10325 case $host_vendor in
10327 shlibpath_overrides_runpath=no
10329 export_dynamic_flag_spec='${wl}-Blargedynsym'
10330 runpath_var=LD_RUN_PATH
10338 shlibpath_overrides_runpath=no
10339 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10345 if test -d /usr/nec ;then
10347 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10348 soname_spec='$libname${shared_ext}.$major'
10349 shlibpath_var=LD_LIBRARY_PATH
10355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10356 soname_spec='${libname}${release}${shared_ext}$major'
10357 shlibpath_var=LD_LIBRARY_PATH
10364 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10365 echo "${ECHO_T}$dynamic_linker" >&6
10366 test "$dynamic_linker" = no && can_build_shared=no
10368 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10369 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10371 if test -n "$hardcode_libdir_flag_spec" || \
10372 test -n "$runpath_var" || \
10373 test "X$hardcode_automatic" = "Xyes" ; then
10375 # We can hardcode non-existant directories.
10376 if test "$hardcode_direct" != no &&
10377 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10378 # have to relink, otherwise we might link with an installed library
10379 # when we should be linking with a yet-to-be-installed one
10380 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10381 test "$hardcode_minus_L" != no; then
10382 # Linking always hardcodes the temporary library directory.
10383 hardcode_action=relink
10385 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10386 hardcode_action=immediate
10389 # We cannot hardcode anything, or else we can only hardcode existing
10391 hardcode_action=unsupported
10393 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10394 echo "${ECHO_T}$hardcode_action" >&6
10396 if test "$hardcode_action" = relink; then
10397 # Fast installation is not supported
10398 enable_fast_install=no
10399 elif test "$shlibpath_overrides_runpath" = yes ||
10400 test "$enable_shared" = no; then
10401 # Fast installation is not necessary
10402 enable_fast_install=needless
10407 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10408 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10409 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10410 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10411 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10412 echo "$as_me:$LINENO: result: yes" >&5
10413 echo "${ECHO_T}yes" >&6
10415 # FIXME - insert some real tests, host_os isn't really good enough
10418 if test -n "$STRIP" ; then
10419 striplib="$STRIP -x"
10420 echo "$as_me:$LINENO: result: yes" >&5
10421 echo "${ECHO_T}yes" >&6
10423 echo "$as_me:$LINENO: result: no" >&5
10424 echo "${ECHO_T}no" >&6
10428 echo "$as_me:$LINENO: result: no" >&5
10429 echo "${ECHO_T}no" >&6
10434 if test "x$enable_dlopen" != xyes; then
10435 enable_dlopen=unknown
10436 enable_dlopen_self=unknown
10437 enable_dlopen_self_static=unknown
10444 lt_cv_dlopen="load_add_on"
10446 lt_cv_dlopen_self=yes
10450 lt_cv_dlopen="LoadLibrary"
10455 lt_cv_dlopen="dlopen"
10460 # if libdl is installed we need to link against it
10461 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10462 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10463 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10464 echo $ECHO_N "(cached) $ECHO_C" >&6
10466 ac_check_lib_save_LIBS=$LIBS
10468 cat >conftest.$ac_ext <<_ACEOF
10471 cat confdefs.h >>conftest.$ac_ext
10472 cat >>conftest.$ac_ext <<_ACEOF
10473 /* end confdefs.h. */
10475 /* Override any gcc2 internal prototype to avoid an error. */
10479 /* We use char because int might match the return type of a gcc2
10480 builtin and then its argument prototype would still apply. */
10490 rm -f conftest.$ac_objext conftest$ac_exeext
10491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10492 (eval $ac_link) 2>conftest.er1
10494 grep -v '^ *+' conftest.er1 >conftest.err
10496 cat conftest.err >&5
10497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498 (exit $ac_status); } &&
10499 { ac_try='test -z "$ac_c_werror_flag"
10500 || test ! -s conftest.err'
10501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10502 (eval $ac_try) 2>&5
10504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10505 (exit $ac_status); }; } &&
10506 { ac_try='test -s conftest$ac_exeext'
10507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10508 (eval $ac_try) 2>&5
10510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); }; }; then
10512 ac_cv_lib_dl_dlopen=yes
10514 echo "$as_me: failed program was:" >&5
10515 sed 's/^/| /' conftest.$ac_ext >&5
10517 ac_cv_lib_dl_dlopen=no
10519 rm -f conftest.err conftest.$ac_objext \
10520 conftest$ac_exeext conftest.$ac_ext
10521 LIBS=$ac_check_lib_save_LIBS
10523 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10524 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10525 if test $ac_cv_lib_dl_dlopen = yes; then
10526 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10529 lt_cv_dlopen="dyld"
10531 lt_cv_dlopen_self=yes
10538 echo "$as_me:$LINENO: checking for shl_load" >&5
10539 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10540 if test "${ac_cv_func_shl_load+set}" = set; then
10541 echo $ECHO_N "(cached) $ECHO_C" >&6
10543 cat >conftest.$ac_ext <<_ACEOF
10546 cat confdefs.h >>conftest.$ac_ext
10547 cat >>conftest.$ac_ext <<_ACEOF
10548 /* end confdefs.h. */
10549 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10550 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10551 #define shl_load innocuous_shl_load
10553 /* System header to define __stub macros and hopefully few prototypes,
10554 which can conflict with char shl_load (); below.
10555 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10556 <limits.h> exists even on freestanding compilers. */
10559 # include <limits.h>
10561 # include <assert.h>
10566 /* Override any gcc2 internal prototype to avoid an error. */
10571 /* We use char because int might match the return type of a gcc2
10572 builtin and then its argument prototype would still apply. */
10574 /* The GNU C library defines this for functions which it implements
10575 to always fail with ENOSYS. Some functions are actually named
10576 something starting with __ and the normal name is an alias. */
10577 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10580 char (*f) () = shl_load;
10589 return f != shl_load;
10594 rm -f conftest.$ac_objext conftest$ac_exeext
10595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10596 (eval $ac_link) 2>conftest.er1
10598 grep -v '^ *+' conftest.er1 >conftest.err
10600 cat conftest.err >&5
10601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602 (exit $ac_status); } &&
10603 { ac_try='test -z "$ac_c_werror_flag"
10604 || test ! -s conftest.err'
10605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10606 (eval $ac_try) 2>&5
10608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10609 (exit $ac_status); }; } &&
10610 { ac_try='test -s conftest$ac_exeext'
10611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10612 (eval $ac_try) 2>&5
10614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615 (exit $ac_status); }; }; then
10616 ac_cv_func_shl_load=yes
10618 echo "$as_me: failed program was:" >&5
10619 sed 's/^/| /' conftest.$ac_ext >&5
10621 ac_cv_func_shl_load=no
10623 rm -f conftest.err conftest.$ac_objext \
10624 conftest$ac_exeext conftest.$ac_ext
10626 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10627 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10628 if test $ac_cv_func_shl_load = yes; then
10629 lt_cv_dlopen="shl_load"
10631 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10632 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10633 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10634 echo $ECHO_N "(cached) $ECHO_C" >&6
10636 ac_check_lib_save_LIBS=$LIBS
10638 cat >conftest.$ac_ext <<_ACEOF
10641 cat confdefs.h >>conftest.$ac_ext
10642 cat >>conftest.$ac_ext <<_ACEOF
10643 /* end confdefs.h. */
10645 /* Override any gcc2 internal prototype to avoid an error. */
10649 /* We use char because int might match the return type of a gcc2
10650 builtin and then its argument prototype would still apply. */
10660 rm -f conftest.$ac_objext conftest$ac_exeext
10661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10662 (eval $ac_link) 2>conftest.er1
10664 grep -v '^ *+' conftest.er1 >conftest.err
10666 cat conftest.err >&5
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); } &&
10669 { ac_try='test -z "$ac_c_werror_flag"
10670 || test ! -s conftest.err'
10671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10672 (eval $ac_try) 2>&5
10674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675 (exit $ac_status); }; } &&
10676 { ac_try='test -s conftest$ac_exeext'
10677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10678 (eval $ac_try) 2>&5
10680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681 (exit $ac_status); }; }; then
10682 ac_cv_lib_dld_shl_load=yes
10684 echo "$as_me: failed program was:" >&5
10685 sed 's/^/| /' conftest.$ac_ext >&5
10687 ac_cv_lib_dld_shl_load=no
10689 rm -f conftest.err conftest.$ac_objext \
10690 conftest$ac_exeext conftest.$ac_ext
10691 LIBS=$ac_check_lib_save_LIBS
10693 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10694 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10695 if test $ac_cv_lib_dld_shl_load = yes; then
10696 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10698 echo "$as_me:$LINENO: checking for dlopen" >&5
10699 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10700 if test "${ac_cv_func_dlopen+set}" = set; then
10701 echo $ECHO_N "(cached) $ECHO_C" >&6
10703 cat >conftest.$ac_ext <<_ACEOF
10706 cat confdefs.h >>conftest.$ac_ext
10707 cat >>conftest.$ac_ext <<_ACEOF
10708 /* end confdefs.h. */
10709 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10711 #define dlopen innocuous_dlopen
10713 /* System header to define __stub macros and hopefully few prototypes,
10714 which can conflict with char dlopen (); below.
10715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10716 <limits.h> exists even on freestanding compilers. */
10719 # include <limits.h>
10721 # include <assert.h>
10726 /* Override any gcc2 internal prototype to avoid an error. */
10731 /* We use char because int might match the return type of a gcc2
10732 builtin and then its argument prototype would still apply. */
10734 /* The GNU C library defines this for functions which it implements
10735 to always fail with ENOSYS. Some functions are actually named
10736 something starting with __ and the normal name is an alias. */
10737 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10740 char (*f) () = dlopen;
10749 return f != dlopen;
10754 rm -f conftest.$ac_objext conftest$ac_exeext
10755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10756 (eval $ac_link) 2>conftest.er1
10758 grep -v '^ *+' conftest.er1 >conftest.err
10760 cat conftest.err >&5
10761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762 (exit $ac_status); } &&
10763 { ac_try='test -z "$ac_c_werror_flag"
10764 || test ! -s conftest.err'
10765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10766 (eval $ac_try) 2>&5
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); }; } &&
10770 { ac_try='test -s conftest$ac_exeext'
10771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10772 (eval $ac_try) 2>&5
10774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775 (exit $ac_status); }; }; then
10776 ac_cv_func_dlopen=yes
10778 echo "$as_me: failed program was:" >&5
10779 sed 's/^/| /' conftest.$ac_ext >&5
10781 ac_cv_func_dlopen=no
10783 rm -f conftest.err conftest.$ac_objext \
10784 conftest$ac_exeext conftest.$ac_ext
10786 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10787 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10788 if test $ac_cv_func_dlopen = yes; then
10789 lt_cv_dlopen="dlopen"
10791 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10792 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10793 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10794 echo $ECHO_N "(cached) $ECHO_C" >&6
10796 ac_check_lib_save_LIBS=$LIBS
10798 cat >conftest.$ac_ext <<_ACEOF
10801 cat confdefs.h >>conftest.$ac_ext
10802 cat >>conftest.$ac_ext <<_ACEOF
10803 /* end confdefs.h. */
10805 /* Override any gcc2 internal prototype to avoid an error. */
10809 /* We use char because int might match the return type of a gcc2
10810 builtin and then its argument prototype would still apply. */
10820 rm -f conftest.$ac_objext conftest$ac_exeext
10821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10822 (eval $ac_link) 2>conftest.er1
10824 grep -v '^ *+' conftest.er1 >conftest.err
10826 cat conftest.err >&5
10827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828 (exit $ac_status); } &&
10829 { ac_try='test -z "$ac_c_werror_flag"
10830 || test ! -s conftest.err'
10831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10832 (eval $ac_try) 2>&5
10834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835 (exit $ac_status); }; } &&
10836 { ac_try='test -s conftest$ac_exeext'
10837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10838 (eval $ac_try) 2>&5
10840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841 (exit $ac_status); }; }; then
10842 ac_cv_lib_dl_dlopen=yes
10844 echo "$as_me: failed program was:" >&5
10845 sed 's/^/| /' conftest.$ac_ext >&5
10847 ac_cv_lib_dl_dlopen=no
10849 rm -f conftest.err conftest.$ac_objext \
10850 conftest$ac_exeext conftest.$ac_ext
10851 LIBS=$ac_check_lib_save_LIBS
10853 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10854 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10855 if test $ac_cv_lib_dl_dlopen = yes; then
10856 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10858 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10859 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10860 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10861 echo $ECHO_N "(cached) $ECHO_C" >&6
10863 ac_check_lib_save_LIBS=$LIBS
10864 LIBS="-lsvld $LIBS"
10865 cat >conftest.$ac_ext <<_ACEOF
10868 cat confdefs.h >>conftest.$ac_ext
10869 cat >>conftest.$ac_ext <<_ACEOF
10870 /* end confdefs.h. */
10872 /* Override any gcc2 internal prototype to avoid an error. */
10876 /* We use char because int might match the return type of a gcc2
10877 builtin and then its argument prototype would still apply. */
10887 rm -f conftest.$ac_objext conftest$ac_exeext
10888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10889 (eval $ac_link) 2>conftest.er1
10891 grep -v '^ *+' conftest.er1 >conftest.err
10893 cat conftest.err >&5
10894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895 (exit $ac_status); } &&
10896 { ac_try='test -z "$ac_c_werror_flag"
10897 || test ! -s conftest.err'
10898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10899 (eval $ac_try) 2>&5
10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902 (exit $ac_status); }; } &&
10903 { ac_try='test -s conftest$ac_exeext'
10904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10905 (eval $ac_try) 2>&5
10907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908 (exit $ac_status); }; }; then
10909 ac_cv_lib_svld_dlopen=yes
10911 echo "$as_me: failed program was:" >&5
10912 sed 's/^/| /' conftest.$ac_ext >&5
10914 ac_cv_lib_svld_dlopen=no
10916 rm -f conftest.err conftest.$ac_objext \
10917 conftest$ac_exeext conftest.$ac_ext
10918 LIBS=$ac_check_lib_save_LIBS
10920 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10921 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10922 if test $ac_cv_lib_svld_dlopen = yes; then
10923 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10925 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10926 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10927 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10928 echo $ECHO_N "(cached) $ECHO_C" >&6
10930 ac_check_lib_save_LIBS=$LIBS
10932 cat >conftest.$ac_ext <<_ACEOF
10935 cat confdefs.h >>conftest.$ac_ext
10936 cat >>conftest.$ac_ext <<_ACEOF
10937 /* end confdefs.h. */
10939 /* Override any gcc2 internal prototype to avoid an error. */
10943 /* We use char because int might match the return type of a gcc2
10944 builtin and then its argument prototype would still apply. */
10954 rm -f conftest.$ac_objext conftest$ac_exeext
10955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10956 (eval $ac_link) 2>conftest.er1
10958 grep -v '^ *+' conftest.er1 >conftest.err
10960 cat conftest.err >&5
10961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962 (exit $ac_status); } &&
10963 { ac_try='test -z "$ac_c_werror_flag"
10964 || test ! -s conftest.err'
10965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10966 (eval $ac_try) 2>&5
10968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969 (exit $ac_status); }; } &&
10970 { ac_try='test -s conftest$ac_exeext'
10971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10972 (eval $ac_try) 2>&5
10974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975 (exit $ac_status); }; }; then
10976 ac_cv_lib_dld_dld_link=yes
10978 echo "$as_me: failed program was:" >&5
10979 sed 's/^/| /' conftest.$ac_ext >&5
10981 ac_cv_lib_dld_dld_link=no
10983 rm -f conftest.err conftest.$ac_objext \
10984 conftest$ac_exeext conftest.$ac_ext
10985 LIBS=$ac_check_lib_save_LIBS
10987 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10988 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10989 if test $ac_cv_lib_dld_dld_link = yes; then
10990 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11011 if test "x$lt_cv_dlopen" != xno; then
11017 case $lt_cv_dlopen in
11019 save_CPPFLAGS="$CPPFLAGS"
11020 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11022 save_LDFLAGS="$LDFLAGS"
11023 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11026 LIBS="$lt_cv_dlopen_libs $LIBS"
11028 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11029 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11030 if test "${lt_cv_dlopen_self+set}" = set; then
11031 echo $ECHO_N "(cached) $ECHO_C" >&6
11033 if test "$cross_compiling" = yes; then :
11034 lt_cv_dlopen_self=cross
11036 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11037 lt_status=$lt_dlunknown
11038 cat > conftest.$ac_ext <<EOF
11039 #line 11039 "configure"
11040 #include "confdefs.h"
11049 # define LT_DLGLOBAL RTLD_GLOBAL
11052 # define LT_DLGLOBAL DL_GLOBAL
11054 # define LT_DLGLOBAL 0
11058 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11059 find out it does not work in some platform. */
11060 #ifndef LT_DLLAZY_OR_NOW
11062 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11065 # define LT_DLLAZY_OR_NOW DL_LAZY
11068 # define LT_DLLAZY_OR_NOW RTLD_NOW
11071 # define LT_DLLAZY_OR_NOW DL_NOW
11073 # define LT_DLLAZY_OR_NOW 0
11081 extern "C" void exit (int);
11084 void fnord() { int i=42;}
11087 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11088 int status = $lt_dlunknown;
11092 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11093 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11094 /* dlclose (self); */
11100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11101 (eval $ac_link) 2>&5
11103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11105 (./conftest; exit; ) 2>/dev/null
11107 case x$lt_status in
11108 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11109 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11110 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11113 # compilation failed
11114 lt_cv_dlopen_self=no
11121 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11122 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11124 if test "x$lt_cv_dlopen_self" = xyes; then
11125 LDFLAGS="$LDFLAGS $link_static_flag"
11126 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11127 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11128 if test "${lt_cv_dlopen_self_static+set}" = set; then
11129 echo $ECHO_N "(cached) $ECHO_C" >&6
11131 if test "$cross_compiling" = yes; then :
11132 lt_cv_dlopen_self_static=cross
11134 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11135 lt_status=$lt_dlunknown
11136 cat > conftest.$ac_ext <<EOF
11137 #line 11137 "configure"
11138 #include "confdefs.h"
11147 # define LT_DLGLOBAL RTLD_GLOBAL
11150 # define LT_DLGLOBAL DL_GLOBAL
11152 # define LT_DLGLOBAL 0
11156 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11157 find out it does not work in some platform. */
11158 #ifndef LT_DLLAZY_OR_NOW
11160 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11163 # define LT_DLLAZY_OR_NOW DL_LAZY
11166 # define LT_DLLAZY_OR_NOW RTLD_NOW
11169 # define LT_DLLAZY_OR_NOW DL_NOW
11171 # define LT_DLLAZY_OR_NOW 0
11179 extern "C" void exit (int);
11182 void fnord() { int i=42;}
11185 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11186 int status = $lt_dlunknown;
11190 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11191 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11192 /* dlclose (self); */
11198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11199 (eval $ac_link) 2>&5
11201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11203 (./conftest; exit; ) 2>/dev/null
11205 case x$lt_status in
11206 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11207 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11208 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11211 # compilation failed
11212 lt_cv_dlopen_self_static=no
11219 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11220 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11223 CPPFLAGS="$save_CPPFLAGS"
11224 LDFLAGS="$save_LDFLAGS"
11229 case $lt_cv_dlopen_self in
11230 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11231 *) enable_dlopen_self=unknown ;;
11234 case $lt_cv_dlopen_self_static in
11235 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11236 *) enable_dlopen_self_static=unknown ;;
11241 # Report which librarie types wil actually be built
11242 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11243 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11244 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11245 echo "${ECHO_T}$can_build_shared" >&6
11247 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11248 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11249 test "$can_build_shared" = "no" && enable_shared=no
11251 # On AIX, shared libraries and static libraries use the same namespace, and
11252 # are all built from PIC.
11255 test "$enable_shared" = yes && enable_static=no
11256 if test -n "$RANLIB"; then
11257 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11258 postinstall_cmds='$RANLIB $lib'
11263 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11264 test "$enable_shared" = yes && enable_static=no
11268 echo "$as_me:$LINENO: result: $enable_shared" >&5
11269 echo "${ECHO_T}$enable_shared" >&6
11271 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11272 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11273 # Make sure either enable_shared or enable_static is yes.
11274 test "$enable_shared" = yes || enable_static=yes
11275 echo "$as_me:$LINENO: result: $enable_static" >&5
11276 echo "${ECHO_T}$enable_static" >&6
11278 # The else clause should only fire when bootstrapping the
11279 # libtool distribution, otherwise you forgot to ship ltmain.sh
11280 # with your package, and you will get complaints that there are
11281 # no rules to generate ltmain.sh.
11282 if test -f "$ltmain"; then
11283 # See if we are running on zsh, and set the options which allow our commands through
11284 # without removal of \ escapes.
11285 if test -n "${ZSH_VERSION+set}" ; then
11286 setopt NO_GLOB_SUBST
11288 # Now quote all the things that may contain metacharacters while being
11289 # careful not to overquote the AC_SUBSTed values. We take copies of the
11290 # variables and quote the copies for generation of the libtool script.
11291 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11293 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11294 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11295 deplibs_check_method reload_flag reload_cmds need_locks \
11296 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11297 lt_cv_sys_global_symbol_to_c_name_address \
11298 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11299 old_postinstall_cmds old_postuninstall_cmds \
11303 lt_prog_compiler_wl \
11304 lt_prog_compiler_pic \
11305 lt_prog_compiler_static \
11306 lt_prog_compiler_no_builtin_flag \
11307 export_dynamic_flag_spec \
11308 thread_safe_flag_spec \
11309 whole_archive_flag_spec \
11310 enable_shared_with_static_runtimes \
11312 old_archive_from_new_cmds \
11317 compiler_lib_search_path \
11319 archive_expsym_cmds \
11321 postuninstall_cmds \
11322 old_archive_from_expsyms_cmds \
11323 allow_undefined_flag \
11324 no_undefined_flag \
11325 export_symbols_cmds \
11326 hardcode_libdir_flag_spec \
11327 hardcode_libdir_flag_spec_ld \
11328 hardcode_libdir_separator \
11329 hardcode_automatic \
11331 module_expsym_cmds \
11332 lt_cv_prog_compiler_c_o \
11334 include_expsyms; do
11337 old_archive_cmds | \
11338 old_archive_from_new_cmds | \
11340 archive_expsym_cmds | \
11342 module_expsym_cmds | \
11343 old_archive_from_expsyms_cmds | \
11344 export_symbols_cmds | \
11345 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11346 postinstall_cmds | postuninstall_cmds | \
11347 old_postinstall_cmds | old_postuninstall_cmds | \
11348 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11349 # Double-quote double-evaled strings.
11350 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11353 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11359 *'\$0 --fallback-echo"')
11360 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11364 cfgfile="${ofile}T"
11365 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11367 { echo "$as_me:$LINENO: creating $ofile" >&5
11368 echo "$as_me: creating $ofile" >&6;}
11370 cat <<__EOF__ >> "$cfgfile"
11373 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11374 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11375 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11377 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11378 # Free Software Foundation, Inc.
11380 # This file is part of GNU Libtool:
11381 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11383 # This program is free software; you can redistribute it and/or modify
11384 # it under the terms of the GNU General Public License as published by
11385 # the Free Software Foundation; either version 2 of the License, or
11386 # (at your option) any later version.
11388 # This program is distributed in the hope that it will be useful, but
11389 # WITHOUT ANY WARRANTY; without even the implied warranty of
11390 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11391 # General Public License for more details.
11393 # You should have received a copy of the GNU General Public License
11394 # along with this program; if not, write to the Free Software
11395 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11397 # As a special exception to the GNU General Public License, if you
11398 # distribute this file as part of a program that contains a
11399 # configuration script generated by Autoconf, you may include it under
11400 # the same distribution terms that you use for the rest of that program.
11402 # A sed program that does not truncate output.
11405 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11406 Xsed="$SED -e 1s/^X//"
11408 # The HP-UX ksh and POSIX shell print the target directory to stdout
11409 # if CDPATH is set.
11410 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11412 # The names of the tagged configurations supported by this script.
11415 # ### BEGIN LIBTOOL CONFIG
11417 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11419 # Shell to use when invoking shell scripts.
11422 # Whether or not to build shared libraries.
11423 build_libtool_libs=$enable_shared
11425 # Whether or not to build static libraries.
11426 build_old_libs=$enable_static
11428 # Whether or not to add -lc for building shared libraries.
11429 build_libtool_need_lc=$archive_cmds_need_lc
11431 # Whether or not to disallow shared libs when runtime libs are static
11432 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11434 # Whether or not to optimize for fast installation.
11435 fast_install=$enable_fast_install
11438 host_alias=$host_alias
11442 # The build system.
11443 build_alias=$build_alias
11447 # An echo program that does not interpret backslashes.
11452 AR_FLAGS=$lt_AR_FLAGS
11457 # A language-specific compiler.
11460 # Is the compiler the GNU C compiler?
11466 # The linker used to build libraries.
11469 # Whether we need hard or soft links.
11472 # A BSD-compatible nm program.
11475 # A symbol stripping program
11478 # Used to examine libraries when file_magic_cmd begins "file"
11479 MAGIC_CMD=$MAGIC_CMD
11481 # Used on cygwin: DLL creation program.
11484 # Used on cygwin: object dumper.
11487 # Used on cygwin: assembler.
11490 # The name of the directory that contains temporary libtool files.
11493 # How to create reloadable object files.
11494 reload_flag=$lt_reload_flag
11495 reload_cmds=$lt_reload_cmds
11497 # How to pass a linker flag through the compiler.
11498 wl=$lt_lt_prog_compiler_wl
11500 # Object file suffix (normally "o").
11501 objext="$ac_objext"
11503 # Old archive suffix (normally "a").
11506 # Shared library suffix (normally ".so").
11507 shrext_cmds='$shrext_cmds'
11509 # Executable file suffix (normally "").
11512 # Additional compiler flags for building library objects.
11513 pic_flag=$lt_lt_prog_compiler_pic
11516 # What is the maximum length of a command?
11517 max_cmd_len=$lt_cv_sys_max_cmd_len
11519 # Does compiler simultaneously support -c and -o options?
11520 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11522 # Must we lock files when doing compilation?
11523 need_locks=$lt_need_locks
11525 # Do we need the lib prefix for modules?
11526 need_lib_prefix=$need_lib_prefix
11528 # Do we need a version for libraries?
11529 need_version=$need_version
11531 # Whether dlopen is supported.
11532 dlopen_support=$enable_dlopen
11534 # Whether dlopen of programs is supported.
11535 dlopen_self=$enable_dlopen_self
11537 # Whether dlopen of statically linked programs is supported.
11538 dlopen_self_static=$enable_dlopen_self_static
11540 # Compiler flag to prevent dynamic linking.
11541 link_static_flag=$lt_lt_prog_compiler_static
11543 # Compiler flag to turn off builtin functions.
11544 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11546 # Compiler flag to allow reflexive dlopens.
11547 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11549 # Compiler flag to generate shared objects directly from archives.
11550 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11552 # Compiler flag to generate thread-safe objects.
11553 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11555 # Library versioning type.
11556 version_type=$version_type
11558 # Format of library name prefix.
11559 libname_spec=$lt_libname_spec
11561 # List of archive names. First name is the real one, the rest are links.
11562 # The last name is the one that the linker finds with -lNAME.
11563 library_names_spec=$lt_library_names_spec
11565 # The coded name of the library, if different from the real name.
11566 soname_spec=$lt_soname_spec
11568 # Commands used to build and install an old-style archive.
11570 old_archive_cmds=$lt_old_archive_cmds
11571 old_postinstall_cmds=$lt_old_postinstall_cmds
11572 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11574 # Create an old-style archive from a shared archive.
11575 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11577 # Create a temporary old-style archive to link instead of a shared archive.
11578 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11580 # Commands used to build and install a shared archive.
11581 archive_cmds=$lt_archive_cmds
11582 archive_expsym_cmds=$lt_archive_expsym_cmds
11583 postinstall_cmds=$lt_postinstall_cmds
11584 postuninstall_cmds=$lt_postuninstall_cmds
11586 # Commands used to build a loadable module (assumed same as above if empty)
11587 module_cmds=$lt_module_cmds
11588 module_expsym_cmds=$lt_module_expsym_cmds
11590 # Commands to strip libraries.
11591 old_striplib=$lt_old_striplib
11592 striplib=$lt_striplib
11594 # Dependencies to place before the objects being linked to create a
11596 predep_objects=$lt_predep_objects
11598 # Dependencies to place after the objects being linked to create a
11600 postdep_objects=$lt_postdep_objects
11602 # Dependencies to place before the objects being linked to create a
11604 predeps=$lt_predeps
11606 # Dependencies to place after the objects being linked to create a
11608 postdeps=$lt_postdeps
11610 # The library search path used internally by the compiler when linking
11611 # a shared library.
11612 compiler_lib_search_path=$lt_compiler_lib_search_path
11614 # Method to check whether dependent libraries are shared objects.
11615 deplibs_check_method=$lt_deplibs_check_method
11617 # Command to use when deplibs_check_method == file_magic.
11618 file_magic_cmd=$lt_file_magic_cmd
11620 # Flag that allows shared libraries with undefined symbols to be built.
11621 allow_undefined_flag=$lt_allow_undefined_flag
11623 # Flag that forces no undefined symbols.
11624 no_undefined_flag=$lt_no_undefined_flag
11626 # Commands used to finish a libtool library installation in a directory.
11627 finish_cmds=$lt_finish_cmds
11629 # Same as above, but a single script fragment to be evaled but not shown.
11630 finish_eval=$lt_finish_eval
11632 # Take the output of nm and produce a listing of raw symbols and C names.
11633 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11635 # Transform the output of nm in a proper C declaration
11636 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11638 # Transform the output of nm in a C name address pair
11639 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11641 # This is the shared library runtime path variable.
11642 runpath_var=$runpath_var
11644 # This is the shared library path variable.
11645 shlibpath_var=$shlibpath_var
11647 # Is shlibpath searched before the hard-coded library search path?
11648 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11650 # How to hardcode a shared library path into an executable.
11651 hardcode_action=$hardcode_action
11653 # Whether we should hardcode library paths into libraries.
11654 hardcode_into_libs=$hardcode_into_libs
11656 # Flag to hardcode \$libdir into a binary during linking.
11657 # This must work even if \$libdir does not exist.
11658 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11660 # If ld is used when linking, flag to hardcode \$libdir into
11661 # a binary during linking. This must work even if \$libdir does
11663 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11665 # Whether we need a single -rpath flag with a separated argument.
11666 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11668 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11669 # resulting binary.
11670 hardcode_direct=$hardcode_direct
11672 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11673 # resulting binary.
11674 hardcode_minus_L=$hardcode_minus_L
11676 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11677 # the resulting binary.
11678 hardcode_shlibpath_var=$hardcode_shlibpath_var
11680 # Set to yes if building a shared library automatically hardcodes DIR into the library
11681 # and all subsequent libraries and executables linked against it.
11682 hardcode_automatic=$hardcode_automatic
11684 # Variables whose values should be saved in libtool wrapper scripts and
11685 # restored at relink time.
11686 variables_saved_for_relink="$variables_saved_for_relink"
11688 # Whether libtool must link a program against all its dependency libraries.
11689 link_all_deplibs=$link_all_deplibs
11691 # Compile-time system search path for libraries
11692 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11694 # Run-time system search path for libraries
11695 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11697 # Fix the shell variable \$srcfile for the compiler.
11698 fix_srcfile_path="$fix_srcfile_path"
11700 # Set to yes if exported symbols are required.
11701 always_export_symbols=$always_export_symbols
11703 # The commands to list exported symbols.
11704 export_symbols_cmds=$lt_export_symbols_cmds
11706 # The commands to extract the exported symbol list from a shared archive.
11707 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11709 # Symbols that should not be listed in the preloaded symbols.
11710 exclude_expsyms=$lt_exclude_expsyms
11712 # Symbols that must always be exported.
11713 include_expsyms=$lt_include_expsyms
11715 # ### END LIBTOOL CONFIG
11722 cat <<\EOF >> "$cfgfile"
11724 # AIX sometimes has problems with the GCC collect2 program. For some
11725 # reason, if we set the COLLECT_NAMES environment variable, the problems
11726 # vanish in a puff of smoke.
11727 if test "X${COLLECT_NAMES+set}" != Xset; then
11729 export COLLECT_NAMES
11735 # We use sed instead of cat because bash on DJGPP gets confused if
11736 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11737 # text mode, it properly converts lines to CR/LF. This bash problem
11738 # is reportedly fixed, but why not run on old versions too?
11739 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11741 mv -f "$cfgfile" "$ofile" || \
11742 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11746 # If there is no Makefile yet, we rely on a make rule to execute
11747 # `config.status --recheck' to rerun these tests and create the
11748 # libtool script then.
11749 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11750 if test -f "$ltmain_in"; then
11751 test -f Makefile && make "$ltmain"
11757 ac_cpp='$CPP $CPPFLAGS'
11758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11765 # Check whether --with-tags or --without-tags was given.
11766 if test "${with_tags+set}" = set; then
11767 withval="$with_tags"
11768 tagnames="$withval"
11771 if test -f "$ltmain" && test -n "$tagnames"; then
11772 if test ! -f "${ofile}"; then
11773 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11774 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11777 if test -z "$LTCC"; then
11778 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11779 if test -z "$LTCC"; then
11780 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11781 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11783 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11784 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11788 # Extract list of available tagged configurations in $ofile.
11789 # Note that this assumes the entire list is on one line.
11790 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11792 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11793 for tagname in $tagnames; do
11795 # Check whether tagname contains only valid characters
11796 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11798 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11799 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11800 { (exit 1); exit 1; }; }
11804 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11806 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11807 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11808 { (exit 1); exit 1; }; }
11811 # Update the list of available tags.
11812 if test -n "$tagname"; then
11813 echo appending configuration tag \"$tagname\" to $ofile
11817 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11818 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11819 (test "X$CXX" != "Xg++"))) ; then
11821 ac_cpp='$CXXCPP $CPPFLAGS'
11822 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11823 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11824 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11829 archive_cmds_need_lc_CXX=no
11830 allow_undefined_flag_CXX=
11831 always_export_symbols_CXX=no
11832 archive_expsym_cmds_CXX=
11833 export_dynamic_flag_spec_CXX=
11834 hardcode_direct_CXX=no
11835 hardcode_libdir_flag_spec_CXX=
11836 hardcode_libdir_flag_spec_ld_CXX=
11837 hardcode_libdir_separator_CXX=
11838 hardcode_minus_L_CXX=no
11839 hardcode_automatic_CXX=no
11841 module_expsym_cmds_CXX=
11842 link_all_deplibs_CXX=unknown
11843 old_archive_cmds_CXX=$old_archive_cmds
11844 no_undefined_flag_CXX=
11845 whole_archive_flag_spec_CXX=
11846 enable_shared_with_static_runtimes_CXX=no
11848 # Dependencies to place before and after the object being linked:
11849 predep_objects_CXX=
11850 postdep_objects_CXX=
11853 compiler_lib_search_path_CXX=
11855 # Source file extension for C++ test sources.
11858 # Object file extension for compiled C++ test sources.
11862 # Code to be used in simple compile tests
11863 lt_simple_compile_test_code="int some_variable = 0;\n"
11865 # Code to be used in simple link tests
11866 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
11868 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11870 # If no C compiler was specified, use CC.
11873 # Allow CC to be a program name with arguments.
11877 # save warnings/boilerplate of simple test code
11878 ac_outfile=conftest.$ac_objext
11879 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11880 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11881 _lt_compiler_boilerplate=`cat conftest.err`
11884 ac_outfile=conftest.$ac_objext
11885 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11886 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11887 _lt_linker_boilerplate=`cat conftest.err`
11891 # Allow CC to be a program name with arguments.
11896 lt_save_with_gnu_ld=$with_gnu_ld
11897 lt_save_path_LD=$lt_cv_path_LD
11898 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11899 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11901 unset lt_cv_prog_gnu_ld
11903 if test -n "${lt_cv_path_LDCXX+set}"; then
11904 lt_cv_path_LD=$lt_cv_path_LDCXX
11906 unset lt_cv_path_LD
11908 test -z "${LDCXX+set}" || LD=$LDCXX
11912 for cc_temp in $compiler""; do
11914 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11915 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11920 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11923 # We don't want -fno-exception wen compiling C++ code, so set the
11924 # no_builtin_flag separately
11925 if test "$GXX" = yes; then
11926 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11928 lt_prog_compiler_no_builtin_flag_CXX=
11931 if test "$GXX" = yes; then
11932 # Set up default GNU C++ configuration
11935 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11936 if test "${with_gnu_ld+set}" = set; then
11937 withval="$with_gnu_ld"
11938 test "$withval" = no || with_gnu_ld=yes
11943 if test "$GCC" = yes; then
11944 # Check if gcc -print-prog-name=ld gives a path.
11945 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11946 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11949 # gcc leaves a trailing carriage return which upsets mingw
11950 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11952 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11955 # Accept absolute paths.
11957 re_direlt='/[^/][^/]*/\.\./'
11958 # Canonicalize the pathname of ld
11959 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11960 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11961 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11963 test -z "$LD" && LD="$ac_prog"
11966 # If it fails, then pretend we aren't using GCC.
11970 # If it is relative, then search for the first ld in PATH.
11971 with_gnu_ld=unknown
11974 elif test "$with_gnu_ld" = yes; then
11975 echo "$as_me:$LINENO: checking for GNU ld" >&5
11976 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11978 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11979 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11981 if test "${lt_cv_path_LD+set}" = set; then
11982 echo $ECHO_N "(cached) $ECHO_C" >&6
11984 if test -z "$LD"; then
11985 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11986 for ac_dir in $PATH; do
11988 test -z "$ac_dir" && ac_dir=.
11989 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11990 lt_cv_path_LD="$ac_dir/$ac_prog"
11991 # Check to see if the program is GNU ld. I'd rather use --version,
11992 # but apparently some GNU ld's only accept -v.
11993 # Break only if it was the GNU/non-GNU ld that we prefer.
11994 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11995 *GNU* | *'with BFD'*)
11996 test "$with_gnu_ld" != no && break
11999 test "$with_gnu_ld" != yes && break
12006 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12010 LD="$lt_cv_path_LD"
12011 if test -n "$LD"; then
12012 echo "$as_me:$LINENO: result: $LD" >&5
12013 echo "${ECHO_T}$LD" >&6
12015 echo "$as_me:$LINENO: result: no" >&5
12016 echo "${ECHO_T}no" >&6
12018 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12019 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12020 { (exit 1); exit 1; }; }
12021 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12022 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12023 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12024 echo $ECHO_N "(cached) $ECHO_C" >&6
12026 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12027 case `$LD -v 2>&1 </dev/null` in
12028 *GNU* | *'with BFD'*)
12029 lt_cv_prog_gnu_ld=yes
12032 lt_cv_prog_gnu_ld=no
12036 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12037 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12038 with_gnu_ld=$lt_cv_prog_gnu_ld
12042 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12043 # archiving commands below assume that GNU ld is being used.
12044 if test "$with_gnu_ld" = yes; then
12045 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12046 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'
12048 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12049 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12051 # If archive_cmds runs LD, not CC, wlarc should be empty
12052 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12053 # investigate it a little bit more. (MM)
12056 # ancient GNU ld didn't support --whole-archive et. al.
12057 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12058 grep 'no-whole-archive' > /dev/null; then
12059 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12061 whole_archive_flag_spec_CXX=
12067 # A generic and very simple default shared library creation
12068 # command for GNU C++ for the case where it uses the native
12069 # linker, instead of GNU ld. If possible, this setting should
12070 # overridden to take advantage of the native linker features on
12071 # the platform it is being used on.
12072 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12075 # Commands to make compiler produce verbose output that lists
12076 # what "hidden" libraries, object files and flags are used when
12077 # linking a shared library.
12078 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12086 # PORTME: fill in a description of your system's C++ link characteristics
12087 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12088 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12092 # FIXME: insert proper C++ library support
12096 if test "$host_cpu" = ia64; then
12097 # On IA64, the linker does run time linking by default, so we don't
12098 # have to do anything special.
12099 aix_use_runtimelinking=no
12100 exp_sym_flag='-Bexport'
12103 aix_use_runtimelinking=no
12105 # Test if we are trying to use run time linking or normal
12106 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12107 # need to do runtime linking.
12108 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12109 for ld_flag in $LDFLAGS; do
12112 aix_use_runtimelinking=yes
12119 exp_sym_flag='-bexport'
12120 no_entry_flag='-bnoentry'
12123 # When large executables or shared objects are built, AIX ld can
12124 # have problems creating the table of contents. If linking a library
12125 # or program results in "error TOC overflow" add -mminimal-toc to
12126 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12127 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12129 archive_cmds_CXX=''
12130 hardcode_direct_CXX=yes
12131 hardcode_libdir_separator_CXX=':'
12132 link_all_deplibs_CXX=yes
12134 if test "$GXX" = yes; then
12135 case $host_os in aix4.[012]|aix4.[012].*)
12136 # We only want to do this on AIX 4.2 and lower, the check
12137 # below for broken collect2 doesn't work under 4.3+
12138 collect2name=`${CC} -print-prog-name=collect2`
12139 if test -f "$collect2name" && \
12140 strings "$collect2name" | grep resolve_lib_name >/dev/null
12142 # We have reworked collect2
12143 hardcode_direct_CXX=yes
12145 # We have old collect2
12146 hardcode_direct_CXX=unsupported
12147 # It fails to find uninstalled libraries when the uninstalled
12148 # path is not listed in the libpath. Setting hardcode_minus_L
12149 # to unsupported forces relinking
12150 hardcode_minus_L_CXX=yes
12151 hardcode_libdir_flag_spec_CXX='-L$libdir'
12152 hardcode_libdir_separator_CXX=
12155 shared_flag='-shared'
12156 if test "$aix_use_runtimelinking" = yes; then
12157 shared_flag="$shared_flag "'${wl}-G'
12161 if test "$host_cpu" = ia64; then
12162 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12163 # chokes on -Wl,-G. The following line is correct:
12166 if test "$aix_use_runtimelinking" = yes; then
12167 shared_flag='${wl}-G'
12169 shared_flag='${wl}-bM:SRE'
12174 # It seems that -bexpall does not export symbols beginning with
12175 # underscore (_), so it is better to generate a list of symbols to export.
12176 always_export_symbols_CXX=yes
12177 if test "$aix_use_runtimelinking" = yes; then
12178 # Warning - without using the other runtime loading flags (-brtl),
12179 # -berok will link without error, but may produce a broken library.
12180 allow_undefined_flag_CXX='-berok'
12181 # Determine the default libpath from the value encoded in an empty executable.
12182 cat >conftest.$ac_ext <<_ACEOF
12185 cat confdefs.h >>conftest.$ac_ext
12186 cat >>conftest.$ac_ext <<_ACEOF
12187 /* end confdefs.h. */
12197 rm -f conftest.$ac_objext conftest$ac_exeext
12198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12199 (eval $ac_link) 2>conftest.er1
12201 grep -v '^ *+' conftest.er1 >conftest.err
12203 cat conftest.err >&5
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); } &&
12206 { ac_try='test -z "$ac_cxx_werror_flag"
12207 || test ! -s conftest.err'
12208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12209 (eval $ac_try) 2>&5
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); }; } &&
12213 { ac_try='test -s conftest$ac_exeext'
12214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12215 (eval $ac_try) 2>&5
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); }; }; then
12220 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12222 # Check for a 64-bit object if we didn't find anything.
12223 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; }
12226 echo "$as_me: failed program was:" >&5
12227 sed 's/^/| /' conftest.$ac_ext >&5
12230 rm -f conftest.err conftest.$ac_objext \
12231 conftest$ac_exeext conftest.$ac_ext
12232 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12234 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12236 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"
12238 if test "$host_cpu" = ia64; then
12239 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12240 allow_undefined_flag_CXX="-z nodefs"
12241 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"
12243 # Determine the default libpath from the value encoded in an empty executable.
12244 cat >conftest.$ac_ext <<_ACEOF
12247 cat confdefs.h >>conftest.$ac_ext
12248 cat >>conftest.$ac_ext <<_ACEOF
12249 /* end confdefs.h. */
12259 rm -f conftest.$ac_objext conftest$ac_exeext
12260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12261 (eval $ac_link) 2>conftest.er1
12263 grep -v '^ *+' conftest.er1 >conftest.err
12265 cat conftest.err >&5
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 (exit $ac_status); } &&
12268 { ac_try='test -z "$ac_cxx_werror_flag"
12269 || test ! -s conftest.err'
12270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12271 (eval $ac_try) 2>&5
12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 (exit $ac_status); }; } &&
12275 { ac_try='test -s conftest$ac_exeext'
12276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12277 (eval $ac_try) 2>&5
12279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280 (exit $ac_status); }; }; then
12282 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12284 # Check for a 64-bit object if we didn't find anything.
12285 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; }
12288 echo "$as_me: failed program was:" >&5
12289 sed 's/^/| /' conftest.$ac_ext >&5
12292 rm -f conftest.err conftest.$ac_objext \
12293 conftest$ac_exeext conftest.$ac_ext
12294 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12296 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12297 # Warning - without using the other run time loading flags,
12298 # -berok will link without error, but may produce a broken library.
12299 no_undefined_flag_CXX=' ${wl}-bernotok'
12300 allow_undefined_flag_CXX=' ${wl}-berok'
12301 # -bexpall does not export symbols beginning with underscore (_)
12302 always_export_symbols_CXX=yes
12303 # Exported symbols can be pulled into shared objects from archives
12304 whole_archive_flag_spec_CXX=' '
12305 archive_cmds_need_lc_CXX=yes
12306 # This is similar to how AIX traditionally builds it's shared libraries.
12307 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'
12312 case $cc_basename in
12314 # FIXME: insert proper C++ library support
12321 cygwin* | mingw* | pw32*)
12322 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12323 # as there is no search path for DLLs.
12324 hardcode_libdir_flag_spec_CXX='-L$libdir'
12325 allow_undefined_flag_CXX=unsupported
12326 always_export_symbols_CXX=no
12327 enable_shared_with_static_runtimes_CXX=yes
12329 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12330 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'
12331 # If the export-symbols file already is a .def file (1st line
12332 # is EXPORTS), use it as is; otherwise, prepend...
12333 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12334 cp $export_symbols $output_objdir/$soname.def;
12336 echo EXPORTS > $output_objdir/$soname.def;
12337 cat $export_symbols >> $output_objdir/$soname.def;
12339 $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'
12344 darwin* | rhapsody*)
12346 rhapsody* | darwin1.[012])
12347 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12350 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12351 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12353 case ${MACOSX_DEPLOYMENT_TARGET} in
12355 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12358 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12364 archive_cmds_need_lc_CXX=no
12365 hardcode_direct_CXX=no
12366 hardcode_automatic_CXX=yes
12367 hardcode_shlibpath_var_CXX=unsupported
12368 whole_archive_flag_spec_CXX=''
12369 link_all_deplibs_CXX=yes
12371 if test "$GXX" = yes ; then
12372 lt_int_apple_cc_single_mod=no
12373 output_verbose_link_cmd='echo'
12374 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12375 lt_int_apple_cc_single_mod=yes
12377 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12378 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12380 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'
12382 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12383 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12384 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12385 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}'
12387 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}'
12389 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}'
12391 case $cc_basename in
12393 output_verbose_link_cmd='echo'
12394 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'
12395 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12396 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12397 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}'
12398 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}'
12408 case $cc_basename in
12410 # FIXME: insert proper C++ library support
12414 # Green Hills C++ Compiler
12415 # FIXME: insert proper C++ library support
12419 # FIXME: insert proper C++ library support
12425 # C++ shared libraries reported to be fairly broken before switch to ELF
12429 archive_cmds_need_lc_CXX=no
12431 freebsd* | kfreebsd*-gnu | dragonfly*)
12432 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12439 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12440 hardcode_libdir_separator_CXX=:
12441 export_dynamic_flag_spec_CXX='${wl}-E'
12442 hardcode_direct_CXX=yes
12443 hardcode_minus_L_CXX=yes # Not in the search PATH,
12444 # but as the default
12445 # location of the library.
12447 case $cc_basename in
12449 # FIXME: insert proper C++ library support
12453 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'
12454 # Commands to make compiler produce verbose output that lists
12455 # what "hidden" libraries, object files and flags are used when
12456 # linking a shared library.
12458 # There doesn't appear to be a way to prevent this compiler from
12459 # explicitly linking system object files so we need to strip them
12460 # from the output so that they don't get included in the library
12462 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'
12465 if test "$GXX" = yes; then
12466 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'
12468 # FIXME: insert proper C++ library support
12475 if test $with_gnu_ld = no; then
12476 case "$host_cpu" in
12478 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12479 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12480 hardcode_libdir_separator_CXX=:
12483 hardcode_libdir_flag_spec_CXX='-L$libdir'
12486 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12487 hardcode_libdir_separator_CXX=:
12488 export_dynamic_flag_spec_CXX='${wl}-E'
12492 case "$host_cpu" in
12494 hardcode_direct_CXX=no
12495 hardcode_shlibpath_var_CXX=no
12498 hardcode_direct_CXX=no
12499 hardcode_shlibpath_var_CXX=no
12500 hardcode_minus_L_CXX=yes # Not in the search PATH,
12501 # but as the default
12502 # location of the library.
12505 hardcode_direct_CXX=yes
12506 hardcode_minus_L_CXX=yes # Not in the search PATH,
12507 # but as the default
12508 # location of the library.
12512 case $cc_basename in
12514 # FIXME: insert proper C++ library support
12518 case "$host_cpu" in
12520 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12523 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12526 # Commands to make compiler produce verbose output that lists
12527 # what "hidden" libraries, object files and flags are used when
12528 # linking a shared library.
12530 # There doesn't appear to be a way to prevent this compiler from
12531 # explicitly linking system object files so we need to strip them
12532 # from the output so that they don't get included in the library
12534 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'
12537 if test "$GXX" = yes; then
12538 if test $with_gnu_ld = no; then
12539 case "$host_cpu" in
12541 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12544 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'
12549 # FIXME: insert proper C++ library support
12556 case $cc_basename in
12559 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'
12561 # Archives containing C++ object files must be created using
12562 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12563 # necessary to make sure instantiated templates are included
12565 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12568 if test "$GXX" = yes; then
12569 if test "$with_gnu_ld" = no; then
12570 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'
12572 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'
12575 link_all_deplibs_CXX=yes
12578 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12579 hardcode_libdir_separator_CXX=:
12582 case $cc_basename in
12584 # Kuck and Associates, Inc. (KAI) C++ Compiler
12586 # KCC will only create a shared library if the output file
12587 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12588 # to its proper name (with version) after linking.
12589 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'
12590 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'
12591 # Commands to make compiler produce verbose output that lists
12592 # what "hidden" libraries, object files and flags are used when
12593 # linking a shared library.
12595 # There doesn't appear to be a way to prevent this compiler from
12596 # explicitly linking system object files so we need to strip them
12597 # from the output so that they don't get included in the library
12599 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'
12601 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12602 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12604 # Archives containing C++ object files must be created using
12605 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12606 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12611 # version 8.0 and above of icpc choke on multiply defined symbols
12612 # if we add $predep_objects and $postdep_objects, however 7.1 and
12613 # earlier do not add the objects themselves.
12614 case `$CC -V 2>&1` in
12616 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12617 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'
12619 *) # Version 8.0 or newer
12622 ia64*) tmp_idyn=' -i_dynamic';;
12624 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12625 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'
12628 archive_cmds_need_lc_CXX=no
12629 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12630 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12631 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12634 # Portland Group C++ compiler
12635 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12636 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'
12638 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12639 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12640 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'
12644 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12645 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'
12647 runpath_var=LD_RUN_PATH
12648 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12649 hardcode_libdir_separator_CXX=:
12651 # Commands to make compiler produce verbose output that lists
12652 # what "hidden" libraries, object files and flags are used when
12653 # linking a shared library.
12655 # There doesn't appear to be a way to prevent this compiler from
12656 # explicitly linking system object files so we need to strip them
12657 # from the output so that they don't get included in the library
12659 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'
12664 # FIXME: insert proper C++ library support
12668 # FIXME: insert proper C++ library support
12672 case $cc_basename in
12674 # FIXME: insert proper C++ library support
12678 # FIXME: insert proper C++ library support
12684 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12685 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12687 hardcode_libdir_flag_spec_CXX='-R$libdir'
12688 hardcode_direct_CXX=yes
12689 hardcode_shlibpath_var_CXX=no
12691 # Workaround some broken pre-1.5 toolchains
12692 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12695 # C++ shared libraries are fairly broken
12699 hardcode_direct_CXX=yes
12700 hardcode_shlibpath_var_CXX=no
12701 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12702 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12703 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12704 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12705 export_dynamic_flag_spec_CXX='${wl}-E'
12706 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12708 output_verbose_link_cmd='echo'
12711 case $cc_basename in
12713 # Kuck and Associates, Inc. (KAI) C++ Compiler
12715 # KCC will only create a shared library if the output file
12716 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12717 # to its proper name (with version) after linking.
12718 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'
12720 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12721 hardcode_libdir_separator_CXX=:
12723 # Archives containing C++ object files must be created using
12724 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12725 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12729 # Rational C++ 2.4.1
12730 # FIXME: insert proper C++ library support
12734 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12735 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'
12737 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12738 hardcode_libdir_separator_CXX=:
12740 # Commands to make compiler produce verbose output that lists
12741 # what "hidden" libraries, object files and flags are used when
12742 # linking a shared library.
12744 # There doesn't appear to be a way to prevent this compiler from
12745 # explicitly linking system object files so we need to strip them
12746 # from the output so that they don't get included in the library
12748 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'
12751 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12752 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12753 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'
12755 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12756 hardcode_libdir_separator_CXX=:
12758 # Commands to make compiler produce verbose output that lists
12759 # what "hidden" libraries, object files and flags are used when
12760 # linking a shared library.
12761 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12764 # FIXME: insert proper C++ library support
12771 case $cc_basename in
12773 # Kuck and Associates, Inc. (KAI) C++ Compiler
12775 # KCC will only create a shared library if the output file
12776 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12777 # to its proper name (with version) after linking.
12778 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'
12780 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12781 hardcode_libdir_separator_CXX=:
12783 # Archives containing C++ object files must be created using
12784 # the KAI C++ compiler.
12785 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12788 # Rational C++ 2.4.1
12789 # FIXME: insert proper C++ library support
12793 allow_undefined_flag_CXX=' -expect_unresolved \*'
12794 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'
12795 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12796 echo "-hidden">> $lib.exp~
12797 $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~
12800 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12801 hardcode_libdir_separator_CXX=:
12803 # Commands to make compiler produce verbose output that lists
12804 # what "hidden" libraries, object files and flags are used when
12805 # linking a shared library.
12807 # There doesn't appear to be a way to prevent this compiler from
12808 # explicitly linking system object files so we need to strip them
12809 # from the output so that they don't get included in the library
12811 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'
12814 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12815 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12816 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'
12818 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12819 hardcode_libdir_separator_CXX=:
12821 # Commands to make compiler produce verbose output that lists
12822 # what "hidden" libraries, object files and flags are used when
12823 # linking a shared library.
12824 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12827 # FIXME: insert proper C++ library support
12834 # FIXME: insert proper C++ library support
12838 archive_cmds_need_lc_CXX=no
12839 case $cc_basename in
12841 # FIXME: insert proper C++ library support
12845 # FIXME: insert proper C++ library support
12851 case $cc_basename in
12854 # FIXME: insert proper C++ library support
12859 # FIXME: insert proper C++ library support
12863 # FIXME: insert proper C++ library support
12869 case $cc_basename in
12871 # Sun C++ 4.2, 5.x and Centerline C++
12872 no_undefined_flag_CXX=' -zdefs'
12873 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12874 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12875 $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'
12877 hardcode_libdir_flag_spec_CXX='-R$libdir'
12878 hardcode_shlibpath_var_CXX=no
12880 solaris2.[0-5] | solaris2.[0-5].*) ;;
12882 # The C++ compiler is used as linker so we must use $wl
12883 # flag to pass the commands to the underlying system
12884 # linker. We must also pass each convience library through
12885 # to the system linker between allextract/defaultextract.
12886 # The C++ compiler will combine linker options so we
12887 # cannot just pass the convience library names through
12889 # Supported since Solaris 2.6 (maybe 2.5.1?)
12890 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'
12893 link_all_deplibs_CXX=yes
12895 # Commands to make compiler produce verbose output that lists
12896 # what "hidden" libraries, object files and flags are used when
12897 # linking a shared library.
12899 # There doesn't appear to be a way to prevent this compiler from
12900 # explicitly linking system object files so we need to strip them
12901 # from the output so that they don't get included in the library
12903 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'
12905 # Archives containing C++ object files must be created using
12906 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12907 # necessary to make sure instantiated templates are included
12909 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12912 # Green Hills C++ Compiler
12913 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12915 # The C++ compiler must be used to create the archive.
12916 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12919 # GNU C++ compiler with Solaris linker
12920 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12921 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12922 if $CC --version | grep -v '^2\.7' > /dev/null; then
12923 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12924 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12925 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12927 # Commands to make compiler produce verbose output that lists
12928 # what "hidden" libraries, object files and flags are used when
12929 # linking a shared library.
12930 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12932 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12934 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12935 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12936 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12938 # Commands to make compiler produce verbose output that lists
12939 # what "hidden" libraries, object files and flags are used when
12940 # linking a shared library.
12941 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12944 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12949 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12950 archive_cmds_need_lc_CXX=no
12953 case $cc_basename in
12955 # NonStop-UX NCC 3.20
12956 # FIXME: insert proper C++ library support
12960 # FIXME: insert proper C++ library support
12966 # FIXME: insert proper C++ library support
12970 # FIXME: insert proper C++ library support
12974 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12975 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12976 test "$ld_shlibs_CXX" = no && can_build_shared=no
12982 cat > conftest.$ac_ext <<EOF
12986 Foo (void) { a = 0; }
12992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12993 (eval $ac_compile) 2>&5
12995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996 (exit $ac_status); }; then
12997 # Parse the compiler output and extract the necessary
12998 # objects, libraries and library flags.
13000 # Sentinel used to keep track of whether or not we are before
13001 # the conftest object file.
13002 pre_test_object_deps_done=no
13004 # The `*' in the case matches for architectures that use `case' in
13005 # $output_verbose_cmd can trigger glob expansion during the loop
13006 # eval without this substitution.
13007 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
13009 for p in `eval $output_verbose_link_cmd`; do
13013 # Some compilers place space between "-{L,R}" and the path.
13014 # Remove the space.
13015 if test $p = "-L" \
13016 || test $p = "-R"; then
13023 if test "$pre_test_object_deps_done" = no; then
13026 # Internal compiler library paths should come after those
13027 # provided the user. The postdeps already come after the
13028 # user supplied libs so there is no need to process them.
13029 if test -z "$compiler_lib_search_path_CXX"; then
13030 compiler_lib_search_path_CXX="${prev}${p}"
13032 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13035 # The "-l" case would never come before the object being
13036 # linked, so don't bother handling this case.
13039 if test -z "$postdeps_CXX"; then
13040 postdeps_CXX="${prev}${p}"
13042 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13048 # This assumes that the test object file only shows up
13049 # once in the compiler output.
13050 if test "$p" = "conftest.$objext"; then
13051 pre_test_object_deps_done=yes
13055 if test "$pre_test_object_deps_done" = no; then
13056 if test -z "$predep_objects_CXX"; then
13057 predep_objects_CXX="$p"
13059 predep_objects_CXX="$predep_objects_CXX $p"
13062 if test -z "$postdep_objects_CXX"; then
13063 postdep_objects_CXX="$p"
13065 postdep_objects_CXX="$postdep_objects_CXX $p"
13070 *) ;; # Ignore the rest.
13078 echo "libtool.m4: error: problem compiling CXX test program"
13081 $rm -f confest.$objext
13083 case " $postdeps_CXX " in
13084 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13087 lt_prog_compiler_wl_CXX=
13088 lt_prog_compiler_pic_CXX=
13089 lt_prog_compiler_static_CXX=
13091 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13092 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13094 # C++ specific cases for pic, static, wl, etc.
13095 if test "$GXX" = yes; then
13096 lt_prog_compiler_wl_CXX='-Wl,'
13097 lt_prog_compiler_static_CXX='-static'
13101 # All AIX code is PIC.
13102 if test "$host_cpu" = ia64; then
13103 # AIX 5 now supports IA64 processor
13104 lt_prog_compiler_static_CXX='-Bstatic'
13108 # FIXME: we need at least 68020 code to build shared libraries, but
13109 # adding the `-m68020' flag to GCC prevents building anything better,
13111 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13113 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13114 # PIC is the default for these OSes.
13116 mingw* | os2* | pw32*)
13117 # This hack is so that the source file can tell whether it is being
13118 # built for inclusion in a dll (and should export symbols for example).
13119 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13121 darwin* | rhapsody*)
13122 # PIC is the default on this platform
13123 # Common symbols not allowed in MH_DYLIB files
13124 lt_prog_compiler_pic_CXX='-fno-common'
13127 # DJGPP does not support shared libraries at all
13128 lt_prog_compiler_pic_CXX=
13131 if test -d /usr/nec; then
13132 lt_prog_compiler_pic_CXX=-Kconform_pic
13136 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13137 # not for PA HP-UX.
13138 case "$host_cpu" in
13142 lt_prog_compiler_pic_CXX='-fPIC'
13147 lt_prog_compiler_pic_CXX='-fPIC'
13153 # All AIX code is PIC.
13154 if test "$host_cpu" = ia64; then
13155 # AIX 5 now supports IA64 processor
13156 lt_prog_compiler_static_CXX='-Bstatic'
13158 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13162 case $cc_basename in
13164 # Green Hills C++ Compiler
13165 # _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"
13170 # PIC is the default on this platform
13171 # Common symbols not allowed in MH_DYLIB files
13172 case $cc_basename in
13174 lt_prog_compiler_pic_CXX='-qnocommon'
13175 lt_prog_compiler_wl_CXX='-Wl,'
13180 case $cc_basename in
13182 lt_prog_compiler_pic_CXX='-KPIC'
13185 # Green Hills C++ Compiler
13186 lt_prog_compiler_pic_CXX='-pic'
13192 freebsd* | kfreebsd*-gnu | dragonfly*)
13193 # FreeBSD uses GNU C++
13195 hpux9* | hpux10* | hpux11*)
13196 case $cc_basename in
13198 lt_prog_compiler_wl_CXX='-Wl,'
13199 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13200 if test "$host_cpu" != ia64; then
13201 lt_prog_compiler_pic_CXX='+Z'
13205 lt_prog_compiler_wl_CXX='-Wl,'
13206 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13207 case "$host_cpu" in
13212 lt_prog_compiler_pic_CXX='+Z'
13220 irix5* | irix6* | nonstopux*)
13221 case $cc_basename in
13223 lt_prog_compiler_wl_CXX='-Wl,'
13224 lt_prog_compiler_static_CXX='-non_shared'
13225 # CC pic flag -KPIC is the default.
13232 case $cc_basename in
13235 lt_prog_compiler_wl_CXX='--backend -Wl,'
13236 lt_prog_compiler_pic_CXX='-fPIC'
13240 lt_prog_compiler_wl_CXX='-Wl,'
13241 lt_prog_compiler_pic_CXX='-KPIC'
13242 lt_prog_compiler_static_CXX='-static'
13245 # Portland Group C++ compiler.
13246 lt_prog_compiler_wl_CXX='-Wl,'
13247 lt_prog_compiler_pic_CXX='-fpic'
13248 lt_prog_compiler_static_CXX='-static'
13252 # Make sure the PIC flag is empty. It appears that all Alpha
13253 # Linux and Compaq Tru64 Unix objects are PIC.
13254 lt_prog_compiler_pic_CXX=
13255 lt_prog_compiler_static_CXX='-non_shared'
13266 case $cc_basename in
13268 lt_prog_compiler_pic_CXX='-W c,exportall'
13276 osf3* | osf4* | osf5*)
13277 case $cc_basename in
13279 lt_prog_compiler_wl_CXX='--backend -Wl,'
13282 # Rational C++ 2.4.1
13283 lt_prog_compiler_pic_CXX='-pic'
13286 # Digital/Compaq C++
13287 lt_prog_compiler_wl_CXX='-Wl,'
13288 # Make sure the PIC flag is empty. It appears that all Alpha
13289 # Linux and Compaq Tru64 Unix objects are PIC.
13290 lt_prog_compiler_pic_CXX=
13291 lt_prog_compiler_static_CXX='-non_shared'
13300 case $cc_basename in
13302 lt_prog_compiler_pic_CXX='-fPIC'
13309 case $cc_basename in
13311 # Sun C++ 4.2, 5.x and Centerline C++
13312 lt_prog_compiler_pic_CXX='-KPIC'
13313 lt_prog_compiler_static_CXX='-Bstatic'
13314 lt_prog_compiler_wl_CXX='-Qoption ld '
13317 # Green Hills C++ Compiler
13318 lt_prog_compiler_pic_CXX='-PIC'
13325 case $cc_basename in
13328 lt_prog_compiler_pic_CXX='-pic'
13329 lt_prog_compiler_static_CXX='-Bstatic'
13333 lt_prog_compiler_pic_CXX='-pic'
13340 case $cc_basename in
13342 # NonStop-UX NCC 3.20
13343 lt_prog_compiler_pic_CXX='-KPIC'
13354 lt_prog_compiler_can_build_shared_CXX=no
13359 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13360 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13363 # Check to make sure the PIC flag actually works.
13365 if test -n "$lt_prog_compiler_pic_CXX"; then
13367 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13368 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13369 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13370 echo $ECHO_N "(cached) $ECHO_C" >&6
13372 lt_prog_compiler_pic_works_CXX=no
13373 ac_outfile=conftest.$ac_objext
13374 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13375 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13376 # Insert the option either (1) after the last *FLAGS variable, or
13377 # (2) before a word containing "conftest.", or (3) at the end.
13378 # Note that $ac_compile itself does not contain backslashes and begins
13379 # with a dollar sign (not a hyphen), so the echo should work correctly.
13380 # The option is referenced via a variable to avoid confusing sed.
13381 lt_compile=`echo "$ac_compile" | $SED \
13382 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13383 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13384 -e 's:$: $lt_compiler_flag:'`
13385 (eval echo "\"\$as_me:13385: $lt_compile\"" >&5)
13386 (eval "$lt_compile" 2>conftest.err)
13388 cat conftest.err >&5
13389 echo "$as_me:13389: \$? = $ac_status" >&5
13390 if (exit $ac_status) && test -s "$ac_outfile"; then
13391 # The compiler can only warn and ignore the option if not recognized
13392 # So say no if there are warnings other than the usual output.
13393 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13394 $SED '/^$/d' conftest.err >conftest.er2
13395 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13396 lt_prog_compiler_pic_works_CXX=yes
13402 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13403 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13405 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13406 case $lt_prog_compiler_pic_CXX in
13408 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13411 lt_prog_compiler_pic_CXX=
13412 lt_prog_compiler_can_build_shared_CXX=no
13417 # For platforms which do not support PIC, -DPIC is meaningless:
13419 lt_prog_compiler_pic_CXX=
13422 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13426 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13427 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13428 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13429 echo $ECHO_N "(cached) $ECHO_C" >&6
13431 lt_cv_prog_compiler_c_o_CXX=no
13432 $rm -r conftest 2>/dev/null
13436 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13438 lt_compiler_flag="-o out/conftest2.$ac_objext"
13439 # Insert the option either (1) after the last *FLAGS variable, or
13440 # (2) before a word containing "conftest.", or (3) at the end.
13441 # Note that $ac_compile itself does not contain backslashes and begins
13442 # with a dollar sign (not a hyphen), so the echo should work correctly.
13443 lt_compile=`echo "$ac_compile" | $SED \
13444 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13445 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13446 -e 's:$: $lt_compiler_flag:'`
13447 (eval echo "\"\$as_me:13447: $lt_compile\"" >&5)
13448 (eval "$lt_compile" 2>out/conftest.err)
13450 cat out/conftest.err >&5
13451 echo "$as_me:13451: \$? = $ac_status" >&5
13452 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13454 # The compiler can only warn and ignore the option if not recognized
13455 # So say no if there are warnings
13456 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13457 $SED '/^$/d' out/conftest.err >out/conftest.er2
13458 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13459 lt_cv_prog_compiler_c_o_CXX=yes
13464 # SGI C++ compiler will create directory out/ii_files/ for
13465 # template instantiation
13466 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13467 $rm out/* && rmdir out
13473 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13474 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13477 hard_links="nottested"
13478 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13479 # do not overwrite the value of need_locks provided by the user
13480 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13481 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13484 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13486 ln conftest.a conftest.b 2>&5 || hard_links=no
13487 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13488 echo "$as_me:$LINENO: result: $hard_links" >&5
13489 echo "${ECHO_T}$hard_links" >&6
13490 if test "$hard_links" = no; then
13491 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13492 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13499 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13500 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13502 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13505 # If we're using GNU nm, then we don't want the "-C" option.
13506 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13507 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13508 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'
13510 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'
13514 export_symbols_cmds_CXX="$ltdll_cmds"
13517 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'
13520 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13524 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13525 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13526 test "$ld_shlibs_CXX" = no && can_build_shared=no
13528 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13529 if test "$GCC" = yes; then
13530 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13534 # Do we need to explicitly link libc?
13536 case "x$archive_cmds_need_lc_CXX" in
13538 # Assume -lc should be added
13539 archive_cmds_need_lc_CXX=yes
13541 if test "$enable_shared" = yes && test "$GCC" = yes; then
13542 case $archive_cmds_CXX in
13544 # FIXME: we may have to deal with multi-command sequences.
13547 # Test whether the compiler implicitly links with -lc since on some
13548 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13549 # to ld, don't add -lc before -lgcc.
13550 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13551 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13553 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13556 (eval $ac_compile) 2>&5
13558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 (exit $ac_status); } 2>conftest.err; then
13562 libobjs=conftest.$ac_objext
13564 wl=$lt_prog_compiler_wl_CXX
13570 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13571 allow_undefined_flag_CXX=
13572 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13573 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); }
13578 archive_cmds_need_lc_CXX=no
13580 archive_cmds_need_lc_CXX=yes
13582 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13584 cat conftest.err 1>&5
13587 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13588 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13595 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13596 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13597 library_names_spec=
13598 libname_spec='lib$name'
13602 postuninstall_cmds=
13606 shlibpath_overrides_runpath=unknown
13608 dynamic_linker="$host_os ld.so"
13609 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13610 if test "$GCC" = yes; then
13611 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13612 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13613 # if the path contains ";" then we assume it to be the separator
13614 # otherwise default to the standard path separator (i.e. ":") - it is
13615 # assumed that no part of a normal pathname contains ";" but that should
13616 # okay in the real world where ";" in dirpaths is itself problematic.
13617 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13619 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13622 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13624 need_lib_prefix=unknown
13625 hardcode_into_libs=no
13627 # when you set need_version to no, make sure it does not cause -set_version
13628 # flags to be left without arguments
13629 need_version=unknown
13634 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13635 shlibpath_var=LIBPATH
13637 # AIX 3 has no versioning support, so we append a major version to the name.
13638 soname_spec='${libname}${release}${shared_ext}$major'
13645 hardcode_into_libs=yes
13646 if test "$host_cpu" = ia64; then
13647 # AIX 5 supports IA64
13648 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13649 shlibpath_var=LD_LIBRARY_PATH
13651 # With GCC up to 2.95.x, collect2 would create an import file
13652 # for dependence libraries. The import file would start with
13653 # the line `#! .'. This would cause the generated library to
13654 # depend on `.', always an invalid library. This was fixed in
13655 # development snapshots of GCC prior to 3.0.
13657 aix4 | aix4.[01] | aix4.[01].*)
13658 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13660 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13663 can_build_shared=no
13667 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13668 # soname into executable. Probably we can add versioning support to
13669 # collect2, so additional links can be useful in future.
13670 if test "$aix_use_runtimelinking" = yes; then
13671 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13672 # instead of lib<name>.a to let people know that these are not
13673 # typical AIX shared libraries.
13674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13676 # We preserve .a as extension for shared libraries through AIX4.2
13677 # and later when we are not doing run time linking.
13678 library_names_spec='${libname}${release}.a $libname.a'
13679 soname_spec='${libname}${release}${shared_ext}$major'
13681 shlibpath_var=LIBPATH
13686 library_names_spec='$libname.ixlibrary $libname.a'
13687 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13688 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'
13692 library_names_spec='${libname}${shared_ext}'
13693 dynamic_linker="$host_os ld.so"
13694 shlibpath_var=LIBRARY_PATH
13700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13701 soname_spec='${libname}${release}${shared_ext}$major'
13702 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13703 shlibpath_var=LD_LIBRARY_PATH
13704 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13705 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13706 # the default ld.so.conf also contains /usr/contrib/lib and
13707 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13708 # libtool to hard-code these into programs
13711 cygwin* | mingw* | pw32*)
13712 version_type=windows
13717 case $GCC,$host_os in
13718 yes,cygwin* | yes,mingw* | yes,pw32*)
13719 library_names_spec='$libname.dll.a'
13720 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13721 postinstall_cmds='base_file=`basename \${file}`~
13722 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13723 dldir=$destdir/`dirname \$dlpath`~
13724 test -d \$dldir || mkdir -p \$dldir~
13725 $install_prog $dir/$dlname \$dldir/$dlname'
13726 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13727 dlpath=$dir/\$dldll~
13729 shlibpath_overrides_runpath=yes
13733 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13734 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13735 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13738 # MinGW DLLs use traditional 'lib' prefix
13739 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13740 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13741 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13742 # It is most probably a Windows format PATH printed by
13743 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13744 # path with ; separators, and with drive letters. We can handle the
13745 # drive letters (cygwin fileutils understands them), so leave them,
13746 # especially as we might pass files found there to a mingw objdump,
13747 # which wouldn't understand a cygwinified path. Ahh.
13748 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13750 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13754 # pw32 DLLs use 'pw' prefix rather than 'lib'
13755 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13761 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13764 dynamic_linker='Win32 ld.exe'
13765 # FIXME: first we should search . and the directory the executable is in
13769 darwin* | rhapsody*)
13770 dynamic_linker="$host_os dyld"
13771 version_type=darwin
13774 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13775 soname_spec='${libname}${release}${major}$shared_ext'
13776 shlibpath_overrides_runpath=yes
13777 shlibpath_var=DYLD_LIBRARY_PATH
13778 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13779 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13780 if test "$GCC" = yes; then
13781 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"`
13783 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13785 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13793 soname_spec='${libname}${release}${shared_ext}$major'
13794 shlibpath_var=LD_LIBRARY_PATH
13805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13806 soname_spec='${libname}${release}${shared_ext}$major'
13807 shlibpath_var=LD_LIBRARY_PATH
13808 shlibpath_overrides_runpath=no
13809 hardcode_into_libs=yes
13810 dynamic_linker='GNU ld.so'
13813 freebsd* | dragonfly*)
13814 # DragonFly does not have aout. When/if they implement a new
13815 # versioning mechanism, adjust this.
13816 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13817 version_type=freebsd-$objformat
13818 case $version_type in
13820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13825 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13829 shlibpath_var=LD_LIBRARY_PATH
13832 shlibpath_overrides_runpath=yes
13834 freebsd3.[01]* | freebsdelf3.[01]*)
13835 shlibpath_overrides_runpath=yes
13836 hardcode_into_libs=yes
13839 shlibpath_overrides_runpath=no
13840 hardcode_into_libs=yes
13849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13850 soname_spec='${libname}${release}${shared_ext}$major'
13851 shlibpath_var=LD_LIBRARY_PATH
13852 hardcode_into_libs=yes
13855 hpux9* | hpux10* | hpux11*)
13856 # Give a soname corresponding to the major version so that dld.sl refuses to
13857 # link against other versions.
13861 case "$host_cpu" in
13864 hardcode_into_libs=yes
13865 dynamic_linker="$host_os dld.so"
13866 shlibpath_var=LD_LIBRARY_PATH
13867 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13869 soname_spec='${libname}${release}${shared_ext}$major'
13870 if test "X$HPUX_IA64_MODE" = X32; then
13871 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13873 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13875 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13879 hardcode_into_libs=yes
13880 dynamic_linker="$host_os dld.sl"
13881 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13882 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13884 soname_spec='${libname}${release}${shared_ext}$major'
13885 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13886 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13890 dynamic_linker="$host_os dld.sl"
13891 shlibpath_var=SHLIB_PATH
13892 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13894 soname_spec='${libname}${release}${shared_ext}$major'
13897 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13898 postinstall_cmds='chmod 555 $lib'
13901 irix5* | irix6* | nonstopux*)
13903 nonstopux*) version_type=nonstopux ;;
13905 if test "$lt_cv_prog_gnu_ld" = yes; then
13913 soname_spec='${libname}${release}${shared_ext}$major'
13914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13916 irix5* | nonstopux*)
13917 libsuff= shlibsuff=
13920 case $LD in # libtool.m4 will add one of these switches to LD
13921 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13922 libsuff= shlibsuff= libmagic=32-bit;;
13923 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13924 libsuff=32 shlibsuff=N32 libmagic=N32;;
13925 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13926 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13927 *) libsuff= shlibsuff= libmagic=never-match;;
13931 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13932 shlibpath_overrides_runpath=no
13933 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13934 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13935 hardcode_into_libs=yes
13938 # No shared lib support for Linux oldld, aout, or coff.
13939 linux*oldld* | linux*aout* | linux*coff*)
13943 # This must be Linux ELF.
13948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13949 soname_spec='${libname}${release}${shared_ext}$major'
13950 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13951 shlibpath_var=LD_LIBRARY_PATH
13952 shlibpath_overrides_runpath=no
13953 # This implies no fast_install, which is unacceptable.
13954 # Some rework will be needed to allow for fast_install
13955 # before this can be enabled.
13956 hardcode_into_libs=yes
13958 # Append ld.so.conf contents to the search path
13959 if test -f /etc/ld.so.conf; then
13960 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' ' '`
13961 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13964 # We used to test for /lib/ld.so.1 and disable shared libraries on
13965 # powerpc, because MkLinux only supported shared libraries with the
13966 # GNU dynamic linker. Since this was broken with cross compilers,
13967 # most powerpc-linux boxes support dynamic linking these days and
13968 # people can always --disable-shared, the test was removed, and we
13969 # assume the GNU/Linux dynamic linker is in use.
13970 dynamic_linker='GNU/Linux ld.so'
13977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13978 soname_spec='${libname}${release}${shared_ext}$major'
13979 shlibpath_var=LD_LIBRARY_PATH
13980 shlibpath_overrides_runpath=no
13981 hardcode_into_libs=yes
13982 dynamic_linker='GNU ld.so'
13989 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13991 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13992 dynamic_linker='NetBSD (a.out) ld.so'
13994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13995 soname_spec='${libname}${release}${shared_ext}$major'
13996 dynamic_linker='NetBSD ld.elf_so'
13998 shlibpath_var=LD_LIBRARY_PATH
13999 shlibpath_overrides_runpath=yes
14000 hardcode_into_libs=yes
14005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14006 shlibpath_var=LD_LIBRARY_PATH
14007 shlibpath_overrides_runpath=yes
14014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14015 soname_spec='${libname}${release}${shared_ext}$major'
14016 shlibpath_var=LD_LIBRARY_PATH
14017 shlibpath_overrides_runpath=yes
14023 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14025 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14026 *) need_version=no ;;
14028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14029 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14030 shlibpath_var=LD_LIBRARY_PATH
14031 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14033 openbsd2.[89] | openbsd2.[89].*)
14034 shlibpath_overrides_runpath=no
14037 shlibpath_overrides_runpath=yes
14041 shlibpath_overrides_runpath=yes
14046 libname_spec='$name'
14049 library_names_spec='$libname${shared_ext} $libname.a'
14050 dynamic_linker='OS/2 ld.exe'
14051 shlibpath_var=LIBPATH
14054 osf3* | osf4* | osf5*)
14058 soname_spec='${libname}${release}${shared_ext}$major'
14059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14060 shlibpath_var=LD_LIBRARY_PATH
14061 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14062 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14067 soname_spec='${libname}${release}${shared_ext}$major'
14068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14069 shlibpath_var=LD_LIBRARY_PATH
14076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14077 soname_spec='${libname}${release}${shared_ext}$major'
14078 shlibpath_var=LD_LIBRARY_PATH
14079 shlibpath_overrides_runpath=yes
14080 hardcode_into_libs=yes
14081 # ldd complains unless libraries are executable
14082 postinstall_cmds='chmod +x $lib'
14087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14088 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14089 shlibpath_var=LD_LIBRARY_PATH
14090 shlibpath_overrides_runpath=yes
14091 if test "$with_gnu_ld" = yes; then
14097 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14100 soname_spec='${libname}${release}${shared_ext}$major'
14101 shlibpath_var=LD_LIBRARY_PATH
14102 case $host_vendor in
14104 shlibpath_overrides_runpath=no
14106 export_dynamic_flag_spec='${wl}-Blargedynsym'
14107 runpath_var=LD_RUN_PATH
14115 shlibpath_overrides_runpath=no
14116 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14122 if test -d /usr/nec ;then
14124 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14125 soname_spec='$libname${shared_ext}.$major'
14126 shlibpath_var=LD_LIBRARY_PATH
14132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14133 soname_spec='${libname}${release}${shared_ext}$major'
14134 shlibpath_var=LD_LIBRARY_PATH
14141 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14142 echo "${ECHO_T}$dynamic_linker" >&6
14143 test "$dynamic_linker" = no && can_build_shared=no
14145 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14146 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14147 hardcode_action_CXX=
14148 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14149 test -n "$runpath_var_CXX" || \
14150 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14152 # We can hardcode non-existant directories.
14153 if test "$hardcode_direct_CXX" != no &&
14154 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14155 # have to relink, otherwise we might link with an installed library
14156 # when we should be linking with a yet-to-be-installed one
14157 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14158 test "$hardcode_minus_L_CXX" != no; then
14159 # Linking always hardcodes the temporary library directory.
14160 hardcode_action_CXX=relink
14162 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14163 hardcode_action_CXX=immediate
14166 # We cannot hardcode anything, or else we can only hardcode existing
14168 hardcode_action_CXX=unsupported
14170 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14171 echo "${ECHO_T}$hardcode_action_CXX" >&6
14173 if test "$hardcode_action_CXX" = relink; then
14174 # Fast installation is not supported
14175 enable_fast_install=no
14176 elif test "$shlibpath_overrides_runpath" = yes ||
14177 test "$enable_shared" = no; then
14178 # Fast installation is not necessary
14179 enable_fast_install=needless
14184 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14185 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14186 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14187 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14188 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14189 echo "$as_me:$LINENO: result: yes" >&5
14190 echo "${ECHO_T}yes" >&6
14192 # FIXME - insert some real tests, host_os isn't really good enough
14195 if test -n "$STRIP" ; then
14196 striplib="$STRIP -x"
14197 echo "$as_me:$LINENO: result: yes" >&5
14198 echo "${ECHO_T}yes" >&6
14200 echo "$as_me:$LINENO: result: no" >&5
14201 echo "${ECHO_T}no" >&6
14205 echo "$as_me:$LINENO: result: no" >&5
14206 echo "${ECHO_T}no" >&6
14211 if test "x$enable_dlopen" != xyes; then
14212 enable_dlopen=unknown
14213 enable_dlopen_self=unknown
14214 enable_dlopen_self_static=unknown
14221 lt_cv_dlopen="load_add_on"
14223 lt_cv_dlopen_self=yes
14227 lt_cv_dlopen="LoadLibrary"
14232 lt_cv_dlopen="dlopen"
14237 # if libdl is installed we need to link against it
14238 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14239 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14240 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14241 echo $ECHO_N "(cached) $ECHO_C" >&6
14243 ac_check_lib_save_LIBS=$LIBS
14245 cat >conftest.$ac_ext <<_ACEOF
14248 cat confdefs.h >>conftest.$ac_ext
14249 cat >>conftest.$ac_ext <<_ACEOF
14250 /* end confdefs.h. */
14252 /* Override any gcc2 internal prototype to avoid an error. */
14256 /* We use char because int might match the return type of a gcc2
14257 builtin and then its argument prototype would still apply. */
14267 rm -f conftest.$ac_objext conftest$ac_exeext
14268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14269 (eval $ac_link) 2>conftest.er1
14271 grep -v '^ *+' conftest.er1 >conftest.err
14273 cat conftest.err >&5
14274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); } &&
14276 { ac_try='test -z "$ac_cxx_werror_flag"
14277 || test ! -s conftest.err'
14278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14279 (eval $ac_try) 2>&5
14281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282 (exit $ac_status); }; } &&
14283 { ac_try='test -s conftest$ac_exeext'
14284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14285 (eval $ac_try) 2>&5
14287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288 (exit $ac_status); }; }; then
14289 ac_cv_lib_dl_dlopen=yes
14291 echo "$as_me: failed program was:" >&5
14292 sed 's/^/| /' conftest.$ac_ext >&5
14294 ac_cv_lib_dl_dlopen=no
14296 rm -f conftest.err conftest.$ac_objext \
14297 conftest$ac_exeext conftest.$ac_ext
14298 LIBS=$ac_check_lib_save_LIBS
14300 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14301 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14302 if test $ac_cv_lib_dl_dlopen = yes; then
14303 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14306 lt_cv_dlopen="dyld"
14308 lt_cv_dlopen_self=yes
14315 echo "$as_me:$LINENO: checking for shl_load" >&5
14316 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14317 if test "${ac_cv_func_shl_load+set}" = set; then
14318 echo $ECHO_N "(cached) $ECHO_C" >&6
14320 cat >conftest.$ac_ext <<_ACEOF
14323 cat confdefs.h >>conftest.$ac_ext
14324 cat >>conftest.$ac_ext <<_ACEOF
14325 /* end confdefs.h. */
14326 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14327 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14328 #define shl_load innocuous_shl_load
14330 /* System header to define __stub macros and hopefully few prototypes,
14331 which can conflict with char shl_load (); below.
14332 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14333 <limits.h> exists even on freestanding compilers. */
14336 # include <limits.h>
14338 # include <assert.h>
14343 /* Override any gcc2 internal prototype to avoid an error. */
14348 /* We use char because int might match the return type of a gcc2
14349 builtin and then its argument prototype would still apply. */
14351 /* The GNU C library defines this for functions which it implements
14352 to always fail with ENOSYS. Some functions are actually named
14353 something starting with __ and the normal name is an alias. */
14354 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14357 char (*f) () = shl_load;
14366 return f != shl_load;
14371 rm -f conftest.$ac_objext conftest$ac_exeext
14372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14373 (eval $ac_link) 2>conftest.er1
14375 grep -v '^ *+' conftest.er1 >conftest.err
14377 cat conftest.err >&5
14378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379 (exit $ac_status); } &&
14380 { ac_try='test -z "$ac_cxx_werror_flag"
14381 || test ! -s conftest.err'
14382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14383 (eval $ac_try) 2>&5
14385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386 (exit $ac_status); }; } &&
14387 { ac_try='test -s conftest$ac_exeext'
14388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14389 (eval $ac_try) 2>&5
14391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392 (exit $ac_status); }; }; then
14393 ac_cv_func_shl_load=yes
14395 echo "$as_me: failed program was:" >&5
14396 sed 's/^/| /' conftest.$ac_ext >&5
14398 ac_cv_func_shl_load=no
14400 rm -f conftest.err conftest.$ac_objext \
14401 conftest$ac_exeext conftest.$ac_ext
14403 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14404 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14405 if test $ac_cv_func_shl_load = yes; then
14406 lt_cv_dlopen="shl_load"
14408 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14409 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14410 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14411 echo $ECHO_N "(cached) $ECHO_C" >&6
14413 ac_check_lib_save_LIBS=$LIBS
14415 cat >conftest.$ac_ext <<_ACEOF
14418 cat confdefs.h >>conftest.$ac_ext
14419 cat >>conftest.$ac_ext <<_ACEOF
14420 /* end confdefs.h. */
14422 /* Override any gcc2 internal prototype to avoid an error. */
14426 /* We use char because int might match the return type of a gcc2
14427 builtin and then its argument prototype would still apply. */
14437 rm -f conftest.$ac_objext conftest$ac_exeext
14438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14439 (eval $ac_link) 2>conftest.er1
14441 grep -v '^ *+' conftest.er1 >conftest.err
14443 cat conftest.err >&5
14444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445 (exit $ac_status); } &&
14446 { ac_try='test -z "$ac_cxx_werror_flag"
14447 || test ! -s conftest.err'
14448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14449 (eval $ac_try) 2>&5
14451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14452 (exit $ac_status); }; } &&
14453 { ac_try='test -s conftest$ac_exeext'
14454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14455 (eval $ac_try) 2>&5
14457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14458 (exit $ac_status); }; }; then
14459 ac_cv_lib_dld_shl_load=yes
14461 echo "$as_me: failed program was:" >&5
14462 sed 's/^/| /' conftest.$ac_ext >&5
14464 ac_cv_lib_dld_shl_load=no
14466 rm -f conftest.err conftest.$ac_objext \
14467 conftest$ac_exeext conftest.$ac_ext
14468 LIBS=$ac_check_lib_save_LIBS
14470 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14471 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14472 if test $ac_cv_lib_dld_shl_load = yes; then
14473 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14475 echo "$as_me:$LINENO: checking for dlopen" >&5
14476 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14477 if test "${ac_cv_func_dlopen+set}" = set; then
14478 echo $ECHO_N "(cached) $ECHO_C" >&6
14480 cat >conftest.$ac_ext <<_ACEOF
14483 cat confdefs.h >>conftest.$ac_ext
14484 cat >>conftest.$ac_ext <<_ACEOF
14485 /* end confdefs.h. */
14486 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14487 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14488 #define dlopen innocuous_dlopen
14490 /* System header to define __stub macros and hopefully few prototypes,
14491 which can conflict with char dlopen (); below.
14492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14493 <limits.h> exists even on freestanding compilers. */
14496 # include <limits.h>
14498 # include <assert.h>
14503 /* Override any gcc2 internal prototype to avoid an error. */
14508 /* We use char because int might match the return type of a gcc2
14509 builtin and then its argument prototype would still apply. */
14511 /* The GNU C library defines this for functions which it implements
14512 to always fail with ENOSYS. Some functions are actually named
14513 something starting with __ and the normal name is an alias. */
14514 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14517 char (*f) () = dlopen;
14526 return f != dlopen;
14531 rm -f conftest.$ac_objext conftest$ac_exeext
14532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14533 (eval $ac_link) 2>conftest.er1
14535 grep -v '^ *+' conftest.er1 >conftest.err
14537 cat conftest.err >&5
14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 (exit $ac_status); } &&
14540 { ac_try='test -z "$ac_cxx_werror_flag"
14541 || test ! -s conftest.err'
14542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14543 (eval $ac_try) 2>&5
14545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546 (exit $ac_status); }; } &&
14547 { ac_try='test -s conftest$ac_exeext'
14548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14549 (eval $ac_try) 2>&5
14551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552 (exit $ac_status); }; }; then
14553 ac_cv_func_dlopen=yes
14555 echo "$as_me: failed program was:" >&5
14556 sed 's/^/| /' conftest.$ac_ext >&5
14558 ac_cv_func_dlopen=no
14560 rm -f conftest.err conftest.$ac_objext \
14561 conftest$ac_exeext conftest.$ac_ext
14563 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14564 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14565 if test $ac_cv_func_dlopen = yes; then
14566 lt_cv_dlopen="dlopen"
14568 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14569 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14570 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14571 echo $ECHO_N "(cached) $ECHO_C" >&6
14573 ac_check_lib_save_LIBS=$LIBS
14575 cat >conftest.$ac_ext <<_ACEOF
14578 cat confdefs.h >>conftest.$ac_ext
14579 cat >>conftest.$ac_ext <<_ACEOF
14580 /* end confdefs.h. */
14582 /* Override any gcc2 internal prototype to avoid an error. */
14586 /* We use char because int might match the return type of a gcc2
14587 builtin and then its argument prototype would still apply. */
14597 rm -f conftest.$ac_objext conftest$ac_exeext
14598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14599 (eval $ac_link) 2>conftest.er1
14601 grep -v '^ *+' conftest.er1 >conftest.err
14603 cat conftest.err >&5
14604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605 (exit $ac_status); } &&
14606 { ac_try='test -z "$ac_cxx_werror_flag"
14607 || test ! -s conftest.err'
14608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14609 (eval $ac_try) 2>&5
14611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14612 (exit $ac_status); }; } &&
14613 { ac_try='test -s conftest$ac_exeext'
14614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14615 (eval $ac_try) 2>&5
14617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618 (exit $ac_status); }; }; then
14619 ac_cv_lib_dl_dlopen=yes
14621 echo "$as_me: failed program was:" >&5
14622 sed 's/^/| /' conftest.$ac_ext >&5
14624 ac_cv_lib_dl_dlopen=no
14626 rm -f conftest.err conftest.$ac_objext \
14627 conftest$ac_exeext conftest.$ac_ext
14628 LIBS=$ac_check_lib_save_LIBS
14630 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14631 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14632 if test $ac_cv_lib_dl_dlopen = yes; then
14633 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14635 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14636 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14637 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14638 echo $ECHO_N "(cached) $ECHO_C" >&6
14640 ac_check_lib_save_LIBS=$LIBS
14641 LIBS="-lsvld $LIBS"
14642 cat >conftest.$ac_ext <<_ACEOF
14645 cat confdefs.h >>conftest.$ac_ext
14646 cat >>conftest.$ac_ext <<_ACEOF
14647 /* end confdefs.h. */
14649 /* Override any gcc2 internal prototype to avoid an error. */
14653 /* We use char because int might match the return type of a gcc2
14654 builtin and then its argument prototype would still apply. */
14664 rm -f conftest.$ac_objext conftest$ac_exeext
14665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14666 (eval $ac_link) 2>conftest.er1
14668 grep -v '^ *+' conftest.er1 >conftest.err
14670 cat conftest.err >&5
14671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672 (exit $ac_status); } &&
14673 { ac_try='test -z "$ac_cxx_werror_flag"
14674 || test ! -s conftest.err'
14675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14676 (eval $ac_try) 2>&5
14678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679 (exit $ac_status); }; } &&
14680 { ac_try='test -s conftest$ac_exeext'
14681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14682 (eval $ac_try) 2>&5
14684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14685 (exit $ac_status); }; }; then
14686 ac_cv_lib_svld_dlopen=yes
14688 echo "$as_me: failed program was:" >&5
14689 sed 's/^/| /' conftest.$ac_ext >&5
14691 ac_cv_lib_svld_dlopen=no
14693 rm -f conftest.err conftest.$ac_objext \
14694 conftest$ac_exeext conftest.$ac_ext
14695 LIBS=$ac_check_lib_save_LIBS
14697 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14698 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14699 if test $ac_cv_lib_svld_dlopen = yes; then
14700 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14702 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14703 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14704 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14705 echo $ECHO_N "(cached) $ECHO_C" >&6
14707 ac_check_lib_save_LIBS=$LIBS
14709 cat >conftest.$ac_ext <<_ACEOF
14712 cat confdefs.h >>conftest.$ac_ext
14713 cat >>conftest.$ac_ext <<_ACEOF
14714 /* end confdefs.h. */
14716 /* Override any gcc2 internal prototype to avoid an error. */
14720 /* We use char because int might match the return type of a gcc2
14721 builtin and then its argument prototype would still apply. */
14731 rm -f conftest.$ac_objext conftest$ac_exeext
14732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14733 (eval $ac_link) 2>conftest.er1
14735 grep -v '^ *+' conftest.er1 >conftest.err
14737 cat conftest.err >&5
14738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739 (exit $ac_status); } &&
14740 { ac_try='test -z "$ac_cxx_werror_flag"
14741 || test ! -s conftest.err'
14742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14743 (eval $ac_try) 2>&5
14745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746 (exit $ac_status); }; } &&
14747 { ac_try='test -s conftest$ac_exeext'
14748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14749 (eval $ac_try) 2>&5
14751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752 (exit $ac_status); }; }; then
14753 ac_cv_lib_dld_dld_link=yes
14755 echo "$as_me: failed program was:" >&5
14756 sed 's/^/| /' conftest.$ac_ext >&5
14758 ac_cv_lib_dld_dld_link=no
14760 rm -f conftest.err conftest.$ac_objext \
14761 conftest$ac_exeext conftest.$ac_ext
14762 LIBS=$ac_check_lib_save_LIBS
14764 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14765 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14766 if test $ac_cv_lib_dld_dld_link = yes; then
14767 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14788 if test "x$lt_cv_dlopen" != xno; then
14794 case $lt_cv_dlopen in
14796 save_CPPFLAGS="$CPPFLAGS"
14797 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14799 save_LDFLAGS="$LDFLAGS"
14800 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14803 LIBS="$lt_cv_dlopen_libs $LIBS"
14805 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14806 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14807 if test "${lt_cv_dlopen_self+set}" = set; then
14808 echo $ECHO_N "(cached) $ECHO_C" >&6
14810 if test "$cross_compiling" = yes; then :
14811 lt_cv_dlopen_self=cross
14813 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14814 lt_status=$lt_dlunknown
14815 cat > conftest.$ac_ext <<EOF
14816 #line 14816 "configure"
14817 #include "confdefs.h"
14826 # define LT_DLGLOBAL RTLD_GLOBAL
14829 # define LT_DLGLOBAL DL_GLOBAL
14831 # define LT_DLGLOBAL 0
14835 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14836 find out it does not work in some platform. */
14837 #ifndef LT_DLLAZY_OR_NOW
14839 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14842 # define LT_DLLAZY_OR_NOW DL_LAZY
14845 # define LT_DLLAZY_OR_NOW RTLD_NOW
14848 # define LT_DLLAZY_OR_NOW DL_NOW
14850 # define LT_DLLAZY_OR_NOW 0
14858 extern "C" void exit (int);
14861 void fnord() { int i=42;}
14864 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14865 int status = $lt_dlunknown;
14869 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14870 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14871 /* dlclose (self); */
14877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14878 (eval $ac_link) 2>&5
14880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14882 (./conftest; exit; ) 2>/dev/null
14884 case x$lt_status in
14885 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14886 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14887 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14890 # compilation failed
14891 lt_cv_dlopen_self=no
14898 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14899 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14901 if test "x$lt_cv_dlopen_self" = xyes; then
14902 LDFLAGS="$LDFLAGS $link_static_flag"
14903 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14904 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14905 if test "${lt_cv_dlopen_self_static+set}" = set; then
14906 echo $ECHO_N "(cached) $ECHO_C" >&6
14908 if test "$cross_compiling" = yes; then :
14909 lt_cv_dlopen_self_static=cross
14911 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14912 lt_status=$lt_dlunknown
14913 cat > conftest.$ac_ext <<EOF
14914 #line 14914 "configure"
14915 #include "confdefs.h"
14924 # define LT_DLGLOBAL RTLD_GLOBAL
14927 # define LT_DLGLOBAL DL_GLOBAL
14929 # define LT_DLGLOBAL 0
14933 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14934 find out it does not work in some platform. */
14935 #ifndef LT_DLLAZY_OR_NOW
14937 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14940 # define LT_DLLAZY_OR_NOW DL_LAZY
14943 # define LT_DLLAZY_OR_NOW RTLD_NOW
14946 # define LT_DLLAZY_OR_NOW DL_NOW
14948 # define LT_DLLAZY_OR_NOW 0
14956 extern "C" void exit (int);
14959 void fnord() { int i=42;}
14962 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14963 int status = $lt_dlunknown;
14967 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14968 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14969 /* dlclose (self); */
14975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14976 (eval $ac_link) 2>&5
14978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14980 (./conftest; exit; ) 2>/dev/null
14982 case x$lt_status in
14983 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14984 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14985 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14988 # compilation failed
14989 lt_cv_dlopen_self_static=no
14996 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14997 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
15000 CPPFLAGS="$save_CPPFLAGS"
15001 LDFLAGS="$save_LDFLAGS"
15006 case $lt_cv_dlopen_self in
15007 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15008 *) enable_dlopen_self=unknown ;;
15011 case $lt_cv_dlopen_self_static in
15012 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15013 *) enable_dlopen_self_static=unknown ;;
15018 # The else clause should only fire when bootstrapping the
15019 # libtool distribution, otherwise you forgot to ship ltmain.sh
15020 # with your package, and you will get complaints that there are
15021 # no rules to generate ltmain.sh.
15022 if test -f "$ltmain"; then
15023 # See if we are running on zsh, and set the options which allow our commands through
15024 # without removal of \ escapes.
15025 if test -n "${ZSH_VERSION+set}" ; then
15026 setopt NO_GLOB_SUBST
15028 # Now quote all the things that may contain metacharacters while being
15029 # careful not to overquote the AC_SUBSTed values. We take copies of the
15030 # variables and quote the copies for generation of the libtool script.
15031 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15033 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15034 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15035 deplibs_check_method reload_flag reload_cmds need_locks \
15036 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15037 lt_cv_sys_global_symbol_to_c_name_address \
15038 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15039 old_postinstall_cmds old_postuninstall_cmds \
15043 lt_prog_compiler_wl_CXX \
15044 lt_prog_compiler_pic_CXX \
15045 lt_prog_compiler_static_CXX \
15046 lt_prog_compiler_no_builtin_flag_CXX \
15047 export_dynamic_flag_spec_CXX \
15048 thread_safe_flag_spec_CXX \
15049 whole_archive_flag_spec_CXX \
15050 enable_shared_with_static_runtimes_CXX \
15051 old_archive_cmds_CXX \
15052 old_archive_from_new_cmds_CXX \
15053 predep_objects_CXX \
15054 postdep_objects_CXX \
15057 compiler_lib_search_path_CXX \
15059 archive_expsym_cmds_CXX \
15060 postinstall_cmds_CXX \
15061 postuninstall_cmds_CXX \
15062 old_archive_from_expsyms_cmds_CXX \
15063 allow_undefined_flag_CXX \
15064 no_undefined_flag_CXX \
15065 export_symbols_cmds_CXX \
15066 hardcode_libdir_flag_spec_CXX \
15067 hardcode_libdir_flag_spec_ld_CXX \
15068 hardcode_libdir_separator_CXX \
15069 hardcode_automatic_CXX \
15071 module_expsym_cmds_CXX \
15072 lt_cv_prog_compiler_c_o_CXX \
15073 exclude_expsyms_CXX \
15074 include_expsyms_CXX; do
15077 old_archive_cmds_CXX | \
15078 old_archive_from_new_cmds_CXX | \
15079 archive_cmds_CXX | \
15080 archive_expsym_cmds_CXX | \
15081 module_cmds_CXX | \
15082 module_expsym_cmds_CXX | \
15083 old_archive_from_expsyms_cmds_CXX | \
15084 export_symbols_cmds_CXX | \
15085 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15086 postinstall_cmds | postuninstall_cmds | \
15087 old_postinstall_cmds | old_postuninstall_cmds | \
15088 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15089 # Double-quote double-evaled strings.
15090 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15093 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15099 *'\$0 --fallback-echo"')
15100 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15106 cat <<__EOF__ >> "$cfgfile"
15107 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15109 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15111 # Shell to use when invoking shell scripts.
15114 # Whether or not to build shared libraries.
15115 build_libtool_libs=$enable_shared
15117 # Whether or not to build static libraries.
15118 build_old_libs=$enable_static
15120 # Whether or not to add -lc for building shared libraries.
15121 build_libtool_need_lc=$archive_cmds_need_lc_CXX
15123 # Whether or not to disallow shared libs when runtime libs are static
15124 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15126 # Whether or not to optimize for fast installation.
15127 fast_install=$enable_fast_install
15130 host_alias=$host_alias
15134 # The build system.
15135 build_alias=$build_alias
15139 # An echo program that does not interpret backslashes.
15144 AR_FLAGS=$lt_AR_FLAGS
15149 # A language-specific compiler.
15150 CC=$lt_compiler_CXX
15152 # Is the compiler the GNU C compiler?
15158 # The linker used to build libraries.
15161 # Whether we need hard or soft links.
15164 # A BSD-compatible nm program.
15167 # A symbol stripping program
15170 # Used to examine libraries when file_magic_cmd begins "file"
15171 MAGIC_CMD=$MAGIC_CMD
15173 # Used on cygwin: DLL creation program.
15176 # Used on cygwin: object dumper.
15179 # Used on cygwin: assembler.
15182 # The name of the directory that contains temporary libtool files.
15185 # How to create reloadable object files.
15186 reload_flag=$lt_reload_flag
15187 reload_cmds=$lt_reload_cmds
15189 # How to pass a linker flag through the compiler.
15190 wl=$lt_lt_prog_compiler_wl_CXX
15192 # Object file suffix (normally "o").
15193 objext="$ac_objext"
15195 # Old archive suffix (normally "a").
15198 # Shared library suffix (normally ".so").
15199 shrext_cmds='$shrext_cmds'
15201 # Executable file suffix (normally "").
15204 # Additional compiler flags for building library objects.
15205 pic_flag=$lt_lt_prog_compiler_pic_CXX
15208 # What is the maximum length of a command?
15209 max_cmd_len=$lt_cv_sys_max_cmd_len
15211 # Does compiler simultaneously support -c and -o options?
15212 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15214 # Must we lock files when doing compilation?
15215 need_locks=$lt_need_locks
15217 # Do we need the lib prefix for modules?
15218 need_lib_prefix=$need_lib_prefix
15220 # Do we need a version for libraries?
15221 need_version=$need_version
15223 # Whether dlopen is supported.
15224 dlopen_support=$enable_dlopen
15226 # Whether dlopen of programs is supported.
15227 dlopen_self=$enable_dlopen_self
15229 # Whether dlopen of statically linked programs is supported.
15230 dlopen_self_static=$enable_dlopen_self_static
15232 # Compiler flag to prevent dynamic linking.
15233 link_static_flag=$lt_lt_prog_compiler_static_CXX
15235 # Compiler flag to turn off builtin functions.
15236 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15238 # Compiler flag to allow reflexive dlopens.
15239 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15241 # Compiler flag to generate shared objects directly from archives.
15242 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15244 # Compiler flag to generate thread-safe objects.
15245 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15247 # Library versioning type.
15248 version_type=$version_type
15250 # Format of library name prefix.
15251 libname_spec=$lt_libname_spec
15253 # List of archive names. First name is the real one, the rest are links.
15254 # The last name is the one that the linker finds with -lNAME.
15255 library_names_spec=$lt_library_names_spec
15257 # The coded name of the library, if different from the real name.
15258 soname_spec=$lt_soname_spec
15260 # Commands used to build and install an old-style archive.
15262 old_archive_cmds=$lt_old_archive_cmds_CXX
15263 old_postinstall_cmds=$lt_old_postinstall_cmds
15264 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15266 # Create an old-style archive from a shared archive.
15267 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15269 # Create a temporary old-style archive to link instead of a shared archive.
15270 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15272 # Commands used to build and install a shared archive.
15273 archive_cmds=$lt_archive_cmds_CXX
15274 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15275 postinstall_cmds=$lt_postinstall_cmds
15276 postuninstall_cmds=$lt_postuninstall_cmds
15278 # Commands used to build a loadable module (assumed same as above if empty)
15279 module_cmds=$lt_module_cmds_CXX
15280 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15282 # Commands to strip libraries.
15283 old_striplib=$lt_old_striplib
15284 striplib=$lt_striplib
15286 # Dependencies to place before the objects being linked to create a
15288 predep_objects=$lt_predep_objects_CXX
15290 # Dependencies to place after the objects being linked to create a
15292 postdep_objects=$lt_postdep_objects_CXX
15294 # Dependencies to place before the objects being linked to create a
15296 predeps=$lt_predeps_CXX
15298 # Dependencies to place after the objects being linked to create a
15300 postdeps=$lt_postdeps_CXX
15302 # The library search path used internally by the compiler when linking
15303 # a shared library.
15304 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15306 # Method to check whether dependent libraries are shared objects.
15307 deplibs_check_method=$lt_deplibs_check_method
15309 # Command to use when deplibs_check_method == file_magic.
15310 file_magic_cmd=$lt_file_magic_cmd
15312 # Flag that allows shared libraries with undefined symbols to be built.
15313 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15315 # Flag that forces no undefined symbols.
15316 no_undefined_flag=$lt_no_undefined_flag_CXX
15318 # Commands used to finish a libtool library installation in a directory.
15319 finish_cmds=$lt_finish_cmds
15321 # Same as above, but a single script fragment to be evaled but not shown.
15322 finish_eval=$lt_finish_eval
15324 # Take the output of nm and produce a listing of raw symbols and C names.
15325 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15327 # Transform the output of nm in a proper C declaration
15328 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15330 # Transform the output of nm in a C name address pair
15331 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15333 # This is the shared library runtime path variable.
15334 runpath_var=$runpath_var
15336 # This is the shared library path variable.
15337 shlibpath_var=$shlibpath_var
15339 # Is shlibpath searched before the hard-coded library search path?
15340 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15342 # How to hardcode a shared library path into an executable.
15343 hardcode_action=$hardcode_action_CXX
15345 # Whether we should hardcode library paths into libraries.
15346 hardcode_into_libs=$hardcode_into_libs
15348 # Flag to hardcode \$libdir into a binary during linking.
15349 # This must work even if \$libdir does not exist.
15350 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15352 # If ld is used when linking, flag to hardcode \$libdir into
15353 # a binary during linking. This must work even if \$libdir does
15355 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15357 # Whether we need a single -rpath flag with a separated argument.
15358 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15360 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15361 # resulting binary.
15362 hardcode_direct=$hardcode_direct_CXX
15364 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15365 # resulting binary.
15366 hardcode_minus_L=$hardcode_minus_L_CXX
15368 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15369 # the resulting binary.
15370 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15372 # Set to yes if building a shared library automatically hardcodes DIR into the library
15373 # and all subsequent libraries and executables linked against it.
15374 hardcode_automatic=$hardcode_automatic_CXX
15376 # Variables whose values should be saved in libtool wrapper scripts and
15377 # restored at relink time.
15378 variables_saved_for_relink="$variables_saved_for_relink"
15380 # Whether libtool must link a program against all its dependency libraries.
15381 link_all_deplibs=$link_all_deplibs_CXX
15383 # Compile-time system search path for libraries
15384 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15386 # Run-time system search path for libraries
15387 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15389 # Fix the shell variable \$srcfile for the compiler.
15390 fix_srcfile_path="$fix_srcfile_path_CXX"
15392 # Set to yes if exported symbols are required.
15393 always_export_symbols=$always_export_symbols_CXX
15395 # The commands to list exported symbols.
15396 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15398 # The commands to extract the exported symbol list from a shared archive.
15399 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15401 # Symbols that should not be listed in the preloaded symbols.
15402 exclude_expsyms=$lt_exclude_expsyms_CXX
15404 # Symbols that must always be exported.
15405 include_expsyms=$lt_include_expsyms_CXX
15407 # ### END LIBTOOL TAG CONFIG: $tagname
15413 # If there is no Makefile yet, we rely on a make rule to execute
15414 # `config.status --recheck' to rerun these tests and create the
15415 # libtool script then.
15416 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15417 if test -f "$ltmain_in"; then
15418 test -f Makefile && make "$ltmain"
15424 ac_cpp='$CPP $CPPFLAGS'
15425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15433 with_gnu_ldcxx=$with_gnu_ld
15434 with_gnu_ld=$lt_save_with_gnu_ld
15435 lt_cv_path_LDCXX=$lt_cv_path_LD
15436 lt_cv_path_LD=$lt_save_path_LD
15437 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15438 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15446 if test -n "$F77" && test "X$F77" != "Xno"; then
15449 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15450 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15451 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15454 archive_cmds_need_lc_F77=no
15455 allow_undefined_flag_F77=
15456 always_export_symbols_F77=no
15457 archive_expsym_cmds_F77=
15458 export_dynamic_flag_spec_F77=
15459 hardcode_direct_F77=no
15460 hardcode_libdir_flag_spec_F77=
15461 hardcode_libdir_flag_spec_ld_F77=
15462 hardcode_libdir_separator_F77=
15463 hardcode_minus_L_F77=no
15464 hardcode_automatic_F77=no
15466 module_expsym_cmds_F77=
15467 link_all_deplibs_F77=unknown
15468 old_archive_cmds_F77=$old_archive_cmds
15469 no_undefined_flag_F77=
15470 whole_archive_flag_spec_F77=
15471 enable_shared_with_static_runtimes_F77=no
15473 # Source file extension for f77 test sources.
15476 # Object file extension for compiled f77 test sources.
15480 # Code to be used in simple compile tests
15481 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
15483 # Code to be used in simple link tests
15484 lt_simple_link_test_code=" program t\n end\n"
15486 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15488 # If no C compiler was specified, use CC.
15491 # Allow CC to be a program name with arguments.
15495 # save warnings/boilerplate of simple test code
15496 ac_outfile=conftest.$ac_objext
15497 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15498 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15499 _lt_compiler_boilerplate=`cat conftest.err`
15502 ac_outfile=conftest.$ac_objext
15503 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15504 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15505 _lt_linker_boilerplate=`cat conftest.err`
15509 # Allow CC to be a program name with arguments.
15514 for cc_temp in $compiler""; do
15516 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15517 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15522 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15525 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15526 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
15527 echo "$as_me:$LINENO: result: $can_build_shared" >&5
15528 echo "${ECHO_T}$can_build_shared" >&6
15530 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15531 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
15532 test "$can_build_shared" = "no" && enable_shared=no
15534 # On AIX, shared libraries and static libraries use the same namespace, and
15535 # are all built from PIC.
15538 test "$enable_shared" = yes && enable_static=no
15539 if test -n "$RANLIB"; then
15540 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15541 postinstall_cmds='$RANLIB $lib'
15545 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15546 test "$enable_shared" = yes && enable_static=no
15550 echo "$as_me:$LINENO: result: $enable_shared" >&5
15551 echo "${ECHO_T}$enable_shared" >&6
15553 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15554 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
15555 # Make sure either enable_shared or enable_static is yes.
15556 test "$enable_shared" = yes || enable_static=yes
15557 echo "$as_me:$LINENO: result: $enable_static" >&5
15558 echo "${ECHO_T}$enable_static" >&6
15560 test "$ld_shlibs_F77" = no && can_build_shared=no
15565 lt_prog_compiler_wl_F77=
15566 lt_prog_compiler_pic_F77=
15567 lt_prog_compiler_static_F77=
15569 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15570 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15572 if test "$GCC" = yes; then
15573 lt_prog_compiler_wl_F77='-Wl,'
15574 lt_prog_compiler_static_F77='-static'
15578 # All AIX code is PIC.
15579 if test "$host_cpu" = ia64; then
15580 # AIX 5 now supports IA64 processor
15581 lt_prog_compiler_static_F77='-Bstatic'
15586 # FIXME: we need at least 68020 code to build shared libraries, but
15587 # adding the `-m68020' flag to GCC prevents building anything better,
15589 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15592 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15593 # PIC is the default for these OSes.
15596 mingw* | pw32* | os2*)
15597 # This hack is so that the source file can tell whether it is being
15598 # built for inclusion in a dll (and should export symbols for example).
15599 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15602 darwin* | rhapsody*)
15603 # PIC is the default on this platform
15604 # Common symbols not allowed in MH_DYLIB files
15605 lt_prog_compiler_pic_F77='-fno-common'
15609 # Just because we use GCC doesn't mean we suddenly get shared libraries
15610 # on systems that don't support them.
15611 lt_prog_compiler_can_build_shared_F77=no
15616 if test -d /usr/nec; then
15617 lt_prog_compiler_pic_F77=-Kconform_pic
15622 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15623 # not for PA HP-UX.
15624 case "$host_cpu" in
15629 lt_prog_compiler_pic_F77='-fPIC'
15635 lt_prog_compiler_pic_F77='-fPIC'
15639 # PORTME Check for flag to pass linker flags through the system compiler.
15642 lt_prog_compiler_wl_F77='-Wl,'
15643 if test "$host_cpu" = ia64; then
15644 # AIX 5 now supports IA64 processor
15645 lt_prog_compiler_static_F77='-Bstatic'
15647 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15651 # PIC is the default on this platform
15652 # Common symbols not allowed in MH_DYLIB files
15653 case $cc_basename in
15655 lt_prog_compiler_pic_F77='-qnocommon'
15656 lt_prog_compiler_wl_F77='-Wl,'
15661 mingw* | pw32* | os2*)
15662 # This hack is so that the source file can tell whether it is being
15663 # built for inclusion in a dll (and should export symbols for example).
15664 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15667 hpux9* | hpux10* | hpux11*)
15668 lt_prog_compiler_wl_F77='-Wl,'
15669 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15670 # not for PA HP-UX.
15671 case "$host_cpu" in
15676 lt_prog_compiler_pic_F77='+Z'
15679 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15680 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15683 irix5* | irix6* | nonstopux*)
15684 lt_prog_compiler_wl_F77='-Wl,'
15685 # PIC (with -KPIC) is the default.
15686 lt_prog_compiler_static_F77='-non_shared'
15690 lt_prog_compiler_pic_F77='-KPIC'
15691 lt_prog_compiler_static_F77='-Bstatic'
15695 case $cc_basename in
15697 lt_prog_compiler_wl_F77='-Wl,'
15698 lt_prog_compiler_pic_F77='-KPIC'
15699 lt_prog_compiler_static_F77='-static'
15701 pgcc* | pgf77* | pgf90*)
15702 # Portland Group compilers (*not* the Pentium gcc compiler,
15703 # which looks to be a dead project)
15704 lt_prog_compiler_wl_F77='-Wl,'
15705 lt_prog_compiler_pic_F77='-fpic'
15706 lt_prog_compiler_static_F77='-static'
15709 lt_prog_compiler_wl_F77='-Wl,'
15710 # All Alpha code is PIC.
15711 lt_prog_compiler_static_F77='-non_shared'
15716 osf3* | osf4* | osf5*)
15717 lt_prog_compiler_wl_F77='-Wl,'
15718 # All OSF/1 code is PIC.
15719 lt_prog_compiler_static_F77='-non_shared'
15723 lt_prog_compiler_pic_F77='-Kpic'
15724 lt_prog_compiler_static_F77='-dn'
15728 lt_prog_compiler_pic_F77='-KPIC'
15729 lt_prog_compiler_static_F77='-Bstatic'
15730 case $cc_basename in
15731 f77* | f90* | f95*)
15732 lt_prog_compiler_wl_F77='-Qoption ld ';;
15734 lt_prog_compiler_wl_F77='-Wl,';;
15739 lt_prog_compiler_wl_F77='-Qoption ld '
15740 lt_prog_compiler_pic_F77='-PIC'
15741 lt_prog_compiler_static_F77='-Bstatic'
15744 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15745 lt_prog_compiler_wl_F77='-Wl,'
15746 lt_prog_compiler_pic_F77='-KPIC'
15747 lt_prog_compiler_static_F77='-Bstatic'
15751 if test -d /usr/nec ;then
15752 lt_prog_compiler_pic_F77='-Kconform_pic'
15753 lt_prog_compiler_static_F77='-Bstatic'
15758 lt_prog_compiler_wl_F77='-Wl,'
15759 lt_prog_compiler_can_build_shared_F77=no
15763 lt_prog_compiler_pic_F77='-pic'
15764 lt_prog_compiler_static_F77='-Bstatic'
15768 lt_prog_compiler_can_build_shared_F77=no
15773 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15774 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
15777 # Check to make sure the PIC flag actually works.
15779 if test -n "$lt_prog_compiler_pic_F77"; then
15781 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15782 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
15783 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15784 echo $ECHO_N "(cached) $ECHO_C" >&6
15786 lt_prog_compiler_pic_works_F77=no
15787 ac_outfile=conftest.$ac_objext
15788 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15789 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15790 # Insert the option either (1) after the last *FLAGS variable, or
15791 # (2) before a word containing "conftest.", or (3) at the end.
15792 # Note that $ac_compile itself does not contain backslashes and begins
15793 # with a dollar sign (not a hyphen), so the echo should work correctly.
15794 # The option is referenced via a variable to avoid confusing sed.
15795 lt_compile=`echo "$ac_compile" | $SED \
15796 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15797 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15798 -e 's:$: $lt_compiler_flag:'`
15799 (eval echo "\"\$as_me:15799: $lt_compile\"" >&5)
15800 (eval "$lt_compile" 2>conftest.err)
15802 cat conftest.err >&5
15803 echo "$as_me:15803: \$? = $ac_status" >&5
15804 if (exit $ac_status) && test -s "$ac_outfile"; then
15805 # The compiler can only warn and ignore the option if not recognized
15806 # So say no if there are warnings other than the usual output.
15807 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15808 $SED '/^$/d' conftest.err >conftest.er2
15809 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15810 lt_prog_compiler_pic_works_F77=yes
15816 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15817 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
15819 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15820 case $lt_prog_compiler_pic_F77 in
15822 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15825 lt_prog_compiler_pic_F77=
15826 lt_prog_compiler_can_build_shared_F77=no
15831 # For platforms which do not support PIC, -DPIC is meaningless:
15833 lt_prog_compiler_pic_F77=
15836 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15840 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15841 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15842 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15843 echo $ECHO_N "(cached) $ECHO_C" >&6
15845 lt_cv_prog_compiler_c_o_F77=no
15846 $rm -r conftest 2>/dev/null
15850 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15852 lt_compiler_flag="-o out/conftest2.$ac_objext"
15853 # Insert the option either (1) after the last *FLAGS variable, or
15854 # (2) before a word containing "conftest.", or (3) at the end.
15855 # Note that $ac_compile itself does not contain backslashes and begins
15856 # with a dollar sign (not a hyphen), so the echo should work correctly.
15857 lt_compile=`echo "$ac_compile" | $SED \
15858 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15859 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15860 -e 's:$: $lt_compiler_flag:'`
15861 (eval echo "\"\$as_me:15861: $lt_compile\"" >&5)
15862 (eval "$lt_compile" 2>out/conftest.err)
15864 cat out/conftest.err >&5
15865 echo "$as_me:15865: \$? = $ac_status" >&5
15866 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15868 # The compiler can only warn and ignore the option if not recognized
15869 # So say no if there are warnings
15870 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
15871 $SED '/^$/d' out/conftest.err >out/conftest.er2
15872 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15873 lt_cv_prog_compiler_c_o_F77=yes
15878 # SGI C++ compiler will create directory out/ii_files/ for
15879 # template instantiation
15880 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15881 $rm out/* && rmdir out
15887 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15888 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15891 hard_links="nottested"
15892 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15893 # do not overwrite the value of need_locks provided by the user
15894 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15895 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15898 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15900 ln conftest.a conftest.b 2>&5 || hard_links=no
15901 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15902 echo "$as_me:$LINENO: result: $hard_links" >&5
15903 echo "${ECHO_T}$hard_links" >&6
15904 if test "$hard_links" = no; then
15905 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15906 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15913 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15914 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15917 allow_undefined_flag_F77=
15918 enable_shared_with_static_runtimes_F77=no
15920 archive_expsym_cmds_F77=
15921 old_archive_From_new_cmds_F77=
15922 old_archive_from_expsyms_cmds_F77=
15923 export_dynamic_flag_spec_F77=
15924 whole_archive_flag_spec_F77=
15925 thread_safe_flag_spec_F77=
15926 hardcode_libdir_flag_spec_F77=
15927 hardcode_libdir_flag_spec_ld_F77=
15928 hardcode_libdir_separator_F77=
15929 hardcode_direct_F77=no
15930 hardcode_minus_L_F77=no
15931 hardcode_shlibpath_var_F77=unsupported
15932 link_all_deplibs_F77=unknown
15933 hardcode_automatic_F77=no
15935 module_expsym_cmds_F77=
15936 always_export_symbols_F77=no
15937 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15938 # include_expsyms should be a list of space-separated symbols to be *always*
15939 # included in the symbol list
15940 include_expsyms_F77=
15941 # exclude_expsyms can be an extended regexp of symbols to exclude
15942 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15943 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15944 # as well as any symbol that contains `d'.
15945 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15946 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15947 # platforms (ab)use it in PIC code, but their linkers get confused if
15948 # the symbol is explicitly referenced. Since portable code cannot
15949 # rely on this symbol name, it's probably fine to never include it in
15950 # preloaded symbol tables.
15951 extract_expsyms_cmds=
15952 # Just being paranoid about ensuring that cc_basename is set.
15953 for cc_temp in $compiler""; do
15955 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15956 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15961 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15964 cygwin* | mingw* | pw32*)
15965 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15966 # When not using gcc, we currently assume that we are using
15967 # Microsoft Visual C++.
15968 if test "$GCC" != yes; then
15978 if test "$with_gnu_ld" = yes; then
15979 # If archive_cmds runs LD, not CC, wlarc should be empty
15982 # Set some defaults for GNU ld with shared library support. These
15983 # are reset later if shared libraries are not supported. Putting them
15984 # here allows them to be overridden if necessary.
15985 runpath_var=LD_RUN_PATH
15986 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15987 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15988 # ancient GNU ld didn't support --whole-archive et. al.
15989 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15990 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15992 whole_archive_flag_spec_F77=
15994 supports_anon_versioning=no
15995 case `$LD -v 2>/dev/null` in
15996 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15997 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15998 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15999 *\ 2.11.*) ;; # other 2.11 versions
16000 *) supports_anon_versioning=yes ;;
16003 # See if GNU ld supports shared libraries.
16005 aix3* | aix4* | aix5*)
16006 # On AIX/PPC, the GNU linker is very broken
16007 if test "$host_cpu" != ia64; then
16011 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16012 *** to be unable to reliably create shared libraries on AIX.
16013 *** Therefore, libtool is disabling shared libraries support. If you
16014 *** really care for shared libraries, you may want to modify your PATH
16015 *** so that a non-GNU linker is found, and then restart.
16022 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)'
16023 hardcode_libdir_flag_spec_F77='-L$libdir'
16024 hardcode_minus_L_F77=yes
16026 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16027 # that the semantics of dynamic libraries on AmigaOS, at least up
16028 # to version 4, is to share data among multiple programs linked
16029 # with the same dynamic library. Since this doesn't match the
16030 # behavior of shared libraries on other platforms, we can't use
16036 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16037 allow_undefined_flag_F77=unsupported
16038 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16039 # support --undefined. This deserves some investigation. FIXME
16040 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16046 cygwin* | mingw* | pw32*)
16047 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16048 # as there is no search path for DLLs.
16049 hardcode_libdir_flag_spec_F77='-L$libdir'
16050 allow_undefined_flag_F77=unsupported
16051 always_export_symbols_F77=no
16052 enable_shared_with_static_runtimes_F77=yes
16053 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16055 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16056 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16057 # If the export-symbols file already is a .def file (1st line
16058 # is EXPORTS), use it as is; otherwise, prepend...
16059 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16060 cp $export_symbols $output_objdir/$soname.def;
16062 echo EXPORTS > $output_objdir/$soname.def;
16063 cat $export_symbols >> $output_objdir/$soname.def;
16065 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16072 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16074 case $cc_basename,$host_cpu in
16075 pgcc*) # Portland Group C compiler
16076 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'
16077 tmp_addflag=' $pic_flag'
16079 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
16080 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'
16081 tmp_addflag=' $pic_flag -Mnomain' ;;
16082 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16083 tmp_addflag=' -i_dynamic' ;;
16084 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16085 tmp_addflag=' -i_dynamic -nofor_main' ;;
16086 ifc* | ifort*) # Intel Fortran compiler
16087 tmp_addflag=' -nofor_main' ;;
16089 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16091 if test $supports_anon_versioning = yes; then
16092 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16093 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16094 $echo "local: *; };" >> $output_objdir/$libname.ver~
16095 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16103 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16104 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16107 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16108 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16113 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16117 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16118 *** create shared libraries on Solaris systems. Therefore, libtool
16119 *** is disabling shared libraries support. We urge you to upgrade GNU
16120 *** binutils to release 2.9.1 or newer. Another option is to modify
16121 *** your PATH or compiler configuration so that the native linker is
16122 *** used, and then restart.
16125 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16126 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16127 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16134 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16136 hardcode_direct_F77=yes
16137 hardcode_shlibpath_var_F77=no
16141 if $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 if test "$ld_shlibs_F77" = no; then
16152 hardcode_libdir_flag_spec_F77=
16153 export_dynamic_flag_spec_F77=
16154 whole_archive_flag_spec_F77=
16157 # PORTME fill in a description of your system's linker (not GNU ld)
16160 allow_undefined_flag_F77=unsupported
16161 always_export_symbols_F77=yes
16162 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'
16163 # Note: this linker hardcodes the directories in LIBPATH if there
16164 # are no directories specified by -L.
16165 hardcode_minus_L_F77=yes
16166 if test "$GCC" = yes && test -z "$link_static_flag"; then
16167 # Neither direct hardcoding nor static linking is supported with a
16169 hardcode_direct_F77=unsupported
16174 if test "$host_cpu" = ia64; then
16175 # On IA64, the linker does run time linking by default, so we don't
16176 # have to do anything special.
16177 aix_use_runtimelinking=no
16178 exp_sym_flag='-Bexport'
16181 # If we're using GNU nm, then we don't want the "-C" option.
16182 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16183 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16184 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'
16186 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'
16188 aix_use_runtimelinking=no
16190 # Test if we are trying to use run time linking or normal
16191 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16192 # need to do runtime linking.
16193 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16194 for ld_flag in $LDFLAGS; do
16195 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16196 aix_use_runtimelinking=yes
16202 exp_sym_flag='-bexport'
16203 no_entry_flag='-bnoentry'
16206 # When large executables or shared objects are built, AIX ld can
16207 # have problems creating the table of contents. If linking a library
16208 # or program results in "error TOC overflow" add -mminimal-toc to
16209 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16210 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16212 archive_cmds_F77=''
16213 hardcode_direct_F77=yes
16214 hardcode_libdir_separator_F77=':'
16215 link_all_deplibs_F77=yes
16217 if test "$GCC" = yes; then
16218 case $host_os in aix4.[012]|aix4.[012].*)
16219 # We only want to do this on AIX 4.2 and lower, the check
16220 # below for broken collect2 doesn't work under 4.3+
16221 collect2name=`${CC} -print-prog-name=collect2`
16222 if test -f "$collect2name" && \
16223 strings "$collect2name" | grep resolve_lib_name >/dev/null
16225 # We have reworked collect2
16226 hardcode_direct_F77=yes
16228 # We have old collect2
16229 hardcode_direct_F77=unsupported
16230 # It fails to find uninstalled libraries when the uninstalled
16231 # path is not listed in the libpath. Setting hardcode_minus_L
16232 # to unsupported forces relinking
16233 hardcode_minus_L_F77=yes
16234 hardcode_libdir_flag_spec_F77='-L$libdir'
16235 hardcode_libdir_separator_F77=
16238 shared_flag='-shared'
16239 if test "$aix_use_runtimelinking" = yes; then
16240 shared_flag="$shared_flag "'${wl}-G'
16244 if test "$host_cpu" = ia64; then
16245 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16246 # chokes on -Wl,-G. The following line is correct:
16249 if test "$aix_use_runtimelinking" = yes; then
16250 shared_flag='${wl}-G'
16252 shared_flag='${wl}-bM:SRE'
16257 # It seems that -bexpall does not export symbols beginning with
16258 # underscore (_), so it is better to generate a list of symbols to export.
16259 always_export_symbols_F77=yes
16260 if test "$aix_use_runtimelinking" = yes; then
16261 # Warning - without using the other runtime loading flags (-brtl),
16262 # -berok will link without error, but may produce a broken library.
16263 allow_undefined_flag_F77='-berok'
16264 # Determine the default libpath from the value encoded in an empty executable.
16265 cat >conftest.$ac_ext <<_ACEOF
16270 rm -f conftest.$ac_objext conftest$ac_exeext
16271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16272 (eval $ac_link) 2>conftest.er1
16274 grep -v '^ *+' conftest.er1 >conftest.err
16276 cat conftest.err >&5
16277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16278 (exit $ac_status); } &&
16279 { ac_try='test -z "$ac_f77_werror_flag"
16280 || test ! -s conftest.err'
16281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16282 (eval $ac_try) 2>&5
16284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16285 (exit $ac_status); }; } &&
16286 { ac_try='test -s conftest$ac_exeext'
16287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16288 (eval $ac_try) 2>&5
16290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291 (exit $ac_status); }; }; then
16293 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16295 # Check for a 64-bit object if we didn't find anything.
16296 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; }
16299 echo "$as_me: failed program was:" >&5
16300 sed 's/^/| /' conftest.$ac_ext >&5
16303 rm -f conftest.err conftest.$ac_objext \
16304 conftest$ac_exeext conftest.$ac_ext
16305 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16307 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16308 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"
16310 if test "$host_cpu" = ia64; then
16311 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16312 allow_undefined_flag_F77="-z nodefs"
16313 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"
16315 # Determine the default libpath from the value encoded in an empty executable.
16316 cat >conftest.$ac_ext <<_ACEOF
16321 rm -f conftest.$ac_objext conftest$ac_exeext
16322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16323 (eval $ac_link) 2>conftest.er1
16325 grep -v '^ *+' conftest.er1 >conftest.err
16327 cat conftest.err >&5
16328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329 (exit $ac_status); } &&
16330 { ac_try='test -z "$ac_f77_werror_flag"
16331 || test ! -s conftest.err'
16332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16333 (eval $ac_try) 2>&5
16335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16336 (exit $ac_status); }; } &&
16337 { ac_try='test -s conftest$ac_exeext'
16338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16339 (eval $ac_try) 2>&5
16341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342 (exit $ac_status); }; }; then
16344 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16346 # Check for a 64-bit object if we didn't find anything.
16347 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; }
16350 echo "$as_me: failed program was:" >&5
16351 sed 's/^/| /' conftest.$ac_ext >&5
16354 rm -f conftest.err conftest.$ac_objext \
16355 conftest$ac_exeext conftest.$ac_ext
16356 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16358 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16359 # Warning - without using the other run time loading flags,
16360 # -berok will link without error, but may produce a broken library.
16361 no_undefined_flag_F77=' ${wl}-bernotok'
16362 allow_undefined_flag_F77=' ${wl}-berok'
16363 # -bexpall does not export symbols beginning with underscore (_)
16364 always_export_symbols_F77=yes
16365 # Exported symbols can be pulled into shared objects from archives
16366 whole_archive_flag_spec_F77=' '
16367 archive_cmds_need_lc_F77=yes
16368 # This is similar to how AIX traditionally builds it's shared libraries.
16369 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'
16375 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)'
16376 hardcode_libdir_flag_spec_F77='-L$libdir'
16377 hardcode_minus_L_F77=yes
16378 # see comment about different semantics on the GNU ld section
16383 export_dynamic_flag_spec_F77=-rdynamic
16386 cygwin* | mingw* | pw32*)
16387 # When not using gcc, we currently assume that we are using
16388 # Microsoft Visual C++.
16389 # hardcode_libdir_flag_spec is actually meaningless, as there is
16390 # no search path for DLLs.
16391 hardcode_libdir_flag_spec_F77=' '
16392 allow_undefined_flag_F77=unsupported
16393 # Tell ltmain to make .lib files, not .a files.
16395 # Tell ltmain to make .dll files, not .so files.
16397 # FIXME: Setting linknames here is a bad hack.
16398 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16399 # The linker will automatically build a .lib file if we build a DLL.
16400 old_archive_From_new_cmds_F77='true'
16401 # FIXME: Should let the user specify the lib program.
16402 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
16403 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16404 enable_shared_with_static_runtimes_F77=yes
16407 darwin* | rhapsody*)
16409 rhapsody* | darwin1.[012])
16410 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16413 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16414 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16416 case ${MACOSX_DEPLOYMENT_TARGET} in
16418 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16421 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16427 archive_cmds_need_lc_F77=no
16428 hardcode_direct_F77=no
16429 hardcode_automatic_F77=yes
16430 hardcode_shlibpath_var_F77=unsupported
16431 whole_archive_flag_spec_F77=''
16432 link_all_deplibs_F77=yes
16433 if test "$GCC" = yes ; then
16434 output_verbose_link_cmd='echo'
16435 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16436 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16437 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16438 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}'
16439 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}'
16441 case $cc_basename in
16443 output_verbose_link_cmd='echo'
16444 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16445 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16446 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16447 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}'
16448 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}'
16458 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16459 hardcode_libdir_flag_spec_F77='-L$libdir'
16460 hardcode_shlibpath_var_F77=no
16467 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16468 # support. Future versions do this automatically, but an explicit c++rt0.o
16469 # does not break anything, and helps significantly (at the cost of a little
16472 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16473 hardcode_libdir_flag_spec_F77='-R$libdir'
16474 hardcode_direct_F77=yes
16475 hardcode_shlibpath_var_F77=no
16478 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16480 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16481 hardcode_direct_F77=yes
16482 hardcode_minus_L_F77=yes
16483 hardcode_shlibpath_var_F77=no
16486 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16487 freebsd* | kfreebsd*-gnu | dragonfly*)
16488 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16489 hardcode_libdir_flag_spec_F77='-R$libdir'
16490 hardcode_direct_F77=yes
16491 hardcode_shlibpath_var_F77=no
16495 if test "$GCC" = yes; then
16496 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'
16498 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'
16500 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16501 hardcode_libdir_separator_F77=:
16502 hardcode_direct_F77=yes
16504 # hardcode_minus_L: Not really in the search PATH,
16505 # but as the default location of the library.
16506 hardcode_minus_L_F77=yes
16507 export_dynamic_flag_spec_F77='${wl}-E'
16511 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16512 case "$host_cpu" in
16514 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16517 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16521 case "$host_cpu" in
16523 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16526 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16530 if test "$with_gnu_ld" = no; then
16531 case "$host_cpu" in
16533 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16534 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16535 hardcode_libdir_separator_F77=:
16536 hardcode_direct_F77=no
16537 hardcode_shlibpath_var_F77=no
16540 hardcode_libdir_flag_spec_F77='-L$libdir'
16541 hardcode_direct_F77=no
16542 hardcode_shlibpath_var_F77=no
16544 # hardcode_minus_L: Not really in the search PATH,
16545 # but as the default location of the library.
16546 hardcode_minus_L_F77=yes
16549 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16550 hardcode_libdir_separator_F77=:
16551 hardcode_direct_F77=yes
16552 export_dynamic_flag_spec_F77='${wl}-E'
16554 # hardcode_minus_L: Not really in the search PATH,
16555 # but as the default location of the library.
16556 hardcode_minus_L_F77=yes
16562 irix5* | irix6* | nonstopux*)
16563 if test "$GCC" = yes; then
16564 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'
16566 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'
16567 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16569 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16570 hardcode_libdir_separator_F77=:
16571 link_all_deplibs_F77=yes
16575 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16576 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16578 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16580 hardcode_libdir_flag_spec_F77='-R$libdir'
16581 hardcode_direct_F77=yes
16582 hardcode_shlibpath_var_F77=no
16586 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16587 hardcode_direct_F77=yes
16588 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16589 hardcode_libdir_separator_F77=:
16590 hardcode_shlibpath_var_F77=no
16594 hardcode_direct_F77=yes
16595 hardcode_shlibpath_var_F77=no
16596 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16597 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16598 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16599 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16600 export_dynamic_flag_spec_F77='${wl}-E'
16603 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16604 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16605 hardcode_libdir_flag_spec_F77='-R$libdir'
16608 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16609 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16616 hardcode_libdir_flag_spec_F77='-L$libdir'
16617 hardcode_minus_L_F77=yes
16618 allow_undefined_flag_F77=unsupported
16619 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'
16620 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16624 if test "$GCC" = yes; then
16625 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16626 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'
16628 allow_undefined_flag_F77=' -expect_unresolved \*'
16629 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'
16631 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16632 hardcode_libdir_separator_F77=:
16635 osf4* | osf5*) # as osf3* with the addition of -msym flag
16636 if test "$GCC" = yes; then
16637 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16638 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'
16639 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16641 allow_undefined_flag_F77=' -expect_unresolved \*'
16642 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'
16643 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~
16644 $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'
16646 # Both c and cxx compiler support -rpath directly
16647 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16649 hardcode_libdir_separator_F77=:
16653 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16654 hardcode_shlibpath_var_F77=no
16655 export_dynamic_flag_spec_F77='${wl}-Bexport'
16656 runpath_var=LD_RUN_PATH
16657 hardcode_runpath_var=yes
16661 no_undefined_flag_F77=' -z text'
16662 if test "$GCC" = yes; then
16664 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16665 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16666 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16669 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16670 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16671 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16673 hardcode_libdir_flag_spec_F77='-R$libdir'
16674 hardcode_shlibpath_var_F77=no
16676 solaris2.[0-5] | solaris2.[0-5].*) ;;
16678 # The compiler driver will combine linker options so we
16679 # cannot just pass the convience library names through
16680 # without $wl, iff we do not link with $LD.
16681 # Luckily, gcc supports the same syntax we need for Sun Studio.
16682 # Supported since Solaris 2.6 (maybe 2.5.1?)
16685 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16687 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' ;;
16690 link_all_deplibs_F77=yes
16694 if test "x$host_vendor" = xsequent; then
16695 # Use $CC to link under sequent, because it throws in some extra .o
16696 # files that make .init and .fini sections work.
16697 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16699 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16701 hardcode_libdir_flag_spec_F77='-L$libdir'
16702 hardcode_direct_F77=yes
16703 hardcode_minus_L_F77=yes
16704 hardcode_shlibpath_var_F77=no
16708 case $host_vendor in
16710 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16711 hardcode_direct_F77=yes # is this really true???
16714 ## LD is ld it makes a PLAMLIB
16715 ## CC just makes a GrossModule.
16716 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16717 reload_cmds_F77='$CC -r -o $output$reload_objs'
16718 hardcode_direct_F77=no
16721 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16722 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16725 runpath_var='LD_RUN_PATH'
16726 hardcode_shlibpath_var_F77=no
16730 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16731 hardcode_shlibpath_var_F77=no
16732 export_dynamic_flag_spec_F77='-Bexport'
16736 if test -d /usr/nec; then
16737 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16738 hardcode_shlibpath_var_F77=no
16739 runpath_var=LD_RUN_PATH
16740 hardcode_runpath_var=yes
16746 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16747 hardcode_direct_F77=yes
16748 hardcode_minus_L_F77=no
16749 hardcode_shlibpath_var_F77=no
16750 hardcode_runpath_var=yes
16751 runpath_var=LD_RUN_PATH
16754 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16755 no_undefined_flag_F77='${wl}-z ${wl}text'
16756 if test "$GCC" = yes; then
16757 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16759 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16761 runpath_var='LD_RUN_PATH'
16762 hardcode_shlibpath_var_F77=no
16766 no_undefined_flag_F77=' -z text'
16767 # $CC -shared without GNU ld will not create a library from C++
16768 # object files and a static libstdc++, better avoid it by now
16769 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16770 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16771 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16772 hardcode_libdir_flag_spec_F77=
16773 hardcode_shlibpath_var_F77=no
16774 runpath_var='LD_RUN_PATH'
16778 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16779 hardcode_libdir_flag_spec_F77='-L$libdir'
16780 hardcode_shlibpath_var_F77=no
16789 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16790 echo "${ECHO_T}$ld_shlibs_F77" >&6
16791 test "$ld_shlibs_F77" = no && can_build_shared=no
16793 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16794 if test "$GCC" = yes; then
16795 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16799 # Do we need to explicitly link libc?
16801 case "x$archive_cmds_need_lc_F77" in
16803 # Assume -lc should be added
16804 archive_cmds_need_lc_F77=yes
16806 if test "$enable_shared" = yes && test "$GCC" = yes; then
16807 case $archive_cmds_F77 in
16809 # FIXME: we may have to deal with multi-command sequences.
16812 # Test whether the compiler implicitly links with -lc since on some
16813 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16814 # to ld, don't add -lc before -lgcc.
16815 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16816 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16818 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16821 (eval $ac_compile) 2>&5
16823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824 (exit $ac_status); } 2>conftest.err; then
16827 libobjs=conftest.$ac_objext
16829 wl=$lt_prog_compiler_wl_F77
16835 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16836 allow_undefined_flag_F77=
16837 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16838 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841 (exit $ac_status); }
16843 archive_cmds_need_lc_F77=no
16845 archive_cmds_need_lc_F77=yes
16847 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16849 cat conftest.err 1>&5
16852 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16853 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
16860 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16861 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16862 library_names_spec=
16863 libname_spec='lib$name'
16867 postuninstall_cmds=
16871 shlibpath_overrides_runpath=unknown
16873 dynamic_linker="$host_os ld.so"
16874 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16875 if test "$GCC" = yes; then
16876 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16877 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16878 # if the path contains ";" then we assume it to be the separator
16879 # otherwise default to the standard path separator (i.e. ":") - it is
16880 # assumed that no part of a normal pathname contains ";" but that should
16881 # okay in the real world where ";" in dirpaths is itself problematic.
16882 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16884 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16887 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16889 need_lib_prefix=unknown
16890 hardcode_into_libs=no
16892 # when you set need_version to no, make sure it does not cause -set_version
16893 # flags to be left without arguments
16894 need_version=unknown
16899 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16900 shlibpath_var=LIBPATH
16902 # AIX 3 has no versioning support, so we append a major version to the name.
16903 soname_spec='${libname}${release}${shared_ext}$major'
16910 hardcode_into_libs=yes
16911 if test "$host_cpu" = ia64; then
16912 # AIX 5 supports IA64
16913 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16914 shlibpath_var=LD_LIBRARY_PATH
16916 # With GCC up to 2.95.x, collect2 would create an import file
16917 # for dependence libraries. The import file would start with
16918 # the line `#! .'. This would cause the generated library to
16919 # depend on `.', always an invalid library. This was fixed in
16920 # development snapshots of GCC prior to 3.0.
16922 aix4 | aix4.[01] | aix4.[01].*)
16923 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16925 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16928 can_build_shared=no
16932 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16933 # soname into executable. Probably we can add versioning support to
16934 # collect2, so additional links can be useful in future.
16935 if test "$aix_use_runtimelinking" = yes; then
16936 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16937 # instead of lib<name>.a to let people know that these are not
16938 # typical AIX shared libraries.
16939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16941 # We preserve .a as extension for shared libraries through AIX4.2
16942 # and later when we are not doing run time linking.
16943 library_names_spec='${libname}${release}.a $libname.a'
16944 soname_spec='${libname}${release}${shared_ext}$major'
16946 shlibpath_var=LIBPATH
16951 library_names_spec='$libname.ixlibrary $libname.a'
16952 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16953 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'
16957 library_names_spec='${libname}${shared_ext}'
16958 dynamic_linker="$host_os ld.so"
16959 shlibpath_var=LIBRARY_PATH
16965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16966 soname_spec='${libname}${release}${shared_ext}$major'
16967 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16968 shlibpath_var=LD_LIBRARY_PATH
16969 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16970 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16971 # the default ld.so.conf also contains /usr/contrib/lib and
16972 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16973 # libtool to hard-code these into programs
16976 cygwin* | mingw* | pw32*)
16977 version_type=windows
16982 case $GCC,$host_os in
16983 yes,cygwin* | yes,mingw* | yes,pw32*)
16984 library_names_spec='$libname.dll.a'
16985 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16986 postinstall_cmds='base_file=`basename \${file}`~
16987 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16988 dldir=$destdir/`dirname \$dlpath`~
16989 test -d \$dldir || mkdir -p \$dldir~
16990 $install_prog $dir/$dlname \$dldir/$dlname'
16991 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16992 dlpath=$dir/\$dldll~
16994 shlibpath_overrides_runpath=yes
16998 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16999 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17000 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17003 # MinGW DLLs use traditional 'lib' prefix
17004 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17005 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17006 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17007 # It is most probably a Windows format PATH printed by
17008 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17009 # path with ; separators, and with drive letters. We can handle the
17010 # drive letters (cygwin fileutils understands them), so leave them,
17011 # especially as we might pass files found there to a mingw objdump,
17012 # which wouldn't understand a cygwinified path. Ahh.
17013 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17015 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17019 # pw32 DLLs use 'pw' prefix rather than 'lib'
17020 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17026 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17029 dynamic_linker='Win32 ld.exe'
17030 # FIXME: first we should search . and the directory the executable is in
17034 darwin* | rhapsody*)
17035 dynamic_linker="$host_os dyld"
17036 version_type=darwin
17039 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17040 soname_spec='${libname}${release}${major}$shared_ext'
17041 shlibpath_overrides_runpath=yes
17042 shlibpath_var=DYLD_LIBRARY_PATH
17043 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17044 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17045 if test "$GCC" = yes; then
17046 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"`
17048 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17050 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17058 soname_spec='${libname}${release}${shared_ext}$major'
17059 shlibpath_var=LD_LIBRARY_PATH
17070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17071 soname_spec='${libname}${release}${shared_ext}$major'
17072 shlibpath_var=LD_LIBRARY_PATH
17073 shlibpath_overrides_runpath=no
17074 hardcode_into_libs=yes
17075 dynamic_linker='GNU ld.so'
17078 freebsd* | dragonfly*)
17079 # DragonFly does not have aout. When/if they implement a new
17080 # versioning mechanism, adjust this.
17081 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17082 version_type=freebsd-$objformat
17083 case $version_type in
17085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17090 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17094 shlibpath_var=LD_LIBRARY_PATH
17097 shlibpath_overrides_runpath=yes
17099 freebsd3.[01]* | freebsdelf3.[01]*)
17100 shlibpath_overrides_runpath=yes
17101 hardcode_into_libs=yes
17104 shlibpath_overrides_runpath=no
17105 hardcode_into_libs=yes
17114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17115 soname_spec='${libname}${release}${shared_ext}$major'
17116 shlibpath_var=LD_LIBRARY_PATH
17117 hardcode_into_libs=yes
17120 hpux9* | hpux10* | hpux11*)
17121 # Give a soname corresponding to the major version so that dld.sl refuses to
17122 # link against other versions.
17126 case "$host_cpu" in
17129 hardcode_into_libs=yes
17130 dynamic_linker="$host_os dld.so"
17131 shlibpath_var=LD_LIBRARY_PATH
17132 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17134 soname_spec='${libname}${release}${shared_ext}$major'
17135 if test "X$HPUX_IA64_MODE" = X32; then
17136 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17138 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17140 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17144 hardcode_into_libs=yes
17145 dynamic_linker="$host_os dld.sl"
17146 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17147 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17149 soname_spec='${libname}${release}${shared_ext}$major'
17150 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17151 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17155 dynamic_linker="$host_os dld.sl"
17156 shlibpath_var=SHLIB_PATH
17157 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17159 soname_spec='${libname}${release}${shared_ext}$major'
17162 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17163 postinstall_cmds='chmod 555 $lib'
17166 irix5* | irix6* | nonstopux*)
17168 nonstopux*) version_type=nonstopux ;;
17170 if test "$lt_cv_prog_gnu_ld" = yes; then
17178 soname_spec='${libname}${release}${shared_ext}$major'
17179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17181 irix5* | nonstopux*)
17182 libsuff= shlibsuff=
17185 case $LD in # libtool.m4 will add one of these switches to LD
17186 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17187 libsuff= shlibsuff= libmagic=32-bit;;
17188 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17189 libsuff=32 shlibsuff=N32 libmagic=N32;;
17190 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17191 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17192 *) libsuff= shlibsuff= libmagic=never-match;;
17196 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17197 shlibpath_overrides_runpath=no
17198 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17199 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17200 hardcode_into_libs=yes
17203 # No shared lib support for Linux oldld, aout, or coff.
17204 linux*oldld* | linux*aout* | linux*coff*)
17208 # This must be Linux ELF.
17213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17214 soname_spec='${libname}${release}${shared_ext}$major'
17215 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17216 shlibpath_var=LD_LIBRARY_PATH
17217 shlibpath_overrides_runpath=no
17218 # This implies no fast_install, which is unacceptable.
17219 # Some rework will be needed to allow for fast_install
17220 # before this can be enabled.
17221 hardcode_into_libs=yes
17223 # Append ld.so.conf contents to the search path
17224 if test -f /etc/ld.so.conf; then
17225 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' ' '`
17226 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17229 # We used to test for /lib/ld.so.1 and disable shared libraries on
17230 # powerpc, because MkLinux only supported shared libraries with the
17231 # GNU dynamic linker. Since this was broken with cross compilers,
17232 # most powerpc-linux boxes support dynamic linking these days and
17233 # people can always --disable-shared, the test was removed, and we
17234 # assume the GNU/Linux dynamic linker is in use.
17235 dynamic_linker='GNU/Linux ld.so'
17242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17243 soname_spec='${libname}${release}${shared_ext}$major'
17244 shlibpath_var=LD_LIBRARY_PATH
17245 shlibpath_overrides_runpath=no
17246 hardcode_into_libs=yes
17247 dynamic_linker='GNU ld.so'
17254 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17256 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17257 dynamic_linker='NetBSD (a.out) ld.so'
17259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17260 soname_spec='${libname}${release}${shared_ext}$major'
17261 dynamic_linker='NetBSD ld.elf_so'
17263 shlibpath_var=LD_LIBRARY_PATH
17264 shlibpath_overrides_runpath=yes
17265 hardcode_into_libs=yes
17270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17271 shlibpath_var=LD_LIBRARY_PATH
17272 shlibpath_overrides_runpath=yes
17279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17280 soname_spec='${libname}${release}${shared_ext}$major'
17281 shlibpath_var=LD_LIBRARY_PATH
17282 shlibpath_overrides_runpath=yes
17288 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17290 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17291 *) need_version=no ;;
17293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17294 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17295 shlibpath_var=LD_LIBRARY_PATH
17296 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17298 openbsd2.[89] | openbsd2.[89].*)
17299 shlibpath_overrides_runpath=no
17302 shlibpath_overrides_runpath=yes
17306 shlibpath_overrides_runpath=yes
17311 libname_spec='$name'
17314 library_names_spec='$libname${shared_ext} $libname.a'
17315 dynamic_linker='OS/2 ld.exe'
17316 shlibpath_var=LIBPATH
17319 osf3* | osf4* | osf5*)
17323 soname_spec='${libname}${release}${shared_ext}$major'
17324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17325 shlibpath_var=LD_LIBRARY_PATH
17326 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17327 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17332 soname_spec='${libname}${release}${shared_ext}$major'
17333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17334 shlibpath_var=LD_LIBRARY_PATH
17341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17342 soname_spec='${libname}${release}${shared_ext}$major'
17343 shlibpath_var=LD_LIBRARY_PATH
17344 shlibpath_overrides_runpath=yes
17345 hardcode_into_libs=yes
17346 # ldd complains unless libraries are executable
17347 postinstall_cmds='chmod +x $lib'
17352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17353 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17354 shlibpath_var=LD_LIBRARY_PATH
17355 shlibpath_overrides_runpath=yes
17356 if test "$with_gnu_ld" = yes; then
17362 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17365 soname_spec='${libname}${release}${shared_ext}$major'
17366 shlibpath_var=LD_LIBRARY_PATH
17367 case $host_vendor in
17369 shlibpath_overrides_runpath=no
17371 export_dynamic_flag_spec='${wl}-Blargedynsym'
17372 runpath_var=LD_RUN_PATH
17380 shlibpath_overrides_runpath=no
17381 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17387 if test -d /usr/nec ;then
17389 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17390 soname_spec='$libname${shared_ext}.$major'
17391 shlibpath_var=LD_LIBRARY_PATH
17397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17398 soname_spec='${libname}${release}${shared_ext}$major'
17399 shlibpath_var=LD_LIBRARY_PATH
17406 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17407 echo "${ECHO_T}$dynamic_linker" >&6
17408 test "$dynamic_linker" = no && can_build_shared=no
17410 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17411 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17412 hardcode_action_F77=
17413 if test -n "$hardcode_libdir_flag_spec_F77" || \
17414 test -n "$runpath_var_F77" || \
17415 test "X$hardcode_automatic_F77" = "Xyes" ; then
17417 # We can hardcode non-existant directories.
17418 if test "$hardcode_direct_F77" != no &&
17419 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17420 # have to relink, otherwise we might link with an installed library
17421 # when we should be linking with a yet-to-be-installed one
17422 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17423 test "$hardcode_minus_L_F77" != no; then
17424 # Linking always hardcodes the temporary library directory.
17425 hardcode_action_F77=relink
17427 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17428 hardcode_action_F77=immediate
17431 # We cannot hardcode anything, or else we can only hardcode existing
17433 hardcode_action_F77=unsupported
17435 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17436 echo "${ECHO_T}$hardcode_action_F77" >&6
17438 if test "$hardcode_action_F77" = relink; then
17439 # Fast installation is not supported
17440 enable_fast_install=no
17441 elif test "$shlibpath_overrides_runpath" = yes ||
17442 test "$enable_shared" = no; then
17443 # Fast installation is not necessary
17444 enable_fast_install=needless
17449 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17450 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17451 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17452 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17453 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17454 echo "$as_me:$LINENO: result: yes" >&5
17455 echo "${ECHO_T}yes" >&6
17457 # FIXME - insert some real tests, host_os isn't really good enough
17460 if test -n "$STRIP" ; then
17461 striplib="$STRIP -x"
17462 echo "$as_me:$LINENO: result: yes" >&5
17463 echo "${ECHO_T}yes" >&6
17465 echo "$as_me:$LINENO: result: no" >&5
17466 echo "${ECHO_T}no" >&6
17470 echo "$as_me:$LINENO: result: no" >&5
17471 echo "${ECHO_T}no" >&6
17478 # The else clause should only fire when bootstrapping the
17479 # libtool distribution, otherwise you forgot to ship ltmain.sh
17480 # with your package, and you will get complaints that there are
17481 # no rules to generate ltmain.sh.
17482 if test -f "$ltmain"; then
17483 # See if we are running on zsh, and set the options which allow our commands through
17484 # without removal of \ escapes.
17485 if test -n "${ZSH_VERSION+set}" ; then
17486 setopt NO_GLOB_SUBST
17488 # Now quote all the things that may contain metacharacters while being
17489 # careful not to overquote the AC_SUBSTed values. We take copies of the
17490 # variables and quote the copies for generation of the libtool script.
17491 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17493 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17494 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17495 deplibs_check_method reload_flag reload_cmds need_locks \
17496 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17497 lt_cv_sys_global_symbol_to_c_name_address \
17498 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17499 old_postinstall_cmds old_postuninstall_cmds \
17503 lt_prog_compiler_wl_F77 \
17504 lt_prog_compiler_pic_F77 \
17505 lt_prog_compiler_static_F77 \
17506 lt_prog_compiler_no_builtin_flag_F77 \
17507 export_dynamic_flag_spec_F77 \
17508 thread_safe_flag_spec_F77 \
17509 whole_archive_flag_spec_F77 \
17510 enable_shared_with_static_runtimes_F77 \
17511 old_archive_cmds_F77 \
17512 old_archive_from_new_cmds_F77 \
17513 predep_objects_F77 \
17514 postdep_objects_F77 \
17517 compiler_lib_search_path_F77 \
17519 archive_expsym_cmds_F77 \
17520 postinstall_cmds_F77 \
17521 postuninstall_cmds_F77 \
17522 old_archive_from_expsyms_cmds_F77 \
17523 allow_undefined_flag_F77 \
17524 no_undefined_flag_F77 \
17525 export_symbols_cmds_F77 \
17526 hardcode_libdir_flag_spec_F77 \
17527 hardcode_libdir_flag_spec_ld_F77 \
17528 hardcode_libdir_separator_F77 \
17529 hardcode_automatic_F77 \
17531 module_expsym_cmds_F77 \
17532 lt_cv_prog_compiler_c_o_F77 \
17533 exclude_expsyms_F77 \
17534 include_expsyms_F77; do
17537 old_archive_cmds_F77 | \
17538 old_archive_from_new_cmds_F77 | \
17539 archive_cmds_F77 | \
17540 archive_expsym_cmds_F77 | \
17541 module_cmds_F77 | \
17542 module_expsym_cmds_F77 | \
17543 old_archive_from_expsyms_cmds_F77 | \
17544 export_symbols_cmds_F77 | \
17545 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17546 postinstall_cmds | postuninstall_cmds | \
17547 old_postinstall_cmds | old_postuninstall_cmds | \
17548 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17549 # Double-quote double-evaled strings.
17550 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17553 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17559 *'\$0 --fallback-echo"')
17560 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17566 cat <<__EOF__ >> "$cfgfile"
17567 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17569 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17571 # Shell to use when invoking shell scripts.
17574 # Whether or not to build shared libraries.
17575 build_libtool_libs=$enable_shared
17577 # Whether or not to build static libraries.
17578 build_old_libs=$enable_static
17580 # Whether or not to add -lc for building shared libraries.
17581 build_libtool_need_lc=$archive_cmds_need_lc_F77
17583 # Whether or not to disallow shared libs when runtime libs are static
17584 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17586 # Whether or not to optimize for fast installation.
17587 fast_install=$enable_fast_install
17590 host_alias=$host_alias
17594 # The build system.
17595 build_alias=$build_alias
17599 # An echo program that does not interpret backslashes.
17604 AR_FLAGS=$lt_AR_FLAGS
17609 # A language-specific compiler.
17610 CC=$lt_compiler_F77
17612 # Is the compiler the GNU C compiler?
17618 # The linker used to build libraries.
17621 # Whether we need hard or soft links.
17624 # A BSD-compatible nm program.
17627 # A symbol stripping program
17630 # Used to examine libraries when file_magic_cmd begins "file"
17631 MAGIC_CMD=$MAGIC_CMD
17633 # Used on cygwin: DLL creation program.
17636 # Used on cygwin: object dumper.
17639 # Used on cygwin: assembler.
17642 # The name of the directory that contains temporary libtool files.
17645 # How to create reloadable object files.
17646 reload_flag=$lt_reload_flag
17647 reload_cmds=$lt_reload_cmds
17649 # How to pass a linker flag through the compiler.
17650 wl=$lt_lt_prog_compiler_wl_F77
17652 # Object file suffix (normally "o").
17653 objext="$ac_objext"
17655 # Old archive suffix (normally "a").
17658 # Shared library suffix (normally ".so").
17659 shrext_cmds='$shrext_cmds'
17661 # Executable file suffix (normally "").
17664 # Additional compiler flags for building library objects.
17665 pic_flag=$lt_lt_prog_compiler_pic_F77
17668 # What is the maximum length of a command?
17669 max_cmd_len=$lt_cv_sys_max_cmd_len
17671 # Does compiler simultaneously support -c and -o options?
17672 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17674 # Must we lock files when doing compilation?
17675 need_locks=$lt_need_locks
17677 # Do we need the lib prefix for modules?
17678 need_lib_prefix=$need_lib_prefix
17680 # Do we need a version for libraries?
17681 need_version=$need_version
17683 # Whether dlopen is supported.
17684 dlopen_support=$enable_dlopen
17686 # Whether dlopen of programs is supported.
17687 dlopen_self=$enable_dlopen_self
17689 # Whether dlopen of statically linked programs is supported.
17690 dlopen_self_static=$enable_dlopen_self_static
17692 # Compiler flag to prevent dynamic linking.
17693 link_static_flag=$lt_lt_prog_compiler_static_F77
17695 # Compiler flag to turn off builtin functions.
17696 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17698 # Compiler flag to allow reflexive dlopens.
17699 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17701 # Compiler flag to generate shared objects directly from archives.
17702 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17704 # Compiler flag to generate thread-safe objects.
17705 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17707 # Library versioning type.
17708 version_type=$version_type
17710 # Format of library name prefix.
17711 libname_spec=$lt_libname_spec
17713 # List of archive names. First name is the real one, the rest are links.
17714 # The last name is the one that the linker finds with -lNAME.
17715 library_names_spec=$lt_library_names_spec
17717 # The coded name of the library, if different from the real name.
17718 soname_spec=$lt_soname_spec
17720 # Commands used to build and install an old-style archive.
17722 old_archive_cmds=$lt_old_archive_cmds_F77
17723 old_postinstall_cmds=$lt_old_postinstall_cmds
17724 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17726 # Create an old-style archive from a shared archive.
17727 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17729 # Create a temporary old-style archive to link instead of a shared archive.
17730 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17732 # Commands used to build and install a shared archive.
17733 archive_cmds=$lt_archive_cmds_F77
17734 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17735 postinstall_cmds=$lt_postinstall_cmds
17736 postuninstall_cmds=$lt_postuninstall_cmds
17738 # Commands used to build a loadable module (assumed same as above if empty)
17739 module_cmds=$lt_module_cmds_F77
17740 module_expsym_cmds=$lt_module_expsym_cmds_F77
17742 # Commands to strip libraries.
17743 old_striplib=$lt_old_striplib
17744 striplib=$lt_striplib
17746 # Dependencies to place before the objects being linked to create a
17748 predep_objects=$lt_predep_objects_F77
17750 # Dependencies to place after the objects being linked to create a
17752 postdep_objects=$lt_postdep_objects_F77
17754 # Dependencies to place before the objects being linked to create a
17756 predeps=$lt_predeps_F77
17758 # Dependencies to place after the objects being linked to create a
17760 postdeps=$lt_postdeps_F77
17762 # The library search path used internally by the compiler when linking
17763 # a shared library.
17764 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17766 # Method to check whether dependent libraries are shared objects.
17767 deplibs_check_method=$lt_deplibs_check_method
17769 # Command to use when deplibs_check_method == file_magic.
17770 file_magic_cmd=$lt_file_magic_cmd
17772 # Flag that allows shared libraries with undefined symbols to be built.
17773 allow_undefined_flag=$lt_allow_undefined_flag_F77
17775 # Flag that forces no undefined symbols.
17776 no_undefined_flag=$lt_no_undefined_flag_F77
17778 # Commands used to finish a libtool library installation in a directory.
17779 finish_cmds=$lt_finish_cmds
17781 # Same as above, but a single script fragment to be evaled but not shown.
17782 finish_eval=$lt_finish_eval
17784 # Take the output of nm and produce a listing of raw symbols and C names.
17785 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17787 # Transform the output of nm in a proper C declaration
17788 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17790 # Transform the output of nm in a C name address pair
17791 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17793 # This is the shared library runtime path variable.
17794 runpath_var=$runpath_var
17796 # This is the shared library path variable.
17797 shlibpath_var=$shlibpath_var
17799 # Is shlibpath searched before the hard-coded library search path?
17800 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17802 # How to hardcode a shared library path into an executable.
17803 hardcode_action=$hardcode_action_F77
17805 # Whether we should hardcode library paths into libraries.
17806 hardcode_into_libs=$hardcode_into_libs
17808 # Flag to hardcode \$libdir into a binary during linking.
17809 # This must work even if \$libdir does not exist.
17810 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17812 # If ld is used when linking, flag to hardcode \$libdir into
17813 # a binary during linking. This must work even if \$libdir does
17815 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17817 # Whether we need a single -rpath flag with a separated argument.
17818 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17820 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17821 # resulting binary.
17822 hardcode_direct=$hardcode_direct_F77
17824 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17825 # resulting binary.
17826 hardcode_minus_L=$hardcode_minus_L_F77
17828 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17829 # the resulting binary.
17830 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17832 # Set to yes if building a shared library automatically hardcodes DIR into the library
17833 # and all subsequent libraries and executables linked against it.
17834 hardcode_automatic=$hardcode_automatic_F77
17836 # Variables whose values should be saved in libtool wrapper scripts and
17837 # restored at relink time.
17838 variables_saved_for_relink="$variables_saved_for_relink"
17840 # Whether libtool must link a program against all its dependency libraries.
17841 link_all_deplibs=$link_all_deplibs_F77
17843 # Compile-time system search path for libraries
17844 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17846 # Run-time system search path for libraries
17847 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17849 # Fix the shell variable \$srcfile for the compiler.
17850 fix_srcfile_path="$fix_srcfile_path_F77"
17852 # Set to yes if exported symbols are required.
17853 always_export_symbols=$always_export_symbols_F77
17855 # The commands to list exported symbols.
17856 export_symbols_cmds=$lt_export_symbols_cmds_F77
17858 # The commands to extract the exported symbol list from a shared archive.
17859 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17861 # Symbols that should not be listed in the preloaded symbols.
17862 exclude_expsyms=$lt_exclude_expsyms_F77
17864 # Symbols that must always be exported.
17865 include_expsyms=$lt_include_expsyms_F77
17867 # ### END LIBTOOL TAG CONFIG: $tagname
17873 # If there is no Makefile yet, we rely on a make rule to execute
17874 # `config.status --recheck' to rerun these tests and create the
17875 # libtool script then.
17876 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17877 if test -f "$ltmain_in"; then
17878 test -f Makefile && make "$ltmain"
17884 ac_cpp='$CPP $CPPFLAGS'
17885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17897 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17901 # Source file extension for Java test sources.
17904 # Object file extension for compiled Java test sources.
17908 # Code to be used in simple compile tests
17909 lt_simple_compile_test_code="class foo {}\n"
17911 # Code to be used in simple link tests
17912 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17914 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17916 # If no C compiler was specified, use CC.
17919 # Allow CC to be a program name with arguments.
17923 # save warnings/boilerplate of simple test code
17924 ac_outfile=conftest.$ac_objext
17925 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17926 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
17927 _lt_compiler_boilerplate=`cat conftest.err`
17930 ac_outfile=conftest.$ac_objext
17931 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17932 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
17933 _lt_linker_boilerplate=`cat conftest.err`
17937 # Allow CC to be a program name with arguments.
17942 for cc_temp in $compiler""; do
17944 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17945 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17950 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17953 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17954 archive_cmds_need_lc_GCJ=no
17956 old_archive_cmds_GCJ=$old_archive_cmds
17959 lt_prog_compiler_no_builtin_flag_GCJ=
17961 if test "$GCC" = yes; then
17962 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17965 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17966 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17967 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17968 echo $ECHO_N "(cached) $ECHO_C" >&6
17970 lt_cv_prog_compiler_rtti_exceptions=no
17971 ac_outfile=conftest.$ac_objext
17972 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17973 lt_compiler_flag="-fno-rtti -fno-exceptions"
17974 # Insert the option either (1) after the last *FLAGS variable, or
17975 # (2) before a word containing "conftest.", or (3) at the end.
17976 # Note that $ac_compile itself does not contain backslashes and begins
17977 # with a dollar sign (not a hyphen), so the echo should work correctly.
17978 # The option is referenced via a variable to avoid confusing sed.
17979 lt_compile=`echo "$ac_compile" | $SED \
17980 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17981 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17982 -e 's:$: $lt_compiler_flag:'`
17983 (eval echo "\"\$as_me:17983: $lt_compile\"" >&5)
17984 (eval "$lt_compile" 2>conftest.err)
17986 cat conftest.err >&5
17987 echo "$as_me:17987: \$? = $ac_status" >&5
17988 if (exit $ac_status) && test -s "$ac_outfile"; then
17989 # The compiler can only warn and ignore the option if not recognized
17990 # So say no if there are warnings other than the usual output.
17991 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
17992 $SED '/^$/d' conftest.err >conftest.er2
17993 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
17994 lt_cv_prog_compiler_rtti_exceptions=yes
18000 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18001 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
18003 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18004 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18011 lt_prog_compiler_wl_GCJ=
18012 lt_prog_compiler_pic_GCJ=
18013 lt_prog_compiler_static_GCJ=
18015 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18016 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18018 if test "$GCC" = yes; then
18019 lt_prog_compiler_wl_GCJ='-Wl,'
18020 lt_prog_compiler_static_GCJ='-static'
18024 # All AIX code is PIC.
18025 if test "$host_cpu" = ia64; then
18026 # AIX 5 now supports IA64 processor
18027 lt_prog_compiler_static_GCJ='-Bstatic'
18032 # FIXME: we need at least 68020 code to build shared libraries, but
18033 # adding the `-m68020' flag to GCC prevents building anything better,
18035 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18038 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18039 # PIC is the default for these OSes.
18042 mingw* | pw32* | os2*)
18043 # This hack is so that the source file can tell whether it is being
18044 # built for inclusion in a dll (and should export symbols for example).
18045 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18048 darwin* | rhapsody*)
18049 # PIC is the default on this platform
18050 # Common symbols not allowed in MH_DYLIB files
18051 lt_prog_compiler_pic_GCJ='-fno-common'
18055 # Just because we use GCC doesn't mean we suddenly get shared libraries
18056 # on systems that don't support them.
18057 lt_prog_compiler_can_build_shared_GCJ=no
18062 if test -d /usr/nec; then
18063 lt_prog_compiler_pic_GCJ=-Kconform_pic
18068 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18069 # not for PA HP-UX.
18070 case "$host_cpu" in
18075 lt_prog_compiler_pic_GCJ='-fPIC'
18081 lt_prog_compiler_pic_GCJ='-fPIC'
18085 # PORTME Check for flag to pass linker flags through the system compiler.
18088 lt_prog_compiler_wl_GCJ='-Wl,'
18089 if test "$host_cpu" = ia64; then
18090 # AIX 5 now supports IA64 processor
18091 lt_prog_compiler_static_GCJ='-Bstatic'
18093 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18097 # PIC is the default on this platform
18098 # Common symbols not allowed in MH_DYLIB files
18099 case $cc_basename in
18101 lt_prog_compiler_pic_GCJ='-qnocommon'
18102 lt_prog_compiler_wl_GCJ='-Wl,'
18107 mingw* | pw32* | os2*)
18108 # This hack is so that the source file can tell whether it is being
18109 # built for inclusion in a dll (and should export symbols for example).
18110 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18113 hpux9* | hpux10* | hpux11*)
18114 lt_prog_compiler_wl_GCJ='-Wl,'
18115 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18116 # not for PA HP-UX.
18117 case "$host_cpu" in
18122 lt_prog_compiler_pic_GCJ='+Z'
18125 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18126 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18129 irix5* | irix6* | nonstopux*)
18130 lt_prog_compiler_wl_GCJ='-Wl,'
18131 # PIC (with -KPIC) is the default.
18132 lt_prog_compiler_static_GCJ='-non_shared'
18136 lt_prog_compiler_pic_GCJ='-KPIC'
18137 lt_prog_compiler_static_GCJ='-Bstatic'
18141 case $cc_basename in
18143 lt_prog_compiler_wl_GCJ='-Wl,'
18144 lt_prog_compiler_pic_GCJ='-KPIC'
18145 lt_prog_compiler_static_GCJ='-static'
18147 pgcc* | pgf77* | pgf90*)
18148 # Portland Group compilers (*not* the Pentium gcc compiler,
18149 # which looks to be a dead project)
18150 lt_prog_compiler_wl_GCJ='-Wl,'
18151 lt_prog_compiler_pic_GCJ='-fpic'
18152 lt_prog_compiler_static_GCJ='-static'
18155 lt_prog_compiler_wl_GCJ='-Wl,'
18156 # All Alpha code is PIC.
18157 lt_prog_compiler_static_GCJ='-non_shared'
18162 osf3* | osf4* | osf5*)
18163 lt_prog_compiler_wl_GCJ='-Wl,'
18164 # All OSF/1 code is PIC.
18165 lt_prog_compiler_static_GCJ='-non_shared'
18169 lt_prog_compiler_pic_GCJ='-Kpic'
18170 lt_prog_compiler_static_GCJ='-dn'
18174 lt_prog_compiler_pic_GCJ='-KPIC'
18175 lt_prog_compiler_static_GCJ='-Bstatic'
18176 case $cc_basename in
18177 f77* | f90* | f95*)
18178 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18180 lt_prog_compiler_wl_GCJ='-Wl,';;
18185 lt_prog_compiler_wl_GCJ='-Qoption ld '
18186 lt_prog_compiler_pic_GCJ='-PIC'
18187 lt_prog_compiler_static_GCJ='-Bstatic'
18190 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18191 lt_prog_compiler_wl_GCJ='-Wl,'
18192 lt_prog_compiler_pic_GCJ='-KPIC'
18193 lt_prog_compiler_static_GCJ='-Bstatic'
18197 if test -d /usr/nec ;then
18198 lt_prog_compiler_pic_GCJ='-Kconform_pic'
18199 lt_prog_compiler_static_GCJ='-Bstatic'
18204 lt_prog_compiler_wl_GCJ='-Wl,'
18205 lt_prog_compiler_can_build_shared_GCJ=no
18209 lt_prog_compiler_pic_GCJ='-pic'
18210 lt_prog_compiler_static_GCJ='-Bstatic'
18214 lt_prog_compiler_can_build_shared_GCJ=no
18219 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18220 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
18223 # Check to make sure the PIC flag actually works.
18225 if test -n "$lt_prog_compiler_pic_GCJ"; then
18227 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18228 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
18229 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18230 echo $ECHO_N "(cached) $ECHO_C" >&6
18232 lt_prog_compiler_pic_works_GCJ=no
18233 ac_outfile=conftest.$ac_objext
18234 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18235 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18236 # Insert the option either (1) after the last *FLAGS variable, or
18237 # (2) before a word containing "conftest.", or (3) at the end.
18238 # Note that $ac_compile itself does not contain backslashes and begins
18239 # with a dollar sign (not a hyphen), so the echo should work correctly.
18240 # The option is referenced via a variable to avoid confusing sed.
18241 lt_compile=`echo "$ac_compile" | $SED \
18242 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18243 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18244 -e 's:$: $lt_compiler_flag:'`
18245 (eval echo "\"\$as_me:18245: $lt_compile\"" >&5)
18246 (eval "$lt_compile" 2>conftest.err)
18248 cat conftest.err >&5
18249 echo "$as_me:18249: \$? = $ac_status" >&5
18250 if (exit $ac_status) && test -s "$ac_outfile"; then
18251 # The compiler can only warn and ignore the option if not recognized
18252 # So say no if there are warnings other than the usual output.
18253 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
18254 $SED '/^$/d' conftest.err >conftest.er2
18255 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
18256 lt_prog_compiler_pic_works_GCJ=yes
18262 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18263 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
18265 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18266 case $lt_prog_compiler_pic_GCJ in
18268 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18271 lt_prog_compiler_pic_GCJ=
18272 lt_prog_compiler_can_build_shared_GCJ=no
18277 # For platforms which do not support PIC, -DPIC is meaningless:
18279 lt_prog_compiler_pic_GCJ=
18282 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18286 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18287 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18288 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18289 echo $ECHO_N "(cached) $ECHO_C" >&6
18291 lt_cv_prog_compiler_c_o_GCJ=no
18292 $rm -r conftest 2>/dev/null
18296 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18298 lt_compiler_flag="-o out/conftest2.$ac_objext"
18299 # Insert the option either (1) after the last *FLAGS variable, or
18300 # (2) before a word containing "conftest.", or (3) at the end.
18301 # Note that $ac_compile itself does not contain backslashes and begins
18302 # with a dollar sign (not a hyphen), so the echo should work correctly.
18303 lt_compile=`echo "$ac_compile" | $SED \
18304 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18305 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18306 -e 's:$: $lt_compiler_flag:'`
18307 (eval echo "\"\$as_me:18307: $lt_compile\"" >&5)
18308 (eval "$lt_compile" 2>out/conftest.err)
18310 cat out/conftest.err >&5
18311 echo "$as_me:18311: \$? = $ac_status" >&5
18312 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18314 # The compiler can only warn and ignore the option if not recognized
18315 # So say no if there are warnings
18316 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
18317 $SED '/^$/d' out/conftest.err >out/conftest.er2
18318 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18319 lt_cv_prog_compiler_c_o_GCJ=yes
18324 # SGI C++ compiler will create directory out/ii_files/ for
18325 # template instantiation
18326 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18327 $rm out/* && rmdir out
18333 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18334 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
18337 hard_links="nottested"
18338 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18339 # do not overwrite the value of need_locks provided by the user
18340 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18341 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18344 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18346 ln conftest.a conftest.b 2>&5 || hard_links=no
18347 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18348 echo "$as_me:$LINENO: result: $hard_links" >&5
18349 echo "${ECHO_T}$hard_links" >&6
18350 if test "$hard_links" = no; then
18351 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18352 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18359 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18360 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18363 allow_undefined_flag_GCJ=
18364 enable_shared_with_static_runtimes_GCJ=no
18366 archive_expsym_cmds_GCJ=
18367 old_archive_From_new_cmds_GCJ=
18368 old_archive_from_expsyms_cmds_GCJ=
18369 export_dynamic_flag_spec_GCJ=
18370 whole_archive_flag_spec_GCJ=
18371 thread_safe_flag_spec_GCJ=
18372 hardcode_libdir_flag_spec_GCJ=
18373 hardcode_libdir_flag_spec_ld_GCJ=
18374 hardcode_libdir_separator_GCJ=
18375 hardcode_direct_GCJ=no
18376 hardcode_minus_L_GCJ=no
18377 hardcode_shlibpath_var_GCJ=unsupported
18378 link_all_deplibs_GCJ=unknown
18379 hardcode_automatic_GCJ=no
18381 module_expsym_cmds_GCJ=
18382 always_export_symbols_GCJ=no
18383 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18384 # include_expsyms should be a list of space-separated symbols to be *always*
18385 # included in the symbol list
18386 include_expsyms_GCJ=
18387 # exclude_expsyms can be an extended regexp of symbols to exclude
18388 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18389 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18390 # as well as any symbol that contains `d'.
18391 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18392 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18393 # platforms (ab)use it in PIC code, but their linkers get confused if
18394 # the symbol is explicitly referenced. Since portable code cannot
18395 # rely on this symbol name, it's probably fine to never include it in
18396 # preloaded symbol tables.
18397 extract_expsyms_cmds=
18398 # Just being paranoid about ensuring that cc_basename is set.
18399 for cc_temp in $compiler""; do
18401 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18402 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18407 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18410 cygwin* | mingw* | pw32*)
18411 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18412 # When not using gcc, we currently assume that we are using
18413 # Microsoft Visual C++.
18414 if test "$GCC" != yes; then
18424 if test "$with_gnu_ld" = yes; then
18425 # If archive_cmds runs LD, not CC, wlarc should be empty
18428 # Set some defaults for GNU ld with shared library support. These
18429 # are reset later if shared libraries are not supported. Putting them
18430 # here allows them to be overridden if necessary.
18431 runpath_var=LD_RUN_PATH
18432 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18433 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18434 # ancient GNU ld didn't support --whole-archive et. al.
18435 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18436 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18438 whole_archive_flag_spec_GCJ=
18440 supports_anon_versioning=no
18441 case `$LD -v 2>/dev/null` in
18442 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18443 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18444 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18445 *\ 2.11.*) ;; # other 2.11 versions
18446 *) supports_anon_versioning=yes ;;
18449 # See if GNU ld supports shared libraries.
18451 aix3* | aix4* | aix5*)
18452 # On AIX/PPC, the GNU linker is very broken
18453 if test "$host_cpu" != ia64; then
18457 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18458 *** to be unable to reliably create shared libraries on AIX.
18459 *** Therefore, libtool is disabling shared libraries support. If you
18460 *** really care for shared libraries, you may want to modify your PATH
18461 *** so that a non-GNU linker is found, and then restart.
18468 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)'
18469 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18470 hardcode_minus_L_GCJ=yes
18472 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18473 # that the semantics of dynamic libraries on AmigaOS, at least up
18474 # to version 4, is to share data among multiple programs linked
18475 # with the same dynamic library. Since this doesn't match the
18476 # behavior of shared libraries on other platforms, we can't use
18482 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18483 allow_undefined_flag_GCJ=unsupported
18484 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18485 # support --undefined. This deserves some investigation. FIXME
18486 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18492 cygwin* | mingw* | pw32*)
18493 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18494 # as there is no search path for DLLs.
18495 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18496 allow_undefined_flag_GCJ=unsupported
18497 always_export_symbols_GCJ=no
18498 enable_shared_with_static_runtimes_GCJ=yes
18499 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18501 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18502 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
18503 # If the export-symbols file already is a .def file (1st line
18504 # is EXPORTS), use it as is; otherwise, prepend...
18505 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18506 cp $export_symbols $output_objdir/$soname.def;
18508 echo EXPORTS > $output_objdir/$soname.def;
18509 cat $export_symbols >> $output_objdir/$soname.def;
18511 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
18518 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18520 case $cc_basename,$host_cpu in
18521 pgcc*) # Portland Group C compiler
18522 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'
18523 tmp_addflag=' $pic_flag'
18525 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
18526 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'
18527 tmp_addflag=' $pic_flag -Mnomain' ;;
18528 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18529 tmp_addflag=' -i_dynamic' ;;
18530 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18531 tmp_addflag=' -i_dynamic -nofor_main' ;;
18532 ifc* | ifort*) # Intel Fortran compiler
18533 tmp_addflag=' -nofor_main' ;;
18535 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18537 if test $supports_anon_versioning = yes; then
18538 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18539 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18540 $echo "local: *; };" >> $output_objdir/$libname.ver~
18541 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18549 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18550 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18553 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18554 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18559 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18563 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18564 *** create shared libraries on Solaris systems. Therefore, libtool
18565 *** is disabling shared libraries support. We urge you to upgrade GNU
18566 *** binutils to release 2.9.1 or newer. Another option is to modify
18567 *** your PATH or compiler configuration so that the native linker is
18568 *** used, and then restart.
18571 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18572 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18573 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18580 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18582 hardcode_direct_GCJ=yes
18583 hardcode_shlibpath_var_GCJ=no
18587 if $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 if test "$ld_shlibs_GCJ" = no; then
18598 hardcode_libdir_flag_spec_GCJ=
18599 export_dynamic_flag_spec_GCJ=
18600 whole_archive_flag_spec_GCJ=
18603 # PORTME fill in a description of your system's linker (not GNU ld)
18606 allow_undefined_flag_GCJ=unsupported
18607 always_export_symbols_GCJ=yes
18608 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'
18609 # Note: this linker hardcodes the directories in LIBPATH if there
18610 # are no directories specified by -L.
18611 hardcode_minus_L_GCJ=yes
18612 if test "$GCC" = yes && test -z "$link_static_flag"; then
18613 # Neither direct hardcoding nor static linking is supported with a
18615 hardcode_direct_GCJ=unsupported
18620 if test "$host_cpu" = ia64; then
18621 # On IA64, the linker does run time linking by default, so we don't
18622 # have to do anything special.
18623 aix_use_runtimelinking=no
18624 exp_sym_flag='-Bexport'
18627 # If we're using GNU nm, then we don't want the "-C" option.
18628 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18629 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18630 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'
18632 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'
18634 aix_use_runtimelinking=no
18636 # Test if we are trying to use run time linking or normal
18637 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18638 # need to do runtime linking.
18639 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18640 for ld_flag in $LDFLAGS; do
18641 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18642 aix_use_runtimelinking=yes
18648 exp_sym_flag='-bexport'
18649 no_entry_flag='-bnoentry'
18652 # When large executables or shared objects are built, AIX ld can
18653 # have problems creating the table of contents. If linking a library
18654 # or program results in "error TOC overflow" add -mminimal-toc to
18655 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18656 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18658 archive_cmds_GCJ=''
18659 hardcode_direct_GCJ=yes
18660 hardcode_libdir_separator_GCJ=':'
18661 link_all_deplibs_GCJ=yes
18663 if test "$GCC" = yes; then
18664 case $host_os in aix4.[012]|aix4.[012].*)
18665 # We only want to do this on AIX 4.2 and lower, the check
18666 # below for broken collect2 doesn't work under 4.3+
18667 collect2name=`${CC} -print-prog-name=collect2`
18668 if test -f "$collect2name" && \
18669 strings "$collect2name" | grep resolve_lib_name >/dev/null
18671 # We have reworked collect2
18672 hardcode_direct_GCJ=yes
18674 # We have old collect2
18675 hardcode_direct_GCJ=unsupported
18676 # It fails to find uninstalled libraries when the uninstalled
18677 # path is not listed in the libpath. Setting hardcode_minus_L
18678 # to unsupported forces relinking
18679 hardcode_minus_L_GCJ=yes
18680 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18681 hardcode_libdir_separator_GCJ=
18684 shared_flag='-shared'
18685 if test "$aix_use_runtimelinking" = yes; then
18686 shared_flag="$shared_flag "'${wl}-G'
18690 if test "$host_cpu" = ia64; then
18691 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18692 # chokes on -Wl,-G. The following line is correct:
18695 if test "$aix_use_runtimelinking" = yes; then
18696 shared_flag='${wl}-G'
18698 shared_flag='${wl}-bM:SRE'
18703 # It seems that -bexpall does not export symbols beginning with
18704 # underscore (_), so it is better to generate a list of symbols to export.
18705 always_export_symbols_GCJ=yes
18706 if test "$aix_use_runtimelinking" = yes; then
18707 # Warning - without using the other runtime loading flags (-brtl),
18708 # -berok will link without error, but may produce a broken library.
18709 allow_undefined_flag_GCJ='-berok'
18710 # Determine the default libpath from the value encoded in an empty executable.
18711 cat >conftest.$ac_ext <<_ACEOF
18714 cat confdefs.h >>conftest.$ac_ext
18715 cat >>conftest.$ac_ext <<_ACEOF
18716 /* end confdefs.h. */
18726 rm -f conftest.$ac_objext conftest$ac_exeext
18727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18728 (eval $ac_link) 2>conftest.er1
18730 grep -v '^ *+' conftest.er1 >conftest.err
18732 cat conftest.err >&5
18733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18734 (exit $ac_status); } &&
18735 { ac_try='test -z "$ac_c_werror_flag"
18736 || test ! -s conftest.err'
18737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18738 (eval $ac_try) 2>&5
18740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18741 (exit $ac_status); }; } &&
18742 { ac_try='test -s conftest$ac_exeext'
18743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18744 (eval $ac_try) 2>&5
18746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18747 (exit $ac_status); }; }; then
18749 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18751 # Check for a 64-bit object if we didn't find anything.
18752 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; }
18755 echo "$as_me: failed program was:" >&5
18756 sed 's/^/| /' conftest.$ac_ext >&5
18759 rm -f conftest.err conftest.$ac_objext \
18760 conftest$ac_exeext conftest.$ac_ext
18761 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18763 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18764 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"
18766 if test "$host_cpu" = ia64; then
18767 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18768 allow_undefined_flag_GCJ="-z nodefs"
18769 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"
18771 # Determine the default libpath from the value encoded in an empty executable.
18772 cat >conftest.$ac_ext <<_ACEOF
18775 cat confdefs.h >>conftest.$ac_ext
18776 cat >>conftest.$ac_ext <<_ACEOF
18777 /* end confdefs.h. */
18787 rm -f conftest.$ac_objext conftest$ac_exeext
18788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18789 (eval $ac_link) 2>conftest.er1
18791 grep -v '^ *+' conftest.er1 >conftest.err
18793 cat conftest.err >&5
18794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795 (exit $ac_status); } &&
18796 { ac_try='test -z "$ac_c_werror_flag"
18797 || test ! -s conftest.err'
18798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18799 (eval $ac_try) 2>&5
18801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18802 (exit $ac_status); }; } &&
18803 { ac_try='test -s conftest$ac_exeext'
18804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18805 (eval $ac_try) 2>&5
18807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808 (exit $ac_status); }; }; then
18810 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18812 # Check for a 64-bit object if we didn't find anything.
18813 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; }
18816 echo "$as_me: failed program was:" >&5
18817 sed 's/^/| /' conftest.$ac_ext >&5
18820 rm -f conftest.err conftest.$ac_objext \
18821 conftest$ac_exeext conftest.$ac_ext
18822 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18824 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18825 # Warning - without using the other run time loading flags,
18826 # -berok will link without error, but may produce a broken library.
18827 no_undefined_flag_GCJ=' ${wl}-bernotok'
18828 allow_undefined_flag_GCJ=' ${wl}-berok'
18829 # -bexpall does not export symbols beginning with underscore (_)
18830 always_export_symbols_GCJ=yes
18831 # Exported symbols can be pulled into shared objects from archives
18832 whole_archive_flag_spec_GCJ=' '
18833 archive_cmds_need_lc_GCJ=yes
18834 # This is similar to how AIX traditionally builds it's shared libraries.
18835 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'
18841 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)'
18842 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18843 hardcode_minus_L_GCJ=yes
18844 # see comment about different semantics on the GNU ld section
18849 export_dynamic_flag_spec_GCJ=-rdynamic
18852 cygwin* | mingw* | pw32*)
18853 # When not using gcc, we currently assume that we are using
18854 # Microsoft Visual C++.
18855 # hardcode_libdir_flag_spec is actually meaningless, as there is
18856 # no search path for DLLs.
18857 hardcode_libdir_flag_spec_GCJ=' '
18858 allow_undefined_flag_GCJ=unsupported
18859 # Tell ltmain to make .lib files, not .a files.
18861 # Tell ltmain to make .dll files, not .so files.
18863 # FIXME: Setting linknames here is a bad hack.
18864 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18865 # The linker will automatically build a .lib file if we build a DLL.
18866 old_archive_From_new_cmds_GCJ='true'
18867 # FIXME: Should let the user specify the lib program.
18868 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18869 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18870 enable_shared_with_static_runtimes_GCJ=yes
18873 darwin* | rhapsody*)
18875 rhapsody* | darwin1.[012])
18876 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18879 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18880 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18882 case ${MACOSX_DEPLOYMENT_TARGET} in
18884 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18887 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18893 archive_cmds_need_lc_GCJ=no
18894 hardcode_direct_GCJ=no
18895 hardcode_automatic_GCJ=yes
18896 hardcode_shlibpath_var_GCJ=unsupported
18897 whole_archive_flag_spec_GCJ=''
18898 link_all_deplibs_GCJ=yes
18899 if test "$GCC" = yes ; then
18900 output_verbose_link_cmd='echo'
18901 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18902 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18903 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18904 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}'
18905 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}'
18907 case $cc_basename in
18909 output_verbose_link_cmd='echo'
18910 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18911 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18912 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18913 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}'
18914 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}'
18924 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18925 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18926 hardcode_shlibpath_var_GCJ=no
18933 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18934 # support. Future versions do this automatically, but an explicit c++rt0.o
18935 # does not break anything, and helps significantly (at the cost of a little
18938 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18939 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18940 hardcode_direct_GCJ=yes
18941 hardcode_shlibpath_var_GCJ=no
18944 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18946 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18947 hardcode_direct_GCJ=yes
18948 hardcode_minus_L_GCJ=yes
18949 hardcode_shlibpath_var_GCJ=no
18952 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18953 freebsd* | kfreebsd*-gnu | dragonfly*)
18954 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18955 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18956 hardcode_direct_GCJ=yes
18957 hardcode_shlibpath_var_GCJ=no
18961 if test "$GCC" = yes; then
18962 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'
18964 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'
18966 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18967 hardcode_libdir_separator_GCJ=:
18968 hardcode_direct_GCJ=yes
18970 # hardcode_minus_L: Not really in the search PATH,
18971 # but as the default location of the library.
18972 hardcode_minus_L_GCJ=yes
18973 export_dynamic_flag_spec_GCJ='${wl}-E'
18977 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18978 case "$host_cpu" in
18980 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18983 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18987 case "$host_cpu" in
18989 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
18992 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18996 if test "$with_gnu_ld" = no; then
18997 case "$host_cpu" in
18999 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19000 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19001 hardcode_libdir_separator_GCJ=:
19002 hardcode_direct_GCJ=no
19003 hardcode_shlibpath_var_GCJ=no
19006 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19007 hardcode_direct_GCJ=no
19008 hardcode_shlibpath_var_GCJ=no
19010 # hardcode_minus_L: Not really in the search PATH,
19011 # but as the default location of the library.
19012 hardcode_minus_L_GCJ=yes
19015 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19016 hardcode_libdir_separator_GCJ=:
19017 hardcode_direct_GCJ=yes
19018 export_dynamic_flag_spec_GCJ='${wl}-E'
19020 # hardcode_minus_L: Not really in the search PATH,
19021 # but as the default location of the library.
19022 hardcode_minus_L_GCJ=yes
19028 irix5* | irix6* | nonstopux*)
19029 if test "$GCC" = yes; then
19030 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'
19032 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'
19033 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19035 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19036 hardcode_libdir_separator_GCJ=:
19037 link_all_deplibs_GCJ=yes
19041 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19042 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19044 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19046 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19047 hardcode_direct_GCJ=yes
19048 hardcode_shlibpath_var_GCJ=no
19052 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19053 hardcode_direct_GCJ=yes
19054 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19055 hardcode_libdir_separator_GCJ=:
19056 hardcode_shlibpath_var_GCJ=no
19060 hardcode_direct_GCJ=yes
19061 hardcode_shlibpath_var_GCJ=no
19062 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19063 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19064 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19065 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19066 export_dynamic_flag_spec_GCJ='${wl}-E'
19069 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19070 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19071 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19074 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19075 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19082 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19083 hardcode_minus_L_GCJ=yes
19084 allow_undefined_flag_GCJ=unsupported
19085 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'
19086 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19090 if test "$GCC" = yes; then
19091 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19092 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'
19094 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19095 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'
19097 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19098 hardcode_libdir_separator_GCJ=:
19101 osf4* | osf5*) # as osf3* with the addition of -msym flag
19102 if test "$GCC" = yes; then
19103 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19104 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'
19105 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19107 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19108 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'
19109 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~
19110 $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'
19112 # Both c and cxx compiler support -rpath directly
19113 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19115 hardcode_libdir_separator_GCJ=:
19119 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19120 hardcode_shlibpath_var_GCJ=no
19121 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19122 runpath_var=LD_RUN_PATH
19123 hardcode_runpath_var=yes
19127 no_undefined_flag_GCJ=' -z text'
19128 if test "$GCC" = yes; then
19130 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19131 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19132 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19135 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19136 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19137 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19139 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19140 hardcode_shlibpath_var_GCJ=no
19142 solaris2.[0-5] | solaris2.[0-5].*) ;;
19144 # The compiler driver will combine linker options so we
19145 # cannot just pass the convience library names through
19146 # without $wl, iff we do not link with $LD.
19147 # Luckily, gcc supports the same syntax we need for Sun Studio.
19148 # Supported since Solaris 2.6 (maybe 2.5.1?)
19151 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19153 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' ;;
19156 link_all_deplibs_GCJ=yes
19160 if test "x$host_vendor" = xsequent; then
19161 # Use $CC to link under sequent, because it throws in some extra .o
19162 # files that make .init and .fini sections work.
19163 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19165 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19167 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19168 hardcode_direct_GCJ=yes
19169 hardcode_minus_L_GCJ=yes
19170 hardcode_shlibpath_var_GCJ=no
19174 case $host_vendor in
19176 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19177 hardcode_direct_GCJ=yes # is this really true???
19180 ## LD is ld it makes a PLAMLIB
19181 ## CC just makes a GrossModule.
19182 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19183 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19184 hardcode_direct_GCJ=no
19187 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19188 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19191 runpath_var='LD_RUN_PATH'
19192 hardcode_shlibpath_var_GCJ=no
19196 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19197 hardcode_shlibpath_var_GCJ=no
19198 export_dynamic_flag_spec_GCJ='-Bexport'
19202 if test -d /usr/nec; then
19203 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19204 hardcode_shlibpath_var_GCJ=no
19205 runpath_var=LD_RUN_PATH
19206 hardcode_runpath_var=yes
19212 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19213 hardcode_direct_GCJ=yes
19214 hardcode_minus_L_GCJ=no
19215 hardcode_shlibpath_var_GCJ=no
19216 hardcode_runpath_var=yes
19217 runpath_var=LD_RUN_PATH
19220 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19221 no_undefined_flag_GCJ='${wl}-z ${wl}text'
19222 if test "$GCC" = yes; then
19223 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19225 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19227 runpath_var='LD_RUN_PATH'
19228 hardcode_shlibpath_var_GCJ=no
19232 no_undefined_flag_GCJ=' -z text'
19233 # $CC -shared without GNU ld will not create a library from C++
19234 # object files and a static libstdc++, better avoid it by now
19235 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19236 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19237 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19238 hardcode_libdir_flag_spec_GCJ=
19239 hardcode_shlibpath_var_GCJ=no
19240 runpath_var='LD_RUN_PATH'
19244 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19245 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19246 hardcode_shlibpath_var_GCJ=no
19255 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19256 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
19257 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19259 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19260 if test "$GCC" = yes; then
19261 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19265 # Do we need to explicitly link libc?
19267 case "x$archive_cmds_need_lc_GCJ" in
19269 # Assume -lc should be added
19270 archive_cmds_need_lc_GCJ=yes
19272 if test "$enable_shared" = yes && test "$GCC" = yes; then
19273 case $archive_cmds_GCJ in
19275 # FIXME: we may have to deal with multi-command sequences.
19278 # Test whether the compiler implicitly links with -lc since on some
19279 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19280 # to ld, don't add -lc before -lgcc.
19281 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19282 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19284 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19287 (eval $ac_compile) 2>&5
19289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290 (exit $ac_status); } 2>conftest.err; then
19293 libobjs=conftest.$ac_objext
19295 wl=$lt_prog_compiler_wl_GCJ
19301 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19302 allow_undefined_flag_GCJ=
19303 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19304 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19307 (exit $ac_status); }
19309 archive_cmds_need_lc_GCJ=no
19311 archive_cmds_need_lc_GCJ=yes
19313 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19315 cat conftest.err 1>&5
19318 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19319 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
19326 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19327 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19328 library_names_spec=
19329 libname_spec='lib$name'
19333 postuninstall_cmds=
19337 shlibpath_overrides_runpath=unknown
19339 dynamic_linker="$host_os ld.so"
19340 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19341 if test "$GCC" = yes; then
19342 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19343 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19344 # if the path contains ";" then we assume it to be the separator
19345 # otherwise default to the standard path separator (i.e. ":") - it is
19346 # assumed that no part of a normal pathname contains ";" but that should
19347 # okay in the real world where ";" in dirpaths is itself problematic.
19348 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19350 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19353 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19355 need_lib_prefix=unknown
19356 hardcode_into_libs=no
19358 # when you set need_version to no, make sure it does not cause -set_version
19359 # flags to be left without arguments
19360 need_version=unknown
19365 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19366 shlibpath_var=LIBPATH
19368 # AIX 3 has no versioning support, so we append a major version to the name.
19369 soname_spec='${libname}${release}${shared_ext}$major'
19376 hardcode_into_libs=yes
19377 if test "$host_cpu" = ia64; then
19378 # AIX 5 supports IA64
19379 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19380 shlibpath_var=LD_LIBRARY_PATH
19382 # With GCC up to 2.95.x, collect2 would create an import file
19383 # for dependence libraries. The import file would start with
19384 # the line `#! .'. This would cause the generated library to
19385 # depend on `.', always an invalid library. This was fixed in
19386 # development snapshots of GCC prior to 3.0.
19388 aix4 | aix4.[01] | aix4.[01].*)
19389 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19391 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19394 can_build_shared=no
19398 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19399 # soname into executable. Probably we can add versioning support to
19400 # collect2, so additional links can be useful in future.
19401 if test "$aix_use_runtimelinking" = yes; then
19402 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19403 # instead of lib<name>.a to let people know that these are not
19404 # typical AIX shared libraries.
19405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19407 # We preserve .a as extension for shared libraries through AIX4.2
19408 # and later when we are not doing run time linking.
19409 library_names_spec='${libname}${release}.a $libname.a'
19410 soname_spec='${libname}${release}${shared_ext}$major'
19412 shlibpath_var=LIBPATH
19417 library_names_spec='$libname.ixlibrary $libname.a'
19418 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19419 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'
19423 library_names_spec='${libname}${shared_ext}'
19424 dynamic_linker="$host_os ld.so"
19425 shlibpath_var=LIBRARY_PATH
19431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19432 soname_spec='${libname}${release}${shared_ext}$major'
19433 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19434 shlibpath_var=LD_LIBRARY_PATH
19435 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19436 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19437 # the default ld.so.conf also contains /usr/contrib/lib and
19438 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19439 # libtool to hard-code these into programs
19442 cygwin* | mingw* | pw32*)
19443 version_type=windows
19448 case $GCC,$host_os in
19449 yes,cygwin* | yes,mingw* | yes,pw32*)
19450 library_names_spec='$libname.dll.a'
19451 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19452 postinstall_cmds='base_file=`basename \${file}`~
19453 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19454 dldir=$destdir/`dirname \$dlpath`~
19455 test -d \$dldir || mkdir -p \$dldir~
19456 $install_prog $dir/$dlname \$dldir/$dlname'
19457 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19458 dlpath=$dir/\$dldll~
19460 shlibpath_overrides_runpath=yes
19464 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19465 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19466 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19469 # MinGW DLLs use traditional 'lib' prefix
19470 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19471 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19472 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19473 # It is most probably a Windows format PATH printed by
19474 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19475 # path with ; separators, and with drive letters. We can handle the
19476 # drive letters (cygwin fileutils understands them), so leave them,
19477 # especially as we might pass files found there to a mingw objdump,
19478 # which wouldn't understand a cygwinified path. Ahh.
19479 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19481 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19485 # pw32 DLLs use 'pw' prefix rather than 'lib'
19486 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19492 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19495 dynamic_linker='Win32 ld.exe'
19496 # FIXME: first we should search . and the directory the executable is in
19500 darwin* | rhapsody*)
19501 dynamic_linker="$host_os dyld"
19502 version_type=darwin
19505 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19506 soname_spec='${libname}${release}${major}$shared_ext'
19507 shlibpath_overrides_runpath=yes
19508 shlibpath_var=DYLD_LIBRARY_PATH
19509 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
19510 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19511 if test "$GCC" = yes; then
19512 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"`
19514 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19516 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19524 soname_spec='${libname}${release}${shared_ext}$major'
19525 shlibpath_var=LD_LIBRARY_PATH
19536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19537 soname_spec='${libname}${release}${shared_ext}$major'
19538 shlibpath_var=LD_LIBRARY_PATH
19539 shlibpath_overrides_runpath=no
19540 hardcode_into_libs=yes
19541 dynamic_linker='GNU ld.so'
19544 freebsd* | dragonfly*)
19545 # DragonFly does not have aout. When/if they implement a new
19546 # versioning mechanism, adjust this.
19547 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
19548 version_type=freebsd-$objformat
19549 case $version_type in
19551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19556 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19560 shlibpath_var=LD_LIBRARY_PATH
19563 shlibpath_overrides_runpath=yes
19565 freebsd3.[01]* | freebsdelf3.[01]*)
19566 shlibpath_overrides_runpath=yes
19567 hardcode_into_libs=yes
19570 shlibpath_overrides_runpath=no
19571 hardcode_into_libs=yes
19580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19581 soname_spec='${libname}${release}${shared_ext}$major'
19582 shlibpath_var=LD_LIBRARY_PATH
19583 hardcode_into_libs=yes
19586 hpux9* | hpux10* | hpux11*)
19587 # Give a soname corresponding to the major version so that dld.sl refuses to
19588 # link against other versions.
19592 case "$host_cpu" in
19595 hardcode_into_libs=yes
19596 dynamic_linker="$host_os dld.so"
19597 shlibpath_var=LD_LIBRARY_PATH
19598 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19600 soname_spec='${libname}${release}${shared_ext}$major'
19601 if test "X$HPUX_IA64_MODE" = X32; then
19602 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19604 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19606 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19610 hardcode_into_libs=yes
19611 dynamic_linker="$host_os dld.sl"
19612 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19613 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19615 soname_spec='${libname}${release}${shared_ext}$major'
19616 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19617 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19621 dynamic_linker="$host_os dld.sl"
19622 shlibpath_var=SHLIB_PATH
19623 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19625 soname_spec='${libname}${release}${shared_ext}$major'
19628 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19629 postinstall_cmds='chmod 555 $lib'
19632 irix5* | irix6* | nonstopux*)
19634 nonstopux*) version_type=nonstopux ;;
19636 if test "$lt_cv_prog_gnu_ld" = yes; then
19644 soname_spec='${libname}${release}${shared_ext}$major'
19645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19647 irix5* | nonstopux*)
19648 libsuff= shlibsuff=
19651 case $LD in # libtool.m4 will add one of these switches to LD
19652 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19653 libsuff= shlibsuff= libmagic=32-bit;;
19654 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19655 libsuff=32 shlibsuff=N32 libmagic=N32;;
19656 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19657 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19658 *) libsuff= shlibsuff= libmagic=never-match;;
19662 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19663 shlibpath_overrides_runpath=no
19664 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19665 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19666 hardcode_into_libs=yes
19669 # No shared lib support for Linux oldld, aout, or coff.
19670 linux*oldld* | linux*aout* | linux*coff*)
19674 # This must be Linux ELF.
19679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19680 soname_spec='${libname}${release}${shared_ext}$major'
19681 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19682 shlibpath_var=LD_LIBRARY_PATH
19683 shlibpath_overrides_runpath=no
19684 # This implies no fast_install, which is unacceptable.
19685 # Some rework will be needed to allow for fast_install
19686 # before this can be enabled.
19687 hardcode_into_libs=yes
19689 # Append ld.so.conf contents to the search path
19690 if test -f /etc/ld.so.conf; then
19691 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' ' '`
19692 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19695 # We used to test for /lib/ld.so.1 and disable shared libraries on
19696 # powerpc, because MkLinux only supported shared libraries with the
19697 # GNU dynamic linker. Since this was broken with cross compilers,
19698 # most powerpc-linux boxes support dynamic linking these days and
19699 # people can always --disable-shared, the test was removed, and we
19700 # assume the GNU/Linux dynamic linker is in use.
19701 dynamic_linker='GNU/Linux ld.so'
19708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19709 soname_spec='${libname}${release}${shared_ext}$major'
19710 shlibpath_var=LD_LIBRARY_PATH
19711 shlibpath_overrides_runpath=no
19712 hardcode_into_libs=yes
19713 dynamic_linker='GNU ld.so'
19720 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19722 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19723 dynamic_linker='NetBSD (a.out) ld.so'
19725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19726 soname_spec='${libname}${release}${shared_ext}$major'
19727 dynamic_linker='NetBSD ld.elf_so'
19729 shlibpath_var=LD_LIBRARY_PATH
19730 shlibpath_overrides_runpath=yes
19731 hardcode_into_libs=yes
19736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19737 shlibpath_var=LD_LIBRARY_PATH
19738 shlibpath_overrides_runpath=yes
19745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19746 soname_spec='${libname}${release}${shared_ext}$major'
19747 shlibpath_var=LD_LIBRARY_PATH
19748 shlibpath_overrides_runpath=yes
19754 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19756 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19757 *) need_version=no ;;
19759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19760 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19761 shlibpath_var=LD_LIBRARY_PATH
19762 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19764 openbsd2.[89] | openbsd2.[89].*)
19765 shlibpath_overrides_runpath=no
19768 shlibpath_overrides_runpath=yes
19772 shlibpath_overrides_runpath=yes
19777 libname_spec='$name'
19780 library_names_spec='$libname${shared_ext} $libname.a'
19781 dynamic_linker='OS/2 ld.exe'
19782 shlibpath_var=LIBPATH
19785 osf3* | osf4* | osf5*)
19789 soname_spec='${libname}${release}${shared_ext}$major'
19790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19791 shlibpath_var=LD_LIBRARY_PATH
19792 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19793 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19798 soname_spec='${libname}${release}${shared_ext}$major'
19799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19800 shlibpath_var=LD_LIBRARY_PATH
19807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19808 soname_spec='${libname}${release}${shared_ext}$major'
19809 shlibpath_var=LD_LIBRARY_PATH
19810 shlibpath_overrides_runpath=yes
19811 hardcode_into_libs=yes
19812 # ldd complains unless libraries are executable
19813 postinstall_cmds='chmod +x $lib'
19818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19819 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19820 shlibpath_var=LD_LIBRARY_PATH
19821 shlibpath_overrides_runpath=yes
19822 if test "$with_gnu_ld" = yes; then
19828 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19831 soname_spec='${libname}${release}${shared_ext}$major'
19832 shlibpath_var=LD_LIBRARY_PATH
19833 case $host_vendor in
19835 shlibpath_overrides_runpath=no
19837 export_dynamic_flag_spec='${wl}-Blargedynsym'
19838 runpath_var=LD_RUN_PATH
19846 shlibpath_overrides_runpath=no
19847 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19853 if test -d /usr/nec ;then
19855 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19856 soname_spec='$libname${shared_ext}.$major'
19857 shlibpath_var=LD_LIBRARY_PATH
19863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19864 soname_spec='${libname}${release}${shared_ext}$major'
19865 shlibpath_var=LD_LIBRARY_PATH
19872 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19873 echo "${ECHO_T}$dynamic_linker" >&6
19874 test "$dynamic_linker" = no && can_build_shared=no
19876 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19877 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19878 hardcode_action_GCJ=
19879 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19880 test -n "$runpath_var_GCJ" || \
19881 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19883 # We can hardcode non-existant directories.
19884 if test "$hardcode_direct_GCJ" != no &&
19885 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19886 # have to relink, otherwise we might link with an installed library
19887 # when we should be linking with a yet-to-be-installed one
19888 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19889 test "$hardcode_minus_L_GCJ" != no; then
19890 # Linking always hardcodes the temporary library directory.
19891 hardcode_action_GCJ=relink
19893 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19894 hardcode_action_GCJ=immediate
19897 # We cannot hardcode anything, or else we can only hardcode existing
19899 hardcode_action_GCJ=unsupported
19901 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19902 echo "${ECHO_T}$hardcode_action_GCJ" >&6
19904 if test "$hardcode_action_GCJ" = relink; then
19905 # Fast installation is not supported
19906 enable_fast_install=no
19907 elif test "$shlibpath_overrides_runpath" = yes ||
19908 test "$enable_shared" = no; then
19909 # Fast installation is not necessary
19910 enable_fast_install=needless
19915 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19916 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19917 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
19918 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19919 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19920 echo "$as_me:$LINENO: result: yes" >&5
19921 echo "${ECHO_T}yes" >&6
19923 # FIXME - insert some real tests, host_os isn't really good enough
19926 if test -n "$STRIP" ; then
19927 striplib="$STRIP -x"
19928 echo "$as_me:$LINENO: result: yes" >&5
19929 echo "${ECHO_T}yes" >&6
19931 echo "$as_me:$LINENO: result: no" >&5
19932 echo "${ECHO_T}no" >&6
19936 echo "$as_me:$LINENO: result: no" >&5
19937 echo "${ECHO_T}no" >&6
19942 if test "x$enable_dlopen" != xyes; then
19943 enable_dlopen=unknown
19944 enable_dlopen_self=unknown
19945 enable_dlopen_self_static=unknown
19952 lt_cv_dlopen="load_add_on"
19954 lt_cv_dlopen_self=yes
19958 lt_cv_dlopen="LoadLibrary"
19963 lt_cv_dlopen="dlopen"
19968 # if libdl is installed we need to link against it
19969 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19970 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19971 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19972 echo $ECHO_N "(cached) $ECHO_C" >&6
19974 ac_check_lib_save_LIBS=$LIBS
19976 cat >conftest.$ac_ext <<_ACEOF
19979 cat confdefs.h >>conftest.$ac_ext
19980 cat >>conftest.$ac_ext <<_ACEOF
19981 /* end confdefs.h. */
19983 /* Override any gcc2 internal prototype to avoid an error. */
19987 /* We use char because int might match the return type of a gcc2
19988 builtin and then its argument prototype would still apply. */
19998 rm -f conftest.$ac_objext conftest$ac_exeext
19999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20000 (eval $ac_link) 2>conftest.er1
20002 grep -v '^ *+' conftest.er1 >conftest.err
20004 cat conftest.err >&5
20005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006 (exit $ac_status); } &&
20007 { ac_try='test -z "$ac_c_werror_flag"
20008 || test ! -s conftest.err'
20009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20010 (eval $ac_try) 2>&5
20012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20013 (exit $ac_status); }; } &&
20014 { ac_try='test -s conftest$ac_exeext'
20015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20016 (eval $ac_try) 2>&5
20018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20019 (exit $ac_status); }; }; then
20020 ac_cv_lib_dl_dlopen=yes
20022 echo "$as_me: failed program was:" >&5
20023 sed 's/^/| /' conftest.$ac_ext >&5
20025 ac_cv_lib_dl_dlopen=no
20027 rm -f conftest.err conftest.$ac_objext \
20028 conftest$ac_exeext conftest.$ac_ext
20029 LIBS=$ac_check_lib_save_LIBS
20031 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20032 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20033 if test $ac_cv_lib_dl_dlopen = yes; then
20034 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20037 lt_cv_dlopen="dyld"
20039 lt_cv_dlopen_self=yes
20046 echo "$as_me:$LINENO: checking for shl_load" >&5
20047 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
20048 if test "${ac_cv_func_shl_load+set}" = set; then
20049 echo $ECHO_N "(cached) $ECHO_C" >&6
20051 cat >conftest.$ac_ext <<_ACEOF
20054 cat confdefs.h >>conftest.$ac_ext
20055 cat >>conftest.$ac_ext <<_ACEOF
20056 /* end confdefs.h. */
20057 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20059 #define shl_load innocuous_shl_load
20061 /* System header to define __stub macros and hopefully few prototypes,
20062 which can conflict with char shl_load (); below.
20063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20064 <limits.h> exists even on freestanding compilers. */
20067 # include <limits.h>
20069 # include <assert.h>
20074 /* Override any gcc2 internal prototype to avoid an error. */
20079 /* We use char because int might match the return type of a gcc2
20080 builtin and then its argument prototype would still apply. */
20082 /* The GNU C library defines this for functions which it implements
20083 to always fail with ENOSYS. Some functions are actually named
20084 something starting with __ and the normal name is an alias. */
20085 #if defined (__stub_shl_load) || defined (__stub___shl_load)
20088 char (*f) () = shl_load;
20097 return f != shl_load;
20102 rm -f conftest.$ac_objext conftest$ac_exeext
20103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20104 (eval $ac_link) 2>conftest.er1
20106 grep -v '^ *+' conftest.er1 >conftest.err
20108 cat conftest.err >&5
20109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110 (exit $ac_status); } &&
20111 { ac_try='test -z "$ac_c_werror_flag"
20112 || test ! -s conftest.err'
20113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20114 (eval $ac_try) 2>&5
20116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117 (exit $ac_status); }; } &&
20118 { ac_try='test -s conftest$ac_exeext'
20119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20120 (eval $ac_try) 2>&5
20122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123 (exit $ac_status); }; }; then
20124 ac_cv_func_shl_load=yes
20126 echo "$as_me: failed program was:" >&5
20127 sed 's/^/| /' conftest.$ac_ext >&5
20129 ac_cv_func_shl_load=no
20131 rm -f conftest.err conftest.$ac_objext \
20132 conftest$ac_exeext conftest.$ac_ext
20134 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20135 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
20136 if test $ac_cv_func_shl_load = yes; then
20137 lt_cv_dlopen="shl_load"
20139 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20140 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
20141 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20142 echo $ECHO_N "(cached) $ECHO_C" >&6
20144 ac_check_lib_save_LIBS=$LIBS
20146 cat >conftest.$ac_ext <<_ACEOF
20149 cat confdefs.h >>conftest.$ac_ext
20150 cat >>conftest.$ac_ext <<_ACEOF
20151 /* end confdefs.h. */
20153 /* Override any gcc2 internal prototype to avoid an error. */
20157 /* We use char because int might match the return type of a gcc2
20158 builtin and then its argument prototype would still apply. */
20168 rm -f conftest.$ac_objext conftest$ac_exeext
20169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20170 (eval $ac_link) 2>conftest.er1
20172 grep -v '^ *+' conftest.er1 >conftest.err
20174 cat conftest.err >&5
20175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176 (exit $ac_status); } &&
20177 { ac_try='test -z "$ac_c_werror_flag"
20178 || test ! -s conftest.err'
20179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20180 (eval $ac_try) 2>&5
20182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183 (exit $ac_status); }; } &&
20184 { ac_try='test -s conftest$ac_exeext'
20185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20186 (eval $ac_try) 2>&5
20188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20189 (exit $ac_status); }; }; then
20190 ac_cv_lib_dld_shl_load=yes
20192 echo "$as_me: failed program was:" >&5
20193 sed 's/^/| /' conftest.$ac_ext >&5
20195 ac_cv_lib_dld_shl_load=no
20197 rm -f conftest.err conftest.$ac_objext \
20198 conftest$ac_exeext conftest.$ac_ext
20199 LIBS=$ac_check_lib_save_LIBS
20201 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20202 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
20203 if test $ac_cv_lib_dld_shl_load = yes; then
20204 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
20206 echo "$as_me:$LINENO: checking for dlopen" >&5
20207 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
20208 if test "${ac_cv_func_dlopen+set}" = set; then
20209 echo $ECHO_N "(cached) $ECHO_C" >&6
20211 cat >conftest.$ac_ext <<_ACEOF
20214 cat confdefs.h >>conftest.$ac_ext
20215 cat >>conftest.$ac_ext <<_ACEOF
20216 /* end confdefs.h. */
20217 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
20218 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20219 #define dlopen innocuous_dlopen
20221 /* System header to define __stub macros and hopefully few prototypes,
20222 which can conflict with char dlopen (); below.
20223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20224 <limits.h> exists even on freestanding compilers. */
20227 # include <limits.h>
20229 # include <assert.h>
20234 /* Override any gcc2 internal prototype to avoid an error. */
20239 /* We use char because int might match the return type of a gcc2
20240 builtin and then its argument prototype would still apply. */
20242 /* The GNU C library defines this for functions which it implements
20243 to always fail with ENOSYS. Some functions are actually named
20244 something starting with __ and the normal name is an alias. */
20245 #if defined (__stub_dlopen) || defined (__stub___dlopen)
20248 char (*f) () = dlopen;
20257 return f != dlopen;
20262 rm -f conftest.$ac_objext conftest$ac_exeext
20263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20264 (eval $ac_link) 2>conftest.er1
20266 grep -v '^ *+' conftest.er1 >conftest.err
20268 cat conftest.err >&5
20269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270 (exit $ac_status); } &&
20271 { ac_try='test -z "$ac_c_werror_flag"
20272 || test ! -s conftest.err'
20273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20274 (eval $ac_try) 2>&5
20276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20277 (exit $ac_status); }; } &&
20278 { ac_try='test -s conftest$ac_exeext'
20279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20280 (eval $ac_try) 2>&5
20282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20283 (exit $ac_status); }; }; then
20284 ac_cv_func_dlopen=yes
20286 echo "$as_me: failed program was:" >&5
20287 sed 's/^/| /' conftest.$ac_ext >&5
20289 ac_cv_func_dlopen=no
20291 rm -f conftest.err conftest.$ac_objext \
20292 conftest$ac_exeext conftest.$ac_ext
20294 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
20295 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
20296 if test $ac_cv_func_dlopen = yes; then
20297 lt_cv_dlopen="dlopen"
20299 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20300 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20301 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20302 echo $ECHO_N "(cached) $ECHO_C" >&6
20304 ac_check_lib_save_LIBS=$LIBS
20306 cat >conftest.$ac_ext <<_ACEOF
20309 cat confdefs.h >>conftest.$ac_ext
20310 cat >>conftest.$ac_ext <<_ACEOF
20311 /* end confdefs.h. */
20313 /* Override any gcc2 internal prototype to avoid an error. */
20317 /* We use char because int might match the return type of a gcc2
20318 builtin and then its argument prototype would still apply. */
20328 rm -f conftest.$ac_objext conftest$ac_exeext
20329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20330 (eval $ac_link) 2>conftest.er1
20332 grep -v '^ *+' conftest.er1 >conftest.err
20334 cat conftest.err >&5
20335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336 (exit $ac_status); } &&
20337 { ac_try='test -z "$ac_c_werror_flag"
20338 || test ! -s conftest.err'
20339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20340 (eval $ac_try) 2>&5
20342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343 (exit $ac_status); }; } &&
20344 { ac_try='test -s conftest$ac_exeext'
20345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20346 (eval $ac_try) 2>&5
20348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20349 (exit $ac_status); }; }; then
20350 ac_cv_lib_dl_dlopen=yes
20352 echo "$as_me: failed program was:" >&5
20353 sed 's/^/| /' conftest.$ac_ext >&5
20355 ac_cv_lib_dl_dlopen=no
20357 rm -f conftest.err conftest.$ac_objext \
20358 conftest$ac_exeext conftest.$ac_ext
20359 LIBS=$ac_check_lib_save_LIBS
20361 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20362 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20363 if test $ac_cv_lib_dl_dlopen = yes; then
20364 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20366 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20367 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
20368 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20369 echo $ECHO_N "(cached) $ECHO_C" >&6
20371 ac_check_lib_save_LIBS=$LIBS
20372 LIBS="-lsvld $LIBS"
20373 cat >conftest.$ac_ext <<_ACEOF
20376 cat confdefs.h >>conftest.$ac_ext
20377 cat >>conftest.$ac_ext <<_ACEOF
20378 /* end confdefs.h. */
20380 /* Override any gcc2 internal prototype to avoid an error. */
20384 /* We use char because int might match the return type of a gcc2
20385 builtin and then its argument prototype would still apply. */
20395 rm -f conftest.$ac_objext conftest$ac_exeext
20396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20397 (eval $ac_link) 2>conftest.er1
20399 grep -v '^ *+' conftest.er1 >conftest.err
20401 cat conftest.err >&5
20402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403 (exit $ac_status); } &&
20404 { ac_try='test -z "$ac_c_werror_flag"
20405 || test ! -s conftest.err'
20406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20407 (eval $ac_try) 2>&5
20409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410 (exit $ac_status); }; } &&
20411 { ac_try='test -s conftest$ac_exeext'
20412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20413 (eval $ac_try) 2>&5
20415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20416 (exit $ac_status); }; }; then
20417 ac_cv_lib_svld_dlopen=yes
20419 echo "$as_me: failed program was:" >&5
20420 sed 's/^/| /' conftest.$ac_ext >&5
20422 ac_cv_lib_svld_dlopen=no
20424 rm -f conftest.err conftest.$ac_objext \
20425 conftest$ac_exeext conftest.$ac_ext
20426 LIBS=$ac_check_lib_save_LIBS
20428 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20429 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
20430 if test $ac_cv_lib_svld_dlopen = yes; then
20431 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
20433 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20434 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
20435 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20436 echo $ECHO_N "(cached) $ECHO_C" >&6
20438 ac_check_lib_save_LIBS=$LIBS
20440 cat >conftest.$ac_ext <<_ACEOF
20443 cat confdefs.h >>conftest.$ac_ext
20444 cat >>conftest.$ac_ext <<_ACEOF
20445 /* end confdefs.h. */
20447 /* Override any gcc2 internal prototype to avoid an error. */
20451 /* We use char because int might match the return type of a gcc2
20452 builtin and then its argument prototype would still apply. */
20462 rm -f conftest.$ac_objext conftest$ac_exeext
20463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20464 (eval $ac_link) 2>conftest.er1
20466 grep -v '^ *+' conftest.er1 >conftest.err
20468 cat conftest.err >&5
20469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470 (exit $ac_status); } &&
20471 { ac_try='test -z "$ac_c_werror_flag"
20472 || test ! -s conftest.err'
20473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20474 (eval $ac_try) 2>&5
20476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477 (exit $ac_status); }; } &&
20478 { ac_try='test -s conftest$ac_exeext'
20479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20480 (eval $ac_try) 2>&5
20482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20483 (exit $ac_status); }; }; then
20484 ac_cv_lib_dld_dld_link=yes
20486 echo "$as_me: failed program was:" >&5
20487 sed 's/^/| /' conftest.$ac_ext >&5
20489 ac_cv_lib_dld_dld_link=no
20491 rm -f conftest.err conftest.$ac_objext \
20492 conftest$ac_exeext conftest.$ac_ext
20493 LIBS=$ac_check_lib_save_LIBS
20495 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20496 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
20497 if test $ac_cv_lib_dld_dld_link = yes; then
20498 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
20519 if test "x$lt_cv_dlopen" != xno; then
20525 case $lt_cv_dlopen in
20527 save_CPPFLAGS="$CPPFLAGS"
20528 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
20530 save_LDFLAGS="$LDFLAGS"
20531 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20534 LIBS="$lt_cv_dlopen_libs $LIBS"
20536 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
20537 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
20538 if test "${lt_cv_dlopen_self+set}" = set; then
20539 echo $ECHO_N "(cached) $ECHO_C" >&6
20541 if test "$cross_compiling" = yes; then :
20542 lt_cv_dlopen_self=cross
20544 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20545 lt_status=$lt_dlunknown
20546 cat > conftest.$ac_ext <<EOF
20547 #line 20547 "configure"
20548 #include "confdefs.h"
20557 # define LT_DLGLOBAL RTLD_GLOBAL
20560 # define LT_DLGLOBAL DL_GLOBAL
20562 # define LT_DLGLOBAL 0
20566 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20567 find out it does not work in some platform. */
20568 #ifndef LT_DLLAZY_OR_NOW
20570 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20573 # define LT_DLLAZY_OR_NOW DL_LAZY
20576 # define LT_DLLAZY_OR_NOW RTLD_NOW
20579 # define LT_DLLAZY_OR_NOW DL_NOW
20581 # define LT_DLLAZY_OR_NOW 0
20589 extern "C" void exit (int);
20592 void fnord() { int i=42;}
20595 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20596 int status = $lt_dlunknown;
20600 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20601 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20602 /* dlclose (self); */
20608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20609 (eval $ac_link) 2>&5
20611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20612 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20613 (./conftest; exit; ) 2>/dev/null
20615 case x$lt_status in
20616 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20617 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20618 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
20621 # compilation failed
20622 lt_cv_dlopen_self=no
20629 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
20630 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
20632 if test "x$lt_cv_dlopen_self" = xyes; then
20633 LDFLAGS="$LDFLAGS $link_static_flag"
20634 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
20635 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
20636 if test "${lt_cv_dlopen_self_static+set}" = set; then
20637 echo $ECHO_N "(cached) $ECHO_C" >&6
20639 if test "$cross_compiling" = yes; then :
20640 lt_cv_dlopen_self_static=cross
20642 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20643 lt_status=$lt_dlunknown
20644 cat > conftest.$ac_ext <<EOF
20645 #line 20645 "configure"
20646 #include "confdefs.h"
20655 # define LT_DLGLOBAL RTLD_GLOBAL
20658 # define LT_DLGLOBAL DL_GLOBAL
20660 # define LT_DLGLOBAL 0
20664 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20665 find out it does not work in some platform. */
20666 #ifndef LT_DLLAZY_OR_NOW
20668 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20671 # define LT_DLLAZY_OR_NOW DL_LAZY
20674 # define LT_DLLAZY_OR_NOW RTLD_NOW
20677 # define LT_DLLAZY_OR_NOW DL_NOW
20679 # define LT_DLLAZY_OR_NOW 0
20687 extern "C" void exit (int);
20690 void fnord() { int i=42;}
20693 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20694 int status = $lt_dlunknown;
20698 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20699 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20700 /* dlclose (self); */
20706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20707 (eval $ac_link) 2>&5
20709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20710 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20711 (./conftest; exit; ) 2>/dev/null
20713 case x$lt_status in
20714 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20715 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20716 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
20719 # compilation failed
20720 lt_cv_dlopen_self_static=no
20727 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
20728 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
20731 CPPFLAGS="$save_CPPFLAGS"
20732 LDFLAGS="$save_LDFLAGS"
20737 case $lt_cv_dlopen_self in
20738 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20739 *) enable_dlopen_self=unknown ;;
20742 case $lt_cv_dlopen_self_static in
20743 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20744 *) enable_dlopen_self_static=unknown ;;
20749 # The else clause should only fire when bootstrapping the
20750 # libtool distribution, otherwise you forgot to ship ltmain.sh
20751 # with your package, and you will get complaints that there are
20752 # no rules to generate ltmain.sh.
20753 if test -f "$ltmain"; then
20754 # See if we are running on zsh, and set the options which allow our commands through
20755 # without removal of \ escapes.
20756 if test -n "${ZSH_VERSION+set}" ; then
20757 setopt NO_GLOB_SUBST
20759 # Now quote all the things that may contain metacharacters while being
20760 # careful not to overquote the AC_SUBSTed values. We take copies of the
20761 # variables and quote the copies for generation of the libtool script.
20762 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20764 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20765 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20766 deplibs_check_method reload_flag reload_cmds need_locks \
20767 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20768 lt_cv_sys_global_symbol_to_c_name_address \
20769 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20770 old_postinstall_cmds old_postuninstall_cmds \
20774 lt_prog_compiler_wl_GCJ \
20775 lt_prog_compiler_pic_GCJ \
20776 lt_prog_compiler_static_GCJ \
20777 lt_prog_compiler_no_builtin_flag_GCJ \
20778 export_dynamic_flag_spec_GCJ \
20779 thread_safe_flag_spec_GCJ \
20780 whole_archive_flag_spec_GCJ \
20781 enable_shared_with_static_runtimes_GCJ \
20782 old_archive_cmds_GCJ \
20783 old_archive_from_new_cmds_GCJ \
20784 predep_objects_GCJ \
20785 postdep_objects_GCJ \
20788 compiler_lib_search_path_GCJ \
20790 archive_expsym_cmds_GCJ \
20791 postinstall_cmds_GCJ \
20792 postuninstall_cmds_GCJ \
20793 old_archive_from_expsyms_cmds_GCJ \
20794 allow_undefined_flag_GCJ \
20795 no_undefined_flag_GCJ \
20796 export_symbols_cmds_GCJ \
20797 hardcode_libdir_flag_spec_GCJ \
20798 hardcode_libdir_flag_spec_ld_GCJ \
20799 hardcode_libdir_separator_GCJ \
20800 hardcode_automatic_GCJ \
20802 module_expsym_cmds_GCJ \
20803 lt_cv_prog_compiler_c_o_GCJ \
20804 exclude_expsyms_GCJ \
20805 include_expsyms_GCJ; do
20808 old_archive_cmds_GCJ | \
20809 old_archive_from_new_cmds_GCJ | \
20810 archive_cmds_GCJ | \
20811 archive_expsym_cmds_GCJ | \
20812 module_cmds_GCJ | \
20813 module_expsym_cmds_GCJ | \
20814 old_archive_from_expsyms_cmds_GCJ | \
20815 export_symbols_cmds_GCJ | \
20816 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20817 postinstall_cmds | postuninstall_cmds | \
20818 old_postinstall_cmds | old_postuninstall_cmds | \
20819 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20820 # Double-quote double-evaled strings.
20821 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20824 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20830 *'\$0 --fallback-echo"')
20831 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20837 cat <<__EOF__ >> "$cfgfile"
20838 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20840 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20842 # Shell to use when invoking shell scripts.
20845 # Whether or not to build shared libraries.
20846 build_libtool_libs=$enable_shared
20848 # Whether or not to build static libraries.
20849 build_old_libs=$enable_static
20851 # Whether or not to add -lc for building shared libraries.
20852 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20854 # Whether or not to disallow shared libs when runtime libs are static
20855 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20857 # Whether or not to optimize for fast installation.
20858 fast_install=$enable_fast_install
20861 host_alias=$host_alias
20865 # The build system.
20866 build_alias=$build_alias
20870 # An echo program that does not interpret backslashes.
20875 AR_FLAGS=$lt_AR_FLAGS
20880 # A language-specific compiler.
20881 CC=$lt_compiler_GCJ
20883 # Is the compiler the GNU C compiler?
20889 # The linker used to build libraries.
20892 # Whether we need hard or soft links.
20895 # A BSD-compatible nm program.
20898 # A symbol stripping program
20901 # Used to examine libraries when file_magic_cmd begins "file"
20902 MAGIC_CMD=$MAGIC_CMD
20904 # Used on cygwin: DLL creation program.
20907 # Used on cygwin: object dumper.
20910 # Used on cygwin: assembler.
20913 # The name of the directory that contains temporary libtool files.
20916 # How to create reloadable object files.
20917 reload_flag=$lt_reload_flag
20918 reload_cmds=$lt_reload_cmds
20920 # How to pass a linker flag through the compiler.
20921 wl=$lt_lt_prog_compiler_wl_GCJ
20923 # Object file suffix (normally "o").
20924 objext="$ac_objext"
20926 # Old archive suffix (normally "a").
20929 # Shared library suffix (normally ".so").
20930 shrext_cmds='$shrext_cmds'
20932 # Executable file suffix (normally "").
20935 # Additional compiler flags for building library objects.
20936 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20939 # What is the maximum length of a command?
20940 max_cmd_len=$lt_cv_sys_max_cmd_len
20942 # Does compiler simultaneously support -c and -o options?
20943 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20945 # Must we lock files when doing compilation?
20946 need_locks=$lt_need_locks
20948 # Do we need the lib prefix for modules?
20949 need_lib_prefix=$need_lib_prefix
20951 # Do we need a version for libraries?
20952 need_version=$need_version
20954 # Whether dlopen is supported.
20955 dlopen_support=$enable_dlopen
20957 # Whether dlopen of programs is supported.
20958 dlopen_self=$enable_dlopen_self
20960 # Whether dlopen of statically linked programs is supported.
20961 dlopen_self_static=$enable_dlopen_self_static
20963 # Compiler flag to prevent dynamic linking.
20964 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20966 # Compiler flag to turn off builtin functions.
20967 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20969 # Compiler flag to allow reflexive dlopens.
20970 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20972 # Compiler flag to generate shared objects directly from archives.
20973 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20975 # Compiler flag to generate thread-safe objects.
20976 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20978 # Library versioning type.
20979 version_type=$version_type
20981 # Format of library name prefix.
20982 libname_spec=$lt_libname_spec
20984 # List of archive names. First name is the real one, the rest are links.
20985 # The last name is the one that the linker finds with -lNAME.
20986 library_names_spec=$lt_library_names_spec
20988 # The coded name of the library, if different from the real name.
20989 soname_spec=$lt_soname_spec
20991 # Commands used to build and install an old-style archive.
20993 old_archive_cmds=$lt_old_archive_cmds_GCJ
20994 old_postinstall_cmds=$lt_old_postinstall_cmds
20995 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20997 # Create an old-style archive from a shared archive.
20998 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
21000 # Create a temporary old-style archive to link instead of a shared archive.
21001 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
21003 # Commands used to build and install a shared archive.
21004 archive_cmds=$lt_archive_cmds_GCJ
21005 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
21006 postinstall_cmds=$lt_postinstall_cmds
21007 postuninstall_cmds=$lt_postuninstall_cmds
21009 # Commands used to build a loadable module (assumed same as above if empty)
21010 module_cmds=$lt_module_cmds_GCJ
21011 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
21013 # Commands to strip libraries.
21014 old_striplib=$lt_old_striplib
21015 striplib=$lt_striplib
21017 # Dependencies to place before the objects being linked to create a
21019 predep_objects=$lt_predep_objects_GCJ
21021 # Dependencies to place after the objects being linked to create a
21023 postdep_objects=$lt_postdep_objects_GCJ
21025 # Dependencies to place before the objects being linked to create a
21027 predeps=$lt_predeps_GCJ
21029 # Dependencies to place after the objects being linked to create a
21031 postdeps=$lt_postdeps_GCJ
21033 # The library search path used internally by the compiler when linking
21034 # a shared library.
21035 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
21037 # Method to check whether dependent libraries are shared objects.
21038 deplibs_check_method=$lt_deplibs_check_method
21040 # Command to use when deplibs_check_method == file_magic.
21041 file_magic_cmd=$lt_file_magic_cmd
21043 # Flag that allows shared libraries with undefined symbols to be built.
21044 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
21046 # Flag that forces no undefined symbols.
21047 no_undefined_flag=$lt_no_undefined_flag_GCJ
21049 # Commands used to finish a libtool library installation in a directory.
21050 finish_cmds=$lt_finish_cmds
21052 # Same as above, but a single script fragment to be evaled but not shown.
21053 finish_eval=$lt_finish_eval
21055 # Take the output of nm and produce a listing of raw symbols and C names.
21056 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21058 # Transform the output of nm in a proper C declaration
21059 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21061 # Transform the output of nm in a C name address pair
21062 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21064 # This is the shared library runtime path variable.
21065 runpath_var=$runpath_var
21067 # This is the shared library path variable.
21068 shlibpath_var=$shlibpath_var
21070 # Is shlibpath searched before the hard-coded library search path?
21071 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21073 # How to hardcode a shared library path into an executable.
21074 hardcode_action=$hardcode_action_GCJ
21076 # Whether we should hardcode library paths into libraries.
21077 hardcode_into_libs=$hardcode_into_libs
21079 # Flag to hardcode \$libdir into a binary during linking.
21080 # This must work even if \$libdir does not exist.
21081 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
21083 # If ld is used when linking, flag to hardcode \$libdir into
21084 # a binary during linking. This must work even if \$libdir does
21086 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
21088 # Whether we need a single -rpath flag with a separated argument.
21089 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
21091 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21092 # resulting binary.
21093 hardcode_direct=$hardcode_direct_GCJ
21095 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21096 # resulting binary.
21097 hardcode_minus_L=$hardcode_minus_L_GCJ
21099 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21100 # the resulting binary.
21101 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
21103 # Set to yes if building a shared library automatically hardcodes DIR into the library
21104 # and all subsequent libraries and executables linked against it.
21105 hardcode_automatic=$hardcode_automatic_GCJ
21107 # Variables whose values should be saved in libtool wrapper scripts and
21108 # restored at relink time.
21109 variables_saved_for_relink="$variables_saved_for_relink"
21111 # Whether libtool must link a program against all its dependency libraries.
21112 link_all_deplibs=$link_all_deplibs_GCJ
21114 # Compile-time system search path for libraries
21115 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21117 # Run-time system search path for libraries
21118 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21120 # Fix the shell variable \$srcfile for the compiler.
21121 fix_srcfile_path="$fix_srcfile_path_GCJ"
21123 # Set to yes if exported symbols are required.
21124 always_export_symbols=$always_export_symbols_GCJ
21126 # The commands to list exported symbols.
21127 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
21129 # The commands to extract the exported symbol list from a shared archive.
21130 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21132 # Symbols that should not be listed in the preloaded symbols.
21133 exclude_expsyms=$lt_exclude_expsyms_GCJ
21135 # Symbols that must always be exported.
21136 include_expsyms=$lt_include_expsyms_GCJ
21138 # ### END LIBTOOL TAG CONFIG: $tagname
21144 # If there is no Makefile yet, we rely on a make rule to execute
21145 # `config.status --recheck' to rerun these tests and create the
21146 # libtool script then.
21147 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21148 if test -f "$ltmain_in"; then
21149 test -f Makefile && make "$ltmain"
21155 ac_cpp='$CPP $CPPFLAGS'
21156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21171 # Source file extension for RC test sources.
21174 # Object file extension for compiled RC test sources.
21178 # Code to be used in simple compile tests
21179 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
21181 # Code to be used in simple link tests
21182 lt_simple_link_test_code="$lt_simple_compile_test_code"
21184 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21186 # If no C compiler was specified, use CC.
21189 # Allow CC to be a program name with arguments.
21193 # save warnings/boilerplate of simple test code
21194 ac_outfile=conftest.$ac_objext
21195 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21196 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
21197 _lt_compiler_boilerplate=`cat conftest.err`
21200 ac_outfile=conftest.$ac_objext
21201 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21202 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
21203 _lt_linker_boilerplate=`cat conftest.err`
21207 # Allow CC to be a program name with arguments.
21212 for cc_temp in $compiler""; do
21214 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21215 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21220 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21222 lt_cv_prog_compiler_c_o_RC=yes
21224 # The else clause should only fire when bootstrapping the
21225 # libtool distribution, otherwise you forgot to ship ltmain.sh
21226 # with your package, and you will get complaints that there are
21227 # no rules to generate ltmain.sh.
21228 if test -f "$ltmain"; then
21229 # See if we are running on zsh, and set the options which allow our commands through
21230 # without removal of \ escapes.
21231 if test -n "${ZSH_VERSION+set}" ; then
21232 setopt NO_GLOB_SUBST
21234 # Now quote all the things that may contain metacharacters while being
21235 # careful not to overquote the AC_SUBSTed values. We take copies of the
21236 # variables and quote the copies for generation of the libtool script.
21237 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
21239 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21240 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21241 deplibs_check_method reload_flag reload_cmds need_locks \
21242 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21243 lt_cv_sys_global_symbol_to_c_name_address \
21244 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21245 old_postinstall_cmds old_postuninstall_cmds \
21249 lt_prog_compiler_wl_RC \
21250 lt_prog_compiler_pic_RC \
21251 lt_prog_compiler_static_RC \
21252 lt_prog_compiler_no_builtin_flag_RC \
21253 export_dynamic_flag_spec_RC \
21254 thread_safe_flag_spec_RC \
21255 whole_archive_flag_spec_RC \
21256 enable_shared_with_static_runtimes_RC \
21257 old_archive_cmds_RC \
21258 old_archive_from_new_cmds_RC \
21259 predep_objects_RC \
21260 postdep_objects_RC \
21263 compiler_lib_search_path_RC \
21265 archive_expsym_cmds_RC \
21266 postinstall_cmds_RC \
21267 postuninstall_cmds_RC \
21268 old_archive_from_expsyms_cmds_RC \
21269 allow_undefined_flag_RC \
21270 no_undefined_flag_RC \
21271 export_symbols_cmds_RC \
21272 hardcode_libdir_flag_spec_RC \
21273 hardcode_libdir_flag_spec_ld_RC \
21274 hardcode_libdir_separator_RC \
21275 hardcode_automatic_RC \
21277 module_expsym_cmds_RC \
21278 lt_cv_prog_compiler_c_o_RC \
21279 exclude_expsyms_RC \
21280 include_expsyms_RC; do
21283 old_archive_cmds_RC | \
21284 old_archive_from_new_cmds_RC | \
21285 archive_cmds_RC | \
21286 archive_expsym_cmds_RC | \
21288 module_expsym_cmds_RC | \
21289 old_archive_from_expsyms_cmds_RC | \
21290 export_symbols_cmds_RC | \
21291 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21292 postinstall_cmds | postuninstall_cmds | \
21293 old_postinstall_cmds | old_postuninstall_cmds | \
21294 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21295 # Double-quote double-evaled strings.
21296 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21299 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21305 *'\$0 --fallback-echo"')
21306 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21312 cat <<__EOF__ >> "$cfgfile"
21313 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21315 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21317 # Shell to use when invoking shell scripts.
21320 # Whether or not to build shared libraries.
21321 build_libtool_libs=$enable_shared
21323 # Whether or not to build static libraries.
21324 build_old_libs=$enable_static
21326 # Whether or not to add -lc for building shared libraries.
21327 build_libtool_need_lc=$archive_cmds_need_lc_RC
21329 # Whether or not to disallow shared libs when runtime libs are static
21330 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21332 # Whether or not to optimize for fast installation.
21333 fast_install=$enable_fast_install
21336 host_alias=$host_alias
21340 # The build system.
21341 build_alias=$build_alias
21345 # An echo program that does not interpret backslashes.
21350 AR_FLAGS=$lt_AR_FLAGS
21355 # A language-specific compiler.
21358 # Is the compiler the GNU C compiler?
21364 # The linker used to build libraries.
21367 # Whether we need hard or soft links.
21370 # A BSD-compatible nm program.
21373 # A symbol stripping program
21376 # Used to examine libraries when file_magic_cmd begins "file"
21377 MAGIC_CMD=$MAGIC_CMD
21379 # Used on cygwin: DLL creation program.
21382 # Used on cygwin: object dumper.
21385 # Used on cygwin: assembler.
21388 # The name of the directory that contains temporary libtool files.
21391 # How to create reloadable object files.
21392 reload_flag=$lt_reload_flag
21393 reload_cmds=$lt_reload_cmds
21395 # How to pass a linker flag through the compiler.
21396 wl=$lt_lt_prog_compiler_wl_RC
21398 # Object file suffix (normally "o").
21399 objext="$ac_objext"
21401 # Old archive suffix (normally "a").
21404 # Shared library suffix (normally ".so").
21405 shrext_cmds='$shrext_cmds'
21407 # Executable file suffix (normally "").
21410 # Additional compiler flags for building library objects.
21411 pic_flag=$lt_lt_prog_compiler_pic_RC
21414 # What is the maximum length of a command?
21415 max_cmd_len=$lt_cv_sys_max_cmd_len
21417 # Does compiler simultaneously support -c and -o options?
21418 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21420 # Must we lock files when doing compilation?
21421 need_locks=$lt_need_locks
21423 # Do we need the lib prefix for modules?
21424 need_lib_prefix=$need_lib_prefix
21426 # Do we need a version for libraries?
21427 need_version=$need_version
21429 # Whether dlopen is supported.
21430 dlopen_support=$enable_dlopen
21432 # Whether dlopen of programs is supported.
21433 dlopen_self=$enable_dlopen_self
21435 # Whether dlopen of statically linked programs is supported.
21436 dlopen_self_static=$enable_dlopen_self_static
21438 # Compiler flag to prevent dynamic linking.
21439 link_static_flag=$lt_lt_prog_compiler_static_RC
21441 # Compiler flag to turn off builtin functions.
21442 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21444 # Compiler flag to allow reflexive dlopens.
21445 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21447 # Compiler flag to generate shared objects directly from archives.
21448 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21450 # Compiler flag to generate thread-safe objects.
21451 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21453 # Library versioning type.
21454 version_type=$version_type
21456 # Format of library name prefix.
21457 libname_spec=$lt_libname_spec
21459 # List of archive names. First name is the real one, the rest are links.
21460 # The last name is the one that the linker finds with -lNAME.
21461 library_names_spec=$lt_library_names_spec
21463 # The coded name of the library, if different from the real name.
21464 soname_spec=$lt_soname_spec
21466 # Commands used to build and install an old-style archive.
21468 old_archive_cmds=$lt_old_archive_cmds_RC
21469 old_postinstall_cmds=$lt_old_postinstall_cmds
21470 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21472 # Create an old-style archive from a shared archive.
21473 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21475 # Create a temporary old-style archive to link instead of a shared archive.
21476 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21478 # Commands used to build and install a shared archive.
21479 archive_cmds=$lt_archive_cmds_RC
21480 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21481 postinstall_cmds=$lt_postinstall_cmds
21482 postuninstall_cmds=$lt_postuninstall_cmds
21484 # Commands used to build a loadable module (assumed same as above if empty)
21485 module_cmds=$lt_module_cmds_RC
21486 module_expsym_cmds=$lt_module_expsym_cmds_RC
21488 # Commands to strip libraries.
21489 old_striplib=$lt_old_striplib
21490 striplib=$lt_striplib
21492 # Dependencies to place before the objects being linked to create a
21494 predep_objects=$lt_predep_objects_RC
21496 # Dependencies to place after the objects being linked to create a
21498 postdep_objects=$lt_postdep_objects_RC
21500 # Dependencies to place before the objects being linked to create a
21502 predeps=$lt_predeps_RC
21504 # Dependencies to place after the objects being linked to create a
21506 postdeps=$lt_postdeps_RC
21508 # The library search path used internally by the compiler when linking
21509 # a shared library.
21510 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21512 # Method to check whether dependent libraries are shared objects.
21513 deplibs_check_method=$lt_deplibs_check_method
21515 # Command to use when deplibs_check_method == file_magic.
21516 file_magic_cmd=$lt_file_magic_cmd
21518 # Flag that allows shared libraries with undefined symbols to be built.
21519 allow_undefined_flag=$lt_allow_undefined_flag_RC
21521 # Flag that forces no undefined symbols.
21522 no_undefined_flag=$lt_no_undefined_flag_RC
21524 # Commands used to finish a libtool library installation in a directory.
21525 finish_cmds=$lt_finish_cmds
21527 # Same as above, but a single script fragment to be evaled but not shown.
21528 finish_eval=$lt_finish_eval
21530 # Take the output of nm and produce a listing of raw symbols and C names.
21531 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21533 # Transform the output of nm in a proper C declaration
21534 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21536 # Transform the output of nm in a C name address pair
21537 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21539 # This is the shared library runtime path variable.
21540 runpath_var=$runpath_var
21542 # This is the shared library path variable.
21543 shlibpath_var=$shlibpath_var
21545 # Is shlibpath searched before the hard-coded library search path?
21546 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21548 # How to hardcode a shared library path into an executable.
21549 hardcode_action=$hardcode_action_RC
21551 # Whether we should hardcode library paths into libraries.
21552 hardcode_into_libs=$hardcode_into_libs
21554 # Flag to hardcode \$libdir into a binary during linking.
21555 # This must work even if \$libdir does not exist.
21556 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21558 # If ld is used when linking, flag to hardcode \$libdir into
21559 # a binary during linking. This must work even if \$libdir does
21561 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21563 # Whether we need a single -rpath flag with a separated argument.
21564 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21566 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21567 # resulting binary.
21568 hardcode_direct=$hardcode_direct_RC
21570 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21571 # resulting binary.
21572 hardcode_minus_L=$hardcode_minus_L_RC
21574 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21575 # the resulting binary.
21576 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21578 # Set to yes if building a shared library automatically hardcodes DIR into the library
21579 # and all subsequent libraries and executables linked against it.
21580 hardcode_automatic=$hardcode_automatic_RC
21582 # Variables whose values should be saved in libtool wrapper scripts and
21583 # restored at relink time.
21584 variables_saved_for_relink="$variables_saved_for_relink"
21586 # Whether libtool must link a program against all its dependency libraries.
21587 link_all_deplibs=$link_all_deplibs_RC
21589 # Compile-time system search path for libraries
21590 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21592 # Run-time system search path for libraries
21593 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21595 # Fix the shell variable \$srcfile for the compiler.
21596 fix_srcfile_path="$fix_srcfile_path_RC"
21598 # Set to yes if exported symbols are required.
21599 always_export_symbols=$always_export_symbols_RC
21601 # The commands to list exported symbols.
21602 export_symbols_cmds=$lt_export_symbols_cmds_RC
21604 # The commands to extract the exported symbol list from a shared archive.
21605 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21607 # Symbols that should not be listed in the preloaded symbols.
21608 exclude_expsyms=$lt_exclude_expsyms_RC
21610 # Symbols that must always be exported.
21611 include_expsyms=$lt_include_expsyms_RC
21613 # ### END LIBTOOL TAG CONFIG: $tagname
21619 # If there is no Makefile yet, we rely on a make rule to execute
21620 # `config.status --recheck' to rerun these tests and create the
21621 # libtool script then.
21622 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21623 if test -f "$ltmain_in"; then
21624 test -f Makefile && make "$ltmain"
21630 ac_cpp='$CPP $CPPFLAGS'
21631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21640 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21641 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21642 { (exit 1); exit 1; }; }
21646 # Append the new tag name to the list of available tags.
21647 if test -n "$tagname" ; then
21648 available_tags="$available_tags $tagname"
21654 # Now substitute the updated list of available tags.
21655 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21656 mv "${ofile}T" "$ofile"
21660 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21661 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21662 { (exit 1); exit 1; }; }
21668 # This can be used to rebuild libtool when needed
21669 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21671 # Always use our own libtool.
21672 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21674 # Prevent multiple expansion
21697 if test $ol_enable_perl != no ; then
21698 # Extract the first word of "perl", so it can be a program name with args.
21699 set dummy perl; ac_word=$2
21700 echo "$as_me:$LINENO: checking for $ac_word" >&5
21701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21702 if test "${ac_cv_path_PERLBIN+set}" = set; then
21703 echo $ECHO_N "(cached) $ECHO_C" >&6
21707 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
21710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21711 for as_dir in $PATH
21714 test -z "$as_dir" && as_dir=.
21715 for ac_exec_ext in '' $ac_executable_extensions; do
21716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21717 ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
21718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21724 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
21728 PERLBIN=$ac_cv_path_PERLBIN
21730 if test -n "$PERLBIN"; then
21731 echo "$as_me:$LINENO: result: $PERLBIN" >&5
21732 echo "${ECHO_T}$PERLBIN" >&6
21734 echo "$as_me:$LINENO: result: no" >&5
21735 echo "${ECHO_T}no" >&6
21739 if test "no$PERLBIN" = "no" ; then
21740 if test $ol_enable_perl = yes ; then
21741 { { echo "$as_me:$LINENO: error: could not locate perl" >&5
21742 echo "$as_me: error: could not locate perl" >&2;}
21743 { (exit 1); exit 1; }; }
21747 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
21748 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
21750 if test x"$ol_enable_perl" = "xyes" ; then
21751 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
21753 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
21760 ac_cpp='$CPP $CPPFLAGS'
21761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21764 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
21765 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
21766 # On Suns, sometimes $CPP names a directory.
21767 if test -n "$CPP" && test -d "$CPP"; then
21770 if test -z "$CPP"; then
21771 if test "${ac_cv_prog_CPP+set}" = set; then
21772 echo $ECHO_N "(cached) $ECHO_C" >&6
21774 # Double quotes because CPP needs to be expanded
21775 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
21777 ac_preproc_ok=false
21778 for ac_c_preproc_warn_flag in '' yes
21780 # Use a header file that comes with gcc, so configuring glibc
21781 # with a fresh cross-compiler works.
21782 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21783 # <limits.h> exists even on freestanding compilers.
21784 # On the NeXT, cc -E runs the code through the compiler's parser,
21785 # not just through cpp. "Syntax error" is here to catch this case.
21786 cat >conftest.$ac_ext <<_ACEOF
21789 cat confdefs.h >>conftest.$ac_ext
21790 cat >>conftest.$ac_ext <<_ACEOF
21791 /* end confdefs.h. */
21793 # include <limits.h>
21795 # include <assert.h>
21799 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21800 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21802 grep -v '^ *+' conftest.er1 >conftest.err
21804 cat conftest.err >&5
21805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21806 (exit $ac_status); } >/dev/null; then
21807 if test -s conftest.err; then
21808 ac_cpp_err=$ac_c_preproc_warn_flag
21809 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21816 if test -z "$ac_cpp_err"; then
21819 echo "$as_me: failed program was:" >&5
21820 sed 's/^/| /' conftest.$ac_ext >&5
21822 # Broken: fails on valid input.
21825 rm -f conftest.err conftest.$ac_ext
21827 # OK, works on sane cases. Now check whether non-existent headers
21828 # can be detected and how.
21829 cat >conftest.$ac_ext <<_ACEOF
21832 cat confdefs.h >>conftest.$ac_ext
21833 cat >>conftest.$ac_ext <<_ACEOF
21834 /* end confdefs.h. */
21835 #include <ac_nonexistent.h>
21837 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21838 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21840 grep -v '^ *+' conftest.er1 >conftest.err
21842 cat conftest.err >&5
21843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21844 (exit $ac_status); } >/dev/null; then
21845 if test -s conftest.err; then
21846 ac_cpp_err=$ac_c_preproc_warn_flag
21847 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21854 if test -z "$ac_cpp_err"; then
21855 # Broken: success on invalid input.
21858 echo "$as_me: failed program was:" >&5
21859 sed 's/^/| /' conftest.$ac_ext >&5
21861 # Passes both tests.
21865 rm -f conftest.err conftest.$ac_ext
21868 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21869 rm -f conftest.err conftest.$ac_ext
21870 if $ac_preproc_ok; then
21875 ac_cv_prog_CPP=$CPP
21878 CPP=$ac_cv_prog_CPP
21880 ac_cv_prog_CPP=$CPP
21882 echo "$as_me:$LINENO: result: $CPP" >&5
21883 echo "${ECHO_T}$CPP" >&6
21884 ac_preproc_ok=false
21885 for ac_c_preproc_warn_flag in '' yes
21887 # Use a header file that comes with gcc, so configuring glibc
21888 # with a fresh cross-compiler works.
21889 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21890 # <limits.h> exists even on freestanding compilers.
21891 # On the NeXT, cc -E runs the code through the compiler's parser,
21892 # not just through cpp. "Syntax error" is here to catch this case.
21893 cat >conftest.$ac_ext <<_ACEOF
21896 cat confdefs.h >>conftest.$ac_ext
21897 cat >>conftest.$ac_ext <<_ACEOF
21898 /* end confdefs.h. */
21900 # include <limits.h>
21902 # include <assert.h>
21906 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21907 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21909 grep -v '^ *+' conftest.er1 >conftest.err
21911 cat conftest.err >&5
21912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21913 (exit $ac_status); } >/dev/null; then
21914 if test -s conftest.err; then
21915 ac_cpp_err=$ac_c_preproc_warn_flag
21916 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21923 if test -z "$ac_cpp_err"; then
21926 echo "$as_me: failed program was:" >&5
21927 sed 's/^/| /' conftest.$ac_ext >&5
21929 # Broken: fails on valid input.
21932 rm -f conftest.err conftest.$ac_ext
21934 # OK, works on sane cases. Now check whether non-existent headers
21935 # can be detected and how.
21936 cat >conftest.$ac_ext <<_ACEOF
21939 cat confdefs.h >>conftest.$ac_ext
21940 cat >>conftest.$ac_ext <<_ACEOF
21941 /* end confdefs.h. */
21942 #include <ac_nonexistent.h>
21944 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21945 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21947 grep -v '^ *+' conftest.er1 >conftest.err
21949 cat conftest.err >&5
21950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21951 (exit $ac_status); } >/dev/null; then
21952 if test -s conftest.err; then
21953 ac_cpp_err=$ac_c_preproc_warn_flag
21954 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21961 if test -z "$ac_cpp_err"; then
21962 # Broken: success on invalid input.
21965 echo "$as_me: failed program was:" >&5
21966 sed 's/^/| /' conftest.$ac_ext >&5
21968 # Passes both tests.
21972 rm -f conftest.err conftest.$ac_ext
21975 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21976 rm -f conftest.err conftest.$ac_ext
21977 if $ac_preproc_ok; then
21980 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
21981 See \`config.log' for more details." >&5
21982 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
21983 See \`config.log' for more details." >&2;}
21984 { (exit 1); exit 1; }; }
21988 ac_cpp='$CPP $CPPFLAGS'
21989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21997 *cygwin* ) CYGWIN=yes;;
22003 *mingw32* ) MINGW32=yes;;
22011 cat >>confdefs.h <<_ACEOF
22012 #define EXEEXT "${EXEEXT}"
22016 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
22017 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
22018 if test "${ac_cv_lib_be_be_app+set}" = set; then
22019 echo $ECHO_N "(cached) $ECHO_C" >&6
22021 ac_check_lib_save_LIBS=$LIBS
22022 LIBS="-lbe -lroot -lnet $LIBS"
22023 cat >conftest.$ac_ext <<_ACEOF
22026 cat confdefs.h >>conftest.$ac_ext
22027 cat >>conftest.$ac_ext <<_ACEOF
22028 /* end confdefs.h. */
22030 /* Override any gcc2 internal prototype to avoid an error. */
22034 /* We use char because int might match the return type of a gcc2
22035 builtin and then its argument prototype would still apply. */
22045 rm -f conftest.$ac_objext conftest$ac_exeext
22046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22047 (eval $ac_link) 2>conftest.er1
22049 grep -v '^ *+' conftest.er1 >conftest.err
22051 cat conftest.err >&5
22052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22053 (exit $ac_status); } &&
22054 { ac_try='test -z "$ac_c_werror_flag"
22055 || test ! -s conftest.err'
22056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22057 (eval $ac_try) 2>&5
22059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22060 (exit $ac_status); }; } &&
22061 { ac_try='test -s conftest$ac_exeext'
22062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22063 (eval $ac_try) 2>&5
22065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066 (exit $ac_status); }; }; then
22067 ac_cv_lib_be_be_app=yes
22069 echo "$as_me: failed program was:" >&5
22070 sed 's/^/| /' conftest.$ac_ext >&5
22072 ac_cv_lib_be_be_app=no
22074 rm -f conftest.err conftest.$ac_objext \
22075 conftest$ac_exeext conftest.$ac_ext
22076 LIBS=$ac_check_lib_save_LIBS
22078 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
22079 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
22080 if test $ac_cv_lib_be_be_app = yes; then
22081 LIBS="$LIBS -lbe -lroot -lnet"
22088 ac_cpp='$CPP $CPPFLAGS'
22089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22092 if test -n "$ac_tool_prefix"; then
22093 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
22094 set dummy ${ac_tool_prefix}gcc; ac_word=$2
22095 echo "$as_me:$LINENO: checking for $ac_word" >&5
22096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22097 if test "${ac_cv_prog_CC+set}" = set; then
22098 echo $ECHO_N "(cached) $ECHO_C" >&6
22100 if test -n "$CC"; then
22101 ac_cv_prog_CC="$CC" # Let the user override the test.
22103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22104 for as_dir in $PATH
22107 test -z "$as_dir" && as_dir=.
22108 for ac_exec_ext in '' $ac_executable_extensions; do
22109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22110 ac_cv_prog_CC="${ac_tool_prefix}gcc"
22111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22120 if test -n "$CC"; then
22121 echo "$as_me:$LINENO: result: $CC" >&5
22122 echo "${ECHO_T}$CC" >&6
22124 echo "$as_me:$LINENO: result: no" >&5
22125 echo "${ECHO_T}no" >&6
22129 if test -z "$ac_cv_prog_CC"; then
22131 # Extract the first word of "gcc", so it can be a program name with args.
22132 set dummy gcc; ac_word=$2
22133 echo "$as_me:$LINENO: checking for $ac_word" >&5
22134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22135 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22136 echo $ECHO_N "(cached) $ECHO_C" >&6
22138 if test -n "$ac_ct_CC"; then
22139 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22142 for as_dir in $PATH
22145 test -z "$as_dir" && as_dir=.
22146 for ac_exec_ext in '' $ac_executable_extensions; do
22147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22148 ac_cv_prog_ac_ct_CC="gcc"
22149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22157 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22158 if test -n "$ac_ct_CC"; then
22159 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22160 echo "${ECHO_T}$ac_ct_CC" >&6
22162 echo "$as_me:$LINENO: result: no" >&5
22163 echo "${ECHO_T}no" >&6
22168 CC="$ac_cv_prog_CC"
22171 if test -z "$CC"; then
22172 if test -n "$ac_tool_prefix"; then
22173 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
22174 set dummy ${ac_tool_prefix}cc; ac_word=$2
22175 echo "$as_me:$LINENO: checking for $ac_word" >&5
22176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22177 if test "${ac_cv_prog_CC+set}" = set; then
22178 echo $ECHO_N "(cached) $ECHO_C" >&6
22180 if test -n "$CC"; then
22181 ac_cv_prog_CC="$CC" # Let the user override the test.
22183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22184 for as_dir in $PATH
22187 test -z "$as_dir" && as_dir=.
22188 for ac_exec_ext in '' $ac_executable_extensions; do
22189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22190 ac_cv_prog_CC="${ac_tool_prefix}cc"
22191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22200 if test -n "$CC"; then
22201 echo "$as_me:$LINENO: result: $CC" >&5
22202 echo "${ECHO_T}$CC" >&6
22204 echo "$as_me:$LINENO: result: no" >&5
22205 echo "${ECHO_T}no" >&6
22209 if test -z "$ac_cv_prog_CC"; then
22211 # Extract the first word of "cc", so it can be a program name with args.
22212 set dummy cc; ac_word=$2
22213 echo "$as_me:$LINENO: checking for $ac_word" >&5
22214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22215 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22216 echo $ECHO_N "(cached) $ECHO_C" >&6
22218 if test -n "$ac_ct_CC"; then
22219 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22222 for as_dir in $PATH
22225 test -z "$as_dir" && as_dir=.
22226 for ac_exec_ext in '' $ac_executable_extensions; do
22227 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22228 ac_cv_prog_ac_ct_CC="cc"
22229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22237 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22238 if test -n "$ac_ct_CC"; then
22239 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22240 echo "${ECHO_T}$ac_ct_CC" >&6
22242 echo "$as_me:$LINENO: result: no" >&5
22243 echo "${ECHO_T}no" >&6
22248 CC="$ac_cv_prog_CC"
22252 if test -z "$CC"; then
22253 # Extract the first word of "cc", so it can be a program name with args.
22254 set dummy cc; ac_word=$2
22255 echo "$as_me:$LINENO: checking for $ac_word" >&5
22256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22257 if test "${ac_cv_prog_CC+set}" = set; then
22258 echo $ECHO_N "(cached) $ECHO_C" >&6
22260 if test -n "$CC"; then
22261 ac_cv_prog_CC="$CC" # Let the user override the test.
22263 ac_prog_rejected=no
22264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22265 for as_dir in $PATH
22268 test -z "$as_dir" && as_dir=.
22269 for ac_exec_ext in '' $ac_executable_extensions; do
22270 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22271 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
22272 ac_prog_rejected=yes
22276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22282 if test $ac_prog_rejected = yes; then
22283 # We found a bogon in the path, so make sure we never use it.
22284 set dummy $ac_cv_prog_CC
22286 if test $# != 0; then
22287 # We chose a different compiler from the bogus one.
22288 # However, it has the same basename, so the bogon will be chosen
22289 # first if we set CC to just the basename; use the full file name.
22291 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
22297 if test -n "$CC"; then
22298 echo "$as_me:$LINENO: result: $CC" >&5
22299 echo "${ECHO_T}$CC" >&6
22301 echo "$as_me:$LINENO: result: no" >&5
22302 echo "${ECHO_T}no" >&6
22306 if test -z "$CC"; then
22307 if test -n "$ac_tool_prefix"; then
22310 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
22311 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
22312 echo "$as_me:$LINENO: checking for $ac_word" >&5
22313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22314 if test "${ac_cv_prog_CC+set}" = set; then
22315 echo $ECHO_N "(cached) $ECHO_C" >&6
22317 if test -n "$CC"; then
22318 ac_cv_prog_CC="$CC" # Let the user override the test.
22320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22321 for as_dir in $PATH
22324 test -z "$as_dir" && as_dir=.
22325 for ac_exec_ext in '' $ac_executable_extensions; do
22326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22327 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
22328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22337 if test -n "$CC"; then
22338 echo "$as_me:$LINENO: result: $CC" >&5
22339 echo "${ECHO_T}$CC" >&6
22341 echo "$as_me:$LINENO: result: no" >&5
22342 echo "${ECHO_T}no" >&6
22345 test -n "$CC" && break
22348 if test -z "$CC"; then
22352 # Extract the first word of "$ac_prog", so it can be a program name with args.
22353 set dummy $ac_prog; ac_word=$2
22354 echo "$as_me:$LINENO: checking for $ac_word" >&5
22355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22356 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22357 echo $ECHO_N "(cached) $ECHO_C" >&6
22359 if test -n "$ac_ct_CC"; then
22360 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22363 for as_dir in $PATH
22366 test -z "$as_dir" && as_dir=.
22367 for ac_exec_ext in '' $ac_executable_extensions; do
22368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22369 ac_cv_prog_ac_ct_CC="$ac_prog"
22370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22378 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22379 if test -n "$ac_ct_CC"; then
22380 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22381 echo "${ECHO_T}$ac_ct_CC" >&6
22383 echo "$as_me:$LINENO: result: no" >&5
22384 echo "${ECHO_T}no" >&6
22387 test -n "$ac_ct_CC" && break
22396 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
22397 See \`config.log' for more details." >&5
22398 echo "$as_me: error: no acceptable C compiler found in \$PATH
22399 See \`config.log' for more details." >&2;}
22400 { (exit 1); exit 1; }; }
22402 # Provide some information about the compiler.
22403 echo "$as_me:$LINENO:" \
22404 "checking for C compiler version" >&5
22405 ac_compiler=`set X $ac_compile; echo $2`
22406 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
22407 (eval $ac_compiler --version </dev/null >&5) 2>&5
22409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22410 (exit $ac_status); }
22411 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
22412 (eval $ac_compiler -v </dev/null >&5) 2>&5
22414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22415 (exit $ac_status); }
22416 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
22417 (eval $ac_compiler -V </dev/null >&5) 2>&5
22419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22420 (exit $ac_status); }
22422 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
22423 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
22424 if test "${ac_cv_c_compiler_gnu+set}" = set; then
22425 echo $ECHO_N "(cached) $ECHO_C" >&6
22427 cat >conftest.$ac_ext <<_ACEOF
22430 cat confdefs.h >>conftest.$ac_ext
22431 cat >>conftest.$ac_ext <<_ACEOF
22432 /* end confdefs.h. */
22445 rm -f conftest.$ac_objext
22446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22447 (eval $ac_compile) 2>conftest.er1
22449 grep -v '^ *+' conftest.er1 >conftest.err
22451 cat conftest.err >&5
22452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22453 (exit $ac_status); } &&
22454 { ac_try='test -z "$ac_c_werror_flag"
22455 || test ! -s conftest.err'
22456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22457 (eval $ac_try) 2>&5
22459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22460 (exit $ac_status); }; } &&
22461 { ac_try='test -s conftest.$ac_objext'
22462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22463 (eval $ac_try) 2>&5
22465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22466 (exit $ac_status); }; }; then
22467 ac_compiler_gnu=yes
22469 echo "$as_me: failed program was:" >&5
22470 sed 's/^/| /' conftest.$ac_ext >&5
22474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22475 ac_cv_c_compiler_gnu=$ac_compiler_gnu
22478 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
22479 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
22480 GCC=`test $ac_compiler_gnu = yes && echo yes`
22481 ac_test_CFLAGS=${CFLAGS+set}
22482 ac_save_CFLAGS=$CFLAGS
22484 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
22485 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
22486 if test "${ac_cv_prog_cc_g+set}" = set; then
22487 echo $ECHO_N "(cached) $ECHO_C" >&6
22489 cat >conftest.$ac_ext <<_ACEOF
22492 cat confdefs.h >>conftest.$ac_ext
22493 cat >>conftest.$ac_ext <<_ACEOF
22494 /* end confdefs.h. */
22504 rm -f conftest.$ac_objext
22505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22506 (eval $ac_compile) 2>conftest.er1
22508 grep -v '^ *+' conftest.er1 >conftest.err
22510 cat conftest.err >&5
22511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22512 (exit $ac_status); } &&
22513 { ac_try='test -z "$ac_c_werror_flag"
22514 || test ! -s conftest.err'
22515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22516 (eval $ac_try) 2>&5
22518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22519 (exit $ac_status); }; } &&
22520 { ac_try='test -s conftest.$ac_objext'
22521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22522 (eval $ac_try) 2>&5
22524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22525 (exit $ac_status); }; }; then
22526 ac_cv_prog_cc_g=yes
22528 echo "$as_me: failed program was:" >&5
22529 sed 's/^/| /' conftest.$ac_ext >&5
22533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22535 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
22536 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
22537 if test "$ac_test_CFLAGS" = set; then
22538 CFLAGS=$ac_save_CFLAGS
22539 elif test $ac_cv_prog_cc_g = yes; then
22540 if test "$GCC" = yes; then
22546 if test "$GCC" = yes; then
22552 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
22553 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
22554 if test "${ac_cv_prog_cc_stdc+set}" = set; then
22555 echo $ECHO_N "(cached) $ECHO_C" >&6
22557 ac_cv_prog_cc_stdc=no
22559 cat >conftest.$ac_ext <<_ACEOF
22562 cat confdefs.h >>conftest.$ac_ext
22563 cat >>conftest.$ac_ext <<_ACEOF
22564 /* end confdefs.h. */
22565 #include <stdarg.h>
22567 #include <sys/types.h>
22568 #include <sys/stat.h>
22569 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
22570 struct buf { int x; };
22571 FILE * (*rcsopen) (struct buf *, struct stat *, int);
22572 static char *e (p, i)
22578 static char *f (char * (*g) (char **, int), char **p, ...)
22583 s = g (p, va_arg (v,int));
22588 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
22589 function prototypes and stuff, but not '\xHH' hex character constants.
22590 These don't provoke an error unfortunately, instead are silently treated
22591 as 'x'. The following induces an error, until -std1 is added to get
22592 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
22593 array size at least. It's necessary to write '\x00'==0 to get something
22594 that's true only with -std1. */
22595 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
22597 int test (int i, double x);
22598 struct s1 {int (*f) (int a);};
22599 struct s2 {int (*f) (double a);};
22600 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
22606 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
22611 # Don't try gcc -ansi; that turns off useful extensions and
22612 # breaks some systems' header files.
22613 # AIX -qlanglvl=ansi
22614 # Ultrix and OSF/1 -std1
22615 # HP-UX 10.20 and later -Ae
22616 # HP-UX older versions -Aa -D_HPUX_SOURCE
22617 # SVR4 -Xc -D__EXTENSIONS__
22618 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
22620 CC="$ac_save_CC $ac_arg"
22621 rm -f conftest.$ac_objext
22622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22623 (eval $ac_compile) 2>conftest.er1
22625 grep -v '^ *+' conftest.er1 >conftest.err
22627 cat conftest.err >&5
22628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22629 (exit $ac_status); } &&
22630 { ac_try='test -z "$ac_c_werror_flag"
22631 || test ! -s conftest.err'
22632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22633 (eval $ac_try) 2>&5
22635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22636 (exit $ac_status); }; } &&
22637 { ac_try='test -s conftest.$ac_objext'
22638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22639 (eval $ac_try) 2>&5
22641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22642 (exit $ac_status); }; }; then
22643 ac_cv_prog_cc_stdc=$ac_arg
22646 echo "$as_me: failed program was:" >&5
22647 sed 's/^/| /' conftest.$ac_ext >&5
22650 rm -f conftest.err conftest.$ac_objext
22652 rm -f conftest.$ac_ext conftest.$ac_objext
22657 case "x$ac_cv_prog_cc_stdc" in
22659 echo "$as_me:$LINENO: result: none needed" >&5
22660 echo "${ECHO_T}none needed" >&6 ;;
22662 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
22663 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
22664 CC="$CC $ac_cv_prog_cc_stdc" ;;
22667 # Some people use a C++ compiler to compile C. Since we use `exit',
22668 # in C++ we need to declare it. In case someone uses the same compiler
22669 # for both compiling C and C++ we need to have the C++ compiler decide
22670 # the declaration of exit, since it's the most demanding environment.
22671 cat >conftest.$ac_ext <<_ACEOF
22672 #ifndef __cplusplus
22676 rm -f conftest.$ac_objext
22677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22678 (eval $ac_compile) 2>conftest.er1
22680 grep -v '^ *+' conftest.er1 >conftest.err
22682 cat conftest.err >&5
22683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22684 (exit $ac_status); } &&
22685 { ac_try='test -z "$ac_c_werror_flag"
22686 || test ! -s conftest.err'
22687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22688 (eval $ac_try) 2>&5
22690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22691 (exit $ac_status); }; } &&
22692 { ac_try='test -s conftest.$ac_objext'
22693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22694 (eval $ac_try) 2>&5
22696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22697 (exit $ac_status); }; }; then
22698 for ac_declaration in \
22700 'extern "C" void std::exit (int) throw (); using std::exit;' \
22701 'extern "C" void std::exit (int); using std::exit;' \
22702 'extern "C" void exit (int) throw ();' \
22703 'extern "C" void exit (int);' \
22706 cat >conftest.$ac_ext <<_ACEOF
22709 cat confdefs.h >>conftest.$ac_ext
22710 cat >>conftest.$ac_ext <<_ACEOF
22711 /* end confdefs.h. */
22713 #include <stdlib.h>
22722 rm -f conftest.$ac_objext
22723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22724 (eval $ac_compile) 2>conftest.er1
22726 grep -v '^ *+' conftest.er1 >conftest.err
22728 cat conftest.err >&5
22729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22730 (exit $ac_status); } &&
22731 { ac_try='test -z "$ac_c_werror_flag"
22732 || test ! -s conftest.err'
22733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22734 (eval $ac_try) 2>&5
22736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22737 (exit $ac_status); }; } &&
22738 { ac_try='test -s conftest.$ac_objext'
22739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22740 (eval $ac_try) 2>&5
22742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22743 (exit $ac_status); }; }; then
22746 echo "$as_me: failed program was:" >&5
22747 sed 's/^/| /' conftest.$ac_ext >&5
22751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22752 cat >conftest.$ac_ext <<_ACEOF
22755 cat confdefs.h >>conftest.$ac_ext
22756 cat >>conftest.$ac_ext <<_ACEOF
22757 /* end confdefs.h. */
22767 rm -f conftest.$ac_objext
22768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22769 (eval $ac_compile) 2>conftest.er1
22771 grep -v '^ *+' conftest.er1 >conftest.err
22773 cat conftest.err >&5
22774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22775 (exit $ac_status); } &&
22776 { ac_try='test -z "$ac_c_werror_flag"
22777 || test ! -s conftest.err'
22778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22779 (eval $ac_try) 2>&5
22781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22782 (exit $ac_status); }; } &&
22783 { ac_try='test -s conftest.$ac_objext'
22784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22785 (eval $ac_try) 2>&5
22787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22788 (exit $ac_status); }; }; then
22791 echo "$as_me: failed program was:" >&5
22792 sed 's/^/| /' conftest.$ac_ext >&5
22795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22798 if test -n "$ac_declaration"; then
22799 echo '#ifdef __cplusplus' >>confdefs.h
22800 echo $ac_declaration >>confdefs.h
22801 echo '#endif' >>confdefs.h
22805 echo "$as_me: failed program was:" >&5
22806 sed 's/^/| /' conftest.$ac_ext >&5
22809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22811 ac_cpp='$CPP $CPPFLAGS'
22812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22816 depcc="$CC" am_compiler_list=
22818 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
22819 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
22820 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
22821 echo $ECHO_N "(cached) $ECHO_C" >&6
22823 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
22824 # We make a subdir and do the tests there. Otherwise we can end up
22825 # making bogus files that we don't know about and never remove. For
22826 # instance it was reported that on HP-UX the gcc test will end up
22827 # making a dummy file named `D' -- because `-MD' means `put the output
22830 # Copy depcomp to subdir because otherwise we won't find it if we're
22831 # using a relative directory.
22832 cp "$am_depcomp" conftest.dir
22834 # We will build objects and dependencies in a subdirectory because
22835 # it helps to detect inapplicable dependency modes. For instance
22836 # both Tru64's cc and ICC support -MD to output dependencies as a
22837 # side effect of compilation, but ICC will put the dependencies in
22838 # the current directory while Tru64 will put them in the object
22842 am_cv_CC_dependencies_compiler_type=none
22843 if test "$am_compiler_list" = ""; then
22844 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
22846 for depmode in $am_compiler_list; do
22847 # Setup a source with many dependencies, because some compilers
22848 # like to wrap large dependency lists on column 80 (with \), and
22849 # we should not choose a depcomp mode which is confused by this.
22851 # We need to recreate these files for each test, as the compiler may
22852 # overwrite some of them when testing with obscure command lines.
22853 # This happens at least with the AIX C compiler.
22855 for i in 1 2 3 4 5 6; do
22856 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22857 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
22858 # Solaris 8's {/usr,}/bin/sh.
22859 touch sub/conftst$i.h
22861 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
22865 # after this tag, mechanisms are not by side-effect, so they'll
22866 # only be used when explicitly requested
22867 if test "x$enable_dependency_tracking" = xyes; then
22875 # We check with `-c' and `-o' for the sake of the "dashmstdout"
22876 # mode. It turns out that the SunPro C++ compiler does not properly
22877 # handle `-M -o', and we need to detect this.
22878 if depmode=$depmode \
22879 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
22880 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
22881 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
22882 >/dev/null 2>conftest.err &&
22883 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
22884 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
22885 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
22886 # icc doesn't choke on unknown options, it will just issue warnings
22887 # or remarks (even with -Werror). So we grep stderr for any message
22888 # that says an option was ignored or not supported.
22889 # When given -MP, icc 7.0 and 7.1 complain thusly:
22890 # icc: Command line warning: ignoring option '-M'; no argument required
22891 # The diagnosis changed in icc 8.0:
22892 # icc: Command line remark: option '-MP' not supported
22893 if (grep 'ignoring option' conftest.err ||
22894 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
22895 am_cv_CC_dependencies_compiler_type=$depmode
22902 rm -rf conftest.dir
22904 am_cv_CC_dependencies_compiler_type=none
22908 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
22909 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
22910 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
22915 test "x$enable_dependency_tracking" != xno \
22916 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
22917 am__fastdepCC_TRUE=
22918 am__fastdepCC_FALSE='#'
22920 am__fastdepCC_TRUE='#'
22921 am__fastdepCC_FALSE=
22925 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
22926 { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
22927 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
22928 { (exit 1); exit 1; }; }
22931 # test for make depend flag
22934 if test -z "${MKDEP}"; then
22935 OL_MKDEP="${CC-cc}"
22936 if test -z "${MKDEP_FLAGS}"; then
22937 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
22938 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
22939 if test "${ol_cv_mkdep+set}" = set; then
22940 echo $ECHO_N "(cached) $ECHO_C" >&6
22944 for flag in "-M" "-xM"; do
22945 cat > conftest.c <<EOF
22948 if { ac_try='$OL_MKDEP $flag conftest.c'
22949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22950 (eval $ac_try) 2>&5
22952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22953 (exit $ac_status); }; } \
22954 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
22956 if test ! -f conftest."${ac_object}" ; then
22958 OL_MKDEP_FLAGS="$flag"
22966 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
22967 echo "${ECHO_T}$ol_cv_mkdep" >&6
22970 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
22974 OL_MKDEP="${MKDEP}"
22975 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
22980 if test "${ol_cv_mkdep}" = no ; then
22981 # this will soon become an error
22982 { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
22983 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
22986 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
22987 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
22988 if test "${ac_cv_lib_s_afopen+set}" = set; then
22989 echo $ECHO_N "(cached) $ECHO_C" >&6
22991 ac_check_lib_save_LIBS=$LIBS
22993 cat >conftest.$ac_ext <<_ACEOF
22996 cat confdefs.h >>conftest.$ac_ext
22997 cat >>conftest.$ac_ext <<_ACEOF
22998 /* end confdefs.h. */
23000 /* Override any gcc2 internal prototype to avoid an error. */
23004 /* We use char because int might match the return type of a gcc2
23005 builtin and then its argument prototype would still apply. */
23015 rm -f conftest.$ac_objext conftest$ac_exeext
23016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23017 (eval $ac_link) 2>conftest.er1
23019 grep -v '^ *+' conftest.er1 >conftest.err
23021 cat conftest.err >&5
23022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23023 (exit $ac_status); } &&
23024 { ac_try='test -z "$ac_c_werror_flag"
23025 || test ! -s conftest.err'
23026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23027 (eval $ac_try) 2>&5
23029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23030 (exit $ac_status); }; } &&
23031 { ac_try='test -s conftest$ac_exeext'
23032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23033 (eval $ac_try) 2>&5
23035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23036 (exit $ac_status); }; }; then
23037 ac_cv_lib_s_afopen=yes
23039 echo "$as_me: failed program was:" >&5
23040 sed 's/^/| /' conftest.$ac_ext >&5
23042 ac_cv_lib_s_afopen=no
23044 rm -f conftest.err conftest.$ac_objext \
23045 conftest$ac_exeext conftest.$ac_ext
23046 LIBS=$ac_check_lib_save_LIBS
23048 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
23049 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
23050 if test $ac_cv_lib_s_afopen = yes; then
23054 cat >>confdefs.h <<\_ACEOF
23055 #define HAVE_AIX_SECURITY 1
23064 ac_cv_func_getopt=no
23066 cat >>confdefs.h <<\_ACEOF
23067 #define BOTH_STRINGS_H 1
23074 WITH_MODULES_ENABLED=no
23075 if test $ol_enable_modules != no ; then
23077 for ac_header in ltdl.h
23079 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23081 echo "$as_me:$LINENO: checking for $ac_header" >&5
23082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23084 echo $ECHO_N "(cached) $ECHO_C" >&6
23086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23089 # Is the header compilable?
23090 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23091 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23092 cat >conftest.$ac_ext <<_ACEOF
23095 cat confdefs.h >>conftest.$ac_ext
23096 cat >>conftest.$ac_ext <<_ACEOF
23097 /* end confdefs.h. */
23098 $ac_includes_default
23099 #include <$ac_header>
23101 rm -f conftest.$ac_objext
23102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23103 (eval $ac_compile) 2>conftest.er1
23105 grep -v '^ *+' conftest.er1 >conftest.err
23107 cat conftest.err >&5
23108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23109 (exit $ac_status); } &&
23110 { ac_try='test -z "$ac_c_werror_flag"
23111 || test ! -s conftest.err'
23112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23113 (eval $ac_try) 2>&5
23115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23116 (exit $ac_status); }; } &&
23117 { ac_try='test -s conftest.$ac_objext'
23118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23119 (eval $ac_try) 2>&5
23121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23122 (exit $ac_status); }; }; then
23123 ac_header_compiler=yes
23125 echo "$as_me: failed program was:" >&5
23126 sed 's/^/| /' conftest.$ac_ext >&5
23128 ac_header_compiler=no
23130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23131 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23132 echo "${ECHO_T}$ac_header_compiler" >&6
23134 # Is the header present?
23135 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23136 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23137 cat >conftest.$ac_ext <<_ACEOF
23140 cat confdefs.h >>conftest.$ac_ext
23141 cat >>conftest.$ac_ext <<_ACEOF
23142 /* end confdefs.h. */
23143 #include <$ac_header>
23145 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23146 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23148 grep -v '^ *+' conftest.er1 >conftest.err
23150 cat conftest.err >&5
23151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23152 (exit $ac_status); } >/dev/null; then
23153 if test -s conftest.err; then
23154 ac_cpp_err=$ac_c_preproc_warn_flag
23155 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23162 if test -z "$ac_cpp_err"; then
23163 ac_header_preproc=yes
23165 echo "$as_me: failed program was:" >&5
23166 sed 's/^/| /' conftest.$ac_ext >&5
23168 ac_header_preproc=no
23170 rm -f conftest.err conftest.$ac_ext
23171 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23172 echo "${ECHO_T}$ac_header_preproc" >&6
23174 # So? What about this header?
23175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23177 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23178 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23180 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23181 ac_header_preproc=yes
23184 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23185 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23186 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23187 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23188 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23189 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23190 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23191 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23193 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23194 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23195 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23198 ## ------------------------------------------ ##
23199 ## Report this to the AC_PACKAGE_NAME lists. ##
23200 ## ------------------------------------------ ##
23203 sed "s/^/$as_me: WARNING: /" >&2
23206 echo "$as_me:$LINENO: checking for $ac_header" >&5
23207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23209 echo $ECHO_N "(cached) $ECHO_C" >&6
23211 eval "$as_ac_Header=\$ac_header_preproc"
23213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23214 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23217 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23218 cat >>confdefs.h <<_ACEOF
23219 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23227 if test $ac_cv_header_ltdl_h = no ; then
23228 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
23229 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
23230 { (exit 1); exit 1; }; }
23233 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
23234 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
23235 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
23236 echo $ECHO_N "(cached) $ECHO_C" >&6
23238 ac_check_lib_save_LIBS=$LIBS
23239 LIBS="-lltdl $LIBS"
23240 cat >conftest.$ac_ext <<_ACEOF
23243 cat confdefs.h >>conftest.$ac_ext
23244 cat >>conftest.$ac_ext <<_ACEOF
23245 /* end confdefs.h. */
23247 /* Override any gcc2 internal prototype to avoid an error. */
23251 /* We use char because int might match the return type of a gcc2
23252 builtin and then its argument prototype would still apply. */
23262 rm -f conftest.$ac_objext conftest$ac_exeext
23263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23264 (eval $ac_link) 2>conftest.er1
23266 grep -v '^ *+' conftest.er1 >conftest.err
23268 cat conftest.err >&5
23269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23270 (exit $ac_status); } &&
23271 { ac_try='test -z "$ac_c_werror_flag"
23272 || test ! -s conftest.err'
23273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23274 (eval $ac_try) 2>&5
23276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23277 (exit $ac_status); }; } &&
23278 { ac_try='test -s conftest$ac_exeext'
23279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23280 (eval $ac_try) 2>&5
23282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23283 (exit $ac_status); }; }; then
23284 ac_cv_lib_ltdl_lt_dlinit=yes
23286 echo "$as_me: failed program was:" >&5
23287 sed 's/^/| /' conftest.$ac_ext >&5
23289 ac_cv_lib_ltdl_lt_dlinit=no
23291 rm -f conftest.err conftest.$ac_objext \
23292 conftest$ac_exeext conftest.$ac_ext
23293 LIBS=$ac_check_lib_save_LIBS
23295 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
23296 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
23297 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
23299 MODULES_LIBS=-lltdl
23301 cat >>confdefs.h <<\_ACEOF
23302 #define HAVE_LIBLTDL 1
23309 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
23310 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
23311 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
23312 { (exit 1); exit 1; }; }
23314 ol_link_modules=yes
23315 WITH_MODULES_ENABLED=yes
23318 for i in $Backends; do
23319 eval "ol_tmp=\$ol_enable_$i"
23320 if test $ol_tmp = mod ; then
23321 { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
23322 echo "$as_me: WARNING: building static $i backend" >&2;}
23323 eval "ol_enable_$i=yes"
23326 for i in $Overlays; do
23327 eval "ol_tmp=\$ol_enable_$i"
23328 if test $ol_tmp = mod ; then
23329 { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
23330 echo "$as_me: WARNING: building static $i overlay" >&2;}
23331 eval "ol_enable_$i=yes"
23337 echo "$as_me:$LINENO: checking for EBCDIC" >&5
23338 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
23339 if test "${ol_cv_cpp_ebcdic+set}" = set; then
23340 echo $ECHO_N "(cached) $ECHO_C" >&6
23343 cat >conftest.$ac_ext <<_ACEOF
23346 cat confdefs.h >>conftest.$ac_ext
23347 cat >>conftest.$ac_ext <<_ACEOF
23348 /* end confdefs.h. */
23351 #include <__ASCII__/generate_error.h>
23355 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23356 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23358 grep -v '^ *+' conftest.er1 >conftest.err
23360 cat conftest.err >&5
23361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23362 (exit $ac_status); } >/dev/null; then
23363 if test -s conftest.err; then
23364 ac_cpp_err=$ac_c_preproc_warn_flag
23365 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23372 if test -z "$ac_cpp_err"; then
23373 ol_cv_cpp_ebcdic=yes
23375 echo "$as_me: failed program was:" >&5
23376 sed 's/^/| /' conftest.$ac_ext >&5
23378 ol_cv_cpp_ebcdic=no
23380 rm -f conftest.err conftest.$ac_ext
23382 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
23383 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
23384 if test $ol_cv_cpp_ebcdic = yes ; then
23386 cat >>confdefs.h <<\_ACEOF
23387 #define HAVE_EBCDIC 1
23392 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
23393 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
23394 if test "${ol_cv_header_stdc+set}" = set; then
23395 echo $ECHO_N "(cached) $ECHO_C" >&6
23397 cat >conftest.$ac_ext <<_ACEOF
23400 cat confdefs.h >>conftest.$ac_ext
23401 cat >>conftest.$ac_ext <<_ACEOF
23402 /* end confdefs.h. */
23403 #include <stdlib.h>
23404 #include <stdarg.h>
23405 #include <string.h>
23408 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23409 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23411 grep -v '^ *+' conftest.er1 >conftest.err
23413 cat conftest.err >&5
23414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23415 (exit $ac_status); } >/dev/null; then
23416 if test -s conftest.err; then
23417 ac_cpp_err=$ac_c_preproc_warn_flag
23418 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23425 if test -z "$ac_cpp_err"; then
23426 ol_cv_header_stdc=yes
23428 echo "$as_me: failed program was:" >&5
23429 sed 's/^/| /' conftest.$ac_ext >&5
23431 ol_cv_header_stdc=no
23433 rm -f conftest.err conftest.$ac_ext
23435 if test $ol_cv_header_stdc = yes; then
23436 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
23437 cat >conftest.$ac_ext <<_ACEOF
23440 cat confdefs.h >>conftest.$ac_ext
23441 cat >>conftest.$ac_ext <<_ACEOF
23442 /* end confdefs.h. */
23443 #include <string.h>
23446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23447 $EGREP "memchr" >/dev/null 2>&1; then
23450 ol_cv_header_stdc=no
23456 if test $ol_cv_header_stdc = yes; then
23457 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
23458 cat >conftest.$ac_ext <<_ACEOF
23461 cat confdefs.h >>conftest.$ac_ext
23462 cat >>conftest.$ac_ext <<_ACEOF
23463 /* end confdefs.h. */
23464 #include <stdlib.h>
23467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23468 $EGREP "free" >/dev/null 2>&1; then
23471 ol_cv_header_stdc=no
23477 if test $ol_cv_header_stdc = yes; then
23478 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
23479 if test "$cross_compiling" = yes; then
23482 cat >conftest.$ac_ext <<_ACEOF
23485 cat confdefs.h >>conftest.$ac_ext
23486 cat >>conftest.$ac_ext <<_ACEOF
23487 /* end confdefs.h. */
23489 #ifndef HAVE_EBCDIC
23490 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
23491 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
23493 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
23494 || ('j' <= (c) && (c) <= 'r') \
23495 || ('s' <= (c) && (c) <= 'z'))
23496 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
23498 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
23499 int main () { int i; for (i = 0; i < 256; i++)
23500 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
23504 rm -f conftest$ac_exeext
23505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23506 (eval $ac_link) 2>&5
23508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23509 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23511 (eval $ac_try) 2>&5
23513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23514 (exit $ac_status); }; }; then
23517 echo "$as_me: program exited with status $ac_status" >&5
23518 echo "$as_me: failed program was:" >&5
23519 sed 's/^/| /' conftest.$ac_ext >&5
23521 ( exit $ac_status )
23522 ol_cv_header_stdc=no
23524 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23528 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
23529 echo "${ECHO_T}$ol_cv_header_stdc" >&6
23530 if test $ol_cv_header_stdc = yes; then
23531 cat >>confdefs.h <<\_ACEOF
23532 #define STDC_HEADERS 1
23536 ac_cv_header_stdc=disable
23539 if test $ol_cv_header_stdc != yes; then
23540 { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
23541 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
23549 ac_header_dirent=no
23550 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
23551 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
23552 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
23553 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
23554 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23555 echo $ECHO_N "(cached) $ECHO_C" >&6
23557 cat >conftest.$ac_ext <<_ACEOF
23560 cat confdefs.h >>conftest.$ac_ext
23561 cat >>conftest.$ac_ext <<_ACEOF
23562 /* end confdefs.h. */
23563 #include <sys/types.h>
23575 rm -f conftest.$ac_objext
23576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23577 (eval $ac_compile) 2>conftest.er1
23579 grep -v '^ *+' conftest.er1 >conftest.err
23581 cat conftest.err >&5
23582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23583 (exit $ac_status); } &&
23584 { ac_try='test -z "$ac_c_werror_flag"
23585 || test ! -s conftest.err'
23586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23587 (eval $ac_try) 2>&5
23589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23590 (exit $ac_status); }; } &&
23591 { ac_try='test -s conftest.$ac_objext'
23592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23593 (eval $ac_try) 2>&5
23595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23596 (exit $ac_status); }; }; then
23597 eval "$as_ac_Header=yes"
23599 echo "$as_me: failed program was:" >&5
23600 sed 's/^/| /' conftest.$ac_ext >&5
23602 eval "$as_ac_Header=no"
23604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23607 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23608 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23609 cat >>confdefs.h <<_ACEOF
23610 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
23613 ac_header_dirent=$ac_hdr; break
23617 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
23618 if test $ac_header_dirent = dirent.h; then
23619 echo "$as_me:$LINENO: checking for library containing opendir" >&5
23620 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23621 if test "${ac_cv_search_opendir+set}" = set; then
23622 echo $ECHO_N "(cached) $ECHO_C" >&6
23624 ac_func_search_save_LIBS=$LIBS
23625 ac_cv_search_opendir=no
23626 cat >conftest.$ac_ext <<_ACEOF
23629 cat confdefs.h >>conftest.$ac_ext
23630 cat >>conftest.$ac_ext <<_ACEOF
23631 /* end confdefs.h. */
23633 /* Override any gcc2 internal prototype to avoid an error. */
23637 /* We use char because int might match the return type of a gcc2
23638 builtin and then its argument prototype would still apply. */
23648 rm -f conftest.$ac_objext conftest$ac_exeext
23649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23650 (eval $ac_link) 2>conftest.er1
23652 grep -v '^ *+' conftest.er1 >conftest.err
23654 cat conftest.err >&5
23655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23656 (exit $ac_status); } &&
23657 { ac_try='test -z "$ac_c_werror_flag"
23658 || test ! -s conftest.err'
23659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23660 (eval $ac_try) 2>&5
23662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23663 (exit $ac_status); }; } &&
23664 { ac_try='test -s conftest$ac_exeext'
23665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23666 (eval $ac_try) 2>&5
23668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23669 (exit $ac_status); }; }; then
23670 ac_cv_search_opendir="none required"
23672 echo "$as_me: failed program was:" >&5
23673 sed 's/^/| /' conftest.$ac_ext >&5
23676 rm -f conftest.err conftest.$ac_objext \
23677 conftest$ac_exeext conftest.$ac_ext
23678 if test "$ac_cv_search_opendir" = no; then
23679 for ac_lib in dir; do
23680 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23681 cat >conftest.$ac_ext <<_ACEOF
23684 cat confdefs.h >>conftest.$ac_ext
23685 cat >>conftest.$ac_ext <<_ACEOF
23686 /* end confdefs.h. */
23688 /* Override any gcc2 internal prototype to avoid an error. */
23692 /* We use char because int might match the return type of a gcc2
23693 builtin and then its argument prototype would still apply. */
23703 rm -f conftest.$ac_objext conftest$ac_exeext
23704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23705 (eval $ac_link) 2>conftest.er1
23707 grep -v '^ *+' conftest.er1 >conftest.err
23709 cat conftest.err >&5
23710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23711 (exit $ac_status); } &&
23712 { ac_try='test -z "$ac_c_werror_flag"
23713 || test ! -s conftest.err'
23714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23715 (eval $ac_try) 2>&5
23717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23718 (exit $ac_status); }; } &&
23719 { ac_try='test -s conftest$ac_exeext'
23720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23721 (eval $ac_try) 2>&5
23723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23724 (exit $ac_status); }; }; then
23725 ac_cv_search_opendir="-l$ac_lib"
23728 echo "$as_me: failed program was:" >&5
23729 sed 's/^/| /' conftest.$ac_ext >&5
23732 rm -f conftest.err conftest.$ac_objext \
23733 conftest$ac_exeext conftest.$ac_ext
23736 LIBS=$ac_func_search_save_LIBS
23738 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23739 echo "${ECHO_T}$ac_cv_search_opendir" >&6
23740 if test "$ac_cv_search_opendir" != no; then
23741 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23746 echo "$as_me:$LINENO: checking for library containing opendir" >&5
23747 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23748 if test "${ac_cv_search_opendir+set}" = set; then
23749 echo $ECHO_N "(cached) $ECHO_C" >&6
23751 ac_func_search_save_LIBS=$LIBS
23752 ac_cv_search_opendir=no
23753 cat >conftest.$ac_ext <<_ACEOF
23756 cat confdefs.h >>conftest.$ac_ext
23757 cat >>conftest.$ac_ext <<_ACEOF
23758 /* end confdefs.h. */
23760 /* Override any gcc2 internal prototype to avoid an error. */
23764 /* We use char because int might match the return type of a gcc2
23765 builtin and then its argument prototype would still apply. */
23775 rm -f conftest.$ac_objext conftest$ac_exeext
23776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23777 (eval $ac_link) 2>conftest.er1
23779 grep -v '^ *+' conftest.er1 >conftest.err
23781 cat conftest.err >&5
23782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23783 (exit $ac_status); } &&
23784 { ac_try='test -z "$ac_c_werror_flag"
23785 || test ! -s conftest.err'
23786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23787 (eval $ac_try) 2>&5
23789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23790 (exit $ac_status); }; } &&
23791 { ac_try='test -s conftest$ac_exeext'
23792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23793 (eval $ac_try) 2>&5
23795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23796 (exit $ac_status); }; }; then
23797 ac_cv_search_opendir="none required"
23799 echo "$as_me: failed program was:" >&5
23800 sed 's/^/| /' conftest.$ac_ext >&5
23803 rm -f conftest.err conftest.$ac_objext \
23804 conftest$ac_exeext conftest.$ac_ext
23805 if test "$ac_cv_search_opendir" = no; then
23806 for ac_lib in x; do
23807 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23808 cat >conftest.$ac_ext <<_ACEOF
23811 cat confdefs.h >>conftest.$ac_ext
23812 cat >>conftest.$ac_ext <<_ACEOF
23813 /* end confdefs.h. */
23815 /* Override any gcc2 internal prototype to avoid an error. */
23819 /* We use char because int might match the return type of a gcc2
23820 builtin and then its argument prototype would still apply. */
23830 rm -f conftest.$ac_objext conftest$ac_exeext
23831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23832 (eval $ac_link) 2>conftest.er1
23834 grep -v '^ *+' conftest.er1 >conftest.err
23836 cat conftest.err >&5
23837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23838 (exit $ac_status); } &&
23839 { ac_try='test -z "$ac_c_werror_flag"
23840 || test ! -s conftest.err'
23841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23842 (eval $ac_try) 2>&5
23844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23845 (exit $ac_status); }; } &&
23846 { ac_try='test -s conftest$ac_exeext'
23847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23848 (eval $ac_try) 2>&5
23850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23851 (exit $ac_status); }; }; then
23852 ac_cv_search_opendir="-l$ac_lib"
23855 echo "$as_me: failed program was:" >&5
23856 sed 's/^/| /' conftest.$ac_ext >&5
23859 rm -f conftest.err conftest.$ac_objext \
23860 conftest$ac_exeext conftest.$ac_ext
23863 LIBS=$ac_func_search_save_LIBS
23865 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23866 echo "${ECHO_T}$ac_cv_search_opendir" >&6
23867 if test "$ac_cv_search_opendir" != no; then
23868 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23874 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
23875 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
23876 if test "${ac_cv_header_sys_wait_h+set}" = set; then
23877 echo $ECHO_N "(cached) $ECHO_C" >&6
23879 cat >conftest.$ac_ext <<_ACEOF
23882 cat confdefs.h >>conftest.$ac_ext
23883 cat >>conftest.$ac_ext <<_ACEOF
23884 /* end confdefs.h. */
23885 #include <sys/types.h>
23886 #include <sys/wait.h>
23887 #ifndef WEXITSTATUS
23888 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
23891 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
23899 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
23904 rm -f conftest.$ac_objext
23905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23906 (eval $ac_compile) 2>conftest.er1
23908 grep -v '^ *+' conftest.er1 >conftest.err
23910 cat conftest.err >&5
23911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23912 (exit $ac_status); } &&
23913 { ac_try='test -z "$ac_c_werror_flag"
23914 || test ! -s conftest.err'
23915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23916 (eval $ac_try) 2>&5
23918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23919 (exit $ac_status); }; } &&
23920 { ac_try='test -s conftest.$ac_objext'
23921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23922 (eval $ac_try) 2>&5
23924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23925 (exit $ac_status); }; }; then
23926 ac_cv_header_sys_wait_h=yes
23928 echo "$as_me: failed program was:" >&5
23929 sed 's/^/| /' conftest.$ac_ext >&5
23931 ac_cv_header_sys_wait_h=no
23933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23935 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
23936 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
23937 if test $ac_cv_header_sys_wait_h = yes; then
23939 cat >>confdefs.h <<\_ACEOF
23940 #define HAVE_SYS_WAIT_H 1
23945 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
23946 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
23947 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
23948 echo $ECHO_N "(cached) $ECHO_C" >&6
23950 cat >conftest.$ac_ext <<_ACEOF
23953 cat confdefs.h >>conftest.$ac_ext
23954 cat >>conftest.$ac_ext <<_ACEOF
23955 /* end confdefs.h. */
23956 #include <sys/types.h>
23957 #include <termios.h>
23963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23964 $EGREP "yes" >/dev/null 2>&1; then
23965 ac_cv_sys_tiocgwinsz_in_termios_h=yes
23967 ac_cv_sys_tiocgwinsz_in_termios_h=no
23972 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
23973 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
23975 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
23976 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
23977 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
23978 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
23979 echo $ECHO_N "(cached) $ECHO_C" >&6
23981 cat >conftest.$ac_ext <<_ACEOF
23984 cat confdefs.h >>conftest.$ac_ext
23985 cat >>conftest.$ac_ext <<_ACEOF
23986 /* end confdefs.h. */
23987 #include <sys/types.h>
23988 #include <sys/ioctl.h>
23994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23995 $EGREP "yes" >/dev/null 2>&1; then
23996 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
23998 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
24003 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
24004 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
24006 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
24008 cat >>confdefs.h <<\_ACEOF
24009 #define GWINSZ_IN_SYS_IOCTL 1
24117 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24119 echo "$as_me:$LINENO: checking for $ac_header" >&5
24120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24121 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24122 echo $ECHO_N "(cached) $ECHO_C" >&6
24124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24125 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24127 # Is the header compilable?
24128 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24129 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24130 cat >conftest.$ac_ext <<_ACEOF
24133 cat confdefs.h >>conftest.$ac_ext
24134 cat >>conftest.$ac_ext <<_ACEOF
24135 /* end confdefs.h. */
24136 $ac_includes_default
24137 #include <$ac_header>
24139 rm -f conftest.$ac_objext
24140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24141 (eval $ac_compile) 2>conftest.er1
24143 grep -v '^ *+' conftest.er1 >conftest.err
24145 cat conftest.err >&5
24146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24147 (exit $ac_status); } &&
24148 { ac_try='test -z "$ac_c_werror_flag"
24149 || test ! -s conftest.err'
24150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24151 (eval $ac_try) 2>&5
24153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24154 (exit $ac_status); }; } &&
24155 { ac_try='test -s conftest.$ac_objext'
24156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24157 (eval $ac_try) 2>&5
24159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24160 (exit $ac_status); }; }; then
24161 ac_header_compiler=yes
24163 echo "$as_me: failed program was:" >&5
24164 sed 's/^/| /' conftest.$ac_ext >&5
24166 ac_header_compiler=no
24168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24169 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24170 echo "${ECHO_T}$ac_header_compiler" >&6
24172 # Is the header present?
24173 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24174 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24175 cat >conftest.$ac_ext <<_ACEOF
24178 cat confdefs.h >>conftest.$ac_ext
24179 cat >>conftest.$ac_ext <<_ACEOF
24180 /* end confdefs.h. */
24181 #include <$ac_header>
24183 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24184 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24186 grep -v '^ *+' conftest.er1 >conftest.err
24188 cat conftest.err >&5
24189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24190 (exit $ac_status); } >/dev/null; then
24191 if test -s conftest.err; then
24192 ac_cpp_err=$ac_c_preproc_warn_flag
24193 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24200 if test -z "$ac_cpp_err"; then
24201 ac_header_preproc=yes
24203 echo "$as_me: failed program was:" >&5
24204 sed 's/^/| /' conftest.$ac_ext >&5
24206 ac_header_preproc=no
24208 rm -f conftest.err conftest.$ac_ext
24209 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24210 echo "${ECHO_T}$ac_header_preproc" >&6
24212 # So? What about this header?
24213 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24215 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24216 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24217 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24218 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24219 ac_header_preproc=yes
24222 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24223 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24224 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24225 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24226 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24227 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24228 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24229 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24230 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24231 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24232 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24233 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24236 ## ------------------------------------------ ##
24237 ## Report this to the AC_PACKAGE_NAME lists. ##
24238 ## ------------------------------------------ ##
24241 sed "s/^/$as_me: WARNING: /" >&2
24244 echo "$as_me:$LINENO: checking for $ac_header" >&5
24245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24247 echo $ECHO_N "(cached) $ECHO_C" >&6
24249 eval "$as_ac_Header=\$ac_header_preproc"
24251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24252 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24255 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24256 cat >>confdefs.h <<_ACEOF
24257 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24268 for ac_func in sigaction sigset
24270 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24271 echo "$as_me:$LINENO: checking for $ac_func" >&5
24272 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24273 if eval "test \"\${$as_ac_var+set}\" = set"; then
24274 echo $ECHO_N "(cached) $ECHO_C" >&6
24276 cat >conftest.$ac_ext <<_ACEOF
24279 cat confdefs.h >>conftest.$ac_ext
24280 cat >>conftest.$ac_ext <<_ACEOF
24281 /* end confdefs.h. */
24282 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24283 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24284 #define $ac_func innocuous_$ac_func
24286 /* System header to define __stub macros and hopefully few prototypes,
24287 which can conflict with char $ac_func (); below.
24288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24289 <limits.h> exists even on freestanding compilers. */
24292 # include <limits.h>
24294 # include <assert.h>
24299 /* Override any gcc2 internal prototype to avoid an error. */
24304 /* We use char because int might match the return type of a gcc2
24305 builtin and then its argument prototype would still apply. */
24307 /* The GNU C library defines this for functions which it implements
24308 to always fail with ENOSYS. Some functions are actually named
24309 something starting with __ and the normal name is an alias. */
24310 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24313 char (*f) () = $ac_func;
24322 return f != $ac_func;
24327 rm -f conftest.$ac_objext conftest$ac_exeext
24328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24329 (eval $ac_link) 2>conftest.er1
24331 grep -v '^ *+' conftest.er1 >conftest.err
24333 cat conftest.err >&5
24334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24335 (exit $ac_status); } &&
24336 { ac_try='test -z "$ac_c_werror_flag"
24337 || test ! -s conftest.err'
24338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24339 (eval $ac_try) 2>&5
24341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24342 (exit $ac_status); }; } &&
24343 { ac_try='test -s conftest$ac_exeext'
24344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24345 (eval $ac_try) 2>&5
24347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24348 (exit $ac_status); }; }; then
24349 eval "$as_ac_var=yes"
24351 echo "$as_me: failed program was:" >&5
24352 sed 's/^/| /' conftest.$ac_ext >&5
24354 eval "$as_ac_var=no"
24356 rm -f conftest.err conftest.$ac_objext \
24357 conftest$ac_exeext conftest.$ac_ext
24359 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24360 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24361 if test `eval echo '${'$as_ac_var'}'` = yes; then
24362 cat >>confdefs.h <<_ACEOF
24363 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24370 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
24372 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
24373 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
24374 if test "${ac_cv_lib_V3_sigset+set}" = set; then
24375 echo $ECHO_N "(cached) $ECHO_C" >&6
24377 ac_check_lib_save_LIBS=$LIBS
24379 cat >conftest.$ac_ext <<_ACEOF
24382 cat confdefs.h >>conftest.$ac_ext
24383 cat >>conftest.$ac_ext <<_ACEOF
24384 /* end confdefs.h. */
24386 /* Override any gcc2 internal prototype to avoid an error. */
24390 /* We use char because int might match the return type of a gcc2
24391 builtin and then its argument prototype would still apply. */
24401 rm -f conftest.$ac_objext conftest$ac_exeext
24402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24403 (eval $ac_link) 2>conftest.er1
24405 grep -v '^ *+' conftest.er1 >conftest.err
24407 cat conftest.err >&5
24408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24409 (exit $ac_status); } &&
24410 { ac_try='test -z "$ac_c_werror_flag"
24411 || test ! -s conftest.err'
24412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24413 (eval $ac_try) 2>&5
24415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24416 (exit $ac_status); }; } &&
24417 { ac_try='test -s conftest$ac_exeext'
24418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24419 (eval $ac_try) 2>&5
24421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24422 (exit $ac_status); }; }; then
24423 ac_cv_lib_V3_sigset=yes
24425 echo "$as_me: failed program was:" >&5
24426 sed 's/^/| /' conftest.$ac_ext >&5
24428 ac_cv_lib_V3_sigset=no
24430 rm -f conftest.err conftest.$ac_objext \
24431 conftest$ac_exeext conftest.$ac_ext
24432 LIBS=$ac_check_lib_save_LIBS
24434 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
24435 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
24436 if test $ac_cv_lib_V3_sigset = yes; then
24437 cat >>confdefs.h <<_ACEOF
24438 #define HAVE_LIBV3 1
24447 if test "$ac_cv_cygwin" != yes && test "$ac_cv_header_winsock_h" = yes; then
24448 echo "$as_me:$LINENO: checking for winsock" >&5
24449 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
24450 if test "${ol_cv_winsock+set}" = set; then
24451 echo $ECHO_N "(cached) $ECHO_C" >&6
24454 for curlib in ws2_32 wsock32; do
24455 LIBS="$LIBS -l$curlib"
24456 cat >conftest.$ac_ext <<_ACEOF
24459 cat confdefs.h >>conftest.$ac_ext
24460 cat >>conftest.$ac_ext <<_ACEOF
24461 /* end confdefs.h. */
24462 #include <winsock.h>
24469 select(0,NULL,NULL,NULL,NULL);
24471 gethostname(NULL,0);
24477 rm -f conftest.$ac_objext conftest$ac_exeext
24478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24479 (eval $ac_link) 2>conftest.er1
24481 grep -v '^ *+' conftest.er1 >conftest.err
24483 cat conftest.err >&5
24484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24485 (exit $ac_status); } &&
24486 { ac_try='test -z "$ac_c_werror_flag"
24487 || test ! -s conftest.err'
24488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24489 (eval $ac_try) 2>&5
24491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24492 (exit $ac_status); }; } &&
24493 { ac_try='test -s conftest$ac_exeext'
24494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24495 (eval $ac_try) 2>&5
24497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24498 (exit $ac_status); }; }; then
24501 echo "$as_me: failed program was:" >&5
24502 sed 's/^/| /' conftest.$ac_ext >&5
24506 rm -f conftest.err conftest.$ac_objext \
24507 conftest$ac_exeext conftest.$ac_ext
24509 if test $ol_cv_winsock = yes; then
24511 cat >>confdefs.h <<\_ACEOF
24512 #define HAVE_WINSOCK 1
24515 ac_cv_func_socket=yes
24516 ac_cv_func_select=yes
24517 ac_cv_func_closesocket=yes
24518 ac_cv_func_gethostname=yes
24519 if test $curlib = ws2_32; then
24520 ol_cv_winsock=winsock2
24522 cat >>confdefs.h <<\_ACEOF
24523 #define HAVE_WINSOCK2 1
24532 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
24533 echo "${ECHO_T}$ol_cv_winsock" >&6
24537 echo "$as_me:$LINENO: checking for socket" >&5
24538 echo $ECHO_N "checking for socket... $ECHO_C" >&6
24539 if test "${ac_cv_func_socket+set}" = set; then
24540 echo $ECHO_N "(cached) $ECHO_C" >&6
24542 cat >conftest.$ac_ext <<_ACEOF
24545 cat confdefs.h >>conftest.$ac_ext
24546 cat >>conftest.$ac_ext <<_ACEOF
24547 /* end confdefs.h. */
24548 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24549 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24550 #define socket innocuous_socket
24552 /* System header to define __stub macros and hopefully few prototypes,
24553 which can conflict with char socket (); below.
24554 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24555 <limits.h> exists even on freestanding compilers. */
24558 # include <limits.h>
24560 # include <assert.h>
24565 /* Override any gcc2 internal prototype to avoid an error. */
24570 /* We use char because int might match the return type of a gcc2
24571 builtin and then its argument prototype would still apply. */
24573 /* The GNU C library defines this for functions which it implements
24574 to always fail with ENOSYS. Some functions are actually named
24575 something starting with __ and the normal name is an alias. */
24576 #if defined (__stub_socket) || defined (__stub___socket)
24579 char (*f) () = socket;
24588 return f != socket;
24593 rm -f conftest.$ac_objext conftest$ac_exeext
24594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24595 (eval $ac_link) 2>conftest.er1
24597 grep -v '^ *+' conftest.er1 >conftest.err
24599 cat conftest.err >&5
24600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24601 (exit $ac_status); } &&
24602 { ac_try='test -z "$ac_c_werror_flag"
24603 || test ! -s conftest.err'
24604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24605 (eval $ac_try) 2>&5
24607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24608 (exit $ac_status); }; } &&
24609 { ac_try='test -s conftest$ac_exeext'
24610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24611 (eval $ac_try) 2>&5
24613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24614 (exit $ac_status); }; }; then
24615 ac_cv_func_socket=yes
24617 echo "$as_me: failed program was:" >&5
24618 sed 's/^/| /' conftest.$ac_ext >&5
24620 ac_cv_func_socket=no
24622 rm -f conftest.err conftest.$ac_objext \
24623 conftest$ac_exeext conftest.$ac_ext
24625 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24626 echo "${ECHO_T}$ac_cv_func_socket" >&6
24627 if test $ac_cv_func_socket = yes; then
24632 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
24633 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
24634 if test "${ac_cv_lib_socket_main+set}" = set; then
24635 echo $ECHO_N "(cached) $ECHO_C" >&6
24637 ac_check_lib_save_LIBS=$LIBS
24638 LIBS="-lsocket $LIBS"
24639 cat >conftest.$ac_ext <<_ACEOF
24642 cat confdefs.h >>conftest.$ac_ext
24643 cat >>conftest.$ac_ext <<_ACEOF
24644 /* end confdefs.h. */
24655 rm -f conftest.$ac_objext conftest$ac_exeext
24656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24657 (eval $ac_link) 2>conftest.er1
24659 grep -v '^ *+' conftest.er1 >conftest.err
24661 cat conftest.err >&5
24662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24663 (exit $ac_status); } &&
24664 { ac_try='test -z "$ac_c_werror_flag"
24665 || test ! -s conftest.err'
24666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24667 (eval $ac_try) 2>&5
24669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24670 (exit $ac_status); }; } &&
24671 { ac_try='test -s conftest$ac_exeext'
24672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24673 (eval $ac_try) 2>&5
24675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24676 (exit $ac_status); }; }; then
24677 ac_cv_lib_socket_main=yes
24679 echo "$as_me: failed program was:" >&5
24680 sed 's/^/| /' conftest.$ac_ext >&5
24682 ac_cv_lib_socket_main=no
24684 rm -f conftest.err conftest.$ac_objext \
24685 conftest$ac_exeext conftest.$ac_ext
24686 LIBS=$ac_check_lib_save_LIBS
24688 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
24689 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
24690 if test $ac_cv_lib_socket_main = yes; then
24691 cat >>confdefs.h <<_ACEOF
24692 #define HAVE_LIBSOCKET 1
24695 LIBS="-lsocket $LIBS"
24700 echo "$as_me:$LINENO: checking for main in -lnet" >&5
24701 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
24702 if test "${ac_cv_lib_net_main+set}" = set; then
24703 echo $ECHO_N "(cached) $ECHO_C" >&6
24705 ac_check_lib_save_LIBS=$LIBS
24707 cat >conftest.$ac_ext <<_ACEOF
24710 cat confdefs.h >>conftest.$ac_ext
24711 cat >>conftest.$ac_ext <<_ACEOF
24712 /* end confdefs.h. */
24723 rm -f conftest.$ac_objext conftest$ac_exeext
24724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24725 (eval $ac_link) 2>conftest.er1
24727 grep -v '^ *+' conftest.er1 >conftest.err
24729 cat conftest.err >&5
24730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24731 (exit $ac_status); } &&
24732 { ac_try='test -z "$ac_c_werror_flag"
24733 || test ! -s conftest.err'
24734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24735 (eval $ac_try) 2>&5
24737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24738 (exit $ac_status); }; } &&
24739 { ac_try='test -s conftest$ac_exeext'
24740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24741 (eval $ac_try) 2>&5
24743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24744 (exit $ac_status); }; }; then
24745 ac_cv_lib_net_main=yes
24747 echo "$as_me: failed program was:" >&5
24748 sed 's/^/| /' conftest.$ac_ext >&5
24750 ac_cv_lib_net_main=no
24752 rm -f conftest.err conftest.$ac_objext \
24753 conftest$ac_exeext conftest.$ac_ext
24754 LIBS=$ac_check_lib_save_LIBS
24756 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
24757 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
24758 if test $ac_cv_lib_net_main = yes; then
24759 cat >>confdefs.h <<_ACEOF
24760 #define HAVE_LIBNET 1
24768 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
24769 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
24770 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
24771 echo $ECHO_N "(cached) $ECHO_C" >&6
24773 ac_check_lib_save_LIBS=$LIBS
24774 LIBS="-lnsl_s $LIBS"
24775 cat >conftest.$ac_ext <<_ACEOF
24778 cat confdefs.h >>conftest.$ac_ext
24779 cat >>conftest.$ac_ext <<_ACEOF
24780 /* end confdefs.h. */
24791 rm -f conftest.$ac_objext conftest$ac_exeext
24792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24793 (eval $ac_link) 2>conftest.er1
24795 grep -v '^ *+' conftest.er1 >conftest.err
24797 cat conftest.err >&5
24798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24799 (exit $ac_status); } &&
24800 { ac_try='test -z "$ac_c_werror_flag"
24801 || test ! -s conftest.err'
24802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24803 (eval $ac_try) 2>&5
24805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24806 (exit $ac_status); }; } &&
24807 { ac_try='test -s conftest$ac_exeext'
24808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24809 (eval $ac_try) 2>&5
24811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24812 (exit $ac_status); }; }; then
24813 ac_cv_lib_nsl_s_main=yes
24815 echo "$as_me: failed program was:" >&5
24816 sed 's/^/| /' conftest.$ac_ext >&5
24818 ac_cv_lib_nsl_s_main=no
24820 rm -f conftest.err conftest.$ac_objext \
24821 conftest$ac_exeext conftest.$ac_ext
24822 LIBS=$ac_check_lib_save_LIBS
24824 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
24825 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
24826 if test $ac_cv_lib_nsl_s_main = yes; then
24827 cat >>confdefs.h <<_ACEOF
24828 #define HAVE_LIBNSL_S 1
24831 LIBS="-lnsl_s $LIBS"
24836 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
24837 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
24838 if test "${ac_cv_lib_nsl_main+set}" = set; then
24839 echo $ECHO_N "(cached) $ECHO_C" >&6
24841 ac_check_lib_save_LIBS=$LIBS
24843 cat >conftest.$ac_ext <<_ACEOF
24846 cat confdefs.h >>conftest.$ac_ext
24847 cat >>conftest.$ac_ext <<_ACEOF
24848 /* end confdefs.h. */
24859 rm -f conftest.$ac_objext conftest$ac_exeext
24860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24861 (eval $ac_link) 2>conftest.er1
24863 grep -v '^ *+' conftest.er1 >conftest.err
24865 cat conftest.err >&5
24866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24867 (exit $ac_status); } &&
24868 { ac_try='test -z "$ac_c_werror_flag"
24869 || test ! -s conftest.err'
24870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24871 (eval $ac_try) 2>&5
24873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24874 (exit $ac_status); }; } &&
24875 { ac_try='test -s conftest$ac_exeext'
24876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24877 (eval $ac_try) 2>&5
24879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24880 (exit $ac_status); }; }; then
24881 ac_cv_lib_nsl_main=yes
24883 echo "$as_me: failed program was:" >&5
24884 sed 's/^/| /' conftest.$ac_ext >&5
24886 ac_cv_lib_nsl_main=no
24888 rm -f conftest.err conftest.$ac_objext \
24889 conftest$ac_exeext conftest.$ac_ext
24890 LIBS=$ac_check_lib_save_LIBS
24892 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
24893 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
24894 if test $ac_cv_lib_nsl_main = yes; then
24895 cat >>confdefs.h <<_ACEOF
24896 #define HAVE_LIBNSL 1
24904 echo "$as_me:$LINENO: checking for socket in -linet" >&5
24905 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
24906 if test "${ac_cv_lib_inet_socket+set}" = set; then
24907 echo $ECHO_N "(cached) $ECHO_C" >&6
24909 ac_check_lib_save_LIBS=$LIBS
24910 LIBS="-linet $LIBS"
24911 cat >conftest.$ac_ext <<_ACEOF
24914 cat confdefs.h >>conftest.$ac_ext
24915 cat >>conftest.$ac_ext <<_ACEOF
24916 /* end confdefs.h. */
24918 /* Override any gcc2 internal prototype to avoid an error. */
24922 /* We use char because int might match the return type of a gcc2
24923 builtin and then its argument prototype would still apply. */
24933 rm -f conftest.$ac_objext conftest$ac_exeext
24934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24935 (eval $ac_link) 2>conftest.er1
24937 grep -v '^ *+' conftest.er1 >conftest.err
24939 cat conftest.err >&5
24940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24941 (exit $ac_status); } &&
24942 { ac_try='test -z "$ac_c_werror_flag"
24943 || test ! -s conftest.err'
24944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24945 (eval $ac_try) 2>&5
24947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24948 (exit $ac_status); }; } &&
24949 { ac_try='test -s conftest$ac_exeext'
24950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24951 (eval $ac_try) 2>&5
24953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24954 (exit $ac_status); }; }; then
24955 ac_cv_lib_inet_socket=yes
24957 echo "$as_me: failed program was:" >&5
24958 sed 's/^/| /' conftest.$ac_ext >&5
24960 ac_cv_lib_inet_socket=no
24962 rm -f conftest.err conftest.$ac_objext \
24963 conftest$ac_exeext conftest.$ac_ext
24964 LIBS=$ac_check_lib_save_LIBS
24966 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
24967 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
24968 if test $ac_cv_lib_inet_socket = yes; then
24969 cat >>confdefs.h <<_ACEOF
24970 #define HAVE_LIBINET 1
24973 LIBS="-linet $LIBS"
24978 echo "$as_me:$LINENO: checking for main in -lgen" >&5
24979 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
24980 if test "${ac_cv_lib_gen_main+set}" = set; then
24981 echo $ECHO_N "(cached) $ECHO_C" >&6
24983 ac_check_lib_save_LIBS=$LIBS
24985 cat >conftest.$ac_ext <<_ACEOF
24988 cat confdefs.h >>conftest.$ac_ext
24989 cat >>conftest.$ac_ext <<_ACEOF
24990 /* end confdefs.h. */
25001 rm -f conftest.$ac_objext conftest$ac_exeext
25002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25003 (eval $ac_link) 2>conftest.er1
25005 grep -v '^ *+' conftest.er1 >conftest.err
25007 cat conftest.err >&5
25008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25009 (exit $ac_status); } &&
25010 { ac_try='test -z "$ac_c_werror_flag"
25011 || test ! -s conftest.err'
25012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25013 (eval $ac_try) 2>&5
25015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25016 (exit $ac_status); }; } &&
25017 { ac_try='test -s conftest$ac_exeext'
25018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25019 (eval $ac_try) 2>&5
25021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25022 (exit $ac_status); }; }; then
25023 ac_cv_lib_gen_main=yes
25025 echo "$as_me: failed program was:" >&5
25026 sed 's/^/| /' conftest.$ac_ext >&5
25028 ac_cv_lib_gen_main=no
25030 rm -f conftest.err conftest.$ac_objext \
25031 conftest$ac_exeext conftest.$ac_ext
25032 LIBS=$ac_check_lib_save_LIBS
25034 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
25035 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
25036 if test $ac_cv_lib_gen_main = yes; then
25037 cat >>confdefs.h <<_ACEOF
25038 #define HAVE_LIBGEN 1
25049 echo "$as_me:$LINENO: checking for select" >&5
25050 echo $ECHO_N "checking for select... $ECHO_C" >&6
25051 if test "${ac_cv_func_select+set}" = set; then
25052 echo $ECHO_N "(cached) $ECHO_C" >&6
25054 cat >conftest.$ac_ext <<_ACEOF
25057 cat confdefs.h >>conftest.$ac_ext
25058 cat >>conftest.$ac_ext <<_ACEOF
25059 /* end confdefs.h. */
25060 /* Define select to an innocuous variant, in case <limits.h> declares select.
25061 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25062 #define select innocuous_select
25064 /* System header to define __stub macros and hopefully few prototypes,
25065 which can conflict with char select (); below.
25066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25067 <limits.h> exists even on freestanding compilers. */
25070 # include <limits.h>
25072 # include <assert.h>
25077 /* Override any gcc2 internal prototype to avoid an error. */
25082 /* We use char because int might match the return type of a gcc2
25083 builtin and then its argument prototype would still apply. */
25085 /* The GNU C library defines this for functions which it implements
25086 to always fail with ENOSYS. Some functions are actually named
25087 something starting with __ and the normal name is an alias. */
25088 #if defined (__stub_select) || defined (__stub___select)
25091 char (*f) () = select;
25100 return f != select;
25105 rm -f conftest.$ac_objext conftest$ac_exeext
25106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25107 (eval $ac_link) 2>conftest.er1
25109 grep -v '^ *+' conftest.er1 >conftest.err
25111 cat conftest.err >&5
25112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25113 (exit $ac_status); } &&
25114 { ac_try='test -z "$ac_c_werror_flag"
25115 || test ! -s conftest.err'
25116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25117 (eval $ac_try) 2>&5
25119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25120 (exit $ac_status); }; } &&
25121 { ac_try='test -s conftest$ac_exeext'
25122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25123 (eval $ac_try) 2>&5
25125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25126 (exit $ac_status); }; }; then
25127 ac_cv_func_select=yes
25129 echo "$as_me: failed program was:" >&5
25130 sed 's/^/| /' conftest.$ac_ext >&5
25132 ac_cv_func_select=no
25134 rm -f conftest.err conftest.$ac_objext \
25135 conftest$ac_exeext conftest.$ac_ext
25137 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
25138 echo "${ECHO_T}$ac_cv_func_select" >&6
25139 if test $ac_cv_func_select = yes; then
25142 { { echo "$as_me:$LINENO: error: select() required." >&5
25143 echo "$as_me: error: select() required." >&2;}
25144 { (exit 1); exit 1; }; }
25148 if test "${ac_cv_header_winsock_h}" != yes; then
25151 for ac_header in sys/select.h sys/socket.h
25153 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25154 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25155 echo "$as_me:$LINENO: checking for $ac_header" >&5
25156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25157 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25158 echo $ECHO_N "(cached) $ECHO_C" >&6
25160 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25161 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25163 # Is the header compilable?
25164 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25165 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25166 cat >conftest.$ac_ext <<_ACEOF
25169 cat confdefs.h >>conftest.$ac_ext
25170 cat >>conftest.$ac_ext <<_ACEOF
25171 /* end confdefs.h. */
25172 $ac_includes_default
25173 #include <$ac_header>
25175 rm -f conftest.$ac_objext
25176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25177 (eval $ac_compile) 2>conftest.er1
25179 grep -v '^ *+' conftest.er1 >conftest.err
25181 cat conftest.err >&5
25182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25183 (exit $ac_status); } &&
25184 { ac_try='test -z "$ac_c_werror_flag"
25185 || test ! -s conftest.err'
25186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25187 (eval $ac_try) 2>&5
25189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25190 (exit $ac_status); }; } &&
25191 { ac_try='test -s conftest.$ac_objext'
25192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25193 (eval $ac_try) 2>&5
25195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25196 (exit $ac_status); }; }; then
25197 ac_header_compiler=yes
25199 echo "$as_me: failed program was:" >&5
25200 sed 's/^/| /' conftest.$ac_ext >&5
25202 ac_header_compiler=no
25204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25205 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25206 echo "${ECHO_T}$ac_header_compiler" >&6
25208 # Is the header present?
25209 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25210 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25211 cat >conftest.$ac_ext <<_ACEOF
25214 cat confdefs.h >>conftest.$ac_ext
25215 cat >>conftest.$ac_ext <<_ACEOF
25216 /* end confdefs.h. */
25217 #include <$ac_header>
25219 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25220 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25222 grep -v '^ *+' conftest.er1 >conftest.err
25224 cat conftest.err >&5
25225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25226 (exit $ac_status); } >/dev/null; then
25227 if test -s conftest.err; then
25228 ac_cpp_err=$ac_c_preproc_warn_flag
25229 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25236 if test -z "$ac_cpp_err"; then
25237 ac_header_preproc=yes
25239 echo "$as_me: failed program was:" >&5
25240 sed 's/^/| /' conftest.$ac_ext >&5
25242 ac_header_preproc=no
25244 rm -f conftest.err conftest.$ac_ext
25245 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25246 echo "${ECHO_T}$ac_header_preproc" >&6
25248 # So? What about this header?
25249 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25251 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25252 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25254 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25255 ac_header_preproc=yes
25258 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25259 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25260 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25261 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25262 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25263 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25264 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25265 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25267 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25268 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25269 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25272 ## ------------------------------------------ ##
25273 ## Report this to the AC_PACKAGE_NAME lists. ##
25274 ## ------------------------------------------ ##
25277 sed "s/^/$as_me: WARNING: /" >&2
25280 echo "$as_me:$LINENO: checking for $ac_header" >&5
25281 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25282 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25283 echo $ECHO_N "(cached) $ECHO_C" >&6
25285 eval "$as_ac_Header=\$ac_header_preproc"
25287 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25288 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25291 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25292 cat >>confdefs.h <<_ACEOF
25293 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25300 echo "$as_me:$LINENO: checking types of arguments for select" >&5
25301 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
25302 if test "${ac_cv_func_select_args+set}" = set; then
25303 echo $ECHO_N "(cached) $ECHO_C" >&6
25305 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25306 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
25307 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
25308 cat >conftest.$ac_ext <<_ACEOF
25311 cat confdefs.h >>conftest.$ac_ext
25312 cat >>conftest.$ac_ext <<_ACEOF
25313 /* end confdefs.h. */
25314 $ac_includes_default
25315 #if HAVE_SYS_SELECT_H
25316 # include <sys/select.h>
25318 #if HAVE_SYS_SOCKET_H
25319 # include <sys/socket.h>
25325 extern int select ($ac_arg1,
25326 $ac_arg234, $ac_arg234, $ac_arg234,
25332 rm -f conftest.$ac_objext
25333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25334 (eval $ac_compile) 2>conftest.er1
25336 grep -v '^ *+' conftest.er1 >conftest.err
25338 cat conftest.err >&5
25339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25340 (exit $ac_status); } &&
25341 { ac_try='test -z "$ac_c_werror_flag"
25342 || test ! -s conftest.err'
25343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25344 (eval $ac_try) 2>&5
25346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25347 (exit $ac_status); }; } &&
25348 { ac_try='test -s conftest.$ac_objext'
25349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25350 (eval $ac_try) 2>&5
25352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25353 (exit $ac_status); }; }; then
25354 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
25356 echo "$as_me: failed program was:" >&5
25357 sed 's/^/| /' conftest.$ac_ext >&5
25360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25364 # Provide a safe default value.
25365 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
25368 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
25369 echo "${ECHO_T}$ac_cv_func_select_args" >&6
25370 ac_save_IFS=$IFS; IFS=','
25371 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25375 cat >>confdefs.h <<_ACEOF
25376 #define SELECT_TYPE_ARG1 $1
25380 cat >>confdefs.h <<_ACEOF
25381 #define SELECT_TYPE_ARG234 ($2)
25385 cat >>confdefs.h <<_ACEOF
25386 #define SELECT_TYPE_ARG5 ($3)
25395 for ac_func in poll
25397 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25398 echo "$as_me:$LINENO: checking for $ac_func" >&5
25399 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25400 if eval "test \"\${$as_ac_var+set}\" = set"; then
25401 echo $ECHO_N "(cached) $ECHO_C" >&6
25403 cat >conftest.$ac_ext <<_ACEOF
25406 cat confdefs.h >>conftest.$ac_ext
25407 cat >>conftest.$ac_ext <<_ACEOF
25408 /* end confdefs.h. */
25409 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25410 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25411 #define $ac_func innocuous_$ac_func
25413 /* System header to define __stub macros and hopefully few prototypes,
25414 which can conflict with char $ac_func (); below.
25415 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25416 <limits.h> exists even on freestanding compilers. */
25419 # include <limits.h>
25421 # include <assert.h>
25426 /* Override any gcc2 internal prototype to avoid an error. */
25431 /* We use char because int might match the return type of a gcc2
25432 builtin and then its argument prototype would still apply. */
25434 /* The GNU C library defines this for functions which it implements
25435 to always fail with ENOSYS. Some functions are actually named
25436 something starting with __ and the normal name is an alias. */
25437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25440 char (*f) () = $ac_func;
25449 return f != $ac_func;
25454 rm -f conftest.$ac_objext conftest$ac_exeext
25455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25456 (eval $ac_link) 2>conftest.er1
25458 grep -v '^ *+' conftest.er1 >conftest.err
25460 cat conftest.err >&5
25461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25462 (exit $ac_status); } &&
25463 { ac_try='test -z "$ac_c_werror_flag"
25464 || test ! -s conftest.err'
25465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25466 (eval $ac_try) 2>&5
25468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25469 (exit $ac_status); }; } &&
25470 { ac_try='test -s conftest$ac_exeext'
25471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25472 (eval $ac_try) 2>&5
25474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25475 (exit $ac_status); }; }; then
25476 eval "$as_ac_var=yes"
25478 echo "$as_me: failed program was:" >&5
25479 sed 's/^/| /' conftest.$ac_ext >&5
25481 eval "$as_ac_var=no"
25483 rm -f conftest.err conftest.$ac_objext \
25484 conftest$ac_exeext conftest.$ac_ext
25486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25487 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25488 if test `eval echo '${'$as_ac_var'}'` = yes; then
25489 cat >>confdefs.h <<_ACEOF
25490 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25497 for ac_header in poll.h
25499 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25500 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25501 echo "$as_me:$LINENO: checking for $ac_header" >&5
25502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25503 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25504 echo $ECHO_N "(cached) $ECHO_C" >&6
25506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25507 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25509 # Is the header compilable?
25510 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25511 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25512 cat >conftest.$ac_ext <<_ACEOF
25515 cat confdefs.h >>conftest.$ac_ext
25516 cat >>conftest.$ac_ext <<_ACEOF
25517 /* end confdefs.h. */
25518 $ac_includes_default
25519 #include <$ac_header>
25521 rm -f conftest.$ac_objext
25522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25523 (eval $ac_compile) 2>conftest.er1
25525 grep -v '^ *+' conftest.er1 >conftest.err
25527 cat conftest.err >&5
25528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25529 (exit $ac_status); } &&
25530 { ac_try='test -z "$ac_c_werror_flag"
25531 || test ! -s conftest.err'
25532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25533 (eval $ac_try) 2>&5
25535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25536 (exit $ac_status); }; } &&
25537 { ac_try='test -s conftest.$ac_objext'
25538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25539 (eval $ac_try) 2>&5
25541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25542 (exit $ac_status); }; }; then
25543 ac_header_compiler=yes
25545 echo "$as_me: failed program was:" >&5
25546 sed 's/^/| /' conftest.$ac_ext >&5
25548 ac_header_compiler=no
25550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25551 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25552 echo "${ECHO_T}$ac_header_compiler" >&6
25554 # Is the header present?
25555 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25556 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25557 cat >conftest.$ac_ext <<_ACEOF
25560 cat confdefs.h >>conftest.$ac_ext
25561 cat >>conftest.$ac_ext <<_ACEOF
25562 /* end confdefs.h. */
25563 #include <$ac_header>
25565 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25566 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25568 grep -v '^ *+' conftest.er1 >conftest.err
25570 cat conftest.err >&5
25571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25572 (exit $ac_status); } >/dev/null; then
25573 if test -s conftest.err; then
25574 ac_cpp_err=$ac_c_preproc_warn_flag
25575 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25582 if test -z "$ac_cpp_err"; then
25583 ac_header_preproc=yes
25585 echo "$as_me: failed program was:" >&5
25586 sed 's/^/| /' conftest.$ac_ext >&5
25588 ac_header_preproc=no
25590 rm -f conftest.err conftest.$ac_ext
25591 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25592 echo "${ECHO_T}$ac_header_preproc" >&6
25594 # So? What about this header?
25595 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25597 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25598 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25600 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25601 ac_header_preproc=yes
25604 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25605 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25606 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25607 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25608 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25609 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25610 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25611 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25612 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25613 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25614 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25615 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25618 ## ------------------------------------------ ##
25619 ## Report this to the AC_PACKAGE_NAME lists. ##
25620 ## ------------------------------------------ ##
25623 sed "s/^/$as_me: WARNING: /" >&2
25626 echo "$as_me:$LINENO: checking for $ac_header" >&5
25627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25628 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25629 echo $ECHO_N "(cached) $ECHO_C" >&6
25631 eval "$as_ac_Header=\$ac_header_preproc"
25633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25634 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25637 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25638 cat >>confdefs.h <<_ACEOF
25639 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25648 for ac_header in sys/epoll.h
25650 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25652 echo "$as_me:$LINENO: checking for $ac_header" >&5
25653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25654 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25655 echo $ECHO_N "(cached) $ECHO_C" >&6
25657 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25658 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25660 # Is the header compilable?
25661 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25662 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25663 cat >conftest.$ac_ext <<_ACEOF
25666 cat confdefs.h >>conftest.$ac_ext
25667 cat >>conftest.$ac_ext <<_ACEOF
25668 /* end confdefs.h. */
25669 $ac_includes_default
25670 #include <$ac_header>
25672 rm -f conftest.$ac_objext
25673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25674 (eval $ac_compile) 2>conftest.er1
25676 grep -v '^ *+' conftest.er1 >conftest.err
25678 cat conftest.err >&5
25679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25680 (exit $ac_status); } &&
25681 { ac_try='test -z "$ac_c_werror_flag"
25682 || test ! -s conftest.err'
25683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25684 (eval $ac_try) 2>&5
25686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25687 (exit $ac_status); }; } &&
25688 { ac_try='test -s conftest.$ac_objext'
25689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25690 (eval $ac_try) 2>&5
25692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25693 (exit $ac_status); }; }; then
25694 ac_header_compiler=yes
25696 echo "$as_me: failed program was:" >&5
25697 sed 's/^/| /' conftest.$ac_ext >&5
25699 ac_header_compiler=no
25701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25702 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25703 echo "${ECHO_T}$ac_header_compiler" >&6
25705 # Is the header present?
25706 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25707 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25708 cat >conftest.$ac_ext <<_ACEOF
25711 cat confdefs.h >>conftest.$ac_ext
25712 cat >>conftest.$ac_ext <<_ACEOF
25713 /* end confdefs.h. */
25714 #include <$ac_header>
25716 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25717 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25719 grep -v '^ *+' conftest.er1 >conftest.err
25721 cat conftest.err >&5
25722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25723 (exit $ac_status); } >/dev/null; then
25724 if test -s conftest.err; then
25725 ac_cpp_err=$ac_c_preproc_warn_flag
25726 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25733 if test -z "$ac_cpp_err"; then
25734 ac_header_preproc=yes
25736 echo "$as_me: failed program was:" >&5
25737 sed 's/^/| /' conftest.$ac_ext >&5
25739 ac_header_preproc=no
25741 rm -f conftest.err conftest.$ac_ext
25742 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25743 echo "${ECHO_T}$ac_header_preproc" >&6
25745 # So? What about this header?
25746 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25748 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25749 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25750 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25751 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25752 ac_header_preproc=yes
25755 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25756 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25757 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25758 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25759 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25760 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25761 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25762 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25764 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25765 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25766 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25769 ## ------------------------------------------ ##
25770 ## Report this to the AC_PACKAGE_NAME lists. ##
25771 ## ------------------------------------------ ##
25774 sed "s/^/$as_me: WARNING: /" >&2
25777 echo "$as_me:$LINENO: checking for $ac_header" >&5
25778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25780 echo $ECHO_N "(cached) $ECHO_C" >&6
25782 eval "$as_ac_Header=\$ac_header_preproc"
25784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25785 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25788 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25789 cat >>confdefs.h <<_ACEOF
25790 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25797 if test "${ac_cv_header_sys_epoll_h}" = yes; then
25798 echo "$as_me:$LINENO: checking for epoll system call" >&5
25799 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
25800 if test "$cross_compiling" = yes; then
25801 echo "$as_me:$LINENO: result: no" >&5
25802 echo "${ECHO_T}no" >&6
25804 cat >conftest.$ac_ext <<_ACEOF
25807 cat confdefs.h >>conftest.$ac_ext
25808 cat >>conftest.$ac_ext <<_ACEOF
25809 /* end confdefs.h. */
25810 int main(int argc, char *argv)
25812 int epfd = epoll_create(256);
25813 exit (epfd == -1 ? 1 : 0);
25816 rm -f conftest$ac_exeext
25817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25818 (eval $ac_link) 2>&5
25820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25821 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25823 (eval $ac_try) 2>&5
25825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25826 (exit $ac_status); }; }; then
25827 echo "$as_me:$LINENO: result: yes" >&5
25828 echo "${ECHO_T}yes" >&6
25830 cat >>confdefs.h <<\_ACEOF
25831 #define HAVE_EPOLL 1
25835 echo "$as_me: program exited with status $ac_status" >&5
25836 echo "$as_me: failed program was:" >&5
25837 sed 's/^/| /' conftest.$ac_ext >&5
25839 ( exit $ac_status )
25840 echo "$as_me:$LINENO: result: no" >&5
25841 echo "${ECHO_T}no" >&6
25843 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25848 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
25849 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
25850 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
25851 echo $ECHO_N "(cached) $ECHO_C" >&6
25854 cat >conftest.$ac_ext <<_ACEOF
25857 cat confdefs.h >>conftest.$ac_ext
25858 cat >>conftest.$ac_ext <<_ACEOF
25859 /* end confdefs.h. */
25862 #include <sys/types.h>
25865 #include <stdlib.h>
25870 char *c = (char *) *sys_errlist
25875 rm -f conftest.$ac_objext
25876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25877 (eval $ac_compile) 2>conftest.er1
25879 grep -v '^ *+' conftest.er1 >conftest.err
25881 cat conftest.err >&5
25882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25883 (exit $ac_status); } &&
25884 { ac_try='test -z "$ac_c_werror_flag"
25885 || test ! -s conftest.err'
25886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25887 (eval $ac_try) 2>&5
25889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25890 (exit $ac_status); }; } &&
25891 { ac_try='test -s conftest.$ac_objext'
25892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25893 (eval $ac_try) 2>&5
25895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25896 (exit $ac_status); }; }; then
25897 ol_cv_dcl_sys_errlist=yes
25898 ol_cv_have_sys_errlist=yes
25900 echo "$as_me: failed program was:" >&5
25901 sed 's/^/| /' conftest.$ac_ext >&5
25903 ol_cv_dcl_sys_errlist=no
25905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25907 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
25908 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
25910 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
25911 if test $ol_cv_dcl_sys_errlist = no ; then
25913 cat >>confdefs.h <<\_ACEOF
25914 #define DECL_SYS_ERRLIST 1
25918 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
25919 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
25920 if test "${ol_cv_have_sys_errlist+set}" = set; then
25921 echo $ECHO_N "(cached) $ECHO_C" >&6
25924 cat >conftest.$ac_ext <<_ACEOF
25927 cat confdefs.h >>conftest.$ac_ext
25928 cat >>conftest.$ac_ext <<_ACEOF
25929 /* end confdefs.h. */
25934 char *c = (char *) *sys_errlist
25939 rm -f conftest.$ac_objext conftest$ac_exeext
25940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25941 (eval $ac_link) 2>conftest.er1
25943 grep -v '^ *+' conftest.er1 >conftest.err
25945 cat conftest.err >&5
25946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25947 (exit $ac_status); } &&
25948 { ac_try='test -z "$ac_c_werror_flag"
25949 || test ! -s conftest.err'
25950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25951 (eval $ac_try) 2>&5
25953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25954 (exit $ac_status); }; } &&
25955 { ac_try='test -s conftest$ac_exeext'
25956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25957 (eval $ac_try) 2>&5
25959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25960 (exit $ac_status); }; }; then
25961 ol_cv_have_sys_errlist=yes
25963 echo "$as_me: failed program was:" >&5
25964 sed 's/^/| /' conftest.$ac_ext >&5
25966 ol_cv_have_sys_errlist=no
25968 rm -f conftest.err conftest.$ac_objext \
25969 conftest$ac_exeext conftest.$ac_ext
25971 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
25972 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
25974 if test $ol_cv_have_sys_errlist = yes ; then
25976 cat >>confdefs.h <<\_ACEOF
25977 #define HAVE_SYS_ERRLIST 1
25983 for ac_func in strerror strerror_r
25985 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25986 echo "$as_me:$LINENO: checking for $ac_func" >&5
25987 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25988 if eval "test \"\${$as_ac_var+set}\" = set"; then
25989 echo $ECHO_N "(cached) $ECHO_C" >&6
25991 cat >conftest.$ac_ext <<_ACEOF
25994 cat confdefs.h >>conftest.$ac_ext
25995 cat >>conftest.$ac_ext <<_ACEOF
25996 /* end confdefs.h. */
25997 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25999 #define $ac_func innocuous_$ac_func
26001 /* System header to define __stub macros and hopefully few prototypes,
26002 which can conflict with char $ac_func (); below.
26003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26004 <limits.h> exists even on freestanding compilers. */
26007 # include <limits.h>
26009 # include <assert.h>
26014 /* Override any gcc2 internal prototype to avoid an error. */
26019 /* We use char because int might match the return type of a gcc2
26020 builtin and then its argument prototype would still apply. */
26022 /* The GNU C library defines this for functions which it implements
26023 to always fail with ENOSYS. Some functions are actually named
26024 something starting with __ and the normal name is an alias. */
26025 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26028 char (*f) () = $ac_func;
26037 return f != $ac_func;
26042 rm -f conftest.$ac_objext conftest$ac_exeext
26043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26044 (eval $ac_link) 2>conftest.er1
26046 grep -v '^ *+' conftest.er1 >conftest.err
26048 cat conftest.err >&5
26049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26050 (exit $ac_status); } &&
26051 { ac_try='test -z "$ac_c_werror_flag"
26052 || test ! -s conftest.err'
26053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26054 (eval $ac_try) 2>&5
26056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26057 (exit $ac_status); }; } &&
26058 { ac_try='test -s conftest$ac_exeext'
26059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26060 (eval $ac_try) 2>&5
26062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26063 (exit $ac_status); }; }; then
26064 eval "$as_ac_var=yes"
26066 echo "$as_me: failed program was:" >&5
26067 sed 's/^/| /' conftest.$ac_ext >&5
26069 eval "$as_ac_var=no"
26071 rm -f conftest.err conftest.$ac_objext \
26072 conftest$ac_exeext conftest.$ac_ext
26074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26075 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26076 if test `eval echo '${'$as_ac_var'}'` = yes; then
26077 cat >>confdefs.h <<_ACEOF
26078 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26084 ol_cv_func_strerror_r=no
26085 if test "${ac_cv_func_strerror_r}" = yes ; then
26086 echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
26087 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
26088 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
26089 echo $ECHO_N "(cached) $ECHO_C" >&6
26092 cat >conftest.$ac_ext <<_ACEOF
26095 cat confdefs.h >>conftest.$ac_ext
26096 cat >>conftest.$ac_ext <<_ACEOF
26097 /* end confdefs.h. */
26098 #include <string.h>
26100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26101 $EGREP "strerror_r" >/dev/null 2>&1; then
26102 ol_decl_strerror_r=yes
26104 ol_decl_strerror_r=no
26108 if test $ol_decl_strerror_r = yes ; then
26109 cat >conftest.$ac_ext <<_ACEOF
26112 cat confdefs.h >>conftest.$ac_ext
26113 cat >>conftest.$ac_ext <<_ACEOF
26114 /* end confdefs.h. */
26115 #include <string.h>
26119 /* from autoconf 2.59 */
26121 char x = *strerror_r (0, buf, sizeof buf);
26122 char *p = strerror_r (0, buf, sizeof buf);
26128 rm -f conftest.$ac_objext
26129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26130 (eval $ac_compile) 2>conftest.er1
26132 grep -v '^ *+' conftest.er1 >conftest.err
26134 cat conftest.err >&5
26135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26136 (exit $ac_status); } &&
26137 { ac_try='test -z "$ac_c_werror_flag"
26138 || test ! -s conftest.err'
26139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26140 (eval $ac_try) 2>&5
26142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26143 (exit $ac_status); }; } &&
26144 { ac_try='test -s conftest.$ac_objext'
26145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26146 (eval $ac_try) 2>&5
26148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26149 (exit $ac_status); }; }; then
26150 ol_cv_nonposix_strerror_r=yes
26152 echo "$as_me: failed program was:" >&5
26153 sed 's/^/| /' conftest.$ac_ext >&5
26155 ol_cv_nonposix_strerror_r=no
26157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26159 if test "$cross_compiling" = yes; then
26160 ol_cv_nonposix_strerror=no
26162 cat >conftest.$ac_ext <<_ACEOF
26165 cat confdefs.h >>conftest.$ac_ext
26166 cat >>conftest.$ac_ext <<_ACEOF
26167 /* end confdefs.h. */
26172 strerror_r( 1, buf, sizeof buf );
26173 exit( buf[0] == 0 );
26177 rm -f conftest$ac_exeext
26178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26179 (eval $ac_link) 2>&5
26181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26182 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26184 (eval $ac_try) 2>&5
26186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26187 (exit $ac_status); }; }; then
26188 ol_cv_nonposix_strerror_r=yes
26190 echo "$as_me: program exited with status $ac_status" >&5
26191 echo "$as_me: failed program was:" >&5
26192 sed 's/^/| /' conftest.$ac_ext >&5
26194 ( exit $ac_status )
26195 ol_cv_nonposix_strerror=no
26197 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26202 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
26203 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
26204 if test $ol_cv_nonposix_strerror_r = yes ; then
26206 cat >>confdefs.h <<\_ACEOF
26207 #define HAVE_NONPOSIX_STRERROR_R 1
26212 elif test "${ac_cv_func_strerror}" = no ; then
26213 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
26214 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
26215 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
26216 echo $ECHO_N "(cached) $ECHO_C" >&6
26219 cat >conftest.$ac_ext <<_ACEOF
26222 cat confdefs.h >>conftest.$ac_ext
26223 cat >>conftest.$ac_ext <<_ACEOF
26224 /* end confdefs.h. */
26227 #include <sys/types.h>
26230 #include <stdlib.h>
26235 char *c = (char *) *sys_errlist
26240 rm -f conftest.$ac_objext
26241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26242 (eval $ac_compile) 2>conftest.er1
26244 grep -v '^ *+' conftest.er1 >conftest.err
26246 cat conftest.err >&5
26247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26248 (exit $ac_status); } &&
26249 { ac_try='test -z "$ac_c_werror_flag"
26250 || test ! -s conftest.err'
26251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26252 (eval $ac_try) 2>&5
26254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26255 (exit $ac_status); }; } &&
26256 { ac_try='test -s conftest.$ac_objext'
26257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26258 (eval $ac_try) 2>&5
26260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26261 (exit $ac_status); }; }; then
26262 ol_cv_dcl_sys_errlist=yes
26263 ol_cv_have_sys_errlist=yes
26265 echo "$as_me: failed program was:" >&5
26266 sed 's/^/| /' conftest.$ac_ext >&5
26268 ol_cv_dcl_sys_errlist=no
26270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26272 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
26273 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
26275 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
26276 if test $ol_cv_dcl_sys_errlist = no ; then
26278 cat >>confdefs.h <<\_ACEOF
26279 #define DECL_SYS_ERRLIST 1
26283 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
26284 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
26285 if test "${ol_cv_have_sys_errlist+set}" = set; then
26286 echo $ECHO_N "(cached) $ECHO_C" >&6
26289 cat >conftest.$ac_ext <<_ACEOF
26292 cat confdefs.h >>conftest.$ac_ext
26293 cat >>conftest.$ac_ext <<_ACEOF
26294 /* end confdefs.h. */
26299 char *c = (char *) *sys_errlist
26304 rm -f conftest.$ac_objext conftest$ac_exeext
26305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26306 (eval $ac_link) 2>conftest.er1
26308 grep -v '^ *+' conftest.er1 >conftest.err
26310 cat conftest.err >&5
26311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26312 (exit $ac_status); } &&
26313 { ac_try='test -z "$ac_c_werror_flag"
26314 || test ! -s conftest.err'
26315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26316 (eval $ac_try) 2>&5
26318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26319 (exit $ac_status); }; } &&
26320 { ac_try='test -s conftest$ac_exeext'
26321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26322 (eval $ac_try) 2>&5
26324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26325 (exit $ac_status); }; }; then
26326 ol_cv_have_sys_errlist=yes
26328 echo "$as_me: failed program was:" >&5
26329 sed 's/^/| /' conftest.$ac_ext >&5
26331 ol_cv_have_sys_errlist=no
26333 rm -f conftest.err conftest.$ac_objext \
26334 conftest$ac_exeext conftest.$ac_ext
26336 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
26337 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
26339 if test $ol_cv_have_sys_errlist = yes ; then
26341 cat >>confdefs.h <<\_ACEOF
26342 #define HAVE_SYS_ERRLIST 1
26351 for ac_header in regex.h
26353 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26355 echo "$as_me:$LINENO: checking for $ac_header" >&5
26356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26357 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26358 echo $ECHO_N "(cached) $ECHO_C" >&6
26360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26361 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26363 # Is the header compilable?
26364 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26365 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26366 cat >conftest.$ac_ext <<_ACEOF
26369 cat confdefs.h >>conftest.$ac_ext
26370 cat >>conftest.$ac_ext <<_ACEOF
26371 /* end confdefs.h. */
26372 $ac_includes_default
26373 #include <$ac_header>
26375 rm -f conftest.$ac_objext
26376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26377 (eval $ac_compile) 2>conftest.er1
26379 grep -v '^ *+' conftest.er1 >conftest.err
26381 cat conftest.err >&5
26382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26383 (exit $ac_status); } &&
26384 { ac_try='test -z "$ac_c_werror_flag"
26385 || test ! -s conftest.err'
26386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26387 (eval $ac_try) 2>&5
26389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26390 (exit $ac_status); }; } &&
26391 { ac_try='test -s conftest.$ac_objext'
26392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26393 (eval $ac_try) 2>&5
26395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26396 (exit $ac_status); }; }; then
26397 ac_header_compiler=yes
26399 echo "$as_me: failed program was:" >&5
26400 sed 's/^/| /' conftest.$ac_ext >&5
26402 ac_header_compiler=no
26404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26405 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26406 echo "${ECHO_T}$ac_header_compiler" >&6
26408 # Is the header present?
26409 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26410 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26411 cat >conftest.$ac_ext <<_ACEOF
26414 cat confdefs.h >>conftest.$ac_ext
26415 cat >>conftest.$ac_ext <<_ACEOF
26416 /* end confdefs.h. */
26417 #include <$ac_header>
26419 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26420 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26422 grep -v '^ *+' conftest.er1 >conftest.err
26424 cat conftest.err >&5
26425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26426 (exit $ac_status); } >/dev/null; then
26427 if test -s conftest.err; then
26428 ac_cpp_err=$ac_c_preproc_warn_flag
26429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26436 if test -z "$ac_cpp_err"; then
26437 ac_header_preproc=yes
26439 echo "$as_me: failed program was:" >&5
26440 sed 's/^/| /' conftest.$ac_ext >&5
26442 ac_header_preproc=no
26444 rm -f conftest.err conftest.$ac_ext
26445 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26446 echo "${ECHO_T}$ac_header_preproc" >&6
26448 # So? What about this header?
26449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26451 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26452 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26454 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26455 ac_header_preproc=yes
26458 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26459 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26460 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26461 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26462 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26463 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26464 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26465 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26468 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26469 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26472 ## ------------------------------------------ ##
26473 ## Report this to the AC_PACKAGE_NAME lists. ##
26474 ## ------------------------------------------ ##
26477 sed "s/^/$as_me: WARNING: /" >&2
26480 echo "$as_me:$LINENO: checking for $ac_header" >&5
26481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26483 echo $ECHO_N "(cached) $ECHO_C" >&6
26485 eval "$as_ac_Header=\$ac_header_preproc"
26487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26488 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26491 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26492 cat >>confdefs.h <<_ACEOF
26493 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26500 if test "$ac_cv_header_regex_h" != yes ; then
26501 { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
26502 echo "$as_me: error: POSIX regex.h required." >&2;}
26503 { (exit 1); exit 1; }; }
26505 echo "$as_me:$LINENO: checking for library containing regfree" >&5
26506 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
26507 if test "${ac_cv_search_regfree+set}" = set; then
26508 echo $ECHO_N "(cached) $ECHO_C" >&6
26510 ac_func_search_save_LIBS=$LIBS
26511 ac_cv_search_regfree=no
26512 cat >conftest.$ac_ext <<_ACEOF
26515 cat confdefs.h >>conftest.$ac_ext
26516 cat >>conftest.$ac_ext <<_ACEOF
26517 /* end confdefs.h. */
26519 /* Override any gcc2 internal prototype to avoid an error. */
26523 /* We use char because int might match the return type of a gcc2
26524 builtin and then its argument prototype would still apply. */
26534 rm -f conftest.$ac_objext conftest$ac_exeext
26535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26536 (eval $ac_link) 2>conftest.er1
26538 grep -v '^ *+' conftest.er1 >conftest.err
26540 cat conftest.err >&5
26541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26542 (exit $ac_status); } &&
26543 { ac_try='test -z "$ac_c_werror_flag"
26544 || test ! -s conftest.err'
26545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26546 (eval $ac_try) 2>&5
26548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26549 (exit $ac_status); }; } &&
26550 { ac_try='test -s conftest$ac_exeext'
26551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26552 (eval $ac_try) 2>&5
26554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26555 (exit $ac_status); }; }; then
26556 ac_cv_search_regfree="none required"
26558 echo "$as_me: failed program was:" >&5
26559 sed 's/^/| /' conftest.$ac_ext >&5
26562 rm -f conftest.err conftest.$ac_objext \
26563 conftest$ac_exeext conftest.$ac_ext
26564 if test "$ac_cv_search_regfree" = no; then
26565 for ac_lib in regex gnuregex; do
26566 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26567 cat >conftest.$ac_ext <<_ACEOF
26570 cat confdefs.h >>conftest.$ac_ext
26571 cat >>conftest.$ac_ext <<_ACEOF
26572 /* end confdefs.h. */
26574 /* Override any gcc2 internal prototype to avoid an error. */
26578 /* We use char because int might match the return type of a gcc2
26579 builtin and then its argument prototype would still apply. */
26589 rm -f conftest.$ac_objext conftest$ac_exeext
26590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26591 (eval $ac_link) 2>conftest.er1
26593 grep -v '^ *+' conftest.er1 >conftest.err
26595 cat conftest.err >&5
26596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26597 (exit $ac_status); } &&
26598 { ac_try='test -z "$ac_c_werror_flag"
26599 || test ! -s conftest.err'
26600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26601 (eval $ac_try) 2>&5
26603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26604 (exit $ac_status); }; } &&
26605 { ac_try='test -s conftest$ac_exeext'
26606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26607 (eval $ac_try) 2>&5
26609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26610 (exit $ac_status); }; }; then
26611 ac_cv_search_regfree="-l$ac_lib"
26614 echo "$as_me: failed program was:" >&5
26615 sed 's/^/| /' conftest.$ac_ext >&5
26618 rm -f conftest.err conftest.$ac_objext \
26619 conftest$ac_exeext conftest.$ac_ext
26622 LIBS=$ac_func_search_save_LIBS
26624 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
26625 echo "${ECHO_T}$ac_cv_search_regfree" >&6
26626 if test "$ac_cv_search_regfree" != no; then
26627 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
26630 { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
26631 echo "$as_me: error: POSIX regex required." >&2;}
26632 { (exit 1); exit 1; }; }
26637 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
26638 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
26639 if test "${ol_cv_c_posix_regex+set}" = set; then
26640 echo $ECHO_N "(cached) $ECHO_C" >&6
26643 if test "$cross_compiling" = yes; then
26644 ol_cv_c_posix_regex=cross
26646 cat >conftest.$ac_ext <<_ACEOF
26649 cat confdefs.h >>conftest.$ac_ext
26650 cat >>conftest.$ac_ext <<_ACEOF
26651 /* end confdefs.h. */
26653 #include <sys/types.h>
26655 static char *pattern, *string;
26663 if(regcomp(&re, pattern, 0)) {
26667 string = "ALL MATCH";
26669 rc = regexec(&re, string, 0, (void*)0, 0);
26676 rm -f conftest$ac_exeext
26677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26678 (eval $ac_link) 2>&5
26680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26681 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26683 (eval $ac_try) 2>&5
26685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26686 (exit $ac_status); }; }; then
26687 ol_cv_c_posix_regex=yes
26689 echo "$as_me: program exited with status $ac_status" >&5
26690 echo "$as_me: failed program was:" >&5
26691 sed 's/^/| /' conftest.$ac_ext >&5
26693 ( exit $ac_status )
26694 ol_cv_c_posix_regex=no
26696 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26699 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
26700 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
26702 if test "$ol_cv_c_posix_regex" = no ; then
26703 { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
26704 echo "$as_me: error: broken POSIX regex!" >&2;}
26705 { (exit 1); exit 1; }; }
26711 for ac_header in sys/uuid.h
26713 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26714 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26715 echo "$as_me:$LINENO: checking for $ac_header" >&5
26716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26717 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26718 echo $ECHO_N "(cached) $ECHO_C" >&6
26720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26721 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26723 # Is the header compilable?
26724 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26725 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26726 cat >conftest.$ac_ext <<_ACEOF
26729 cat confdefs.h >>conftest.$ac_ext
26730 cat >>conftest.$ac_ext <<_ACEOF
26731 /* end confdefs.h. */
26732 $ac_includes_default
26733 #include <$ac_header>
26735 rm -f conftest.$ac_objext
26736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26737 (eval $ac_compile) 2>conftest.er1
26739 grep -v '^ *+' conftest.er1 >conftest.err
26741 cat conftest.err >&5
26742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26743 (exit $ac_status); } &&
26744 { ac_try='test -z "$ac_c_werror_flag"
26745 || test ! -s conftest.err'
26746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26747 (eval $ac_try) 2>&5
26749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26750 (exit $ac_status); }; } &&
26751 { ac_try='test -s conftest.$ac_objext'
26752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26753 (eval $ac_try) 2>&5
26755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26756 (exit $ac_status); }; }; then
26757 ac_header_compiler=yes
26759 echo "$as_me: failed program was:" >&5
26760 sed 's/^/| /' conftest.$ac_ext >&5
26762 ac_header_compiler=no
26764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26765 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26766 echo "${ECHO_T}$ac_header_compiler" >&6
26768 # Is the header present?
26769 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26770 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26771 cat >conftest.$ac_ext <<_ACEOF
26774 cat confdefs.h >>conftest.$ac_ext
26775 cat >>conftest.$ac_ext <<_ACEOF
26776 /* end confdefs.h. */
26777 #include <$ac_header>
26779 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26780 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26782 grep -v '^ *+' conftest.er1 >conftest.err
26784 cat conftest.err >&5
26785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26786 (exit $ac_status); } >/dev/null; then
26787 if test -s conftest.err; then
26788 ac_cpp_err=$ac_c_preproc_warn_flag
26789 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26796 if test -z "$ac_cpp_err"; then
26797 ac_header_preproc=yes
26799 echo "$as_me: failed program was:" >&5
26800 sed 's/^/| /' conftest.$ac_ext >&5
26802 ac_header_preproc=no
26804 rm -f conftest.err conftest.$ac_ext
26805 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26806 echo "${ECHO_T}$ac_header_preproc" >&6
26808 # So? What about this header?
26809 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26811 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26812 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26813 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26814 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26815 ac_header_preproc=yes
26818 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26819 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26820 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26821 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26822 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26823 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26824 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26825 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26827 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26828 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26829 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26832 ## ------------------------------------------ ##
26833 ## Report this to the AC_PACKAGE_NAME lists. ##
26834 ## ------------------------------------------ ##
26837 sed "s/^/$as_me: WARNING: /" >&2
26840 echo "$as_me:$LINENO: checking for $ac_header" >&5
26841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26842 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26843 echo $ECHO_N "(cached) $ECHO_C" >&6
26845 eval "$as_ac_Header=\$ac_header_preproc"
26847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26848 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26851 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26852 cat >>confdefs.h <<_ACEOF
26853 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26860 if test $ac_cv_header_sys_uuid_h = yes ; then
26862 echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
26863 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
26864 if test "${ac_cv_search_uuid_to_str+set}" = set; then
26865 echo $ECHO_N "(cached) $ECHO_C" >&6
26867 ac_func_search_save_LIBS=$LIBS
26868 ac_cv_search_uuid_to_str=no
26869 cat >conftest.$ac_ext <<_ACEOF
26872 cat confdefs.h >>conftest.$ac_ext
26873 cat >>conftest.$ac_ext <<_ACEOF
26874 /* end confdefs.h. */
26876 /* Override any gcc2 internal prototype to avoid an error. */
26880 /* We use char because int might match the return type of a gcc2
26881 builtin and then its argument prototype would still apply. */
26882 char uuid_to_str ();
26891 rm -f conftest.$ac_objext conftest$ac_exeext
26892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26893 (eval $ac_link) 2>conftest.er1
26895 grep -v '^ *+' conftest.er1 >conftest.err
26897 cat conftest.err >&5
26898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26899 (exit $ac_status); } &&
26900 { ac_try='test -z "$ac_c_werror_flag"
26901 || test ! -s conftest.err'
26902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26903 (eval $ac_try) 2>&5
26905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26906 (exit $ac_status); }; } &&
26907 { ac_try='test -s conftest$ac_exeext'
26908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26909 (eval $ac_try) 2>&5
26911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26912 (exit $ac_status); }; }; then
26913 ac_cv_search_uuid_to_str="none required"
26915 echo "$as_me: failed program was:" >&5
26916 sed 's/^/| /' conftest.$ac_ext >&5
26919 rm -f conftest.err conftest.$ac_objext \
26920 conftest$ac_exeext conftest.$ac_ext
26921 if test "$ac_cv_search_uuid_to_str" = no; then
26922 for ac_lib in uuid; do
26923 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26924 cat >conftest.$ac_ext <<_ACEOF
26927 cat confdefs.h >>conftest.$ac_ext
26928 cat >>conftest.$ac_ext <<_ACEOF
26929 /* end confdefs.h. */
26931 /* Override any gcc2 internal prototype to avoid an error. */
26935 /* We use char because int might match the return type of a gcc2
26936 builtin and then its argument prototype would still apply. */
26937 char uuid_to_str ();
26946 rm -f conftest.$ac_objext conftest$ac_exeext
26947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26948 (eval $ac_link) 2>conftest.er1
26950 grep -v '^ *+' conftest.er1 >conftest.err
26952 cat conftest.err >&5
26953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26954 (exit $ac_status); } &&
26955 { ac_try='test -z "$ac_c_werror_flag"
26956 || test ! -s conftest.err'
26957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26958 (eval $ac_try) 2>&5
26960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26961 (exit $ac_status); }; } &&
26962 { ac_try='test -s conftest$ac_exeext'
26963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26964 (eval $ac_try) 2>&5
26966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26967 (exit $ac_status); }; }; then
26968 ac_cv_search_uuid_to_str="-l$ac_lib"
26971 echo "$as_me: failed program was:" >&5
26972 sed 's/^/| /' conftest.$ac_ext >&5
26975 rm -f conftest.err conftest.$ac_objext \
26976 conftest$ac_exeext conftest.$ac_ext
26979 LIBS=$ac_func_search_save_LIBS
26981 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
26982 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
26983 if test "$ac_cv_search_uuid_to_str" != no; then
26984 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
26992 if test have_uuid = yes ; then
26994 cat >>confdefs.h <<\_ACEOF
26995 #define HAVE_UUID_TO_STR 1
26999 test "$ac_cv_search_uuid_to_str" = "none required" || \
27000 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
27004 if test $have_uuid = no ; then
27005 echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
27006 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
27008 LIBS="$LIBS -lrpcrt4"
27009 cat >conftest.$ac_ext <<_ACEOF
27012 cat confdefs.h >>conftest.$ac_ext
27013 cat >>conftest.$ac_ext <<_ACEOF
27014 /* end confdefs.h. */
27016 int __stdcall UuidCreate(void *);
27017 int __stdcall UuidToStringA(void *,void **);
27024 UuidToStringA(0,0);
27030 rm -f conftest.$ac_objext conftest$ac_exeext
27031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27032 (eval $ac_link) 2>conftest.er1
27034 grep -v '^ *+' conftest.er1 >conftest.err
27036 cat conftest.err >&5
27037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27038 (exit $ac_status); } &&
27039 { ac_try='test -z "$ac_c_werror_flag"
27040 || test ! -s conftest.err'
27041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27042 (eval $ac_try) 2>&5
27044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27045 (exit $ac_status); }; } &&
27046 { ac_try='test -s conftest$ac_exeext'
27047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27048 (eval $ac_try) 2>&5
27050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27051 (exit $ac_status); }; }; then
27054 echo "$as_me: failed program was:" >&5
27055 sed 's/^/| /' conftest.$ac_ext >&5
27059 rm -f conftest.err conftest.$ac_objext \
27060 conftest$ac_exeext conftest.$ac_ext
27061 if test $need_rpcrt = yes; then
27062 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
27065 echo "$as_me:$LINENO: result: $need_rpcrt" >&5
27066 echo "${ECHO_T}$need_rpcrt" >&6
27069 ol_cv_lib_resolver=no
27070 if test $ol_cv_lib_resolver = no ; then
27071 echo "$as_me:$LINENO: checking for resolver link (default)" >&5
27072 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
27073 if test "${ol_cv_resolver_none+set}" = set; then
27074 echo $ECHO_N "(cached) $ECHO_C" >&6
27079 LIBS="$ol_RESOLVER_LIB $LIBS"
27081 cat >conftest.$ac_ext <<_ACEOF
27084 cat confdefs.h >>conftest.$ac_ext
27085 cat >>conftest.$ac_ext <<_ACEOF
27086 /* end confdefs.h. */
27088 #ifdef HAVE_SYS_TYPES_H
27089 # include <sys/types.h>
27091 #include <netinet/in.h>
27092 #ifdef HAVE_ARPA_NAMESER_H
27093 # include <arpa/nameser.h>
27095 #ifdef HAVE_RESOLV_H
27096 # include <resolv.h>
27104 char *request = NULL;
27105 unsigned char reply[64*1024];
27106 unsigned char host[64*1024];
27110 /* Bind 8/9 interface */
27111 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27113 /* Bind 4 interface */
27117 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27121 /* Bind 8/9 interface */
27123 #elif defined(HFIXEDSZ)
27124 /* Bind 4 interface w/ HFIXEDSZ */
27127 /* Bind 4 interface w/o HFIXEDSZ */
27128 p += sizeof(HEADER);
27130 status = dn_expand( reply, reply+len, p, host, sizeof(host));
27136 rm -f conftest.$ac_objext conftest$ac_exeext
27137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27138 (eval $ac_link) 2>conftest.er1
27140 grep -v '^ *+' conftest.er1 >conftest.err
27142 cat conftest.err >&5
27143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27144 (exit $ac_status); } &&
27145 { ac_try='test -z "$ac_c_werror_flag"
27146 || test ! -s conftest.err'
27147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27148 (eval $ac_try) 2>&5
27150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27151 (exit $ac_status); }; } &&
27152 { ac_try='test -s conftest$ac_exeext'
27153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27154 (eval $ac_try) 2>&5
27156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27157 (exit $ac_status); }; }; then
27158 ol_cv_resolver_none=yes
27160 echo "$as_me: failed program was:" >&5
27161 sed 's/^/| /' conftest.$ac_ext >&5
27163 ol_cv_resolver_none=no
27165 rm -f conftest.err conftest.$ac_objext \
27166 conftest$ac_exeext conftest.$ac_ext
27171 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
27172 echo "${ECHO_T}$ol_cv_resolver_none" >&6
27174 if test $ol_cv_resolver_none = yes ; then
27175 ol_cv_lib_resolver=yes
27179 if test $ol_cv_lib_resolver = no ; then
27180 echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
27181 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
27182 if test "${ol_cv_resolver_resolv+set}" = set; then
27183 echo $ECHO_N "(cached) $ECHO_C" >&6
27186 ol_RESOLVER_LIB=-lresolv
27188 LIBS="$ol_RESOLVER_LIB $LIBS"
27190 cat >conftest.$ac_ext <<_ACEOF
27193 cat confdefs.h >>conftest.$ac_ext
27194 cat >>conftest.$ac_ext <<_ACEOF
27195 /* end confdefs.h. */
27197 #ifdef HAVE_SYS_TYPES_H
27198 # include <sys/types.h>
27200 #include <netinet/in.h>
27201 #ifdef HAVE_ARPA_NAMESER_H
27202 # include <arpa/nameser.h>
27204 #ifdef HAVE_RESOLV_H
27205 # include <resolv.h>
27213 char *request = NULL;
27214 unsigned char reply[64*1024];
27215 unsigned char host[64*1024];
27219 /* Bind 8/9 interface */
27220 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27222 /* Bind 4 interface */
27226 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27230 /* Bind 8/9 interface */
27232 #elif defined(HFIXEDSZ)
27233 /* Bind 4 interface w/ HFIXEDSZ */
27236 /* Bind 4 interface w/o HFIXEDSZ */
27237 p += sizeof(HEADER);
27239 status = dn_expand( reply, reply+len, p, host, sizeof(host));
27245 rm -f conftest.$ac_objext conftest$ac_exeext
27246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27247 (eval $ac_link) 2>conftest.er1
27249 grep -v '^ *+' conftest.er1 >conftest.err
27251 cat conftest.err >&5
27252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27253 (exit $ac_status); } &&
27254 { ac_try='test -z "$ac_c_werror_flag"
27255 || test ! -s conftest.err'
27256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27257 (eval $ac_try) 2>&5
27259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27260 (exit $ac_status); }; } &&
27261 { ac_try='test -s conftest$ac_exeext'
27262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27263 (eval $ac_try) 2>&5
27265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27266 (exit $ac_status); }; }; then
27267 ol_cv_resolver_resolv=yes
27269 echo "$as_me: failed program was:" >&5
27270 sed 's/^/| /' conftest.$ac_ext >&5
27272 ol_cv_resolver_resolv=no
27274 rm -f conftest.err conftest.$ac_objext \
27275 conftest$ac_exeext conftest.$ac_ext
27280 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
27281 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
27283 if test $ol_cv_resolver_resolv = yes ; then
27284 ol_cv_lib_resolver=-lresolv
27288 if test $ol_cv_lib_resolver = no ; then
27289 echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
27290 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
27291 if test "${ol_cv_resolver_bind+set}" = set; then
27292 echo $ECHO_N "(cached) $ECHO_C" >&6
27295 ol_RESOLVER_LIB=-lbind
27297 LIBS="$ol_RESOLVER_LIB $LIBS"
27299 cat >conftest.$ac_ext <<_ACEOF
27302 cat confdefs.h >>conftest.$ac_ext
27303 cat >>conftest.$ac_ext <<_ACEOF
27304 /* end confdefs.h. */
27306 #ifdef HAVE_SYS_TYPES_H
27307 # include <sys/types.h>
27309 #include <netinet/in.h>
27310 #ifdef HAVE_ARPA_NAMESER_H
27311 # include <arpa/nameser.h>
27313 #ifdef HAVE_RESOLV_H
27314 # include <resolv.h>
27322 char *request = NULL;
27323 unsigned char reply[64*1024];
27324 unsigned char host[64*1024];
27328 /* Bind 8/9 interface */
27329 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27331 /* Bind 4 interface */
27335 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27339 /* Bind 8/9 interface */
27341 #elif defined(HFIXEDSZ)
27342 /* Bind 4 interface w/ HFIXEDSZ */
27345 /* Bind 4 interface w/o HFIXEDSZ */
27346 p += sizeof(HEADER);
27348 status = dn_expand( reply, reply+len, p, host, sizeof(host));
27354 rm -f conftest.$ac_objext conftest$ac_exeext
27355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27356 (eval $ac_link) 2>conftest.er1
27358 grep -v '^ *+' conftest.er1 >conftest.err
27360 cat conftest.err >&5
27361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27362 (exit $ac_status); } &&
27363 { ac_try='test -z "$ac_c_werror_flag"
27364 || test ! -s conftest.err'
27365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27366 (eval $ac_try) 2>&5
27368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27369 (exit $ac_status); }; } &&
27370 { ac_try='test -s conftest$ac_exeext'
27371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27372 (eval $ac_try) 2>&5
27374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27375 (exit $ac_status); }; }; then
27376 ol_cv_resolver_bind=yes
27378 echo "$as_me: failed program was:" >&5
27379 sed 's/^/| /' conftest.$ac_ext >&5
27381 ol_cv_resolver_bind=no
27383 rm -f conftest.err conftest.$ac_objext \
27384 conftest$ac_exeext conftest.$ac_ext
27389 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
27390 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
27392 if test $ol_cv_resolver_bind = yes ; then
27393 ol_cv_lib_resolver=-lbind
27400 if test "$ol_cv_lib_resolver" != no ; then
27402 cat >>confdefs.h <<\_ACEOF
27403 #define HAVE_RES_QUERY 1
27407 if test "$ol_enable_dnssrv" != no ; then
27411 if test "$ol_cv_lib_resolver" != yes ; then
27412 LIBS="$ol_cv_lib_resolver $LIBS"
27416 if test "$ol_enable_dnssrv" = yes -o "$ol_enable_dnssrv" = mod ; then
27417 if test "$ol_link_dnssrv" = no ; then
27418 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
27419 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
27420 { (exit 1); exit 1; }; }
27423 ol_enable_dnssrv=no
27427 for ac_func in hstrerror
27429 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27430 echo "$as_me:$LINENO: checking for $ac_func" >&5
27431 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27432 if eval "test \"\${$as_ac_var+set}\" = set"; then
27433 echo $ECHO_N "(cached) $ECHO_C" >&6
27435 cat >conftest.$ac_ext <<_ACEOF
27438 cat confdefs.h >>conftest.$ac_ext
27439 cat >>conftest.$ac_ext <<_ACEOF
27440 /* end confdefs.h. */
27441 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27442 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27443 #define $ac_func innocuous_$ac_func
27445 /* System header to define __stub macros and hopefully few prototypes,
27446 which can conflict with char $ac_func (); below.
27447 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27448 <limits.h> exists even on freestanding compilers. */
27451 # include <limits.h>
27453 # include <assert.h>
27458 /* Override any gcc2 internal prototype to avoid an error. */
27463 /* We use char because int might match the return type of a gcc2
27464 builtin and then its argument prototype would still apply. */
27466 /* The GNU C library defines this for functions which it implements
27467 to always fail with ENOSYS. Some functions are actually named
27468 something starting with __ and the normal name is an alias. */
27469 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27472 char (*f) () = $ac_func;
27481 return f != $ac_func;
27486 rm -f conftest.$ac_objext conftest$ac_exeext
27487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27488 (eval $ac_link) 2>conftest.er1
27490 grep -v '^ *+' conftest.er1 >conftest.err
27492 cat conftest.err >&5
27493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27494 (exit $ac_status); } &&
27495 { ac_try='test -z "$ac_c_werror_flag"
27496 || test ! -s conftest.err'
27497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27498 (eval $ac_try) 2>&5
27500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27501 (exit $ac_status); }; } &&
27502 { ac_try='test -s conftest$ac_exeext'
27503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27504 (eval $ac_try) 2>&5
27506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27507 (exit $ac_status); }; }; then
27508 eval "$as_ac_var=yes"
27510 echo "$as_me: failed program was:" >&5
27511 sed 's/^/| /' conftest.$ac_ext >&5
27513 eval "$as_ac_var=no"
27515 rm -f conftest.err conftest.$ac_objext \
27516 conftest$ac_exeext conftest.$ac_ext
27518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27519 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27520 if test `eval echo '${'$as_ac_var'}'` = yes; then
27521 cat >>confdefs.h <<_ACEOF
27522 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27533 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
27535 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27536 echo "$as_me:$LINENO: checking for $ac_func" >&5
27537 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27538 if eval "test \"\${$as_ac_var+set}\" = set"; then
27539 echo $ECHO_N "(cached) $ECHO_C" >&6
27541 cat >conftest.$ac_ext <<_ACEOF
27544 cat confdefs.h >>conftest.$ac_ext
27545 cat >>conftest.$ac_ext <<_ACEOF
27546 /* end confdefs.h. */
27547 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27548 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27549 #define $ac_func innocuous_$ac_func
27551 /* System header to define __stub macros and hopefully few prototypes,
27552 which can conflict with char $ac_func (); below.
27553 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27554 <limits.h> exists even on freestanding compilers. */
27557 # include <limits.h>
27559 # include <assert.h>
27564 /* Override any gcc2 internal prototype to avoid an error. */
27569 /* We use char because int might match the return type of a gcc2
27570 builtin and then its argument prototype would still apply. */
27572 /* The GNU C library defines this for functions which it implements
27573 to always fail with ENOSYS. Some functions are actually named
27574 something starting with __ and the normal name is an alias. */
27575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27578 char (*f) () = $ac_func;
27587 return f != $ac_func;
27592 rm -f conftest.$ac_objext conftest$ac_exeext
27593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27594 (eval $ac_link) 2>conftest.er1
27596 grep -v '^ *+' conftest.er1 >conftest.err
27598 cat conftest.err >&5
27599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27600 (exit $ac_status); } &&
27601 { ac_try='test -z "$ac_c_werror_flag"
27602 || test ! -s conftest.err'
27603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27604 (eval $ac_try) 2>&5
27606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27607 (exit $ac_status); }; } &&
27608 { ac_try='test -s conftest$ac_exeext'
27609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27610 (eval $ac_try) 2>&5
27612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27613 (exit $ac_status); }; }; then
27614 eval "$as_ac_var=yes"
27616 echo "$as_me: failed program was:" >&5
27617 sed 's/^/| /' conftest.$ac_ext >&5
27619 eval "$as_ac_var=no"
27621 rm -f conftest.err conftest.$ac_objext \
27622 conftest$ac_exeext conftest.$ac_ext
27624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27625 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27626 if test `eval echo '${'$as_ac_var'}'` = yes; then
27627 cat >>confdefs.h <<_ACEOF
27628 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27636 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
27637 if test $ol_enable_ipv6 = yes ; then
27638 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
27639 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
27640 { (exit 1); exit 1; }; }
27642 elif test $ol_enable_ipv6 != no ; then
27643 echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
27644 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
27645 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
27646 echo $ECHO_N "(cached) $ECHO_C" >&6
27649 cat >conftest.$ac_ext <<_ACEOF
27652 cat confdefs.h >>conftest.$ac_ext
27653 cat >>conftest.$ac_ext <<_ACEOF
27654 /* end confdefs.h. */
27656 # include <netinet/in.h>
27657 # ifdef INET6_ADDRSTRLEN
27658 __has_inet6_addrstrlen__;
27662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27663 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
27664 ol_cv_inet6_addrstrlen=yes
27666 ol_cv_inet6_addrstrlen=no
27671 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
27672 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
27675 echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
27676 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
27677 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
27678 echo $ECHO_N "(cached) $ECHO_C" >&6
27681 cat >conftest.$ac_ext <<_ACEOF
27684 cat confdefs.h >>conftest.$ac_ext
27685 cat >>conftest.$ac_ext <<_ACEOF
27686 /* end confdefs.h. */
27688 #include <sys/types.h>
27689 #include <sys/socket.h>
27695 struct sockaddr_storage ss;
27701 rm -f conftest.$ac_objext
27702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27703 (eval $ac_compile) 2>conftest.er1
27705 grep -v '^ *+' conftest.er1 >conftest.err
27707 cat conftest.err >&5
27708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27709 (exit $ac_status); } &&
27710 { ac_try='test -z "$ac_c_werror_flag"
27711 || test ! -s conftest.err'
27712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27713 (eval $ac_try) 2>&5
27715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27716 (exit $ac_status); }; } &&
27717 { ac_try='test -s conftest.$ac_objext'
27718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27719 (eval $ac_try) 2>&5
27721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27722 (exit $ac_status); }; }; then
27723 ol_cv_struct_sockaddr_storage=yes
27725 echo "$as_me: failed program was:" >&5
27726 sed 's/^/| /' conftest.$ac_ext >&5
27728 ol_cv_struct_sockaddr_storage=no
27730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27732 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
27733 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
27735 if test $ol_cv_inet6_addrstrlen = yes \
27736 -a $ol_cv_struct_sockaddr_storage = yes ; then
27738 elif test $ol_enable_ipv6 = yes \
27739 -a $ol_cv_inet6_addrstrlen = no ; then
27740 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
27741 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
27742 { (exit 1); exit 1; }; }
27743 elif test $ol_enable_ipv6 = yes \
27744 -a $ol_cv_struct_sockaddr_storage = no ; then
27745 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
27746 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
27747 { (exit 1); exit 1; }; }
27751 if test $ol_enable_local != no ; then
27753 for ac_header in sys/un.h
27755 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27757 echo "$as_me:$LINENO: checking for $ac_header" >&5
27758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27760 echo $ECHO_N "(cached) $ECHO_C" >&6
27762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27763 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27765 # Is the header compilable?
27766 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27767 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27768 cat >conftest.$ac_ext <<_ACEOF
27771 cat confdefs.h >>conftest.$ac_ext
27772 cat >>conftest.$ac_ext <<_ACEOF
27773 /* end confdefs.h. */
27774 $ac_includes_default
27775 #include <$ac_header>
27777 rm -f conftest.$ac_objext
27778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27779 (eval $ac_compile) 2>conftest.er1
27781 grep -v '^ *+' conftest.er1 >conftest.err
27783 cat conftest.err >&5
27784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27785 (exit $ac_status); } &&
27786 { ac_try='test -z "$ac_c_werror_flag"
27787 || test ! -s conftest.err'
27788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27789 (eval $ac_try) 2>&5
27791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27792 (exit $ac_status); }; } &&
27793 { ac_try='test -s conftest.$ac_objext'
27794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27795 (eval $ac_try) 2>&5
27797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27798 (exit $ac_status); }; }; then
27799 ac_header_compiler=yes
27801 echo "$as_me: failed program was:" >&5
27802 sed 's/^/| /' conftest.$ac_ext >&5
27804 ac_header_compiler=no
27806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27807 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27808 echo "${ECHO_T}$ac_header_compiler" >&6
27810 # Is the header present?
27811 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27812 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27813 cat >conftest.$ac_ext <<_ACEOF
27816 cat confdefs.h >>conftest.$ac_ext
27817 cat >>conftest.$ac_ext <<_ACEOF
27818 /* end confdefs.h. */
27819 #include <$ac_header>
27821 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27822 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27824 grep -v '^ *+' conftest.er1 >conftest.err
27826 cat conftest.err >&5
27827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27828 (exit $ac_status); } >/dev/null; then
27829 if test -s conftest.err; then
27830 ac_cpp_err=$ac_c_preproc_warn_flag
27831 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27838 if test -z "$ac_cpp_err"; then
27839 ac_header_preproc=yes
27841 echo "$as_me: failed program was:" >&5
27842 sed 's/^/| /' conftest.$ac_ext >&5
27844 ac_header_preproc=no
27846 rm -f conftest.err conftest.$ac_ext
27847 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27848 echo "${ECHO_T}$ac_header_preproc" >&6
27850 # So? What about this header?
27851 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27853 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27854 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27855 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27856 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27857 ac_header_preproc=yes
27860 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27861 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27862 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27863 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27864 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27865 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27866 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27867 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27868 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27869 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27870 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27871 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27874 ## ------------------------------------------ ##
27875 ## Report this to the AC_PACKAGE_NAME lists. ##
27876 ## ------------------------------------------ ##
27879 sed "s/^/$as_me: WARNING: /" >&2
27882 echo "$as_me:$LINENO: checking for $ac_header" >&5
27883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27884 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27885 echo $ECHO_N "(cached) $ECHO_C" >&6
27887 eval "$as_ac_Header=\$ac_header_preproc"
27889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27890 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27893 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27894 cat >>confdefs.h <<_ACEOF
27895 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27903 if test $ol_enable_local = auto ; then
27904 ol_enable_local=$ac_cv_header_sys_un_h
27905 elif test $ac_cv_header_sys_un_h = no ; then
27906 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
27907 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
27908 { (exit 1); exit 1; }; }
27916 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
27917 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
27918 -o $ol_with_kerberos = k425 ; then
27921 for ac_header in krb5.h
27923 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27925 echo "$as_me:$LINENO: checking for $ac_header" >&5
27926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27927 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27928 echo $ECHO_N "(cached) $ECHO_C" >&6
27930 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27931 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27933 # Is the header compilable?
27934 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27935 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27936 cat >conftest.$ac_ext <<_ACEOF
27939 cat confdefs.h >>conftest.$ac_ext
27940 cat >>conftest.$ac_ext <<_ACEOF
27941 /* end confdefs.h. */
27942 $ac_includes_default
27943 #include <$ac_header>
27945 rm -f conftest.$ac_objext
27946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27947 (eval $ac_compile) 2>conftest.er1
27949 grep -v '^ *+' conftest.er1 >conftest.err
27951 cat conftest.err >&5
27952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27953 (exit $ac_status); } &&
27954 { ac_try='test -z "$ac_c_werror_flag"
27955 || test ! -s conftest.err'
27956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27957 (eval $ac_try) 2>&5
27959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27960 (exit $ac_status); }; } &&
27961 { ac_try='test -s conftest.$ac_objext'
27962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27963 (eval $ac_try) 2>&5
27965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27966 (exit $ac_status); }; }; then
27967 ac_header_compiler=yes
27969 echo "$as_me: failed program was:" >&5
27970 sed 's/^/| /' conftest.$ac_ext >&5
27972 ac_header_compiler=no
27974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27975 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27976 echo "${ECHO_T}$ac_header_compiler" >&6
27978 # Is the header present?
27979 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27980 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27981 cat >conftest.$ac_ext <<_ACEOF
27984 cat confdefs.h >>conftest.$ac_ext
27985 cat >>conftest.$ac_ext <<_ACEOF
27986 /* end confdefs.h. */
27987 #include <$ac_header>
27989 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27990 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27992 grep -v '^ *+' conftest.er1 >conftest.err
27994 cat conftest.err >&5
27995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27996 (exit $ac_status); } >/dev/null; then
27997 if test -s conftest.err; then
27998 ac_cpp_err=$ac_c_preproc_warn_flag
27999 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28006 if test -z "$ac_cpp_err"; then
28007 ac_header_preproc=yes
28009 echo "$as_me: failed program was:" >&5
28010 sed 's/^/| /' conftest.$ac_ext >&5
28012 ac_header_preproc=no
28014 rm -f conftest.err conftest.$ac_ext
28015 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28016 echo "${ECHO_T}$ac_header_preproc" >&6
28018 # So? What about this header?
28019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28021 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28022 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28023 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28024 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28025 ac_header_preproc=yes
28028 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28029 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28030 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28031 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28032 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28033 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28034 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28035 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28036 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28037 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28038 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28039 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28042 ## ------------------------------------------ ##
28043 ## Report this to the AC_PACKAGE_NAME lists. ##
28044 ## ------------------------------------------ ##
28047 sed "s/^/$as_me: WARNING: /" >&2
28050 echo "$as_me:$LINENO: checking for $ac_header" >&5
28051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28052 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28053 echo $ECHO_N "(cached) $ECHO_C" >&6
28055 eval "$as_ac_Header=\$ac_header_preproc"
28057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28058 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28061 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28062 cat >>confdefs.h <<_ACEOF
28063 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28071 if test $ac_cv_header_krb5_h = yes ; then
28073 for ac_header in heim_err.h
28075 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28077 echo "$as_me:$LINENO: checking for $ac_header" >&5
28078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28079 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28080 echo $ECHO_N "(cached) $ECHO_C" >&6
28082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28083 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28085 # Is the header compilable?
28086 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28087 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28088 cat >conftest.$ac_ext <<_ACEOF
28091 cat confdefs.h >>conftest.$ac_ext
28092 cat >>conftest.$ac_ext <<_ACEOF
28093 /* end confdefs.h. */
28094 $ac_includes_default
28095 #include <$ac_header>
28097 rm -f conftest.$ac_objext
28098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28099 (eval $ac_compile) 2>conftest.er1
28101 grep -v '^ *+' conftest.er1 >conftest.err
28103 cat conftest.err >&5
28104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28105 (exit $ac_status); } &&
28106 { ac_try='test -z "$ac_c_werror_flag"
28107 || test ! -s conftest.err'
28108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28109 (eval $ac_try) 2>&5
28111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28112 (exit $ac_status); }; } &&
28113 { ac_try='test -s conftest.$ac_objext'
28114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28115 (eval $ac_try) 2>&5
28117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28118 (exit $ac_status); }; }; then
28119 ac_header_compiler=yes
28121 echo "$as_me: failed program was:" >&5
28122 sed 's/^/| /' conftest.$ac_ext >&5
28124 ac_header_compiler=no
28126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28127 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28128 echo "${ECHO_T}$ac_header_compiler" >&6
28130 # Is the header present?
28131 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28132 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28133 cat >conftest.$ac_ext <<_ACEOF
28136 cat confdefs.h >>conftest.$ac_ext
28137 cat >>conftest.$ac_ext <<_ACEOF
28138 /* end confdefs.h. */
28139 #include <$ac_header>
28141 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28142 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28144 grep -v '^ *+' conftest.er1 >conftest.err
28146 cat conftest.err >&5
28147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28148 (exit $ac_status); } >/dev/null; then
28149 if test -s conftest.err; then
28150 ac_cpp_err=$ac_c_preproc_warn_flag
28151 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28158 if test -z "$ac_cpp_err"; then
28159 ac_header_preproc=yes
28161 echo "$as_me: failed program was:" >&5
28162 sed 's/^/| /' conftest.$ac_ext >&5
28164 ac_header_preproc=no
28166 rm -f conftest.err conftest.$ac_ext
28167 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28168 echo "${ECHO_T}$ac_header_preproc" >&6
28170 # So? What about this header?
28171 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28173 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28174 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28175 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28176 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28177 ac_header_preproc=yes
28180 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28181 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28182 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28183 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28184 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28185 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28186 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28187 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28188 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28189 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28190 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28191 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28194 ## ------------------------------------------ ##
28195 ## Report this to the AC_PACKAGE_NAME lists. ##
28196 ## ------------------------------------------ ##
28199 sed "s/^/$as_me: WARNING: /" >&2
28202 echo "$as_me:$LINENO: checking for $ac_header" >&5
28203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28204 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28205 echo $ECHO_N "(cached) $ECHO_C" >&6
28207 eval "$as_ac_Header=\$ac_header_preproc"
28209 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28210 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28213 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28214 cat >>confdefs.h <<_ACEOF
28215 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28222 if test $ac_cv_header_heim_err_h = yes ; then
28228 if test $krb5_impl = mit; then
28229 echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
28230 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
28231 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
28232 echo $ECHO_N "(cached) $ECHO_C" >&6
28234 ac_check_lib_save_LIBS=$LIBS
28235 LIBS="-lk5crypto $LIBS"
28236 cat >conftest.$ac_ext <<_ACEOF
28239 cat confdefs.h >>conftest.$ac_ext
28240 cat >>conftest.$ac_ext <<_ACEOF
28241 /* end confdefs.h. */
28252 rm -f conftest.$ac_objext conftest$ac_exeext
28253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28254 (eval $ac_link) 2>conftest.er1
28256 grep -v '^ *+' conftest.er1 >conftest.err
28258 cat conftest.err >&5
28259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28260 (exit $ac_status); } &&
28261 { ac_try='test -z "$ac_c_werror_flag"
28262 || test ! -s conftest.err'
28263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28264 (eval $ac_try) 2>&5
28266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28267 (exit $ac_status); }; } &&
28268 { ac_try='test -s conftest$ac_exeext'
28269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28270 (eval $ac_try) 2>&5
28272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28273 (exit $ac_status); }; }; then
28274 ac_cv_lib_k5crypto_main=yes
28276 echo "$as_me: failed program was:" >&5
28277 sed 's/^/| /' conftest.$ac_ext >&5
28279 ac_cv_lib_k5crypto_main=no
28281 rm -f conftest.err conftest.$ac_objext \
28282 conftest$ac_exeext conftest.$ac_ext
28283 LIBS=$ac_check_lib_save_LIBS
28285 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
28286 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
28287 if test $ac_cv_lib_k5crypto_main = yes; then
28288 krb5crypto=k5crypto
28294 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
28295 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
28296 if test "${ac_cv_lib_krb5_main+set}" = set; then
28297 echo $ECHO_N "(cached) $ECHO_C" >&6
28299 ac_check_lib_save_LIBS=$LIBS
28300 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
28301 cat >conftest.$ac_ext <<_ACEOF
28304 cat confdefs.h >>conftest.$ac_ext
28305 cat >>conftest.$ac_ext <<_ACEOF
28306 /* end confdefs.h. */
28317 rm -f conftest.$ac_objext conftest$ac_exeext
28318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28319 (eval $ac_link) 2>conftest.er1
28321 grep -v '^ *+' conftest.er1 >conftest.err
28323 cat conftest.err >&5
28324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28325 (exit $ac_status); } &&
28326 { ac_try='test -z "$ac_c_werror_flag"
28327 || test ! -s conftest.err'
28328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28329 (eval $ac_try) 2>&5
28331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28332 (exit $ac_status); }; } &&
28333 { ac_try='test -s conftest$ac_exeext'
28334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28335 (eval $ac_try) 2>&5
28337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28338 (exit $ac_status); }; }; then
28339 ac_cv_lib_krb5_main=yes
28341 echo "$as_me: failed program was:" >&5
28342 sed 's/^/| /' conftest.$ac_ext >&5
28344 ac_cv_lib_krb5_main=no
28346 rm -f conftest.err conftest.$ac_objext \
28347 conftest$ac_exeext conftest.$ac_ext
28348 LIBS=$ac_check_lib_save_LIBS
28350 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
28351 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
28352 if test $ac_cv_lib_krb5_main = yes; then
28354 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
28360 elif test $krb5_impl = heimdal; then
28361 echo "$as_me:$LINENO: checking for main in -ldes" >&5
28362 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
28363 if test "${ac_cv_lib_des_main+set}" = set; then
28364 echo $ECHO_N "(cached) $ECHO_C" >&6
28366 ac_check_lib_save_LIBS=$LIBS
28368 cat >conftest.$ac_ext <<_ACEOF
28371 cat confdefs.h >>conftest.$ac_ext
28372 cat >>conftest.$ac_ext <<_ACEOF
28373 /* end confdefs.h. */
28384 rm -f conftest.$ac_objext conftest$ac_exeext
28385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28386 (eval $ac_link) 2>conftest.er1
28388 grep -v '^ *+' conftest.er1 >conftest.err
28390 cat conftest.err >&5
28391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28392 (exit $ac_status); } &&
28393 { ac_try='test -z "$ac_c_werror_flag"
28394 || test ! -s conftest.err'
28395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28396 (eval $ac_try) 2>&5
28398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28399 (exit $ac_status); }; } &&
28400 { ac_try='test -s conftest$ac_exeext'
28401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28402 (eval $ac_try) 2>&5
28404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28405 (exit $ac_status); }; }; then
28406 ac_cv_lib_des_main=yes
28408 echo "$as_me: failed program was:" >&5
28409 sed 's/^/| /' conftest.$ac_ext >&5
28411 ac_cv_lib_des_main=no
28413 rm -f conftest.err conftest.$ac_objext \
28414 conftest$ac_exeext conftest.$ac_ext
28415 LIBS=$ac_check_lib_save_LIBS
28417 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
28418 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
28419 if test $ac_cv_lib_des_main = yes; then
28426 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
28427 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
28428 if test "${ac_cv_lib_krb5_main+set}" = set; then
28429 echo $ECHO_N "(cached) $ECHO_C" >&6
28431 ac_check_lib_save_LIBS=$LIBS
28432 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
28433 cat >conftest.$ac_ext <<_ACEOF
28436 cat confdefs.h >>conftest.$ac_ext
28437 cat >>conftest.$ac_ext <<_ACEOF
28438 /* end confdefs.h. */
28449 rm -f conftest.$ac_objext conftest$ac_exeext
28450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28451 (eval $ac_link) 2>conftest.er1
28453 grep -v '^ *+' conftest.er1 >conftest.err
28455 cat conftest.err >&5
28456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28457 (exit $ac_status); } &&
28458 { ac_try='test -z "$ac_c_werror_flag"
28459 || test ! -s conftest.err'
28460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28461 (eval $ac_try) 2>&5
28463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28464 (exit $ac_status); }; } &&
28465 { ac_try='test -s conftest$ac_exeext'
28466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28467 (eval $ac_try) 2>&5
28469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28470 (exit $ac_status); }; }; then
28471 ac_cv_lib_krb5_main=yes
28473 echo "$as_me: failed program was:" >&5
28474 sed 's/^/| /' conftest.$ac_ext >&5
28476 ac_cv_lib_krb5_main=no
28478 rm -f conftest.err conftest.$ac_objext \
28479 conftest$ac_exeext conftest.$ac_ext
28480 LIBS=$ac_check_lib_save_LIBS
28482 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
28483 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
28484 if test $ac_cv_lib_krb5_main = yes; then
28486 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
28493 cat >>confdefs.h <<\_ACEOF
28494 #define HAVE_HEIMDAL_KERBEROS 1
28500 { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
28501 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
28504 if test $have_krb5 = yes ; then
28508 cat >>confdefs.h <<\_ACEOF
28509 #define HAVE_KRB5 1
28513 if test $ol_with_kerberos = k5only ; then
28514 ol_with_kerberos=found
28517 elif test $ol_with_kerberos != auto ; then
28518 { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
28519 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
28520 { (exit 1); exit 1; }; }
28526 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
28527 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
28531 for ac_header in kerberosIV/krb.h kerberosIV/des.h
28533 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28535 echo "$as_me:$LINENO: checking for $ac_header" >&5
28536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28538 echo $ECHO_N "(cached) $ECHO_C" >&6
28540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28541 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28543 # Is the header compilable?
28544 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28545 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28546 cat >conftest.$ac_ext <<_ACEOF
28549 cat confdefs.h >>conftest.$ac_ext
28550 cat >>conftest.$ac_ext <<_ACEOF
28551 /* end confdefs.h. */
28552 $ac_includes_default
28553 #include <$ac_header>
28555 rm -f conftest.$ac_objext
28556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28557 (eval $ac_compile) 2>conftest.er1
28559 grep -v '^ *+' conftest.er1 >conftest.err
28561 cat conftest.err >&5
28562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28563 (exit $ac_status); } &&
28564 { ac_try='test -z "$ac_c_werror_flag"
28565 || test ! -s conftest.err'
28566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28567 (eval $ac_try) 2>&5
28569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28570 (exit $ac_status); }; } &&
28571 { ac_try='test -s conftest.$ac_objext'
28572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28573 (eval $ac_try) 2>&5
28575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28576 (exit $ac_status); }; }; then
28577 ac_header_compiler=yes
28579 echo "$as_me: failed program was:" >&5
28580 sed 's/^/| /' conftest.$ac_ext >&5
28582 ac_header_compiler=no
28584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28585 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28586 echo "${ECHO_T}$ac_header_compiler" >&6
28588 # Is the header present?
28589 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28590 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28591 cat >conftest.$ac_ext <<_ACEOF
28594 cat confdefs.h >>conftest.$ac_ext
28595 cat >>conftest.$ac_ext <<_ACEOF
28596 /* end confdefs.h. */
28597 #include <$ac_header>
28599 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28600 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28602 grep -v '^ *+' conftest.er1 >conftest.err
28604 cat conftest.err >&5
28605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28606 (exit $ac_status); } >/dev/null; then
28607 if test -s conftest.err; then
28608 ac_cpp_err=$ac_c_preproc_warn_flag
28609 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28616 if test -z "$ac_cpp_err"; then
28617 ac_header_preproc=yes
28619 echo "$as_me: failed program was:" >&5
28620 sed 's/^/| /' conftest.$ac_ext >&5
28622 ac_header_preproc=no
28624 rm -f conftest.err conftest.$ac_ext
28625 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28626 echo "${ECHO_T}$ac_header_preproc" >&6
28628 # So? What about this header?
28629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28631 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28632 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28634 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28635 ac_header_preproc=yes
28638 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28639 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28640 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28641 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28642 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28643 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28644 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28645 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28647 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28648 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28649 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28652 ## ------------------------------------------ ##
28653 ## Report this to the AC_PACKAGE_NAME lists. ##
28654 ## ------------------------------------------ ##
28657 sed "s/^/$as_me: WARNING: /" >&2
28660 echo "$as_me:$LINENO: checking for $ac_header" >&5
28661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28663 echo $ECHO_N "(cached) $ECHO_C" >&6
28665 eval "$as_ac_Header=\$ac_header_preproc"
28667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28668 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28671 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28672 cat >>confdefs.h <<_ACEOF
28673 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28681 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
28682 if test $krb5_impl = mit; then
28683 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
28684 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
28685 if test "${ac_cv_lib_krb4_main+set}" = set; then
28686 echo $ECHO_N "(cached) $ECHO_C" >&6
28688 ac_check_lib_save_LIBS=$LIBS
28689 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
28690 cat >conftest.$ac_ext <<_ACEOF
28693 cat confdefs.h >>conftest.$ac_ext
28694 cat >>conftest.$ac_ext <<_ACEOF
28695 /* end confdefs.h. */
28706 rm -f conftest.$ac_objext conftest$ac_exeext
28707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28708 (eval $ac_link) 2>conftest.er1
28710 grep -v '^ *+' conftest.er1 >conftest.err
28712 cat conftest.err >&5
28713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28714 (exit $ac_status); } &&
28715 { ac_try='test -z "$ac_c_werror_flag"
28716 || test ! -s conftest.err'
28717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28718 (eval $ac_try) 2>&5
28720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28721 (exit $ac_status); }; } &&
28722 { ac_try='test -s conftest$ac_exeext'
28723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28724 (eval $ac_try) 2>&5
28726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28727 (exit $ac_status); }; }; then
28728 ac_cv_lib_krb4_main=yes
28730 echo "$as_me: failed program was:" >&5
28731 sed 's/^/| /' conftest.$ac_ext >&5
28733 ac_cv_lib_krb4_main=no
28735 rm -f conftest.err conftest.$ac_objext \
28736 conftest$ac_exeext conftest.$ac_ext
28737 LIBS=$ac_check_lib_save_LIBS
28739 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
28740 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
28741 if test $ac_cv_lib_krb4_main = yes; then
28743 KRB4_LIBS="-lkrb4 -ldes425"
28749 elif test $krb5_impl = heimdal; then
28750 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
28751 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
28752 if test "${ac_cv_lib_krb4_main+set}" = set; then
28753 echo $ECHO_N "(cached) $ECHO_C" >&6
28755 ac_check_lib_save_LIBS=$LIBS
28756 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
28757 cat >conftest.$ac_ext <<_ACEOF
28760 cat confdefs.h >>conftest.$ac_ext
28761 cat >>conftest.$ac_ext <<_ACEOF
28762 /* end confdefs.h. */
28773 rm -f conftest.$ac_objext conftest$ac_exeext
28774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28775 (eval $ac_link) 2>conftest.er1
28777 grep -v '^ *+' conftest.er1 >conftest.err
28779 cat conftest.err >&5
28780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28781 (exit $ac_status); } &&
28782 { ac_try='test -z "$ac_c_werror_flag"
28783 || test ! -s conftest.err'
28784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28785 (eval $ac_try) 2>&5
28787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28788 (exit $ac_status); }; } &&
28789 { ac_try='test -s conftest$ac_exeext'
28790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28791 (eval $ac_try) 2>&5
28793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28794 (exit $ac_status); }; }; then
28795 ac_cv_lib_krb4_main=yes
28797 echo "$as_me: failed program was:" >&5
28798 sed 's/^/| /' conftest.$ac_ext >&5
28800 ac_cv_lib_krb4_main=no
28802 rm -f conftest.err conftest.$ac_objext \
28803 conftest$ac_exeext conftest.$ac_ext
28804 LIBS=$ac_check_lib_save_LIBS
28806 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
28807 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
28808 if test $ac_cv_lib_krb4_main = yes; then
28818 { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
28819 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
28822 if test $have_k425 = yes ; then
28823 ol_with_kerberos=found
28827 cat >>confdefs.h <<\_ACEOF
28828 #define HAVE_KRB425 1
28832 cat >>confdefs.h <<\_ACEOF
28833 #define HAVE_KRB4 1
28837 echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
28838 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
28839 if test "${ol_cv_var_des_debug+set}" = set; then
28840 echo $ECHO_N "(cached) $ECHO_C" >&6
28844 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
28845 cat >conftest.$ac_ext <<_ACEOF
28848 cat confdefs.h >>conftest.$ac_ext
28849 cat >>conftest.$ac_ext <<_ACEOF
28850 /* end confdefs.h. */
28852 #include <kerberosIV/krb.h>
28853 #include <kerberosIV/des.h>
28854 extern int des_debug;
28866 rm -f conftest.$ac_objext conftest$ac_exeext
28867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28868 (eval $ac_link) 2>conftest.er1
28870 grep -v '^ *+' conftest.er1 >conftest.err
28872 cat conftest.err >&5
28873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28874 (exit $ac_status); } &&
28875 { ac_try='test -z "$ac_c_werror_flag"
28876 || test ! -s conftest.err'
28877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28878 (eval $ac_try) 2>&5
28880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28881 (exit $ac_status); }; } &&
28882 { ac_try='test -s conftest$ac_exeext'
28883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28884 (eval $ac_try) 2>&5
28886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28887 (exit $ac_status); }; }; then
28888 ol_cv_var_des_debug=yes
28890 echo "$as_me: failed program was:" >&5
28891 sed 's/^/| /' conftest.$ac_ext >&5
28893 ol_cv_var_des_debug=no
28895 rm -f conftest.err conftest.$ac_objext \
28896 conftest$ac_exeext conftest.$ac_ext
28900 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
28901 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
28903 if test $ol_cv_var_des_debug = yes ; then
28905 cat >>confdefs.h <<\_ACEOF
28906 #define HAVE_DES_DEBUG 1
28916 if test $ol_link_krb5 = yes ; then
28917 ol_with_kerberos=found
28920 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
28921 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
28926 for ac_header in krb.h des.h krb-archaeology.h
28928 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28930 echo "$as_me:$LINENO: checking for $ac_header" >&5
28931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28933 echo $ECHO_N "(cached) $ECHO_C" >&6
28935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28936 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28938 # Is the header compilable?
28939 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28940 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28941 cat >conftest.$ac_ext <<_ACEOF
28944 cat confdefs.h >>conftest.$ac_ext
28945 cat >>conftest.$ac_ext <<_ACEOF
28946 /* end confdefs.h. */
28947 $ac_includes_default
28948 #include <$ac_header>
28950 rm -f conftest.$ac_objext
28951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28952 (eval $ac_compile) 2>conftest.er1
28954 grep -v '^ *+' conftest.er1 >conftest.err
28956 cat conftest.err >&5
28957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28958 (exit $ac_status); } &&
28959 { ac_try='test -z "$ac_c_werror_flag"
28960 || test ! -s conftest.err'
28961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28962 (eval $ac_try) 2>&5
28964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28965 (exit $ac_status); }; } &&
28966 { ac_try='test -s conftest.$ac_objext'
28967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28968 (eval $ac_try) 2>&5
28970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28971 (exit $ac_status); }; }; then
28972 ac_header_compiler=yes
28974 echo "$as_me: failed program was:" >&5
28975 sed 's/^/| /' conftest.$ac_ext >&5
28977 ac_header_compiler=no
28979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28980 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28981 echo "${ECHO_T}$ac_header_compiler" >&6
28983 # Is the header present?
28984 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28985 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28986 cat >conftest.$ac_ext <<_ACEOF
28989 cat confdefs.h >>conftest.$ac_ext
28990 cat >>conftest.$ac_ext <<_ACEOF
28991 /* end confdefs.h. */
28992 #include <$ac_header>
28994 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28995 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28997 grep -v '^ *+' conftest.er1 >conftest.err
28999 cat conftest.err >&5
29000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29001 (exit $ac_status); } >/dev/null; then
29002 if test -s conftest.err; then
29003 ac_cpp_err=$ac_c_preproc_warn_flag
29004 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29011 if test -z "$ac_cpp_err"; then
29012 ac_header_preproc=yes
29014 echo "$as_me: failed program was:" >&5
29015 sed 's/^/| /' conftest.$ac_ext >&5
29017 ac_header_preproc=no
29019 rm -f conftest.err conftest.$ac_ext
29020 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29021 echo "${ECHO_T}$ac_header_preproc" >&6
29023 # So? What about this header?
29024 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29026 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29027 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29029 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29030 ac_header_preproc=yes
29033 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29034 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29035 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29036 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29037 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29038 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29039 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29040 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29041 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29042 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29043 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29044 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29047 ## ------------------------------------------ ##
29048 ## Report this to the AC_PACKAGE_NAME lists. ##
29049 ## ------------------------------------------ ##
29052 sed "s/^/$as_me: WARNING: /" >&2
29055 echo "$as_me:$LINENO: checking for $ac_header" >&5
29056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29058 echo $ECHO_N "(cached) $ECHO_C" >&6
29060 eval "$as_ac_Header=\$ac_header_preproc"
29062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29063 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29066 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29067 cat >>confdefs.h <<_ACEOF
29068 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29076 if test $ac_cv_header_krb_h = yes ; then
29077 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
29078 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
29079 if test "${ac_cv_lib_krb_main+set}" = set; then
29080 echo $ECHO_N "(cached) $ECHO_C" >&6
29082 ac_check_lib_save_LIBS=$LIBS
29083 LIBS="-lkrb -ldes $LIBS"
29084 cat >conftest.$ac_ext <<_ACEOF
29087 cat confdefs.h >>conftest.$ac_ext
29088 cat >>conftest.$ac_ext <<_ACEOF
29089 /* end confdefs.h. */
29100 rm -f conftest.$ac_objext conftest$ac_exeext
29101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29102 (eval $ac_link) 2>conftest.er1
29104 grep -v '^ *+' conftest.er1 >conftest.err
29106 cat conftest.err >&5
29107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29108 (exit $ac_status); } &&
29109 { ac_try='test -z "$ac_c_werror_flag"
29110 || test ! -s conftest.err'
29111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29112 (eval $ac_try) 2>&5
29114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29115 (exit $ac_status); }; } &&
29116 { ac_try='test -s conftest$ac_exeext'
29117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29118 (eval $ac_try) 2>&5
29120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29121 (exit $ac_status); }; }; then
29122 ac_cv_lib_krb_main=yes
29124 echo "$as_me: failed program was:" >&5
29125 sed 's/^/| /' conftest.$ac_ext >&5
29127 ac_cv_lib_krb_main=no
29129 rm -f conftest.err conftest.$ac_objext \
29130 conftest$ac_exeext conftest.$ac_ext
29131 LIBS=$ac_check_lib_save_LIBS
29133 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
29134 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
29135 if test $ac_cv_lib_krb_main = yes; then
29142 if test $have_k4 = yes ; then
29143 ol_with_kerberos=found
29147 cat >>confdefs.h <<\_ACEOF
29148 #define HAVE_KRB4 1
29152 KRB4_LIBS="-lkrb -ldes"
29154 if test $ac_cv_header_krb_archaeology_h = yes ; then
29156 cat >>confdefs.h <<\_ACEOF
29157 #define HAVE_KTH_KERBEROS 1
29165 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
29168 elif test $ol_enable_kbind = yes ; then
29169 { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
29170 echo "$as_me: error: Kerberos IV detection failed" >&2;}
29171 { (exit 1); exit 1; }; }
29174 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
29176 cat >>confdefs.h <<\_ACEOF
29177 #define HAVE_KERBEROS 1
29181 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
29182 { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
29183 echo "$as_me: error: Kerberos detection failed" >&2;}
29184 { (exit 1); exit 1; }; }
29189 if test $ol_with_tls != no ; then
29192 for ac_header in openssl/ssl.h ssl.h
29194 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29196 echo "$as_me:$LINENO: checking for $ac_header" >&5
29197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29199 echo $ECHO_N "(cached) $ECHO_C" >&6
29201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29202 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29204 # Is the header compilable?
29205 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29206 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29207 cat >conftest.$ac_ext <<_ACEOF
29210 cat confdefs.h >>conftest.$ac_ext
29211 cat >>conftest.$ac_ext <<_ACEOF
29212 /* end confdefs.h. */
29213 $ac_includes_default
29214 #include <$ac_header>
29216 rm -f conftest.$ac_objext
29217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29218 (eval $ac_compile) 2>conftest.er1
29220 grep -v '^ *+' conftest.er1 >conftest.err
29222 cat conftest.err >&5
29223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29224 (exit $ac_status); } &&
29225 { ac_try='test -z "$ac_c_werror_flag"
29226 || test ! -s conftest.err'
29227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29228 (eval $ac_try) 2>&5
29230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29231 (exit $ac_status); }; } &&
29232 { ac_try='test -s conftest.$ac_objext'
29233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29234 (eval $ac_try) 2>&5
29236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29237 (exit $ac_status); }; }; then
29238 ac_header_compiler=yes
29240 echo "$as_me: failed program was:" >&5
29241 sed 's/^/| /' conftest.$ac_ext >&5
29243 ac_header_compiler=no
29245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29246 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29247 echo "${ECHO_T}$ac_header_compiler" >&6
29249 # Is the header present?
29250 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29251 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29252 cat >conftest.$ac_ext <<_ACEOF
29255 cat confdefs.h >>conftest.$ac_ext
29256 cat >>conftest.$ac_ext <<_ACEOF
29257 /* end confdefs.h. */
29258 #include <$ac_header>
29260 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29261 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29263 grep -v '^ *+' conftest.er1 >conftest.err
29265 cat conftest.err >&5
29266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29267 (exit $ac_status); } >/dev/null; then
29268 if test -s conftest.err; then
29269 ac_cpp_err=$ac_c_preproc_warn_flag
29270 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29277 if test -z "$ac_cpp_err"; then
29278 ac_header_preproc=yes
29280 echo "$as_me: failed program was:" >&5
29281 sed 's/^/| /' conftest.$ac_ext >&5
29283 ac_header_preproc=no
29285 rm -f conftest.err conftest.$ac_ext
29286 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29287 echo "${ECHO_T}$ac_header_preproc" >&6
29289 # So? What about this header?
29290 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29292 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29293 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29294 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29295 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29296 ac_header_preproc=yes
29299 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29300 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29301 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29302 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29303 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29304 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29305 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29306 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29308 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29309 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29310 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29313 ## ------------------------------------------ ##
29314 ## Report this to the AC_PACKAGE_NAME lists. ##
29315 ## ------------------------------------------ ##
29318 sed "s/^/$as_me: WARNING: /" >&2
29321 echo "$as_me:$LINENO: checking for $ac_header" >&5
29322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29324 echo $ECHO_N "(cached) $ECHO_C" >&6
29326 eval "$as_ac_Header=\$ac_header_preproc"
29328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29329 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29332 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29333 cat >>confdefs.h <<_ACEOF
29334 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29342 if test $ac_cv_header_openssl_ssl_h = yes \
29343 -o $ac_cv_header_ssl_h = yes ; then
29344 echo "$as_me:$LINENO: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
29345 echo $ECHO_N "checking for SSLeay_add_ssl_algorithms in -lssl... $ECHO_C" >&6
29346 if test "${ac_cv_lib_ssl_SSLeay_add_ssl_algorithms+set}" = set; then
29347 echo $ECHO_N "(cached) $ECHO_C" >&6
29349 ac_check_lib_save_LIBS=$LIBS
29350 LIBS="-lssl -lcrypto $LIBS"
29351 cat >conftest.$ac_ext <<_ACEOF
29354 cat confdefs.h >>conftest.$ac_ext
29355 cat >>conftest.$ac_ext <<_ACEOF
29356 /* end confdefs.h. */
29358 /* Override any gcc2 internal prototype to avoid an error. */
29362 /* We use char because int might match the return type of a gcc2
29363 builtin and then its argument prototype would still apply. */
29364 char SSLeay_add_ssl_algorithms ();
29368 SSLeay_add_ssl_algorithms ();
29373 rm -f conftest.$ac_objext conftest$ac_exeext
29374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29375 (eval $ac_link) 2>conftest.er1
29377 grep -v '^ *+' conftest.er1 >conftest.err
29379 cat conftest.err >&5
29380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29381 (exit $ac_status); } &&
29382 { ac_try='test -z "$ac_c_werror_flag"
29383 || test ! -s conftest.err'
29384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29385 (eval $ac_try) 2>&5
29387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29388 (exit $ac_status); }; } &&
29389 { ac_try='test -s conftest$ac_exeext'
29390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29391 (eval $ac_try) 2>&5
29393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29394 (exit $ac_status); }; }; then
29395 ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=yes
29397 echo "$as_me: failed program was:" >&5
29398 sed 's/^/| /' conftest.$ac_ext >&5
29400 ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=no
29402 rm -f conftest.err conftest.$ac_objext \
29403 conftest$ac_exeext conftest.$ac_ext
29404 LIBS=$ac_check_lib_save_LIBS
29406 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&5
29407 echo "${ECHO_T}$ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&6
29408 if test $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms = yes; then
29416 if test $have_ssleay = no ; then
29417 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
29418 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
29419 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
29420 echo $ECHO_N "(cached) $ECHO_C" >&6
29422 ac_check_lib_save_LIBS=$LIBS
29423 LIBS="-lssl -lcrypto $LIBS"
29424 cat >conftest.$ac_ext <<_ACEOF
29427 cat confdefs.h >>conftest.$ac_ext
29428 cat >>conftest.$ac_ext <<_ACEOF
29429 /* end confdefs.h. */
29431 /* Override any gcc2 internal prototype to avoid an error. */
29435 /* We use char because int might match the return type of a gcc2
29436 builtin and then its argument prototype would still apply. */
29437 char SSL_library_init ();
29441 SSL_library_init ();
29446 rm -f conftest.$ac_objext conftest$ac_exeext
29447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29448 (eval $ac_link) 2>conftest.er1
29450 grep -v '^ *+' conftest.er1 >conftest.err
29452 cat conftest.err >&5
29453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29454 (exit $ac_status); } &&
29455 { ac_try='test -z "$ac_c_werror_flag"
29456 || test ! -s conftest.err'
29457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29458 (eval $ac_try) 2>&5
29460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29461 (exit $ac_status); }; } &&
29462 { ac_try='test -s conftest$ac_exeext'
29463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29464 (eval $ac_try) 2>&5
29466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29467 (exit $ac_status); }; }; then
29468 ac_cv_lib_ssl_SSL_library_init=yes
29470 echo "$as_me: failed program was:" >&5
29471 sed 's/^/| /' conftest.$ac_ext >&5
29473 ac_cv_lib_ssl_SSL_library_init=no
29475 rm -f conftest.err conftest.$ac_objext \
29476 conftest$ac_exeext conftest.$ac_ext
29477 LIBS=$ac_check_lib_save_LIBS
29479 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
29480 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
29481 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
29490 if test $have_ssleay = no ; then
29491 echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
29492 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
29493 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
29494 echo $ECHO_N "(cached) $ECHO_C" >&6
29496 ac_check_lib_save_LIBS=$LIBS
29497 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
29498 cat >conftest.$ac_ext <<_ACEOF
29501 cat confdefs.h >>conftest.$ac_ext
29502 cat >>conftest.$ac_ext <<_ACEOF
29503 /* end confdefs.h. */
29505 /* Override any gcc2 internal prototype to avoid an error. */
29509 /* We use char because int might match the return type of a gcc2
29510 builtin and then its argument prototype would still apply. */
29511 char ssl3_accept ();
29520 rm -f conftest.$ac_objext conftest$ac_exeext
29521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29522 (eval $ac_link) 2>conftest.er1
29524 grep -v '^ *+' conftest.er1 >conftest.err
29526 cat conftest.err >&5
29527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29528 (exit $ac_status); } &&
29529 { ac_try='test -z "$ac_c_werror_flag"
29530 || test ! -s conftest.err'
29531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29532 (eval $ac_try) 2>&5
29534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29535 (exit $ac_status); }; } &&
29536 { ac_try='test -s conftest$ac_exeext'
29537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29538 (eval $ac_try) 2>&5
29540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29541 (exit $ac_status); }; }; then
29542 ac_cv_lib_ssl_ssl3_accept=yes
29544 echo "$as_me: failed program was:" >&5
29545 sed 's/^/| /' conftest.$ac_ext >&5
29547 ac_cv_lib_ssl_ssl3_accept=no
29549 rm -f conftest.err conftest.$ac_objext \
29550 conftest$ac_exeext conftest.$ac_ext
29551 LIBS=$ac_check_lib_save_LIBS
29553 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
29554 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
29555 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
29564 if test $have_ssleay = yes ; then
29569 cat >>confdefs.h <<\_ACEOF
29570 #define HAVE_SSLEAY 1
29574 if test $need_rsaref = yes; then
29576 cat >>confdefs.h <<\_ACEOF
29577 #define HAVE_RSAREF 1
29581 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
29583 TLS_LIBS="-lssl -lcrypto"
29586 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
29587 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
29588 if test "${ol_cv_ssl_crl_compat+set}" = set; then
29589 echo $ECHO_N "(cached) $ECHO_C" >&6
29592 cat >conftest.$ac_ext <<_ACEOF
29595 cat confdefs.h >>conftest.$ac_ext
29596 cat >>conftest.$ac_ext <<_ACEOF
29597 /* end confdefs.h. */
29599 #ifdef HAVE_OPENSSL_SSL_H
29600 #include <openssl/ssl.h>
29605 /* Require 0.9.7d+ */
29606 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
29607 char *__ssl_compat = "0.9.7d";
29611 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29612 $EGREP "__ssl_compat" >/dev/null 2>&1; then
29613 ol_cv_ssl_crl_compat=yes
29615 ol_cv_ssl_crl_compat=no
29620 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
29621 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
29623 if test $ol_cv_ssl_crl_compat = no ; then
29627 cat >>confdefs.h <<\_ACEOF
29628 #define HAVE_OPENSSL_CRL 1
29635 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
29636 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
29640 if test $ol_link_tls = yes ; then
29642 cat >>confdefs.h <<\_ACEOF
29648 elif test $ol_with_tls = auto ; then
29649 { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
29650 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
29651 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
29652 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
29654 elif test $ol_with_tls != no ; then
29655 { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
29656 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
29657 { (exit 1); exit 1; }; }
29660 if test $ol_enable_lmpasswd != no; then
29661 if test $ol_link_tls != yes ; then
29662 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
29663 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
29664 { (exit 1); exit 1; }; }
29668 cat >>confdefs.h <<\_ACEOF
29669 #define SLAPD_LMHASH 1
29676 if test $ol_with_threads = auto -o $ol_with_threads = yes \
29677 -o $ol_with_threads = nt ; then
29680 echo "$as_me:$LINENO: checking for _beginthread" >&5
29681 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
29682 if test "${ac_cv_func__beginthread+set}" = set; then
29683 echo $ECHO_N "(cached) $ECHO_C" >&6
29685 cat >conftest.$ac_ext <<_ACEOF
29688 cat confdefs.h >>conftest.$ac_ext
29689 cat >>conftest.$ac_ext <<_ACEOF
29690 /* end confdefs.h. */
29691 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
29692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29693 #define _beginthread innocuous__beginthread
29695 /* System header to define __stub macros and hopefully few prototypes,
29696 which can conflict with char _beginthread (); below.
29697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29698 <limits.h> exists even on freestanding compilers. */
29701 # include <limits.h>
29703 # include <assert.h>
29706 #undef _beginthread
29708 /* Override any gcc2 internal prototype to avoid an error. */
29713 /* We use char because int might match the return type of a gcc2
29714 builtin and then its argument prototype would still apply. */
29715 char _beginthread ();
29716 /* The GNU C library defines this for functions which it implements
29717 to always fail with ENOSYS. Some functions are actually named
29718 something starting with __ and the normal name is an alias. */
29719 #if defined (__stub__beginthread) || defined (__stub____beginthread)
29722 char (*f) () = _beginthread;
29731 return f != _beginthread;
29736 rm -f conftest.$ac_objext conftest$ac_exeext
29737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29738 (eval $ac_link) 2>conftest.er1
29740 grep -v '^ *+' conftest.er1 >conftest.err
29742 cat conftest.err >&5
29743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29744 (exit $ac_status); } &&
29745 { ac_try='test -z "$ac_c_werror_flag"
29746 || test ! -s conftest.err'
29747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29748 (eval $ac_try) 2>&5
29750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29751 (exit $ac_status); }; } &&
29752 { ac_try='test -s conftest$ac_exeext'
29753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29754 (eval $ac_try) 2>&5
29756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29757 (exit $ac_status); }; }; then
29758 ac_cv_func__beginthread=yes
29760 echo "$as_me: failed program was:" >&5
29761 sed 's/^/| /' conftest.$ac_ext >&5
29763 ac_cv_func__beginthread=no
29765 rm -f conftest.err conftest.$ac_objext \
29766 conftest$ac_exeext conftest.$ac_ext
29768 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
29769 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
29772 if test $ac_cv_func__beginthread = yes ; then
29774 cat >>confdefs.h <<\_ACEOF
29775 #define HAVE_NT_THREADS 1
29778 ol_cv_nt_threads=yes
29782 if test "$ol_cv_nt_threads" = yes ; then
29784 ol_with_threads=found
29785 ol_with_yielding_select=yes
29788 cat >>confdefs.h <<\_ACEOF
29789 #define HAVE_NT_SERVICE_MANAGER 1
29793 cat >>confdefs.h <<\_ACEOF
29794 #define HAVE_NT_EVENT_LOG 1
29799 if test $ol_with_threads = nt ; then
29800 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
29801 echo "$as_me: error: could not locate NT Threads" >&2;}
29802 { (exit 1); exit 1; }; }
29806 if test $ol_with_threads = auto -o $ol_with_threads = yes \
29807 -o $ol_with_threads = posix ; then
29810 for ac_header in pthread.h
29812 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29814 echo "$as_me:$LINENO: checking for $ac_header" >&5
29815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29817 echo $ECHO_N "(cached) $ECHO_C" >&6
29819 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29820 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29822 # Is the header compilable?
29823 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29824 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29825 cat >conftest.$ac_ext <<_ACEOF
29828 cat confdefs.h >>conftest.$ac_ext
29829 cat >>conftest.$ac_ext <<_ACEOF
29830 /* end confdefs.h. */
29831 $ac_includes_default
29832 #include <$ac_header>
29834 rm -f conftest.$ac_objext
29835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29836 (eval $ac_compile) 2>conftest.er1
29838 grep -v '^ *+' conftest.er1 >conftest.err
29840 cat conftest.err >&5
29841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29842 (exit $ac_status); } &&
29843 { ac_try='test -z "$ac_c_werror_flag"
29844 || test ! -s conftest.err'
29845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29846 (eval $ac_try) 2>&5
29848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29849 (exit $ac_status); }; } &&
29850 { ac_try='test -s conftest.$ac_objext'
29851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29852 (eval $ac_try) 2>&5
29854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29855 (exit $ac_status); }; }; then
29856 ac_header_compiler=yes
29858 echo "$as_me: failed program was:" >&5
29859 sed 's/^/| /' conftest.$ac_ext >&5
29861 ac_header_compiler=no
29863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29864 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29865 echo "${ECHO_T}$ac_header_compiler" >&6
29867 # Is the header present?
29868 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29869 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29870 cat >conftest.$ac_ext <<_ACEOF
29873 cat confdefs.h >>conftest.$ac_ext
29874 cat >>conftest.$ac_ext <<_ACEOF
29875 /* end confdefs.h. */
29876 #include <$ac_header>
29878 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29879 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29881 grep -v '^ *+' conftest.er1 >conftest.err
29883 cat conftest.err >&5
29884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29885 (exit $ac_status); } >/dev/null; then
29886 if test -s conftest.err; then
29887 ac_cpp_err=$ac_c_preproc_warn_flag
29888 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29895 if test -z "$ac_cpp_err"; then
29896 ac_header_preproc=yes
29898 echo "$as_me: failed program was:" >&5
29899 sed 's/^/| /' conftest.$ac_ext >&5
29901 ac_header_preproc=no
29903 rm -f conftest.err conftest.$ac_ext
29904 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29905 echo "${ECHO_T}$ac_header_preproc" >&6
29907 # So? What about this header?
29908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29910 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29911 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29913 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29914 ac_header_preproc=yes
29917 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29918 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29919 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29920 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29921 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29922 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29923 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29924 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29926 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29927 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29928 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29931 ## ------------------------------------------ ##
29932 ## Report this to the AC_PACKAGE_NAME lists. ##
29933 ## ------------------------------------------ ##
29936 sed "s/^/$as_me: WARNING: /" >&2
29939 echo "$as_me:$LINENO: checking for $ac_header" >&5
29940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29942 echo $ECHO_N "(cached) $ECHO_C" >&6
29944 eval "$as_ac_Header=\$ac_header_preproc"
29946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29947 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29950 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29951 cat >>confdefs.h <<_ACEOF
29952 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29960 if test $ac_cv_header_pthread_h = yes ; then
29961 echo "$as_me:$LINENO: checking POSIX thread version" >&5
29962 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
29963 if test "${ol_cv_pthread_version+set}" = set; then
29964 echo $ECHO_N "(cached) $ECHO_C" >&6
29967 cat >conftest.$ac_ext <<_ACEOF
29970 cat confdefs.h >>conftest.$ac_ext
29971 cat >>conftest.$ac_ext <<_ACEOF
29972 /* end confdefs.h. */
29974 # include <pthread.h>
29980 int i = PTHREAD_CREATE_JOINABLE;
29986 rm -f conftest.$ac_objext
29987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29988 (eval $ac_compile) 2>conftest.er1
29990 grep -v '^ *+' conftest.er1 >conftest.err
29992 cat conftest.err >&5
29993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29994 (exit $ac_status); } &&
29995 { ac_try='test -z "$ac_c_werror_flag"
29996 || test ! -s conftest.err'
29997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29998 (eval $ac_try) 2>&5
30000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30001 (exit $ac_status); }; } &&
30002 { ac_try='test -s conftest.$ac_objext'
30003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30004 (eval $ac_try) 2>&5
30006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30007 (exit $ac_status); }; }; then
30009 cat >conftest.$ac_ext <<_ACEOF
30012 cat confdefs.h >>conftest.$ac_ext
30013 cat >>conftest.$ac_ext <<_ACEOF
30014 /* end confdefs.h. */
30015 #include <pthread.h>
30018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30019 $EGREP "pthread_detach" >/dev/null 2>&1; then
30020 ol_cv_pthread_version=10
30022 ol_cv_pthread_version=8
30027 echo "$as_me: failed program was:" >&5
30028 sed 's/^/| /' conftest.$ac_ext >&5
30031 cat >conftest.$ac_ext <<_ACEOF
30034 cat confdefs.h >>conftest.$ac_ext
30035 cat >>conftest.$ac_ext <<_ACEOF
30036 /* end confdefs.h. */
30038 # include <pthread.h>
30039 # ifdef PTHREAD_CREATE_UNDETACHED
30044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30045 $EGREP "draft7" >/dev/null 2>&1; then
30046 ol_cv_pthread_version=7
30049 cat >conftest.$ac_ext <<_ACEOF
30052 cat confdefs.h >>conftest.$ac_ext
30053 cat >>conftest.$ac_ext <<_ACEOF
30054 /* end confdefs.h. */
30055 #include <pthread.h>
30058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30059 $EGREP "pthread_attr_init" >/dev/null 2>&1; then
30060 ol_cv_pthread_version=6
30063 cat >conftest.$ac_ext <<_ACEOF
30066 cat confdefs.h >>conftest.$ac_ext
30067 cat >>conftest.$ac_ext <<_ACEOF
30068 /* end confdefs.h. */
30070 # include <pthread.h>
30071 #ifdef PTHREAD_MUTEX_INITIALIZER
30076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30077 $EGREP "draft5" >/dev/null 2>&1; then
30078 ol_cv_pthread_version=5
30080 ol_cv_pthread_version=4
30091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30094 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
30095 echo "${ECHO_T}$ol_cv_pthread_version" >&6
30098 if test $ol_cv_pthread_version != 0 ; then
30100 cat >>confdefs.h <<_ACEOF
30101 #define HAVE_PTHREADS $ol_cv_pthread_version
30105 { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
30106 echo "$as_me: error: unknown pthread version" >&2;}
30107 { (exit 1); exit 1; }; }
30110 # consider threads found
30111 ol_with_threads=found
30114 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
30115 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
30116 if test "${ol_cv_header_linux_threads+set}" = set; then
30117 echo $ECHO_N "(cached) $ECHO_C" >&6
30119 cat >conftest.$ac_ext <<_ACEOF
30122 cat confdefs.h >>conftest.$ac_ext
30123 cat >>conftest.$ac_ext <<_ACEOF
30124 /* end confdefs.h. */
30125 #include <pthread.h>
30127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30128 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
30129 ol_cv_header_linux_threads=yes
30131 ol_cv_header_linux_threads=no
30137 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
30138 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
30139 if test $ol_cv_header_linux_threads = yes; then
30141 cat >>confdefs.h <<\_ACEOF
30142 #define HAVE_LINUX_THREADS 1
30148 echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
30149 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
30150 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
30151 echo $ECHO_N "(cached) $ECHO_C" >&6
30153 cat >conftest.$ac_ext <<_ACEOF
30156 cat confdefs.h >>conftest.$ac_ext
30157 cat >>conftest.$ac_ext <<_ACEOF
30158 /* end confdefs.h. */
30159 #include <pthread.h>
30160 #ifdef _POSIX_THREAD_IS_GNU_PTH
30165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30166 $EGREP "__gnu_pth__" >/dev/null 2>&1; then
30167 ol_cv_header_gnu_pth_pthread_h=yes
30169 ol_cv_header_gnu_pth_pthread_h=no
30175 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
30176 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
30179 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
30181 for ac_header in sched.h
30183 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30185 echo "$as_me:$LINENO: checking for $ac_header" >&5
30186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30187 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30188 echo $ECHO_N "(cached) $ECHO_C" >&6
30190 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30191 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30193 # Is the header compilable?
30194 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30195 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30196 cat >conftest.$ac_ext <<_ACEOF
30199 cat confdefs.h >>conftest.$ac_ext
30200 cat >>conftest.$ac_ext <<_ACEOF
30201 /* end confdefs.h. */
30202 $ac_includes_default
30203 #include <$ac_header>
30205 rm -f conftest.$ac_objext
30206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30207 (eval $ac_compile) 2>conftest.er1
30209 grep -v '^ *+' conftest.er1 >conftest.err
30211 cat conftest.err >&5
30212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30213 (exit $ac_status); } &&
30214 { ac_try='test -z "$ac_c_werror_flag"
30215 || test ! -s conftest.err'
30216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30217 (eval $ac_try) 2>&5
30219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30220 (exit $ac_status); }; } &&
30221 { ac_try='test -s conftest.$ac_objext'
30222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30223 (eval $ac_try) 2>&5
30225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30226 (exit $ac_status); }; }; then
30227 ac_header_compiler=yes
30229 echo "$as_me: failed program was:" >&5
30230 sed 's/^/| /' conftest.$ac_ext >&5
30232 ac_header_compiler=no
30234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30235 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30236 echo "${ECHO_T}$ac_header_compiler" >&6
30238 # Is the header present?
30239 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30240 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30241 cat >conftest.$ac_ext <<_ACEOF
30244 cat confdefs.h >>conftest.$ac_ext
30245 cat >>conftest.$ac_ext <<_ACEOF
30246 /* end confdefs.h. */
30247 #include <$ac_header>
30249 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30250 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30252 grep -v '^ *+' conftest.er1 >conftest.err
30254 cat conftest.err >&5
30255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30256 (exit $ac_status); } >/dev/null; then
30257 if test -s conftest.err; then
30258 ac_cpp_err=$ac_c_preproc_warn_flag
30259 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30266 if test -z "$ac_cpp_err"; then
30267 ac_header_preproc=yes
30269 echo "$as_me: failed program was:" >&5
30270 sed 's/^/| /' conftest.$ac_ext >&5
30272 ac_header_preproc=no
30274 rm -f conftest.err conftest.$ac_ext
30275 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30276 echo "${ECHO_T}$ac_header_preproc" >&6
30278 # So? What about this header?
30279 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30281 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30282 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30283 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30284 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30285 ac_header_preproc=yes
30288 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30289 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30290 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30291 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30292 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30293 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30294 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30295 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30297 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30298 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30299 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30302 ## ------------------------------------------ ##
30303 ## Report this to the AC_PACKAGE_NAME lists. ##
30304 ## ------------------------------------------ ##
30307 sed "s/^/$as_me: WARNING: /" >&2
30310 echo "$as_me:$LINENO: checking for $ac_header" >&5
30311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30313 echo $ECHO_N "(cached) $ECHO_C" >&6
30315 eval "$as_ac_Header=\$ac_header_preproc"
30317 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30318 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30321 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30322 cat >>confdefs.h <<_ACEOF
30323 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30333 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
30334 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
30335 if test "${ol_cv_pthread_create+set}" = set; then
30336 echo $ECHO_N "(cached) $ECHO_C" >&6
30339 if test "$cross_compiling" = yes; then
30340 cat >conftest.$ac_ext <<_ACEOF
30343 cat confdefs.h >>conftest.$ac_ext
30344 cat >>conftest.$ac_ext <<_ACEOF
30345 /* end confdefs.h. */
30346 /* pthread test headers */
30347 #include <pthread.h>
30348 #if HAVE_PTHREADS < 7
30352 #define NULL (void*)0
30355 static void *task(p)
30358 return (void *) (p == NULL);
30365 /* pthread test function */
30366 #ifndef PTHREAD_CREATE_DETACHED
30367 #define PTHREAD_CREATE_DETACHED 1
30371 int detach = PTHREAD_CREATE_DETACHED;
30373 #if HAVE_PTHREADS > 4
30374 /* Final pthreads */
30375 pthread_attr_t attr;
30377 status = pthread_attr_init(&attr);
30378 if( status ) return status;
30380 #if HAVE_PTHREADS < 7
30381 status = pthread_attr_setdetachstate(&attr, &detach);
30382 if( status < 0 ) status = errno;
30384 status = pthread_attr_setdetachstate(&attr, detach);
30386 if( status ) return status;
30387 status = pthread_create( &t, &attr, task, NULL );
30388 #if HAVE_PTHREADS < 7
30389 if( status < 0 ) status = errno;
30391 if( status ) return status;
30393 /* Draft 4 pthreads */
30394 status = pthread_create( &t, pthread_attr_default, task, NULL );
30395 if( status ) return errno;
30397 /* give thread a chance to complete */
30398 /* it should remain joinable and hence detachable */
30401 status = pthread_detach( &t );
30402 if( status ) return errno;
30405 #ifdef HAVE_LINUX_THREADS
30406 pthread_kill_other_threads_np();
30415 rm -f conftest.$ac_objext conftest$ac_exeext
30416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30417 (eval $ac_link) 2>conftest.er1
30419 grep -v '^ *+' conftest.er1 >conftest.err
30421 cat conftest.err >&5
30422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30423 (exit $ac_status); } &&
30424 { ac_try='test -z "$ac_c_werror_flag"
30425 || test ! -s conftest.err'
30426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30427 (eval $ac_try) 2>&5
30429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30430 (exit $ac_status); }; } &&
30431 { ac_try='test -s conftest$ac_exeext'
30432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30433 (eval $ac_try) 2>&5
30435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30436 (exit $ac_status); }; }; then
30437 ol_cv_pthread_create=yes
30439 echo "$as_me: failed program was:" >&5
30440 sed 's/^/| /' conftest.$ac_ext >&5
30442 ol_cv_pthread_create=no
30444 rm -f conftest.err conftest.$ac_objext \
30445 conftest$ac_exeext conftest.$ac_ext
30447 cat >conftest.$ac_ext <<_ACEOF
30450 cat confdefs.h >>conftest.$ac_ext
30451 cat >>conftest.$ac_ext <<_ACEOF
30452 /* end confdefs.h. */
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. */
30574 /* pthread test headers */
30575 #include <pthread.h>
30576 #if HAVE_PTHREADS < 7
30580 #define NULL (void*)0
30583 static void *task(p)
30586 return (void *) (p == NULL);
30593 /* pthread test function */
30594 #ifndef PTHREAD_CREATE_DETACHED
30595 #define PTHREAD_CREATE_DETACHED 1
30599 int detach = PTHREAD_CREATE_DETACHED;
30601 #if HAVE_PTHREADS > 4
30602 /* Final pthreads */
30603 pthread_attr_t attr;
30605 status = pthread_attr_init(&attr);
30606 if( status ) return status;
30608 #if HAVE_PTHREADS < 7
30609 status = pthread_attr_setdetachstate(&attr, &detach);
30610 if( status < 0 ) status = errno;
30612 status = pthread_attr_setdetachstate(&attr, detach);
30614 if( status ) return status;
30615 status = pthread_create( &t, &attr, task, NULL );
30616 #if HAVE_PTHREADS < 7
30617 if( status < 0 ) status = errno;
30619 if( status ) return status;
30621 /* Draft 4 pthreads */
30622 status = pthread_create( &t, pthread_attr_default, task, NULL );
30623 if( status ) return errno;
30625 /* give thread a chance to complete */
30626 /* it should remain joinable and hence detachable */
30629 status = pthread_detach( &t );
30630 if( status ) return errno;
30633 #ifdef HAVE_LINUX_THREADS
30634 pthread_kill_other_threads_np();
30643 rm -f conftest.$ac_objext conftest$ac_exeext
30644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30645 (eval $ac_link) 2>conftest.er1
30647 grep -v '^ *+' conftest.er1 >conftest.err
30649 cat conftest.err >&5
30650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30651 (exit $ac_status); } &&
30652 { ac_try='test -z "$ac_c_werror_flag"
30653 || test ! -s conftest.err'
30654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30655 (eval $ac_try) 2>&5
30657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30658 (exit $ac_status); }; } &&
30659 { ac_try='test -s conftest$ac_exeext'
30660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30661 (eval $ac_try) 2>&5
30663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30664 (exit $ac_status); }; }; then
30665 ol_cv_pthread_kthread=yes
30667 echo "$as_me: failed program was:" >&5
30668 sed 's/^/| /' conftest.$ac_ext >&5
30670 ol_cv_pthread_kthread=no
30672 rm -f conftest.err conftest.$ac_objext \
30673 conftest$ac_exeext conftest.$ac_ext
30675 cat >conftest.$ac_ext <<_ACEOF
30678 cat confdefs.h >>conftest.$ac_ext
30679 cat >>conftest.$ac_ext <<_ACEOF
30680 /* end confdefs.h. */
30681 /* pthread test headers */
30682 #include <pthread.h>
30683 #if HAVE_PTHREADS < 7
30687 #define NULL (void*)0
30690 static void *task(p)
30693 return (void *) (p == NULL);
30697 int main(argc, argv)
30702 /* pthread test function */
30703 #ifndef PTHREAD_CREATE_DETACHED
30704 #define PTHREAD_CREATE_DETACHED 1
30708 int detach = PTHREAD_CREATE_DETACHED;
30710 #if HAVE_PTHREADS > 4
30711 /* Final pthreads */
30712 pthread_attr_t attr;
30714 status = pthread_attr_init(&attr);
30715 if( status ) return status;
30717 #if HAVE_PTHREADS < 7
30718 status = pthread_attr_setdetachstate(&attr, &detach);
30719 if( status < 0 ) status = errno;
30721 status = pthread_attr_setdetachstate(&attr, detach);
30723 if( status ) return status;
30724 status = pthread_create( &t, &attr, task, NULL );
30725 #if HAVE_PTHREADS < 7
30726 if( status < 0 ) status = errno;
30728 if( status ) return status;
30730 /* Draft 4 pthreads */
30731 status = pthread_create( &t, pthread_attr_default, task, NULL );
30732 if( status ) return errno;
30734 /* give thread a chance to complete */
30735 /* it should remain joinable and hence detachable */
30738 status = pthread_detach( &t );
30739 if( status ) return errno;
30742 #ifdef HAVE_LINUX_THREADS
30743 pthread_kill_other_threads_np();
30751 rm -f conftest$ac_exeext
30752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30753 (eval $ac_link) 2>&5
30755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30756 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30758 (eval $ac_try) 2>&5
30760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30761 (exit $ac_status); }; }; then
30762 ol_cv_pthread_kthread=yes
30764 echo "$as_me: program exited with status $ac_status" >&5
30765 echo "$as_me: failed program was:" >&5
30766 sed 's/^/| /' conftest.$ac_ext >&5
30768 ( exit $ac_status )
30769 ol_cv_pthread_kthread=no
30771 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30778 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
30779 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
30781 if test $ol_cv_pthread_kthread = yes ; then
30782 ol_link_pthreads="-kthread"
30783 ol_link_threads=posix
30787 # Pthread try link: -pthread (ol_cv_pthread_pthread)
30788 if test "$ol_link_threads" = no ; then
30790 echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
30791 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
30792 if test "${ol_cv_pthread_pthread+set}" = set; then
30793 echo $ECHO_N "(cached) $ECHO_C" >&6
30798 LIBS="-pthread $LIBS"
30800 if test "$cross_compiling" = yes; then
30801 cat >conftest.$ac_ext <<_ACEOF
30804 cat confdefs.h >>conftest.$ac_ext
30805 cat >>conftest.$ac_ext <<_ACEOF
30806 /* end confdefs.h. */
30807 /* pthread test headers */
30808 #include <pthread.h>
30809 #if HAVE_PTHREADS < 7
30813 #define NULL (void*)0
30816 static void *task(p)
30819 return (void *) (p == NULL);
30826 /* pthread test function */
30827 #ifndef PTHREAD_CREATE_DETACHED
30828 #define PTHREAD_CREATE_DETACHED 1
30832 int detach = PTHREAD_CREATE_DETACHED;
30834 #if HAVE_PTHREADS > 4
30835 /* Final pthreads */
30836 pthread_attr_t attr;
30838 status = pthread_attr_init(&attr);
30839 if( status ) return status;
30841 #if HAVE_PTHREADS < 7
30842 status = pthread_attr_setdetachstate(&attr, &detach);
30843 if( status < 0 ) status = errno;
30845 status = pthread_attr_setdetachstate(&attr, detach);
30847 if( status ) return status;
30848 status = pthread_create( &t, &attr, task, NULL );
30849 #if HAVE_PTHREADS < 7
30850 if( status < 0 ) status = errno;
30852 if( status ) return status;
30854 /* Draft 4 pthreads */
30855 status = pthread_create( &t, pthread_attr_default, task, NULL );
30856 if( status ) return errno;
30858 /* give thread a chance to complete */
30859 /* it should remain joinable and hence detachable */
30862 status = pthread_detach( &t );
30863 if( status ) return errno;
30866 #ifdef HAVE_LINUX_THREADS
30867 pthread_kill_other_threads_np();
30876 rm -f conftest.$ac_objext conftest$ac_exeext
30877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30878 (eval $ac_link) 2>conftest.er1
30880 grep -v '^ *+' conftest.er1 >conftest.err
30882 cat conftest.err >&5
30883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30884 (exit $ac_status); } &&
30885 { ac_try='test -z "$ac_c_werror_flag"
30886 || test ! -s conftest.err'
30887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30888 (eval $ac_try) 2>&5
30890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30891 (exit $ac_status); }; } &&
30892 { ac_try='test -s conftest$ac_exeext'
30893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30894 (eval $ac_try) 2>&5
30896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30897 (exit $ac_status); }; }; then
30898 ol_cv_pthread_pthread=yes
30900 echo "$as_me: failed program was:" >&5
30901 sed 's/^/| /' conftest.$ac_ext >&5
30903 ol_cv_pthread_pthread=no
30905 rm -f conftest.err conftest.$ac_objext \
30906 conftest$ac_exeext conftest.$ac_ext
30908 cat >conftest.$ac_ext <<_ACEOF
30911 cat confdefs.h >>conftest.$ac_ext
30912 cat >>conftest.$ac_ext <<_ACEOF
30913 /* end confdefs.h. */
30914 /* pthread test headers */
30915 #include <pthread.h>
30916 #if HAVE_PTHREADS < 7
30920 #define NULL (void*)0
30923 static void *task(p)
30926 return (void *) (p == NULL);
30930 int main(argc, argv)
30935 /* pthread test function */
30936 #ifndef PTHREAD_CREATE_DETACHED
30937 #define PTHREAD_CREATE_DETACHED 1
30941 int detach = PTHREAD_CREATE_DETACHED;
30943 #if HAVE_PTHREADS > 4
30944 /* Final pthreads */
30945 pthread_attr_t attr;
30947 status = pthread_attr_init(&attr);
30948 if( status ) return status;
30950 #if HAVE_PTHREADS < 7
30951 status = pthread_attr_setdetachstate(&attr, &detach);
30952 if( status < 0 ) status = errno;
30954 status = pthread_attr_setdetachstate(&attr, detach);
30956 if( status ) return status;
30957 status = pthread_create( &t, &attr, task, NULL );
30958 #if HAVE_PTHREADS < 7
30959 if( status < 0 ) status = errno;
30961 if( status ) return status;
30963 /* Draft 4 pthreads */
30964 status = pthread_create( &t, pthread_attr_default, task, NULL );
30965 if( status ) return errno;
30967 /* give thread a chance to complete */
30968 /* it should remain joinable and hence detachable */
30971 status = pthread_detach( &t );
30972 if( status ) return errno;
30975 #ifdef HAVE_LINUX_THREADS
30976 pthread_kill_other_threads_np();
30984 rm -f conftest$ac_exeext
30985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30986 (eval $ac_link) 2>&5
30988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30989 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30991 (eval $ac_try) 2>&5
30993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30994 (exit $ac_status); }; }; then
30995 ol_cv_pthread_pthread=yes
30997 echo "$as_me: program exited with status $ac_status" >&5
30998 echo "$as_me: failed program was:" >&5
30999 sed 's/^/| /' conftest.$ac_ext >&5
31001 ( exit $ac_status )
31002 ol_cv_pthread_pthread=no
31004 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31011 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
31012 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
31014 if test $ol_cv_pthread_pthread = yes ; then
31015 ol_link_pthreads="-pthread"
31016 ol_link_threads=posix
31020 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
31021 if test "$ol_link_threads" = no ; then
31023 echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
31024 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
31025 if test "${ol_cv_pthread_pthreads+set}" = set; then
31026 echo $ECHO_N "(cached) $ECHO_C" >&6
31031 LIBS="-pthreads $LIBS"
31033 if test "$cross_compiling" = yes; then
31034 cat >conftest.$ac_ext <<_ACEOF
31037 cat confdefs.h >>conftest.$ac_ext
31038 cat >>conftest.$ac_ext <<_ACEOF
31039 /* end confdefs.h. */
31040 /* pthread test headers */
31041 #include <pthread.h>
31042 #if HAVE_PTHREADS < 7
31046 #define NULL (void*)0
31049 static void *task(p)
31052 return (void *) (p == NULL);
31059 /* pthread test function */
31060 #ifndef PTHREAD_CREATE_DETACHED
31061 #define PTHREAD_CREATE_DETACHED 1
31065 int detach = PTHREAD_CREATE_DETACHED;
31067 #if HAVE_PTHREADS > 4
31068 /* Final pthreads */
31069 pthread_attr_t attr;
31071 status = pthread_attr_init(&attr);
31072 if( status ) return status;
31074 #if HAVE_PTHREADS < 7
31075 status = pthread_attr_setdetachstate(&attr, &detach);
31076 if( status < 0 ) status = errno;
31078 status = pthread_attr_setdetachstate(&attr, detach);
31080 if( status ) return status;
31081 status = pthread_create( &t, &attr, task, NULL );
31082 #if HAVE_PTHREADS < 7
31083 if( status < 0 ) status = errno;
31085 if( status ) return status;
31087 /* Draft 4 pthreads */
31088 status = pthread_create( &t, pthread_attr_default, task, NULL );
31089 if( status ) return errno;
31091 /* give thread a chance to complete */
31092 /* it should remain joinable and hence detachable */
31095 status = pthread_detach( &t );
31096 if( status ) return errno;
31099 #ifdef HAVE_LINUX_THREADS
31100 pthread_kill_other_threads_np();
31109 rm -f conftest.$ac_objext conftest$ac_exeext
31110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31111 (eval $ac_link) 2>conftest.er1
31113 grep -v '^ *+' conftest.er1 >conftest.err
31115 cat conftest.err >&5
31116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31117 (exit $ac_status); } &&
31118 { ac_try='test -z "$ac_c_werror_flag"
31119 || test ! -s conftest.err'
31120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31121 (eval $ac_try) 2>&5
31123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31124 (exit $ac_status); }; } &&
31125 { ac_try='test -s conftest$ac_exeext'
31126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31127 (eval $ac_try) 2>&5
31129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31130 (exit $ac_status); }; }; then
31131 ol_cv_pthread_pthreads=yes
31133 echo "$as_me: failed program was:" >&5
31134 sed 's/^/| /' conftest.$ac_ext >&5
31136 ol_cv_pthread_pthreads=no
31138 rm -f conftest.err conftest.$ac_objext \
31139 conftest$ac_exeext conftest.$ac_ext
31141 cat >conftest.$ac_ext <<_ACEOF
31144 cat confdefs.h >>conftest.$ac_ext
31145 cat >>conftest.$ac_ext <<_ACEOF
31146 /* end confdefs.h. */
31147 /* pthread test headers */
31148 #include <pthread.h>
31149 #if HAVE_PTHREADS < 7
31153 #define NULL (void*)0
31156 static void *task(p)
31159 return (void *) (p == NULL);
31163 int main(argc, argv)
31168 /* pthread test function */
31169 #ifndef PTHREAD_CREATE_DETACHED
31170 #define PTHREAD_CREATE_DETACHED 1
31174 int detach = PTHREAD_CREATE_DETACHED;
31176 #if HAVE_PTHREADS > 4
31177 /* Final pthreads */
31178 pthread_attr_t attr;
31180 status = pthread_attr_init(&attr);
31181 if( status ) return status;
31183 #if HAVE_PTHREADS < 7
31184 status = pthread_attr_setdetachstate(&attr, &detach);
31185 if( status < 0 ) status = errno;
31187 status = pthread_attr_setdetachstate(&attr, detach);
31189 if( status ) return status;
31190 status = pthread_create( &t, &attr, task, NULL );
31191 #if HAVE_PTHREADS < 7
31192 if( status < 0 ) status = errno;
31194 if( status ) return status;
31196 /* Draft 4 pthreads */
31197 status = pthread_create( &t, pthread_attr_default, task, NULL );
31198 if( status ) return errno;
31200 /* give thread a chance to complete */
31201 /* it should remain joinable and hence detachable */
31204 status = pthread_detach( &t );
31205 if( status ) return errno;
31208 #ifdef HAVE_LINUX_THREADS
31209 pthread_kill_other_threads_np();
31217 rm -f conftest$ac_exeext
31218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31219 (eval $ac_link) 2>&5
31221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31222 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31224 (eval $ac_try) 2>&5
31226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31227 (exit $ac_status); }; }; then
31228 ol_cv_pthread_pthreads=yes
31230 echo "$as_me: program exited with status $ac_status" >&5
31231 echo "$as_me: failed program was:" >&5
31232 sed 's/^/| /' conftest.$ac_ext >&5
31234 ( exit $ac_status )
31235 ol_cv_pthread_pthreads=no
31237 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31244 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
31245 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
31247 if test $ol_cv_pthread_pthreads = yes ; then
31248 ol_link_pthreads="-pthreads"
31249 ol_link_threads=posix
31253 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
31254 if test "$ol_link_threads" = no ; then
31256 echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
31257 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
31258 if test "${ol_cv_pthread_mthreads+set}" = set; then
31259 echo $ECHO_N "(cached) $ECHO_C" >&6
31264 LIBS="-mthreads $LIBS"
31266 if test "$cross_compiling" = yes; then
31267 cat >conftest.$ac_ext <<_ACEOF
31270 cat confdefs.h >>conftest.$ac_ext
31271 cat >>conftest.$ac_ext <<_ACEOF
31272 /* end confdefs.h. */
31273 /* pthread test headers */
31274 #include <pthread.h>
31275 #if HAVE_PTHREADS < 7
31279 #define NULL (void*)0
31282 static void *task(p)
31285 return (void *) (p == NULL);
31292 /* pthread test function */
31293 #ifndef PTHREAD_CREATE_DETACHED
31294 #define PTHREAD_CREATE_DETACHED 1
31298 int detach = PTHREAD_CREATE_DETACHED;
31300 #if HAVE_PTHREADS > 4
31301 /* Final pthreads */
31302 pthread_attr_t attr;
31304 status = pthread_attr_init(&attr);
31305 if( status ) return status;
31307 #if HAVE_PTHREADS < 7
31308 status = pthread_attr_setdetachstate(&attr, &detach);
31309 if( status < 0 ) status = errno;
31311 status = pthread_attr_setdetachstate(&attr, detach);
31313 if( status ) return status;
31314 status = pthread_create( &t, &attr, task, NULL );
31315 #if HAVE_PTHREADS < 7
31316 if( status < 0 ) status = errno;
31318 if( status ) return status;
31320 /* Draft 4 pthreads */
31321 status = pthread_create( &t, pthread_attr_default, task, NULL );
31322 if( status ) return errno;
31324 /* give thread a chance to complete */
31325 /* it should remain joinable and hence detachable */
31328 status = pthread_detach( &t );
31329 if( status ) return errno;
31332 #ifdef HAVE_LINUX_THREADS
31333 pthread_kill_other_threads_np();
31342 rm -f conftest.$ac_objext conftest$ac_exeext
31343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31344 (eval $ac_link) 2>conftest.er1
31346 grep -v '^ *+' conftest.er1 >conftest.err
31348 cat conftest.err >&5
31349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31350 (exit $ac_status); } &&
31351 { ac_try='test -z "$ac_c_werror_flag"
31352 || test ! -s conftest.err'
31353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31354 (eval $ac_try) 2>&5
31356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31357 (exit $ac_status); }; } &&
31358 { ac_try='test -s conftest$ac_exeext'
31359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31360 (eval $ac_try) 2>&5
31362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31363 (exit $ac_status); }; }; then
31364 ol_cv_pthread_mthreads=yes
31366 echo "$as_me: failed program was:" >&5
31367 sed 's/^/| /' conftest.$ac_ext >&5
31369 ol_cv_pthread_mthreads=no
31371 rm -f conftest.err conftest.$ac_objext \
31372 conftest$ac_exeext conftest.$ac_ext
31374 cat >conftest.$ac_ext <<_ACEOF
31377 cat confdefs.h >>conftest.$ac_ext
31378 cat >>conftest.$ac_ext <<_ACEOF
31379 /* end confdefs.h. */
31380 /* pthread test headers */
31381 #include <pthread.h>
31382 #if HAVE_PTHREADS < 7
31386 #define NULL (void*)0
31389 static void *task(p)
31392 return (void *) (p == NULL);
31396 int main(argc, argv)
31401 /* pthread test function */
31402 #ifndef PTHREAD_CREATE_DETACHED
31403 #define PTHREAD_CREATE_DETACHED 1
31407 int detach = PTHREAD_CREATE_DETACHED;
31409 #if HAVE_PTHREADS > 4
31410 /* Final pthreads */
31411 pthread_attr_t attr;
31413 status = pthread_attr_init(&attr);
31414 if( status ) return status;
31416 #if HAVE_PTHREADS < 7
31417 status = pthread_attr_setdetachstate(&attr, &detach);
31418 if( status < 0 ) status = errno;
31420 status = pthread_attr_setdetachstate(&attr, detach);
31422 if( status ) return status;
31423 status = pthread_create( &t, &attr, task, NULL );
31424 #if HAVE_PTHREADS < 7
31425 if( status < 0 ) status = errno;
31427 if( status ) return status;
31429 /* Draft 4 pthreads */
31430 status = pthread_create( &t, pthread_attr_default, task, NULL );
31431 if( status ) return errno;
31433 /* give thread a chance to complete */
31434 /* it should remain joinable and hence detachable */
31437 status = pthread_detach( &t );
31438 if( status ) return errno;
31441 #ifdef HAVE_LINUX_THREADS
31442 pthread_kill_other_threads_np();
31450 rm -f conftest$ac_exeext
31451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31452 (eval $ac_link) 2>&5
31454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31455 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31457 (eval $ac_try) 2>&5
31459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31460 (exit $ac_status); }; }; then
31461 ol_cv_pthread_mthreads=yes
31463 echo "$as_me: program exited with status $ac_status" >&5
31464 echo "$as_me: failed program was:" >&5
31465 sed 's/^/| /' conftest.$ac_ext >&5
31467 ( exit $ac_status )
31468 ol_cv_pthread_mthreads=no
31470 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31477 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
31478 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
31480 if test $ol_cv_pthread_mthreads = yes ; then
31481 ol_link_pthreads="-mthreads"
31482 ol_link_threads=posix
31486 # Pthread try link: -thread (ol_cv_pthread_thread)
31487 if test "$ol_link_threads" = no ; then
31489 echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
31490 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
31491 if test "${ol_cv_pthread_thread+set}" = set; then
31492 echo $ECHO_N "(cached) $ECHO_C" >&6
31497 LIBS="-thread $LIBS"
31499 if test "$cross_compiling" = yes; then
31500 cat >conftest.$ac_ext <<_ACEOF
31503 cat confdefs.h >>conftest.$ac_ext
31504 cat >>conftest.$ac_ext <<_ACEOF
31505 /* end confdefs.h. */
31506 /* pthread test headers */
31507 #include <pthread.h>
31508 #if HAVE_PTHREADS < 7
31512 #define NULL (void*)0
31515 static void *task(p)
31518 return (void *) (p == NULL);
31525 /* pthread test function */
31526 #ifndef PTHREAD_CREATE_DETACHED
31527 #define PTHREAD_CREATE_DETACHED 1
31531 int detach = PTHREAD_CREATE_DETACHED;
31533 #if HAVE_PTHREADS > 4
31534 /* Final pthreads */
31535 pthread_attr_t attr;
31537 status = pthread_attr_init(&attr);
31538 if( status ) return status;
31540 #if HAVE_PTHREADS < 7
31541 status = pthread_attr_setdetachstate(&attr, &detach);
31542 if( status < 0 ) status = errno;
31544 status = pthread_attr_setdetachstate(&attr, detach);
31546 if( status ) return status;
31547 status = pthread_create( &t, &attr, task, NULL );
31548 #if HAVE_PTHREADS < 7
31549 if( status < 0 ) status = errno;
31551 if( status ) return status;
31553 /* Draft 4 pthreads */
31554 status = pthread_create( &t, pthread_attr_default, task, NULL );
31555 if( status ) return errno;
31557 /* give thread a chance to complete */
31558 /* it should remain joinable and hence detachable */
31561 status = pthread_detach( &t );
31562 if( status ) return errno;
31565 #ifdef HAVE_LINUX_THREADS
31566 pthread_kill_other_threads_np();
31575 rm -f conftest.$ac_objext conftest$ac_exeext
31576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31577 (eval $ac_link) 2>conftest.er1
31579 grep -v '^ *+' conftest.er1 >conftest.err
31581 cat conftest.err >&5
31582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31583 (exit $ac_status); } &&
31584 { ac_try='test -z "$ac_c_werror_flag"
31585 || test ! -s conftest.err'
31586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31587 (eval $ac_try) 2>&5
31589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31590 (exit $ac_status); }; } &&
31591 { ac_try='test -s conftest$ac_exeext'
31592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31593 (eval $ac_try) 2>&5
31595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31596 (exit $ac_status); }; }; then
31597 ol_cv_pthread_thread=yes
31599 echo "$as_me: failed program was:" >&5
31600 sed 's/^/| /' conftest.$ac_ext >&5
31602 ol_cv_pthread_thread=no
31604 rm -f conftest.err conftest.$ac_objext \
31605 conftest$ac_exeext conftest.$ac_ext
31607 cat >conftest.$ac_ext <<_ACEOF
31610 cat confdefs.h >>conftest.$ac_ext
31611 cat >>conftest.$ac_ext <<_ACEOF
31612 /* end confdefs.h. */
31613 /* pthread test headers */
31614 #include <pthread.h>
31615 #if HAVE_PTHREADS < 7
31619 #define NULL (void*)0
31622 static void *task(p)
31625 return (void *) (p == NULL);
31629 int main(argc, argv)
31634 /* pthread test function */
31635 #ifndef PTHREAD_CREATE_DETACHED
31636 #define PTHREAD_CREATE_DETACHED 1
31640 int detach = PTHREAD_CREATE_DETACHED;
31642 #if HAVE_PTHREADS > 4
31643 /* Final pthreads */
31644 pthread_attr_t attr;
31646 status = pthread_attr_init(&attr);
31647 if( status ) return status;
31649 #if HAVE_PTHREADS < 7
31650 status = pthread_attr_setdetachstate(&attr, &detach);
31651 if( status < 0 ) status = errno;
31653 status = pthread_attr_setdetachstate(&attr, detach);
31655 if( status ) return status;
31656 status = pthread_create( &t, &attr, task, NULL );
31657 #if HAVE_PTHREADS < 7
31658 if( status < 0 ) status = errno;
31660 if( status ) return status;
31662 /* Draft 4 pthreads */
31663 status = pthread_create( &t, pthread_attr_default, task, NULL );
31664 if( status ) return errno;
31666 /* give thread a chance to complete */
31667 /* it should remain joinable and hence detachable */
31670 status = pthread_detach( &t );
31671 if( status ) return errno;
31674 #ifdef HAVE_LINUX_THREADS
31675 pthread_kill_other_threads_np();
31683 rm -f conftest$ac_exeext
31684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31685 (eval $ac_link) 2>&5
31687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31688 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31690 (eval $ac_try) 2>&5
31692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31693 (exit $ac_status); }; }; then
31694 ol_cv_pthread_thread=yes
31696 echo "$as_me: program exited with status $ac_status" >&5
31697 echo "$as_me: failed program was:" >&5
31698 sed 's/^/| /' conftest.$ac_ext >&5
31700 ( exit $ac_status )
31701 ol_cv_pthread_thread=no
31703 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31710 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
31711 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
31713 if test $ol_cv_pthread_thread = yes ; then
31714 ol_link_pthreads="-thread"
31715 ol_link_threads=posix
31720 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
31721 if test "$ol_link_threads" = no ; then
31722 # try -lpthread -lmach -lexc -lc_r
31723 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
31724 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
31725 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
31726 echo $ECHO_N "(cached) $ECHO_C" >&6
31731 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
31733 if test "$cross_compiling" = yes; then
31734 cat >conftest.$ac_ext <<_ACEOF
31737 cat confdefs.h >>conftest.$ac_ext
31738 cat >>conftest.$ac_ext <<_ACEOF
31739 /* end confdefs.h. */
31740 /* pthread test headers */
31741 #include <pthread.h>
31742 #if HAVE_PTHREADS < 7
31746 #define NULL (void*)0
31749 static void *task(p)
31752 return (void *) (p == NULL);
31759 /* pthread test function */
31760 #ifndef PTHREAD_CREATE_DETACHED
31761 #define PTHREAD_CREATE_DETACHED 1
31765 int detach = PTHREAD_CREATE_DETACHED;
31767 #if HAVE_PTHREADS > 4
31768 /* Final pthreads */
31769 pthread_attr_t attr;
31771 status = pthread_attr_init(&attr);
31772 if( status ) return status;
31774 #if HAVE_PTHREADS < 7
31775 status = pthread_attr_setdetachstate(&attr, &detach);
31776 if( status < 0 ) status = errno;
31778 status = pthread_attr_setdetachstate(&attr, detach);
31780 if( status ) return status;
31781 status = pthread_create( &t, &attr, task, NULL );
31782 #if HAVE_PTHREADS < 7
31783 if( status < 0 ) status = errno;
31785 if( status ) return status;
31787 /* Draft 4 pthreads */
31788 status = pthread_create( &t, pthread_attr_default, task, NULL );
31789 if( status ) return errno;
31791 /* give thread a chance to complete */
31792 /* it should remain joinable and hence detachable */
31795 status = pthread_detach( &t );
31796 if( status ) return errno;
31799 #ifdef HAVE_LINUX_THREADS
31800 pthread_kill_other_threads_np();
31809 rm -f conftest.$ac_objext conftest$ac_exeext
31810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31811 (eval $ac_link) 2>conftest.er1
31813 grep -v '^ *+' conftest.er1 >conftest.err
31815 cat conftest.err >&5
31816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31817 (exit $ac_status); } &&
31818 { ac_try='test -z "$ac_c_werror_flag"
31819 || test ! -s conftest.err'
31820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31821 (eval $ac_try) 2>&5
31823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31824 (exit $ac_status); }; } &&
31825 { ac_try='test -s conftest$ac_exeext'
31826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31827 (eval $ac_try) 2>&5
31829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31830 (exit $ac_status); }; }; then
31831 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
31833 echo "$as_me: failed program was:" >&5
31834 sed 's/^/| /' conftest.$ac_ext >&5
31836 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
31838 rm -f conftest.err conftest.$ac_objext \
31839 conftest$ac_exeext conftest.$ac_ext
31841 cat >conftest.$ac_ext <<_ACEOF
31844 cat confdefs.h >>conftest.$ac_ext
31845 cat >>conftest.$ac_ext <<_ACEOF
31846 /* end confdefs.h. */
31847 /* pthread test headers */
31848 #include <pthread.h>
31849 #if HAVE_PTHREADS < 7
31853 #define NULL (void*)0
31856 static void *task(p)
31859 return (void *) (p == NULL);
31863 int main(argc, argv)
31868 /* pthread test function */
31869 #ifndef PTHREAD_CREATE_DETACHED
31870 #define PTHREAD_CREATE_DETACHED 1
31874 int detach = PTHREAD_CREATE_DETACHED;
31876 #if HAVE_PTHREADS > 4
31877 /* Final pthreads */
31878 pthread_attr_t attr;
31880 status = pthread_attr_init(&attr);
31881 if( status ) return status;
31883 #if HAVE_PTHREADS < 7
31884 status = pthread_attr_setdetachstate(&attr, &detach);
31885 if( status < 0 ) status = errno;
31887 status = pthread_attr_setdetachstate(&attr, detach);
31889 if( status ) return status;
31890 status = pthread_create( &t, &attr, task, NULL );
31891 #if HAVE_PTHREADS < 7
31892 if( status < 0 ) status = errno;
31894 if( status ) return status;
31896 /* Draft 4 pthreads */
31897 status = pthread_create( &t, pthread_attr_default, task, NULL );
31898 if( status ) return errno;
31900 /* give thread a chance to complete */
31901 /* it should remain joinable and hence detachable */
31904 status = pthread_detach( &t );
31905 if( status ) return errno;
31908 #ifdef HAVE_LINUX_THREADS
31909 pthread_kill_other_threads_np();
31917 rm -f conftest$ac_exeext
31918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31919 (eval $ac_link) 2>&5
31921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31922 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31924 (eval $ac_try) 2>&5
31926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31927 (exit $ac_status); }; }; then
31928 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
31930 echo "$as_me: program exited with status $ac_status" >&5
31931 echo "$as_me: failed program was:" >&5
31932 sed 's/^/| /' conftest.$ac_ext >&5
31934 ( exit $ac_status )
31935 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
31937 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31944 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
31945 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
31947 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
31948 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
31949 ol_link_threads=posix
31953 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
31954 if test "$ol_link_threads" = no ; then
31955 # try -lpthread -lmach -lexc
31956 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
31957 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
31958 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
31959 echo $ECHO_N "(cached) $ECHO_C" >&6
31964 LIBS="-lpthread -lmach -lexc $LIBS"
31966 if test "$cross_compiling" = yes; then
31967 cat >conftest.$ac_ext <<_ACEOF
31970 cat confdefs.h >>conftest.$ac_ext
31971 cat >>conftest.$ac_ext <<_ACEOF
31972 /* end confdefs.h. */
31973 /* pthread test headers */
31974 #include <pthread.h>
31975 #if HAVE_PTHREADS < 7
31979 #define NULL (void*)0
31982 static void *task(p)
31985 return (void *) (p == NULL);
31992 /* pthread test function */
31993 #ifndef PTHREAD_CREATE_DETACHED
31994 #define PTHREAD_CREATE_DETACHED 1
31998 int detach = PTHREAD_CREATE_DETACHED;
32000 #if HAVE_PTHREADS > 4
32001 /* Final pthreads */
32002 pthread_attr_t attr;
32004 status = pthread_attr_init(&attr);
32005 if( status ) return status;
32007 #if HAVE_PTHREADS < 7
32008 status = pthread_attr_setdetachstate(&attr, &detach);
32009 if( status < 0 ) status = errno;
32011 status = pthread_attr_setdetachstate(&attr, detach);
32013 if( status ) return status;
32014 status = pthread_create( &t, &attr, task, NULL );
32015 #if HAVE_PTHREADS < 7
32016 if( status < 0 ) status = errno;
32018 if( status ) return status;
32020 /* Draft 4 pthreads */
32021 status = pthread_create( &t, pthread_attr_default, task, NULL );
32022 if( status ) return errno;
32024 /* give thread a chance to complete */
32025 /* it should remain joinable and hence detachable */
32028 status = pthread_detach( &t );
32029 if( status ) return errno;
32032 #ifdef HAVE_LINUX_THREADS
32033 pthread_kill_other_threads_np();
32042 rm -f conftest.$ac_objext conftest$ac_exeext
32043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32044 (eval $ac_link) 2>conftest.er1
32046 grep -v '^ *+' conftest.er1 >conftest.err
32048 cat conftest.err >&5
32049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32050 (exit $ac_status); } &&
32051 { ac_try='test -z "$ac_c_werror_flag"
32052 || test ! -s conftest.err'
32053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32054 (eval $ac_try) 2>&5
32056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32057 (exit $ac_status); }; } &&
32058 { ac_try='test -s conftest$ac_exeext'
32059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32060 (eval $ac_try) 2>&5
32062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32063 (exit $ac_status); }; }; then
32064 ol_cv_pthread_lpthread_lmach_lexc=yes
32066 echo "$as_me: failed program was:" >&5
32067 sed 's/^/| /' conftest.$ac_ext >&5
32069 ol_cv_pthread_lpthread_lmach_lexc=no
32071 rm -f conftest.err conftest.$ac_objext \
32072 conftest$ac_exeext conftest.$ac_ext
32074 cat >conftest.$ac_ext <<_ACEOF
32077 cat confdefs.h >>conftest.$ac_ext
32078 cat >>conftest.$ac_ext <<_ACEOF
32079 /* end confdefs.h. */
32080 /* pthread test headers */
32081 #include <pthread.h>
32082 #if HAVE_PTHREADS < 7
32086 #define NULL (void*)0
32089 static void *task(p)
32092 return (void *) (p == NULL);
32096 int main(argc, argv)
32101 /* pthread test function */
32102 #ifndef PTHREAD_CREATE_DETACHED
32103 #define PTHREAD_CREATE_DETACHED 1
32107 int detach = PTHREAD_CREATE_DETACHED;
32109 #if HAVE_PTHREADS > 4
32110 /* Final pthreads */
32111 pthread_attr_t attr;
32113 status = pthread_attr_init(&attr);
32114 if( status ) return status;
32116 #if HAVE_PTHREADS < 7
32117 status = pthread_attr_setdetachstate(&attr, &detach);
32118 if( status < 0 ) status = errno;
32120 status = pthread_attr_setdetachstate(&attr, detach);
32122 if( status ) return status;
32123 status = pthread_create( &t, &attr, task, NULL );
32124 #if HAVE_PTHREADS < 7
32125 if( status < 0 ) status = errno;
32127 if( status ) return status;
32129 /* Draft 4 pthreads */
32130 status = pthread_create( &t, pthread_attr_default, task, NULL );
32131 if( status ) return errno;
32133 /* give thread a chance to complete */
32134 /* it should remain joinable and hence detachable */
32137 status = pthread_detach( &t );
32138 if( status ) return errno;
32141 #ifdef HAVE_LINUX_THREADS
32142 pthread_kill_other_threads_np();
32150 rm -f conftest$ac_exeext
32151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32152 (eval $ac_link) 2>&5
32154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32155 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32157 (eval $ac_try) 2>&5
32159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32160 (exit $ac_status); }; }; then
32161 ol_cv_pthread_lpthread_lmach_lexc=yes
32163 echo "$as_me: program exited with status $ac_status" >&5
32164 echo "$as_me: failed program was:" >&5
32165 sed 's/^/| /' conftest.$ac_ext >&5
32167 ( exit $ac_status )
32168 ol_cv_pthread_lpthread_lmach_lexc=no
32170 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32177 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
32178 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
32180 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
32181 ol_link_pthreads="-lpthread -lmach -lexc"
32182 ol_link_threads=posix
32187 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
32188 if test "$ol_link_threads" = no ; then
32189 # try -lpthread -Wl,-woff,85
32190 echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
32191 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
32192 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
32193 echo $ECHO_N "(cached) $ECHO_C" >&6
32198 LIBS="-lpthread -Wl,-woff,85 $LIBS"
32200 if test "$cross_compiling" = yes; then
32201 cat >conftest.$ac_ext <<_ACEOF
32204 cat confdefs.h >>conftest.$ac_ext
32205 cat >>conftest.$ac_ext <<_ACEOF
32206 /* end confdefs.h. */
32207 /* pthread test headers */
32208 #include <pthread.h>
32209 #if HAVE_PTHREADS < 7
32213 #define NULL (void*)0
32216 static void *task(p)
32219 return (void *) (p == NULL);
32226 /* pthread test function */
32227 #ifndef PTHREAD_CREATE_DETACHED
32228 #define PTHREAD_CREATE_DETACHED 1
32232 int detach = PTHREAD_CREATE_DETACHED;
32234 #if HAVE_PTHREADS > 4
32235 /* Final pthreads */
32236 pthread_attr_t attr;
32238 status = pthread_attr_init(&attr);
32239 if( status ) return status;
32241 #if HAVE_PTHREADS < 7
32242 status = pthread_attr_setdetachstate(&attr, &detach);
32243 if( status < 0 ) status = errno;
32245 status = pthread_attr_setdetachstate(&attr, detach);
32247 if( status ) return status;
32248 status = pthread_create( &t, &attr, task, NULL );
32249 #if HAVE_PTHREADS < 7
32250 if( status < 0 ) status = errno;
32252 if( status ) return status;
32254 /* Draft 4 pthreads */
32255 status = pthread_create( &t, pthread_attr_default, task, NULL );
32256 if( status ) return errno;
32258 /* give thread a chance to complete */
32259 /* it should remain joinable and hence detachable */
32262 status = pthread_detach( &t );
32263 if( status ) return errno;
32266 #ifdef HAVE_LINUX_THREADS
32267 pthread_kill_other_threads_np();
32276 rm -f conftest.$ac_objext conftest$ac_exeext
32277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32278 (eval $ac_link) 2>conftest.er1
32280 grep -v '^ *+' conftest.er1 >conftest.err
32282 cat conftest.err >&5
32283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32284 (exit $ac_status); } &&
32285 { ac_try='test -z "$ac_c_werror_flag"
32286 || test ! -s conftest.err'
32287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32288 (eval $ac_try) 2>&5
32290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32291 (exit $ac_status); }; } &&
32292 { ac_try='test -s conftest$ac_exeext'
32293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32294 (eval $ac_try) 2>&5
32296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32297 (exit $ac_status); }; }; then
32298 ol_cv_pthread_lib_lpthread_woff=yes
32300 echo "$as_me: failed program was:" >&5
32301 sed 's/^/| /' conftest.$ac_ext >&5
32303 ol_cv_pthread_lib_lpthread_woff=no
32305 rm -f conftest.err conftest.$ac_objext \
32306 conftest$ac_exeext conftest.$ac_ext
32308 cat >conftest.$ac_ext <<_ACEOF
32311 cat confdefs.h >>conftest.$ac_ext
32312 cat >>conftest.$ac_ext <<_ACEOF
32313 /* end confdefs.h. */
32314 /* pthread test headers */
32315 #include <pthread.h>
32316 #if HAVE_PTHREADS < 7
32320 #define NULL (void*)0
32323 static void *task(p)
32326 return (void *) (p == NULL);
32330 int main(argc, argv)
32335 /* pthread test function */
32336 #ifndef PTHREAD_CREATE_DETACHED
32337 #define PTHREAD_CREATE_DETACHED 1
32341 int detach = PTHREAD_CREATE_DETACHED;
32343 #if HAVE_PTHREADS > 4
32344 /* Final pthreads */
32345 pthread_attr_t attr;
32347 status = pthread_attr_init(&attr);
32348 if( status ) return status;
32350 #if HAVE_PTHREADS < 7
32351 status = pthread_attr_setdetachstate(&attr, &detach);
32352 if( status < 0 ) status = errno;
32354 status = pthread_attr_setdetachstate(&attr, detach);
32356 if( status ) return status;
32357 status = pthread_create( &t, &attr, task, NULL );
32358 #if HAVE_PTHREADS < 7
32359 if( status < 0 ) status = errno;
32361 if( status ) return status;
32363 /* Draft 4 pthreads */
32364 status = pthread_create( &t, pthread_attr_default, task, NULL );
32365 if( status ) return errno;
32367 /* give thread a chance to complete */
32368 /* it should remain joinable and hence detachable */
32371 status = pthread_detach( &t );
32372 if( status ) return errno;
32375 #ifdef HAVE_LINUX_THREADS
32376 pthread_kill_other_threads_np();
32384 rm -f conftest$ac_exeext
32385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32386 (eval $ac_link) 2>&5
32388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32389 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32391 (eval $ac_try) 2>&5
32393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32394 (exit $ac_status); }; }; then
32395 ol_cv_pthread_lib_lpthread_woff=yes
32397 echo "$as_me: program exited with status $ac_status" >&5
32398 echo "$as_me: failed program was:" >&5
32399 sed 's/^/| /' conftest.$ac_ext >&5
32401 ( exit $ac_status )
32402 ol_cv_pthread_lib_lpthread_woff=no
32404 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32411 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
32412 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
32414 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
32415 ol_link_pthreads="-lpthread -Wl,-woff,85"
32416 ol_link_threads=posix
32421 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
32422 if test "$ol_link_threads" = no ; then
32424 echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
32425 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
32426 if test "${ol_cv_pthread_lpthread+set}" = set; then
32427 echo $ECHO_N "(cached) $ECHO_C" >&6
32432 LIBS="-lpthread $LIBS"
32434 if test "$cross_compiling" = yes; then
32435 cat >conftest.$ac_ext <<_ACEOF
32438 cat confdefs.h >>conftest.$ac_ext
32439 cat >>conftest.$ac_ext <<_ACEOF
32440 /* end confdefs.h. */
32441 /* pthread test headers */
32442 #include <pthread.h>
32443 #if HAVE_PTHREADS < 7
32447 #define NULL (void*)0
32450 static void *task(p)
32453 return (void *) (p == NULL);
32460 /* pthread test function */
32461 #ifndef PTHREAD_CREATE_DETACHED
32462 #define PTHREAD_CREATE_DETACHED 1
32466 int detach = PTHREAD_CREATE_DETACHED;
32468 #if HAVE_PTHREADS > 4
32469 /* Final pthreads */
32470 pthread_attr_t attr;
32472 status = pthread_attr_init(&attr);
32473 if( status ) return status;
32475 #if HAVE_PTHREADS < 7
32476 status = pthread_attr_setdetachstate(&attr, &detach);
32477 if( status < 0 ) status = errno;
32479 status = pthread_attr_setdetachstate(&attr, detach);
32481 if( status ) return status;
32482 status = pthread_create( &t, &attr, task, NULL );
32483 #if HAVE_PTHREADS < 7
32484 if( status < 0 ) status = errno;
32486 if( status ) return status;
32488 /* Draft 4 pthreads */
32489 status = pthread_create( &t, pthread_attr_default, task, NULL );
32490 if( status ) return errno;
32492 /* give thread a chance to complete */
32493 /* it should remain joinable and hence detachable */
32496 status = pthread_detach( &t );
32497 if( status ) return errno;
32500 #ifdef HAVE_LINUX_THREADS
32501 pthread_kill_other_threads_np();
32510 rm -f conftest.$ac_objext conftest$ac_exeext
32511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32512 (eval $ac_link) 2>conftest.er1
32514 grep -v '^ *+' conftest.er1 >conftest.err
32516 cat conftest.err >&5
32517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32518 (exit $ac_status); } &&
32519 { ac_try='test -z "$ac_c_werror_flag"
32520 || test ! -s conftest.err'
32521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32522 (eval $ac_try) 2>&5
32524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32525 (exit $ac_status); }; } &&
32526 { ac_try='test -s conftest$ac_exeext'
32527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32528 (eval $ac_try) 2>&5
32530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32531 (exit $ac_status); }; }; then
32532 ol_cv_pthread_lpthread=yes
32534 echo "$as_me: failed program was:" >&5
32535 sed 's/^/| /' conftest.$ac_ext >&5
32537 ol_cv_pthread_lpthread=no
32539 rm -f conftest.err conftest.$ac_objext \
32540 conftest$ac_exeext conftest.$ac_ext
32542 cat >conftest.$ac_ext <<_ACEOF
32545 cat confdefs.h >>conftest.$ac_ext
32546 cat >>conftest.$ac_ext <<_ACEOF
32547 /* end confdefs.h. */
32548 /* pthread test headers */
32549 #include <pthread.h>
32550 #if HAVE_PTHREADS < 7
32554 #define NULL (void*)0
32557 static void *task(p)
32560 return (void *) (p == NULL);
32564 int main(argc, argv)
32569 /* pthread test function */
32570 #ifndef PTHREAD_CREATE_DETACHED
32571 #define PTHREAD_CREATE_DETACHED 1
32575 int detach = PTHREAD_CREATE_DETACHED;
32577 #if HAVE_PTHREADS > 4
32578 /* Final pthreads */
32579 pthread_attr_t attr;
32581 status = pthread_attr_init(&attr);
32582 if( status ) return status;
32584 #if HAVE_PTHREADS < 7
32585 status = pthread_attr_setdetachstate(&attr, &detach);
32586 if( status < 0 ) status = errno;
32588 status = pthread_attr_setdetachstate(&attr, detach);
32590 if( status ) return status;
32591 status = pthread_create( &t, &attr, task, NULL );
32592 #if HAVE_PTHREADS < 7
32593 if( status < 0 ) status = errno;
32595 if( status ) return status;
32597 /* Draft 4 pthreads */
32598 status = pthread_create( &t, pthread_attr_default, task, NULL );
32599 if( status ) return errno;
32601 /* give thread a chance to complete */
32602 /* it should remain joinable and hence detachable */
32605 status = pthread_detach( &t );
32606 if( status ) return errno;
32609 #ifdef HAVE_LINUX_THREADS
32610 pthread_kill_other_threads_np();
32618 rm -f conftest$ac_exeext
32619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32620 (eval $ac_link) 2>&5
32622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32623 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32625 (eval $ac_try) 2>&5
32627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32628 (exit $ac_status); }; }; then
32629 ol_cv_pthread_lpthread=yes
32631 echo "$as_me: program exited with status $ac_status" >&5
32632 echo "$as_me: failed program was:" >&5
32633 sed 's/^/| /' conftest.$ac_ext >&5
32635 ( exit $ac_status )
32636 ol_cv_pthread_lpthread=no
32638 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32645 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
32646 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
32648 if test $ol_cv_pthread_lpthread = yes ; then
32649 ol_link_pthreads="-lpthread"
32650 ol_link_threads=posix
32654 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
32655 if test "$ol_link_threads" = no ; then
32657 echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
32658 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
32659 if test "${ol_cv_pthread_lc_r+set}" = set; then
32660 echo $ECHO_N "(cached) $ECHO_C" >&6
32667 if test "$cross_compiling" = yes; then
32668 cat >conftest.$ac_ext <<_ACEOF
32671 cat confdefs.h >>conftest.$ac_ext
32672 cat >>conftest.$ac_ext <<_ACEOF
32673 /* end confdefs.h. */
32674 /* pthread test headers */
32675 #include <pthread.h>
32676 #if HAVE_PTHREADS < 7
32680 #define NULL (void*)0
32683 static void *task(p)
32686 return (void *) (p == NULL);
32693 /* pthread test function */
32694 #ifndef PTHREAD_CREATE_DETACHED
32695 #define PTHREAD_CREATE_DETACHED 1
32699 int detach = PTHREAD_CREATE_DETACHED;
32701 #if HAVE_PTHREADS > 4
32702 /* Final pthreads */
32703 pthread_attr_t attr;
32705 status = pthread_attr_init(&attr);
32706 if( status ) return status;
32708 #if HAVE_PTHREADS < 7
32709 status = pthread_attr_setdetachstate(&attr, &detach);
32710 if( status < 0 ) status = errno;
32712 status = pthread_attr_setdetachstate(&attr, detach);
32714 if( status ) return status;
32715 status = pthread_create( &t, &attr, task, NULL );
32716 #if HAVE_PTHREADS < 7
32717 if( status < 0 ) status = errno;
32719 if( status ) return status;
32721 /* Draft 4 pthreads */
32722 status = pthread_create( &t, pthread_attr_default, task, NULL );
32723 if( status ) return errno;
32725 /* give thread a chance to complete */
32726 /* it should remain joinable and hence detachable */
32729 status = pthread_detach( &t );
32730 if( status ) return errno;
32733 #ifdef HAVE_LINUX_THREADS
32734 pthread_kill_other_threads_np();
32743 rm -f conftest.$ac_objext conftest$ac_exeext
32744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32745 (eval $ac_link) 2>conftest.er1
32747 grep -v '^ *+' conftest.er1 >conftest.err
32749 cat conftest.err >&5
32750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32751 (exit $ac_status); } &&
32752 { ac_try='test -z "$ac_c_werror_flag"
32753 || test ! -s conftest.err'
32754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32755 (eval $ac_try) 2>&5
32757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32758 (exit $ac_status); }; } &&
32759 { ac_try='test -s conftest$ac_exeext'
32760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32761 (eval $ac_try) 2>&5
32763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32764 (exit $ac_status); }; }; then
32765 ol_cv_pthread_lc_r=yes
32767 echo "$as_me: failed program was:" >&5
32768 sed 's/^/| /' conftest.$ac_ext >&5
32770 ol_cv_pthread_lc_r=no
32772 rm -f conftest.err conftest.$ac_objext \
32773 conftest$ac_exeext conftest.$ac_ext
32775 cat >conftest.$ac_ext <<_ACEOF
32778 cat confdefs.h >>conftest.$ac_ext
32779 cat >>conftest.$ac_ext <<_ACEOF
32780 /* end confdefs.h. */
32781 /* pthread test headers */
32782 #include <pthread.h>
32783 #if HAVE_PTHREADS < 7
32787 #define NULL (void*)0
32790 static void *task(p)
32793 return (void *) (p == NULL);
32797 int main(argc, argv)
32802 /* pthread test function */
32803 #ifndef PTHREAD_CREATE_DETACHED
32804 #define PTHREAD_CREATE_DETACHED 1
32808 int detach = PTHREAD_CREATE_DETACHED;
32810 #if HAVE_PTHREADS > 4
32811 /* Final pthreads */
32812 pthread_attr_t attr;
32814 status = pthread_attr_init(&attr);
32815 if( status ) return status;
32817 #if HAVE_PTHREADS < 7
32818 status = pthread_attr_setdetachstate(&attr, &detach);
32819 if( status < 0 ) status = errno;
32821 status = pthread_attr_setdetachstate(&attr, detach);
32823 if( status ) return status;
32824 status = pthread_create( &t, &attr, task, NULL );
32825 #if HAVE_PTHREADS < 7
32826 if( status < 0 ) status = errno;
32828 if( status ) return status;
32830 /* Draft 4 pthreads */
32831 status = pthread_create( &t, pthread_attr_default, task, NULL );
32832 if( status ) return errno;
32834 /* give thread a chance to complete */
32835 /* it should remain joinable and hence detachable */
32838 status = pthread_detach( &t );
32839 if( status ) return errno;
32842 #ifdef HAVE_LINUX_THREADS
32843 pthread_kill_other_threads_np();
32851 rm -f conftest$ac_exeext
32852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32853 (eval $ac_link) 2>&5
32855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32856 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32858 (eval $ac_try) 2>&5
32860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32861 (exit $ac_status); }; }; then
32862 ol_cv_pthread_lc_r=yes
32864 echo "$as_me: program exited with status $ac_status" >&5
32865 echo "$as_me: failed program was:" >&5
32866 sed 's/^/| /' conftest.$ac_ext >&5
32868 ( exit $ac_status )
32869 ol_cv_pthread_lc_r=no
32871 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32878 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
32879 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
32881 if test $ol_cv_pthread_lc_r = yes ; then
32882 ol_link_pthreads="-lc_r"
32883 ol_link_threads=posix
32888 # Pthread try link: -threads (ol_cv_pthread_threads)
32889 if test "$ol_link_threads" = no ; then
32891 echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
32892 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
32893 if test "${ol_cv_pthread_threads+set}" = set; then
32894 echo $ECHO_N "(cached) $ECHO_C" >&6
32899 LIBS="-threads $LIBS"
32901 if test "$cross_compiling" = yes; then
32902 cat >conftest.$ac_ext <<_ACEOF
32905 cat confdefs.h >>conftest.$ac_ext
32906 cat >>conftest.$ac_ext <<_ACEOF
32907 /* end confdefs.h. */
32908 /* pthread test headers */
32909 #include <pthread.h>
32910 #if HAVE_PTHREADS < 7
32914 #define NULL (void*)0
32917 static void *task(p)
32920 return (void *) (p == NULL);
32927 /* pthread test function */
32928 #ifndef PTHREAD_CREATE_DETACHED
32929 #define PTHREAD_CREATE_DETACHED 1
32933 int detach = PTHREAD_CREATE_DETACHED;
32935 #if HAVE_PTHREADS > 4
32936 /* Final pthreads */
32937 pthread_attr_t attr;
32939 status = pthread_attr_init(&attr);
32940 if( status ) return status;
32942 #if HAVE_PTHREADS < 7
32943 status = pthread_attr_setdetachstate(&attr, &detach);
32944 if( status < 0 ) status = errno;
32946 status = pthread_attr_setdetachstate(&attr, detach);
32948 if( status ) return status;
32949 status = pthread_create( &t, &attr, task, NULL );
32950 #if HAVE_PTHREADS < 7
32951 if( status < 0 ) status = errno;
32953 if( status ) return status;
32955 /* Draft 4 pthreads */
32956 status = pthread_create( &t, pthread_attr_default, task, NULL );
32957 if( status ) return errno;
32959 /* give thread a chance to complete */
32960 /* it should remain joinable and hence detachable */
32963 status = pthread_detach( &t );
32964 if( status ) return errno;
32967 #ifdef HAVE_LINUX_THREADS
32968 pthread_kill_other_threads_np();
32977 rm -f conftest.$ac_objext conftest$ac_exeext
32978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32979 (eval $ac_link) 2>conftest.er1
32981 grep -v '^ *+' conftest.er1 >conftest.err
32983 cat conftest.err >&5
32984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32985 (exit $ac_status); } &&
32986 { ac_try='test -z "$ac_c_werror_flag"
32987 || test ! -s conftest.err'
32988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32989 (eval $ac_try) 2>&5
32991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32992 (exit $ac_status); }; } &&
32993 { ac_try='test -s conftest$ac_exeext'
32994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32995 (eval $ac_try) 2>&5
32997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32998 (exit $ac_status); }; }; then
32999 ol_cv_pthread_threads=yes
33001 echo "$as_me: failed program was:" >&5
33002 sed 's/^/| /' conftest.$ac_ext >&5
33004 ol_cv_pthread_threads=no
33006 rm -f conftest.err conftest.$ac_objext \
33007 conftest$ac_exeext conftest.$ac_ext
33009 cat >conftest.$ac_ext <<_ACEOF
33012 cat confdefs.h >>conftest.$ac_ext
33013 cat >>conftest.$ac_ext <<_ACEOF
33014 /* end confdefs.h. */
33015 /* pthread test headers */
33016 #include <pthread.h>
33017 #if HAVE_PTHREADS < 7
33021 #define NULL (void*)0
33024 static void *task(p)
33027 return (void *) (p == NULL);
33031 int main(argc, argv)
33036 /* pthread test function */
33037 #ifndef PTHREAD_CREATE_DETACHED
33038 #define PTHREAD_CREATE_DETACHED 1
33042 int detach = PTHREAD_CREATE_DETACHED;
33044 #if HAVE_PTHREADS > 4
33045 /* Final pthreads */
33046 pthread_attr_t attr;
33048 status = pthread_attr_init(&attr);
33049 if( status ) return status;
33051 #if HAVE_PTHREADS < 7
33052 status = pthread_attr_setdetachstate(&attr, &detach);
33053 if( status < 0 ) status = errno;
33055 status = pthread_attr_setdetachstate(&attr, detach);
33057 if( status ) return status;
33058 status = pthread_create( &t, &attr, task, NULL );
33059 #if HAVE_PTHREADS < 7
33060 if( status < 0 ) status = errno;
33062 if( status ) return status;
33064 /* Draft 4 pthreads */
33065 status = pthread_create( &t, pthread_attr_default, task, NULL );
33066 if( status ) return errno;
33068 /* give thread a chance to complete */
33069 /* it should remain joinable and hence detachable */
33072 status = pthread_detach( &t );
33073 if( status ) return errno;
33076 #ifdef HAVE_LINUX_THREADS
33077 pthread_kill_other_threads_np();
33085 rm -f conftest$ac_exeext
33086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33087 (eval $ac_link) 2>&5
33089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33090 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33092 (eval $ac_try) 2>&5
33094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33095 (exit $ac_status); }; }; then
33096 ol_cv_pthread_threads=yes
33098 echo "$as_me: program exited with status $ac_status" >&5
33099 echo "$as_me: failed program was:" >&5
33100 sed 's/^/| /' conftest.$ac_ext >&5
33102 ( exit $ac_status )
33103 ol_cv_pthread_threads=no
33105 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33112 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
33113 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
33115 if test $ol_cv_pthread_threads = yes ; then
33116 ol_link_pthreads="-threads"
33117 ol_link_threads=posix
33122 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
33123 if test "$ol_link_threads" = no ; then
33124 # try -lpthreads -lmach -lexc -lc_r
33125 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
33126 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
33127 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
33128 echo $ECHO_N "(cached) $ECHO_C" >&6
33133 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
33135 if test "$cross_compiling" = yes; then
33136 cat >conftest.$ac_ext <<_ACEOF
33139 cat confdefs.h >>conftest.$ac_ext
33140 cat >>conftest.$ac_ext <<_ACEOF
33141 /* end confdefs.h. */
33142 /* pthread test headers */
33143 #include <pthread.h>
33144 #if HAVE_PTHREADS < 7
33148 #define NULL (void*)0
33151 static void *task(p)
33154 return (void *) (p == NULL);
33161 /* pthread test function */
33162 #ifndef PTHREAD_CREATE_DETACHED
33163 #define PTHREAD_CREATE_DETACHED 1
33167 int detach = PTHREAD_CREATE_DETACHED;
33169 #if HAVE_PTHREADS > 4
33170 /* Final pthreads */
33171 pthread_attr_t attr;
33173 status = pthread_attr_init(&attr);
33174 if( status ) return status;
33176 #if HAVE_PTHREADS < 7
33177 status = pthread_attr_setdetachstate(&attr, &detach);
33178 if( status < 0 ) status = errno;
33180 status = pthread_attr_setdetachstate(&attr, detach);
33182 if( status ) return status;
33183 status = pthread_create( &t, &attr, task, NULL );
33184 #if HAVE_PTHREADS < 7
33185 if( status < 0 ) status = errno;
33187 if( status ) return status;
33189 /* Draft 4 pthreads */
33190 status = pthread_create( &t, pthread_attr_default, task, NULL );
33191 if( status ) return errno;
33193 /* give thread a chance to complete */
33194 /* it should remain joinable and hence detachable */
33197 status = pthread_detach( &t );
33198 if( status ) return errno;
33201 #ifdef HAVE_LINUX_THREADS
33202 pthread_kill_other_threads_np();
33211 rm -f conftest.$ac_objext conftest$ac_exeext
33212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33213 (eval $ac_link) 2>conftest.er1
33215 grep -v '^ *+' conftest.er1 >conftest.err
33217 cat conftest.err >&5
33218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33219 (exit $ac_status); } &&
33220 { ac_try='test -z "$ac_c_werror_flag"
33221 || test ! -s conftest.err'
33222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33223 (eval $ac_try) 2>&5
33225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33226 (exit $ac_status); }; } &&
33227 { ac_try='test -s conftest$ac_exeext'
33228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33229 (eval $ac_try) 2>&5
33231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33232 (exit $ac_status); }; }; then
33233 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
33235 echo "$as_me: failed program was:" >&5
33236 sed 's/^/| /' conftest.$ac_ext >&5
33238 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
33240 rm -f conftest.err conftest.$ac_objext \
33241 conftest$ac_exeext conftest.$ac_ext
33243 cat >conftest.$ac_ext <<_ACEOF
33246 cat confdefs.h >>conftest.$ac_ext
33247 cat >>conftest.$ac_ext <<_ACEOF
33248 /* end confdefs.h. */
33249 /* pthread test headers */
33250 #include <pthread.h>
33251 #if HAVE_PTHREADS < 7
33255 #define NULL (void*)0
33258 static void *task(p)
33261 return (void *) (p == NULL);
33265 int main(argc, argv)
33270 /* pthread test function */
33271 #ifndef PTHREAD_CREATE_DETACHED
33272 #define PTHREAD_CREATE_DETACHED 1
33276 int detach = PTHREAD_CREATE_DETACHED;
33278 #if HAVE_PTHREADS > 4
33279 /* Final pthreads */
33280 pthread_attr_t attr;
33282 status = pthread_attr_init(&attr);
33283 if( status ) return status;
33285 #if HAVE_PTHREADS < 7
33286 status = pthread_attr_setdetachstate(&attr, &detach);
33287 if( status < 0 ) status = errno;
33289 status = pthread_attr_setdetachstate(&attr, detach);
33291 if( status ) return status;
33292 status = pthread_create( &t, &attr, task, NULL );
33293 #if HAVE_PTHREADS < 7
33294 if( status < 0 ) status = errno;
33296 if( status ) return status;
33298 /* Draft 4 pthreads */
33299 status = pthread_create( &t, pthread_attr_default, task, NULL );
33300 if( status ) return errno;
33302 /* give thread a chance to complete */
33303 /* it should remain joinable and hence detachable */
33306 status = pthread_detach( &t );
33307 if( status ) return errno;
33310 #ifdef HAVE_LINUX_THREADS
33311 pthread_kill_other_threads_np();
33319 rm -f conftest$ac_exeext
33320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33321 (eval $ac_link) 2>&5
33323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33324 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33326 (eval $ac_try) 2>&5
33328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33329 (exit $ac_status); }; }; then
33330 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
33332 echo "$as_me: program exited with status $ac_status" >&5
33333 echo "$as_me: failed program was:" >&5
33334 sed 's/^/| /' conftest.$ac_ext >&5
33336 ( exit $ac_status )
33337 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
33339 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33346 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
33347 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
33349 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
33350 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
33351 ol_link_threads=posix
33355 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
33356 if test "$ol_link_threads" = no ; then
33357 # try -lpthreads -lmach -lexc
33358 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
33359 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
33360 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
33361 echo $ECHO_N "(cached) $ECHO_C" >&6
33366 LIBS="-lpthreads -lmach -lexc $LIBS"
33368 if test "$cross_compiling" = yes; then
33369 cat >conftest.$ac_ext <<_ACEOF
33372 cat confdefs.h >>conftest.$ac_ext
33373 cat >>conftest.$ac_ext <<_ACEOF
33374 /* end confdefs.h. */
33375 /* pthread test headers */
33376 #include <pthread.h>
33377 #if HAVE_PTHREADS < 7
33381 #define NULL (void*)0
33384 static void *task(p)
33387 return (void *) (p == NULL);
33394 /* pthread test function */
33395 #ifndef PTHREAD_CREATE_DETACHED
33396 #define PTHREAD_CREATE_DETACHED 1
33400 int detach = PTHREAD_CREATE_DETACHED;
33402 #if HAVE_PTHREADS > 4
33403 /* Final pthreads */
33404 pthread_attr_t attr;
33406 status = pthread_attr_init(&attr);
33407 if( status ) return status;
33409 #if HAVE_PTHREADS < 7
33410 status = pthread_attr_setdetachstate(&attr, &detach);
33411 if( status < 0 ) status = errno;
33413 status = pthread_attr_setdetachstate(&attr, detach);
33415 if( status ) return status;
33416 status = pthread_create( &t, &attr, task, NULL );
33417 #if HAVE_PTHREADS < 7
33418 if( status < 0 ) status = errno;
33420 if( status ) return status;
33422 /* Draft 4 pthreads */
33423 status = pthread_create( &t, pthread_attr_default, task, NULL );
33424 if( status ) return errno;
33426 /* give thread a chance to complete */
33427 /* it should remain joinable and hence detachable */
33430 status = pthread_detach( &t );
33431 if( status ) return errno;
33434 #ifdef HAVE_LINUX_THREADS
33435 pthread_kill_other_threads_np();
33444 rm -f conftest.$ac_objext conftest$ac_exeext
33445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33446 (eval $ac_link) 2>conftest.er1
33448 grep -v '^ *+' conftest.er1 >conftest.err
33450 cat conftest.err >&5
33451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33452 (exit $ac_status); } &&
33453 { ac_try='test -z "$ac_c_werror_flag"
33454 || test ! -s conftest.err'
33455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33456 (eval $ac_try) 2>&5
33458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33459 (exit $ac_status); }; } &&
33460 { ac_try='test -s conftest$ac_exeext'
33461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33462 (eval $ac_try) 2>&5
33464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33465 (exit $ac_status); }; }; then
33466 ol_cv_pthread_lpthreads_lmach_lexc=yes
33468 echo "$as_me: failed program was:" >&5
33469 sed 's/^/| /' conftest.$ac_ext >&5
33471 ol_cv_pthread_lpthreads_lmach_lexc=no
33473 rm -f conftest.err conftest.$ac_objext \
33474 conftest$ac_exeext conftest.$ac_ext
33476 cat >conftest.$ac_ext <<_ACEOF
33479 cat confdefs.h >>conftest.$ac_ext
33480 cat >>conftest.$ac_ext <<_ACEOF
33481 /* end confdefs.h. */
33482 /* pthread test headers */
33483 #include <pthread.h>
33484 #if HAVE_PTHREADS < 7
33488 #define NULL (void*)0
33491 static void *task(p)
33494 return (void *) (p == NULL);
33498 int main(argc, argv)
33503 /* pthread test function */
33504 #ifndef PTHREAD_CREATE_DETACHED
33505 #define PTHREAD_CREATE_DETACHED 1
33509 int detach = PTHREAD_CREATE_DETACHED;
33511 #if HAVE_PTHREADS > 4
33512 /* Final pthreads */
33513 pthread_attr_t attr;
33515 status = pthread_attr_init(&attr);
33516 if( status ) return status;
33518 #if HAVE_PTHREADS < 7
33519 status = pthread_attr_setdetachstate(&attr, &detach);
33520 if( status < 0 ) status = errno;
33522 status = pthread_attr_setdetachstate(&attr, detach);
33524 if( status ) return status;
33525 status = pthread_create( &t, &attr, task, NULL );
33526 #if HAVE_PTHREADS < 7
33527 if( status < 0 ) status = errno;
33529 if( status ) return status;
33531 /* Draft 4 pthreads */
33532 status = pthread_create( &t, pthread_attr_default, task, NULL );
33533 if( status ) return errno;
33535 /* give thread a chance to complete */
33536 /* it should remain joinable and hence detachable */
33539 status = pthread_detach( &t );
33540 if( status ) return errno;
33543 #ifdef HAVE_LINUX_THREADS
33544 pthread_kill_other_threads_np();
33552 rm -f conftest$ac_exeext
33553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33554 (eval $ac_link) 2>&5
33556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33557 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33559 (eval $ac_try) 2>&5
33561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33562 (exit $ac_status); }; }; then
33563 ol_cv_pthread_lpthreads_lmach_lexc=yes
33565 echo "$as_me: program exited with status $ac_status" >&5
33566 echo "$as_me: failed program was:" >&5
33567 sed 's/^/| /' conftest.$ac_ext >&5
33569 ( exit $ac_status )
33570 ol_cv_pthread_lpthreads_lmach_lexc=no
33572 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33579 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
33580 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
33582 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
33583 ol_link_pthreads="-lpthreads -lmach -lexc"
33584 ol_link_threads=posix
33588 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
33589 if test "$ol_link_threads" = no ; then
33590 # try -lpthreads -lexc
33591 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
33592 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
33593 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
33594 echo $ECHO_N "(cached) $ECHO_C" >&6
33599 LIBS="-lpthreads -lexc $LIBS"
33601 if test "$cross_compiling" = yes; then
33602 cat >conftest.$ac_ext <<_ACEOF
33605 cat confdefs.h >>conftest.$ac_ext
33606 cat >>conftest.$ac_ext <<_ACEOF
33607 /* end confdefs.h. */
33608 /* pthread test headers */
33609 #include <pthread.h>
33610 #if HAVE_PTHREADS < 7
33614 #define NULL (void*)0
33617 static void *task(p)
33620 return (void *) (p == NULL);
33627 /* pthread test function */
33628 #ifndef PTHREAD_CREATE_DETACHED
33629 #define PTHREAD_CREATE_DETACHED 1
33633 int detach = PTHREAD_CREATE_DETACHED;
33635 #if HAVE_PTHREADS > 4
33636 /* Final pthreads */
33637 pthread_attr_t attr;
33639 status = pthread_attr_init(&attr);
33640 if( status ) return status;
33642 #if HAVE_PTHREADS < 7
33643 status = pthread_attr_setdetachstate(&attr, &detach);
33644 if( status < 0 ) status = errno;
33646 status = pthread_attr_setdetachstate(&attr, detach);
33648 if( status ) return status;
33649 status = pthread_create( &t, &attr, task, NULL );
33650 #if HAVE_PTHREADS < 7
33651 if( status < 0 ) status = errno;
33653 if( status ) return status;
33655 /* Draft 4 pthreads */
33656 status = pthread_create( &t, pthread_attr_default, task, NULL );
33657 if( status ) return errno;
33659 /* give thread a chance to complete */
33660 /* it should remain joinable and hence detachable */
33663 status = pthread_detach( &t );
33664 if( status ) return errno;
33667 #ifdef HAVE_LINUX_THREADS
33668 pthread_kill_other_threads_np();
33677 rm -f conftest.$ac_objext conftest$ac_exeext
33678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33679 (eval $ac_link) 2>conftest.er1
33681 grep -v '^ *+' conftest.er1 >conftest.err
33683 cat conftest.err >&5
33684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33685 (exit $ac_status); } &&
33686 { ac_try='test -z "$ac_c_werror_flag"
33687 || test ! -s conftest.err'
33688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33689 (eval $ac_try) 2>&5
33691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33692 (exit $ac_status); }; } &&
33693 { ac_try='test -s conftest$ac_exeext'
33694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33695 (eval $ac_try) 2>&5
33697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33698 (exit $ac_status); }; }; then
33699 ol_cv_pthread_lpthreads_lexc=yes
33701 echo "$as_me: failed program was:" >&5
33702 sed 's/^/| /' conftest.$ac_ext >&5
33704 ol_cv_pthread_lpthreads_lexc=no
33706 rm -f conftest.err conftest.$ac_objext \
33707 conftest$ac_exeext conftest.$ac_ext
33709 cat >conftest.$ac_ext <<_ACEOF
33712 cat confdefs.h >>conftest.$ac_ext
33713 cat >>conftest.$ac_ext <<_ACEOF
33714 /* end confdefs.h. */
33715 /* pthread test headers */
33716 #include <pthread.h>
33717 #if HAVE_PTHREADS < 7
33721 #define NULL (void*)0
33724 static void *task(p)
33727 return (void *) (p == NULL);
33731 int main(argc, argv)
33736 /* pthread test function */
33737 #ifndef PTHREAD_CREATE_DETACHED
33738 #define PTHREAD_CREATE_DETACHED 1
33742 int detach = PTHREAD_CREATE_DETACHED;
33744 #if HAVE_PTHREADS > 4
33745 /* Final pthreads */
33746 pthread_attr_t attr;
33748 status = pthread_attr_init(&attr);
33749 if( status ) return status;
33751 #if HAVE_PTHREADS < 7
33752 status = pthread_attr_setdetachstate(&attr, &detach);
33753 if( status < 0 ) status = errno;
33755 status = pthread_attr_setdetachstate(&attr, detach);
33757 if( status ) return status;
33758 status = pthread_create( &t, &attr, task, NULL );
33759 #if HAVE_PTHREADS < 7
33760 if( status < 0 ) status = errno;
33762 if( status ) return status;
33764 /* Draft 4 pthreads */
33765 status = pthread_create( &t, pthread_attr_default, task, NULL );
33766 if( status ) return errno;
33768 /* give thread a chance to complete */
33769 /* it should remain joinable and hence detachable */
33772 status = pthread_detach( &t );
33773 if( status ) return errno;
33776 #ifdef HAVE_LINUX_THREADS
33777 pthread_kill_other_threads_np();
33785 rm -f conftest$ac_exeext
33786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33787 (eval $ac_link) 2>&5
33789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33790 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33792 (eval $ac_try) 2>&5
33794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33795 (exit $ac_status); }; }; then
33796 ol_cv_pthread_lpthreads_lexc=yes
33798 echo "$as_me: program exited with status $ac_status" >&5
33799 echo "$as_me: failed program was:" >&5
33800 sed 's/^/| /' conftest.$ac_ext >&5
33802 ( exit $ac_status )
33803 ol_cv_pthread_lpthreads_lexc=no
33805 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33812 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
33813 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
33815 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
33816 ol_link_pthreads="-lpthreads -lexc"
33817 ol_link_threads=posix
33822 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
33823 if test "$ol_link_threads" = no ; then
33825 echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
33826 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
33827 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
33828 echo $ECHO_N "(cached) $ECHO_C" >&6
33833 LIBS="-lpthreads $LIBS"
33835 if test "$cross_compiling" = yes; then
33836 cat >conftest.$ac_ext <<_ACEOF
33839 cat confdefs.h >>conftest.$ac_ext
33840 cat >>conftest.$ac_ext <<_ACEOF
33841 /* end confdefs.h. */
33842 /* pthread test headers */
33843 #include <pthread.h>
33844 #if HAVE_PTHREADS < 7
33848 #define NULL (void*)0
33851 static void *task(p)
33854 return (void *) (p == NULL);
33861 /* pthread test function */
33862 #ifndef PTHREAD_CREATE_DETACHED
33863 #define PTHREAD_CREATE_DETACHED 1
33867 int detach = PTHREAD_CREATE_DETACHED;
33869 #if HAVE_PTHREADS > 4
33870 /* Final pthreads */
33871 pthread_attr_t attr;
33873 status = pthread_attr_init(&attr);
33874 if( status ) return status;
33876 #if HAVE_PTHREADS < 7
33877 status = pthread_attr_setdetachstate(&attr, &detach);
33878 if( status < 0 ) status = errno;
33880 status = pthread_attr_setdetachstate(&attr, detach);
33882 if( status ) return status;
33883 status = pthread_create( &t, &attr, task, NULL );
33884 #if HAVE_PTHREADS < 7
33885 if( status < 0 ) status = errno;
33887 if( status ) return status;
33889 /* Draft 4 pthreads */
33890 status = pthread_create( &t, pthread_attr_default, task, NULL );
33891 if( status ) return errno;
33893 /* give thread a chance to complete */
33894 /* it should remain joinable and hence detachable */
33897 status = pthread_detach( &t );
33898 if( status ) return errno;
33901 #ifdef HAVE_LINUX_THREADS
33902 pthread_kill_other_threads_np();
33911 rm -f conftest.$ac_objext conftest$ac_exeext
33912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33913 (eval $ac_link) 2>conftest.er1
33915 grep -v '^ *+' conftest.er1 >conftest.err
33917 cat conftest.err >&5
33918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33919 (exit $ac_status); } &&
33920 { ac_try='test -z "$ac_c_werror_flag"
33921 || test ! -s conftest.err'
33922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33923 (eval $ac_try) 2>&5
33925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33926 (exit $ac_status); }; } &&
33927 { ac_try='test -s conftest$ac_exeext'
33928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33929 (eval $ac_try) 2>&5
33931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33932 (exit $ac_status); }; }; then
33933 ol_cv_pthread_lib_lpthreads=yes
33935 echo "$as_me: failed program was:" >&5
33936 sed 's/^/| /' conftest.$ac_ext >&5
33938 ol_cv_pthread_lib_lpthreads=no
33940 rm -f conftest.err conftest.$ac_objext \
33941 conftest$ac_exeext conftest.$ac_ext
33943 cat >conftest.$ac_ext <<_ACEOF
33946 cat confdefs.h >>conftest.$ac_ext
33947 cat >>conftest.$ac_ext <<_ACEOF
33948 /* end confdefs.h. */
33949 /* pthread test headers */
33950 #include <pthread.h>
33951 #if HAVE_PTHREADS < 7
33955 #define NULL (void*)0
33958 static void *task(p)
33961 return (void *) (p == NULL);
33965 int main(argc, argv)
33970 /* pthread test function */
33971 #ifndef PTHREAD_CREATE_DETACHED
33972 #define PTHREAD_CREATE_DETACHED 1
33976 int detach = PTHREAD_CREATE_DETACHED;
33978 #if HAVE_PTHREADS > 4
33979 /* Final pthreads */
33980 pthread_attr_t attr;
33982 status = pthread_attr_init(&attr);
33983 if( status ) return status;
33985 #if HAVE_PTHREADS < 7
33986 status = pthread_attr_setdetachstate(&attr, &detach);
33987 if( status < 0 ) status = errno;
33989 status = pthread_attr_setdetachstate(&attr, detach);
33991 if( status ) return status;
33992 status = pthread_create( &t, &attr, task, NULL );
33993 #if HAVE_PTHREADS < 7
33994 if( status < 0 ) status = errno;
33996 if( status ) return status;
33998 /* Draft 4 pthreads */
33999 status = pthread_create( &t, pthread_attr_default, task, NULL );
34000 if( status ) return errno;
34002 /* give thread a chance to complete */
34003 /* it should remain joinable and hence detachable */
34006 status = pthread_detach( &t );
34007 if( status ) return errno;
34010 #ifdef HAVE_LINUX_THREADS
34011 pthread_kill_other_threads_np();
34019 rm -f conftest$ac_exeext
34020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34021 (eval $ac_link) 2>&5
34023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34024 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34026 (eval $ac_try) 2>&5
34028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34029 (exit $ac_status); }; }; then
34030 ol_cv_pthread_lib_lpthreads=yes
34032 echo "$as_me: program exited with status $ac_status" >&5
34033 echo "$as_me: failed program was:" >&5
34034 sed 's/^/| /' conftest.$ac_ext >&5
34036 ( exit $ac_status )
34037 ol_cv_pthread_lib_lpthreads=no
34039 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34046 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
34047 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
34049 if test $ol_cv_pthread_lib_lpthreads = yes ; then
34050 ol_link_pthreads="-lpthreads"
34051 ol_link_threads=posix
34056 if test $ol_link_threads != no ; then
34057 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
34059 save_CPPFLAGS="$CPPFLAGS"
34061 LIBS="$LTHREAD_LIBS $LIBS"
34066 for ac_func in sched_yield pthread_yield thr_yield
34068 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34069 echo "$as_me:$LINENO: checking for $ac_func" >&5
34070 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34071 if eval "test \"\${$as_ac_var+set}\" = set"; then
34072 echo $ECHO_N "(cached) $ECHO_C" >&6
34074 cat >conftest.$ac_ext <<_ACEOF
34077 cat confdefs.h >>conftest.$ac_ext
34078 cat >>conftest.$ac_ext <<_ACEOF
34079 /* end confdefs.h. */
34080 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34081 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34082 #define $ac_func innocuous_$ac_func
34084 /* System header to define __stub macros and hopefully few prototypes,
34085 which can conflict with char $ac_func (); below.
34086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34087 <limits.h> exists even on freestanding compilers. */
34090 # include <limits.h>
34092 # include <assert.h>
34097 /* Override any gcc2 internal prototype to avoid an error. */
34102 /* We use char because int might match the return type of a gcc2
34103 builtin and then its argument prototype would still apply. */
34105 /* The GNU C library defines this for functions which it implements
34106 to always fail with ENOSYS. Some functions are actually named
34107 something starting with __ and the normal name is an alias. */
34108 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34111 char (*f) () = $ac_func;
34120 return f != $ac_func;
34125 rm -f conftest.$ac_objext conftest$ac_exeext
34126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34127 (eval $ac_link) 2>conftest.er1
34129 grep -v '^ *+' conftest.er1 >conftest.err
34131 cat conftest.err >&5
34132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34133 (exit $ac_status); } &&
34134 { ac_try='test -z "$ac_c_werror_flag"
34135 || test ! -s conftest.err'
34136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34137 (eval $ac_try) 2>&5
34139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34140 (exit $ac_status); }; } &&
34141 { ac_try='test -s conftest$ac_exeext'
34142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34143 (eval $ac_try) 2>&5
34145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34146 (exit $ac_status); }; }; then
34147 eval "$as_ac_var=yes"
34149 echo "$as_me: failed program was:" >&5
34150 sed 's/^/| /' conftest.$ac_ext >&5
34152 eval "$as_ac_var=no"
34154 rm -f conftest.err conftest.$ac_objext \
34155 conftest$ac_exeext conftest.$ac_ext
34157 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34158 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34159 if test `eval echo '${'$as_ac_var'}'` = yes; then
34160 cat >>confdefs.h <<_ACEOF
34161 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34168 if test $ac_cv_func_sched_yield = no -a \
34169 $ac_cv_func_pthread_yield = no -a \
34170 $ac_cv_func_thr_yield = no ; then
34171 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
34172 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
34173 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
34174 echo $ECHO_N "(cached) $ECHO_C" >&6
34176 ac_check_lib_save_LIBS=$LIBS
34178 cat >conftest.$ac_ext <<_ACEOF
34181 cat confdefs.h >>conftest.$ac_ext
34182 cat >>conftest.$ac_ext <<_ACEOF
34183 /* end confdefs.h. */
34185 /* Override any gcc2 internal prototype to avoid an error. */
34189 /* We use char because int might match the return type of a gcc2
34190 builtin and then its argument prototype would still apply. */
34191 char sched_yield ();
34200 rm -f conftest.$ac_objext conftest$ac_exeext
34201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34202 (eval $ac_link) 2>conftest.er1
34204 grep -v '^ *+' conftest.er1 >conftest.err
34206 cat conftest.err >&5
34207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34208 (exit $ac_status); } &&
34209 { ac_try='test -z "$ac_c_werror_flag"
34210 || test ! -s conftest.err'
34211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34212 (eval $ac_try) 2>&5
34214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34215 (exit $ac_status); }; } &&
34216 { ac_try='test -s conftest$ac_exeext'
34217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34218 (eval $ac_try) 2>&5
34220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34221 (exit $ac_status); }; }; then
34222 ac_cv_lib_rt_sched_yield=yes
34224 echo "$as_me: failed program was:" >&5
34225 sed 's/^/| /' conftest.$ac_ext >&5
34227 ac_cv_lib_rt_sched_yield=no
34229 rm -f conftest.err conftest.$ac_objext \
34230 conftest$ac_exeext conftest.$ac_ext
34231 LIBS=$ac_check_lib_save_LIBS
34233 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
34234 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
34235 if test $ac_cv_lib_rt_sched_yield = yes; then
34236 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
34238 cat >>confdefs.h <<\_ACEOF
34239 #define HAVE_SCHED_YIELD 1
34242 ac_cv_func_sched_yield=yes
34244 ac_cv_func_sched_yield=no
34248 if test $ac_cv_func_sched_yield = no -a \
34249 $ac_cv_func_pthread_yield = no -a \
34250 "$ac_cv_func_thr_yield" = no ; then
34251 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
34252 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
34257 for ac_func in pthread_kill pthread_rwlock_destroy
34259 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34260 echo "$as_me:$LINENO: checking for $ac_func" >&5
34261 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34262 if eval "test \"\${$as_ac_var+set}\" = set"; then
34263 echo $ECHO_N "(cached) $ECHO_C" >&6
34265 cat >conftest.$ac_ext <<_ACEOF
34268 cat confdefs.h >>conftest.$ac_ext
34269 cat >>conftest.$ac_ext <<_ACEOF
34270 /* end confdefs.h. */
34271 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34272 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34273 #define $ac_func innocuous_$ac_func
34275 /* System header to define __stub macros and hopefully few prototypes,
34276 which can conflict with char $ac_func (); below.
34277 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34278 <limits.h> exists even on freestanding compilers. */
34281 # include <limits.h>
34283 # include <assert.h>
34288 /* Override any gcc2 internal prototype to avoid an error. */
34293 /* We use char because int might match the return type of a gcc2
34294 builtin and then its argument prototype would still apply. */
34296 /* The GNU C library defines this for functions which it implements
34297 to always fail with ENOSYS. Some functions are actually named
34298 something starting with __ and the normal name is an alias. */
34299 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34302 char (*f) () = $ac_func;
34311 return f != $ac_func;
34316 rm -f conftest.$ac_objext conftest$ac_exeext
34317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34318 (eval $ac_link) 2>conftest.er1
34320 grep -v '^ *+' conftest.er1 >conftest.err
34322 cat conftest.err >&5
34323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34324 (exit $ac_status); } &&
34325 { ac_try='test -z "$ac_c_werror_flag"
34326 || test ! -s conftest.err'
34327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34328 (eval $ac_try) 2>&5
34330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34331 (exit $ac_status); }; } &&
34332 { ac_try='test -s conftest$ac_exeext'
34333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34334 (eval $ac_try) 2>&5
34336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34337 (exit $ac_status); }; }; then
34338 eval "$as_ac_var=yes"
34340 echo "$as_me: failed program was:" >&5
34341 sed 's/^/| /' conftest.$ac_ext >&5
34343 eval "$as_ac_var=no"
34345 rm -f conftest.err conftest.$ac_objext \
34346 conftest$ac_exeext conftest.$ac_ext
34348 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34349 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34350 if test `eval echo '${'$as_ac_var'}'` = yes; then
34351 cat >>confdefs.h <<_ACEOF
34352 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34359 echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
34360 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
34361 if test "${ol_cv_func_pthread_detach+set}" = set; then
34362 echo $ECHO_N "(cached) $ECHO_C" >&6
34365 cat >conftest.$ac_ext <<_ACEOF
34368 cat confdefs.h >>conftest.$ac_ext
34369 cat >>conftest.$ac_ext <<_ACEOF
34370 /* end confdefs.h. */
34372 #include <pthread.h>
34374 #define NULL (void*)0
34380 pthread_detach(NULL);
34385 rm -f conftest.$ac_objext conftest$ac_exeext
34386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34387 (eval $ac_link) 2>conftest.er1
34389 grep -v '^ *+' conftest.er1 >conftest.err
34391 cat conftest.err >&5
34392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34393 (exit $ac_status); } &&
34394 { ac_try='test -z "$ac_c_werror_flag"
34395 || test ! -s conftest.err'
34396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34397 (eval $ac_try) 2>&5
34399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34400 (exit $ac_status); }; } &&
34401 { ac_try='test -s conftest$ac_exeext'
34402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34403 (eval $ac_try) 2>&5
34405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34406 (exit $ac_status); }; }; then
34407 ol_cv_func_pthread_detach=yes
34409 echo "$as_me: failed program was:" >&5
34410 sed 's/^/| /' conftest.$ac_ext >&5
34412 ol_cv_func_pthread_detach=no
34414 rm -f conftest.err conftest.$ac_objext \
34415 conftest$ac_exeext conftest.$ac_ext
34418 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
34419 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
34421 if test $ol_cv_func_pthread_detach = no ; then
34422 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
34423 echo "$as_me: error: could not locate pthread_detach()" >&2;}
34424 { (exit 1); exit 1; }; }
34428 cat >>confdefs.h <<\_ACEOF
34429 #define HAVE_PTHREAD_DETACH 1
34438 pthread_setconcurrency \
34439 pthread_getconcurrency \
34440 thr_setconcurrency \
34441 thr_getconcurrency \
34444 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34445 echo "$as_me:$LINENO: checking for $ac_func" >&5
34446 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34447 if eval "test \"\${$as_ac_var+set}\" = set"; then
34448 echo $ECHO_N "(cached) $ECHO_C" >&6
34450 cat >conftest.$ac_ext <<_ACEOF
34453 cat confdefs.h >>conftest.$ac_ext
34454 cat >>conftest.$ac_ext <<_ACEOF
34455 /* end confdefs.h. */
34456 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34457 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34458 #define $ac_func innocuous_$ac_func
34460 /* System header to define __stub macros and hopefully few prototypes,
34461 which can conflict with char $ac_func (); below.
34462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34463 <limits.h> exists even on freestanding compilers. */
34466 # include <limits.h>
34468 # include <assert.h>
34473 /* Override any gcc2 internal prototype to avoid an error. */
34478 /* We use char because int might match the return type of a gcc2
34479 builtin and then its argument prototype would still apply. */
34481 /* The GNU C library defines this for functions which it implements
34482 to always fail with ENOSYS. Some functions are actually named
34483 something starting with __ and the normal name is an alias. */
34484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34487 char (*f) () = $ac_func;
34496 return f != $ac_func;
34501 rm -f conftest.$ac_objext conftest$ac_exeext
34502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34503 (eval $ac_link) 2>conftest.er1
34505 grep -v '^ *+' conftest.er1 >conftest.err
34507 cat conftest.err >&5
34508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34509 (exit $ac_status); } &&
34510 { ac_try='test -z "$ac_c_werror_flag"
34511 || test ! -s conftest.err'
34512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34513 (eval $ac_try) 2>&5
34515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34516 (exit $ac_status); }; } &&
34517 { ac_try='test -s conftest$ac_exeext'
34518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34519 (eval $ac_try) 2>&5
34521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34522 (exit $ac_status); }; }; then
34523 eval "$as_ac_var=yes"
34525 echo "$as_me: failed program was:" >&5
34526 sed 's/^/| /' conftest.$ac_ext >&5
34528 eval "$as_ac_var=no"
34530 rm -f conftest.err conftest.$ac_objext \
34531 conftest$ac_exeext conftest.$ac_ext
34533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34534 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34535 if test `eval echo '${'$as_ac_var'}'` = yes; then
34536 cat >>confdefs.h <<_ACEOF
34537 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34546 for ac_func in pthread_kill_other_threads_np
34548 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34549 echo "$as_me:$LINENO: checking for $ac_func" >&5
34550 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34551 if eval "test \"\${$as_ac_var+set}\" = set"; then
34552 echo $ECHO_N "(cached) $ECHO_C" >&6
34554 cat >conftest.$ac_ext <<_ACEOF
34557 cat confdefs.h >>conftest.$ac_ext
34558 cat >>conftest.$ac_ext <<_ACEOF
34559 /* end confdefs.h. */
34560 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34561 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34562 #define $ac_func innocuous_$ac_func
34564 /* System header to define __stub macros and hopefully few prototypes,
34565 which can conflict with char $ac_func (); below.
34566 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34567 <limits.h> exists even on freestanding compilers. */
34570 # include <limits.h>
34572 # include <assert.h>
34577 /* Override any gcc2 internal prototype to avoid an error. */
34582 /* We use char because int might match the return type of a gcc2
34583 builtin and then its argument prototype would still apply. */
34585 /* The GNU C library defines this for functions which it implements
34586 to always fail with ENOSYS. Some functions are actually named
34587 something starting with __ and the normal name is an alias. */
34588 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34591 char (*f) () = $ac_func;
34600 return f != $ac_func;
34605 rm -f conftest.$ac_objext conftest$ac_exeext
34606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34607 (eval $ac_link) 2>conftest.er1
34609 grep -v '^ *+' conftest.er1 >conftest.err
34611 cat conftest.err >&5
34612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34613 (exit $ac_status); } &&
34614 { ac_try='test -z "$ac_c_werror_flag"
34615 || test ! -s conftest.err'
34616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34617 (eval $ac_try) 2>&5
34619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34620 (exit $ac_status); }; } &&
34621 { ac_try='test -s conftest$ac_exeext'
34622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34623 (eval $ac_try) 2>&5
34625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34626 (exit $ac_status); }; }; then
34627 eval "$as_ac_var=yes"
34629 echo "$as_me: failed program was:" >&5
34630 sed 's/^/| /' conftest.$ac_ext >&5
34632 eval "$as_ac_var=no"
34634 rm -f conftest.err conftest.$ac_objext \
34635 conftest$ac_exeext conftest.$ac_ext
34637 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34638 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34639 if test `eval echo '${'$as_ac_var'}'` = yes; then
34640 cat >>confdefs.h <<_ACEOF
34641 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34647 echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
34648 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
34649 if test "${ol_cv_sys_linux_threads+set}" = set; then
34650 echo $ECHO_N "(cached) $ECHO_C" >&6
34652 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
34654 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
34655 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
34660 echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
34661 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
34662 if test "${ol_cv_linux_threads+set}" = set; then
34663 echo $ECHO_N "(cached) $ECHO_C" >&6
34666 if test $ol_cv_header_linux_threads = yes -a \
34667 $ol_cv_sys_linux_threads = yes; then
34668 ol_cv_linux_threads=yes
34669 elif test $ol_cv_header_linux_threads = no -a \
34670 $ol_cv_sys_linux_threads = no; then
34671 ol_cv_linux_threads=no
34673 ol_cv_linux_threads=error
34677 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
34678 echo "${ECHO_T}$ol_cv_linux_threads" >&6
34681 if test $ol_cv_linux_threads = error; then
34682 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
34683 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
34684 { (exit 1); exit 1; }; };
34687 echo "$as_me:$LINENO: checking if pthread_create() works" >&5
34688 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
34689 if test "${ol_cv_pthread_create_works+set}" = set; then
34690 echo $ECHO_N "(cached) $ECHO_C" >&6
34693 if test "$cross_compiling" = yes; then
34694 ol_cv_pthread_create_works=yes
34696 cat >conftest.$ac_ext <<_ACEOF
34699 cat confdefs.h >>conftest.$ac_ext
34700 cat >>conftest.$ac_ext <<_ACEOF
34701 /* end confdefs.h. */
34702 /* pthread test headers */
34703 #include <pthread.h>
34704 #if HAVE_PTHREADS < 7
34708 #define NULL (void*)0
34711 static void *task(p)
34714 return (void *) (p == NULL);
34718 int main(argc, argv)
34723 /* pthread test function */
34724 #ifndef PTHREAD_CREATE_DETACHED
34725 #define PTHREAD_CREATE_DETACHED 1
34729 int detach = PTHREAD_CREATE_DETACHED;
34731 #if HAVE_PTHREADS > 4
34732 /* Final pthreads */
34733 pthread_attr_t attr;
34735 status = pthread_attr_init(&attr);
34736 if( status ) return status;
34738 #if HAVE_PTHREADS < 7
34739 status = pthread_attr_setdetachstate(&attr, &detach);
34740 if( status < 0 ) status = errno;
34742 status = pthread_attr_setdetachstate(&attr, detach);
34744 if( status ) return status;
34745 status = pthread_create( &t, &attr, task, NULL );
34746 #if HAVE_PTHREADS < 7
34747 if( status < 0 ) status = errno;
34749 if( status ) return status;
34751 /* Draft 4 pthreads */
34752 status = pthread_create( &t, pthread_attr_default, task, NULL );
34753 if( status ) return errno;
34755 /* give thread a chance to complete */
34756 /* it should remain joinable and hence detachable */
34759 status = pthread_detach( &t );
34760 if( status ) return errno;
34763 #ifdef HAVE_LINUX_THREADS
34764 pthread_kill_other_threads_np();
34772 rm -f conftest$ac_exeext
34773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34774 (eval $ac_link) 2>&5
34776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34777 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34779 (eval $ac_try) 2>&5
34781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34782 (exit $ac_status); }; }; then
34783 ol_cv_pthread_create_works=yes
34785 echo "$as_me: program exited with status $ac_status" >&5
34786 echo "$as_me: failed program was:" >&5
34787 sed 's/^/| /' conftest.$ac_ext >&5
34789 ( exit $ac_status )
34790 ol_cv_pthread_create_works=no
34792 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34795 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
34796 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
34798 if test $ol_cv_pthread_create_works = no ; then
34799 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
34800 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
34801 { (exit 1); exit 1; }; }
34804 if test $ol_with_yielding_select = auto ; then
34805 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
34806 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
34807 if test "${ol_cv_pthread_select_yields+set}" = set; then
34808 echo $ECHO_N "(cached) $ECHO_C" >&6
34811 if test "$cross_compiling" = yes; then
34812 ol_cv_pthread_select_yields=cross
34814 cat >conftest.$ac_ext <<_ACEOF
34817 cat confdefs.h >>conftest.$ac_ext
34818 cat >>conftest.$ac_ext <<_ACEOF
34819 /* end confdefs.h. */
34821 #include <sys/types.h>
34822 #include <sys/time.h>
34823 #include <unistd.h>
34824 #include <pthread.h>
34826 #define NULL (void*) 0
34829 static int fildes[2];
34831 static void *task(p)
34843 FD_SET(fildes[0], &rfds);
34845 /* we're not interested in any fds */
34846 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
34853 exit(0); /* if we exit here, the select blocked the whole process */
34856 int main(argc, argv)
34862 /* create a pipe to select */
34863 if(pipe(&fildes[0])) {
34868 #ifdef HAVE_PTHREAD_SETCONCURRENCY
34869 (void) pthread_setconcurrency(2);
34871 #ifdef HAVE_THR_SETCONCURRENCY
34872 /* Set Solaris LWP concurrency to 2 */
34873 thr_setconcurrency(2);
34877 #if HAVE_PTHREADS < 6
34878 pthread_create(&t, pthread_attr_default, task, NULL);
34880 pthread_create(&t, NULL, task, NULL);
34883 /* make sure task runs first */
34886 #elif defined( HAVE_SCHED_YIELD )
34888 #elif defined( HAVE_PTHREAD_YIELD )
34895 rm -f conftest$ac_exeext
34896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34897 (eval $ac_link) 2>&5
34899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34900 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34902 (eval $ac_try) 2>&5
34904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34905 (exit $ac_status); }; }; then
34906 ol_cv_pthread_select_yields=no
34908 echo "$as_me: program exited with status $ac_status" >&5
34909 echo "$as_me: failed program was:" >&5
34910 sed 's/^/| /' conftest.$ac_ext >&5
34912 ( exit $ac_status )
34913 ol_cv_pthread_select_yields=yes
34915 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34918 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
34919 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
34921 if test $ol_cv_pthread_select_yields = cross ; then
34922 { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
34923 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
34924 { (exit 1); exit 1; }; }
34927 if test $ol_cv_pthread_select_yields = yes ; then
34928 ol_with_yielding_select=yes
34932 CPPFLAGS="$save_CPPFLAGS"
34935 { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
34936 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
34937 { (exit 1); exit 1; }; }
34941 if test $ol_with_threads = posix ; then
34942 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
34943 echo "$as_me: error: could not locate POSIX Threads" >&2;}
34944 { (exit 1); exit 1; }; }
34948 if test $ol_with_threads = auto -o $ol_with_threads = yes \
34949 -o $ol_with_threads = mach ; then
34953 for ac_header in mach/cthreads.h cthreads.h
34955 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34956 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34957 echo "$as_me:$LINENO: checking for $ac_header" >&5
34958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34959 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34960 echo $ECHO_N "(cached) $ECHO_C" >&6
34962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34963 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34965 # Is the header compilable?
34966 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34967 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34968 cat >conftest.$ac_ext <<_ACEOF
34971 cat confdefs.h >>conftest.$ac_ext
34972 cat >>conftest.$ac_ext <<_ACEOF
34973 /* end confdefs.h. */
34974 $ac_includes_default
34975 #include <$ac_header>
34977 rm -f conftest.$ac_objext
34978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34979 (eval $ac_compile) 2>conftest.er1
34981 grep -v '^ *+' conftest.er1 >conftest.err
34983 cat conftest.err >&5
34984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34985 (exit $ac_status); } &&
34986 { ac_try='test -z "$ac_c_werror_flag"
34987 || test ! -s conftest.err'
34988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34989 (eval $ac_try) 2>&5
34991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34992 (exit $ac_status); }; } &&
34993 { ac_try='test -s conftest.$ac_objext'
34994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34995 (eval $ac_try) 2>&5
34997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34998 (exit $ac_status); }; }; then
34999 ac_header_compiler=yes
35001 echo "$as_me: failed program was:" >&5
35002 sed 's/^/| /' conftest.$ac_ext >&5
35004 ac_header_compiler=no
35006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35007 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35008 echo "${ECHO_T}$ac_header_compiler" >&6
35010 # Is the header present?
35011 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35012 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35013 cat >conftest.$ac_ext <<_ACEOF
35016 cat confdefs.h >>conftest.$ac_ext
35017 cat >>conftest.$ac_ext <<_ACEOF
35018 /* end confdefs.h. */
35019 #include <$ac_header>
35021 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35022 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35024 grep -v '^ *+' conftest.er1 >conftest.err
35026 cat conftest.err >&5
35027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35028 (exit $ac_status); } >/dev/null; then
35029 if test -s conftest.err; then
35030 ac_cpp_err=$ac_c_preproc_warn_flag
35031 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35038 if test -z "$ac_cpp_err"; then
35039 ac_header_preproc=yes
35041 echo "$as_me: failed program was:" >&5
35042 sed 's/^/| /' conftest.$ac_ext >&5
35044 ac_header_preproc=no
35046 rm -f conftest.err conftest.$ac_ext
35047 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35048 echo "${ECHO_T}$ac_header_preproc" >&6
35050 # So? What about this header?
35051 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35053 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35054 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35056 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35057 ac_header_preproc=yes
35060 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35061 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35062 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35063 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35064 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35065 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35066 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35067 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35069 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35070 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35071 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35074 ## ------------------------------------------ ##
35075 ## Report this to the AC_PACKAGE_NAME lists. ##
35076 ## ------------------------------------------ ##
35079 sed "s/^/$as_me: WARNING: /" >&2
35082 echo "$as_me:$LINENO: checking for $ac_header" >&5
35083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35085 echo $ECHO_N "(cached) $ECHO_C" >&6
35087 eval "$as_ac_Header=\$ac_header_preproc"
35089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35090 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35093 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35094 cat >>confdefs.h <<_ACEOF
35095 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35102 if test $ac_cv_header_mach_cthreads_h = yes ; then
35103 ol_with_threads=found
35105 echo "$as_me:$LINENO: checking for cthread_fork" >&5
35106 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
35107 if test "${ac_cv_func_cthread_fork+set}" = set; then
35108 echo $ECHO_N "(cached) $ECHO_C" >&6
35110 cat >conftest.$ac_ext <<_ACEOF
35113 cat confdefs.h >>conftest.$ac_ext
35114 cat >>conftest.$ac_ext <<_ACEOF
35115 /* end confdefs.h. */
35116 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
35117 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35118 #define cthread_fork innocuous_cthread_fork
35120 /* System header to define __stub macros and hopefully few prototypes,
35121 which can conflict with char cthread_fork (); below.
35122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35123 <limits.h> exists even on freestanding compilers. */
35126 # include <limits.h>
35128 # include <assert.h>
35131 #undef cthread_fork
35133 /* Override any gcc2 internal prototype to avoid an error. */
35138 /* We use char because int might match the return type of a gcc2
35139 builtin and then its argument prototype would still apply. */
35140 char cthread_fork ();
35141 /* The GNU C library defines this for functions which it implements
35142 to always fail with ENOSYS. Some functions are actually named
35143 something starting with __ and the normal name is an alias. */
35144 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
35147 char (*f) () = cthread_fork;
35156 return f != cthread_fork;
35161 rm -f conftest.$ac_objext conftest$ac_exeext
35162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35163 (eval $ac_link) 2>conftest.er1
35165 grep -v '^ *+' conftest.er1 >conftest.err
35167 cat conftest.err >&5
35168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35169 (exit $ac_status); } &&
35170 { ac_try='test -z "$ac_c_werror_flag"
35171 || test ! -s conftest.err'
35172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35173 (eval $ac_try) 2>&5
35175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35176 (exit $ac_status); }; } &&
35177 { ac_try='test -s conftest$ac_exeext'
35178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35179 (eval $ac_try) 2>&5
35181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35182 (exit $ac_status); }; }; then
35183 ac_cv_func_cthread_fork=yes
35185 echo "$as_me: failed program was:" >&5
35186 sed 's/^/| /' conftest.$ac_ext >&5
35188 ac_cv_func_cthread_fork=no
35190 rm -f conftest.err conftest.$ac_objext \
35191 conftest$ac_exeext conftest.$ac_ext
35193 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
35194 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
35195 if test $ac_cv_func_cthread_fork = yes; then
35196 ol_link_threads=yes
35200 if test $ol_link_threads = no ; then
35201 echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
35202 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
35203 if test "${ol_cv_cthread_all_load+set}" = set; then
35204 echo $ECHO_N "(cached) $ECHO_C" >&6
35208 LIBS="-all_load $LIBS"
35209 cat >conftest.$ac_ext <<_ACEOF
35212 cat confdefs.h >>conftest.$ac_ext
35213 cat >>conftest.$ac_ext <<_ACEOF
35214 /* end confdefs.h. */
35215 #include <mach/cthreads.h>
35220 cthread_fork((void *)0, (void *)0);
35226 rm -f conftest.$ac_objext conftest$ac_exeext
35227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35228 (eval $ac_link) 2>conftest.er1
35230 grep -v '^ *+' conftest.er1 >conftest.err
35232 cat conftest.err >&5
35233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35234 (exit $ac_status); } &&
35235 { ac_try='test -z "$ac_c_werror_flag"
35236 || test ! -s conftest.err'
35237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35238 (eval $ac_try) 2>&5
35240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35241 (exit $ac_status); }; } &&
35242 { ac_try='test -s conftest$ac_exeext'
35243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35244 (eval $ac_try) 2>&5
35246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35247 (exit $ac_status); }; }; then
35248 ol_cv_cthread_all_load=yes
35250 echo "$as_me: failed program was:" >&5
35251 sed 's/^/| /' conftest.$ac_ext >&5
35253 ol_cv_cthread_all_load=no
35255 rm -f conftest.err conftest.$ac_objext \
35256 conftest$ac_exeext conftest.$ac_ext
35260 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
35261 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
35263 if test $ol_cv_cthread_all_load = yes ; then
35264 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
35265 ol_link_threads=mach
35266 ol_with_threads=found
35270 elif test $ac_cv_header_cthreads_h = yes ; then
35272 ol_with_threads=found
35275 LIBS="$LIBS -lthreads"
35276 echo "$as_me:$LINENO: checking for cthread_fork" >&5
35277 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
35278 if test "${ac_cv_func_cthread_fork+set}" = set; then
35279 echo $ECHO_N "(cached) $ECHO_C" >&6
35281 cat >conftest.$ac_ext <<_ACEOF
35284 cat confdefs.h >>conftest.$ac_ext
35285 cat >>conftest.$ac_ext <<_ACEOF
35286 /* end confdefs.h. */
35287 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
35288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35289 #define cthread_fork innocuous_cthread_fork
35291 /* System header to define __stub macros and hopefully few prototypes,
35292 which can conflict with char cthread_fork (); below.
35293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35294 <limits.h> exists even on freestanding compilers. */
35297 # include <limits.h>
35299 # include <assert.h>
35302 #undef cthread_fork
35304 /* Override any gcc2 internal prototype to avoid an error. */
35309 /* We use char because int might match the return type of a gcc2
35310 builtin and then its argument prototype would still apply. */
35311 char cthread_fork ();
35312 /* The GNU C library defines this for functions which it implements
35313 to always fail with ENOSYS. Some functions are actually named
35314 something starting with __ and the normal name is an alias. */
35315 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
35318 char (*f) () = cthread_fork;
35327 return f != cthread_fork;
35332 rm -f conftest.$ac_objext conftest$ac_exeext
35333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35334 (eval $ac_link) 2>conftest.er1
35336 grep -v '^ *+' conftest.er1 >conftest.err
35338 cat conftest.err >&5
35339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35340 (exit $ac_status); } &&
35341 { ac_try='test -z "$ac_c_werror_flag"
35342 || test ! -s conftest.err'
35343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35344 (eval $ac_try) 2>&5
35346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35347 (exit $ac_status); }; } &&
35348 { ac_try='test -s conftest$ac_exeext'
35349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35350 (eval $ac_try) 2>&5
35352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35353 (exit $ac_status); }; }; then
35354 ac_cv_func_cthread_fork=yes
35356 echo "$as_me: failed program was:" >&5
35357 sed 's/^/| /' conftest.$ac_ext >&5
35359 ac_cv_func_cthread_fork=no
35361 rm -f conftest.err conftest.$ac_objext \
35362 conftest$ac_exeext conftest.$ac_ext
35364 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
35365 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
35366 if test $ac_cv_func_cthread_fork = yes; then
35367 ol_link_threads=yes
35372 if test $ol_link_threads = yes ; then
35373 LTHREAD_LIBS="-lthreads"
35374 ol_link_threads=mach
35375 ol_with_threads=found
35377 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
35378 echo "$as_me: error: could not link with Mach CThreads" >&2;}
35379 { (exit 1); exit 1; }; }
35382 elif test $ol_with_threads = mach ; then
35383 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
35384 echo "$as_me: error: could not locate Mach CThreads" >&2;}
35385 { (exit 1); exit 1; }; }
35388 if test $ol_link_threads = mach ; then
35390 cat >>confdefs.h <<\_ACEOF
35391 #define HAVE_MACH_CTHREADS 1
35394 elif test $ol_with_threads = found ; then
35395 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
35396 echo "$as_me: error: could not link with Mach CThreads" >&2;}
35397 { (exit 1); exit 1; }; }
35401 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35402 -o $ol_with_threads = pth ; then
35405 for ac_header in pth.h
35407 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35408 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35409 echo "$as_me:$LINENO: checking for $ac_header" >&5
35410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35412 echo $ECHO_N "(cached) $ECHO_C" >&6
35414 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35415 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35417 # Is the header compilable?
35418 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35419 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35420 cat >conftest.$ac_ext <<_ACEOF
35423 cat confdefs.h >>conftest.$ac_ext
35424 cat >>conftest.$ac_ext <<_ACEOF
35425 /* end confdefs.h. */
35426 $ac_includes_default
35427 #include <$ac_header>
35429 rm -f conftest.$ac_objext
35430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35431 (eval $ac_compile) 2>conftest.er1
35433 grep -v '^ *+' conftest.er1 >conftest.err
35435 cat conftest.err >&5
35436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35437 (exit $ac_status); } &&
35438 { ac_try='test -z "$ac_c_werror_flag"
35439 || test ! -s conftest.err'
35440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35441 (eval $ac_try) 2>&5
35443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35444 (exit $ac_status); }; } &&
35445 { ac_try='test -s conftest.$ac_objext'
35446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35447 (eval $ac_try) 2>&5
35449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35450 (exit $ac_status); }; }; then
35451 ac_header_compiler=yes
35453 echo "$as_me: failed program was:" >&5
35454 sed 's/^/| /' conftest.$ac_ext >&5
35456 ac_header_compiler=no
35458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35459 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35460 echo "${ECHO_T}$ac_header_compiler" >&6
35462 # Is the header present?
35463 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35464 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35465 cat >conftest.$ac_ext <<_ACEOF
35468 cat confdefs.h >>conftest.$ac_ext
35469 cat >>conftest.$ac_ext <<_ACEOF
35470 /* end confdefs.h. */
35471 #include <$ac_header>
35473 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35474 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35476 grep -v '^ *+' conftest.er1 >conftest.err
35478 cat conftest.err >&5
35479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35480 (exit $ac_status); } >/dev/null; then
35481 if test -s conftest.err; then
35482 ac_cpp_err=$ac_c_preproc_warn_flag
35483 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35490 if test -z "$ac_cpp_err"; then
35491 ac_header_preproc=yes
35493 echo "$as_me: failed program was:" >&5
35494 sed 's/^/| /' conftest.$ac_ext >&5
35496 ac_header_preproc=no
35498 rm -f conftest.err conftest.$ac_ext
35499 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35500 echo "${ECHO_T}$ac_header_preproc" >&6
35502 # So? What about this header?
35503 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35505 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35506 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35507 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35508 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35509 ac_header_preproc=yes
35512 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35513 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35514 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35515 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35516 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35517 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35518 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35519 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35520 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35521 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35522 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35523 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35526 ## ------------------------------------------ ##
35527 ## Report this to the AC_PACKAGE_NAME lists. ##
35528 ## ------------------------------------------ ##
35531 sed "s/^/$as_me: WARNING: /" >&2
35534 echo "$as_me:$LINENO: checking for $ac_header" >&5
35535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35536 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35537 echo $ECHO_N "(cached) $ECHO_C" >&6
35539 eval "$as_ac_Header=\$ac_header_preproc"
35541 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35542 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35545 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35546 cat >>confdefs.h <<_ACEOF
35547 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35555 if test $ac_cv_header_pth_h = yes ; then
35556 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
35557 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
35558 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
35559 echo $ECHO_N "(cached) $ECHO_C" >&6
35561 ac_check_lib_save_LIBS=$LIBS
35563 cat >conftest.$ac_ext <<_ACEOF
35566 cat confdefs.h >>conftest.$ac_ext
35567 cat >>conftest.$ac_ext <<_ACEOF
35568 /* end confdefs.h. */
35570 /* Override any gcc2 internal prototype to avoid an error. */
35574 /* We use char because int might match the return type of a gcc2
35575 builtin and then its argument prototype would still apply. */
35576 char pth_version ();
35585 rm -f conftest.$ac_objext conftest$ac_exeext
35586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35587 (eval $ac_link) 2>conftest.er1
35589 grep -v '^ *+' conftest.er1 >conftest.err
35591 cat conftest.err >&5
35592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35593 (exit $ac_status); } &&
35594 { ac_try='test -z "$ac_c_werror_flag"
35595 || test ! -s conftest.err'
35596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35597 (eval $ac_try) 2>&5
35599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35600 (exit $ac_status); }; } &&
35601 { ac_try='test -s conftest$ac_exeext'
35602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35603 (eval $ac_try) 2>&5
35605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35606 (exit $ac_status); }; }; then
35607 ac_cv_lib_pth_pth_version=yes
35609 echo "$as_me: failed program was:" >&5
35610 sed 's/^/| /' conftest.$ac_ext >&5
35612 ac_cv_lib_pth_pth_version=no
35614 rm -f conftest.err conftest.$ac_objext \
35615 conftest$ac_exeext conftest.$ac_ext
35616 LIBS=$ac_check_lib_save_LIBS
35618 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
35619 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
35620 if test $ac_cv_lib_pth_pth_version = yes; then
35627 if test $have_pth = yes ; then
35629 cat >>confdefs.h <<\_ACEOF
35630 #define HAVE_GNU_PTH 1
35633 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
35634 ol_link_threads=pth
35635 ol_with_threads=found
35637 if test $ol_with_yielding_select = auto ; then
35638 ol_with_yielding_select=yes
35644 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35645 -o $ol_with_threads = lwp ; then
35649 for ac_header in thread.h synch.h
35651 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35652 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35653 echo "$as_me:$LINENO: checking for $ac_header" >&5
35654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35655 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35656 echo $ECHO_N "(cached) $ECHO_C" >&6
35658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35659 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35661 # Is the header compilable?
35662 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35663 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35664 cat >conftest.$ac_ext <<_ACEOF
35667 cat confdefs.h >>conftest.$ac_ext
35668 cat >>conftest.$ac_ext <<_ACEOF
35669 /* end confdefs.h. */
35670 $ac_includes_default
35671 #include <$ac_header>
35673 rm -f conftest.$ac_objext
35674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35675 (eval $ac_compile) 2>conftest.er1
35677 grep -v '^ *+' conftest.er1 >conftest.err
35679 cat conftest.err >&5
35680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35681 (exit $ac_status); } &&
35682 { ac_try='test -z "$ac_c_werror_flag"
35683 || test ! -s conftest.err'
35684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35685 (eval $ac_try) 2>&5
35687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35688 (exit $ac_status); }; } &&
35689 { ac_try='test -s conftest.$ac_objext'
35690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35691 (eval $ac_try) 2>&5
35693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35694 (exit $ac_status); }; }; then
35695 ac_header_compiler=yes
35697 echo "$as_me: failed program was:" >&5
35698 sed 's/^/| /' conftest.$ac_ext >&5
35700 ac_header_compiler=no
35702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35703 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35704 echo "${ECHO_T}$ac_header_compiler" >&6
35706 # Is the header present?
35707 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35708 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35709 cat >conftest.$ac_ext <<_ACEOF
35712 cat confdefs.h >>conftest.$ac_ext
35713 cat >>conftest.$ac_ext <<_ACEOF
35714 /* end confdefs.h. */
35715 #include <$ac_header>
35717 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35718 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35720 grep -v '^ *+' conftest.er1 >conftest.err
35722 cat conftest.err >&5
35723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35724 (exit $ac_status); } >/dev/null; then
35725 if test -s conftest.err; then
35726 ac_cpp_err=$ac_c_preproc_warn_flag
35727 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35734 if test -z "$ac_cpp_err"; then
35735 ac_header_preproc=yes
35737 echo "$as_me: failed program was:" >&5
35738 sed 's/^/| /' conftest.$ac_ext >&5
35740 ac_header_preproc=no
35742 rm -f conftest.err conftest.$ac_ext
35743 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35744 echo "${ECHO_T}$ac_header_preproc" >&6
35746 # So? What about this header?
35747 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35749 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35750 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35752 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35753 ac_header_preproc=yes
35756 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35757 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35758 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35759 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35760 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35761 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35762 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35763 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35765 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35766 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35767 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35770 ## ------------------------------------------ ##
35771 ## Report this to the AC_PACKAGE_NAME lists. ##
35772 ## ------------------------------------------ ##
35775 sed "s/^/$as_me: WARNING: /" >&2
35778 echo "$as_me:$LINENO: checking for $ac_header" >&5
35779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35780 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35781 echo $ECHO_N "(cached) $ECHO_C" >&6
35783 eval "$as_ac_Header=\$ac_header_preproc"
35785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35786 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35789 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35790 cat >>confdefs.h <<_ACEOF
35791 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35798 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
35799 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
35800 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
35801 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
35802 echo $ECHO_N "(cached) $ECHO_C" >&6
35804 ac_check_lib_save_LIBS=$LIBS
35805 LIBS="-lthread $LIBS"
35806 cat >conftest.$ac_ext <<_ACEOF
35809 cat confdefs.h >>conftest.$ac_ext
35810 cat >>conftest.$ac_ext <<_ACEOF
35811 /* end confdefs.h. */
35813 /* Override any gcc2 internal prototype to avoid an error. */
35817 /* We use char because int might match the return type of a gcc2
35818 builtin and then its argument prototype would still apply. */
35819 char thr_create ();
35828 rm -f conftest.$ac_objext conftest$ac_exeext
35829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35830 (eval $ac_link) 2>conftest.er1
35832 grep -v '^ *+' conftest.er1 >conftest.err
35834 cat conftest.err >&5
35835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35836 (exit $ac_status); } &&
35837 { ac_try='test -z "$ac_c_werror_flag"
35838 || test ! -s conftest.err'
35839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35840 (eval $ac_try) 2>&5
35842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35843 (exit $ac_status); }; } &&
35844 { ac_try='test -s conftest$ac_exeext'
35845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35846 (eval $ac_try) 2>&5
35848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35849 (exit $ac_status); }; }; then
35850 ac_cv_lib_thread_thr_create=yes
35852 echo "$as_me: failed program was:" >&5
35853 sed 's/^/| /' conftest.$ac_ext >&5
35855 ac_cv_lib_thread_thr_create=no
35857 rm -f conftest.err conftest.$ac_objext \
35858 conftest$ac_exeext conftest.$ac_ext
35859 LIBS=$ac_check_lib_save_LIBS
35861 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
35862 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
35863 if test $ac_cv_lib_thread_thr_create = yes; then
35870 if test $have_thr = yes ; then
35872 cat >>confdefs.h <<\_ACEOF
35876 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
35877 ol_link_threads=thr
35879 if test $ol_with_yielding_select = auto ; then
35880 ol_with_yielding_select=yes
35886 thr_setconcurrency \
35887 thr_getconcurrency \
35890 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35891 echo "$as_me:$LINENO: checking for $ac_func" >&5
35892 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35893 if eval "test \"\${$as_ac_var+set}\" = set"; then
35894 echo $ECHO_N "(cached) $ECHO_C" >&6
35896 cat >conftest.$ac_ext <<_ACEOF
35899 cat confdefs.h >>conftest.$ac_ext
35900 cat >>conftest.$ac_ext <<_ACEOF
35901 /* end confdefs.h. */
35902 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35904 #define $ac_func innocuous_$ac_func
35906 /* System header to define __stub macros and hopefully few prototypes,
35907 which can conflict with char $ac_func (); below.
35908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35909 <limits.h> exists even on freestanding compilers. */
35912 # include <limits.h>
35914 # include <assert.h>
35919 /* Override any gcc2 internal prototype to avoid an error. */
35924 /* We use char because int might match the return type of a gcc2
35925 builtin and then its argument prototype would still apply. */
35927 /* The GNU C library defines this for functions which it implements
35928 to always fail with ENOSYS. Some functions are actually named
35929 something starting with __ and the normal name is an alias. */
35930 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35933 char (*f) () = $ac_func;
35942 return f != $ac_func;
35947 rm -f conftest.$ac_objext conftest$ac_exeext
35948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35949 (eval $ac_link) 2>conftest.er1
35951 grep -v '^ *+' conftest.er1 >conftest.err
35953 cat conftest.err >&5
35954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35955 (exit $ac_status); } &&
35956 { ac_try='test -z "$ac_c_werror_flag"
35957 || test ! -s conftest.err'
35958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35959 (eval $ac_try) 2>&5
35961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35962 (exit $ac_status); }; } &&
35963 { ac_try='test -s conftest$ac_exeext'
35964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35965 (eval $ac_try) 2>&5
35967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35968 (exit $ac_status); }; }; then
35969 eval "$as_ac_var=yes"
35971 echo "$as_me: failed program was:" >&5
35972 sed 's/^/| /' conftest.$ac_ext >&5
35974 eval "$as_ac_var=no"
35976 rm -f conftest.err conftest.$ac_objext \
35977 conftest$ac_exeext conftest.$ac_ext
35979 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35980 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35981 if test `eval echo '${'$as_ac_var'}'` = yes; then
35982 cat >>confdefs.h <<_ACEOF
35983 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35993 for ac_header in lwp/lwp.h
35995 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35997 echo "$as_me:$LINENO: checking for $ac_header" >&5
35998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35999 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36000 echo $ECHO_N "(cached) $ECHO_C" >&6
36002 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36003 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36005 # Is the header compilable?
36006 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36007 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36008 cat >conftest.$ac_ext <<_ACEOF
36011 cat confdefs.h >>conftest.$ac_ext
36012 cat >>conftest.$ac_ext <<_ACEOF
36013 /* end confdefs.h. */
36014 $ac_includes_default
36015 #include <$ac_header>
36017 rm -f conftest.$ac_objext
36018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36019 (eval $ac_compile) 2>conftest.er1
36021 grep -v '^ *+' conftest.er1 >conftest.err
36023 cat conftest.err >&5
36024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36025 (exit $ac_status); } &&
36026 { ac_try='test -z "$ac_c_werror_flag"
36027 || test ! -s conftest.err'
36028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36029 (eval $ac_try) 2>&5
36031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36032 (exit $ac_status); }; } &&
36033 { ac_try='test -s conftest.$ac_objext'
36034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36035 (eval $ac_try) 2>&5
36037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36038 (exit $ac_status); }; }; then
36039 ac_header_compiler=yes
36041 echo "$as_me: failed program was:" >&5
36042 sed 's/^/| /' conftest.$ac_ext >&5
36044 ac_header_compiler=no
36046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36047 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36048 echo "${ECHO_T}$ac_header_compiler" >&6
36050 # Is the header present?
36051 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36052 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36053 cat >conftest.$ac_ext <<_ACEOF
36056 cat confdefs.h >>conftest.$ac_ext
36057 cat >>conftest.$ac_ext <<_ACEOF
36058 /* end confdefs.h. */
36059 #include <$ac_header>
36061 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36062 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36064 grep -v '^ *+' conftest.er1 >conftest.err
36066 cat conftest.err >&5
36067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36068 (exit $ac_status); } >/dev/null; then
36069 if test -s conftest.err; then
36070 ac_cpp_err=$ac_c_preproc_warn_flag
36071 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36078 if test -z "$ac_cpp_err"; then
36079 ac_header_preproc=yes
36081 echo "$as_me: failed program was:" >&5
36082 sed 's/^/| /' conftest.$ac_ext >&5
36084 ac_header_preproc=no
36086 rm -f conftest.err conftest.$ac_ext
36087 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36088 echo "${ECHO_T}$ac_header_preproc" >&6
36090 # So? What about this header?
36091 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36093 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36094 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36095 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36096 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36097 ac_header_preproc=yes
36100 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36101 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36102 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36103 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36104 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36105 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36106 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36107 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36109 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36110 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36111 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36114 ## ------------------------------------------ ##
36115 ## Report this to the AC_PACKAGE_NAME lists. ##
36116 ## ------------------------------------------ ##
36119 sed "s/^/$as_me: WARNING: /" >&2
36122 echo "$as_me:$LINENO: checking for $ac_header" >&5
36123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36125 echo $ECHO_N "(cached) $ECHO_C" >&6
36127 eval "$as_ac_Header=\$ac_header_preproc"
36129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36130 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36133 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36134 cat >>confdefs.h <<_ACEOF
36135 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36142 if test $ac_cv_header_lwp_lwp_h = yes ; then
36143 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
36144 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
36145 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
36146 echo $ECHO_N "(cached) $ECHO_C" >&6
36148 ac_check_lib_save_LIBS=$LIBS
36150 cat >conftest.$ac_ext <<_ACEOF
36153 cat confdefs.h >>conftest.$ac_ext
36154 cat >>conftest.$ac_ext <<_ACEOF
36155 /* end confdefs.h. */
36157 /* Override any gcc2 internal prototype to avoid an error. */
36161 /* We use char because int might match the return type of a gcc2
36162 builtin and then its argument prototype would still apply. */
36163 char lwp_create ();
36172 rm -f conftest.$ac_objext conftest$ac_exeext
36173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36174 (eval $ac_link) 2>conftest.er1
36176 grep -v '^ *+' conftest.er1 >conftest.err
36178 cat conftest.err >&5
36179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36180 (exit $ac_status); } &&
36181 { ac_try='test -z "$ac_c_werror_flag"
36182 || test ! -s conftest.err'
36183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36184 (eval $ac_try) 2>&5
36186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36187 (exit $ac_status); }; } &&
36188 { ac_try='test -s conftest$ac_exeext'
36189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36190 (eval $ac_try) 2>&5
36192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36193 (exit $ac_status); }; }; then
36194 ac_cv_lib_lwp_lwp_create=yes
36196 echo "$as_me: failed program was:" >&5
36197 sed 's/^/| /' conftest.$ac_ext >&5
36199 ac_cv_lib_lwp_lwp_create=no
36201 rm -f conftest.err conftest.$ac_objext \
36202 conftest$ac_exeext conftest.$ac_ext
36203 LIBS=$ac_check_lib_save_LIBS
36205 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
36206 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
36207 if test $ac_cv_lib_lwp_lwp_create = yes; then
36214 if test $have_lwp = yes ; then
36216 cat >>confdefs.h <<\_ACEOF
36220 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
36221 ol_link_threads=lwp
36223 if test $ol_with_yielding_select = auto ; then
36224 ol_with_yielding_select=no
36230 if test $ol_with_yielding_select = yes ; then
36232 cat >>confdefs.h <<\_ACEOF
36233 #define HAVE_YIELDING_SELECT 1
36238 if test $ol_with_threads = manual ; then
36239 ol_link_threads=yes
36241 { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
36242 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
36246 for ac_header in pthread.h sched.h
36248 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36250 echo "$as_me:$LINENO: checking for $ac_header" >&5
36251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36253 echo $ECHO_N "(cached) $ECHO_C" >&6
36255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36256 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36258 # Is the header compilable?
36259 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36260 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36261 cat >conftest.$ac_ext <<_ACEOF
36264 cat confdefs.h >>conftest.$ac_ext
36265 cat >>conftest.$ac_ext <<_ACEOF
36266 /* end confdefs.h. */
36267 $ac_includes_default
36268 #include <$ac_header>
36270 rm -f conftest.$ac_objext
36271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36272 (eval $ac_compile) 2>conftest.er1
36274 grep -v '^ *+' conftest.er1 >conftest.err
36276 cat conftest.err >&5
36277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36278 (exit $ac_status); } &&
36279 { ac_try='test -z "$ac_c_werror_flag"
36280 || test ! -s conftest.err'
36281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36282 (eval $ac_try) 2>&5
36284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36285 (exit $ac_status); }; } &&
36286 { ac_try='test -s conftest.$ac_objext'
36287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36288 (eval $ac_try) 2>&5
36290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36291 (exit $ac_status); }; }; then
36292 ac_header_compiler=yes
36294 echo "$as_me: failed program was:" >&5
36295 sed 's/^/| /' conftest.$ac_ext >&5
36297 ac_header_compiler=no
36299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36300 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36301 echo "${ECHO_T}$ac_header_compiler" >&6
36303 # Is the header present?
36304 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36305 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36306 cat >conftest.$ac_ext <<_ACEOF
36309 cat confdefs.h >>conftest.$ac_ext
36310 cat >>conftest.$ac_ext <<_ACEOF
36311 /* end confdefs.h. */
36312 #include <$ac_header>
36314 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36315 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36317 grep -v '^ *+' conftest.er1 >conftest.err
36319 cat conftest.err >&5
36320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36321 (exit $ac_status); } >/dev/null; then
36322 if test -s conftest.err; then
36323 ac_cpp_err=$ac_c_preproc_warn_flag
36324 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36331 if test -z "$ac_cpp_err"; then
36332 ac_header_preproc=yes
36334 echo "$as_me: failed program was:" >&5
36335 sed 's/^/| /' conftest.$ac_ext >&5
36337 ac_header_preproc=no
36339 rm -f conftest.err conftest.$ac_ext
36340 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36341 echo "${ECHO_T}$ac_header_preproc" >&6
36343 # So? What about this header?
36344 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36346 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36347 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36349 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36350 ac_header_preproc=yes
36353 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36354 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36355 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36356 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36357 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36358 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36359 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36360 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36361 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36362 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36363 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36364 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36367 ## ------------------------------------------ ##
36368 ## Report this to the AC_PACKAGE_NAME lists. ##
36369 ## ------------------------------------------ ##
36372 sed "s/^/$as_me: WARNING: /" >&2
36375 echo "$as_me:$LINENO: checking for $ac_header" >&5
36376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36377 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36378 echo $ECHO_N "(cached) $ECHO_C" >&6
36380 eval "$as_ac_Header=\$ac_header_preproc"
36382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36383 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36386 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36387 cat >>confdefs.h <<_ACEOF
36388 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36397 for ac_func in sched_yield pthread_yield
36399 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36400 echo "$as_me:$LINENO: checking for $ac_func" >&5
36401 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36402 if eval "test \"\${$as_ac_var+set}\" = set"; then
36403 echo $ECHO_N "(cached) $ECHO_C" >&6
36405 cat >conftest.$ac_ext <<_ACEOF
36408 cat confdefs.h >>conftest.$ac_ext
36409 cat >>conftest.$ac_ext <<_ACEOF
36410 /* end confdefs.h. */
36411 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36412 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36413 #define $ac_func innocuous_$ac_func
36415 /* System header to define __stub macros and hopefully few prototypes,
36416 which can conflict with char $ac_func (); below.
36417 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36418 <limits.h> exists even on freestanding compilers. */
36421 # include <limits.h>
36423 # include <assert.h>
36428 /* Override any gcc2 internal prototype to avoid an error. */
36433 /* We use char because int might match the return type of a gcc2
36434 builtin and then its argument prototype would still apply. */
36436 /* The GNU C library defines this for functions which it implements
36437 to always fail with ENOSYS. Some functions are actually named
36438 something starting with __ and the normal name is an alias. */
36439 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36442 char (*f) () = $ac_func;
36451 return f != $ac_func;
36456 rm -f conftest.$ac_objext conftest$ac_exeext
36457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36458 (eval $ac_link) 2>conftest.er1
36460 grep -v '^ *+' conftest.er1 >conftest.err
36462 cat conftest.err >&5
36463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36464 (exit $ac_status); } &&
36465 { ac_try='test -z "$ac_c_werror_flag"
36466 || test ! -s conftest.err'
36467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36468 (eval $ac_try) 2>&5
36470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36471 (exit $ac_status); }; } &&
36472 { ac_try='test -s conftest$ac_exeext'
36473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36474 (eval $ac_try) 2>&5
36476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36477 (exit $ac_status); }; }; then
36478 eval "$as_ac_var=yes"
36480 echo "$as_me: failed program was:" >&5
36481 sed 's/^/| /' conftest.$ac_ext >&5
36483 eval "$as_ac_var=no"
36485 rm -f conftest.err conftest.$ac_objext \
36486 conftest$ac_exeext conftest.$ac_ext
36488 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36489 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36490 if test `eval echo '${'$as_ac_var'}'` = yes; then
36491 cat >>confdefs.h <<_ACEOF
36492 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36499 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
36500 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
36501 if test "${ol_cv_header_linux_threads+set}" = set; then
36502 echo $ECHO_N "(cached) $ECHO_C" >&6
36504 cat >conftest.$ac_ext <<_ACEOF
36507 cat confdefs.h >>conftest.$ac_ext
36508 cat >>conftest.$ac_ext <<_ACEOF
36509 /* end confdefs.h. */
36510 #include <pthread.h>
36512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36513 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
36514 ol_cv_header_linux_threads=yes
36516 ol_cv_header_linux_threads=no
36522 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
36523 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
36524 if test $ol_cv_header_linux_threads = yes; then
36526 cat >>confdefs.h <<\_ACEOF
36527 #define HAVE_LINUX_THREADS 1
36534 for ac_header in mach/cthreads.h
36536 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36538 echo "$as_me:$LINENO: checking for $ac_header" >&5
36539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36540 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36541 echo $ECHO_N "(cached) $ECHO_C" >&6
36543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36544 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36546 # Is the header compilable?
36547 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36548 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36549 cat >conftest.$ac_ext <<_ACEOF
36552 cat confdefs.h >>conftest.$ac_ext
36553 cat >>conftest.$ac_ext <<_ACEOF
36554 /* end confdefs.h. */
36555 $ac_includes_default
36556 #include <$ac_header>
36558 rm -f conftest.$ac_objext
36559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36560 (eval $ac_compile) 2>conftest.er1
36562 grep -v '^ *+' conftest.er1 >conftest.err
36564 cat conftest.err >&5
36565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36566 (exit $ac_status); } &&
36567 { ac_try='test -z "$ac_c_werror_flag"
36568 || test ! -s conftest.err'
36569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36570 (eval $ac_try) 2>&5
36572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36573 (exit $ac_status); }; } &&
36574 { ac_try='test -s conftest.$ac_objext'
36575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36576 (eval $ac_try) 2>&5
36578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36579 (exit $ac_status); }; }; then
36580 ac_header_compiler=yes
36582 echo "$as_me: failed program was:" >&5
36583 sed 's/^/| /' conftest.$ac_ext >&5
36585 ac_header_compiler=no
36587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36588 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36589 echo "${ECHO_T}$ac_header_compiler" >&6
36591 # Is the header present?
36592 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36593 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36594 cat >conftest.$ac_ext <<_ACEOF
36597 cat confdefs.h >>conftest.$ac_ext
36598 cat >>conftest.$ac_ext <<_ACEOF
36599 /* end confdefs.h. */
36600 #include <$ac_header>
36602 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36603 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36605 grep -v '^ *+' conftest.er1 >conftest.err
36607 cat conftest.err >&5
36608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36609 (exit $ac_status); } >/dev/null; then
36610 if test -s conftest.err; then
36611 ac_cpp_err=$ac_c_preproc_warn_flag
36612 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36619 if test -z "$ac_cpp_err"; then
36620 ac_header_preproc=yes
36622 echo "$as_me: failed program was:" >&5
36623 sed 's/^/| /' conftest.$ac_ext >&5
36625 ac_header_preproc=no
36627 rm -f conftest.err conftest.$ac_ext
36628 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36629 echo "${ECHO_T}$ac_header_preproc" >&6
36631 # So? What about this header?
36632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36634 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36635 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36636 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36637 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36638 ac_header_preproc=yes
36641 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36642 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36643 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36644 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36645 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36646 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36647 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36648 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36649 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36650 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36651 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36652 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36655 ## ------------------------------------------ ##
36656 ## Report this to the AC_PACKAGE_NAME lists. ##
36657 ## ------------------------------------------ ##
36660 sed "s/^/$as_me: WARNING: /" >&2
36663 echo "$as_me:$LINENO: checking for $ac_header" >&5
36664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36665 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36666 echo $ECHO_N "(cached) $ECHO_C" >&6
36668 eval "$as_ac_Header=\$ac_header_preproc"
36670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36671 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36674 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36675 cat >>confdefs.h <<_ACEOF
36676 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36684 for ac_header in lwp/lwp.h
36686 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36688 echo "$as_me:$LINENO: checking for $ac_header" >&5
36689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36691 echo $ECHO_N "(cached) $ECHO_C" >&6
36693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36694 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36696 # Is the header compilable?
36697 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36698 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36699 cat >conftest.$ac_ext <<_ACEOF
36702 cat confdefs.h >>conftest.$ac_ext
36703 cat >>conftest.$ac_ext <<_ACEOF
36704 /* end confdefs.h. */
36705 $ac_includes_default
36706 #include <$ac_header>
36708 rm -f conftest.$ac_objext
36709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36710 (eval $ac_compile) 2>conftest.er1
36712 grep -v '^ *+' conftest.er1 >conftest.err
36714 cat conftest.err >&5
36715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36716 (exit $ac_status); } &&
36717 { ac_try='test -z "$ac_c_werror_flag"
36718 || test ! -s conftest.err'
36719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36720 (eval $ac_try) 2>&5
36722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36723 (exit $ac_status); }; } &&
36724 { ac_try='test -s conftest.$ac_objext'
36725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36726 (eval $ac_try) 2>&5
36728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36729 (exit $ac_status); }; }; then
36730 ac_header_compiler=yes
36732 echo "$as_me: failed program was:" >&5
36733 sed 's/^/| /' conftest.$ac_ext >&5
36735 ac_header_compiler=no
36737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36738 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36739 echo "${ECHO_T}$ac_header_compiler" >&6
36741 # Is the header present?
36742 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36743 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36744 cat >conftest.$ac_ext <<_ACEOF
36747 cat confdefs.h >>conftest.$ac_ext
36748 cat >>conftest.$ac_ext <<_ACEOF
36749 /* end confdefs.h. */
36750 #include <$ac_header>
36752 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36753 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36755 grep -v '^ *+' conftest.er1 >conftest.err
36757 cat conftest.err >&5
36758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36759 (exit $ac_status); } >/dev/null; then
36760 if test -s conftest.err; then
36761 ac_cpp_err=$ac_c_preproc_warn_flag
36762 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36769 if test -z "$ac_cpp_err"; then
36770 ac_header_preproc=yes
36772 echo "$as_me: failed program was:" >&5
36773 sed 's/^/| /' conftest.$ac_ext >&5
36775 ac_header_preproc=no
36777 rm -f conftest.err conftest.$ac_ext
36778 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36779 echo "${ECHO_T}$ac_header_preproc" >&6
36781 # So? What about this header?
36782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36784 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36785 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36787 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36788 ac_header_preproc=yes
36791 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36792 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36793 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36794 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36795 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36796 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36797 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36798 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36801 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36802 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36805 ## ------------------------------------------ ##
36806 ## Report this to the AC_PACKAGE_NAME lists. ##
36807 ## ------------------------------------------ ##
36810 sed "s/^/$as_me: WARNING: /" >&2
36813 echo "$as_me:$LINENO: checking for $ac_header" >&5
36814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36816 echo $ECHO_N "(cached) $ECHO_C" >&6
36818 eval "$as_ac_Header=\$ac_header_preproc"
36820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36821 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36824 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36825 cat >>confdefs.h <<_ACEOF
36826 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36835 for ac_header in thread.h synch.h
36837 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36838 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36839 echo "$as_me:$LINENO: checking for $ac_header" >&5
36840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36842 echo $ECHO_N "(cached) $ECHO_C" >&6
36844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36845 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36847 # Is the header compilable?
36848 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36849 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36850 cat >conftest.$ac_ext <<_ACEOF
36853 cat confdefs.h >>conftest.$ac_ext
36854 cat >>conftest.$ac_ext <<_ACEOF
36855 /* end confdefs.h. */
36856 $ac_includes_default
36857 #include <$ac_header>
36859 rm -f conftest.$ac_objext
36860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36861 (eval $ac_compile) 2>conftest.er1
36863 grep -v '^ *+' conftest.er1 >conftest.err
36865 cat conftest.err >&5
36866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36867 (exit $ac_status); } &&
36868 { ac_try='test -z "$ac_c_werror_flag"
36869 || test ! -s conftest.err'
36870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36871 (eval $ac_try) 2>&5
36873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36874 (exit $ac_status); }; } &&
36875 { ac_try='test -s conftest.$ac_objext'
36876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36877 (eval $ac_try) 2>&5
36879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36880 (exit $ac_status); }; }; then
36881 ac_header_compiler=yes
36883 echo "$as_me: failed program was:" >&5
36884 sed 's/^/| /' conftest.$ac_ext >&5
36886 ac_header_compiler=no
36888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36889 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36890 echo "${ECHO_T}$ac_header_compiler" >&6
36892 # Is the header present?
36893 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36894 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36895 cat >conftest.$ac_ext <<_ACEOF
36898 cat confdefs.h >>conftest.$ac_ext
36899 cat >>conftest.$ac_ext <<_ACEOF
36900 /* end confdefs.h. */
36901 #include <$ac_header>
36903 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36904 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36906 grep -v '^ *+' conftest.er1 >conftest.err
36908 cat conftest.err >&5
36909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36910 (exit $ac_status); } >/dev/null; then
36911 if test -s conftest.err; then
36912 ac_cpp_err=$ac_c_preproc_warn_flag
36913 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36920 if test -z "$ac_cpp_err"; then
36921 ac_header_preproc=yes
36923 echo "$as_me: failed program was:" >&5
36924 sed 's/^/| /' conftest.$ac_ext >&5
36926 ac_header_preproc=no
36928 rm -f conftest.err conftest.$ac_ext
36929 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36930 echo "${ECHO_T}$ac_header_preproc" >&6
36932 # So? What about this header?
36933 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36935 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36936 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36937 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36938 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36939 ac_header_preproc=yes
36942 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36943 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36944 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36945 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36946 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36947 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36948 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36949 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36950 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36951 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36952 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36953 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36956 ## ------------------------------------------ ##
36957 ## Report this to the AC_PACKAGE_NAME lists. ##
36958 ## ------------------------------------------ ##
36961 sed "s/^/$as_me: WARNING: /" >&2
36964 echo "$as_me:$LINENO: checking for $ac_header" >&5
36965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36967 echo $ECHO_N "(cached) $ECHO_C" >&6
36969 eval "$as_ac_Header=\$ac_header_preproc"
36971 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36972 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36975 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36976 cat >>confdefs.h <<_ACEOF
36977 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36986 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
36987 cat >>confdefs.h <<\_ACEOF
36988 #define REENTRANT 1
36991 cat >>confdefs.h <<\_ACEOF
36992 #define _REENTRANT 1
36995 cat >>confdefs.h <<\_ACEOF
36996 #define THREAD_SAFE 1
36999 cat >>confdefs.h <<\_ACEOF
37000 #define _THREAD_SAFE 1
37003 cat >>confdefs.h <<\_ACEOF
37004 #define THREADSAFE 1
37007 cat >>confdefs.h <<\_ACEOF
37008 #define _THREADSAFE 1
37011 cat >>confdefs.h <<\_ACEOF
37012 #define _SGI_MP_SOURCE 1
37016 echo "$as_me:$LINENO: checking for thread specific errno" >&5
37017 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
37018 if test "${ol_cv_errno_thread_specific+set}" = set; then
37019 echo $ECHO_N "(cached) $ECHO_C" >&6
37022 cat >conftest.$ac_ext <<_ACEOF
37025 cat confdefs.h >>conftest.$ac_ext
37026 cat >>conftest.$ac_ext <<_ACEOF
37027 /* end confdefs.h. */
37037 rm -f conftest.$ac_objext conftest$ac_exeext
37038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37039 (eval $ac_link) 2>conftest.er1
37041 grep -v '^ *+' conftest.er1 >conftest.err
37043 cat conftest.err >&5
37044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37045 (exit $ac_status); } &&
37046 { ac_try='test -z "$ac_c_werror_flag"
37047 || test ! -s conftest.err'
37048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37049 (eval $ac_try) 2>&5
37051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37052 (exit $ac_status); }; } &&
37053 { ac_try='test -s conftest$ac_exeext'
37054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37055 (eval $ac_try) 2>&5
37057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37058 (exit $ac_status); }; }; then
37059 ol_cv_errno_thread_specific=yes
37061 echo "$as_me: failed program was:" >&5
37062 sed 's/^/| /' conftest.$ac_ext >&5
37064 ol_cv_errno_thread_specific=no
37066 rm -f conftest.err conftest.$ac_objext \
37067 conftest$ac_exeext conftest.$ac_ext
37070 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
37071 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
37073 echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
37074 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
37075 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
37076 echo $ECHO_N "(cached) $ECHO_C" >&6
37079 cat >conftest.$ac_ext <<_ACEOF
37082 cat confdefs.h >>conftest.$ac_ext
37083 cat >>conftest.$ac_ext <<_ACEOF
37084 /* end confdefs.h. */
37094 rm -f conftest.$ac_objext conftest$ac_exeext
37095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37096 (eval $ac_link) 2>conftest.er1
37098 grep -v '^ *+' conftest.er1 >conftest.err
37100 cat conftest.err >&5
37101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37102 (exit $ac_status); } &&
37103 { ac_try='test -z "$ac_c_werror_flag"
37104 || test ! -s conftest.err'
37105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37106 (eval $ac_try) 2>&5
37108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37109 (exit $ac_status); }; } &&
37110 { ac_try='test -s conftest$ac_exeext'
37111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37112 (eval $ac_try) 2>&5
37114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37115 (exit $ac_status); }; }; then
37116 ol_cv_h_errno_thread_specific=yes
37118 echo "$as_me: failed program was:" >&5
37119 sed 's/^/| /' conftest.$ac_ext >&5
37121 ol_cv_h_errno_thread_specific=no
37123 rm -f conftest.err conftest.$ac_objext \
37124 conftest$ac_exeext conftest.$ac_ext
37127 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
37128 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
37130 if test $ol_cv_errno_thread_specific != yes \
37131 -o $ol_cv_h_errno_thread_specific != yes ; then
37132 LIBS="$LTHREAD_LIBS $LIBS"
37138 if test $ol_link_threads = no ; then
37139 if test $ol_with_threads = yes ; then
37140 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
37141 echo "$as_me: error: no suitable thread support" >&2;}
37142 { (exit 1); exit 1; }; }
37145 if test $ol_with_threads = auto ; then
37146 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
37147 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
37152 cat >>confdefs.h <<\_ACEOF
37153 #define NO_THREADS 1
37159 if test $ol_link_threads != no ; then
37160 cat >>confdefs.h <<\_ACEOF
37161 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
37171 gethostbyname_r gethostbyaddr_r \
37174 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37175 echo "$as_me:$LINENO: checking for $ac_func" >&5
37176 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37177 if eval "test \"\${$as_ac_var+set}\" = set"; then
37178 echo $ECHO_N "(cached) $ECHO_C" >&6
37180 cat >conftest.$ac_ext <<_ACEOF
37183 cat confdefs.h >>conftest.$ac_ext
37184 cat >>conftest.$ac_ext <<_ACEOF
37185 /* end confdefs.h. */
37186 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37187 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37188 #define $ac_func innocuous_$ac_func
37190 /* System header to define __stub macros and hopefully few prototypes,
37191 which can conflict with char $ac_func (); below.
37192 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37193 <limits.h> exists even on freestanding compilers. */
37196 # include <limits.h>
37198 # include <assert.h>
37203 /* Override any gcc2 internal prototype to avoid an error. */
37208 /* We use char because int might match the return type of a gcc2
37209 builtin and then its argument prototype would still apply. */
37211 /* The GNU C library defines this for functions which it implements
37212 to always fail with ENOSYS. Some functions are actually named
37213 something starting with __ and the normal name is an alias. */
37214 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37217 char (*f) () = $ac_func;
37226 return f != $ac_func;
37231 rm -f conftest.$ac_objext conftest$ac_exeext
37232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37233 (eval $ac_link) 2>conftest.er1
37235 grep -v '^ *+' conftest.er1 >conftest.err
37237 cat conftest.err >&5
37238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37239 (exit $ac_status); } &&
37240 { ac_try='test -z "$ac_c_werror_flag"
37241 || test ! -s conftest.err'
37242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37243 (eval $ac_try) 2>&5
37245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37246 (exit $ac_status); }; } &&
37247 { ac_try='test -s conftest$ac_exeext'
37248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37249 (eval $ac_try) 2>&5
37251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37252 (exit $ac_status); }; }; then
37253 eval "$as_ac_var=yes"
37255 echo "$as_me: failed program was:" >&5
37256 sed 's/^/| /' conftest.$ac_ext >&5
37258 eval "$as_ac_var=no"
37260 rm -f conftest.err conftest.$ac_objext \
37261 conftest$ac_exeext conftest.$ac_ext
37263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37264 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37265 if test `eval echo '${'$as_ac_var'}'` = yes; then
37266 cat >>confdefs.h <<_ACEOF
37267 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37274 if test "$ac_cv_func_ctime_r" = no ; then
37275 ol_cv_func_ctime_r_nargs=0
37277 echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
37278 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
37279 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
37280 echo $ECHO_N "(cached) $ECHO_C" >&6
37282 cat >conftest.$ac_ext <<_ACEOF
37285 cat confdefs.h >>conftest.$ac_ext
37286 cat >>conftest.$ac_ext <<_ACEOF
37287 /* end confdefs.h. */
37292 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
37297 rm -f conftest.$ac_objext
37298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37299 (eval $ac_compile) 2>conftest.er1
37301 grep -v '^ *+' conftest.er1 >conftest.err
37303 cat conftest.err >&5
37304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37305 (exit $ac_status); } &&
37306 { ac_try='test -z "$ac_c_werror_flag"
37307 || test ! -s conftest.err'
37308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37309 (eval $ac_try) 2>&5
37311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37312 (exit $ac_status); }; } &&
37313 { ac_try='test -s conftest.$ac_objext'
37314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37315 (eval $ac_try) 2>&5
37317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37318 (exit $ac_status); }; }; then
37319 ol_cv_func_ctime_r_nargs3=yes
37321 echo "$as_me: failed program was:" >&5
37322 sed 's/^/| /' conftest.$ac_ext >&5
37324 ol_cv_func_ctime_r_nargs3=no
37326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37328 cat >conftest.$ac_ext <<_ACEOF
37331 cat confdefs.h >>conftest.$ac_ext
37332 cat >>conftest.$ac_ext <<_ACEOF
37333 /* end confdefs.h. */
37338 time_t ti; char *buffer; ctime_r(&ti,buffer);
37343 rm -f conftest.$ac_objext
37344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37345 (eval $ac_compile) 2>conftest.er1
37347 grep -v '^ *+' conftest.er1 >conftest.err
37349 cat conftest.err >&5
37350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37351 (exit $ac_status); } &&
37352 { ac_try='test -z "$ac_c_werror_flag"
37353 || test ! -s conftest.err'
37354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37355 (eval $ac_try) 2>&5
37357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37358 (exit $ac_status); }; } &&
37359 { ac_try='test -s conftest.$ac_objext'
37360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37361 (eval $ac_try) 2>&5
37363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37364 (exit $ac_status); }; }; then
37365 ol_cv_func_ctime_r_nargs2=yes
37367 echo "$as_me: failed program was:" >&5
37368 sed 's/^/| /' conftest.$ac_ext >&5
37370 ol_cv_func_ctime_r_nargs2=no
37372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37374 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
37375 $ol_cv_func_ctime_r_nargs2 = no ; then
37377 ol_cv_func_ctime_r_nargs=3
37379 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
37380 $ol_cv_func_ctime_r_nargs2 = yes ; then
37382 ol_cv_func_ctime_r_nargs=2
37385 ol_cv_func_ctime_r_nargs=0
37389 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
37390 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
37392 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
37394 cat >>confdefs.h <<_ACEOF
37395 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
37402 if test "$ac_cv_func_gethostbyname_r" = yes ; then
37403 echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
37404 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
37405 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
37406 echo $ECHO_N "(cached) $ECHO_C" >&6
37408 cat >conftest.$ac_ext <<_ACEOF
37411 cat confdefs.h >>conftest.$ac_ext
37412 cat >>conftest.$ac_ext <<_ACEOF
37413 /* end confdefs.h. */
37414 #include <sys/types.h>
37415 #include <sys/socket.h>
37416 #include <netinet/in.h>
37418 #define BUFSIZE (sizeof(struct hostent)+10)
37422 struct hostent hent; char buffer[BUFSIZE];
37423 int bufsize=BUFSIZE;int h_errno;
37424 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
37425 buffer, bufsize, &h_errno);
37430 rm -f conftest.$ac_objext
37431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37432 (eval $ac_compile) 2>conftest.er1
37434 grep -v '^ *+' conftest.er1 >conftest.err
37436 cat conftest.err >&5
37437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37438 (exit $ac_status); } &&
37439 { ac_try='test -z "$ac_c_werror_flag"
37440 || test ! -s conftest.err'
37441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37442 (eval $ac_try) 2>&5
37444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37445 (exit $ac_status); }; } &&
37446 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
37452 ol_cv_func_gethostbyname_r_nargs5=yes
37454 echo "$as_me: failed program was:" >&5
37455 sed 's/^/| /' conftest.$ac_ext >&5
37457 ol_cv_func_gethostbyname_r_nargs5=no
37459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37461 cat >conftest.$ac_ext <<_ACEOF
37464 cat confdefs.h >>conftest.$ac_ext
37465 cat >>conftest.$ac_ext <<_ACEOF
37466 /* end confdefs.h. */
37467 #include <sys/types.h>
37468 #include <sys/socket.h>
37469 #include <netinet/in.h>
37471 #define BUFSIZE (sizeof(struct hostent)+10)
37475 struct hostent hent;struct hostent *rhent;
37476 char buffer[BUFSIZE];
37477 int bufsize=BUFSIZE;int h_errno;
37478 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
37484 rm -f conftest.$ac_objext
37485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37486 (eval $ac_compile) 2>conftest.er1
37488 grep -v '^ *+' conftest.er1 >conftest.err
37490 cat conftest.err >&5
37491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37492 (exit $ac_status); } &&
37493 { ac_try='test -z "$ac_c_werror_flag"
37494 || test ! -s conftest.err'
37495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37496 (eval $ac_try) 2>&5
37498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37499 (exit $ac_status); }; } &&
37500 { ac_try='test -s conftest.$ac_objext'
37501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37502 (eval $ac_try) 2>&5
37504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37505 (exit $ac_status); }; }; then
37506 ol_cv_func_gethostbyname_r_nargs6=yes
37508 echo "$as_me: failed program was:" >&5
37509 sed 's/^/| /' conftest.$ac_ext >&5
37511 ol_cv_func_gethostbyname_r_nargs6=no
37513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37515 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
37516 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
37518 ol_cv_func_gethostbyname_r_nargs=5
37520 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
37521 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
37523 ol_cv_func_gethostbyname_r_nargs=6
37526 ol_cv_func_gethostbyname_r_nargs=0
37530 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
37531 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
37532 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
37534 cat >>confdefs.h <<_ACEOF
37535 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
37541 ol_cv_func_gethostbyname_r_nargs=0
37544 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
37545 echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
37546 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
37547 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
37548 echo $ECHO_N "(cached) $ECHO_C" >&6
37550 cat >conftest.$ac_ext <<_ACEOF
37553 cat confdefs.h >>conftest.$ac_ext
37554 cat >>conftest.$ac_ext <<_ACEOF
37555 /* end confdefs.h. */
37556 #include <sys/types.h>
37557 #include <sys/socket.h>
37558 #include <netinet/in.h>
37560 #define BUFSIZE (sizeof(struct hostent)+10)
37564 struct hostent hent; char buffer[BUFSIZE];
37565 struct in_addr add;
37566 size_t alen=sizeof(struct in_addr);
37567 int bufsize=BUFSIZE;int h_errno;
37568 (void)gethostbyaddr_r( (void *)&(add.s_addr),
37569 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
37574 rm -f conftest.$ac_objext
37575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37576 (eval $ac_compile) 2>conftest.er1
37578 grep -v '^ *+' conftest.er1 >conftest.err
37580 cat conftest.err >&5
37581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37582 (exit $ac_status); } &&
37583 { ac_try='test -z "$ac_c_werror_flag"
37584 || test ! -s conftest.err'
37585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37586 (eval $ac_try) 2>&5
37588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37589 (exit $ac_status); }; } &&
37590 { ac_try='test -s conftest.$ac_objext'
37591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37592 (eval $ac_try) 2>&5
37594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37595 (exit $ac_status); }; }; then
37596 ol_cv_func_gethostbyaddr_r_nargs7=yes
37598 echo "$as_me: failed program was:" >&5
37599 sed 's/^/| /' conftest.$ac_ext >&5
37601 ol_cv_func_gethostbyaddr_r_nargs7=no
37603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37605 cat >conftest.$ac_ext <<_ACEOF
37608 cat confdefs.h >>conftest.$ac_ext
37609 cat >>conftest.$ac_ext <<_ACEOF
37610 /* end confdefs.h. */
37611 #include <sys/types.h>
37612 #include <sys/socket.h>
37613 #include <netinet/in.h>
37615 #define BUFSIZE (sizeof(struct hostent)+10)
37619 struct hostent hent;
37620 struct hostent *rhent; char buffer[BUFSIZE];
37621 struct in_addr add;
37622 size_t alen=sizeof(struct in_addr);
37623 int bufsize=BUFSIZE;int h_errno;
37624 (void)gethostbyaddr_r( (void *)&(add.s_addr),
37625 alen, AF_INET, &hent, buffer, bufsize,
37631 rm -f conftest.$ac_objext
37632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37633 (eval $ac_compile) 2>conftest.er1
37635 grep -v '^ *+' conftest.er1 >conftest.err
37637 cat conftest.err >&5
37638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37639 (exit $ac_status); } &&
37640 { ac_try='test -z "$ac_c_werror_flag"
37641 || test ! -s conftest.err'
37642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37643 (eval $ac_try) 2>&5
37645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37646 (exit $ac_status); }; } &&
37647 { ac_try='test -s conftest.$ac_objext'
37648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37649 (eval $ac_try) 2>&5
37651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37652 (exit $ac_status); }; }; then
37653 ol_cv_func_gethostbyaddr_r_nargs8=yes
37655 echo "$as_me: failed program was:" >&5
37656 sed 's/^/| /' conftest.$ac_ext >&5
37658 ol_cv_func_gethostbyaddr_r_nargs8=no
37660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37662 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
37663 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
37665 ol_cv_func_gethostbyaddr_r_nargs=7
37667 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
37668 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
37670 ol_cv_func_gethostbyaddr_r_nargs=8
37673 ol_cv_func_gethostbyaddr_r_nargs=0
37677 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
37678 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
37679 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
37681 cat >>confdefs.h <<_ACEOF
37682 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
37688 ol_cv_func_gethostbyaddr_r_nargs=0
37693 if test $ol_with_ldbm_api = auto \
37694 -o $ol_with_ldbm_api = berkeley \
37695 -o $ol_with_ldbm_api = bcompat ; then
37697 if test $ol_with_ldbm_api = bcompat; then \
37700 for ac_header in db_185.h db.h
37702 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37703 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37704 echo "$as_me:$LINENO: checking for $ac_header" >&5
37705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37706 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37707 echo $ECHO_N "(cached) $ECHO_C" >&6
37709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37710 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37712 # Is the header compilable?
37713 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37714 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37715 cat >conftest.$ac_ext <<_ACEOF
37718 cat confdefs.h >>conftest.$ac_ext
37719 cat >>conftest.$ac_ext <<_ACEOF
37720 /* end confdefs.h. */
37721 $ac_includes_default
37722 #include <$ac_header>
37724 rm -f conftest.$ac_objext
37725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37726 (eval $ac_compile) 2>conftest.er1
37728 grep -v '^ *+' conftest.er1 >conftest.err
37730 cat conftest.err >&5
37731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37732 (exit $ac_status); } &&
37733 { ac_try='test -z "$ac_c_werror_flag"
37734 || test ! -s conftest.err'
37735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37736 (eval $ac_try) 2>&5
37738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37739 (exit $ac_status); }; } &&
37740 { ac_try='test -s conftest.$ac_objext'
37741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37742 (eval $ac_try) 2>&5
37744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37745 (exit $ac_status); }; }; then
37746 ac_header_compiler=yes
37748 echo "$as_me: failed program was:" >&5
37749 sed 's/^/| /' conftest.$ac_ext >&5
37751 ac_header_compiler=no
37753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37754 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37755 echo "${ECHO_T}$ac_header_compiler" >&6
37757 # Is the header present?
37758 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37759 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37760 cat >conftest.$ac_ext <<_ACEOF
37763 cat confdefs.h >>conftest.$ac_ext
37764 cat >>conftest.$ac_ext <<_ACEOF
37765 /* end confdefs.h. */
37766 #include <$ac_header>
37768 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37769 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37771 grep -v '^ *+' conftest.er1 >conftest.err
37773 cat conftest.err >&5
37774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37775 (exit $ac_status); } >/dev/null; then
37776 if test -s conftest.err; then
37777 ac_cpp_err=$ac_c_preproc_warn_flag
37778 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37785 if test -z "$ac_cpp_err"; then
37786 ac_header_preproc=yes
37788 echo "$as_me: failed program was:" >&5
37789 sed 's/^/| /' conftest.$ac_ext >&5
37791 ac_header_preproc=no
37793 rm -f conftest.err conftest.$ac_ext
37794 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37795 echo "${ECHO_T}$ac_header_preproc" >&6
37797 # So? What about this header?
37798 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37800 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37801 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37803 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37804 ac_header_preproc=yes
37807 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37808 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37809 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37810 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37811 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37812 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37813 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37814 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37815 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37816 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37817 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37818 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37821 ## ------------------------------------------ ##
37822 ## Report this to the AC_PACKAGE_NAME lists. ##
37823 ## ------------------------------------------ ##
37826 sed "s/^/$as_me: WARNING: /" >&2
37829 echo "$as_me:$LINENO: checking for $ac_header" >&5
37830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37831 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37832 echo $ECHO_N "(cached) $ECHO_C" >&6
37834 eval "$as_ac_Header=\$ac_header_preproc"
37836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37837 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37840 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37841 cat >>confdefs.h <<_ACEOF
37842 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37849 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
37850 echo "$as_me:$LINENO: checking if Berkeley DB header compatibility" >&5
37851 echo $ECHO_N "checking if Berkeley DB header compatibility... $ECHO_C" >&6
37852 if test "${ol_cv_header_db1+set}" = set; then
37853 echo $ECHO_N "(cached) $ECHO_C" >&6
37856 cat >conftest.$ac_ext <<_ACEOF
37859 cat confdefs.h >>conftest.$ac_ext
37860 cat >>conftest.$ac_ext <<_ACEOF
37861 /* end confdefs.h. */
37864 # include <db_185.h>
37869 /* this check could be improved */
37870 #ifndef DB_VERSION_MAJOR
37871 # define DB_VERSION_MAJOR 1
37874 #if DB_VERSION_MAJOR == 1
37879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37880 $EGREP "__db_version_1" >/dev/null 2>&1; then
37881 ol_cv_header_db1=yes
37883 ol_cv_header_db1=no
37888 echo "$as_me:$LINENO: result: $ol_cv_header_db1" >&5
37889 echo "${ECHO_T}$ol_cv_header_db1" >&6
37891 if test $ol_cv_header_db1 = yes ; then
37893 if test $ol_cv_lib_db = no ; then
37894 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
37895 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
37896 if test "${ol_cv_db_none+set}" = set; then
37897 echo $ECHO_N "(cached) $ECHO_C" >&6
37902 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
37904 cat >conftest.$ac_ext <<_ACEOF
37907 cat confdefs.h >>conftest.$ac_ext
37908 cat >>conftest.$ac_ext <<_ACEOF
37909 /* end confdefs.h. */
37911 #ifdef HAVE_DB_185_H
37912 # include <db_185.h>
37917 #ifndef DB_VERSION_MAJOR
37918 # define DB_VERSION_MAJOR 1
37922 #define NULL ((void*)0)
37929 #if DB_VERSION_MAJOR > 1
37932 int major, minor, patch;
37934 version = db_version( &major, &minor, &patch );
37936 if( major != DB_VERSION_MAJOR ||
37937 minor < DB_VERSION_MINOR )
37939 printf("Berkeley DB version mismatch\n"
37940 "\theader: %s\n\tlibrary: %s\n",
37941 DB_VERSION_STRING, version);
37947 #if DB_VERSION_MAJOR > 2
37948 db_env_create( NULL, 0 );
37949 #elif DB_VERSION_MAJOR > 1
37950 db_appexit( NULL );
37952 (void) dbopen( NULL, 0, 0, 0, NULL);
37959 rm -f conftest.$ac_objext conftest$ac_exeext
37960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37961 (eval $ac_link) 2>conftest.er1
37963 grep -v '^ *+' conftest.er1 >conftest.err
37965 cat conftest.err >&5
37966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37967 (exit $ac_status); } &&
37968 { ac_try='test -z "$ac_c_werror_flag"
37969 || test ! -s conftest.err'
37970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37971 (eval $ac_try) 2>&5
37973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37974 (exit $ac_status); }; } &&
37975 { ac_try='test -s conftest$ac_exeext'
37976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37977 (eval $ac_try) 2>&5
37979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37980 (exit $ac_status); }; }; then
37983 echo "$as_me: failed program was:" >&5
37984 sed 's/^/| /' conftest.$ac_ext >&5
37988 rm -f conftest.err conftest.$ac_objext \
37989 conftest$ac_exeext conftest.$ac_ext
37994 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
37995 echo "${ECHO_T}$ol_cv_db_none" >&6
37997 if test $ol_cv_db_none = yes ; then
38002 if test $ol_cv_lib_db = no ; then
38003 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
38004 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
38005 if test "${ol_cv_db_db43+set}" = set; then
38006 echo $ECHO_N "(cached) $ECHO_C" >&6
38011 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38013 cat >conftest.$ac_ext <<_ACEOF
38016 cat confdefs.h >>conftest.$ac_ext
38017 cat >>conftest.$ac_ext <<_ACEOF
38018 /* end confdefs.h. */
38020 #ifdef HAVE_DB_185_H
38021 # include <db_185.h>
38026 #ifndef DB_VERSION_MAJOR
38027 # define DB_VERSION_MAJOR 1
38031 #define NULL ((void*)0)
38038 #if DB_VERSION_MAJOR > 1
38041 int major, minor, patch;
38043 version = db_version( &major, &minor, &patch );
38045 if( major != DB_VERSION_MAJOR ||
38046 minor < DB_VERSION_MINOR )
38048 printf("Berkeley DB version mismatch\n"
38049 "\theader: %s\n\tlibrary: %s\n",
38050 DB_VERSION_STRING, version);
38056 #if DB_VERSION_MAJOR > 2
38057 db_env_create( NULL, 0 );
38058 #elif DB_VERSION_MAJOR > 1
38059 db_appexit( NULL );
38061 (void) dbopen( NULL, 0, 0, 0, NULL);
38068 rm -f conftest.$ac_objext conftest$ac_exeext
38069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38070 (eval $ac_link) 2>conftest.er1
38072 grep -v '^ *+' conftest.er1 >conftest.err
38074 cat conftest.err >&5
38075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38076 (exit $ac_status); } &&
38077 { ac_try='test -z "$ac_c_werror_flag"
38078 || test ! -s conftest.err'
38079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38080 (eval $ac_try) 2>&5
38082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38083 (exit $ac_status); }; } &&
38084 { ac_try='test -s conftest$ac_exeext'
38085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38086 (eval $ac_try) 2>&5
38088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38089 (exit $ac_status); }; }; then
38092 echo "$as_me: failed program was:" >&5
38093 sed 's/^/| /' conftest.$ac_ext >&5
38097 rm -f conftest.err conftest.$ac_objext \
38098 conftest$ac_exeext conftest.$ac_ext
38103 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
38104 echo "${ECHO_T}$ol_cv_db_db43" >&6
38106 if test $ol_cv_db_db43 = yes ; then
38107 ol_cv_lib_db=-ldb43
38111 if test $ol_cv_lib_db = no ; then
38112 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
38113 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
38114 if test "${ol_cv_db_db_43+set}" = set; then
38115 echo $ECHO_N "(cached) $ECHO_C" >&6
38120 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38122 cat >conftest.$ac_ext <<_ACEOF
38125 cat confdefs.h >>conftest.$ac_ext
38126 cat >>conftest.$ac_ext <<_ACEOF
38127 /* end confdefs.h. */
38129 #ifdef HAVE_DB_185_H
38130 # include <db_185.h>
38135 #ifndef DB_VERSION_MAJOR
38136 # define DB_VERSION_MAJOR 1
38140 #define NULL ((void*)0)
38147 #if DB_VERSION_MAJOR > 1
38150 int major, minor, patch;
38152 version = db_version( &major, &minor, &patch );
38154 if( major != DB_VERSION_MAJOR ||
38155 minor < DB_VERSION_MINOR )
38157 printf("Berkeley DB version mismatch\n"
38158 "\theader: %s\n\tlibrary: %s\n",
38159 DB_VERSION_STRING, version);
38165 #if DB_VERSION_MAJOR > 2
38166 db_env_create( NULL, 0 );
38167 #elif DB_VERSION_MAJOR > 1
38168 db_appexit( NULL );
38170 (void) dbopen( NULL, 0, 0, 0, NULL);
38177 rm -f conftest.$ac_objext conftest$ac_exeext
38178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38179 (eval $ac_link) 2>conftest.er1
38181 grep -v '^ *+' conftest.er1 >conftest.err
38183 cat conftest.err >&5
38184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38185 (exit $ac_status); } &&
38186 { ac_try='test -z "$ac_c_werror_flag"
38187 || test ! -s conftest.err'
38188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38189 (eval $ac_try) 2>&5
38191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38192 (exit $ac_status); }; } &&
38193 { ac_try='test -s conftest$ac_exeext'
38194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38195 (eval $ac_try) 2>&5
38197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38198 (exit $ac_status); }; }; then
38201 echo "$as_me: failed program was:" >&5
38202 sed 's/^/| /' conftest.$ac_ext >&5
38206 rm -f conftest.err conftest.$ac_objext \
38207 conftest$ac_exeext conftest.$ac_ext
38212 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
38213 echo "${ECHO_T}$ol_cv_db_db_43" >&6
38215 if test $ol_cv_db_db_43 = yes ; then
38216 ol_cv_lib_db=-ldb-43
38220 if test $ol_cv_lib_db = no ; then
38221 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
38222 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
38223 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
38224 echo $ECHO_N "(cached) $ECHO_C" >&6
38229 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38231 cat >conftest.$ac_ext <<_ACEOF
38234 cat confdefs.h >>conftest.$ac_ext
38235 cat >>conftest.$ac_ext <<_ACEOF
38236 /* end confdefs.h. */
38238 #ifdef HAVE_DB_185_H
38239 # include <db_185.h>
38244 #ifndef DB_VERSION_MAJOR
38245 # define DB_VERSION_MAJOR 1
38249 #define NULL ((void*)0)
38256 #if DB_VERSION_MAJOR > 1
38259 int major, minor, patch;
38261 version = db_version( &major, &minor, &patch );
38263 if( major != DB_VERSION_MAJOR ||
38264 minor < DB_VERSION_MINOR )
38266 printf("Berkeley DB version mismatch\n"
38267 "\theader: %s\n\tlibrary: %s\n",
38268 DB_VERSION_STRING, version);
38274 #if DB_VERSION_MAJOR > 2
38275 db_env_create( NULL, 0 );
38276 #elif DB_VERSION_MAJOR > 1
38277 db_appexit( NULL );
38279 (void) dbopen( NULL, 0, 0, 0, NULL);
38286 rm -f conftest.$ac_objext conftest$ac_exeext
38287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38288 (eval $ac_link) 2>conftest.er1
38290 grep -v '^ *+' conftest.er1 >conftest.err
38292 cat conftest.err >&5
38293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38294 (exit $ac_status); } &&
38295 { ac_try='test -z "$ac_c_werror_flag"
38296 || test ! -s conftest.err'
38297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38298 (eval $ac_try) 2>&5
38300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38301 (exit $ac_status); }; } &&
38302 { ac_try='test -s conftest$ac_exeext'
38303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38304 (eval $ac_try) 2>&5
38306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38307 (exit $ac_status); }; }; then
38308 ol_cv_db_db_4_dot_3=yes
38310 echo "$as_me: failed program was:" >&5
38311 sed 's/^/| /' conftest.$ac_ext >&5
38313 ol_cv_db_db_4_dot_3=no
38315 rm -f conftest.err conftest.$ac_objext \
38316 conftest$ac_exeext conftest.$ac_ext
38321 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
38322 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
38324 if test $ol_cv_db_db_4_dot_3 = yes ; then
38325 ol_cv_lib_db=-ldb-4.3
38329 if test $ol_cv_lib_db = no ; then
38330 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
38331 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
38332 if test "${ol_cv_db_db_4_3+set}" = set; then
38333 echo $ECHO_N "(cached) $ECHO_C" >&6
38338 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38340 cat >conftest.$ac_ext <<_ACEOF
38343 cat confdefs.h >>conftest.$ac_ext
38344 cat >>conftest.$ac_ext <<_ACEOF
38345 /* end confdefs.h. */
38347 #ifdef HAVE_DB_185_H
38348 # include <db_185.h>
38353 #ifndef DB_VERSION_MAJOR
38354 # define DB_VERSION_MAJOR 1
38358 #define NULL ((void*)0)
38365 #if DB_VERSION_MAJOR > 1
38368 int major, minor, patch;
38370 version = db_version( &major, &minor, &patch );
38372 if( major != DB_VERSION_MAJOR ||
38373 minor < DB_VERSION_MINOR )
38375 printf("Berkeley DB version mismatch\n"
38376 "\theader: %s\n\tlibrary: %s\n",
38377 DB_VERSION_STRING, version);
38383 #if DB_VERSION_MAJOR > 2
38384 db_env_create( NULL, 0 );
38385 #elif DB_VERSION_MAJOR > 1
38386 db_appexit( NULL );
38388 (void) dbopen( NULL, 0, 0, 0, NULL);
38395 rm -f conftest.$ac_objext conftest$ac_exeext
38396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38397 (eval $ac_link) 2>conftest.er1
38399 grep -v '^ *+' conftest.er1 >conftest.err
38401 cat conftest.err >&5
38402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38403 (exit $ac_status); } &&
38404 { ac_try='test -z "$ac_c_werror_flag"
38405 || test ! -s conftest.err'
38406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38407 (eval $ac_try) 2>&5
38409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38410 (exit $ac_status); }; } &&
38411 { ac_try='test -s conftest$ac_exeext'
38412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38413 (eval $ac_try) 2>&5
38415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38416 (exit $ac_status); }; }; then
38417 ol_cv_db_db_4_3=yes
38419 echo "$as_me: failed program was:" >&5
38420 sed 's/^/| /' conftest.$ac_ext >&5
38424 rm -f conftest.err conftest.$ac_objext \
38425 conftest$ac_exeext conftest.$ac_ext
38430 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
38431 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
38433 if test $ol_cv_db_db_4_3 = yes ; then
38434 ol_cv_lib_db=-ldb-4-3
38438 if test $ol_cv_lib_db = no ; then
38439 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
38440 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
38441 if test "${ol_cv_db_db42+set}" = set; then
38442 echo $ECHO_N "(cached) $ECHO_C" >&6
38447 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38449 cat >conftest.$ac_ext <<_ACEOF
38452 cat confdefs.h >>conftest.$ac_ext
38453 cat >>conftest.$ac_ext <<_ACEOF
38454 /* end confdefs.h. */
38456 #ifdef HAVE_DB_185_H
38457 # include <db_185.h>
38462 #ifndef DB_VERSION_MAJOR
38463 # define DB_VERSION_MAJOR 1
38467 #define NULL ((void*)0)
38474 #if DB_VERSION_MAJOR > 1
38477 int major, minor, patch;
38479 version = db_version( &major, &minor, &patch );
38481 if( major != DB_VERSION_MAJOR ||
38482 minor < DB_VERSION_MINOR )
38484 printf("Berkeley DB version mismatch\n"
38485 "\theader: %s\n\tlibrary: %s\n",
38486 DB_VERSION_STRING, version);
38492 #if DB_VERSION_MAJOR > 2
38493 db_env_create( NULL, 0 );
38494 #elif DB_VERSION_MAJOR > 1
38495 db_appexit( NULL );
38497 (void) dbopen( NULL, 0, 0, 0, NULL);
38504 rm -f conftest.$ac_objext conftest$ac_exeext
38505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38506 (eval $ac_link) 2>conftest.er1
38508 grep -v '^ *+' conftest.er1 >conftest.err
38510 cat conftest.err >&5
38511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38512 (exit $ac_status); } &&
38513 { ac_try='test -z "$ac_c_werror_flag"
38514 || test ! -s conftest.err'
38515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38516 (eval $ac_try) 2>&5
38518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38519 (exit $ac_status); }; } &&
38520 { ac_try='test -s conftest$ac_exeext'
38521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38522 (eval $ac_try) 2>&5
38524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38525 (exit $ac_status); }; }; then
38528 echo "$as_me: failed program was:" >&5
38529 sed 's/^/| /' conftest.$ac_ext >&5
38533 rm -f conftest.err conftest.$ac_objext \
38534 conftest$ac_exeext conftest.$ac_ext
38539 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
38540 echo "${ECHO_T}$ol_cv_db_db42" >&6
38542 if test $ol_cv_db_db42 = yes ; then
38543 ol_cv_lib_db=-ldb42
38547 if test $ol_cv_lib_db = no ; then
38548 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
38549 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
38550 if test "${ol_cv_db_db_42+set}" = set; then
38551 echo $ECHO_N "(cached) $ECHO_C" >&6
38556 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38558 cat >conftest.$ac_ext <<_ACEOF
38561 cat confdefs.h >>conftest.$ac_ext
38562 cat >>conftest.$ac_ext <<_ACEOF
38563 /* end confdefs.h. */
38565 #ifdef HAVE_DB_185_H
38566 # include <db_185.h>
38571 #ifndef DB_VERSION_MAJOR
38572 # define DB_VERSION_MAJOR 1
38576 #define NULL ((void*)0)
38583 #if DB_VERSION_MAJOR > 1
38586 int major, minor, patch;
38588 version = db_version( &major, &minor, &patch );
38590 if( major != DB_VERSION_MAJOR ||
38591 minor < DB_VERSION_MINOR )
38593 printf("Berkeley DB version mismatch\n"
38594 "\theader: %s\n\tlibrary: %s\n",
38595 DB_VERSION_STRING, version);
38601 #if DB_VERSION_MAJOR > 2
38602 db_env_create( NULL, 0 );
38603 #elif DB_VERSION_MAJOR > 1
38604 db_appexit( NULL );
38606 (void) dbopen( NULL, 0, 0, 0, NULL);
38613 rm -f conftest.$ac_objext conftest$ac_exeext
38614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38615 (eval $ac_link) 2>conftest.er1
38617 grep -v '^ *+' conftest.er1 >conftest.err
38619 cat conftest.err >&5
38620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38621 (exit $ac_status); } &&
38622 { ac_try='test -z "$ac_c_werror_flag"
38623 || test ! -s conftest.err'
38624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38625 (eval $ac_try) 2>&5
38627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38628 (exit $ac_status); }; } &&
38629 { ac_try='test -s conftest$ac_exeext'
38630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38631 (eval $ac_try) 2>&5
38633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38634 (exit $ac_status); }; }; then
38637 echo "$as_me: failed program was:" >&5
38638 sed 's/^/| /' conftest.$ac_ext >&5
38642 rm -f conftest.err conftest.$ac_objext \
38643 conftest$ac_exeext conftest.$ac_ext
38648 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
38649 echo "${ECHO_T}$ol_cv_db_db_42" >&6
38651 if test $ol_cv_db_db_42 = yes ; then
38652 ol_cv_lib_db=-ldb-42
38656 if test $ol_cv_lib_db = no ; then
38657 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
38658 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
38659 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
38660 echo $ECHO_N "(cached) $ECHO_C" >&6
38665 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38667 cat >conftest.$ac_ext <<_ACEOF
38670 cat confdefs.h >>conftest.$ac_ext
38671 cat >>conftest.$ac_ext <<_ACEOF
38672 /* end confdefs.h. */
38674 #ifdef HAVE_DB_185_H
38675 # include <db_185.h>
38680 #ifndef DB_VERSION_MAJOR
38681 # define DB_VERSION_MAJOR 1
38685 #define NULL ((void*)0)
38692 #if DB_VERSION_MAJOR > 1
38695 int major, minor, patch;
38697 version = db_version( &major, &minor, &patch );
38699 if( major != DB_VERSION_MAJOR ||
38700 minor < DB_VERSION_MINOR )
38702 printf("Berkeley DB version mismatch\n"
38703 "\theader: %s\n\tlibrary: %s\n",
38704 DB_VERSION_STRING, version);
38710 #if DB_VERSION_MAJOR > 2
38711 db_env_create( NULL, 0 );
38712 #elif DB_VERSION_MAJOR > 1
38713 db_appexit( NULL );
38715 (void) dbopen( NULL, 0, 0, 0, NULL);
38722 rm -f conftest.$ac_objext conftest$ac_exeext
38723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38724 (eval $ac_link) 2>conftest.er1
38726 grep -v '^ *+' conftest.er1 >conftest.err
38728 cat conftest.err >&5
38729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38730 (exit $ac_status); } &&
38731 { ac_try='test -z "$ac_c_werror_flag"
38732 || test ! -s conftest.err'
38733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38734 (eval $ac_try) 2>&5
38736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38737 (exit $ac_status); }; } &&
38738 { ac_try='test -s conftest$ac_exeext'
38739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38740 (eval $ac_try) 2>&5
38742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38743 (exit $ac_status); }; }; then
38744 ol_cv_db_db_4_dot_2=yes
38746 echo "$as_me: failed program was:" >&5
38747 sed 's/^/| /' conftest.$ac_ext >&5
38749 ol_cv_db_db_4_dot_2=no
38751 rm -f conftest.err conftest.$ac_objext \
38752 conftest$ac_exeext conftest.$ac_ext
38757 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
38758 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
38760 if test $ol_cv_db_db_4_dot_2 = yes ; then
38761 ol_cv_lib_db=-ldb-4.2
38765 if test $ol_cv_lib_db = no ; then
38766 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
38767 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
38768 if test "${ol_cv_db_db_4_2+set}" = set; then
38769 echo $ECHO_N "(cached) $ECHO_C" >&6
38774 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38776 cat >conftest.$ac_ext <<_ACEOF
38779 cat confdefs.h >>conftest.$ac_ext
38780 cat >>conftest.$ac_ext <<_ACEOF
38781 /* end confdefs.h. */
38783 #ifdef HAVE_DB_185_H
38784 # include <db_185.h>
38789 #ifndef DB_VERSION_MAJOR
38790 # define DB_VERSION_MAJOR 1
38794 #define NULL ((void*)0)
38801 #if DB_VERSION_MAJOR > 1
38804 int major, minor, patch;
38806 version = db_version( &major, &minor, &patch );
38808 if( major != DB_VERSION_MAJOR ||
38809 minor < DB_VERSION_MINOR )
38811 printf("Berkeley DB version mismatch\n"
38812 "\theader: %s\n\tlibrary: %s\n",
38813 DB_VERSION_STRING, version);
38819 #if DB_VERSION_MAJOR > 2
38820 db_env_create( NULL, 0 );
38821 #elif DB_VERSION_MAJOR > 1
38822 db_appexit( NULL );
38824 (void) dbopen( NULL, 0, 0, 0, NULL);
38831 rm -f conftest.$ac_objext conftest$ac_exeext
38832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38833 (eval $ac_link) 2>conftest.er1
38835 grep -v '^ *+' conftest.er1 >conftest.err
38837 cat conftest.err >&5
38838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38839 (exit $ac_status); } &&
38840 { ac_try='test -z "$ac_c_werror_flag"
38841 || test ! -s conftest.err'
38842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38843 (eval $ac_try) 2>&5
38845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38846 (exit $ac_status); }; } &&
38847 { ac_try='test -s conftest$ac_exeext'
38848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38849 (eval $ac_try) 2>&5
38851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38852 (exit $ac_status); }; }; then
38853 ol_cv_db_db_4_2=yes
38855 echo "$as_me: failed program was:" >&5
38856 sed 's/^/| /' conftest.$ac_ext >&5
38860 rm -f conftest.err conftest.$ac_objext \
38861 conftest$ac_exeext conftest.$ac_ext
38866 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
38867 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
38869 if test $ol_cv_db_db_4_2 = yes ; then
38870 ol_cv_lib_db=-ldb-4-2
38874 if test $ol_cv_lib_db = no ; then
38875 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
38876 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
38877 if test "${ol_cv_db_db_4+set}" = set; then
38878 echo $ECHO_N "(cached) $ECHO_C" >&6
38883 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38885 cat >conftest.$ac_ext <<_ACEOF
38888 cat confdefs.h >>conftest.$ac_ext
38889 cat >>conftest.$ac_ext <<_ACEOF
38890 /* end confdefs.h. */
38892 #ifdef HAVE_DB_185_H
38893 # include <db_185.h>
38898 #ifndef DB_VERSION_MAJOR
38899 # define DB_VERSION_MAJOR 1
38903 #define NULL ((void*)0)
38910 #if DB_VERSION_MAJOR > 1
38913 int major, minor, patch;
38915 version = db_version( &major, &minor, &patch );
38917 if( major != DB_VERSION_MAJOR ||
38918 minor < DB_VERSION_MINOR )
38920 printf("Berkeley DB version mismatch\n"
38921 "\theader: %s\n\tlibrary: %s\n",
38922 DB_VERSION_STRING, version);
38928 #if DB_VERSION_MAJOR > 2
38929 db_env_create( NULL, 0 );
38930 #elif DB_VERSION_MAJOR > 1
38931 db_appexit( NULL );
38933 (void) dbopen( NULL, 0, 0, 0, NULL);
38940 rm -f conftest.$ac_objext conftest$ac_exeext
38941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38942 (eval $ac_link) 2>conftest.er1
38944 grep -v '^ *+' conftest.er1 >conftest.err
38946 cat conftest.err >&5
38947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38948 (exit $ac_status); } &&
38949 { ac_try='test -z "$ac_c_werror_flag"
38950 || test ! -s conftest.err'
38951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38952 (eval $ac_try) 2>&5
38954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38955 (exit $ac_status); }; } &&
38956 { ac_try='test -s conftest$ac_exeext'
38957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38958 (eval $ac_try) 2>&5
38960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38961 (exit $ac_status); }; }; then
38964 echo "$as_me: failed program was:" >&5
38965 sed 's/^/| /' conftest.$ac_ext >&5
38969 rm -f conftest.err conftest.$ac_objext \
38970 conftest$ac_exeext conftest.$ac_ext
38975 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
38976 echo "${ECHO_T}$ol_cv_db_db_4" >&6
38978 if test $ol_cv_db_db_4 = yes ; then
38979 ol_cv_lib_db=-ldb-4
38983 if test $ol_cv_lib_db = no ; then
38984 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
38985 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
38986 if test "${ol_cv_db_db4+set}" = set; then
38987 echo $ECHO_N "(cached) $ECHO_C" >&6
38992 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38994 cat >conftest.$ac_ext <<_ACEOF
38997 cat confdefs.h >>conftest.$ac_ext
38998 cat >>conftest.$ac_ext <<_ACEOF
38999 /* end confdefs.h. */
39001 #ifdef HAVE_DB_185_H
39002 # include <db_185.h>
39007 #ifndef DB_VERSION_MAJOR
39008 # define DB_VERSION_MAJOR 1
39012 #define NULL ((void*)0)
39019 #if DB_VERSION_MAJOR > 1
39022 int major, minor, patch;
39024 version = db_version( &major, &minor, &patch );
39026 if( major != DB_VERSION_MAJOR ||
39027 minor < DB_VERSION_MINOR )
39029 printf("Berkeley DB version mismatch\n"
39030 "\theader: %s\n\tlibrary: %s\n",
39031 DB_VERSION_STRING, version);
39037 #if DB_VERSION_MAJOR > 2
39038 db_env_create( NULL, 0 );
39039 #elif DB_VERSION_MAJOR > 1
39040 db_appexit( NULL );
39042 (void) dbopen( NULL, 0, 0, 0, NULL);
39049 rm -f conftest.$ac_objext conftest$ac_exeext
39050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39051 (eval $ac_link) 2>conftest.er1
39053 grep -v '^ *+' conftest.er1 >conftest.err
39055 cat conftest.err >&5
39056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39057 (exit $ac_status); } &&
39058 { ac_try='test -z "$ac_c_werror_flag"
39059 || test ! -s conftest.err'
39060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39061 (eval $ac_try) 2>&5
39063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39064 (exit $ac_status); }; } &&
39065 { ac_try='test -s conftest$ac_exeext'
39066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39067 (eval $ac_try) 2>&5
39069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39070 (exit $ac_status); }; }; then
39073 echo "$as_me: failed program was:" >&5
39074 sed 's/^/| /' conftest.$ac_ext >&5
39078 rm -f conftest.err conftest.$ac_objext \
39079 conftest$ac_exeext conftest.$ac_ext
39084 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
39085 echo "${ECHO_T}$ol_cv_db_db4" >&6
39087 if test $ol_cv_db_db4 = yes ; then
39092 if test $ol_cv_lib_db = no ; then
39093 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
39094 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
39095 if test "${ol_cv_db_db+set}" = set; then
39096 echo $ECHO_N "(cached) $ECHO_C" >&6
39101 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39103 cat >conftest.$ac_ext <<_ACEOF
39106 cat confdefs.h >>conftest.$ac_ext
39107 cat >>conftest.$ac_ext <<_ACEOF
39108 /* end confdefs.h. */
39110 #ifdef HAVE_DB_185_H
39111 # include <db_185.h>
39116 #ifndef DB_VERSION_MAJOR
39117 # define DB_VERSION_MAJOR 1
39121 #define NULL ((void*)0)
39128 #if DB_VERSION_MAJOR > 1
39131 int major, minor, patch;
39133 version = db_version( &major, &minor, &patch );
39135 if( major != DB_VERSION_MAJOR ||
39136 minor < DB_VERSION_MINOR )
39138 printf("Berkeley DB version mismatch\n"
39139 "\theader: %s\n\tlibrary: %s\n",
39140 DB_VERSION_STRING, version);
39146 #if DB_VERSION_MAJOR > 2
39147 db_env_create( NULL, 0 );
39148 #elif DB_VERSION_MAJOR > 1
39149 db_appexit( NULL );
39151 (void) dbopen( NULL, 0, 0, 0, NULL);
39158 rm -f conftest.$ac_objext conftest$ac_exeext
39159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39160 (eval $ac_link) 2>conftest.er1
39162 grep -v '^ *+' conftest.er1 >conftest.err
39164 cat conftest.err >&5
39165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39166 (exit $ac_status); } &&
39167 { ac_try='test -z "$ac_c_werror_flag"
39168 || test ! -s conftest.err'
39169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39170 (eval $ac_try) 2>&5
39172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39173 (exit $ac_status); }; } &&
39174 { ac_try='test -s conftest$ac_exeext'
39175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39176 (eval $ac_try) 2>&5
39178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39179 (exit $ac_status); }; }; then
39182 echo "$as_me: failed program was:" >&5
39183 sed 's/^/| /' conftest.$ac_ext >&5
39187 rm -f conftest.err conftest.$ac_objext \
39188 conftest$ac_exeext conftest.$ac_ext
39193 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
39194 echo "${ECHO_T}$ol_cv_db_db" >&6
39196 if test $ol_cv_db_db = yes ; then
39201 if test $ol_cv_lib_db = no ; then
39202 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
39203 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
39204 if test "${ol_cv_db_db41+set}" = set; then
39205 echo $ECHO_N "(cached) $ECHO_C" >&6
39210 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39212 cat >conftest.$ac_ext <<_ACEOF
39215 cat confdefs.h >>conftest.$ac_ext
39216 cat >>conftest.$ac_ext <<_ACEOF
39217 /* end confdefs.h. */
39219 #ifdef HAVE_DB_185_H
39220 # include <db_185.h>
39225 #ifndef DB_VERSION_MAJOR
39226 # define DB_VERSION_MAJOR 1
39230 #define NULL ((void*)0)
39237 #if DB_VERSION_MAJOR > 1
39240 int major, minor, patch;
39242 version = db_version( &major, &minor, &patch );
39244 if( major != DB_VERSION_MAJOR ||
39245 minor < DB_VERSION_MINOR )
39247 printf("Berkeley DB version mismatch\n"
39248 "\theader: %s\n\tlibrary: %s\n",
39249 DB_VERSION_STRING, version);
39255 #if DB_VERSION_MAJOR > 2
39256 db_env_create( NULL, 0 );
39257 #elif DB_VERSION_MAJOR > 1
39258 db_appexit( NULL );
39260 (void) dbopen( NULL, 0, 0, 0, NULL);
39267 rm -f conftest.$ac_objext conftest$ac_exeext
39268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39269 (eval $ac_link) 2>conftest.er1
39271 grep -v '^ *+' conftest.er1 >conftest.err
39273 cat conftest.err >&5
39274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39275 (exit $ac_status); } &&
39276 { ac_try='test -z "$ac_c_werror_flag"
39277 || test ! -s conftest.err'
39278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39279 (eval $ac_try) 2>&5
39281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39282 (exit $ac_status); }; } &&
39283 { ac_try='test -s conftest$ac_exeext'
39284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39285 (eval $ac_try) 2>&5
39287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39288 (exit $ac_status); }; }; then
39291 echo "$as_me: failed program was:" >&5
39292 sed 's/^/| /' conftest.$ac_ext >&5
39296 rm -f conftest.err conftest.$ac_objext \
39297 conftest$ac_exeext conftest.$ac_ext
39302 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
39303 echo "${ECHO_T}$ol_cv_db_db41" >&6
39305 if test $ol_cv_db_db41 = yes ; then
39306 ol_cv_lib_db=-ldb41
39310 if test $ol_cv_lib_db = no ; then
39311 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
39312 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
39313 if test "${ol_cv_db_db_41+set}" = set; then
39314 echo $ECHO_N "(cached) $ECHO_C" >&6
39319 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39321 cat >conftest.$ac_ext <<_ACEOF
39324 cat confdefs.h >>conftest.$ac_ext
39325 cat >>conftest.$ac_ext <<_ACEOF
39326 /* end confdefs.h. */
39328 #ifdef HAVE_DB_185_H
39329 # include <db_185.h>
39334 #ifndef DB_VERSION_MAJOR
39335 # define DB_VERSION_MAJOR 1
39339 #define NULL ((void*)0)
39346 #if DB_VERSION_MAJOR > 1
39349 int major, minor, patch;
39351 version = db_version( &major, &minor, &patch );
39353 if( major != DB_VERSION_MAJOR ||
39354 minor < DB_VERSION_MINOR )
39356 printf("Berkeley DB version mismatch\n"
39357 "\theader: %s\n\tlibrary: %s\n",
39358 DB_VERSION_STRING, version);
39364 #if DB_VERSION_MAJOR > 2
39365 db_env_create( NULL, 0 );
39366 #elif DB_VERSION_MAJOR > 1
39367 db_appexit( NULL );
39369 (void) dbopen( NULL, 0, 0, 0, NULL);
39376 rm -f conftest.$ac_objext conftest$ac_exeext
39377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39378 (eval $ac_link) 2>conftest.er1
39380 grep -v '^ *+' conftest.er1 >conftest.err
39382 cat conftest.err >&5
39383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39384 (exit $ac_status); } &&
39385 { ac_try='test -z "$ac_c_werror_flag"
39386 || test ! -s conftest.err'
39387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39388 (eval $ac_try) 2>&5
39390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39391 (exit $ac_status); }; } &&
39392 { ac_try='test -s conftest$ac_exeext'
39393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39394 (eval $ac_try) 2>&5
39396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39397 (exit $ac_status); }; }; then
39400 echo "$as_me: failed program was:" >&5
39401 sed 's/^/| /' conftest.$ac_ext >&5
39405 rm -f conftest.err conftest.$ac_objext \
39406 conftest$ac_exeext conftest.$ac_ext
39411 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
39412 echo "${ECHO_T}$ol_cv_db_db_41" >&6
39414 if test $ol_cv_db_db_41 = yes ; then
39415 ol_cv_lib_db=-ldb-41
39419 if test $ol_cv_lib_db = no ; then
39420 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
39421 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
39422 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
39423 echo $ECHO_N "(cached) $ECHO_C" >&6
39428 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39430 cat >conftest.$ac_ext <<_ACEOF
39433 cat confdefs.h >>conftest.$ac_ext
39434 cat >>conftest.$ac_ext <<_ACEOF
39435 /* end confdefs.h. */
39437 #ifdef HAVE_DB_185_H
39438 # include <db_185.h>
39443 #ifndef DB_VERSION_MAJOR
39444 # define DB_VERSION_MAJOR 1
39448 #define NULL ((void*)0)
39455 #if DB_VERSION_MAJOR > 1
39458 int major, minor, patch;
39460 version = db_version( &major, &minor, &patch );
39462 if( major != DB_VERSION_MAJOR ||
39463 minor < DB_VERSION_MINOR )
39465 printf("Berkeley DB version mismatch\n"
39466 "\theader: %s\n\tlibrary: %s\n",
39467 DB_VERSION_STRING, version);
39473 #if DB_VERSION_MAJOR > 2
39474 db_env_create( NULL, 0 );
39475 #elif DB_VERSION_MAJOR > 1
39476 db_appexit( NULL );
39478 (void) dbopen( NULL, 0, 0, 0, NULL);
39485 rm -f conftest.$ac_objext conftest$ac_exeext
39486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39487 (eval $ac_link) 2>conftest.er1
39489 grep -v '^ *+' conftest.er1 >conftest.err
39491 cat conftest.err >&5
39492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39493 (exit $ac_status); } &&
39494 { ac_try='test -z "$ac_c_werror_flag"
39495 || test ! -s conftest.err'
39496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39497 (eval $ac_try) 2>&5
39499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39500 (exit $ac_status); }; } &&
39501 { ac_try='test -s conftest$ac_exeext'
39502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39503 (eval $ac_try) 2>&5
39505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39506 (exit $ac_status); }; }; then
39507 ol_cv_db_db_4_dot_1=yes
39509 echo "$as_me: failed program was:" >&5
39510 sed 's/^/| /' conftest.$ac_ext >&5
39512 ol_cv_db_db_4_dot_1=no
39514 rm -f conftest.err conftest.$ac_objext \
39515 conftest$ac_exeext conftest.$ac_ext
39520 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
39521 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
39523 if test $ol_cv_db_db_4_dot_1 = yes ; then
39524 ol_cv_lib_db=-ldb-4.1
39528 if test $ol_cv_lib_db = no ; then
39529 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
39530 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
39531 if test "${ol_cv_db_db_4_1+set}" = set; then
39532 echo $ECHO_N "(cached) $ECHO_C" >&6
39537 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39539 cat >conftest.$ac_ext <<_ACEOF
39542 cat confdefs.h >>conftest.$ac_ext
39543 cat >>conftest.$ac_ext <<_ACEOF
39544 /* end confdefs.h. */
39546 #ifdef HAVE_DB_185_H
39547 # include <db_185.h>
39552 #ifndef DB_VERSION_MAJOR
39553 # define DB_VERSION_MAJOR 1
39557 #define NULL ((void*)0)
39564 #if DB_VERSION_MAJOR > 1
39567 int major, minor, patch;
39569 version = db_version( &major, &minor, &patch );
39571 if( major != DB_VERSION_MAJOR ||
39572 minor < DB_VERSION_MINOR )
39574 printf("Berkeley DB version mismatch\n"
39575 "\theader: %s\n\tlibrary: %s\n",
39576 DB_VERSION_STRING, version);
39582 #if DB_VERSION_MAJOR > 2
39583 db_env_create( NULL, 0 );
39584 #elif DB_VERSION_MAJOR > 1
39585 db_appexit( NULL );
39587 (void) dbopen( NULL, 0, 0, 0, NULL);
39594 rm -f conftest.$ac_objext conftest$ac_exeext
39595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39596 (eval $ac_link) 2>conftest.er1
39598 grep -v '^ *+' conftest.er1 >conftest.err
39600 cat conftest.err >&5
39601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39602 (exit $ac_status); } &&
39603 { ac_try='test -z "$ac_c_werror_flag"
39604 || test ! -s conftest.err'
39605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39606 (eval $ac_try) 2>&5
39608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39609 (exit $ac_status); }; } &&
39610 { ac_try='test -s conftest$ac_exeext'
39611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39612 (eval $ac_try) 2>&5
39614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39615 (exit $ac_status); }; }; then
39616 ol_cv_db_db_4_1=yes
39618 echo "$as_me: failed program was:" >&5
39619 sed 's/^/| /' conftest.$ac_ext >&5
39623 rm -f conftest.err conftest.$ac_objext \
39624 conftest$ac_exeext conftest.$ac_ext
39629 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
39630 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
39632 if test $ol_cv_db_db_4_1 = yes ; then
39633 ol_cv_lib_db=-ldb-4-1
39637 if test $ol_cv_lib_db = no ; then
39638 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
39639 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
39640 if test "${ol_cv_db_db3+set}" = set; then
39641 echo $ECHO_N "(cached) $ECHO_C" >&6
39646 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39648 cat >conftest.$ac_ext <<_ACEOF
39651 cat confdefs.h >>conftest.$ac_ext
39652 cat >>conftest.$ac_ext <<_ACEOF
39653 /* end confdefs.h. */
39655 #ifdef HAVE_DB_185_H
39656 # include <db_185.h>
39661 #ifndef DB_VERSION_MAJOR
39662 # define DB_VERSION_MAJOR 1
39666 #define NULL ((void*)0)
39673 #if DB_VERSION_MAJOR > 1
39676 int major, minor, patch;
39678 version = db_version( &major, &minor, &patch );
39680 if( major != DB_VERSION_MAJOR ||
39681 minor < DB_VERSION_MINOR )
39683 printf("Berkeley DB version mismatch\n"
39684 "\theader: %s\n\tlibrary: %s\n",
39685 DB_VERSION_STRING, version);
39691 #if DB_VERSION_MAJOR > 2
39692 db_env_create( NULL, 0 );
39693 #elif DB_VERSION_MAJOR > 1
39694 db_appexit( NULL );
39696 (void) dbopen( NULL, 0, 0, 0, NULL);
39703 rm -f conftest.$ac_objext conftest$ac_exeext
39704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39705 (eval $ac_link) 2>conftest.er1
39707 grep -v '^ *+' conftest.er1 >conftest.err
39709 cat conftest.err >&5
39710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39711 (exit $ac_status); } &&
39712 { ac_try='test -z "$ac_c_werror_flag"
39713 || test ! -s conftest.err'
39714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39715 (eval $ac_try) 2>&5
39717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39718 (exit $ac_status); }; } &&
39719 { ac_try='test -s conftest$ac_exeext'
39720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39721 (eval $ac_try) 2>&5
39723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39724 (exit $ac_status); }; }; then
39727 echo "$as_me: failed program was:" >&5
39728 sed 's/^/| /' conftest.$ac_ext >&5
39732 rm -f conftest.err conftest.$ac_objext \
39733 conftest$ac_exeext conftest.$ac_ext
39738 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
39739 echo "${ECHO_T}$ol_cv_db_db3" >&6
39741 if test $ol_cv_db_db3 = yes ; then
39746 if test $ol_cv_lib_db = no ; then
39747 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
39748 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
39749 if test "${ol_cv_db_db_3+set}" = set; then
39750 echo $ECHO_N "(cached) $ECHO_C" >&6
39755 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39757 cat >conftest.$ac_ext <<_ACEOF
39760 cat confdefs.h >>conftest.$ac_ext
39761 cat >>conftest.$ac_ext <<_ACEOF
39762 /* end confdefs.h. */
39764 #ifdef HAVE_DB_185_H
39765 # include <db_185.h>
39770 #ifndef DB_VERSION_MAJOR
39771 # define DB_VERSION_MAJOR 1
39775 #define NULL ((void*)0)
39782 #if DB_VERSION_MAJOR > 1
39785 int major, minor, patch;
39787 version = db_version( &major, &minor, &patch );
39789 if( major != DB_VERSION_MAJOR ||
39790 minor < DB_VERSION_MINOR )
39792 printf("Berkeley DB version mismatch\n"
39793 "\theader: %s\n\tlibrary: %s\n",
39794 DB_VERSION_STRING, version);
39800 #if DB_VERSION_MAJOR > 2
39801 db_env_create( NULL, 0 );
39802 #elif DB_VERSION_MAJOR > 1
39803 db_appexit( NULL );
39805 (void) dbopen( NULL, 0, 0, 0, NULL);
39812 rm -f conftest.$ac_objext conftest$ac_exeext
39813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39814 (eval $ac_link) 2>conftest.er1
39816 grep -v '^ *+' conftest.er1 >conftest.err
39818 cat conftest.err >&5
39819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39820 (exit $ac_status); } &&
39821 { ac_try='test -z "$ac_c_werror_flag"
39822 || test ! -s conftest.err'
39823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39824 (eval $ac_try) 2>&5
39826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39827 (exit $ac_status); }; } &&
39828 { ac_try='test -s conftest$ac_exeext'
39829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39830 (eval $ac_try) 2>&5
39832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39833 (exit $ac_status); }; }; then
39836 echo "$as_me: failed program was:" >&5
39837 sed 's/^/| /' conftest.$ac_ext >&5
39841 rm -f conftest.err conftest.$ac_objext \
39842 conftest$ac_exeext conftest.$ac_ext
39847 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
39848 echo "${ECHO_T}$ol_cv_db_db_3" >&6
39850 if test $ol_cv_db_db_3 = yes ; then
39851 ol_cv_lib_db=-ldb-3
39855 if test $ol_cv_lib_db = no ; then
39856 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
39857 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
39858 if test "${ol_cv_db_db2+set}" = set; then
39859 echo $ECHO_N "(cached) $ECHO_C" >&6
39864 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39866 cat >conftest.$ac_ext <<_ACEOF
39869 cat confdefs.h >>conftest.$ac_ext
39870 cat >>conftest.$ac_ext <<_ACEOF
39871 /* end confdefs.h. */
39873 #ifdef HAVE_DB_185_H
39874 # include <db_185.h>
39879 #ifndef DB_VERSION_MAJOR
39880 # define DB_VERSION_MAJOR 1
39884 #define NULL ((void*)0)
39891 #if DB_VERSION_MAJOR > 1
39894 int major, minor, patch;
39896 version = db_version( &major, &minor, &patch );
39898 if( major != DB_VERSION_MAJOR ||
39899 minor < DB_VERSION_MINOR )
39901 printf("Berkeley DB version mismatch\n"
39902 "\theader: %s\n\tlibrary: %s\n",
39903 DB_VERSION_STRING, version);
39909 #if DB_VERSION_MAJOR > 2
39910 db_env_create( NULL, 0 );
39911 #elif DB_VERSION_MAJOR > 1
39912 db_appexit( NULL );
39914 (void) dbopen( NULL, 0, 0, 0, NULL);
39921 rm -f conftest.$ac_objext conftest$ac_exeext
39922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39923 (eval $ac_link) 2>conftest.er1
39925 grep -v '^ *+' conftest.er1 >conftest.err
39927 cat conftest.err >&5
39928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39929 (exit $ac_status); } &&
39930 { ac_try='test -z "$ac_c_werror_flag"
39931 || test ! -s conftest.err'
39932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39933 (eval $ac_try) 2>&5
39935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39936 (exit $ac_status); }; } &&
39937 { ac_try='test -s conftest$ac_exeext'
39938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39939 (eval $ac_try) 2>&5
39941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39942 (exit $ac_status); }; }; then
39945 echo "$as_me: failed program was:" >&5
39946 sed 's/^/| /' conftest.$ac_ext >&5
39950 rm -f conftest.err conftest.$ac_objext \
39951 conftest$ac_exeext conftest.$ac_ext
39956 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
39957 echo "${ECHO_T}$ol_cv_db_db2" >&6
39959 if test $ol_cv_db_db2 = yes ; then
39964 if test $ol_cv_lib_db = no ; then
39965 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
39966 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
39967 if test "${ol_cv_db_db_2+set}" = set; then
39968 echo $ECHO_N "(cached) $ECHO_C" >&6
39973 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39975 cat >conftest.$ac_ext <<_ACEOF
39978 cat confdefs.h >>conftest.$ac_ext
39979 cat >>conftest.$ac_ext <<_ACEOF
39980 /* end confdefs.h. */
39982 #ifdef HAVE_DB_185_H
39983 # include <db_185.h>
39988 #ifndef DB_VERSION_MAJOR
39989 # define DB_VERSION_MAJOR 1
39993 #define NULL ((void*)0)
40000 #if DB_VERSION_MAJOR > 1
40003 int major, minor, patch;
40005 version = db_version( &major, &minor, &patch );
40007 if( major != DB_VERSION_MAJOR ||
40008 minor < DB_VERSION_MINOR )
40010 printf("Berkeley DB version mismatch\n"
40011 "\theader: %s\n\tlibrary: %s\n",
40012 DB_VERSION_STRING, version);
40018 #if DB_VERSION_MAJOR > 2
40019 db_env_create( NULL, 0 );
40020 #elif DB_VERSION_MAJOR > 1
40021 db_appexit( NULL );
40023 (void) dbopen( NULL, 0, 0, 0, NULL);
40030 rm -f conftest.$ac_objext conftest$ac_exeext
40031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40032 (eval $ac_link) 2>conftest.er1
40034 grep -v '^ *+' conftest.er1 >conftest.err
40036 cat conftest.err >&5
40037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40038 (exit $ac_status); } &&
40039 { ac_try='test -z "$ac_c_werror_flag"
40040 || test ! -s conftest.err'
40041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40042 (eval $ac_try) 2>&5
40044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40045 (exit $ac_status); }; } &&
40046 { ac_try='test -s conftest$ac_exeext'
40047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40048 (eval $ac_try) 2>&5
40050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40051 (exit $ac_status); }; }; then
40054 echo "$as_me: failed program was:" >&5
40055 sed 's/^/| /' conftest.$ac_ext >&5
40059 rm -f conftest.err conftest.$ac_objext \
40060 conftest$ac_exeext conftest.$ac_ext
40065 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
40066 echo "${ECHO_T}$ol_cv_db_db_2" >&6
40068 if test $ol_cv_db_db_2 = yes ; then
40069 ol_cv_lib_db=-ldb-2
40073 if test $ol_cv_lib_db = no ; then
40074 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
40075 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
40076 if test "${ol_cv_db_db1+set}" = set; then
40077 echo $ECHO_N "(cached) $ECHO_C" >&6
40082 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40084 cat >conftest.$ac_ext <<_ACEOF
40087 cat confdefs.h >>conftest.$ac_ext
40088 cat >>conftest.$ac_ext <<_ACEOF
40089 /* end confdefs.h. */
40091 #ifdef HAVE_DB_185_H
40092 # include <db_185.h>
40097 #ifndef DB_VERSION_MAJOR
40098 # define DB_VERSION_MAJOR 1
40102 #define NULL ((void*)0)
40109 #if DB_VERSION_MAJOR > 1
40112 int major, minor, patch;
40114 version = db_version( &major, &minor, &patch );
40116 if( major != DB_VERSION_MAJOR ||
40117 minor < DB_VERSION_MINOR )
40119 printf("Berkeley DB version mismatch\n"
40120 "\theader: %s\n\tlibrary: %s\n",
40121 DB_VERSION_STRING, version);
40127 #if DB_VERSION_MAJOR > 2
40128 db_env_create( NULL, 0 );
40129 #elif DB_VERSION_MAJOR > 1
40130 db_appexit( NULL );
40132 (void) dbopen( NULL, 0, 0, 0, NULL);
40139 rm -f conftest.$ac_objext conftest$ac_exeext
40140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40141 (eval $ac_link) 2>conftest.er1
40143 grep -v '^ *+' conftest.er1 >conftest.err
40145 cat conftest.err >&5
40146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40147 (exit $ac_status); } &&
40148 { ac_try='test -z "$ac_c_werror_flag"
40149 || test ! -s conftest.err'
40150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40151 (eval $ac_try) 2>&5
40153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40154 (exit $ac_status); }; } &&
40155 { ac_try='test -s conftest$ac_exeext'
40156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40157 (eval $ac_try) 2>&5
40159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40160 (exit $ac_status); }; }; then
40163 echo "$as_me: failed program was:" >&5
40164 sed 's/^/| /' conftest.$ac_ext >&5
40168 rm -f conftest.err conftest.$ac_objext \
40169 conftest$ac_exeext conftest.$ac_ext
40174 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
40175 echo "${ECHO_T}$ol_cv_db_db1" >&6
40177 if test $ol_cv_db_db1 = yes ; then
40182 if test $ol_cv_lib_db = no ; then
40183 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
40184 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
40185 if test "${ol_cv_db_db_1+set}" = set; then
40186 echo $ECHO_N "(cached) $ECHO_C" >&6
40191 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40193 cat >conftest.$ac_ext <<_ACEOF
40196 cat confdefs.h >>conftest.$ac_ext
40197 cat >>conftest.$ac_ext <<_ACEOF
40198 /* end confdefs.h. */
40200 #ifdef HAVE_DB_185_H
40201 # include <db_185.h>
40206 #ifndef DB_VERSION_MAJOR
40207 # define DB_VERSION_MAJOR 1
40211 #define NULL ((void*)0)
40218 #if DB_VERSION_MAJOR > 1
40221 int major, minor, patch;
40223 version = db_version( &major, &minor, &patch );
40225 if( major != DB_VERSION_MAJOR ||
40226 minor < DB_VERSION_MINOR )
40228 printf("Berkeley DB version mismatch\n"
40229 "\theader: %s\n\tlibrary: %s\n",
40230 DB_VERSION_STRING, version);
40236 #if DB_VERSION_MAJOR > 2
40237 db_env_create( NULL, 0 );
40238 #elif DB_VERSION_MAJOR > 1
40239 db_appexit( NULL );
40241 (void) dbopen( NULL, 0, 0, 0, NULL);
40248 rm -f conftest.$ac_objext conftest$ac_exeext
40249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40250 (eval $ac_link) 2>conftest.er1
40252 grep -v '^ *+' conftest.er1 >conftest.err
40254 cat conftest.err >&5
40255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40256 (exit $ac_status); } &&
40257 { ac_try='test -z "$ac_c_werror_flag"
40258 || test ! -s conftest.err'
40259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40260 (eval $ac_try) 2>&5
40262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40263 (exit $ac_status); }; } &&
40264 { ac_try='test -s conftest$ac_exeext'
40265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40266 (eval $ac_try) 2>&5
40268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40269 (exit $ac_status); }; }; then
40272 echo "$as_me: failed program was:" >&5
40273 sed 's/^/| /' conftest.$ac_ext >&5
40277 rm -f conftest.err conftest.$ac_objext \
40278 conftest$ac_exeext conftest.$ac_ext
40283 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
40284 echo "${ECHO_T}$ol_cv_db_db_1" >&6
40286 if test $ol_cv_db_db_1 = yes ; then
40287 ol_cv_lib_db=-ldb-1
40292 if test "$ol_cv_lib_db" != no ; then
40293 ol_cv_berkeley_db=yes
40299 ol_cv_berkeley_db=no
40301 for ac_header in db.h
40303 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40305 echo "$as_me:$LINENO: checking for $ac_header" >&5
40306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40308 echo $ECHO_N "(cached) $ECHO_C" >&6
40310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40313 # Is the header compilable?
40314 echo "$as_me:$LINENO: checking $ac_header usability" >&5
40315 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
40316 cat >conftest.$ac_ext <<_ACEOF
40319 cat confdefs.h >>conftest.$ac_ext
40320 cat >>conftest.$ac_ext <<_ACEOF
40321 /* end confdefs.h. */
40322 $ac_includes_default
40323 #include <$ac_header>
40325 rm -f conftest.$ac_objext
40326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40327 (eval $ac_compile) 2>conftest.er1
40329 grep -v '^ *+' conftest.er1 >conftest.err
40331 cat conftest.err >&5
40332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40333 (exit $ac_status); } &&
40334 { ac_try='test -z "$ac_c_werror_flag"
40335 || test ! -s conftest.err'
40336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40337 (eval $ac_try) 2>&5
40339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40340 (exit $ac_status); }; } &&
40341 { ac_try='test -s conftest.$ac_objext'
40342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40343 (eval $ac_try) 2>&5
40345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40346 (exit $ac_status); }; }; then
40347 ac_header_compiler=yes
40349 echo "$as_me: failed program was:" >&5
40350 sed 's/^/| /' conftest.$ac_ext >&5
40352 ac_header_compiler=no
40354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40355 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40356 echo "${ECHO_T}$ac_header_compiler" >&6
40358 # Is the header present?
40359 echo "$as_me:$LINENO: checking $ac_header presence" >&5
40360 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
40361 cat >conftest.$ac_ext <<_ACEOF
40364 cat confdefs.h >>conftest.$ac_ext
40365 cat >>conftest.$ac_ext <<_ACEOF
40366 /* end confdefs.h. */
40367 #include <$ac_header>
40369 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
40370 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
40372 grep -v '^ *+' conftest.er1 >conftest.err
40374 cat conftest.err >&5
40375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40376 (exit $ac_status); } >/dev/null; then
40377 if test -s conftest.err; then
40378 ac_cpp_err=$ac_c_preproc_warn_flag
40379 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
40386 if test -z "$ac_cpp_err"; then
40387 ac_header_preproc=yes
40389 echo "$as_me: failed program was:" >&5
40390 sed 's/^/| /' conftest.$ac_ext >&5
40392 ac_header_preproc=no
40394 rm -f conftest.err conftest.$ac_ext
40395 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40396 echo "${ECHO_T}$ac_header_preproc" >&6
40398 # So? What about this header?
40399 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40401 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40402 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40404 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40405 ac_header_preproc=yes
40408 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40409 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40410 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40411 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40412 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40413 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40414 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40415 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
40416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40417 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40418 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40419 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40422 ## ------------------------------------------ ##
40423 ## Report this to the AC_PACKAGE_NAME lists. ##
40424 ## ------------------------------------------ ##
40427 sed "s/^/$as_me: WARNING: /" >&2
40430 echo "$as_me:$LINENO: checking for $ac_header" >&5
40431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40433 echo $ECHO_N "(cached) $ECHO_C" >&6
40435 eval "$as_ac_Header=\$ac_header_preproc"
40437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40438 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40442 cat >>confdefs.h <<_ACEOF
40443 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40450 if test $ac_cv_header_db_h = yes; then
40452 if test $ol_cv_lib_db = no ; then
40453 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
40454 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
40455 if test "${ol_cv_db_none+set}" = set; then
40456 echo $ECHO_N "(cached) $ECHO_C" >&6
40461 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40463 cat >conftest.$ac_ext <<_ACEOF
40466 cat confdefs.h >>conftest.$ac_ext
40467 cat >>conftest.$ac_ext <<_ACEOF
40468 /* end confdefs.h. */
40470 #ifdef HAVE_DB_185_H
40471 # include <db_185.h>
40476 #ifndef DB_VERSION_MAJOR
40477 # define DB_VERSION_MAJOR 1
40481 #define NULL ((void*)0)
40488 #if DB_VERSION_MAJOR > 1
40491 int major, minor, patch;
40493 version = db_version( &major, &minor, &patch );
40495 if( major != DB_VERSION_MAJOR ||
40496 minor < DB_VERSION_MINOR )
40498 printf("Berkeley DB version mismatch\n"
40499 "\theader: %s\n\tlibrary: %s\n",
40500 DB_VERSION_STRING, version);
40506 #if DB_VERSION_MAJOR > 2
40507 db_env_create( NULL, 0 );
40508 #elif DB_VERSION_MAJOR > 1
40509 db_appexit( NULL );
40511 (void) dbopen( NULL, 0, 0, 0, NULL);
40518 rm -f conftest.$ac_objext conftest$ac_exeext
40519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40520 (eval $ac_link) 2>conftest.er1
40522 grep -v '^ *+' conftest.er1 >conftest.err
40524 cat conftest.err >&5
40525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40526 (exit $ac_status); } &&
40527 { ac_try='test -z "$ac_c_werror_flag"
40528 || test ! -s conftest.err'
40529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40530 (eval $ac_try) 2>&5
40532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40533 (exit $ac_status); }; } &&
40534 { ac_try='test -s conftest$ac_exeext'
40535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40536 (eval $ac_try) 2>&5
40538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40539 (exit $ac_status); }; }; then
40542 echo "$as_me: failed program was:" >&5
40543 sed 's/^/| /' conftest.$ac_ext >&5
40547 rm -f conftest.err conftest.$ac_objext \
40548 conftest$ac_exeext conftest.$ac_ext
40553 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
40554 echo "${ECHO_T}$ol_cv_db_none" >&6
40556 if test $ol_cv_db_none = yes ; then
40561 if test $ol_cv_lib_db = no ; then
40562 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
40563 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
40564 if test "${ol_cv_db_db43+set}" = set; then
40565 echo $ECHO_N "(cached) $ECHO_C" >&6
40570 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40572 cat >conftest.$ac_ext <<_ACEOF
40575 cat confdefs.h >>conftest.$ac_ext
40576 cat >>conftest.$ac_ext <<_ACEOF
40577 /* end confdefs.h. */
40579 #ifdef HAVE_DB_185_H
40580 # include <db_185.h>
40585 #ifndef DB_VERSION_MAJOR
40586 # define DB_VERSION_MAJOR 1
40590 #define NULL ((void*)0)
40597 #if DB_VERSION_MAJOR > 1
40600 int major, minor, patch;
40602 version = db_version( &major, &minor, &patch );
40604 if( major != DB_VERSION_MAJOR ||
40605 minor < DB_VERSION_MINOR )
40607 printf("Berkeley DB version mismatch\n"
40608 "\theader: %s\n\tlibrary: %s\n",
40609 DB_VERSION_STRING, version);
40615 #if DB_VERSION_MAJOR > 2
40616 db_env_create( NULL, 0 );
40617 #elif DB_VERSION_MAJOR > 1
40618 db_appexit( NULL );
40620 (void) dbopen( NULL, 0, 0, 0, NULL);
40627 rm -f conftest.$ac_objext conftest$ac_exeext
40628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40629 (eval $ac_link) 2>conftest.er1
40631 grep -v '^ *+' conftest.er1 >conftest.err
40633 cat conftest.err >&5
40634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40635 (exit $ac_status); } &&
40636 { ac_try='test -z "$ac_c_werror_flag"
40637 || test ! -s conftest.err'
40638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40639 (eval $ac_try) 2>&5
40641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40642 (exit $ac_status); }; } &&
40643 { ac_try='test -s conftest$ac_exeext'
40644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40645 (eval $ac_try) 2>&5
40647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40648 (exit $ac_status); }; }; then
40651 echo "$as_me: failed program was:" >&5
40652 sed 's/^/| /' conftest.$ac_ext >&5
40656 rm -f conftest.err conftest.$ac_objext \
40657 conftest$ac_exeext conftest.$ac_ext
40662 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
40663 echo "${ECHO_T}$ol_cv_db_db43" >&6
40665 if test $ol_cv_db_db43 = yes ; then
40666 ol_cv_lib_db=-ldb43
40670 if test $ol_cv_lib_db = no ; then
40671 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
40672 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
40673 if test "${ol_cv_db_db_43+set}" = set; then
40674 echo $ECHO_N "(cached) $ECHO_C" >&6
40679 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40681 cat >conftest.$ac_ext <<_ACEOF
40684 cat confdefs.h >>conftest.$ac_ext
40685 cat >>conftest.$ac_ext <<_ACEOF
40686 /* end confdefs.h. */
40688 #ifdef HAVE_DB_185_H
40689 # include <db_185.h>
40694 #ifndef DB_VERSION_MAJOR
40695 # define DB_VERSION_MAJOR 1
40699 #define NULL ((void*)0)
40706 #if DB_VERSION_MAJOR > 1
40709 int major, minor, patch;
40711 version = db_version( &major, &minor, &patch );
40713 if( major != DB_VERSION_MAJOR ||
40714 minor < DB_VERSION_MINOR )
40716 printf("Berkeley DB version mismatch\n"
40717 "\theader: %s\n\tlibrary: %s\n",
40718 DB_VERSION_STRING, version);
40724 #if DB_VERSION_MAJOR > 2
40725 db_env_create( NULL, 0 );
40726 #elif DB_VERSION_MAJOR > 1
40727 db_appexit( NULL );
40729 (void) dbopen( NULL, 0, 0, 0, NULL);
40736 rm -f conftest.$ac_objext conftest$ac_exeext
40737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40738 (eval $ac_link) 2>conftest.er1
40740 grep -v '^ *+' conftest.er1 >conftest.err
40742 cat conftest.err >&5
40743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40744 (exit $ac_status); } &&
40745 { ac_try='test -z "$ac_c_werror_flag"
40746 || test ! -s conftest.err'
40747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40748 (eval $ac_try) 2>&5
40750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40751 (exit $ac_status); }; } &&
40752 { ac_try='test -s conftest$ac_exeext'
40753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40754 (eval $ac_try) 2>&5
40756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40757 (exit $ac_status); }; }; then
40760 echo "$as_me: failed program was:" >&5
40761 sed 's/^/| /' conftest.$ac_ext >&5
40765 rm -f conftest.err conftest.$ac_objext \
40766 conftest$ac_exeext conftest.$ac_ext
40771 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
40772 echo "${ECHO_T}$ol_cv_db_db_43" >&6
40774 if test $ol_cv_db_db_43 = yes ; then
40775 ol_cv_lib_db=-ldb-43
40779 if test $ol_cv_lib_db = no ; then
40780 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
40781 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
40782 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
40783 echo $ECHO_N "(cached) $ECHO_C" >&6
40788 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40790 cat >conftest.$ac_ext <<_ACEOF
40793 cat confdefs.h >>conftest.$ac_ext
40794 cat >>conftest.$ac_ext <<_ACEOF
40795 /* end confdefs.h. */
40797 #ifdef HAVE_DB_185_H
40798 # include <db_185.h>
40803 #ifndef DB_VERSION_MAJOR
40804 # define DB_VERSION_MAJOR 1
40808 #define NULL ((void*)0)
40815 #if DB_VERSION_MAJOR > 1
40818 int major, minor, patch;
40820 version = db_version( &major, &minor, &patch );
40822 if( major != DB_VERSION_MAJOR ||
40823 minor < DB_VERSION_MINOR )
40825 printf("Berkeley DB version mismatch\n"
40826 "\theader: %s\n\tlibrary: %s\n",
40827 DB_VERSION_STRING, version);
40833 #if DB_VERSION_MAJOR > 2
40834 db_env_create( NULL, 0 );
40835 #elif DB_VERSION_MAJOR > 1
40836 db_appexit( NULL );
40838 (void) dbopen( NULL, 0, 0, 0, NULL);
40845 rm -f conftest.$ac_objext conftest$ac_exeext
40846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40847 (eval $ac_link) 2>conftest.er1
40849 grep -v '^ *+' conftest.er1 >conftest.err
40851 cat conftest.err >&5
40852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40853 (exit $ac_status); } &&
40854 { ac_try='test -z "$ac_c_werror_flag"
40855 || test ! -s conftest.err'
40856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40857 (eval $ac_try) 2>&5
40859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40860 (exit $ac_status); }; } &&
40861 { ac_try='test -s conftest$ac_exeext'
40862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40863 (eval $ac_try) 2>&5
40865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40866 (exit $ac_status); }; }; then
40867 ol_cv_db_db_4_dot_3=yes
40869 echo "$as_me: failed program was:" >&5
40870 sed 's/^/| /' conftest.$ac_ext >&5
40872 ol_cv_db_db_4_dot_3=no
40874 rm -f conftest.err conftest.$ac_objext \
40875 conftest$ac_exeext conftest.$ac_ext
40880 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
40881 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
40883 if test $ol_cv_db_db_4_dot_3 = yes ; then
40884 ol_cv_lib_db=-ldb-4.3
40888 if test $ol_cv_lib_db = no ; then
40889 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
40890 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
40891 if test "${ol_cv_db_db_4_3+set}" = set; then
40892 echo $ECHO_N "(cached) $ECHO_C" >&6
40897 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40899 cat >conftest.$ac_ext <<_ACEOF
40902 cat confdefs.h >>conftest.$ac_ext
40903 cat >>conftest.$ac_ext <<_ACEOF
40904 /* end confdefs.h. */
40906 #ifdef HAVE_DB_185_H
40907 # include <db_185.h>
40912 #ifndef DB_VERSION_MAJOR
40913 # define DB_VERSION_MAJOR 1
40917 #define NULL ((void*)0)
40924 #if DB_VERSION_MAJOR > 1
40927 int major, minor, patch;
40929 version = db_version( &major, &minor, &patch );
40931 if( major != DB_VERSION_MAJOR ||
40932 minor < DB_VERSION_MINOR )
40934 printf("Berkeley DB version mismatch\n"
40935 "\theader: %s\n\tlibrary: %s\n",
40936 DB_VERSION_STRING, version);
40942 #if DB_VERSION_MAJOR > 2
40943 db_env_create( NULL, 0 );
40944 #elif DB_VERSION_MAJOR > 1
40945 db_appexit( NULL );
40947 (void) dbopen( NULL, 0, 0, 0, NULL);
40954 rm -f conftest.$ac_objext conftest$ac_exeext
40955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40956 (eval $ac_link) 2>conftest.er1
40958 grep -v '^ *+' conftest.er1 >conftest.err
40960 cat conftest.err >&5
40961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40962 (exit $ac_status); } &&
40963 { ac_try='test -z "$ac_c_werror_flag"
40964 || test ! -s conftest.err'
40965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40966 (eval $ac_try) 2>&5
40968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40969 (exit $ac_status); }; } &&
40970 { ac_try='test -s conftest$ac_exeext'
40971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40972 (eval $ac_try) 2>&5
40974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40975 (exit $ac_status); }; }; then
40976 ol_cv_db_db_4_3=yes
40978 echo "$as_me: failed program was:" >&5
40979 sed 's/^/| /' conftest.$ac_ext >&5
40983 rm -f conftest.err conftest.$ac_objext \
40984 conftest$ac_exeext conftest.$ac_ext
40989 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
40990 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
40992 if test $ol_cv_db_db_4_3 = yes ; then
40993 ol_cv_lib_db=-ldb-4-3
40997 if test $ol_cv_lib_db = no ; then
40998 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
40999 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
41000 if test "${ol_cv_db_db42+set}" = set; then
41001 echo $ECHO_N "(cached) $ECHO_C" >&6
41006 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41008 cat >conftest.$ac_ext <<_ACEOF
41011 cat confdefs.h >>conftest.$ac_ext
41012 cat >>conftest.$ac_ext <<_ACEOF
41013 /* end confdefs.h. */
41015 #ifdef HAVE_DB_185_H
41016 # include <db_185.h>
41021 #ifndef DB_VERSION_MAJOR
41022 # define DB_VERSION_MAJOR 1
41026 #define NULL ((void*)0)
41033 #if DB_VERSION_MAJOR > 1
41036 int major, minor, patch;
41038 version = db_version( &major, &minor, &patch );
41040 if( major != DB_VERSION_MAJOR ||
41041 minor < DB_VERSION_MINOR )
41043 printf("Berkeley DB version mismatch\n"
41044 "\theader: %s\n\tlibrary: %s\n",
41045 DB_VERSION_STRING, version);
41051 #if DB_VERSION_MAJOR > 2
41052 db_env_create( NULL, 0 );
41053 #elif DB_VERSION_MAJOR > 1
41054 db_appexit( NULL );
41056 (void) dbopen( NULL, 0, 0, 0, NULL);
41063 rm -f conftest.$ac_objext conftest$ac_exeext
41064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41065 (eval $ac_link) 2>conftest.er1
41067 grep -v '^ *+' conftest.er1 >conftest.err
41069 cat conftest.err >&5
41070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41071 (exit $ac_status); } &&
41072 { ac_try='test -z "$ac_c_werror_flag"
41073 || test ! -s conftest.err'
41074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41075 (eval $ac_try) 2>&5
41077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41078 (exit $ac_status); }; } &&
41079 { ac_try='test -s conftest$ac_exeext'
41080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41081 (eval $ac_try) 2>&5
41083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41084 (exit $ac_status); }; }; then
41087 echo "$as_me: failed program was:" >&5
41088 sed 's/^/| /' conftest.$ac_ext >&5
41092 rm -f conftest.err conftest.$ac_objext \
41093 conftest$ac_exeext conftest.$ac_ext
41098 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
41099 echo "${ECHO_T}$ol_cv_db_db42" >&6
41101 if test $ol_cv_db_db42 = yes ; then
41102 ol_cv_lib_db=-ldb42
41106 if test $ol_cv_lib_db = no ; then
41107 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
41108 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
41109 if test "${ol_cv_db_db_42+set}" = set; then
41110 echo $ECHO_N "(cached) $ECHO_C" >&6
41115 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41117 cat >conftest.$ac_ext <<_ACEOF
41120 cat confdefs.h >>conftest.$ac_ext
41121 cat >>conftest.$ac_ext <<_ACEOF
41122 /* end confdefs.h. */
41124 #ifdef HAVE_DB_185_H
41125 # include <db_185.h>
41130 #ifndef DB_VERSION_MAJOR
41131 # define DB_VERSION_MAJOR 1
41135 #define NULL ((void*)0)
41142 #if DB_VERSION_MAJOR > 1
41145 int major, minor, patch;
41147 version = db_version( &major, &minor, &patch );
41149 if( major != DB_VERSION_MAJOR ||
41150 minor < DB_VERSION_MINOR )
41152 printf("Berkeley DB version mismatch\n"
41153 "\theader: %s\n\tlibrary: %s\n",
41154 DB_VERSION_STRING, version);
41160 #if DB_VERSION_MAJOR > 2
41161 db_env_create( NULL, 0 );
41162 #elif DB_VERSION_MAJOR > 1
41163 db_appexit( NULL );
41165 (void) dbopen( NULL, 0, 0, 0, NULL);
41172 rm -f conftest.$ac_objext conftest$ac_exeext
41173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41174 (eval $ac_link) 2>conftest.er1
41176 grep -v '^ *+' conftest.er1 >conftest.err
41178 cat conftest.err >&5
41179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41180 (exit $ac_status); } &&
41181 { ac_try='test -z "$ac_c_werror_flag"
41182 || test ! -s conftest.err'
41183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41184 (eval $ac_try) 2>&5
41186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41187 (exit $ac_status); }; } &&
41188 { ac_try='test -s conftest$ac_exeext'
41189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41190 (eval $ac_try) 2>&5
41192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41193 (exit $ac_status); }; }; then
41196 echo "$as_me: failed program was:" >&5
41197 sed 's/^/| /' conftest.$ac_ext >&5
41201 rm -f conftest.err conftest.$ac_objext \
41202 conftest$ac_exeext conftest.$ac_ext
41207 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
41208 echo "${ECHO_T}$ol_cv_db_db_42" >&6
41210 if test $ol_cv_db_db_42 = yes ; then
41211 ol_cv_lib_db=-ldb-42
41215 if test $ol_cv_lib_db = no ; then
41216 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
41217 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
41218 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
41219 echo $ECHO_N "(cached) $ECHO_C" >&6
41224 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41226 cat >conftest.$ac_ext <<_ACEOF
41229 cat confdefs.h >>conftest.$ac_ext
41230 cat >>conftest.$ac_ext <<_ACEOF
41231 /* end confdefs.h. */
41233 #ifdef HAVE_DB_185_H
41234 # include <db_185.h>
41239 #ifndef DB_VERSION_MAJOR
41240 # define DB_VERSION_MAJOR 1
41244 #define NULL ((void*)0)
41251 #if DB_VERSION_MAJOR > 1
41254 int major, minor, patch;
41256 version = db_version( &major, &minor, &patch );
41258 if( major != DB_VERSION_MAJOR ||
41259 minor < DB_VERSION_MINOR )
41261 printf("Berkeley DB version mismatch\n"
41262 "\theader: %s\n\tlibrary: %s\n",
41263 DB_VERSION_STRING, version);
41269 #if DB_VERSION_MAJOR > 2
41270 db_env_create( NULL, 0 );
41271 #elif DB_VERSION_MAJOR > 1
41272 db_appexit( NULL );
41274 (void) dbopen( NULL, 0, 0, 0, NULL);
41281 rm -f conftest.$ac_objext conftest$ac_exeext
41282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41283 (eval $ac_link) 2>conftest.er1
41285 grep -v '^ *+' conftest.er1 >conftest.err
41287 cat conftest.err >&5
41288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41289 (exit $ac_status); } &&
41290 { ac_try='test -z "$ac_c_werror_flag"
41291 || test ! -s conftest.err'
41292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41293 (eval $ac_try) 2>&5
41295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41296 (exit $ac_status); }; } &&
41297 { ac_try='test -s conftest$ac_exeext'
41298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41299 (eval $ac_try) 2>&5
41301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41302 (exit $ac_status); }; }; then
41303 ol_cv_db_db_4_dot_2=yes
41305 echo "$as_me: failed program was:" >&5
41306 sed 's/^/| /' conftest.$ac_ext >&5
41308 ol_cv_db_db_4_dot_2=no
41310 rm -f conftest.err conftest.$ac_objext \
41311 conftest$ac_exeext conftest.$ac_ext
41316 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
41317 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
41319 if test $ol_cv_db_db_4_dot_2 = yes ; then
41320 ol_cv_lib_db=-ldb-4.2
41324 if test $ol_cv_lib_db = no ; then
41325 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
41326 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
41327 if test "${ol_cv_db_db_4_2+set}" = set; then
41328 echo $ECHO_N "(cached) $ECHO_C" >&6
41333 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41335 cat >conftest.$ac_ext <<_ACEOF
41338 cat confdefs.h >>conftest.$ac_ext
41339 cat >>conftest.$ac_ext <<_ACEOF
41340 /* end confdefs.h. */
41342 #ifdef HAVE_DB_185_H
41343 # include <db_185.h>
41348 #ifndef DB_VERSION_MAJOR
41349 # define DB_VERSION_MAJOR 1
41353 #define NULL ((void*)0)
41360 #if DB_VERSION_MAJOR > 1
41363 int major, minor, patch;
41365 version = db_version( &major, &minor, &patch );
41367 if( major != DB_VERSION_MAJOR ||
41368 minor < DB_VERSION_MINOR )
41370 printf("Berkeley DB version mismatch\n"
41371 "\theader: %s\n\tlibrary: %s\n",
41372 DB_VERSION_STRING, version);
41378 #if DB_VERSION_MAJOR > 2
41379 db_env_create( NULL, 0 );
41380 #elif DB_VERSION_MAJOR > 1
41381 db_appexit( NULL );
41383 (void) dbopen( NULL, 0, 0, 0, NULL);
41390 rm -f conftest.$ac_objext conftest$ac_exeext
41391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41392 (eval $ac_link) 2>conftest.er1
41394 grep -v '^ *+' conftest.er1 >conftest.err
41396 cat conftest.err >&5
41397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41398 (exit $ac_status); } &&
41399 { ac_try='test -z "$ac_c_werror_flag"
41400 || test ! -s conftest.err'
41401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41402 (eval $ac_try) 2>&5
41404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41405 (exit $ac_status); }; } &&
41406 { ac_try='test -s conftest$ac_exeext'
41407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41408 (eval $ac_try) 2>&5
41410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41411 (exit $ac_status); }; }; then
41412 ol_cv_db_db_4_2=yes
41414 echo "$as_me: failed program was:" >&5
41415 sed 's/^/| /' conftest.$ac_ext >&5
41419 rm -f conftest.err conftest.$ac_objext \
41420 conftest$ac_exeext conftest.$ac_ext
41425 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
41426 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
41428 if test $ol_cv_db_db_4_2 = yes ; then
41429 ol_cv_lib_db=-ldb-4-2
41433 if test $ol_cv_lib_db = no ; then
41434 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
41435 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
41436 if test "${ol_cv_db_db_4+set}" = set; then
41437 echo $ECHO_N "(cached) $ECHO_C" >&6
41442 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41444 cat >conftest.$ac_ext <<_ACEOF
41447 cat confdefs.h >>conftest.$ac_ext
41448 cat >>conftest.$ac_ext <<_ACEOF
41449 /* end confdefs.h. */
41451 #ifdef HAVE_DB_185_H
41452 # include <db_185.h>
41457 #ifndef DB_VERSION_MAJOR
41458 # define DB_VERSION_MAJOR 1
41462 #define NULL ((void*)0)
41469 #if DB_VERSION_MAJOR > 1
41472 int major, minor, patch;
41474 version = db_version( &major, &minor, &patch );
41476 if( major != DB_VERSION_MAJOR ||
41477 minor < DB_VERSION_MINOR )
41479 printf("Berkeley DB version mismatch\n"
41480 "\theader: %s\n\tlibrary: %s\n",
41481 DB_VERSION_STRING, version);
41487 #if DB_VERSION_MAJOR > 2
41488 db_env_create( NULL, 0 );
41489 #elif DB_VERSION_MAJOR > 1
41490 db_appexit( NULL );
41492 (void) dbopen( NULL, 0, 0, 0, NULL);
41499 rm -f conftest.$ac_objext conftest$ac_exeext
41500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41501 (eval $ac_link) 2>conftest.er1
41503 grep -v '^ *+' conftest.er1 >conftest.err
41505 cat conftest.err >&5
41506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41507 (exit $ac_status); } &&
41508 { ac_try='test -z "$ac_c_werror_flag"
41509 || test ! -s conftest.err'
41510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41511 (eval $ac_try) 2>&5
41513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41514 (exit $ac_status); }; } &&
41515 { ac_try='test -s conftest$ac_exeext'
41516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41517 (eval $ac_try) 2>&5
41519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41520 (exit $ac_status); }; }; then
41523 echo "$as_me: failed program was:" >&5
41524 sed 's/^/| /' conftest.$ac_ext >&5
41528 rm -f conftest.err conftest.$ac_objext \
41529 conftest$ac_exeext conftest.$ac_ext
41534 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
41535 echo "${ECHO_T}$ol_cv_db_db_4" >&6
41537 if test $ol_cv_db_db_4 = yes ; then
41538 ol_cv_lib_db=-ldb-4
41542 if test $ol_cv_lib_db = no ; then
41543 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
41544 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
41545 if test "${ol_cv_db_db4+set}" = set; then
41546 echo $ECHO_N "(cached) $ECHO_C" >&6
41551 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41553 cat >conftest.$ac_ext <<_ACEOF
41556 cat confdefs.h >>conftest.$ac_ext
41557 cat >>conftest.$ac_ext <<_ACEOF
41558 /* end confdefs.h. */
41560 #ifdef HAVE_DB_185_H
41561 # include <db_185.h>
41566 #ifndef DB_VERSION_MAJOR
41567 # define DB_VERSION_MAJOR 1
41571 #define NULL ((void*)0)
41578 #if DB_VERSION_MAJOR > 1
41581 int major, minor, patch;
41583 version = db_version( &major, &minor, &patch );
41585 if( major != DB_VERSION_MAJOR ||
41586 minor < DB_VERSION_MINOR )
41588 printf("Berkeley DB version mismatch\n"
41589 "\theader: %s\n\tlibrary: %s\n",
41590 DB_VERSION_STRING, version);
41596 #if DB_VERSION_MAJOR > 2
41597 db_env_create( NULL, 0 );
41598 #elif DB_VERSION_MAJOR > 1
41599 db_appexit( NULL );
41601 (void) dbopen( NULL, 0, 0, 0, NULL);
41608 rm -f conftest.$ac_objext conftest$ac_exeext
41609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41610 (eval $ac_link) 2>conftest.er1
41612 grep -v '^ *+' conftest.er1 >conftest.err
41614 cat conftest.err >&5
41615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41616 (exit $ac_status); } &&
41617 { ac_try='test -z "$ac_c_werror_flag"
41618 || test ! -s conftest.err'
41619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41620 (eval $ac_try) 2>&5
41622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41623 (exit $ac_status); }; } &&
41624 { ac_try='test -s conftest$ac_exeext'
41625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41626 (eval $ac_try) 2>&5
41628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41629 (exit $ac_status); }; }; then
41632 echo "$as_me: failed program was:" >&5
41633 sed 's/^/| /' conftest.$ac_ext >&5
41637 rm -f conftest.err conftest.$ac_objext \
41638 conftest$ac_exeext conftest.$ac_ext
41643 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
41644 echo "${ECHO_T}$ol_cv_db_db4" >&6
41646 if test $ol_cv_db_db4 = yes ; then
41651 if test $ol_cv_lib_db = no ; then
41652 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
41653 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
41654 if test "${ol_cv_db_db+set}" = set; then
41655 echo $ECHO_N "(cached) $ECHO_C" >&6
41660 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41662 cat >conftest.$ac_ext <<_ACEOF
41665 cat confdefs.h >>conftest.$ac_ext
41666 cat >>conftest.$ac_ext <<_ACEOF
41667 /* end confdefs.h. */
41669 #ifdef HAVE_DB_185_H
41670 # include <db_185.h>
41675 #ifndef DB_VERSION_MAJOR
41676 # define DB_VERSION_MAJOR 1
41680 #define NULL ((void*)0)
41687 #if DB_VERSION_MAJOR > 1
41690 int major, minor, patch;
41692 version = db_version( &major, &minor, &patch );
41694 if( major != DB_VERSION_MAJOR ||
41695 minor < DB_VERSION_MINOR )
41697 printf("Berkeley DB version mismatch\n"
41698 "\theader: %s\n\tlibrary: %s\n",
41699 DB_VERSION_STRING, version);
41705 #if DB_VERSION_MAJOR > 2
41706 db_env_create( NULL, 0 );
41707 #elif DB_VERSION_MAJOR > 1
41708 db_appexit( NULL );
41710 (void) dbopen( NULL, 0, 0, 0, NULL);
41717 rm -f conftest.$ac_objext conftest$ac_exeext
41718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41719 (eval $ac_link) 2>conftest.er1
41721 grep -v '^ *+' conftest.er1 >conftest.err
41723 cat conftest.err >&5
41724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41725 (exit $ac_status); } &&
41726 { ac_try='test -z "$ac_c_werror_flag"
41727 || test ! -s conftest.err'
41728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41729 (eval $ac_try) 2>&5
41731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41732 (exit $ac_status); }; } &&
41733 { ac_try='test -s conftest$ac_exeext'
41734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41735 (eval $ac_try) 2>&5
41737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41738 (exit $ac_status); }; }; then
41741 echo "$as_me: failed program was:" >&5
41742 sed 's/^/| /' conftest.$ac_ext >&5
41746 rm -f conftest.err conftest.$ac_objext \
41747 conftest$ac_exeext conftest.$ac_ext
41752 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
41753 echo "${ECHO_T}$ol_cv_db_db" >&6
41755 if test $ol_cv_db_db = yes ; then
41760 if test $ol_cv_lib_db = no ; then
41761 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
41762 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
41763 if test "${ol_cv_db_db41+set}" = set; then
41764 echo $ECHO_N "(cached) $ECHO_C" >&6
41769 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41771 cat >conftest.$ac_ext <<_ACEOF
41774 cat confdefs.h >>conftest.$ac_ext
41775 cat >>conftest.$ac_ext <<_ACEOF
41776 /* end confdefs.h. */
41778 #ifdef HAVE_DB_185_H
41779 # include <db_185.h>
41784 #ifndef DB_VERSION_MAJOR
41785 # define DB_VERSION_MAJOR 1
41789 #define NULL ((void*)0)
41796 #if DB_VERSION_MAJOR > 1
41799 int major, minor, patch;
41801 version = db_version( &major, &minor, &patch );
41803 if( major != DB_VERSION_MAJOR ||
41804 minor < DB_VERSION_MINOR )
41806 printf("Berkeley DB version mismatch\n"
41807 "\theader: %s\n\tlibrary: %s\n",
41808 DB_VERSION_STRING, version);
41814 #if DB_VERSION_MAJOR > 2
41815 db_env_create( NULL, 0 );
41816 #elif DB_VERSION_MAJOR > 1
41817 db_appexit( NULL );
41819 (void) dbopen( NULL, 0, 0, 0, NULL);
41826 rm -f conftest.$ac_objext conftest$ac_exeext
41827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41828 (eval $ac_link) 2>conftest.er1
41830 grep -v '^ *+' conftest.er1 >conftest.err
41832 cat conftest.err >&5
41833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41834 (exit $ac_status); } &&
41835 { ac_try='test -z "$ac_c_werror_flag"
41836 || test ! -s conftest.err'
41837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41838 (eval $ac_try) 2>&5
41840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41841 (exit $ac_status); }; } &&
41842 { ac_try='test -s conftest$ac_exeext'
41843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41844 (eval $ac_try) 2>&5
41846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41847 (exit $ac_status); }; }; then
41850 echo "$as_me: failed program was:" >&5
41851 sed 's/^/| /' conftest.$ac_ext >&5
41855 rm -f conftest.err conftest.$ac_objext \
41856 conftest$ac_exeext conftest.$ac_ext
41861 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
41862 echo "${ECHO_T}$ol_cv_db_db41" >&6
41864 if test $ol_cv_db_db41 = yes ; then
41865 ol_cv_lib_db=-ldb41
41869 if test $ol_cv_lib_db = no ; then
41870 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
41871 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
41872 if test "${ol_cv_db_db_41+set}" = set; then
41873 echo $ECHO_N "(cached) $ECHO_C" >&6
41878 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41880 cat >conftest.$ac_ext <<_ACEOF
41883 cat confdefs.h >>conftest.$ac_ext
41884 cat >>conftest.$ac_ext <<_ACEOF
41885 /* end confdefs.h. */
41887 #ifdef HAVE_DB_185_H
41888 # include <db_185.h>
41893 #ifndef DB_VERSION_MAJOR
41894 # define DB_VERSION_MAJOR 1
41898 #define NULL ((void*)0)
41905 #if DB_VERSION_MAJOR > 1
41908 int major, minor, patch;
41910 version = db_version( &major, &minor, &patch );
41912 if( major != DB_VERSION_MAJOR ||
41913 minor < DB_VERSION_MINOR )
41915 printf("Berkeley DB version mismatch\n"
41916 "\theader: %s\n\tlibrary: %s\n",
41917 DB_VERSION_STRING, version);
41923 #if DB_VERSION_MAJOR > 2
41924 db_env_create( NULL, 0 );
41925 #elif DB_VERSION_MAJOR > 1
41926 db_appexit( NULL );
41928 (void) dbopen( NULL, 0, 0, 0, NULL);
41935 rm -f conftest.$ac_objext conftest$ac_exeext
41936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41937 (eval $ac_link) 2>conftest.er1
41939 grep -v '^ *+' conftest.er1 >conftest.err
41941 cat conftest.err >&5
41942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41943 (exit $ac_status); } &&
41944 { ac_try='test -z "$ac_c_werror_flag"
41945 || test ! -s conftest.err'
41946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41947 (eval $ac_try) 2>&5
41949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41950 (exit $ac_status); }; } &&
41951 { ac_try='test -s conftest$ac_exeext'
41952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41953 (eval $ac_try) 2>&5
41955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41956 (exit $ac_status); }; }; then
41959 echo "$as_me: failed program was:" >&5
41960 sed 's/^/| /' conftest.$ac_ext >&5
41964 rm -f conftest.err conftest.$ac_objext \
41965 conftest$ac_exeext conftest.$ac_ext
41970 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
41971 echo "${ECHO_T}$ol_cv_db_db_41" >&6
41973 if test $ol_cv_db_db_41 = yes ; then
41974 ol_cv_lib_db=-ldb-41
41978 if test $ol_cv_lib_db = no ; then
41979 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
41980 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
41981 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
41982 echo $ECHO_N "(cached) $ECHO_C" >&6
41987 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41989 cat >conftest.$ac_ext <<_ACEOF
41992 cat confdefs.h >>conftest.$ac_ext
41993 cat >>conftest.$ac_ext <<_ACEOF
41994 /* end confdefs.h. */
41996 #ifdef HAVE_DB_185_H
41997 # include <db_185.h>
42002 #ifndef DB_VERSION_MAJOR
42003 # define DB_VERSION_MAJOR 1
42007 #define NULL ((void*)0)
42014 #if DB_VERSION_MAJOR > 1
42017 int major, minor, patch;
42019 version = db_version( &major, &minor, &patch );
42021 if( major != DB_VERSION_MAJOR ||
42022 minor < DB_VERSION_MINOR )
42024 printf("Berkeley DB version mismatch\n"
42025 "\theader: %s\n\tlibrary: %s\n",
42026 DB_VERSION_STRING, version);
42032 #if DB_VERSION_MAJOR > 2
42033 db_env_create( NULL, 0 );
42034 #elif DB_VERSION_MAJOR > 1
42035 db_appexit( NULL );
42037 (void) dbopen( NULL, 0, 0, 0, NULL);
42044 rm -f conftest.$ac_objext conftest$ac_exeext
42045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42046 (eval $ac_link) 2>conftest.er1
42048 grep -v '^ *+' conftest.er1 >conftest.err
42050 cat conftest.err >&5
42051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42052 (exit $ac_status); } &&
42053 { ac_try='test -z "$ac_c_werror_flag"
42054 || test ! -s conftest.err'
42055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42056 (eval $ac_try) 2>&5
42058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42059 (exit $ac_status); }; } &&
42060 { ac_try='test -s conftest$ac_exeext'
42061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42062 (eval $ac_try) 2>&5
42064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42065 (exit $ac_status); }; }; then
42066 ol_cv_db_db_4_dot_1=yes
42068 echo "$as_me: failed program was:" >&5
42069 sed 's/^/| /' conftest.$ac_ext >&5
42071 ol_cv_db_db_4_dot_1=no
42073 rm -f conftest.err conftest.$ac_objext \
42074 conftest$ac_exeext conftest.$ac_ext
42079 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
42080 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
42082 if test $ol_cv_db_db_4_dot_1 = yes ; then
42083 ol_cv_lib_db=-ldb-4.1
42087 if test $ol_cv_lib_db = no ; then
42088 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
42089 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
42090 if test "${ol_cv_db_db_4_1+set}" = set; then
42091 echo $ECHO_N "(cached) $ECHO_C" >&6
42096 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42098 cat >conftest.$ac_ext <<_ACEOF
42101 cat confdefs.h >>conftest.$ac_ext
42102 cat >>conftest.$ac_ext <<_ACEOF
42103 /* end confdefs.h. */
42105 #ifdef HAVE_DB_185_H
42106 # include <db_185.h>
42111 #ifndef DB_VERSION_MAJOR
42112 # define DB_VERSION_MAJOR 1
42116 #define NULL ((void*)0)
42123 #if DB_VERSION_MAJOR > 1
42126 int major, minor, patch;
42128 version = db_version( &major, &minor, &patch );
42130 if( major != DB_VERSION_MAJOR ||
42131 minor < DB_VERSION_MINOR )
42133 printf("Berkeley DB version mismatch\n"
42134 "\theader: %s\n\tlibrary: %s\n",
42135 DB_VERSION_STRING, version);
42141 #if DB_VERSION_MAJOR > 2
42142 db_env_create( NULL, 0 );
42143 #elif DB_VERSION_MAJOR > 1
42144 db_appexit( NULL );
42146 (void) dbopen( NULL, 0, 0, 0, NULL);
42153 rm -f conftest.$ac_objext conftest$ac_exeext
42154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42155 (eval $ac_link) 2>conftest.er1
42157 grep -v '^ *+' conftest.er1 >conftest.err
42159 cat conftest.err >&5
42160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42161 (exit $ac_status); } &&
42162 { ac_try='test -z "$ac_c_werror_flag"
42163 || test ! -s conftest.err'
42164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42165 (eval $ac_try) 2>&5
42167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42168 (exit $ac_status); }; } &&
42169 { ac_try='test -s conftest$ac_exeext'
42170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42171 (eval $ac_try) 2>&5
42173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42174 (exit $ac_status); }; }; then
42175 ol_cv_db_db_4_1=yes
42177 echo "$as_me: failed program was:" >&5
42178 sed 's/^/| /' conftest.$ac_ext >&5
42182 rm -f conftest.err conftest.$ac_objext \
42183 conftest$ac_exeext conftest.$ac_ext
42188 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
42189 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
42191 if test $ol_cv_db_db_4_1 = yes ; then
42192 ol_cv_lib_db=-ldb-4-1
42196 if test $ol_cv_lib_db = no ; then
42197 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
42198 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
42199 if test "${ol_cv_db_db3+set}" = set; then
42200 echo $ECHO_N "(cached) $ECHO_C" >&6
42205 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42207 cat >conftest.$ac_ext <<_ACEOF
42210 cat confdefs.h >>conftest.$ac_ext
42211 cat >>conftest.$ac_ext <<_ACEOF
42212 /* end confdefs.h. */
42214 #ifdef HAVE_DB_185_H
42215 # include <db_185.h>
42220 #ifndef DB_VERSION_MAJOR
42221 # define DB_VERSION_MAJOR 1
42225 #define NULL ((void*)0)
42232 #if DB_VERSION_MAJOR > 1
42235 int major, minor, patch;
42237 version = db_version( &major, &minor, &patch );
42239 if( major != DB_VERSION_MAJOR ||
42240 minor < DB_VERSION_MINOR )
42242 printf("Berkeley DB version mismatch\n"
42243 "\theader: %s\n\tlibrary: %s\n",
42244 DB_VERSION_STRING, version);
42250 #if DB_VERSION_MAJOR > 2
42251 db_env_create( NULL, 0 );
42252 #elif DB_VERSION_MAJOR > 1
42253 db_appexit( NULL );
42255 (void) dbopen( NULL, 0, 0, 0, NULL);
42262 rm -f conftest.$ac_objext conftest$ac_exeext
42263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42264 (eval $ac_link) 2>conftest.er1
42266 grep -v '^ *+' conftest.er1 >conftest.err
42268 cat conftest.err >&5
42269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42270 (exit $ac_status); } &&
42271 { ac_try='test -z "$ac_c_werror_flag"
42272 || test ! -s conftest.err'
42273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42274 (eval $ac_try) 2>&5
42276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42277 (exit $ac_status); }; } &&
42278 { ac_try='test -s conftest$ac_exeext'
42279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42280 (eval $ac_try) 2>&5
42282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42283 (exit $ac_status); }; }; then
42286 echo "$as_me: failed program was:" >&5
42287 sed 's/^/| /' conftest.$ac_ext >&5
42291 rm -f conftest.err conftest.$ac_objext \
42292 conftest$ac_exeext conftest.$ac_ext
42297 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
42298 echo "${ECHO_T}$ol_cv_db_db3" >&6
42300 if test $ol_cv_db_db3 = yes ; then
42305 if test $ol_cv_lib_db = no ; then
42306 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
42307 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
42308 if test "${ol_cv_db_db_3+set}" = set; then
42309 echo $ECHO_N "(cached) $ECHO_C" >&6
42314 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42316 cat >conftest.$ac_ext <<_ACEOF
42319 cat confdefs.h >>conftest.$ac_ext
42320 cat >>conftest.$ac_ext <<_ACEOF
42321 /* end confdefs.h. */
42323 #ifdef HAVE_DB_185_H
42324 # include <db_185.h>
42329 #ifndef DB_VERSION_MAJOR
42330 # define DB_VERSION_MAJOR 1
42334 #define NULL ((void*)0)
42341 #if DB_VERSION_MAJOR > 1
42344 int major, minor, patch;
42346 version = db_version( &major, &minor, &patch );
42348 if( major != DB_VERSION_MAJOR ||
42349 minor < DB_VERSION_MINOR )
42351 printf("Berkeley DB version mismatch\n"
42352 "\theader: %s\n\tlibrary: %s\n",
42353 DB_VERSION_STRING, version);
42359 #if DB_VERSION_MAJOR > 2
42360 db_env_create( NULL, 0 );
42361 #elif DB_VERSION_MAJOR > 1
42362 db_appexit( NULL );
42364 (void) dbopen( NULL, 0, 0, 0, NULL);
42371 rm -f conftest.$ac_objext conftest$ac_exeext
42372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42373 (eval $ac_link) 2>conftest.er1
42375 grep -v '^ *+' conftest.er1 >conftest.err
42377 cat conftest.err >&5
42378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42379 (exit $ac_status); } &&
42380 { ac_try='test -z "$ac_c_werror_flag"
42381 || test ! -s conftest.err'
42382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42383 (eval $ac_try) 2>&5
42385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42386 (exit $ac_status); }; } &&
42387 { ac_try='test -s conftest$ac_exeext'
42388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42389 (eval $ac_try) 2>&5
42391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42392 (exit $ac_status); }; }; then
42395 echo "$as_me: failed program was:" >&5
42396 sed 's/^/| /' conftest.$ac_ext >&5
42400 rm -f conftest.err conftest.$ac_objext \
42401 conftest$ac_exeext conftest.$ac_ext
42406 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
42407 echo "${ECHO_T}$ol_cv_db_db_3" >&6
42409 if test $ol_cv_db_db_3 = yes ; then
42410 ol_cv_lib_db=-ldb-3
42414 if test $ol_cv_lib_db = no ; then
42415 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
42416 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
42417 if test "${ol_cv_db_db2+set}" = set; then
42418 echo $ECHO_N "(cached) $ECHO_C" >&6
42423 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42425 cat >conftest.$ac_ext <<_ACEOF
42428 cat confdefs.h >>conftest.$ac_ext
42429 cat >>conftest.$ac_ext <<_ACEOF
42430 /* end confdefs.h. */
42432 #ifdef HAVE_DB_185_H
42433 # include <db_185.h>
42438 #ifndef DB_VERSION_MAJOR
42439 # define DB_VERSION_MAJOR 1
42443 #define NULL ((void*)0)
42450 #if DB_VERSION_MAJOR > 1
42453 int major, minor, patch;
42455 version = db_version( &major, &minor, &patch );
42457 if( major != DB_VERSION_MAJOR ||
42458 minor < DB_VERSION_MINOR )
42460 printf("Berkeley DB version mismatch\n"
42461 "\theader: %s\n\tlibrary: %s\n",
42462 DB_VERSION_STRING, version);
42468 #if DB_VERSION_MAJOR > 2
42469 db_env_create( NULL, 0 );
42470 #elif DB_VERSION_MAJOR > 1
42471 db_appexit( NULL );
42473 (void) dbopen( NULL, 0, 0, 0, NULL);
42480 rm -f conftest.$ac_objext conftest$ac_exeext
42481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42482 (eval $ac_link) 2>conftest.er1
42484 grep -v '^ *+' conftest.er1 >conftest.err
42486 cat conftest.err >&5
42487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42488 (exit $ac_status); } &&
42489 { ac_try='test -z "$ac_c_werror_flag"
42490 || test ! -s conftest.err'
42491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42492 (eval $ac_try) 2>&5
42494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42495 (exit $ac_status); }; } &&
42496 { ac_try='test -s conftest$ac_exeext'
42497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42498 (eval $ac_try) 2>&5
42500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42501 (exit $ac_status); }; }; then
42504 echo "$as_me: failed program was:" >&5
42505 sed 's/^/| /' conftest.$ac_ext >&5
42509 rm -f conftest.err conftest.$ac_objext \
42510 conftest$ac_exeext conftest.$ac_ext
42515 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
42516 echo "${ECHO_T}$ol_cv_db_db2" >&6
42518 if test $ol_cv_db_db2 = yes ; then
42523 if test $ol_cv_lib_db = no ; then
42524 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
42525 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
42526 if test "${ol_cv_db_db_2+set}" = set; then
42527 echo $ECHO_N "(cached) $ECHO_C" >&6
42532 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42534 cat >conftest.$ac_ext <<_ACEOF
42537 cat confdefs.h >>conftest.$ac_ext
42538 cat >>conftest.$ac_ext <<_ACEOF
42539 /* end confdefs.h. */
42541 #ifdef HAVE_DB_185_H
42542 # include <db_185.h>
42547 #ifndef DB_VERSION_MAJOR
42548 # define DB_VERSION_MAJOR 1
42552 #define NULL ((void*)0)
42559 #if DB_VERSION_MAJOR > 1
42562 int major, minor, patch;
42564 version = db_version( &major, &minor, &patch );
42566 if( major != DB_VERSION_MAJOR ||
42567 minor < DB_VERSION_MINOR )
42569 printf("Berkeley DB version mismatch\n"
42570 "\theader: %s\n\tlibrary: %s\n",
42571 DB_VERSION_STRING, version);
42577 #if DB_VERSION_MAJOR > 2
42578 db_env_create( NULL, 0 );
42579 #elif DB_VERSION_MAJOR > 1
42580 db_appexit( NULL );
42582 (void) dbopen( NULL, 0, 0, 0, NULL);
42589 rm -f conftest.$ac_objext conftest$ac_exeext
42590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42591 (eval $ac_link) 2>conftest.er1
42593 grep -v '^ *+' conftest.er1 >conftest.err
42595 cat conftest.err >&5
42596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42597 (exit $ac_status); } &&
42598 { ac_try='test -z "$ac_c_werror_flag"
42599 || test ! -s conftest.err'
42600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42601 (eval $ac_try) 2>&5
42603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42604 (exit $ac_status); }; } &&
42605 { ac_try='test -s conftest$ac_exeext'
42606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42607 (eval $ac_try) 2>&5
42609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42610 (exit $ac_status); }; }; then
42613 echo "$as_me: failed program was:" >&5
42614 sed 's/^/| /' conftest.$ac_ext >&5
42618 rm -f conftest.err conftest.$ac_objext \
42619 conftest$ac_exeext conftest.$ac_ext
42624 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
42625 echo "${ECHO_T}$ol_cv_db_db_2" >&6
42627 if test $ol_cv_db_db_2 = yes ; then
42628 ol_cv_lib_db=-ldb-2
42632 if test $ol_cv_lib_db = no ; then
42633 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
42634 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
42635 if test "${ol_cv_db_db1+set}" = set; then
42636 echo $ECHO_N "(cached) $ECHO_C" >&6
42641 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42643 cat >conftest.$ac_ext <<_ACEOF
42646 cat confdefs.h >>conftest.$ac_ext
42647 cat >>conftest.$ac_ext <<_ACEOF
42648 /* end confdefs.h. */
42650 #ifdef HAVE_DB_185_H
42651 # include <db_185.h>
42656 #ifndef DB_VERSION_MAJOR
42657 # define DB_VERSION_MAJOR 1
42661 #define NULL ((void*)0)
42668 #if DB_VERSION_MAJOR > 1
42671 int major, minor, patch;
42673 version = db_version( &major, &minor, &patch );
42675 if( major != DB_VERSION_MAJOR ||
42676 minor < DB_VERSION_MINOR )
42678 printf("Berkeley DB version mismatch\n"
42679 "\theader: %s\n\tlibrary: %s\n",
42680 DB_VERSION_STRING, version);
42686 #if DB_VERSION_MAJOR > 2
42687 db_env_create( NULL, 0 );
42688 #elif DB_VERSION_MAJOR > 1
42689 db_appexit( NULL );
42691 (void) dbopen( NULL, 0, 0, 0, NULL);
42698 rm -f conftest.$ac_objext conftest$ac_exeext
42699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42700 (eval $ac_link) 2>conftest.er1
42702 grep -v '^ *+' conftest.er1 >conftest.err
42704 cat conftest.err >&5
42705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42706 (exit $ac_status); } &&
42707 { ac_try='test -z "$ac_c_werror_flag"
42708 || test ! -s conftest.err'
42709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42710 (eval $ac_try) 2>&5
42712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42713 (exit $ac_status); }; } &&
42714 { ac_try='test -s conftest$ac_exeext'
42715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42716 (eval $ac_try) 2>&5
42718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42719 (exit $ac_status); }; }; then
42722 echo "$as_me: failed program was:" >&5
42723 sed 's/^/| /' conftest.$ac_ext >&5
42727 rm -f conftest.err conftest.$ac_objext \
42728 conftest$ac_exeext conftest.$ac_ext
42733 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
42734 echo "${ECHO_T}$ol_cv_db_db1" >&6
42736 if test $ol_cv_db_db1 = yes ; then
42741 if test $ol_cv_lib_db = no ; then
42742 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
42743 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
42744 if test "${ol_cv_db_db_1+set}" = set; then
42745 echo $ECHO_N "(cached) $ECHO_C" >&6
42750 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42752 cat >conftest.$ac_ext <<_ACEOF
42755 cat confdefs.h >>conftest.$ac_ext
42756 cat >>conftest.$ac_ext <<_ACEOF
42757 /* end confdefs.h. */
42759 #ifdef HAVE_DB_185_H
42760 # include <db_185.h>
42765 #ifndef DB_VERSION_MAJOR
42766 # define DB_VERSION_MAJOR 1
42770 #define NULL ((void*)0)
42777 #if DB_VERSION_MAJOR > 1
42780 int major, minor, patch;
42782 version = db_version( &major, &minor, &patch );
42784 if( major != DB_VERSION_MAJOR ||
42785 minor < DB_VERSION_MINOR )
42787 printf("Berkeley DB version mismatch\n"
42788 "\theader: %s\n\tlibrary: %s\n",
42789 DB_VERSION_STRING, version);
42795 #if DB_VERSION_MAJOR > 2
42796 db_env_create( NULL, 0 );
42797 #elif DB_VERSION_MAJOR > 1
42798 db_appexit( NULL );
42800 (void) dbopen( NULL, 0, 0, 0, NULL);
42807 rm -f conftest.$ac_objext conftest$ac_exeext
42808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42809 (eval $ac_link) 2>conftest.er1
42811 grep -v '^ *+' conftest.er1 >conftest.err
42813 cat conftest.err >&5
42814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42815 (exit $ac_status); } &&
42816 { ac_try='test -z "$ac_c_werror_flag"
42817 || test ! -s conftest.err'
42818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42819 (eval $ac_try) 2>&5
42821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42822 (exit $ac_status); }; } &&
42823 { ac_try='test -s conftest$ac_exeext'
42824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42825 (eval $ac_try) 2>&5
42827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42828 (exit $ac_status); }; }; then
42831 echo "$as_me: failed program was:" >&5
42832 sed 's/^/| /' conftest.$ac_ext >&5
42836 rm -f conftest.err conftest.$ac_objext \
42837 conftest$ac_exeext conftest.$ac_ext
42842 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
42843 echo "${ECHO_T}$ol_cv_db_db_1" >&6
42845 if test $ol_cv_db_db_1 = yes ; then
42846 ol_cv_lib_db=-ldb-1
42851 if test "$ol_cv_lib_db" != no ; then
42852 ol_cv_berkeley_db=yes
42853 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
42854 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
42855 if test "${ol_cv_berkeley_db_version+set}" = set; then
42856 echo $ECHO_N "(cached) $ECHO_C" >&6
42860 LIBS="$LTHREAD_LIBS $LIBS"
42861 if test $ol_cv_lib_db != yes ; then
42862 LIBS="$ol_cv_lib_db $LIBS"
42865 if test "$cross_compiling" = yes; then
42866 ol_cv_berkeley_db_version=cross
42868 cat >conftest.$ac_ext <<_ACEOF
42871 cat confdefs.h >>conftest.$ac_ext
42872 cat >>conftest.$ac_ext <<_ACEOF
42873 /* end confdefs.h. */
42875 #ifdef HAVE_DB_185_H
42880 #ifndef DB_VERSION_MAJOR
42881 # define DB_VERSION_MAJOR 1
42884 #define NULL ((void *)0)
42888 #if DB_VERSION_MAJOR > 1
42890 int major, minor, patch;
42892 version = db_version( &major, &minor, &patch );
42894 if( major != DB_VERSION_MAJOR ||
42895 minor != DB_VERSION_MINOR ||
42896 patch != DB_VERSION_PATCH )
42898 printf("Berkeley DB version mismatch\n"
42899 "\theader: %s\n\tlibrary: %s\n",
42900 DB_VERSION_STRING, version);
42908 rm -f conftest$ac_exeext
42909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42910 (eval $ac_link) 2>&5
42912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42913 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42915 (eval $ac_try) 2>&5
42917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42918 (exit $ac_status); }; }; then
42919 ol_cv_berkeley_db_version=yes
42921 echo "$as_me: program exited with status $ac_status" >&5
42922 echo "$as_me: failed program was:" >&5
42923 sed 's/^/| /' conftest.$ac_ext >&5
42925 ( exit $ac_status )
42926 ol_cv_berkeley_db_version=no
42928 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42934 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
42935 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
42937 if test $ol_cv_berkeley_db_version = no ; then
42938 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
42939 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
42940 { (exit 1); exit 1; }; }
42943 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
42944 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
42945 if test "${ol_cv_berkeley_db_thread+set}" = set; then
42946 echo $ECHO_N "(cached) $ECHO_C" >&6
42950 LIBS="$LTHREAD_LIBS $LIBS"
42951 if test $ol_cv_lib_db != yes ; then
42952 LIBS="$ol_cv_lib_db $LIBS"
42955 if test "$cross_compiling" = yes; then
42956 ol_cv_berkeley_db_thread=cross
42958 cat >conftest.$ac_ext <<_ACEOF
42961 cat confdefs.h >>conftest.$ac_ext
42962 cat >>conftest.$ac_ext <<_ACEOF
42963 /* end confdefs.h. */
42965 #ifdef HAVE_DB_185_H
42971 #define NULL ((void *)0)
42976 u_int32_t flags = DB_CREATE |
42982 #if DB_VERSION_MAJOR > 2
42983 DB_ENV *env = NULL;
42985 rc = db_env_create( &env, 0 );
42987 flags |= DB_INIT_MPOOL;
42988 #ifdef DB_MPOOL_PRIVATE
42989 flags |= DB_MPOOL_PRIVATE;
42993 printf("BerkeleyDB: %s\n", db_strerror(rc) );
42997 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
42998 rc = env->open( env, NULL, flags, 0 );
43000 rc = env->open( env, NULL, NULL, flags, 0 );
43004 rc = env->close( env, 0 );
43008 printf("BerkeleyDB: %s\n", db_strerror(rc) );
43014 memset( &env, '\0', sizeof(env) );
43016 rc = db_appinit( NULL, NULL, &env, flags );
43019 db_appexit( &env );
43022 unlink("__db_mpool.share");
43023 unlink("__db_lock.share");
43029 rm -f conftest$ac_exeext
43030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43031 (eval $ac_link) 2>&5
43033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43034 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43036 (eval $ac_try) 2>&5
43038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43039 (exit $ac_status); }; }; then
43040 ol_cv_berkeley_db_thread=yes
43042 echo "$as_me: program exited with status $ac_status" >&5
43043 echo "$as_me: failed program was:" >&5
43044 sed 's/^/| /' conftest.$ac_ext >&5
43046 ( exit $ac_status )
43047 ol_cv_berkeley_db_thread=no
43049 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43055 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
43056 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
43058 if test $ol_cv_berkeley_db_thread != no ; then
43060 cat >>confdefs.h <<\_ACEOF
43061 #define HAVE_BERKELEY_DB_THREAD 1
43071 if test $ol_cv_berkeley_db != no ; then
43073 cat >>confdefs.h <<\_ACEOF
43074 #define HAVE_BERKELEY_DB 1
43078 ol_link_ldbm=berkeley
43079 ol_with_ldbm_api=berkeley
43081 if test $ol_with_ldbm_type = hash ; then
43083 cat >>confdefs.h <<\_ACEOF
43084 #define LDBM_USE_DBHASH 1
43089 cat >>confdefs.h <<\_ACEOF
43090 #define LDBM_USE_DBBTREE 1
43095 if test $ol_cv_lib_db != yes ; then
43096 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
43101 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
43102 if test $ol_link_ldbm != berkeley ; then
43103 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
43104 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
43105 { (exit 1); exit 1; }; }
43107 echo "$as_me:$LINENO: checking Berkeley DB version for BDB backend" >&5
43108 echo $ECHO_N "checking Berkeley DB version for BDB backend... $ECHO_C" >&6
43109 if test "${ol_cv_bdb_compat+set}" = set; then
43110 echo $ECHO_N "(cached) $ECHO_C" >&6
43113 cat >conftest.$ac_ext <<_ACEOF
43116 cat confdefs.h >>conftest.$ac_ext
43117 cat >>conftest.$ac_ext <<_ACEOF
43118 /* end confdefs.h. */
43122 /* this check could be improved */
43123 #ifndef DB_VERSION_MAJOR
43124 # define DB_VERSION_MAJOR 1
43126 #ifndef DB_VERSION_MINOR
43127 # define DB_VERSION_MINOR 0
43130 /* require 4.2 or later */
43131 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
43132 __db_version_compat
43136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43137 $EGREP "__db_version_compat" >/dev/null 2>&1; then
43138 ol_cv_bdb_compat=yes
43140 ol_cv_bdb_compat=no
43145 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
43146 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
43149 if test $ol_cv_bdb_compat != yes ; then
43150 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
43151 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
43152 { (exit 1); exit 1; }; }
43157 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
43158 { echo "$as_me:$LINENO: WARNING: Could not find LDBM with BTREE support" >&5
43159 echo "$as_me: WARNING: Could not find LDBM with BTREE support" >&2;}
43160 ol_with_ldbm_api=none
43163 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
43164 echo "$as_me:$LINENO: checking for MDBM library" >&5
43165 echo $ECHO_N "checking for MDBM library... $ECHO_C" >&6
43166 if test "${ol_cv_lib_mdbm+set}" = set; then
43167 echo $ECHO_N "(cached) $ECHO_C" >&6
43170 echo "$as_me:$LINENO: checking for mdbm_set_chain" >&5
43171 echo $ECHO_N "checking for mdbm_set_chain... $ECHO_C" >&6
43172 if test "${ac_cv_func_mdbm_set_chain+set}" = set; then
43173 echo $ECHO_N "(cached) $ECHO_C" >&6
43175 cat >conftest.$ac_ext <<_ACEOF
43178 cat confdefs.h >>conftest.$ac_ext
43179 cat >>conftest.$ac_ext <<_ACEOF
43180 /* end confdefs.h. */
43181 /* Define mdbm_set_chain to an innocuous variant, in case <limits.h> declares mdbm_set_chain.
43182 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43183 #define mdbm_set_chain innocuous_mdbm_set_chain
43185 /* System header to define __stub macros and hopefully few prototypes,
43186 which can conflict with char mdbm_set_chain (); below.
43187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43188 <limits.h> exists even on freestanding compilers. */
43191 # include <limits.h>
43193 # include <assert.h>
43196 #undef mdbm_set_chain
43198 /* Override any gcc2 internal prototype to avoid an error. */
43203 /* We use char because int might match the return type of a gcc2
43204 builtin and then its argument prototype would still apply. */
43205 char mdbm_set_chain ();
43206 /* The GNU C library defines this for functions which it implements
43207 to always fail with ENOSYS. Some functions are actually named
43208 something starting with __ and the normal name is an alias. */
43209 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
43212 char (*f) () = mdbm_set_chain;
43221 return f != mdbm_set_chain;
43226 rm -f conftest.$ac_objext conftest$ac_exeext
43227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43228 (eval $ac_link) 2>conftest.er1
43230 grep -v '^ *+' conftest.er1 >conftest.err
43232 cat conftest.err >&5
43233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43234 (exit $ac_status); } &&
43235 { ac_try='test -z "$ac_c_werror_flag"
43236 || test ! -s conftest.err'
43237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43238 (eval $ac_try) 2>&5
43240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43241 (exit $ac_status); }; } &&
43242 { ac_try='test -s conftest$ac_exeext'
43243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43244 (eval $ac_try) 2>&5
43246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43247 (exit $ac_status); }; }; then
43248 ac_cv_func_mdbm_set_chain=yes
43250 echo "$as_me: failed program was:" >&5
43251 sed 's/^/| /' conftest.$ac_ext >&5
43253 ac_cv_func_mdbm_set_chain=no
43255 rm -f conftest.err conftest.$ac_objext \
43256 conftest$ac_exeext conftest.$ac_ext
43258 echo "$as_me:$LINENO: result: $ac_cv_func_mdbm_set_chain" >&5
43259 echo "${ECHO_T}$ac_cv_func_mdbm_set_chain" >&6
43260 if test $ac_cv_func_mdbm_set_chain = yes; then
43264 echo "$as_me:$LINENO: checking for mdbm_set_chain in -lmdbm" >&5
43265 echo $ECHO_N "checking for mdbm_set_chain in -lmdbm... $ECHO_C" >&6
43266 if test "${ac_cv_lib_mdbm_mdbm_set_chain+set}" = set; then
43267 echo $ECHO_N "(cached) $ECHO_C" >&6
43269 ac_check_lib_save_LIBS=$LIBS
43270 LIBS="-lmdbm $LIBS"
43271 cat >conftest.$ac_ext <<_ACEOF
43274 cat confdefs.h >>conftest.$ac_ext
43275 cat >>conftest.$ac_ext <<_ACEOF
43276 /* end confdefs.h. */
43278 /* Override any gcc2 internal prototype to avoid an error. */
43282 /* We use char because int might match the return type of a gcc2
43283 builtin and then its argument prototype would still apply. */
43284 char mdbm_set_chain ();
43293 rm -f conftest.$ac_objext conftest$ac_exeext
43294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43295 (eval $ac_link) 2>conftest.er1
43297 grep -v '^ *+' conftest.er1 >conftest.err
43299 cat conftest.err >&5
43300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43301 (exit $ac_status); } &&
43302 { ac_try='test -z "$ac_c_werror_flag"
43303 || test ! -s conftest.err'
43304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43305 (eval $ac_try) 2>&5
43307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43308 (exit $ac_status); }; } &&
43309 { ac_try='test -s conftest$ac_exeext'
43310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43311 (eval $ac_try) 2>&5
43313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43314 (exit $ac_status); }; }; then
43315 ac_cv_lib_mdbm_mdbm_set_chain=yes
43317 echo "$as_me: failed program was:" >&5
43318 sed 's/^/| /' conftest.$ac_ext >&5
43320 ac_cv_lib_mdbm_mdbm_set_chain=no
43322 rm -f conftest.err conftest.$ac_objext \
43323 conftest$ac_exeext conftest.$ac_ext
43324 LIBS=$ac_check_lib_save_LIBS
43326 echo "$as_me:$LINENO: result: $ac_cv_lib_mdbm_mdbm_set_chain" >&5
43327 echo "${ECHO_T}$ac_cv_lib_mdbm_mdbm_set_chain" >&6
43328 if test $ac_cv_lib_mdbm_mdbm_set_chain = yes; then
43329 ol_cv_lib_mdbm=-lmdbm
43340 echo "$as_me:$LINENO: result: $ol_cv_lib_mdbm" >&5
43341 echo "${ECHO_T}$ol_cv_lib_mdbm" >&6
43345 for ac_header in mdbm.h
43347 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43349 echo "$as_me:$LINENO: checking for $ac_header" >&5
43350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43352 echo $ECHO_N "(cached) $ECHO_C" >&6
43354 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43355 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43357 # Is the header compilable?
43358 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43359 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43360 cat >conftest.$ac_ext <<_ACEOF
43363 cat confdefs.h >>conftest.$ac_ext
43364 cat >>conftest.$ac_ext <<_ACEOF
43365 /* end confdefs.h. */
43366 $ac_includes_default
43367 #include <$ac_header>
43369 rm -f conftest.$ac_objext
43370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43371 (eval $ac_compile) 2>conftest.er1
43373 grep -v '^ *+' conftest.er1 >conftest.err
43375 cat conftest.err >&5
43376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43377 (exit $ac_status); } &&
43378 { ac_try='test -z "$ac_c_werror_flag"
43379 || test ! -s conftest.err'
43380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43381 (eval $ac_try) 2>&5
43383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43384 (exit $ac_status); }; } &&
43385 { ac_try='test -s conftest.$ac_objext'
43386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43387 (eval $ac_try) 2>&5
43389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43390 (exit $ac_status); }; }; then
43391 ac_header_compiler=yes
43393 echo "$as_me: failed program was:" >&5
43394 sed 's/^/| /' conftest.$ac_ext >&5
43396 ac_header_compiler=no
43398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43399 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43400 echo "${ECHO_T}$ac_header_compiler" >&6
43402 # Is the header present?
43403 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43404 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43405 cat >conftest.$ac_ext <<_ACEOF
43408 cat confdefs.h >>conftest.$ac_ext
43409 cat >>conftest.$ac_ext <<_ACEOF
43410 /* end confdefs.h. */
43411 #include <$ac_header>
43413 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43414 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43416 grep -v '^ *+' conftest.er1 >conftest.err
43418 cat conftest.err >&5
43419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43420 (exit $ac_status); } >/dev/null; then
43421 if test -s conftest.err; then
43422 ac_cpp_err=$ac_c_preproc_warn_flag
43423 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43430 if test -z "$ac_cpp_err"; then
43431 ac_header_preproc=yes
43433 echo "$as_me: failed program was:" >&5
43434 sed 's/^/| /' conftest.$ac_ext >&5
43436 ac_header_preproc=no
43438 rm -f conftest.err conftest.$ac_ext
43439 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43440 echo "${ECHO_T}$ac_header_preproc" >&6
43442 # So? What about this header?
43443 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43445 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43446 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43448 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43449 ac_header_preproc=yes
43452 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43453 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43454 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43455 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43456 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43457 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43458 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43459 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
43460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43461 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43462 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43463 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43466 ## ------------------------------------------ ##
43467 ## Report this to the AC_PACKAGE_NAME lists. ##
43468 ## ------------------------------------------ ##
43471 sed "s/^/$as_me: WARNING: /" >&2
43474 echo "$as_me:$LINENO: checking for $ac_header" >&5
43475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43476 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43477 echo $ECHO_N "(cached) $ECHO_C" >&6
43479 eval "$as_ac_Header=\$ac_header_preproc"
43481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43482 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43485 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43486 cat >>confdefs.h <<_ACEOF
43487 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43494 echo "$as_me:$LINENO: checking for db" >&5
43495 echo $ECHO_N "checking for db... $ECHO_C" >&6
43496 if test "${ol_cv_mdbm+set}" = set; then
43497 echo $ECHO_N "(cached) $ECHO_C" >&6
43500 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
43507 echo "$as_me:$LINENO: result: $ol_cv_mdbm" >&5
43508 echo "${ECHO_T}$ol_cv_mdbm" >&6
43509 if test $ol_cv_mdbm = yes ; then
43511 cat >>confdefs.h <<\_ACEOF
43512 #define HAVE_MDBM 1
43518 if test $ol_cv_mdbm = yes ; then
43520 ol_with_ldbm_api=mdbm
43521 if test $ol_cv_lib_mdbm != yes ; then
43522 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
43527 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
43528 echo "$as_me:$LINENO: checking for GDBM library" >&5
43529 echo $ECHO_N "checking for GDBM library... $ECHO_C" >&6
43530 if test "${ol_cv_lib_gdbm+set}" = set; then
43531 echo $ECHO_N "(cached) $ECHO_C" >&6
43534 echo "$as_me:$LINENO: checking for gdbm_open" >&5
43535 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
43536 if test "${ac_cv_func_gdbm_open+set}" = set; then
43537 echo $ECHO_N "(cached) $ECHO_C" >&6
43539 cat >conftest.$ac_ext <<_ACEOF
43542 cat confdefs.h >>conftest.$ac_ext
43543 cat >>conftest.$ac_ext <<_ACEOF
43544 /* end confdefs.h. */
43545 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
43546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43547 #define gdbm_open innocuous_gdbm_open
43549 /* System header to define __stub macros and hopefully few prototypes,
43550 which can conflict with char gdbm_open (); below.
43551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43552 <limits.h> exists even on freestanding compilers. */
43555 # include <limits.h>
43557 # include <assert.h>
43562 /* Override any gcc2 internal prototype to avoid an error. */
43567 /* We use char because int might match the return type of a gcc2
43568 builtin and then its argument prototype would still apply. */
43570 /* The GNU C library defines this for functions which it implements
43571 to always fail with ENOSYS. Some functions are actually named
43572 something starting with __ and the normal name is an alias. */
43573 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
43576 char (*f) () = gdbm_open;
43585 return f != gdbm_open;
43590 rm -f conftest.$ac_objext conftest$ac_exeext
43591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43592 (eval $ac_link) 2>conftest.er1
43594 grep -v '^ *+' conftest.er1 >conftest.err
43596 cat conftest.err >&5
43597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43598 (exit $ac_status); } &&
43599 { ac_try='test -z "$ac_c_werror_flag"
43600 || test ! -s conftest.err'
43601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43602 (eval $ac_try) 2>&5
43604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43605 (exit $ac_status); }; } &&
43606 { ac_try='test -s conftest$ac_exeext'
43607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43608 (eval $ac_try) 2>&5
43610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43611 (exit $ac_status); }; }; then
43612 ac_cv_func_gdbm_open=yes
43614 echo "$as_me: failed program was:" >&5
43615 sed 's/^/| /' conftest.$ac_ext >&5
43617 ac_cv_func_gdbm_open=no
43619 rm -f conftest.err conftest.$ac_objext \
43620 conftest$ac_exeext conftest.$ac_ext
43622 echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
43623 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6
43624 if test $ac_cv_func_gdbm_open = yes; then
43628 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
43629 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
43630 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
43631 echo $ECHO_N "(cached) $ECHO_C" >&6
43633 ac_check_lib_save_LIBS=$LIBS
43634 LIBS="-lgdbm $LIBS"
43635 cat >conftest.$ac_ext <<_ACEOF
43638 cat confdefs.h >>conftest.$ac_ext
43639 cat >>conftest.$ac_ext <<_ACEOF
43640 /* end confdefs.h. */
43642 /* Override any gcc2 internal prototype to avoid an error. */
43646 /* We use char because int might match the return type of a gcc2
43647 builtin and then its argument prototype would still apply. */
43657 rm -f conftest.$ac_objext conftest$ac_exeext
43658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43659 (eval $ac_link) 2>conftest.er1
43661 grep -v '^ *+' conftest.er1 >conftest.err
43663 cat conftest.err >&5
43664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43665 (exit $ac_status); } &&
43666 { ac_try='test -z "$ac_c_werror_flag"
43667 || test ! -s conftest.err'
43668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43669 (eval $ac_try) 2>&5
43671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43672 (exit $ac_status); }; } &&
43673 { ac_try='test -s conftest$ac_exeext'
43674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43675 (eval $ac_try) 2>&5
43677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43678 (exit $ac_status); }; }; then
43679 ac_cv_lib_gdbm_gdbm_open=yes
43681 echo "$as_me: failed program was:" >&5
43682 sed 's/^/| /' conftest.$ac_ext >&5
43684 ac_cv_lib_gdbm_gdbm_open=no
43686 rm -f conftest.err conftest.$ac_objext \
43687 conftest$ac_exeext conftest.$ac_ext
43688 LIBS=$ac_check_lib_save_LIBS
43690 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
43691 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
43692 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
43693 ol_cv_lib_gdbm=-lgdbm
43704 echo "$as_me:$LINENO: result: $ol_cv_lib_gdbm" >&5
43705 echo "${ECHO_T}$ol_cv_lib_gdbm" >&6
43709 for ac_header in gdbm.h
43711 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43713 echo "$as_me:$LINENO: checking for $ac_header" >&5
43714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43716 echo $ECHO_N "(cached) $ECHO_C" >&6
43718 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43719 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43721 # Is the header compilable?
43722 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43723 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43724 cat >conftest.$ac_ext <<_ACEOF
43727 cat confdefs.h >>conftest.$ac_ext
43728 cat >>conftest.$ac_ext <<_ACEOF
43729 /* end confdefs.h. */
43730 $ac_includes_default
43731 #include <$ac_header>
43733 rm -f conftest.$ac_objext
43734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43735 (eval $ac_compile) 2>conftest.er1
43737 grep -v '^ *+' conftest.er1 >conftest.err
43739 cat conftest.err >&5
43740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43741 (exit $ac_status); } &&
43742 { ac_try='test -z "$ac_c_werror_flag"
43743 || test ! -s conftest.err'
43744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43745 (eval $ac_try) 2>&5
43747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43748 (exit $ac_status); }; } &&
43749 { ac_try='test -s conftest.$ac_objext'
43750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43751 (eval $ac_try) 2>&5
43753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43754 (exit $ac_status); }; }; then
43755 ac_header_compiler=yes
43757 echo "$as_me: failed program was:" >&5
43758 sed 's/^/| /' conftest.$ac_ext >&5
43760 ac_header_compiler=no
43762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43763 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43764 echo "${ECHO_T}$ac_header_compiler" >&6
43766 # Is the header present?
43767 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43768 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43769 cat >conftest.$ac_ext <<_ACEOF
43772 cat confdefs.h >>conftest.$ac_ext
43773 cat >>conftest.$ac_ext <<_ACEOF
43774 /* end confdefs.h. */
43775 #include <$ac_header>
43777 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43778 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43780 grep -v '^ *+' conftest.er1 >conftest.err
43782 cat conftest.err >&5
43783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43784 (exit $ac_status); } >/dev/null; then
43785 if test -s conftest.err; then
43786 ac_cpp_err=$ac_c_preproc_warn_flag
43787 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43794 if test -z "$ac_cpp_err"; then
43795 ac_header_preproc=yes
43797 echo "$as_me: failed program was:" >&5
43798 sed 's/^/| /' conftest.$ac_ext >&5
43800 ac_header_preproc=no
43802 rm -f conftest.err conftest.$ac_ext
43803 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43804 echo "${ECHO_T}$ac_header_preproc" >&6
43806 # So? What about this header?
43807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43809 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43810 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43811 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43812 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43813 ac_header_preproc=yes
43816 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43817 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43818 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43819 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43820 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43821 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43822 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43823 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
43824 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43825 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43826 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43827 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43830 ## ------------------------------------------ ##
43831 ## Report this to the AC_PACKAGE_NAME lists. ##
43832 ## ------------------------------------------ ##
43835 sed "s/^/$as_me: WARNING: /" >&2
43838 echo "$as_me:$LINENO: checking for $ac_header" >&5
43839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43841 echo $ECHO_N "(cached) $ECHO_C" >&6
43843 eval "$as_ac_Header=\$ac_header_preproc"
43845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43846 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43849 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43850 cat >>confdefs.h <<_ACEOF
43851 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43858 echo "$as_me:$LINENO: checking for db" >&5
43859 echo $ECHO_N "checking for db... $ECHO_C" >&6
43860 if test "${ol_cv_gdbm+set}" = set; then
43861 echo $ECHO_N "(cached) $ECHO_C" >&6
43864 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
43871 echo "$as_me:$LINENO: result: $ol_cv_gdbm" >&5
43872 echo "${ECHO_T}$ol_cv_gdbm" >&6
43873 if test $ol_cv_gdbm = yes ; then
43875 cat >>confdefs.h <<\_ACEOF
43876 #define HAVE_GDBM 1
43882 if test $ol_cv_gdbm = yes ; then
43884 ol_with_ldbm_api=gdbm
43886 if test $ol_cv_lib_gdbm != yes ; then
43887 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
43892 if test $ol_with_ldbm_api = ndbm ; then
43893 echo "$as_me:$LINENO: checking for NDBM library" >&5
43894 echo $ECHO_N "checking for NDBM library... $ECHO_C" >&6
43895 if test "${ol_cv_lib_ndbm+set}" = set; then
43896 echo $ECHO_N "(cached) $ECHO_C" >&6
43899 echo "$as_me:$LINENO: checking for dbm_open" >&5
43900 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
43901 if test "${ac_cv_func_dbm_open+set}" = set; then
43902 echo $ECHO_N "(cached) $ECHO_C" >&6
43904 cat >conftest.$ac_ext <<_ACEOF
43907 cat confdefs.h >>conftest.$ac_ext
43908 cat >>conftest.$ac_ext <<_ACEOF
43909 /* end confdefs.h. */
43910 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
43911 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43912 #define dbm_open innocuous_dbm_open
43914 /* System header to define __stub macros and hopefully few prototypes,
43915 which can conflict with char dbm_open (); below.
43916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43917 <limits.h> exists even on freestanding compilers. */
43920 # include <limits.h>
43922 # include <assert.h>
43927 /* Override any gcc2 internal prototype to avoid an error. */
43932 /* We use char because int might match the return type of a gcc2
43933 builtin and then its argument prototype would still apply. */
43935 /* The GNU C library defines this for functions which it implements
43936 to always fail with ENOSYS. Some functions are actually named
43937 something starting with __ and the normal name is an alias. */
43938 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
43941 char (*f) () = dbm_open;
43950 return f != dbm_open;
43955 rm -f conftest.$ac_objext conftest$ac_exeext
43956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43957 (eval $ac_link) 2>conftest.er1
43959 grep -v '^ *+' conftest.er1 >conftest.err
43961 cat conftest.err >&5
43962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43963 (exit $ac_status); } &&
43964 { ac_try='test -z "$ac_c_werror_flag"
43965 || test ! -s conftest.err'
43966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43967 (eval $ac_try) 2>&5
43969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43970 (exit $ac_status); }; } &&
43971 { ac_try='test -s conftest$ac_exeext'
43972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43973 (eval $ac_try) 2>&5
43975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43976 (exit $ac_status); }; }; then
43977 ac_cv_func_dbm_open=yes
43979 echo "$as_me: failed program was:" >&5
43980 sed 's/^/| /' conftest.$ac_ext >&5
43982 ac_cv_func_dbm_open=no
43984 rm -f conftest.err conftest.$ac_objext \
43985 conftest$ac_exeext conftest.$ac_ext
43987 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
43988 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
43989 if test $ac_cv_func_dbm_open = yes; then
43993 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
43994 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
43995 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
43996 echo $ECHO_N "(cached) $ECHO_C" >&6
43998 ac_check_lib_save_LIBS=$LIBS
43999 LIBS="-lndbm $LIBS"
44000 cat >conftest.$ac_ext <<_ACEOF
44003 cat confdefs.h >>conftest.$ac_ext
44004 cat >>conftest.$ac_ext <<_ACEOF
44005 /* end confdefs.h. */
44007 /* Override any gcc2 internal prototype to avoid an error. */
44011 /* We use char because int might match the return type of a gcc2
44012 builtin and then its argument prototype would still apply. */
44022 rm -f conftest.$ac_objext conftest$ac_exeext
44023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44024 (eval $ac_link) 2>conftest.er1
44026 grep -v '^ *+' conftest.er1 >conftest.err
44028 cat conftest.err >&5
44029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44030 (exit $ac_status); } &&
44031 { ac_try='test -z "$ac_c_werror_flag"
44032 || test ! -s conftest.err'
44033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44034 (eval $ac_try) 2>&5
44036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44037 (exit $ac_status); }; } &&
44038 { ac_try='test -s conftest$ac_exeext'
44039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44040 (eval $ac_try) 2>&5
44042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44043 (exit $ac_status); }; }; then
44044 ac_cv_lib_ndbm_dbm_open=yes
44046 echo "$as_me: failed program was:" >&5
44047 sed 's/^/| /' conftest.$ac_ext >&5
44049 ac_cv_lib_ndbm_dbm_open=no
44051 rm -f conftest.err conftest.$ac_objext \
44052 conftest$ac_exeext conftest.$ac_ext
44053 LIBS=$ac_check_lib_save_LIBS
44055 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
44056 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
44057 if test $ac_cv_lib_ndbm_dbm_open = yes; then
44058 ol_cv_lib_ndbm=-lndbm
44061 echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
44062 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
44063 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
44064 echo $ECHO_N "(cached) $ECHO_C" >&6
44066 ac_check_lib_save_LIBS=$LIBS
44068 cat >conftest.$ac_ext <<_ACEOF
44071 cat confdefs.h >>conftest.$ac_ext
44072 cat >>conftest.$ac_ext <<_ACEOF
44073 /* end confdefs.h. */
44075 /* Override any gcc2 internal prototype to avoid an error. */
44079 /* We use char because int might match the return type of a gcc2
44080 builtin and then its argument prototype would still apply. */
44090 rm -f conftest.$ac_objext conftest$ac_exeext
44091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44092 (eval $ac_link) 2>conftest.er1
44094 grep -v '^ *+' conftest.er1 >conftest.err
44096 cat conftest.err >&5
44097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44098 (exit $ac_status); } &&
44099 { ac_try='test -z "$ac_c_werror_flag"
44100 || test ! -s conftest.err'
44101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44102 (eval $ac_try) 2>&5
44104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44105 (exit $ac_status); }; } &&
44106 { ac_try='test -s conftest$ac_exeext'
44107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44108 (eval $ac_try) 2>&5
44110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44111 (exit $ac_status); }; }; then
44112 ac_cv_lib_dbm_dbm_open=yes
44114 echo "$as_me: failed program was:" >&5
44115 sed 's/^/| /' conftest.$ac_ext >&5
44117 ac_cv_lib_dbm_dbm_open=no
44119 rm -f conftest.err conftest.$ac_objext \
44120 conftest$ac_exeext conftest.$ac_ext
44121 LIBS=$ac_check_lib_save_LIBS
44123 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
44124 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
44125 if test $ac_cv_lib_dbm_dbm_open = yes; then
44126 ol_cv_lib_ndbm=-ldbm
44139 echo "$as_me:$LINENO: result: $ol_cv_lib_ndbm" >&5
44140 echo "${ECHO_T}$ol_cv_lib_ndbm" >&6
44144 for ac_header in ndbm.h
44146 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44148 echo "$as_me:$LINENO: checking for $ac_header" >&5
44149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44150 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44151 echo $ECHO_N "(cached) $ECHO_C" >&6
44153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44154 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44156 # Is the header compilable?
44157 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44158 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44159 cat >conftest.$ac_ext <<_ACEOF
44162 cat confdefs.h >>conftest.$ac_ext
44163 cat >>conftest.$ac_ext <<_ACEOF
44164 /* end confdefs.h. */
44165 $ac_includes_default
44166 #include <$ac_header>
44168 rm -f conftest.$ac_objext
44169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44170 (eval $ac_compile) 2>conftest.er1
44172 grep -v '^ *+' conftest.er1 >conftest.err
44174 cat conftest.err >&5
44175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44176 (exit $ac_status); } &&
44177 { ac_try='test -z "$ac_c_werror_flag"
44178 || test ! -s conftest.err'
44179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44180 (eval $ac_try) 2>&5
44182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44183 (exit $ac_status); }; } &&
44184 { ac_try='test -s conftest.$ac_objext'
44185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44186 (eval $ac_try) 2>&5
44188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44189 (exit $ac_status); }; }; then
44190 ac_header_compiler=yes
44192 echo "$as_me: failed program was:" >&5
44193 sed 's/^/| /' conftest.$ac_ext >&5
44195 ac_header_compiler=no
44197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44198 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44199 echo "${ECHO_T}$ac_header_compiler" >&6
44201 # Is the header present?
44202 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44203 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44204 cat >conftest.$ac_ext <<_ACEOF
44207 cat confdefs.h >>conftest.$ac_ext
44208 cat >>conftest.$ac_ext <<_ACEOF
44209 /* end confdefs.h. */
44210 #include <$ac_header>
44212 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44213 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44215 grep -v '^ *+' conftest.er1 >conftest.err
44217 cat conftest.err >&5
44218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44219 (exit $ac_status); } >/dev/null; then
44220 if test -s conftest.err; then
44221 ac_cpp_err=$ac_c_preproc_warn_flag
44222 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44229 if test -z "$ac_cpp_err"; then
44230 ac_header_preproc=yes
44232 echo "$as_me: failed program was:" >&5
44233 sed 's/^/| /' conftest.$ac_ext >&5
44235 ac_header_preproc=no
44237 rm -f conftest.err conftest.$ac_ext
44238 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44239 echo "${ECHO_T}$ac_header_preproc" >&6
44241 # So? What about this header?
44242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44244 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44245 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44246 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44247 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44248 ac_header_preproc=yes
44251 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44252 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44253 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44254 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44255 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44256 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44257 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44258 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44259 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44260 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44261 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44262 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44265 ## ------------------------------------------ ##
44266 ## Report this to the AC_PACKAGE_NAME lists. ##
44267 ## ------------------------------------------ ##
44270 sed "s/^/$as_me: WARNING: /" >&2
44273 echo "$as_me:$LINENO: checking for $ac_header" >&5
44274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44275 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44276 echo $ECHO_N "(cached) $ECHO_C" >&6
44278 eval "$as_ac_Header=\$ac_header_preproc"
44280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44281 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44284 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44285 cat >>confdefs.h <<_ACEOF
44286 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44293 echo "$as_me:$LINENO: checking for db" >&5
44294 echo $ECHO_N "checking for db... $ECHO_C" >&6
44295 if test "${ol_cv_ndbm+set}" = set; then
44296 echo $ECHO_N "(cached) $ECHO_C" >&6
44299 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
44306 echo "$as_me:$LINENO: result: $ol_cv_ndbm" >&5
44307 echo "${ECHO_T}$ol_cv_ndbm" >&6
44308 if test $ol_cv_ndbm = yes ; then
44310 cat >>confdefs.h <<\_ACEOF
44311 #define HAVE_NDBM 1
44317 if test $ol_cv_ndbm = yes ; then
44319 ol_with_ldbm_api=ndbm
44321 if test $ol_cv_lib_ndbm != yes ; then
44322 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
44327 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
44328 { { echo "$as_me:$LINENO: error: could not find suitable LDBM backend" >&5
44329 echo "$as_me: error: could not find suitable LDBM backend" >&2;}
44330 { (exit 1); exit 1; }; }
44333 if test $ol_enable_bdb = yes -o \
44334 $ol_enable_hdb = yes -o \
44335 $ol_enable_ldbm = yes ; then
44336 SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
44340 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
44341 BUILD_LIBS_DYNAMIC=shared
44343 cat >>confdefs.h <<\_ACEOF
44344 #define LDAP_LIBS_DYNAMIC 1
44349 BUILD_LIBS_DYNAMIC=static
44353 if test $ol_enable_wrappers != no ; then
44355 for ac_header in tcpd.h
44357 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44358 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44359 echo "$as_me:$LINENO: checking for $ac_header" >&5
44360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44362 echo $ECHO_N "(cached) $ECHO_C" >&6
44364 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44365 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44367 # Is the header compilable?
44368 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44369 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44370 cat >conftest.$ac_ext <<_ACEOF
44373 cat confdefs.h >>conftest.$ac_ext
44374 cat >>conftest.$ac_ext <<_ACEOF
44375 /* end confdefs.h. */
44376 $ac_includes_default
44377 #include <$ac_header>
44379 rm -f conftest.$ac_objext
44380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44381 (eval $ac_compile) 2>conftest.er1
44383 grep -v '^ *+' conftest.er1 >conftest.err
44385 cat conftest.err >&5
44386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44387 (exit $ac_status); } &&
44388 { ac_try='test -z "$ac_c_werror_flag"
44389 || test ! -s conftest.err'
44390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44391 (eval $ac_try) 2>&5
44393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44394 (exit $ac_status); }; } &&
44395 { ac_try='test -s conftest.$ac_objext'
44396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44397 (eval $ac_try) 2>&5
44399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44400 (exit $ac_status); }; }; then
44401 ac_header_compiler=yes
44403 echo "$as_me: failed program was:" >&5
44404 sed 's/^/| /' conftest.$ac_ext >&5
44406 ac_header_compiler=no
44408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44409 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44410 echo "${ECHO_T}$ac_header_compiler" >&6
44412 # Is the header present?
44413 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44414 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44415 cat >conftest.$ac_ext <<_ACEOF
44418 cat confdefs.h >>conftest.$ac_ext
44419 cat >>conftest.$ac_ext <<_ACEOF
44420 /* end confdefs.h. */
44421 #include <$ac_header>
44423 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44424 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44426 grep -v '^ *+' conftest.er1 >conftest.err
44428 cat conftest.err >&5
44429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44430 (exit $ac_status); } >/dev/null; then
44431 if test -s conftest.err; then
44432 ac_cpp_err=$ac_c_preproc_warn_flag
44433 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44440 if test -z "$ac_cpp_err"; then
44441 ac_header_preproc=yes
44443 echo "$as_me: failed program was:" >&5
44444 sed 's/^/| /' conftest.$ac_ext >&5
44446 ac_header_preproc=no
44448 rm -f conftest.err conftest.$ac_ext
44449 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44450 echo "${ECHO_T}$ac_header_preproc" >&6
44452 # So? What about this header?
44453 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44455 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44456 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44458 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44459 ac_header_preproc=yes
44462 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44463 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44464 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44465 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44466 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44467 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44468 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44469 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44471 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44472 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44473 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44476 ## ------------------------------------------ ##
44477 ## Report this to the AC_PACKAGE_NAME lists. ##
44478 ## ------------------------------------------ ##
44481 sed "s/^/$as_me: WARNING: /" >&2
44484 echo "$as_me:$LINENO: checking for $ac_header" >&5
44485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44487 echo $ECHO_N "(cached) $ECHO_C" >&6
44489 eval "$as_ac_Header=\$ac_header_preproc"
44491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44492 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44495 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44496 cat >>confdefs.h <<_ACEOF
44497 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44500 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
44501 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
44503 LIBS="$LIBS -lwrap"
44504 cat >conftest.$ac_ext <<_ACEOF
44507 cat confdefs.h >>conftest.$ac_ext
44508 cat >>conftest.$ac_ext <<_ACEOF
44509 /* end confdefs.h. */
44512 int allow_severity = 0;
44513 int deny_severity = 0;
44515 struct request_info *req;
44527 rm -f conftest.$ac_objext conftest$ac_exeext
44528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44529 (eval $ac_link) 2>conftest.er1
44531 grep -v '^ *+' conftest.er1 >conftest.err
44533 cat conftest.err >&5
44534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44535 (exit $ac_status); } &&
44536 { ac_try='test -z "$ac_c_werror_flag"
44537 || test ! -s conftest.err'
44538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44539 (eval $ac_try) 2>&5
44541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44542 (exit $ac_status); }; } &&
44543 { ac_try='test -s conftest$ac_exeext'
44544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44545 (eval $ac_try) 2>&5
44547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44548 (exit $ac_status); }; }; then
44549 echo "$as_me:$LINENO: result: -lwrap" >&5
44550 echo "${ECHO_T}-lwrap" >&6
44554 echo "$as_me: failed program was:" >&5
44555 sed 's/^/| /' conftest.$ac_ext >&5
44559 cat >conftest.$ac_ext <<_ACEOF
44562 cat confdefs.h >>conftest.$ac_ext
44563 cat >>conftest.$ac_ext <<_ACEOF
44564 /* end confdefs.h. */
44567 int allow_severity = 0;
44568 int deny_severity = 0;
44570 struct request_info *req;
44582 rm -f conftest.$ac_objext conftest$ac_exeext
44583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44584 (eval $ac_link) 2>conftest.er1
44586 grep -v '^ *+' conftest.er1 >conftest.err
44588 cat conftest.err >&5
44589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44590 (exit $ac_status); } &&
44591 { ac_try='test -z "$ac_c_werror_flag"
44592 || test ! -s conftest.err'
44593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44594 (eval $ac_try) 2>&5
44596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44597 (exit $ac_status); }; } &&
44598 { ac_try='test -s conftest$ac_exeext'
44599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44600 (eval $ac_try) 2>&5
44602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44603 (exit $ac_status); }; }; then
44604 echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
44605 echo "${ECHO_T}-lwrap -lnsl" >&6
44607 LIBS="$save_LIBS -lnsl"
44609 echo "$as_me: failed program was:" >&5
44610 sed 's/^/| /' conftest.$ac_ext >&5
44613 echo "$as_me:$LINENO: result: no" >&5
44614 echo "${ECHO_T}no" >&6
44618 rm -f conftest.err conftest.$ac_objext \
44619 conftest$ac_exeext conftest.$ac_ext
44621 rm -f conftest.err conftest.$ac_objext \
44622 conftest$ac_exeext conftest.$ac_ext
44630 if test $have_wrappers = yes ; then
44632 cat >>confdefs.h <<\_ACEOF
44633 #define HAVE_TCPD 1
44637 elif test $ol_enable_wrappers = yes ; then
44638 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
44639 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
44640 { (exit 1); exit 1; }; }
44642 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
44643 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
44648 if test $ol_enable_syslog != no ; then
44649 echo "$as_me:$LINENO: checking for openlog" >&5
44650 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
44651 if test "${ac_cv_func_openlog+set}" = set; then
44652 echo $ECHO_N "(cached) $ECHO_C" >&6
44654 cat >conftest.$ac_ext <<_ACEOF
44657 cat confdefs.h >>conftest.$ac_ext
44658 cat >>conftest.$ac_ext <<_ACEOF
44659 /* end confdefs.h. */
44660 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
44661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44662 #define openlog innocuous_openlog
44664 /* System header to define __stub macros and hopefully few prototypes,
44665 which can conflict with char openlog (); below.
44666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44667 <limits.h> exists even on freestanding compilers. */
44670 # include <limits.h>
44672 # include <assert.h>
44677 /* Override any gcc2 internal prototype to avoid an error. */
44682 /* We use char because int might match the return type of a gcc2
44683 builtin and then its argument prototype would still apply. */
44685 /* The GNU C library defines this for functions which it implements
44686 to always fail with ENOSYS. Some functions are actually named
44687 something starting with __ and the normal name is an alias. */
44688 #if defined (__stub_openlog) || defined (__stub___openlog)
44691 char (*f) () = openlog;
44700 return f != openlog;
44705 rm -f conftest.$ac_objext conftest$ac_exeext
44706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44707 (eval $ac_link) 2>conftest.er1
44709 grep -v '^ *+' conftest.er1 >conftest.err
44711 cat conftest.err >&5
44712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44713 (exit $ac_status); } &&
44714 { ac_try='test -z "$ac_c_werror_flag"
44715 || test ! -s conftest.err'
44716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44717 (eval $ac_try) 2>&5
44719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44720 (exit $ac_status); }; } &&
44721 { ac_try='test -s conftest$ac_exeext'
44722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44723 (eval $ac_try) 2>&5
44725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44726 (exit $ac_status); }; }; then
44727 ac_cv_func_openlog=yes
44729 echo "$as_me: failed program was:" >&5
44730 sed 's/^/| /' conftest.$ac_ext >&5
44732 ac_cv_func_openlog=no
44734 rm -f conftest.err conftest.$ac_objext \
44735 conftest$ac_exeext conftest.$ac_ext
44737 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
44738 echo "${ECHO_T}$ac_cv_func_openlog" >&6
44740 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
44741 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
44742 echo "$as_me: error: could not find syslog" >&2;}
44743 { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
44745 ol_enable_syslog=$ac_cv_func_openlog
44750 if test $ol_enable_sql != no ; then
44753 for ac_header in sql.h sqlext.h
44755 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44757 echo "$as_me:$LINENO: checking for $ac_header" >&5
44758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44760 echo $ECHO_N "(cached) $ECHO_C" >&6
44762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44763 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44765 # Is the header compilable?
44766 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44767 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44768 cat >conftest.$ac_ext <<_ACEOF
44771 cat confdefs.h >>conftest.$ac_ext
44772 cat >>conftest.$ac_ext <<_ACEOF
44773 /* end confdefs.h. */
44774 $ac_includes_default
44775 #include <$ac_header>
44777 rm -f conftest.$ac_objext
44778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44779 (eval $ac_compile) 2>conftest.er1
44781 grep -v '^ *+' conftest.er1 >conftest.err
44783 cat conftest.err >&5
44784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44785 (exit $ac_status); } &&
44786 { ac_try='test -z "$ac_c_werror_flag"
44787 || test ! -s conftest.err'
44788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44789 (eval $ac_try) 2>&5
44791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44792 (exit $ac_status); }; } &&
44793 { ac_try='test -s conftest.$ac_objext'
44794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44795 (eval $ac_try) 2>&5
44797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44798 (exit $ac_status); }; }; then
44799 ac_header_compiler=yes
44801 echo "$as_me: failed program was:" >&5
44802 sed 's/^/| /' conftest.$ac_ext >&5
44804 ac_header_compiler=no
44806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44807 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44808 echo "${ECHO_T}$ac_header_compiler" >&6
44810 # Is the header present?
44811 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44812 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44813 cat >conftest.$ac_ext <<_ACEOF
44816 cat confdefs.h >>conftest.$ac_ext
44817 cat >>conftest.$ac_ext <<_ACEOF
44818 /* end confdefs.h. */
44819 #include <$ac_header>
44821 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44822 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44824 grep -v '^ *+' conftest.er1 >conftest.err
44826 cat conftest.err >&5
44827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44828 (exit $ac_status); } >/dev/null; then
44829 if test -s conftest.err; then
44830 ac_cpp_err=$ac_c_preproc_warn_flag
44831 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44838 if test -z "$ac_cpp_err"; then
44839 ac_header_preproc=yes
44841 echo "$as_me: failed program was:" >&5
44842 sed 's/^/| /' conftest.$ac_ext >&5
44844 ac_header_preproc=no
44846 rm -f conftest.err conftest.$ac_ext
44847 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44848 echo "${ECHO_T}$ac_header_preproc" >&6
44850 # So? What about this header?
44851 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44853 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44854 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44855 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44856 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44857 ac_header_preproc=yes
44860 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44861 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44862 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44863 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44864 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44865 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44866 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44867 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44868 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44869 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44870 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44871 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44874 ## ------------------------------------------ ##
44875 ## Report this to the AC_PACKAGE_NAME lists. ##
44876 ## ------------------------------------------ ##
44879 sed "s/^/$as_me: WARNING: /" >&2
44882 echo "$as_me:$LINENO: checking for $ac_header" >&5
44883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44884 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44885 echo $ECHO_N "(cached) $ECHO_C" >&6
44887 eval "$as_ac_Header=\$ac_header_preproc"
44889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44890 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44893 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44894 cat >>confdefs.h <<_ACEOF
44895 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44900 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
44901 echo "$as_me: error: could not locate SQL headers" >&2;}
44902 { (exit 1); exit 1; }; }
44910 LIBS="$LTHREAD_LIBS"
44912 echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
44913 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
44914 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
44915 echo $ECHO_N "(cached) $ECHO_C" >&6
44917 ac_check_lib_save_LIBS=$LIBS
44918 LIBS="-liodbc $LIBS"
44919 cat >conftest.$ac_ext <<_ACEOF
44922 cat confdefs.h >>conftest.$ac_ext
44923 cat >>conftest.$ac_ext <<_ACEOF
44924 /* end confdefs.h. */
44926 /* Override any gcc2 internal prototype to avoid an error. */
44930 /* We use char because int might match the return type of a gcc2
44931 builtin and then its argument prototype would still apply. */
44932 char SQLDriverConnect ();
44936 SQLDriverConnect ();
44941 rm -f conftest.$ac_objext conftest$ac_exeext
44942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44943 (eval $ac_link) 2>conftest.er1
44945 grep -v '^ *+' conftest.er1 >conftest.err
44947 cat conftest.err >&5
44948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44949 (exit $ac_status); } &&
44950 { ac_try='test -z "$ac_c_werror_flag"
44951 || test ! -s conftest.err'
44952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44953 (eval $ac_try) 2>&5
44955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44956 (exit $ac_status); }; } &&
44957 { ac_try='test -s conftest$ac_exeext'
44958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44959 (eval $ac_try) 2>&5
44961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44962 (exit $ac_status); }; }; then
44963 ac_cv_lib_iodbc_SQLDriverConnect=yes
44965 echo "$as_me: failed program was:" >&5
44966 sed 's/^/| /' conftest.$ac_ext >&5
44968 ac_cv_lib_iodbc_SQLDriverConnect=no
44970 rm -f conftest.err conftest.$ac_objext \
44971 conftest$ac_exeext conftest.$ac_ext
44972 LIBS=$ac_check_lib_save_LIBS
44974 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
44975 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
44976 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
44982 if test $have_iodbc = yes ; then
44983 ol_link_sql="-liodbc"
44985 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
44986 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
44987 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
44988 echo $ECHO_N "(cached) $ECHO_C" >&6
44990 ac_check_lib_save_LIBS=$LIBS
44991 LIBS="-lodbc $LIBS"
44992 cat >conftest.$ac_ext <<_ACEOF
44995 cat confdefs.h >>conftest.$ac_ext
44996 cat >>conftest.$ac_ext <<_ACEOF
44997 /* end confdefs.h. */
44999 /* Override any gcc2 internal prototype to avoid an error. */
45003 /* We use char because int might match the return type of a gcc2
45004 builtin and then its argument prototype would still apply. */
45005 char SQLDriverConnect ();
45009 SQLDriverConnect ();
45014 rm -f conftest.$ac_objext conftest$ac_exeext
45015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45016 (eval $ac_link) 2>conftest.er1
45018 grep -v '^ *+' conftest.er1 >conftest.err
45020 cat conftest.err >&5
45021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45022 (exit $ac_status); } &&
45023 { ac_try='test -z "$ac_c_werror_flag"
45024 || test ! -s conftest.err'
45025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45026 (eval $ac_try) 2>&5
45028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45029 (exit $ac_status); }; } &&
45030 { ac_try='test -s conftest$ac_exeext'
45031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45032 (eval $ac_try) 2>&5
45034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45035 (exit $ac_status); }; }; then
45036 ac_cv_lib_odbc_SQLDriverConnect=yes
45038 echo "$as_me: failed program was:" >&5
45039 sed 's/^/| /' conftest.$ac_ext >&5
45041 ac_cv_lib_odbc_SQLDriverConnect=no
45043 rm -f conftest.err conftest.$ac_objext \
45044 conftest$ac_exeext conftest.$ac_ext
45045 LIBS=$ac_check_lib_save_LIBS
45047 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
45048 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
45049 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
45055 if test $have_odbc = yes ; then
45056 ol_link_sql="-lodbc"
45062 if test $ol_link_sql != no ; then
45063 SLAPD_SQL_LIBS="$ol_link_sql"
45065 elif test $ol_enable_sql != auto ; then
45066 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
45067 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
45068 { (exit 1); exit 1; }; }
45075 if test $ol_with_cyrus_sasl != no ; then
45078 for ac_header in sasl/sasl.h sasl.h
45080 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45082 echo "$as_me:$LINENO: checking for $ac_header" >&5
45083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45085 echo $ECHO_N "(cached) $ECHO_C" >&6
45087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45088 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45090 # Is the header compilable?
45091 echo "$as_me:$LINENO: checking $ac_header usability" >&5
45092 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
45093 cat >conftest.$ac_ext <<_ACEOF
45096 cat confdefs.h >>conftest.$ac_ext
45097 cat >>conftest.$ac_ext <<_ACEOF
45098 /* end confdefs.h. */
45099 $ac_includes_default
45100 #include <$ac_header>
45102 rm -f conftest.$ac_objext
45103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45104 (eval $ac_compile) 2>conftest.er1
45106 grep -v '^ *+' conftest.er1 >conftest.err
45108 cat conftest.err >&5
45109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45110 (exit $ac_status); } &&
45111 { ac_try='test -z "$ac_c_werror_flag"
45112 || test ! -s conftest.err'
45113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45114 (eval $ac_try) 2>&5
45116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45117 (exit $ac_status); }; } &&
45118 { ac_try='test -s conftest.$ac_objext'
45119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45120 (eval $ac_try) 2>&5
45122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45123 (exit $ac_status); }; }; then
45124 ac_header_compiler=yes
45126 echo "$as_me: failed program was:" >&5
45127 sed 's/^/| /' conftest.$ac_ext >&5
45129 ac_header_compiler=no
45131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45132 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45133 echo "${ECHO_T}$ac_header_compiler" >&6
45135 # Is the header present?
45136 echo "$as_me:$LINENO: checking $ac_header presence" >&5
45137 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45138 cat >conftest.$ac_ext <<_ACEOF
45141 cat confdefs.h >>conftest.$ac_ext
45142 cat >>conftest.$ac_ext <<_ACEOF
45143 /* end confdefs.h. */
45144 #include <$ac_header>
45146 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45147 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45149 grep -v '^ *+' conftest.er1 >conftest.err
45151 cat conftest.err >&5
45152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45153 (exit $ac_status); } >/dev/null; then
45154 if test -s conftest.err; then
45155 ac_cpp_err=$ac_c_preproc_warn_flag
45156 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
45163 if test -z "$ac_cpp_err"; then
45164 ac_header_preproc=yes
45166 echo "$as_me: failed program was:" >&5
45167 sed 's/^/| /' conftest.$ac_ext >&5
45169 ac_header_preproc=no
45171 rm -f conftest.err conftest.$ac_ext
45172 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45173 echo "${ECHO_T}$ac_header_preproc" >&6
45175 # So? What about this header?
45176 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45178 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45179 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45181 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45182 ac_header_preproc=yes
45185 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45186 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45187 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
45188 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
45189 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45190 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45191 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
45192 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
45193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45194 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45195 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45196 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45199 ## ------------------------------------------ ##
45200 ## Report this to the AC_PACKAGE_NAME lists. ##
45201 ## ------------------------------------------ ##
45204 sed "s/^/$as_me: WARNING: /" >&2
45207 echo "$as_me:$LINENO: checking for $ac_header" >&5
45208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45209 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45210 echo $ECHO_N "(cached) $ECHO_C" >&6
45212 eval "$as_ac_Header=\$ac_header_preproc"
45214 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45215 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45218 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45219 cat >>confdefs.h <<_ACEOF
45220 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45228 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
45229 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
45230 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
45231 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
45232 echo $ECHO_N "(cached) $ECHO_C" >&6
45234 ac_check_lib_save_LIBS=$LIBS
45235 LIBS="-lsasl2 $LIBS"
45236 cat >conftest.$ac_ext <<_ACEOF
45239 cat confdefs.h >>conftest.$ac_ext
45240 cat >>conftest.$ac_ext <<_ACEOF
45241 /* end confdefs.h. */
45243 /* Override any gcc2 internal prototype to avoid an error. */
45247 /* We use char because int might match the return type of a gcc2
45248 builtin and then its argument prototype would still apply. */
45249 char sasl_client_init ();
45253 sasl_client_init ();
45258 rm -f conftest.$ac_objext conftest$ac_exeext
45259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45260 (eval $ac_link) 2>conftest.er1
45262 grep -v '^ *+' conftest.er1 >conftest.err
45264 cat conftest.err >&5
45265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45266 (exit $ac_status); } &&
45267 { ac_try='test -z "$ac_c_werror_flag"
45268 || test ! -s conftest.err'
45269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45270 (eval $ac_try) 2>&5
45272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45273 (exit $ac_status); }; } &&
45274 { ac_try='test -s conftest$ac_exeext'
45275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45276 (eval $ac_try) 2>&5
45278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45279 (exit $ac_status); }; }; then
45280 ac_cv_lib_sasl2_sasl_client_init=yes
45282 echo "$as_me: failed program was:" >&5
45283 sed 's/^/| /' conftest.$ac_ext >&5
45285 ac_cv_lib_sasl2_sasl_client_init=no
45287 rm -f conftest.err conftest.$ac_objext \
45288 conftest$ac_exeext conftest.$ac_ext
45289 LIBS=$ac_check_lib_save_LIBS
45291 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
45292 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
45293 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
45294 ol_link_sasl="-lsasl2"
45296 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
45297 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
45298 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
45299 echo $ECHO_N "(cached) $ECHO_C" >&6
45301 ac_check_lib_save_LIBS=$LIBS
45302 LIBS="-lsasl $LIBS"
45303 cat >conftest.$ac_ext <<_ACEOF
45306 cat confdefs.h >>conftest.$ac_ext
45307 cat >>conftest.$ac_ext <<_ACEOF
45308 /* end confdefs.h. */
45310 /* Override any gcc2 internal prototype to avoid an error. */
45314 /* We use char because int might match the return type of a gcc2
45315 builtin and then its argument prototype would still apply. */
45316 char sasl_client_init ();
45320 sasl_client_init ();
45325 rm -f conftest.$ac_objext conftest$ac_exeext
45326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45327 (eval $ac_link) 2>conftest.er1
45329 grep -v '^ *+' conftest.er1 >conftest.err
45331 cat conftest.err >&5
45332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45333 (exit $ac_status); } &&
45334 { ac_try='test -z "$ac_c_werror_flag"
45335 || test ! -s conftest.err'
45336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45337 (eval $ac_try) 2>&5
45339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45340 (exit $ac_status); }; } &&
45341 { ac_try='test -s conftest$ac_exeext'
45342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45343 (eval $ac_try) 2>&5
45345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45346 (exit $ac_status); }; }; then
45347 ac_cv_lib_sasl_sasl_client_init=yes
45349 echo "$as_me: failed program was:" >&5
45350 sed 's/^/| /' conftest.$ac_ext >&5
45352 ac_cv_lib_sasl_sasl_client_init=no
45354 rm -f conftest.err conftest.$ac_objext \
45355 conftest$ac_exeext conftest.$ac_ext
45356 LIBS=$ac_check_lib_save_LIBS
45358 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
45359 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
45360 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
45361 ol_link_sasl="-lsasl"
45368 if test $ol_link_sasl = no ; then
45369 if test $ol_with_cyrus_sasl != auto ; then
45370 { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
45371 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
45372 { (exit 1); exit 1; }; }
45374 { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
45375 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
45376 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
45377 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
45378 if test $ol_link_tls = no ; then
45379 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
45380 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
45384 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
45385 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
45386 if test "${ol_cv_sasl_compat+set}" = set; then
45387 echo $ECHO_N "(cached) $ECHO_C" >&6
45390 cat >conftest.$ac_ext <<_ACEOF
45393 cat confdefs.h >>conftest.$ac_ext
45394 cat >>conftest.$ac_ext <<_ACEOF
45395 /* end confdefs.h. */
45397 #ifdef HAVE_SASL_SASL_H
45398 #include <sasl/sasl.h>
45403 /* Require 2.1.15+ */
45404 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
45405 char *__sasl_compat = "2.2+ or better okay (we guess)";
45406 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
45407 && SASL_VERSION_STEP >=15
45408 char *__sasl_compat = "2.1.15+ or better okay";
45412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45413 $EGREP "__sasl_compat" >/dev/null 2>&1; then
45414 ol_cv_sasl_compat=yes
45416 ol_cv_sasl_compat=no
45421 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
45422 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
45424 if test $ol_cv_sasl_compat = no ; then
45426 { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
45427 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
45428 { (exit 1); exit 1; }; }
45432 cat >>confdefs.h <<\_ACEOF
45433 #define HAVE_CYRUS_SASL 1
45436 SASL_LIBS="$ol_link_sasl"
45437 if test $ol_enable_spasswd != no ; then
45438 ol_link_spasswd=yes
45441 ac_save_LIBS="$LIBS"
45442 LIBS="$LIBS $ol_link_sasl"
45443 echo "$as_me:$LINENO: checking for sasl_version" >&5
45444 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
45445 if test "${ac_cv_func_sasl_version+set}" = set; then
45446 echo $ECHO_N "(cached) $ECHO_C" >&6
45448 cat >conftest.$ac_ext <<_ACEOF
45451 cat confdefs.h >>conftest.$ac_ext
45452 cat >>conftest.$ac_ext <<_ACEOF
45453 /* end confdefs.h. */
45454 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
45455 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45456 #define sasl_version innocuous_sasl_version
45458 /* System header to define __stub macros and hopefully few prototypes,
45459 which can conflict with char sasl_version (); below.
45460 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45461 <limits.h> exists even on freestanding compilers. */
45464 # include <limits.h>
45466 # include <assert.h>
45469 #undef sasl_version
45471 /* Override any gcc2 internal prototype to avoid an error. */
45476 /* We use char because int might match the return type of a gcc2
45477 builtin and then its argument prototype would still apply. */
45478 char sasl_version ();
45479 /* The GNU C library defines this for functions which it implements
45480 to always fail with ENOSYS. Some functions are actually named
45481 something starting with __ and the normal name is an alias. */
45482 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
45485 char (*f) () = sasl_version;
45494 return f != sasl_version;
45499 rm -f conftest.$ac_objext conftest$ac_exeext
45500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45501 (eval $ac_link) 2>conftest.er1
45503 grep -v '^ *+' conftest.er1 >conftest.err
45505 cat conftest.err >&5
45506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45507 (exit $ac_status); } &&
45508 { ac_try='test -z "$ac_c_werror_flag"
45509 || test ! -s conftest.err'
45510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45511 (eval $ac_try) 2>&5
45513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45514 (exit $ac_status); }; } &&
45515 { ac_try='test -s conftest$ac_exeext'
45516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45517 (eval $ac_try) 2>&5
45519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45520 (exit $ac_status); }; }; then
45521 ac_cv_func_sasl_version=yes
45523 echo "$as_me: failed program was:" >&5
45524 sed 's/^/| /' conftest.$ac_ext >&5
45526 ac_cv_func_sasl_version=no
45528 rm -f conftest.err conftest.$ac_objext \
45529 conftest$ac_exeext conftest.$ac_ext
45531 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
45532 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
45533 if test $ac_cv_func_sasl_version = yes; then
45535 cat >>confdefs.h <<\_ACEOF
45536 #define HAVE_SASL_VERSION 1
45541 LIBS="$ac_save_LIBS"
45547 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
45548 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
45549 if test $ol_link_tls = no ; then
45550 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
45551 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
45555 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
45557 if test -r /dev/urandom ; then
45558 dev="/dev/urandom";
45559 elif test -r /idev/urandom ; then
45560 dev="/idev/urandom";
45561 elif test -r /dev/srandom ; then
45562 dev="/dev/srandom";
45563 elif test -r /dev/random ; then
45565 elif test -r /idev/random ; then
45566 dev="/idev/random";
45569 if test $dev != no ; then
45571 cat >>confdefs.h <<_ACEOF
45572 #define URANDOM_DEVICE "$dev"
45579 if test $ol_with_fetch != no ; then
45581 LIBS="-lfetch -lcom_err $LIBS"
45582 echo "$as_me:$LINENO: checking fetch(3) library" >&5
45583 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
45584 if test "${ol_cv_lib_fetch+set}" = set; then
45585 echo $ECHO_N "(cached) $ECHO_C" >&6
45588 cat >conftest.$ac_ext <<_ACEOF
45591 cat confdefs.h >>conftest.$ac_ext
45592 cat >>conftest.$ac_ext <<_ACEOF
45593 /* end confdefs.h. */
45595 #include <sys/param.h>
45601 struct url *u = fetchParseURL("file:///");
45606 rm -f conftest.$ac_objext conftest$ac_exeext
45607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45608 (eval $ac_link) 2>conftest.er1
45610 grep -v '^ *+' conftest.er1 >conftest.err
45612 cat conftest.err >&5
45613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45614 (exit $ac_status); } &&
45615 { ac_try='test -z "$ac_c_werror_flag"
45616 || test ! -s conftest.err'
45617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45618 (eval $ac_try) 2>&5
45620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45621 (exit $ac_status); }; } &&
45622 { ac_try='test -s conftest$ac_exeext'
45623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45624 (eval $ac_try) 2>&5
45626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45627 (exit $ac_status); }; }; then
45628 ol_cv_lib_fetch=yes
45630 echo "$as_me: failed program was:" >&5
45631 sed 's/^/| /' conftest.$ac_ext >&5
45635 rm -f conftest.err conftest.$ac_objext \
45636 conftest$ac_exeext conftest.$ac_ext
45638 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
45639 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
45641 if test $ol_cv_lib_fetch != no ; then
45642 ol_link_fetch="-lfetch -lcom_err"
45644 cat >>confdefs.h <<\_ACEOF
45645 #define HAVE_FETCH 1
45651 if test $ol_cv_lib_fetch != no ; then
45652 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
45653 ol_link_fetch=freebsd
45655 elif test $ol_with_fetch != auto ; then
45656 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
45657 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
45658 { (exit 1); exit 1; }; }
45662 if test $ol_enable_crypt != no ; then
45664 LIBS="$TLS_LIBS $LIBS"
45666 echo "$as_me:$LINENO: checking for crypt" >&5
45667 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
45668 if test "${ac_cv_func_crypt+set}" = set; then
45669 echo $ECHO_N "(cached) $ECHO_C" >&6
45671 cat >conftest.$ac_ext <<_ACEOF
45674 cat confdefs.h >>conftest.$ac_ext
45675 cat >>conftest.$ac_ext <<_ACEOF
45676 /* end confdefs.h. */
45677 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
45678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45679 #define crypt innocuous_crypt
45681 /* System header to define __stub macros and hopefully few prototypes,
45682 which can conflict with char crypt (); below.
45683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45684 <limits.h> exists even on freestanding compilers. */
45687 # include <limits.h>
45689 # include <assert.h>
45694 /* Override any gcc2 internal prototype to avoid an error. */
45699 /* We use char because int might match the return type of a gcc2
45700 builtin and then its argument prototype would still apply. */
45702 /* The GNU C library defines this for functions which it implements
45703 to always fail with ENOSYS. Some functions are actually named
45704 something starting with __ and the normal name is an alias. */
45705 #if defined (__stub_crypt) || defined (__stub___crypt)
45708 char (*f) () = crypt;
45722 rm -f conftest.$ac_objext conftest$ac_exeext
45723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45724 (eval $ac_link) 2>conftest.er1
45726 grep -v '^ *+' conftest.er1 >conftest.err
45728 cat conftest.err >&5
45729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45730 (exit $ac_status); } &&
45731 { ac_try='test -z "$ac_c_werror_flag"
45732 || test ! -s conftest.err'
45733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45734 (eval $ac_try) 2>&5
45736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45737 (exit $ac_status); }; } &&
45738 { ac_try='test -s conftest$ac_exeext'
45739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45740 (eval $ac_try) 2>&5
45742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45743 (exit $ac_status); }; }; then
45744 ac_cv_func_crypt=yes
45746 echo "$as_me: failed program was:" >&5
45747 sed 's/^/| /' conftest.$ac_ext >&5
45749 ac_cv_func_crypt=no
45751 rm -f conftest.err conftest.$ac_objext \
45752 conftest$ac_exeext conftest.$ac_ext
45754 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
45755 echo "${ECHO_T}$ac_cv_func_crypt" >&6
45756 if test $ac_cv_func_crypt = yes; then
45761 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
45762 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
45763 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
45764 echo $ECHO_N "(cached) $ECHO_C" >&6
45766 ac_check_lib_save_LIBS=$LIBS
45767 LIBS="-lcrypt $LIBS"
45768 cat >conftest.$ac_ext <<_ACEOF
45771 cat confdefs.h >>conftest.$ac_ext
45772 cat >>conftest.$ac_ext <<_ACEOF
45773 /* end confdefs.h. */
45775 /* Override any gcc2 internal prototype to avoid an error. */
45779 /* We use char because int might match the return type of a gcc2
45780 builtin and then its argument prototype would still apply. */
45790 rm -f conftest.$ac_objext conftest$ac_exeext
45791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45792 (eval $ac_link) 2>conftest.er1
45794 grep -v '^ *+' conftest.er1 >conftest.err
45796 cat conftest.err >&5
45797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45798 (exit $ac_status); } &&
45799 { ac_try='test -z "$ac_c_werror_flag"
45800 || test ! -s conftest.err'
45801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45802 (eval $ac_try) 2>&5
45804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45805 (exit $ac_status); }; } &&
45806 { ac_try='test -s conftest$ac_exeext'
45807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45808 (eval $ac_try) 2>&5
45810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45811 (exit $ac_status); }; }; then
45812 ac_cv_lib_crypt_crypt=yes
45814 echo "$as_me: failed program was:" >&5
45815 sed 's/^/| /' conftest.$ac_ext >&5
45817 ac_cv_lib_crypt_crypt=no
45819 rm -f conftest.err conftest.$ac_objext \
45820 conftest$ac_exeext conftest.$ac_ext
45821 LIBS=$ac_check_lib_save_LIBS
45823 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
45824 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
45825 if test $ac_cv_lib_crypt_crypt = yes; then
45826 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
45837 if test $have_crypt = yes ; then
45839 cat >>confdefs.h <<\_ACEOF
45840 #define HAVE_CRYPT 1
45844 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
45845 echo "$as_me: WARNING: could not find crypt" >&2;}
45846 if test $ol_enable_crypt = yes ; then
45847 { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
45848 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
45849 { (exit 1); exit 1; }; }
45852 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
45853 echo "$as_me: WARNING: disabling crypt support" >&2;}
45858 if test $ol_enable_proctitle != no ; then
45859 echo "$as_me:$LINENO: checking for setproctitle" >&5
45860 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
45861 if test "${ac_cv_func_setproctitle+set}" = set; then
45862 echo $ECHO_N "(cached) $ECHO_C" >&6
45864 cat >conftest.$ac_ext <<_ACEOF
45867 cat confdefs.h >>conftest.$ac_ext
45868 cat >>conftest.$ac_ext <<_ACEOF
45869 /* end confdefs.h. */
45870 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
45871 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45872 #define setproctitle innocuous_setproctitle
45874 /* System header to define __stub macros and hopefully few prototypes,
45875 which can conflict with char setproctitle (); below.
45876 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45877 <limits.h> exists even on freestanding compilers. */
45880 # include <limits.h>
45882 # include <assert.h>
45885 #undef setproctitle
45887 /* Override any gcc2 internal prototype to avoid an error. */
45892 /* We use char because int might match the return type of a gcc2
45893 builtin and then its argument prototype would still apply. */
45894 char setproctitle ();
45895 /* The GNU C library defines this for functions which it implements
45896 to always fail with ENOSYS. Some functions are actually named
45897 something starting with __ and the normal name is an alias. */
45898 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
45901 char (*f) () = setproctitle;
45910 return f != setproctitle;
45915 rm -f conftest.$ac_objext conftest$ac_exeext
45916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45917 (eval $ac_link) 2>conftest.er1
45919 grep -v '^ *+' conftest.er1 >conftest.err
45921 cat conftest.err >&5
45922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45923 (exit $ac_status); } &&
45924 { ac_try='test -z "$ac_c_werror_flag"
45925 || test ! -s conftest.err'
45926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45927 (eval $ac_try) 2>&5
45929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45930 (exit $ac_status); }; } &&
45931 { ac_try='test -s conftest$ac_exeext'
45932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45933 (eval $ac_try) 2>&5
45935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45936 (exit $ac_status); }; }; then
45937 ac_cv_func_setproctitle=yes
45939 echo "$as_me: failed program was:" >&5
45940 sed 's/^/| /' conftest.$ac_ext >&5
45942 ac_cv_func_setproctitle=no
45944 rm -f conftest.err conftest.$ac_objext \
45945 conftest$ac_exeext conftest.$ac_ext
45947 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
45948 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
45949 if test $ac_cv_func_setproctitle = yes; then
45950 have_setproctitle=yes
45953 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
45954 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
45955 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
45956 echo $ECHO_N "(cached) $ECHO_C" >&6
45958 ac_check_lib_save_LIBS=$LIBS
45959 LIBS="-lutil $LIBS"
45960 cat >conftest.$ac_ext <<_ACEOF
45963 cat confdefs.h >>conftest.$ac_ext
45964 cat >>conftest.$ac_ext <<_ACEOF
45965 /* end confdefs.h. */
45967 /* Override any gcc2 internal prototype to avoid an error. */
45971 /* We use char because int might match the return type of a gcc2
45972 builtin and then its argument prototype would still apply. */
45973 char setproctitle ();
45982 rm -f conftest.$ac_objext conftest$ac_exeext
45983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45984 (eval $ac_link) 2>conftest.er1
45986 grep -v '^ *+' conftest.er1 >conftest.err
45988 cat conftest.err >&5
45989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45990 (exit $ac_status); } &&
45991 { ac_try='test -z "$ac_c_werror_flag"
45992 || test ! -s conftest.err'
45993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45994 (eval $ac_try) 2>&5
45996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45997 (exit $ac_status); }; } &&
45998 { ac_try='test -s conftest$ac_exeext'
45999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46000 (eval $ac_try) 2>&5
46002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46003 (exit $ac_status); }; }; then
46004 ac_cv_lib_util_setproctitle=yes
46006 echo "$as_me: failed program was:" >&5
46007 sed 's/^/| /' conftest.$ac_ext >&5
46009 ac_cv_lib_util_setproctitle=no
46011 rm -f conftest.err conftest.$ac_objext \
46012 conftest$ac_exeext conftest.$ac_ext
46013 LIBS=$ac_check_lib_save_LIBS
46015 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
46016 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
46017 if test $ac_cv_lib_util_setproctitle = yes; then
46018 have_setproctitle=yes
46019 LUTIL_LIBS="$LUTIL_LIBS -lutil"
46021 have_setproctitle=no
46023 "setproctitle.$ac_objext" | \
46024 *" setproctitle.$ac_objext" | \
46025 "setproctitle.$ac_objext "* | \
46026 *" setproctitle.$ac_objext "* ) ;;
46027 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
46030 LIBSRCS="$LIBSRCS setproctitle.c"
46036 if test $have_setproctitle = yes ; then
46038 cat >>confdefs.h <<\_ACEOF
46039 #define HAVE_SETPROCTITLE 1
46045 if test $ol_enable_slp != no ; then
46047 for ac_header in slp.h
46049 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46050 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46051 echo "$as_me:$LINENO: checking for $ac_header" >&5
46052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46054 echo $ECHO_N "(cached) $ECHO_C" >&6
46056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46057 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46059 # Is the header compilable?
46060 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46061 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46062 cat >conftest.$ac_ext <<_ACEOF
46065 cat confdefs.h >>conftest.$ac_ext
46066 cat >>conftest.$ac_ext <<_ACEOF
46067 /* end confdefs.h. */
46068 $ac_includes_default
46069 #include <$ac_header>
46071 rm -f conftest.$ac_objext
46072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46073 (eval $ac_compile) 2>conftest.er1
46075 grep -v '^ *+' conftest.er1 >conftest.err
46077 cat conftest.err >&5
46078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46079 (exit $ac_status); } &&
46080 { ac_try='test -z "$ac_c_werror_flag"
46081 || test ! -s conftest.err'
46082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46083 (eval $ac_try) 2>&5
46085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46086 (exit $ac_status); }; } &&
46087 { ac_try='test -s conftest.$ac_objext'
46088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46089 (eval $ac_try) 2>&5
46091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46092 (exit $ac_status); }; }; then
46093 ac_header_compiler=yes
46095 echo "$as_me: failed program was:" >&5
46096 sed 's/^/| /' conftest.$ac_ext >&5
46098 ac_header_compiler=no
46100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46101 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46102 echo "${ECHO_T}$ac_header_compiler" >&6
46104 # Is the header present?
46105 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46106 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46107 cat >conftest.$ac_ext <<_ACEOF
46110 cat confdefs.h >>conftest.$ac_ext
46111 cat >>conftest.$ac_ext <<_ACEOF
46112 /* end confdefs.h. */
46113 #include <$ac_header>
46115 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46116 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46118 grep -v '^ *+' conftest.er1 >conftest.err
46120 cat conftest.err >&5
46121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46122 (exit $ac_status); } >/dev/null; then
46123 if test -s conftest.err; then
46124 ac_cpp_err=$ac_c_preproc_warn_flag
46125 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46132 if test -z "$ac_cpp_err"; then
46133 ac_header_preproc=yes
46135 echo "$as_me: failed program was:" >&5
46136 sed 's/^/| /' conftest.$ac_ext >&5
46138 ac_header_preproc=no
46140 rm -f conftest.err conftest.$ac_ext
46141 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46142 echo "${ECHO_T}$ac_header_preproc" >&6
46144 # So? What about this header?
46145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46147 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46148 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46150 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46151 ac_header_preproc=yes
46154 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46155 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46156 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46157 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46158 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46159 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46160 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
46161 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
46162 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46163 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46164 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46165 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46168 ## ------------------------------------------ ##
46169 ## Report this to the AC_PACKAGE_NAME lists. ##
46170 ## ------------------------------------------ ##
46173 sed "s/^/$as_me: WARNING: /" >&2
46176 echo "$as_me:$LINENO: checking for $ac_header" >&5
46177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46179 echo $ECHO_N "(cached) $ECHO_C" >&6
46181 eval "$as_ac_Header=\$ac_header_preproc"
46183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46184 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46187 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46188 cat >>confdefs.h <<_ACEOF
46189 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46197 if test $ac_cv_header_slp_h = yes ; then
46198 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
46199 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
46200 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
46201 echo $ECHO_N "(cached) $ECHO_C" >&6
46203 ac_check_lib_save_LIBS=$LIBS
46205 cat >conftest.$ac_ext <<_ACEOF
46208 cat confdefs.h >>conftest.$ac_ext
46209 cat >>conftest.$ac_ext <<_ACEOF
46210 /* end confdefs.h. */
46212 /* Override any gcc2 internal prototype to avoid an error. */
46216 /* We use char because int might match the return type of a gcc2
46217 builtin and then its argument prototype would still apply. */
46227 rm -f conftest.$ac_objext conftest$ac_exeext
46228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46229 (eval $ac_link) 2>conftest.er1
46231 grep -v '^ *+' conftest.er1 >conftest.err
46233 cat conftest.err >&5
46234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46235 (exit $ac_status); } &&
46236 { ac_try='test -z "$ac_c_werror_flag"
46237 || test ! -s conftest.err'
46238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46239 (eval $ac_try) 2>&5
46241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46242 (exit $ac_status); }; } &&
46243 { ac_try='test -s conftest$ac_exeext'
46244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46245 (eval $ac_try) 2>&5
46247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46248 (exit $ac_status); }; }; then
46249 ac_cv_lib_slp_SLPOpen=yes
46251 echo "$as_me: failed program was:" >&5
46252 sed 's/^/| /' conftest.$ac_ext >&5
46254 ac_cv_lib_slp_SLPOpen=no
46256 rm -f conftest.err conftest.$ac_objext \
46257 conftest$ac_exeext conftest.$ac_ext
46258 LIBS=$ac_check_lib_save_LIBS
46260 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
46261 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
46262 if test $ac_cv_lib_slp_SLPOpen = yes; then
46268 if test $have_slp = yes ; then
46270 cat >>confdefs.h <<\_ACEOF
46274 SLAPD_SLP_LIBS=-lslp
46277 elif test $ol_enable_slp = yes ; then
46278 { { echo "$as_me:$LINENO: error: SLP not found" >&5
46279 echo "$as_me: error: SLP not found" >&2;}
46280 { (exit 1); exit 1; }; }
46284 if test "$ol_with_multiple_precision" != "no" ; then
46290 for ac_header in openssl/bn.h bn.h
46292 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46293 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46294 echo "$as_me:$LINENO: checking for $ac_header" >&5
46295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46297 echo $ECHO_N "(cached) $ECHO_C" >&6
46299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46300 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46302 # Is the header compilable?
46303 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46304 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46305 cat >conftest.$ac_ext <<_ACEOF
46308 cat confdefs.h >>conftest.$ac_ext
46309 cat >>conftest.$ac_ext <<_ACEOF
46310 /* end confdefs.h. */
46311 $ac_includes_default
46312 #include <$ac_header>
46314 rm -f conftest.$ac_objext
46315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46316 (eval $ac_compile) 2>conftest.er1
46318 grep -v '^ *+' conftest.er1 >conftest.err
46320 cat conftest.err >&5
46321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46322 (exit $ac_status); } &&
46323 { ac_try='test -z "$ac_c_werror_flag"
46324 || test ! -s conftest.err'
46325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46326 (eval $ac_try) 2>&5
46328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46329 (exit $ac_status); }; } &&
46330 { ac_try='test -s conftest.$ac_objext'
46331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46332 (eval $ac_try) 2>&5
46334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46335 (exit $ac_status); }; }; then
46336 ac_header_compiler=yes
46338 echo "$as_me: failed program was:" >&5
46339 sed 's/^/| /' conftest.$ac_ext >&5
46341 ac_header_compiler=no
46343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46344 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46345 echo "${ECHO_T}$ac_header_compiler" >&6
46347 # Is the header present?
46348 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46349 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46350 cat >conftest.$ac_ext <<_ACEOF
46353 cat confdefs.h >>conftest.$ac_ext
46354 cat >>conftest.$ac_ext <<_ACEOF
46355 /* end confdefs.h. */
46356 #include <$ac_header>
46358 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46359 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46361 grep -v '^ *+' conftest.er1 >conftest.err
46363 cat conftest.err >&5
46364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46365 (exit $ac_status); } >/dev/null; then
46366 if test -s conftest.err; then
46367 ac_cpp_err=$ac_c_preproc_warn_flag
46368 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46375 if test -z "$ac_cpp_err"; then
46376 ac_header_preproc=yes
46378 echo "$as_me: failed program was:" >&5
46379 sed 's/^/| /' conftest.$ac_ext >&5
46381 ac_header_preproc=no
46383 rm -f conftest.err conftest.$ac_ext
46384 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46385 echo "${ECHO_T}$ac_header_preproc" >&6
46387 # So? What about this header?
46388 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46390 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46391 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46393 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46394 ac_header_preproc=yes
46397 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46398 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46399 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46400 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46401 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46402 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46403 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
46404 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
46405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46406 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46407 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46408 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46411 ## ------------------------------------------ ##
46412 ## Report this to the AC_PACKAGE_NAME lists. ##
46413 ## ------------------------------------------ ##
46416 sed "s/^/$as_me: WARNING: /" >&2
46419 echo "$as_me:$LINENO: checking for $ac_header" >&5
46420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46422 echo $ECHO_N "(cached) $ECHO_C" >&6
46424 eval "$as_ac_Header=\$ac_header_preproc"
46426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46427 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46430 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46431 cat >>confdefs.h <<_ACEOF
46432 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46441 for ac_header in openssl/crypto.h crypto.h
46443 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46445 echo "$as_me:$LINENO: checking for $ac_header" >&5
46446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46448 echo $ECHO_N "(cached) $ECHO_C" >&6
46450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46451 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46453 # Is the header compilable?
46454 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46455 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46456 cat >conftest.$ac_ext <<_ACEOF
46459 cat confdefs.h >>conftest.$ac_ext
46460 cat >>conftest.$ac_ext <<_ACEOF
46461 /* end confdefs.h. */
46462 $ac_includes_default
46463 #include <$ac_header>
46465 rm -f conftest.$ac_objext
46466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46467 (eval $ac_compile) 2>conftest.er1
46469 grep -v '^ *+' conftest.er1 >conftest.err
46471 cat conftest.err >&5
46472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46473 (exit $ac_status); } &&
46474 { ac_try='test -z "$ac_c_werror_flag"
46475 || test ! -s conftest.err'
46476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46477 (eval $ac_try) 2>&5
46479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46480 (exit $ac_status); }; } &&
46481 { ac_try='test -s conftest.$ac_objext'
46482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46483 (eval $ac_try) 2>&5
46485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46486 (exit $ac_status); }; }; then
46487 ac_header_compiler=yes
46489 echo "$as_me: failed program was:" >&5
46490 sed 's/^/| /' conftest.$ac_ext >&5
46492 ac_header_compiler=no
46494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46495 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46496 echo "${ECHO_T}$ac_header_compiler" >&6
46498 # Is the header present?
46499 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46500 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46501 cat >conftest.$ac_ext <<_ACEOF
46504 cat confdefs.h >>conftest.$ac_ext
46505 cat >>conftest.$ac_ext <<_ACEOF
46506 /* end confdefs.h. */
46507 #include <$ac_header>
46509 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46510 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46512 grep -v '^ *+' conftest.er1 >conftest.err
46514 cat conftest.err >&5
46515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46516 (exit $ac_status); } >/dev/null; then
46517 if test -s conftest.err; then
46518 ac_cpp_err=$ac_c_preproc_warn_flag
46519 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46526 if test -z "$ac_cpp_err"; then
46527 ac_header_preproc=yes
46529 echo "$as_me: failed program was:" >&5
46530 sed 's/^/| /' conftest.$ac_ext >&5
46532 ac_header_preproc=no
46534 rm -f conftest.err conftest.$ac_ext
46535 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46536 echo "${ECHO_T}$ac_header_preproc" >&6
46538 # So? What about this header?
46539 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46541 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46542 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46543 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46544 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46545 ac_header_preproc=yes
46548 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46549 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46550 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46551 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46552 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46553 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46554 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
46555 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
46556 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46557 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46558 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46559 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46562 ## ------------------------------------------ ##
46563 ## Report this to the AC_PACKAGE_NAME lists. ##
46564 ## ------------------------------------------ ##
46567 sed "s/^/$as_me: WARNING: /" >&2
46570 echo "$as_me:$LINENO: checking for $ac_header" >&5
46571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46573 echo $ECHO_N "(cached) $ECHO_C" >&6
46575 eval "$as_ac_Header=\$ac_header_preproc"
46577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46578 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46582 cat >>confdefs.h <<_ACEOF
46583 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46591 for ac_header in gmp.h
46593 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46595 echo "$as_me:$LINENO: checking for $ac_header" >&5
46596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46598 echo $ECHO_N "(cached) $ECHO_C" >&6
46600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46601 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46603 # Is the header compilable?
46604 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46605 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46606 cat >conftest.$ac_ext <<_ACEOF
46609 cat confdefs.h >>conftest.$ac_ext
46610 cat >>conftest.$ac_ext <<_ACEOF
46611 /* end confdefs.h. */
46612 $ac_includes_default
46613 #include <$ac_header>
46615 rm -f conftest.$ac_objext
46616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46617 (eval $ac_compile) 2>conftest.er1
46619 grep -v '^ *+' conftest.er1 >conftest.err
46621 cat conftest.err >&5
46622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46623 (exit $ac_status); } &&
46624 { ac_try='test -z "$ac_c_werror_flag"
46625 || test ! -s conftest.err'
46626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46627 (eval $ac_try) 2>&5
46629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46630 (exit $ac_status); }; } &&
46631 { ac_try='test -s conftest.$ac_objext'
46632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46633 (eval $ac_try) 2>&5
46635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46636 (exit $ac_status); }; }; then
46637 ac_header_compiler=yes
46639 echo "$as_me: failed program was:" >&5
46640 sed 's/^/| /' conftest.$ac_ext >&5
46642 ac_header_compiler=no
46644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46645 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46646 echo "${ECHO_T}$ac_header_compiler" >&6
46648 # Is the header present?
46649 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46651 cat >conftest.$ac_ext <<_ACEOF
46654 cat confdefs.h >>conftest.$ac_ext
46655 cat >>conftest.$ac_ext <<_ACEOF
46656 /* end confdefs.h. */
46657 #include <$ac_header>
46659 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46660 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46662 grep -v '^ *+' conftest.er1 >conftest.err
46664 cat conftest.err >&5
46665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46666 (exit $ac_status); } >/dev/null; then
46667 if test -s conftest.err; then
46668 ac_cpp_err=$ac_c_preproc_warn_flag
46669 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46676 if test -z "$ac_cpp_err"; then
46677 ac_header_preproc=yes
46679 echo "$as_me: failed program was:" >&5
46680 sed 's/^/| /' conftest.$ac_ext >&5
46682 ac_header_preproc=no
46684 rm -f conftest.err conftest.$ac_ext
46685 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46686 echo "${ECHO_T}$ac_header_preproc" >&6
46688 # So? What about this header?
46689 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46691 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46692 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46694 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46695 ac_header_preproc=yes
46698 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46699 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46700 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46701 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46702 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46703 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46704 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
46705 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
46706 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46707 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46708 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46709 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46712 ## ------------------------------------------ ##
46713 ## Report this to the AC_PACKAGE_NAME lists. ##
46714 ## ------------------------------------------ ##
46717 sed "s/^/$as_me: WARNING: /" >&2
46720 echo "$as_me:$LINENO: checking for $ac_header" >&5
46721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46723 echo $ECHO_N "(cached) $ECHO_C" >&6
46725 eval "$as_ac_Header=\$ac_header_preproc"
46727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46728 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46731 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46732 cat >>confdefs.h <<_ACEOF
46733 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46741 if test "$ol_with_tls" = "found" ; then
46743 ol_have_crypto_h=no
46745 if test "$ac_cv_header_openssl_bn_h" = "yes" \
46746 -o "$ac_cv_header_bn_h" = "yes" ; then
46750 if test "$ac_cv_header_openssl_crypto_h" = "yes" \
46751 -o "$ac_cv_header_crypto_h" = "yes" ; then
46752 ol_have_crypto_h=yes
46755 if test "$ol_have_bn_h" = "yes" \
46756 -a "$ol_have_crypto_h" = "yes" ; then
46761 if test $ac_cv_header_gmp_h = yes ; then
46762 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
46763 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
46764 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
46765 echo $ECHO_N "(cached) $ECHO_C" >&6
46767 ac_check_lib_save_LIBS=$LIBS
46769 cat >conftest.$ac_ext <<_ACEOF
46772 cat confdefs.h >>conftest.$ac_ext
46773 cat >>conftest.$ac_ext <<_ACEOF
46774 /* end confdefs.h. */
46776 /* Override any gcc2 internal prototype to avoid an error. */
46780 /* We use char because int might match the return type of a gcc2
46781 builtin and then its argument prototype would still apply. */
46782 char __gmpz_add_ui ();
46791 rm -f conftest.$ac_objext conftest$ac_exeext
46792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46793 (eval $ac_link) 2>conftest.er1
46795 grep -v '^ *+' conftest.er1 >conftest.err
46797 cat conftest.err >&5
46798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46799 (exit $ac_status); } &&
46800 { ac_try='test -z "$ac_c_werror_flag"
46801 || test ! -s conftest.err'
46802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46803 (eval $ac_try) 2>&5
46805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46806 (exit $ac_status); }; } &&
46807 { ac_try='test -s conftest$ac_exeext'
46808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46809 (eval $ac_try) 2>&5
46811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46812 (exit $ac_status); }; }; then
46813 ac_cv_lib_gmp___gmpz_add_ui=yes
46815 echo "$as_me: failed program was:" >&5
46816 sed 's/^/| /' conftest.$ac_ext >&5
46818 ac_cv_lib_gmp___gmpz_add_ui=no
46820 rm -f conftest.err conftest.$ac_objext \
46821 conftest$ac_exeext conftest.$ac_ext
46822 LIBS=$ac_check_lib_save_LIBS
46824 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
46825 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
46826 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
46832 if test $have_gmp = yes ; then
46837 echo "$as_me:$LINENO: checking for multiple precision support" >&5
46838 echo $ECHO_N "checking for multiple precision support... $ECHO_C" >&6
46840 ol_mp_support="none"
46841 case "$ol_with_multiple_precision" in
46843 if test "$ol_have_bignum" = "yes" ; then
46844 ol_mp_support="bignum"
46846 if test "$ol_have_gmp" = "yes" ; then
46847 ol_mp_support="gmp"
46852 if test "$ol_have_bignum" != "yes" ; then
46853 { { echo "$as_me:$LINENO: error: OpenSSL's BIGNUM not available" >&5
46854 echo "$as_me: error: OpenSSL's BIGNUM not available" >&2;}
46855 { (exit 1); exit 1; }; }
46857 ol_mp_support="bignum"
46860 if test "$ol_have_gmp" != "yes" ; then
46861 { { echo "$as_me:$LINENO: error: GMP not available" >&5
46862 echo "$as_me: error: GMP not available" >&2;}
46863 { (exit 1); exit 1; }; }
46865 ol_mp_support="gmp"
46868 if test "$ol_have_bignum" = "yes" ; then
46869 ol_mp_support="bignum"
46870 elif test "$ol_have_gmp" = "yes" ; then
46871 ol_mp_support="gmp"
46873 { { echo "$as_me:$LINENO: error: not available" >&5
46874 echo "$as_me: error: not available" >&2;}
46875 { (exit 1); exit 1; }; }
46880 case "$ol_mp_support" in
46883 cat >>confdefs.h <<\_ACEOF
46884 #define HAVE_BIGNUM 1
46890 cat >>confdefs.h <<\_ACEOF
46894 SLAPD_GMP_LIBS=-lgmp
46900 echo "$as_me:$LINENO: result: $ol_mp_support" >&5
46901 echo "${ECHO_T}$ol_mp_support" >&6
46905 echo "$as_me:$LINENO: checking long long" >&5
46906 echo $ECHO_N "checking long long... $ECHO_C" >&6
46907 if test "${ol_cv_type_long_long+set}" = set; then
46908 echo $ECHO_N "(cached) $ECHO_C" >&6
46911 cat >conftest.$ac_ext <<_ACEOF
46914 cat confdefs.h >>conftest.$ac_ext
46915 cat >>conftest.$ac_ext <<_ACEOF
46916 /* end confdefs.h. */
46926 rm -f conftest.$ac_objext
46927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46928 (eval $ac_compile) 2>conftest.er1
46930 grep -v '^ *+' conftest.er1 >conftest.err
46932 cat conftest.err >&5
46933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46934 (exit $ac_status); } &&
46935 { ac_try='test -z "$ac_c_werror_flag"
46936 || test ! -s conftest.err'
46937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46938 (eval $ac_try) 2>&5
46940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46941 (exit $ac_status); }; } &&
46942 { ac_try='test -s conftest.$ac_objext'
46943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46944 (eval $ac_try) 2>&5
46946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46947 (exit $ac_status); }; }; then
46948 ol_cv_type_long_long=yes
46950 echo "$as_me: failed program was:" >&5
46951 sed 's/^/| /' conftest.$ac_ext >&5
46953 ol_cv_type_long_long=no
46955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46957 echo "$as_me:$LINENO: result: $ol_cv_type_long_long" >&5
46958 echo "${ECHO_T}$ol_cv_type_long_long" >&6
46959 if test $ol_cv_type_long_long = yes; then
46961 cat >>confdefs.h <<\_ACEOF
46962 #define HAVE_LONG_LONG 1
46967 echo "$as_me:$LINENO: checking for mode_t" >&5
46968 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
46969 if test "${ac_cv_type_mode_t+set}" = set; then
46970 echo $ECHO_N "(cached) $ECHO_C" >&6
46972 cat >conftest.$ac_ext <<_ACEOF
46975 cat confdefs.h >>conftest.$ac_ext
46976 cat >>conftest.$ac_ext <<_ACEOF
46977 /* end confdefs.h. */
46978 $ac_includes_default
46984 if (sizeof (mode_t))
46990 rm -f conftest.$ac_objext
46991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46992 (eval $ac_compile) 2>conftest.er1
46994 grep -v '^ *+' conftest.er1 >conftest.err
46996 cat conftest.err >&5
46997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46998 (exit $ac_status); } &&
46999 { ac_try='test -z "$ac_c_werror_flag"
47000 || test ! -s conftest.err'
47001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47002 (eval $ac_try) 2>&5
47004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47005 (exit $ac_status); }; } &&
47006 { ac_try='test -s conftest.$ac_objext'
47007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47008 (eval $ac_try) 2>&5
47010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47011 (exit $ac_status); }; }; then
47012 ac_cv_type_mode_t=yes
47014 echo "$as_me: failed program was:" >&5
47015 sed 's/^/| /' conftest.$ac_ext >&5
47017 ac_cv_type_mode_t=no
47019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47021 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
47022 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
47023 if test $ac_cv_type_mode_t = yes; then
47027 cat >>confdefs.h <<_ACEOF
47033 echo "$as_me:$LINENO: checking for off_t" >&5
47034 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
47035 if test "${ac_cv_type_off_t+set}" = set; then
47036 echo $ECHO_N "(cached) $ECHO_C" >&6
47038 cat >conftest.$ac_ext <<_ACEOF
47041 cat confdefs.h >>conftest.$ac_ext
47042 cat >>conftest.$ac_ext <<_ACEOF
47043 /* end confdefs.h. */
47044 $ac_includes_default
47050 if (sizeof (off_t))
47056 rm -f conftest.$ac_objext
47057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47058 (eval $ac_compile) 2>conftest.er1
47060 grep -v '^ *+' conftest.er1 >conftest.err
47062 cat conftest.err >&5
47063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47064 (exit $ac_status); } &&
47065 { ac_try='test -z "$ac_c_werror_flag"
47066 || test ! -s conftest.err'
47067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47068 (eval $ac_try) 2>&5
47070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47071 (exit $ac_status); }; } &&
47072 { ac_try='test -s conftest.$ac_objext'
47073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47074 (eval $ac_try) 2>&5
47076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47077 (exit $ac_status); }; }; then
47078 ac_cv_type_off_t=yes
47080 echo "$as_me: failed program was:" >&5
47081 sed 's/^/| /' conftest.$ac_ext >&5
47083 ac_cv_type_off_t=no
47085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47087 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
47088 echo "${ECHO_T}$ac_cv_type_off_t" >&6
47089 if test $ac_cv_type_off_t = yes; then
47093 cat >>confdefs.h <<_ACEOF
47099 echo "$as_me:$LINENO: checking for pid_t" >&5
47100 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
47101 if test "${ac_cv_type_pid_t+set}" = set; then
47102 echo $ECHO_N "(cached) $ECHO_C" >&6
47104 cat >conftest.$ac_ext <<_ACEOF
47107 cat confdefs.h >>conftest.$ac_ext
47108 cat >>conftest.$ac_ext <<_ACEOF
47109 /* end confdefs.h. */
47110 $ac_includes_default
47116 if (sizeof (pid_t))
47122 rm -f conftest.$ac_objext
47123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47124 (eval $ac_compile) 2>conftest.er1
47126 grep -v '^ *+' conftest.er1 >conftest.err
47128 cat conftest.err >&5
47129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47130 (exit $ac_status); } &&
47131 { ac_try='test -z "$ac_c_werror_flag"
47132 || test ! -s conftest.err'
47133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47134 (eval $ac_try) 2>&5
47136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47137 (exit $ac_status); }; } &&
47138 { ac_try='test -s conftest.$ac_objext'
47139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47140 (eval $ac_try) 2>&5
47142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47143 (exit $ac_status); }; }; then
47144 ac_cv_type_pid_t=yes
47146 echo "$as_me: failed program was:" >&5
47147 sed 's/^/| /' conftest.$ac_ext >&5
47149 ac_cv_type_pid_t=no
47151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47153 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
47154 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
47155 if test $ac_cv_type_pid_t = yes; then
47159 cat >>confdefs.h <<_ACEOF
47165 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
47166 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
47167 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
47168 echo $ECHO_N "(cached) $ECHO_C" >&6
47170 cat >conftest.$ac_ext <<_ACEOF
47173 cat confdefs.h >>conftest.$ac_ext
47174 cat >>conftest.$ac_ext <<_ACEOF
47175 /* end confdefs.h. */
47176 $ac_includes_default
47180 if ((ptrdiff_t *) 0)
47182 if (sizeof (ptrdiff_t))
47188 rm -f conftest.$ac_objext
47189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47190 (eval $ac_compile) 2>conftest.er1
47192 grep -v '^ *+' conftest.er1 >conftest.err
47194 cat conftest.err >&5
47195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47196 (exit $ac_status); } &&
47197 { ac_try='test -z "$ac_c_werror_flag"
47198 || test ! -s conftest.err'
47199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47200 (eval $ac_try) 2>&5
47202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47203 (exit $ac_status); }; } &&
47204 { ac_try='test -s conftest.$ac_objext'
47205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47206 (eval $ac_try) 2>&5
47208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47209 (exit $ac_status); }; }; then
47210 ac_cv_type_ptrdiff_t=yes
47212 echo "$as_me: failed program was:" >&5
47213 sed 's/^/| /' conftest.$ac_ext >&5
47215 ac_cv_type_ptrdiff_t=no
47217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47219 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
47220 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
47221 if test $ac_cv_type_ptrdiff_t = yes; then
47223 cat >>confdefs.h <<_ACEOF
47224 #define HAVE_PTRDIFF_T 1
47230 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
47231 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
47232 if test "${ac_cv_type_signal+set}" = set; then
47233 echo $ECHO_N "(cached) $ECHO_C" >&6
47235 cat >conftest.$ac_ext <<_ACEOF
47238 cat confdefs.h >>conftest.$ac_ext
47239 cat >>conftest.$ac_ext <<_ACEOF
47240 /* end confdefs.h. */
47241 #include <sys/types.h>
47242 #include <signal.h>
47247 extern "C" void (*signal (int, void (*)(int)))(int);
47249 void (*signal ()) ();
47260 rm -f conftest.$ac_objext
47261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47262 (eval $ac_compile) 2>conftest.er1
47264 grep -v '^ *+' conftest.er1 >conftest.err
47266 cat conftest.err >&5
47267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47268 (exit $ac_status); } &&
47269 { ac_try='test -z "$ac_c_werror_flag"
47270 || test ! -s conftest.err'
47271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47272 (eval $ac_try) 2>&5
47274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47275 (exit $ac_status); }; } &&
47276 { ac_try='test -s conftest.$ac_objext'
47277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47278 (eval $ac_try) 2>&5
47280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47281 (exit $ac_status); }; }; then
47282 ac_cv_type_signal=void
47284 echo "$as_me: failed program was:" >&5
47285 sed 's/^/| /' conftest.$ac_ext >&5
47287 ac_cv_type_signal=int
47289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47291 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
47292 echo "${ECHO_T}$ac_cv_type_signal" >&6
47294 cat >>confdefs.h <<_ACEOF
47295 #define RETSIGTYPE $ac_cv_type_signal
47299 echo "$as_me:$LINENO: checking for size_t" >&5
47300 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
47301 if test "${ac_cv_type_size_t+set}" = set; then
47302 echo $ECHO_N "(cached) $ECHO_C" >&6
47304 cat >conftest.$ac_ext <<_ACEOF
47307 cat confdefs.h >>conftest.$ac_ext
47308 cat >>conftest.$ac_ext <<_ACEOF
47309 /* end confdefs.h. */
47310 $ac_includes_default
47316 if (sizeof (size_t))
47322 rm -f conftest.$ac_objext
47323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47324 (eval $ac_compile) 2>conftest.er1
47326 grep -v '^ *+' conftest.er1 >conftest.err
47328 cat conftest.err >&5
47329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47330 (exit $ac_status); } &&
47331 { ac_try='test -z "$ac_c_werror_flag"
47332 || test ! -s conftest.err'
47333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47334 (eval $ac_try) 2>&5
47336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47337 (exit $ac_status); }; } &&
47338 { ac_try='test -s conftest.$ac_objext'
47339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47340 (eval $ac_try) 2>&5
47342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47343 (exit $ac_status); }; }; then
47344 ac_cv_type_size_t=yes
47346 echo "$as_me: failed program was:" >&5
47347 sed 's/^/| /' conftest.$ac_ext >&5
47349 ac_cv_type_size_t=no
47351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47353 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
47354 echo "${ECHO_T}$ac_cv_type_size_t" >&6
47355 if test $ac_cv_type_size_t = yes; then
47359 cat >>confdefs.h <<_ACEOF
47360 #define size_t unsigned
47366 echo "$as_me:$LINENO: checking for ssize_t" >&5
47367 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
47368 if test "${ac_cv_type_ssize_t+set}" = set; then
47369 echo $ECHO_N "(cached) $ECHO_C" >&6
47371 cat >conftest.$ac_ext <<_ACEOF
47374 cat confdefs.h >>conftest.$ac_ext
47375 cat >>conftest.$ac_ext <<_ACEOF
47376 /* end confdefs.h. */
47377 $ac_includes_default
47383 if (sizeof (ssize_t))
47389 rm -f conftest.$ac_objext
47390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47391 (eval $ac_compile) 2>conftest.er1
47393 grep -v '^ *+' conftest.er1 >conftest.err
47395 cat conftest.err >&5
47396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47397 (exit $ac_status); } &&
47398 { ac_try='test -z "$ac_c_werror_flag"
47399 || test ! -s conftest.err'
47400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47401 (eval $ac_try) 2>&5
47403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47404 (exit $ac_status); }; } &&
47405 { ac_try='test -s conftest.$ac_objext'
47406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47407 (eval $ac_try) 2>&5
47409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47410 (exit $ac_status); }; }; then
47411 ac_cv_type_ssize_t=yes
47413 echo "$as_me: failed program was:" >&5
47414 sed 's/^/| /' conftest.$ac_ext >&5
47416 ac_cv_type_ssize_t=no
47418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47420 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
47421 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
47422 if test $ac_cv_type_ssize_t = yes; then
47426 cat >>confdefs.h <<_ACEOF
47427 #define ssize_t signed int
47432 echo "$as_me:$LINENO: checking for caddr_t" >&5
47433 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
47434 if test "${ac_cv_type_caddr_t+set}" = set; then
47435 echo $ECHO_N "(cached) $ECHO_C" >&6
47437 cat >conftest.$ac_ext <<_ACEOF
47440 cat confdefs.h >>conftest.$ac_ext
47441 cat >>conftest.$ac_ext <<_ACEOF
47442 /* end confdefs.h. */
47443 $ac_includes_default
47449 if (sizeof (caddr_t))
47455 rm -f conftest.$ac_objext
47456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47457 (eval $ac_compile) 2>conftest.er1
47459 grep -v '^ *+' conftest.er1 >conftest.err
47461 cat conftest.err >&5
47462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47463 (exit $ac_status); } &&
47464 { ac_try='test -z "$ac_c_werror_flag"
47465 || test ! -s conftest.err'
47466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47467 (eval $ac_try) 2>&5
47469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47470 (exit $ac_status); }; } &&
47471 { ac_try='test -s conftest.$ac_objext'
47472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47473 (eval $ac_try) 2>&5
47475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47476 (exit $ac_status); }; }; then
47477 ac_cv_type_caddr_t=yes
47479 echo "$as_me: failed program was:" >&5
47480 sed 's/^/| /' conftest.$ac_ext >&5
47482 ac_cv_type_caddr_t=no
47484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47486 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
47487 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
47488 if test $ac_cv_type_caddr_t = yes; then
47492 cat >>confdefs.h <<_ACEOF
47493 #define caddr_t char *
47499 echo "$as_me:$LINENO: checking for socklen_t" >&5
47500 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
47501 if test "${ol_cv_type_socklen_t+set}" = set; then
47502 echo $ECHO_N "(cached) $ECHO_C" >&6
47504 cat >conftest.$ac_ext <<_ACEOF
47507 cat confdefs.h >>conftest.$ac_ext
47508 cat >>conftest.$ac_ext <<_ACEOF
47509 /* end confdefs.h. */
47511 #ifdef HAVE_SYS_TYPES_H
47512 #include <sys/types.h>
47514 #ifdef HAVE_SYS_SOCKET_H
47515 #include <sys/socket.h>
47526 rm -f conftest.$ac_objext
47527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47528 (eval $ac_compile) 2>conftest.er1
47530 grep -v '^ *+' conftest.er1 >conftest.err
47532 cat conftest.err >&5
47533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47534 (exit $ac_status); } &&
47535 { ac_try='test -z "$ac_c_werror_flag"
47536 || test ! -s conftest.err'
47537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47538 (eval $ac_try) 2>&5
47540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47541 (exit $ac_status); }; } &&
47542 { ac_try='test -s conftest.$ac_objext'
47543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47544 (eval $ac_try) 2>&5
47546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47547 (exit $ac_status); }; }; then
47548 ol_cv_type_socklen_t=yes
47550 echo "$as_me: failed program was:" >&5
47551 sed 's/^/| /' conftest.$ac_ext >&5
47553 ol_cv_type_socklen_t=no
47555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47557 echo "$as_me:$LINENO: result: $ol_cv_type_socklen_t" >&5
47558 echo "${ECHO_T}$ol_cv_type_socklen_t" >&6
47559 if test $ol_cv_type_socklen_t = no; then
47561 cat >>confdefs.h <<\_ACEOF
47562 #define socklen_t int
47568 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
47569 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
47570 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
47571 echo $ECHO_N "(cached) $ECHO_C" >&6
47573 cat >conftest.$ac_ext <<_ACEOF
47576 cat confdefs.h >>conftest.$ac_ext
47577 cat >>conftest.$ac_ext <<_ACEOF
47578 /* end confdefs.h. */
47579 $ac_includes_default
47583 static struct stat ac_aggr;
47584 if (ac_aggr.st_blksize)
47590 rm -f conftest.$ac_objext
47591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47592 (eval $ac_compile) 2>conftest.er1
47594 grep -v '^ *+' conftest.er1 >conftest.err
47596 cat conftest.err >&5
47597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47598 (exit $ac_status); } &&
47599 { ac_try='test -z "$ac_c_werror_flag"
47600 || test ! -s conftest.err'
47601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47602 (eval $ac_try) 2>&5
47604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47605 (exit $ac_status); }; } &&
47606 { ac_try='test -s conftest.$ac_objext'
47607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47608 (eval $ac_try) 2>&5
47610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47611 (exit $ac_status); }; }; then
47612 ac_cv_member_struct_stat_st_blksize=yes
47614 echo "$as_me: failed program was:" >&5
47615 sed 's/^/| /' conftest.$ac_ext >&5
47617 cat >conftest.$ac_ext <<_ACEOF
47620 cat confdefs.h >>conftest.$ac_ext
47621 cat >>conftest.$ac_ext <<_ACEOF
47622 /* end confdefs.h. */
47623 $ac_includes_default
47627 static struct stat ac_aggr;
47628 if (sizeof ac_aggr.st_blksize)
47634 rm -f conftest.$ac_objext
47635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47636 (eval $ac_compile) 2>conftest.er1
47638 grep -v '^ *+' conftest.er1 >conftest.err
47640 cat conftest.err >&5
47641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47642 (exit $ac_status); } &&
47643 { ac_try='test -z "$ac_c_werror_flag"
47644 || test ! -s conftest.err'
47645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47646 (eval $ac_try) 2>&5
47648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47649 (exit $ac_status); }; } &&
47650 { ac_try='test -s conftest.$ac_objext'
47651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47652 (eval $ac_try) 2>&5
47654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47655 (exit $ac_status); }; }; then
47656 ac_cv_member_struct_stat_st_blksize=yes
47658 echo "$as_me: failed program was:" >&5
47659 sed 's/^/| /' conftest.$ac_ext >&5
47661 ac_cv_member_struct_stat_st_blksize=no
47663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47667 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
47668 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
47669 if test $ac_cv_member_struct_stat_st_blksize = yes; then
47671 cat >>confdefs.h <<_ACEOF
47672 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
47676 cat >>confdefs.h <<\_ACEOF
47677 #define HAVE_ST_BLKSIZE 1
47683 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
47684 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
47685 if test "${ac_cv_header_time+set}" = set; then
47686 echo $ECHO_N "(cached) $ECHO_C" >&6
47688 cat >conftest.$ac_ext <<_ACEOF
47691 cat confdefs.h >>conftest.$ac_ext
47692 cat >>conftest.$ac_ext <<_ACEOF
47693 /* end confdefs.h. */
47694 #include <sys/types.h>
47695 #include <sys/time.h>
47701 if ((struct tm *) 0)
47707 rm -f conftest.$ac_objext
47708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47709 (eval $ac_compile) 2>conftest.er1
47711 grep -v '^ *+' conftest.er1 >conftest.err
47713 cat conftest.err >&5
47714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47715 (exit $ac_status); } &&
47716 { ac_try='test -z "$ac_c_werror_flag"
47717 || test ! -s conftest.err'
47718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47719 (eval $ac_try) 2>&5
47721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47722 (exit $ac_status); }; } &&
47723 { ac_try='test -s conftest.$ac_objext'
47724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47725 (eval $ac_try) 2>&5
47727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47728 (exit $ac_status); }; }; then
47729 ac_cv_header_time=yes
47731 echo "$as_me: failed program was:" >&5
47732 sed 's/^/| /' conftest.$ac_ext >&5
47734 ac_cv_header_time=no
47736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47738 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
47739 echo "${ECHO_T}$ac_cv_header_time" >&6
47740 if test $ac_cv_header_time = yes; then
47742 cat >>confdefs.h <<\_ACEOF
47743 #define TIME_WITH_SYS_TIME 1
47748 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
47749 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
47750 if test "${ac_cv_struct_tm+set}" = set; then
47751 echo $ECHO_N "(cached) $ECHO_C" >&6
47753 cat >conftest.$ac_ext <<_ACEOF
47756 cat confdefs.h >>conftest.$ac_ext
47757 cat >>conftest.$ac_ext <<_ACEOF
47758 /* end confdefs.h. */
47759 #include <sys/types.h>
47765 struct tm *tp; tp->tm_sec;
47770 rm -f conftest.$ac_objext
47771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47772 (eval $ac_compile) 2>conftest.er1
47774 grep -v '^ *+' conftest.er1 >conftest.err
47776 cat conftest.err >&5
47777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47778 (exit $ac_status); } &&
47779 { ac_try='test -z "$ac_c_werror_flag"
47780 || test ! -s conftest.err'
47781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47782 (eval $ac_try) 2>&5
47784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47785 (exit $ac_status); }; } &&
47786 { ac_try='test -s conftest.$ac_objext'
47787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47788 (eval $ac_try) 2>&5
47790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47791 (exit $ac_status); }; }; then
47792 ac_cv_struct_tm=time.h
47794 echo "$as_me: failed program was:" >&5
47795 sed 's/^/| /' conftest.$ac_ext >&5
47797 ac_cv_struct_tm=sys/time.h
47799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47801 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
47802 echo "${ECHO_T}$ac_cv_struct_tm" >&6
47803 if test $ac_cv_struct_tm = sys/time.h; then
47805 cat >>confdefs.h <<\_ACEOF
47806 #define TM_IN_SYS_TIME 1
47811 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
47812 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
47813 if test "${ac_cv_type_uid_t+set}" = set; then
47814 echo $ECHO_N "(cached) $ECHO_C" >&6
47816 cat >conftest.$ac_ext <<_ACEOF
47819 cat confdefs.h >>conftest.$ac_ext
47820 cat >>conftest.$ac_ext <<_ACEOF
47821 /* end confdefs.h. */
47822 #include <sys/types.h>
47825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47826 $EGREP "uid_t" >/dev/null 2>&1; then
47827 ac_cv_type_uid_t=yes
47829 ac_cv_type_uid_t=no
47834 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
47835 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
47836 if test $ac_cv_type_uid_t = no; then
47838 cat >>confdefs.h <<\_ACEOF
47843 cat >>confdefs.h <<\_ACEOF
47849 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
47850 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
47851 if test "${ol_cv_type_sig_atomic_t+set}" = set; then
47852 echo $ECHO_N "(cached) $ECHO_C" >&6
47854 cat >conftest.$ac_ext <<_ACEOF
47857 cat confdefs.h >>conftest.$ac_ext
47858 cat >>conftest.$ac_ext <<_ACEOF
47859 /* end confdefs.h. */
47860 #include <signal.h>
47864 sig_atomic_t atomic;
47869 rm -f conftest.$ac_objext
47870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47871 (eval $ac_compile) 2>conftest.er1
47873 grep -v '^ *+' conftest.er1 >conftest.err
47875 cat conftest.err >&5
47876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47877 (exit $ac_status); } &&
47878 { ac_try='test -z "$ac_c_werror_flag"
47879 || test ! -s conftest.err'
47880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47881 (eval $ac_try) 2>&5
47883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47884 (exit $ac_status); }; } &&
47885 { ac_try='test -s conftest.$ac_objext'
47886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47887 (eval $ac_try) 2>&5
47889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47890 (exit $ac_status); }; }; then
47891 ol_cv_type_sig_atomic_t=yes
47893 echo "$as_me: failed program was:" >&5
47894 sed 's/^/| /' conftest.$ac_ext >&5
47896 ol_cv_type_sig_atomic_t=no
47898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47900 echo "$as_me:$LINENO: result: $ol_cv_type_sig_atomic_t" >&5
47901 echo "${ECHO_T}$ol_cv_type_sig_atomic_t" >&6
47902 if test $ol_cv_type_sig_atomic_t = no; then
47904 cat >>confdefs.h <<\_ACEOF
47905 #define sig_atomic_t int
47912 # test for pw_gecos in struct passwd
47913 echo "$as_me:$LINENO: checking struct passwd for pw_gecos" >&5
47914 echo $ECHO_N "checking struct passwd for pw_gecos... $ECHO_C" >&6
47915 if test "${ol_cv_struct_passwd_pw_gecos+set}" = set; then
47916 echo $ECHO_N "(cached) $ECHO_C" >&6
47919 cat >conftest.$ac_ext <<_ACEOF
47922 cat confdefs.h >>conftest.$ac_ext
47923 cat >>conftest.$ac_ext <<_ACEOF
47924 /* end confdefs.h. */
47931 pwd.pw_gecos = pwd.pw_name;
47937 rm -f conftest.$ac_objext
47938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47939 (eval $ac_compile) 2>conftest.er1
47941 grep -v '^ *+' conftest.er1 >conftest.err
47943 cat conftest.err >&5
47944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47945 (exit $ac_status); } &&
47946 { ac_try='test -z "$ac_c_werror_flag"
47947 || test ! -s conftest.err'
47948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47949 (eval $ac_try) 2>&5
47951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47952 (exit $ac_status); }; } &&
47953 { ac_try='test -s conftest.$ac_objext'
47954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47955 (eval $ac_try) 2>&5
47957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47958 (exit $ac_status); }; }; then
47959 ol_cv_struct_passwd_pw_gecos=yes
47961 echo "$as_me: failed program was:" >&5
47962 sed 's/^/| /' conftest.$ac_ext >&5
47964 ol_cv_struct_passwd_pw_gecos=no
47966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47968 echo "$as_me:$LINENO: result: $ol_cv_struct_passwd_pw_gecos" >&5
47969 echo "${ECHO_T}$ol_cv_struct_passwd_pw_gecos" >&6
47970 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
47972 cat >>confdefs.h <<\_ACEOF
47973 #define HAVE_PW_GECOS 1
47978 # test for pw_passwd in struct passwd
47979 echo "$as_me:$LINENO: checking struct passwd for pw_passwd" >&5
47980 echo $ECHO_N "checking struct passwd for pw_passwd... $ECHO_C" >&6
47981 if test "${ol_cv_struct_passwd_pw_passwd+set}" = set; then
47982 echo $ECHO_N "(cached) $ECHO_C" >&6
47985 cat >conftest.$ac_ext <<_ACEOF
47988 cat confdefs.h >>conftest.$ac_ext
47989 cat >>conftest.$ac_ext <<_ACEOF
47990 /* end confdefs.h. */
47997 pwd.pw_passwd = pwd.pw_name;
48003 rm -f conftest.$ac_objext
48004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48005 (eval $ac_compile) 2>conftest.er1
48007 grep -v '^ *+' conftest.er1 >conftest.err
48009 cat conftest.err >&5
48010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48011 (exit $ac_status); } &&
48012 { ac_try='test -z "$ac_c_werror_flag"
48013 || test ! -s conftest.err'
48014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48015 (eval $ac_try) 2>&5
48017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48018 (exit $ac_status); }; } &&
48019 { ac_try='test -s conftest.$ac_objext'
48020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48021 (eval $ac_try) 2>&5
48023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48024 (exit $ac_status); }; }; then
48025 ol_cv_struct_passwd_pw_passwd=yes
48027 echo "$as_me: failed program was:" >&5
48028 sed 's/^/| /' conftest.$ac_ext >&5
48030 ol_cv_struct_passwd_pw_passwd=no
48032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48034 echo "$as_me:$LINENO: result: $ol_cv_struct_passwd_pw_passwd" >&5
48035 echo "${ECHO_T}$ol_cv_struct_passwd_pw_passwd" >&6
48036 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
48038 cat >>confdefs.h <<\_ACEOF
48039 #define HAVE_PW_PASSWD 1
48045 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
48046 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
48047 if test "${ol_cv_c_upper_lower+set}" = set; then
48048 echo $ECHO_N "(cached) $ECHO_C" >&6
48051 if test "$cross_compiling" = yes; then
48052 ol_cv_c_upper_lower=safe
48054 cat >conftest.$ac_ext <<_ACEOF
48057 cat confdefs.h >>conftest.$ac_ext
48058 cat >>conftest.$ac_ext <<_ACEOF
48059 /* end confdefs.h. */
48064 if ('C' == toupper('C'))
48070 rm -f conftest$ac_exeext
48071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48072 (eval $ac_link) 2>&5
48074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48075 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48077 (eval $ac_try) 2>&5
48079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48080 (exit $ac_status); }; }; then
48081 ol_cv_c_upper_lower=no
48083 echo "$as_me: program exited with status $ac_status" >&5
48084 echo "$as_me: failed program was:" >&5
48085 sed 's/^/| /' conftest.$ac_ext >&5
48087 ( exit $ac_status )
48088 ol_cv_c_upper_lower=yes
48090 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48093 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
48094 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
48095 if test $ol_cv_c_upper_lower != no ; then
48097 cat >>confdefs.h <<\_ACEOF
48098 #define C_UPPER_LOWER 1
48103 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
48104 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
48105 if test "${ac_cv_c_const+set}" = set; then
48106 echo $ECHO_N "(cached) $ECHO_C" >&6
48108 cat >conftest.$ac_ext <<_ACEOF
48111 cat confdefs.h >>conftest.$ac_ext
48112 cat >>conftest.$ac_ext <<_ACEOF
48113 /* end confdefs.h. */
48118 /* FIXME: Include the comments suggested by Paul. */
48119 #ifndef __cplusplus
48120 /* Ultrix mips cc rejects this. */
48121 typedef int charset[2];
48123 /* SunOS 4.1.1 cc rejects this. */
48124 char const *const *ccp;
48126 /* NEC SVR4.0.2 mips cc rejects this. */
48127 struct point {int x, y;};
48128 static struct point const zero = {0,0};
48129 /* AIX XL C 1.02.0.0 rejects this.
48130 It does not let you subtract one const X* pointer from another in
48131 an arm of an if-expression whose if-part is not a constant
48133 const char *g = "string";
48134 ccp = &g + (g ? g-g : 0);
48135 /* HPUX 7.0 cc rejects these. */
48138 ccp = (char const *const *) p;
48139 { /* SCO 3.2v4 cc rejects this. */
48141 char const *s = 0 ? (char *) 0 : (char const *) 0;
48145 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
48146 int x[] = {25, 17};
48147 const int *foo = &x[0];
48150 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
48151 typedef const int *iptr;
48155 { /* AIX XL C 1.02.0.0 rejects this saying
48156 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
48157 struct s { int j; const int *ap[3]; };
48158 struct s *b; b->j = 5;
48160 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
48161 const int foo = 10;
48169 rm -f conftest.$ac_objext
48170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48171 (eval $ac_compile) 2>conftest.er1
48173 grep -v '^ *+' conftest.er1 >conftest.err
48175 cat conftest.err >&5
48176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48177 (exit $ac_status); } &&
48178 { ac_try='test -z "$ac_c_werror_flag"
48179 || test ! -s conftest.err'
48180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48181 (eval $ac_try) 2>&5
48183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48184 (exit $ac_status); }; } &&
48185 { ac_try='test -s conftest.$ac_objext'
48186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48187 (eval $ac_try) 2>&5
48189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48190 (exit $ac_status); }; }; then
48193 echo "$as_me: failed program was:" >&5
48194 sed 's/^/| /' conftest.$ac_ext >&5
48198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48200 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
48201 echo "${ECHO_T}$ac_cv_c_const" >&6
48202 if test $ac_cv_c_const = no; then
48204 cat >>confdefs.h <<\_ACEOF
48210 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
48211 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
48212 if test "${ol_cv_c_volatile+set}" = set; then
48213 echo $ECHO_N "(cached) $ECHO_C" >&6
48215 cat >conftest.$ac_ext <<_ACEOF
48218 cat confdefs.h >>conftest.$ac_ext
48219 cat >>conftest.$ac_ext <<_ACEOF
48220 /* end confdefs.h. */
48225 volatile int a; int * volatile b = x ? &y : &z;
48226 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
48232 rm -f conftest.$ac_objext
48233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48234 (eval $ac_compile) 2>conftest.er1
48236 grep -v '^ *+' conftest.er1 >conftest.err
48238 cat conftest.err >&5
48239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48240 (exit $ac_status); } &&
48241 { ac_try='test -z "$ac_c_werror_flag"
48242 || test ! -s conftest.err'
48243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48244 (eval $ac_try) 2>&5
48246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48247 (exit $ac_status); }; } &&
48248 { ac_try='test -s conftest.$ac_objext'
48249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48250 (eval $ac_try) 2>&5
48252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48253 (exit $ac_status); }; }; then
48254 ol_cv_c_volatile=yes
48256 echo "$as_me: failed program was:" >&5
48257 sed 's/^/| /' conftest.$ac_ext >&5
48259 ol_cv_c_volatile=no
48261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48263 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
48264 echo "${ECHO_T}$ol_cv_c_volatile" >&6
48265 if test $ol_cv_c_volatile = yes; then
48269 cat >>confdefs.h <<\_ACEOF
48276 if test $cross_compiling = yes ; then
48277 { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
48278 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
48280 cat >>confdefs.h <<\_ACEOF
48281 #define CROSS_COMPILING 1
48285 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
48286 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
48287 if test "${ac_cv_c_bigendian+set}" = set; then
48288 echo $ECHO_N "(cached) $ECHO_C" >&6
48290 # See if sys/param.h defines the BYTE_ORDER macro.
48291 cat >conftest.$ac_ext <<_ACEOF
48294 cat confdefs.h >>conftest.$ac_ext
48295 cat >>conftest.$ac_ext <<_ACEOF
48296 /* end confdefs.h. */
48297 #include <sys/types.h>
48298 #include <sys/param.h>
48303 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
48304 bogus endian macros
48311 rm -f conftest.$ac_objext
48312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48313 (eval $ac_compile) 2>conftest.er1
48315 grep -v '^ *+' conftest.er1 >conftest.err
48317 cat conftest.err >&5
48318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48319 (exit $ac_status); } &&
48320 { ac_try='test -z "$ac_c_werror_flag"
48321 || test ! -s conftest.err'
48322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48323 (eval $ac_try) 2>&5
48325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48326 (exit $ac_status); }; } &&
48327 { ac_try='test -s conftest.$ac_objext'
48328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48329 (eval $ac_try) 2>&5
48331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48332 (exit $ac_status); }; }; then
48333 # It does; now see whether it defined to BIG_ENDIAN or not.
48334 cat >conftest.$ac_ext <<_ACEOF
48337 cat confdefs.h >>conftest.$ac_ext
48338 cat >>conftest.$ac_ext <<_ACEOF
48339 /* end confdefs.h. */
48340 #include <sys/types.h>
48341 #include <sys/param.h>
48346 #if BYTE_ORDER != BIG_ENDIAN
48354 rm -f conftest.$ac_objext
48355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48356 (eval $ac_compile) 2>conftest.er1
48358 grep -v '^ *+' conftest.er1 >conftest.err
48360 cat conftest.err >&5
48361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48362 (exit $ac_status); } &&
48363 { ac_try='test -z "$ac_c_werror_flag"
48364 || test ! -s conftest.err'
48365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48366 (eval $ac_try) 2>&5
48368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48369 (exit $ac_status); }; } &&
48370 { ac_try='test -s conftest.$ac_objext'
48371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48372 (eval $ac_try) 2>&5
48374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48375 (exit $ac_status); }; }; then
48376 ac_cv_c_bigendian=yes
48378 echo "$as_me: failed program was:" >&5
48379 sed 's/^/| /' conftest.$ac_ext >&5
48381 ac_cv_c_bigendian=no
48383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48385 echo "$as_me: failed program was:" >&5
48386 sed 's/^/| /' conftest.$ac_ext >&5
48388 # It does not; compile a test program.
48389 if test "$cross_compiling" = yes; then
48390 # try to guess the endianness by grepping values into an object file
48391 ac_cv_c_bigendian=unknown
48392 cat >conftest.$ac_ext <<_ACEOF
48395 cat confdefs.h >>conftest.$ac_ext
48396 cat >>conftest.$ac_ext <<_ACEOF
48397 /* end confdefs.h. */
48398 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
48399 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
48400 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
48401 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
48402 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
48403 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
48407 _ascii (); _ebcdic ();
48412 rm -f conftest.$ac_objext
48413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48414 (eval $ac_compile) 2>conftest.er1
48416 grep -v '^ *+' conftest.er1 >conftest.err
48418 cat conftest.err >&5
48419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48420 (exit $ac_status); } &&
48421 { ac_try='test -z "$ac_c_werror_flag"
48422 || test ! -s conftest.err'
48423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48424 (eval $ac_try) 2>&5
48426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48427 (exit $ac_status); }; } &&
48428 { ac_try='test -s conftest.$ac_objext'
48429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48430 (eval $ac_try) 2>&5
48432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48433 (exit $ac_status); }; }; then
48434 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
48435 ac_cv_c_bigendian=yes
48437 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
48438 if test "$ac_cv_c_bigendian" = unknown; then
48439 ac_cv_c_bigendian=no
48441 # finding both strings is unlikely to happen, but who knows?
48442 ac_cv_c_bigendian=unknown
48446 echo "$as_me: failed program was:" >&5
48447 sed 's/^/| /' conftest.$ac_ext >&5
48450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48452 cat >conftest.$ac_ext <<_ACEOF
48455 cat confdefs.h >>conftest.$ac_ext
48456 cat >>conftest.$ac_ext <<_ACEOF
48457 /* end confdefs.h. */
48461 /* Are we little or big endian? From Harbison&Steele. */
48465 char c[sizeof (long)];
48468 exit (u.c[sizeof (long) - 1] == 1);
48471 rm -f conftest$ac_exeext
48472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48473 (eval $ac_link) 2>&5
48475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48476 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48478 (eval $ac_try) 2>&5
48480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48481 (exit $ac_status); }; }; then
48482 ac_cv_c_bigendian=no
48484 echo "$as_me: program exited with status $ac_status" >&5
48485 echo "$as_me: failed program was:" >&5
48486 sed 's/^/| /' conftest.$ac_ext >&5
48488 ( exit $ac_status )
48489 ac_cv_c_bigendian=yes
48491 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48496 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
48497 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
48498 case $ac_cv_c_bigendian in
48501 cat >>confdefs.h <<\_ACEOF
48502 #define WORDS_BIGENDIAN 1
48508 { { echo "$as_me:$LINENO: error: unknown endianness
48509 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
48510 echo "$as_me: error: unknown endianness
48511 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
48512 { (exit 1); exit 1; }; } ;;
48517 echo "$as_me:$LINENO: checking size of short" >&5
48518 echo $ECHO_N "checking size of short... $ECHO_C" >&6
48519 if test "${ac_cv_sizeof_short+set}" = set; then
48520 echo $ECHO_N "(cached) $ECHO_C" >&6
48522 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
48523 cat >conftest.$ac_ext <<_ACEOF
48526 cat confdefs.h >>conftest.$ac_ext
48527 cat >>conftest.$ac_ext <<_ACEOF
48528 /* end confdefs.h. */
48529 #include "confdefs.h"
48530 #include <stdlib.h>
48531 #include <sys/types.h>
48537 switch (0) case 0: case (sizeof (short) == $ac_size):;
48542 rm -f conftest.$ac_objext
48543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48544 (eval $ac_compile) 2>conftest.er1
48546 grep -v '^ *+' conftest.er1 >conftest.err
48548 cat conftest.err >&5
48549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48550 (exit $ac_status); } &&
48551 { ac_try='test -z "$ac_c_werror_flag"
48552 || test ! -s conftest.err'
48553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48554 (eval $ac_try) 2>&5
48556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48557 (exit $ac_status); }; } &&
48558 { ac_try='test -s conftest.$ac_objext'
48559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48560 (eval $ac_try) 2>&5
48562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48563 (exit $ac_status); }; }; then
48564 ac_cv_sizeof_short=$ac_size
48566 echo "$as_me: failed program was:" >&5
48567 sed 's/^/| /' conftest.$ac_ext >&5
48570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48571 if test x$ac_cv_sizeof_short != x ; then break; fi
48576 if test x$ac_cv_sizeof_short = x ; then
48577 { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
48578 echo "$as_me: error: cannot determine a size for short" >&2;}
48579 { (exit 1); exit 1; }; }
48581 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
48582 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
48584 cat >>confdefs.h <<_ACEOF
48585 #define SIZEOF_SHORT $ac_cv_sizeof_short
48589 echo "$as_me:$LINENO: checking size of int" >&5
48590 echo $ECHO_N "checking size of int... $ECHO_C" >&6
48591 if test "${ac_cv_sizeof_int+set}" = set; then
48592 echo $ECHO_N "(cached) $ECHO_C" >&6
48594 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
48595 cat >conftest.$ac_ext <<_ACEOF
48598 cat confdefs.h >>conftest.$ac_ext
48599 cat >>conftest.$ac_ext <<_ACEOF
48600 /* end confdefs.h. */
48601 #include "confdefs.h"
48602 #include <stdlib.h>
48603 #include <sys/types.h>
48609 switch (0) case 0: case (sizeof (int) == $ac_size):;
48614 rm -f conftest.$ac_objext
48615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48616 (eval $ac_compile) 2>conftest.er1
48618 grep -v '^ *+' conftest.er1 >conftest.err
48620 cat conftest.err >&5
48621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48622 (exit $ac_status); } &&
48623 { ac_try='test -z "$ac_c_werror_flag"
48624 || test ! -s conftest.err'
48625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48626 (eval $ac_try) 2>&5
48628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48629 (exit $ac_status); }; } &&
48630 { ac_try='test -s conftest.$ac_objext'
48631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48632 (eval $ac_try) 2>&5
48634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48635 (exit $ac_status); }; }; then
48636 ac_cv_sizeof_int=$ac_size
48638 echo "$as_me: failed program was:" >&5
48639 sed 's/^/| /' conftest.$ac_ext >&5
48642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48643 if test x$ac_cv_sizeof_int != x ; then break; fi
48648 if test x$ac_cv_sizeof_int = x ; then
48649 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
48650 echo "$as_me: error: cannot determine a size for int" >&2;}
48651 { (exit 1); exit 1; }; }
48653 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
48654 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
48656 cat >>confdefs.h <<_ACEOF
48657 #define SIZEOF_INT $ac_cv_sizeof_int
48661 echo "$as_me:$LINENO: checking size of long" >&5
48662 echo $ECHO_N "checking size of long... $ECHO_C" >&6
48663 if test "${ac_cv_sizeof_long+set}" = set; then
48664 echo $ECHO_N "(cached) $ECHO_C" >&6
48666 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
48667 cat >conftest.$ac_ext <<_ACEOF
48670 cat confdefs.h >>conftest.$ac_ext
48671 cat >>conftest.$ac_ext <<_ACEOF
48672 /* end confdefs.h. */
48673 #include "confdefs.h"
48674 #include <stdlib.h>
48675 #include <sys/types.h>
48681 switch (0) case 0: case (sizeof (long) == $ac_size):;
48686 rm -f conftest.$ac_objext
48687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48688 (eval $ac_compile) 2>conftest.er1
48690 grep -v '^ *+' conftest.er1 >conftest.err
48692 cat conftest.err >&5
48693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48694 (exit $ac_status); } &&
48695 { ac_try='test -z "$ac_c_werror_flag"
48696 || test ! -s conftest.err'
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); }; } &&
48702 { ac_try='test -s conftest.$ac_objext'
48703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48704 (eval $ac_try) 2>&5
48706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48707 (exit $ac_status); }; }; then
48708 ac_cv_sizeof_long=$ac_size
48710 echo "$as_me: failed program was:" >&5
48711 sed 's/^/| /' conftest.$ac_ext >&5
48714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48715 if test x$ac_cv_sizeof_long != x ; then break; fi
48720 if test x$ac_cv_sizeof_long = x ; then
48721 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
48722 echo "$as_me: error: cannot determine a size for long" >&2;}
48723 { (exit 1); exit 1; }; }
48725 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
48726 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
48728 cat >>confdefs.h <<_ACEOF
48729 #define SIZEOF_LONG $ac_cv_sizeof_long
48733 echo "$as_me:$LINENO: checking size of wchar_t" >&5
48734 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
48735 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
48736 echo $ECHO_N "(cached) $ECHO_C" >&6
48738 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
48739 cat >conftest.$ac_ext <<_ACEOF
48742 cat confdefs.h >>conftest.$ac_ext
48743 cat >>conftest.$ac_ext <<_ACEOF
48744 /* end confdefs.h. */
48745 #include "confdefs.h"
48746 #include <stdlib.h>
48747 #include <sys/types.h>
48753 switch (0) case 0: case (sizeof (wchar_t) == $ac_size):;
48758 rm -f conftest.$ac_objext
48759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48760 (eval $ac_compile) 2>conftest.er1
48762 grep -v '^ *+' conftest.er1 >conftest.err
48764 cat conftest.err >&5
48765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48766 (exit $ac_status); } &&
48767 { ac_try='test -z "$ac_c_werror_flag"
48768 || test ! -s conftest.err'
48769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48770 (eval $ac_try) 2>&5
48772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48773 (exit $ac_status); }; } &&
48774 { ac_try='test -s conftest.$ac_objext'
48775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48776 (eval $ac_try) 2>&5
48778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48779 (exit $ac_status); }; }; then
48780 ac_cv_sizeof_wchar_t=$ac_size
48782 echo "$as_me: failed program was:" >&5
48783 sed 's/^/| /' conftest.$ac_ext >&5
48786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48787 if test x$ac_cv_sizeof_wchar_t != x ; then break; fi
48792 if test x$ac_cv_sizeof_wchar_t = x ; then
48793 { { echo "$as_me:$LINENO: error: cannot determine a size for wchar_t" >&5
48794 echo "$as_me: error: cannot determine a size for wchar_t" >&2;}
48795 { (exit 1); exit 1; }; }
48797 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
48798 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
48800 cat >>confdefs.h <<_ACEOF
48801 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
48806 if test "$ac_cv_sizeof_int" -lt 4 ; then
48807 { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
48808 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
48810 cat >>confdefs.h <<\_ACEOF
48811 #define LBER_INT_T long
48815 cat >>confdefs.h <<\_ACEOF
48816 #define LBER_INT_T int
48821 cat >>confdefs.h <<\_ACEOF
48822 #define LBER_LEN_T long
48825 cat >>confdefs.h <<\_ACEOF
48826 #define LBER_SOCKET_T int
48829 cat >>confdefs.h <<\_ACEOF
48830 #define LBER_TAG_T long
48834 echo "$as_me:$LINENO: checking for working memcmp" >&5
48835 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
48836 if test "${ac_cv_func_memcmp_working+set}" = set; then
48837 echo $ECHO_N "(cached) $ECHO_C" >&6
48839 if test "$cross_compiling" = yes; then
48840 ac_cv_func_memcmp_working=no
48842 cat >conftest.$ac_ext <<_ACEOF
48845 cat confdefs.h >>conftest.$ac_ext
48846 cat >>conftest.$ac_ext <<_ACEOF
48847 /* end confdefs.h. */
48848 $ac_includes_default
48853 /* Some versions of memcmp are not 8-bit clean. */
48854 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
48855 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
48858 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
48859 or more and with at least one buffer not starting on a 4-byte boundary.
48860 William Lewis provided this test program. */
48865 for (i = 0; i < 4; i++)
48869 strcpy (a, "--------01111111");
48870 strcpy (b, "--------10000000");
48871 if (memcmp (a, b, 16) >= 0)
48881 rm -f conftest$ac_exeext
48882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48883 (eval $ac_link) 2>&5
48885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48886 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48888 (eval $ac_try) 2>&5
48890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48891 (exit $ac_status); }; }; then
48892 ac_cv_func_memcmp_working=yes
48894 echo "$as_me: program exited with status $ac_status" >&5
48895 echo "$as_me: failed program was:" >&5
48896 sed 's/^/| /' conftest.$ac_ext >&5
48898 ( exit $ac_status )
48899 ac_cv_func_memcmp_working=no
48901 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48904 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
48905 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
48906 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
48907 "memcmp.$ac_objext" | \
48908 *" memcmp.$ac_objext" | \
48909 "memcmp.$ac_objext "* | \
48910 *" memcmp.$ac_objext "* ) ;;
48911 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
48916 if test $ac_cv_func_memcmp_working = no ; then
48918 cat >>confdefs.h <<\_ACEOF
48919 #define NEED_MEMCMP_REPLACEMENT 1
48925 for ac_func in strftime
48927 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48928 echo "$as_me:$LINENO: checking for $ac_func" >&5
48929 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48930 if eval "test \"\${$as_ac_var+set}\" = set"; then
48931 echo $ECHO_N "(cached) $ECHO_C" >&6
48933 cat >conftest.$ac_ext <<_ACEOF
48936 cat confdefs.h >>conftest.$ac_ext
48937 cat >>conftest.$ac_ext <<_ACEOF
48938 /* end confdefs.h. */
48939 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48940 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48941 #define $ac_func innocuous_$ac_func
48943 /* System header to define __stub macros and hopefully few prototypes,
48944 which can conflict with char $ac_func (); below.
48945 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48946 <limits.h> exists even on freestanding compilers. */
48949 # include <limits.h>
48951 # include <assert.h>
48956 /* Override any gcc2 internal prototype to avoid an error. */
48961 /* We use char because int might match the return type of a gcc2
48962 builtin and then its argument prototype would still apply. */
48964 /* The GNU C library defines this for functions which it implements
48965 to always fail with ENOSYS. Some functions are actually named
48966 something starting with __ and the normal name is an alias. */
48967 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48970 char (*f) () = $ac_func;
48979 return f != $ac_func;
48984 rm -f conftest.$ac_objext conftest$ac_exeext
48985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48986 (eval $ac_link) 2>conftest.er1
48988 grep -v '^ *+' conftest.er1 >conftest.err
48990 cat conftest.err >&5
48991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48992 (exit $ac_status); } &&
48993 { ac_try='test -z "$ac_c_werror_flag"
48994 || test ! -s conftest.err'
48995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48996 (eval $ac_try) 2>&5
48998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48999 (exit $ac_status); }; } &&
49000 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
49006 eval "$as_ac_var=yes"
49008 echo "$as_me: failed program was:" >&5
49009 sed 's/^/| /' conftest.$ac_ext >&5
49011 eval "$as_ac_var=no"
49013 rm -f conftest.err conftest.$ac_objext \
49014 conftest$ac_exeext conftest.$ac_ext
49016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49017 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49018 if test `eval echo '${'$as_ac_var'}'` = yes; then
49019 cat >>confdefs.h <<_ACEOF
49020 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49024 # strftime is in -lintl on SCO UNIX.
49025 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
49026 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
49027 if test "${ac_cv_lib_intl_strftime+set}" = set; then
49028 echo $ECHO_N "(cached) $ECHO_C" >&6
49030 ac_check_lib_save_LIBS=$LIBS
49031 LIBS="-lintl $LIBS"
49032 cat >conftest.$ac_ext <<_ACEOF
49035 cat confdefs.h >>conftest.$ac_ext
49036 cat >>conftest.$ac_ext <<_ACEOF
49037 /* end confdefs.h. */
49039 /* Override any gcc2 internal prototype to avoid an error. */
49043 /* We use char because int might match the return type of a gcc2
49044 builtin and then its argument prototype would still apply. */
49054 rm -f conftest.$ac_objext conftest$ac_exeext
49055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49056 (eval $ac_link) 2>conftest.er1
49058 grep -v '^ *+' conftest.er1 >conftest.err
49060 cat conftest.err >&5
49061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49062 (exit $ac_status); } &&
49063 { ac_try='test -z "$ac_c_werror_flag"
49064 || test ! -s conftest.err'
49065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49066 (eval $ac_try) 2>&5
49068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49069 (exit $ac_status); }; } &&
49070 { ac_try='test -s conftest$ac_exeext'
49071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49072 (eval $ac_try) 2>&5
49074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49075 (exit $ac_status); }; }; then
49076 ac_cv_lib_intl_strftime=yes
49078 echo "$as_me: failed program was:" >&5
49079 sed 's/^/| /' conftest.$ac_ext >&5
49081 ac_cv_lib_intl_strftime=no
49083 rm -f conftest.err conftest.$ac_objext \
49084 conftest$ac_exeext conftest.$ac_ext
49085 LIBS=$ac_check_lib_save_LIBS
49087 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
49088 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
49089 if test $ac_cv_lib_intl_strftime = yes; then
49090 cat >>confdefs.h <<\_ACEOF
49091 #define HAVE_STRFTIME 1
49094 LIBS="-lintl $LIBS"
49101 echo "$as_me:$LINENO: checking for inet_aton()" >&5
49102 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
49103 if test "${ol_cv_func_inet_aton+set}" = set; then
49104 echo $ECHO_N "(cached) $ECHO_C" >&6
49106 cat >conftest.$ac_ext <<_ACEOF
49109 cat confdefs.h >>conftest.$ac_ext
49110 cat >>conftest.$ac_ext <<_ACEOF
49111 /* end confdefs.h. */
49113 #ifdef HAVE_SYS_TYPES_H
49114 # include <sys/types.h>
49116 #ifdef HAVE_SYS_SOCKET_H
49117 # include <sys/socket.h>
49118 # ifdef HAVE_SYS_SELECT_H
49119 # include <sys/select.h>
49121 # include <netinet/in.h>
49122 # ifdef HAVE_ARPA_INET_H
49123 # include <arpa/inet.h>
49131 int rc = inet_aton( "255.255.255.255", &in );
49136 rm -f conftest.$ac_objext conftest$ac_exeext
49137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49138 (eval $ac_link) 2>conftest.er1
49140 grep -v '^ *+' conftest.er1 >conftest.err
49142 cat conftest.err >&5
49143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49144 (exit $ac_status); } &&
49145 { ac_try='test -z "$ac_c_werror_flag"
49146 || test ! -s conftest.err'
49147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49148 (eval $ac_try) 2>&5
49150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49151 (exit $ac_status); }; } &&
49152 { ac_try='test -s conftest$ac_exeext'
49153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49154 (eval $ac_try) 2>&5
49156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49157 (exit $ac_status); }; }; then
49158 ol_cv_func_inet_aton=yes
49160 echo "$as_me: failed program was:" >&5
49161 sed 's/^/| /' conftest.$ac_ext >&5
49163 ol_cv_func_inet_aton=no
49165 rm -f conftest.err conftest.$ac_objext \
49166 conftest$ac_exeext conftest.$ac_ext
49168 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
49169 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
49170 if test $ol_cv_func_inet_aton != no; then
49172 cat >>confdefs.h <<\_ACEOF
49173 #define HAVE_INET_ATON 1
49179 echo "$as_me:$LINENO: checking for _spawnlp" >&5
49180 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
49181 if test "${ac_cv_func__spawnlp+set}" = set; then
49182 echo $ECHO_N "(cached) $ECHO_C" >&6
49184 cat >conftest.$ac_ext <<_ACEOF
49187 cat confdefs.h >>conftest.$ac_ext
49188 cat >>conftest.$ac_ext <<_ACEOF
49189 /* end confdefs.h. */
49190 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
49191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49192 #define _spawnlp innocuous__spawnlp
49194 /* System header to define __stub macros and hopefully few prototypes,
49195 which can conflict with char _spawnlp (); below.
49196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49197 <limits.h> exists even on freestanding compilers. */
49200 # include <limits.h>
49202 # include <assert.h>
49207 /* Override any gcc2 internal prototype to avoid an error. */
49212 /* We use char because int might match the return type of a gcc2
49213 builtin and then its argument prototype would still apply. */
49215 /* The GNU C library defines this for functions which it implements
49216 to always fail with ENOSYS. Some functions are actually named
49217 something starting with __ and the normal name is an alias. */
49218 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
49221 char (*f) () = _spawnlp;
49230 return f != _spawnlp;
49235 rm -f conftest.$ac_objext conftest$ac_exeext
49236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49237 (eval $ac_link) 2>conftest.er1
49239 grep -v '^ *+' conftest.er1 >conftest.err
49241 cat conftest.err >&5
49242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49243 (exit $ac_status); } &&
49244 { ac_try='test -z "$ac_c_werror_flag"
49245 || test ! -s conftest.err'
49246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49247 (eval $ac_try) 2>&5
49249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49250 (exit $ac_status); }; } &&
49251 { ac_try='test -s conftest$ac_exeext'
49252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49253 (eval $ac_try) 2>&5
49255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49256 (exit $ac_status); }; }; then
49257 ac_cv_func__spawnlp=yes
49259 echo "$as_me: failed program was:" >&5
49260 sed 's/^/| /' conftest.$ac_ext >&5
49262 ac_cv_func__spawnlp=no
49264 rm -f conftest.err conftest.$ac_objext \
49265 conftest$ac_exeext conftest.$ac_ext
49267 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
49268 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
49269 if test $ac_cv_func__spawnlp = yes; then
49271 cat >>confdefs.h <<\_ACEOF
49272 #define HAVE_SPAWNLP 1
49278 echo "$as_me:$LINENO: checking for _snprintf" >&5
49279 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
49280 if test "${ac_cv_func__snprintf+set}" = set; then
49281 echo $ECHO_N "(cached) $ECHO_C" >&6
49283 cat >conftest.$ac_ext <<_ACEOF
49286 cat confdefs.h >>conftest.$ac_ext
49287 cat >>conftest.$ac_ext <<_ACEOF
49288 /* end confdefs.h. */
49289 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
49290 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49291 #define _snprintf innocuous__snprintf
49293 /* System header to define __stub macros and hopefully few prototypes,
49294 which can conflict with char _snprintf (); below.
49295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49296 <limits.h> exists even on freestanding compilers. */
49299 # include <limits.h>
49301 # include <assert.h>
49306 /* Override any gcc2 internal prototype to avoid an error. */
49311 /* We use char because int might match the return type of a gcc2
49312 builtin and then its argument prototype would still apply. */
49314 /* The GNU C library defines this for functions which it implements
49315 to always fail with ENOSYS. Some functions are actually named
49316 something starting with __ and the normal name is an alias. */
49317 #if defined (__stub__snprintf) || defined (__stub____snprintf)
49320 char (*f) () = _snprintf;
49329 return f != _snprintf;
49334 rm -f conftest.$ac_objext conftest$ac_exeext
49335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49336 (eval $ac_link) 2>conftest.er1
49338 grep -v '^ *+' conftest.er1 >conftest.err
49340 cat conftest.err >&5
49341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49342 (exit $ac_status); } &&
49343 { ac_try='test -z "$ac_c_werror_flag"
49344 || test ! -s conftest.err'
49345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49346 (eval $ac_try) 2>&5
49348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49349 (exit $ac_status); }; } &&
49350 { ac_try='test -s conftest$ac_exeext'
49351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49352 (eval $ac_try) 2>&5
49354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49355 (exit $ac_status); }; }; then
49356 ac_cv_func__snprintf=yes
49358 echo "$as_me: failed program was:" >&5
49359 sed 's/^/| /' conftest.$ac_ext >&5
49361 ac_cv_func__snprintf=no
49363 rm -f conftest.err conftest.$ac_objext \
49364 conftest$ac_exeext conftest.$ac_ext
49366 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
49367 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
49368 if test $ac_cv_func__snprintf = yes; then
49369 ac_cv_func_snprintf=yes
49371 cat >>confdefs.h <<\_ACEOF
49372 #define snprintf _snprintf
49379 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
49380 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
49381 if test "${ac_cv_func__vsnprintf+set}" = set; then
49382 echo $ECHO_N "(cached) $ECHO_C" >&6
49384 cat >conftest.$ac_ext <<_ACEOF
49387 cat confdefs.h >>conftest.$ac_ext
49388 cat >>conftest.$ac_ext <<_ACEOF
49389 /* end confdefs.h. */
49390 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
49391 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49392 #define _vsnprintf innocuous__vsnprintf
49394 /* System header to define __stub macros and hopefully few prototypes,
49395 which can conflict with char _vsnprintf (); below.
49396 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49397 <limits.h> exists even on freestanding compilers. */
49400 # include <limits.h>
49402 # include <assert.h>
49407 /* Override any gcc2 internal prototype to avoid an error. */
49412 /* We use char because int might match the return type of a gcc2
49413 builtin and then its argument prototype would still apply. */
49414 char _vsnprintf ();
49415 /* The GNU C library defines this for functions which it implements
49416 to always fail with ENOSYS. Some functions are actually named
49417 something starting with __ and the normal name is an alias. */
49418 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
49421 char (*f) () = _vsnprintf;
49430 return f != _vsnprintf;
49435 rm -f conftest.$ac_objext conftest$ac_exeext
49436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49437 (eval $ac_link) 2>conftest.er1
49439 grep -v '^ *+' conftest.er1 >conftest.err
49441 cat conftest.err >&5
49442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49443 (exit $ac_status); } &&
49444 { ac_try='test -z "$ac_c_werror_flag"
49445 || test ! -s conftest.err'
49446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49447 (eval $ac_try) 2>&5
49449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49450 (exit $ac_status); }; } &&
49451 { ac_try='test -s conftest$ac_exeext'
49452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49453 (eval $ac_try) 2>&5
49455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49456 (exit $ac_status); }; }; then
49457 ac_cv_func__vsnprintf=yes
49459 echo "$as_me: failed program was:" >&5
49460 sed 's/^/| /' conftest.$ac_ext >&5
49462 ac_cv_func__vsnprintf=no
49464 rm -f conftest.err conftest.$ac_objext \
49465 conftest$ac_exeext conftest.$ac_ext
49467 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
49468 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
49469 if test $ac_cv_func__vsnprintf = yes; then
49470 ac_cv_func_vsnprintf=yes
49472 cat >>confdefs.h <<\_ACEOF
49473 #define vsnprintf _vsnprintf
49481 for ac_func in vprintf
49483 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49484 echo "$as_me:$LINENO: checking for $ac_func" >&5
49485 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49486 if eval "test \"\${$as_ac_var+set}\" = set"; then
49487 echo $ECHO_N "(cached) $ECHO_C" >&6
49489 cat >conftest.$ac_ext <<_ACEOF
49492 cat confdefs.h >>conftest.$ac_ext
49493 cat >>conftest.$ac_ext <<_ACEOF
49494 /* end confdefs.h. */
49495 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49497 #define $ac_func innocuous_$ac_func
49499 /* System header to define __stub macros and hopefully few prototypes,
49500 which can conflict with char $ac_func (); below.
49501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49502 <limits.h> exists even on freestanding compilers. */
49505 # include <limits.h>
49507 # include <assert.h>
49512 /* Override any gcc2 internal prototype to avoid an error. */
49517 /* We use char because int might match the return type of a gcc2
49518 builtin and then its argument prototype would still apply. */
49520 /* The GNU C library defines this for functions which it implements
49521 to always fail with ENOSYS. Some functions are actually named
49522 something starting with __ and the normal name is an alias. */
49523 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49526 char (*f) () = $ac_func;
49535 return f != $ac_func;
49540 rm -f conftest.$ac_objext conftest$ac_exeext
49541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49542 (eval $ac_link) 2>conftest.er1
49544 grep -v '^ *+' conftest.er1 >conftest.err
49546 cat conftest.err >&5
49547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49548 (exit $ac_status); } &&
49549 { ac_try='test -z "$ac_c_werror_flag"
49550 || test ! -s conftest.err'
49551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49552 (eval $ac_try) 2>&5
49554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49555 (exit $ac_status); }; } &&
49556 { ac_try='test -s conftest$ac_exeext'
49557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49558 (eval $ac_try) 2>&5
49560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49561 (exit $ac_status); }; }; then
49562 eval "$as_ac_var=yes"
49564 echo "$as_me: failed program was:" >&5
49565 sed 's/^/| /' conftest.$ac_ext >&5
49567 eval "$as_ac_var=no"
49569 rm -f conftest.err conftest.$ac_objext \
49570 conftest$ac_exeext conftest.$ac_ext
49572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49573 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49574 if test `eval echo '${'$as_ac_var'}'` = yes; then
49575 cat >>confdefs.h <<_ACEOF
49576 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49579 echo "$as_me:$LINENO: checking for _doprnt" >&5
49580 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
49581 if test "${ac_cv_func__doprnt+set}" = set; then
49582 echo $ECHO_N "(cached) $ECHO_C" >&6
49584 cat >conftest.$ac_ext <<_ACEOF
49587 cat confdefs.h >>conftest.$ac_ext
49588 cat >>conftest.$ac_ext <<_ACEOF
49589 /* end confdefs.h. */
49590 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
49591 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49592 #define _doprnt innocuous__doprnt
49594 /* System header to define __stub macros and hopefully few prototypes,
49595 which can conflict with char _doprnt (); below.
49596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49597 <limits.h> exists even on freestanding compilers. */
49600 # include <limits.h>
49602 # include <assert.h>
49607 /* Override any gcc2 internal prototype to avoid an error. */
49612 /* We use char because int might match the return type of a gcc2
49613 builtin and then its argument prototype would still apply. */
49615 /* The GNU C library defines this for functions which it implements
49616 to always fail with ENOSYS. Some functions are actually named
49617 something starting with __ and the normal name is an alias. */
49618 #if defined (__stub__doprnt) || defined (__stub____doprnt)
49621 char (*f) () = _doprnt;
49630 return f != _doprnt;
49635 rm -f conftest.$ac_objext conftest$ac_exeext
49636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49637 (eval $ac_link) 2>conftest.er1
49639 grep -v '^ *+' conftest.er1 >conftest.err
49641 cat conftest.err >&5
49642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49643 (exit $ac_status); } &&
49644 { ac_try='test -z "$ac_c_werror_flag"
49645 || test ! -s conftest.err'
49646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49647 (eval $ac_try) 2>&5
49649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49650 (exit $ac_status); }; } &&
49651 { ac_try='test -s conftest$ac_exeext'
49652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49653 (eval $ac_try) 2>&5
49655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49656 (exit $ac_status); }; }; then
49657 ac_cv_func__doprnt=yes
49659 echo "$as_me: failed program was:" >&5
49660 sed 's/^/| /' conftest.$ac_ext >&5
49662 ac_cv_func__doprnt=no
49664 rm -f conftest.err conftest.$ac_objext \
49665 conftest$ac_exeext conftest.$ac_ext
49667 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
49668 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
49669 if test $ac_cv_func__doprnt = yes; then
49671 cat >>confdefs.h <<\_ACEOF
49672 #define HAVE_DOPRNT 1
49682 if test $ac_cv_func_vprintf = yes ; then
49685 for ac_func in snprintf vsnprintf
49687 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49688 echo "$as_me:$LINENO: checking for $ac_func" >&5
49689 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49690 if eval "test \"\${$as_ac_var+set}\" = set"; then
49691 echo $ECHO_N "(cached) $ECHO_C" >&6
49693 cat >conftest.$ac_ext <<_ACEOF
49696 cat confdefs.h >>conftest.$ac_ext
49697 cat >>conftest.$ac_ext <<_ACEOF
49698 /* end confdefs.h. */
49699 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49700 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49701 #define $ac_func innocuous_$ac_func
49703 /* System header to define __stub macros and hopefully few prototypes,
49704 which can conflict with char $ac_func (); below.
49705 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49706 <limits.h> exists even on freestanding compilers. */
49709 # include <limits.h>
49711 # include <assert.h>
49716 /* Override any gcc2 internal prototype to avoid an error. */
49721 /* We use char because int might match the return type of a gcc2
49722 builtin and then its argument prototype would still apply. */
49724 /* The GNU C library defines this for functions which it implements
49725 to always fail with ENOSYS. Some functions are actually named
49726 something starting with __ and the normal name is an alias. */
49727 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49730 char (*f) () = $ac_func;
49739 return f != $ac_func;
49744 rm -f conftest.$ac_objext conftest$ac_exeext
49745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49746 (eval $ac_link) 2>conftest.er1
49748 grep -v '^ *+' conftest.er1 >conftest.err
49750 cat conftest.err >&5
49751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49752 (exit $ac_status); } &&
49753 { ac_try='test -z "$ac_c_werror_flag"
49754 || test ! -s conftest.err'
49755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49756 (eval $ac_try) 2>&5
49758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49759 (exit $ac_status); }; } &&
49760 { ac_try='test -s conftest$ac_exeext'
49761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49762 (eval $ac_try) 2>&5
49764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49765 (exit $ac_status); }; }; then
49766 eval "$as_ac_var=yes"
49768 echo "$as_me: failed program was:" >&5
49769 sed 's/^/| /' conftest.$ac_ext >&5
49771 eval "$as_ac_var=no"
49773 rm -f conftest.err conftest.$ac_objext \
49774 conftest$ac_exeext conftest.$ac_ext
49776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49777 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49778 if test `eval echo '${'$as_ac_var'}'` = yes; then
49779 cat >>confdefs.h <<_ACEOF
49780 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49897 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49898 echo "$as_me:$LINENO: checking for $ac_func" >&5
49899 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49900 if eval "test \"\${$as_ac_var+set}\" = set"; then
49901 echo $ECHO_N "(cached) $ECHO_C" >&6
49903 cat >conftest.$ac_ext <<_ACEOF
49906 cat confdefs.h >>conftest.$ac_ext
49907 cat >>conftest.$ac_ext <<_ACEOF
49908 /* end confdefs.h. */
49909 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49911 #define $ac_func innocuous_$ac_func
49913 /* System header to define __stub macros and hopefully few prototypes,
49914 which can conflict with char $ac_func (); below.
49915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49916 <limits.h> exists even on freestanding compilers. */
49919 # include <limits.h>
49921 # include <assert.h>
49926 /* Override any gcc2 internal prototype to avoid an error. */
49931 /* We use char because int might match the return type of a gcc2
49932 builtin and then its argument prototype would still apply. */
49934 /* The GNU C library defines this for functions which it implements
49935 to always fail with ENOSYS. Some functions are actually named
49936 something starting with __ and the normal name is an alias. */
49937 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49940 char (*f) () = $ac_func;
49949 return f != $ac_func;
49954 rm -f conftest.$ac_objext conftest$ac_exeext
49955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49956 (eval $ac_link) 2>conftest.er1
49958 grep -v '^ *+' conftest.er1 >conftest.err
49960 cat conftest.err >&5
49961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49962 (exit $ac_status); } &&
49963 { ac_try='test -z "$ac_c_werror_flag"
49964 || test ! -s conftest.err'
49965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49966 (eval $ac_try) 2>&5
49968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49969 (exit $ac_status); }; } &&
49970 { ac_try='test -s conftest$ac_exeext'
49971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49972 (eval $ac_try) 2>&5
49974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49975 (exit $ac_status); }; }; then
49976 eval "$as_ac_var=yes"
49978 echo "$as_me: failed program was:" >&5
49979 sed 's/^/| /' conftest.$ac_ext >&5
49981 eval "$as_ac_var=no"
49983 rm -f conftest.err conftest.$ac_objext \
49984 conftest$ac_exeext conftest.$ac_ext
49986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49987 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49988 if test `eval echo '${'$as_ac_var'}'` = yes; then
49989 cat >>confdefs.h <<_ACEOF
49990 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49999 for ac_func in getopt getpeereid
50001 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50002 echo "$as_me:$LINENO: checking for $ac_func" >&5
50003 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50004 if eval "test \"\${$as_ac_var+set}\" = set"; then
50005 echo $ECHO_N "(cached) $ECHO_C" >&6
50007 cat >conftest.$ac_ext <<_ACEOF
50010 cat confdefs.h >>conftest.$ac_ext
50011 cat >>conftest.$ac_ext <<_ACEOF
50012 /* end confdefs.h. */
50013 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50014 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50015 #define $ac_func innocuous_$ac_func
50017 /* System header to define __stub macros and hopefully few prototypes,
50018 which can conflict with char $ac_func (); below.
50019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50020 <limits.h> exists even on freestanding compilers. */
50023 # include <limits.h>
50025 # include <assert.h>
50030 /* Override any gcc2 internal prototype to avoid an error. */
50035 /* We use char because int might match the return type of a gcc2
50036 builtin and then its argument prototype would still apply. */
50038 /* The GNU C library defines this for functions which it implements
50039 to always fail with ENOSYS. Some functions are actually named
50040 something starting with __ and the normal name is an alias. */
50041 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50044 char (*f) () = $ac_func;
50053 return f != $ac_func;
50058 rm -f conftest.$ac_objext conftest$ac_exeext
50059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50060 (eval $ac_link) 2>conftest.er1
50062 grep -v '^ *+' conftest.er1 >conftest.err
50064 cat conftest.err >&5
50065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50066 (exit $ac_status); } &&
50067 { ac_try='test -z "$ac_c_werror_flag"
50068 || test ! -s conftest.err'
50069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50070 (eval $ac_try) 2>&5
50072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50073 (exit $ac_status); }; } &&
50074 { ac_try='test -s conftest$ac_exeext'
50075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50076 (eval $ac_try) 2>&5
50078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50079 (exit $ac_status); }; }; then
50080 eval "$as_ac_var=yes"
50082 echo "$as_me: failed program was:" >&5
50083 sed 's/^/| /' conftest.$ac_ext >&5
50085 eval "$as_ac_var=no"
50087 rm -f conftest.err conftest.$ac_objext \
50088 conftest$ac_exeext conftest.$ac_ext
50090 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50091 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50092 if test `eval echo '${'$as_ac_var'}'` = yes; then
50093 cat >>confdefs.h <<_ACEOF
50094 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50099 "$ac_func.$ac_objext" | \
50100 *" $ac_func.$ac_objext" | \
50101 "$ac_func.$ac_objext "* | \
50102 *" $ac_func.$ac_objext "* ) ;;
50103 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
50111 if test "$ac_cv_func_getopt" != yes; then
50112 LIBSRCS="$LIBSRCS getopt.c"
50114 if test "$ac_cv_func_getpeereid" != yes; then
50115 echo "$as_me:$LINENO: checking for msg_accrights in msghdr" >&5
50116 echo $ECHO_N "checking for msg_accrights in msghdr... $ECHO_C" >&6
50117 if test "${ol_cv_msghdr_msg_accrights+set}" = set; then
50118 echo $ECHO_N "(cached) $ECHO_C" >&6
50120 cat >conftest.$ac_ext <<_ACEOF
50123 cat confdefs.h >>conftest.$ac_ext
50124 cat >>conftest.$ac_ext <<_ACEOF
50125 /* end confdefs.h. */
50126 #include <sys/socket.h>
50130 struct msghdr m; m.msg_accrightslen=0
50135 rm -f conftest.$ac_objext
50136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50137 (eval $ac_compile) 2>conftest.er1
50139 grep -v '^ *+' conftest.er1 >conftest.err
50141 cat conftest.err >&5
50142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50143 (exit $ac_status); } &&
50144 { ac_try='test -z "$ac_c_werror_flag"
50145 || test ! -s conftest.err'
50146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50147 (eval $ac_try) 2>&5
50149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50150 (exit $ac_status); }; } &&
50151 { ac_try='test -s conftest.$ac_objext'
50152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50153 (eval $ac_try) 2>&5
50155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50156 (exit $ac_status); }; }; then
50157 ol_cv_msghdr_msg_accrights=yes
50159 echo "$as_me: failed program was:" >&5
50160 sed 's/^/| /' conftest.$ac_ext >&5
50162 ol_cv_msghdr_msg_accrights=no
50164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50167 echo "$as_me:$LINENO: result: $ol_cv_msghdr_msg_accrights" >&5
50168 echo "${ECHO_T}$ol_cv_msghdr_msg_accrights" >&6
50169 if test $ol_cv_msghdr_msg_accrights = "yes" ; then
50171 cat >>confdefs.h <<\_ACEOF
50172 #define HAVE_MSGHDR_MSG_ACCRIGHTS 1
50177 if test "$ac_cv_func_getpeereid" != yes; then
50178 echo "$as_me:$LINENO: checking for msg_control in msghdr" >&5
50179 echo $ECHO_N "checking for msg_control in msghdr... $ECHO_C" >&6
50180 if test "${ol_cv_msghdr_msg_control+set}" = set; then
50181 echo $ECHO_N "(cached) $ECHO_C" >&6
50183 cat >conftest.$ac_ext <<_ACEOF
50186 cat confdefs.h >>conftest.$ac_ext
50187 cat >>conftest.$ac_ext <<_ACEOF
50188 /* end confdefs.h. */
50189 #include <sys/socket.h>
50193 struct msghdr m; m.msg_control=(struct cmsghdr *)0
50198 rm -f conftest.$ac_objext
50199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50200 (eval $ac_compile) 2>conftest.er1
50202 grep -v '^ *+' conftest.er1 >conftest.err
50204 cat conftest.err >&5
50205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50206 (exit $ac_status); } &&
50207 { ac_try='test -z "$ac_c_werror_flag"
50208 || test ! -s conftest.err'
50209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50210 (eval $ac_try) 2>&5
50212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50213 (exit $ac_status); }; } &&
50214 { ac_try='test -s conftest.$ac_objext'
50215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50216 (eval $ac_try) 2>&5
50218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50219 (exit $ac_status); }; }; then
50220 ol_cv_msghdr_msg_control=yes
50222 echo "$as_me: failed program was:" >&5
50223 sed 's/^/| /' conftest.$ac_ext >&5
50225 ol_cv_msghdr_msg_control=no
50227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50230 echo "$as_me:$LINENO: result: $ol_cv_msghdr_msg_control" >&5
50231 echo "${ECHO_T}$ol_cv_msghdr_msg_control" >&6
50232 if test $ol_cv_msghdr_msg_control = "yes" ; then
50234 cat >>confdefs.h <<\_ACEOF
50235 #define HAVE_MSGHDR_MSG_CONTROL 1
50241 LIBSRCS="$LIBSRCS getpeereid.c"
50243 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
50244 if test "$ac_cv_func_snprintf" != yes; then
50246 cat >>confdefs.h <<\_ACEOF
50247 #define snprintf ber_pvt_snprintf
50251 if test "$ac_cv_func_vsnprintf" != yes; then
50253 cat >>confdefs.h <<\_ACEOF
50254 #define vsnprintf ber_pvt_vsnprintf
50261 if test "$ol_enable_slapi" != no ; then
50263 for ac_header in ltdl.h
50265 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
50266 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50267 echo "$as_me:$LINENO: checking for $ac_header" >&5
50268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
50269 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50270 echo $ECHO_N "(cached) $ECHO_C" >&6
50272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
50273 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
50275 # Is the header compilable?
50276 echo "$as_me:$LINENO: checking $ac_header usability" >&5
50277 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
50278 cat >conftest.$ac_ext <<_ACEOF
50281 cat confdefs.h >>conftest.$ac_ext
50282 cat >>conftest.$ac_ext <<_ACEOF
50283 /* end confdefs.h. */
50284 $ac_includes_default
50285 #include <$ac_header>
50287 rm -f conftest.$ac_objext
50288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50289 (eval $ac_compile) 2>conftest.er1
50291 grep -v '^ *+' conftest.er1 >conftest.err
50293 cat conftest.err >&5
50294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50295 (exit $ac_status); } &&
50296 { ac_try='test -z "$ac_c_werror_flag"
50297 || test ! -s conftest.err'
50298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50299 (eval $ac_try) 2>&5
50301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50302 (exit $ac_status); }; } &&
50303 { ac_try='test -s conftest.$ac_objext'
50304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50305 (eval $ac_try) 2>&5
50307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50308 (exit $ac_status); }; }; then
50309 ac_header_compiler=yes
50311 echo "$as_me: failed program was:" >&5
50312 sed 's/^/| /' conftest.$ac_ext >&5
50314 ac_header_compiler=no
50316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50317 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
50318 echo "${ECHO_T}$ac_header_compiler" >&6
50320 # Is the header present?
50321 echo "$as_me:$LINENO: checking $ac_header presence" >&5
50322 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
50323 cat >conftest.$ac_ext <<_ACEOF
50326 cat confdefs.h >>conftest.$ac_ext
50327 cat >>conftest.$ac_ext <<_ACEOF
50328 /* end confdefs.h. */
50329 #include <$ac_header>
50331 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
50332 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
50334 grep -v '^ *+' conftest.er1 >conftest.err
50336 cat conftest.err >&5
50337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50338 (exit $ac_status); } >/dev/null; then
50339 if test -s conftest.err; then
50340 ac_cpp_err=$ac_c_preproc_warn_flag
50341 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
50348 if test -z "$ac_cpp_err"; then
50349 ac_header_preproc=yes
50351 echo "$as_me: failed program was:" >&5
50352 sed 's/^/| /' conftest.$ac_ext >&5
50354 ac_header_preproc=no
50356 rm -f conftest.err conftest.$ac_ext
50357 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
50358 echo "${ECHO_T}$ac_header_preproc" >&6
50360 # So? What about this header?
50361 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
50363 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
50364 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
50365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
50366 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
50367 ac_header_preproc=yes
50370 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
50371 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
50372 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
50373 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
50374 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
50375 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
50376 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
50377 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
50378 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
50379 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
50380 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
50381 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
50384 ## ------------------------------------------ ##
50385 ## Report this to the AC_PACKAGE_NAME lists. ##
50386 ## ------------------------------------------ ##
50389 sed "s/^/$as_me: WARNING: /" >&2
50392 echo "$as_me:$LINENO: checking for $ac_header" >&5
50393 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
50394 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50395 echo $ECHO_N "(cached) $ECHO_C" >&6
50397 eval "$as_ac_Header=\$ac_header_preproc"
50399 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
50400 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
50403 if test `eval echo '${'$as_ac_Header'}'` = yes; then
50404 cat >>confdefs.h <<_ACEOF
50405 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
50413 if test $ac_cv_header_ltdl_h != yes ; then
50414 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
50415 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
50416 { (exit 1); exit 1; }; }
50418 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
50419 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
50420 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
50421 echo $ECHO_N "(cached) $ECHO_C" >&6
50423 ac_check_lib_save_LIBS=$LIBS
50424 LIBS="-lltdl $LIBS"
50425 cat >conftest.$ac_ext <<_ACEOF
50428 cat confdefs.h >>conftest.$ac_ext
50429 cat >>conftest.$ac_ext <<_ACEOF
50430 /* end confdefs.h. */
50432 /* Override any gcc2 internal prototype to avoid an error. */
50436 /* We use char because int might match the return type of a gcc2
50437 builtin and then its argument prototype would still apply. */
50447 rm -f conftest.$ac_objext conftest$ac_exeext
50448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50449 (eval $ac_link) 2>conftest.er1
50451 grep -v '^ *+' conftest.er1 >conftest.err
50453 cat conftest.err >&5
50454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50455 (exit $ac_status); } &&
50456 { ac_try='test -z "$ac_c_werror_flag"
50457 || test ! -s conftest.err'
50458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50459 (eval $ac_try) 2>&5
50461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50462 (exit $ac_status); }; } &&
50463 { ac_try='test -s conftest$ac_exeext'
50464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50465 (eval $ac_try) 2>&5
50467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50468 (exit $ac_status); }; }; then
50469 ac_cv_lib_ltdl_lt_dlinit=yes
50471 echo "$as_me: failed program was:" >&5
50472 sed 's/^/| /' conftest.$ac_ext >&5
50474 ac_cv_lib_ltdl_lt_dlinit=no
50476 rm -f conftest.err conftest.$ac_objext \
50477 conftest$ac_exeext conftest.$ac_ext
50478 LIBS=$ac_check_lib_save_LIBS
50480 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
50481 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
50482 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
50485 LIBSLAPI=libslapi.a
50486 LIBSLAPITOOLS=../libslapi.a
50488 cat >>confdefs.h <<\_ACEOF
50489 #define HAVE_LIBLTDL 1
50494 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
50495 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
50496 { (exit 1); exit 1; }; }
50501 cat >>confdefs.h <<\_ACEOF
50502 #define LDAP_SLAPI 1
50507 if test "$ol_enable_debug" != no ; then
50509 cat >>confdefs.h <<\_ACEOF
50510 #define LDAP_DEBUG 1
50514 if test "$ol_enable_syslog" = yes ; then
50516 cat >>confdefs.h <<\_ACEOF
50517 #define LDAP_SYSLOG 1
50521 if test "$ol_link_kbind" != no ; then
50522 cat >>confdefs.h <<\_ACEOF
50523 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
50527 if test "$ol_enable_proctitle" != no ; then
50529 cat >>confdefs.h <<\_ACEOF
50530 #define LDAP_PROCTITLE 1
50534 if test "$ol_enable_referrals" != no ; then
50535 cat >>confdefs.h <<\_ACEOF
50536 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
50540 if test "$ol_enable_local" != no; then
50542 cat >>confdefs.h <<\_ACEOF
50543 #define LDAP_PF_LOCAL 1
50547 if test "$ol_link_ipv6" != no; then
50549 cat >>confdefs.h <<\_ACEOF
50550 #define LDAP_PF_INET6 1
50554 if test "$ol_enable_cleartext" != no ; then
50556 cat >>confdefs.h <<\_ACEOF
50557 #define SLAPD_CLEARTEXT 1
50561 if test "$ol_enable_crypt" != no ; then
50563 cat >>confdefs.h <<\_ACEOF
50564 #define SLAPD_CRYPT 1
50568 if test "$ol_link_spasswd" != no ; then
50570 cat >>confdefs.h <<\_ACEOF
50571 #define SLAPD_SPASSWD 1
50575 if test "$ol_enable_multimaster" != no ; then
50577 cat >>confdefs.h <<\_ACEOF
50578 #define SLAPD_MULTIMASTER 1
50582 if test "$ol_enable_rlookups" != no ; then
50584 cat >>confdefs.h <<\_ACEOF
50585 #define SLAPD_RLOOKUPS 1
50589 if test "$ol_enable_aci" != no ; then
50591 cat >>confdefs.h <<\_ACEOF
50592 #define SLAPD_ACI_ENABLED 1
50597 if test "$ol_link_modules" != no ; then
50599 cat >>confdefs.h <<\_ACEOF
50600 #define SLAPD_MODULES 1
50604 SLAPD_MODULES_LDFLAGS="-dlopen self"
50608 cat >>confdefs.h <<\_ACEOF
50609 #define SLAPD_MOD_STATIC 1
50613 cat >>confdefs.h <<\_ACEOF
50614 #define SLAPD_MOD_DYNAMIC 2
50618 if test "$ol_enable_bdb" != no ; then
50620 BUILD_BDB=$ol_enable_bdb
50621 if test "$ol_enable_bdb" = mod ; then
50622 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
50623 MFLAG=SLAPD_MOD_DYNAMIC
50625 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
50626 MFLAG=SLAPD_MOD_STATIC
50629 cat >>confdefs.h <<_ACEOF
50630 #define SLAPD_BDB $MFLAG
50635 if test "$ol_enable_dnssrv" != no ; then
50637 BUILD_DNSSRV=$ol_enable_dnssrv
50638 if test "$ol_enable_dnssrv" = mod ; then
50639 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
50640 MFLAG=SLAPD_MOD_DYNAMIC
50642 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
50643 MFLAG=SLAPD_MOD_STATIC
50646 cat >>confdefs.h <<_ACEOF
50647 #define SLAPD_DNSSRV $MFLAG
50652 if test "$ol_enable_hdb" != no ; then
50654 BUILD_HDB=$ol_enable_hdb
50655 if test "$ol_enable_hdb" = mod ; then
50656 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
50657 MFLAG=SLAPD_MOD_DYNAMIC
50659 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
50660 MFLAG=SLAPD_MOD_STATIC
50663 cat >>confdefs.h <<_ACEOF
50664 #define SLAPD_HDB $MFLAG
50669 if test "$ol_enable_ldap" != no ; then
50671 BUILD_LDAP=$ol_enable_ldap
50672 if test "$ol_enable_ldap" = mod ; then
50673 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
50674 MFLAG=SLAPD_MOD_DYNAMIC
50676 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
50677 MFLAG=SLAPD_MOD_STATIC
50680 cat >>confdefs.h <<_ACEOF
50681 #define SLAPD_LDAP $MFLAG
50686 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
50688 BUILD_LDBM=$ol_enable_ldbm
50689 if test "$ol_enable_ldbm" = mod ; then
50690 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
50691 MFLAG=SLAPD_MOD_DYNAMIC
50693 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
50694 MFLAG=SLAPD_MOD_STATIC
50697 cat >>confdefs.h <<_ACEOF
50698 #define SLAPD_LDBM $MFLAG
50703 if test "$ol_enable_meta" != no ; then
50705 BUILD_META=$ol_enable_meta
50707 if test "$ol_enable_meta" = mod ; then
50708 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
50709 MFLAG=SLAPD_MOD_DYNAMIC
50711 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
50712 MFLAG=SLAPD_MOD_STATIC
50715 cat >>confdefs.h <<_ACEOF
50716 #define SLAPD_META $MFLAG
50721 if test "$ol_enable_monitor" != no ; then
50723 BUILD_MONITOR=$ol_enable_monitor
50724 if test "$ol_enable_monitor" = mod ; then
50725 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
50726 MFLAG=SLAPD_MOD_DYNAMIC
50728 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
50729 MFLAG=SLAPD_MOD_STATIC
50732 cat >>confdefs.h <<_ACEOF
50733 #define SLAPD_MONITOR $MFLAG
50738 if test "$ol_enable_null" != no ; then
50740 BUILD_NULL=$ol_enable_null
50741 if test "$ol_enable_null" = mod ; then
50742 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
50743 MFLAG=SLAPD_MOD_DYNAMIC
50745 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
50746 MFLAG=SLAPD_MOD_STATIC
50749 cat >>confdefs.h <<_ACEOF
50750 #define SLAPD_NULL $MFLAG
50755 if test "$ol_enable_passwd" != no ; then
50757 BUILD_PASSWD=$ol_enable_passwd
50758 if test "$ol_enable_passwd" = mod ; then
50759 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
50760 MFLAG=SLAPD_MOD_DYNAMIC
50762 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
50763 MFLAG=SLAPD_MOD_STATIC
50766 cat >>confdefs.h <<_ACEOF
50767 #define SLAPD_PASSWD $MFLAG
50772 if test "$ol_link_perl" != no ; then
50774 BUILD_PERL=$ol_enable_perl
50775 if test "$ol_enable_perl" = mod ; then
50776 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
50777 MFLAG=SLAPD_MOD_DYNAMIC
50779 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
50780 MFLAG=SLAPD_MOD_STATIC
50783 cat >>confdefs.h <<_ACEOF
50784 #define SLAPD_PERL $MFLAG
50789 if test "$ol_enable_relay" != no ; then
50791 BUILD_RELAY=$ol_enable_relay
50792 if test "$ol_enable_relay" = mod ; then
50793 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
50794 MFLAG=SLAPD_MOD_DYNAMIC
50796 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
50797 MFLAG=SLAPD_MOD_STATIC
50800 cat >>confdefs.h <<_ACEOF
50801 #define SLAPD_RELAY $MFLAG
50806 if test "$ol_enable_shell" != no ; then
50807 if test "$ol_link_thread" != no ; then
50808 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
50809 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
50812 BUILD_SHELL=$ol_enable_shell
50813 if test "$ol_enable_shell" = mod ; then
50814 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
50815 MFLAG=SLAPD_MOD_DYNAMIC
50817 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
50818 MFLAG=SLAPD_MOD_STATIC
50821 cat >>confdefs.h <<_ACEOF
50822 #define SLAPD_SHELL $MFLAG
50827 if test "$ol_link_sql" != no ; then
50829 BUILD_SQL=$ol_enable_sql
50830 if test "$ol_enable_sql" = mod; then
50831 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
50832 MFLAG=SLAPD_MOD_DYNAMIC
50834 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
50835 MFLAG=SLAPD_MOD_STATIC
50838 cat >>confdefs.h <<_ACEOF
50839 #define SLAPD_SQL $MFLAG
50844 if test "$ol_enable_accesslog" != no ; then
50845 BUILD_ACCESSLOG=$ol_enable_accesslog
50846 if test "$ol_enable_accesslog" = mod ; then
50847 MFLAG=SLAPD_MOD_DYNAMIC
50848 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
50850 MFLAG=SLAPD_MOD_STATIC
50851 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
50854 cat >>confdefs.h <<_ACEOF
50855 #define SLAPD_OVER_ACCESSLOG $MFLAG
50860 if test "$ol_enable_denyop" != no ; then
50861 BUILD_DENYOP=$ol_enable_denyop
50862 if test "$ol_enable_denyop" = mod ; then
50863 MFLAG=SLAPD_MOD_DYNAMIC
50864 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
50866 MFLAG=SLAPD_MOD_STATIC
50867 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
50870 cat >>confdefs.h <<_ACEOF
50871 #define SLAPD_OVER_DENYOP $MFLAG
50876 if test "$ol_enable_dyngroup" != no ; then
50877 BUILD_DYNGROUP=$ol_enable_dyngroup
50878 if test "$ol_enable_dyngroup" = mod ; then
50879 MFLAG=SLAPD_MOD_DYNAMIC
50880 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
50882 MFLAG=SLAPD_MOD_STATIC
50883 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
50886 cat >>confdefs.h <<_ACEOF
50887 #define SLAPD_OVER_DYNGROUP $MFLAG
50892 if test "$ol_enable_dynlist" != no ; then
50893 BUILD_DYNLIST=$ol_enable_dynlist
50894 if test "$ol_enable_dynlist" = mod ; then
50895 MFLAG=SLAPD_MOD_DYNAMIC
50896 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
50898 MFLAG=SLAPD_MOD_STATIC
50899 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
50902 cat >>confdefs.h <<_ACEOF
50903 #define SLAPD_OVER_DYNLIST $MFLAG
50908 if test "$ol_enable_glue" != no ; then
50909 BUILD_GLUE=$ol_enable_glue
50910 if test "$ol_enable_glue" = mod ; then
50911 MFLAG=SLAPD_MOD_DYNAMIC
50912 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS glue.la"
50914 MFLAG=SLAPD_MOD_STATIC
50915 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS glue.o"
50918 cat >>confdefs.h <<_ACEOF
50919 #define SLAPD_OVER_GLUE $MFLAG
50924 if test "$ol_enable_lastmod" != no ; then
50925 BUILD_LASTMOD=$ol_enable_lastmod
50926 if test "$ol_enable_lastmod" = mod ; then
50927 MFLAG=SLAPD_MOD_DYNAMIC
50928 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
50930 MFLAG=SLAPD_MOD_STATIC
50931 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
50934 cat >>confdefs.h <<_ACEOF
50935 #define SLAPD_OVER_LASTMOD $MFLAG
50940 if test "$ol_enable_ppolicy" != no ; then
50941 BUILD_PPOLICY=$ol_enable_ppolicy
50942 if test "$ol_enable_ppolicy" = mod ; then
50943 MFLAG=SLAPD_MOD_DYNAMIC
50944 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
50946 MFLAG=SLAPD_MOD_STATIC
50947 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
50950 cat >>confdefs.h <<_ACEOF
50951 #define SLAPD_OVER_PPOLICY $MFLAG
50956 if test "$ol_enable_proxycache" != no ; then
50957 BUILD_PROXYCACHE=$ol_enable_proxycache
50958 if test "$ol_enable_proxycache" = mod ; then
50959 MFLAG=SLAPD_MOD_DYNAMIC
50960 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
50962 MFLAG=SLAPD_MOD_STATIC
50963 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
50966 cat >>confdefs.h <<_ACEOF
50967 #define SLAPD_OVER_PROXYCACHE $MFLAG
50972 if test "$ol_enable_refint" != no ; then
50973 BUILD_REFINT=$ol_enable_refint
50974 if test "$ol_enable_refint" = mod ; then
50975 MFLAG=SLAPD_MOD_DYNAMIC
50976 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
50978 MFLAG=SLAPD_MOD_STATIC
50979 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
50982 cat >>confdefs.h <<_ACEOF
50983 #define SLAPD_OVER_REFINT $MFLAG
50988 if test "$ol_enable_retcode" != no ; then
50989 BUILD_RETCODE=$ol_enable_retcode
50990 if test "$ol_enable_retcode" = mod ; then
50991 MFLAG=SLAPD_MOD_DYNAMIC
50992 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
50994 MFLAG=SLAPD_MOD_STATIC
50995 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
50998 cat >>confdefs.h <<_ACEOF
50999 #define SLAPD_OVER_RETCODE $MFLAG
51004 if test "$ol_enable_rwm" != no ; then
51006 BUILD_RWM=$ol_enable_rwm
51007 if test "$ol_enable_rwm" = mod ; then
51008 MFLAG=SLAPD_MOD_DYNAMIC
51009 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
51011 MFLAG=SLAPD_MOD_STATIC
51012 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
51015 cat >>confdefs.h <<_ACEOF
51016 #define SLAPD_OVER_RWM $MFLAG
51021 if test "$ol_enable_syncprov" != no ; then
51022 BUILD_SYNCPROV=$ol_enable_syncprov
51023 if test "$ol_enable_syncprov" = mod ; then
51024 MFLAG=SLAPD_MOD_DYNAMIC
51025 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
51027 MFLAG=SLAPD_MOD_STATIC
51028 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
51031 cat >>confdefs.h <<_ACEOF
51032 #define SLAPD_OVER_SYNCPROV $MFLAG
51037 if test "$ol_enable_translucent" != no ; then
51038 BUILD_TRANSLUCENT=$ol_enable_translucent
51039 if test "$ol_enable_translucent" = mod ; then
51040 MFLAG=SLAPD_MOD_DYNAMIC
51041 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
51043 MFLAG=SLAPD_MOD_STATIC
51044 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
51047 cat >>confdefs.h <<_ACEOF
51048 #define SLAPD_OVER_TRANSLUCENT $MFLAG
51053 if test "$ol_enable_unique" != no ; then
51054 BUILD_UNIQUE=$ol_enable_unique
51055 if test "$ol_enable_unique" = mod ; then
51056 MFLAG=SLAPD_MOD_DYNAMIC
51057 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
51059 MFLAG=SLAPD_MOD_STATIC
51060 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
51063 cat >>confdefs.h <<_ACEOF
51064 #define SLAPD_OVER_UNIQUE $MFLAG
51069 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
51070 $BUILD_SLAPD = yes ; then
51074 if test "$ol_enable_rewrite" != no ; then
51076 cat >>confdefs.h <<\_ACEOF
51077 #define ENABLE_REWRITE 1
51083 if test "$ol_enable_slapi" != no ; then
51085 cat >>confdefs.h <<\_ACEOF
51086 #define ENABLE_SLAPI 1
51090 SLAPD_SLAPI_DEPEND=libslapi.a
51095 if test "$ac_cv_mingw32" = yes ; then
51097 SLAPD_MODULES_LDFLAGS=
51180 # Check whether --with-xxinstall or --without-xxinstall was given.
51181 if test "${with_xxinstall+set}" = set; then
51182 withval="$with_xxinstall"
51187 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"
51189 ac_config_commands="$ac_config_commands default"
51193 test "x$prefix" = xNONE && prefix=$ac_default_prefix
51194 # Let make expand exec_prefix.
51195 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
51197 # VPATH may cause trouble with some makes, so we remove $(srcdir),
51198 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
51199 # trailing colons and then remove the whole line if VPATH becomes empty
51200 # (actually we leave an empty line to preserve line numbers).
51201 if test "x$srcdir" = x.; then
51202 ac_vpsub='/^[ ]*VPATH[ ]*=/{
51203 s/:*\$(srcdir):*/:/;
51204 s/:*\${srcdir}:*/:/;
51206 s/^\([^=]*=[ ]*\):*/\1/;
51212 DEFS=-DHAVE_CONFIG_H
51216 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
51217 # 1. Remove the extension, and $U if already installed.
51218 ac_i=`echo "$ac_i" |
51219 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
51221 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
51222 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
51224 LIBOBJS=$ac_libobjs
51226 LTLIBOBJS=$ac_ltlibobjs
51229 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
51230 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
51231 Usually this means the macro was only invoked conditionally." >&5
51232 echo "$as_me: error: conditional \"AMDEP\" was never defined.
51233 Usually this means the macro was only invoked conditionally." >&2;}
51234 { (exit 1); exit 1; }; }
51236 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
51237 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
51238 Usually this means the macro was only invoked conditionally." >&5
51239 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
51240 Usually this means the macro was only invoked conditionally." >&2;}
51241 { (exit 1); exit 1; }; }
51243 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
51244 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
51245 Usually this means the macro was only invoked conditionally." >&5
51246 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
51247 Usually this means the macro was only invoked conditionally." >&2;}
51248 { (exit 1); exit 1; }; }
51250 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
51251 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
51252 Usually this means the macro was only invoked conditionally." >&5
51253 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
51254 Usually this means the macro was only invoked conditionally." >&2;}
51255 { (exit 1); exit 1; }; }
51258 : ${CONFIG_STATUS=./config.status}
51259 ac_clean_files_save=$ac_clean_files
51260 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
51261 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
51262 echo "$as_me: creating $CONFIG_STATUS" >&6;}
51263 cat >$CONFIG_STATUS <<_ACEOF
51265 # Generated by $as_me.
51266 # Run this file to recreate the current configuration.
51267 # Compiler output produced by configure, useful for debugging
51268 # configure, is in config.log if it exists.
51271 ac_cs_recheck=false
51273 SHELL=\${CONFIG_SHELL-$SHELL}
51276 cat >>$CONFIG_STATUS <<\_ACEOF
51277 ## --------------------- ##
51278 ## M4sh Initialization. ##
51279 ## --------------------- ##
51281 # Be Bourne compatible
51282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
51285 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
51286 # is contrary to our usage. Disable this feature.
51287 alias -g '${1+"$@"}'='"$@"'
51288 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
51291 DUALCASE=1; export DUALCASE # for MKS sh
51293 # Support unset when possible.
51294 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51301 # Work around bugs in pre-3.0 UWIN ksh.
51302 $as_unset ENV MAIL MAILPATH
51309 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
51310 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
51311 LC_TELEPHONE LC_TIME
51313 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
51314 eval $as_var=C; export $as_var
51320 # Required to use basename.
51321 if expr a : '\(a\)' >/dev/null 2>&1; then
51327 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
51328 as_basename=basename
51334 # Name of the executable.
51335 as_me=`$as_basename "$0" ||
51336 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
51337 X"$0" : 'X\(//\)$' \| \
51338 X"$0" : 'X\(/\)$' \| \
51339 . : '\(.\)' 2>/dev/null ||
51341 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
51342 /^X\/\(\/\/\)$/{ s//\1/; q; }
51343 /^X\/\(\/\).*/{ s//\1/; q; }
51347 # PATH needs CR, and LINENO needs CR and PATH.
51348 # Avoid depending upon Character Ranges.
51349 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
51350 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
51351 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
51352 as_cr_digits='0123456789'
51353 as_cr_alnum=$as_cr_Letters$as_cr_digits
51355 # The user is always right.
51356 if test "${PATH_SEPARATOR+set}" != set; then
51357 echo "#! /bin/sh" >conf$$.sh
51358 echo "exit 0" >>conf$$.sh
51360 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
51369 as_lineno_1=$LINENO
51370 as_lineno_2=$LINENO
51371 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
51372 test "x$as_lineno_1" != "x$as_lineno_2" &&
51373 test "x$as_lineno_3" = "x$as_lineno_2" || {
51374 # Find who we are. Look in the path if we contain no path at all
51377 *[\\/]* ) as_myself=$0 ;;
51378 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51379 for as_dir in $PATH
51382 test -z "$as_dir" && as_dir=.
51383 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
51388 # We did not find ourselves, most probably we were run as `sh COMMAND'
51389 # in which case we are not to be found in the path.
51390 if test "x$as_myself" = x; then
51393 if test ! -f "$as_myself"; then
51394 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
51395 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
51396 { (exit 1); exit 1; }; }
51398 case $CONFIG_SHELL in
51400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51401 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
51404 test -z "$as_dir" && as_dir=.
51405 for as_base in sh bash ksh sh5; do
51408 if ("$as_dir/$as_base" -c '
51409 as_lineno_1=$LINENO
51410 as_lineno_2=$LINENO
51411 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
51412 test "x$as_lineno_1" != "x$as_lineno_2" &&
51413 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
51414 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
51415 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
51416 CONFIG_SHELL=$as_dir/$as_base
51417 export CONFIG_SHELL
51418 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
51426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
51427 # uniformly replaced by the line number. The first 'sed' inserts a
51428 # line-number line before each line; the second 'sed' does the real
51429 # work. The second script uses 'N' to pair each line-number line
51430 # with the numbered line, and appends trailing '-' during
51431 # substitution so that $LINENO is not a special case at line end.
51432 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
51433 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
51434 sed '=' <$as_myself |
51439 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
51442 s,^['$as_cr_digits']*\n,,
51443 ' >$as_me.lineno &&
51444 chmod +x $as_me.lineno ||
51445 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
51446 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
51447 { (exit 1); exit 1; }; }
51449 # Don't try to exec as it changes $[0], causing all sort of problems
51450 # (the dirname of $[0] is not the place where we might find the
51451 # original and so on. Autoconf is especially sensible to this).
51453 # Exit status is that of the last command.
51458 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
51459 *c*,-n*) ECHO_N= ECHO_C='
51461 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
51462 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
51465 if expr a : '\(a\)' >/dev/null 2>&1; then
51471 rm -f conf$$ conf$$.exe conf$$.file
51473 if ln -s conf$$.file conf$$ 2>/dev/null; then
51474 # We could just check for DJGPP; but this test a) works b) is more generic
51475 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
51476 if test -f conf$$.exe; then
51477 # Don't use ln at all; we don't have any links
51482 elif ln conf$$.file conf$$ 2>/dev/null; then
51487 rm -f conf$$ conf$$.exe conf$$.file
51489 if mkdir -p . 2>/dev/null; then
51492 test -d ./-p && rmdir ./-p
51496 as_executable_p="test -f"
51498 # Sed expression to map a string onto a valid CPP name.
51499 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
51501 # Sed expression to map a string onto a valid variable name.
51502 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
51506 # We need space, tab and new line, in precisely that order.
51516 # Open the log real soon, to keep \$[0] and so on meaningful, and to
51517 # report actual input values of CONFIG_FILES etc. instead of their
51518 # values after options handling. Logging --version etc. is OK.
51522 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
51523 ## Running $as_me. ##
51528 This file was extended by $as_me, which was
51529 generated by GNU Autoconf 2.59. Invocation command line was
51531 CONFIG_FILES = $CONFIG_FILES
51532 CONFIG_HEADERS = $CONFIG_HEADERS
51533 CONFIG_LINKS = $CONFIG_LINKS
51534 CONFIG_COMMANDS = $CONFIG_COMMANDS
51538 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
51542 # Files that config.status was made for.
51543 if test -n "$ac_config_files"; then
51544 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
51547 if test -n "$ac_config_headers"; then
51548 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
51551 if test -n "$ac_config_links"; then
51552 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
51555 if test -n "$ac_config_commands"; then
51556 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
51559 cat >>$CONFIG_STATUS <<\_ACEOF
51562 \`$as_me' instantiates files from templates according to the
51563 current configuration.
51565 Usage: $0 [OPTIONS] [FILE]...
51567 -h, --help print this help, then exit
51568 -V, --version print version number, then exit
51569 -q, --quiet do not print progress messages
51570 -d, --debug don't remove temporary files
51571 --recheck update $as_me by reconfiguring in the same conditions
51572 --file=FILE[:TEMPLATE]
51573 instantiate the configuration file FILE
51574 --header=FILE[:TEMPLATE]
51575 instantiate the configuration header FILE
51577 Configuration files:
51580 Configuration headers:
51583 Configuration commands:
51586 Report bugs to <bug-autoconf@gnu.org>."
51589 cat >>$CONFIG_STATUS <<_ACEOF
51592 configured by $0, generated by GNU Autoconf 2.59,
51593 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
51595 Copyright (C) 2003 Free Software Foundation, Inc.
51596 This config.status script is free software; the Free Software Foundation
51597 gives unlimited permission to copy, distribute and modify it."
51602 cat >>$CONFIG_STATUS <<\_ACEOF
51603 # If no file are specified by the user, then we need to provide default
51604 # value. By we need to know if files were specified by the user.
51610 ac_option=`expr "x$1" : 'x\([^=]*\)='`
51611 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
51619 *) # This is not an option, so the user has probably given explicit
51622 ac_need_defaults=false;;
51626 # Handling of the options.
51628 cat >>$CONFIG_STATUS <<\_ACEOF
51629 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
51631 --version | --vers* | -V )
51632 echo "$ac_cs_version"; exit 0 ;;
51634 # Conflict between --help and --header
51635 { { echo "$as_me:$LINENO: error: ambiguous option: $1
51636 Try \`$0 --help' for more information." >&5
51637 echo "$as_me: error: ambiguous option: $1
51638 Try \`$0 --help' for more information." >&2;}
51639 { (exit 1); exit 1; }; };;
51640 --help | --hel | -h )
51641 echo "$ac_cs_usage"; exit 0 ;;
51642 --debug | --d* | -d )
51644 --file | --fil | --fi | --f )
51646 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
51647 ac_need_defaults=false;;
51648 --header | --heade | --head | --hea )
51650 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
51651 ac_need_defaults=false;;
51652 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
51653 | -silent | --silent | --silen | --sile | --sil | --si | --s)
51656 # This is an error.
51657 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
51658 Try \`$0 --help' for more information." >&5
51659 echo "$as_me: error: unrecognized option: $1
51660 Try \`$0 --help' for more information." >&2;}
51661 { (exit 1); exit 1; }; } ;;
51663 *) ac_config_targets="$ac_config_targets $1" ;;
51669 ac_configure_extra_args=
51671 if $ac_cs_silent; then
51673 ac_configure_extra_args="$ac_configure_extra_args --silent"
51677 cat >>$CONFIG_STATUS <<_ACEOF
51678 if \$ac_cs_recheck; then
51679 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
51680 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
51685 cat >>$CONFIG_STATUS <<_ACEOF
51687 # INIT-COMMANDS section.
51690 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
51691 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
51697 cat >>$CONFIG_STATUS <<\_ACEOF
51698 for ac_config_target in $ac_config_targets
51700 case "$ac_config_target" in
51701 # Handling of arguments.
51702 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
51703 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
51704 "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
51705 "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
51706 "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
51707 "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
51708 "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
51709 "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
51710 "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
51711 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
51712 "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
51713 "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
51714 "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
51715 "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" ;;
51716 "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
51717 "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
51718 "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
51719 "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
51720 "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
51721 "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" ;;
51722 "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" ;;
51723 "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" ;;
51724 "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" ;;
51725 "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" ;;
51726 "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" ;;
51727 "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" ;;
51728 "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" ;;
51729 "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" ;;
51730 "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" ;;
51731 "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" ;;
51732 "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" ;;
51733 "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" ;;
51734 "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" ;;
51735 "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" ;;
51736 "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" ;;
51737 "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
51738 "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
51739 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
51740 "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
51741 "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
51742 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
51743 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
51744 "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h" ;;
51745 "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h" ;;
51746 "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h" ;;
51747 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
51748 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
51749 { (exit 1); exit 1; }; };;
51753 # If the user did not use the arguments to specify the items to instantiate,
51754 # then the envvar interface is used. Set only those that are not.
51755 # We use the long form for the default assignment because of an extremely
51756 # bizarre bug on SunOS 4.1.3.
51757 if $ac_need_defaults; then
51758 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
51759 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
51760 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
51763 # Have a temporary directory for convenience. Make it in the build tree
51764 # simply because there is no reason to put it here, and in addition,
51765 # creating and moving files from /tmp can sometimes cause problems.
51766 # Create a temporary directory, and hook for its removal unless debugging.
51769 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
51770 trap '{ (exit 1); exit 1; }' 1 2 13 15
51773 # Create a (secure) tmp directory for tmp files.
51776 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
51777 test -n "$tmp" && test -d "$tmp"
51780 tmp=./confstat$$-$RANDOM
51781 (umask 077 && mkdir $tmp)
51784 echo "$me: cannot create a temporary directory in ." >&2
51785 { (exit 1); exit 1; }
51790 cat >>$CONFIG_STATUS <<_ACEOF
51793 # CONFIG_FILES section.
51796 # No need to generate the scripts if there are no CONFIG_FILES.
51797 # This happens for instance when ./config.status config.h
51798 if test -n "\$CONFIG_FILES"; then
51799 # Protect against being on the right side of a sed subst in config.status.
51800 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
51801 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
51802 s,@SHELL@,$SHELL,;t t
51803 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
51804 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
51805 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
51806 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
51807 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
51808 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
51809 s,@exec_prefix@,$exec_prefix,;t t
51810 s,@prefix@,$prefix,;t t
51811 s,@program_transform_name@,$program_transform_name,;t t
51812 s,@bindir@,$bindir,;t t
51813 s,@sbindir@,$sbindir,;t t
51814 s,@libexecdir@,$libexecdir,;t t
51815 s,@datadir@,$datadir,;t t
51816 s,@sysconfdir@,$sysconfdir,;t t
51817 s,@sharedstatedir@,$sharedstatedir,;t t
51818 s,@localstatedir@,$localstatedir,;t t
51819 s,@libdir@,$libdir,;t t
51820 s,@includedir@,$includedir,;t t
51821 s,@oldincludedir@,$oldincludedir,;t t
51822 s,@infodir@,$infodir,;t t
51823 s,@mandir@,$mandir,;t t
51824 s,@build_alias@,$build_alias,;t t
51825 s,@host_alias@,$host_alias,;t t
51826 s,@target_alias@,$target_alias,;t t
51827 s,@DEFS@,$DEFS,;t t
51828 s,@ECHO_C@,$ECHO_C,;t t
51829 s,@ECHO_N@,$ECHO_N,;t t
51830 s,@ECHO_T@,$ECHO_T,;t t
51831 s,@LIBS@,$LIBS,;t t
51832 s,@build@,$build,;t t
51833 s,@build_cpu@,$build_cpu,;t t
51834 s,@build_vendor@,$build_vendor,;t t
51835 s,@build_os@,$build_os,;t t
51836 s,@host@,$host,;t t
51837 s,@host_cpu@,$host_cpu,;t t
51838 s,@host_vendor@,$host_vendor,;t t
51839 s,@host_os@,$host_os,;t t
51840 s,@target@,$target,;t t
51841 s,@target_cpu@,$target_cpu,;t t
51842 s,@target_vendor@,$target_vendor,;t t
51843 s,@target_os@,$target_os,;t t
51844 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
51845 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
51846 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
51847 s,@CYGPATH_W@,$CYGPATH_W,;t t
51848 s,@PACKAGE@,$PACKAGE,;t t
51849 s,@VERSION@,$VERSION,;t t
51850 s,@ACLOCAL@,$ACLOCAL,;t t
51851 s,@AUTOCONF@,$AUTOCONF,;t t
51852 s,@AUTOMAKE@,$AUTOMAKE,;t t
51853 s,@AUTOHEADER@,$AUTOHEADER,;t t
51854 s,@MAKEINFO@,$MAKEINFO,;t t
51855 s,@install_sh@,$install_sh,;t t
51856 s,@STRIP@,$STRIP,;t t
51857 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
51858 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
51859 s,@mkdir_p@,$mkdir_p,;t t
51861 s,@SET_MAKE@,$SET_MAKE,;t t
51862 s,@am__leading_dot@,$am__leading_dot,;t t
51863 s,@AMTAR@,$AMTAR,;t t
51864 s,@am__tar@,$am__tar,;t t
51865 s,@am__untar@,$am__untar,;t t
51866 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
51867 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
51868 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
51869 s,@top_builddir@,$top_builddir,;t t
51870 s,@ldap_subdir@,$ldap_subdir,;t t
51873 s,@CFLAGS@,$CFLAGS,;t t
51874 s,@LDFLAGS@,$LDFLAGS,;t t
51875 s,@CPPFLAGS@,$CPPFLAGS,;t t
51876 s,@ac_ct_CC@,$ac_ct_CC,;t t
51877 s,@EXEEXT@,$EXEEXT,;t t
51878 s,@OBJEXT@,$OBJEXT,;t t
51879 s,@DEPDIR@,$DEPDIR,;t t
51880 s,@am__include@,$am__include,;t t
51881 s,@am__quote@,$am__quote,;t t
51882 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
51883 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
51884 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
51885 s,@CCDEPMODE@,$CCDEPMODE,;t t
51886 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
51887 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
51888 s,@EGREP@,$EGREP,;t t
51889 s,@LN_S@,$LN_S,;t t
51890 s,@ECHO@,$ECHO,;t t
51891 s,@ac_ct_AR@,$ac_ct_AR,;t t
51892 s,@RANLIB@,$RANLIB,;t t
51893 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
51894 s,@DLLTOOL@,$DLLTOOL,;t t
51895 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
51897 s,@ac_ct_AS@,$ac_ct_AS,;t t
51898 s,@OBJDUMP@,$OBJDUMP,;t t
51899 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
51902 s,@CXXFLAGS@,$CXXFLAGS,;t t
51903 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
51904 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
51905 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
51906 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
51907 s,@CXXCPP@,$CXXCPP,;t t
51909 s,@FFLAGS@,$FFLAGS,;t t
51910 s,@ac_ct_F77@,$ac_ct_F77,;t t
51911 s,@LIBTOOL@,$LIBTOOL,;t t
51912 s,@PERLBIN@,$PERLBIN,;t t
51913 s,@OL_MKDEP@,$OL_MKDEP,;t t
51914 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
51915 s,@LTSTATIC@,$LTSTATIC,;t t
51916 s,@LIBOBJS@,$LIBOBJS,;t t
51917 s,@LIBSRCS@,$LIBSRCS,;t t
51918 s,@PLAT@,$PLAT,;t t
51919 s,@WITH_SASL@,$WITH_SASL,;t t
51920 s,@WITH_TLS@,$WITH_TLS,;t t
51921 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
51922 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
51923 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
51924 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
51925 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
51926 s,@BUILD_BDB@,$BUILD_BDB,;t t
51927 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
51928 s,@BUILD_HDB@,$BUILD_HDB,;t t
51929 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
51930 s,@BUILD_LDBM@,$BUILD_LDBM,;t t
51931 s,@BUILD_META@,$BUILD_META,;t t
51932 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
51933 s,@BUILD_NULL@,$BUILD_NULL,;t t
51934 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
51935 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
51936 s,@BUILD_PERL@,$BUILD_PERL,;t t
51937 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
51938 s,@BUILD_SQL@,$BUILD_SQL,;t t
51939 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
51940 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
51941 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
51942 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
51943 s,@BUILD_GLUE@,$BUILD_GLUE,;t t
51944 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
51945 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
51946 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
51947 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
51948 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
51949 s,@BUILD_RWM@,$BUILD_RWM,;t t
51950 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
51951 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
51952 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
51953 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
51954 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
51955 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
51956 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
51957 s,@LDBM_LIBS@,$LDBM_LIBS,;t t
51958 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
51959 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
51960 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
51961 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
51962 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
51963 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
51964 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
51965 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
51966 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
51967 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
51968 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
51969 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
51970 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
51971 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
51972 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
51973 s,@SASL_LIBS@,$SASL_LIBS,;t t
51974 s,@TLS_LIBS@,$TLS_LIBS,;t t
51975 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
51976 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
51977 s,@LIBSLAPI@,$LIBSLAPI,;t t
51978 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
51979 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
51980 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
51981 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
51982 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
51983 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
51984 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
51985 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
51990 cat >>$CONFIG_STATUS <<\_ACEOF
51991 # Split the substitutions into bite-sized pieces for seds with
51992 # small command number limits, like on Digital OSF/1 and HP-UX.
51993 ac_max_sed_lines=48
51994 ac_sed_frag=1 # Number of current file.
51995 ac_beg=1 # First line for current file.
51996 ac_end=$ac_max_sed_lines # Line after last line for current file.
51999 while $ac_more_lines; do
52000 if test $ac_beg -gt 1; then
52001 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
52003 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
52005 if test ! -s $tmp/subs.frag; then
52006 ac_more_lines=false
52008 # The purpose of the label and of the branching condition is to
52009 # speed up the sed processing (if there are no `@' at all, there
52010 # is no need to browse any of the substitutions).
52011 # These are the two extra sed commands mentioned above.
52013 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
52014 if test -z "$ac_sed_cmds"; then
52015 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
52017 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
52019 ac_sed_frag=`expr $ac_sed_frag + 1`
52021 ac_end=`expr $ac_end + $ac_max_sed_lines`
52024 if test -z "$ac_sed_cmds"; then
52027 fi # test -n "$CONFIG_FILES"
52030 cat >>$CONFIG_STATUS <<\_ACEOF
52031 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
52032 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
52034 - | *:- | *:-:* ) # input from stdin
52036 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
52037 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
52038 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
52039 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
52040 * ) ac_file_in=$ac_file.in ;;
52043 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
52044 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
52045 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52046 X"$ac_file" : 'X\(//\)[^/]' \| \
52047 X"$ac_file" : 'X\(//\)$' \| \
52048 X"$ac_file" : 'X\(/\)' \| \
52049 . : '\(.\)' 2>/dev/null ||
52051 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52052 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52053 /^X\(\/\/\)$/{ s//\1/; q; }
52054 /^X\(\/\).*/{ s//\1/; q; }
52056 { if $as_mkdir_p; then
52061 while test ! -d "$as_dir"; do
52062 as_dirs="$as_dir $as_dirs"
52063 as_dir=`(dirname "$as_dir") 2>/dev/null ||
52064 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52065 X"$as_dir" : 'X\(//\)[^/]' \| \
52066 X"$as_dir" : 'X\(//\)$' \| \
52067 X"$as_dir" : 'X\(/\)' \| \
52068 . : '\(.\)' 2>/dev/null ||
52070 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52071 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52072 /^X\(\/\/\)$/{ s//\1/; q; }
52073 /^X\(\/\).*/{ s//\1/; q; }
52076 test ! -n "$as_dirs" || mkdir $as_dirs
52077 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52078 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52079 { (exit 1); exit 1; }; }; }
52083 if test "$ac_dir" != .; then
52084 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52085 # A "../" for each directory in $ac_dir_suffix.
52086 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
52088 ac_dir_suffix= ac_top_builddir=
52092 .) # No --srcdir option. We are building in place.
52094 if test -z "$ac_top_builddir"; then
52097 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
52099 [\\/]* | ?:[\\/]* ) # Absolute path.
52100 ac_srcdir=$srcdir$ac_dir_suffix;
52101 ac_top_srcdir=$srcdir ;;
52102 *) # Relative path.
52103 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
52104 ac_top_srcdir=$ac_top_builddir$srcdir ;;
52107 # Do not use `cd foo && pwd` to compute absolute paths, because
52108 # the directories may not exist.
52110 .) ac_abs_builddir="$ac_dir";;
52113 .) ac_abs_builddir=`pwd`;;
52114 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
52115 *) ac_abs_builddir=`pwd`/"$ac_dir";;
52118 case $ac_abs_builddir in
52119 .) ac_abs_top_builddir=${ac_top_builddir}.;;
52121 case ${ac_top_builddir}. in
52122 .) ac_abs_top_builddir=$ac_abs_builddir;;
52123 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
52124 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
52127 case $ac_abs_builddir in
52128 .) ac_abs_srcdir=$ac_srcdir;;
52131 .) ac_abs_srcdir=$ac_abs_builddir;;
52132 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
52133 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
52136 case $ac_abs_builddir in
52137 .) ac_abs_top_srcdir=$ac_top_srcdir;;
52139 case $ac_top_srcdir in
52140 .) ac_abs_top_srcdir=$ac_abs_builddir;;
52141 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
52142 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
52148 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
52149 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
52152 if test x"$ac_file" != x-; then
52153 { echo "$as_me:$LINENO: creating $ac_file" >&5
52154 echo "$as_me: creating $ac_file" >&6;}
52157 # Let's still pretend it is `configure' which instantiates (i.e., don't
52158 # use $as_me), people would be surprised to read:
52159 # /* config.h. Generated by config.status. */
52160 if test x"$ac_file" = x-; then
52163 configure_input="$ac_file. "
52165 configure_input=$configure_input"Generated from `echo $ac_file_in |
52166 sed 's,.*/,,'` by configure."
52168 # First look for the input files in the build tree, otherwise in the
52170 ac_file_inputs=`IFS=:
52171 for f in $ac_file_in; do
52173 -) echo $tmp/stdin ;;
52175 # Absolute (can't be DOS-style, as IFS=:)
52176 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
52177 echo "$as_me: error: cannot find input file: $f" >&2;}
52178 { (exit 1); exit 1; }; }
52181 if test -f "$f"; then
52184 elif test -f "$srcdir/$f"; then
52189 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
52190 echo "$as_me: error: cannot find input file: $f" >&2;}
52191 { (exit 1); exit 1; }; }
52194 done` || { (exit 1); exit 1; }
52196 cat >>$CONFIG_STATUS <<_ACEOF
52200 cat >>$CONFIG_STATUS <<\_ACEOF
52202 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
52203 s,@configure_input@,$configure_input,;t t
52204 s,@srcdir@,$ac_srcdir,;t t
52205 s,@abs_srcdir@,$ac_abs_srcdir,;t t
52206 s,@top_srcdir@,$ac_top_srcdir,;t t
52207 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
52208 s,@builddir@,$ac_builddir,;t t
52209 s,@abs_builddir@,$ac_abs_builddir,;t t
52210 s,@top_builddir@,$ac_top_builddir,;t t
52211 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
52212 s,@INSTALL@,$ac_INSTALL,;t t
52213 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
52215 if test x"$ac_file" != x-; then
52216 mv $tmp/out $ac_file
52224 cat >>$CONFIG_STATUS <<\_ACEOF
52227 # CONFIG_HEADER section.
52230 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
52231 # NAME is the cpp macro being defined and VALUE is the value it is being given.
52233 # ac_d sets the value in "#define NAME VALUE" lines.
52234 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
52235 ac_dB='[ ].*$,\1#\2'
52238 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
52239 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
52240 ac_uB='$,\1#\2define\3'
52244 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
52245 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
52247 - | *:- | *:-:* ) # input from stdin
52249 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
52250 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
52251 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
52252 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
52253 * ) ac_file_in=$ac_file.in ;;
52256 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
52257 echo "$as_me: creating $ac_file" >&6;}
52259 # First look for the input files in the build tree, otherwise in the
52261 ac_file_inputs=`IFS=:
52262 for f in $ac_file_in; do
52264 -) echo $tmp/stdin ;;
52266 # Absolute (can't be DOS-style, as IFS=:)
52267 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
52268 echo "$as_me: error: cannot find input file: $f" >&2;}
52269 { (exit 1); exit 1; }; }
52270 # Do quote $f, to prevent DOS paths from being IFS'd.
52273 if test -f "$f"; then
52276 elif test -f "$srcdir/$f"; then
52281 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
52282 echo "$as_me: error: cannot find input file: $f" >&2;}
52283 { (exit 1); exit 1; }; }
52286 done` || { (exit 1); exit 1; }
52287 # Remove the trailing spaces.
52288 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
52292 # Transform confdefs.h into two sed scripts, `conftest.defines' and
52293 # `conftest.undefs', that substitutes the proper values into
52294 # config.h.in to produce config.h. The first handles `#define'
52295 # templates, and the second `#undef' templates.
52296 # And first: Protect against being on the right side of a sed subst in
52297 # config.status. Protect against being in an unquoted here document
52298 # in config.status.
52299 rm -f conftest.defines conftest.undefs
52300 # Using a here document instead of a string reduces the quoting nightmare.
52301 # Putting comments in sed scripts is not portable.
52303 # `end' is used to avoid that the second main sed command (meant for
52304 # 0-ary CPP macros) applies to n-ary macro definitions.
52305 # See the Autoconf documentation for `clear'.
52306 cat >confdef2sed.sed <<\_ACEOF
52311 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
52313 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
52316 # If some macros were called several times there might be several times
52317 # the same #defines, which is useless. Nevertheless, we may not want to
52318 # sort them, since we want the *last* AC-DEFINE to be honored.
52319 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
52320 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
52321 rm -f confdef2sed.sed
52323 # This sed command replaces #undef with comments. This is necessary, for
52324 # example, in the case of _POSIX_SOURCE, which is predefined and required
52325 # on some systems where configure will not decide to define it.
52326 cat >>conftest.undefs <<\_ACEOF
52327 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
52330 # Break up conftest.defines because some shells have a limit on the size
52331 # of here documents, and old seds have small limits too (100 cmds).
52332 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
52333 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
52334 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
52335 echo ' :' >>$CONFIG_STATUS
52336 rm -f conftest.tail
52337 while grep . conftest.defines >/dev/null
52339 # Write a limited-size here document to $tmp/defines.sed.
52340 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
52341 # Speed up: don't consider the non `#define' lines.
52342 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
52343 # Work around the forget-to-reset-the-flag bug.
52344 echo 't clr' >>$CONFIG_STATUS
52345 echo ': clr' >>$CONFIG_STATUS
52346 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
52348 sed -f $tmp/defines.sed $tmp/in >$tmp/out
52350 mv $tmp/out $tmp/in
52352 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
52353 rm -f conftest.defines
52354 mv conftest.tail conftest.defines
52356 rm -f conftest.defines
52357 echo ' fi # grep' >>$CONFIG_STATUS
52358 echo >>$CONFIG_STATUS
52360 # Break up conftest.undefs because some shells have a limit on the size
52361 # of here documents, and old seds have small limits too (100 cmds).
52362 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
52363 rm -f conftest.tail
52364 while grep . conftest.undefs >/dev/null
52366 # Write a limited-size here document to $tmp/undefs.sed.
52367 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
52368 # Speed up: don't consider the non `#undef'
52369 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
52370 # Work around the forget-to-reset-the-flag bug.
52371 echo 't clr' >>$CONFIG_STATUS
52372 echo ': clr' >>$CONFIG_STATUS
52373 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
52375 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
52377 mv $tmp/out $tmp/in
52379 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
52380 rm -f conftest.undefs
52381 mv conftest.tail conftest.undefs
52383 rm -f conftest.undefs
52385 cat >>$CONFIG_STATUS <<\_ACEOF
52386 # Let's still pretend it is `configure' which instantiates (i.e., don't
52387 # use $as_me), people would be surprised to read:
52388 # /* config.h. Generated by config.status. */
52389 if test x"$ac_file" = x-; then
52390 echo "/* Generated by configure. */" >$tmp/config.h
52392 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
52394 cat $tmp/in >>$tmp/config.h
52396 if test x"$ac_file" != x-; then
52397 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
52398 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
52399 echo "$as_me: $ac_file is unchanged" >&6;}
52401 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
52402 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52403 X"$ac_file" : 'X\(//\)[^/]' \| \
52404 X"$ac_file" : 'X\(//\)$' \| \
52405 X"$ac_file" : 'X\(/\)' \| \
52406 . : '\(.\)' 2>/dev/null ||
52408 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52409 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52410 /^X\(\/\/\)$/{ s//\1/; q; }
52411 /^X\(\/\).*/{ s//\1/; q; }
52413 { if $as_mkdir_p; then
52418 while test ! -d "$as_dir"; do
52419 as_dirs="$as_dir $as_dirs"
52420 as_dir=`(dirname "$as_dir") 2>/dev/null ||
52421 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52422 X"$as_dir" : 'X\(//\)[^/]' \| \
52423 X"$as_dir" : 'X\(//\)$' \| \
52424 X"$as_dir" : 'X\(/\)' \| \
52425 . : '\(.\)' 2>/dev/null ||
52427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52428 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52429 /^X\(\/\/\)$/{ s//\1/; q; }
52430 /^X\(\/\).*/{ s//\1/; q; }
52433 test ! -n "$as_dirs" || mkdir $as_dirs
52434 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52435 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52436 { (exit 1); exit 1; }; }; }
52439 mv $tmp/config.h $ac_file
52443 rm -f $tmp/config.h
52445 # Compute $ac_file's index in $config_headers.
52447 for _am_header in $config_headers :; do
52448 case $_am_header in
52449 $ac_file | $ac_file:* )
52452 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
52455 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
52456 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52457 X$ac_file : 'X\(//\)[^/]' \| \
52458 X$ac_file : 'X\(//\)$' \| \
52459 X$ac_file : 'X\(/\)' \| \
52460 . : '\(.\)' 2>/dev/null ||
52462 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52463 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52464 /^X\(\/\/\)$/{ s//\1/; q; }
52465 /^X\(\/\).*/{ s//\1/; q; }
52466 s/.*/./; q'`/stamp-h$_am_stamp_count
52469 cat >>$CONFIG_STATUS <<\_ACEOF
52472 # CONFIG_COMMANDS section.
52474 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
52475 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
52476 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
52477 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
52478 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52479 X"$ac_dest" : 'X\(//\)[^/]' \| \
52480 X"$ac_dest" : 'X\(//\)$' \| \
52481 X"$ac_dest" : 'X\(/\)' \| \
52482 . : '\(.\)' 2>/dev/null ||
52484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52485 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52486 /^X\(\/\/\)$/{ s//\1/; q; }
52487 /^X\(\/\).*/{ s//\1/; q; }
52489 { if $as_mkdir_p; then
52494 while test ! -d "$as_dir"; do
52495 as_dirs="$as_dir $as_dirs"
52496 as_dir=`(dirname "$as_dir") 2>/dev/null ||
52497 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52498 X"$as_dir" : 'X\(//\)[^/]' \| \
52499 X"$as_dir" : 'X\(//\)$' \| \
52500 X"$as_dir" : 'X\(/\)' \| \
52501 . : '\(.\)' 2>/dev/null ||
52503 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52504 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52505 /^X\(\/\/\)$/{ s//\1/; q; }
52506 /^X\(\/\).*/{ s//\1/; q; }
52509 test ! -n "$as_dirs" || mkdir $as_dirs
52510 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52511 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52512 { (exit 1); exit 1; }; }; }
52516 if test "$ac_dir" != .; then
52517 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52518 # A "../" for each directory in $ac_dir_suffix.
52519 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
52521 ac_dir_suffix= ac_top_builddir=
52525 .) # No --srcdir option. We are building in place.
52527 if test -z "$ac_top_builddir"; then
52530 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
52532 [\\/]* | ?:[\\/]* ) # Absolute path.
52533 ac_srcdir=$srcdir$ac_dir_suffix;
52534 ac_top_srcdir=$srcdir ;;
52535 *) # Relative path.
52536 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
52537 ac_top_srcdir=$ac_top_builddir$srcdir ;;
52540 # Do not use `cd foo && pwd` to compute absolute paths, because
52541 # the directories may not exist.
52543 .) ac_abs_builddir="$ac_dir";;
52546 .) ac_abs_builddir=`pwd`;;
52547 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
52548 *) ac_abs_builddir=`pwd`/"$ac_dir";;
52551 case $ac_abs_builddir in
52552 .) ac_abs_top_builddir=${ac_top_builddir}.;;
52554 case ${ac_top_builddir}. in
52555 .) ac_abs_top_builddir=$ac_abs_builddir;;
52556 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
52557 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
52560 case $ac_abs_builddir in
52561 .) ac_abs_srcdir=$ac_srcdir;;
52564 .) ac_abs_srcdir=$ac_abs_builddir;;
52565 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
52566 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
52569 case $ac_abs_builddir in
52570 .) ac_abs_top_srcdir=$ac_top_srcdir;;
52572 case $ac_top_srcdir in
52573 .) ac_abs_top_srcdir=$ac_abs_builddir;;
52574 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
52575 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
52580 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
52581 echo "$as_me: executing $ac_dest commands" >&6;}
52583 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
52584 # Strip MF so we end up with the name of the file.
52585 mf=`echo "$mf" | sed -e 's/:.*$//'`
52586 # Check whether this is an Automake generated Makefile or not.
52587 # We used to match only the files named `Makefile.in', but
52588 # some people rename them; so instead we look at the file content.
52589 # Grep'ing the first line is not enough: some people post-process
52590 # each Makefile.in and add a new line on top of each file to say so.
52591 # So let's grep whole file.
52592 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
52593 dirpart=`(dirname "$mf") 2>/dev/null ||
52594 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52595 X"$mf" : 'X\(//\)[^/]' \| \
52596 X"$mf" : 'X\(//\)$' \| \
52597 X"$mf" : 'X\(/\)' \| \
52598 . : '\(.\)' 2>/dev/null ||
52600 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52601 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52602 /^X\(\/\/\)$/{ s//\1/; q; }
52603 /^X\(\/\).*/{ s//\1/; q; }
52608 # Extract the definition of DEPDIR, am__include, and am__quote
52609 # from the Makefile without running `make'.
52610 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
52611 test -z "$DEPDIR" && continue
52612 am__include=`sed -n 's/^am__include = //p' < "$mf"`
52613 test -z "am__include" && continue
52614 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
52615 # When using ansi2knr, U may be empty or an underscore; expand it
52616 U=`sed -n 's/^U = //p' < "$mf"`
52617 # Find all dependency output files, they are included files with
52618 # $(DEPDIR) in their names. We invoke sed twice because it is the
52619 # simplest approach to changing $(DEPDIR) to its actual value in the
52621 for file in `sed -n "
52622 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
52623 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
52624 # Make sure the directory exists.
52625 test -f "$dirpart/$file" && continue
52626 fdir=`(dirname "$file") 2>/dev/null ||
52627 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52628 X"$file" : 'X\(//\)[^/]' \| \
52629 X"$file" : 'X\(//\)$' \| \
52630 X"$file" : 'X\(/\)' \| \
52631 . : '\(.\)' 2>/dev/null ||
52633 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52634 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52635 /^X\(\/\/\)$/{ s//\1/; q; }
52636 /^X\(\/\).*/{ s//\1/; q; }
52638 { if $as_mkdir_p; then
52639 mkdir -p $dirpart/$fdir
52641 as_dir=$dirpart/$fdir
52643 while test ! -d "$as_dir"; do
52644 as_dirs="$as_dir $as_dirs"
52645 as_dir=`(dirname "$as_dir") 2>/dev/null ||
52646 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52647 X"$as_dir" : 'X\(//\)[^/]' \| \
52648 X"$as_dir" : 'X\(//\)$' \| \
52649 X"$as_dir" : 'X\(/\)' \| \
52650 . : '\(.\)' 2>/dev/null ||
52652 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52653 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52654 /^X\(\/\/\)$/{ s//\1/; q; }
52655 /^X\(\/\).*/{ s//\1/; q; }
52658 test ! -n "$as_dirs" || mkdir $as_dirs
52659 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
52660 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
52661 { (exit 1); exit 1; }; }; }
52663 # echo "creating $dirpart/$file"
52664 echo '# dummy' > "$dirpart/$file"
52671 BACKENDSC="servers/slapd/backends.c"
52672 echo "Making $BACKENDSC"
52674 cat > $BACKENDSC << ENDX
52675 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
52677 * Copyright 1998-2005 The OpenLDAP Foundation.
52678 * All rights reserved.
52680 * Redistribution and use in source and binary forms, with or without
52681 * modification, are permitted only as authorized by the OpenLDAP
52684 * A copy of this license is available in the file LICENSE in the
52685 * top-level directory of the distribution or, alternatively, at
52686 * <http://www.OpenLDAP.org/license.html>.
52688 /* This file is automatically generated by configure; please do not edit. */
52690 #include "portable.h"
52694 if test "${STATIC_BACKENDS}"; then
52695 for b in config ${STATIC_BACKENDS}; do
52696 bb=`echo "${b}" | sed -e 's/back-//'`
52697 cat >> $BACKENDSC << ENDX
52698 extern BI_init ${bb}_back_initialize;
52702 cat >> $BACKENDSC << ENDX
52704 BackendInfo slap_binfo[] = {
52707 for b in config ${STATIC_BACKENDS}; do
52708 bb=`echo "${b}" | sed -e 's/back-//'`
52709 echo " Add ${bb} ..."
52710 cat >> $BACKENDSC << ENDX
52711 { "${bb}", ${bb}_back_initialize },
52715 cat >> $BACKENDSC << ENDX
52719 /* end of generated file */
52723 echo Please run \"make depend\" to build dependencies
52729 cat >>$CONFIG_STATUS <<\_ACEOF
52731 { (exit 0); exit 0; }
52733 chmod +x $CONFIG_STATUS
52734 ac_clean_files=$ac_clean_files_save
52737 # configure is writing to config.log, and then calls config.status.
52738 # config.status does its own redirection, appending to config.log.
52739 # Unfortunately, on DOS this fails, as config.log is still kept open
52740 # by configure, so config.status won't be able to write to it; its
52741 # output is simply discarded. So we exec the FD to /dev/null,
52742 # effectively closing config.log, so it can be properly (re)opened and
52743 # appended to by config.status. When coming back to configure, we
52744 # need to make the FD available again.
52745 if test "$no_create" != yes; then
52747 ac_config_status_args=
52748 test "$silent" = yes &&
52749 ac_config_status_args="$ac_config_status_args --quiet"
52751 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
52753 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
52754 # would make configure fail if this is the last instruction.
52755 $ac_cs_success || { (exit 1); exit 1; }