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
1554 # set unset (borrowed from autoconf 2.49c)
1555 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
1561 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
1564 for ac_dir in build $srcdir/build; do
1565 if test -f $ac_dir/install-sh; then
1567 ac_install_sh="$ac_aux_dir/install-sh -c"
1569 elif test -f $ac_dir/install.sh; then
1571 ac_install_sh="$ac_aux_dir/install.sh -c"
1573 elif test -f $ac_dir/shtool; then
1575 ac_install_sh="$ac_aux_dir/shtool install -c"
1579 if test -z "$ac_aux_dir"; then
1580 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1581 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1582 { (exit 1); exit 1; }; }
1584 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1585 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1586 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1588 eval `$ac_aux_dir/version.sh`
1589 if test -z "$OL_STRING"; then
1590 { { echo "$as_me:$LINENO: error: could not determine version" >&5
1591 echo "$as_me: error: could not determine version" >&2;}
1592 { (exit 1); exit 1; }; }
1595 if test -f "$ac_aux_dir/shtool" -a ! -d $ac_aux_dir/shtool; then
1596 ac_cv_shtool="$ac_aux_dir/shtool"
1598 { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1599 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1600 { (exit 1); exit 1; }; }
1603 SHTOOL="$ac_cv_shtool"
1605 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1606 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1609 if test -d $ac_aux_dir/CVS; then
1610 OPENLDAP_CVS="(from CVS sources) "
1613 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1615 # Make sure we can run config.sub.
1616 $ac_config_sub sun4 >/dev/null 2>&1 ||
1617 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1618 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1619 { (exit 1); exit 1; }; }
1621 echo "$as_me:$LINENO: checking build system type" >&5
1622 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1623 if test "${ac_cv_build+set}" = set; then
1624 echo $ECHO_N "(cached) $ECHO_C" >&6
1626 ac_cv_build_alias=$build_alias
1627 test -z "$ac_cv_build_alias" &&
1628 ac_cv_build_alias=`$ac_config_guess`
1629 test -z "$ac_cv_build_alias" &&
1630 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1631 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1632 { (exit 1); exit 1; }; }
1633 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1634 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1635 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1636 { (exit 1); exit 1; }; }
1639 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1640 echo "${ECHO_T}$ac_cv_build" >&6
1642 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1643 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1644 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1647 echo "$as_me:$LINENO: checking host system type" >&5
1648 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1649 if test "${ac_cv_host+set}" = set; then
1650 echo $ECHO_N "(cached) $ECHO_C" >&6
1652 ac_cv_host_alias=$host_alias
1653 test -z "$ac_cv_host_alias" &&
1654 ac_cv_host_alias=$ac_cv_build_alias
1655 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1656 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1657 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1658 { (exit 1); exit 1; }; }
1661 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1662 echo "${ECHO_T}$ac_cv_host" >&6
1664 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1665 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1666 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1669 echo "$as_me:$LINENO: checking target system type" >&5
1670 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1671 if test "${ac_cv_target+set}" = set; then
1672 echo $ECHO_N "(cached) $ECHO_C" >&6
1674 ac_cv_target_alias=$target_alias
1675 test "x$ac_cv_target_alias" = "x" &&
1676 ac_cv_target_alias=$ac_cv_host_alias
1677 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1678 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1679 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1680 { (exit 1); exit 1; }; }
1683 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1684 echo "${ECHO_T}$ac_cv_target" >&6
1685 target=$ac_cv_target
1686 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1687 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1688 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1691 # The aliases save the names the user supplied, while $host etc.
1692 # will get canonicalized.
1693 test -n "$target_alias" &&
1694 test "$program_prefix$program_suffix$program_transform_name" = \
1696 program_prefix=${target_alias}-
1698 am__api_version="1.9"
1699 # Find a good install program. We prefer a C program (faster),
1700 # so one script is as good as another. But avoid the broken or
1701 # incompatible versions:
1702 # SysV /etc/install, /usr/sbin/install
1703 # SunOS /usr/etc/install
1704 # IRIX /sbin/install
1706 # AmigaOS /C/install, which installs bootblocks on floppy discs
1707 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1708 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1709 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1710 # OS/2's system install, which has a completely different semantic
1711 # ./install, which can be erroneously created by make from ./install.sh.
1712 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1713 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1714 if test -z "$INSTALL"; then
1715 if test "${ac_cv_path_install+set}" = set; then
1716 echo $ECHO_N "(cached) $ECHO_C" >&6
1718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1722 test -z "$as_dir" && as_dir=.
1723 # Account for people who put trailing slashes in PATH elements.
1725 ./ | .// | /cC/* | \
1726 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1727 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1730 # OSF1 and SCO ODT 3.0 have their own names for install.
1731 # Don't use installbsd from OSF since it installs stuff as root
1733 for ac_prog in ginstall scoinst install; do
1734 for ac_exec_ext in '' $ac_executable_extensions; do
1735 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1736 if test $ac_prog = install &&
1737 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1738 # AIX install. It has an incompatible calling convention.
1740 elif test $ac_prog = install &&
1741 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1742 # program-specific install script used by HP pwplus--don't use.
1745 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1757 if test "${ac_cv_path_install+set}" = set; then
1758 INSTALL=$ac_cv_path_install
1760 # As a last resort, use the slow shell script. We don't cache a
1761 # path for INSTALL within a source directory, because that will
1762 # break other packages using the cache if that directory is
1763 # removed, or if the path is relative.
1764 INSTALL=$ac_install_sh
1767 echo "$as_me:$LINENO: result: $INSTALL" >&5
1768 echo "${ECHO_T}$INSTALL" >&6
1770 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1771 # It thinks the first close brace ends the variable substitution.
1772 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1774 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1776 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1778 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1779 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1782 echo timestamp > conftest.file
1783 # Do `set' in a subshell so we don't clobber the current shell's
1784 # arguments. Must try -L first in case configure is actually a
1785 # symlink; some systems play weird games with the mod time of symlinks
1786 # (eg FreeBSD returns the mod time of the symlink's containing
1789 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1790 if test "$*" = "X"; then
1792 set X `ls -t $srcdir/configure conftest.file`
1795 if test "$*" != "X $srcdir/configure conftest.file" \
1796 && test "$*" != "X conftest.file $srcdir/configure"; then
1798 # If neither matched, then we have a broken ls. This can happen
1799 # if, for instance, CONFIG_SHELL is bash and it inherits a
1800 # broken ls alias from the environment. This has actually
1801 # happened. Such a system could not be considered "sane".
1802 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1803 alias in your environment" >&5
1804 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1805 alias in your environment" >&2;}
1806 { (exit 1); exit 1; }; }
1809 test "$2" = conftest.file
1815 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1816 Check your system clock" >&5
1817 echo "$as_me: error: newly created file is older than distributed files!
1818 Check your system clock" >&2;}
1819 { (exit 1); exit 1; }; }
1821 echo "$as_me:$LINENO: result: yes" >&5
1822 echo "${ECHO_T}yes" >&6
1823 test "$program_prefix" != NONE &&
1824 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1825 # Use a double $ so make ignores it.
1826 test "$program_suffix" != NONE &&
1827 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1828 # Double any \ or $. echo might interpret backslashes.
1829 # By default was `s,x,x', remove it if useless.
1830 cat <<\_ACEOF >conftest.sed
1831 s/[\\$]/&&/g;s/;s,x,x,$//
1833 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1836 # expand $ac_aux_dir to an absolute path
1837 am_aux_dir=`cd $ac_aux_dir && pwd`
1839 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1840 # Use eval to expand $SHELL
1841 if eval "$MISSING --run true"; then
1842 am_missing_run="$MISSING --run "
1845 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1846 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1849 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1850 # We used to keeping the `.' as first argument, in order to
1851 # allow $(mkdir_p) to be used without argument. As in
1852 # $(mkdir_p) $(somedir)
1853 # where $(somedir) is conditionally defined. However this is wrong
1855 # 1. if the package is installed by a user who cannot write `.'
1856 # make install will fail,
1857 # 2. the above comment should most certainly read
1858 # $(mkdir_p) $(DESTDIR)$(somedir)
1859 # so it does not work when $(somedir) is undefined and
1860 # $(DESTDIR) is not.
1861 # To support the latter case, we have to write
1862 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1863 # so the `.' trick is pointless.
1864 mkdir_p='mkdir -p --'
1866 # On NextStep and OpenStep, the `mkdir' command does not
1867 # recognize any option. It will interpret all options as
1868 # directories to create, and then abort because `.' already
1870 for d in ./-p ./--version;
1872 test -d $d && rmdir $d
1874 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1875 if test -f "$ac_aux_dir/mkinstalldirs"; then
1876 mkdir_p='$(mkinstalldirs)'
1878 mkdir_p='$(install_sh) -d'
1882 for ac_prog in gawk mawk nawk awk
1884 # Extract the first word of "$ac_prog", so it can be a program name with args.
1885 set dummy $ac_prog; ac_word=$2
1886 echo "$as_me:$LINENO: checking for $ac_word" >&5
1887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1888 if test "${ac_cv_prog_AWK+set}" = set; then
1889 echo $ECHO_N "(cached) $ECHO_C" >&6
1891 if test -n "$AWK"; then
1892 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1898 test -z "$as_dir" && as_dir=.
1899 for ac_exec_ext in '' $ac_executable_extensions; do
1900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1901 ac_cv_prog_AWK="$ac_prog"
1902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1911 if test -n "$AWK"; then
1912 echo "$as_me:$LINENO: result: $AWK" >&5
1913 echo "${ECHO_T}$AWK" >&6
1915 echo "$as_me:$LINENO: result: no" >&5
1916 echo "${ECHO_T}no" >&6
1919 test -n "$AWK" && break
1922 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1923 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1924 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1925 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1926 echo $ECHO_N "(cached) $ECHO_C" >&6
1928 cat >conftest.make <<\_ACEOF
1930 @echo 'ac_maketemp="$(MAKE)"'
1932 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1933 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1934 if test -n "$ac_maketemp"; then
1935 eval ac_cv_prog_make_${ac_make}_set=yes
1937 eval ac_cv_prog_make_${ac_make}_set=no
1941 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1942 echo "$as_me:$LINENO: result: yes" >&5
1943 echo "${ECHO_T}yes" >&6
1946 echo "$as_me:$LINENO: result: no" >&5
1947 echo "${ECHO_T}no" >&6
1948 SET_MAKE="MAKE=${MAKE-make}"
1951 rm -rf .tst 2>/dev/null
1952 mkdir .tst 2>/dev/null
1953 if test -d .tst; then
1958 rmdir .tst 2>/dev/null
1960 # test to see if srcdir already configured
1961 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1962 test -f $srcdir/config.status; then
1963 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1964 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1965 { (exit 1); exit 1; }; }
1968 # test whether we have cygpath
1969 if test -z "$CYGPATH_W"; then
1970 if (cygpath --version) >/dev/null 2>/dev/null; then
1971 CYGPATH_W='cygpath -w'
1978 # Define the identity of the package.
1983 # Some tools Automake needs.
1985 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1988 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1991 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1994 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1997 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1999 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2001 # Installed binaries are usually stripped using `strip' when the user
2002 # run `make install-strip'. However `strip' might not be the right
2003 # tool to use in cross-compilation environments, therefore Automake
2004 # will honor the `STRIP' environment variable to overrule this program.
2005 if test "$cross_compiling" != no; then
2006 if test -n "$ac_tool_prefix"; then
2007 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2008 set dummy ${ac_tool_prefix}strip; ac_word=$2
2009 echo "$as_me:$LINENO: checking for $ac_word" >&5
2010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2011 if test "${ac_cv_prog_STRIP+set}" = set; then
2012 echo $ECHO_N "(cached) $ECHO_C" >&6
2014 if test -n "$STRIP"; then
2015 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2021 test -z "$as_dir" && as_dir=.
2022 for ac_exec_ext in '' $ac_executable_extensions; do
2023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2024 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2033 STRIP=$ac_cv_prog_STRIP
2034 if test -n "$STRIP"; then
2035 echo "$as_me:$LINENO: result: $STRIP" >&5
2036 echo "${ECHO_T}$STRIP" >&6
2038 echo "$as_me:$LINENO: result: no" >&5
2039 echo "${ECHO_T}no" >&6
2043 if test -z "$ac_cv_prog_STRIP"; then
2045 # Extract the first word of "strip", so it can be a program name with args.
2046 set dummy strip; ac_word=$2
2047 echo "$as_me:$LINENO: checking for $ac_word" >&5
2048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2049 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2050 echo $ECHO_N "(cached) $ECHO_C" >&6
2052 if test -n "$ac_ct_STRIP"; then
2053 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2059 test -z "$as_dir" && as_dir=.
2060 for ac_exec_ext in '' $ac_executable_extensions; do
2061 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2062 ac_cv_prog_ac_ct_STRIP="strip"
2063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2069 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2072 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2073 if test -n "$ac_ct_STRIP"; then
2074 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2075 echo "${ECHO_T}$ac_ct_STRIP" >&6
2077 echo "$as_me:$LINENO: result: no" >&5
2078 echo "${ECHO_T}no" >&6
2083 STRIP="$ac_cv_prog_STRIP"
2087 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2089 # We need awk for the "check" target. The system "awk" is bad on
2091 # Always define AMTAR for backward compatibility.
2093 AMTAR=${AMTAR-"${am_missing_run}tar"}
2095 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2101 cat >>confdefs.h <<_ACEOF
2102 #define OPENLDAP_PACKAGE "$PACKAGE"
2106 cat >>confdefs.h <<_ACEOF
2107 #define OPENLDAP_VERSION "$VERSION"
2112 cat >>confdefs.h <<_ACEOF
2113 #define LDAP_VENDOR_VERSION $OL_API_INC
2117 cat >>confdefs.h <<_ACEOF
2118 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2122 cat >>confdefs.h <<_ACEOF
2123 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2127 cat >>confdefs.h <<_ACEOF
2128 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2132 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2134 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2136 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2139 ac_config_headers="$ac_config_headers include/portable.h include/ldap_features.h include/lber_types.h"
2141 echo "$as_me:$LINENO: checking configure arguments" >&5
2142 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2147 ldap_subdir="/openldap"
2150 # Check whether --with-subdir or --without-subdir was given.
2151 if test "${with_subdir+set}" = set; then
2152 withval="$with_subdir"
2159 ldap_subdir="$withval"
2162 ldap_subdir="/$withval"
2168 # OpenLDAP --enable-debug
2169 # Check whether --enable-debug or --disable-debug was given.
2170 if test "${enable_debug+set}" = set; then
2171 enableval="$enable_debug"
2174 for ol_val in auto yes no ; do
2175 if test "$enableval" = "$ol_val" ; then
2179 if test "$ol_arg" = "invalid" ; then
2180 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2181 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2182 { (exit 1); exit 1; }; }
2184 ol_enable_debug="$ol_arg"
2187 ol_enable_debug="yes"
2188 fi; # end --enable-debug
2189 # OpenLDAP --enable-dynamic
2190 # Check whether --enable-dynamic or --disable-dynamic was given.
2191 if test "${enable_dynamic+set}" = set; then
2192 enableval="$enable_dynamic"
2195 for ol_val in auto yes no ; do
2196 if test "$enableval" = "$ol_val" ; then
2200 if test "$ol_arg" = "invalid" ; then
2201 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2202 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2203 { (exit 1); exit 1; }; }
2205 ol_enable_dynamic="$ol_arg"
2208 ol_enable_dynamic="no"
2209 fi; # end --enable-dynamic
2210 # OpenLDAP --enable-syslog
2211 # Check whether --enable-syslog or --disable-syslog was given.
2212 if test "${enable_syslog+set}" = set; then
2213 enableval="$enable_syslog"
2216 for ol_val in auto yes no ; do
2217 if test "$enableval" = "$ol_val" ; then
2221 if test "$ol_arg" = "invalid" ; then
2222 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2223 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2224 { (exit 1); exit 1; }; }
2226 ol_enable_syslog="$ol_arg"
2229 ol_enable_syslog="auto"
2230 fi; # end --enable-syslog
2231 # OpenLDAP --enable-proctitle
2232 # Check whether --enable-proctitle or --disable-proctitle was given.
2233 if test "${enable_proctitle+set}" = set; then
2234 enableval="$enable_proctitle"
2237 for ol_val in auto yes no ; do
2238 if test "$enableval" = "$ol_val" ; then
2242 if test "$ol_arg" = "invalid" ; then
2243 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2244 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2245 { (exit 1); exit 1; }; }
2247 ol_enable_proctitle="$ol_arg"
2250 ol_enable_proctitle="yes"
2251 fi; # end --enable-proctitle
2252 ol_enable_referrals=${ol_enable_referrals-no}
2253 ol_enable_kbind=${ol_enable_kbind-no}
2254 # OpenLDAP --enable-ipv6
2255 # Check whether --enable-ipv6 or --disable-ipv6 was given.
2256 if test "${enable_ipv6+set}" = set; then
2257 enableval="$enable_ipv6"
2260 for ol_val in auto yes no ; do
2261 if test "$enableval" = "$ol_val" ; then
2265 if test "$ol_arg" = "invalid" ; then
2266 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2267 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2268 { (exit 1); exit 1; }; }
2270 ol_enable_ipv6="$ol_arg"
2273 ol_enable_ipv6="auto"
2274 fi; # end --enable-ipv6
2275 # OpenLDAP --enable-local
2276 # Check whether --enable-local or --disable-local was given.
2277 if test "${enable_local+set}" = set; then
2278 enableval="$enable_local"
2281 for ol_val in auto yes no ; do
2282 if test "$enableval" = "$ol_val" ; then
2286 if test "$ol_arg" = "invalid" ; then
2287 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2288 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2289 { (exit 1); exit 1; }; }
2291 ol_enable_local="$ol_arg"
2294 ol_enable_local="auto"
2295 fi; # end --enable-local
2298 # OpenLDAP --with-cyrus_sasl
2300 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2301 if test "${with_cyrus_sasl+set}" = set; then
2302 withval="$with_cyrus_sasl"
2305 for ol_val in auto yes no ; do
2306 if test "$withval" = "$ol_val" ; then
2310 if test "$ol_arg" = "invalid" ; then
2311 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2312 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2313 { (exit 1); exit 1; }; }
2315 ol_with_cyrus_sasl="$ol_arg"
2318 ol_with_cyrus_sasl="auto"
2319 fi; # end --with-cyrus_sasl
2321 # OpenLDAP --with-fetch
2323 # Check whether --with-fetch or --without-fetch was given.
2324 if test "${with_fetch+set}" = set; then
2325 withval="$with_fetch"
2328 for ol_val in auto yes no ; do
2329 if test "$withval" = "$ol_val" ; then
2333 if test "$ol_arg" = "invalid" ; then
2334 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2335 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2336 { (exit 1); exit 1; }; }
2338 ol_with_fetch="$ol_arg"
2341 ol_with_fetch="auto"
2342 fi; # end --with-fetch
2344 ol_with_kerberos=${ol_with_kerberos-auto}
2345 # OpenLDAP --with-threads
2347 # Check whether --with-threads or --without-threads was given.
2348 if test "${with_threads+set}" = set; then
2349 withval="$with_threads"
2352 for ol_val in auto nt posix mach pth lwp yes no manual ; do
2353 if test "$withval" = "$ol_val" ; then
2357 if test "$ol_arg" = "invalid" ; then
2358 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2359 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2360 { (exit 1); exit 1; }; }
2362 ol_with_threads="$ol_arg"
2365 ol_with_threads="auto"
2366 fi; # end --with-threads
2368 # OpenLDAP --with-tls
2370 # Check whether --with-tls or --without-tls was given.
2371 if test "${with_tls+set}" = set; then
2375 for ol_val in auto ssleay openssl yes no ; do
2376 if test "$withval" = "$ol_val" ; then
2380 if test "$ol_arg" = "invalid" ; then
2381 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2382 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2383 { (exit 1); exit 1; }; }
2385 ol_with_tls="$ol_arg"
2389 fi; # end --with-tls
2391 # OpenLDAP --with-yielding_select
2393 # Check whether --with-yielding_select or --without-yielding_select was given.
2394 if test "${with_yielding_select+set}" = set; then
2395 withval="$with_yielding_select"
2398 for ol_val in auto yes no manual ; do
2399 if test "$withval" = "$ol_val" ; then
2403 if test "$ol_arg" = "invalid" ; then
2404 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2405 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2406 { (exit 1); exit 1; }; }
2408 ol_with_yielding_select="$ol_arg"
2411 ol_with_yielding_select="auto"
2412 fi; # end --with-yielding_select
2414 # OpenLDAP --with-multiple_precision
2416 # Check whether --with-multiple_precision or --without-multiple_precision was given.
2417 if test "${with_multiple_precision+set}" = set; then
2418 withval="$with_multiple_precision"
2421 for ol_val in auto bignum gmp yes no ; do
2422 if test "$withval" = "$ol_val" ; then
2426 if test "$ol_arg" = "invalid" ; then
2427 { { echo "$as_me:$LINENO: error: bad value $withval for --with-multiple_precision" >&5
2428 echo "$as_me: error: bad value $withval for --with-multiple_precision" >&2;}
2429 { (exit 1); exit 1; }; }
2431 ol_with_multiple_precision="$ol_arg"
2434 ol_with_multiple_precision="auto"
2435 fi; # end --with-multiple_precision
2440 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
2441 if test "${with_xxslapdoptions+set}" = set; then
2442 withval="$with_xxslapdoptions"
2445 # OpenLDAP --enable-slapd
2446 # Check whether --enable-slapd or --disable-slapd was given.
2447 if test "${enable_slapd+set}" = set; then
2448 enableval="$enable_slapd"
2451 for ol_val in auto yes no ; do
2452 if test "$enableval" = "$ol_val" ; then
2456 if test "$ol_arg" = "invalid" ; then
2457 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2458 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2459 { (exit 1); exit 1; }; }
2461 ol_enable_slapd="$ol_arg"
2464 ol_enable_slapd="yes"
2465 fi; # end --enable-slapd
2466 # OpenLDAP --enable-aci
2467 # Check whether --enable-aci or --disable-aci was given.
2468 if test "${enable_aci+set}" = set; then
2469 enableval="$enable_aci"
2472 for ol_val in auto yes no ; do
2473 if test "$enableval" = "$ol_val" ; then
2477 if test "$ol_arg" = "invalid" ; then
2478 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2479 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2480 { (exit 1); exit 1; }; }
2482 ol_enable_aci="$ol_arg"
2486 fi; # end --enable-aci
2487 # OpenLDAP --enable-cleartext
2488 # Check whether --enable-cleartext or --disable-cleartext was given.
2489 if test "${enable_cleartext+set}" = set; then
2490 enableval="$enable_cleartext"
2493 for ol_val in auto yes no ; do
2494 if test "$enableval" = "$ol_val" ; then
2498 if test "$ol_arg" = "invalid" ; then
2499 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2500 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2501 { (exit 1); exit 1; }; }
2503 ol_enable_cleartext="$ol_arg"
2506 ol_enable_cleartext="yes"
2507 fi; # end --enable-cleartext
2508 # OpenLDAP --enable-crypt
2509 # Check whether --enable-crypt or --disable-crypt was given.
2510 if test "${enable_crypt+set}" = set; then
2511 enableval="$enable_crypt"
2514 for ol_val in auto yes no ; do
2515 if test "$enableval" = "$ol_val" ; then
2519 if test "$ol_arg" = "invalid" ; then
2520 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2521 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2522 { (exit 1); exit 1; }; }
2524 ol_enable_crypt="$ol_arg"
2527 ol_enable_crypt="no"
2528 fi; # end --enable-crypt
2529 # OpenLDAP --enable-lmpasswd
2530 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2531 if test "${enable_lmpasswd+set}" = set; then
2532 enableval="$enable_lmpasswd"
2535 for ol_val in auto yes no ; do
2536 if test "$enableval" = "$ol_val" ; then
2540 if test "$ol_arg" = "invalid" ; then
2541 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2542 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2543 { (exit 1); exit 1; }; }
2545 ol_enable_lmpasswd="$ol_arg"
2548 ol_enable_lmpasswd="no"
2549 fi; # end --enable-lmpasswd
2550 # OpenLDAP --enable-spasswd
2551 # Check whether --enable-spasswd or --disable-spasswd was given.
2552 if test "${enable_spasswd+set}" = set; then
2553 enableval="$enable_spasswd"
2556 for ol_val in auto yes no ; do
2557 if test "$enableval" = "$ol_val" ; then
2561 if test "$ol_arg" = "invalid" ; then
2562 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2563 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2564 { (exit 1); exit 1; }; }
2566 ol_enable_spasswd="$ol_arg"
2569 ol_enable_spasswd="no"
2570 fi; # end --enable-spasswd
2571 # OpenLDAP --enable-modules
2572 # Check whether --enable-modules or --disable-modules was given.
2573 if test "${enable_modules+set}" = set; then
2574 enableval="$enable_modules"
2577 for ol_val in auto yes no ; do
2578 if test "$enableval" = "$ol_val" ; then
2582 if test "$ol_arg" = "invalid" ; then
2583 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2584 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2585 { (exit 1); exit 1; }; }
2587 ol_enable_modules="$ol_arg"
2590 ol_enable_modules="no"
2591 fi; # end --enable-modules
2592 ol_enable_multimaster=${ol_enable_multimaster-no}
2593 # OpenLDAP --enable-rewrite
2594 # Check whether --enable-rewrite or --disable-rewrite was given.
2595 if test "${enable_rewrite+set}" = set; then
2596 enableval="$enable_rewrite"
2599 for ol_val in auto yes no ; do
2600 if test "$enableval" = "$ol_val" ; then
2604 if test "$ol_arg" = "invalid" ; then
2605 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2606 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2607 { (exit 1); exit 1; }; }
2609 ol_enable_rewrite="$ol_arg"
2612 ol_enable_rewrite="auto"
2613 fi; # end --enable-rewrite
2614 # OpenLDAP --enable-rlookups
2615 # Check whether --enable-rlookups or --disable-rlookups was given.
2616 if test "${enable_rlookups+set}" = set; then
2617 enableval="$enable_rlookups"
2620 for ol_val in auto yes no ; do
2621 if test "$enableval" = "$ol_val" ; then
2625 if test "$ol_arg" = "invalid" ; then
2626 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2627 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2628 { (exit 1); exit 1; }; }
2630 ol_enable_rlookups="$ol_arg"
2633 ol_enable_rlookups="no"
2634 fi; # end --enable-rlookups
2635 # OpenLDAP --enable-slapi
2636 # Check whether --enable-slapi or --disable-slapi was given.
2637 if test "${enable_slapi+set}" = set; then
2638 enableval="$enable_slapi"
2641 for ol_val in auto yes no ; do
2642 if test "$enableval" = "$ol_val" ; then
2646 if test "$ol_arg" = "invalid" ; then
2647 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2648 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2649 { (exit 1); exit 1; }; }
2651 ol_enable_slapi="$ol_arg"
2654 ol_enable_slapi="no"
2655 fi; # end --enable-slapi
2656 # OpenLDAP --enable-slp
2657 # Check whether --enable-slp or --disable-slp was given.
2658 if test "${enable_slp+set}" = set; then
2659 enableval="$enable_slp"
2662 for ol_val in auto yes no ; do
2663 if test "$enableval" = "$ol_val" ; then
2667 if test "$ol_arg" = "invalid" ; then
2668 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2669 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2670 { (exit 1); exit 1; }; }
2672 ol_enable_slp="$ol_arg"
2676 fi; # end --enable-slp
2677 # OpenLDAP --enable-wrappers
2678 # Check whether --enable-wrappers or --disable-wrappers was given.
2679 if test "${enable_wrappers+set}" = set; then
2680 enableval="$enable_wrappers"
2683 for ol_val in auto yes no ; do
2684 if test "$enableval" = "$ol_val" ; then
2688 if test "$ol_arg" = "invalid" ; then
2689 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2690 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2691 { (exit 1); exit 1; }; }
2693 ol_enable_wrappers="$ol_arg"
2696 ol_enable_wrappers="no"
2697 fi; # end --enable-wrappers
2699 Backends="bdb dnssrv hdb ldap ldbm meta monitor null \
2700 passwd perl relay shell sql"
2703 # Check whether --with-xxslapbackends or --without-xxslapbackends was given.
2704 if test "${with_xxslapbackends+set}" = set; then
2705 withval="$with_xxslapbackends"
2709 # OpenLDAP --enable-backends
2710 # Check whether --enable-backends or --disable-backends was given.
2711 if test "${enable_backends+set}" = set; then
2712 enableval="$enable_backends"
2715 for ol_val in no yes mod ; do
2716 if test "$enableval" = "$ol_val" ; then
2720 if test "$ol_arg" = "invalid" ; then
2721 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2722 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2723 { (exit 1); exit 1; }; }
2725 ol_enable_backends="$ol_arg"
2727 fi; # end --enable-backends
2728 test -n "$ol_enable_backends" && ol_dflt_backends="$ol_enable_backends"
2729 # OpenLDAP --enable-bdb
2730 # Check whether --enable-bdb or --disable-bdb was given.
2731 if test "${enable_bdb+set}" = set; then
2732 enableval="$enable_bdb"
2735 for ol_val in no yes mod ; do
2736 if test "$enableval" = "$ol_val" ; then
2740 if test "$ol_arg" = "invalid" ; then
2741 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2742 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2743 { (exit 1); exit 1; }; }
2745 ol_enable_bdb="$ol_arg"
2748 ol_enable_bdb="${ol_dflt_backends-yes}"
2749 fi; # end --enable-bdb
2750 # OpenLDAP --enable-dnssrv
2751 # Check whether --enable-dnssrv or --disable-dnssrv was given.
2752 if test "${enable_dnssrv+set}" = set; then
2753 enableval="$enable_dnssrv"
2756 for ol_val in no yes mod ; do
2757 if test "$enableval" = "$ol_val" ; then
2761 if test "$ol_arg" = "invalid" ; then
2762 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2763 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2764 { (exit 1); exit 1; }; }
2766 ol_enable_dnssrv="$ol_arg"
2769 ol_enable_dnssrv="${ol_dflt_backends-no}"
2770 fi; # end --enable-dnssrv
2771 # OpenLDAP --enable-hdb
2772 # Check whether --enable-hdb or --disable-hdb was given.
2773 if test "${enable_hdb+set}" = set; then
2774 enableval="$enable_hdb"
2777 for ol_val in no yes mod ; do
2778 if test "$enableval" = "$ol_val" ; then
2782 if test "$ol_arg" = "invalid" ; then
2783 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2784 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2785 { (exit 1); exit 1; }; }
2787 ol_enable_hdb="$ol_arg"
2790 ol_enable_hdb="${ol_dflt_backends-yes}"
2791 fi; # end --enable-hdb
2792 # OpenLDAP --enable-ldap
2793 # Check whether --enable-ldap or --disable-ldap was given.
2794 if test "${enable_ldap+set}" = set; then
2795 enableval="$enable_ldap"
2798 for ol_val in no yes mod ; do
2799 if test "$enableval" = "$ol_val" ; then
2803 if test "$ol_arg" = "invalid" ; then
2804 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2805 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2806 { (exit 1); exit 1; }; }
2808 ol_enable_ldap="$ol_arg"
2811 ol_enable_ldap="${ol_dflt_backends-no}"
2812 fi; # end --enable-ldap
2813 # OpenLDAP --enable-ldbm
2814 # Check whether --enable-ldbm or --disable-ldbm was given.
2815 if test "${enable_ldbm+set}" = set; then
2816 enableval="$enable_ldbm"
2819 for ol_val in no yes mod ; do
2820 if test "$enableval" = "$ol_val" ; then
2824 if test "$ol_arg" = "invalid" ; then
2825 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm" >&5
2826 echo "$as_me: error: bad value $enableval for --enable-ldbm" >&2;}
2827 { (exit 1); exit 1; }; }
2829 ol_enable_ldbm="$ol_arg"
2832 ol_enable_ldbm="${ol_dflt_backends-no}"
2833 fi; # end --enable-ldbm
2834 # OpenLDAP --with-ldbm_api
2836 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2837 if test "${with_ldbm_api+set}" = set; then
2838 withval="$with_ldbm_api"
2841 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2842 if test "$withval" = "$ol_val" ; then
2846 if test "$ol_arg" = "invalid" ; then
2847 { { echo "$as_me:$LINENO: error: bad value $withval for --with-ldbm_api" >&5
2848 echo "$as_me: error: bad value $withval for --with-ldbm_api" >&2;}
2849 { (exit 1); exit 1; }; }
2851 ol_with_ldbm_api="$ol_arg"
2854 ol_with_ldbm_api="auto"
2855 fi; # end --with-ldbm_api
2857 # OpenLDAP --with-ldbm_type
2859 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2860 if test "${with_ldbm_type+set}" = set; then
2861 withval="$with_ldbm_type"
2864 for ol_val in auto btree hash ; do
2865 if test "$withval" = "$ol_val" ; then
2869 if test "$ol_arg" = "invalid" ; then
2870 { { echo "$as_me:$LINENO: error: bad value $withval for --with-ldbm_type" >&5
2871 echo "$as_me: error: bad value $withval for --with-ldbm_type" >&2;}
2872 { (exit 1); exit 1; }; }
2874 ol_with_ldbm_type="$ol_arg"
2877 ol_with_ldbm_type="auto"
2878 fi; # end --with-ldbm_type
2880 # OpenLDAP --enable-meta
2881 # Check whether --enable-meta or --disable-meta was given.
2882 if test "${enable_meta+set}" = set; then
2883 enableval="$enable_meta"
2886 for ol_val in no yes mod ; do
2887 if test "$enableval" = "$ol_val" ; then
2891 if test "$ol_arg" = "invalid" ; then
2892 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2893 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2894 { (exit 1); exit 1; }; }
2896 ol_enable_meta="$ol_arg"
2899 ol_enable_meta="${ol_dflt_backends-no}"
2900 fi; # end --enable-meta
2901 # OpenLDAP --enable-monitor
2902 # Check whether --enable-monitor or --disable-monitor was given.
2903 if test "${enable_monitor+set}" = set; then
2904 enableval="$enable_monitor"
2907 for ol_val in no yes mod ; do
2908 if test "$enableval" = "$ol_val" ; then
2912 if test "$ol_arg" = "invalid" ; then
2913 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
2914 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
2915 { (exit 1); exit 1; }; }
2917 ol_enable_monitor="$ol_arg"
2920 ol_enable_monitor="${ol_dflt_backends-yes}"
2921 fi; # end --enable-monitor
2922 # OpenLDAP --enable-null
2923 # Check whether --enable-null or --disable-null was given.
2924 if test "${enable_null+set}" = set; then
2925 enableval="$enable_null"
2928 for ol_val in no yes mod ; do
2929 if test "$enableval" = "$ol_val" ; then
2933 if test "$ol_arg" = "invalid" ; then
2934 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
2935 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
2936 { (exit 1); exit 1; }; }
2938 ol_enable_null="$ol_arg"
2941 ol_enable_null="${ol_dflt_backends-no}"
2942 fi; # end --enable-null
2943 # OpenLDAP --enable-passwd
2944 # Check whether --enable-passwd or --disable-passwd was given.
2945 if test "${enable_passwd+set}" = set; then
2946 enableval="$enable_passwd"
2949 for ol_val in no yes mod ; do
2950 if test "$enableval" = "$ol_val" ; then
2954 if test "$ol_arg" = "invalid" ; then
2955 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
2956 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
2957 { (exit 1); exit 1; }; }
2959 ol_enable_passwd="$ol_arg"
2962 ol_enable_passwd="${ol_dflt_backends-no}"
2963 fi; # end --enable-passwd
2964 # OpenLDAP --enable-perl
2965 # Check whether --enable-perl or --disable-perl was given.
2966 if test "${enable_perl+set}" = set; then
2967 enableval="$enable_perl"
2970 for ol_val in no yes mod ; do
2971 if test "$enableval" = "$ol_val" ; then
2975 if test "$ol_arg" = "invalid" ; then
2976 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
2977 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
2978 { (exit 1); exit 1; }; }
2980 ol_enable_perl="$ol_arg"
2983 ol_enable_perl="${ol_dflt_backends-no}"
2984 fi; # end --enable-perl
2985 # OpenLDAP --enable-relay
2986 # Check whether --enable-relay or --disable-relay was given.
2987 if test "${enable_relay+set}" = set; then
2988 enableval="$enable_relay"
2991 for ol_val in no yes mod ; do
2992 if test "$enableval" = "$ol_val" ; then
2996 if test "$ol_arg" = "invalid" ; then
2997 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
2998 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
2999 { (exit 1); exit 1; }; }
3001 ol_enable_relay="$ol_arg"
3004 ol_enable_relay="${ol_dflt_backends-yes}"
3005 fi; # end --enable-relay
3006 # OpenLDAP --enable-shell
3007 # Check whether --enable-shell or --disable-shell was given.
3008 if test "${enable_shell+set}" = set; then
3009 enableval="$enable_shell"
3012 for ol_val in no yes mod ; do
3013 if test "$enableval" = "$ol_val" ; then
3017 if test "$ol_arg" = "invalid" ; then
3018 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3019 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3020 { (exit 1); exit 1; }; }
3022 ol_enable_shell="$ol_arg"
3025 ol_enable_shell="${ol_dflt_backends-no}"
3026 fi; # end --enable-shell
3027 # OpenLDAP --enable-sql
3028 # Check whether --enable-sql or --disable-sql was given.
3029 if test "${enable_sql+set}" = set; then
3030 enableval="$enable_sql"
3033 for ol_val in no yes mod ; do
3034 if test "$enableval" = "$ol_val" ; then
3038 if test "$ol_arg" = "invalid" ; then
3039 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3040 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3041 { (exit 1); exit 1; }; }
3043 ol_enable_sql="$ol_arg"
3046 ol_enable_sql="${ol_dflt_backends-no}"
3047 fi; # end --enable-sql
3049 Overlays="accesslog denyop dyngroup dynlist glue lastmod ppolicy proxycache \
3050 refint retcode rwm syncprov translucent unique"
3053 # Check whether --with-xxslapoverlays or --without-xxslapoverlays was given.
3054 if test "${with_xxslapoverlays+set}" = set; then
3055 withval="$with_xxslapoverlays"
3059 # OpenLDAP --enable-overlays
3060 # Check whether --enable-overlays or --disable-overlays was given.
3061 if test "${enable_overlays+set}" = set; then
3062 enableval="$enable_overlays"
3065 for ol_val in no yes mod ; do
3066 if test "$enableval" = "$ol_val" ; then
3070 if test "$ol_arg" = "invalid" ; then
3071 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3072 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3073 { (exit 1); exit 1; }; }
3075 ol_enable_overlays="$ol_arg"
3077 fi; # end --enable-overlays
3078 test -n "$ol_enable_overlays" && ol_dflt_overlays="$ol_enable_overlays"
3079 # OpenLDAP --enable-accesslog
3080 # Check whether --enable-accesslog or --disable-accesslog was given.
3081 if test "${enable_accesslog+set}" = set; then
3082 enableval="$enable_accesslog"
3085 for ol_val in no yes mod ; do
3086 if test "$enableval" = "$ol_val" ; then
3090 if test "$ol_arg" = "invalid" ; then
3091 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3092 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3093 { (exit 1); exit 1; }; }
3095 ol_enable_accesslog="$ol_arg"
3098 ol_enable_accesslog="${ol_dflt_overlays-no}"
3099 fi; # end --enable-accesslog
3101 # OpenLDAP --enable-denyop
3102 # Check whether --enable-denyop or --disable-denyop was given.
3103 if test "${enable_denyop+set}" = set; then
3104 enableval="$enable_denyop"
3107 for ol_val in no yes mod ; do
3108 if test "$enableval" = "$ol_val" ; then
3112 if test "$ol_arg" = "invalid" ; then
3113 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-denyop" >&5
3114 echo "$as_me: error: bad value $enableval for --enable-denyop" >&2;}
3115 { (exit 1); exit 1; }; }
3117 ol_enable_denyop="$ol_arg"
3120 ol_enable_denyop="${ol_dflt_overlays-no}"
3121 fi; # end --enable-denyop
3123 # OpenLDAP --enable-dyngroup
3124 # Check whether --enable-dyngroup or --disable-dyngroup was given.
3125 if test "${enable_dyngroup+set}" = set; then
3126 enableval="$enable_dyngroup"
3129 for ol_val in no yes mod ; do
3130 if test "$enableval" = "$ol_val" ; then
3134 if test "$ol_arg" = "invalid" ; then
3135 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3136 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3137 { (exit 1); exit 1; }; }
3139 ol_enable_dyngroup="$ol_arg"
3142 ol_enable_dyngroup="${ol_dflt_overlays-no}"
3143 fi; # end --enable-dyngroup
3145 # OpenLDAP --enable-dynlist
3146 # Check whether --enable-dynlist or --disable-dynlist was given.
3147 if test "${enable_dynlist+set}" = set; then
3148 enableval="$enable_dynlist"
3151 for ol_val in no yes mod ; do
3152 if test "$enableval" = "$ol_val" ; then
3156 if test "$ol_arg" = "invalid" ; then
3157 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3158 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3159 { (exit 1); exit 1; }; }
3161 ol_enable_dynlist="$ol_arg"
3164 ol_enable_dynlist="${ol_dflt_overlays-no}"
3165 fi; # end --enable-dynlist
3167 # OpenLDAP --enable-glue
3168 # Check whether --enable-glue or --disable-glue was given.
3169 if test "${enable_glue+set}" = set; then
3170 enableval="$enable_glue"
3173 for ol_val in no yes mod ; do
3174 if test "$enableval" = "$ol_val" ; then
3178 if test "$ol_arg" = "invalid" ; then
3179 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-glue" >&5
3180 echo "$as_me: error: bad value $enableval for --enable-glue" >&2;}
3181 { (exit 1); exit 1; }; }
3183 ol_enable_glue="$ol_arg"
3186 ol_enable_glue="${ol_dflt_overlays-yes}"
3187 fi; # end --enable-glue
3189 # OpenLDAP --enable-lastmod
3190 # Check whether --enable-lastmod or --disable-lastmod was given.
3191 if test "${enable_lastmod+set}" = set; then
3192 enableval="$enable_lastmod"
3195 for ol_val in no yes mod ; do
3196 if test "$enableval" = "$ol_val" ; then
3200 if test "$ol_arg" = "invalid" ; then
3201 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lastmod" >&5
3202 echo "$as_me: error: bad value $enableval for --enable-lastmod" >&2;}
3203 { (exit 1); exit 1; }; }
3205 ol_enable_lastmod="$ol_arg"
3208 ol_enable_lastmod="${ol_dflt_overlays-no}"
3209 fi; # end --enable-lastmod
3211 # OpenLDAP --enable-ppolicy
3212 # Check whether --enable-ppolicy or --disable-ppolicy was given.
3213 if test "${enable_ppolicy+set}" = set; then
3214 enableval="$enable_ppolicy"
3217 for ol_val in no yes mod ; do
3218 if test "$enableval" = "$ol_val" ; then
3222 if test "$ol_arg" = "invalid" ; then
3223 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3224 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3225 { (exit 1); exit 1; }; }
3227 ol_enable_ppolicy="$ol_arg"
3230 ol_enable_ppolicy="${ol_dflt_overlays-no}"
3231 fi; # end --enable-ppolicy
3233 # OpenLDAP --enable-proxycache
3234 # Check whether --enable-proxycache or --disable-proxycache was given.
3235 if test "${enable_proxycache+set}" = set; then
3236 enableval="$enable_proxycache"
3239 for ol_val in no yes mod ; do
3240 if test "$enableval" = "$ol_val" ; then
3244 if test "$ol_arg" = "invalid" ; then
3245 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3246 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3247 { (exit 1); exit 1; }; }
3249 ol_enable_proxycache="$ol_arg"
3252 ol_enable_proxycache="${ol_dflt_overlays-no}"
3253 fi; # end --enable-proxycache
3255 # OpenLDAP --enable-refint
3256 # Check whether --enable-refint or --disable-refint was given.
3257 if test "${enable_refint+set}" = set; then
3258 enableval="$enable_refint"
3261 for ol_val in no yes mod ; do
3262 if test "$enableval" = "$ol_val" ; then
3266 if test "$ol_arg" = "invalid" ; then
3267 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3268 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3269 { (exit 1); exit 1; }; }
3271 ol_enable_refint="$ol_arg"
3274 ol_enable_refint="${ol_dflt_overlays-no}"
3275 fi; # end --enable-refint
3277 # OpenLDAP --enable-retcode
3278 # Check whether --enable-retcode or --disable-retcode was given.
3279 if test "${enable_retcode+set}" = set; then
3280 enableval="$enable_retcode"
3283 for ol_val in no yes mod ; do
3284 if test "$enableval" = "$ol_val" ; then
3288 if test "$ol_arg" = "invalid" ; then
3289 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3290 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3291 { (exit 1); exit 1; }; }
3293 ol_enable_retcode="$ol_arg"
3296 ol_enable_retcode="${ol_dflt_overlays-no}"
3297 fi; # end --enable-retcode
3299 # OpenLDAP --enable-rwm
3300 # Check whether --enable-rwm or --disable-rwm was given.
3301 if test "${enable_rwm+set}" = set; then
3302 enableval="$enable_rwm"
3305 for ol_val in no yes mod ; do
3306 if test "$enableval" = "$ol_val" ; then
3310 if test "$ol_arg" = "invalid" ; then
3311 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3312 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3313 { (exit 1); exit 1; }; }
3315 ol_enable_rwm="$ol_arg"
3318 ol_enable_rwm="${ol_dflt_overlays-no}"
3319 fi; # end --enable-rwm
3321 # OpenLDAP --enable-syncprov
3322 # Check whether --enable-syncprov or --disable-syncprov was given.
3323 if test "${enable_syncprov+set}" = set; then
3324 enableval="$enable_syncprov"
3327 for ol_val in no yes mod ; do
3328 if test "$enableval" = "$ol_val" ; then
3332 if test "$ol_arg" = "invalid" ; then
3333 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3334 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3335 { (exit 1); exit 1; }; }
3337 ol_enable_syncprov="$ol_arg"
3340 ol_enable_syncprov="${ol_dflt_overlays-yes}"
3341 fi; # end --enable-syncprov
3343 # OpenLDAP --enable-translucent
3344 # Check whether --enable-translucent or --disable-translucent was given.
3345 if test "${enable_translucent+set}" = set; then
3346 enableval="$enable_translucent"
3349 for ol_val in no yes mod ; do
3350 if test "$enableval" = "$ol_val" ; then
3354 if test "$ol_arg" = "invalid" ; then
3355 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3356 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3357 { (exit 1); exit 1; }; }
3359 ol_enable_translucent="$ol_arg"
3362 ol_enable_translucent="${ol_dflt_overlays-no}"
3363 fi; # end --enable-translucent
3365 # OpenLDAP --enable-unique
3366 # Check whether --enable-unique or --disable-unique was given.
3367 if test "${enable_unique+set}" = set; then
3368 enableval="$enable_unique"
3371 for ol_val in no yes mod ; do
3372 if test "$enableval" = "$ol_val" ; then
3376 if test "$ol_arg" = "invalid" ; then
3377 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3378 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3379 { (exit 1); exit 1; }; }
3381 ol_enable_unique="$ol_arg"
3384 ol_enable_unique="${ol_dflt_overlays-no}"
3385 fi; # end --enable-unique
3390 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
3391 if test "${with_xxslurpdoptions+set}" = set; then
3392 withval="$with_xxslurpdoptions"
3395 # OpenLDAP --enable-slurpd
3396 # Check whether --enable-slurpd or --disable-slurpd was given.
3397 if test "${enable_slurpd+set}" = set; then
3398 enableval="$enable_slurpd"
3401 for ol_val in auto yes no ; do
3402 if test "$enableval" = "$ol_val" ; then
3406 if test "$ol_arg" = "invalid" ; then
3407 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slurpd" >&5
3408 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
3409 { (exit 1); exit 1; }; }
3411 ol_enable_slurpd="$ol_arg"
3414 ol_enable_slurpd="auto"
3415 fi; # end --enable-slurpd
3418 # Check whether --with-xxliboptions or --without-xxliboptions was given.
3419 if test "${with_xxliboptions+set}" = set; then
3420 withval="$with_xxliboptions"
3423 # Check whether --enable-static or --disable-static was given.
3424 if test "${enable_static+set}" = set; then
3425 enableval="$enable_static"
3426 p=${PACKAGE-default}
3428 yes) enable_static=yes ;;
3429 no) enable_static=no ;;
3432 # Look at the argument we got. We use all the common list separators.
3433 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3434 for pkg in $enableval; do
3436 if test "X$pkg" = "X$p"; then
3447 # Check whether --enable-shared or --disable-shared was given.
3448 if test "${enable_shared+set}" = set; then
3449 enableval="$enable_shared"
3450 p=${PACKAGE-default}
3452 yes) enable_shared=yes ;;
3453 no) enable_shared=no ;;
3456 # Look at the argument we got. We use all the common list separators.
3457 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3458 for pkg in $enableval; do
3460 if test "X$pkg" = "X$p"; then
3474 if test $ol_enable_slapd = no ; then
3475 if test $ol_enable_slapi = yes ; then
3476 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3477 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3479 case "$ol_enable_backends" in yes | mod)
3480 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3481 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3483 for i in $Backends; do
3484 eval "ol_tmp=\$ol_enable_$i"
3485 if test $ol_tmp != no ; then
3486 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3487 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3488 eval "ol_enable_$i=no"
3491 if test $ol_enable_modules = yes ; then
3492 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3493 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3495 if test $ol_enable_multimaster = yes ; then
3496 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&5
3497 echo "$as_me: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&2;}
3499 if test $ol_enable_wrappers = yes ; then
3500 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3501 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3503 if test $ol_enable_rlookups = yes ; then
3504 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3505 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3507 if test $ol_enable_aci = yes ; then
3508 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3509 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3511 if test $ol_with_ldbm_api != auto ; then
3512 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --with-ldbm-api argument" >&5
3513 echo "$as_me: WARNING: slapd disabled, ignoring --with-ldbm-api argument" >&2;}
3515 if test $ol_with_ldbm_type != auto ; then
3516 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --with-ldbm-type argument" >&5
3517 echo "$as_me: WARNING: slapd disabled, ignoring --with-ldbm-type argument" >&2;}
3519 if test $ol_enable_slurpd = yes ; then
3520 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3521 echo "$as_me: error: slurpd requires slapd" >&2;}
3522 { (exit 1); exit 1; }; }
3524 if test $ol_enable_rewrite = yes ; then
3525 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3526 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3528 case "$ol_enable_overlays" in yes | mod)
3529 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3530 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3532 for i in $Overlays; do
3533 eval "ol_tmp=\$ol_enable_$i"
3534 if test $ol_tmp != no ; then
3535 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3536 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3537 eval "ol_enable_$i=no"
3541 # force settings to no
3546 ol_enable_modules=no
3547 ol_enable_multimaster=no
3548 ol_enable_rlookups=no
3550 ol_enable_wrappers=no
3553 ol_with_ldbm_type=no
3557 ol_enable_rewrite=no
3559 elif test $ol_enable_ldbm = no ; then
3561 if test $ol_with_ldbm_api != auto ; then
3562 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --with-ldbm-api argument" >&5
3563 echo "$as_me: WARNING: LDBM disabled, ignoring --with-ldbm-api argument" >&2;}
3566 if test $ol_with_ldbm_type != auto ; then
3567 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --with-ldbm-type argument" >&5
3568 echo "$as_me: WARNING: LDBM disabled, ignoring --with-ldbm-type argument" >&2;}
3571 if test $ol_enable_modules != yes -a \
3572 $ol_enable_bdb = no -a \
3573 $ol_enable_dnssrv = no -a \
3574 $ol_enable_hdb = no -a \
3575 $ol_enable_ldap = no -a \
3576 $ol_enable_meta = no -a \
3577 $ol_enable_monitor = no -a \
3578 $ol_enable_null = no -a \
3579 $ol_enable_passwd = no -a \
3580 $ol_enable_perl = no -a \
3581 $ol_enable_relay = no -a \
3582 $ol_enable_shell = no -a \
3583 $ol_enable_sql = no ; then
3585 if test $ol_enable_slapd = yes ; then
3586 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3587 echo "$as_me: error: slapd requires a backend" >&2;}
3588 { (exit 1); exit 1; }; }
3590 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3591 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3597 ol_with_ldbm_type=no
3599 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
3600 ol_with_ldbm_api=berkeley
3604 if test $ol_with_ldbm_api = gdbm -a \
3605 $ol_with_ldbm_type = btree ; then
3606 { { echo "$as_me:$LINENO: error: GDBM only supports LDBM type hash" >&5
3607 echo "$as_me: error: GDBM only supports LDBM type hash" >&2;}
3608 { (exit 1); exit 1; }; }
3610 if test $ol_with_ldbm_api = mdbm -a \
3611 $ol_with_ldbm_type = btree ; then
3612 { { echo "$as_me:$LINENO: error: MDBM only supports LDBM type hash" >&5
3613 echo "$as_me: error: MDBM only supports LDBM type hash" >&2;}
3614 { (exit 1); exit 1; }; }
3616 if test $ol_with_ldbm_api = ndbm -a \
3617 $ol_with_ldbm_type = btree ; then
3618 { { echo "$as_me:$LINENO: error: NDBM only supports LDBM type hash" >&5
3619 echo "$as_me: error: NDBM only supports LDBM type hash" >&2;}
3620 { (exit 1); exit 1; }; }
3623 if test $ol_enable_bdb != no -o $ol_enable_hdb != no ; then
3624 if test $ol_with_ldbm_api = auto ; then
3625 ol_with_ldbm_api=berkeley
3626 elif test $ol_with_ldbm_api != berkeley ; then
3627 { { echo "$as_me:$LINENO: error: LDBM API not compatible with BDB/HDB" >&5
3628 echo "$as_me: error: LDBM API not compatible with BDB/HDB" >&2;}
3629 { (exit 1); exit 1; }; }
3634 if test $ol_enable_meta = yes -a $ol_enable_ldap = no ; then
3635 { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3636 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3637 { (exit 1); exit 1; }; }
3640 if test $ol_enable_slurpd = yes ; then
3641 if test $ol_with_threads = no ; then
3642 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3643 echo "$as_me: error: slurpd requires threads" >&2;}
3644 { (exit 1); exit 1; }; }
3648 if test $ol_enable_lmpasswd = yes ; then
3649 if test $ol_with_tls = no ; then
3650 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3651 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3652 { (exit 1); exit 1; }; }
3656 if test $ol_enable_kbind = yes ; then
3657 if test $ol_with_kerberos = no ; then
3658 { { echo "$as_me:$LINENO: error: options require --with-kerberos" >&5
3659 echo "$as_me: error: options require --with-kerberos" >&2;}
3660 { (exit 1); exit 1; }; }
3661 elif test $ol_with_kerberos = auto ; then
3662 ol_with_kerberos=yes
3665 elif test $ol_enable_kbind = no ; then
3666 if test $ol_with_kerberos = auto ; then
3668 elif test $ol_with_kerberos != no ; then
3669 { echo "$as_me:$LINENO: WARNING: Kerberos detection enabled unnecessarily" >&5
3670 echo "$as_me: WARNING: Kerberos detection enabled unnecessarily" >&2;};
3675 if test $ol_enable_spasswd = yes ; then
3676 if test $ol_with_cyrus_sasl = no ; then
3677 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3678 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3679 { (exit 1); exit 1; }; }
3681 ol_with_cyrus_sasl=yes
3684 echo "$as_me:$LINENO: result: done" >&5
3685 echo "${ECHO_T}done" >&6
3729 BUILD_TRANSLUCENT=no
3732 SLAPD_STATIC_OVERLAYS=
3733 SLAPD_DYNAMIC_OVERLAYS=
3735 SLAPD_MODULES_LDFLAGS=
3736 SLAPD_MODULES_CPPFLAGS=
3738 SLAPD_STATIC_BACKENDS=back-ldif
3739 SLAPD_DYNAMIC_BACKENDS=
3764 cat >>confdefs.h <<\_ACEOF
3765 #define HAVE_MKVERSION 1
3773 *-*-aix*) if test -z "$CC" ; then
3774 case "$ol_with_threads" in
3775 auto | yes | posix) ol_aix_threads=yes ;;
3781 if test $ol_aix_threads = yes ; then
3782 if test -z "${CC}" ; then
3783 for ac_prog in cc_r xlc_r cc
3785 # Extract the first word of "$ac_prog", so it can be a program name with args.
3786 set dummy $ac_prog; ac_word=$2
3787 echo "$as_me:$LINENO: checking for $ac_word" >&5
3788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3789 if test "${ac_cv_prog_CC+set}" = set; then
3790 echo $ECHO_N "(cached) $ECHO_C" >&6
3792 if test -n "$CC"; then
3793 ac_cv_prog_CC="$CC" # Let the user override the test.
3795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3799 test -z "$as_dir" && as_dir=.
3800 for ac_exec_ext in '' $ac_executable_extensions; do
3801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3802 ac_cv_prog_CC="$ac_prog"
3803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3812 if test -n "$CC"; then
3813 echo "$as_me:$LINENO: result: $CC" >&5
3814 echo "${ECHO_T}$CC" >&6
3816 echo "$as_me:$LINENO: result: no" >&5
3817 echo "${ECHO_T}no" >&6
3820 test -n "$CC" && break
3824 if test "$CC" = cc ; then
3825 if test $ol_with_threads != auto ; then
3826 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3827 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3828 { (exit 1); exit 1; }; }
3830 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
3831 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
3837 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
3838 ol_with_threads=posix
3839 ol_cv_pthread_create=yes
3843 if test -z "${CC}"; then
3844 for ac_prog in cc gcc
3846 # Extract the first word of "$ac_prog", so it can be a program name with args.
3847 set dummy $ac_prog; ac_word=$2
3848 echo "$as_me:$LINENO: checking for $ac_word" >&5
3849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3850 if test "${ac_cv_prog_CC+set}" = set; then
3851 echo $ECHO_N "(cached) $ECHO_C" >&6
3853 if test -n "$CC"; then
3854 ac_cv_prog_CC="$CC" # Let the user override the test.
3856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3860 test -z "$as_dir" && as_dir=.
3861 for ac_exec_ext in '' $ac_executable_extensions; do
3862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3863 ac_cv_prog_CC="$ac_prog"
3864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3873 if test -n "$CC"; then
3874 echo "$as_me:$LINENO: result: $CC" >&5
3875 echo "${ECHO_T}$CC" >&6
3877 echo "$as_me:$LINENO: result: no" >&5
3878 echo "${ECHO_T}no" >&6
3881 test -n "$CC" && break
3883 test -n "$CC" || CC="missing"
3886 if test "${CC}" = "missing" ; then
3887 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&5
3888 echo "$as_me: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&2;}
3889 { (exit 1); exit 1; }; }
3893 if test -z "${AR}"; then
3894 for ac_prog in ar gar
3896 # Extract the first word of "$ac_prog", so it can be a program name with args.
3897 set dummy $ac_prog; ac_word=$2
3898 echo "$as_me:$LINENO: checking for $ac_word" >&5
3899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3900 if test "${ac_cv_prog_AR+set}" = set; then
3901 echo $ECHO_N "(cached) $ECHO_C" >&6
3903 if test -n "$AR"; then
3904 ac_cv_prog_AR="$AR" # Let the user override the test.
3906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3910 test -z "$as_dir" && as_dir=.
3911 for ac_exec_ext in '' $ac_executable_extensions; do
3912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3913 ac_cv_prog_AR="$ac_prog"
3914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3923 if test -n "$AR"; then
3924 echo "$as_me:$LINENO: result: $AR" >&5
3925 echo "${ECHO_T}$AR" >&6
3927 echo "$as_me:$LINENO: result: no" >&5
3928 echo "${ECHO_T}no" >&6
3931 test -n "$AR" && break
3933 test -n "$AR" || AR="missing"
3936 if test "${AR}" = "missing" ; then
3937 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&5
3938 echo "$as_me: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&2;}
3939 { (exit 1); exit 1; }; }
3947 # Check whether --enable-fast-install or --disable-fast-install was given.
3948 if test "${enable_fast_install+set}" = set; then
3949 enableval="$enable_fast_install"
3950 p=${PACKAGE-default}
3952 yes) enable_fast_install=yes ;;
3953 no) enable_fast_install=no ;;
3955 enable_fast_install=no
3956 # Look at the argument we got. We use all the common list separators.
3957 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3958 for pkg in $enableval; do
3960 if test "X$pkg" = "X$p"; then
3961 enable_fast_install=yes
3968 enable_fast_install=yes
3971 DEPDIR="${am__leading_dot}deps"
3973 ac_config_commands="$ac_config_commands depfiles"
3976 am_make=${MAKE-make}
3977 cat > confinc << 'END'
3982 # If we don't find an include directive, just comment out the code.
3983 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3984 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3988 # First try GNU make style include.
3989 echo "include confinc" > confmf
3990 # We grep out `Entering directory' and `Leaving directory'
3991 # messages which can occur if `w' ends up in MAKEFLAGS.
3992 # In particular we don't look at `^make:' because GNU make might
3993 # be invoked under some other name (usually "gmake"), in which
3994 # case it prints its new name instead of `make'.
3995 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4000 # Now try BSD make style include.
4001 if test "$am__include" = "#"; then
4002 echo '.include "confinc"' > confmf
4003 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4004 am__include=.include
4011 echo "$as_me:$LINENO: result: $_am_result" >&5
4012 echo "${ECHO_T}$_am_result" >&6
4013 rm -f confinc confmf
4015 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4016 if test "${enable_dependency_tracking+set}" = set; then
4017 enableval="$enable_dependency_tracking"
4020 if test "x$enable_dependency_tracking" != xno; then
4021 am_depcomp="$ac_aux_dir/depcomp"
4026 if test "x$enable_dependency_tracking" != xno; then
4037 ac_cpp='$CPP $CPPFLAGS'
4038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4041 if test -n "$ac_tool_prefix"; then
4042 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4043 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4044 echo "$as_me:$LINENO: checking for $ac_word" >&5
4045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4046 if test "${ac_cv_prog_CC+set}" = set; then
4047 echo $ECHO_N "(cached) $ECHO_C" >&6
4049 if test -n "$CC"; then
4050 ac_cv_prog_CC="$CC" # Let the user override the test.
4052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4056 test -z "$as_dir" && as_dir=.
4057 for ac_exec_ext in '' $ac_executable_extensions; do
4058 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4059 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4069 if test -n "$CC"; then
4070 echo "$as_me:$LINENO: result: $CC" >&5
4071 echo "${ECHO_T}$CC" >&6
4073 echo "$as_me:$LINENO: result: no" >&5
4074 echo "${ECHO_T}no" >&6
4078 if test -z "$ac_cv_prog_CC"; then
4080 # Extract the first word of "gcc", so it can be a program name with args.
4081 set dummy gcc; ac_word=$2
4082 echo "$as_me:$LINENO: checking for $ac_word" >&5
4083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4084 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4085 echo $ECHO_N "(cached) $ECHO_C" >&6
4087 if test -n "$ac_ct_CC"; then
4088 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094 test -z "$as_dir" && as_dir=.
4095 for ac_exec_ext in '' $ac_executable_extensions; do
4096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4097 ac_cv_prog_ac_ct_CC="gcc"
4098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4106 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4107 if test -n "$ac_ct_CC"; then
4108 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4109 echo "${ECHO_T}$ac_ct_CC" >&6
4111 echo "$as_me:$LINENO: result: no" >&5
4112 echo "${ECHO_T}no" >&6
4120 if test -z "$CC"; then
4121 if test -n "$ac_tool_prefix"; then
4122 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4123 set dummy ${ac_tool_prefix}cc; ac_word=$2
4124 echo "$as_me:$LINENO: checking for $ac_word" >&5
4125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4126 if test "${ac_cv_prog_CC+set}" = set; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
4129 if test -n "$CC"; then
4130 ac_cv_prog_CC="$CC" # Let the user override the test.
4132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136 test -z "$as_dir" && as_dir=.
4137 for ac_exec_ext in '' $ac_executable_extensions; do
4138 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4139 ac_cv_prog_CC="${ac_tool_prefix}cc"
4140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4149 if test -n "$CC"; then
4150 echo "$as_me:$LINENO: result: $CC" >&5
4151 echo "${ECHO_T}$CC" >&6
4153 echo "$as_me:$LINENO: result: no" >&5
4154 echo "${ECHO_T}no" >&6
4158 if test -z "$ac_cv_prog_CC"; then
4160 # Extract the first word of "cc", so it can be a program name with args.
4161 set dummy cc; ac_word=$2
4162 echo "$as_me:$LINENO: checking for $ac_word" >&5
4163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4164 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4165 echo $ECHO_N "(cached) $ECHO_C" >&6
4167 if test -n "$ac_ct_CC"; then
4168 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174 test -z "$as_dir" && as_dir=.
4175 for ac_exec_ext in '' $ac_executable_extensions; do
4176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4177 ac_cv_prog_ac_ct_CC="cc"
4178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4186 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4187 if test -n "$ac_ct_CC"; then
4188 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4189 echo "${ECHO_T}$ac_ct_CC" >&6
4191 echo "$as_me:$LINENO: result: no" >&5
4192 echo "${ECHO_T}no" >&6
4201 if test -z "$CC"; then
4202 # Extract the first word of "cc", so it can be a program name with args.
4203 set dummy cc; ac_word=$2
4204 echo "$as_me:$LINENO: checking for $ac_word" >&5
4205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4206 if test "${ac_cv_prog_CC+set}" = set; then
4207 echo $ECHO_N "(cached) $ECHO_C" >&6
4209 if test -n "$CC"; then
4210 ac_cv_prog_CC="$CC" # Let the user override the test.
4213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4217 test -z "$as_dir" && as_dir=.
4218 for ac_exec_ext in '' $ac_executable_extensions; do
4219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4220 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4221 ac_prog_rejected=yes
4225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4231 if test $ac_prog_rejected = yes; then
4232 # We found a bogon in the path, so make sure we never use it.
4233 set dummy $ac_cv_prog_CC
4235 if test $# != 0; then
4236 # We chose a different compiler from the bogus one.
4237 # However, it has the same basename, so the bogon will be chosen
4238 # first if we set CC to just the basename; use the full file name.
4240 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4246 if test -n "$CC"; then
4247 echo "$as_me:$LINENO: result: $CC" >&5
4248 echo "${ECHO_T}$CC" >&6
4250 echo "$as_me:$LINENO: result: no" >&5
4251 echo "${ECHO_T}no" >&6
4255 if test -z "$CC"; then
4256 if test -n "$ac_tool_prefix"; then
4259 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4260 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4261 echo "$as_me:$LINENO: checking for $ac_word" >&5
4262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4263 if test "${ac_cv_prog_CC+set}" = set; then
4264 echo $ECHO_N "(cached) $ECHO_C" >&6
4266 if test -n "$CC"; then
4267 ac_cv_prog_CC="$CC" # Let the user override the test.
4269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273 test -z "$as_dir" && as_dir=.
4274 for ac_exec_ext in '' $ac_executable_extensions; do
4275 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4276 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4286 if test -n "$CC"; then
4287 echo "$as_me:$LINENO: result: $CC" >&5
4288 echo "${ECHO_T}$CC" >&6
4290 echo "$as_me:$LINENO: result: no" >&5
4291 echo "${ECHO_T}no" >&6
4294 test -n "$CC" && break
4297 if test -z "$CC"; then
4301 # Extract the first word of "$ac_prog", so it can be a program name with args.
4302 set dummy $ac_prog; ac_word=$2
4303 echo "$as_me:$LINENO: checking for $ac_word" >&5
4304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4305 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4306 echo $ECHO_N "(cached) $ECHO_C" >&6
4308 if test -n "$ac_ct_CC"; then
4309 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4315 test -z "$as_dir" && as_dir=.
4316 for ac_exec_ext in '' $ac_executable_extensions; do
4317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4318 ac_cv_prog_ac_ct_CC="$ac_prog"
4319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4327 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4328 if test -n "$ac_ct_CC"; then
4329 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4330 echo "${ECHO_T}$ac_ct_CC" >&6
4332 echo "$as_me:$LINENO: result: no" >&5
4333 echo "${ECHO_T}no" >&6
4336 test -n "$ac_ct_CC" && break
4345 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4346 See \`config.log' for more details." >&5
4347 echo "$as_me: error: no acceptable C compiler found in \$PATH
4348 See \`config.log' for more details." >&2;}
4349 { (exit 1); exit 1; }; }
4351 # Provide some information about the compiler.
4352 echo "$as_me:$LINENO:" \
4353 "checking for C compiler version" >&5
4354 ac_compiler=`set X $ac_compile; echo $2`
4355 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4356 (eval $ac_compiler --version </dev/null >&5) 2>&5
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); }
4360 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4361 (eval $ac_compiler -v </dev/null >&5) 2>&5
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); }
4365 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4366 (eval $ac_compiler -V </dev/null >&5) 2>&5
4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369 (exit $ac_status); }
4371 cat >conftest.$ac_ext <<_ACEOF
4374 cat confdefs.h >>conftest.$ac_ext
4375 cat >>conftest.$ac_ext <<_ACEOF
4376 /* end confdefs.h. */
4386 ac_clean_files_save=$ac_clean_files
4387 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4388 # Try to create an executable without -o first, disregard a.out.
4389 # It will help us diagnose broken compilers, and finding out an intuition
4391 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4392 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4393 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4394 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4395 (eval $ac_link_default) 2>&5
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); }; then
4399 # Find the output, starting from the most likely. This scheme is
4400 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4403 # Be careful to initialize this variable, since it used to be cached.
4404 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4406 # b.out is created by i960 compilers.
4407 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4409 test -f "$ac_file" || continue
4411 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4414 # This is the source file.
4417 # We found the default executable, but exeext='' is most
4421 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4422 # FIXME: I believe we export ac_cv_exeext for Libtool,
4423 # but it would be cool to find out if it's true. Does anybody
4424 # maintain Libtool? --akim.
4432 echo "$as_me: failed program was:" >&5
4433 sed 's/^/| /' conftest.$ac_ext >&5
4435 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4436 See \`config.log' for more details." >&5
4437 echo "$as_me: error: C compiler cannot create executables
4438 See \`config.log' for more details." >&2;}
4439 { (exit 77); exit 77; }; }
4442 ac_exeext=$ac_cv_exeext
4443 echo "$as_me:$LINENO: result: $ac_file" >&5
4444 echo "${ECHO_T}$ac_file" >&6
4446 # Check the compiler produces executables we can run. If not, either
4447 # the compiler is broken, or we cross compile.
4448 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4449 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4450 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4451 # If not cross compiling, check that we can run a simple program.
4452 if test "$cross_compiling" != yes; then
4453 if { ac_try='./$ac_file'
4454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); }; }; then
4461 if test "$cross_compiling" = maybe; then
4464 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4465 If you meant to cross compile, use \`--host'.
4466 See \`config.log' for more details." >&5
4467 echo "$as_me: error: cannot run C compiled programs.
4468 If you meant to cross compile, use \`--host'.
4469 See \`config.log' for more details." >&2;}
4470 { (exit 1); exit 1; }; }
4474 echo "$as_me:$LINENO: result: yes" >&5
4475 echo "${ECHO_T}yes" >&6
4477 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4478 ac_clean_files=$ac_clean_files_save
4479 # Check the compiler produces executables we can run. If not, either
4480 # the compiler is broken, or we cross compile.
4481 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4482 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4483 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4484 echo "${ECHO_T}$cross_compiling" >&6
4486 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4487 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4489 (eval $ac_link) 2>&5
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); }; then
4493 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4494 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4495 # work properly (i.e., refer to `conftest.exe'), while it won't with
4497 for ac_file in conftest.exe conftest conftest.*; do
4498 test -f "$ac_file" || continue
4500 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4501 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4508 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4509 See \`config.log' for more details." >&5
4510 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4511 See \`config.log' for more details." >&2;}
4512 { (exit 1); exit 1; }; }
4515 rm -f conftest$ac_cv_exeext
4516 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4517 echo "${ECHO_T}$ac_cv_exeext" >&6
4519 rm -f conftest.$ac_ext
4520 EXEEXT=$ac_cv_exeext
4522 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4523 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4524 if test "${ac_cv_objext+set}" = set; then
4525 echo $ECHO_N "(cached) $ECHO_C" >&6
4527 cat >conftest.$ac_ext <<_ACEOF
4530 cat confdefs.h >>conftest.$ac_ext
4531 cat >>conftest.$ac_ext <<_ACEOF
4532 /* end confdefs.h. */
4542 rm -f conftest.o conftest.obj
4543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4544 (eval $ac_compile) 2>&5
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); }; then
4548 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4550 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4551 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4556 echo "$as_me: failed program was:" >&5
4557 sed 's/^/| /' conftest.$ac_ext >&5
4559 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4560 See \`config.log' for more details." >&5
4561 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4562 See \`config.log' for more details." >&2;}
4563 { (exit 1); exit 1; }; }
4566 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4568 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4569 echo "${ECHO_T}$ac_cv_objext" >&6
4570 OBJEXT=$ac_cv_objext
4572 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4573 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4574 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4575 echo $ECHO_N "(cached) $ECHO_C" >&6
4577 cat >conftest.$ac_ext <<_ACEOF
4580 cat confdefs.h >>conftest.$ac_ext
4581 cat >>conftest.$ac_ext <<_ACEOF
4582 /* end confdefs.h. */
4595 rm -f conftest.$ac_objext
4596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4597 (eval $ac_compile) 2>conftest.er1
4599 grep -v '^ *+' conftest.er1 >conftest.err
4601 cat conftest.err >&5
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); } &&
4604 { ac_try='test -z "$ac_c_werror_flag"
4605 || test ! -s conftest.err'
4606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); }; } &&
4611 { ac_try='test -s conftest.$ac_objext'
4612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); }; }; then
4619 echo "$as_me: failed program was:" >&5
4620 sed 's/^/| /' conftest.$ac_ext >&5
4624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4625 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4628 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4629 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4630 GCC=`test $ac_compiler_gnu = yes && echo yes`
4631 ac_test_CFLAGS=${CFLAGS+set}
4632 ac_save_CFLAGS=$CFLAGS
4634 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4635 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4636 if test "${ac_cv_prog_cc_g+set}" = set; then
4637 echo $ECHO_N "(cached) $ECHO_C" >&6
4639 cat >conftest.$ac_ext <<_ACEOF
4642 cat confdefs.h >>conftest.$ac_ext
4643 cat >>conftest.$ac_ext <<_ACEOF
4644 /* end confdefs.h. */
4654 rm -f conftest.$ac_objext
4655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4656 (eval $ac_compile) 2>conftest.er1
4658 grep -v '^ *+' conftest.er1 >conftest.err
4660 cat conftest.err >&5
4661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662 (exit $ac_status); } &&
4663 { ac_try='test -z "$ac_c_werror_flag"
4664 || test ! -s conftest.err'
4665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); }; } &&
4670 { ac_try='test -s conftest.$ac_objext'
4671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); }; }; then
4678 echo "$as_me: failed program was:" >&5
4679 sed 's/^/| /' conftest.$ac_ext >&5
4683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4685 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4686 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4687 if test "$ac_test_CFLAGS" = set; then
4688 CFLAGS=$ac_save_CFLAGS
4689 elif test $ac_cv_prog_cc_g = yes; then
4690 if test "$GCC" = yes; then
4696 if test "$GCC" = yes; then
4702 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4703 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4704 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4705 echo $ECHO_N "(cached) $ECHO_C" >&6
4707 ac_cv_prog_cc_stdc=no
4709 cat >conftest.$ac_ext <<_ACEOF
4712 cat confdefs.h >>conftest.$ac_ext
4713 cat >>conftest.$ac_ext <<_ACEOF
4714 /* end confdefs.h. */
4717 #include <sys/types.h>
4718 #include <sys/stat.h>
4719 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4720 struct buf { int x; };
4721 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4722 static char *e (p, i)
4728 static char *f (char * (*g) (char **, int), char **p, ...)
4733 s = g (p, va_arg (v,int));
4738 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4739 function prototypes and stuff, but not '\xHH' hex character constants.
4740 These don't provoke an error unfortunately, instead are silently treated
4741 as 'x'. The following induces an error, until -std1 is added to get
4742 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4743 array size at least. It's necessary to write '\x00'==0 to get something
4744 that's true only with -std1. */
4745 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4747 int test (int i, double x);
4748 struct s1 {int (*f) (int a);};
4749 struct s2 {int (*f) (double a);};
4750 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4756 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4761 # Don't try gcc -ansi; that turns off useful extensions and
4762 # breaks some systems' header files.
4763 # AIX -qlanglvl=ansi
4764 # Ultrix and OSF/1 -std1
4765 # HP-UX 10.20 and later -Ae
4766 # HP-UX older versions -Aa -D_HPUX_SOURCE
4767 # SVR4 -Xc -D__EXTENSIONS__
4768 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4770 CC="$ac_save_CC $ac_arg"
4771 rm -f conftest.$ac_objext
4772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4773 (eval $ac_compile) 2>conftest.er1
4775 grep -v '^ *+' conftest.er1 >conftest.err
4777 cat conftest.err >&5
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); } &&
4780 { ac_try='test -z "$ac_c_werror_flag"
4781 || test ! -s conftest.err'
4782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786 (exit $ac_status); }; } &&
4787 { ac_try='test -s conftest.$ac_objext'
4788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792 (exit $ac_status); }; }; then
4793 ac_cv_prog_cc_stdc=$ac_arg
4796 echo "$as_me: failed program was:" >&5
4797 sed 's/^/| /' conftest.$ac_ext >&5
4800 rm -f conftest.err conftest.$ac_objext
4802 rm -f conftest.$ac_ext conftest.$ac_objext
4807 case "x$ac_cv_prog_cc_stdc" in
4809 echo "$as_me:$LINENO: result: none needed" >&5
4810 echo "${ECHO_T}none needed" >&6 ;;
4812 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4813 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4814 CC="$CC $ac_cv_prog_cc_stdc" ;;
4817 # Some people use a C++ compiler to compile C. Since we use `exit',
4818 # in C++ we need to declare it. In case someone uses the same compiler
4819 # for both compiling C and C++ we need to have the C++ compiler decide
4820 # the declaration of exit, since it's the most demanding environment.
4821 cat >conftest.$ac_ext <<_ACEOF
4826 rm -f conftest.$ac_objext
4827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4828 (eval $ac_compile) 2>conftest.er1
4830 grep -v '^ *+' conftest.er1 >conftest.err
4832 cat conftest.err >&5
4833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834 (exit $ac_status); } &&
4835 { ac_try='test -z "$ac_c_werror_flag"
4836 || test ! -s conftest.err'
4837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841 (exit $ac_status); }; } &&
4842 { ac_try='test -s conftest.$ac_objext'
4843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); }; }; then
4848 for ac_declaration in \
4850 'extern "C" void std::exit (int) throw (); using std::exit;' \
4851 'extern "C" void std::exit (int); using std::exit;' \
4852 'extern "C" void exit (int) throw ();' \
4853 'extern "C" void exit (int);' \
4856 cat >conftest.$ac_ext <<_ACEOF
4859 cat confdefs.h >>conftest.$ac_ext
4860 cat >>conftest.$ac_ext <<_ACEOF
4861 /* end confdefs.h. */
4872 rm -f conftest.$ac_objext
4873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4874 (eval $ac_compile) 2>conftest.er1
4876 grep -v '^ *+' conftest.er1 >conftest.err
4878 cat conftest.err >&5
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); } &&
4881 { ac_try='test -z "$ac_c_werror_flag"
4882 || test ! -s conftest.err'
4883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); }; } &&
4888 { ac_try='test -s conftest.$ac_objext'
4889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893 (exit $ac_status); }; }; then
4896 echo "$as_me: failed program was:" >&5
4897 sed 's/^/| /' conftest.$ac_ext >&5
4901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4902 cat >conftest.$ac_ext <<_ACEOF
4905 cat confdefs.h >>conftest.$ac_ext
4906 cat >>conftest.$ac_ext <<_ACEOF
4907 /* end confdefs.h. */
4917 rm -f conftest.$ac_objext
4918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4919 (eval $ac_compile) 2>conftest.er1
4921 grep -v '^ *+' conftest.er1 >conftest.err
4923 cat conftest.err >&5
4924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925 (exit $ac_status); } &&
4926 { ac_try='test -z "$ac_c_werror_flag"
4927 || test ! -s conftest.err'
4928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932 (exit $ac_status); }; } &&
4933 { ac_try='test -s conftest.$ac_objext'
4934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); }; }; then
4941 echo "$as_me: failed program was:" >&5
4942 sed 's/^/| /' conftest.$ac_ext >&5
4945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4948 if test -n "$ac_declaration"; then
4949 echo '#ifdef __cplusplus' >>confdefs.h
4950 echo $ac_declaration >>confdefs.h
4951 echo '#endif' >>confdefs.h
4955 echo "$as_me: failed program was:" >&5
4956 sed 's/^/| /' conftest.$ac_ext >&5
4959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4961 ac_cpp='$CPP $CPPFLAGS'
4962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4966 depcc="$CC" am_compiler_list=
4968 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4969 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4970 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4971 echo $ECHO_N "(cached) $ECHO_C" >&6
4973 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4974 # We make a subdir and do the tests there. Otherwise we can end up
4975 # making bogus files that we don't know about and never remove. For
4976 # instance it was reported that on HP-UX the gcc test will end up
4977 # making a dummy file named `D' -- because `-MD' means `put the output
4980 # Copy depcomp to subdir because otherwise we won't find it if we're
4981 # using a relative directory.
4982 cp "$am_depcomp" conftest.dir
4984 # We will build objects and dependencies in a subdirectory because
4985 # it helps to detect inapplicable dependency modes. For instance
4986 # both Tru64's cc and ICC support -MD to output dependencies as a
4987 # side effect of compilation, but ICC will put the dependencies in
4988 # the current directory while Tru64 will put them in the object
4992 am_cv_CC_dependencies_compiler_type=none
4993 if test "$am_compiler_list" = ""; then
4994 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4996 for depmode in $am_compiler_list; do
4997 # Setup a source with many dependencies, because some compilers
4998 # like to wrap large dependency lists on column 80 (with \), and
4999 # we should not choose a depcomp mode which is confused by this.
5001 # We need to recreate these files for each test, as the compiler may
5002 # overwrite some of them when testing with obscure command lines.
5003 # This happens at least with the AIX C compiler.
5005 for i in 1 2 3 4 5 6; do
5006 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5007 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5008 # Solaris 8's {/usr,}/bin/sh.
5009 touch sub/conftst$i.h
5011 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5015 # after this tag, mechanisms are not by side-effect, so they'll
5016 # only be used when explicitly requested
5017 if test "x$enable_dependency_tracking" = xyes; then
5025 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5026 # mode. It turns out that the SunPro C++ compiler does not properly
5027 # handle `-M -o', and we need to detect this.
5028 if depmode=$depmode \
5029 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5030 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5031 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5032 >/dev/null 2>conftest.err &&
5033 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5034 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5035 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5036 # icc doesn't choke on unknown options, it will just issue warnings
5037 # or remarks (even with -Werror). So we grep stderr for any message
5038 # that says an option was ignored or not supported.
5039 # When given -MP, icc 7.0 and 7.1 complain thusly:
5040 # icc: Command line warning: ignoring option '-M'; no argument required
5041 # The diagnosis changed in icc 8.0:
5042 # icc: Command line remark: option '-MP' not supported
5043 if (grep 'ignoring option' conftest.err ||
5044 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5045 am_cv_CC_dependencies_compiler_type=$depmode
5054 am_cv_CC_dependencies_compiler_type=none
5058 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5059 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5060 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5065 test "x$enable_dependency_tracking" != xno \
5066 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5068 am__fastdepCC_FALSE='#'
5070 am__fastdepCC_TRUE='#'
5071 am__fastdepCC_FALSE=
5075 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5076 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5077 if test "${lt_cv_path_SED+set}" = set; then
5078 echo $ECHO_N "(cached) $ECHO_C" >&6
5080 # Loop through the user's path and test for sed and gsed.
5081 # Then use that list of sed's as ones to test for truncation.
5082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5086 test -z "$as_dir" && as_dir=.
5087 for lt_ac_prog in sed gsed; do
5088 for ac_exec_ext in '' $ac_executable_extensions; do
5089 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5090 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5097 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5098 # along with /bin/sed that truncates output.
5099 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5100 test ! -f $lt_ac_sed && continue
5101 cat /dev/null > conftest.in
5103 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5104 # Check for GNU sed and select it if it is found.
5105 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5106 lt_cv_path_SED=$lt_ac_sed
5110 cat conftest.in conftest.in >conftest.tmp
5111 mv conftest.tmp conftest.in
5112 cp conftest.in conftest.nl
5114 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5115 cmp -s conftest.out conftest.nl || break
5116 # 10000 chars as input seems more than enough
5117 test $lt_ac_count -gt 10 && break
5118 lt_ac_count=`expr $lt_ac_count + 1`
5119 if test $lt_ac_count -gt $lt_ac_max; then
5120 lt_ac_max=$lt_ac_count
5121 lt_cv_path_SED=$lt_ac_sed
5129 echo "$as_me:$LINENO: result: $SED" >&5
5130 echo "${ECHO_T}$SED" >&6
5132 echo "$as_me:$LINENO: checking for egrep" >&5
5133 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5134 if test "${ac_cv_prog_egrep+set}" = set; then
5135 echo $ECHO_N "(cached) $ECHO_C" >&6
5137 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5138 then ac_cv_prog_egrep='grep -E'
5139 else ac_cv_prog_egrep='egrep'
5142 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5143 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5144 EGREP=$ac_cv_prog_egrep
5148 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5149 if test "${with_gnu_ld+set}" = set; then
5150 withval="$with_gnu_ld"
5151 test "$withval" = no || with_gnu_ld=yes
5156 if test "$GCC" = yes; then
5157 # Check if gcc -print-prog-name=ld gives a path.
5158 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5159 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5162 # gcc leaves a trailing carriage return which upsets mingw
5163 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5165 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5168 # Accept absolute paths.
5170 re_direlt='/[^/][^/]*/\.\./'
5171 # Canonicalize the pathname of ld
5172 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5173 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5174 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5176 test -z "$LD" && LD="$ac_prog"
5179 # If it fails, then pretend we aren't using GCC.
5183 # If it is relative, then search for the first ld in PATH.
5187 elif test "$with_gnu_ld" = yes; then
5188 echo "$as_me:$LINENO: checking for GNU ld" >&5
5189 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5191 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5192 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5194 if test "${lt_cv_path_LD+set}" = set; then
5195 echo $ECHO_N "(cached) $ECHO_C" >&6
5197 if test -z "$LD"; then
5198 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5199 for ac_dir in $PATH; do
5201 test -z "$ac_dir" && ac_dir=.
5202 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5203 lt_cv_path_LD="$ac_dir/$ac_prog"
5204 # Check to see if the program is GNU ld. I'd rather use --version,
5205 # but apparently some GNU ld's only accept -v.
5206 # Break only if it was the GNU/non-GNU ld that we prefer.
5207 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5208 *GNU* | *'with BFD'*)
5209 test "$with_gnu_ld" != no && break
5212 test "$with_gnu_ld" != yes && break
5219 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5224 if test -n "$LD"; then
5225 echo "$as_me:$LINENO: result: $LD" >&5
5226 echo "${ECHO_T}$LD" >&6
5228 echo "$as_me:$LINENO: result: no" >&5
5229 echo "${ECHO_T}no" >&6
5231 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5232 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5233 { (exit 1); exit 1; }; }
5234 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5235 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5236 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5237 echo $ECHO_N "(cached) $ECHO_C" >&6
5239 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5240 case `$LD -v 2>&1 </dev/null` in
5241 *GNU* | *'with BFD'*)
5242 lt_cv_prog_gnu_ld=yes
5245 lt_cv_prog_gnu_ld=no
5249 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5250 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5251 with_gnu_ld=$lt_cv_prog_gnu_ld
5254 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5255 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5256 if test "${lt_cv_ld_reload_flag+set}" = set; then
5257 echo $ECHO_N "(cached) $ECHO_C" >&6
5259 lt_cv_ld_reload_flag='-r'
5261 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5262 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5263 reload_flag=$lt_cv_ld_reload_flag
5264 case $reload_flag in
5266 *) reload_flag=" $reload_flag" ;;
5268 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5271 if test "$GCC" = yes; then
5272 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5274 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5279 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5280 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5281 if test "${lt_cv_path_NM+set}" = set; then
5282 echo $ECHO_N "(cached) $ECHO_C" >&6
5284 if test -n "$NM"; then
5285 # Let the user override the test.
5288 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5289 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5291 test -z "$ac_dir" && ac_dir=.
5292 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5293 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5294 # Check to see if the nm accepts a BSD-compat flag.
5295 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5296 # nm: unknown option "B" ignored
5297 # Tru64's nm complains that /dev/null is an invalid object file
5298 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5299 */dev/null* | *'Invalid file or object type'*)
5300 lt_cv_path_NM="$tmp_nm -B"
5304 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5306 lt_cv_path_NM="$tmp_nm -p"
5310 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5311 continue # so that we can try to find one that supports BSD flags
5318 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5321 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5322 echo "${ECHO_T}$lt_cv_path_NM" >&6
5325 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5326 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5328 if test "$LN_S" = "ln -s"; then
5329 echo "$as_me:$LINENO: result: yes" >&5
5330 echo "${ECHO_T}yes" >&6
5332 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5333 echo "${ECHO_T}no, using $LN_S" >&6
5336 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5337 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5338 if test "${lt_cv_deplibs_check_method+set}" = set; then
5339 echo $ECHO_N "(cached) $ECHO_C" >&6
5341 lt_cv_file_magic_cmd='$MAGIC_CMD'
5342 lt_cv_file_magic_test_file=
5343 lt_cv_deplibs_check_method='unknown'
5344 # Need to set the preceding variable on all platforms that support
5345 # interlibrary dependencies.
5346 # 'none' -- dependencies not supported.
5347 # `unknown' -- same as none, but documents that we really don't know.
5348 # 'pass_all' -- all dependencies passed with no checks.
5349 # 'test_compile' -- check by making test program.
5350 # 'file_magic [[regex]]' -- check by looking for files in library path
5351 # which responds to the $file_magic_cmd with a given extended regex.
5352 # If you have `file' or equivalent on your system and you're not sure
5353 # whether `pass_all' will *always* work, you probably want this one.
5357 lt_cv_deplibs_check_method=pass_all
5361 lt_cv_deplibs_check_method=pass_all
5365 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5366 lt_cv_file_magic_cmd='/usr/bin/file -L'
5367 lt_cv_file_magic_test_file=/shlib/libc.so
5371 # func_win32_libid is a shell function defined in ltmain.sh
5372 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5373 lt_cv_file_magic_cmd='func_win32_libid'
5377 # Base MSYS/MinGW do not provide the 'file' command needed by
5378 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5379 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5380 lt_cv_file_magic_cmd='$OBJDUMP -f'
5383 darwin* | rhapsody*)
5384 lt_cv_deplibs_check_method=pass_all
5387 freebsd* | kfreebsd*-gnu | dragonfly*)
5388 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5391 # Not sure whether the presence of OpenBSD here was a mistake.
5392 # Let's accept both of them until this is cleared up.
5393 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5394 lt_cv_file_magic_cmd=/usr/bin/file
5395 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5399 lt_cv_deplibs_check_method=pass_all
5404 lt_cv_deplibs_check_method=pass_all
5407 hpux10.20* | hpux11*)
5408 lt_cv_file_magic_cmd=/usr/bin/file
5411 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5412 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5415 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]'
5416 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5419 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5420 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5425 irix5* | irix6* | nonstopux*)
5427 *-32|*"-32 ") libmagic=32-bit;;
5428 *-n32|*"-n32 ") libmagic=N32;;
5429 *-64|*"-64 ") libmagic=64-bit;;
5430 *) libmagic=never-match;;
5432 lt_cv_deplibs_check_method=pass_all
5435 # This must be Linux ELF.
5437 lt_cv_deplibs_check_method=pass_all
5441 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5442 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5444 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5449 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5450 lt_cv_file_magic_cmd=/usr/bin/file
5451 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5455 lt_cv_deplibs_check_method=unknown
5459 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5460 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5462 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5466 osf3* | osf4* | osf5*)
5467 lt_cv_deplibs_check_method=pass_all
5471 lt_cv_deplibs_check_method=pass_all
5475 lt_cv_deplibs_check_method=pass_all
5478 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5479 case $host_vendor in
5481 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]'
5482 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5485 lt_cv_deplibs_check_method=pass_all
5488 lt_cv_file_magic_cmd='/bin/file'
5489 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5492 lt_cv_file_magic_cmd='/bin/file'
5493 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5494 lt_cv_file_magic_test_file=/lib/libc.so
5497 lt_cv_deplibs_check_method=pass_all
5502 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5503 lt_cv_deplibs_check_method=pass_all
5508 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5509 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5510 file_magic_cmd=$lt_cv_file_magic_cmd
5511 deplibs_check_method=$lt_cv_deplibs_check_method
5512 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5517 # If no C compiler was specified, use CC.
5520 # Allow CC to be a program name with arguments.
5524 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5525 if test "${enable_libtool_lock+set}" = set; then
5526 enableval="$enable_libtool_lock"
5529 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5531 # Some flags need to be propagated to the compiler or linker for good
5535 # Find out which ABI we are using.
5536 echo 'int i;' > conftest.$ac_ext
5537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5538 (eval $ac_compile) 2>&5
5540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541 (exit $ac_status); }; then
5542 case `/usr/bin/file conftest.$ac_objext` in
5554 # Find out which ABI we are using.
5555 echo '#line 5555 "configure"' > conftest.$ac_ext
5556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5557 (eval $ac_compile) 2>&5
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); }; then
5561 if test "$lt_cv_prog_gnu_ld" = yes; then
5562 case `/usr/bin/file conftest.$ac_objext` in
5564 LD="${LD-ld} -melf32bsmip"
5567 LD="${LD-ld} -melf32bmipn32"
5570 LD="${LD-ld} -melf64bmip"
5574 case `/usr/bin/file conftest.$ac_objext` in
5590 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5591 # Find out which ABI we are using.
5592 echo 'int i;' > conftest.$ac_ext
5593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5594 (eval $ac_compile) 2>&5
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); }; then
5598 case "`/usr/bin/file conftest.o`" in
5602 LD="${LD-ld} -m elf_i386"
5604 ppc64-*linux*|powerpc64-*linux*)
5605 LD="${LD-ld} -m elf32ppclinux"
5608 LD="${LD-ld} -m elf_s390"
5611 LD="${LD-ld} -m elf32_sparc"
5618 LD="${LD-ld} -m elf_x86_64"
5620 ppc*-*linux*|powerpc*-*linux*)
5621 LD="${LD-ld} -m elf64ppc"
5624 LD="${LD-ld} -m elf64_s390"
5627 LD="${LD-ld} -m elf64_sparc"
5637 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5638 SAVE_CFLAGS="$CFLAGS"
5639 CFLAGS="$CFLAGS -belf"
5640 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5641 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5642 if test "${lt_cv_cc_needs_belf+set}" = set; then
5643 echo $ECHO_N "(cached) $ECHO_C" >&6
5646 ac_cpp='$CPP $CPPFLAGS'
5647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5651 cat >conftest.$ac_ext <<_ACEOF
5654 cat confdefs.h >>conftest.$ac_ext
5655 cat >>conftest.$ac_ext <<_ACEOF
5656 /* end confdefs.h. */
5666 rm -f conftest.$ac_objext conftest$ac_exeext
5667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5668 (eval $ac_link) 2>conftest.er1
5670 grep -v '^ *+' conftest.er1 >conftest.err
5672 cat conftest.err >&5
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); } &&
5675 { ac_try='test -z "$ac_c_werror_flag"
5676 || test ! -s conftest.err'
5677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681 (exit $ac_status); }; } &&
5682 { ac_try='test -s conftest$ac_exeext'
5683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 (exit $ac_status); }; }; then
5688 lt_cv_cc_needs_belf=yes
5690 echo "$as_me: failed program was:" >&5
5691 sed 's/^/| /' conftest.$ac_ext >&5
5693 lt_cv_cc_needs_belf=no
5695 rm -f conftest.err conftest.$ac_objext \
5696 conftest$ac_exeext conftest.$ac_ext
5698 ac_cpp='$CPP $CPPFLAGS'
5699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5704 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5705 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5706 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5707 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5708 CFLAGS="$SAVE_CFLAGS"
5711 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5712 if test -n "$ac_tool_prefix"; then
5713 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5714 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5715 echo "$as_me:$LINENO: checking for $ac_word" >&5
5716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5717 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5718 echo $ECHO_N "(cached) $ECHO_C" >&6
5720 if test -n "$DLLTOOL"; then
5721 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5727 test -z "$as_dir" && as_dir=.
5728 for ac_exec_ext in '' $ac_executable_extensions; do
5729 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5730 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5739 DLLTOOL=$ac_cv_prog_DLLTOOL
5740 if test -n "$DLLTOOL"; then
5741 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5742 echo "${ECHO_T}$DLLTOOL" >&6
5744 echo "$as_me:$LINENO: result: no" >&5
5745 echo "${ECHO_T}no" >&6
5749 if test -z "$ac_cv_prog_DLLTOOL"; then
5750 ac_ct_DLLTOOL=$DLLTOOL
5751 # Extract the first word of "dlltool", so it can be a program name with args.
5752 set dummy dlltool; ac_word=$2
5753 echo "$as_me:$LINENO: checking for $ac_word" >&5
5754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5755 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5756 echo $ECHO_N "(cached) $ECHO_C" >&6
5758 if test -n "$ac_ct_DLLTOOL"; then
5759 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5765 test -z "$as_dir" && as_dir=.
5766 for ac_exec_ext in '' $ac_executable_extensions; do
5767 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5768 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5775 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5778 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5779 if test -n "$ac_ct_DLLTOOL"; then
5780 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5781 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5783 echo "$as_me:$LINENO: result: no" >&5
5784 echo "${ECHO_T}no" >&6
5787 DLLTOOL=$ac_ct_DLLTOOL
5789 DLLTOOL="$ac_cv_prog_DLLTOOL"
5792 if test -n "$ac_tool_prefix"; then
5793 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5794 set dummy ${ac_tool_prefix}as; ac_word=$2
5795 echo "$as_me:$LINENO: checking for $ac_word" >&5
5796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5797 if test "${ac_cv_prog_AS+set}" = set; then
5798 echo $ECHO_N "(cached) $ECHO_C" >&6
5800 if test -n "$AS"; then
5801 ac_cv_prog_AS="$AS" # Let the user override the test.
5803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5807 test -z "$as_dir" && as_dir=.
5808 for ac_exec_ext in '' $ac_executable_extensions; do
5809 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5810 ac_cv_prog_AS="${ac_tool_prefix}as"
5811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5820 if test -n "$AS"; then
5821 echo "$as_me:$LINENO: result: $AS" >&5
5822 echo "${ECHO_T}$AS" >&6
5824 echo "$as_me:$LINENO: result: no" >&5
5825 echo "${ECHO_T}no" >&6
5829 if test -z "$ac_cv_prog_AS"; then
5831 # Extract the first word of "as", so it can be a program name with args.
5832 set dummy as; ac_word=$2
5833 echo "$as_me:$LINENO: checking for $ac_word" >&5
5834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5835 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5836 echo $ECHO_N "(cached) $ECHO_C" >&6
5838 if test -n "$ac_ct_AS"; then
5839 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5845 test -z "$as_dir" && as_dir=.
5846 for ac_exec_ext in '' $ac_executable_extensions; do
5847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5848 ac_cv_prog_ac_ct_AS="as"
5849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5855 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
5858 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5859 if test -n "$ac_ct_AS"; then
5860 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5861 echo "${ECHO_T}$ac_ct_AS" >&6
5863 echo "$as_me:$LINENO: result: no" >&5
5864 echo "${ECHO_T}no" >&6
5872 if test -n "$ac_tool_prefix"; then
5873 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5874 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5875 echo "$as_me:$LINENO: checking for $ac_word" >&5
5876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5877 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5878 echo $ECHO_N "(cached) $ECHO_C" >&6
5880 if test -n "$OBJDUMP"; then
5881 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5887 test -z "$as_dir" && as_dir=.
5888 for ac_exec_ext in '' $ac_executable_extensions; do
5889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5890 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5899 OBJDUMP=$ac_cv_prog_OBJDUMP
5900 if test -n "$OBJDUMP"; then
5901 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5902 echo "${ECHO_T}$OBJDUMP" >&6
5904 echo "$as_me:$LINENO: result: no" >&5
5905 echo "${ECHO_T}no" >&6
5909 if test -z "$ac_cv_prog_OBJDUMP"; then
5910 ac_ct_OBJDUMP=$OBJDUMP
5911 # Extract the first word of "objdump", so it can be a program name with args.
5912 set dummy objdump; ac_word=$2
5913 echo "$as_me:$LINENO: checking for $ac_word" >&5
5914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5915 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5916 echo $ECHO_N "(cached) $ECHO_C" >&6
5918 if test -n "$ac_ct_OBJDUMP"; then
5919 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5925 test -z "$as_dir" && as_dir=.
5926 for ac_exec_ext in '' $ac_executable_extensions; do
5927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5928 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5935 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
5938 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5939 if test -n "$ac_ct_OBJDUMP"; then
5940 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5941 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
5943 echo "$as_me:$LINENO: result: no" >&5
5944 echo "${ECHO_T}no" >&6
5947 OBJDUMP=$ac_ct_OBJDUMP
5949 OBJDUMP="$ac_cv_prog_OBJDUMP"
5956 need_locks="$enable_libtool_lock"
5960 ac_cpp='$CPP $CPPFLAGS'
5961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5964 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5965 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5966 # On Suns, sometimes $CPP names a directory.
5967 if test -n "$CPP" && test -d "$CPP"; then
5970 if test -z "$CPP"; then
5971 if test "${ac_cv_prog_CPP+set}" = set; then
5972 echo $ECHO_N "(cached) $ECHO_C" >&6
5974 # Double quotes because CPP needs to be expanded
5975 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5978 for ac_c_preproc_warn_flag in '' yes
5980 # Use a header file that comes with gcc, so configuring glibc
5981 # with a fresh cross-compiler works.
5982 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5983 # <limits.h> exists even on freestanding compilers.
5984 # On the NeXT, cc -E runs the code through the compiler's parser,
5985 # not just through cpp. "Syntax error" is here to catch this case.
5986 cat >conftest.$ac_ext <<_ACEOF
5989 cat confdefs.h >>conftest.$ac_ext
5990 cat >>conftest.$ac_ext <<_ACEOF
5991 /* end confdefs.h. */
5993 # include <limits.h>
5995 # include <assert.h>
5999 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6000 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6002 grep -v '^ *+' conftest.er1 >conftest.err
6004 cat conftest.err >&5
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); } >/dev/null; then
6007 if test -s conftest.err; then
6008 ac_cpp_err=$ac_c_preproc_warn_flag
6009 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6016 if test -z "$ac_cpp_err"; then
6019 echo "$as_me: failed program was:" >&5
6020 sed 's/^/| /' conftest.$ac_ext >&5
6022 # Broken: fails on valid input.
6025 rm -f conftest.err conftest.$ac_ext
6027 # OK, works on sane cases. Now check whether non-existent headers
6028 # can be detected and how.
6029 cat >conftest.$ac_ext <<_ACEOF
6032 cat confdefs.h >>conftest.$ac_ext
6033 cat >>conftest.$ac_ext <<_ACEOF
6034 /* end confdefs.h. */
6035 #include <ac_nonexistent.h>
6037 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6038 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6040 grep -v '^ *+' conftest.er1 >conftest.err
6042 cat conftest.err >&5
6043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044 (exit $ac_status); } >/dev/null; then
6045 if test -s conftest.err; then
6046 ac_cpp_err=$ac_c_preproc_warn_flag
6047 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6054 if test -z "$ac_cpp_err"; then
6055 # Broken: success on invalid input.
6058 echo "$as_me: failed program was:" >&5
6059 sed 's/^/| /' conftest.$ac_ext >&5
6061 # Passes both tests.
6065 rm -f conftest.err conftest.$ac_ext
6068 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6069 rm -f conftest.err conftest.$ac_ext
6070 if $ac_preproc_ok; then
6082 echo "$as_me:$LINENO: result: $CPP" >&5
6083 echo "${ECHO_T}$CPP" >&6
6085 for ac_c_preproc_warn_flag in '' yes
6087 # Use a header file that comes with gcc, so configuring glibc
6088 # with a fresh cross-compiler works.
6089 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6090 # <limits.h> exists even on freestanding compilers.
6091 # On the NeXT, cc -E runs the code through the compiler's parser,
6092 # not just through cpp. "Syntax error" is here to catch this case.
6093 cat >conftest.$ac_ext <<_ACEOF
6096 cat confdefs.h >>conftest.$ac_ext
6097 cat >>conftest.$ac_ext <<_ACEOF
6098 /* end confdefs.h. */
6100 # include <limits.h>
6102 # include <assert.h>
6106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6107 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6109 grep -v '^ *+' conftest.er1 >conftest.err
6111 cat conftest.err >&5
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); } >/dev/null; then
6114 if test -s conftest.err; then
6115 ac_cpp_err=$ac_c_preproc_warn_flag
6116 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6123 if test -z "$ac_cpp_err"; then
6126 echo "$as_me: failed program was:" >&5
6127 sed 's/^/| /' conftest.$ac_ext >&5
6129 # Broken: fails on valid input.
6132 rm -f conftest.err conftest.$ac_ext
6134 # OK, works on sane cases. Now check whether non-existent headers
6135 # can be detected and how.
6136 cat >conftest.$ac_ext <<_ACEOF
6139 cat confdefs.h >>conftest.$ac_ext
6140 cat >>conftest.$ac_ext <<_ACEOF
6141 /* end confdefs.h. */
6142 #include <ac_nonexistent.h>
6144 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6145 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6147 grep -v '^ *+' conftest.er1 >conftest.err
6149 cat conftest.err >&5
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); } >/dev/null; then
6152 if test -s conftest.err; then
6153 ac_cpp_err=$ac_c_preproc_warn_flag
6154 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6161 if test -z "$ac_cpp_err"; then
6162 # Broken: success on invalid input.
6165 echo "$as_me: failed program was:" >&5
6166 sed 's/^/| /' conftest.$ac_ext >&5
6168 # Passes both tests.
6172 rm -f conftest.err conftest.$ac_ext
6175 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6176 rm -f conftest.err conftest.$ac_ext
6177 if $ac_preproc_ok; then
6180 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6181 See \`config.log' for more details." >&5
6182 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6183 See \`config.log' for more details." >&2;}
6184 { (exit 1); exit 1; }; }
6188 ac_cpp='$CPP $CPPFLAGS'
6189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6194 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6195 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6196 if test "${ac_cv_header_stdc+set}" = set; then
6197 echo $ECHO_N "(cached) $ECHO_C" >&6
6199 cat >conftest.$ac_ext <<_ACEOF
6202 cat confdefs.h >>conftest.$ac_ext
6203 cat >>conftest.$ac_ext <<_ACEOF
6204 /* end confdefs.h. */
6218 rm -f conftest.$ac_objext
6219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6220 (eval $ac_compile) 2>conftest.er1
6222 grep -v '^ *+' conftest.er1 >conftest.err
6224 cat conftest.err >&5
6225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226 (exit $ac_status); } &&
6227 { ac_try='test -z "$ac_c_werror_flag"
6228 || test ! -s conftest.err'
6229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233 (exit $ac_status); }; } &&
6234 { ac_try='test -s conftest.$ac_objext'
6235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239 (exit $ac_status); }; }; then
6240 ac_cv_header_stdc=yes
6242 echo "$as_me: failed program was:" >&5
6243 sed 's/^/| /' conftest.$ac_ext >&5
6245 ac_cv_header_stdc=no
6247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6249 if test $ac_cv_header_stdc = yes; then
6250 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6251 cat >conftest.$ac_ext <<_ACEOF
6254 cat confdefs.h >>conftest.$ac_ext
6255 cat >>conftest.$ac_ext <<_ACEOF
6256 /* end confdefs.h. */
6260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6261 $EGREP "memchr" >/dev/null 2>&1; then
6264 ac_cv_header_stdc=no
6270 if test $ac_cv_header_stdc = yes; then
6271 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6272 cat >conftest.$ac_ext <<_ACEOF
6275 cat confdefs.h >>conftest.$ac_ext
6276 cat >>conftest.$ac_ext <<_ACEOF
6277 /* end confdefs.h. */
6281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6282 $EGREP "free" >/dev/null 2>&1; then
6285 ac_cv_header_stdc=no
6291 if test $ac_cv_header_stdc = yes; then
6292 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6293 if test "$cross_compiling" = yes; then
6296 cat >conftest.$ac_ext <<_ACEOF
6299 cat confdefs.h >>conftest.$ac_ext
6300 cat >>conftest.$ac_ext <<_ACEOF
6301 /* end confdefs.h. */
6303 #if ((' ' & 0x0FF) == 0x020)
6304 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6305 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6307 # define ISLOWER(c) \
6308 (('a' <= (c) && (c) <= 'i') \
6309 || ('j' <= (c) && (c) <= 'r') \
6310 || ('s' <= (c) && (c) <= 'z'))
6311 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6314 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6319 for (i = 0; i < 256; i++)
6320 if (XOR (islower (i), ISLOWER (i))
6321 || toupper (i) != TOUPPER (i))
6326 rm -f conftest$ac_exeext
6327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6328 (eval $ac_link) 2>&5
6330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336 (exit $ac_status); }; }; then
6339 echo "$as_me: program exited with status $ac_status" >&5
6340 echo "$as_me: failed program was:" >&5
6341 sed 's/^/| /' conftest.$ac_ext >&5
6344 ac_cv_header_stdc=no
6346 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6350 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6351 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6352 if test $ac_cv_header_stdc = yes; then
6354 cat >>confdefs.h <<\_ACEOF
6355 #define STDC_HEADERS 1
6360 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6370 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6371 inttypes.h stdint.h unistd.h
6373 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6374 echo "$as_me:$LINENO: checking for $ac_header" >&5
6375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6377 echo $ECHO_N "(cached) $ECHO_C" >&6
6379 cat >conftest.$ac_ext <<_ACEOF
6382 cat confdefs.h >>conftest.$ac_ext
6383 cat >>conftest.$ac_ext <<_ACEOF
6384 /* end confdefs.h. */
6385 $ac_includes_default
6387 #include <$ac_header>
6389 rm -f conftest.$ac_objext
6390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6391 (eval $ac_compile) 2>conftest.er1
6393 grep -v '^ *+' conftest.er1 >conftest.err
6395 cat conftest.err >&5
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); } &&
6398 { ac_try='test -z "$ac_c_werror_flag"
6399 || test ! -s conftest.err'
6400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 (exit $ac_status); }; } &&
6405 { ac_try='test -s conftest.$ac_objext'
6406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 (exit $ac_status); }; }; then
6411 eval "$as_ac_Header=yes"
6413 echo "$as_me: failed program was:" >&5
6414 sed 's/^/| /' conftest.$ac_ext >&5
6416 eval "$as_ac_Header=no"
6418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6421 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6423 cat >>confdefs.h <<_ACEOF
6424 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6433 for ac_header in dlfcn.h
6435 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6437 echo "$as_me:$LINENO: checking for $ac_header" >&5
6438 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6439 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6440 echo $ECHO_N "(cached) $ECHO_C" >&6
6442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6443 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6445 # Is the header compilable?
6446 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6447 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6448 cat >conftest.$ac_ext <<_ACEOF
6451 cat confdefs.h >>conftest.$ac_ext
6452 cat >>conftest.$ac_ext <<_ACEOF
6453 /* end confdefs.h. */
6454 $ac_includes_default
6455 #include <$ac_header>
6457 rm -f conftest.$ac_objext
6458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6459 (eval $ac_compile) 2>conftest.er1
6461 grep -v '^ *+' conftest.er1 >conftest.err
6463 cat conftest.err >&5
6464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465 (exit $ac_status); } &&
6466 { ac_try='test -z "$ac_c_werror_flag"
6467 || test ! -s conftest.err'
6468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472 (exit $ac_status); }; } &&
6473 { ac_try='test -s conftest.$ac_objext'
6474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478 (exit $ac_status); }; }; then
6479 ac_header_compiler=yes
6481 echo "$as_me: failed program was:" >&5
6482 sed 's/^/| /' conftest.$ac_ext >&5
6484 ac_header_compiler=no
6486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6487 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6488 echo "${ECHO_T}$ac_header_compiler" >&6
6490 # Is the header present?
6491 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6492 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6493 cat >conftest.$ac_ext <<_ACEOF
6496 cat confdefs.h >>conftest.$ac_ext
6497 cat >>conftest.$ac_ext <<_ACEOF
6498 /* end confdefs.h. */
6499 #include <$ac_header>
6501 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6502 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6504 grep -v '^ *+' conftest.er1 >conftest.err
6506 cat conftest.err >&5
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); } >/dev/null; then
6509 if test -s conftest.err; then
6510 ac_cpp_err=$ac_c_preproc_warn_flag
6511 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6518 if test -z "$ac_cpp_err"; then
6519 ac_header_preproc=yes
6521 echo "$as_me: failed program was:" >&5
6522 sed 's/^/| /' conftest.$ac_ext >&5
6524 ac_header_preproc=no
6526 rm -f conftest.err conftest.$ac_ext
6527 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6528 echo "${ECHO_T}$ac_header_preproc" >&6
6530 # So? What about this header?
6531 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6533 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6534 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6535 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6536 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6537 ac_header_preproc=yes
6540 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6541 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6542 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6543 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6544 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6545 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6546 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6547 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6548 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6549 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6550 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6551 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6554 ## ------------------------------------------ ##
6555 ## Report this to the AC_PACKAGE_NAME lists. ##
6556 ## ------------------------------------------ ##
6559 sed "s/^/$as_me: WARNING: /" >&2
6562 echo "$as_me:$LINENO: checking for $ac_header" >&5
6563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6565 echo $ECHO_N "(cached) $ECHO_C" >&6
6567 eval "$as_ac_Header=\$ac_header_preproc"
6569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6570 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6573 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6574 cat >>confdefs.h <<_ACEOF
6575 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6583 ac_cpp='$CXXCPP $CPPFLAGS'
6584 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6585 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6586 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6587 if test -n "$ac_tool_prefix"; then
6588 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6590 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6591 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6592 echo "$as_me:$LINENO: checking for $ac_word" >&5
6593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6594 if test "${ac_cv_prog_CXX+set}" = set; then
6595 echo $ECHO_N "(cached) $ECHO_C" >&6
6597 if test -n "$CXX"; then
6598 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6604 test -z "$as_dir" && as_dir=.
6605 for ac_exec_ext in '' $ac_executable_extensions; do
6606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6607 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6617 if test -n "$CXX"; then
6618 echo "$as_me:$LINENO: result: $CXX" >&5
6619 echo "${ECHO_T}$CXX" >&6
6621 echo "$as_me:$LINENO: result: no" >&5
6622 echo "${ECHO_T}no" >&6
6625 test -n "$CXX" && break
6628 if test -z "$CXX"; then
6630 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6632 # Extract the first word of "$ac_prog", so it can be a program name with args.
6633 set dummy $ac_prog; ac_word=$2
6634 echo "$as_me:$LINENO: checking for $ac_word" >&5
6635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6636 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6637 echo $ECHO_N "(cached) $ECHO_C" >&6
6639 if test -n "$ac_ct_CXX"; then
6640 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6646 test -z "$as_dir" && as_dir=.
6647 for ac_exec_ext in '' $ac_executable_extensions; do
6648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6649 ac_cv_prog_ac_ct_CXX="$ac_prog"
6650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6658 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6659 if test -n "$ac_ct_CXX"; then
6660 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6661 echo "${ECHO_T}$ac_ct_CXX" >&6
6663 echo "$as_me:$LINENO: result: no" >&5
6664 echo "${ECHO_T}no" >&6
6667 test -n "$ac_ct_CXX" && break
6669 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6675 # Provide some information about the compiler.
6676 echo "$as_me:$LINENO:" \
6677 "checking for C++ compiler version" >&5
6678 ac_compiler=`set X $ac_compile; echo $2`
6679 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6680 (eval $ac_compiler --version </dev/null >&5) 2>&5
6682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683 (exit $ac_status); }
6684 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6685 (eval $ac_compiler -v </dev/null >&5) 2>&5
6687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688 (exit $ac_status); }
6689 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6690 (eval $ac_compiler -V </dev/null >&5) 2>&5
6692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693 (exit $ac_status); }
6695 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6696 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6697 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6698 echo $ECHO_N "(cached) $ECHO_C" >&6
6700 cat >conftest.$ac_ext <<_ACEOF
6703 cat confdefs.h >>conftest.$ac_ext
6704 cat >>conftest.$ac_ext <<_ACEOF
6705 /* end confdefs.h. */
6718 rm -f conftest.$ac_objext
6719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6720 (eval $ac_compile) 2>conftest.er1
6722 grep -v '^ *+' conftest.er1 >conftest.err
6724 cat conftest.err >&5
6725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726 (exit $ac_status); } &&
6727 { ac_try='test -z "$ac_cxx_werror_flag"
6728 || test ! -s conftest.err'
6729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733 (exit $ac_status); }; } &&
6734 { ac_try='test -s conftest.$ac_objext'
6735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739 (exit $ac_status); }; }; then
6742 echo "$as_me: failed program was:" >&5
6743 sed 's/^/| /' conftest.$ac_ext >&5
6747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6748 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6751 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6752 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6753 GXX=`test $ac_compiler_gnu = yes && echo yes`
6754 ac_test_CXXFLAGS=${CXXFLAGS+set}
6755 ac_save_CXXFLAGS=$CXXFLAGS
6757 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6758 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6759 if test "${ac_cv_prog_cxx_g+set}" = set; then
6760 echo $ECHO_N "(cached) $ECHO_C" >&6
6762 cat >conftest.$ac_ext <<_ACEOF
6765 cat confdefs.h >>conftest.$ac_ext
6766 cat >>conftest.$ac_ext <<_ACEOF
6767 /* end confdefs.h. */
6777 rm -f conftest.$ac_objext
6778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6779 (eval $ac_compile) 2>conftest.er1
6781 grep -v '^ *+' conftest.er1 >conftest.err
6783 cat conftest.err >&5
6784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785 (exit $ac_status); } &&
6786 { ac_try='test -z "$ac_cxx_werror_flag"
6787 || test ! -s conftest.err'
6788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6792 (exit $ac_status); }; } &&
6793 { ac_try='test -s conftest.$ac_objext'
6794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798 (exit $ac_status); }; }; then
6799 ac_cv_prog_cxx_g=yes
6801 echo "$as_me: failed program was:" >&5
6802 sed 's/^/| /' conftest.$ac_ext >&5
6806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6808 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6809 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6810 if test "$ac_test_CXXFLAGS" = set; then
6811 CXXFLAGS=$ac_save_CXXFLAGS
6812 elif test $ac_cv_prog_cxx_g = yes; then
6813 if test "$GXX" = yes; then
6819 if test "$GXX" = yes; then
6825 for ac_declaration in \
6827 'extern "C" void std::exit (int) throw (); using std::exit;' \
6828 'extern "C" void std::exit (int); using std::exit;' \
6829 'extern "C" void exit (int) throw ();' \
6830 'extern "C" void exit (int);' \
6833 cat >conftest.$ac_ext <<_ACEOF
6836 cat confdefs.h >>conftest.$ac_ext
6837 cat >>conftest.$ac_ext <<_ACEOF
6838 /* end confdefs.h. */
6849 rm -f conftest.$ac_objext
6850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6851 (eval $ac_compile) 2>conftest.er1
6853 grep -v '^ *+' conftest.er1 >conftest.err
6855 cat conftest.err >&5
6856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857 (exit $ac_status); } &&
6858 { ac_try='test -z "$ac_cxx_werror_flag"
6859 || test ! -s conftest.err'
6860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864 (exit $ac_status); }; } &&
6865 { ac_try='test -s conftest.$ac_objext'
6866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870 (exit $ac_status); }; }; then
6873 echo "$as_me: failed program was:" >&5
6874 sed 's/^/| /' conftest.$ac_ext >&5
6878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6879 cat >conftest.$ac_ext <<_ACEOF
6882 cat confdefs.h >>conftest.$ac_ext
6883 cat >>conftest.$ac_ext <<_ACEOF
6884 /* end confdefs.h. */
6894 rm -f conftest.$ac_objext
6895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6896 (eval $ac_compile) 2>conftest.er1
6898 grep -v '^ *+' conftest.er1 >conftest.err
6900 cat conftest.err >&5
6901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); } &&
6903 { ac_try='test -z "$ac_cxx_werror_flag"
6904 || test ! -s conftest.err'
6905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909 (exit $ac_status); }; } &&
6910 { ac_try='test -s conftest.$ac_objext'
6911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915 (exit $ac_status); }; }; then
6918 echo "$as_me: failed program was:" >&5
6919 sed 's/^/| /' conftest.$ac_ext >&5
6922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6925 if test -n "$ac_declaration"; then
6926 echo '#ifdef __cplusplus' >>confdefs.h
6927 echo $ac_declaration >>confdefs.h
6928 echo '#endif' >>confdefs.h
6932 ac_cpp='$CXXCPP $CPPFLAGS'
6933 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6934 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6935 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6937 depcc="$CXX" am_compiler_list=
6939 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6940 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6941 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6942 echo $ECHO_N "(cached) $ECHO_C" >&6
6944 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6945 # We make a subdir and do the tests there. Otherwise we can end up
6946 # making bogus files that we don't know about and never remove. For
6947 # instance it was reported that on HP-UX the gcc test will end up
6948 # making a dummy file named `D' -- because `-MD' means `put the output
6951 # Copy depcomp to subdir because otherwise we won't find it if we're
6952 # using a relative directory.
6953 cp "$am_depcomp" conftest.dir
6955 # We will build objects and dependencies in a subdirectory because
6956 # it helps to detect inapplicable dependency modes. For instance
6957 # both Tru64's cc and ICC support -MD to output dependencies as a
6958 # side effect of compilation, but ICC will put the dependencies in
6959 # the current directory while Tru64 will put them in the object
6963 am_cv_CXX_dependencies_compiler_type=none
6964 if test "$am_compiler_list" = ""; then
6965 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6967 for depmode in $am_compiler_list; do
6968 # Setup a source with many dependencies, because some compilers
6969 # like to wrap large dependency lists on column 80 (with \), and
6970 # we should not choose a depcomp mode which is confused by this.
6972 # We need to recreate these files for each test, as the compiler may
6973 # overwrite some of them when testing with obscure command lines.
6974 # This happens at least with the AIX C compiler.
6976 for i in 1 2 3 4 5 6; do
6977 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6978 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6979 # Solaris 8's {/usr,}/bin/sh.
6980 touch sub/conftst$i.h
6982 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6986 # after this tag, mechanisms are not by side-effect, so they'll
6987 # only be used when explicitly requested
6988 if test "x$enable_dependency_tracking" = xyes; then
6996 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6997 # mode. It turns out that the SunPro C++ compiler does not properly
6998 # handle `-M -o', and we need to detect this.
6999 if depmode=$depmode \
7000 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7001 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7002 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7003 >/dev/null 2>conftest.err &&
7004 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7005 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7006 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7007 # icc doesn't choke on unknown options, it will just issue warnings
7008 # or remarks (even with -Werror). So we grep stderr for any message
7009 # that says an option was ignored or not supported.
7010 # When given -MP, icc 7.0 and 7.1 complain thusly:
7011 # icc: Command line warning: ignoring option '-M'; no argument required
7012 # The diagnosis changed in icc 8.0:
7013 # icc: Command line remark: option '-MP' not supported
7014 if (grep 'ignoring option' conftest.err ||
7015 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7016 am_cv_CXX_dependencies_compiler_type=$depmode
7025 am_cv_CXX_dependencies_compiler_type=none
7029 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7030 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7031 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7036 test "x$enable_dependency_tracking" != xno \
7037 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7038 am__fastdepCXX_TRUE=
7039 am__fastdepCXX_FALSE='#'
7041 am__fastdepCXX_TRUE='#'
7042 am__fastdepCXX_FALSE=
7048 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7049 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7050 (test "X$CXX" != "Xg++"))) ; then
7052 ac_cpp='$CXXCPP $CPPFLAGS'
7053 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7054 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7055 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7056 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7057 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7058 if test -z "$CXXCPP"; then
7059 if test "${ac_cv_prog_CXXCPP+set}" = set; then
7060 echo $ECHO_N "(cached) $ECHO_C" >&6
7062 # Double quotes because CXXCPP needs to be expanded
7063 for CXXCPP in "$CXX -E" "/lib/cpp"
7066 for ac_cxx_preproc_warn_flag in '' yes
7068 # Use a header file that comes with gcc, so configuring glibc
7069 # with a fresh cross-compiler works.
7070 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7071 # <limits.h> exists even on freestanding compilers.
7072 # On the NeXT, cc -E runs the code through the compiler's parser,
7073 # not just through cpp. "Syntax error" is here to catch this case.
7074 cat >conftest.$ac_ext <<_ACEOF
7077 cat confdefs.h >>conftest.$ac_ext
7078 cat >>conftest.$ac_ext <<_ACEOF
7079 /* end confdefs.h. */
7081 # include <limits.h>
7083 # include <assert.h>
7087 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7088 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7090 grep -v '^ *+' conftest.er1 >conftest.err
7092 cat conftest.err >&5
7093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094 (exit $ac_status); } >/dev/null; then
7095 if test -s conftest.err; then
7096 ac_cpp_err=$ac_cxx_preproc_warn_flag
7097 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7104 if test -z "$ac_cpp_err"; then
7107 echo "$as_me: failed program was:" >&5
7108 sed 's/^/| /' conftest.$ac_ext >&5
7110 # Broken: fails on valid input.
7113 rm -f conftest.err conftest.$ac_ext
7115 # OK, works on sane cases. Now check whether non-existent headers
7116 # can be detected and how.
7117 cat >conftest.$ac_ext <<_ACEOF
7120 cat confdefs.h >>conftest.$ac_ext
7121 cat >>conftest.$ac_ext <<_ACEOF
7122 /* end confdefs.h. */
7123 #include <ac_nonexistent.h>
7125 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7126 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7128 grep -v '^ *+' conftest.er1 >conftest.err
7130 cat conftest.err >&5
7131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132 (exit $ac_status); } >/dev/null; then
7133 if test -s conftest.err; then
7134 ac_cpp_err=$ac_cxx_preproc_warn_flag
7135 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7142 if test -z "$ac_cpp_err"; then
7143 # Broken: success on invalid input.
7146 echo "$as_me: failed program was:" >&5
7147 sed 's/^/| /' conftest.$ac_ext >&5
7149 # Passes both tests.
7153 rm -f conftest.err conftest.$ac_ext
7156 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7157 rm -f conftest.err conftest.$ac_ext
7158 if $ac_preproc_ok; then
7163 ac_cv_prog_CXXCPP=$CXXCPP
7166 CXXCPP=$ac_cv_prog_CXXCPP
7168 ac_cv_prog_CXXCPP=$CXXCPP
7170 echo "$as_me:$LINENO: result: $CXXCPP" >&5
7171 echo "${ECHO_T}$CXXCPP" >&6
7173 for ac_cxx_preproc_warn_flag in '' yes
7175 # Use a header file that comes with gcc, so configuring glibc
7176 # with a fresh cross-compiler works.
7177 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7178 # <limits.h> exists even on freestanding compilers.
7179 # On the NeXT, cc -E runs the code through the compiler's parser,
7180 # not just through cpp. "Syntax error" is here to catch this case.
7181 cat >conftest.$ac_ext <<_ACEOF
7184 cat confdefs.h >>conftest.$ac_ext
7185 cat >>conftest.$ac_ext <<_ACEOF
7186 /* end confdefs.h. */
7188 # include <limits.h>
7190 # include <assert.h>
7194 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7195 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7197 grep -v '^ *+' conftest.er1 >conftest.err
7199 cat conftest.err >&5
7200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201 (exit $ac_status); } >/dev/null; then
7202 if test -s conftest.err; then
7203 ac_cpp_err=$ac_cxx_preproc_warn_flag
7204 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7211 if test -z "$ac_cpp_err"; then
7214 echo "$as_me: failed program was:" >&5
7215 sed 's/^/| /' conftest.$ac_ext >&5
7217 # Broken: fails on valid input.
7220 rm -f conftest.err conftest.$ac_ext
7222 # OK, works on sane cases. Now check whether non-existent headers
7223 # can be detected and how.
7224 cat >conftest.$ac_ext <<_ACEOF
7227 cat confdefs.h >>conftest.$ac_ext
7228 cat >>conftest.$ac_ext <<_ACEOF
7229 /* end confdefs.h. */
7230 #include <ac_nonexistent.h>
7232 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7233 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7235 grep -v '^ *+' conftest.er1 >conftest.err
7237 cat conftest.err >&5
7238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239 (exit $ac_status); } >/dev/null; then
7240 if test -s conftest.err; then
7241 ac_cpp_err=$ac_cxx_preproc_warn_flag
7242 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7249 if test -z "$ac_cpp_err"; then
7250 # Broken: success on invalid input.
7253 echo "$as_me: failed program was:" >&5
7254 sed 's/^/| /' conftest.$ac_ext >&5
7256 # Passes both tests.
7260 rm -f conftest.err conftest.$ac_ext
7263 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7264 rm -f conftest.err conftest.$ac_ext
7265 if $ac_preproc_ok; then
7268 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7269 See \`config.log' for more details." >&5
7270 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7271 See \`config.log' for more details." >&2;}
7272 { (exit 1); exit 1; }; }
7276 ac_cpp='$CXXCPP $CPPFLAGS'
7277 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7278 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7279 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7285 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7286 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7287 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7288 if test -n "$ac_tool_prefix"; then
7289 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7291 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7292 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7293 echo "$as_me:$LINENO: checking for $ac_word" >&5
7294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7295 if test "${ac_cv_prog_F77+set}" = set; then
7296 echo $ECHO_N "(cached) $ECHO_C" >&6
7298 if test -n "$F77"; then
7299 ac_cv_prog_F77="$F77" # Let the user override the test.
7301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7305 test -z "$as_dir" && as_dir=.
7306 for ac_exec_ext in '' $ac_executable_extensions; do
7307 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7308 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7318 if test -n "$F77"; then
7319 echo "$as_me:$LINENO: result: $F77" >&5
7320 echo "${ECHO_T}$F77" >&6
7322 echo "$as_me:$LINENO: result: no" >&5
7323 echo "${ECHO_T}no" >&6
7326 test -n "$F77" && break
7329 if test -z "$F77"; then
7331 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7333 # Extract the first word of "$ac_prog", so it can be a program name with args.
7334 set dummy $ac_prog; ac_word=$2
7335 echo "$as_me:$LINENO: checking for $ac_word" >&5
7336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7337 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7338 echo $ECHO_N "(cached) $ECHO_C" >&6
7340 if test -n "$ac_ct_F77"; then
7341 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7347 test -z "$as_dir" && as_dir=.
7348 for ac_exec_ext in '' $ac_executable_extensions; do
7349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7350 ac_cv_prog_ac_ct_F77="$ac_prog"
7351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7359 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7360 if test -n "$ac_ct_F77"; then
7361 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7362 echo "${ECHO_T}$ac_ct_F77" >&6
7364 echo "$as_me:$LINENO: result: no" >&5
7365 echo "${ECHO_T}no" >&6
7368 test -n "$ac_ct_F77" && break
7375 # Provide some information about the compiler.
7376 echo "$as_me:7376:" \
7377 "checking for Fortran 77 compiler version" >&5
7378 ac_compiler=`set X $ac_compile; echo $2`
7379 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7380 (eval $ac_compiler --version </dev/null >&5) 2>&5
7382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383 (exit $ac_status); }
7384 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7385 (eval $ac_compiler -v </dev/null >&5) 2>&5
7387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7388 (exit $ac_status); }
7389 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7390 (eval $ac_compiler -V </dev/null >&5) 2>&5
7392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393 (exit $ac_status); }
7396 # If we don't use `.F' as extension, the preprocessor is not run on the
7397 # input file. (Note that this only needs to work for GNU compilers.)
7400 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7401 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7402 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7403 echo $ECHO_N "(cached) $ECHO_C" >&6
7405 cat >conftest.$ac_ext <<_ACEOF
7413 rm -f conftest.$ac_objext
7414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7415 (eval $ac_compile) 2>conftest.er1
7417 grep -v '^ *+' conftest.er1 >conftest.err
7419 cat conftest.err >&5
7420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421 (exit $ac_status); } &&
7422 { ac_try='test -z "$ac_f77_werror_flag"
7423 || test ! -s conftest.err'
7424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428 (exit $ac_status); }; } &&
7429 { ac_try='test -s conftest.$ac_objext'
7430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434 (exit $ac_status); }; }; then
7437 echo "$as_me: failed program was:" >&5
7438 sed 's/^/| /' conftest.$ac_ext >&5
7442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7443 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7446 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7447 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7449 ac_test_FFLAGS=${FFLAGS+set}
7450 ac_save_FFLAGS=$FFLAGS
7452 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7453 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7454 if test "${ac_cv_prog_f77_g+set}" = set; then
7455 echo $ECHO_N "(cached) $ECHO_C" >&6
7458 cat >conftest.$ac_ext <<_ACEOF
7463 rm -f conftest.$ac_objext
7464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7465 (eval $ac_compile) 2>conftest.er1
7467 grep -v '^ *+' conftest.er1 >conftest.err
7469 cat conftest.err >&5
7470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471 (exit $ac_status); } &&
7472 { ac_try='test -z "$ac_f77_werror_flag"
7473 || test ! -s conftest.err'
7474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7478 (exit $ac_status); }; } &&
7479 { ac_try='test -s conftest.$ac_objext'
7480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7484 (exit $ac_status); }; }; then
7485 ac_cv_prog_f77_g=yes
7487 echo "$as_me: failed program was:" >&5
7488 sed 's/^/| /' conftest.$ac_ext >&5
7492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7495 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7496 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7497 if test "$ac_test_FFLAGS" = set; then
7498 FFLAGS=$ac_save_FFLAGS
7499 elif test $ac_cv_prog_f77_g = yes; then
7500 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7506 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7513 G77=`test $ac_compiler_gnu = yes && echo yes`
7515 ac_cpp='$CPP $CPPFLAGS'
7516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7522 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7524 # find the maximum length of command line arguments
7525 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7526 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7527 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7528 echo $ECHO_N "(cached) $ECHO_C" >&6
7535 # On DJGPP, this test can blow up pretty badly due to problems in libc
7536 # (any single argument exceeding 2000 bytes causes a buffer overrun
7537 # during glob expansion). Even if it were fixed, the result of this
7538 # check would be larger than it should be.
7539 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7543 # Under GNU Hurd, this test is not required because there is
7544 # no limit to the length of command line arguments.
7545 # Libtool will interpret -1 as no limit whatsoever
7546 lt_cv_sys_max_cmd_len=-1;
7550 # On Win9x/ME, this test blows up -- it succeeds, but takes
7551 # about 5 minutes as the teststring grows exponentially.
7552 # Worse, since 9x/ME are not pre-emptively multitasking,
7553 # you end up with a "frozen" computer, even though with patience
7554 # the test eventually succeeds (with a max line length of 256k).
7555 # Instead, let's just punt: use the minimum linelength reported by
7556 # all of the supported platforms: 8192 (on NT/2K/XP).
7557 lt_cv_sys_max_cmd_len=8192;
7561 # On AmigaOS with pdksh, this test takes hours, literally.
7562 # So we just punt and use a minimum line length of 8192.
7563 lt_cv_sys_max_cmd_len=8192;
7566 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7567 # This has been around since 386BSD, at least. Likely further.
7568 if test -x /sbin/sysctl; then
7569 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7570 elif test -x /usr/sbin/sysctl; then
7571 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7573 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
7575 # And add a safety zone
7576 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7577 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7580 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7581 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7582 # nice to cause kernel panics so lets avoid the loop below.
7583 # First set a reasonable default.
7584 lt_cv_sys_max_cmd_len=16384
7586 if test -x /sbin/sysconfig; then
7587 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7588 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7593 # If test is not a shell built-in, we'll probably end up computing a
7594 # maximum length that is only half of the actual maximum length, but
7596 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7597 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7598 = "XX$teststring") >/dev/null 2>&1 &&
7599 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7600 lt_cv_sys_max_cmd_len=$new_result &&
7601 test $i != 17 # 1/2 MB should be enough
7604 teststring=$teststring$teststring
7607 # Add a significant safety factor because C++ compilers can tack on massive
7608 # amounts of additional arguments before passing them to the linker.
7609 # It appears as though 1/2 is a usable value.
7610 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7616 if test -n $lt_cv_sys_max_cmd_len ; then
7617 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7618 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7620 echo "$as_me:$LINENO: result: none" >&5
7621 echo "${ECHO_T}none" >&6
7627 # Check for command to grab the raw symbol name followed by C symbol from nm.
7628 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7629 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7630 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7631 echo $ECHO_N "(cached) $ECHO_C" >&6
7634 # These are sane defaults that work on at least a few old systems.
7635 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7637 # Character class describing NM global symbol codes.
7638 symcode='[BCDEGRST]'
7640 # Regexp to match symbols that can be accessed directly from C.
7641 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7643 # Transform an extracted symbol line into a proper C declaration
7644 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7646 # Transform an extracted symbol line into symbol name and symbol address
7647 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'"
7649 # Define system-specific variables.
7654 cygwin* | mingw* | pw32*)
7655 symcode='[ABCDGISTW]'
7657 hpux*) # Its linker distinguishes data from code symbols
7658 if test "$host_cpu" = ia64; then
7659 symcode='[ABCDEGRST]'
7661 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7662 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'"
7665 if test "$host_cpu" = ia64; then
7666 symcode='[ABCDGIRSTW]'
7667 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7668 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'"
7672 symcode='[BCDEGRST]'
7675 symcode='[BCDEGQRST]'
7685 # Handle CRLF in mingw tool chain
7689 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7693 # If we're using GNU nm, then use its standard symbol codes.
7694 case `$NM -V 2>&1` in
7695 *GNU* | *'with BFD'*)
7696 symcode='[ABCDGIRSTW]' ;;
7699 # Try without a prefix undercore, then with it.
7700 for ac_symprfx in "" "_"; do
7702 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7703 symxfrm="\\1 $ac_symprfx\\2 \\2"
7705 # Write the raw and C identifiers.
7706 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7708 # Check to see that the pipe works correctly.
7712 cat > conftest.$ac_ext <<EOF
7717 void nm_test_func(){}
7721 int main(){nm_test_var='a';nm_test_func();return(0);}
7724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7725 (eval $ac_compile) 2>&5
7727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728 (exit $ac_status); }; then
7729 # Now try to grab the symbols.
7731 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7732 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735 (exit $ac_status); } && test -s "$nlist"; then
7736 # Try sorting and uniquifying the output.
7737 if sort "$nlist" | uniq > "$nlist"T; then
7738 mv -f "$nlist"T "$nlist"
7743 # Make sure that we snagged all the symbols we need.
7744 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7745 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7746 cat <<EOF > conftest.$ac_ext
7752 # Now generate the symbol file.
7753 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7755 cat <<EOF >> conftest.$ac_ext
7756 #if defined (__STDC__) && __STDC__
7757 # define lt_ptr_t void *
7759 # define lt_ptr_t char *
7763 /* The mapping between symbol names and symbols. */
7768 lt_preloaded_symbols[] =
7771 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7772 cat <<\EOF >> conftest.$ac_ext
7780 # Now try linking the two files.
7781 mv conftest.$ac_objext conftstm.$ac_objext
7782 lt_save_LIBS="$LIBS"
7783 lt_save_CFLAGS="$CFLAGS"
7784 LIBS="conftstm.$ac_objext"
7785 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7787 (eval $ac_link) 2>&5
7789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7793 LIBS="$lt_save_LIBS"
7794 CFLAGS="$lt_save_CFLAGS"
7796 echo "cannot find nm_test_func in $nlist" >&5
7799 echo "cannot find nm_test_var in $nlist" >&5
7802 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7805 echo "$progname: failed program was:" >&5
7806 cat conftest.$ac_ext >&5
7808 rm -f conftest* conftst*
7810 # Do not use the global_symbol_pipe unless it works.
7811 if test "$pipe_works" = yes; then
7814 lt_cv_sys_global_symbol_pipe=
7820 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7821 lt_cv_sys_global_symbol_to_cdecl=
7823 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7824 echo "$as_me:$LINENO: result: failed" >&5
7825 echo "${ECHO_T}failed" >&6
7827 echo "$as_me:$LINENO: result: ok" >&5
7828 echo "${ECHO_T}ok" >&6
7831 echo "$as_me:$LINENO: checking for objdir" >&5
7832 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7833 if test "${lt_cv_objdir+set}" = set; then
7834 echo $ECHO_N "(cached) $ECHO_C" >&6
7836 rm -f .libs 2>/dev/null
7837 mkdir .libs 2>/dev/null
7838 if test -d .libs; then
7841 # MS-DOS does not allow filenames that begin with a dot.
7844 rmdir .libs 2>/dev/null
7846 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7847 echo "${ECHO_T}$lt_cv_objdir" >&6
7848 objdir=$lt_cv_objdir
7856 # AIX sometimes has problems with the GCC collect2 program. For some
7857 # reason, if we set the COLLECT_NAMES environment variable, the problems
7858 # vanish in a puff of smoke.
7859 if test "X${COLLECT_NAMES+set}" != Xset; then
7861 export COLLECT_NAMES
7866 # Sed substitution that helps us do robust quoting. It backslashifies
7867 # metacharacters that are still active within double-quoted strings.
7868 Xsed='sed -e 1s/^X//'
7869 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7871 # Same as above, but do not quote variable references.
7872 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7874 # Sed substitution to delay expansion of an escaped shell variable in a
7875 # double_quote_subst'ed string.
7876 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7878 # Sed substitution to avoid accidental globbing in evaled expressions
7879 no_glob_subst='s/\*/\\\*/g'
7885 default_ofile=libtool
7886 can_build_shared=yes
7888 # All known linkers require a `.a' archive for static linking (except M$VC,
7889 # which needs '.lib').
7891 ltmain="$ac_aux_dir/ltmain.sh"
7892 ofile="$default_ofile"
7893 with_gnu_ld="$lt_cv_prog_gnu_ld"
7895 if test -n "$ac_tool_prefix"; then
7896 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7897 set dummy ${ac_tool_prefix}ar; ac_word=$2
7898 echo "$as_me:$LINENO: checking for $ac_word" >&5
7899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7900 if test "${ac_cv_prog_AR+set}" = set; then
7901 echo $ECHO_N "(cached) $ECHO_C" >&6
7903 if test -n "$AR"; then
7904 ac_cv_prog_AR="$AR" # Let the user override the test.
7906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7910 test -z "$as_dir" && as_dir=.
7911 for ac_exec_ext in '' $ac_executable_extensions; do
7912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7913 ac_cv_prog_AR="${ac_tool_prefix}ar"
7914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7923 if test -n "$AR"; then
7924 echo "$as_me:$LINENO: result: $AR" >&5
7925 echo "${ECHO_T}$AR" >&6
7927 echo "$as_me:$LINENO: result: no" >&5
7928 echo "${ECHO_T}no" >&6
7932 if test -z "$ac_cv_prog_AR"; then
7934 # Extract the first word of "ar", so it can be a program name with args.
7935 set dummy ar; ac_word=$2
7936 echo "$as_me:$LINENO: checking for $ac_word" >&5
7937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7938 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7939 echo $ECHO_N "(cached) $ECHO_C" >&6
7941 if test -n "$ac_ct_AR"; then
7942 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7948 test -z "$as_dir" && as_dir=.
7949 for ac_exec_ext in '' $ac_executable_extensions; do
7950 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7951 ac_cv_prog_ac_ct_AR="ar"
7952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7958 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7961 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7962 if test -n "$ac_ct_AR"; then
7963 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7964 echo "${ECHO_T}$ac_ct_AR" >&6
7966 echo "$as_me:$LINENO: result: no" >&5
7967 echo "${ECHO_T}no" >&6
7975 if test -n "$ac_tool_prefix"; then
7976 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7977 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7978 echo "$as_me:$LINENO: checking for $ac_word" >&5
7979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7980 if test "${ac_cv_prog_RANLIB+set}" = set; then
7981 echo $ECHO_N "(cached) $ECHO_C" >&6
7983 if test -n "$RANLIB"; then
7984 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7990 test -z "$as_dir" && as_dir=.
7991 for ac_exec_ext in '' $ac_executable_extensions; do
7992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7993 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8002 RANLIB=$ac_cv_prog_RANLIB
8003 if test -n "$RANLIB"; then
8004 echo "$as_me:$LINENO: result: $RANLIB" >&5
8005 echo "${ECHO_T}$RANLIB" >&6
8007 echo "$as_me:$LINENO: result: no" >&5
8008 echo "${ECHO_T}no" >&6
8012 if test -z "$ac_cv_prog_RANLIB"; then
8013 ac_ct_RANLIB=$RANLIB
8014 # Extract the first word of "ranlib", so it can be a program name with args.
8015 set dummy ranlib; ac_word=$2
8016 echo "$as_me:$LINENO: checking for $ac_word" >&5
8017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8018 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8019 echo $ECHO_N "(cached) $ECHO_C" >&6
8021 if test -n "$ac_ct_RANLIB"; then
8022 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8028 test -z "$as_dir" && as_dir=.
8029 for ac_exec_ext in '' $ac_executable_extensions; do
8030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8031 ac_cv_prog_ac_ct_RANLIB="ranlib"
8032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8038 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8041 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8042 if test -n "$ac_ct_RANLIB"; then
8043 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8044 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8046 echo "$as_me:$LINENO: result: no" >&5
8047 echo "${ECHO_T}no" >&6
8050 RANLIB=$ac_ct_RANLIB
8052 RANLIB="$ac_cv_prog_RANLIB"
8055 if test -n "$ac_tool_prefix"; then
8056 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8057 set dummy ${ac_tool_prefix}strip; ac_word=$2
8058 echo "$as_me:$LINENO: checking for $ac_word" >&5
8059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8060 if test "${ac_cv_prog_STRIP+set}" = set; then
8061 echo $ECHO_N "(cached) $ECHO_C" >&6
8063 if test -n "$STRIP"; then
8064 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8070 test -z "$as_dir" && as_dir=.
8071 for ac_exec_ext in '' $ac_executable_extensions; do
8072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8073 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8082 STRIP=$ac_cv_prog_STRIP
8083 if test -n "$STRIP"; then
8084 echo "$as_me:$LINENO: result: $STRIP" >&5
8085 echo "${ECHO_T}$STRIP" >&6
8087 echo "$as_me:$LINENO: result: no" >&5
8088 echo "${ECHO_T}no" >&6
8092 if test -z "$ac_cv_prog_STRIP"; then
8094 # Extract the first word of "strip", so it can be a program name with args.
8095 set dummy strip; ac_word=$2
8096 echo "$as_me:$LINENO: checking for $ac_word" >&5
8097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8098 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8099 echo $ECHO_N "(cached) $ECHO_C" >&6
8101 if test -n "$ac_ct_STRIP"; then
8102 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8108 test -z "$as_dir" && as_dir=.
8109 for ac_exec_ext in '' $ac_executable_extensions; do
8110 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8111 ac_cv_prog_ac_ct_STRIP="strip"
8112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8118 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8121 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8122 if test -n "$ac_ct_STRIP"; then
8123 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8124 echo "${ECHO_T}$ac_ct_STRIP" >&6
8126 echo "$as_me:$LINENO: result: no" >&5
8127 echo "${ECHO_T}no" >&6
8132 STRIP="$ac_cv_prog_STRIP"
8137 old_CFLAGS="$CFLAGS"
8139 # Set sane defaults for various variables
8140 test -z "$AR" && AR=ar
8141 test -z "$AR_FLAGS" && AR_FLAGS=cru
8142 test -z "$AS" && AS=as
8143 test -z "$CC" && CC=cc
8144 test -z "$LTCC" && LTCC=$CC
8145 test -z "$DLLTOOL" && DLLTOOL=dlltool
8146 test -z "$LD" && LD=ld
8147 test -z "$LN_S" && LN_S="ln -s"
8148 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8149 test -z "$NM" && NM=nm
8150 test -z "$SED" && SED=sed
8151 test -z "$OBJDUMP" && OBJDUMP=objdump
8152 test -z "$RANLIB" && RANLIB=:
8153 test -z "$STRIP" && STRIP=:
8154 test -z "$ac_objext" && ac_objext=o
8156 # Determine commands to create old-style static archives.
8157 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8158 old_postinstall_cmds='chmod 644 $oldlib'
8159 old_postuninstall_cmds=
8161 if test -n "$RANLIB"; then
8164 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8167 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8170 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8173 for cc_temp in $compiler""; do
8175 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8176 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8181 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8184 # Only perform the check for file, if the check method requires it
8185 case $deplibs_check_method in
8187 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8188 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8189 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8190 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8191 echo $ECHO_N "(cached) $ECHO_C" >&6
8195 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8198 lt_save_MAGIC_CMD="$MAGIC_CMD"
8199 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8200 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8201 for ac_dir in $ac_dummy; do
8203 test -z "$ac_dir" && ac_dir=.
8204 if test -f $ac_dir/${ac_tool_prefix}file; then
8205 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8206 if test -n "$file_magic_test_file"; then
8207 case $deplibs_check_method in
8209 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8210 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8211 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8212 $EGREP "$file_magic_regex" > /dev/null; then
8217 *** Warning: the command libtool uses to detect shared libraries,
8218 *** $file_magic_cmd, produces output that libtool cannot recognize.
8219 *** The result is that libtool may fail to recognize shared libraries
8220 *** as such. This will affect the creation of libtool libraries that
8221 *** depend on shared libraries, but programs linked with such libtool
8222 *** libraries will work regardless of this problem. Nevertheless, you
8223 *** may want to report the problem to your system manager and/or to
8224 *** bug-libtool@gnu.org
8234 MAGIC_CMD="$lt_save_MAGIC_CMD"
8239 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8240 if test -n "$MAGIC_CMD"; then
8241 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8242 echo "${ECHO_T}$MAGIC_CMD" >&6
8244 echo "$as_me:$LINENO: result: no" >&5
8245 echo "${ECHO_T}no" >&6
8248 if test -z "$lt_cv_path_MAGIC_CMD"; then
8249 if test -n "$ac_tool_prefix"; then
8250 echo "$as_me:$LINENO: checking for file" >&5
8251 echo $ECHO_N "checking for file... $ECHO_C" >&6
8252 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8253 echo $ECHO_N "(cached) $ECHO_C" >&6
8257 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8260 lt_save_MAGIC_CMD="$MAGIC_CMD"
8261 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8262 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8263 for ac_dir in $ac_dummy; do
8265 test -z "$ac_dir" && ac_dir=.
8266 if test -f $ac_dir/file; then
8267 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8268 if test -n "$file_magic_test_file"; then
8269 case $deplibs_check_method in
8271 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8272 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8273 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8274 $EGREP "$file_magic_regex" > /dev/null; then
8279 *** Warning: the command libtool uses to detect shared libraries,
8280 *** $file_magic_cmd, produces output that libtool cannot recognize.
8281 *** The result is that libtool may fail to recognize shared libraries
8282 *** as such. This will affect the creation of libtool libraries that
8283 *** depend on shared libraries, but programs linked with such libtool
8284 *** libraries will work regardless of this problem. Nevertheless, you
8285 *** may want to report the problem to your system manager and/or to
8286 *** bug-libtool@gnu.org
8296 MAGIC_CMD="$lt_save_MAGIC_CMD"
8301 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8302 if test -n "$MAGIC_CMD"; then
8303 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8304 echo "${ECHO_T}$MAGIC_CMD" >&6
8306 echo "$as_me:$LINENO: result: no" >&5
8307 echo "${ECHO_T}no" >&6
8320 enable_win32_dll=yes
8322 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8323 if test "${enable_libtool_lock+set}" = set; then
8324 enableval="$enable_libtool_lock"
8327 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8330 # Check whether --with-pic or --without-pic was given.
8331 if test "${with_pic+set}" = set; then
8337 test -z "$pic_mode" && pic_mode=default
8339 # Use C for the default configuration in the libtool script
8343 ac_cpp='$CPP $CPPFLAGS'
8344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8349 # Source file extension for C test sources.
8352 # Object file extension for compiled C test sources.
8356 # Code to be used in simple compile tests
8357 lt_simple_compile_test_code="int some_variable = 0;\n"
8359 # Code to be used in simple link tests
8360 lt_simple_link_test_code='int main(){return(0);}\n'
8363 # If no C compiler was specified, use CC.
8366 # Allow CC to be a program name with arguments.
8370 # save warnings/boilerplate of simple test code
8371 ac_outfile=conftest.$ac_objext
8372 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8373 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8374 _lt_compiler_boilerplate=`cat conftest.err`
8377 ac_outfile=conftest.$ac_objext
8378 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8379 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8380 _lt_linker_boilerplate=`cat conftest.err`
8385 # Check for any special shared library compilation flags.
8388 if test "$GCC" = no; then
8391 lt_prog_cc_shlib='-belf'
8395 if test -n "$lt_prog_cc_shlib"; then
8396 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8397 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8398 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
8400 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8401 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8402 lt_cv_prog_cc_can_build_shared=no
8408 # Check to make sure the static flag actually works.
8410 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8411 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
8412 if test "${lt_prog_compiler_static_works+set}" = set; then
8413 echo $ECHO_N "(cached) $ECHO_C" >&6
8415 lt_prog_compiler_static_works=no
8416 save_LDFLAGS="$LDFLAGS"
8417 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8418 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8419 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8420 # The compiler can only warn and ignore the option if not recognized
8421 # So say no if there are warnings
8422 if test -s conftest.err; then
8423 # Append any errors to the config.log.
8424 cat conftest.err 1>&5
8425 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
8426 $SED '/^$/d' conftest.err >conftest.er2
8427 if diff conftest.exp conftest.er2 >/dev/null; then
8428 lt_prog_compiler_static_works=yes
8431 lt_prog_compiler_static_works=yes
8435 LDFLAGS="$save_LDFLAGS"
8438 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8439 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8441 if test x"$lt_prog_compiler_static_works" = xyes; then
8444 lt_prog_compiler_static=
8450 lt_prog_compiler_no_builtin_flag=
8452 if test "$GCC" = yes; then
8453 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8456 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8457 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8458 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8459 echo $ECHO_N "(cached) $ECHO_C" >&6
8461 lt_cv_prog_compiler_rtti_exceptions=no
8462 ac_outfile=conftest.$ac_objext
8463 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8464 lt_compiler_flag="-fno-rtti -fno-exceptions"
8465 # Insert the option either (1) after the last *FLAGS variable, or
8466 # (2) before a word containing "conftest.", or (3) at the end.
8467 # Note that $ac_compile itself does not contain backslashes and begins
8468 # with a dollar sign (not a hyphen), so the echo should work correctly.
8469 # The option is referenced via a variable to avoid confusing sed.
8470 lt_compile=`echo "$ac_compile" | $SED \
8471 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8472 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8473 -e 's:$: $lt_compiler_flag:'`
8474 (eval echo "\"\$as_me:8474: $lt_compile\"" >&5)
8475 (eval "$lt_compile" 2>conftest.err)
8477 cat conftest.err >&5
8478 echo "$as_me:8478: \$? = $ac_status" >&5
8479 if (exit $ac_status) && test -s "$ac_outfile"; then
8480 # The compiler can only warn and ignore the option if not recognized
8481 # So say no if there are warnings other than the usual output.
8482 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8483 $SED '/^$/d' conftest.err >conftest.er2
8484 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8485 lt_cv_prog_compiler_rtti_exceptions=yes
8491 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8492 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8494 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8495 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8502 lt_prog_compiler_wl=
8503 lt_prog_compiler_pic=
8504 lt_prog_compiler_static=
8506 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8507 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8509 if test "$GCC" = yes; then
8510 lt_prog_compiler_wl='-Wl,'
8511 lt_prog_compiler_static='-static'
8515 # All AIX code is PIC.
8516 if test "$host_cpu" = ia64; then
8517 # AIX 5 now supports IA64 processor
8518 lt_prog_compiler_static='-Bstatic'
8523 # FIXME: we need at least 68020 code to build shared libraries, but
8524 # adding the `-m68020' flag to GCC prevents building anything better,
8526 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8529 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8530 # PIC is the default for these OSes.
8533 mingw* | pw32* | os2*)
8534 # This hack is so that the source file can tell whether it is being
8535 # built for inclusion in a dll (and should export symbols for example).
8536 lt_prog_compiler_pic='-DDLL_EXPORT'
8539 darwin* | rhapsody*)
8540 # PIC is the default on this platform
8541 # Common symbols not allowed in MH_DYLIB files
8542 lt_prog_compiler_pic='-fno-common'
8546 # Just because we use GCC doesn't mean we suddenly get shared libraries
8547 # on systems that don't support them.
8548 lt_prog_compiler_can_build_shared=no
8553 if test -d /usr/nec; then
8554 lt_prog_compiler_pic=-Kconform_pic
8559 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8566 lt_prog_compiler_pic='-fPIC'
8572 lt_prog_compiler_pic='-fPIC'
8576 # PORTME Check for flag to pass linker flags through the system compiler.
8579 lt_prog_compiler_wl='-Wl,'
8580 if test "$host_cpu" = ia64; then
8581 # AIX 5 now supports IA64 processor
8582 lt_prog_compiler_static='-Bstatic'
8584 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8588 # PIC is the default on this platform
8589 # Common symbols not allowed in MH_DYLIB files
8590 case $cc_basename in
8592 lt_prog_compiler_pic='-qnocommon'
8593 lt_prog_compiler_wl='-Wl,'
8598 mingw* | pw32* | os2*)
8599 # This hack is so that the source file can tell whether it is being
8600 # built for inclusion in a dll (and should export symbols for example).
8601 lt_prog_compiler_pic='-DDLL_EXPORT'
8604 hpux9* | hpux10* | hpux11*)
8605 lt_prog_compiler_wl='-Wl,'
8606 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8613 lt_prog_compiler_pic='+Z'
8616 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8617 lt_prog_compiler_static='${wl}-a ${wl}archive'
8620 irix5* | irix6* | nonstopux*)
8621 lt_prog_compiler_wl='-Wl,'
8622 # PIC (with -KPIC) is the default.
8623 lt_prog_compiler_static='-non_shared'
8627 lt_prog_compiler_pic='-KPIC'
8628 lt_prog_compiler_static='-Bstatic'
8632 case $cc_basename in
8634 lt_prog_compiler_wl='-Wl,'
8635 lt_prog_compiler_pic='-KPIC'
8636 lt_prog_compiler_static='-static'
8638 pgcc* | pgf77* | pgf90*)
8639 # Portland Group compilers (*not* the Pentium gcc compiler,
8640 # which looks to be a dead project)
8641 lt_prog_compiler_wl='-Wl,'
8642 lt_prog_compiler_pic='-fpic'
8643 lt_prog_compiler_static='-static'
8646 lt_prog_compiler_wl='-Wl,'
8647 # All Alpha code is PIC.
8648 lt_prog_compiler_static='-non_shared'
8653 osf3* | osf4* | osf5*)
8654 lt_prog_compiler_wl='-Wl,'
8655 # All OSF/1 code is PIC.
8656 lt_prog_compiler_static='-non_shared'
8660 lt_prog_compiler_pic='-Kpic'
8661 lt_prog_compiler_static='-dn'
8665 lt_prog_compiler_pic='-KPIC'
8666 lt_prog_compiler_static='-Bstatic'
8667 case $cc_basename in
8669 lt_prog_compiler_wl='-Qoption ld ';;
8671 lt_prog_compiler_wl='-Wl,';;
8676 lt_prog_compiler_wl='-Qoption ld '
8677 lt_prog_compiler_pic='-PIC'
8678 lt_prog_compiler_static='-Bstatic'
8681 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8682 lt_prog_compiler_wl='-Wl,'
8683 lt_prog_compiler_pic='-KPIC'
8684 lt_prog_compiler_static='-Bstatic'
8688 if test -d /usr/nec ;then
8689 lt_prog_compiler_pic='-Kconform_pic'
8690 lt_prog_compiler_static='-Bstatic'
8695 lt_prog_compiler_wl='-Wl,'
8696 lt_prog_compiler_can_build_shared=no
8700 lt_prog_compiler_pic='-pic'
8701 lt_prog_compiler_static='-Bstatic'
8705 lt_prog_compiler_can_build_shared=no
8710 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8711 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8714 # Check to make sure the PIC flag actually works.
8716 if test -n "$lt_prog_compiler_pic"; then
8718 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8719 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8720 if test "${lt_prog_compiler_pic_works+set}" = set; then
8721 echo $ECHO_N "(cached) $ECHO_C" >&6
8723 lt_prog_compiler_pic_works=no
8724 ac_outfile=conftest.$ac_objext
8725 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8726 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8727 # Insert the option either (1) after the last *FLAGS variable, or
8728 # (2) before a word containing "conftest.", or (3) at the end.
8729 # Note that $ac_compile itself does not contain backslashes and begins
8730 # with a dollar sign (not a hyphen), so the echo should work correctly.
8731 # The option is referenced via a variable to avoid confusing sed.
8732 lt_compile=`echo "$ac_compile" | $SED \
8733 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8734 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8735 -e 's:$: $lt_compiler_flag:'`
8736 (eval echo "\"\$as_me:8736: $lt_compile\"" >&5)
8737 (eval "$lt_compile" 2>conftest.err)
8739 cat conftest.err >&5
8740 echo "$as_me:8740: \$? = $ac_status" >&5
8741 if (exit $ac_status) && test -s "$ac_outfile"; then
8742 # The compiler can only warn and ignore the option if not recognized
8743 # So say no if there are warnings other than the usual output.
8744 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8745 $SED '/^$/d' conftest.err >conftest.er2
8746 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8747 lt_prog_compiler_pic_works=yes
8753 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8754 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8756 if test x"$lt_prog_compiler_pic_works" = xyes; then
8757 case $lt_prog_compiler_pic in
8759 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8762 lt_prog_compiler_pic=
8763 lt_prog_compiler_can_build_shared=no
8768 # For platforms which do not support PIC, -DPIC is meaningless:
8770 lt_prog_compiler_pic=
8773 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8777 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8778 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8779 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8780 echo $ECHO_N "(cached) $ECHO_C" >&6
8782 lt_cv_prog_compiler_c_o=no
8783 $rm -r conftest 2>/dev/null
8787 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8789 lt_compiler_flag="-o out/conftest2.$ac_objext"
8790 # Insert the option either (1) after the last *FLAGS variable, or
8791 # (2) before a word containing "conftest.", or (3) at the end.
8792 # Note that $ac_compile itself does not contain backslashes and begins
8793 # with a dollar sign (not a hyphen), so the echo should work correctly.
8794 lt_compile=`echo "$ac_compile" | $SED \
8795 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8796 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8797 -e 's:$: $lt_compiler_flag:'`
8798 (eval echo "\"\$as_me:8798: $lt_compile\"" >&5)
8799 (eval "$lt_compile" 2>out/conftest.err)
8801 cat out/conftest.err >&5
8802 echo "$as_me:8802: \$? = $ac_status" >&5
8803 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8805 # The compiler can only warn and ignore the option if not recognized
8806 # So say no if there are warnings
8807 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8808 $SED '/^$/d' out/conftest.err >out/conftest.er2
8809 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8810 lt_cv_prog_compiler_c_o=yes
8815 # SGI C++ compiler will create directory out/ii_files/ for
8816 # template instantiation
8817 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8818 $rm out/* && rmdir out
8824 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8825 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8828 hard_links="nottested"
8829 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8830 # do not overwrite the value of need_locks provided by the user
8831 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8832 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8835 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8837 ln conftest.a conftest.b 2>&5 || hard_links=no
8838 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8839 echo "$as_me:$LINENO: result: $hard_links" >&5
8840 echo "${ECHO_T}$hard_links" >&6
8841 if test "$hard_links" = no; then
8842 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8843 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8850 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8851 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8854 allow_undefined_flag=
8855 enable_shared_with_static_runtimes=no
8857 archive_expsym_cmds=
8858 old_archive_From_new_cmds=
8859 old_archive_from_expsyms_cmds=
8860 export_dynamic_flag_spec=
8861 whole_archive_flag_spec=
8862 thread_safe_flag_spec=
8863 hardcode_libdir_flag_spec=
8864 hardcode_libdir_flag_spec_ld=
8865 hardcode_libdir_separator=
8868 hardcode_shlibpath_var=unsupported
8869 link_all_deplibs=unknown
8870 hardcode_automatic=no
8873 always_export_symbols=no
8874 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8875 # include_expsyms should be a list of space-separated symbols to be *always*
8876 # included in the symbol list
8878 # exclude_expsyms can be an extended regexp of symbols to exclude
8879 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8880 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8881 # as well as any symbol that contains `d'.
8882 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8883 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8884 # platforms (ab)use it in PIC code, but their linkers get confused if
8885 # the symbol is explicitly referenced. Since portable code cannot
8886 # rely on this symbol name, it's probably fine to never include it in
8887 # preloaded symbol tables.
8888 extract_expsyms_cmds=
8889 # Just being paranoid about ensuring that cc_basename is set.
8890 for cc_temp in $compiler""; do
8892 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8893 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8898 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8901 cygwin* | mingw* | pw32*)
8902 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8903 # When not using gcc, we currently assume that we are using
8904 # Microsoft Visual C++.
8905 if test "$GCC" != yes; then
8915 if test "$with_gnu_ld" = yes; then
8916 # If archive_cmds runs LD, not CC, wlarc should be empty
8919 # Set some defaults for GNU ld with shared library support. These
8920 # are reset later if shared libraries are not supported. Putting them
8921 # here allows them to be overridden if necessary.
8922 runpath_var=LD_RUN_PATH
8923 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8924 export_dynamic_flag_spec='${wl}--export-dynamic'
8925 # ancient GNU ld didn't support --whole-archive et. al.
8926 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8927 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8929 whole_archive_flag_spec=
8931 supports_anon_versioning=no
8932 case `$LD -v 2>/dev/null` in
8933 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8934 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8935 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8936 *\ 2.11.*) ;; # other 2.11 versions
8937 *) supports_anon_versioning=yes ;;
8940 # See if GNU ld supports shared libraries.
8942 aix3* | aix4* | aix5*)
8943 # On AIX/PPC, the GNU linker is very broken
8944 if test "$host_cpu" != ia64; then
8948 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8949 *** to be unable to reliably create shared libraries on AIX.
8950 *** Therefore, libtool is disabling shared libraries support. If you
8951 *** really care for shared libraries, you may want to modify your PATH
8952 *** so that a non-GNU linker is found, and then restart.
8959 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)'
8960 hardcode_libdir_flag_spec='-L$libdir'
8961 hardcode_minus_L=yes
8963 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8964 # that the semantics of dynamic libraries on AmigaOS, at least up
8965 # to version 4, is to share data among multiple programs linked
8966 # with the same dynamic library. Since this doesn't match the
8967 # behavior of shared libraries on other platforms, we can't use
8973 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8974 allow_undefined_flag=unsupported
8975 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8976 # support --undefined. This deserves some investigation. FIXME
8977 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8983 cygwin* | mingw* | pw32*)
8984 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8985 # as there is no search path for DLLs.
8986 hardcode_libdir_flag_spec='-L$libdir'
8987 allow_undefined_flag=unsupported
8988 always_export_symbols=no
8989 enable_shared_with_static_runtimes=yes
8990 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8992 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8993 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8994 # If the export-symbols file already is a .def file (1st line
8995 # is EXPORTS), use it as is; otherwise, prepend...
8996 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8997 cp $export_symbols $output_objdir/$soname.def;
8999 echo EXPORTS > $output_objdir/$soname.def;
9000 cat $export_symbols >> $output_objdir/$soname.def;
9002 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9009 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9011 case $cc_basename,$host_cpu in
9012 pgcc*) # Portland Group C compiler
9013 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'
9014 tmp_addflag=' $pic_flag'
9016 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
9017 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'
9018 tmp_addflag=' $pic_flag -Mnomain' ;;
9019 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9020 tmp_addflag=' -i_dynamic' ;;
9021 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9022 tmp_addflag=' -i_dynamic -nofor_main' ;;
9023 ifc* | ifort*) # Intel Fortran compiler
9024 tmp_addflag=' -nofor_main' ;;
9026 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9028 if test $supports_anon_versioning = yes; then
9029 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9030 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9031 $echo "local: *; };" >> $output_objdir/$libname.ver~
9032 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9040 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9041 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9044 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9045 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9050 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9054 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9055 *** create shared libraries on Solaris systems. Therefore, libtool
9056 *** is disabling shared libraries support. We urge you to upgrade GNU
9057 *** binutils to release 2.9.1 or newer. Another option is to modify
9058 *** your PATH or compiler configuration so that the native linker is
9059 *** used, and then restart.
9062 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9063 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9064 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9071 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9074 hardcode_shlibpath_var=no
9078 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9079 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9080 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9087 if test "$ld_shlibs" = no; then
9089 hardcode_libdir_flag_spec=
9090 export_dynamic_flag_spec=
9091 whole_archive_flag_spec=
9094 # PORTME fill in a description of your system's linker (not GNU ld)
9097 allow_undefined_flag=unsupported
9098 always_export_symbols=yes
9099 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'
9100 # Note: this linker hardcodes the directories in LIBPATH if there
9101 # are no directories specified by -L.
9102 hardcode_minus_L=yes
9103 if test "$GCC" = yes && test -z "$link_static_flag"; then
9104 # Neither direct hardcoding nor static linking is supported with a
9106 hardcode_direct=unsupported
9111 if test "$host_cpu" = ia64; then
9112 # On IA64, the linker does run time linking by default, so we don't
9113 # have to do anything special.
9114 aix_use_runtimelinking=no
9115 exp_sym_flag='-Bexport'
9118 # If we're using GNU nm, then we don't want the "-C" option.
9119 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9120 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9121 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'
9123 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'
9125 aix_use_runtimelinking=no
9127 # Test if we are trying to use run time linking or normal
9128 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9129 # need to do runtime linking.
9130 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9131 for ld_flag in $LDFLAGS; do
9132 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9133 aix_use_runtimelinking=yes
9139 exp_sym_flag='-bexport'
9140 no_entry_flag='-bnoentry'
9143 # When large executables or shared objects are built, AIX ld can
9144 # have problems creating the table of contents. If linking a library
9145 # or program results in "error TOC overflow" add -mminimal-toc to
9146 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9147 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9151 hardcode_libdir_separator=':'
9152 link_all_deplibs=yes
9154 if test "$GCC" = yes; then
9155 case $host_os in aix4.[012]|aix4.[012].*)
9156 # We only want to do this on AIX 4.2 and lower, the check
9157 # below for broken collect2 doesn't work under 4.3+
9158 collect2name=`${CC} -print-prog-name=collect2`
9159 if test -f "$collect2name" && \
9160 strings "$collect2name" | grep resolve_lib_name >/dev/null
9162 # We have reworked collect2
9165 # We have old collect2
9166 hardcode_direct=unsupported
9167 # It fails to find uninstalled libraries when the uninstalled
9168 # path is not listed in the libpath. Setting hardcode_minus_L
9169 # to unsupported forces relinking
9170 hardcode_minus_L=yes
9171 hardcode_libdir_flag_spec='-L$libdir'
9172 hardcode_libdir_separator=
9175 shared_flag='-shared'
9176 if test "$aix_use_runtimelinking" = yes; then
9177 shared_flag="$shared_flag "'${wl}-G'
9181 if test "$host_cpu" = ia64; then
9182 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9183 # chokes on -Wl,-G. The following line is correct:
9186 if test "$aix_use_runtimelinking" = yes; then
9187 shared_flag='${wl}-G'
9189 shared_flag='${wl}-bM:SRE'
9194 # It seems that -bexpall does not export symbols beginning with
9195 # underscore (_), so it is better to generate a list of symbols to export.
9196 always_export_symbols=yes
9197 if test "$aix_use_runtimelinking" = yes; then
9198 # Warning - without using the other runtime loading flags (-brtl),
9199 # -berok will link without error, but may produce a broken library.
9200 allow_undefined_flag='-berok'
9201 # Determine the default libpath from the value encoded in an empty executable.
9202 cat >conftest.$ac_ext <<_ACEOF
9205 cat confdefs.h >>conftest.$ac_ext
9206 cat >>conftest.$ac_ext <<_ACEOF
9207 /* end confdefs.h. */
9217 rm -f conftest.$ac_objext conftest$ac_exeext
9218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9219 (eval $ac_link) 2>conftest.er1
9221 grep -v '^ *+' conftest.er1 >conftest.err
9223 cat conftest.err >&5
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); } &&
9226 { ac_try='test -z "$ac_c_werror_flag"
9227 || test ! -s conftest.err'
9228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); }; } &&
9233 { ac_try='test -s conftest$ac_exeext'
9234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238 (exit $ac_status); }; }; then
9240 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9242 # Check for a 64-bit object if we didn't find anything.
9243 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; }
9246 echo "$as_me: failed program was:" >&5
9247 sed 's/^/| /' conftest.$ac_ext >&5
9250 rm -f conftest.err conftest.$ac_objext \
9251 conftest$ac_exeext conftest.$ac_ext
9252 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9254 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9255 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"
9257 if test "$host_cpu" = ia64; then
9258 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9259 allow_undefined_flag="-z nodefs"
9260 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"
9262 # Determine the default libpath from the value encoded in an empty executable.
9263 cat >conftest.$ac_ext <<_ACEOF
9266 cat confdefs.h >>conftest.$ac_ext
9267 cat >>conftest.$ac_ext <<_ACEOF
9268 /* end confdefs.h. */
9278 rm -f conftest.$ac_objext conftest$ac_exeext
9279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9280 (eval $ac_link) 2>conftest.er1
9282 grep -v '^ *+' conftest.er1 >conftest.err
9284 cat conftest.err >&5
9285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9286 (exit $ac_status); } &&
9287 { ac_try='test -z "$ac_c_werror_flag"
9288 || test ! -s conftest.err'
9289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293 (exit $ac_status); }; } &&
9294 { ac_try='test -s conftest$ac_exeext'
9295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299 (exit $ac_status); }; }; then
9301 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9303 # Check for a 64-bit object if we didn't find anything.
9304 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; }
9307 echo "$as_me: failed program was:" >&5
9308 sed 's/^/| /' conftest.$ac_ext >&5
9311 rm -f conftest.err conftest.$ac_objext \
9312 conftest$ac_exeext conftest.$ac_ext
9313 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9315 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9316 # Warning - without using the other run time loading flags,
9317 # -berok will link without error, but may produce a broken library.
9318 no_undefined_flag=' ${wl}-bernotok'
9319 allow_undefined_flag=' ${wl}-berok'
9320 # -bexpall does not export symbols beginning with underscore (_)
9321 always_export_symbols=yes
9322 # Exported symbols can be pulled into shared objects from archives
9323 whole_archive_flag_spec=' '
9324 archive_cmds_need_lc=yes
9325 # This is similar to how AIX traditionally builds it's shared libraries.
9326 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'
9332 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)'
9333 hardcode_libdir_flag_spec='-L$libdir'
9334 hardcode_minus_L=yes
9335 # see comment about different semantics on the GNU ld section
9340 export_dynamic_flag_spec=-rdynamic
9343 cygwin* | mingw* | pw32*)
9344 # When not using gcc, we currently assume that we are using
9345 # Microsoft Visual C++.
9346 # hardcode_libdir_flag_spec is actually meaningless, as there is
9347 # no search path for DLLs.
9348 hardcode_libdir_flag_spec=' '
9349 allow_undefined_flag=unsupported
9350 # Tell ltmain to make .lib files, not .a files.
9352 # Tell ltmain to make .dll files, not .so files.
9354 # FIXME: Setting linknames here is a bad hack.
9355 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9356 # The linker will automatically build a .lib file if we build a DLL.
9357 old_archive_From_new_cmds='true'
9358 # FIXME: Should let the user specify the lib program.
9359 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9360 fix_srcfile_path='`cygpath -w "$srcfile"`'
9361 enable_shared_with_static_runtimes=yes
9364 darwin* | rhapsody*)
9366 rhapsody* | darwin1.[012])
9367 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9370 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9371 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9373 case ${MACOSX_DEPLOYMENT_TARGET} in
9375 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9378 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9384 archive_cmds_need_lc=no
9386 hardcode_automatic=yes
9387 hardcode_shlibpath_var=unsupported
9388 whole_archive_flag_spec=''
9389 link_all_deplibs=yes
9390 if test "$GCC" = yes ; then
9391 output_verbose_link_cmd='echo'
9392 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9393 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9394 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9395 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}'
9396 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}'
9398 case $cc_basename in
9400 output_verbose_link_cmd='echo'
9401 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9402 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9403 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9404 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}'
9405 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9415 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9416 hardcode_libdir_flag_spec='-L$libdir'
9417 hardcode_shlibpath_var=no
9424 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9425 # support. Future versions do this automatically, but an explicit c++rt0.o
9426 # does not break anything, and helps significantly (at the cost of a little
9429 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9430 hardcode_libdir_flag_spec='-R$libdir'
9432 hardcode_shlibpath_var=no
9435 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9437 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9439 hardcode_minus_L=yes
9440 hardcode_shlibpath_var=no
9443 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9444 freebsd* | kfreebsd*-gnu | dragonfly*)
9445 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9446 hardcode_libdir_flag_spec='-R$libdir'
9448 hardcode_shlibpath_var=no
9452 if test "$GCC" = yes; then
9453 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'
9455 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'
9457 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9458 hardcode_libdir_separator=:
9461 # hardcode_minus_L: Not really in the search PATH,
9462 # but as the default location of the library.
9463 hardcode_minus_L=yes
9464 export_dynamic_flag_spec='${wl}-E'
9468 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9471 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9474 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9480 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9483 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9487 if test "$with_gnu_ld" = no; then
9490 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9491 hardcode_libdir_flag_spec_ld='+b $libdir'
9492 hardcode_libdir_separator=:
9494 hardcode_shlibpath_var=no
9497 hardcode_libdir_flag_spec='-L$libdir'
9499 hardcode_shlibpath_var=no
9501 # hardcode_minus_L: Not really in the search PATH,
9502 # but as the default location of the library.
9503 hardcode_minus_L=yes
9506 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9507 hardcode_libdir_separator=:
9509 export_dynamic_flag_spec='${wl}-E'
9511 # hardcode_minus_L: Not really in the search PATH,
9512 # but as the default location of the library.
9513 hardcode_minus_L=yes
9519 irix5* | irix6* | nonstopux*)
9520 if test "$GCC" = yes; then
9521 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'
9523 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'
9524 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9526 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9527 hardcode_libdir_separator=:
9528 link_all_deplibs=yes
9532 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9533 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9535 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9537 hardcode_libdir_flag_spec='-R$libdir'
9539 hardcode_shlibpath_var=no
9543 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9545 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9546 hardcode_libdir_separator=:
9547 hardcode_shlibpath_var=no
9552 hardcode_shlibpath_var=no
9553 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9554 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9555 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9556 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9557 export_dynamic_flag_spec='${wl}-E'
9560 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9561 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9562 hardcode_libdir_flag_spec='-R$libdir'
9565 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9566 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9573 hardcode_libdir_flag_spec='-L$libdir'
9574 hardcode_minus_L=yes
9575 allow_undefined_flag=unsupported
9576 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'
9577 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9581 if test "$GCC" = yes; then
9582 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9583 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'
9585 allow_undefined_flag=' -expect_unresolved \*'
9586 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'
9588 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9589 hardcode_libdir_separator=:
9592 osf4* | osf5*) # as osf3* with the addition of -msym flag
9593 if test "$GCC" = yes; then
9594 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9595 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'
9596 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9598 allow_undefined_flag=' -expect_unresolved \*'
9599 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'
9600 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9601 $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'
9603 # Both c and cxx compiler support -rpath directly
9604 hardcode_libdir_flag_spec='-rpath $libdir'
9606 hardcode_libdir_separator=:
9610 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9611 hardcode_shlibpath_var=no
9612 export_dynamic_flag_spec='${wl}-Bexport'
9613 runpath_var=LD_RUN_PATH
9614 hardcode_runpath_var=yes
9618 no_undefined_flag=' -z text'
9619 if test "$GCC" = yes; then
9621 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9622 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9623 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9626 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9627 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9628 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9630 hardcode_libdir_flag_spec='-R$libdir'
9631 hardcode_shlibpath_var=no
9633 solaris2.[0-5] | solaris2.[0-5].*) ;;
9635 # The compiler driver will combine linker options so we
9636 # cannot just pass the convience library names through
9637 # without $wl, iff we do not link with $LD.
9638 # Luckily, gcc supports the same syntax we need for Sun Studio.
9639 # Supported since Solaris 2.6 (maybe 2.5.1?)
9642 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9644 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' ;;
9647 link_all_deplibs=yes
9651 if test "x$host_vendor" = xsequent; then
9652 # Use $CC to link under sequent, because it throws in some extra .o
9653 # files that make .init and .fini sections work.
9654 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9656 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9658 hardcode_libdir_flag_spec='-L$libdir'
9660 hardcode_minus_L=yes
9661 hardcode_shlibpath_var=no
9665 case $host_vendor in
9667 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9668 hardcode_direct=yes # is this really true???
9671 ## LD is ld it makes a PLAMLIB
9672 ## CC just makes a GrossModule.
9673 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9674 reload_cmds='$CC -r -o $output$reload_objs'
9678 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9679 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9682 runpath_var='LD_RUN_PATH'
9683 hardcode_shlibpath_var=no
9687 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9688 hardcode_shlibpath_var=no
9689 export_dynamic_flag_spec='-Bexport'
9693 if test -d /usr/nec; then
9694 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9695 hardcode_shlibpath_var=no
9696 runpath_var=LD_RUN_PATH
9697 hardcode_runpath_var=yes
9703 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9706 hardcode_shlibpath_var=no
9707 hardcode_runpath_var=yes
9708 runpath_var=LD_RUN_PATH
9711 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9712 no_undefined_flag='${wl}-z ${wl}text'
9713 if test "$GCC" = yes; then
9714 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9716 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9718 runpath_var='LD_RUN_PATH'
9719 hardcode_shlibpath_var=no
9723 no_undefined_flag=' -z text'
9724 # $CC -shared without GNU ld will not create a library from C++
9725 # object files and a static libstdc++, better avoid it by now
9726 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9727 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9728 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9729 hardcode_libdir_flag_spec=
9730 hardcode_shlibpath_var=no
9731 runpath_var='LD_RUN_PATH'
9735 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9736 hardcode_libdir_flag_spec='-L$libdir'
9737 hardcode_shlibpath_var=no
9746 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9747 echo "${ECHO_T}$ld_shlibs" >&6
9748 test "$ld_shlibs" = no && can_build_shared=no
9750 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9751 if test "$GCC" = yes; then
9752 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9756 # Do we need to explicitly link libc?
9758 case "x$archive_cmds_need_lc" in
9760 # Assume -lc should be added
9761 archive_cmds_need_lc=yes
9763 if test "$enable_shared" = yes && test "$GCC" = yes; then
9764 case $archive_cmds in
9766 # FIXME: we may have to deal with multi-command sequences.
9769 # Test whether the compiler implicitly links with -lc since on some
9770 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9771 # to ld, don't add -lc before -lgcc.
9772 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9773 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9775 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9778 (eval $ac_compile) 2>&5
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); } 2>conftest.err; then
9784 libobjs=conftest.$ac_objext
9786 wl=$lt_prog_compiler_wl
9792 lt_save_allow_undefined_flag=$allow_undefined_flag
9793 allow_undefined_flag=
9794 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9795 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); }
9800 archive_cmds_need_lc=no
9802 archive_cmds_need_lc=yes
9804 allow_undefined_flag=$lt_save_allow_undefined_flag
9806 cat conftest.err 1>&5
9809 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9810 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9817 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9818 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9820 libname_spec='lib$name'
9828 shlibpath_overrides_runpath=unknown
9830 dynamic_linker="$host_os ld.so"
9831 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9832 if test "$GCC" = yes; then
9833 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9834 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9835 # if the path contains ";" then we assume it to be the separator
9836 # otherwise default to the standard path separator (i.e. ":") - it is
9837 # assumed that no part of a normal pathname contains ";" but that should
9838 # okay in the real world where ";" in dirpaths is itself problematic.
9839 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9841 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9844 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9846 need_lib_prefix=unknown
9847 hardcode_into_libs=no
9849 # when you set need_version to no, make sure it does not cause -set_version
9850 # flags to be left without arguments
9851 need_version=unknown
9856 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9857 shlibpath_var=LIBPATH
9859 # AIX 3 has no versioning support, so we append a major version to the name.
9860 soname_spec='${libname}${release}${shared_ext}$major'
9867 hardcode_into_libs=yes
9868 if test "$host_cpu" = ia64; then
9869 # AIX 5 supports IA64
9870 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9871 shlibpath_var=LD_LIBRARY_PATH
9873 # With GCC up to 2.95.x, collect2 would create an import file
9874 # for dependence libraries. The import file would start with
9875 # the line `#! .'. This would cause the generated library to
9876 # depend on `.', always an invalid library. This was fixed in
9877 # development snapshots of GCC prior to 3.0.
9879 aix4 | aix4.[01] | aix4.[01].*)
9880 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9882 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9889 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9890 # soname into executable. Probably we can add versioning support to
9891 # collect2, so additional links can be useful in future.
9892 if test "$aix_use_runtimelinking" = yes; then
9893 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9894 # instead of lib<name>.a to let people know that these are not
9895 # typical AIX shared libraries.
9896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9898 # We preserve .a as extension for shared libraries through AIX4.2
9899 # and later when we are not doing run time linking.
9900 library_names_spec='${libname}${release}.a $libname.a'
9901 soname_spec='${libname}${release}${shared_ext}$major'
9903 shlibpath_var=LIBPATH
9908 library_names_spec='$libname.ixlibrary $libname.a'
9909 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9910 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'
9914 library_names_spec='${libname}${shared_ext}'
9915 dynamic_linker="$host_os ld.so"
9916 shlibpath_var=LIBRARY_PATH
9922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9923 soname_spec='${libname}${release}${shared_ext}$major'
9924 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9925 shlibpath_var=LD_LIBRARY_PATH
9926 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9927 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9928 # the default ld.so.conf also contains /usr/contrib/lib and
9929 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9930 # libtool to hard-code these into programs
9933 cygwin* | mingw* | pw32*)
9934 version_type=windows
9939 case $GCC,$host_os in
9940 yes,cygwin* | yes,mingw* | yes,pw32*)
9941 library_names_spec='$libname.dll.a'
9942 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9943 postinstall_cmds='base_file=`basename \${file}`~
9944 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9945 dldir=$destdir/`dirname \$dlpath`~
9946 test -d \$dldir || mkdir -p \$dldir~
9947 $install_prog $dir/$dlname \$dldir/$dlname'
9948 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9949 dlpath=$dir/\$dldll~
9951 shlibpath_overrides_runpath=yes
9955 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9956 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9957 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9960 # MinGW DLLs use traditional 'lib' prefix
9961 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9962 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9963 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9964 # It is most probably a Windows format PATH printed by
9965 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9966 # path with ; separators, and with drive letters. We can handle the
9967 # drive letters (cygwin fileutils understands them), so leave them,
9968 # especially as we might pass files found there to a mingw objdump,
9969 # which wouldn't understand a cygwinified path. Ahh.
9970 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9972 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9976 # pw32 DLLs use 'pw' prefix rather than 'lib'
9977 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9983 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9986 dynamic_linker='Win32 ld.exe'
9987 # FIXME: first we should search . and the directory the executable is in
9991 darwin* | rhapsody*)
9992 dynamic_linker="$host_os dyld"
9996 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9997 soname_spec='${libname}${release}${major}$shared_ext'
9998 shlibpath_overrides_runpath=yes
9999 shlibpath_var=DYLD_LIBRARY_PATH
10000 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
10001 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10002 if test "$GCC" = yes; then
10003 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"`
10005 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10007 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10015 soname_spec='${libname}${release}${shared_ext}$major'
10016 shlibpath_var=LD_LIBRARY_PATH
10027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10028 soname_spec='${libname}${release}${shared_ext}$major'
10029 shlibpath_var=LD_LIBRARY_PATH
10030 shlibpath_overrides_runpath=no
10031 hardcode_into_libs=yes
10032 dynamic_linker='GNU ld.so'
10035 freebsd* | dragonfly*)
10036 # DragonFly does not have aout. When/if they implement a new
10037 # versioning mechanism, adjust this.
10038 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10039 version_type=freebsd-$objformat
10040 case $version_type in
10042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10047 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10051 shlibpath_var=LD_LIBRARY_PATH
10054 shlibpath_overrides_runpath=yes
10056 freebsd3.[01]* | freebsdelf3.[01]*)
10057 shlibpath_overrides_runpath=yes
10058 hardcode_into_libs=yes
10061 shlibpath_overrides_runpath=no
10062 hardcode_into_libs=yes
10071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10072 soname_spec='${libname}${release}${shared_ext}$major'
10073 shlibpath_var=LD_LIBRARY_PATH
10074 hardcode_into_libs=yes
10077 hpux9* | hpux10* | hpux11*)
10078 # Give a soname corresponding to the major version so that dld.sl refuses to
10079 # link against other versions.
10083 case "$host_cpu" in
10086 hardcode_into_libs=yes
10087 dynamic_linker="$host_os dld.so"
10088 shlibpath_var=LD_LIBRARY_PATH
10089 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10091 soname_spec='${libname}${release}${shared_ext}$major'
10092 if test "X$HPUX_IA64_MODE" = X32; then
10093 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10095 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10097 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10101 hardcode_into_libs=yes
10102 dynamic_linker="$host_os dld.sl"
10103 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10104 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10106 soname_spec='${libname}${release}${shared_ext}$major'
10107 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10108 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10112 dynamic_linker="$host_os dld.sl"
10113 shlibpath_var=SHLIB_PATH
10114 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10116 soname_spec='${libname}${release}${shared_ext}$major'
10119 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10120 postinstall_cmds='chmod 555 $lib'
10123 irix5* | irix6* | nonstopux*)
10125 nonstopux*) version_type=nonstopux ;;
10127 if test "$lt_cv_prog_gnu_ld" = yes; then
10135 soname_spec='${libname}${release}${shared_ext}$major'
10136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10138 irix5* | nonstopux*)
10139 libsuff= shlibsuff=
10142 case $LD in # libtool.m4 will add one of these switches to LD
10143 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10144 libsuff= shlibsuff= libmagic=32-bit;;
10145 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10146 libsuff=32 shlibsuff=N32 libmagic=N32;;
10147 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10148 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10149 *) libsuff= shlibsuff= libmagic=never-match;;
10153 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10154 shlibpath_overrides_runpath=no
10155 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10156 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10157 hardcode_into_libs=yes
10160 # No shared lib support for Linux oldld, aout, or coff.
10161 linux*oldld* | linux*aout* | linux*coff*)
10165 # This must be Linux ELF.
10170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10171 soname_spec='${libname}${release}${shared_ext}$major'
10172 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10173 shlibpath_var=LD_LIBRARY_PATH
10174 shlibpath_overrides_runpath=no
10175 # This implies no fast_install, which is unacceptable.
10176 # Some rework will be needed to allow for fast_install
10177 # before this can be enabled.
10178 hardcode_into_libs=yes
10180 # Append ld.so.conf contents to the search path
10181 if test -f /etc/ld.so.conf; then
10182 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' ' '`
10183 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10186 # We used to test for /lib/ld.so.1 and disable shared libraries on
10187 # powerpc, because MkLinux only supported shared libraries with the
10188 # GNU dynamic linker. Since this was broken with cross compilers,
10189 # most powerpc-linux boxes support dynamic linking these days and
10190 # people can always --disable-shared, the test was removed, and we
10191 # assume the GNU/Linux dynamic linker is in use.
10192 dynamic_linker='GNU/Linux ld.so'
10199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10200 soname_spec='${libname}${release}${shared_ext}$major'
10201 shlibpath_var=LD_LIBRARY_PATH
10202 shlibpath_overrides_runpath=no
10203 hardcode_into_libs=yes
10204 dynamic_linker='GNU ld.so'
10211 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10213 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10214 dynamic_linker='NetBSD (a.out) ld.so'
10216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10217 soname_spec='${libname}${release}${shared_ext}$major'
10218 dynamic_linker='NetBSD ld.elf_so'
10220 shlibpath_var=LD_LIBRARY_PATH
10221 shlibpath_overrides_runpath=yes
10222 hardcode_into_libs=yes
10227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10228 shlibpath_var=LD_LIBRARY_PATH
10229 shlibpath_overrides_runpath=yes
10236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10237 soname_spec='${libname}${release}${shared_ext}$major'
10238 shlibpath_var=LD_LIBRARY_PATH
10239 shlibpath_overrides_runpath=yes
10245 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10247 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10248 *) need_version=no ;;
10250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10251 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10252 shlibpath_var=LD_LIBRARY_PATH
10253 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10255 openbsd2.[89] | openbsd2.[89].*)
10256 shlibpath_overrides_runpath=no
10259 shlibpath_overrides_runpath=yes
10263 shlibpath_overrides_runpath=yes
10268 libname_spec='$name'
10271 library_names_spec='$libname${shared_ext} $libname.a'
10272 dynamic_linker='OS/2 ld.exe'
10273 shlibpath_var=LIBPATH
10276 osf3* | osf4* | osf5*)
10280 soname_spec='${libname}${release}${shared_ext}$major'
10281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10282 shlibpath_var=LD_LIBRARY_PATH
10283 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10284 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10289 soname_spec='${libname}${release}${shared_ext}$major'
10290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10291 shlibpath_var=LD_LIBRARY_PATH
10298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10299 soname_spec='${libname}${release}${shared_ext}$major'
10300 shlibpath_var=LD_LIBRARY_PATH
10301 shlibpath_overrides_runpath=yes
10302 hardcode_into_libs=yes
10303 # ldd complains unless libraries are executable
10304 postinstall_cmds='chmod +x $lib'
10309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10310 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10311 shlibpath_var=LD_LIBRARY_PATH
10312 shlibpath_overrides_runpath=yes
10313 if test "$with_gnu_ld" = yes; then
10319 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10322 soname_spec='${libname}${release}${shared_ext}$major'
10323 shlibpath_var=LD_LIBRARY_PATH
10324 case $host_vendor in
10326 shlibpath_overrides_runpath=no
10328 export_dynamic_flag_spec='${wl}-Blargedynsym'
10329 runpath_var=LD_RUN_PATH
10337 shlibpath_overrides_runpath=no
10338 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10344 if test -d /usr/nec ;then
10346 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10347 soname_spec='$libname${shared_ext}.$major'
10348 shlibpath_var=LD_LIBRARY_PATH
10354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10355 soname_spec='${libname}${release}${shared_ext}$major'
10356 shlibpath_var=LD_LIBRARY_PATH
10363 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10364 echo "${ECHO_T}$dynamic_linker" >&6
10365 test "$dynamic_linker" = no && can_build_shared=no
10367 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10368 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10370 if test -n "$hardcode_libdir_flag_spec" || \
10371 test -n "$runpath_var" || \
10372 test "X$hardcode_automatic" = "Xyes" ; then
10374 # We can hardcode non-existant directories.
10375 if test "$hardcode_direct" != no &&
10376 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10377 # have to relink, otherwise we might link with an installed library
10378 # when we should be linking with a yet-to-be-installed one
10379 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10380 test "$hardcode_minus_L" != no; then
10381 # Linking always hardcodes the temporary library directory.
10382 hardcode_action=relink
10384 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10385 hardcode_action=immediate
10388 # We cannot hardcode anything, or else we can only hardcode existing
10390 hardcode_action=unsupported
10392 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10393 echo "${ECHO_T}$hardcode_action" >&6
10395 if test "$hardcode_action" = relink; then
10396 # Fast installation is not supported
10397 enable_fast_install=no
10398 elif test "$shlibpath_overrides_runpath" = yes ||
10399 test "$enable_shared" = no; then
10400 # Fast installation is not necessary
10401 enable_fast_install=needless
10406 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10407 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10408 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10409 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10410 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10411 echo "$as_me:$LINENO: result: yes" >&5
10412 echo "${ECHO_T}yes" >&6
10414 # FIXME - insert some real tests, host_os isn't really good enough
10417 if test -n "$STRIP" ; then
10418 striplib="$STRIP -x"
10419 echo "$as_me:$LINENO: result: yes" >&5
10420 echo "${ECHO_T}yes" >&6
10422 echo "$as_me:$LINENO: result: no" >&5
10423 echo "${ECHO_T}no" >&6
10427 echo "$as_me:$LINENO: result: no" >&5
10428 echo "${ECHO_T}no" >&6
10433 if test "x$enable_dlopen" != xyes; then
10434 enable_dlopen=unknown
10435 enable_dlopen_self=unknown
10436 enable_dlopen_self_static=unknown
10443 lt_cv_dlopen="load_add_on"
10445 lt_cv_dlopen_self=yes
10449 lt_cv_dlopen="LoadLibrary"
10454 lt_cv_dlopen="dlopen"
10459 # if libdl is installed we need to link against it
10460 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10461 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10462 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10463 echo $ECHO_N "(cached) $ECHO_C" >&6
10465 ac_check_lib_save_LIBS=$LIBS
10467 cat >conftest.$ac_ext <<_ACEOF
10470 cat confdefs.h >>conftest.$ac_ext
10471 cat >>conftest.$ac_ext <<_ACEOF
10472 /* end confdefs.h. */
10474 /* Override any gcc2 internal prototype to avoid an error. */
10478 /* We use char because int might match the return type of a gcc2
10479 builtin and then its argument prototype would still apply. */
10489 rm -f conftest.$ac_objext conftest$ac_exeext
10490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10491 (eval $ac_link) 2>conftest.er1
10493 grep -v '^ *+' conftest.er1 >conftest.err
10495 cat conftest.err >&5
10496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497 (exit $ac_status); } &&
10498 { ac_try='test -z "$ac_c_werror_flag"
10499 || test ! -s conftest.err'
10500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10501 (eval $ac_try) 2>&5
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); }; } &&
10505 { ac_try='test -s conftest$ac_exeext'
10506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10507 (eval $ac_try) 2>&5
10509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510 (exit $ac_status); }; }; then
10511 ac_cv_lib_dl_dlopen=yes
10513 echo "$as_me: failed program was:" >&5
10514 sed 's/^/| /' conftest.$ac_ext >&5
10516 ac_cv_lib_dl_dlopen=no
10518 rm -f conftest.err conftest.$ac_objext \
10519 conftest$ac_exeext conftest.$ac_ext
10520 LIBS=$ac_check_lib_save_LIBS
10522 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10523 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10524 if test $ac_cv_lib_dl_dlopen = yes; then
10525 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10528 lt_cv_dlopen="dyld"
10530 lt_cv_dlopen_self=yes
10537 echo "$as_me:$LINENO: checking for shl_load" >&5
10538 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10539 if test "${ac_cv_func_shl_load+set}" = set; then
10540 echo $ECHO_N "(cached) $ECHO_C" >&6
10542 cat >conftest.$ac_ext <<_ACEOF
10545 cat confdefs.h >>conftest.$ac_ext
10546 cat >>conftest.$ac_ext <<_ACEOF
10547 /* end confdefs.h. */
10548 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10549 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10550 #define shl_load innocuous_shl_load
10552 /* System header to define __stub macros and hopefully few prototypes,
10553 which can conflict with char shl_load (); below.
10554 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10555 <limits.h> exists even on freestanding compilers. */
10558 # include <limits.h>
10560 # include <assert.h>
10565 /* Override any gcc2 internal prototype to avoid an error. */
10570 /* We use char because int might match the return type of a gcc2
10571 builtin and then its argument prototype would still apply. */
10573 /* The GNU C library defines this for functions which it implements
10574 to always fail with ENOSYS. Some functions are actually named
10575 something starting with __ and the normal name is an alias. */
10576 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10579 char (*f) () = shl_load;
10588 return f != shl_load;
10593 rm -f conftest.$ac_objext conftest$ac_exeext
10594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10595 (eval $ac_link) 2>conftest.er1
10597 grep -v '^ *+' conftest.er1 >conftest.err
10599 cat conftest.err >&5
10600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); } &&
10602 { ac_try='test -z "$ac_c_werror_flag"
10603 || test ! -s conftest.err'
10604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10605 (eval $ac_try) 2>&5
10607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608 (exit $ac_status); }; } &&
10609 { ac_try='test -s conftest$ac_exeext'
10610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10611 (eval $ac_try) 2>&5
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); }; }; then
10615 ac_cv_func_shl_load=yes
10617 echo "$as_me: failed program was:" >&5
10618 sed 's/^/| /' conftest.$ac_ext >&5
10620 ac_cv_func_shl_load=no
10622 rm -f conftest.err conftest.$ac_objext \
10623 conftest$ac_exeext conftest.$ac_ext
10625 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10626 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10627 if test $ac_cv_func_shl_load = yes; then
10628 lt_cv_dlopen="shl_load"
10630 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10631 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10632 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10633 echo $ECHO_N "(cached) $ECHO_C" >&6
10635 ac_check_lib_save_LIBS=$LIBS
10637 cat >conftest.$ac_ext <<_ACEOF
10640 cat confdefs.h >>conftest.$ac_ext
10641 cat >>conftest.$ac_ext <<_ACEOF
10642 /* end confdefs.h. */
10644 /* Override any gcc2 internal prototype to avoid an error. */
10648 /* We use char because int might match the return type of a gcc2
10649 builtin and then its argument prototype would still apply. */
10659 rm -f conftest.$ac_objext conftest$ac_exeext
10660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10661 (eval $ac_link) 2>conftest.er1
10663 grep -v '^ *+' conftest.er1 >conftest.err
10665 cat conftest.err >&5
10666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667 (exit $ac_status); } &&
10668 { ac_try='test -z "$ac_c_werror_flag"
10669 || test ! -s conftest.err'
10670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10671 (eval $ac_try) 2>&5
10673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674 (exit $ac_status); }; } &&
10675 { ac_try='test -s conftest$ac_exeext'
10676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10677 (eval $ac_try) 2>&5
10679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680 (exit $ac_status); }; }; then
10681 ac_cv_lib_dld_shl_load=yes
10683 echo "$as_me: failed program was:" >&5
10684 sed 's/^/| /' conftest.$ac_ext >&5
10686 ac_cv_lib_dld_shl_load=no
10688 rm -f conftest.err conftest.$ac_objext \
10689 conftest$ac_exeext conftest.$ac_ext
10690 LIBS=$ac_check_lib_save_LIBS
10692 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10693 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10694 if test $ac_cv_lib_dld_shl_load = yes; then
10695 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10697 echo "$as_me:$LINENO: checking for dlopen" >&5
10698 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10699 if test "${ac_cv_func_dlopen+set}" = set; then
10700 echo $ECHO_N "(cached) $ECHO_C" >&6
10702 cat >conftest.$ac_ext <<_ACEOF
10705 cat confdefs.h >>conftest.$ac_ext
10706 cat >>conftest.$ac_ext <<_ACEOF
10707 /* end confdefs.h. */
10708 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10709 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10710 #define dlopen innocuous_dlopen
10712 /* System header to define __stub macros and hopefully few prototypes,
10713 which can conflict with char dlopen (); below.
10714 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10715 <limits.h> exists even on freestanding compilers. */
10718 # include <limits.h>
10720 # include <assert.h>
10725 /* Override any gcc2 internal prototype to avoid an error. */
10730 /* We use char because int might match the return type of a gcc2
10731 builtin and then its argument prototype would still apply. */
10733 /* The GNU C library defines this for functions which it implements
10734 to always fail with ENOSYS. Some functions are actually named
10735 something starting with __ and the normal name is an alias. */
10736 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10739 char (*f) () = dlopen;
10748 return f != dlopen;
10753 rm -f conftest.$ac_objext conftest$ac_exeext
10754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10755 (eval $ac_link) 2>conftest.er1
10757 grep -v '^ *+' conftest.er1 >conftest.err
10759 cat conftest.err >&5
10760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761 (exit $ac_status); } &&
10762 { ac_try='test -z "$ac_c_werror_flag"
10763 || test ! -s conftest.err'
10764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10765 (eval $ac_try) 2>&5
10767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); }; } &&
10769 { ac_try='test -s conftest$ac_exeext'
10770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10771 (eval $ac_try) 2>&5
10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); }; }; then
10775 ac_cv_func_dlopen=yes
10777 echo "$as_me: failed program was:" >&5
10778 sed 's/^/| /' conftest.$ac_ext >&5
10780 ac_cv_func_dlopen=no
10782 rm -f conftest.err conftest.$ac_objext \
10783 conftest$ac_exeext conftest.$ac_ext
10785 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10786 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10787 if test $ac_cv_func_dlopen = yes; then
10788 lt_cv_dlopen="dlopen"
10790 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10791 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10792 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10793 echo $ECHO_N "(cached) $ECHO_C" >&6
10795 ac_check_lib_save_LIBS=$LIBS
10797 cat >conftest.$ac_ext <<_ACEOF
10800 cat confdefs.h >>conftest.$ac_ext
10801 cat >>conftest.$ac_ext <<_ACEOF
10802 /* end confdefs.h. */
10804 /* Override any gcc2 internal prototype to avoid an error. */
10808 /* We use char because int might match the return type of a gcc2
10809 builtin and then its argument prototype would still apply. */
10819 rm -f conftest.$ac_objext conftest$ac_exeext
10820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10821 (eval $ac_link) 2>conftest.er1
10823 grep -v '^ *+' conftest.er1 >conftest.err
10825 cat conftest.err >&5
10826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827 (exit $ac_status); } &&
10828 { ac_try='test -z "$ac_c_werror_flag"
10829 || test ! -s conftest.err'
10830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10831 (eval $ac_try) 2>&5
10833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834 (exit $ac_status); }; } &&
10835 { ac_try='test -s conftest$ac_exeext'
10836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10837 (eval $ac_try) 2>&5
10839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10840 (exit $ac_status); }; }; then
10841 ac_cv_lib_dl_dlopen=yes
10843 echo "$as_me: failed program was:" >&5
10844 sed 's/^/| /' conftest.$ac_ext >&5
10846 ac_cv_lib_dl_dlopen=no
10848 rm -f conftest.err conftest.$ac_objext \
10849 conftest$ac_exeext conftest.$ac_ext
10850 LIBS=$ac_check_lib_save_LIBS
10852 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10853 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10854 if test $ac_cv_lib_dl_dlopen = yes; then
10855 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10857 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10858 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10859 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10860 echo $ECHO_N "(cached) $ECHO_C" >&6
10862 ac_check_lib_save_LIBS=$LIBS
10863 LIBS="-lsvld $LIBS"
10864 cat >conftest.$ac_ext <<_ACEOF
10867 cat confdefs.h >>conftest.$ac_ext
10868 cat >>conftest.$ac_ext <<_ACEOF
10869 /* end confdefs.h. */
10871 /* Override any gcc2 internal prototype to avoid an error. */
10875 /* We use char because int might match the return type of a gcc2
10876 builtin and then its argument prototype would still apply. */
10886 rm -f conftest.$ac_objext conftest$ac_exeext
10887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10888 (eval $ac_link) 2>conftest.er1
10890 grep -v '^ *+' conftest.er1 >conftest.err
10892 cat conftest.err >&5
10893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894 (exit $ac_status); } &&
10895 { ac_try='test -z "$ac_c_werror_flag"
10896 || test ! -s conftest.err'
10897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10898 (eval $ac_try) 2>&5
10900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901 (exit $ac_status); }; } &&
10902 { ac_try='test -s conftest$ac_exeext'
10903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10904 (eval $ac_try) 2>&5
10906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907 (exit $ac_status); }; }; then
10908 ac_cv_lib_svld_dlopen=yes
10910 echo "$as_me: failed program was:" >&5
10911 sed 's/^/| /' conftest.$ac_ext >&5
10913 ac_cv_lib_svld_dlopen=no
10915 rm -f conftest.err conftest.$ac_objext \
10916 conftest$ac_exeext conftest.$ac_ext
10917 LIBS=$ac_check_lib_save_LIBS
10919 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10920 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10921 if test $ac_cv_lib_svld_dlopen = yes; then
10922 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10924 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10925 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10926 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10927 echo $ECHO_N "(cached) $ECHO_C" >&6
10929 ac_check_lib_save_LIBS=$LIBS
10931 cat >conftest.$ac_ext <<_ACEOF
10934 cat confdefs.h >>conftest.$ac_ext
10935 cat >>conftest.$ac_ext <<_ACEOF
10936 /* end confdefs.h. */
10938 /* Override any gcc2 internal prototype to avoid an error. */
10942 /* We use char because int might match the return type of a gcc2
10943 builtin and then its argument prototype would still apply. */
10953 rm -f conftest.$ac_objext conftest$ac_exeext
10954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10955 (eval $ac_link) 2>conftest.er1
10957 grep -v '^ *+' conftest.er1 >conftest.err
10959 cat conftest.err >&5
10960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961 (exit $ac_status); } &&
10962 { ac_try='test -z "$ac_c_werror_flag"
10963 || test ! -s conftest.err'
10964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10965 (eval $ac_try) 2>&5
10967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968 (exit $ac_status); }; } &&
10969 { ac_try='test -s conftest$ac_exeext'
10970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10971 (eval $ac_try) 2>&5
10973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974 (exit $ac_status); }; }; then
10975 ac_cv_lib_dld_dld_link=yes
10977 echo "$as_me: failed program was:" >&5
10978 sed 's/^/| /' conftest.$ac_ext >&5
10980 ac_cv_lib_dld_dld_link=no
10982 rm -f conftest.err conftest.$ac_objext \
10983 conftest$ac_exeext conftest.$ac_ext
10984 LIBS=$ac_check_lib_save_LIBS
10986 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10987 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10988 if test $ac_cv_lib_dld_dld_link = yes; then
10989 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11010 if test "x$lt_cv_dlopen" != xno; then
11016 case $lt_cv_dlopen in
11018 save_CPPFLAGS="$CPPFLAGS"
11019 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11021 save_LDFLAGS="$LDFLAGS"
11022 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11025 LIBS="$lt_cv_dlopen_libs $LIBS"
11027 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11028 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11029 if test "${lt_cv_dlopen_self+set}" = set; then
11030 echo $ECHO_N "(cached) $ECHO_C" >&6
11032 if test "$cross_compiling" = yes; then :
11033 lt_cv_dlopen_self=cross
11035 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11036 lt_status=$lt_dlunknown
11037 cat > conftest.$ac_ext <<EOF
11038 #line 11038 "configure"
11039 #include "confdefs.h"
11048 # define LT_DLGLOBAL RTLD_GLOBAL
11051 # define LT_DLGLOBAL DL_GLOBAL
11053 # define LT_DLGLOBAL 0
11057 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11058 find out it does not work in some platform. */
11059 #ifndef LT_DLLAZY_OR_NOW
11061 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11064 # define LT_DLLAZY_OR_NOW DL_LAZY
11067 # define LT_DLLAZY_OR_NOW RTLD_NOW
11070 # define LT_DLLAZY_OR_NOW DL_NOW
11072 # define LT_DLLAZY_OR_NOW 0
11080 extern "C" void exit (int);
11083 void fnord() { int i=42;}
11086 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11087 int status = $lt_dlunknown;
11091 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11092 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11093 /* dlclose (self); */
11099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11100 (eval $ac_link) 2>&5
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11104 (./conftest; exit; ) 2>/dev/null
11106 case x$lt_status in
11107 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11108 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11109 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11112 # compilation failed
11113 lt_cv_dlopen_self=no
11120 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11121 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11123 if test "x$lt_cv_dlopen_self" = xyes; then
11124 LDFLAGS="$LDFLAGS $link_static_flag"
11125 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11126 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11127 if test "${lt_cv_dlopen_self_static+set}" = set; then
11128 echo $ECHO_N "(cached) $ECHO_C" >&6
11130 if test "$cross_compiling" = yes; then :
11131 lt_cv_dlopen_self_static=cross
11133 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11134 lt_status=$lt_dlunknown
11135 cat > conftest.$ac_ext <<EOF
11136 #line 11136 "configure"
11137 #include "confdefs.h"
11146 # define LT_DLGLOBAL RTLD_GLOBAL
11149 # define LT_DLGLOBAL DL_GLOBAL
11151 # define LT_DLGLOBAL 0
11155 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11156 find out it does not work in some platform. */
11157 #ifndef LT_DLLAZY_OR_NOW
11159 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11162 # define LT_DLLAZY_OR_NOW DL_LAZY
11165 # define LT_DLLAZY_OR_NOW RTLD_NOW
11168 # define LT_DLLAZY_OR_NOW DL_NOW
11170 # define LT_DLLAZY_OR_NOW 0
11178 extern "C" void exit (int);
11181 void fnord() { int i=42;}
11184 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11185 int status = $lt_dlunknown;
11189 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11190 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11191 /* dlclose (self); */
11197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11198 (eval $ac_link) 2>&5
11200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11202 (./conftest; exit; ) 2>/dev/null
11204 case x$lt_status in
11205 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11206 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11207 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11210 # compilation failed
11211 lt_cv_dlopen_self_static=no
11218 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11219 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11222 CPPFLAGS="$save_CPPFLAGS"
11223 LDFLAGS="$save_LDFLAGS"
11228 case $lt_cv_dlopen_self in
11229 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11230 *) enable_dlopen_self=unknown ;;
11233 case $lt_cv_dlopen_self_static in
11234 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11235 *) enable_dlopen_self_static=unknown ;;
11240 # Report which librarie types wil actually be built
11241 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11242 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11243 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11244 echo "${ECHO_T}$can_build_shared" >&6
11246 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11247 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11248 test "$can_build_shared" = "no" && enable_shared=no
11250 # On AIX, shared libraries and static libraries use the same namespace, and
11251 # are all built from PIC.
11254 test "$enable_shared" = yes && enable_static=no
11255 if test -n "$RANLIB"; then
11256 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11257 postinstall_cmds='$RANLIB $lib'
11262 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11263 test "$enable_shared" = yes && enable_static=no
11267 echo "$as_me:$LINENO: result: $enable_shared" >&5
11268 echo "${ECHO_T}$enable_shared" >&6
11270 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11271 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11272 # Make sure either enable_shared or enable_static is yes.
11273 test "$enable_shared" = yes || enable_static=yes
11274 echo "$as_me:$LINENO: result: $enable_static" >&5
11275 echo "${ECHO_T}$enable_static" >&6
11277 # The else clause should only fire when bootstrapping the
11278 # libtool distribution, otherwise you forgot to ship ltmain.sh
11279 # with your package, and you will get complaints that there are
11280 # no rules to generate ltmain.sh.
11281 if test -f "$ltmain"; then
11282 # See if we are running on zsh, and set the options which allow our commands through
11283 # without removal of \ escapes.
11284 if test -n "${ZSH_VERSION+set}" ; then
11285 setopt NO_GLOB_SUBST
11287 # Now quote all the things that may contain metacharacters while being
11288 # careful not to overquote the AC_SUBSTed values. We take copies of the
11289 # variables and quote the copies for generation of the libtool script.
11290 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11292 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11293 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11294 deplibs_check_method reload_flag reload_cmds need_locks \
11295 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11296 lt_cv_sys_global_symbol_to_c_name_address \
11297 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11298 old_postinstall_cmds old_postuninstall_cmds \
11302 lt_prog_compiler_wl \
11303 lt_prog_compiler_pic \
11304 lt_prog_compiler_static \
11305 lt_prog_compiler_no_builtin_flag \
11306 export_dynamic_flag_spec \
11307 thread_safe_flag_spec \
11308 whole_archive_flag_spec \
11309 enable_shared_with_static_runtimes \
11311 old_archive_from_new_cmds \
11316 compiler_lib_search_path \
11318 archive_expsym_cmds \
11320 postuninstall_cmds \
11321 old_archive_from_expsyms_cmds \
11322 allow_undefined_flag \
11323 no_undefined_flag \
11324 export_symbols_cmds \
11325 hardcode_libdir_flag_spec \
11326 hardcode_libdir_flag_spec_ld \
11327 hardcode_libdir_separator \
11328 hardcode_automatic \
11330 module_expsym_cmds \
11331 lt_cv_prog_compiler_c_o \
11333 include_expsyms; do
11336 old_archive_cmds | \
11337 old_archive_from_new_cmds | \
11339 archive_expsym_cmds | \
11341 module_expsym_cmds | \
11342 old_archive_from_expsyms_cmds | \
11343 export_symbols_cmds | \
11344 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11345 postinstall_cmds | postuninstall_cmds | \
11346 old_postinstall_cmds | old_postuninstall_cmds | \
11347 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11348 # Double-quote double-evaled strings.
11349 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11352 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11358 *'\$0 --fallback-echo"')
11359 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11363 cfgfile="${ofile}T"
11364 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11366 { echo "$as_me:$LINENO: creating $ofile" >&5
11367 echo "$as_me: creating $ofile" >&6;}
11369 cat <<__EOF__ >> "$cfgfile"
11372 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11373 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11374 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11376 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11377 # Free Software Foundation, Inc.
11379 # This file is part of GNU Libtool:
11380 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11382 # This program is free software; you can redistribute it and/or modify
11383 # it under the terms of the GNU General Public License as published by
11384 # the Free Software Foundation; either version 2 of the License, or
11385 # (at your option) any later version.
11387 # This program is distributed in the hope that it will be useful, but
11388 # WITHOUT ANY WARRANTY; without even the implied warranty of
11389 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11390 # General Public License for more details.
11392 # You should have received a copy of the GNU General Public License
11393 # along with this program; if not, write to the Free Software
11394 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11396 # As a special exception to the GNU General Public License, if you
11397 # distribute this file as part of a program that contains a
11398 # configuration script generated by Autoconf, you may include it under
11399 # the same distribution terms that you use for the rest of that program.
11401 # A sed program that does not truncate output.
11404 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11405 Xsed="$SED -e 1s/^X//"
11407 # The HP-UX ksh and POSIX shell print the target directory to stdout
11408 # if CDPATH is set.
11409 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11411 # The names of the tagged configurations supported by this script.
11414 # ### BEGIN LIBTOOL CONFIG
11416 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11418 # Shell to use when invoking shell scripts.
11421 # Whether or not to build shared libraries.
11422 build_libtool_libs=$enable_shared
11424 # Whether or not to build static libraries.
11425 build_old_libs=$enable_static
11427 # Whether or not to add -lc for building shared libraries.
11428 build_libtool_need_lc=$archive_cmds_need_lc
11430 # Whether or not to disallow shared libs when runtime libs are static
11431 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11433 # Whether or not to optimize for fast installation.
11434 fast_install=$enable_fast_install
11437 host_alias=$host_alias
11441 # The build system.
11442 build_alias=$build_alias
11446 # An echo program that does not interpret backslashes.
11451 AR_FLAGS=$lt_AR_FLAGS
11456 # A language-specific compiler.
11459 # Is the compiler the GNU C compiler?
11465 # The linker used to build libraries.
11468 # Whether we need hard or soft links.
11471 # A BSD-compatible nm program.
11474 # A symbol stripping program
11477 # Used to examine libraries when file_magic_cmd begins "file"
11478 MAGIC_CMD=$MAGIC_CMD
11480 # Used on cygwin: DLL creation program.
11483 # Used on cygwin: object dumper.
11486 # Used on cygwin: assembler.
11489 # The name of the directory that contains temporary libtool files.
11492 # How to create reloadable object files.
11493 reload_flag=$lt_reload_flag
11494 reload_cmds=$lt_reload_cmds
11496 # How to pass a linker flag through the compiler.
11497 wl=$lt_lt_prog_compiler_wl
11499 # Object file suffix (normally "o").
11500 objext="$ac_objext"
11502 # Old archive suffix (normally "a").
11505 # Shared library suffix (normally ".so").
11506 shrext_cmds='$shrext_cmds'
11508 # Executable file suffix (normally "").
11511 # Additional compiler flags for building library objects.
11512 pic_flag=$lt_lt_prog_compiler_pic
11515 # What is the maximum length of a command?
11516 max_cmd_len=$lt_cv_sys_max_cmd_len
11518 # Does compiler simultaneously support -c and -o options?
11519 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11521 # Must we lock files when doing compilation?
11522 need_locks=$lt_need_locks
11524 # Do we need the lib prefix for modules?
11525 need_lib_prefix=$need_lib_prefix
11527 # Do we need a version for libraries?
11528 need_version=$need_version
11530 # Whether dlopen is supported.
11531 dlopen_support=$enable_dlopen
11533 # Whether dlopen of programs is supported.
11534 dlopen_self=$enable_dlopen_self
11536 # Whether dlopen of statically linked programs is supported.
11537 dlopen_self_static=$enable_dlopen_self_static
11539 # Compiler flag to prevent dynamic linking.
11540 link_static_flag=$lt_lt_prog_compiler_static
11542 # Compiler flag to turn off builtin functions.
11543 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11545 # Compiler flag to allow reflexive dlopens.
11546 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11548 # Compiler flag to generate shared objects directly from archives.
11549 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11551 # Compiler flag to generate thread-safe objects.
11552 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11554 # Library versioning type.
11555 version_type=$version_type
11557 # Format of library name prefix.
11558 libname_spec=$lt_libname_spec
11560 # List of archive names. First name is the real one, the rest are links.
11561 # The last name is the one that the linker finds with -lNAME.
11562 library_names_spec=$lt_library_names_spec
11564 # The coded name of the library, if different from the real name.
11565 soname_spec=$lt_soname_spec
11567 # Commands used to build and install an old-style archive.
11569 old_archive_cmds=$lt_old_archive_cmds
11570 old_postinstall_cmds=$lt_old_postinstall_cmds
11571 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11573 # Create an old-style archive from a shared archive.
11574 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11576 # Create a temporary old-style archive to link instead of a shared archive.
11577 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11579 # Commands used to build and install a shared archive.
11580 archive_cmds=$lt_archive_cmds
11581 archive_expsym_cmds=$lt_archive_expsym_cmds
11582 postinstall_cmds=$lt_postinstall_cmds
11583 postuninstall_cmds=$lt_postuninstall_cmds
11585 # Commands used to build a loadable module (assumed same as above if empty)
11586 module_cmds=$lt_module_cmds
11587 module_expsym_cmds=$lt_module_expsym_cmds
11589 # Commands to strip libraries.
11590 old_striplib=$lt_old_striplib
11591 striplib=$lt_striplib
11593 # Dependencies to place before the objects being linked to create a
11595 predep_objects=$lt_predep_objects
11597 # Dependencies to place after the objects being linked to create a
11599 postdep_objects=$lt_postdep_objects
11601 # Dependencies to place before the objects being linked to create a
11603 predeps=$lt_predeps
11605 # Dependencies to place after the objects being linked to create a
11607 postdeps=$lt_postdeps
11609 # The library search path used internally by the compiler when linking
11610 # a shared library.
11611 compiler_lib_search_path=$lt_compiler_lib_search_path
11613 # Method to check whether dependent libraries are shared objects.
11614 deplibs_check_method=$lt_deplibs_check_method
11616 # Command to use when deplibs_check_method == file_magic.
11617 file_magic_cmd=$lt_file_magic_cmd
11619 # Flag that allows shared libraries with undefined symbols to be built.
11620 allow_undefined_flag=$lt_allow_undefined_flag
11622 # Flag that forces no undefined symbols.
11623 no_undefined_flag=$lt_no_undefined_flag
11625 # Commands used to finish a libtool library installation in a directory.
11626 finish_cmds=$lt_finish_cmds
11628 # Same as above, but a single script fragment to be evaled but not shown.
11629 finish_eval=$lt_finish_eval
11631 # Take the output of nm and produce a listing of raw symbols and C names.
11632 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11634 # Transform the output of nm in a proper C declaration
11635 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11637 # Transform the output of nm in a C name address pair
11638 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11640 # This is the shared library runtime path variable.
11641 runpath_var=$runpath_var
11643 # This is the shared library path variable.
11644 shlibpath_var=$shlibpath_var
11646 # Is shlibpath searched before the hard-coded library search path?
11647 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11649 # How to hardcode a shared library path into an executable.
11650 hardcode_action=$hardcode_action
11652 # Whether we should hardcode library paths into libraries.
11653 hardcode_into_libs=$hardcode_into_libs
11655 # Flag to hardcode \$libdir into a binary during linking.
11656 # This must work even if \$libdir does not exist.
11657 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11659 # If ld is used when linking, flag to hardcode \$libdir into
11660 # a binary during linking. This must work even if \$libdir does
11662 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11664 # Whether we need a single -rpath flag with a separated argument.
11665 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11667 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11668 # resulting binary.
11669 hardcode_direct=$hardcode_direct
11671 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11672 # resulting binary.
11673 hardcode_minus_L=$hardcode_minus_L
11675 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11676 # the resulting binary.
11677 hardcode_shlibpath_var=$hardcode_shlibpath_var
11679 # Set to yes if building a shared library automatically hardcodes DIR into the library
11680 # and all subsequent libraries and executables linked against it.
11681 hardcode_automatic=$hardcode_automatic
11683 # Variables whose values should be saved in libtool wrapper scripts and
11684 # restored at relink time.
11685 variables_saved_for_relink="$variables_saved_for_relink"
11687 # Whether libtool must link a program against all its dependency libraries.
11688 link_all_deplibs=$link_all_deplibs
11690 # Compile-time system search path for libraries
11691 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11693 # Run-time system search path for libraries
11694 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11696 # Fix the shell variable \$srcfile for the compiler.
11697 fix_srcfile_path="$fix_srcfile_path"
11699 # Set to yes if exported symbols are required.
11700 always_export_symbols=$always_export_symbols
11702 # The commands to list exported symbols.
11703 export_symbols_cmds=$lt_export_symbols_cmds
11705 # The commands to extract the exported symbol list from a shared archive.
11706 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11708 # Symbols that should not be listed in the preloaded symbols.
11709 exclude_expsyms=$lt_exclude_expsyms
11711 # Symbols that must always be exported.
11712 include_expsyms=$lt_include_expsyms
11714 # ### END LIBTOOL CONFIG
11721 cat <<\EOF >> "$cfgfile"
11723 # AIX sometimes has problems with the GCC collect2 program. For some
11724 # reason, if we set the COLLECT_NAMES environment variable, the problems
11725 # vanish in a puff of smoke.
11726 if test "X${COLLECT_NAMES+set}" != Xset; then
11728 export COLLECT_NAMES
11734 # We use sed instead of cat because bash on DJGPP gets confused if
11735 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11736 # text mode, it properly converts lines to CR/LF. This bash problem
11737 # is reportedly fixed, but why not run on old versions too?
11738 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11740 mv -f "$cfgfile" "$ofile" || \
11741 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11745 # If there is no Makefile yet, we rely on a make rule to execute
11746 # `config.status --recheck' to rerun these tests and create the
11747 # libtool script then.
11748 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11749 if test -f "$ltmain_in"; then
11750 test -f Makefile && make "$ltmain"
11756 ac_cpp='$CPP $CPPFLAGS'
11757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11764 # Check whether --with-tags or --without-tags was given.
11765 if test "${with_tags+set}" = set; then
11766 withval="$with_tags"
11767 tagnames="$withval"
11770 if test -f "$ltmain" && test -n "$tagnames"; then
11771 if test ! -f "${ofile}"; then
11772 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11773 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11776 if test -z "$LTCC"; then
11777 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11778 if test -z "$LTCC"; then
11779 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11780 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11782 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11783 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11787 # Extract list of available tagged configurations in $ofile.
11788 # Note that this assumes the entire list is on one line.
11789 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11791 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11792 for tagname in $tagnames; do
11794 # Check whether tagname contains only valid characters
11795 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11797 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11798 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11799 { (exit 1); exit 1; }; }
11803 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11805 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11806 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11807 { (exit 1); exit 1; }; }
11810 # Update the list of available tags.
11811 if test -n "$tagname"; then
11812 echo appending configuration tag \"$tagname\" to $ofile
11816 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11817 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11818 (test "X$CXX" != "Xg++"))) ; then
11820 ac_cpp='$CXXCPP $CPPFLAGS'
11821 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11822 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11823 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11828 archive_cmds_need_lc_CXX=no
11829 allow_undefined_flag_CXX=
11830 always_export_symbols_CXX=no
11831 archive_expsym_cmds_CXX=
11832 export_dynamic_flag_spec_CXX=
11833 hardcode_direct_CXX=no
11834 hardcode_libdir_flag_spec_CXX=
11835 hardcode_libdir_flag_spec_ld_CXX=
11836 hardcode_libdir_separator_CXX=
11837 hardcode_minus_L_CXX=no
11838 hardcode_automatic_CXX=no
11840 module_expsym_cmds_CXX=
11841 link_all_deplibs_CXX=unknown
11842 old_archive_cmds_CXX=$old_archive_cmds
11843 no_undefined_flag_CXX=
11844 whole_archive_flag_spec_CXX=
11845 enable_shared_with_static_runtimes_CXX=no
11847 # Dependencies to place before and after the object being linked:
11848 predep_objects_CXX=
11849 postdep_objects_CXX=
11852 compiler_lib_search_path_CXX=
11854 # Source file extension for C++ test sources.
11857 # Object file extension for compiled C++ test sources.
11861 # Code to be used in simple compile tests
11862 lt_simple_compile_test_code="int some_variable = 0;\n"
11864 # Code to be used in simple link tests
11865 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
11867 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11869 # If no C compiler was specified, use CC.
11872 # Allow CC to be a program name with arguments.
11876 # save warnings/boilerplate of simple test code
11877 ac_outfile=conftest.$ac_objext
11878 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11879 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11880 _lt_compiler_boilerplate=`cat conftest.err`
11883 ac_outfile=conftest.$ac_objext
11884 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11885 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11886 _lt_linker_boilerplate=`cat conftest.err`
11890 # Allow CC to be a program name with arguments.
11895 lt_save_with_gnu_ld=$with_gnu_ld
11896 lt_save_path_LD=$lt_cv_path_LD
11897 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11898 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11900 unset lt_cv_prog_gnu_ld
11902 if test -n "${lt_cv_path_LDCXX+set}"; then
11903 lt_cv_path_LD=$lt_cv_path_LDCXX
11905 unset lt_cv_path_LD
11907 test -z "${LDCXX+set}" || LD=$LDCXX
11911 for cc_temp in $compiler""; do
11913 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11914 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11919 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11922 # We don't want -fno-exception wen compiling C++ code, so set the
11923 # no_builtin_flag separately
11924 if test "$GXX" = yes; then
11925 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11927 lt_prog_compiler_no_builtin_flag_CXX=
11930 if test "$GXX" = yes; then
11931 # Set up default GNU C++ configuration
11934 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11935 if test "${with_gnu_ld+set}" = set; then
11936 withval="$with_gnu_ld"
11937 test "$withval" = no || with_gnu_ld=yes
11942 if test "$GCC" = yes; then
11943 # Check if gcc -print-prog-name=ld gives a path.
11944 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11945 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11948 # gcc leaves a trailing carriage return which upsets mingw
11949 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11951 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11954 # Accept absolute paths.
11956 re_direlt='/[^/][^/]*/\.\./'
11957 # Canonicalize the pathname of ld
11958 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11959 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11960 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11962 test -z "$LD" && LD="$ac_prog"
11965 # If it fails, then pretend we aren't using GCC.
11969 # If it is relative, then search for the first ld in PATH.
11970 with_gnu_ld=unknown
11973 elif test "$with_gnu_ld" = yes; then
11974 echo "$as_me:$LINENO: checking for GNU ld" >&5
11975 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11977 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11978 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11980 if test "${lt_cv_path_LD+set}" = set; then
11981 echo $ECHO_N "(cached) $ECHO_C" >&6
11983 if test -z "$LD"; then
11984 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11985 for ac_dir in $PATH; do
11987 test -z "$ac_dir" && ac_dir=.
11988 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11989 lt_cv_path_LD="$ac_dir/$ac_prog"
11990 # Check to see if the program is GNU ld. I'd rather use --version,
11991 # but apparently some GNU ld's only accept -v.
11992 # Break only if it was the GNU/non-GNU ld that we prefer.
11993 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11994 *GNU* | *'with BFD'*)
11995 test "$with_gnu_ld" != no && break
11998 test "$with_gnu_ld" != yes && break
12005 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12009 LD="$lt_cv_path_LD"
12010 if test -n "$LD"; then
12011 echo "$as_me:$LINENO: result: $LD" >&5
12012 echo "${ECHO_T}$LD" >&6
12014 echo "$as_me:$LINENO: result: no" >&5
12015 echo "${ECHO_T}no" >&6
12017 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12018 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12019 { (exit 1); exit 1; }; }
12020 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12021 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12022 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12023 echo $ECHO_N "(cached) $ECHO_C" >&6
12025 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12026 case `$LD -v 2>&1 </dev/null` in
12027 *GNU* | *'with BFD'*)
12028 lt_cv_prog_gnu_ld=yes
12031 lt_cv_prog_gnu_ld=no
12035 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12036 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12037 with_gnu_ld=$lt_cv_prog_gnu_ld
12041 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12042 # archiving commands below assume that GNU ld is being used.
12043 if test "$with_gnu_ld" = yes; then
12044 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12045 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'
12047 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12048 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12050 # If archive_cmds runs LD, not CC, wlarc should be empty
12051 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12052 # investigate it a little bit more. (MM)
12055 # ancient GNU ld didn't support --whole-archive et. al.
12056 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12057 grep 'no-whole-archive' > /dev/null; then
12058 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12060 whole_archive_flag_spec_CXX=
12066 # A generic and very simple default shared library creation
12067 # command for GNU C++ for the case where it uses the native
12068 # linker, instead of GNU ld. If possible, this setting should
12069 # overridden to take advantage of the native linker features on
12070 # the platform it is being used on.
12071 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12074 # Commands to make compiler produce verbose output that lists
12075 # what "hidden" libraries, object files and flags are used when
12076 # linking a shared library.
12077 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12085 # PORTME: fill in a description of your system's C++ link characteristics
12086 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12087 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12091 # FIXME: insert proper C++ library support
12095 if test "$host_cpu" = ia64; then
12096 # On IA64, the linker does run time linking by default, so we don't
12097 # have to do anything special.
12098 aix_use_runtimelinking=no
12099 exp_sym_flag='-Bexport'
12102 aix_use_runtimelinking=no
12104 # Test if we are trying to use run time linking or normal
12105 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12106 # need to do runtime linking.
12107 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12108 for ld_flag in $LDFLAGS; do
12111 aix_use_runtimelinking=yes
12118 exp_sym_flag='-bexport'
12119 no_entry_flag='-bnoentry'
12122 # When large executables or shared objects are built, AIX ld can
12123 # have problems creating the table of contents. If linking a library
12124 # or program results in "error TOC overflow" add -mminimal-toc to
12125 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12126 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12128 archive_cmds_CXX=''
12129 hardcode_direct_CXX=yes
12130 hardcode_libdir_separator_CXX=':'
12131 link_all_deplibs_CXX=yes
12133 if test "$GXX" = yes; then
12134 case $host_os in aix4.[012]|aix4.[012].*)
12135 # We only want to do this on AIX 4.2 and lower, the check
12136 # below for broken collect2 doesn't work under 4.3+
12137 collect2name=`${CC} -print-prog-name=collect2`
12138 if test -f "$collect2name" && \
12139 strings "$collect2name" | grep resolve_lib_name >/dev/null
12141 # We have reworked collect2
12142 hardcode_direct_CXX=yes
12144 # We have old collect2
12145 hardcode_direct_CXX=unsupported
12146 # It fails to find uninstalled libraries when the uninstalled
12147 # path is not listed in the libpath. Setting hardcode_minus_L
12148 # to unsupported forces relinking
12149 hardcode_minus_L_CXX=yes
12150 hardcode_libdir_flag_spec_CXX='-L$libdir'
12151 hardcode_libdir_separator_CXX=
12154 shared_flag='-shared'
12155 if test "$aix_use_runtimelinking" = yes; then
12156 shared_flag="$shared_flag "'${wl}-G'
12160 if test "$host_cpu" = ia64; then
12161 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12162 # chokes on -Wl,-G. The following line is correct:
12165 if test "$aix_use_runtimelinking" = yes; then
12166 shared_flag='${wl}-G'
12168 shared_flag='${wl}-bM:SRE'
12173 # It seems that -bexpall does not export symbols beginning with
12174 # underscore (_), so it is better to generate a list of symbols to export.
12175 always_export_symbols_CXX=yes
12176 if test "$aix_use_runtimelinking" = yes; then
12177 # Warning - without using the other runtime loading flags (-brtl),
12178 # -berok will link without error, but may produce a broken library.
12179 allow_undefined_flag_CXX='-berok'
12180 # Determine the default libpath from the value encoded in an empty executable.
12181 cat >conftest.$ac_ext <<_ACEOF
12184 cat confdefs.h >>conftest.$ac_ext
12185 cat >>conftest.$ac_ext <<_ACEOF
12186 /* end confdefs.h. */
12196 rm -f conftest.$ac_objext conftest$ac_exeext
12197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12198 (eval $ac_link) 2>conftest.er1
12200 grep -v '^ *+' conftest.er1 >conftest.err
12202 cat conftest.err >&5
12203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204 (exit $ac_status); } &&
12205 { ac_try='test -z "$ac_cxx_werror_flag"
12206 || test ! -s conftest.err'
12207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12208 (eval $ac_try) 2>&5
12210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211 (exit $ac_status); }; } &&
12212 { ac_try='test -s conftest$ac_exeext'
12213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12214 (eval $ac_try) 2>&5
12216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); }; }; then
12219 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12221 # Check for a 64-bit object if we didn't find anything.
12222 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; }
12225 echo "$as_me: failed program was:" >&5
12226 sed 's/^/| /' conftest.$ac_ext >&5
12229 rm -f conftest.err conftest.$ac_objext \
12230 conftest$ac_exeext conftest.$ac_ext
12231 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12233 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12235 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"
12237 if test "$host_cpu" = ia64; then
12238 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12239 allow_undefined_flag_CXX="-z nodefs"
12240 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"
12242 # Determine the default libpath from the value encoded in an empty executable.
12243 cat >conftest.$ac_ext <<_ACEOF
12246 cat confdefs.h >>conftest.$ac_ext
12247 cat >>conftest.$ac_ext <<_ACEOF
12248 /* end confdefs.h. */
12258 rm -f conftest.$ac_objext conftest$ac_exeext
12259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12260 (eval $ac_link) 2>conftest.er1
12262 grep -v '^ *+' conftest.er1 >conftest.err
12264 cat conftest.err >&5
12265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266 (exit $ac_status); } &&
12267 { ac_try='test -z "$ac_cxx_werror_flag"
12268 || test ! -s conftest.err'
12269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12270 (eval $ac_try) 2>&5
12272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273 (exit $ac_status); }; } &&
12274 { ac_try='test -s conftest$ac_exeext'
12275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12276 (eval $ac_try) 2>&5
12278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); }; }; then
12281 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12283 # Check for a 64-bit object if we didn't find anything.
12284 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; }
12287 echo "$as_me: failed program was:" >&5
12288 sed 's/^/| /' conftest.$ac_ext >&5
12291 rm -f conftest.err conftest.$ac_objext \
12292 conftest$ac_exeext conftest.$ac_ext
12293 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12295 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12296 # Warning - without using the other run time loading flags,
12297 # -berok will link without error, but may produce a broken library.
12298 no_undefined_flag_CXX=' ${wl}-bernotok'
12299 allow_undefined_flag_CXX=' ${wl}-berok'
12300 # -bexpall does not export symbols beginning with underscore (_)
12301 always_export_symbols_CXX=yes
12302 # Exported symbols can be pulled into shared objects from archives
12303 whole_archive_flag_spec_CXX=' '
12304 archive_cmds_need_lc_CXX=yes
12305 # This is similar to how AIX traditionally builds it's shared libraries.
12306 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'
12311 case $cc_basename in
12313 # FIXME: insert proper C++ library support
12320 cygwin* | mingw* | pw32*)
12321 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12322 # as there is no search path for DLLs.
12323 hardcode_libdir_flag_spec_CXX='-L$libdir'
12324 allow_undefined_flag_CXX=unsupported
12325 always_export_symbols_CXX=no
12326 enable_shared_with_static_runtimes_CXX=yes
12328 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12329 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'
12330 # If the export-symbols file already is a .def file (1st line
12331 # is EXPORTS), use it as is; otherwise, prepend...
12332 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12333 cp $export_symbols $output_objdir/$soname.def;
12335 echo EXPORTS > $output_objdir/$soname.def;
12336 cat $export_symbols >> $output_objdir/$soname.def;
12338 $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'
12343 darwin* | rhapsody*)
12345 rhapsody* | darwin1.[012])
12346 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12349 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12350 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12352 case ${MACOSX_DEPLOYMENT_TARGET} in
12354 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12357 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12363 archive_cmds_need_lc_CXX=no
12364 hardcode_direct_CXX=no
12365 hardcode_automatic_CXX=yes
12366 hardcode_shlibpath_var_CXX=unsupported
12367 whole_archive_flag_spec_CXX=''
12368 link_all_deplibs_CXX=yes
12370 if test "$GXX" = yes ; then
12371 lt_int_apple_cc_single_mod=no
12372 output_verbose_link_cmd='echo'
12373 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12374 lt_int_apple_cc_single_mod=yes
12376 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12377 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12379 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'
12381 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12382 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12383 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12384 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}'
12386 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}'
12388 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}'
12390 case $cc_basename in
12392 output_verbose_link_cmd='echo'
12393 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'
12394 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12395 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12396 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}'
12397 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12407 case $cc_basename in
12409 # FIXME: insert proper C++ library support
12413 # Green Hills C++ Compiler
12414 # FIXME: insert proper C++ library support
12418 # FIXME: insert proper C++ library support
12424 # C++ shared libraries reported to be fairly broken before switch to ELF
12428 archive_cmds_need_lc_CXX=no
12430 freebsd* | kfreebsd*-gnu | dragonfly*)
12431 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12438 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12439 hardcode_libdir_separator_CXX=:
12440 export_dynamic_flag_spec_CXX='${wl}-E'
12441 hardcode_direct_CXX=yes
12442 hardcode_minus_L_CXX=yes # Not in the search PATH,
12443 # but as the default
12444 # location of the library.
12446 case $cc_basename in
12448 # FIXME: insert proper C++ library support
12452 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'
12453 # Commands to make compiler produce verbose output that lists
12454 # what "hidden" libraries, object files and flags are used when
12455 # linking a shared library.
12457 # There doesn't appear to be a way to prevent this compiler from
12458 # explicitly linking system object files so we need to strip them
12459 # from the output so that they don't get included in the library
12461 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'
12464 if test "$GXX" = yes; then
12465 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'
12467 # FIXME: insert proper C++ library support
12474 if test $with_gnu_ld = no; then
12475 case "$host_cpu" in
12477 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12478 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12479 hardcode_libdir_separator_CXX=:
12482 hardcode_libdir_flag_spec_CXX='-L$libdir'
12485 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12486 hardcode_libdir_separator_CXX=:
12487 export_dynamic_flag_spec_CXX='${wl}-E'
12491 case "$host_cpu" in
12493 hardcode_direct_CXX=no
12494 hardcode_shlibpath_var_CXX=no
12497 hardcode_direct_CXX=no
12498 hardcode_shlibpath_var_CXX=no
12499 hardcode_minus_L_CXX=yes # Not in the search PATH,
12500 # but as the default
12501 # location of the library.
12504 hardcode_direct_CXX=yes
12505 hardcode_minus_L_CXX=yes # Not in the search PATH,
12506 # but as the default
12507 # location of the library.
12511 case $cc_basename in
12513 # FIXME: insert proper C++ library support
12517 case "$host_cpu" in
12519 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12522 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12525 # Commands to make compiler produce verbose output that lists
12526 # what "hidden" libraries, object files and flags are used when
12527 # linking a shared library.
12529 # There doesn't appear to be a way to prevent this compiler from
12530 # explicitly linking system object files so we need to strip them
12531 # from the output so that they don't get included in the library
12533 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'
12536 if test "$GXX" = yes; then
12537 if test $with_gnu_ld = no; then
12538 case "$host_cpu" in
12540 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12543 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'
12548 # FIXME: insert proper C++ library support
12555 case $cc_basename in
12558 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'
12560 # Archives containing C++ object files must be created using
12561 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12562 # necessary to make sure instantiated templates are included
12564 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12567 if test "$GXX" = yes; then
12568 if test "$with_gnu_ld" = no; then
12569 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'
12571 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'
12574 link_all_deplibs_CXX=yes
12577 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12578 hardcode_libdir_separator_CXX=:
12581 case $cc_basename in
12583 # Kuck and Associates, Inc. (KAI) C++ Compiler
12585 # KCC will only create a shared library if the output file
12586 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12587 # to its proper name (with version) after linking.
12588 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'
12589 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'
12590 # Commands to make compiler produce verbose output that lists
12591 # what "hidden" libraries, object files and flags are used when
12592 # linking a shared library.
12594 # There doesn't appear to be a way to prevent this compiler from
12595 # explicitly linking system object files so we need to strip them
12596 # from the output so that they don't get included in the library
12598 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'
12600 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12601 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12603 # Archives containing C++ object files must be created using
12604 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12605 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12610 # version 8.0 and above of icpc choke on multiply defined symbols
12611 # if we add $predep_objects and $postdep_objects, however 7.1 and
12612 # earlier do not add the objects themselves.
12613 case `$CC -V 2>&1` in
12615 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12616 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'
12618 *) # Version 8.0 or newer
12621 ia64*) tmp_idyn=' -i_dynamic';;
12623 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12624 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'
12627 archive_cmds_need_lc_CXX=no
12628 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12629 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12630 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12633 # Portland Group C++ compiler
12634 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12635 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'
12637 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12638 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12639 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'
12643 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12644 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'
12646 runpath_var=LD_RUN_PATH
12647 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12648 hardcode_libdir_separator_CXX=:
12650 # Commands to make compiler produce verbose output that lists
12651 # what "hidden" libraries, object files and flags are used when
12652 # linking a shared library.
12654 # There doesn't appear to be a way to prevent this compiler from
12655 # explicitly linking system object files so we need to strip them
12656 # from the output so that they don't get included in the library
12658 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'
12663 # FIXME: insert proper C++ library support
12667 # FIXME: insert proper C++ library support
12671 case $cc_basename in
12673 # FIXME: insert proper C++ library support
12677 # FIXME: insert proper C++ library support
12683 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12684 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12686 hardcode_libdir_flag_spec_CXX='-R$libdir'
12687 hardcode_direct_CXX=yes
12688 hardcode_shlibpath_var_CXX=no
12690 # Workaround some broken pre-1.5 toolchains
12691 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12694 # C++ shared libraries are fairly broken
12698 hardcode_direct_CXX=yes
12699 hardcode_shlibpath_var_CXX=no
12700 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12701 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12702 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12703 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12704 export_dynamic_flag_spec_CXX='${wl}-E'
12705 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12707 output_verbose_link_cmd='echo'
12710 case $cc_basename in
12712 # Kuck and Associates, Inc. (KAI) C++ Compiler
12714 # KCC will only create a shared library if the output file
12715 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12716 # to its proper name (with version) after linking.
12717 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'
12719 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12720 hardcode_libdir_separator_CXX=:
12722 # Archives containing C++ object files must be created using
12723 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12724 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12728 # Rational C++ 2.4.1
12729 # FIXME: insert proper C++ library support
12733 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12734 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'
12736 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12737 hardcode_libdir_separator_CXX=:
12739 # Commands to make compiler produce verbose output that lists
12740 # what "hidden" libraries, object files and flags are used when
12741 # linking a shared library.
12743 # There doesn't appear to be a way to prevent this compiler from
12744 # explicitly linking system object files so we need to strip them
12745 # from the output so that they don't get included in the library
12747 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'
12750 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12751 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12752 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'
12754 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12755 hardcode_libdir_separator_CXX=:
12757 # Commands to make compiler produce verbose output that lists
12758 # what "hidden" libraries, object files and flags are used when
12759 # linking a shared library.
12760 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12763 # FIXME: insert proper C++ library support
12770 case $cc_basename in
12772 # Kuck and Associates, Inc. (KAI) C++ Compiler
12774 # KCC will only create a shared library if the output file
12775 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12776 # to its proper name (with version) after linking.
12777 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'
12779 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12780 hardcode_libdir_separator_CXX=:
12782 # Archives containing C++ object files must be created using
12783 # the KAI C++ compiler.
12784 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12787 # Rational C++ 2.4.1
12788 # FIXME: insert proper C++ library support
12792 allow_undefined_flag_CXX=' -expect_unresolved \*'
12793 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'
12794 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12795 echo "-hidden">> $lib.exp~
12796 $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~
12799 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12800 hardcode_libdir_separator_CXX=:
12802 # Commands to make compiler produce verbose output that lists
12803 # what "hidden" libraries, object files and flags are used when
12804 # linking a shared library.
12806 # There doesn't appear to be a way to prevent this compiler from
12807 # explicitly linking system object files so we need to strip them
12808 # from the output so that they don't get included in the library
12810 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'
12813 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12814 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12815 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'
12817 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12818 hardcode_libdir_separator_CXX=:
12820 # Commands to make compiler produce verbose output that lists
12821 # what "hidden" libraries, object files and flags are used when
12822 # linking a shared library.
12823 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12826 # FIXME: insert proper C++ library support
12833 # FIXME: insert proper C++ library support
12837 archive_cmds_need_lc_CXX=no
12838 case $cc_basename in
12840 # FIXME: insert proper C++ library support
12844 # FIXME: insert proper C++ library support
12850 case $cc_basename in
12853 # FIXME: insert proper C++ library support
12858 # FIXME: insert proper C++ library support
12862 # FIXME: insert proper C++ library support
12868 case $cc_basename in
12870 # Sun C++ 4.2, 5.x and Centerline C++
12871 no_undefined_flag_CXX=' -zdefs'
12872 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12873 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12874 $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'
12876 hardcode_libdir_flag_spec_CXX='-R$libdir'
12877 hardcode_shlibpath_var_CXX=no
12879 solaris2.[0-5] | solaris2.[0-5].*) ;;
12881 # The C++ compiler is used as linker so we must use $wl
12882 # flag to pass the commands to the underlying system
12883 # linker. We must also pass each convience library through
12884 # to the system linker between allextract/defaultextract.
12885 # The C++ compiler will combine linker options so we
12886 # cannot just pass the convience library names through
12888 # Supported since Solaris 2.6 (maybe 2.5.1?)
12889 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'
12892 link_all_deplibs_CXX=yes
12894 # Commands to make compiler produce verbose output that lists
12895 # what "hidden" libraries, object files and flags are used when
12896 # linking a shared library.
12898 # There doesn't appear to be a way to prevent this compiler from
12899 # explicitly linking system object files so we need to strip them
12900 # from the output so that they don't get included in the library
12902 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'
12904 # Archives containing C++ object files must be created using
12905 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12906 # necessary to make sure instantiated templates are included
12908 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12911 # Green Hills C++ Compiler
12912 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12914 # The C++ compiler must be used to create the archive.
12915 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12918 # GNU C++ compiler with Solaris linker
12919 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12920 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12921 if $CC --version | grep -v '^2\.7' > /dev/null; then
12922 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12923 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12924 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12926 # Commands to make compiler produce verbose output that lists
12927 # what "hidden" libraries, object files and flags are used when
12928 # linking a shared library.
12929 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12931 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12933 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12934 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12935 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12937 # Commands to make compiler produce verbose output that lists
12938 # what "hidden" libraries, object files and flags are used when
12939 # linking a shared library.
12940 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12943 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12948 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12949 archive_cmds_need_lc_CXX=no
12952 case $cc_basename in
12954 # NonStop-UX NCC 3.20
12955 # FIXME: insert proper C++ library support
12959 # FIXME: insert proper C++ library support
12965 # FIXME: insert proper C++ library support
12969 # FIXME: insert proper C++ library support
12973 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12974 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12975 test "$ld_shlibs_CXX" = no && can_build_shared=no
12981 cat > conftest.$ac_ext <<EOF
12985 Foo (void) { a = 0; }
12991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12992 (eval $ac_compile) 2>&5
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); }; then
12996 # Parse the compiler output and extract the necessary
12997 # objects, libraries and library flags.
12999 # Sentinel used to keep track of whether or not we are before
13000 # the conftest object file.
13001 pre_test_object_deps_done=no
13003 # The `*' in the case matches for architectures that use `case' in
13004 # $output_verbose_cmd can trigger glob expansion during the loop
13005 # eval without this substitution.
13006 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
13008 for p in `eval $output_verbose_link_cmd`; do
13012 # Some compilers place space between "-{L,R}" and the path.
13013 # Remove the space.
13014 if test $p = "-L" \
13015 || test $p = "-R"; then
13022 if test "$pre_test_object_deps_done" = no; then
13025 # Internal compiler library paths should come after those
13026 # provided the user. The postdeps already come after the
13027 # user supplied libs so there is no need to process them.
13028 if test -z "$compiler_lib_search_path_CXX"; then
13029 compiler_lib_search_path_CXX="${prev}${p}"
13031 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13034 # The "-l" case would never come before the object being
13035 # linked, so don't bother handling this case.
13038 if test -z "$postdeps_CXX"; then
13039 postdeps_CXX="${prev}${p}"
13041 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13047 # This assumes that the test object file only shows up
13048 # once in the compiler output.
13049 if test "$p" = "conftest.$objext"; then
13050 pre_test_object_deps_done=yes
13054 if test "$pre_test_object_deps_done" = no; then
13055 if test -z "$predep_objects_CXX"; then
13056 predep_objects_CXX="$p"
13058 predep_objects_CXX="$predep_objects_CXX $p"
13061 if test -z "$postdep_objects_CXX"; then
13062 postdep_objects_CXX="$p"
13064 postdep_objects_CXX="$postdep_objects_CXX $p"
13069 *) ;; # Ignore the rest.
13077 echo "libtool.m4: error: problem compiling CXX test program"
13080 $rm -f confest.$objext
13082 case " $postdeps_CXX " in
13083 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13086 lt_prog_compiler_wl_CXX=
13087 lt_prog_compiler_pic_CXX=
13088 lt_prog_compiler_static_CXX=
13090 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13091 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13093 # C++ specific cases for pic, static, wl, etc.
13094 if test "$GXX" = yes; then
13095 lt_prog_compiler_wl_CXX='-Wl,'
13096 lt_prog_compiler_static_CXX='-static'
13100 # All AIX code is PIC.
13101 if test "$host_cpu" = ia64; then
13102 # AIX 5 now supports IA64 processor
13103 lt_prog_compiler_static_CXX='-Bstatic'
13107 # FIXME: we need at least 68020 code to build shared libraries, but
13108 # adding the `-m68020' flag to GCC prevents building anything better,
13110 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13112 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13113 # PIC is the default for these OSes.
13115 mingw* | os2* | pw32*)
13116 # This hack is so that the source file can tell whether it is being
13117 # built for inclusion in a dll (and should export symbols for example).
13118 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13120 darwin* | rhapsody*)
13121 # PIC is the default on this platform
13122 # Common symbols not allowed in MH_DYLIB files
13123 lt_prog_compiler_pic_CXX='-fno-common'
13126 # DJGPP does not support shared libraries at all
13127 lt_prog_compiler_pic_CXX=
13130 if test -d /usr/nec; then
13131 lt_prog_compiler_pic_CXX=-Kconform_pic
13135 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13136 # not for PA HP-UX.
13137 case "$host_cpu" in
13141 lt_prog_compiler_pic_CXX='-fPIC'
13146 lt_prog_compiler_pic_CXX='-fPIC'
13152 # All AIX code is PIC.
13153 if test "$host_cpu" = ia64; then
13154 # AIX 5 now supports IA64 processor
13155 lt_prog_compiler_static_CXX='-Bstatic'
13157 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13161 case $cc_basename in
13163 # Green Hills C++ Compiler
13164 # _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"
13169 # PIC is the default on this platform
13170 # Common symbols not allowed in MH_DYLIB files
13171 case $cc_basename in
13173 lt_prog_compiler_pic_CXX='-qnocommon'
13174 lt_prog_compiler_wl_CXX='-Wl,'
13179 case $cc_basename in
13181 lt_prog_compiler_pic_CXX='-KPIC'
13184 # Green Hills C++ Compiler
13185 lt_prog_compiler_pic_CXX='-pic'
13191 freebsd* | kfreebsd*-gnu | dragonfly*)
13192 # FreeBSD uses GNU C++
13194 hpux9* | hpux10* | hpux11*)
13195 case $cc_basename in
13197 lt_prog_compiler_wl_CXX='-Wl,'
13198 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13199 if test "$host_cpu" != ia64; then
13200 lt_prog_compiler_pic_CXX='+Z'
13204 lt_prog_compiler_wl_CXX='-Wl,'
13205 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13206 case "$host_cpu" in
13211 lt_prog_compiler_pic_CXX='+Z'
13219 irix5* | irix6* | nonstopux*)
13220 case $cc_basename in
13222 lt_prog_compiler_wl_CXX='-Wl,'
13223 lt_prog_compiler_static_CXX='-non_shared'
13224 # CC pic flag -KPIC is the default.
13231 case $cc_basename in
13234 lt_prog_compiler_wl_CXX='--backend -Wl,'
13235 lt_prog_compiler_pic_CXX='-fPIC'
13239 lt_prog_compiler_wl_CXX='-Wl,'
13240 lt_prog_compiler_pic_CXX='-KPIC'
13241 lt_prog_compiler_static_CXX='-static'
13244 # Portland Group C++ compiler.
13245 lt_prog_compiler_wl_CXX='-Wl,'
13246 lt_prog_compiler_pic_CXX='-fpic'
13247 lt_prog_compiler_static_CXX='-static'
13251 # Make sure the PIC flag is empty. It appears that all Alpha
13252 # Linux and Compaq Tru64 Unix objects are PIC.
13253 lt_prog_compiler_pic_CXX=
13254 lt_prog_compiler_static_CXX='-non_shared'
13265 case $cc_basename in
13267 lt_prog_compiler_pic_CXX='-W c,exportall'
13275 osf3* | osf4* | osf5*)
13276 case $cc_basename in
13278 lt_prog_compiler_wl_CXX='--backend -Wl,'
13281 # Rational C++ 2.4.1
13282 lt_prog_compiler_pic_CXX='-pic'
13285 # Digital/Compaq C++
13286 lt_prog_compiler_wl_CXX='-Wl,'
13287 # Make sure the PIC flag is empty. It appears that all Alpha
13288 # Linux and Compaq Tru64 Unix objects are PIC.
13289 lt_prog_compiler_pic_CXX=
13290 lt_prog_compiler_static_CXX='-non_shared'
13299 case $cc_basename in
13301 lt_prog_compiler_pic_CXX='-fPIC'
13308 case $cc_basename in
13310 # Sun C++ 4.2, 5.x and Centerline C++
13311 lt_prog_compiler_pic_CXX='-KPIC'
13312 lt_prog_compiler_static_CXX='-Bstatic'
13313 lt_prog_compiler_wl_CXX='-Qoption ld '
13316 # Green Hills C++ Compiler
13317 lt_prog_compiler_pic_CXX='-PIC'
13324 case $cc_basename in
13327 lt_prog_compiler_pic_CXX='-pic'
13328 lt_prog_compiler_static_CXX='-Bstatic'
13332 lt_prog_compiler_pic_CXX='-pic'
13339 case $cc_basename in
13341 # NonStop-UX NCC 3.20
13342 lt_prog_compiler_pic_CXX='-KPIC'
13353 lt_prog_compiler_can_build_shared_CXX=no
13358 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13359 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13362 # Check to make sure the PIC flag actually works.
13364 if test -n "$lt_prog_compiler_pic_CXX"; then
13366 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13367 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13368 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13369 echo $ECHO_N "(cached) $ECHO_C" >&6
13371 lt_prog_compiler_pic_works_CXX=no
13372 ac_outfile=conftest.$ac_objext
13373 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13374 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13375 # Insert the option either (1) after the last *FLAGS variable, or
13376 # (2) before a word containing "conftest.", or (3) at the end.
13377 # Note that $ac_compile itself does not contain backslashes and begins
13378 # with a dollar sign (not a hyphen), so the echo should work correctly.
13379 # The option is referenced via a variable to avoid confusing sed.
13380 lt_compile=`echo "$ac_compile" | $SED \
13381 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13382 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13383 -e 's:$: $lt_compiler_flag:'`
13384 (eval echo "\"\$as_me:13384: $lt_compile\"" >&5)
13385 (eval "$lt_compile" 2>conftest.err)
13387 cat conftest.err >&5
13388 echo "$as_me:13388: \$? = $ac_status" >&5
13389 if (exit $ac_status) && test -s "$ac_outfile"; then
13390 # The compiler can only warn and ignore the option if not recognized
13391 # So say no if there are warnings other than the usual output.
13392 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13393 $SED '/^$/d' conftest.err >conftest.er2
13394 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13395 lt_prog_compiler_pic_works_CXX=yes
13401 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13402 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13404 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13405 case $lt_prog_compiler_pic_CXX in
13407 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13410 lt_prog_compiler_pic_CXX=
13411 lt_prog_compiler_can_build_shared_CXX=no
13416 # For platforms which do not support PIC, -DPIC is meaningless:
13418 lt_prog_compiler_pic_CXX=
13421 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13425 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13426 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13427 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13428 echo $ECHO_N "(cached) $ECHO_C" >&6
13430 lt_cv_prog_compiler_c_o_CXX=no
13431 $rm -r conftest 2>/dev/null
13435 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13437 lt_compiler_flag="-o out/conftest2.$ac_objext"
13438 # Insert the option either (1) after the last *FLAGS variable, or
13439 # (2) before a word containing "conftest.", or (3) at the end.
13440 # Note that $ac_compile itself does not contain backslashes and begins
13441 # with a dollar sign (not a hyphen), so the echo should work correctly.
13442 lt_compile=`echo "$ac_compile" | $SED \
13443 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13444 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13445 -e 's:$: $lt_compiler_flag:'`
13446 (eval echo "\"\$as_me:13446: $lt_compile\"" >&5)
13447 (eval "$lt_compile" 2>out/conftest.err)
13449 cat out/conftest.err >&5
13450 echo "$as_me:13450: \$? = $ac_status" >&5
13451 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13453 # The compiler can only warn and ignore the option if not recognized
13454 # So say no if there are warnings
13455 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13456 $SED '/^$/d' out/conftest.err >out/conftest.er2
13457 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13458 lt_cv_prog_compiler_c_o_CXX=yes
13463 # SGI C++ compiler will create directory out/ii_files/ for
13464 # template instantiation
13465 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13466 $rm out/* && rmdir out
13472 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13473 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13476 hard_links="nottested"
13477 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13478 # do not overwrite the value of need_locks provided by the user
13479 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13480 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13483 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13485 ln conftest.a conftest.b 2>&5 || hard_links=no
13486 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13487 echo "$as_me:$LINENO: result: $hard_links" >&5
13488 echo "${ECHO_T}$hard_links" >&6
13489 if test "$hard_links" = no; then
13490 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13491 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13498 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13499 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13501 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13504 # If we're using GNU nm, then we don't want the "-C" option.
13505 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13506 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13507 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'
13509 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'
13513 export_symbols_cmds_CXX="$ltdll_cmds"
13516 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'
13519 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13523 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13524 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13525 test "$ld_shlibs_CXX" = no && can_build_shared=no
13527 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13528 if test "$GCC" = yes; then
13529 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13533 # Do we need to explicitly link libc?
13535 case "x$archive_cmds_need_lc_CXX" in
13537 # Assume -lc should be added
13538 archive_cmds_need_lc_CXX=yes
13540 if test "$enable_shared" = yes && test "$GCC" = yes; then
13541 case $archive_cmds_CXX in
13543 # FIXME: we may have to deal with multi-command sequences.
13546 # Test whether the compiler implicitly links with -lc since on some
13547 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13548 # to ld, don't add -lc before -lgcc.
13549 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13550 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13552 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13555 (eval $ac_compile) 2>&5
13557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558 (exit $ac_status); } 2>conftest.err; then
13561 libobjs=conftest.$ac_objext
13563 wl=$lt_prog_compiler_wl_CXX
13569 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13570 allow_undefined_flag_CXX=
13571 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13572 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575 (exit $ac_status); }
13577 archive_cmds_need_lc_CXX=no
13579 archive_cmds_need_lc_CXX=yes
13581 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13583 cat conftest.err 1>&5
13586 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13587 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13594 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13595 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13596 library_names_spec=
13597 libname_spec='lib$name'
13601 postuninstall_cmds=
13605 shlibpath_overrides_runpath=unknown
13607 dynamic_linker="$host_os ld.so"
13608 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13609 if test "$GCC" = yes; then
13610 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13611 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13612 # if the path contains ";" then we assume it to be the separator
13613 # otherwise default to the standard path separator (i.e. ":") - it is
13614 # assumed that no part of a normal pathname contains ";" but that should
13615 # okay in the real world where ";" in dirpaths is itself problematic.
13616 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13618 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13621 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13623 need_lib_prefix=unknown
13624 hardcode_into_libs=no
13626 # when you set need_version to no, make sure it does not cause -set_version
13627 # flags to be left without arguments
13628 need_version=unknown
13633 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13634 shlibpath_var=LIBPATH
13636 # AIX 3 has no versioning support, so we append a major version to the name.
13637 soname_spec='${libname}${release}${shared_ext}$major'
13644 hardcode_into_libs=yes
13645 if test "$host_cpu" = ia64; then
13646 # AIX 5 supports IA64
13647 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13648 shlibpath_var=LD_LIBRARY_PATH
13650 # With GCC up to 2.95.x, collect2 would create an import file
13651 # for dependence libraries. The import file would start with
13652 # the line `#! .'. This would cause the generated library to
13653 # depend on `.', always an invalid library. This was fixed in
13654 # development snapshots of GCC prior to 3.0.
13656 aix4 | aix4.[01] | aix4.[01].*)
13657 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13659 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13662 can_build_shared=no
13666 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13667 # soname into executable. Probably we can add versioning support to
13668 # collect2, so additional links can be useful in future.
13669 if test "$aix_use_runtimelinking" = yes; then
13670 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13671 # instead of lib<name>.a to let people know that these are not
13672 # typical AIX shared libraries.
13673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13675 # We preserve .a as extension for shared libraries through AIX4.2
13676 # and later when we are not doing run time linking.
13677 library_names_spec='${libname}${release}.a $libname.a'
13678 soname_spec='${libname}${release}${shared_ext}$major'
13680 shlibpath_var=LIBPATH
13685 library_names_spec='$libname.ixlibrary $libname.a'
13686 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13687 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'
13691 library_names_spec='${libname}${shared_ext}'
13692 dynamic_linker="$host_os ld.so"
13693 shlibpath_var=LIBRARY_PATH
13699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13700 soname_spec='${libname}${release}${shared_ext}$major'
13701 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13702 shlibpath_var=LD_LIBRARY_PATH
13703 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13704 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13705 # the default ld.so.conf also contains /usr/contrib/lib and
13706 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13707 # libtool to hard-code these into programs
13710 cygwin* | mingw* | pw32*)
13711 version_type=windows
13716 case $GCC,$host_os in
13717 yes,cygwin* | yes,mingw* | yes,pw32*)
13718 library_names_spec='$libname.dll.a'
13719 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13720 postinstall_cmds='base_file=`basename \${file}`~
13721 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13722 dldir=$destdir/`dirname \$dlpath`~
13723 test -d \$dldir || mkdir -p \$dldir~
13724 $install_prog $dir/$dlname \$dldir/$dlname'
13725 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13726 dlpath=$dir/\$dldll~
13728 shlibpath_overrides_runpath=yes
13732 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13733 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13734 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13737 # MinGW DLLs use traditional 'lib' prefix
13738 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13739 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13740 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13741 # It is most probably a Windows format PATH printed by
13742 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13743 # path with ; separators, and with drive letters. We can handle the
13744 # drive letters (cygwin fileutils understands them), so leave them,
13745 # especially as we might pass files found there to a mingw objdump,
13746 # which wouldn't understand a cygwinified path. Ahh.
13747 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13749 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13753 # pw32 DLLs use 'pw' prefix rather than 'lib'
13754 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13760 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13763 dynamic_linker='Win32 ld.exe'
13764 # FIXME: first we should search . and the directory the executable is in
13768 darwin* | rhapsody*)
13769 dynamic_linker="$host_os dyld"
13770 version_type=darwin
13773 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13774 soname_spec='${libname}${release}${major}$shared_ext'
13775 shlibpath_overrides_runpath=yes
13776 shlibpath_var=DYLD_LIBRARY_PATH
13777 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13778 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13779 if test "$GCC" = yes; then
13780 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"`
13782 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13784 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13792 soname_spec='${libname}${release}${shared_ext}$major'
13793 shlibpath_var=LD_LIBRARY_PATH
13804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13805 soname_spec='${libname}${release}${shared_ext}$major'
13806 shlibpath_var=LD_LIBRARY_PATH
13807 shlibpath_overrides_runpath=no
13808 hardcode_into_libs=yes
13809 dynamic_linker='GNU ld.so'
13812 freebsd* | dragonfly*)
13813 # DragonFly does not have aout. When/if they implement a new
13814 # versioning mechanism, adjust this.
13815 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13816 version_type=freebsd-$objformat
13817 case $version_type in
13819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13824 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13828 shlibpath_var=LD_LIBRARY_PATH
13831 shlibpath_overrides_runpath=yes
13833 freebsd3.[01]* | freebsdelf3.[01]*)
13834 shlibpath_overrides_runpath=yes
13835 hardcode_into_libs=yes
13838 shlibpath_overrides_runpath=no
13839 hardcode_into_libs=yes
13848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13849 soname_spec='${libname}${release}${shared_ext}$major'
13850 shlibpath_var=LD_LIBRARY_PATH
13851 hardcode_into_libs=yes
13854 hpux9* | hpux10* | hpux11*)
13855 # Give a soname corresponding to the major version so that dld.sl refuses to
13856 # link against other versions.
13860 case "$host_cpu" in
13863 hardcode_into_libs=yes
13864 dynamic_linker="$host_os dld.so"
13865 shlibpath_var=LD_LIBRARY_PATH
13866 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13868 soname_spec='${libname}${release}${shared_ext}$major'
13869 if test "X$HPUX_IA64_MODE" = X32; then
13870 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13872 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13874 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13878 hardcode_into_libs=yes
13879 dynamic_linker="$host_os dld.sl"
13880 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13881 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13883 soname_spec='${libname}${release}${shared_ext}$major'
13884 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13885 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13889 dynamic_linker="$host_os dld.sl"
13890 shlibpath_var=SHLIB_PATH
13891 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13893 soname_spec='${libname}${release}${shared_ext}$major'
13896 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13897 postinstall_cmds='chmod 555 $lib'
13900 irix5* | irix6* | nonstopux*)
13902 nonstopux*) version_type=nonstopux ;;
13904 if test "$lt_cv_prog_gnu_ld" = yes; then
13912 soname_spec='${libname}${release}${shared_ext}$major'
13913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13915 irix5* | nonstopux*)
13916 libsuff= shlibsuff=
13919 case $LD in # libtool.m4 will add one of these switches to LD
13920 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13921 libsuff= shlibsuff= libmagic=32-bit;;
13922 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13923 libsuff=32 shlibsuff=N32 libmagic=N32;;
13924 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13925 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13926 *) libsuff= shlibsuff= libmagic=never-match;;
13930 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13931 shlibpath_overrides_runpath=no
13932 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13933 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13934 hardcode_into_libs=yes
13937 # No shared lib support for Linux oldld, aout, or coff.
13938 linux*oldld* | linux*aout* | linux*coff*)
13942 # This must be Linux ELF.
13947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13948 soname_spec='${libname}${release}${shared_ext}$major'
13949 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13950 shlibpath_var=LD_LIBRARY_PATH
13951 shlibpath_overrides_runpath=no
13952 # This implies no fast_install, which is unacceptable.
13953 # Some rework will be needed to allow for fast_install
13954 # before this can be enabled.
13955 hardcode_into_libs=yes
13957 # Append ld.so.conf contents to the search path
13958 if test -f /etc/ld.so.conf; then
13959 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' ' '`
13960 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13963 # We used to test for /lib/ld.so.1 and disable shared libraries on
13964 # powerpc, because MkLinux only supported shared libraries with the
13965 # GNU dynamic linker. Since this was broken with cross compilers,
13966 # most powerpc-linux boxes support dynamic linking these days and
13967 # people can always --disable-shared, the test was removed, and we
13968 # assume the GNU/Linux dynamic linker is in use.
13969 dynamic_linker='GNU/Linux ld.so'
13976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13977 soname_spec='${libname}${release}${shared_ext}$major'
13978 shlibpath_var=LD_LIBRARY_PATH
13979 shlibpath_overrides_runpath=no
13980 hardcode_into_libs=yes
13981 dynamic_linker='GNU ld.so'
13988 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13990 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13991 dynamic_linker='NetBSD (a.out) ld.so'
13993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13994 soname_spec='${libname}${release}${shared_ext}$major'
13995 dynamic_linker='NetBSD ld.elf_so'
13997 shlibpath_var=LD_LIBRARY_PATH
13998 shlibpath_overrides_runpath=yes
13999 hardcode_into_libs=yes
14004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14005 shlibpath_var=LD_LIBRARY_PATH
14006 shlibpath_overrides_runpath=yes
14013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14014 soname_spec='${libname}${release}${shared_ext}$major'
14015 shlibpath_var=LD_LIBRARY_PATH
14016 shlibpath_overrides_runpath=yes
14022 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14024 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14025 *) need_version=no ;;
14027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14028 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14029 shlibpath_var=LD_LIBRARY_PATH
14030 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14032 openbsd2.[89] | openbsd2.[89].*)
14033 shlibpath_overrides_runpath=no
14036 shlibpath_overrides_runpath=yes
14040 shlibpath_overrides_runpath=yes
14045 libname_spec='$name'
14048 library_names_spec='$libname${shared_ext} $libname.a'
14049 dynamic_linker='OS/2 ld.exe'
14050 shlibpath_var=LIBPATH
14053 osf3* | osf4* | osf5*)
14057 soname_spec='${libname}${release}${shared_ext}$major'
14058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14059 shlibpath_var=LD_LIBRARY_PATH
14060 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14061 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14066 soname_spec='${libname}${release}${shared_ext}$major'
14067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14068 shlibpath_var=LD_LIBRARY_PATH
14075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14076 soname_spec='${libname}${release}${shared_ext}$major'
14077 shlibpath_var=LD_LIBRARY_PATH
14078 shlibpath_overrides_runpath=yes
14079 hardcode_into_libs=yes
14080 # ldd complains unless libraries are executable
14081 postinstall_cmds='chmod +x $lib'
14086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14087 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14088 shlibpath_var=LD_LIBRARY_PATH
14089 shlibpath_overrides_runpath=yes
14090 if test "$with_gnu_ld" = yes; then
14096 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14099 soname_spec='${libname}${release}${shared_ext}$major'
14100 shlibpath_var=LD_LIBRARY_PATH
14101 case $host_vendor in
14103 shlibpath_overrides_runpath=no
14105 export_dynamic_flag_spec='${wl}-Blargedynsym'
14106 runpath_var=LD_RUN_PATH
14114 shlibpath_overrides_runpath=no
14115 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14121 if test -d /usr/nec ;then
14123 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14124 soname_spec='$libname${shared_ext}.$major'
14125 shlibpath_var=LD_LIBRARY_PATH
14131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14132 soname_spec='${libname}${release}${shared_ext}$major'
14133 shlibpath_var=LD_LIBRARY_PATH
14140 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14141 echo "${ECHO_T}$dynamic_linker" >&6
14142 test "$dynamic_linker" = no && can_build_shared=no
14144 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14145 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14146 hardcode_action_CXX=
14147 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14148 test -n "$runpath_var_CXX" || \
14149 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14151 # We can hardcode non-existant directories.
14152 if test "$hardcode_direct_CXX" != no &&
14153 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14154 # have to relink, otherwise we might link with an installed library
14155 # when we should be linking with a yet-to-be-installed one
14156 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14157 test "$hardcode_minus_L_CXX" != no; then
14158 # Linking always hardcodes the temporary library directory.
14159 hardcode_action_CXX=relink
14161 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14162 hardcode_action_CXX=immediate
14165 # We cannot hardcode anything, or else we can only hardcode existing
14167 hardcode_action_CXX=unsupported
14169 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14170 echo "${ECHO_T}$hardcode_action_CXX" >&6
14172 if test "$hardcode_action_CXX" = relink; then
14173 # Fast installation is not supported
14174 enable_fast_install=no
14175 elif test "$shlibpath_overrides_runpath" = yes ||
14176 test "$enable_shared" = no; then
14177 # Fast installation is not necessary
14178 enable_fast_install=needless
14183 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14184 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14185 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14186 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14187 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14188 echo "$as_me:$LINENO: result: yes" >&5
14189 echo "${ECHO_T}yes" >&6
14191 # FIXME - insert some real tests, host_os isn't really good enough
14194 if test -n "$STRIP" ; then
14195 striplib="$STRIP -x"
14196 echo "$as_me:$LINENO: result: yes" >&5
14197 echo "${ECHO_T}yes" >&6
14199 echo "$as_me:$LINENO: result: no" >&5
14200 echo "${ECHO_T}no" >&6
14204 echo "$as_me:$LINENO: result: no" >&5
14205 echo "${ECHO_T}no" >&6
14210 if test "x$enable_dlopen" != xyes; then
14211 enable_dlopen=unknown
14212 enable_dlopen_self=unknown
14213 enable_dlopen_self_static=unknown
14220 lt_cv_dlopen="load_add_on"
14222 lt_cv_dlopen_self=yes
14226 lt_cv_dlopen="LoadLibrary"
14231 lt_cv_dlopen="dlopen"
14236 # if libdl is installed we need to link against it
14237 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14238 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14239 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14240 echo $ECHO_N "(cached) $ECHO_C" >&6
14242 ac_check_lib_save_LIBS=$LIBS
14244 cat >conftest.$ac_ext <<_ACEOF
14247 cat confdefs.h >>conftest.$ac_ext
14248 cat >>conftest.$ac_ext <<_ACEOF
14249 /* end confdefs.h. */
14251 /* Override any gcc2 internal prototype to avoid an error. */
14255 /* We use char because int might match the return type of a gcc2
14256 builtin and then its argument prototype would still apply. */
14266 rm -f conftest.$ac_objext conftest$ac_exeext
14267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14268 (eval $ac_link) 2>conftest.er1
14270 grep -v '^ *+' conftest.er1 >conftest.err
14272 cat conftest.err >&5
14273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274 (exit $ac_status); } &&
14275 { ac_try='test -z "$ac_cxx_werror_flag"
14276 || test ! -s conftest.err'
14277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14278 (eval $ac_try) 2>&5
14280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281 (exit $ac_status); }; } &&
14282 { ac_try='test -s conftest$ac_exeext'
14283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14284 (eval $ac_try) 2>&5
14286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287 (exit $ac_status); }; }; then
14288 ac_cv_lib_dl_dlopen=yes
14290 echo "$as_me: failed program was:" >&5
14291 sed 's/^/| /' conftest.$ac_ext >&5
14293 ac_cv_lib_dl_dlopen=no
14295 rm -f conftest.err conftest.$ac_objext \
14296 conftest$ac_exeext conftest.$ac_ext
14297 LIBS=$ac_check_lib_save_LIBS
14299 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14300 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14301 if test $ac_cv_lib_dl_dlopen = yes; then
14302 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14305 lt_cv_dlopen="dyld"
14307 lt_cv_dlopen_self=yes
14314 echo "$as_me:$LINENO: checking for shl_load" >&5
14315 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14316 if test "${ac_cv_func_shl_load+set}" = set; then
14317 echo $ECHO_N "(cached) $ECHO_C" >&6
14319 cat >conftest.$ac_ext <<_ACEOF
14322 cat confdefs.h >>conftest.$ac_ext
14323 cat >>conftest.$ac_ext <<_ACEOF
14324 /* end confdefs.h. */
14325 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14326 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14327 #define shl_load innocuous_shl_load
14329 /* System header to define __stub macros and hopefully few prototypes,
14330 which can conflict with char shl_load (); below.
14331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14332 <limits.h> exists even on freestanding compilers. */
14335 # include <limits.h>
14337 # include <assert.h>
14342 /* Override any gcc2 internal prototype to avoid an error. */
14347 /* We use char because int might match the return type of a gcc2
14348 builtin and then its argument prototype would still apply. */
14350 /* The GNU C library defines this for functions which it implements
14351 to always fail with ENOSYS. Some functions are actually named
14352 something starting with __ and the normal name is an alias. */
14353 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14356 char (*f) () = shl_load;
14365 return f != shl_load;
14370 rm -f conftest.$ac_objext conftest$ac_exeext
14371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14372 (eval $ac_link) 2>conftest.er1
14374 grep -v '^ *+' conftest.er1 >conftest.err
14376 cat conftest.err >&5
14377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 (exit $ac_status); } &&
14379 { ac_try='test -z "$ac_cxx_werror_flag"
14380 || test ! -s conftest.err'
14381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14382 (eval $ac_try) 2>&5
14384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385 (exit $ac_status); }; } &&
14386 { ac_try='test -s conftest$ac_exeext'
14387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14388 (eval $ac_try) 2>&5
14390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391 (exit $ac_status); }; }; then
14392 ac_cv_func_shl_load=yes
14394 echo "$as_me: failed program was:" >&5
14395 sed 's/^/| /' conftest.$ac_ext >&5
14397 ac_cv_func_shl_load=no
14399 rm -f conftest.err conftest.$ac_objext \
14400 conftest$ac_exeext conftest.$ac_ext
14402 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14403 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14404 if test $ac_cv_func_shl_load = yes; then
14405 lt_cv_dlopen="shl_load"
14407 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14408 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14409 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14410 echo $ECHO_N "(cached) $ECHO_C" >&6
14412 ac_check_lib_save_LIBS=$LIBS
14414 cat >conftest.$ac_ext <<_ACEOF
14417 cat confdefs.h >>conftest.$ac_ext
14418 cat >>conftest.$ac_ext <<_ACEOF
14419 /* end confdefs.h. */
14421 /* Override any gcc2 internal prototype to avoid an error. */
14425 /* We use char because int might match the return type of a gcc2
14426 builtin and then its argument prototype would still apply. */
14436 rm -f conftest.$ac_objext conftest$ac_exeext
14437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14438 (eval $ac_link) 2>conftest.er1
14440 grep -v '^ *+' conftest.er1 >conftest.err
14442 cat conftest.err >&5
14443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444 (exit $ac_status); } &&
14445 { ac_try='test -z "$ac_cxx_werror_flag"
14446 || test ! -s conftest.err'
14447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14448 (eval $ac_try) 2>&5
14450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14451 (exit $ac_status); }; } &&
14452 { ac_try='test -s conftest$ac_exeext'
14453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14454 (eval $ac_try) 2>&5
14456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); }; }; then
14458 ac_cv_lib_dld_shl_load=yes
14460 echo "$as_me: failed program was:" >&5
14461 sed 's/^/| /' conftest.$ac_ext >&5
14463 ac_cv_lib_dld_shl_load=no
14465 rm -f conftest.err conftest.$ac_objext \
14466 conftest$ac_exeext conftest.$ac_ext
14467 LIBS=$ac_check_lib_save_LIBS
14469 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14470 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14471 if test $ac_cv_lib_dld_shl_load = yes; then
14472 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14474 echo "$as_me:$LINENO: checking for dlopen" >&5
14475 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14476 if test "${ac_cv_func_dlopen+set}" = set; then
14477 echo $ECHO_N "(cached) $ECHO_C" >&6
14479 cat >conftest.$ac_ext <<_ACEOF
14482 cat confdefs.h >>conftest.$ac_ext
14483 cat >>conftest.$ac_ext <<_ACEOF
14484 /* end confdefs.h. */
14485 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14486 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14487 #define dlopen innocuous_dlopen
14489 /* System header to define __stub macros and hopefully few prototypes,
14490 which can conflict with char dlopen (); below.
14491 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14492 <limits.h> exists even on freestanding compilers. */
14495 # include <limits.h>
14497 # include <assert.h>
14502 /* Override any gcc2 internal prototype to avoid an error. */
14507 /* We use char because int might match the return type of a gcc2
14508 builtin and then its argument prototype would still apply. */
14510 /* The GNU C library defines this for functions which it implements
14511 to always fail with ENOSYS. Some functions are actually named
14512 something starting with __ and the normal name is an alias. */
14513 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14516 char (*f) () = dlopen;
14525 return f != dlopen;
14530 rm -f conftest.$ac_objext conftest$ac_exeext
14531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14532 (eval $ac_link) 2>conftest.er1
14534 grep -v '^ *+' conftest.er1 >conftest.err
14536 cat conftest.err >&5
14537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538 (exit $ac_status); } &&
14539 { ac_try='test -z "$ac_cxx_werror_flag"
14540 || test ! -s conftest.err'
14541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14542 (eval $ac_try) 2>&5
14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545 (exit $ac_status); }; } &&
14546 { ac_try='test -s conftest$ac_exeext'
14547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14548 (eval $ac_try) 2>&5
14550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551 (exit $ac_status); }; }; then
14552 ac_cv_func_dlopen=yes
14554 echo "$as_me: failed program was:" >&5
14555 sed 's/^/| /' conftest.$ac_ext >&5
14557 ac_cv_func_dlopen=no
14559 rm -f conftest.err conftest.$ac_objext \
14560 conftest$ac_exeext conftest.$ac_ext
14562 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14563 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14564 if test $ac_cv_func_dlopen = yes; then
14565 lt_cv_dlopen="dlopen"
14567 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14568 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14569 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14570 echo $ECHO_N "(cached) $ECHO_C" >&6
14572 ac_check_lib_save_LIBS=$LIBS
14574 cat >conftest.$ac_ext <<_ACEOF
14577 cat confdefs.h >>conftest.$ac_ext
14578 cat >>conftest.$ac_ext <<_ACEOF
14579 /* end confdefs.h. */
14581 /* Override any gcc2 internal prototype to avoid an error. */
14585 /* We use char because int might match the return type of a gcc2
14586 builtin and then its argument prototype would still apply. */
14596 rm -f conftest.$ac_objext conftest$ac_exeext
14597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14598 (eval $ac_link) 2>conftest.er1
14600 grep -v '^ *+' conftest.er1 >conftest.err
14602 cat conftest.err >&5
14603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14604 (exit $ac_status); } &&
14605 { ac_try='test -z "$ac_cxx_werror_flag"
14606 || test ! -s conftest.err'
14607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14608 (eval $ac_try) 2>&5
14610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611 (exit $ac_status); }; } &&
14612 { ac_try='test -s conftest$ac_exeext'
14613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14614 (eval $ac_try) 2>&5
14616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617 (exit $ac_status); }; }; then
14618 ac_cv_lib_dl_dlopen=yes
14620 echo "$as_me: failed program was:" >&5
14621 sed 's/^/| /' conftest.$ac_ext >&5
14623 ac_cv_lib_dl_dlopen=no
14625 rm -f conftest.err conftest.$ac_objext \
14626 conftest$ac_exeext conftest.$ac_ext
14627 LIBS=$ac_check_lib_save_LIBS
14629 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14630 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14631 if test $ac_cv_lib_dl_dlopen = yes; then
14632 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14634 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14635 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14636 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14637 echo $ECHO_N "(cached) $ECHO_C" >&6
14639 ac_check_lib_save_LIBS=$LIBS
14640 LIBS="-lsvld $LIBS"
14641 cat >conftest.$ac_ext <<_ACEOF
14644 cat confdefs.h >>conftest.$ac_ext
14645 cat >>conftest.$ac_ext <<_ACEOF
14646 /* end confdefs.h. */
14648 /* Override any gcc2 internal prototype to avoid an error. */
14652 /* We use char because int might match the return type of a gcc2
14653 builtin and then its argument prototype would still apply. */
14663 rm -f conftest.$ac_objext conftest$ac_exeext
14664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14665 (eval $ac_link) 2>conftest.er1
14667 grep -v '^ *+' conftest.er1 >conftest.err
14669 cat conftest.err >&5
14670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671 (exit $ac_status); } &&
14672 { ac_try='test -z "$ac_cxx_werror_flag"
14673 || test ! -s conftest.err'
14674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14675 (eval $ac_try) 2>&5
14677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678 (exit $ac_status); }; } &&
14679 { ac_try='test -s conftest$ac_exeext'
14680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14681 (eval $ac_try) 2>&5
14683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684 (exit $ac_status); }; }; then
14685 ac_cv_lib_svld_dlopen=yes
14687 echo "$as_me: failed program was:" >&5
14688 sed 's/^/| /' conftest.$ac_ext >&5
14690 ac_cv_lib_svld_dlopen=no
14692 rm -f conftest.err conftest.$ac_objext \
14693 conftest$ac_exeext conftest.$ac_ext
14694 LIBS=$ac_check_lib_save_LIBS
14696 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14697 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14698 if test $ac_cv_lib_svld_dlopen = yes; then
14699 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14701 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14702 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14703 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14704 echo $ECHO_N "(cached) $ECHO_C" >&6
14706 ac_check_lib_save_LIBS=$LIBS
14708 cat >conftest.$ac_ext <<_ACEOF
14711 cat confdefs.h >>conftest.$ac_ext
14712 cat >>conftest.$ac_ext <<_ACEOF
14713 /* end confdefs.h. */
14715 /* Override any gcc2 internal prototype to avoid an error. */
14719 /* We use char because int might match the return type of a gcc2
14720 builtin and then its argument prototype would still apply. */
14730 rm -f conftest.$ac_objext conftest$ac_exeext
14731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14732 (eval $ac_link) 2>conftest.er1
14734 grep -v '^ *+' conftest.er1 >conftest.err
14736 cat conftest.err >&5
14737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738 (exit $ac_status); } &&
14739 { ac_try='test -z "$ac_cxx_werror_flag"
14740 || test ! -s conftest.err'
14741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14742 (eval $ac_try) 2>&5
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); }; } &&
14746 { ac_try='test -s conftest$ac_exeext'
14747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14748 (eval $ac_try) 2>&5
14750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751 (exit $ac_status); }; }; then
14752 ac_cv_lib_dld_dld_link=yes
14754 echo "$as_me: failed program was:" >&5
14755 sed 's/^/| /' conftest.$ac_ext >&5
14757 ac_cv_lib_dld_dld_link=no
14759 rm -f conftest.err conftest.$ac_objext \
14760 conftest$ac_exeext conftest.$ac_ext
14761 LIBS=$ac_check_lib_save_LIBS
14763 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14764 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14765 if test $ac_cv_lib_dld_dld_link = yes; then
14766 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14787 if test "x$lt_cv_dlopen" != xno; then
14793 case $lt_cv_dlopen in
14795 save_CPPFLAGS="$CPPFLAGS"
14796 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14798 save_LDFLAGS="$LDFLAGS"
14799 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14802 LIBS="$lt_cv_dlopen_libs $LIBS"
14804 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14805 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14806 if test "${lt_cv_dlopen_self+set}" = set; then
14807 echo $ECHO_N "(cached) $ECHO_C" >&6
14809 if test "$cross_compiling" = yes; then :
14810 lt_cv_dlopen_self=cross
14812 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14813 lt_status=$lt_dlunknown
14814 cat > conftest.$ac_ext <<EOF
14815 #line 14815 "configure"
14816 #include "confdefs.h"
14825 # define LT_DLGLOBAL RTLD_GLOBAL
14828 # define LT_DLGLOBAL DL_GLOBAL
14830 # define LT_DLGLOBAL 0
14834 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14835 find out it does not work in some platform. */
14836 #ifndef LT_DLLAZY_OR_NOW
14838 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14841 # define LT_DLLAZY_OR_NOW DL_LAZY
14844 # define LT_DLLAZY_OR_NOW RTLD_NOW
14847 # define LT_DLLAZY_OR_NOW DL_NOW
14849 # define LT_DLLAZY_OR_NOW 0
14857 extern "C" void exit (int);
14860 void fnord() { int i=42;}
14863 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14864 int status = $lt_dlunknown;
14868 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14869 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14870 /* dlclose (self); */
14876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14877 (eval $ac_link) 2>&5
14879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14881 (./conftest; exit; ) 2>/dev/null
14883 case x$lt_status in
14884 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14885 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14886 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14889 # compilation failed
14890 lt_cv_dlopen_self=no
14897 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14898 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14900 if test "x$lt_cv_dlopen_self" = xyes; then
14901 LDFLAGS="$LDFLAGS $link_static_flag"
14902 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14903 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14904 if test "${lt_cv_dlopen_self_static+set}" = set; then
14905 echo $ECHO_N "(cached) $ECHO_C" >&6
14907 if test "$cross_compiling" = yes; then :
14908 lt_cv_dlopen_self_static=cross
14910 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14911 lt_status=$lt_dlunknown
14912 cat > conftest.$ac_ext <<EOF
14913 #line 14913 "configure"
14914 #include "confdefs.h"
14923 # define LT_DLGLOBAL RTLD_GLOBAL
14926 # define LT_DLGLOBAL DL_GLOBAL
14928 # define LT_DLGLOBAL 0
14932 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14933 find out it does not work in some platform. */
14934 #ifndef LT_DLLAZY_OR_NOW
14936 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14939 # define LT_DLLAZY_OR_NOW DL_LAZY
14942 # define LT_DLLAZY_OR_NOW RTLD_NOW
14945 # define LT_DLLAZY_OR_NOW DL_NOW
14947 # define LT_DLLAZY_OR_NOW 0
14955 extern "C" void exit (int);
14958 void fnord() { int i=42;}
14961 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14962 int status = $lt_dlunknown;
14966 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14967 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14968 /* dlclose (self); */
14974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14975 (eval $ac_link) 2>&5
14977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14979 (./conftest; exit; ) 2>/dev/null
14981 case x$lt_status in
14982 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14983 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14984 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14987 # compilation failed
14988 lt_cv_dlopen_self_static=no
14995 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14996 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14999 CPPFLAGS="$save_CPPFLAGS"
15000 LDFLAGS="$save_LDFLAGS"
15005 case $lt_cv_dlopen_self in
15006 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15007 *) enable_dlopen_self=unknown ;;
15010 case $lt_cv_dlopen_self_static in
15011 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15012 *) enable_dlopen_self_static=unknown ;;
15017 # The else clause should only fire when bootstrapping the
15018 # libtool distribution, otherwise you forgot to ship ltmain.sh
15019 # with your package, and you will get complaints that there are
15020 # no rules to generate ltmain.sh.
15021 if test -f "$ltmain"; then
15022 # See if we are running on zsh, and set the options which allow our commands through
15023 # without removal of \ escapes.
15024 if test -n "${ZSH_VERSION+set}" ; then
15025 setopt NO_GLOB_SUBST
15027 # Now quote all the things that may contain metacharacters while being
15028 # careful not to overquote the AC_SUBSTed values. We take copies of the
15029 # variables and quote the copies for generation of the libtool script.
15030 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15032 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15033 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15034 deplibs_check_method reload_flag reload_cmds need_locks \
15035 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15036 lt_cv_sys_global_symbol_to_c_name_address \
15037 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15038 old_postinstall_cmds old_postuninstall_cmds \
15042 lt_prog_compiler_wl_CXX \
15043 lt_prog_compiler_pic_CXX \
15044 lt_prog_compiler_static_CXX \
15045 lt_prog_compiler_no_builtin_flag_CXX \
15046 export_dynamic_flag_spec_CXX \
15047 thread_safe_flag_spec_CXX \
15048 whole_archive_flag_spec_CXX \
15049 enable_shared_with_static_runtimes_CXX \
15050 old_archive_cmds_CXX \
15051 old_archive_from_new_cmds_CXX \
15052 predep_objects_CXX \
15053 postdep_objects_CXX \
15056 compiler_lib_search_path_CXX \
15058 archive_expsym_cmds_CXX \
15059 postinstall_cmds_CXX \
15060 postuninstall_cmds_CXX \
15061 old_archive_from_expsyms_cmds_CXX \
15062 allow_undefined_flag_CXX \
15063 no_undefined_flag_CXX \
15064 export_symbols_cmds_CXX \
15065 hardcode_libdir_flag_spec_CXX \
15066 hardcode_libdir_flag_spec_ld_CXX \
15067 hardcode_libdir_separator_CXX \
15068 hardcode_automatic_CXX \
15070 module_expsym_cmds_CXX \
15071 lt_cv_prog_compiler_c_o_CXX \
15072 exclude_expsyms_CXX \
15073 include_expsyms_CXX; do
15076 old_archive_cmds_CXX | \
15077 old_archive_from_new_cmds_CXX | \
15078 archive_cmds_CXX | \
15079 archive_expsym_cmds_CXX | \
15080 module_cmds_CXX | \
15081 module_expsym_cmds_CXX | \
15082 old_archive_from_expsyms_cmds_CXX | \
15083 export_symbols_cmds_CXX | \
15084 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15085 postinstall_cmds | postuninstall_cmds | \
15086 old_postinstall_cmds | old_postuninstall_cmds | \
15087 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15088 # Double-quote double-evaled strings.
15089 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15092 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15098 *'\$0 --fallback-echo"')
15099 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15105 cat <<__EOF__ >> "$cfgfile"
15106 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15108 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15110 # Shell to use when invoking shell scripts.
15113 # Whether or not to build shared libraries.
15114 build_libtool_libs=$enable_shared
15116 # Whether or not to build static libraries.
15117 build_old_libs=$enable_static
15119 # Whether or not to add -lc for building shared libraries.
15120 build_libtool_need_lc=$archive_cmds_need_lc_CXX
15122 # Whether or not to disallow shared libs when runtime libs are static
15123 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15125 # Whether or not to optimize for fast installation.
15126 fast_install=$enable_fast_install
15129 host_alias=$host_alias
15133 # The build system.
15134 build_alias=$build_alias
15138 # An echo program that does not interpret backslashes.
15143 AR_FLAGS=$lt_AR_FLAGS
15148 # A language-specific compiler.
15149 CC=$lt_compiler_CXX
15151 # Is the compiler the GNU C compiler?
15157 # The linker used to build libraries.
15160 # Whether we need hard or soft links.
15163 # A BSD-compatible nm program.
15166 # A symbol stripping program
15169 # Used to examine libraries when file_magic_cmd begins "file"
15170 MAGIC_CMD=$MAGIC_CMD
15172 # Used on cygwin: DLL creation program.
15175 # Used on cygwin: object dumper.
15178 # Used on cygwin: assembler.
15181 # The name of the directory that contains temporary libtool files.
15184 # How to create reloadable object files.
15185 reload_flag=$lt_reload_flag
15186 reload_cmds=$lt_reload_cmds
15188 # How to pass a linker flag through the compiler.
15189 wl=$lt_lt_prog_compiler_wl_CXX
15191 # Object file suffix (normally "o").
15192 objext="$ac_objext"
15194 # Old archive suffix (normally "a").
15197 # Shared library suffix (normally ".so").
15198 shrext_cmds='$shrext_cmds'
15200 # Executable file suffix (normally "").
15203 # Additional compiler flags for building library objects.
15204 pic_flag=$lt_lt_prog_compiler_pic_CXX
15207 # What is the maximum length of a command?
15208 max_cmd_len=$lt_cv_sys_max_cmd_len
15210 # Does compiler simultaneously support -c and -o options?
15211 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15213 # Must we lock files when doing compilation?
15214 need_locks=$lt_need_locks
15216 # Do we need the lib prefix for modules?
15217 need_lib_prefix=$need_lib_prefix
15219 # Do we need a version for libraries?
15220 need_version=$need_version
15222 # Whether dlopen is supported.
15223 dlopen_support=$enable_dlopen
15225 # Whether dlopen of programs is supported.
15226 dlopen_self=$enable_dlopen_self
15228 # Whether dlopen of statically linked programs is supported.
15229 dlopen_self_static=$enable_dlopen_self_static
15231 # Compiler flag to prevent dynamic linking.
15232 link_static_flag=$lt_lt_prog_compiler_static_CXX
15234 # Compiler flag to turn off builtin functions.
15235 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15237 # Compiler flag to allow reflexive dlopens.
15238 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15240 # Compiler flag to generate shared objects directly from archives.
15241 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15243 # Compiler flag to generate thread-safe objects.
15244 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15246 # Library versioning type.
15247 version_type=$version_type
15249 # Format of library name prefix.
15250 libname_spec=$lt_libname_spec
15252 # List of archive names. First name is the real one, the rest are links.
15253 # The last name is the one that the linker finds with -lNAME.
15254 library_names_spec=$lt_library_names_spec
15256 # The coded name of the library, if different from the real name.
15257 soname_spec=$lt_soname_spec
15259 # Commands used to build and install an old-style archive.
15261 old_archive_cmds=$lt_old_archive_cmds_CXX
15262 old_postinstall_cmds=$lt_old_postinstall_cmds
15263 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15265 # Create an old-style archive from a shared archive.
15266 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15268 # Create a temporary old-style archive to link instead of a shared archive.
15269 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15271 # Commands used to build and install a shared archive.
15272 archive_cmds=$lt_archive_cmds_CXX
15273 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15274 postinstall_cmds=$lt_postinstall_cmds
15275 postuninstall_cmds=$lt_postuninstall_cmds
15277 # Commands used to build a loadable module (assumed same as above if empty)
15278 module_cmds=$lt_module_cmds_CXX
15279 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15281 # Commands to strip libraries.
15282 old_striplib=$lt_old_striplib
15283 striplib=$lt_striplib
15285 # Dependencies to place before the objects being linked to create a
15287 predep_objects=$lt_predep_objects_CXX
15289 # Dependencies to place after the objects being linked to create a
15291 postdep_objects=$lt_postdep_objects_CXX
15293 # Dependencies to place before the objects being linked to create a
15295 predeps=$lt_predeps_CXX
15297 # Dependencies to place after the objects being linked to create a
15299 postdeps=$lt_postdeps_CXX
15301 # The library search path used internally by the compiler when linking
15302 # a shared library.
15303 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15305 # Method to check whether dependent libraries are shared objects.
15306 deplibs_check_method=$lt_deplibs_check_method
15308 # Command to use when deplibs_check_method == file_magic.
15309 file_magic_cmd=$lt_file_magic_cmd
15311 # Flag that allows shared libraries with undefined symbols to be built.
15312 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15314 # Flag that forces no undefined symbols.
15315 no_undefined_flag=$lt_no_undefined_flag_CXX
15317 # Commands used to finish a libtool library installation in a directory.
15318 finish_cmds=$lt_finish_cmds
15320 # Same as above, but a single script fragment to be evaled but not shown.
15321 finish_eval=$lt_finish_eval
15323 # Take the output of nm and produce a listing of raw symbols and C names.
15324 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15326 # Transform the output of nm in a proper C declaration
15327 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15329 # Transform the output of nm in a C name address pair
15330 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15332 # This is the shared library runtime path variable.
15333 runpath_var=$runpath_var
15335 # This is the shared library path variable.
15336 shlibpath_var=$shlibpath_var
15338 # Is shlibpath searched before the hard-coded library search path?
15339 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15341 # How to hardcode a shared library path into an executable.
15342 hardcode_action=$hardcode_action_CXX
15344 # Whether we should hardcode library paths into libraries.
15345 hardcode_into_libs=$hardcode_into_libs
15347 # Flag to hardcode \$libdir into a binary during linking.
15348 # This must work even if \$libdir does not exist.
15349 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15351 # If ld is used when linking, flag to hardcode \$libdir into
15352 # a binary during linking. This must work even if \$libdir does
15354 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15356 # Whether we need a single -rpath flag with a separated argument.
15357 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15359 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15360 # resulting binary.
15361 hardcode_direct=$hardcode_direct_CXX
15363 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15364 # resulting binary.
15365 hardcode_minus_L=$hardcode_minus_L_CXX
15367 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15368 # the resulting binary.
15369 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15371 # Set to yes if building a shared library automatically hardcodes DIR into the library
15372 # and all subsequent libraries and executables linked against it.
15373 hardcode_automatic=$hardcode_automatic_CXX
15375 # Variables whose values should be saved in libtool wrapper scripts and
15376 # restored at relink time.
15377 variables_saved_for_relink="$variables_saved_for_relink"
15379 # Whether libtool must link a program against all its dependency libraries.
15380 link_all_deplibs=$link_all_deplibs_CXX
15382 # Compile-time system search path for libraries
15383 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15385 # Run-time system search path for libraries
15386 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15388 # Fix the shell variable \$srcfile for the compiler.
15389 fix_srcfile_path="$fix_srcfile_path_CXX"
15391 # Set to yes if exported symbols are required.
15392 always_export_symbols=$always_export_symbols_CXX
15394 # The commands to list exported symbols.
15395 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15397 # The commands to extract the exported symbol list from a shared archive.
15398 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15400 # Symbols that should not be listed in the preloaded symbols.
15401 exclude_expsyms=$lt_exclude_expsyms_CXX
15403 # Symbols that must always be exported.
15404 include_expsyms=$lt_include_expsyms_CXX
15406 # ### END LIBTOOL TAG CONFIG: $tagname
15412 # If there is no Makefile yet, we rely on a make rule to execute
15413 # `config.status --recheck' to rerun these tests and create the
15414 # libtool script then.
15415 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15416 if test -f "$ltmain_in"; then
15417 test -f Makefile && make "$ltmain"
15423 ac_cpp='$CPP $CPPFLAGS'
15424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15432 with_gnu_ldcxx=$with_gnu_ld
15433 with_gnu_ld=$lt_save_with_gnu_ld
15434 lt_cv_path_LDCXX=$lt_cv_path_LD
15435 lt_cv_path_LD=$lt_save_path_LD
15436 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15437 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15445 if test -n "$F77" && test "X$F77" != "Xno"; then
15448 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15449 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15450 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15453 archive_cmds_need_lc_F77=no
15454 allow_undefined_flag_F77=
15455 always_export_symbols_F77=no
15456 archive_expsym_cmds_F77=
15457 export_dynamic_flag_spec_F77=
15458 hardcode_direct_F77=no
15459 hardcode_libdir_flag_spec_F77=
15460 hardcode_libdir_flag_spec_ld_F77=
15461 hardcode_libdir_separator_F77=
15462 hardcode_minus_L_F77=no
15463 hardcode_automatic_F77=no
15465 module_expsym_cmds_F77=
15466 link_all_deplibs_F77=unknown
15467 old_archive_cmds_F77=$old_archive_cmds
15468 no_undefined_flag_F77=
15469 whole_archive_flag_spec_F77=
15470 enable_shared_with_static_runtimes_F77=no
15472 # Source file extension for f77 test sources.
15475 # Object file extension for compiled f77 test sources.
15479 # Code to be used in simple compile tests
15480 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
15482 # Code to be used in simple link tests
15483 lt_simple_link_test_code=" program t\n end\n"
15485 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15487 # If no C compiler was specified, use CC.
15490 # Allow CC to be a program name with arguments.
15494 # save warnings/boilerplate of simple test code
15495 ac_outfile=conftest.$ac_objext
15496 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15497 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15498 _lt_compiler_boilerplate=`cat conftest.err`
15501 ac_outfile=conftest.$ac_objext
15502 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15503 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15504 _lt_linker_boilerplate=`cat conftest.err`
15508 # Allow CC to be a program name with arguments.
15513 for cc_temp in $compiler""; do
15515 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15516 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15521 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15524 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15525 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
15526 echo "$as_me:$LINENO: result: $can_build_shared" >&5
15527 echo "${ECHO_T}$can_build_shared" >&6
15529 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15530 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
15531 test "$can_build_shared" = "no" && enable_shared=no
15533 # On AIX, shared libraries and static libraries use the same namespace, and
15534 # are all built from PIC.
15537 test "$enable_shared" = yes && enable_static=no
15538 if test -n "$RANLIB"; then
15539 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15540 postinstall_cmds='$RANLIB $lib'
15544 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15545 test "$enable_shared" = yes && enable_static=no
15549 echo "$as_me:$LINENO: result: $enable_shared" >&5
15550 echo "${ECHO_T}$enable_shared" >&6
15552 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15553 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
15554 # Make sure either enable_shared or enable_static is yes.
15555 test "$enable_shared" = yes || enable_static=yes
15556 echo "$as_me:$LINENO: result: $enable_static" >&5
15557 echo "${ECHO_T}$enable_static" >&6
15559 test "$ld_shlibs_F77" = no && can_build_shared=no
15564 lt_prog_compiler_wl_F77=
15565 lt_prog_compiler_pic_F77=
15566 lt_prog_compiler_static_F77=
15568 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15569 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15571 if test "$GCC" = yes; then
15572 lt_prog_compiler_wl_F77='-Wl,'
15573 lt_prog_compiler_static_F77='-static'
15577 # All AIX code is PIC.
15578 if test "$host_cpu" = ia64; then
15579 # AIX 5 now supports IA64 processor
15580 lt_prog_compiler_static_F77='-Bstatic'
15585 # FIXME: we need at least 68020 code to build shared libraries, but
15586 # adding the `-m68020' flag to GCC prevents building anything better,
15588 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15591 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15592 # PIC is the default for these OSes.
15595 mingw* | pw32* | os2*)
15596 # This hack is so that the source file can tell whether it is being
15597 # built for inclusion in a dll (and should export symbols for example).
15598 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15601 darwin* | rhapsody*)
15602 # PIC is the default on this platform
15603 # Common symbols not allowed in MH_DYLIB files
15604 lt_prog_compiler_pic_F77='-fno-common'
15608 # Just because we use GCC doesn't mean we suddenly get shared libraries
15609 # on systems that don't support them.
15610 lt_prog_compiler_can_build_shared_F77=no
15615 if test -d /usr/nec; then
15616 lt_prog_compiler_pic_F77=-Kconform_pic
15621 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15622 # not for PA HP-UX.
15623 case "$host_cpu" in
15628 lt_prog_compiler_pic_F77='-fPIC'
15634 lt_prog_compiler_pic_F77='-fPIC'
15638 # PORTME Check for flag to pass linker flags through the system compiler.
15641 lt_prog_compiler_wl_F77='-Wl,'
15642 if test "$host_cpu" = ia64; then
15643 # AIX 5 now supports IA64 processor
15644 lt_prog_compiler_static_F77='-Bstatic'
15646 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15650 # PIC is the default on this platform
15651 # Common symbols not allowed in MH_DYLIB files
15652 case $cc_basename in
15654 lt_prog_compiler_pic_F77='-qnocommon'
15655 lt_prog_compiler_wl_F77='-Wl,'
15660 mingw* | pw32* | os2*)
15661 # This hack is so that the source file can tell whether it is being
15662 # built for inclusion in a dll (and should export symbols for example).
15663 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15666 hpux9* | hpux10* | hpux11*)
15667 lt_prog_compiler_wl_F77='-Wl,'
15668 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15669 # not for PA HP-UX.
15670 case "$host_cpu" in
15675 lt_prog_compiler_pic_F77='+Z'
15678 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15679 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15682 irix5* | irix6* | nonstopux*)
15683 lt_prog_compiler_wl_F77='-Wl,'
15684 # PIC (with -KPIC) is the default.
15685 lt_prog_compiler_static_F77='-non_shared'
15689 lt_prog_compiler_pic_F77='-KPIC'
15690 lt_prog_compiler_static_F77='-Bstatic'
15694 case $cc_basename in
15696 lt_prog_compiler_wl_F77='-Wl,'
15697 lt_prog_compiler_pic_F77='-KPIC'
15698 lt_prog_compiler_static_F77='-static'
15700 pgcc* | pgf77* | pgf90*)
15701 # Portland Group compilers (*not* the Pentium gcc compiler,
15702 # which looks to be a dead project)
15703 lt_prog_compiler_wl_F77='-Wl,'
15704 lt_prog_compiler_pic_F77='-fpic'
15705 lt_prog_compiler_static_F77='-static'
15708 lt_prog_compiler_wl_F77='-Wl,'
15709 # All Alpha code is PIC.
15710 lt_prog_compiler_static_F77='-non_shared'
15715 osf3* | osf4* | osf5*)
15716 lt_prog_compiler_wl_F77='-Wl,'
15717 # All OSF/1 code is PIC.
15718 lt_prog_compiler_static_F77='-non_shared'
15722 lt_prog_compiler_pic_F77='-Kpic'
15723 lt_prog_compiler_static_F77='-dn'
15727 lt_prog_compiler_pic_F77='-KPIC'
15728 lt_prog_compiler_static_F77='-Bstatic'
15729 case $cc_basename in
15730 f77* | f90* | f95*)
15731 lt_prog_compiler_wl_F77='-Qoption ld ';;
15733 lt_prog_compiler_wl_F77='-Wl,';;
15738 lt_prog_compiler_wl_F77='-Qoption ld '
15739 lt_prog_compiler_pic_F77='-PIC'
15740 lt_prog_compiler_static_F77='-Bstatic'
15743 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15744 lt_prog_compiler_wl_F77='-Wl,'
15745 lt_prog_compiler_pic_F77='-KPIC'
15746 lt_prog_compiler_static_F77='-Bstatic'
15750 if test -d /usr/nec ;then
15751 lt_prog_compiler_pic_F77='-Kconform_pic'
15752 lt_prog_compiler_static_F77='-Bstatic'
15757 lt_prog_compiler_wl_F77='-Wl,'
15758 lt_prog_compiler_can_build_shared_F77=no
15762 lt_prog_compiler_pic_F77='-pic'
15763 lt_prog_compiler_static_F77='-Bstatic'
15767 lt_prog_compiler_can_build_shared_F77=no
15772 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15773 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
15776 # Check to make sure the PIC flag actually works.
15778 if test -n "$lt_prog_compiler_pic_F77"; then
15780 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15781 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
15782 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15783 echo $ECHO_N "(cached) $ECHO_C" >&6
15785 lt_prog_compiler_pic_works_F77=no
15786 ac_outfile=conftest.$ac_objext
15787 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15788 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15789 # Insert the option either (1) after the last *FLAGS variable, or
15790 # (2) before a word containing "conftest.", or (3) at the end.
15791 # Note that $ac_compile itself does not contain backslashes and begins
15792 # with a dollar sign (not a hyphen), so the echo should work correctly.
15793 # The option is referenced via a variable to avoid confusing sed.
15794 lt_compile=`echo "$ac_compile" | $SED \
15795 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15796 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15797 -e 's:$: $lt_compiler_flag:'`
15798 (eval echo "\"\$as_me:15798: $lt_compile\"" >&5)
15799 (eval "$lt_compile" 2>conftest.err)
15801 cat conftest.err >&5
15802 echo "$as_me:15802: \$? = $ac_status" >&5
15803 if (exit $ac_status) && test -s "$ac_outfile"; then
15804 # The compiler can only warn and ignore the option if not recognized
15805 # So say no if there are warnings other than the usual output.
15806 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15807 $SED '/^$/d' conftest.err >conftest.er2
15808 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15809 lt_prog_compiler_pic_works_F77=yes
15815 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15816 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
15818 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15819 case $lt_prog_compiler_pic_F77 in
15821 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15824 lt_prog_compiler_pic_F77=
15825 lt_prog_compiler_can_build_shared_F77=no
15830 # For platforms which do not support PIC, -DPIC is meaningless:
15832 lt_prog_compiler_pic_F77=
15835 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15839 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15840 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15841 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15842 echo $ECHO_N "(cached) $ECHO_C" >&6
15844 lt_cv_prog_compiler_c_o_F77=no
15845 $rm -r conftest 2>/dev/null
15849 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15851 lt_compiler_flag="-o out/conftest2.$ac_objext"
15852 # Insert the option either (1) after the last *FLAGS variable, or
15853 # (2) before a word containing "conftest.", or (3) at the end.
15854 # Note that $ac_compile itself does not contain backslashes and begins
15855 # with a dollar sign (not a hyphen), so the echo should work correctly.
15856 lt_compile=`echo "$ac_compile" | $SED \
15857 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15858 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15859 -e 's:$: $lt_compiler_flag:'`
15860 (eval echo "\"\$as_me:15860: $lt_compile\"" >&5)
15861 (eval "$lt_compile" 2>out/conftest.err)
15863 cat out/conftest.err >&5
15864 echo "$as_me:15864: \$? = $ac_status" >&5
15865 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15867 # The compiler can only warn and ignore the option if not recognized
15868 # So say no if there are warnings
15869 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
15870 $SED '/^$/d' out/conftest.err >out/conftest.er2
15871 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15872 lt_cv_prog_compiler_c_o_F77=yes
15877 # SGI C++ compiler will create directory out/ii_files/ for
15878 # template instantiation
15879 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15880 $rm out/* && rmdir out
15886 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15887 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15890 hard_links="nottested"
15891 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15892 # do not overwrite the value of need_locks provided by the user
15893 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15894 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15897 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15899 ln conftest.a conftest.b 2>&5 || hard_links=no
15900 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15901 echo "$as_me:$LINENO: result: $hard_links" >&5
15902 echo "${ECHO_T}$hard_links" >&6
15903 if test "$hard_links" = no; then
15904 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15905 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15912 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15913 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15916 allow_undefined_flag_F77=
15917 enable_shared_with_static_runtimes_F77=no
15919 archive_expsym_cmds_F77=
15920 old_archive_From_new_cmds_F77=
15921 old_archive_from_expsyms_cmds_F77=
15922 export_dynamic_flag_spec_F77=
15923 whole_archive_flag_spec_F77=
15924 thread_safe_flag_spec_F77=
15925 hardcode_libdir_flag_spec_F77=
15926 hardcode_libdir_flag_spec_ld_F77=
15927 hardcode_libdir_separator_F77=
15928 hardcode_direct_F77=no
15929 hardcode_minus_L_F77=no
15930 hardcode_shlibpath_var_F77=unsupported
15931 link_all_deplibs_F77=unknown
15932 hardcode_automatic_F77=no
15934 module_expsym_cmds_F77=
15935 always_export_symbols_F77=no
15936 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15937 # include_expsyms should be a list of space-separated symbols to be *always*
15938 # included in the symbol list
15939 include_expsyms_F77=
15940 # exclude_expsyms can be an extended regexp of symbols to exclude
15941 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15942 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15943 # as well as any symbol that contains `d'.
15944 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15945 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15946 # platforms (ab)use it in PIC code, but their linkers get confused if
15947 # the symbol is explicitly referenced. Since portable code cannot
15948 # rely on this symbol name, it's probably fine to never include it in
15949 # preloaded symbol tables.
15950 extract_expsyms_cmds=
15951 # Just being paranoid about ensuring that cc_basename is set.
15952 for cc_temp in $compiler""; do
15954 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15955 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15960 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15963 cygwin* | mingw* | pw32*)
15964 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15965 # When not using gcc, we currently assume that we are using
15966 # Microsoft Visual C++.
15967 if test "$GCC" != yes; then
15977 if test "$with_gnu_ld" = yes; then
15978 # If archive_cmds runs LD, not CC, wlarc should be empty
15981 # Set some defaults for GNU ld with shared library support. These
15982 # are reset later if shared libraries are not supported. Putting them
15983 # here allows them to be overridden if necessary.
15984 runpath_var=LD_RUN_PATH
15985 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15986 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15987 # ancient GNU ld didn't support --whole-archive et. al.
15988 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15989 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15991 whole_archive_flag_spec_F77=
15993 supports_anon_versioning=no
15994 case `$LD -v 2>/dev/null` in
15995 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15996 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15997 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15998 *\ 2.11.*) ;; # other 2.11 versions
15999 *) supports_anon_versioning=yes ;;
16002 # See if GNU ld supports shared libraries.
16004 aix3* | aix4* | aix5*)
16005 # On AIX/PPC, the GNU linker is very broken
16006 if test "$host_cpu" != ia64; then
16010 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16011 *** to be unable to reliably create shared libraries on AIX.
16012 *** Therefore, libtool is disabling shared libraries support. If you
16013 *** really care for shared libraries, you may want to modify your PATH
16014 *** so that a non-GNU linker is found, and then restart.
16021 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)'
16022 hardcode_libdir_flag_spec_F77='-L$libdir'
16023 hardcode_minus_L_F77=yes
16025 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16026 # that the semantics of dynamic libraries on AmigaOS, at least up
16027 # to version 4, is to share data among multiple programs linked
16028 # with the same dynamic library. Since this doesn't match the
16029 # behavior of shared libraries on other platforms, we can't use
16035 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16036 allow_undefined_flag_F77=unsupported
16037 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16038 # support --undefined. This deserves some investigation. FIXME
16039 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16045 cygwin* | mingw* | pw32*)
16046 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16047 # as there is no search path for DLLs.
16048 hardcode_libdir_flag_spec_F77='-L$libdir'
16049 allow_undefined_flag_F77=unsupported
16050 always_export_symbols_F77=no
16051 enable_shared_with_static_runtimes_F77=yes
16052 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16054 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16055 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16056 # If the export-symbols file already is a .def file (1st line
16057 # is EXPORTS), use it as is; otherwise, prepend...
16058 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16059 cp $export_symbols $output_objdir/$soname.def;
16061 echo EXPORTS > $output_objdir/$soname.def;
16062 cat $export_symbols >> $output_objdir/$soname.def;
16064 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16071 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16073 case $cc_basename,$host_cpu in
16074 pgcc*) # Portland Group C compiler
16075 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'
16076 tmp_addflag=' $pic_flag'
16078 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
16079 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'
16080 tmp_addflag=' $pic_flag -Mnomain' ;;
16081 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16082 tmp_addflag=' -i_dynamic' ;;
16083 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16084 tmp_addflag=' -i_dynamic -nofor_main' ;;
16085 ifc* | ifort*) # Intel Fortran compiler
16086 tmp_addflag=' -nofor_main' ;;
16088 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16090 if test $supports_anon_versioning = yes; then
16091 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16092 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16093 $echo "local: *; };" >> $output_objdir/$libname.ver~
16094 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16102 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16103 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16106 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16107 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16112 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16116 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16117 *** create shared libraries on Solaris systems. Therefore, libtool
16118 *** is disabling shared libraries support. We urge you to upgrade GNU
16119 *** binutils to release 2.9.1 or newer. Another option is to modify
16120 *** your PATH or compiler configuration so that the native linker is
16121 *** used, and then restart.
16124 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16125 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16126 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16133 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16135 hardcode_direct_F77=yes
16136 hardcode_shlibpath_var_F77=no
16140 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16141 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16142 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16149 if test "$ld_shlibs_F77" = no; then
16151 hardcode_libdir_flag_spec_F77=
16152 export_dynamic_flag_spec_F77=
16153 whole_archive_flag_spec_F77=
16156 # PORTME fill in a description of your system's linker (not GNU ld)
16159 allow_undefined_flag_F77=unsupported
16160 always_export_symbols_F77=yes
16161 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'
16162 # Note: this linker hardcodes the directories in LIBPATH if there
16163 # are no directories specified by -L.
16164 hardcode_minus_L_F77=yes
16165 if test "$GCC" = yes && test -z "$link_static_flag"; then
16166 # Neither direct hardcoding nor static linking is supported with a
16168 hardcode_direct_F77=unsupported
16173 if test "$host_cpu" = ia64; then
16174 # On IA64, the linker does run time linking by default, so we don't
16175 # have to do anything special.
16176 aix_use_runtimelinking=no
16177 exp_sym_flag='-Bexport'
16180 # If we're using GNU nm, then we don't want the "-C" option.
16181 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16182 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16183 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'
16185 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'
16187 aix_use_runtimelinking=no
16189 # Test if we are trying to use run time linking or normal
16190 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16191 # need to do runtime linking.
16192 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16193 for ld_flag in $LDFLAGS; do
16194 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16195 aix_use_runtimelinking=yes
16201 exp_sym_flag='-bexport'
16202 no_entry_flag='-bnoentry'
16205 # When large executables or shared objects are built, AIX ld can
16206 # have problems creating the table of contents. If linking a library
16207 # or program results in "error TOC overflow" add -mminimal-toc to
16208 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16209 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16211 archive_cmds_F77=''
16212 hardcode_direct_F77=yes
16213 hardcode_libdir_separator_F77=':'
16214 link_all_deplibs_F77=yes
16216 if test "$GCC" = yes; then
16217 case $host_os in aix4.[012]|aix4.[012].*)
16218 # We only want to do this on AIX 4.2 and lower, the check
16219 # below for broken collect2 doesn't work under 4.3+
16220 collect2name=`${CC} -print-prog-name=collect2`
16221 if test -f "$collect2name" && \
16222 strings "$collect2name" | grep resolve_lib_name >/dev/null
16224 # We have reworked collect2
16225 hardcode_direct_F77=yes
16227 # We have old collect2
16228 hardcode_direct_F77=unsupported
16229 # It fails to find uninstalled libraries when the uninstalled
16230 # path is not listed in the libpath. Setting hardcode_minus_L
16231 # to unsupported forces relinking
16232 hardcode_minus_L_F77=yes
16233 hardcode_libdir_flag_spec_F77='-L$libdir'
16234 hardcode_libdir_separator_F77=
16237 shared_flag='-shared'
16238 if test "$aix_use_runtimelinking" = yes; then
16239 shared_flag="$shared_flag "'${wl}-G'
16243 if test "$host_cpu" = ia64; then
16244 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16245 # chokes on -Wl,-G. The following line is correct:
16248 if test "$aix_use_runtimelinking" = yes; then
16249 shared_flag='${wl}-G'
16251 shared_flag='${wl}-bM:SRE'
16256 # It seems that -bexpall does not export symbols beginning with
16257 # underscore (_), so it is better to generate a list of symbols to export.
16258 always_export_symbols_F77=yes
16259 if test "$aix_use_runtimelinking" = yes; then
16260 # Warning - without using the other runtime loading flags (-brtl),
16261 # -berok will link without error, but may produce a broken library.
16262 allow_undefined_flag_F77='-berok'
16263 # Determine the default libpath from the value encoded in an empty executable.
16264 cat >conftest.$ac_ext <<_ACEOF
16269 rm -f conftest.$ac_objext conftest$ac_exeext
16270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16271 (eval $ac_link) 2>conftest.er1
16273 grep -v '^ *+' conftest.er1 >conftest.err
16275 cat conftest.err >&5
16276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277 (exit $ac_status); } &&
16278 { ac_try='test -z "$ac_f77_werror_flag"
16279 || test ! -s conftest.err'
16280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16281 (eval $ac_try) 2>&5
16283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284 (exit $ac_status); }; } &&
16285 { ac_try='test -s conftest$ac_exeext'
16286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16287 (eval $ac_try) 2>&5
16289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290 (exit $ac_status); }; }; then
16292 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16294 # Check for a 64-bit object if we didn't find anything.
16295 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; }
16298 echo "$as_me: failed program was:" >&5
16299 sed 's/^/| /' conftest.$ac_ext >&5
16302 rm -f conftest.err conftest.$ac_objext \
16303 conftest$ac_exeext conftest.$ac_ext
16304 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16306 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16307 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"
16309 if test "$host_cpu" = ia64; then
16310 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16311 allow_undefined_flag_F77="-z nodefs"
16312 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"
16314 # Determine the default libpath from the value encoded in an empty executable.
16315 cat >conftest.$ac_ext <<_ACEOF
16320 rm -f conftest.$ac_objext conftest$ac_exeext
16321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16322 (eval $ac_link) 2>conftest.er1
16324 grep -v '^ *+' conftest.er1 >conftest.err
16326 cat conftest.err >&5
16327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328 (exit $ac_status); } &&
16329 { ac_try='test -z "$ac_f77_werror_flag"
16330 || test ! -s conftest.err'
16331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16332 (eval $ac_try) 2>&5
16334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16335 (exit $ac_status); }; } &&
16336 { ac_try='test -s conftest$ac_exeext'
16337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16338 (eval $ac_try) 2>&5
16340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16341 (exit $ac_status); }; }; then
16343 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16345 # Check for a 64-bit object if we didn't find anything.
16346 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; }
16349 echo "$as_me: failed program was:" >&5
16350 sed 's/^/| /' conftest.$ac_ext >&5
16353 rm -f conftest.err conftest.$ac_objext \
16354 conftest$ac_exeext conftest.$ac_ext
16355 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16357 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16358 # Warning - without using the other run time loading flags,
16359 # -berok will link without error, but may produce a broken library.
16360 no_undefined_flag_F77=' ${wl}-bernotok'
16361 allow_undefined_flag_F77=' ${wl}-berok'
16362 # -bexpall does not export symbols beginning with underscore (_)
16363 always_export_symbols_F77=yes
16364 # Exported symbols can be pulled into shared objects from archives
16365 whole_archive_flag_spec_F77=' '
16366 archive_cmds_need_lc_F77=yes
16367 # This is similar to how AIX traditionally builds it's shared libraries.
16368 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'
16374 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)'
16375 hardcode_libdir_flag_spec_F77='-L$libdir'
16376 hardcode_minus_L_F77=yes
16377 # see comment about different semantics on the GNU ld section
16382 export_dynamic_flag_spec_F77=-rdynamic
16385 cygwin* | mingw* | pw32*)
16386 # When not using gcc, we currently assume that we are using
16387 # Microsoft Visual C++.
16388 # hardcode_libdir_flag_spec is actually meaningless, as there is
16389 # no search path for DLLs.
16390 hardcode_libdir_flag_spec_F77=' '
16391 allow_undefined_flag_F77=unsupported
16392 # Tell ltmain to make .lib files, not .a files.
16394 # Tell ltmain to make .dll files, not .so files.
16396 # FIXME: Setting linknames here is a bad hack.
16397 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16398 # The linker will automatically build a .lib file if we build a DLL.
16399 old_archive_From_new_cmds_F77='true'
16400 # FIXME: Should let the user specify the lib program.
16401 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
16402 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16403 enable_shared_with_static_runtimes_F77=yes
16406 darwin* | rhapsody*)
16408 rhapsody* | darwin1.[012])
16409 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16412 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16413 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16415 case ${MACOSX_DEPLOYMENT_TARGET} in
16417 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16420 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16426 archive_cmds_need_lc_F77=no
16427 hardcode_direct_F77=no
16428 hardcode_automatic_F77=yes
16429 hardcode_shlibpath_var_F77=unsupported
16430 whole_archive_flag_spec_F77=''
16431 link_all_deplibs_F77=yes
16432 if test "$GCC" = yes ; then
16433 output_verbose_link_cmd='echo'
16434 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16435 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16436 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16437 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}'
16438 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}'
16440 case $cc_basename in
16442 output_verbose_link_cmd='echo'
16443 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16444 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16445 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16446 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}'
16447 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16457 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16458 hardcode_libdir_flag_spec_F77='-L$libdir'
16459 hardcode_shlibpath_var_F77=no
16466 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16467 # support. Future versions do this automatically, but an explicit c++rt0.o
16468 # does not break anything, and helps significantly (at the cost of a little
16471 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16472 hardcode_libdir_flag_spec_F77='-R$libdir'
16473 hardcode_direct_F77=yes
16474 hardcode_shlibpath_var_F77=no
16477 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16479 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16480 hardcode_direct_F77=yes
16481 hardcode_minus_L_F77=yes
16482 hardcode_shlibpath_var_F77=no
16485 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16486 freebsd* | kfreebsd*-gnu | dragonfly*)
16487 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16488 hardcode_libdir_flag_spec_F77='-R$libdir'
16489 hardcode_direct_F77=yes
16490 hardcode_shlibpath_var_F77=no
16494 if test "$GCC" = yes; then
16495 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'
16497 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'
16499 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16500 hardcode_libdir_separator_F77=:
16501 hardcode_direct_F77=yes
16503 # hardcode_minus_L: Not really in the search PATH,
16504 # but as the default location of the library.
16505 hardcode_minus_L_F77=yes
16506 export_dynamic_flag_spec_F77='${wl}-E'
16510 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16511 case "$host_cpu" in
16513 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16516 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16520 case "$host_cpu" in
16522 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16525 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16529 if test "$with_gnu_ld" = no; then
16530 case "$host_cpu" in
16532 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16533 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16534 hardcode_libdir_separator_F77=:
16535 hardcode_direct_F77=no
16536 hardcode_shlibpath_var_F77=no
16539 hardcode_libdir_flag_spec_F77='-L$libdir'
16540 hardcode_direct_F77=no
16541 hardcode_shlibpath_var_F77=no
16543 # hardcode_minus_L: Not really in the search PATH,
16544 # but as the default location of the library.
16545 hardcode_minus_L_F77=yes
16548 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16549 hardcode_libdir_separator_F77=:
16550 hardcode_direct_F77=yes
16551 export_dynamic_flag_spec_F77='${wl}-E'
16553 # hardcode_minus_L: Not really in the search PATH,
16554 # but as the default location of the library.
16555 hardcode_minus_L_F77=yes
16561 irix5* | irix6* | nonstopux*)
16562 if test "$GCC" = yes; then
16563 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'
16565 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'
16566 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16568 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16569 hardcode_libdir_separator_F77=:
16570 link_all_deplibs_F77=yes
16574 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16575 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16577 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16579 hardcode_libdir_flag_spec_F77='-R$libdir'
16580 hardcode_direct_F77=yes
16581 hardcode_shlibpath_var_F77=no
16585 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16586 hardcode_direct_F77=yes
16587 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16588 hardcode_libdir_separator_F77=:
16589 hardcode_shlibpath_var_F77=no
16593 hardcode_direct_F77=yes
16594 hardcode_shlibpath_var_F77=no
16595 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16596 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16597 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16598 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16599 export_dynamic_flag_spec_F77='${wl}-E'
16602 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16603 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16604 hardcode_libdir_flag_spec_F77='-R$libdir'
16607 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16608 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16615 hardcode_libdir_flag_spec_F77='-L$libdir'
16616 hardcode_minus_L_F77=yes
16617 allow_undefined_flag_F77=unsupported
16618 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'
16619 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16623 if test "$GCC" = yes; then
16624 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16625 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'
16627 allow_undefined_flag_F77=' -expect_unresolved \*'
16628 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'
16630 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16631 hardcode_libdir_separator_F77=:
16634 osf4* | osf5*) # as osf3* with the addition of -msym flag
16635 if test "$GCC" = yes; then
16636 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16637 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'
16638 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16640 allow_undefined_flag_F77=' -expect_unresolved \*'
16641 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'
16642 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~
16643 $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'
16645 # Both c and cxx compiler support -rpath directly
16646 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16648 hardcode_libdir_separator_F77=:
16652 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16653 hardcode_shlibpath_var_F77=no
16654 export_dynamic_flag_spec_F77='${wl}-Bexport'
16655 runpath_var=LD_RUN_PATH
16656 hardcode_runpath_var=yes
16660 no_undefined_flag_F77=' -z text'
16661 if test "$GCC" = yes; then
16663 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16664 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16665 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16668 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16669 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16670 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16672 hardcode_libdir_flag_spec_F77='-R$libdir'
16673 hardcode_shlibpath_var_F77=no
16675 solaris2.[0-5] | solaris2.[0-5].*) ;;
16677 # The compiler driver will combine linker options so we
16678 # cannot just pass the convience library names through
16679 # without $wl, iff we do not link with $LD.
16680 # Luckily, gcc supports the same syntax we need for Sun Studio.
16681 # Supported since Solaris 2.6 (maybe 2.5.1?)
16684 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16686 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' ;;
16689 link_all_deplibs_F77=yes
16693 if test "x$host_vendor" = xsequent; then
16694 # Use $CC to link under sequent, because it throws in some extra .o
16695 # files that make .init and .fini sections work.
16696 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16698 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16700 hardcode_libdir_flag_spec_F77='-L$libdir'
16701 hardcode_direct_F77=yes
16702 hardcode_minus_L_F77=yes
16703 hardcode_shlibpath_var_F77=no
16707 case $host_vendor in
16709 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16710 hardcode_direct_F77=yes # is this really true???
16713 ## LD is ld it makes a PLAMLIB
16714 ## CC just makes a GrossModule.
16715 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16716 reload_cmds_F77='$CC -r -o $output$reload_objs'
16717 hardcode_direct_F77=no
16720 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16721 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16724 runpath_var='LD_RUN_PATH'
16725 hardcode_shlibpath_var_F77=no
16729 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16730 hardcode_shlibpath_var_F77=no
16731 export_dynamic_flag_spec_F77='-Bexport'
16735 if test -d /usr/nec; then
16736 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16737 hardcode_shlibpath_var_F77=no
16738 runpath_var=LD_RUN_PATH
16739 hardcode_runpath_var=yes
16745 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16746 hardcode_direct_F77=yes
16747 hardcode_minus_L_F77=no
16748 hardcode_shlibpath_var_F77=no
16749 hardcode_runpath_var=yes
16750 runpath_var=LD_RUN_PATH
16753 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16754 no_undefined_flag_F77='${wl}-z ${wl}text'
16755 if test "$GCC" = yes; then
16756 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16758 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16760 runpath_var='LD_RUN_PATH'
16761 hardcode_shlibpath_var_F77=no
16765 no_undefined_flag_F77=' -z text'
16766 # $CC -shared without GNU ld will not create a library from C++
16767 # object files and a static libstdc++, better avoid it by now
16768 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16769 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16770 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16771 hardcode_libdir_flag_spec_F77=
16772 hardcode_shlibpath_var_F77=no
16773 runpath_var='LD_RUN_PATH'
16777 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16778 hardcode_libdir_flag_spec_F77='-L$libdir'
16779 hardcode_shlibpath_var_F77=no
16788 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16789 echo "${ECHO_T}$ld_shlibs_F77" >&6
16790 test "$ld_shlibs_F77" = no && can_build_shared=no
16792 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16793 if test "$GCC" = yes; then
16794 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16798 # Do we need to explicitly link libc?
16800 case "x$archive_cmds_need_lc_F77" in
16802 # Assume -lc should be added
16803 archive_cmds_need_lc_F77=yes
16805 if test "$enable_shared" = yes && test "$GCC" = yes; then
16806 case $archive_cmds_F77 in
16808 # FIXME: we may have to deal with multi-command sequences.
16811 # Test whether the compiler implicitly links with -lc since on some
16812 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16813 # to ld, don't add -lc before -lgcc.
16814 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16815 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16817 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16820 (eval $ac_compile) 2>&5
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); } 2>conftest.err; then
16826 libobjs=conftest.$ac_objext
16828 wl=$lt_prog_compiler_wl_F77
16834 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16835 allow_undefined_flag_F77=
16836 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16837 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840 (exit $ac_status); }
16842 archive_cmds_need_lc_F77=no
16844 archive_cmds_need_lc_F77=yes
16846 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16848 cat conftest.err 1>&5
16851 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16852 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
16859 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16860 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16861 library_names_spec=
16862 libname_spec='lib$name'
16866 postuninstall_cmds=
16870 shlibpath_overrides_runpath=unknown
16872 dynamic_linker="$host_os ld.so"
16873 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16874 if test "$GCC" = yes; then
16875 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16876 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16877 # if the path contains ";" then we assume it to be the separator
16878 # otherwise default to the standard path separator (i.e. ":") - it is
16879 # assumed that no part of a normal pathname contains ";" but that should
16880 # okay in the real world where ";" in dirpaths is itself problematic.
16881 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16883 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16886 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16888 need_lib_prefix=unknown
16889 hardcode_into_libs=no
16891 # when you set need_version to no, make sure it does not cause -set_version
16892 # flags to be left without arguments
16893 need_version=unknown
16898 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16899 shlibpath_var=LIBPATH
16901 # AIX 3 has no versioning support, so we append a major version to the name.
16902 soname_spec='${libname}${release}${shared_ext}$major'
16909 hardcode_into_libs=yes
16910 if test "$host_cpu" = ia64; then
16911 # AIX 5 supports IA64
16912 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16913 shlibpath_var=LD_LIBRARY_PATH
16915 # With GCC up to 2.95.x, collect2 would create an import file
16916 # for dependence libraries. The import file would start with
16917 # the line `#! .'. This would cause the generated library to
16918 # depend on `.', always an invalid library. This was fixed in
16919 # development snapshots of GCC prior to 3.0.
16921 aix4 | aix4.[01] | aix4.[01].*)
16922 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16924 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16927 can_build_shared=no
16931 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16932 # soname into executable. Probably we can add versioning support to
16933 # collect2, so additional links can be useful in future.
16934 if test "$aix_use_runtimelinking" = yes; then
16935 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16936 # instead of lib<name>.a to let people know that these are not
16937 # typical AIX shared libraries.
16938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16940 # We preserve .a as extension for shared libraries through AIX4.2
16941 # and later when we are not doing run time linking.
16942 library_names_spec='${libname}${release}.a $libname.a'
16943 soname_spec='${libname}${release}${shared_ext}$major'
16945 shlibpath_var=LIBPATH
16950 library_names_spec='$libname.ixlibrary $libname.a'
16951 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16952 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'
16956 library_names_spec='${libname}${shared_ext}'
16957 dynamic_linker="$host_os ld.so"
16958 shlibpath_var=LIBRARY_PATH
16964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16965 soname_spec='${libname}${release}${shared_ext}$major'
16966 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16967 shlibpath_var=LD_LIBRARY_PATH
16968 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16969 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16970 # the default ld.so.conf also contains /usr/contrib/lib and
16971 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16972 # libtool to hard-code these into programs
16975 cygwin* | mingw* | pw32*)
16976 version_type=windows
16981 case $GCC,$host_os in
16982 yes,cygwin* | yes,mingw* | yes,pw32*)
16983 library_names_spec='$libname.dll.a'
16984 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16985 postinstall_cmds='base_file=`basename \${file}`~
16986 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16987 dldir=$destdir/`dirname \$dlpath`~
16988 test -d \$dldir || mkdir -p \$dldir~
16989 $install_prog $dir/$dlname \$dldir/$dlname'
16990 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16991 dlpath=$dir/\$dldll~
16993 shlibpath_overrides_runpath=yes
16997 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16998 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16999 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17002 # MinGW DLLs use traditional 'lib' prefix
17003 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17004 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17005 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17006 # It is most probably a Windows format PATH printed by
17007 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17008 # path with ; separators, and with drive letters. We can handle the
17009 # drive letters (cygwin fileutils understands them), so leave them,
17010 # especially as we might pass files found there to a mingw objdump,
17011 # which wouldn't understand a cygwinified path. Ahh.
17012 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17014 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17018 # pw32 DLLs use 'pw' prefix rather than 'lib'
17019 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17025 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17028 dynamic_linker='Win32 ld.exe'
17029 # FIXME: first we should search . and the directory the executable is in
17033 darwin* | rhapsody*)
17034 dynamic_linker="$host_os dyld"
17035 version_type=darwin
17038 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17039 soname_spec='${libname}${release}${major}$shared_ext'
17040 shlibpath_overrides_runpath=yes
17041 shlibpath_var=DYLD_LIBRARY_PATH
17042 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17043 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17044 if test "$GCC" = yes; then
17045 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"`
17047 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17049 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17057 soname_spec='${libname}${release}${shared_ext}$major'
17058 shlibpath_var=LD_LIBRARY_PATH
17069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17070 soname_spec='${libname}${release}${shared_ext}$major'
17071 shlibpath_var=LD_LIBRARY_PATH
17072 shlibpath_overrides_runpath=no
17073 hardcode_into_libs=yes
17074 dynamic_linker='GNU ld.so'
17077 freebsd* | dragonfly*)
17078 # DragonFly does not have aout. When/if they implement a new
17079 # versioning mechanism, adjust this.
17080 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17081 version_type=freebsd-$objformat
17082 case $version_type in
17084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17089 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17093 shlibpath_var=LD_LIBRARY_PATH
17096 shlibpath_overrides_runpath=yes
17098 freebsd3.[01]* | freebsdelf3.[01]*)
17099 shlibpath_overrides_runpath=yes
17100 hardcode_into_libs=yes
17103 shlibpath_overrides_runpath=no
17104 hardcode_into_libs=yes
17113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17114 soname_spec='${libname}${release}${shared_ext}$major'
17115 shlibpath_var=LD_LIBRARY_PATH
17116 hardcode_into_libs=yes
17119 hpux9* | hpux10* | hpux11*)
17120 # Give a soname corresponding to the major version so that dld.sl refuses to
17121 # link against other versions.
17125 case "$host_cpu" in
17128 hardcode_into_libs=yes
17129 dynamic_linker="$host_os dld.so"
17130 shlibpath_var=LD_LIBRARY_PATH
17131 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17133 soname_spec='${libname}${release}${shared_ext}$major'
17134 if test "X$HPUX_IA64_MODE" = X32; then
17135 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17137 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17139 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17143 hardcode_into_libs=yes
17144 dynamic_linker="$host_os dld.sl"
17145 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17146 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17148 soname_spec='${libname}${release}${shared_ext}$major'
17149 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17150 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17154 dynamic_linker="$host_os dld.sl"
17155 shlibpath_var=SHLIB_PATH
17156 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17158 soname_spec='${libname}${release}${shared_ext}$major'
17161 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17162 postinstall_cmds='chmod 555 $lib'
17165 irix5* | irix6* | nonstopux*)
17167 nonstopux*) version_type=nonstopux ;;
17169 if test "$lt_cv_prog_gnu_ld" = yes; then
17177 soname_spec='${libname}${release}${shared_ext}$major'
17178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17180 irix5* | nonstopux*)
17181 libsuff= shlibsuff=
17184 case $LD in # libtool.m4 will add one of these switches to LD
17185 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17186 libsuff= shlibsuff= libmagic=32-bit;;
17187 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17188 libsuff=32 shlibsuff=N32 libmagic=N32;;
17189 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17190 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17191 *) libsuff= shlibsuff= libmagic=never-match;;
17195 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17196 shlibpath_overrides_runpath=no
17197 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17198 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17199 hardcode_into_libs=yes
17202 # No shared lib support for Linux oldld, aout, or coff.
17203 linux*oldld* | linux*aout* | linux*coff*)
17207 # This must be Linux ELF.
17212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17213 soname_spec='${libname}${release}${shared_ext}$major'
17214 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17215 shlibpath_var=LD_LIBRARY_PATH
17216 shlibpath_overrides_runpath=no
17217 # This implies no fast_install, which is unacceptable.
17218 # Some rework will be needed to allow for fast_install
17219 # before this can be enabled.
17220 hardcode_into_libs=yes
17222 # Append ld.so.conf contents to the search path
17223 if test -f /etc/ld.so.conf; then
17224 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' ' '`
17225 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17228 # We used to test for /lib/ld.so.1 and disable shared libraries on
17229 # powerpc, because MkLinux only supported shared libraries with the
17230 # GNU dynamic linker. Since this was broken with cross compilers,
17231 # most powerpc-linux boxes support dynamic linking these days and
17232 # people can always --disable-shared, the test was removed, and we
17233 # assume the GNU/Linux dynamic linker is in use.
17234 dynamic_linker='GNU/Linux ld.so'
17241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17242 soname_spec='${libname}${release}${shared_ext}$major'
17243 shlibpath_var=LD_LIBRARY_PATH
17244 shlibpath_overrides_runpath=no
17245 hardcode_into_libs=yes
17246 dynamic_linker='GNU ld.so'
17253 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17255 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17256 dynamic_linker='NetBSD (a.out) ld.so'
17258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17259 soname_spec='${libname}${release}${shared_ext}$major'
17260 dynamic_linker='NetBSD ld.elf_so'
17262 shlibpath_var=LD_LIBRARY_PATH
17263 shlibpath_overrides_runpath=yes
17264 hardcode_into_libs=yes
17269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17270 shlibpath_var=LD_LIBRARY_PATH
17271 shlibpath_overrides_runpath=yes
17278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17279 soname_spec='${libname}${release}${shared_ext}$major'
17280 shlibpath_var=LD_LIBRARY_PATH
17281 shlibpath_overrides_runpath=yes
17287 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17289 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17290 *) need_version=no ;;
17292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17293 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17294 shlibpath_var=LD_LIBRARY_PATH
17295 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17297 openbsd2.[89] | openbsd2.[89].*)
17298 shlibpath_overrides_runpath=no
17301 shlibpath_overrides_runpath=yes
17305 shlibpath_overrides_runpath=yes
17310 libname_spec='$name'
17313 library_names_spec='$libname${shared_ext} $libname.a'
17314 dynamic_linker='OS/2 ld.exe'
17315 shlibpath_var=LIBPATH
17318 osf3* | osf4* | osf5*)
17322 soname_spec='${libname}${release}${shared_ext}$major'
17323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17324 shlibpath_var=LD_LIBRARY_PATH
17325 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17326 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17331 soname_spec='${libname}${release}${shared_ext}$major'
17332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17333 shlibpath_var=LD_LIBRARY_PATH
17340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17341 soname_spec='${libname}${release}${shared_ext}$major'
17342 shlibpath_var=LD_LIBRARY_PATH
17343 shlibpath_overrides_runpath=yes
17344 hardcode_into_libs=yes
17345 # ldd complains unless libraries are executable
17346 postinstall_cmds='chmod +x $lib'
17351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17352 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17353 shlibpath_var=LD_LIBRARY_PATH
17354 shlibpath_overrides_runpath=yes
17355 if test "$with_gnu_ld" = yes; then
17361 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17364 soname_spec='${libname}${release}${shared_ext}$major'
17365 shlibpath_var=LD_LIBRARY_PATH
17366 case $host_vendor in
17368 shlibpath_overrides_runpath=no
17370 export_dynamic_flag_spec='${wl}-Blargedynsym'
17371 runpath_var=LD_RUN_PATH
17379 shlibpath_overrides_runpath=no
17380 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17386 if test -d /usr/nec ;then
17388 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17389 soname_spec='$libname${shared_ext}.$major'
17390 shlibpath_var=LD_LIBRARY_PATH
17396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17397 soname_spec='${libname}${release}${shared_ext}$major'
17398 shlibpath_var=LD_LIBRARY_PATH
17405 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17406 echo "${ECHO_T}$dynamic_linker" >&6
17407 test "$dynamic_linker" = no && can_build_shared=no
17409 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17410 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17411 hardcode_action_F77=
17412 if test -n "$hardcode_libdir_flag_spec_F77" || \
17413 test -n "$runpath_var_F77" || \
17414 test "X$hardcode_automatic_F77" = "Xyes" ; then
17416 # We can hardcode non-existant directories.
17417 if test "$hardcode_direct_F77" != no &&
17418 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17419 # have to relink, otherwise we might link with an installed library
17420 # when we should be linking with a yet-to-be-installed one
17421 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17422 test "$hardcode_minus_L_F77" != no; then
17423 # Linking always hardcodes the temporary library directory.
17424 hardcode_action_F77=relink
17426 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17427 hardcode_action_F77=immediate
17430 # We cannot hardcode anything, or else we can only hardcode existing
17432 hardcode_action_F77=unsupported
17434 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17435 echo "${ECHO_T}$hardcode_action_F77" >&6
17437 if test "$hardcode_action_F77" = relink; then
17438 # Fast installation is not supported
17439 enable_fast_install=no
17440 elif test "$shlibpath_overrides_runpath" = yes ||
17441 test "$enable_shared" = no; then
17442 # Fast installation is not necessary
17443 enable_fast_install=needless
17448 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17449 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17450 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17451 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17452 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17453 echo "$as_me:$LINENO: result: yes" >&5
17454 echo "${ECHO_T}yes" >&6
17456 # FIXME - insert some real tests, host_os isn't really good enough
17459 if test -n "$STRIP" ; then
17460 striplib="$STRIP -x"
17461 echo "$as_me:$LINENO: result: yes" >&5
17462 echo "${ECHO_T}yes" >&6
17464 echo "$as_me:$LINENO: result: no" >&5
17465 echo "${ECHO_T}no" >&6
17469 echo "$as_me:$LINENO: result: no" >&5
17470 echo "${ECHO_T}no" >&6
17477 # The else clause should only fire when bootstrapping the
17478 # libtool distribution, otherwise you forgot to ship ltmain.sh
17479 # with your package, and you will get complaints that there are
17480 # no rules to generate ltmain.sh.
17481 if test -f "$ltmain"; then
17482 # See if we are running on zsh, and set the options which allow our commands through
17483 # without removal of \ escapes.
17484 if test -n "${ZSH_VERSION+set}" ; then
17485 setopt NO_GLOB_SUBST
17487 # Now quote all the things that may contain metacharacters while being
17488 # careful not to overquote the AC_SUBSTed values. We take copies of the
17489 # variables and quote the copies for generation of the libtool script.
17490 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17492 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17493 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17494 deplibs_check_method reload_flag reload_cmds need_locks \
17495 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17496 lt_cv_sys_global_symbol_to_c_name_address \
17497 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17498 old_postinstall_cmds old_postuninstall_cmds \
17502 lt_prog_compiler_wl_F77 \
17503 lt_prog_compiler_pic_F77 \
17504 lt_prog_compiler_static_F77 \
17505 lt_prog_compiler_no_builtin_flag_F77 \
17506 export_dynamic_flag_spec_F77 \
17507 thread_safe_flag_spec_F77 \
17508 whole_archive_flag_spec_F77 \
17509 enable_shared_with_static_runtimes_F77 \
17510 old_archive_cmds_F77 \
17511 old_archive_from_new_cmds_F77 \
17512 predep_objects_F77 \
17513 postdep_objects_F77 \
17516 compiler_lib_search_path_F77 \
17518 archive_expsym_cmds_F77 \
17519 postinstall_cmds_F77 \
17520 postuninstall_cmds_F77 \
17521 old_archive_from_expsyms_cmds_F77 \
17522 allow_undefined_flag_F77 \
17523 no_undefined_flag_F77 \
17524 export_symbols_cmds_F77 \
17525 hardcode_libdir_flag_spec_F77 \
17526 hardcode_libdir_flag_spec_ld_F77 \
17527 hardcode_libdir_separator_F77 \
17528 hardcode_automatic_F77 \
17530 module_expsym_cmds_F77 \
17531 lt_cv_prog_compiler_c_o_F77 \
17532 exclude_expsyms_F77 \
17533 include_expsyms_F77; do
17536 old_archive_cmds_F77 | \
17537 old_archive_from_new_cmds_F77 | \
17538 archive_cmds_F77 | \
17539 archive_expsym_cmds_F77 | \
17540 module_cmds_F77 | \
17541 module_expsym_cmds_F77 | \
17542 old_archive_from_expsyms_cmds_F77 | \
17543 export_symbols_cmds_F77 | \
17544 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17545 postinstall_cmds | postuninstall_cmds | \
17546 old_postinstall_cmds | old_postuninstall_cmds | \
17547 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17548 # Double-quote double-evaled strings.
17549 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17552 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17558 *'\$0 --fallback-echo"')
17559 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17565 cat <<__EOF__ >> "$cfgfile"
17566 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17568 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17570 # Shell to use when invoking shell scripts.
17573 # Whether or not to build shared libraries.
17574 build_libtool_libs=$enable_shared
17576 # Whether or not to build static libraries.
17577 build_old_libs=$enable_static
17579 # Whether or not to add -lc for building shared libraries.
17580 build_libtool_need_lc=$archive_cmds_need_lc_F77
17582 # Whether or not to disallow shared libs when runtime libs are static
17583 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17585 # Whether or not to optimize for fast installation.
17586 fast_install=$enable_fast_install
17589 host_alias=$host_alias
17593 # The build system.
17594 build_alias=$build_alias
17598 # An echo program that does not interpret backslashes.
17603 AR_FLAGS=$lt_AR_FLAGS
17608 # A language-specific compiler.
17609 CC=$lt_compiler_F77
17611 # Is the compiler the GNU C compiler?
17617 # The linker used to build libraries.
17620 # Whether we need hard or soft links.
17623 # A BSD-compatible nm program.
17626 # A symbol stripping program
17629 # Used to examine libraries when file_magic_cmd begins "file"
17630 MAGIC_CMD=$MAGIC_CMD
17632 # Used on cygwin: DLL creation program.
17635 # Used on cygwin: object dumper.
17638 # Used on cygwin: assembler.
17641 # The name of the directory that contains temporary libtool files.
17644 # How to create reloadable object files.
17645 reload_flag=$lt_reload_flag
17646 reload_cmds=$lt_reload_cmds
17648 # How to pass a linker flag through the compiler.
17649 wl=$lt_lt_prog_compiler_wl_F77
17651 # Object file suffix (normally "o").
17652 objext="$ac_objext"
17654 # Old archive suffix (normally "a").
17657 # Shared library suffix (normally ".so").
17658 shrext_cmds='$shrext_cmds'
17660 # Executable file suffix (normally "").
17663 # Additional compiler flags for building library objects.
17664 pic_flag=$lt_lt_prog_compiler_pic_F77
17667 # What is the maximum length of a command?
17668 max_cmd_len=$lt_cv_sys_max_cmd_len
17670 # Does compiler simultaneously support -c and -o options?
17671 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17673 # Must we lock files when doing compilation?
17674 need_locks=$lt_need_locks
17676 # Do we need the lib prefix for modules?
17677 need_lib_prefix=$need_lib_prefix
17679 # Do we need a version for libraries?
17680 need_version=$need_version
17682 # Whether dlopen is supported.
17683 dlopen_support=$enable_dlopen
17685 # Whether dlopen of programs is supported.
17686 dlopen_self=$enable_dlopen_self
17688 # Whether dlopen of statically linked programs is supported.
17689 dlopen_self_static=$enable_dlopen_self_static
17691 # Compiler flag to prevent dynamic linking.
17692 link_static_flag=$lt_lt_prog_compiler_static_F77
17694 # Compiler flag to turn off builtin functions.
17695 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17697 # Compiler flag to allow reflexive dlopens.
17698 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17700 # Compiler flag to generate shared objects directly from archives.
17701 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17703 # Compiler flag to generate thread-safe objects.
17704 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17706 # Library versioning type.
17707 version_type=$version_type
17709 # Format of library name prefix.
17710 libname_spec=$lt_libname_spec
17712 # List of archive names. First name is the real one, the rest are links.
17713 # The last name is the one that the linker finds with -lNAME.
17714 library_names_spec=$lt_library_names_spec
17716 # The coded name of the library, if different from the real name.
17717 soname_spec=$lt_soname_spec
17719 # Commands used to build and install an old-style archive.
17721 old_archive_cmds=$lt_old_archive_cmds_F77
17722 old_postinstall_cmds=$lt_old_postinstall_cmds
17723 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17725 # Create an old-style archive from a shared archive.
17726 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17728 # Create a temporary old-style archive to link instead of a shared archive.
17729 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17731 # Commands used to build and install a shared archive.
17732 archive_cmds=$lt_archive_cmds_F77
17733 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17734 postinstall_cmds=$lt_postinstall_cmds
17735 postuninstall_cmds=$lt_postuninstall_cmds
17737 # Commands used to build a loadable module (assumed same as above if empty)
17738 module_cmds=$lt_module_cmds_F77
17739 module_expsym_cmds=$lt_module_expsym_cmds_F77
17741 # Commands to strip libraries.
17742 old_striplib=$lt_old_striplib
17743 striplib=$lt_striplib
17745 # Dependencies to place before the objects being linked to create a
17747 predep_objects=$lt_predep_objects_F77
17749 # Dependencies to place after the objects being linked to create a
17751 postdep_objects=$lt_postdep_objects_F77
17753 # Dependencies to place before the objects being linked to create a
17755 predeps=$lt_predeps_F77
17757 # Dependencies to place after the objects being linked to create a
17759 postdeps=$lt_postdeps_F77
17761 # The library search path used internally by the compiler when linking
17762 # a shared library.
17763 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17765 # Method to check whether dependent libraries are shared objects.
17766 deplibs_check_method=$lt_deplibs_check_method
17768 # Command to use when deplibs_check_method == file_magic.
17769 file_magic_cmd=$lt_file_magic_cmd
17771 # Flag that allows shared libraries with undefined symbols to be built.
17772 allow_undefined_flag=$lt_allow_undefined_flag_F77
17774 # Flag that forces no undefined symbols.
17775 no_undefined_flag=$lt_no_undefined_flag_F77
17777 # Commands used to finish a libtool library installation in a directory.
17778 finish_cmds=$lt_finish_cmds
17780 # Same as above, but a single script fragment to be evaled but not shown.
17781 finish_eval=$lt_finish_eval
17783 # Take the output of nm and produce a listing of raw symbols and C names.
17784 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17786 # Transform the output of nm in a proper C declaration
17787 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17789 # Transform the output of nm in a C name address pair
17790 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17792 # This is the shared library runtime path variable.
17793 runpath_var=$runpath_var
17795 # This is the shared library path variable.
17796 shlibpath_var=$shlibpath_var
17798 # Is shlibpath searched before the hard-coded library search path?
17799 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17801 # How to hardcode a shared library path into an executable.
17802 hardcode_action=$hardcode_action_F77
17804 # Whether we should hardcode library paths into libraries.
17805 hardcode_into_libs=$hardcode_into_libs
17807 # Flag to hardcode \$libdir into a binary during linking.
17808 # This must work even if \$libdir does not exist.
17809 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17811 # If ld is used when linking, flag to hardcode \$libdir into
17812 # a binary during linking. This must work even if \$libdir does
17814 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17816 # Whether we need a single -rpath flag with a separated argument.
17817 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17819 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17820 # resulting binary.
17821 hardcode_direct=$hardcode_direct_F77
17823 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17824 # resulting binary.
17825 hardcode_minus_L=$hardcode_minus_L_F77
17827 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17828 # the resulting binary.
17829 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17831 # Set to yes if building a shared library automatically hardcodes DIR into the library
17832 # and all subsequent libraries and executables linked against it.
17833 hardcode_automatic=$hardcode_automatic_F77
17835 # Variables whose values should be saved in libtool wrapper scripts and
17836 # restored at relink time.
17837 variables_saved_for_relink="$variables_saved_for_relink"
17839 # Whether libtool must link a program against all its dependency libraries.
17840 link_all_deplibs=$link_all_deplibs_F77
17842 # Compile-time system search path for libraries
17843 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17845 # Run-time system search path for libraries
17846 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17848 # Fix the shell variable \$srcfile for the compiler.
17849 fix_srcfile_path="$fix_srcfile_path_F77"
17851 # Set to yes if exported symbols are required.
17852 always_export_symbols=$always_export_symbols_F77
17854 # The commands to list exported symbols.
17855 export_symbols_cmds=$lt_export_symbols_cmds_F77
17857 # The commands to extract the exported symbol list from a shared archive.
17858 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17860 # Symbols that should not be listed in the preloaded symbols.
17861 exclude_expsyms=$lt_exclude_expsyms_F77
17863 # Symbols that must always be exported.
17864 include_expsyms=$lt_include_expsyms_F77
17866 # ### END LIBTOOL TAG CONFIG: $tagname
17872 # If there is no Makefile yet, we rely on a make rule to execute
17873 # `config.status --recheck' to rerun these tests and create the
17874 # libtool script then.
17875 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17876 if test -f "$ltmain_in"; then
17877 test -f Makefile && make "$ltmain"
17883 ac_cpp='$CPP $CPPFLAGS'
17884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17896 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17900 # Source file extension for Java test sources.
17903 # Object file extension for compiled Java test sources.
17907 # Code to be used in simple compile tests
17908 lt_simple_compile_test_code="class foo {}\n"
17910 # Code to be used in simple link tests
17911 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17913 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17915 # If no C compiler was specified, use CC.
17918 # Allow CC to be a program name with arguments.
17922 # save warnings/boilerplate of simple test code
17923 ac_outfile=conftest.$ac_objext
17924 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17925 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
17926 _lt_compiler_boilerplate=`cat conftest.err`
17929 ac_outfile=conftest.$ac_objext
17930 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17931 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
17932 _lt_linker_boilerplate=`cat conftest.err`
17936 # Allow CC to be a program name with arguments.
17941 for cc_temp in $compiler""; do
17943 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17944 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17949 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17952 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17953 archive_cmds_need_lc_GCJ=no
17955 old_archive_cmds_GCJ=$old_archive_cmds
17958 lt_prog_compiler_no_builtin_flag_GCJ=
17960 if test "$GCC" = yes; then
17961 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17964 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17965 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17966 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17967 echo $ECHO_N "(cached) $ECHO_C" >&6
17969 lt_cv_prog_compiler_rtti_exceptions=no
17970 ac_outfile=conftest.$ac_objext
17971 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17972 lt_compiler_flag="-fno-rtti -fno-exceptions"
17973 # Insert the option either (1) after the last *FLAGS variable, or
17974 # (2) before a word containing "conftest.", or (3) at the end.
17975 # Note that $ac_compile itself does not contain backslashes and begins
17976 # with a dollar sign (not a hyphen), so the echo should work correctly.
17977 # The option is referenced via a variable to avoid confusing sed.
17978 lt_compile=`echo "$ac_compile" | $SED \
17979 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17980 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17981 -e 's:$: $lt_compiler_flag:'`
17982 (eval echo "\"\$as_me:17982: $lt_compile\"" >&5)
17983 (eval "$lt_compile" 2>conftest.err)
17985 cat conftest.err >&5
17986 echo "$as_me:17986: \$? = $ac_status" >&5
17987 if (exit $ac_status) && test -s "$ac_outfile"; then
17988 # The compiler can only warn and ignore the option if not recognized
17989 # So say no if there are warnings other than the usual output.
17990 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
17991 $SED '/^$/d' conftest.err >conftest.er2
17992 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
17993 lt_cv_prog_compiler_rtti_exceptions=yes
17999 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18000 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
18002 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18003 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18010 lt_prog_compiler_wl_GCJ=
18011 lt_prog_compiler_pic_GCJ=
18012 lt_prog_compiler_static_GCJ=
18014 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18015 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18017 if test "$GCC" = yes; then
18018 lt_prog_compiler_wl_GCJ='-Wl,'
18019 lt_prog_compiler_static_GCJ='-static'
18023 # All AIX code is PIC.
18024 if test "$host_cpu" = ia64; then
18025 # AIX 5 now supports IA64 processor
18026 lt_prog_compiler_static_GCJ='-Bstatic'
18031 # FIXME: we need at least 68020 code to build shared libraries, but
18032 # adding the `-m68020' flag to GCC prevents building anything better,
18034 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18037 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18038 # PIC is the default for these OSes.
18041 mingw* | pw32* | os2*)
18042 # This hack is so that the source file can tell whether it is being
18043 # built for inclusion in a dll (and should export symbols for example).
18044 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18047 darwin* | rhapsody*)
18048 # PIC is the default on this platform
18049 # Common symbols not allowed in MH_DYLIB files
18050 lt_prog_compiler_pic_GCJ='-fno-common'
18054 # Just because we use GCC doesn't mean we suddenly get shared libraries
18055 # on systems that don't support them.
18056 lt_prog_compiler_can_build_shared_GCJ=no
18061 if test -d /usr/nec; then
18062 lt_prog_compiler_pic_GCJ=-Kconform_pic
18067 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18068 # not for PA HP-UX.
18069 case "$host_cpu" in
18074 lt_prog_compiler_pic_GCJ='-fPIC'
18080 lt_prog_compiler_pic_GCJ='-fPIC'
18084 # PORTME Check for flag to pass linker flags through the system compiler.
18087 lt_prog_compiler_wl_GCJ='-Wl,'
18088 if test "$host_cpu" = ia64; then
18089 # AIX 5 now supports IA64 processor
18090 lt_prog_compiler_static_GCJ='-Bstatic'
18092 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18096 # PIC is the default on this platform
18097 # Common symbols not allowed in MH_DYLIB files
18098 case $cc_basename in
18100 lt_prog_compiler_pic_GCJ='-qnocommon'
18101 lt_prog_compiler_wl_GCJ='-Wl,'
18106 mingw* | pw32* | os2*)
18107 # This hack is so that the source file can tell whether it is being
18108 # built for inclusion in a dll (and should export symbols for example).
18109 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18112 hpux9* | hpux10* | hpux11*)
18113 lt_prog_compiler_wl_GCJ='-Wl,'
18114 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18115 # not for PA HP-UX.
18116 case "$host_cpu" in
18121 lt_prog_compiler_pic_GCJ='+Z'
18124 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18125 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18128 irix5* | irix6* | nonstopux*)
18129 lt_prog_compiler_wl_GCJ='-Wl,'
18130 # PIC (with -KPIC) is the default.
18131 lt_prog_compiler_static_GCJ='-non_shared'
18135 lt_prog_compiler_pic_GCJ='-KPIC'
18136 lt_prog_compiler_static_GCJ='-Bstatic'
18140 case $cc_basename in
18142 lt_prog_compiler_wl_GCJ='-Wl,'
18143 lt_prog_compiler_pic_GCJ='-KPIC'
18144 lt_prog_compiler_static_GCJ='-static'
18146 pgcc* | pgf77* | pgf90*)
18147 # Portland Group compilers (*not* the Pentium gcc compiler,
18148 # which looks to be a dead project)
18149 lt_prog_compiler_wl_GCJ='-Wl,'
18150 lt_prog_compiler_pic_GCJ='-fpic'
18151 lt_prog_compiler_static_GCJ='-static'
18154 lt_prog_compiler_wl_GCJ='-Wl,'
18155 # All Alpha code is PIC.
18156 lt_prog_compiler_static_GCJ='-non_shared'
18161 osf3* | osf4* | osf5*)
18162 lt_prog_compiler_wl_GCJ='-Wl,'
18163 # All OSF/1 code is PIC.
18164 lt_prog_compiler_static_GCJ='-non_shared'
18168 lt_prog_compiler_pic_GCJ='-Kpic'
18169 lt_prog_compiler_static_GCJ='-dn'
18173 lt_prog_compiler_pic_GCJ='-KPIC'
18174 lt_prog_compiler_static_GCJ='-Bstatic'
18175 case $cc_basename in
18176 f77* | f90* | f95*)
18177 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18179 lt_prog_compiler_wl_GCJ='-Wl,';;
18184 lt_prog_compiler_wl_GCJ='-Qoption ld '
18185 lt_prog_compiler_pic_GCJ='-PIC'
18186 lt_prog_compiler_static_GCJ='-Bstatic'
18189 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18190 lt_prog_compiler_wl_GCJ='-Wl,'
18191 lt_prog_compiler_pic_GCJ='-KPIC'
18192 lt_prog_compiler_static_GCJ='-Bstatic'
18196 if test -d /usr/nec ;then
18197 lt_prog_compiler_pic_GCJ='-Kconform_pic'
18198 lt_prog_compiler_static_GCJ='-Bstatic'
18203 lt_prog_compiler_wl_GCJ='-Wl,'
18204 lt_prog_compiler_can_build_shared_GCJ=no
18208 lt_prog_compiler_pic_GCJ='-pic'
18209 lt_prog_compiler_static_GCJ='-Bstatic'
18213 lt_prog_compiler_can_build_shared_GCJ=no
18218 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18219 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
18222 # Check to make sure the PIC flag actually works.
18224 if test -n "$lt_prog_compiler_pic_GCJ"; then
18226 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18227 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
18228 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18229 echo $ECHO_N "(cached) $ECHO_C" >&6
18231 lt_prog_compiler_pic_works_GCJ=no
18232 ac_outfile=conftest.$ac_objext
18233 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18234 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18235 # Insert the option either (1) after the last *FLAGS variable, or
18236 # (2) before a word containing "conftest.", or (3) at the end.
18237 # Note that $ac_compile itself does not contain backslashes and begins
18238 # with a dollar sign (not a hyphen), so the echo should work correctly.
18239 # The option is referenced via a variable to avoid confusing sed.
18240 lt_compile=`echo "$ac_compile" | $SED \
18241 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18242 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18243 -e 's:$: $lt_compiler_flag:'`
18244 (eval echo "\"\$as_me:18244: $lt_compile\"" >&5)
18245 (eval "$lt_compile" 2>conftest.err)
18247 cat conftest.err >&5
18248 echo "$as_me:18248: \$? = $ac_status" >&5
18249 if (exit $ac_status) && test -s "$ac_outfile"; then
18250 # The compiler can only warn and ignore the option if not recognized
18251 # So say no if there are warnings other than the usual output.
18252 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
18253 $SED '/^$/d' conftest.err >conftest.er2
18254 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
18255 lt_prog_compiler_pic_works_GCJ=yes
18261 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18262 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
18264 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18265 case $lt_prog_compiler_pic_GCJ in
18267 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18270 lt_prog_compiler_pic_GCJ=
18271 lt_prog_compiler_can_build_shared_GCJ=no
18276 # For platforms which do not support PIC, -DPIC is meaningless:
18278 lt_prog_compiler_pic_GCJ=
18281 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18285 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18286 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18287 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18288 echo $ECHO_N "(cached) $ECHO_C" >&6
18290 lt_cv_prog_compiler_c_o_GCJ=no
18291 $rm -r conftest 2>/dev/null
18295 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18297 lt_compiler_flag="-o out/conftest2.$ac_objext"
18298 # Insert the option either (1) after the last *FLAGS variable, or
18299 # (2) before a word containing "conftest.", or (3) at the end.
18300 # Note that $ac_compile itself does not contain backslashes and begins
18301 # with a dollar sign (not a hyphen), so the echo should work correctly.
18302 lt_compile=`echo "$ac_compile" | $SED \
18303 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18304 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18305 -e 's:$: $lt_compiler_flag:'`
18306 (eval echo "\"\$as_me:18306: $lt_compile\"" >&5)
18307 (eval "$lt_compile" 2>out/conftest.err)
18309 cat out/conftest.err >&5
18310 echo "$as_me:18310: \$? = $ac_status" >&5
18311 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18313 # The compiler can only warn and ignore the option if not recognized
18314 # So say no if there are warnings
18315 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
18316 $SED '/^$/d' out/conftest.err >out/conftest.er2
18317 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18318 lt_cv_prog_compiler_c_o_GCJ=yes
18323 # SGI C++ compiler will create directory out/ii_files/ for
18324 # template instantiation
18325 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18326 $rm out/* && rmdir out
18332 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18333 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
18336 hard_links="nottested"
18337 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18338 # do not overwrite the value of need_locks provided by the user
18339 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18340 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18343 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18345 ln conftest.a conftest.b 2>&5 || hard_links=no
18346 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18347 echo "$as_me:$LINENO: result: $hard_links" >&5
18348 echo "${ECHO_T}$hard_links" >&6
18349 if test "$hard_links" = no; then
18350 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18351 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18358 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18359 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18362 allow_undefined_flag_GCJ=
18363 enable_shared_with_static_runtimes_GCJ=no
18365 archive_expsym_cmds_GCJ=
18366 old_archive_From_new_cmds_GCJ=
18367 old_archive_from_expsyms_cmds_GCJ=
18368 export_dynamic_flag_spec_GCJ=
18369 whole_archive_flag_spec_GCJ=
18370 thread_safe_flag_spec_GCJ=
18371 hardcode_libdir_flag_spec_GCJ=
18372 hardcode_libdir_flag_spec_ld_GCJ=
18373 hardcode_libdir_separator_GCJ=
18374 hardcode_direct_GCJ=no
18375 hardcode_minus_L_GCJ=no
18376 hardcode_shlibpath_var_GCJ=unsupported
18377 link_all_deplibs_GCJ=unknown
18378 hardcode_automatic_GCJ=no
18380 module_expsym_cmds_GCJ=
18381 always_export_symbols_GCJ=no
18382 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18383 # include_expsyms should be a list of space-separated symbols to be *always*
18384 # included in the symbol list
18385 include_expsyms_GCJ=
18386 # exclude_expsyms can be an extended regexp of symbols to exclude
18387 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18388 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18389 # as well as any symbol that contains `d'.
18390 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18391 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18392 # platforms (ab)use it in PIC code, but their linkers get confused if
18393 # the symbol is explicitly referenced. Since portable code cannot
18394 # rely on this symbol name, it's probably fine to never include it in
18395 # preloaded symbol tables.
18396 extract_expsyms_cmds=
18397 # Just being paranoid about ensuring that cc_basename is set.
18398 for cc_temp in $compiler""; do
18400 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18401 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18406 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18409 cygwin* | mingw* | pw32*)
18410 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18411 # When not using gcc, we currently assume that we are using
18412 # Microsoft Visual C++.
18413 if test "$GCC" != yes; then
18423 if test "$with_gnu_ld" = yes; then
18424 # If archive_cmds runs LD, not CC, wlarc should be empty
18427 # Set some defaults for GNU ld with shared library support. These
18428 # are reset later if shared libraries are not supported. Putting them
18429 # here allows them to be overridden if necessary.
18430 runpath_var=LD_RUN_PATH
18431 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18432 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18433 # ancient GNU ld didn't support --whole-archive et. al.
18434 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18435 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18437 whole_archive_flag_spec_GCJ=
18439 supports_anon_versioning=no
18440 case `$LD -v 2>/dev/null` in
18441 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18442 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18443 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18444 *\ 2.11.*) ;; # other 2.11 versions
18445 *) supports_anon_versioning=yes ;;
18448 # See if GNU ld supports shared libraries.
18450 aix3* | aix4* | aix5*)
18451 # On AIX/PPC, the GNU linker is very broken
18452 if test "$host_cpu" != ia64; then
18456 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18457 *** to be unable to reliably create shared libraries on AIX.
18458 *** Therefore, libtool is disabling shared libraries support. If you
18459 *** really care for shared libraries, you may want to modify your PATH
18460 *** so that a non-GNU linker is found, and then restart.
18467 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)'
18468 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18469 hardcode_minus_L_GCJ=yes
18471 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18472 # that the semantics of dynamic libraries on AmigaOS, at least up
18473 # to version 4, is to share data among multiple programs linked
18474 # with the same dynamic library. Since this doesn't match the
18475 # behavior of shared libraries on other platforms, we can't use
18481 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18482 allow_undefined_flag_GCJ=unsupported
18483 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18484 # support --undefined. This deserves some investigation. FIXME
18485 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18491 cygwin* | mingw* | pw32*)
18492 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18493 # as there is no search path for DLLs.
18494 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18495 allow_undefined_flag_GCJ=unsupported
18496 always_export_symbols_GCJ=no
18497 enable_shared_with_static_runtimes_GCJ=yes
18498 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18500 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18501 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
18502 # If the export-symbols file already is a .def file (1st line
18503 # is EXPORTS), use it as is; otherwise, prepend...
18504 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18505 cp $export_symbols $output_objdir/$soname.def;
18507 echo EXPORTS > $output_objdir/$soname.def;
18508 cat $export_symbols >> $output_objdir/$soname.def;
18510 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
18517 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18519 case $cc_basename,$host_cpu in
18520 pgcc*) # Portland Group C compiler
18521 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'
18522 tmp_addflag=' $pic_flag'
18524 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
18525 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'
18526 tmp_addflag=' $pic_flag -Mnomain' ;;
18527 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18528 tmp_addflag=' -i_dynamic' ;;
18529 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18530 tmp_addflag=' -i_dynamic -nofor_main' ;;
18531 ifc* | ifort*) # Intel Fortran compiler
18532 tmp_addflag=' -nofor_main' ;;
18534 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18536 if test $supports_anon_versioning = yes; then
18537 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18538 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18539 $echo "local: *; };" >> $output_objdir/$libname.ver~
18540 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18548 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18549 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18552 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18553 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18558 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18562 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18563 *** create shared libraries on Solaris systems. Therefore, libtool
18564 *** is disabling shared libraries support. We urge you to upgrade GNU
18565 *** binutils to release 2.9.1 or newer. Another option is to modify
18566 *** your PATH or compiler configuration so that the native linker is
18567 *** used, and then restart.
18570 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18571 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18572 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18579 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18581 hardcode_direct_GCJ=yes
18582 hardcode_shlibpath_var_GCJ=no
18586 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18587 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18588 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18595 if test "$ld_shlibs_GCJ" = no; then
18597 hardcode_libdir_flag_spec_GCJ=
18598 export_dynamic_flag_spec_GCJ=
18599 whole_archive_flag_spec_GCJ=
18602 # PORTME fill in a description of your system's linker (not GNU ld)
18605 allow_undefined_flag_GCJ=unsupported
18606 always_export_symbols_GCJ=yes
18607 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'
18608 # Note: this linker hardcodes the directories in LIBPATH if there
18609 # are no directories specified by -L.
18610 hardcode_minus_L_GCJ=yes
18611 if test "$GCC" = yes && test -z "$link_static_flag"; then
18612 # Neither direct hardcoding nor static linking is supported with a
18614 hardcode_direct_GCJ=unsupported
18619 if test "$host_cpu" = ia64; then
18620 # On IA64, the linker does run time linking by default, so we don't
18621 # have to do anything special.
18622 aix_use_runtimelinking=no
18623 exp_sym_flag='-Bexport'
18626 # If we're using GNU nm, then we don't want the "-C" option.
18627 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18628 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18629 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'
18631 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'
18633 aix_use_runtimelinking=no
18635 # Test if we are trying to use run time linking or normal
18636 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18637 # need to do runtime linking.
18638 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18639 for ld_flag in $LDFLAGS; do
18640 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18641 aix_use_runtimelinking=yes
18647 exp_sym_flag='-bexport'
18648 no_entry_flag='-bnoentry'
18651 # When large executables or shared objects are built, AIX ld can
18652 # have problems creating the table of contents. If linking a library
18653 # or program results in "error TOC overflow" add -mminimal-toc to
18654 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18655 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18657 archive_cmds_GCJ=''
18658 hardcode_direct_GCJ=yes
18659 hardcode_libdir_separator_GCJ=':'
18660 link_all_deplibs_GCJ=yes
18662 if test "$GCC" = yes; then
18663 case $host_os in aix4.[012]|aix4.[012].*)
18664 # We only want to do this on AIX 4.2 and lower, the check
18665 # below for broken collect2 doesn't work under 4.3+
18666 collect2name=`${CC} -print-prog-name=collect2`
18667 if test -f "$collect2name" && \
18668 strings "$collect2name" | grep resolve_lib_name >/dev/null
18670 # We have reworked collect2
18671 hardcode_direct_GCJ=yes
18673 # We have old collect2
18674 hardcode_direct_GCJ=unsupported
18675 # It fails to find uninstalled libraries when the uninstalled
18676 # path is not listed in the libpath. Setting hardcode_minus_L
18677 # to unsupported forces relinking
18678 hardcode_minus_L_GCJ=yes
18679 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18680 hardcode_libdir_separator_GCJ=
18683 shared_flag='-shared'
18684 if test "$aix_use_runtimelinking" = yes; then
18685 shared_flag="$shared_flag "'${wl}-G'
18689 if test "$host_cpu" = ia64; then
18690 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18691 # chokes on -Wl,-G. The following line is correct:
18694 if test "$aix_use_runtimelinking" = yes; then
18695 shared_flag='${wl}-G'
18697 shared_flag='${wl}-bM:SRE'
18702 # It seems that -bexpall does not export symbols beginning with
18703 # underscore (_), so it is better to generate a list of symbols to export.
18704 always_export_symbols_GCJ=yes
18705 if test "$aix_use_runtimelinking" = yes; then
18706 # Warning - without using the other runtime loading flags (-brtl),
18707 # -berok will link without error, but may produce a broken library.
18708 allow_undefined_flag_GCJ='-berok'
18709 # Determine the default libpath from the value encoded in an empty executable.
18710 cat >conftest.$ac_ext <<_ACEOF
18713 cat confdefs.h >>conftest.$ac_ext
18714 cat >>conftest.$ac_ext <<_ACEOF
18715 /* end confdefs.h. */
18725 rm -f conftest.$ac_objext conftest$ac_exeext
18726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18727 (eval $ac_link) 2>conftest.er1
18729 grep -v '^ *+' conftest.er1 >conftest.err
18731 cat conftest.err >&5
18732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18733 (exit $ac_status); } &&
18734 { ac_try='test -z "$ac_c_werror_flag"
18735 || test ! -s conftest.err'
18736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18737 (eval $ac_try) 2>&5
18739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18740 (exit $ac_status); }; } &&
18741 { ac_try='test -s conftest$ac_exeext'
18742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18743 (eval $ac_try) 2>&5
18745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18746 (exit $ac_status); }; }; then
18748 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18750 # Check for a 64-bit object if we didn't find anything.
18751 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; }
18754 echo "$as_me: failed program was:" >&5
18755 sed 's/^/| /' conftest.$ac_ext >&5
18758 rm -f conftest.err conftest.$ac_objext \
18759 conftest$ac_exeext conftest.$ac_ext
18760 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18762 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18763 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"
18765 if test "$host_cpu" = ia64; then
18766 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18767 allow_undefined_flag_GCJ="-z nodefs"
18768 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"
18770 # Determine the default libpath from the value encoded in an empty executable.
18771 cat >conftest.$ac_ext <<_ACEOF
18774 cat confdefs.h >>conftest.$ac_ext
18775 cat >>conftest.$ac_ext <<_ACEOF
18776 /* end confdefs.h. */
18786 rm -f conftest.$ac_objext conftest$ac_exeext
18787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18788 (eval $ac_link) 2>conftest.er1
18790 grep -v '^ *+' conftest.er1 >conftest.err
18792 cat conftest.err >&5
18793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794 (exit $ac_status); } &&
18795 { ac_try='test -z "$ac_c_werror_flag"
18796 || test ! -s conftest.err'
18797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18798 (eval $ac_try) 2>&5
18800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801 (exit $ac_status); }; } &&
18802 { ac_try='test -s conftest$ac_exeext'
18803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18804 (eval $ac_try) 2>&5
18806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18807 (exit $ac_status); }; }; then
18809 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18811 # Check for a 64-bit object if we didn't find anything.
18812 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; }
18815 echo "$as_me: failed program was:" >&5
18816 sed 's/^/| /' conftest.$ac_ext >&5
18819 rm -f conftest.err conftest.$ac_objext \
18820 conftest$ac_exeext conftest.$ac_ext
18821 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18823 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18824 # Warning - without using the other run time loading flags,
18825 # -berok will link without error, but may produce a broken library.
18826 no_undefined_flag_GCJ=' ${wl}-bernotok'
18827 allow_undefined_flag_GCJ=' ${wl}-berok'
18828 # -bexpall does not export symbols beginning with underscore (_)
18829 always_export_symbols_GCJ=yes
18830 # Exported symbols can be pulled into shared objects from archives
18831 whole_archive_flag_spec_GCJ=' '
18832 archive_cmds_need_lc_GCJ=yes
18833 # This is similar to how AIX traditionally builds it's shared libraries.
18834 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'
18840 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)'
18841 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18842 hardcode_minus_L_GCJ=yes
18843 # see comment about different semantics on the GNU ld section
18848 export_dynamic_flag_spec_GCJ=-rdynamic
18851 cygwin* | mingw* | pw32*)
18852 # When not using gcc, we currently assume that we are using
18853 # Microsoft Visual C++.
18854 # hardcode_libdir_flag_spec is actually meaningless, as there is
18855 # no search path for DLLs.
18856 hardcode_libdir_flag_spec_GCJ=' '
18857 allow_undefined_flag_GCJ=unsupported
18858 # Tell ltmain to make .lib files, not .a files.
18860 # Tell ltmain to make .dll files, not .so files.
18862 # FIXME: Setting linknames here is a bad hack.
18863 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18864 # The linker will automatically build a .lib file if we build a DLL.
18865 old_archive_From_new_cmds_GCJ='true'
18866 # FIXME: Should let the user specify the lib program.
18867 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18868 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18869 enable_shared_with_static_runtimes_GCJ=yes
18872 darwin* | rhapsody*)
18874 rhapsody* | darwin1.[012])
18875 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18878 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18879 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18881 case ${MACOSX_DEPLOYMENT_TARGET} in
18883 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18886 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18892 archive_cmds_need_lc_GCJ=no
18893 hardcode_direct_GCJ=no
18894 hardcode_automatic_GCJ=yes
18895 hardcode_shlibpath_var_GCJ=unsupported
18896 whole_archive_flag_spec_GCJ=''
18897 link_all_deplibs_GCJ=yes
18898 if test "$GCC" = yes ; then
18899 output_verbose_link_cmd='echo'
18900 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18901 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18902 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18903 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}'
18904 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}'
18906 case $cc_basename in
18908 output_verbose_link_cmd='echo'
18909 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18910 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18911 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18912 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}'
18913 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18923 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18924 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18925 hardcode_shlibpath_var_GCJ=no
18932 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18933 # support. Future versions do this automatically, but an explicit c++rt0.o
18934 # does not break anything, and helps significantly (at the cost of a little
18937 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18938 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18939 hardcode_direct_GCJ=yes
18940 hardcode_shlibpath_var_GCJ=no
18943 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18945 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18946 hardcode_direct_GCJ=yes
18947 hardcode_minus_L_GCJ=yes
18948 hardcode_shlibpath_var_GCJ=no
18951 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18952 freebsd* | kfreebsd*-gnu | dragonfly*)
18953 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18954 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18955 hardcode_direct_GCJ=yes
18956 hardcode_shlibpath_var_GCJ=no
18960 if test "$GCC" = yes; then
18961 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'
18963 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'
18965 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18966 hardcode_libdir_separator_GCJ=:
18967 hardcode_direct_GCJ=yes
18969 # hardcode_minus_L: Not really in the search PATH,
18970 # but as the default location of the library.
18971 hardcode_minus_L_GCJ=yes
18972 export_dynamic_flag_spec_GCJ='${wl}-E'
18976 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18977 case "$host_cpu" in
18979 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18982 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18986 case "$host_cpu" in
18988 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
18991 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18995 if test "$with_gnu_ld" = no; then
18996 case "$host_cpu" in
18998 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18999 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19000 hardcode_libdir_separator_GCJ=:
19001 hardcode_direct_GCJ=no
19002 hardcode_shlibpath_var_GCJ=no
19005 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19006 hardcode_direct_GCJ=no
19007 hardcode_shlibpath_var_GCJ=no
19009 # hardcode_minus_L: Not really in the search PATH,
19010 # but as the default location of the library.
19011 hardcode_minus_L_GCJ=yes
19014 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19015 hardcode_libdir_separator_GCJ=:
19016 hardcode_direct_GCJ=yes
19017 export_dynamic_flag_spec_GCJ='${wl}-E'
19019 # hardcode_minus_L: Not really in the search PATH,
19020 # but as the default location of the library.
19021 hardcode_minus_L_GCJ=yes
19027 irix5* | irix6* | nonstopux*)
19028 if test "$GCC" = yes; then
19029 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'
19031 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'
19032 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19034 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19035 hardcode_libdir_separator_GCJ=:
19036 link_all_deplibs_GCJ=yes
19040 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19041 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19043 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19045 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19046 hardcode_direct_GCJ=yes
19047 hardcode_shlibpath_var_GCJ=no
19051 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19052 hardcode_direct_GCJ=yes
19053 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19054 hardcode_libdir_separator_GCJ=:
19055 hardcode_shlibpath_var_GCJ=no
19059 hardcode_direct_GCJ=yes
19060 hardcode_shlibpath_var_GCJ=no
19061 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19062 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19063 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19064 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19065 export_dynamic_flag_spec_GCJ='${wl}-E'
19068 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19069 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19070 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19073 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19074 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19081 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19082 hardcode_minus_L_GCJ=yes
19083 allow_undefined_flag_GCJ=unsupported
19084 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'
19085 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19089 if test "$GCC" = yes; then
19090 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19091 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'
19093 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19094 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'
19096 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19097 hardcode_libdir_separator_GCJ=:
19100 osf4* | osf5*) # as osf3* with the addition of -msym flag
19101 if test "$GCC" = yes; then
19102 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19103 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'
19104 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19106 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19107 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'
19108 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~
19109 $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'
19111 # Both c and cxx compiler support -rpath directly
19112 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19114 hardcode_libdir_separator_GCJ=:
19118 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19119 hardcode_shlibpath_var_GCJ=no
19120 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19121 runpath_var=LD_RUN_PATH
19122 hardcode_runpath_var=yes
19126 no_undefined_flag_GCJ=' -z text'
19127 if test "$GCC" = yes; then
19129 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19130 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19131 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19134 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19135 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19136 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19138 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19139 hardcode_shlibpath_var_GCJ=no
19141 solaris2.[0-5] | solaris2.[0-5].*) ;;
19143 # The compiler driver will combine linker options so we
19144 # cannot just pass the convience library names through
19145 # without $wl, iff we do not link with $LD.
19146 # Luckily, gcc supports the same syntax we need for Sun Studio.
19147 # Supported since Solaris 2.6 (maybe 2.5.1?)
19150 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19152 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' ;;
19155 link_all_deplibs_GCJ=yes
19159 if test "x$host_vendor" = xsequent; then
19160 # Use $CC to link under sequent, because it throws in some extra .o
19161 # files that make .init and .fini sections work.
19162 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19164 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19166 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19167 hardcode_direct_GCJ=yes
19168 hardcode_minus_L_GCJ=yes
19169 hardcode_shlibpath_var_GCJ=no
19173 case $host_vendor in
19175 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19176 hardcode_direct_GCJ=yes # is this really true???
19179 ## LD is ld it makes a PLAMLIB
19180 ## CC just makes a GrossModule.
19181 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19182 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19183 hardcode_direct_GCJ=no
19186 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19187 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19190 runpath_var='LD_RUN_PATH'
19191 hardcode_shlibpath_var_GCJ=no
19195 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19196 hardcode_shlibpath_var_GCJ=no
19197 export_dynamic_flag_spec_GCJ='-Bexport'
19201 if test -d /usr/nec; then
19202 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19203 hardcode_shlibpath_var_GCJ=no
19204 runpath_var=LD_RUN_PATH
19205 hardcode_runpath_var=yes
19211 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19212 hardcode_direct_GCJ=yes
19213 hardcode_minus_L_GCJ=no
19214 hardcode_shlibpath_var_GCJ=no
19215 hardcode_runpath_var=yes
19216 runpath_var=LD_RUN_PATH
19219 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19220 no_undefined_flag_GCJ='${wl}-z ${wl}text'
19221 if test "$GCC" = yes; then
19222 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19224 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19226 runpath_var='LD_RUN_PATH'
19227 hardcode_shlibpath_var_GCJ=no
19231 no_undefined_flag_GCJ=' -z text'
19232 # $CC -shared without GNU ld will not create a library from C++
19233 # object files and a static libstdc++, better avoid it by now
19234 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19235 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19236 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19237 hardcode_libdir_flag_spec_GCJ=
19238 hardcode_shlibpath_var_GCJ=no
19239 runpath_var='LD_RUN_PATH'
19243 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19244 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19245 hardcode_shlibpath_var_GCJ=no
19254 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19255 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
19256 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19258 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19259 if test "$GCC" = yes; then
19260 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19264 # Do we need to explicitly link libc?
19266 case "x$archive_cmds_need_lc_GCJ" in
19268 # Assume -lc should be added
19269 archive_cmds_need_lc_GCJ=yes
19271 if test "$enable_shared" = yes && test "$GCC" = yes; then
19272 case $archive_cmds_GCJ in
19274 # FIXME: we may have to deal with multi-command sequences.
19277 # Test whether the compiler implicitly links with -lc since on some
19278 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19279 # to ld, don't add -lc before -lgcc.
19280 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19281 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19283 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19286 (eval $ac_compile) 2>&5
19288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289 (exit $ac_status); } 2>conftest.err; then
19292 libobjs=conftest.$ac_objext
19294 wl=$lt_prog_compiler_wl_GCJ
19300 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19301 allow_undefined_flag_GCJ=
19302 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19303 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306 (exit $ac_status); }
19308 archive_cmds_need_lc_GCJ=no
19310 archive_cmds_need_lc_GCJ=yes
19312 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19314 cat conftest.err 1>&5
19317 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19318 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
19325 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19326 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19327 library_names_spec=
19328 libname_spec='lib$name'
19332 postuninstall_cmds=
19336 shlibpath_overrides_runpath=unknown
19338 dynamic_linker="$host_os ld.so"
19339 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19340 if test "$GCC" = yes; then
19341 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19342 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19343 # if the path contains ";" then we assume it to be the separator
19344 # otherwise default to the standard path separator (i.e. ":") - it is
19345 # assumed that no part of a normal pathname contains ";" but that should
19346 # okay in the real world where ";" in dirpaths is itself problematic.
19347 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19349 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19352 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19354 need_lib_prefix=unknown
19355 hardcode_into_libs=no
19357 # when you set need_version to no, make sure it does not cause -set_version
19358 # flags to be left without arguments
19359 need_version=unknown
19364 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19365 shlibpath_var=LIBPATH
19367 # AIX 3 has no versioning support, so we append a major version to the name.
19368 soname_spec='${libname}${release}${shared_ext}$major'
19375 hardcode_into_libs=yes
19376 if test "$host_cpu" = ia64; then
19377 # AIX 5 supports IA64
19378 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19379 shlibpath_var=LD_LIBRARY_PATH
19381 # With GCC up to 2.95.x, collect2 would create an import file
19382 # for dependence libraries. The import file would start with
19383 # the line `#! .'. This would cause the generated library to
19384 # depend on `.', always an invalid library. This was fixed in
19385 # development snapshots of GCC prior to 3.0.
19387 aix4 | aix4.[01] | aix4.[01].*)
19388 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19390 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19393 can_build_shared=no
19397 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19398 # soname into executable. Probably we can add versioning support to
19399 # collect2, so additional links can be useful in future.
19400 if test "$aix_use_runtimelinking" = yes; then
19401 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19402 # instead of lib<name>.a to let people know that these are not
19403 # typical AIX shared libraries.
19404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19406 # We preserve .a as extension for shared libraries through AIX4.2
19407 # and later when we are not doing run time linking.
19408 library_names_spec='${libname}${release}.a $libname.a'
19409 soname_spec='${libname}${release}${shared_ext}$major'
19411 shlibpath_var=LIBPATH
19416 library_names_spec='$libname.ixlibrary $libname.a'
19417 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19418 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'
19422 library_names_spec='${libname}${shared_ext}'
19423 dynamic_linker="$host_os ld.so"
19424 shlibpath_var=LIBRARY_PATH
19430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19431 soname_spec='${libname}${release}${shared_ext}$major'
19432 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19433 shlibpath_var=LD_LIBRARY_PATH
19434 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19435 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19436 # the default ld.so.conf also contains /usr/contrib/lib and
19437 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19438 # libtool to hard-code these into programs
19441 cygwin* | mingw* | pw32*)
19442 version_type=windows
19447 case $GCC,$host_os in
19448 yes,cygwin* | yes,mingw* | yes,pw32*)
19449 library_names_spec='$libname.dll.a'
19450 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19451 postinstall_cmds='base_file=`basename \${file}`~
19452 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19453 dldir=$destdir/`dirname \$dlpath`~
19454 test -d \$dldir || mkdir -p \$dldir~
19455 $install_prog $dir/$dlname \$dldir/$dlname'
19456 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19457 dlpath=$dir/\$dldll~
19459 shlibpath_overrides_runpath=yes
19463 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19464 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19465 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19468 # MinGW DLLs use traditional 'lib' prefix
19469 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19470 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19471 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19472 # It is most probably a Windows format PATH printed by
19473 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19474 # path with ; separators, and with drive letters. We can handle the
19475 # drive letters (cygwin fileutils understands them), so leave them,
19476 # especially as we might pass files found there to a mingw objdump,
19477 # which wouldn't understand a cygwinified path. Ahh.
19478 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19480 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19484 # pw32 DLLs use 'pw' prefix rather than 'lib'
19485 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19491 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19494 dynamic_linker='Win32 ld.exe'
19495 # FIXME: first we should search . and the directory the executable is in
19499 darwin* | rhapsody*)
19500 dynamic_linker="$host_os dyld"
19501 version_type=darwin
19504 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19505 soname_spec='${libname}${release}${major}$shared_ext'
19506 shlibpath_overrides_runpath=yes
19507 shlibpath_var=DYLD_LIBRARY_PATH
19508 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
19509 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19510 if test "$GCC" = yes; then
19511 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"`
19513 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19515 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19523 soname_spec='${libname}${release}${shared_ext}$major'
19524 shlibpath_var=LD_LIBRARY_PATH
19535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19536 soname_spec='${libname}${release}${shared_ext}$major'
19537 shlibpath_var=LD_LIBRARY_PATH
19538 shlibpath_overrides_runpath=no
19539 hardcode_into_libs=yes
19540 dynamic_linker='GNU ld.so'
19543 freebsd* | dragonfly*)
19544 # DragonFly does not have aout. When/if they implement a new
19545 # versioning mechanism, adjust this.
19546 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
19547 version_type=freebsd-$objformat
19548 case $version_type in
19550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19555 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19559 shlibpath_var=LD_LIBRARY_PATH
19562 shlibpath_overrides_runpath=yes
19564 freebsd3.[01]* | freebsdelf3.[01]*)
19565 shlibpath_overrides_runpath=yes
19566 hardcode_into_libs=yes
19569 shlibpath_overrides_runpath=no
19570 hardcode_into_libs=yes
19579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19580 soname_spec='${libname}${release}${shared_ext}$major'
19581 shlibpath_var=LD_LIBRARY_PATH
19582 hardcode_into_libs=yes
19585 hpux9* | hpux10* | hpux11*)
19586 # Give a soname corresponding to the major version so that dld.sl refuses to
19587 # link against other versions.
19591 case "$host_cpu" in
19594 hardcode_into_libs=yes
19595 dynamic_linker="$host_os dld.so"
19596 shlibpath_var=LD_LIBRARY_PATH
19597 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19599 soname_spec='${libname}${release}${shared_ext}$major'
19600 if test "X$HPUX_IA64_MODE" = X32; then
19601 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19603 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19605 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19609 hardcode_into_libs=yes
19610 dynamic_linker="$host_os dld.sl"
19611 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19612 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19614 soname_spec='${libname}${release}${shared_ext}$major'
19615 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19616 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19620 dynamic_linker="$host_os dld.sl"
19621 shlibpath_var=SHLIB_PATH
19622 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19624 soname_spec='${libname}${release}${shared_ext}$major'
19627 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19628 postinstall_cmds='chmod 555 $lib'
19631 irix5* | irix6* | nonstopux*)
19633 nonstopux*) version_type=nonstopux ;;
19635 if test "$lt_cv_prog_gnu_ld" = yes; then
19643 soname_spec='${libname}${release}${shared_ext}$major'
19644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19646 irix5* | nonstopux*)
19647 libsuff= shlibsuff=
19650 case $LD in # libtool.m4 will add one of these switches to LD
19651 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19652 libsuff= shlibsuff= libmagic=32-bit;;
19653 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19654 libsuff=32 shlibsuff=N32 libmagic=N32;;
19655 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19656 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19657 *) libsuff= shlibsuff= libmagic=never-match;;
19661 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19662 shlibpath_overrides_runpath=no
19663 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19664 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19665 hardcode_into_libs=yes
19668 # No shared lib support for Linux oldld, aout, or coff.
19669 linux*oldld* | linux*aout* | linux*coff*)
19673 # This must be Linux ELF.
19678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19679 soname_spec='${libname}${release}${shared_ext}$major'
19680 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19681 shlibpath_var=LD_LIBRARY_PATH
19682 shlibpath_overrides_runpath=no
19683 # This implies no fast_install, which is unacceptable.
19684 # Some rework will be needed to allow for fast_install
19685 # before this can be enabled.
19686 hardcode_into_libs=yes
19688 # Append ld.so.conf contents to the search path
19689 if test -f /etc/ld.so.conf; then
19690 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' ' '`
19691 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19694 # We used to test for /lib/ld.so.1 and disable shared libraries on
19695 # powerpc, because MkLinux only supported shared libraries with the
19696 # GNU dynamic linker. Since this was broken with cross compilers,
19697 # most powerpc-linux boxes support dynamic linking these days and
19698 # people can always --disable-shared, the test was removed, and we
19699 # assume the GNU/Linux dynamic linker is in use.
19700 dynamic_linker='GNU/Linux ld.so'
19707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19708 soname_spec='${libname}${release}${shared_ext}$major'
19709 shlibpath_var=LD_LIBRARY_PATH
19710 shlibpath_overrides_runpath=no
19711 hardcode_into_libs=yes
19712 dynamic_linker='GNU ld.so'
19719 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19721 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19722 dynamic_linker='NetBSD (a.out) ld.so'
19724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19725 soname_spec='${libname}${release}${shared_ext}$major'
19726 dynamic_linker='NetBSD ld.elf_so'
19728 shlibpath_var=LD_LIBRARY_PATH
19729 shlibpath_overrides_runpath=yes
19730 hardcode_into_libs=yes
19735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19736 shlibpath_var=LD_LIBRARY_PATH
19737 shlibpath_overrides_runpath=yes
19744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19745 soname_spec='${libname}${release}${shared_ext}$major'
19746 shlibpath_var=LD_LIBRARY_PATH
19747 shlibpath_overrides_runpath=yes
19753 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19755 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19756 *) need_version=no ;;
19758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19759 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19760 shlibpath_var=LD_LIBRARY_PATH
19761 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19763 openbsd2.[89] | openbsd2.[89].*)
19764 shlibpath_overrides_runpath=no
19767 shlibpath_overrides_runpath=yes
19771 shlibpath_overrides_runpath=yes
19776 libname_spec='$name'
19779 library_names_spec='$libname${shared_ext} $libname.a'
19780 dynamic_linker='OS/2 ld.exe'
19781 shlibpath_var=LIBPATH
19784 osf3* | osf4* | osf5*)
19788 soname_spec='${libname}${release}${shared_ext}$major'
19789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19790 shlibpath_var=LD_LIBRARY_PATH
19791 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19792 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19797 soname_spec='${libname}${release}${shared_ext}$major'
19798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19799 shlibpath_var=LD_LIBRARY_PATH
19806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19807 soname_spec='${libname}${release}${shared_ext}$major'
19808 shlibpath_var=LD_LIBRARY_PATH
19809 shlibpath_overrides_runpath=yes
19810 hardcode_into_libs=yes
19811 # ldd complains unless libraries are executable
19812 postinstall_cmds='chmod +x $lib'
19817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19818 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19819 shlibpath_var=LD_LIBRARY_PATH
19820 shlibpath_overrides_runpath=yes
19821 if test "$with_gnu_ld" = yes; then
19827 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19830 soname_spec='${libname}${release}${shared_ext}$major'
19831 shlibpath_var=LD_LIBRARY_PATH
19832 case $host_vendor in
19834 shlibpath_overrides_runpath=no
19836 export_dynamic_flag_spec='${wl}-Blargedynsym'
19837 runpath_var=LD_RUN_PATH
19845 shlibpath_overrides_runpath=no
19846 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19852 if test -d /usr/nec ;then
19854 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19855 soname_spec='$libname${shared_ext}.$major'
19856 shlibpath_var=LD_LIBRARY_PATH
19862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19863 soname_spec='${libname}${release}${shared_ext}$major'
19864 shlibpath_var=LD_LIBRARY_PATH
19871 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19872 echo "${ECHO_T}$dynamic_linker" >&6
19873 test "$dynamic_linker" = no && can_build_shared=no
19875 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19876 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19877 hardcode_action_GCJ=
19878 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19879 test -n "$runpath_var_GCJ" || \
19880 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19882 # We can hardcode non-existant directories.
19883 if test "$hardcode_direct_GCJ" != no &&
19884 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19885 # have to relink, otherwise we might link with an installed library
19886 # when we should be linking with a yet-to-be-installed one
19887 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19888 test "$hardcode_minus_L_GCJ" != no; then
19889 # Linking always hardcodes the temporary library directory.
19890 hardcode_action_GCJ=relink
19892 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19893 hardcode_action_GCJ=immediate
19896 # We cannot hardcode anything, or else we can only hardcode existing
19898 hardcode_action_GCJ=unsupported
19900 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19901 echo "${ECHO_T}$hardcode_action_GCJ" >&6
19903 if test "$hardcode_action_GCJ" = relink; then
19904 # Fast installation is not supported
19905 enable_fast_install=no
19906 elif test "$shlibpath_overrides_runpath" = yes ||
19907 test "$enable_shared" = no; then
19908 # Fast installation is not necessary
19909 enable_fast_install=needless
19914 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19915 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19916 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
19917 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19918 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19919 echo "$as_me:$LINENO: result: yes" >&5
19920 echo "${ECHO_T}yes" >&6
19922 # FIXME - insert some real tests, host_os isn't really good enough
19925 if test -n "$STRIP" ; then
19926 striplib="$STRIP -x"
19927 echo "$as_me:$LINENO: result: yes" >&5
19928 echo "${ECHO_T}yes" >&6
19930 echo "$as_me:$LINENO: result: no" >&5
19931 echo "${ECHO_T}no" >&6
19935 echo "$as_me:$LINENO: result: no" >&5
19936 echo "${ECHO_T}no" >&6
19941 if test "x$enable_dlopen" != xyes; then
19942 enable_dlopen=unknown
19943 enable_dlopen_self=unknown
19944 enable_dlopen_self_static=unknown
19951 lt_cv_dlopen="load_add_on"
19953 lt_cv_dlopen_self=yes
19957 lt_cv_dlopen="LoadLibrary"
19962 lt_cv_dlopen="dlopen"
19967 # if libdl is installed we need to link against it
19968 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19969 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19970 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19971 echo $ECHO_N "(cached) $ECHO_C" >&6
19973 ac_check_lib_save_LIBS=$LIBS
19975 cat >conftest.$ac_ext <<_ACEOF
19978 cat confdefs.h >>conftest.$ac_ext
19979 cat >>conftest.$ac_ext <<_ACEOF
19980 /* end confdefs.h. */
19982 /* Override any gcc2 internal prototype to avoid an error. */
19986 /* We use char because int might match the return type of a gcc2
19987 builtin and then its argument prototype would still apply. */
19997 rm -f conftest.$ac_objext conftest$ac_exeext
19998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19999 (eval $ac_link) 2>conftest.er1
20001 grep -v '^ *+' conftest.er1 >conftest.err
20003 cat conftest.err >&5
20004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005 (exit $ac_status); } &&
20006 { ac_try='test -z "$ac_c_werror_flag"
20007 || test ! -s conftest.err'
20008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20009 (eval $ac_try) 2>&5
20011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012 (exit $ac_status); }; } &&
20013 { ac_try='test -s conftest$ac_exeext'
20014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20015 (eval $ac_try) 2>&5
20017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20018 (exit $ac_status); }; }; then
20019 ac_cv_lib_dl_dlopen=yes
20021 echo "$as_me: failed program was:" >&5
20022 sed 's/^/| /' conftest.$ac_ext >&5
20024 ac_cv_lib_dl_dlopen=no
20026 rm -f conftest.err conftest.$ac_objext \
20027 conftest$ac_exeext conftest.$ac_ext
20028 LIBS=$ac_check_lib_save_LIBS
20030 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20031 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20032 if test $ac_cv_lib_dl_dlopen = yes; then
20033 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20036 lt_cv_dlopen="dyld"
20038 lt_cv_dlopen_self=yes
20045 echo "$as_me:$LINENO: checking for shl_load" >&5
20046 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
20047 if test "${ac_cv_func_shl_load+set}" = set; then
20048 echo $ECHO_N "(cached) $ECHO_C" >&6
20050 cat >conftest.$ac_ext <<_ACEOF
20053 cat confdefs.h >>conftest.$ac_ext
20054 cat >>conftest.$ac_ext <<_ACEOF
20055 /* end confdefs.h. */
20056 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20057 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20058 #define shl_load innocuous_shl_load
20060 /* System header to define __stub macros and hopefully few prototypes,
20061 which can conflict with char shl_load (); below.
20062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20063 <limits.h> exists even on freestanding compilers. */
20066 # include <limits.h>
20068 # include <assert.h>
20073 /* Override any gcc2 internal prototype to avoid an error. */
20078 /* We use char because int might match the return type of a gcc2
20079 builtin and then its argument prototype would still apply. */
20081 /* The GNU C library defines this for functions which it implements
20082 to always fail with ENOSYS. Some functions are actually named
20083 something starting with __ and the normal name is an alias. */
20084 #if defined (__stub_shl_load) || defined (__stub___shl_load)
20087 char (*f) () = shl_load;
20096 return f != shl_load;
20101 rm -f conftest.$ac_objext conftest$ac_exeext
20102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20103 (eval $ac_link) 2>conftest.er1
20105 grep -v '^ *+' conftest.er1 >conftest.err
20107 cat conftest.err >&5
20108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20109 (exit $ac_status); } &&
20110 { ac_try='test -z "$ac_c_werror_flag"
20111 || test ! -s conftest.err'
20112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20113 (eval $ac_try) 2>&5
20115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20116 (exit $ac_status); }; } &&
20117 { ac_try='test -s conftest$ac_exeext'
20118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20119 (eval $ac_try) 2>&5
20121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20122 (exit $ac_status); }; }; then
20123 ac_cv_func_shl_load=yes
20125 echo "$as_me: failed program was:" >&5
20126 sed 's/^/| /' conftest.$ac_ext >&5
20128 ac_cv_func_shl_load=no
20130 rm -f conftest.err conftest.$ac_objext \
20131 conftest$ac_exeext conftest.$ac_ext
20133 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20134 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
20135 if test $ac_cv_func_shl_load = yes; then
20136 lt_cv_dlopen="shl_load"
20138 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20139 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
20140 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20141 echo $ECHO_N "(cached) $ECHO_C" >&6
20143 ac_check_lib_save_LIBS=$LIBS
20145 cat >conftest.$ac_ext <<_ACEOF
20148 cat confdefs.h >>conftest.$ac_ext
20149 cat >>conftest.$ac_ext <<_ACEOF
20150 /* end confdefs.h. */
20152 /* Override any gcc2 internal prototype to avoid an error. */
20156 /* We use char because int might match the return type of a gcc2
20157 builtin and then its argument prototype would still apply. */
20167 rm -f conftest.$ac_objext conftest$ac_exeext
20168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20169 (eval $ac_link) 2>conftest.er1
20171 grep -v '^ *+' conftest.er1 >conftest.err
20173 cat conftest.err >&5
20174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175 (exit $ac_status); } &&
20176 { ac_try='test -z "$ac_c_werror_flag"
20177 || test ! -s conftest.err'
20178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20179 (eval $ac_try) 2>&5
20181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182 (exit $ac_status); }; } &&
20183 { ac_try='test -s conftest$ac_exeext'
20184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20185 (eval $ac_try) 2>&5
20187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188 (exit $ac_status); }; }; then
20189 ac_cv_lib_dld_shl_load=yes
20191 echo "$as_me: failed program was:" >&5
20192 sed 's/^/| /' conftest.$ac_ext >&5
20194 ac_cv_lib_dld_shl_load=no
20196 rm -f conftest.err conftest.$ac_objext \
20197 conftest$ac_exeext conftest.$ac_ext
20198 LIBS=$ac_check_lib_save_LIBS
20200 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20201 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
20202 if test $ac_cv_lib_dld_shl_load = yes; then
20203 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
20205 echo "$as_me:$LINENO: checking for dlopen" >&5
20206 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
20207 if test "${ac_cv_func_dlopen+set}" = set; then
20208 echo $ECHO_N "(cached) $ECHO_C" >&6
20210 cat >conftest.$ac_ext <<_ACEOF
20213 cat confdefs.h >>conftest.$ac_ext
20214 cat >>conftest.$ac_ext <<_ACEOF
20215 /* end confdefs.h. */
20216 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
20217 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20218 #define dlopen innocuous_dlopen
20220 /* System header to define __stub macros and hopefully few prototypes,
20221 which can conflict with char dlopen (); below.
20222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20223 <limits.h> exists even on freestanding compilers. */
20226 # include <limits.h>
20228 # include <assert.h>
20233 /* Override any gcc2 internal prototype to avoid an error. */
20238 /* We use char because int might match the return type of a gcc2
20239 builtin and then its argument prototype would still apply. */
20241 /* The GNU C library defines this for functions which it implements
20242 to always fail with ENOSYS. Some functions are actually named
20243 something starting with __ and the normal name is an alias. */
20244 #if defined (__stub_dlopen) || defined (__stub___dlopen)
20247 char (*f) () = dlopen;
20256 return f != dlopen;
20261 rm -f conftest.$ac_objext conftest$ac_exeext
20262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20263 (eval $ac_link) 2>conftest.er1
20265 grep -v '^ *+' conftest.er1 >conftest.err
20267 cat conftest.err >&5
20268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20269 (exit $ac_status); } &&
20270 { ac_try='test -z "$ac_c_werror_flag"
20271 || test ! -s conftest.err'
20272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20273 (eval $ac_try) 2>&5
20275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276 (exit $ac_status); }; } &&
20277 { ac_try='test -s conftest$ac_exeext'
20278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20279 (eval $ac_try) 2>&5
20281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282 (exit $ac_status); }; }; then
20283 ac_cv_func_dlopen=yes
20285 echo "$as_me: failed program was:" >&5
20286 sed 's/^/| /' conftest.$ac_ext >&5
20288 ac_cv_func_dlopen=no
20290 rm -f conftest.err conftest.$ac_objext \
20291 conftest$ac_exeext conftest.$ac_ext
20293 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
20294 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
20295 if test $ac_cv_func_dlopen = yes; then
20296 lt_cv_dlopen="dlopen"
20298 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20299 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20300 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20301 echo $ECHO_N "(cached) $ECHO_C" >&6
20303 ac_check_lib_save_LIBS=$LIBS
20305 cat >conftest.$ac_ext <<_ACEOF
20308 cat confdefs.h >>conftest.$ac_ext
20309 cat >>conftest.$ac_ext <<_ACEOF
20310 /* end confdefs.h. */
20312 /* Override any gcc2 internal prototype to avoid an error. */
20316 /* We use char because int might match the return type of a gcc2
20317 builtin and then its argument prototype would still apply. */
20327 rm -f conftest.$ac_objext conftest$ac_exeext
20328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20329 (eval $ac_link) 2>conftest.er1
20331 grep -v '^ *+' conftest.er1 >conftest.err
20333 cat conftest.err >&5
20334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335 (exit $ac_status); } &&
20336 { ac_try='test -z "$ac_c_werror_flag"
20337 || test ! -s conftest.err'
20338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20339 (eval $ac_try) 2>&5
20341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342 (exit $ac_status); }; } &&
20343 { ac_try='test -s conftest$ac_exeext'
20344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20345 (eval $ac_try) 2>&5
20347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20348 (exit $ac_status); }; }; then
20349 ac_cv_lib_dl_dlopen=yes
20351 echo "$as_me: failed program was:" >&5
20352 sed 's/^/| /' conftest.$ac_ext >&5
20354 ac_cv_lib_dl_dlopen=no
20356 rm -f conftest.err conftest.$ac_objext \
20357 conftest$ac_exeext conftest.$ac_ext
20358 LIBS=$ac_check_lib_save_LIBS
20360 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20361 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20362 if test $ac_cv_lib_dl_dlopen = yes; then
20363 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20365 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20366 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
20367 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20368 echo $ECHO_N "(cached) $ECHO_C" >&6
20370 ac_check_lib_save_LIBS=$LIBS
20371 LIBS="-lsvld $LIBS"
20372 cat >conftest.$ac_ext <<_ACEOF
20375 cat confdefs.h >>conftest.$ac_ext
20376 cat >>conftest.$ac_ext <<_ACEOF
20377 /* end confdefs.h. */
20379 /* Override any gcc2 internal prototype to avoid an error. */
20383 /* We use char because int might match the return type of a gcc2
20384 builtin and then its argument prototype would still apply. */
20394 rm -f conftest.$ac_objext conftest$ac_exeext
20395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20396 (eval $ac_link) 2>conftest.er1
20398 grep -v '^ *+' conftest.er1 >conftest.err
20400 cat conftest.err >&5
20401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20402 (exit $ac_status); } &&
20403 { ac_try='test -z "$ac_c_werror_flag"
20404 || test ! -s conftest.err'
20405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20406 (eval $ac_try) 2>&5
20408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409 (exit $ac_status); }; } &&
20410 { ac_try='test -s conftest$ac_exeext'
20411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20412 (eval $ac_try) 2>&5
20414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415 (exit $ac_status); }; }; then
20416 ac_cv_lib_svld_dlopen=yes
20418 echo "$as_me: failed program was:" >&5
20419 sed 's/^/| /' conftest.$ac_ext >&5
20421 ac_cv_lib_svld_dlopen=no
20423 rm -f conftest.err conftest.$ac_objext \
20424 conftest$ac_exeext conftest.$ac_ext
20425 LIBS=$ac_check_lib_save_LIBS
20427 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20428 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
20429 if test $ac_cv_lib_svld_dlopen = yes; then
20430 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
20432 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20433 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
20434 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20435 echo $ECHO_N "(cached) $ECHO_C" >&6
20437 ac_check_lib_save_LIBS=$LIBS
20439 cat >conftest.$ac_ext <<_ACEOF
20442 cat confdefs.h >>conftest.$ac_ext
20443 cat >>conftest.$ac_ext <<_ACEOF
20444 /* end confdefs.h. */
20446 /* Override any gcc2 internal prototype to avoid an error. */
20450 /* We use char because int might match the return type of a gcc2
20451 builtin and then its argument prototype would still apply. */
20461 rm -f conftest.$ac_objext conftest$ac_exeext
20462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20463 (eval $ac_link) 2>conftest.er1
20465 grep -v '^ *+' conftest.er1 >conftest.err
20467 cat conftest.err >&5
20468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469 (exit $ac_status); } &&
20470 { ac_try='test -z "$ac_c_werror_flag"
20471 || test ! -s conftest.err'
20472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20473 (eval $ac_try) 2>&5
20475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476 (exit $ac_status); }; } &&
20477 { ac_try='test -s conftest$ac_exeext'
20478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20479 (eval $ac_try) 2>&5
20481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482 (exit $ac_status); }; }; then
20483 ac_cv_lib_dld_dld_link=yes
20485 echo "$as_me: failed program was:" >&5
20486 sed 's/^/| /' conftest.$ac_ext >&5
20488 ac_cv_lib_dld_dld_link=no
20490 rm -f conftest.err conftest.$ac_objext \
20491 conftest$ac_exeext conftest.$ac_ext
20492 LIBS=$ac_check_lib_save_LIBS
20494 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20495 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
20496 if test $ac_cv_lib_dld_dld_link = yes; then
20497 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
20518 if test "x$lt_cv_dlopen" != xno; then
20524 case $lt_cv_dlopen in
20526 save_CPPFLAGS="$CPPFLAGS"
20527 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
20529 save_LDFLAGS="$LDFLAGS"
20530 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20533 LIBS="$lt_cv_dlopen_libs $LIBS"
20535 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
20536 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
20537 if test "${lt_cv_dlopen_self+set}" = set; then
20538 echo $ECHO_N "(cached) $ECHO_C" >&6
20540 if test "$cross_compiling" = yes; then :
20541 lt_cv_dlopen_self=cross
20543 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20544 lt_status=$lt_dlunknown
20545 cat > conftest.$ac_ext <<EOF
20546 #line 20546 "configure"
20547 #include "confdefs.h"
20556 # define LT_DLGLOBAL RTLD_GLOBAL
20559 # define LT_DLGLOBAL DL_GLOBAL
20561 # define LT_DLGLOBAL 0
20565 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20566 find out it does not work in some platform. */
20567 #ifndef LT_DLLAZY_OR_NOW
20569 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20572 # define LT_DLLAZY_OR_NOW DL_LAZY
20575 # define LT_DLLAZY_OR_NOW RTLD_NOW
20578 # define LT_DLLAZY_OR_NOW DL_NOW
20580 # define LT_DLLAZY_OR_NOW 0
20588 extern "C" void exit (int);
20591 void fnord() { int i=42;}
20594 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20595 int status = $lt_dlunknown;
20599 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20600 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20601 /* dlclose (self); */
20607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20608 (eval $ac_link) 2>&5
20610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20612 (./conftest; exit; ) 2>/dev/null
20614 case x$lt_status in
20615 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20616 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20617 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
20620 # compilation failed
20621 lt_cv_dlopen_self=no
20628 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
20629 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
20631 if test "x$lt_cv_dlopen_self" = xyes; then
20632 LDFLAGS="$LDFLAGS $link_static_flag"
20633 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
20634 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
20635 if test "${lt_cv_dlopen_self_static+set}" = set; then
20636 echo $ECHO_N "(cached) $ECHO_C" >&6
20638 if test "$cross_compiling" = yes; then :
20639 lt_cv_dlopen_self_static=cross
20641 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20642 lt_status=$lt_dlunknown
20643 cat > conftest.$ac_ext <<EOF
20644 #line 20644 "configure"
20645 #include "confdefs.h"
20654 # define LT_DLGLOBAL RTLD_GLOBAL
20657 # define LT_DLGLOBAL DL_GLOBAL
20659 # define LT_DLGLOBAL 0
20663 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20664 find out it does not work in some platform. */
20665 #ifndef LT_DLLAZY_OR_NOW
20667 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20670 # define LT_DLLAZY_OR_NOW DL_LAZY
20673 # define LT_DLLAZY_OR_NOW RTLD_NOW
20676 # define LT_DLLAZY_OR_NOW DL_NOW
20678 # define LT_DLLAZY_OR_NOW 0
20686 extern "C" void exit (int);
20689 void fnord() { int i=42;}
20692 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20693 int status = $lt_dlunknown;
20697 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20698 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20699 /* dlclose (self); */
20705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20706 (eval $ac_link) 2>&5
20708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20709 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20710 (./conftest; exit; ) 2>/dev/null
20712 case x$lt_status in
20713 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20714 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20715 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
20718 # compilation failed
20719 lt_cv_dlopen_self_static=no
20726 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
20727 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
20730 CPPFLAGS="$save_CPPFLAGS"
20731 LDFLAGS="$save_LDFLAGS"
20736 case $lt_cv_dlopen_self in
20737 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20738 *) enable_dlopen_self=unknown ;;
20741 case $lt_cv_dlopen_self_static in
20742 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20743 *) enable_dlopen_self_static=unknown ;;
20748 # The else clause should only fire when bootstrapping the
20749 # libtool distribution, otherwise you forgot to ship ltmain.sh
20750 # with your package, and you will get complaints that there are
20751 # no rules to generate ltmain.sh.
20752 if test -f "$ltmain"; then
20753 # See if we are running on zsh, and set the options which allow our commands through
20754 # without removal of \ escapes.
20755 if test -n "${ZSH_VERSION+set}" ; then
20756 setopt NO_GLOB_SUBST
20758 # Now quote all the things that may contain metacharacters while being
20759 # careful not to overquote the AC_SUBSTed values. We take copies of the
20760 # variables and quote the copies for generation of the libtool script.
20761 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20763 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20764 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20765 deplibs_check_method reload_flag reload_cmds need_locks \
20766 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20767 lt_cv_sys_global_symbol_to_c_name_address \
20768 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20769 old_postinstall_cmds old_postuninstall_cmds \
20773 lt_prog_compiler_wl_GCJ \
20774 lt_prog_compiler_pic_GCJ \
20775 lt_prog_compiler_static_GCJ \
20776 lt_prog_compiler_no_builtin_flag_GCJ \
20777 export_dynamic_flag_spec_GCJ \
20778 thread_safe_flag_spec_GCJ \
20779 whole_archive_flag_spec_GCJ \
20780 enable_shared_with_static_runtimes_GCJ \
20781 old_archive_cmds_GCJ \
20782 old_archive_from_new_cmds_GCJ \
20783 predep_objects_GCJ \
20784 postdep_objects_GCJ \
20787 compiler_lib_search_path_GCJ \
20789 archive_expsym_cmds_GCJ \
20790 postinstall_cmds_GCJ \
20791 postuninstall_cmds_GCJ \
20792 old_archive_from_expsyms_cmds_GCJ \
20793 allow_undefined_flag_GCJ \
20794 no_undefined_flag_GCJ \
20795 export_symbols_cmds_GCJ \
20796 hardcode_libdir_flag_spec_GCJ \
20797 hardcode_libdir_flag_spec_ld_GCJ \
20798 hardcode_libdir_separator_GCJ \
20799 hardcode_automatic_GCJ \
20801 module_expsym_cmds_GCJ \
20802 lt_cv_prog_compiler_c_o_GCJ \
20803 exclude_expsyms_GCJ \
20804 include_expsyms_GCJ; do
20807 old_archive_cmds_GCJ | \
20808 old_archive_from_new_cmds_GCJ | \
20809 archive_cmds_GCJ | \
20810 archive_expsym_cmds_GCJ | \
20811 module_cmds_GCJ | \
20812 module_expsym_cmds_GCJ | \
20813 old_archive_from_expsyms_cmds_GCJ | \
20814 export_symbols_cmds_GCJ | \
20815 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20816 postinstall_cmds | postuninstall_cmds | \
20817 old_postinstall_cmds | old_postuninstall_cmds | \
20818 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20819 # Double-quote double-evaled strings.
20820 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20823 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20829 *'\$0 --fallback-echo"')
20830 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20836 cat <<__EOF__ >> "$cfgfile"
20837 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20839 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20841 # Shell to use when invoking shell scripts.
20844 # Whether or not to build shared libraries.
20845 build_libtool_libs=$enable_shared
20847 # Whether or not to build static libraries.
20848 build_old_libs=$enable_static
20850 # Whether or not to add -lc for building shared libraries.
20851 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20853 # Whether or not to disallow shared libs when runtime libs are static
20854 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20856 # Whether or not to optimize for fast installation.
20857 fast_install=$enable_fast_install
20860 host_alias=$host_alias
20864 # The build system.
20865 build_alias=$build_alias
20869 # An echo program that does not interpret backslashes.
20874 AR_FLAGS=$lt_AR_FLAGS
20879 # A language-specific compiler.
20880 CC=$lt_compiler_GCJ
20882 # Is the compiler the GNU C compiler?
20888 # The linker used to build libraries.
20891 # Whether we need hard or soft links.
20894 # A BSD-compatible nm program.
20897 # A symbol stripping program
20900 # Used to examine libraries when file_magic_cmd begins "file"
20901 MAGIC_CMD=$MAGIC_CMD
20903 # Used on cygwin: DLL creation program.
20906 # Used on cygwin: object dumper.
20909 # Used on cygwin: assembler.
20912 # The name of the directory that contains temporary libtool files.
20915 # How to create reloadable object files.
20916 reload_flag=$lt_reload_flag
20917 reload_cmds=$lt_reload_cmds
20919 # How to pass a linker flag through the compiler.
20920 wl=$lt_lt_prog_compiler_wl_GCJ
20922 # Object file suffix (normally "o").
20923 objext="$ac_objext"
20925 # Old archive suffix (normally "a").
20928 # Shared library suffix (normally ".so").
20929 shrext_cmds='$shrext_cmds'
20931 # Executable file suffix (normally "").
20934 # Additional compiler flags for building library objects.
20935 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20938 # What is the maximum length of a command?
20939 max_cmd_len=$lt_cv_sys_max_cmd_len
20941 # Does compiler simultaneously support -c and -o options?
20942 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20944 # Must we lock files when doing compilation?
20945 need_locks=$lt_need_locks
20947 # Do we need the lib prefix for modules?
20948 need_lib_prefix=$need_lib_prefix
20950 # Do we need a version for libraries?
20951 need_version=$need_version
20953 # Whether dlopen is supported.
20954 dlopen_support=$enable_dlopen
20956 # Whether dlopen of programs is supported.
20957 dlopen_self=$enable_dlopen_self
20959 # Whether dlopen of statically linked programs is supported.
20960 dlopen_self_static=$enable_dlopen_self_static
20962 # Compiler flag to prevent dynamic linking.
20963 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20965 # Compiler flag to turn off builtin functions.
20966 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20968 # Compiler flag to allow reflexive dlopens.
20969 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20971 # Compiler flag to generate shared objects directly from archives.
20972 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20974 # Compiler flag to generate thread-safe objects.
20975 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20977 # Library versioning type.
20978 version_type=$version_type
20980 # Format of library name prefix.
20981 libname_spec=$lt_libname_spec
20983 # List of archive names. First name is the real one, the rest are links.
20984 # The last name is the one that the linker finds with -lNAME.
20985 library_names_spec=$lt_library_names_spec
20987 # The coded name of the library, if different from the real name.
20988 soname_spec=$lt_soname_spec
20990 # Commands used to build and install an old-style archive.
20992 old_archive_cmds=$lt_old_archive_cmds_GCJ
20993 old_postinstall_cmds=$lt_old_postinstall_cmds
20994 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20996 # Create an old-style archive from a shared archive.
20997 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20999 # Create a temporary old-style archive to link instead of a shared archive.
21000 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
21002 # Commands used to build and install a shared archive.
21003 archive_cmds=$lt_archive_cmds_GCJ
21004 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
21005 postinstall_cmds=$lt_postinstall_cmds
21006 postuninstall_cmds=$lt_postuninstall_cmds
21008 # Commands used to build a loadable module (assumed same as above if empty)
21009 module_cmds=$lt_module_cmds_GCJ
21010 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
21012 # Commands to strip libraries.
21013 old_striplib=$lt_old_striplib
21014 striplib=$lt_striplib
21016 # Dependencies to place before the objects being linked to create a
21018 predep_objects=$lt_predep_objects_GCJ
21020 # Dependencies to place after the objects being linked to create a
21022 postdep_objects=$lt_postdep_objects_GCJ
21024 # Dependencies to place before the objects being linked to create a
21026 predeps=$lt_predeps_GCJ
21028 # Dependencies to place after the objects being linked to create a
21030 postdeps=$lt_postdeps_GCJ
21032 # The library search path used internally by the compiler when linking
21033 # a shared library.
21034 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
21036 # Method to check whether dependent libraries are shared objects.
21037 deplibs_check_method=$lt_deplibs_check_method
21039 # Command to use when deplibs_check_method == file_magic.
21040 file_magic_cmd=$lt_file_magic_cmd
21042 # Flag that allows shared libraries with undefined symbols to be built.
21043 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
21045 # Flag that forces no undefined symbols.
21046 no_undefined_flag=$lt_no_undefined_flag_GCJ
21048 # Commands used to finish a libtool library installation in a directory.
21049 finish_cmds=$lt_finish_cmds
21051 # Same as above, but a single script fragment to be evaled but not shown.
21052 finish_eval=$lt_finish_eval
21054 # Take the output of nm and produce a listing of raw symbols and C names.
21055 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21057 # Transform the output of nm in a proper C declaration
21058 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21060 # Transform the output of nm in a C name address pair
21061 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21063 # This is the shared library runtime path variable.
21064 runpath_var=$runpath_var
21066 # This is the shared library path variable.
21067 shlibpath_var=$shlibpath_var
21069 # Is shlibpath searched before the hard-coded library search path?
21070 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21072 # How to hardcode a shared library path into an executable.
21073 hardcode_action=$hardcode_action_GCJ
21075 # Whether we should hardcode library paths into libraries.
21076 hardcode_into_libs=$hardcode_into_libs
21078 # Flag to hardcode \$libdir into a binary during linking.
21079 # This must work even if \$libdir does not exist.
21080 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
21082 # If ld is used when linking, flag to hardcode \$libdir into
21083 # a binary during linking. This must work even if \$libdir does
21085 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
21087 # Whether we need a single -rpath flag with a separated argument.
21088 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
21090 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21091 # resulting binary.
21092 hardcode_direct=$hardcode_direct_GCJ
21094 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21095 # resulting binary.
21096 hardcode_minus_L=$hardcode_minus_L_GCJ
21098 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21099 # the resulting binary.
21100 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
21102 # Set to yes if building a shared library automatically hardcodes DIR into the library
21103 # and all subsequent libraries and executables linked against it.
21104 hardcode_automatic=$hardcode_automatic_GCJ
21106 # Variables whose values should be saved in libtool wrapper scripts and
21107 # restored at relink time.
21108 variables_saved_for_relink="$variables_saved_for_relink"
21110 # Whether libtool must link a program against all its dependency libraries.
21111 link_all_deplibs=$link_all_deplibs_GCJ
21113 # Compile-time system search path for libraries
21114 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21116 # Run-time system search path for libraries
21117 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21119 # Fix the shell variable \$srcfile for the compiler.
21120 fix_srcfile_path="$fix_srcfile_path_GCJ"
21122 # Set to yes if exported symbols are required.
21123 always_export_symbols=$always_export_symbols_GCJ
21125 # The commands to list exported symbols.
21126 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
21128 # The commands to extract the exported symbol list from a shared archive.
21129 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21131 # Symbols that should not be listed in the preloaded symbols.
21132 exclude_expsyms=$lt_exclude_expsyms_GCJ
21134 # Symbols that must always be exported.
21135 include_expsyms=$lt_include_expsyms_GCJ
21137 # ### END LIBTOOL TAG CONFIG: $tagname
21143 # If there is no Makefile yet, we rely on a make rule to execute
21144 # `config.status --recheck' to rerun these tests and create the
21145 # libtool script then.
21146 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21147 if test -f "$ltmain_in"; then
21148 test -f Makefile && make "$ltmain"
21154 ac_cpp='$CPP $CPPFLAGS'
21155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21170 # Source file extension for RC test sources.
21173 # Object file extension for compiled RC test sources.
21177 # Code to be used in simple compile tests
21178 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
21180 # Code to be used in simple link tests
21181 lt_simple_link_test_code="$lt_simple_compile_test_code"
21183 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21185 # If no C compiler was specified, use CC.
21188 # Allow CC to be a program name with arguments.
21192 # save warnings/boilerplate of simple test code
21193 ac_outfile=conftest.$ac_objext
21194 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21195 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
21196 _lt_compiler_boilerplate=`cat conftest.err`
21199 ac_outfile=conftest.$ac_objext
21200 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21201 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
21202 _lt_linker_boilerplate=`cat conftest.err`
21206 # Allow CC to be a program name with arguments.
21211 for cc_temp in $compiler""; do
21213 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21214 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21219 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21221 lt_cv_prog_compiler_c_o_RC=yes
21223 # The else clause should only fire when bootstrapping the
21224 # libtool distribution, otherwise you forgot to ship ltmain.sh
21225 # with your package, and you will get complaints that there are
21226 # no rules to generate ltmain.sh.
21227 if test -f "$ltmain"; then
21228 # See if we are running on zsh, and set the options which allow our commands through
21229 # without removal of \ escapes.
21230 if test -n "${ZSH_VERSION+set}" ; then
21231 setopt NO_GLOB_SUBST
21233 # Now quote all the things that may contain metacharacters while being
21234 # careful not to overquote the AC_SUBSTed values. We take copies of the
21235 # variables and quote the copies for generation of the libtool script.
21236 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
21238 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21239 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21240 deplibs_check_method reload_flag reload_cmds need_locks \
21241 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21242 lt_cv_sys_global_symbol_to_c_name_address \
21243 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21244 old_postinstall_cmds old_postuninstall_cmds \
21248 lt_prog_compiler_wl_RC \
21249 lt_prog_compiler_pic_RC \
21250 lt_prog_compiler_static_RC \
21251 lt_prog_compiler_no_builtin_flag_RC \
21252 export_dynamic_flag_spec_RC \
21253 thread_safe_flag_spec_RC \
21254 whole_archive_flag_spec_RC \
21255 enable_shared_with_static_runtimes_RC \
21256 old_archive_cmds_RC \
21257 old_archive_from_new_cmds_RC \
21258 predep_objects_RC \
21259 postdep_objects_RC \
21262 compiler_lib_search_path_RC \
21264 archive_expsym_cmds_RC \
21265 postinstall_cmds_RC \
21266 postuninstall_cmds_RC \
21267 old_archive_from_expsyms_cmds_RC \
21268 allow_undefined_flag_RC \
21269 no_undefined_flag_RC \
21270 export_symbols_cmds_RC \
21271 hardcode_libdir_flag_spec_RC \
21272 hardcode_libdir_flag_spec_ld_RC \
21273 hardcode_libdir_separator_RC \
21274 hardcode_automatic_RC \
21276 module_expsym_cmds_RC \
21277 lt_cv_prog_compiler_c_o_RC \
21278 exclude_expsyms_RC \
21279 include_expsyms_RC; do
21282 old_archive_cmds_RC | \
21283 old_archive_from_new_cmds_RC | \
21284 archive_cmds_RC | \
21285 archive_expsym_cmds_RC | \
21287 module_expsym_cmds_RC | \
21288 old_archive_from_expsyms_cmds_RC | \
21289 export_symbols_cmds_RC | \
21290 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21291 postinstall_cmds | postuninstall_cmds | \
21292 old_postinstall_cmds | old_postuninstall_cmds | \
21293 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21294 # Double-quote double-evaled strings.
21295 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21298 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21304 *'\$0 --fallback-echo"')
21305 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21311 cat <<__EOF__ >> "$cfgfile"
21312 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21314 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21316 # Shell to use when invoking shell scripts.
21319 # Whether or not to build shared libraries.
21320 build_libtool_libs=$enable_shared
21322 # Whether or not to build static libraries.
21323 build_old_libs=$enable_static
21325 # Whether or not to add -lc for building shared libraries.
21326 build_libtool_need_lc=$archive_cmds_need_lc_RC
21328 # Whether or not to disallow shared libs when runtime libs are static
21329 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21331 # Whether or not to optimize for fast installation.
21332 fast_install=$enable_fast_install
21335 host_alias=$host_alias
21339 # The build system.
21340 build_alias=$build_alias
21344 # An echo program that does not interpret backslashes.
21349 AR_FLAGS=$lt_AR_FLAGS
21354 # A language-specific compiler.
21357 # Is the compiler the GNU C compiler?
21363 # The linker used to build libraries.
21366 # Whether we need hard or soft links.
21369 # A BSD-compatible nm program.
21372 # A symbol stripping program
21375 # Used to examine libraries when file_magic_cmd begins "file"
21376 MAGIC_CMD=$MAGIC_CMD
21378 # Used on cygwin: DLL creation program.
21381 # Used on cygwin: object dumper.
21384 # Used on cygwin: assembler.
21387 # The name of the directory that contains temporary libtool files.
21390 # How to create reloadable object files.
21391 reload_flag=$lt_reload_flag
21392 reload_cmds=$lt_reload_cmds
21394 # How to pass a linker flag through the compiler.
21395 wl=$lt_lt_prog_compiler_wl_RC
21397 # Object file suffix (normally "o").
21398 objext="$ac_objext"
21400 # Old archive suffix (normally "a").
21403 # Shared library suffix (normally ".so").
21404 shrext_cmds='$shrext_cmds'
21406 # Executable file suffix (normally "").
21409 # Additional compiler flags for building library objects.
21410 pic_flag=$lt_lt_prog_compiler_pic_RC
21413 # What is the maximum length of a command?
21414 max_cmd_len=$lt_cv_sys_max_cmd_len
21416 # Does compiler simultaneously support -c and -o options?
21417 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21419 # Must we lock files when doing compilation?
21420 need_locks=$lt_need_locks
21422 # Do we need the lib prefix for modules?
21423 need_lib_prefix=$need_lib_prefix
21425 # Do we need a version for libraries?
21426 need_version=$need_version
21428 # Whether dlopen is supported.
21429 dlopen_support=$enable_dlopen
21431 # Whether dlopen of programs is supported.
21432 dlopen_self=$enable_dlopen_self
21434 # Whether dlopen of statically linked programs is supported.
21435 dlopen_self_static=$enable_dlopen_self_static
21437 # Compiler flag to prevent dynamic linking.
21438 link_static_flag=$lt_lt_prog_compiler_static_RC
21440 # Compiler flag to turn off builtin functions.
21441 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21443 # Compiler flag to allow reflexive dlopens.
21444 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21446 # Compiler flag to generate shared objects directly from archives.
21447 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21449 # Compiler flag to generate thread-safe objects.
21450 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21452 # Library versioning type.
21453 version_type=$version_type
21455 # Format of library name prefix.
21456 libname_spec=$lt_libname_spec
21458 # List of archive names. First name is the real one, the rest are links.
21459 # The last name is the one that the linker finds with -lNAME.
21460 library_names_spec=$lt_library_names_spec
21462 # The coded name of the library, if different from the real name.
21463 soname_spec=$lt_soname_spec
21465 # Commands used to build and install an old-style archive.
21467 old_archive_cmds=$lt_old_archive_cmds_RC
21468 old_postinstall_cmds=$lt_old_postinstall_cmds
21469 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21471 # Create an old-style archive from a shared archive.
21472 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21474 # Create a temporary old-style archive to link instead of a shared archive.
21475 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21477 # Commands used to build and install a shared archive.
21478 archive_cmds=$lt_archive_cmds_RC
21479 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21480 postinstall_cmds=$lt_postinstall_cmds
21481 postuninstall_cmds=$lt_postuninstall_cmds
21483 # Commands used to build a loadable module (assumed same as above if empty)
21484 module_cmds=$lt_module_cmds_RC
21485 module_expsym_cmds=$lt_module_expsym_cmds_RC
21487 # Commands to strip libraries.
21488 old_striplib=$lt_old_striplib
21489 striplib=$lt_striplib
21491 # Dependencies to place before the objects being linked to create a
21493 predep_objects=$lt_predep_objects_RC
21495 # Dependencies to place after the objects being linked to create a
21497 postdep_objects=$lt_postdep_objects_RC
21499 # Dependencies to place before the objects being linked to create a
21501 predeps=$lt_predeps_RC
21503 # Dependencies to place after the objects being linked to create a
21505 postdeps=$lt_postdeps_RC
21507 # The library search path used internally by the compiler when linking
21508 # a shared library.
21509 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21511 # Method to check whether dependent libraries are shared objects.
21512 deplibs_check_method=$lt_deplibs_check_method
21514 # Command to use when deplibs_check_method == file_magic.
21515 file_magic_cmd=$lt_file_magic_cmd
21517 # Flag that allows shared libraries with undefined symbols to be built.
21518 allow_undefined_flag=$lt_allow_undefined_flag_RC
21520 # Flag that forces no undefined symbols.
21521 no_undefined_flag=$lt_no_undefined_flag_RC
21523 # Commands used to finish a libtool library installation in a directory.
21524 finish_cmds=$lt_finish_cmds
21526 # Same as above, but a single script fragment to be evaled but not shown.
21527 finish_eval=$lt_finish_eval
21529 # Take the output of nm and produce a listing of raw symbols and C names.
21530 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21532 # Transform the output of nm in a proper C declaration
21533 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21535 # Transform the output of nm in a C name address pair
21536 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21538 # This is the shared library runtime path variable.
21539 runpath_var=$runpath_var
21541 # This is the shared library path variable.
21542 shlibpath_var=$shlibpath_var
21544 # Is shlibpath searched before the hard-coded library search path?
21545 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21547 # How to hardcode a shared library path into an executable.
21548 hardcode_action=$hardcode_action_RC
21550 # Whether we should hardcode library paths into libraries.
21551 hardcode_into_libs=$hardcode_into_libs
21553 # Flag to hardcode \$libdir into a binary during linking.
21554 # This must work even if \$libdir does not exist.
21555 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21557 # If ld is used when linking, flag to hardcode \$libdir into
21558 # a binary during linking. This must work even if \$libdir does
21560 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21562 # Whether we need a single -rpath flag with a separated argument.
21563 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21565 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21566 # resulting binary.
21567 hardcode_direct=$hardcode_direct_RC
21569 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21570 # resulting binary.
21571 hardcode_minus_L=$hardcode_minus_L_RC
21573 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21574 # the resulting binary.
21575 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21577 # Set to yes if building a shared library automatically hardcodes DIR into the library
21578 # and all subsequent libraries and executables linked against it.
21579 hardcode_automatic=$hardcode_automatic_RC
21581 # Variables whose values should be saved in libtool wrapper scripts and
21582 # restored at relink time.
21583 variables_saved_for_relink="$variables_saved_for_relink"
21585 # Whether libtool must link a program against all its dependency libraries.
21586 link_all_deplibs=$link_all_deplibs_RC
21588 # Compile-time system search path for libraries
21589 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21591 # Run-time system search path for libraries
21592 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21594 # Fix the shell variable \$srcfile for the compiler.
21595 fix_srcfile_path="$fix_srcfile_path_RC"
21597 # Set to yes if exported symbols are required.
21598 always_export_symbols=$always_export_symbols_RC
21600 # The commands to list exported symbols.
21601 export_symbols_cmds=$lt_export_symbols_cmds_RC
21603 # The commands to extract the exported symbol list from a shared archive.
21604 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21606 # Symbols that should not be listed in the preloaded symbols.
21607 exclude_expsyms=$lt_exclude_expsyms_RC
21609 # Symbols that must always be exported.
21610 include_expsyms=$lt_include_expsyms_RC
21612 # ### END LIBTOOL TAG CONFIG: $tagname
21618 # If there is no Makefile yet, we rely on a make rule to execute
21619 # `config.status --recheck' to rerun these tests and create the
21620 # libtool script then.
21621 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21622 if test -f "$ltmain_in"; then
21623 test -f Makefile && make "$ltmain"
21629 ac_cpp='$CPP $CPPFLAGS'
21630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21639 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21640 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21641 { (exit 1); exit 1; }; }
21645 # Append the new tag name to the list of available tags.
21646 if test -n "$tagname" ; then
21647 available_tags="$available_tags $tagname"
21653 # Now substitute the updated list of available tags.
21654 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21655 mv "${ofile}T" "$ofile"
21659 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21660 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21661 { (exit 1); exit 1; }; }
21667 # This can be used to rebuild libtool when needed
21668 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21670 # Always use our own libtool.
21671 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21673 # Prevent multiple expansion
21696 if test $ol_enable_perl != no ; then
21697 # Extract the first word of "perl", so it can be a program name with args.
21698 set dummy perl; ac_word=$2
21699 echo "$as_me:$LINENO: checking for $ac_word" >&5
21700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21701 if test "${ac_cv_path_PERLBIN+set}" = set; then
21702 echo $ECHO_N "(cached) $ECHO_C" >&6
21706 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
21709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21710 for as_dir in $PATH
21713 test -z "$as_dir" && as_dir=.
21714 for ac_exec_ext in '' $ac_executable_extensions; do
21715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21716 ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
21717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21723 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
21727 PERLBIN=$ac_cv_path_PERLBIN
21729 if test -n "$PERLBIN"; then
21730 echo "$as_me:$LINENO: result: $PERLBIN" >&5
21731 echo "${ECHO_T}$PERLBIN" >&6
21733 echo "$as_me:$LINENO: result: no" >&5
21734 echo "${ECHO_T}no" >&6
21738 if test "no$PERLBIN" = "no" ; then
21739 if test $ol_enable_perl = yes ; then
21740 { { echo "$as_me:$LINENO: error: could not locate perl" >&5
21741 echo "$as_me: error: could not locate perl" >&2;}
21742 { (exit 1); exit 1; }; }
21746 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
21747 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
21749 if test x"$ol_enable_perl" = "xyes" ; then
21750 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
21752 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
21759 ac_cpp='$CPP $CPPFLAGS'
21760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21763 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
21764 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
21765 # On Suns, sometimes $CPP names a directory.
21766 if test -n "$CPP" && test -d "$CPP"; then
21769 if test -z "$CPP"; then
21770 if test "${ac_cv_prog_CPP+set}" = set; then
21771 echo $ECHO_N "(cached) $ECHO_C" >&6
21773 # Double quotes because CPP needs to be expanded
21774 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
21776 ac_preproc_ok=false
21777 for ac_c_preproc_warn_flag in '' yes
21779 # Use a header file that comes with gcc, so configuring glibc
21780 # with a fresh cross-compiler works.
21781 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21782 # <limits.h> exists even on freestanding compilers.
21783 # On the NeXT, cc -E runs the code through the compiler's parser,
21784 # not just through cpp. "Syntax error" is here to catch this case.
21785 cat >conftest.$ac_ext <<_ACEOF
21788 cat confdefs.h >>conftest.$ac_ext
21789 cat >>conftest.$ac_ext <<_ACEOF
21790 /* end confdefs.h. */
21792 # include <limits.h>
21794 # include <assert.h>
21798 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21799 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21801 grep -v '^ *+' conftest.er1 >conftest.err
21803 cat conftest.err >&5
21804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21805 (exit $ac_status); } >/dev/null; then
21806 if test -s conftest.err; then
21807 ac_cpp_err=$ac_c_preproc_warn_flag
21808 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21815 if test -z "$ac_cpp_err"; then
21818 echo "$as_me: failed program was:" >&5
21819 sed 's/^/| /' conftest.$ac_ext >&5
21821 # Broken: fails on valid input.
21824 rm -f conftest.err conftest.$ac_ext
21826 # OK, works on sane cases. Now check whether non-existent headers
21827 # can be detected and how.
21828 cat >conftest.$ac_ext <<_ACEOF
21831 cat confdefs.h >>conftest.$ac_ext
21832 cat >>conftest.$ac_ext <<_ACEOF
21833 /* end confdefs.h. */
21834 #include <ac_nonexistent.h>
21836 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21837 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21839 grep -v '^ *+' conftest.er1 >conftest.err
21841 cat conftest.err >&5
21842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21843 (exit $ac_status); } >/dev/null; then
21844 if test -s conftest.err; then
21845 ac_cpp_err=$ac_c_preproc_warn_flag
21846 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21853 if test -z "$ac_cpp_err"; then
21854 # Broken: success on invalid input.
21857 echo "$as_me: failed program was:" >&5
21858 sed 's/^/| /' conftest.$ac_ext >&5
21860 # Passes both tests.
21864 rm -f conftest.err conftest.$ac_ext
21867 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21868 rm -f conftest.err conftest.$ac_ext
21869 if $ac_preproc_ok; then
21874 ac_cv_prog_CPP=$CPP
21877 CPP=$ac_cv_prog_CPP
21879 ac_cv_prog_CPP=$CPP
21881 echo "$as_me:$LINENO: result: $CPP" >&5
21882 echo "${ECHO_T}$CPP" >&6
21883 ac_preproc_ok=false
21884 for ac_c_preproc_warn_flag in '' yes
21886 # Use a header file that comes with gcc, so configuring glibc
21887 # with a fresh cross-compiler works.
21888 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21889 # <limits.h> exists even on freestanding compilers.
21890 # On the NeXT, cc -E runs the code through the compiler's parser,
21891 # not just through cpp. "Syntax error" is here to catch this case.
21892 cat >conftest.$ac_ext <<_ACEOF
21895 cat confdefs.h >>conftest.$ac_ext
21896 cat >>conftest.$ac_ext <<_ACEOF
21897 /* end confdefs.h. */
21899 # include <limits.h>
21901 # include <assert.h>
21905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21906 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21908 grep -v '^ *+' conftest.er1 >conftest.err
21910 cat conftest.err >&5
21911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21912 (exit $ac_status); } >/dev/null; then
21913 if test -s conftest.err; then
21914 ac_cpp_err=$ac_c_preproc_warn_flag
21915 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21922 if test -z "$ac_cpp_err"; then
21925 echo "$as_me: failed program was:" >&5
21926 sed 's/^/| /' conftest.$ac_ext >&5
21928 # Broken: fails on valid input.
21931 rm -f conftest.err conftest.$ac_ext
21933 # OK, works on sane cases. Now check whether non-existent headers
21934 # can be detected and how.
21935 cat >conftest.$ac_ext <<_ACEOF
21938 cat confdefs.h >>conftest.$ac_ext
21939 cat >>conftest.$ac_ext <<_ACEOF
21940 /* end confdefs.h. */
21941 #include <ac_nonexistent.h>
21943 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21944 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21946 grep -v '^ *+' conftest.er1 >conftest.err
21948 cat conftest.err >&5
21949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21950 (exit $ac_status); } >/dev/null; then
21951 if test -s conftest.err; then
21952 ac_cpp_err=$ac_c_preproc_warn_flag
21953 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21960 if test -z "$ac_cpp_err"; then
21961 # Broken: success on invalid input.
21964 echo "$as_me: failed program was:" >&5
21965 sed 's/^/| /' conftest.$ac_ext >&5
21967 # Passes both tests.
21971 rm -f conftest.err conftest.$ac_ext
21974 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21975 rm -f conftest.err conftest.$ac_ext
21976 if $ac_preproc_ok; then
21979 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
21980 See \`config.log' for more details." >&5
21981 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
21982 See \`config.log' for more details." >&2;}
21983 { (exit 1); exit 1; }; }
21987 ac_cpp='$CPP $CPPFLAGS'
21988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21996 *cygwin* ) CYGWIN=yes;;
22002 *mingw32* ) MINGW32=yes;;
22010 cat >>confdefs.h <<_ACEOF
22011 #define EXEEXT "${EXEEXT}"
22015 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
22016 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
22017 if test "${ac_cv_lib_be_be_app+set}" = set; then
22018 echo $ECHO_N "(cached) $ECHO_C" >&6
22020 ac_check_lib_save_LIBS=$LIBS
22021 LIBS="-lbe -lroot -lnet $LIBS"
22022 cat >conftest.$ac_ext <<_ACEOF
22025 cat confdefs.h >>conftest.$ac_ext
22026 cat >>conftest.$ac_ext <<_ACEOF
22027 /* end confdefs.h. */
22029 /* Override any gcc2 internal prototype to avoid an error. */
22033 /* We use char because int might match the return type of a gcc2
22034 builtin and then its argument prototype would still apply. */
22044 rm -f conftest.$ac_objext conftest$ac_exeext
22045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22046 (eval $ac_link) 2>conftest.er1
22048 grep -v '^ *+' conftest.er1 >conftest.err
22050 cat conftest.err >&5
22051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22052 (exit $ac_status); } &&
22053 { ac_try='test -z "$ac_c_werror_flag"
22054 || test ! -s conftest.err'
22055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22056 (eval $ac_try) 2>&5
22058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22059 (exit $ac_status); }; } &&
22060 { ac_try='test -s conftest$ac_exeext'
22061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22062 (eval $ac_try) 2>&5
22064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22065 (exit $ac_status); }; }; then
22066 ac_cv_lib_be_be_app=yes
22068 echo "$as_me: failed program was:" >&5
22069 sed 's/^/| /' conftest.$ac_ext >&5
22071 ac_cv_lib_be_be_app=no
22073 rm -f conftest.err conftest.$ac_objext \
22074 conftest$ac_exeext conftest.$ac_ext
22075 LIBS=$ac_check_lib_save_LIBS
22077 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
22078 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
22079 if test $ac_cv_lib_be_be_app = yes; then
22080 LIBS="$LIBS -lbe -lroot -lnet"
22087 ac_cpp='$CPP $CPPFLAGS'
22088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22091 if test -n "$ac_tool_prefix"; then
22092 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
22093 set dummy ${ac_tool_prefix}gcc; ac_word=$2
22094 echo "$as_me:$LINENO: checking for $ac_word" >&5
22095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22096 if test "${ac_cv_prog_CC+set}" = set; then
22097 echo $ECHO_N "(cached) $ECHO_C" >&6
22099 if test -n "$CC"; then
22100 ac_cv_prog_CC="$CC" # Let the user override the test.
22102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22103 for as_dir in $PATH
22106 test -z "$as_dir" && as_dir=.
22107 for ac_exec_ext in '' $ac_executable_extensions; do
22108 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22109 ac_cv_prog_CC="${ac_tool_prefix}gcc"
22110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22119 if test -n "$CC"; then
22120 echo "$as_me:$LINENO: result: $CC" >&5
22121 echo "${ECHO_T}$CC" >&6
22123 echo "$as_me:$LINENO: result: no" >&5
22124 echo "${ECHO_T}no" >&6
22128 if test -z "$ac_cv_prog_CC"; then
22130 # Extract the first word of "gcc", so it can be a program name with args.
22131 set dummy gcc; ac_word=$2
22132 echo "$as_me:$LINENO: checking for $ac_word" >&5
22133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22134 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22135 echo $ECHO_N "(cached) $ECHO_C" >&6
22137 if test -n "$ac_ct_CC"; then
22138 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22141 for as_dir in $PATH
22144 test -z "$as_dir" && as_dir=.
22145 for ac_exec_ext in '' $ac_executable_extensions; do
22146 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22147 ac_cv_prog_ac_ct_CC="gcc"
22148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22156 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22157 if test -n "$ac_ct_CC"; then
22158 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22159 echo "${ECHO_T}$ac_ct_CC" >&6
22161 echo "$as_me:$LINENO: result: no" >&5
22162 echo "${ECHO_T}no" >&6
22167 CC="$ac_cv_prog_CC"
22170 if test -z "$CC"; then
22171 if test -n "$ac_tool_prefix"; then
22172 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
22173 set dummy ${ac_tool_prefix}cc; ac_word=$2
22174 echo "$as_me:$LINENO: checking for $ac_word" >&5
22175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22176 if test "${ac_cv_prog_CC+set}" = set; then
22177 echo $ECHO_N "(cached) $ECHO_C" >&6
22179 if test -n "$CC"; then
22180 ac_cv_prog_CC="$CC" # Let the user override the test.
22182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22183 for as_dir in $PATH
22186 test -z "$as_dir" && as_dir=.
22187 for ac_exec_ext in '' $ac_executable_extensions; do
22188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22189 ac_cv_prog_CC="${ac_tool_prefix}cc"
22190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22199 if test -n "$CC"; then
22200 echo "$as_me:$LINENO: result: $CC" >&5
22201 echo "${ECHO_T}$CC" >&6
22203 echo "$as_me:$LINENO: result: no" >&5
22204 echo "${ECHO_T}no" >&6
22208 if test -z "$ac_cv_prog_CC"; then
22210 # Extract the first word of "cc", so it can be a program name with args.
22211 set dummy cc; ac_word=$2
22212 echo "$as_me:$LINENO: checking for $ac_word" >&5
22213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22214 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22215 echo $ECHO_N "(cached) $ECHO_C" >&6
22217 if test -n "$ac_ct_CC"; then
22218 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22221 for as_dir in $PATH
22224 test -z "$as_dir" && as_dir=.
22225 for ac_exec_ext in '' $ac_executable_extensions; do
22226 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22227 ac_cv_prog_ac_ct_CC="cc"
22228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22236 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22237 if test -n "$ac_ct_CC"; then
22238 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22239 echo "${ECHO_T}$ac_ct_CC" >&6
22241 echo "$as_me:$LINENO: result: no" >&5
22242 echo "${ECHO_T}no" >&6
22247 CC="$ac_cv_prog_CC"
22251 if test -z "$CC"; then
22252 # Extract the first word of "cc", so it can be a program name with args.
22253 set dummy cc; ac_word=$2
22254 echo "$as_me:$LINENO: checking for $ac_word" >&5
22255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22256 if test "${ac_cv_prog_CC+set}" = set; then
22257 echo $ECHO_N "(cached) $ECHO_C" >&6
22259 if test -n "$CC"; then
22260 ac_cv_prog_CC="$CC" # Let the user override the test.
22262 ac_prog_rejected=no
22263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22264 for as_dir in $PATH
22267 test -z "$as_dir" && as_dir=.
22268 for ac_exec_ext in '' $ac_executable_extensions; do
22269 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22270 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
22271 ac_prog_rejected=yes
22275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22281 if test $ac_prog_rejected = yes; then
22282 # We found a bogon in the path, so make sure we never use it.
22283 set dummy $ac_cv_prog_CC
22285 if test $# != 0; then
22286 # We chose a different compiler from the bogus one.
22287 # However, it has the same basename, so the bogon will be chosen
22288 # first if we set CC to just the basename; use the full file name.
22290 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
22296 if test -n "$CC"; then
22297 echo "$as_me:$LINENO: result: $CC" >&5
22298 echo "${ECHO_T}$CC" >&6
22300 echo "$as_me:$LINENO: result: no" >&5
22301 echo "${ECHO_T}no" >&6
22305 if test -z "$CC"; then
22306 if test -n "$ac_tool_prefix"; then
22309 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
22310 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
22311 echo "$as_me:$LINENO: checking for $ac_word" >&5
22312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22313 if test "${ac_cv_prog_CC+set}" = set; then
22314 echo $ECHO_N "(cached) $ECHO_C" >&6
22316 if test -n "$CC"; then
22317 ac_cv_prog_CC="$CC" # Let the user override the test.
22319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22320 for as_dir in $PATH
22323 test -z "$as_dir" && as_dir=.
22324 for ac_exec_ext in '' $ac_executable_extensions; do
22325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22326 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
22327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22336 if test -n "$CC"; then
22337 echo "$as_me:$LINENO: result: $CC" >&5
22338 echo "${ECHO_T}$CC" >&6
22340 echo "$as_me:$LINENO: result: no" >&5
22341 echo "${ECHO_T}no" >&6
22344 test -n "$CC" && break
22347 if test -z "$CC"; then
22351 # Extract the first word of "$ac_prog", so it can be a program name with args.
22352 set dummy $ac_prog; ac_word=$2
22353 echo "$as_me:$LINENO: checking for $ac_word" >&5
22354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22355 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22356 echo $ECHO_N "(cached) $ECHO_C" >&6
22358 if test -n "$ac_ct_CC"; then
22359 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22362 for as_dir in $PATH
22365 test -z "$as_dir" && as_dir=.
22366 for ac_exec_ext in '' $ac_executable_extensions; do
22367 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22368 ac_cv_prog_ac_ct_CC="$ac_prog"
22369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22377 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22378 if test -n "$ac_ct_CC"; then
22379 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22380 echo "${ECHO_T}$ac_ct_CC" >&6
22382 echo "$as_me:$LINENO: result: no" >&5
22383 echo "${ECHO_T}no" >&6
22386 test -n "$ac_ct_CC" && break
22395 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
22396 See \`config.log' for more details." >&5
22397 echo "$as_me: error: no acceptable C compiler found in \$PATH
22398 See \`config.log' for more details." >&2;}
22399 { (exit 1); exit 1; }; }
22401 # Provide some information about the compiler.
22402 echo "$as_me:$LINENO:" \
22403 "checking for C compiler version" >&5
22404 ac_compiler=`set X $ac_compile; echo $2`
22405 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
22406 (eval $ac_compiler --version </dev/null >&5) 2>&5
22408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22409 (exit $ac_status); }
22410 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
22411 (eval $ac_compiler -v </dev/null >&5) 2>&5
22413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22414 (exit $ac_status); }
22415 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
22416 (eval $ac_compiler -V </dev/null >&5) 2>&5
22418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22419 (exit $ac_status); }
22421 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
22422 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
22423 if test "${ac_cv_c_compiler_gnu+set}" = set; then
22424 echo $ECHO_N "(cached) $ECHO_C" >&6
22426 cat >conftest.$ac_ext <<_ACEOF
22429 cat confdefs.h >>conftest.$ac_ext
22430 cat >>conftest.$ac_ext <<_ACEOF
22431 /* end confdefs.h. */
22444 rm -f conftest.$ac_objext
22445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22446 (eval $ac_compile) 2>conftest.er1
22448 grep -v '^ *+' conftest.er1 >conftest.err
22450 cat conftest.err >&5
22451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22452 (exit $ac_status); } &&
22453 { ac_try='test -z "$ac_c_werror_flag"
22454 || test ! -s conftest.err'
22455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22456 (eval $ac_try) 2>&5
22458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22459 (exit $ac_status); }; } &&
22460 { ac_try='test -s conftest.$ac_objext'
22461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22462 (eval $ac_try) 2>&5
22464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22465 (exit $ac_status); }; }; then
22466 ac_compiler_gnu=yes
22468 echo "$as_me: failed program was:" >&5
22469 sed 's/^/| /' conftest.$ac_ext >&5
22473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22474 ac_cv_c_compiler_gnu=$ac_compiler_gnu
22477 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
22478 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
22479 GCC=`test $ac_compiler_gnu = yes && echo yes`
22480 ac_test_CFLAGS=${CFLAGS+set}
22481 ac_save_CFLAGS=$CFLAGS
22483 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
22484 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
22485 if test "${ac_cv_prog_cc_g+set}" = set; then
22486 echo $ECHO_N "(cached) $ECHO_C" >&6
22488 cat >conftest.$ac_ext <<_ACEOF
22491 cat confdefs.h >>conftest.$ac_ext
22492 cat >>conftest.$ac_ext <<_ACEOF
22493 /* end confdefs.h. */
22503 rm -f conftest.$ac_objext
22504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22505 (eval $ac_compile) 2>conftest.er1
22507 grep -v '^ *+' conftest.er1 >conftest.err
22509 cat conftest.err >&5
22510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22511 (exit $ac_status); } &&
22512 { ac_try='test -z "$ac_c_werror_flag"
22513 || test ! -s conftest.err'
22514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22515 (eval $ac_try) 2>&5
22517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22518 (exit $ac_status); }; } &&
22519 { ac_try='test -s conftest.$ac_objext'
22520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22521 (eval $ac_try) 2>&5
22523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22524 (exit $ac_status); }; }; then
22525 ac_cv_prog_cc_g=yes
22527 echo "$as_me: failed program was:" >&5
22528 sed 's/^/| /' conftest.$ac_ext >&5
22532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22534 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
22535 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
22536 if test "$ac_test_CFLAGS" = set; then
22537 CFLAGS=$ac_save_CFLAGS
22538 elif test $ac_cv_prog_cc_g = yes; then
22539 if test "$GCC" = yes; then
22545 if test "$GCC" = yes; then
22551 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
22552 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
22553 if test "${ac_cv_prog_cc_stdc+set}" = set; then
22554 echo $ECHO_N "(cached) $ECHO_C" >&6
22556 ac_cv_prog_cc_stdc=no
22558 cat >conftest.$ac_ext <<_ACEOF
22561 cat confdefs.h >>conftest.$ac_ext
22562 cat >>conftest.$ac_ext <<_ACEOF
22563 /* end confdefs.h. */
22564 #include <stdarg.h>
22566 #include <sys/types.h>
22567 #include <sys/stat.h>
22568 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
22569 struct buf { int x; };
22570 FILE * (*rcsopen) (struct buf *, struct stat *, int);
22571 static char *e (p, i)
22577 static char *f (char * (*g) (char **, int), char **p, ...)
22582 s = g (p, va_arg (v,int));
22587 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
22588 function prototypes and stuff, but not '\xHH' hex character constants.
22589 These don't provoke an error unfortunately, instead are silently treated
22590 as 'x'. The following induces an error, until -std1 is added to get
22591 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
22592 array size at least. It's necessary to write '\x00'==0 to get something
22593 that's true only with -std1. */
22594 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
22596 int test (int i, double x);
22597 struct s1 {int (*f) (int a);};
22598 struct s2 {int (*f) (double a);};
22599 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
22605 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
22610 # Don't try gcc -ansi; that turns off useful extensions and
22611 # breaks some systems' header files.
22612 # AIX -qlanglvl=ansi
22613 # Ultrix and OSF/1 -std1
22614 # HP-UX 10.20 and later -Ae
22615 # HP-UX older versions -Aa -D_HPUX_SOURCE
22616 # SVR4 -Xc -D__EXTENSIONS__
22617 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
22619 CC="$ac_save_CC $ac_arg"
22620 rm -f conftest.$ac_objext
22621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22622 (eval $ac_compile) 2>conftest.er1
22624 grep -v '^ *+' conftest.er1 >conftest.err
22626 cat conftest.err >&5
22627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22628 (exit $ac_status); } &&
22629 { ac_try='test -z "$ac_c_werror_flag"
22630 || test ! -s conftest.err'
22631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22632 (eval $ac_try) 2>&5
22634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22635 (exit $ac_status); }; } &&
22636 { ac_try='test -s conftest.$ac_objext'
22637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22638 (eval $ac_try) 2>&5
22640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22641 (exit $ac_status); }; }; then
22642 ac_cv_prog_cc_stdc=$ac_arg
22645 echo "$as_me: failed program was:" >&5
22646 sed 's/^/| /' conftest.$ac_ext >&5
22649 rm -f conftest.err conftest.$ac_objext
22651 rm -f conftest.$ac_ext conftest.$ac_objext
22656 case "x$ac_cv_prog_cc_stdc" in
22658 echo "$as_me:$LINENO: result: none needed" >&5
22659 echo "${ECHO_T}none needed" >&6 ;;
22661 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
22662 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
22663 CC="$CC $ac_cv_prog_cc_stdc" ;;
22666 # Some people use a C++ compiler to compile C. Since we use `exit',
22667 # in C++ we need to declare it. In case someone uses the same compiler
22668 # for both compiling C and C++ we need to have the C++ compiler decide
22669 # the declaration of exit, since it's the most demanding environment.
22670 cat >conftest.$ac_ext <<_ACEOF
22671 #ifndef __cplusplus
22675 rm -f conftest.$ac_objext
22676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22677 (eval $ac_compile) 2>conftest.er1
22679 grep -v '^ *+' conftest.er1 >conftest.err
22681 cat conftest.err >&5
22682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22683 (exit $ac_status); } &&
22684 { ac_try='test -z "$ac_c_werror_flag"
22685 || test ! -s conftest.err'
22686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22687 (eval $ac_try) 2>&5
22689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22690 (exit $ac_status); }; } &&
22691 { ac_try='test -s conftest.$ac_objext'
22692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22693 (eval $ac_try) 2>&5
22695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22696 (exit $ac_status); }; }; then
22697 for ac_declaration in \
22699 'extern "C" void std::exit (int) throw (); using std::exit;' \
22700 'extern "C" void std::exit (int); using std::exit;' \
22701 'extern "C" void exit (int) throw ();' \
22702 'extern "C" void exit (int);' \
22705 cat >conftest.$ac_ext <<_ACEOF
22708 cat confdefs.h >>conftest.$ac_ext
22709 cat >>conftest.$ac_ext <<_ACEOF
22710 /* end confdefs.h. */
22712 #include <stdlib.h>
22721 rm -f conftest.$ac_objext
22722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22723 (eval $ac_compile) 2>conftest.er1
22725 grep -v '^ *+' conftest.er1 >conftest.err
22727 cat conftest.err >&5
22728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22729 (exit $ac_status); } &&
22730 { ac_try='test -z "$ac_c_werror_flag"
22731 || test ! -s conftest.err'
22732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22733 (eval $ac_try) 2>&5
22735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22736 (exit $ac_status); }; } &&
22737 { ac_try='test -s conftest.$ac_objext'
22738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22739 (eval $ac_try) 2>&5
22741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22742 (exit $ac_status); }; }; then
22745 echo "$as_me: failed program was:" >&5
22746 sed 's/^/| /' conftest.$ac_ext >&5
22750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22751 cat >conftest.$ac_ext <<_ACEOF
22754 cat confdefs.h >>conftest.$ac_ext
22755 cat >>conftest.$ac_ext <<_ACEOF
22756 /* end confdefs.h. */
22766 rm -f conftest.$ac_objext
22767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22768 (eval $ac_compile) 2>conftest.er1
22770 grep -v '^ *+' conftest.er1 >conftest.err
22772 cat conftest.err >&5
22773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22774 (exit $ac_status); } &&
22775 { ac_try='test -z "$ac_c_werror_flag"
22776 || test ! -s conftest.err'
22777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22778 (eval $ac_try) 2>&5
22780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22781 (exit $ac_status); }; } &&
22782 { ac_try='test -s conftest.$ac_objext'
22783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22784 (eval $ac_try) 2>&5
22786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22787 (exit $ac_status); }; }; then
22790 echo "$as_me: failed program was:" >&5
22791 sed 's/^/| /' conftest.$ac_ext >&5
22794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22797 if test -n "$ac_declaration"; then
22798 echo '#ifdef __cplusplus' >>confdefs.h
22799 echo $ac_declaration >>confdefs.h
22800 echo '#endif' >>confdefs.h
22804 echo "$as_me: failed program was:" >&5
22805 sed 's/^/| /' conftest.$ac_ext >&5
22808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22810 ac_cpp='$CPP $CPPFLAGS'
22811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22815 depcc="$CC" am_compiler_list=
22817 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
22818 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
22819 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
22820 echo $ECHO_N "(cached) $ECHO_C" >&6
22822 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
22823 # We make a subdir and do the tests there. Otherwise we can end up
22824 # making bogus files that we don't know about and never remove. For
22825 # instance it was reported that on HP-UX the gcc test will end up
22826 # making a dummy file named `D' -- because `-MD' means `put the output
22829 # Copy depcomp to subdir because otherwise we won't find it if we're
22830 # using a relative directory.
22831 cp "$am_depcomp" conftest.dir
22833 # We will build objects and dependencies in a subdirectory because
22834 # it helps to detect inapplicable dependency modes. For instance
22835 # both Tru64's cc and ICC support -MD to output dependencies as a
22836 # side effect of compilation, but ICC will put the dependencies in
22837 # the current directory while Tru64 will put them in the object
22841 am_cv_CC_dependencies_compiler_type=none
22842 if test "$am_compiler_list" = ""; then
22843 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
22845 for depmode in $am_compiler_list; do
22846 # Setup a source with many dependencies, because some compilers
22847 # like to wrap large dependency lists on column 80 (with \), and
22848 # we should not choose a depcomp mode which is confused by this.
22850 # We need to recreate these files for each test, as the compiler may
22851 # overwrite some of them when testing with obscure command lines.
22852 # This happens at least with the AIX C compiler.
22854 for i in 1 2 3 4 5 6; do
22855 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22856 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
22857 # Solaris 8's {/usr,}/bin/sh.
22858 touch sub/conftst$i.h
22860 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
22864 # after this tag, mechanisms are not by side-effect, so they'll
22865 # only be used when explicitly requested
22866 if test "x$enable_dependency_tracking" = xyes; then
22874 # We check with `-c' and `-o' for the sake of the "dashmstdout"
22875 # mode. It turns out that the SunPro C++ compiler does not properly
22876 # handle `-M -o', and we need to detect this.
22877 if depmode=$depmode \
22878 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
22879 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
22880 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
22881 >/dev/null 2>conftest.err &&
22882 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
22883 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
22884 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
22885 # icc doesn't choke on unknown options, it will just issue warnings
22886 # or remarks (even with -Werror). So we grep stderr for any message
22887 # that says an option was ignored or not supported.
22888 # When given -MP, icc 7.0 and 7.1 complain thusly:
22889 # icc: Command line warning: ignoring option '-M'; no argument required
22890 # The diagnosis changed in icc 8.0:
22891 # icc: Command line remark: option '-MP' not supported
22892 if (grep 'ignoring option' conftest.err ||
22893 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
22894 am_cv_CC_dependencies_compiler_type=$depmode
22901 rm -rf conftest.dir
22903 am_cv_CC_dependencies_compiler_type=none
22907 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
22908 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
22909 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
22914 test "x$enable_dependency_tracking" != xno \
22915 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
22916 am__fastdepCC_TRUE=
22917 am__fastdepCC_FALSE='#'
22919 am__fastdepCC_TRUE='#'
22920 am__fastdepCC_FALSE=
22925 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
22927 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
22928 { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
22929 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
22930 { (exit 1); exit 1; }; }
22933 # test for make depend flag
22936 if test -z "${MKDEP}"; then
22937 OL_MKDEP="${CC-cc}"
22938 if test -z "${MKDEP_FLAGS}"; then
22939 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
22940 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
22941 if test "${ol_cv_mkdep+set}" = set; then
22942 echo $ECHO_N "(cached) $ECHO_C" >&6
22946 for flag in "-M" "-xM"; do
22947 cat > conftest.c <<EOF
22950 if { ac_try='$OL_MKDEP $flag conftest.c'
22951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22952 (eval $ac_try) 2>&5
22954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22955 (exit $ac_status); }; } \
22956 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
22958 if test ! -f conftest."${ac_object}" ; then
22960 OL_MKDEP_FLAGS="$flag"
22968 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
22969 echo "${ECHO_T}$ol_cv_mkdep" >&6
22972 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
22976 OL_MKDEP="${MKDEP}"
22977 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
22982 if test "${ol_cv_mkdep}" = no ; then
22983 # this will soon become an error
22984 { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
22985 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
22988 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
22989 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
22990 if test "${ac_cv_lib_s_afopen+set}" = set; then
22991 echo $ECHO_N "(cached) $ECHO_C" >&6
22993 ac_check_lib_save_LIBS=$LIBS
22995 cat >conftest.$ac_ext <<_ACEOF
22998 cat confdefs.h >>conftest.$ac_ext
22999 cat >>conftest.$ac_ext <<_ACEOF
23000 /* end confdefs.h. */
23002 /* Override any gcc2 internal prototype to avoid an error. */
23006 /* We use char because int might match the return type of a gcc2
23007 builtin and then its argument prototype would still apply. */
23017 rm -f conftest.$ac_objext conftest$ac_exeext
23018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23019 (eval $ac_link) 2>conftest.er1
23021 grep -v '^ *+' conftest.er1 >conftest.err
23023 cat conftest.err >&5
23024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23025 (exit $ac_status); } &&
23026 { ac_try='test -z "$ac_c_werror_flag"
23027 || test ! -s conftest.err'
23028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23029 (eval $ac_try) 2>&5
23031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23032 (exit $ac_status); }; } &&
23033 { ac_try='test -s conftest$ac_exeext'
23034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23035 (eval $ac_try) 2>&5
23037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23038 (exit $ac_status); }; }; then
23039 ac_cv_lib_s_afopen=yes
23041 echo "$as_me: failed program was:" >&5
23042 sed 's/^/| /' conftest.$ac_ext >&5
23044 ac_cv_lib_s_afopen=no
23046 rm -f conftest.err conftest.$ac_objext \
23047 conftest$ac_exeext conftest.$ac_ext
23048 LIBS=$ac_check_lib_save_LIBS
23050 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
23051 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
23052 if test $ac_cv_lib_s_afopen = yes; then
23056 cat >>confdefs.h <<\_ACEOF
23057 #define HAVE_AIX_SECURITY 1
23066 ac_cv_func_getopt=no
23068 cat >>confdefs.h <<\_ACEOF
23069 #define BOTH_STRINGS_H 1
23076 WITH_MODULES_ENABLED=no
23077 if test $ol_enable_modules != no ; then
23079 for ac_header in ltdl.h
23081 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23082 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23083 echo "$as_me:$LINENO: checking for $ac_header" >&5
23084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23085 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23086 echo $ECHO_N "(cached) $ECHO_C" >&6
23088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23089 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23091 # Is the header compilable?
23092 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23093 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23094 cat >conftest.$ac_ext <<_ACEOF
23097 cat confdefs.h >>conftest.$ac_ext
23098 cat >>conftest.$ac_ext <<_ACEOF
23099 /* end confdefs.h. */
23100 $ac_includes_default
23101 #include <$ac_header>
23103 rm -f conftest.$ac_objext
23104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23105 (eval $ac_compile) 2>conftest.er1
23107 grep -v '^ *+' conftest.er1 >conftest.err
23109 cat conftest.err >&5
23110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23111 (exit $ac_status); } &&
23112 { ac_try='test -z "$ac_c_werror_flag"
23113 || test ! -s conftest.err'
23114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23115 (eval $ac_try) 2>&5
23117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23118 (exit $ac_status); }; } &&
23119 { ac_try='test -s conftest.$ac_objext'
23120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23121 (eval $ac_try) 2>&5
23123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23124 (exit $ac_status); }; }; then
23125 ac_header_compiler=yes
23127 echo "$as_me: failed program was:" >&5
23128 sed 's/^/| /' conftest.$ac_ext >&5
23130 ac_header_compiler=no
23132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23133 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23134 echo "${ECHO_T}$ac_header_compiler" >&6
23136 # Is the header present?
23137 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23138 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23139 cat >conftest.$ac_ext <<_ACEOF
23142 cat confdefs.h >>conftest.$ac_ext
23143 cat >>conftest.$ac_ext <<_ACEOF
23144 /* end confdefs.h. */
23145 #include <$ac_header>
23147 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23148 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23150 grep -v '^ *+' conftest.er1 >conftest.err
23152 cat conftest.err >&5
23153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23154 (exit $ac_status); } >/dev/null; then
23155 if test -s conftest.err; then
23156 ac_cpp_err=$ac_c_preproc_warn_flag
23157 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23164 if test -z "$ac_cpp_err"; then
23165 ac_header_preproc=yes
23167 echo "$as_me: failed program was:" >&5
23168 sed 's/^/| /' conftest.$ac_ext >&5
23170 ac_header_preproc=no
23172 rm -f conftest.err conftest.$ac_ext
23173 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23174 echo "${ECHO_T}$ac_header_preproc" >&6
23176 # So? What about this header?
23177 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23179 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23180 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23182 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23183 ac_header_preproc=yes
23186 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23187 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23188 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23189 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23190 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23191 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23192 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23193 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23195 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23196 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23197 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23200 ## ------------------------------------------ ##
23201 ## Report this to the AC_PACKAGE_NAME lists. ##
23202 ## ------------------------------------------ ##
23205 sed "s/^/$as_me: WARNING: /" >&2
23208 echo "$as_me:$LINENO: checking for $ac_header" >&5
23209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23211 echo $ECHO_N "(cached) $ECHO_C" >&6
23213 eval "$as_ac_Header=\$ac_header_preproc"
23215 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23216 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23219 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23220 cat >>confdefs.h <<_ACEOF
23221 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23229 if test $ac_cv_header_ltdl_h = no ; then
23230 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
23231 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
23232 { (exit 1); exit 1; }; }
23235 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
23236 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
23237 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
23238 echo $ECHO_N "(cached) $ECHO_C" >&6
23240 ac_check_lib_save_LIBS=$LIBS
23241 LIBS="-lltdl $LIBS"
23242 cat >conftest.$ac_ext <<_ACEOF
23245 cat confdefs.h >>conftest.$ac_ext
23246 cat >>conftest.$ac_ext <<_ACEOF
23247 /* end confdefs.h. */
23249 /* Override any gcc2 internal prototype to avoid an error. */
23253 /* We use char because int might match the return type of a gcc2
23254 builtin and then its argument prototype would still apply. */
23264 rm -f conftest.$ac_objext conftest$ac_exeext
23265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23266 (eval $ac_link) 2>conftest.er1
23268 grep -v '^ *+' conftest.er1 >conftest.err
23270 cat conftest.err >&5
23271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23272 (exit $ac_status); } &&
23273 { ac_try='test -z "$ac_c_werror_flag"
23274 || test ! -s conftest.err'
23275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23276 (eval $ac_try) 2>&5
23278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23279 (exit $ac_status); }; } &&
23280 { ac_try='test -s conftest$ac_exeext'
23281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23282 (eval $ac_try) 2>&5
23284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23285 (exit $ac_status); }; }; then
23286 ac_cv_lib_ltdl_lt_dlinit=yes
23288 echo "$as_me: failed program was:" >&5
23289 sed 's/^/| /' conftest.$ac_ext >&5
23291 ac_cv_lib_ltdl_lt_dlinit=no
23293 rm -f conftest.err conftest.$ac_objext \
23294 conftest$ac_exeext conftest.$ac_ext
23295 LIBS=$ac_check_lib_save_LIBS
23297 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
23298 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
23299 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
23301 MODULES_LIBS=-lltdl
23303 cat >>confdefs.h <<\_ACEOF
23304 #define HAVE_LIBLTDL 1
23311 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
23312 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
23313 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
23314 { (exit 1); exit 1; }; }
23316 ol_link_modules=yes
23317 WITH_MODULES_ENABLED=yes
23320 for i in $Backends; do
23321 eval "ol_tmp=\$ol_enable_$i"
23322 if test $ol_tmp = mod ; then
23323 { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
23324 echo "$as_me: WARNING: building static $i backend" >&2;}
23325 eval "ol_enable_$i=yes"
23328 for i in $Overlays; do
23329 eval "ol_tmp=\$ol_enable_$i"
23330 if test $ol_tmp = mod ; then
23331 { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
23332 echo "$as_me: WARNING: building static $i overlay" >&2;}
23333 eval "ol_enable_$i=yes"
23339 echo "$as_me:$LINENO: checking for EBCDIC" >&5
23340 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
23341 if test "${ol_cv_cpp_ebcdic+set}" = set; then
23342 echo $ECHO_N "(cached) $ECHO_C" >&6
23345 cat >conftest.$ac_ext <<_ACEOF
23348 cat confdefs.h >>conftest.$ac_ext
23349 cat >>conftest.$ac_ext <<_ACEOF
23350 /* end confdefs.h. */
23353 #include <__ASCII__/generate_error.h>
23357 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23358 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23360 grep -v '^ *+' conftest.er1 >conftest.err
23362 cat conftest.err >&5
23363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23364 (exit $ac_status); } >/dev/null; then
23365 if test -s conftest.err; then
23366 ac_cpp_err=$ac_c_preproc_warn_flag
23367 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23374 if test -z "$ac_cpp_err"; then
23375 ol_cv_cpp_ebcdic=yes
23377 echo "$as_me: failed program was:" >&5
23378 sed 's/^/| /' conftest.$ac_ext >&5
23380 ol_cv_cpp_ebcdic=no
23382 rm -f conftest.err conftest.$ac_ext
23384 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
23385 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
23386 if test $ol_cv_cpp_ebcdic = yes ; then
23388 cat >>confdefs.h <<\_ACEOF
23389 #define HAVE_EBCDIC 1
23394 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
23395 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
23396 if test "${ol_cv_header_stdc+set}" = set; then
23397 echo $ECHO_N "(cached) $ECHO_C" >&6
23399 cat >conftest.$ac_ext <<_ACEOF
23402 cat confdefs.h >>conftest.$ac_ext
23403 cat >>conftest.$ac_ext <<_ACEOF
23404 /* end confdefs.h. */
23405 #include <stdlib.h>
23406 #include <stdarg.h>
23407 #include <string.h>
23410 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23411 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23413 grep -v '^ *+' conftest.er1 >conftest.err
23415 cat conftest.err >&5
23416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23417 (exit $ac_status); } >/dev/null; then
23418 if test -s conftest.err; then
23419 ac_cpp_err=$ac_c_preproc_warn_flag
23420 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23427 if test -z "$ac_cpp_err"; then
23428 ol_cv_header_stdc=yes
23430 echo "$as_me: failed program was:" >&5
23431 sed 's/^/| /' conftest.$ac_ext >&5
23433 ol_cv_header_stdc=no
23435 rm -f conftest.err conftest.$ac_ext
23437 if test $ol_cv_header_stdc = yes; then
23438 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
23439 cat >conftest.$ac_ext <<_ACEOF
23442 cat confdefs.h >>conftest.$ac_ext
23443 cat >>conftest.$ac_ext <<_ACEOF
23444 /* end confdefs.h. */
23445 #include <string.h>
23448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23449 $EGREP "memchr" >/dev/null 2>&1; then
23452 ol_cv_header_stdc=no
23458 if test $ol_cv_header_stdc = yes; then
23459 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
23460 cat >conftest.$ac_ext <<_ACEOF
23463 cat confdefs.h >>conftest.$ac_ext
23464 cat >>conftest.$ac_ext <<_ACEOF
23465 /* end confdefs.h. */
23466 #include <stdlib.h>
23469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23470 $EGREP "free" >/dev/null 2>&1; then
23473 ol_cv_header_stdc=no
23479 if test $ol_cv_header_stdc = yes; then
23480 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
23481 if test "$cross_compiling" = yes; then
23484 cat >conftest.$ac_ext <<_ACEOF
23487 cat confdefs.h >>conftest.$ac_ext
23488 cat >>conftest.$ac_ext <<_ACEOF
23489 /* end confdefs.h. */
23491 #ifndef HAVE_EBCDIC
23492 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
23493 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
23495 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
23496 || ('j' <= (c) && (c) <= 'r') \
23497 || ('s' <= (c) && (c) <= 'z'))
23498 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
23500 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
23501 int main () { int i; for (i = 0; i < 256; i++)
23502 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
23506 rm -f conftest$ac_exeext
23507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23508 (eval $ac_link) 2>&5
23510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23511 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23513 (eval $ac_try) 2>&5
23515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23516 (exit $ac_status); }; }; then
23519 echo "$as_me: program exited with status $ac_status" >&5
23520 echo "$as_me: failed program was:" >&5
23521 sed 's/^/| /' conftest.$ac_ext >&5
23523 ( exit $ac_status )
23524 ol_cv_header_stdc=no
23526 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23530 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
23531 echo "${ECHO_T}$ol_cv_header_stdc" >&6
23532 if test $ol_cv_header_stdc = yes; then
23533 cat >>confdefs.h <<\_ACEOF
23534 #define STDC_HEADERS 1
23538 ac_cv_header_stdc=disable
23541 if test $ol_cv_header_stdc != yes; then
23542 { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
23543 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
23551 ac_header_dirent=no
23552 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
23553 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
23554 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
23555 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
23556 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23557 echo $ECHO_N "(cached) $ECHO_C" >&6
23559 cat >conftest.$ac_ext <<_ACEOF
23562 cat confdefs.h >>conftest.$ac_ext
23563 cat >>conftest.$ac_ext <<_ACEOF
23564 /* end confdefs.h. */
23565 #include <sys/types.h>
23577 rm -f conftest.$ac_objext
23578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23579 (eval $ac_compile) 2>conftest.er1
23581 grep -v '^ *+' conftest.er1 >conftest.err
23583 cat conftest.err >&5
23584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23585 (exit $ac_status); } &&
23586 { ac_try='test -z "$ac_c_werror_flag"
23587 || test ! -s conftest.err'
23588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23589 (eval $ac_try) 2>&5
23591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23592 (exit $ac_status); }; } &&
23593 { ac_try='test -s conftest.$ac_objext'
23594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23595 (eval $ac_try) 2>&5
23597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23598 (exit $ac_status); }; }; then
23599 eval "$as_ac_Header=yes"
23601 echo "$as_me: failed program was:" >&5
23602 sed 's/^/| /' conftest.$ac_ext >&5
23604 eval "$as_ac_Header=no"
23606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23609 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23611 cat >>confdefs.h <<_ACEOF
23612 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
23615 ac_header_dirent=$ac_hdr; break
23619 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
23620 if test $ac_header_dirent = dirent.h; then
23621 echo "$as_me:$LINENO: checking for library containing opendir" >&5
23622 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23623 if test "${ac_cv_search_opendir+set}" = set; then
23624 echo $ECHO_N "(cached) $ECHO_C" >&6
23626 ac_func_search_save_LIBS=$LIBS
23627 ac_cv_search_opendir=no
23628 cat >conftest.$ac_ext <<_ACEOF
23631 cat confdefs.h >>conftest.$ac_ext
23632 cat >>conftest.$ac_ext <<_ACEOF
23633 /* end confdefs.h. */
23635 /* Override any gcc2 internal prototype to avoid an error. */
23639 /* We use char because int might match the return type of a gcc2
23640 builtin and then its argument prototype would still apply. */
23650 rm -f conftest.$ac_objext conftest$ac_exeext
23651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23652 (eval $ac_link) 2>conftest.er1
23654 grep -v '^ *+' conftest.er1 >conftest.err
23656 cat conftest.err >&5
23657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23658 (exit $ac_status); } &&
23659 { ac_try='test -z "$ac_c_werror_flag"
23660 || test ! -s conftest.err'
23661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23662 (eval $ac_try) 2>&5
23664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23665 (exit $ac_status); }; } &&
23666 { ac_try='test -s conftest$ac_exeext'
23667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23668 (eval $ac_try) 2>&5
23670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23671 (exit $ac_status); }; }; then
23672 ac_cv_search_opendir="none required"
23674 echo "$as_me: failed program was:" >&5
23675 sed 's/^/| /' conftest.$ac_ext >&5
23678 rm -f conftest.err conftest.$ac_objext \
23679 conftest$ac_exeext conftest.$ac_ext
23680 if test "$ac_cv_search_opendir" = no; then
23681 for ac_lib in dir; do
23682 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23683 cat >conftest.$ac_ext <<_ACEOF
23686 cat confdefs.h >>conftest.$ac_ext
23687 cat >>conftest.$ac_ext <<_ACEOF
23688 /* end confdefs.h. */
23690 /* Override any gcc2 internal prototype to avoid an error. */
23694 /* We use char because int might match the return type of a gcc2
23695 builtin and then its argument prototype would still apply. */
23705 rm -f conftest.$ac_objext conftest$ac_exeext
23706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23707 (eval $ac_link) 2>conftest.er1
23709 grep -v '^ *+' conftest.er1 >conftest.err
23711 cat conftest.err >&5
23712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23713 (exit $ac_status); } &&
23714 { ac_try='test -z "$ac_c_werror_flag"
23715 || test ! -s conftest.err'
23716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23717 (eval $ac_try) 2>&5
23719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23720 (exit $ac_status); }; } &&
23721 { ac_try='test -s conftest$ac_exeext'
23722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23723 (eval $ac_try) 2>&5
23725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23726 (exit $ac_status); }; }; then
23727 ac_cv_search_opendir="-l$ac_lib"
23730 echo "$as_me: failed program was:" >&5
23731 sed 's/^/| /' conftest.$ac_ext >&5
23734 rm -f conftest.err conftest.$ac_objext \
23735 conftest$ac_exeext conftest.$ac_ext
23738 LIBS=$ac_func_search_save_LIBS
23740 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23741 echo "${ECHO_T}$ac_cv_search_opendir" >&6
23742 if test "$ac_cv_search_opendir" != no; then
23743 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23748 echo "$as_me:$LINENO: checking for library containing opendir" >&5
23749 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23750 if test "${ac_cv_search_opendir+set}" = set; then
23751 echo $ECHO_N "(cached) $ECHO_C" >&6
23753 ac_func_search_save_LIBS=$LIBS
23754 ac_cv_search_opendir=no
23755 cat >conftest.$ac_ext <<_ACEOF
23758 cat confdefs.h >>conftest.$ac_ext
23759 cat >>conftest.$ac_ext <<_ACEOF
23760 /* end confdefs.h. */
23762 /* Override any gcc2 internal prototype to avoid an error. */
23766 /* We use char because int might match the return type of a gcc2
23767 builtin and then its argument prototype would still apply. */
23777 rm -f conftest.$ac_objext conftest$ac_exeext
23778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23779 (eval $ac_link) 2>conftest.er1
23781 grep -v '^ *+' conftest.er1 >conftest.err
23783 cat conftest.err >&5
23784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23785 (exit $ac_status); } &&
23786 { ac_try='test -z "$ac_c_werror_flag"
23787 || test ! -s conftest.err'
23788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23789 (eval $ac_try) 2>&5
23791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23792 (exit $ac_status); }; } &&
23793 { ac_try='test -s conftest$ac_exeext'
23794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23795 (eval $ac_try) 2>&5
23797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23798 (exit $ac_status); }; }; then
23799 ac_cv_search_opendir="none required"
23801 echo "$as_me: failed program was:" >&5
23802 sed 's/^/| /' conftest.$ac_ext >&5
23805 rm -f conftest.err conftest.$ac_objext \
23806 conftest$ac_exeext conftest.$ac_ext
23807 if test "$ac_cv_search_opendir" = no; then
23808 for ac_lib in x; do
23809 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23810 cat >conftest.$ac_ext <<_ACEOF
23813 cat confdefs.h >>conftest.$ac_ext
23814 cat >>conftest.$ac_ext <<_ACEOF
23815 /* end confdefs.h. */
23817 /* Override any gcc2 internal prototype to avoid an error. */
23821 /* We use char because int might match the return type of a gcc2
23822 builtin and then its argument prototype would still apply. */
23832 rm -f conftest.$ac_objext conftest$ac_exeext
23833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23834 (eval $ac_link) 2>conftest.er1
23836 grep -v '^ *+' conftest.er1 >conftest.err
23838 cat conftest.err >&5
23839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23840 (exit $ac_status); } &&
23841 { ac_try='test -z "$ac_c_werror_flag"
23842 || test ! -s conftest.err'
23843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23844 (eval $ac_try) 2>&5
23846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23847 (exit $ac_status); }; } &&
23848 { ac_try='test -s conftest$ac_exeext'
23849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23850 (eval $ac_try) 2>&5
23852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23853 (exit $ac_status); }; }; then
23854 ac_cv_search_opendir="-l$ac_lib"
23857 echo "$as_me: failed program was:" >&5
23858 sed 's/^/| /' conftest.$ac_ext >&5
23861 rm -f conftest.err conftest.$ac_objext \
23862 conftest$ac_exeext conftest.$ac_ext
23865 LIBS=$ac_func_search_save_LIBS
23867 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23868 echo "${ECHO_T}$ac_cv_search_opendir" >&6
23869 if test "$ac_cv_search_opendir" != no; then
23870 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23876 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
23877 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
23878 if test "${ac_cv_header_sys_wait_h+set}" = set; then
23879 echo $ECHO_N "(cached) $ECHO_C" >&6
23881 cat >conftest.$ac_ext <<_ACEOF
23884 cat confdefs.h >>conftest.$ac_ext
23885 cat >>conftest.$ac_ext <<_ACEOF
23886 /* end confdefs.h. */
23887 #include <sys/types.h>
23888 #include <sys/wait.h>
23889 #ifndef WEXITSTATUS
23890 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
23893 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
23901 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
23906 rm -f conftest.$ac_objext
23907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23908 (eval $ac_compile) 2>conftest.er1
23910 grep -v '^ *+' conftest.er1 >conftest.err
23912 cat conftest.err >&5
23913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23914 (exit $ac_status); } &&
23915 { ac_try='test -z "$ac_c_werror_flag"
23916 || test ! -s conftest.err'
23917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23918 (eval $ac_try) 2>&5
23920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23921 (exit $ac_status); }; } &&
23922 { ac_try='test -s conftest.$ac_objext'
23923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23924 (eval $ac_try) 2>&5
23926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23927 (exit $ac_status); }; }; then
23928 ac_cv_header_sys_wait_h=yes
23930 echo "$as_me: failed program was:" >&5
23931 sed 's/^/| /' conftest.$ac_ext >&5
23933 ac_cv_header_sys_wait_h=no
23935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23937 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
23938 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
23939 if test $ac_cv_header_sys_wait_h = yes; then
23941 cat >>confdefs.h <<\_ACEOF
23942 #define HAVE_SYS_WAIT_H 1
23947 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
23948 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
23949 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
23950 echo $ECHO_N "(cached) $ECHO_C" >&6
23952 cat >conftest.$ac_ext <<_ACEOF
23955 cat confdefs.h >>conftest.$ac_ext
23956 cat >>conftest.$ac_ext <<_ACEOF
23957 /* end confdefs.h. */
23958 #include <sys/types.h>
23959 #include <termios.h>
23965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23966 $EGREP "yes" >/dev/null 2>&1; then
23967 ac_cv_sys_tiocgwinsz_in_termios_h=yes
23969 ac_cv_sys_tiocgwinsz_in_termios_h=no
23974 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
23975 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
23977 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
23978 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
23979 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
23980 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
23981 echo $ECHO_N "(cached) $ECHO_C" >&6
23983 cat >conftest.$ac_ext <<_ACEOF
23986 cat confdefs.h >>conftest.$ac_ext
23987 cat >>conftest.$ac_ext <<_ACEOF
23988 /* end confdefs.h. */
23989 #include <sys/types.h>
23990 #include <sys/ioctl.h>
23996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23997 $EGREP "yes" >/dev/null 2>&1; then
23998 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
24000 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
24005 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
24006 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
24008 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
24010 cat >>confdefs.h <<\_ACEOF
24011 #define GWINSZ_IN_SYS_IOCTL 1
24017 if test $am_cv_sys_posix_termios = yes ; then
24019 cat >>confdefs.h <<\_ACEOF
24020 #define HAVE_POSIX_TERMIOS 1
24126 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24127 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24128 echo "$as_me:$LINENO: checking for $ac_header" >&5
24129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24131 echo $ECHO_N "(cached) $ECHO_C" >&6
24133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24134 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24136 # Is the header compilable?
24137 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24138 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24139 cat >conftest.$ac_ext <<_ACEOF
24142 cat confdefs.h >>conftest.$ac_ext
24143 cat >>conftest.$ac_ext <<_ACEOF
24144 /* end confdefs.h. */
24145 $ac_includes_default
24146 #include <$ac_header>
24148 rm -f conftest.$ac_objext
24149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24150 (eval $ac_compile) 2>conftest.er1
24152 grep -v '^ *+' conftest.er1 >conftest.err
24154 cat conftest.err >&5
24155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24156 (exit $ac_status); } &&
24157 { ac_try='test -z "$ac_c_werror_flag"
24158 || test ! -s conftest.err'
24159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24160 (eval $ac_try) 2>&5
24162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24163 (exit $ac_status); }; } &&
24164 { ac_try='test -s conftest.$ac_objext'
24165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24166 (eval $ac_try) 2>&5
24168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24169 (exit $ac_status); }; }; then
24170 ac_header_compiler=yes
24172 echo "$as_me: failed program was:" >&5
24173 sed 's/^/| /' conftest.$ac_ext >&5
24175 ac_header_compiler=no
24177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24178 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24179 echo "${ECHO_T}$ac_header_compiler" >&6
24181 # Is the header present?
24182 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24183 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24184 cat >conftest.$ac_ext <<_ACEOF
24187 cat confdefs.h >>conftest.$ac_ext
24188 cat >>conftest.$ac_ext <<_ACEOF
24189 /* end confdefs.h. */
24190 #include <$ac_header>
24192 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24193 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24195 grep -v '^ *+' conftest.er1 >conftest.err
24197 cat conftest.err >&5
24198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24199 (exit $ac_status); } >/dev/null; then
24200 if test -s conftest.err; then
24201 ac_cpp_err=$ac_c_preproc_warn_flag
24202 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24209 if test -z "$ac_cpp_err"; then
24210 ac_header_preproc=yes
24212 echo "$as_me: failed program was:" >&5
24213 sed 's/^/| /' conftest.$ac_ext >&5
24215 ac_header_preproc=no
24217 rm -f conftest.err conftest.$ac_ext
24218 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24219 echo "${ECHO_T}$ac_header_preproc" >&6
24221 # So? What about this header?
24222 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24224 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24225 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24227 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24228 ac_header_preproc=yes
24231 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24232 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24233 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24234 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24235 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24236 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24237 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24238 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24239 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24240 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24241 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24242 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24245 ## ------------------------------------------ ##
24246 ## Report this to the AC_PACKAGE_NAME lists. ##
24247 ## ------------------------------------------ ##
24250 sed "s/^/$as_me: WARNING: /" >&2
24253 echo "$as_me:$LINENO: checking for $ac_header" >&5
24254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24256 echo $ECHO_N "(cached) $ECHO_C" >&6
24258 eval "$as_ac_Header=\$ac_header_preproc"
24260 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24261 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24264 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24265 cat >>confdefs.h <<_ACEOF
24266 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24277 for ac_func in sigaction sigset
24279 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24280 echo "$as_me:$LINENO: checking for $ac_func" >&5
24281 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24282 if eval "test \"\${$as_ac_var+set}\" = set"; then
24283 echo $ECHO_N "(cached) $ECHO_C" >&6
24285 cat >conftest.$ac_ext <<_ACEOF
24288 cat confdefs.h >>conftest.$ac_ext
24289 cat >>conftest.$ac_ext <<_ACEOF
24290 /* end confdefs.h. */
24291 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24292 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24293 #define $ac_func innocuous_$ac_func
24295 /* System header to define __stub macros and hopefully few prototypes,
24296 which can conflict with char $ac_func (); below.
24297 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24298 <limits.h> exists even on freestanding compilers. */
24301 # include <limits.h>
24303 # include <assert.h>
24308 /* Override any gcc2 internal prototype to avoid an error. */
24313 /* We use char because int might match the return type of a gcc2
24314 builtin and then its argument prototype would still apply. */
24316 /* The GNU C library defines this for functions which it implements
24317 to always fail with ENOSYS. Some functions are actually named
24318 something starting with __ and the normal name is an alias. */
24319 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24322 char (*f) () = $ac_func;
24331 return f != $ac_func;
24336 rm -f conftest.$ac_objext conftest$ac_exeext
24337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24338 (eval $ac_link) 2>conftest.er1
24340 grep -v '^ *+' conftest.er1 >conftest.err
24342 cat conftest.err >&5
24343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24344 (exit $ac_status); } &&
24345 { ac_try='test -z "$ac_c_werror_flag"
24346 || test ! -s conftest.err'
24347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24348 (eval $ac_try) 2>&5
24350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24351 (exit $ac_status); }; } &&
24352 { ac_try='test -s conftest$ac_exeext'
24353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24354 (eval $ac_try) 2>&5
24356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24357 (exit $ac_status); }; }; then
24358 eval "$as_ac_var=yes"
24360 echo "$as_me: failed program was:" >&5
24361 sed 's/^/| /' conftest.$ac_ext >&5
24363 eval "$as_ac_var=no"
24365 rm -f conftest.err conftest.$ac_objext \
24366 conftest$ac_exeext conftest.$ac_ext
24368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24369 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24370 if test `eval echo '${'$as_ac_var'}'` = yes; then
24371 cat >>confdefs.h <<_ACEOF
24372 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24379 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
24381 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
24382 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
24383 if test "${ac_cv_lib_V3_sigset+set}" = set; then
24384 echo $ECHO_N "(cached) $ECHO_C" >&6
24386 ac_check_lib_save_LIBS=$LIBS
24388 cat >conftest.$ac_ext <<_ACEOF
24391 cat confdefs.h >>conftest.$ac_ext
24392 cat >>conftest.$ac_ext <<_ACEOF
24393 /* end confdefs.h. */
24395 /* Override any gcc2 internal prototype to avoid an error. */
24399 /* We use char because int might match the return type of a gcc2
24400 builtin and then its argument prototype would still apply. */
24410 rm -f conftest.$ac_objext conftest$ac_exeext
24411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24412 (eval $ac_link) 2>conftest.er1
24414 grep -v '^ *+' conftest.er1 >conftest.err
24416 cat conftest.err >&5
24417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24418 (exit $ac_status); } &&
24419 { ac_try='test -z "$ac_c_werror_flag"
24420 || test ! -s conftest.err'
24421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24422 (eval $ac_try) 2>&5
24424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24425 (exit $ac_status); }; } &&
24426 { ac_try='test -s conftest$ac_exeext'
24427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24428 (eval $ac_try) 2>&5
24430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24431 (exit $ac_status); }; }; then
24432 ac_cv_lib_V3_sigset=yes
24434 echo "$as_me: failed program was:" >&5
24435 sed 's/^/| /' conftest.$ac_ext >&5
24437 ac_cv_lib_V3_sigset=no
24439 rm -f conftest.err conftest.$ac_objext \
24440 conftest$ac_exeext conftest.$ac_ext
24441 LIBS=$ac_check_lib_save_LIBS
24443 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
24444 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
24445 if test $ac_cv_lib_V3_sigset = yes; then
24446 cat >>confdefs.h <<_ACEOF
24447 #define HAVE_LIBV3 1
24456 if test "$ac_cv_cygwin" != yes && test "$ac_cv_header_winsock_h" = yes; then
24457 echo "$as_me:$LINENO: checking for winsock" >&5
24458 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
24459 if test "${ol_cv_winsock+set}" = set; then
24460 echo $ECHO_N "(cached) $ECHO_C" >&6
24463 for curlib in ws2_32 wsock32; do
24464 LIBS="$LIBS -l$curlib"
24465 cat >conftest.$ac_ext <<_ACEOF
24468 cat confdefs.h >>conftest.$ac_ext
24469 cat >>conftest.$ac_ext <<_ACEOF
24470 /* end confdefs.h. */
24471 #include <winsock.h>
24478 select(0,NULL,NULL,NULL,NULL);
24480 gethostname(NULL,0);
24486 rm -f conftest.$ac_objext conftest$ac_exeext
24487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24488 (eval $ac_link) 2>conftest.er1
24490 grep -v '^ *+' conftest.er1 >conftest.err
24492 cat conftest.err >&5
24493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24494 (exit $ac_status); } &&
24495 { ac_try='test -z "$ac_c_werror_flag"
24496 || test ! -s conftest.err'
24497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24498 (eval $ac_try) 2>&5
24500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24501 (exit $ac_status); }; } &&
24502 { ac_try='test -s conftest$ac_exeext'
24503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24504 (eval $ac_try) 2>&5
24506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24507 (exit $ac_status); }; }; then
24510 echo "$as_me: failed program was:" >&5
24511 sed 's/^/| /' conftest.$ac_ext >&5
24515 rm -f conftest.err conftest.$ac_objext \
24516 conftest$ac_exeext conftest.$ac_ext
24518 if test $ol_cv_winsock = yes; then
24520 cat >>confdefs.h <<\_ACEOF
24521 #define HAVE_WINSOCK 1
24524 ac_cv_func_socket=yes
24525 ac_cv_func_select=yes
24526 ac_cv_func_closesocket=yes
24527 ac_cv_func_gethostname=yes
24528 if test $curlib = ws2_32; then
24529 ol_cv_winsock=winsock2
24531 cat >>confdefs.h <<\_ACEOF
24532 #define HAVE_WINSOCK2 1
24541 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
24542 echo "${ECHO_T}$ol_cv_winsock" >&6
24546 echo "$as_me:$LINENO: checking for socket" >&5
24547 echo $ECHO_N "checking for socket... $ECHO_C" >&6
24548 if test "${ac_cv_func_socket+set}" = set; then
24549 echo $ECHO_N "(cached) $ECHO_C" >&6
24551 cat >conftest.$ac_ext <<_ACEOF
24554 cat confdefs.h >>conftest.$ac_ext
24555 cat >>conftest.$ac_ext <<_ACEOF
24556 /* end confdefs.h. */
24557 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24559 #define socket innocuous_socket
24561 /* System header to define __stub macros and hopefully few prototypes,
24562 which can conflict with char socket (); below.
24563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24564 <limits.h> exists even on freestanding compilers. */
24567 # include <limits.h>
24569 # include <assert.h>
24574 /* Override any gcc2 internal prototype to avoid an error. */
24579 /* We use char because int might match the return type of a gcc2
24580 builtin and then its argument prototype would still apply. */
24582 /* The GNU C library defines this for functions which it implements
24583 to always fail with ENOSYS. Some functions are actually named
24584 something starting with __ and the normal name is an alias. */
24585 #if defined (__stub_socket) || defined (__stub___socket)
24588 char (*f) () = socket;
24597 return f != socket;
24602 rm -f conftest.$ac_objext conftest$ac_exeext
24603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24604 (eval $ac_link) 2>conftest.er1
24606 grep -v '^ *+' conftest.er1 >conftest.err
24608 cat conftest.err >&5
24609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24610 (exit $ac_status); } &&
24611 { ac_try='test -z "$ac_c_werror_flag"
24612 || test ! -s conftest.err'
24613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24614 (eval $ac_try) 2>&5
24616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24617 (exit $ac_status); }; } &&
24618 { ac_try='test -s conftest$ac_exeext'
24619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24620 (eval $ac_try) 2>&5
24622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24623 (exit $ac_status); }; }; then
24624 ac_cv_func_socket=yes
24626 echo "$as_me: failed program was:" >&5
24627 sed 's/^/| /' conftest.$ac_ext >&5
24629 ac_cv_func_socket=no
24631 rm -f conftest.err conftest.$ac_objext \
24632 conftest$ac_exeext conftest.$ac_ext
24634 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24635 echo "${ECHO_T}$ac_cv_func_socket" >&6
24636 if test $ac_cv_func_socket = yes; then
24641 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
24642 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
24643 if test "${ac_cv_lib_socket_main+set}" = set; then
24644 echo $ECHO_N "(cached) $ECHO_C" >&6
24646 ac_check_lib_save_LIBS=$LIBS
24647 LIBS="-lsocket $LIBS"
24648 cat >conftest.$ac_ext <<_ACEOF
24651 cat confdefs.h >>conftest.$ac_ext
24652 cat >>conftest.$ac_ext <<_ACEOF
24653 /* end confdefs.h. */
24664 rm -f conftest.$ac_objext conftest$ac_exeext
24665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24666 (eval $ac_link) 2>conftest.er1
24668 grep -v '^ *+' conftest.er1 >conftest.err
24670 cat conftest.err >&5
24671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24672 (exit $ac_status); } &&
24673 { ac_try='test -z "$ac_c_werror_flag"
24674 || test ! -s conftest.err'
24675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24676 (eval $ac_try) 2>&5
24678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24679 (exit $ac_status); }; } &&
24680 { ac_try='test -s conftest$ac_exeext'
24681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24682 (eval $ac_try) 2>&5
24684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24685 (exit $ac_status); }; }; then
24686 ac_cv_lib_socket_main=yes
24688 echo "$as_me: failed program was:" >&5
24689 sed 's/^/| /' conftest.$ac_ext >&5
24691 ac_cv_lib_socket_main=no
24693 rm -f conftest.err conftest.$ac_objext \
24694 conftest$ac_exeext conftest.$ac_ext
24695 LIBS=$ac_check_lib_save_LIBS
24697 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
24698 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
24699 if test $ac_cv_lib_socket_main = yes; then
24700 cat >>confdefs.h <<_ACEOF
24701 #define HAVE_LIBSOCKET 1
24704 LIBS="-lsocket $LIBS"
24709 echo "$as_me:$LINENO: checking for main in -lnet" >&5
24710 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
24711 if test "${ac_cv_lib_net_main+set}" = set; then
24712 echo $ECHO_N "(cached) $ECHO_C" >&6
24714 ac_check_lib_save_LIBS=$LIBS
24716 cat >conftest.$ac_ext <<_ACEOF
24719 cat confdefs.h >>conftest.$ac_ext
24720 cat >>conftest.$ac_ext <<_ACEOF
24721 /* end confdefs.h. */
24732 rm -f conftest.$ac_objext conftest$ac_exeext
24733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24734 (eval $ac_link) 2>conftest.er1
24736 grep -v '^ *+' conftest.er1 >conftest.err
24738 cat conftest.err >&5
24739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24740 (exit $ac_status); } &&
24741 { ac_try='test -z "$ac_c_werror_flag"
24742 || test ! -s conftest.err'
24743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24744 (eval $ac_try) 2>&5
24746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24747 (exit $ac_status); }; } &&
24748 { ac_try='test -s conftest$ac_exeext'
24749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24750 (eval $ac_try) 2>&5
24752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24753 (exit $ac_status); }; }; then
24754 ac_cv_lib_net_main=yes
24756 echo "$as_me: failed program was:" >&5
24757 sed 's/^/| /' conftest.$ac_ext >&5
24759 ac_cv_lib_net_main=no
24761 rm -f conftest.err conftest.$ac_objext \
24762 conftest$ac_exeext conftest.$ac_ext
24763 LIBS=$ac_check_lib_save_LIBS
24765 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
24766 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
24767 if test $ac_cv_lib_net_main = yes; then
24768 cat >>confdefs.h <<_ACEOF
24769 #define HAVE_LIBNET 1
24777 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
24778 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
24779 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
24780 echo $ECHO_N "(cached) $ECHO_C" >&6
24782 ac_check_lib_save_LIBS=$LIBS
24783 LIBS="-lnsl_s $LIBS"
24784 cat >conftest.$ac_ext <<_ACEOF
24787 cat confdefs.h >>conftest.$ac_ext
24788 cat >>conftest.$ac_ext <<_ACEOF
24789 /* end confdefs.h. */
24800 rm -f conftest.$ac_objext conftest$ac_exeext
24801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24802 (eval $ac_link) 2>conftest.er1
24804 grep -v '^ *+' conftest.er1 >conftest.err
24806 cat conftest.err >&5
24807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24808 (exit $ac_status); } &&
24809 { ac_try='test -z "$ac_c_werror_flag"
24810 || test ! -s conftest.err'
24811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24812 (eval $ac_try) 2>&5
24814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24815 (exit $ac_status); }; } &&
24816 { ac_try='test -s conftest$ac_exeext'
24817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24818 (eval $ac_try) 2>&5
24820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24821 (exit $ac_status); }; }; then
24822 ac_cv_lib_nsl_s_main=yes
24824 echo "$as_me: failed program was:" >&5
24825 sed 's/^/| /' conftest.$ac_ext >&5
24827 ac_cv_lib_nsl_s_main=no
24829 rm -f conftest.err conftest.$ac_objext \
24830 conftest$ac_exeext conftest.$ac_ext
24831 LIBS=$ac_check_lib_save_LIBS
24833 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
24834 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
24835 if test $ac_cv_lib_nsl_s_main = yes; then
24836 cat >>confdefs.h <<_ACEOF
24837 #define HAVE_LIBNSL_S 1
24840 LIBS="-lnsl_s $LIBS"
24845 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
24846 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
24847 if test "${ac_cv_lib_nsl_main+set}" = set; then
24848 echo $ECHO_N "(cached) $ECHO_C" >&6
24850 ac_check_lib_save_LIBS=$LIBS
24852 cat >conftest.$ac_ext <<_ACEOF
24855 cat confdefs.h >>conftest.$ac_ext
24856 cat >>conftest.$ac_ext <<_ACEOF
24857 /* end confdefs.h. */
24868 rm -f conftest.$ac_objext conftest$ac_exeext
24869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24870 (eval $ac_link) 2>conftest.er1
24872 grep -v '^ *+' conftest.er1 >conftest.err
24874 cat conftest.err >&5
24875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24876 (exit $ac_status); } &&
24877 { ac_try='test -z "$ac_c_werror_flag"
24878 || test ! -s conftest.err'
24879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24880 (eval $ac_try) 2>&5
24882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24883 (exit $ac_status); }; } &&
24884 { ac_try='test -s conftest$ac_exeext'
24885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24886 (eval $ac_try) 2>&5
24888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24889 (exit $ac_status); }; }; then
24890 ac_cv_lib_nsl_main=yes
24892 echo "$as_me: failed program was:" >&5
24893 sed 's/^/| /' conftest.$ac_ext >&5
24895 ac_cv_lib_nsl_main=no
24897 rm -f conftest.err conftest.$ac_objext \
24898 conftest$ac_exeext conftest.$ac_ext
24899 LIBS=$ac_check_lib_save_LIBS
24901 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
24902 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
24903 if test $ac_cv_lib_nsl_main = yes; then
24904 cat >>confdefs.h <<_ACEOF
24905 #define HAVE_LIBNSL 1
24913 echo "$as_me:$LINENO: checking for socket in -linet" >&5
24914 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
24915 if test "${ac_cv_lib_inet_socket+set}" = set; then
24916 echo $ECHO_N "(cached) $ECHO_C" >&6
24918 ac_check_lib_save_LIBS=$LIBS
24919 LIBS="-linet $LIBS"
24920 cat >conftest.$ac_ext <<_ACEOF
24923 cat confdefs.h >>conftest.$ac_ext
24924 cat >>conftest.$ac_ext <<_ACEOF
24925 /* end confdefs.h. */
24927 /* Override any gcc2 internal prototype to avoid an error. */
24931 /* We use char because int might match the return type of a gcc2
24932 builtin and then its argument prototype would still apply. */
24942 rm -f conftest.$ac_objext conftest$ac_exeext
24943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24944 (eval $ac_link) 2>conftest.er1
24946 grep -v '^ *+' conftest.er1 >conftest.err
24948 cat conftest.err >&5
24949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24950 (exit $ac_status); } &&
24951 { ac_try='test -z "$ac_c_werror_flag"
24952 || test ! -s conftest.err'
24953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24954 (eval $ac_try) 2>&5
24956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24957 (exit $ac_status); }; } &&
24958 { ac_try='test -s conftest$ac_exeext'
24959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24960 (eval $ac_try) 2>&5
24962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24963 (exit $ac_status); }; }; then
24964 ac_cv_lib_inet_socket=yes
24966 echo "$as_me: failed program was:" >&5
24967 sed 's/^/| /' conftest.$ac_ext >&5
24969 ac_cv_lib_inet_socket=no
24971 rm -f conftest.err conftest.$ac_objext \
24972 conftest$ac_exeext conftest.$ac_ext
24973 LIBS=$ac_check_lib_save_LIBS
24975 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
24976 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
24977 if test $ac_cv_lib_inet_socket = yes; then
24978 cat >>confdefs.h <<_ACEOF
24979 #define HAVE_LIBINET 1
24982 LIBS="-linet $LIBS"
24987 echo "$as_me:$LINENO: checking for main in -lgen" >&5
24988 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
24989 if test "${ac_cv_lib_gen_main+set}" = set; then
24990 echo $ECHO_N "(cached) $ECHO_C" >&6
24992 ac_check_lib_save_LIBS=$LIBS
24994 cat >conftest.$ac_ext <<_ACEOF
24997 cat confdefs.h >>conftest.$ac_ext
24998 cat >>conftest.$ac_ext <<_ACEOF
24999 /* end confdefs.h. */
25010 rm -f conftest.$ac_objext conftest$ac_exeext
25011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25012 (eval $ac_link) 2>conftest.er1
25014 grep -v '^ *+' conftest.er1 >conftest.err
25016 cat conftest.err >&5
25017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25018 (exit $ac_status); } &&
25019 { ac_try='test -z "$ac_c_werror_flag"
25020 || test ! -s conftest.err'
25021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25022 (eval $ac_try) 2>&5
25024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25025 (exit $ac_status); }; } &&
25026 { ac_try='test -s conftest$ac_exeext'
25027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25028 (eval $ac_try) 2>&5
25030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25031 (exit $ac_status); }; }; then
25032 ac_cv_lib_gen_main=yes
25034 echo "$as_me: failed program was:" >&5
25035 sed 's/^/| /' conftest.$ac_ext >&5
25037 ac_cv_lib_gen_main=no
25039 rm -f conftest.err conftest.$ac_objext \
25040 conftest$ac_exeext conftest.$ac_ext
25041 LIBS=$ac_check_lib_save_LIBS
25043 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
25044 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
25045 if test $ac_cv_lib_gen_main = yes; then
25046 cat >>confdefs.h <<_ACEOF
25047 #define HAVE_LIBGEN 1
25058 echo "$as_me:$LINENO: checking for select" >&5
25059 echo $ECHO_N "checking for select... $ECHO_C" >&6
25060 if test "${ac_cv_func_select+set}" = set; then
25061 echo $ECHO_N "(cached) $ECHO_C" >&6
25063 cat >conftest.$ac_ext <<_ACEOF
25066 cat confdefs.h >>conftest.$ac_ext
25067 cat >>conftest.$ac_ext <<_ACEOF
25068 /* end confdefs.h. */
25069 /* Define select to an innocuous variant, in case <limits.h> declares select.
25070 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25071 #define select innocuous_select
25073 /* System header to define __stub macros and hopefully few prototypes,
25074 which can conflict with char select (); below.
25075 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25076 <limits.h> exists even on freestanding compilers. */
25079 # include <limits.h>
25081 # include <assert.h>
25086 /* Override any gcc2 internal prototype to avoid an error. */
25091 /* We use char because int might match the return type of a gcc2
25092 builtin and then its argument prototype would still apply. */
25094 /* The GNU C library defines this for functions which it implements
25095 to always fail with ENOSYS. Some functions are actually named
25096 something starting with __ and the normal name is an alias. */
25097 #if defined (__stub_select) || defined (__stub___select)
25100 char (*f) () = select;
25109 return f != select;
25114 rm -f conftest.$ac_objext conftest$ac_exeext
25115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25116 (eval $ac_link) 2>conftest.er1
25118 grep -v '^ *+' conftest.er1 >conftest.err
25120 cat conftest.err >&5
25121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25122 (exit $ac_status); } &&
25123 { ac_try='test -z "$ac_c_werror_flag"
25124 || test ! -s conftest.err'
25125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25126 (eval $ac_try) 2>&5
25128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25129 (exit $ac_status); }; } &&
25130 { ac_try='test -s conftest$ac_exeext'
25131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25132 (eval $ac_try) 2>&5
25134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25135 (exit $ac_status); }; }; then
25136 ac_cv_func_select=yes
25138 echo "$as_me: failed program was:" >&5
25139 sed 's/^/| /' conftest.$ac_ext >&5
25141 ac_cv_func_select=no
25143 rm -f conftest.err conftest.$ac_objext \
25144 conftest$ac_exeext conftest.$ac_ext
25146 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
25147 echo "${ECHO_T}$ac_cv_func_select" >&6
25148 if test $ac_cv_func_select = yes; then
25151 { { echo "$as_me:$LINENO: error: select() required." >&5
25152 echo "$as_me: error: select() required." >&2;}
25153 { (exit 1); exit 1; }; }
25157 if test "${ac_cv_header_winsock_h}" != yes; then
25160 for ac_header in sys/select.h sys/socket.h
25162 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25163 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25164 echo "$as_me:$LINENO: checking for $ac_header" >&5
25165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25166 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25167 echo $ECHO_N "(cached) $ECHO_C" >&6
25169 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25170 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25172 # Is the header compilable?
25173 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25174 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25175 cat >conftest.$ac_ext <<_ACEOF
25178 cat confdefs.h >>conftest.$ac_ext
25179 cat >>conftest.$ac_ext <<_ACEOF
25180 /* end confdefs.h. */
25181 $ac_includes_default
25182 #include <$ac_header>
25184 rm -f conftest.$ac_objext
25185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25186 (eval $ac_compile) 2>conftest.er1
25188 grep -v '^ *+' conftest.er1 >conftest.err
25190 cat conftest.err >&5
25191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25192 (exit $ac_status); } &&
25193 { ac_try='test -z "$ac_c_werror_flag"
25194 || test ! -s conftest.err'
25195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25196 (eval $ac_try) 2>&5
25198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25199 (exit $ac_status); }; } &&
25200 { ac_try='test -s conftest.$ac_objext'
25201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25202 (eval $ac_try) 2>&5
25204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25205 (exit $ac_status); }; }; then
25206 ac_header_compiler=yes
25208 echo "$as_me: failed program was:" >&5
25209 sed 's/^/| /' conftest.$ac_ext >&5
25211 ac_header_compiler=no
25213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25214 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25215 echo "${ECHO_T}$ac_header_compiler" >&6
25217 # Is the header present?
25218 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25219 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25220 cat >conftest.$ac_ext <<_ACEOF
25223 cat confdefs.h >>conftest.$ac_ext
25224 cat >>conftest.$ac_ext <<_ACEOF
25225 /* end confdefs.h. */
25226 #include <$ac_header>
25228 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25229 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25231 grep -v '^ *+' conftest.er1 >conftest.err
25233 cat conftest.err >&5
25234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25235 (exit $ac_status); } >/dev/null; then
25236 if test -s conftest.err; then
25237 ac_cpp_err=$ac_c_preproc_warn_flag
25238 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25245 if test -z "$ac_cpp_err"; then
25246 ac_header_preproc=yes
25248 echo "$as_me: failed program was:" >&5
25249 sed 's/^/| /' conftest.$ac_ext >&5
25251 ac_header_preproc=no
25253 rm -f conftest.err conftest.$ac_ext
25254 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25255 echo "${ECHO_T}$ac_header_preproc" >&6
25257 # So? What about this header?
25258 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25260 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25261 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25262 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25263 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25264 ac_header_preproc=yes
25267 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25268 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25269 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25270 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25271 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25272 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25273 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25274 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25276 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25277 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25278 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25281 ## ------------------------------------------ ##
25282 ## Report this to the AC_PACKAGE_NAME lists. ##
25283 ## ------------------------------------------ ##
25286 sed "s/^/$as_me: WARNING: /" >&2
25289 echo "$as_me:$LINENO: checking for $ac_header" >&5
25290 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25291 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25292 echo $ECHO_N "(cached) $ECHO_C" >&6
25294 eval "$as_ac_Header=\$ac_header_preproc"
25296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25297 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25300 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25301 cat >>confdefs.h <<_ACEOF
25302 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25309 echo "$as_me:$LINENO: checking types of arguments for select" >&5
25310 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
25311 if test "${ac_cv_func_select_args+set}" = set; then
25312 echo $ECHO_N "(cached) $ECHO_C" >&6
25314 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25315 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
25316 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
25317 cat >conftest.$ac_ext <<_ACEOF
25320 cat confdefs.h >>conftest.$ac_ext
25321 cat >>conftest.$ac_ext <<_ACEOF
25322 /* end confdefs.h. */
25323 $ac_includes_default
25324 #if HAVE_SYS_SELECT_H
25325 # include <sys/select.h>
25327 #if HAVE_SYS_SOCKET_H
25328 # include <sys/socket.h>
25334 extern int select ($ac_arg1,
25335 $ac_arg234, $ac_arg234, $ac_arg234,
25341 rm -f conftest.$ac_objext
25342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25343 (eval $ac_compile) 2>conftest.er1
25345 grep -v '^ *+' conftest.er1 >conftest.err
25347 cat conftest.err >&5
25348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25349 (exit $ac_status); } &&
25350 { ac_try='test -z "$ac_c_werror_flag"
25351 || test ! -s conftest.err'
25352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25353 (eval $ac_try) 2>&5
25355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25356 (exit $ac_status); }; } &&
25357 { ac_try='test -s conftest.$ac_objext'
25358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25359 (eval $ac_try) 2>&5
25361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25362 (exit $ac_status); }; }; then
25363 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
25365 echo "$as_me: failed program was:" >&5
25366 sed 's/^/| /' conftest.$ac_ext >&5
25369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25373 # Provide a safe default value.
25374 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
25377 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
25378 echo "${ECHO_T}$ac_cv_func_select_args" >&6
25379 ac_save_IFS=$IFS; IFS=','
25380 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25384 cat >>confdefs.h <<_ACEOF
25385 #define SELECT_TYPE_ARG1 $1
25389 cat >>confdefs.h <<_ACEOF
25390 #define SELECT_TYPE_ARG234 ($2)
25394 cat >>confdefs.h <<_ACEOF
25395 #define SELECT_TYPE_ARG5 ($3)
25404 for ac_func in poll
25406 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25407 echo "$as_me:$LINENO: checking for $ac_func" >&5
25408 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25409 if eval "test \"\${$as_ac_var+set}\" = set"; then
25410 echo $ECHO_N "(cached) $ECHO_C" >&6
25412 cat >conftest.$ac_ext <<_ACEOF
25415 cat confdefs.h >>conftest.$ac_ext
25416 cat >>conftest.$ac_ext <<_ACEOF
25417 /* end confdefs.h. */
25418 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25420 #define $ac_func innocuous_$ac_func
25422 /* System header to define __stub macros and hopefully few prototypes,
25423 which can conflict with char $ac_func (); below.
25424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25425 <limits.h> exists even on freestanding compilers. */
25428 # include <limits.h>
25430 # include <assert.h>
25435 /* Override any gcc2 internal prototype to avoid an error. */
25440 /* We use char because int might match the return type of a gcc2
25441 builtin and then its argument prototype would still apply. */
25443 /* The GNU C library defines this for functions which it implements
25444 to always fail with ENOSYS. Some functions are actually named
25445 something starting with __ and the normal name is an alias. */
25446 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25449 char (*f) () = $ac_func;
25458 return f != $ac_func;
25463 rm -f conftest.$ac_objext conftest$ac_exeext
25464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25465 (eval $ac_link) 2>conftest.er1
25467 grep -v '^ *+' conftest.er1 >conftest.err
25469 cat conftest.err >&5
25470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25471 (exit $ac_status); } &&
25472 { ac_try='test -z "$ac_c_werror_flag"
25473 || test ! -s conftest.err'
25474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25475 (eval $ac_try) 2>&5
25477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25478 (exit $ac_status); }; } &&
25479 { ac_try='test -s conftest$ac_exeext'
25480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25481 (eval $ac_try) 2>&5
25483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25484 (exit $ac_status); }; }; then
25485 eval "$as_ac_var=yes"
25487 echo "$as_me: failed program was:" >&5
25488 sed 's/^/| /' conftest.$ac_ext >&5
25490 eval "$as_ac_var=no"
25492 rm -f conftest.err conftest.$ac_objext \
25493 conftest$ac_exeext conftest.$ac_ext
25495 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25496 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25497 if test `eval echo '${'$as_ac_var'}'` = yes; then
25498 cat >>confdefs.h <<_ACEOF
25499 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25506 for ac_header in poll.h
25508 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25509 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25510 echo "$as_me:$LINENO: checking for $ac_header" >&5
25511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25512 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25513 echo $ECHO_N "(cached) $ECHO_C" >&6
25515 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25516 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25518 # Is the header compilable?
25519 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25520 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25521 cat >conftest.$ac_ext <<_ACEOF
25524 cat confdefs.h >>conftest.$ac_ext
25525 cat >>conftest.$ac_ext <<_ACEOF
25526 /* end confdefs.h. */
25527 $ac_includes_default
25528 #include <$ac_header>
25530 rm -f conftest.$ac_objext
25531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25532 (eval $ac_compile) 2>conftest.er1
25534 grep -v '^ *+' conftest.er1 >conftest.err
25536 cat conftest.err >&5
25537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25538 (exit $ac_status); } &&
25539 { ac_try='test -z "$ac_c_werror_flag"
25540 || test ! -s conftest.err'
25541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25542 (eval $ac_try) 2>&5
25544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25545 (exit $ac_status); }; } &&
25546 { ac_try='test -s conftest.$ac_objext'
25547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25548 (eval $ac_try) 2>&5
25550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25551 (exit $ac_status); }; }; then
25552 ac_header_compiler=yes
25554 echo "$as_me: failed program was:" >&5
25555 sed 's/^/| /' conftest.$ac_ext >&5
25557 ac_header_compiler=no
25559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25560 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25561 echo "${ECHO_T}$ac_header_compiler" >&6
25563 # Is the header present?
25564 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25565 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25566 cat >conftest.$ac_ext <<_ACEOF
25569 cat confdefs.h >>conftest.$ac_ext
25570 cat >>conftest.$ac_ext <<_ACEOF
25571 /* end confdefs.h. */
25572 #include <$ac_header>
25574 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25575 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25577 grep -v '^ *+' conftest.er1 >conftest.err
25579 cat conftest.err >&5
25580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25581 (exit $ac_status); } >/dev/null; then
25582 if test -s conftest.err; then
25583 ac_cpp_err=$ac_c_preproc_warn_flag
25584 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25591 if test -z "$ac_cpp_err"; then
25592 ac_header_preproc=yes
25594 echo "$as_me: failed program was:" >&5
25595 sed 's/^/| /' conftest.$ac_ext >&5
25597 ac_header_preproc=no
25599 rm -f conftest.err conftest.$ac_ext
25600 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25601 echo "${ECHO_T}$ac_header_preproc" >&6
25603 # So? What about this header?
25604 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25606 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25607 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25609 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25610 ac_header_preproc=yes
25613 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25614 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25615 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25616 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25617 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25618 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25619 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25620 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25622 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25623 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25624 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25627 ## ------------------------------------------ ##
25628 ## Report this to the AC_PACKAGE_NAME lists. ##
25629 ## ------------------------------------------ ##
25632 sed "s/^/$as_me: WARNING: /" >&2
25635 echo "$as_me:$LINENO: checking for $ac_header" >&5
25636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25638 echo $ECHO_N "(cached) $ECHO_C" >&6
25640 eval "$as_ac_Header=\$ac_header_preproc"
25642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25643 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25646 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25647 cat >>confdefs.h <<_ACEOF
25648 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25657 for ac_header in sys/epoll.h
25659 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25660 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25661 echo "$as_me:$LINENO: checking for $ac_header" >&5
25662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25663 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25664 echo $ECHO_N "(cached) $ECHO_C" >&6
25666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25667 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25669 # Is the header compilable?
25670 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25671 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25672 cat >conftest.$ac_ext <<_ACEOF
25675 cat confdefs.h >>conftest.$ac_ext
25676 cat >>conftest.$ac_ext <<_ACEOF
25677 /* end confdefs.h. */
25678 $ac_includes_default
25679 #include <$ac_header>
25681 rm -f conftest.$ac_objext
25682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25683 (eval $ac_compile) 2>conftest.er1
25685 grep -v '^ *+' conftest.er1 >conftest.err
25687 cat conftest.err >&5
25688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25689 (exit $ac_status); } &&
25690 { ac_try='test -z "$ac_c_werror_flag"
25691 || test ! -s conftest.err'
25692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25693 (eval $ac_try) 2>&5
25695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25696 (exit $ac_status); }; } &&
25697 { ac_try='test -s conftest.$ac_objext'
25698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25699 (eval $ac_try) 2>&5
25701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25702 (exit $ac_status); }; }; then
25703 ac_header_compiler=yes
25705 echo "$as_me: failed program was:" >&5
25706 sed 's/^/| /' conftest.$ac_ext >&5
25708 ac_header_compiler=no
25710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25711 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25712 echo "${ECHO_T}$ac_header_compiler" >&6
25714 # Is the header present?
25715 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25716 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25717 cat >conftest.$ac_ext <<_ACEOF
25720 cat confdefs.h >>conftest.$ac_ext
25721 cat >>conftest.$ac_ext <<_ACEOF
25722 /* end confdefs.h. */
25723 #include <$ac_header>
25725 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25726 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25728 grep -v '^ *+' conftest.er1 >conftest.err
25730 cat conftest.err >&5
25731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25732 (exit $ac_status); } >/dev/null; then
25733 if test -s conftest.err; then
25734 ac_cpp_err=$ac_c_preproc_warn_flag
25735 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25742 if test -z "$ac_cpp_err"; then
25743 ac_header_preproc=yes
25745 echo "$as_me: failed program was:" >&5
25746 sed 's/^/| /' conftest.$ac_ext >&5
25748 ac_header_preproc=no
25750 rm -f conftest.err conftest.$ac_ext
25751 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25752 echo "${ECHO_T}$ac_header_preproc" >&6
25754 # So? What about this header?
25755 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25757 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25758 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25759 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25760 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25761 ac_header_preproc=yes
25764 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25765 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25766 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25767 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25768 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25769 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25770 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25771 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25772 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25773 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25774 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25775 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25778 ## ------------------------------------------ ##
25779 ## Report this to the AC_PACKAGE_NAME lists. ##
25780 ## ------------------------------------------ ##
25783 sed "s/^/$as_me: WARNING: /" >&2
25786 echo "$as_me:$LINENO: checking for $ac_header" >&5
25787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25789 echo $ECHO_N "(cached) $ECHO_C" >&6
25791 eval "$as_ac_Header=\$ac_header_preproc"
25793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25794 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25798 cat >>confdefs.h <<_ACEOF
25799 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25806 if test "${ac_cv_header_sys_epoll_h}" = yes; then
25807 echo "$as_me:$LINENO: checking for epoll system call" >&5
25808 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
25809 if test "$cross_compiling" = yes; then
25810 echo "$as_me:$LINENO: result: no" >&5
25811 echo "${ECHO_T}no" >&6
25813 cat >conftest.$ac_ext <<_ACEOF
25816 cat confdefs.h >>conftest.$ac_ext
25817 cat >>conftest.$ac_ext <<_ACEOF
25818 /* end confdefs.h. */
25819 int main(int argc, char *argv)
25821 int epfd = epoll_create(256);
25822 exit (epfd == -1 ? 1 : 0);
25825 rm -f conftest$ac_exeext
25826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25827 (eval $ac_link) 2>&5
25829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25830 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25832 (eval $ac_try) 2>&5
25834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25835 (exit $ac_status); }; }; then
25836 echo "$as_me:$LINENO: result: yes" >&5
25837 echo "${ECHO_T}yes" >&6
25839 cat >>confdefs.h <<\_ACEOF
25840 #define HAVE_EPOLL 1
25844 echo "$as_me: program exited with status $ac_status" >&5
25845 echo "$as_me: failed program was:" >&5
25846 sed 's/^/| /' conftest.$ac_ext >&5
25848 ( exit $ac_status )
25849 echo "$as_me:$LINENO: result: no" >&5
25850 echo "${ECHO_T}no" >&6
25852 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25857 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
25858 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
25859 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
25860 echo $ECHO_N "(cached) $ECHO_C" >&6
25863 cat >conftest.$ac_ext <<_ACEOF
25866 cat confdefs.h >>conftest.$ac_ext
25867 cat >>conftest.$ac_ext <<_ACEOF
25868 /* end confdefs.h. */
25871 #include <sys/types.h>
25874 #include <stdlib.h>
25879 char *c = (char *) *sys_errlist
25884 rm -f conftest.$ac_objext
25885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25886 (eval $ac_compile) 2>conftest.er1
25888 grep -v '^ *+' conftest.er1 >conftest.err
25890 cat conftest.err >&5
25891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25892 (exit $ac_status); } &&
25893 { ac_try='test -z "$ac_c_werror_flag"
25894 || test ! -s conftest.err'
25895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25896 (eval $ac_try) 2>&5
25898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25899 (exit $ac_status); }; } &&
25900 { ac_try='test -s conftest.$ac_objext'
25901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25902 (eval $ac_try) 2>&5
25904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25905 (exit $ac_status); }; }; then
25906 ol_cv_dcl_sys_errlist=yes
25907 ol_cv_have_sys_errlist=yes
25909 echo "$as_me: failed program was:" >&5
25910 sed 's/^/| /' conftest.$ac_ext >&5
25912 ol_cv_dcl_sys_errlist=no
25914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25916 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
25917 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
25919 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
25920 if test $ol_cv_dcl_sys_errlist = no ; then
25922 cat >>confdefs.h <<\_ACEOF
25923 #define DECL_SYS_ERRLIST 1
25927 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
25928 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
25929 if test "${ol_cv_have_sys_errlist+set}" = set; then
25930 echo $ECHO_N "(cached) $ECHO_C" >&6
25933 cat >conftest.$ac_ext <<_ACEOF
25936 cat confdefs.h >>conftest.$ac_ext
25937 cat >>conftest.$ac_ext <<_ACEOF
25938 /* end confdefs.h. */
25943 char *c = (char *) *sys_errlist
25948 rm -f conftest.$ac_objext conftest$ac_exeext
25949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25950 (eval $ac_link) 2>conftest.er1
25952 grep -v '^ *+' conftest.er1 >conftest.err
25954 cat conftest.err >&5
25955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25956 (exit $ac_status); } &&
25957 { ac_try='test -z "$ac_c_werror_flag"
25958 || test ! -s conftest.err'
25959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25960 (eval $ac_try) 2>&5
25962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25963 (exit $ac_status); }; } &&
25964 { ac_try='test -s conftest$ac_exeext'
25965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25966 (eval $ac_try) 2>&5
25968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25969 (exit $ac_status); }; }; then
25970 ol_cv_have_sys_errlist=yes
25972 echo "$as_me: failed program was:" >&5
25973 sed 's/^/| /' conftest.$ac_ext >&5
25975 ol_cv_have_sys_errlist=no
25977 rm -f conftest.err conftest.$ac_objext \
25978 conftest$ac_exeext conftest.$ac_ext
25980 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
25981 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
25983 if test $ol_cv_have_sys_errlist = yes ; then
25985 cat >>confdefs.h <<\_ACEOF
25986 #define HAVE_SYS_ERRLIST 1
25992 for ac_func in strerror strerror_r
25994 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25995 echo "$as_me:$LINENO: checking for $ac_func" >&5
25996 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25997 if eval "test \"\${$as_ac_var+set}\" = set"; then
25998 echo $ECHO_N "(cached) $ECHO_C" >&6
26000 cat >conftest.$ac_ext <<_ACEOF
26003 cat confdefs.h >>conftest.$ac_ext
26004 cat >>conftest.$ac_ext <<_ACEOF
26005 /* end confdefs.h. */
26006 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26007 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26008 #define $ac_func innocuous_$ac_func
26010 /* System header to define __stub macros and hopefully few prototypes,
26011 which can conflict with char $ac_func (); below.
26012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26013 <limits.h> exists even on freestanding compilers. */
26016 # include <limits.h>
26018 # include <assert.h>
26023 /* Override any gcc2 internal prototype to avoid an error. */
26028 /* We use char because int might match the return type of a gcc2
26029 builtin and then its argument prototype would still apply. */
26031 /* The GNU C library defines this for functions which it implements
26032 to always fail with ENOSYS. Some functions are actually named
26033 something starting with __ and the normal name is an alias. */
26034 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26037 char (*f) () = $ac_func;
26046 return f != $ac_func;
26051 rm -f conftest.$ac_objext conftest$ac_exeext
26052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26053 (eval $ac_link) 2>conftest.er1
26055 grep -v '^ *+' conftest.er1 >conftest.err
26057 cat conftest.err >&5
26058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26059 (exit $ac_status); } &&
26060 { ac_try='test -z "$ac_c_werror_flag"
26061 || test ! -s conftest.err'
26062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26063 (eval $ac_try) 2>&5
26065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26066 (exit $ac_status); }; } &&
26067 { ac_try='test -s conftest$ac_exeext'
26068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26069 (eval $ac_try) 2>&5
26071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26072 (exit $ac_status); }; }; then
26073 eval "$as_ac_var=yes"
26075 echo "$as_me: failed program was:" >&5
26076 sed 's/^/| /' conftest.$ac_ext >&5
26078 eval "$as_ac_var=no"
26080 rm -f conftest.err conftest.$ac_objext \
26081 conftest$ac_exeext conftest.$ac_ext
26083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26084 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26085 if test `eval echo '${'$as_ac_var'}'` = yes; then
26086 cat >>confdefs.h <<_ACEOF
26087 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26093 ol_cv_func_strerror_r=no
26094 if test "${ac_cv_func_strerror_r}" = yes ; then
26095 echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
26096 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
26097 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
26098 echo $ECHO_N "(cached) $ECHO_C" >&6
26101 cat >conftest.$ac_ext <<_ACEOF
26104 cat confdefs.h >>conftest.$ac_ext
26105 cat >>conftest.$ac_ext <<_ACEOF
26106 /* end confdefs.h. */
26107 #include <string.h>
26109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26110 $EGREP "strerror_r" >/dev/null 2>&1; then
26111 ol_decl_strerror_r=yes
26113 ol_decl_strerror_r=no
26117 if test $ol_decl_strerror_r = yes ; then
26118 cat >conftest.$ac_ext <<_ACEOF
26121 cat confdefs.h >>conftest.$ac_ext
26122 cat >>conftest.$ac_ext <<_ACEOF
26123 /* end confdefs.h. */
26124 #include <string.h>
26128 /* from autoconf 2.59 */
26130 char x = *strerror_r (0, buf, sizeof buf);
26131 char *p = strerror_r (0, buf, sizeof buf);
26137 rm -f conftest.$ac_objext
26138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26139 (eval $ac_compile) 2>conftest.er1
26141 grep -v '^ *+' conftest.er1 >conftest.err
26143 cat conftest.err >&5
26144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26145 (exit $ac_status); } &&
26146 { ac_try='test -z "$ac_c_werror_flag"
26147 || test ! -s conftest.err'
26148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26149 (eval $ac_try) 2>&5
26151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26152 (exit $ac_status); }; } &&
26153 { ac_try='test -s conftest.$ac_objext'
26154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26155 (eval $ac_try) 2>&5
26157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26158 (exit $ac_status); }; }; then
26159 ol_cv_nonposix_strerror_r=yes
26161 echo "$as_me: failed program was:" >&5
26162 sed 's/^/| /' conftest.$ac_ext >&5
26164 ol_cv_nonposix_strerror_r=no
26166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26168 if test "$cross_compiling" = yes; then
26169 ol_cv_nonposix_strerror=no
26171 cat >conftest.$ac_ext <<_ACEOF
26174 cat confdefs.h >>conftest.$ac_ext
26175 cat >>conftest.$ac_ext <<_ACEOF
26176 /* end confdefs.h. */
26181 strerror_r( 1, buf, sizeof buf );
26182 exit( buf[0] == 0 );
26186 rm -f conftest$ac_exeext
26187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26188 (eval $ac_link) 2>&5
26190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26191 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26193 (eval $ac_try) 2>&5
26195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26196 (exit $ac_status); }; }; then
26197 ol_cv_nonposix_strerror_r=yes
26199 echo "$as_me: program exited with status $ac_status" >&5
26200 echo "$as_me: failed program was:" >&5
26201 sed 's/^/| /' conftest.$ac_ext >&5
26203 ( exit $ac_status )
26204 ol_cv_nonposix_strerror=no
26206 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26211 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
26212 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
26213 if test $ol_cv_nonposix_strerror_r = yes ; then
26215 cat >>confdefs.h <<\_ACEOF
26216 #define HAVE_NONPOSIX_STRERROR_R 1
26221 elif test "${ac_cv_func_strerror}" = no ; then
26222 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
26223 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
26224 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
26225 echo $ECHO_N "(cached) $ECHO_C" >&6
26228 cat >conftest.$ac_ext <<_ACEOF
26231 cat confdefs.h >>conftest.$ac_ext
26232 cat >>conftest.$ac_ext <<_ACEOF
26233 /* end confdefs.h. */
26236 #include <sys/types.h>
26239 #include <stdlib.h>
26244 char *c = (char *) *sys_errlist
26249 rm -f conftest.$ac_objext
26250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26251 (eval $ac_compile) 2>conftest.er1
26253 grep -v '^ *+' conftest.er1 >conftest.err
26255 cat conftest.err >&5
26256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26257 (exit $ac_status); } &&
26258 { ac_try='test -z "$ac_c_werror_flag"
26259 || test ! -s conftest.err'
26260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26261 (eval $ac_try) 2>&5
26263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26264 (exit $ac_status); }; } &&
26265 { ac_try='test -s conftest.$ac_objext'
26266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26267 (eval $ac_try) 2>&5
26269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26270 (exit $ac_status); }; }; then
26271 ol_cv_dcl_sys_errlist=yes
26272 ol_cv_have_sys_errlist=yes
26274 echo "$as_me: failed program was:" >&5
26275 sed 's/^/| /' conftest.$ac_ext >&5
26277 ol_cv_dcl_sys_errlist=no
26279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26281 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
26282 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
26284 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
26285 if test $ol_cv_dcl_sys_errlist = no ; then
26287 cat >>confdefs.h <<\_ACEOF
26288 #define DECL_SYS_ERRLIST 1
26292 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
26293 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
26294 if test "${ol_cv_have_sys_errlist+set}" = set; then
26295 echo $ECHO_N "(cached) $ECHO_C" >&6
26298 cat >conftest.$ac_ext <<_ACEOF
26301 cat confdefs.h >>conftest.$ac_ext
26302 cat >>conftest.$ac_ext <<_ACEOF
26303 /* end confdefs.h. */
26308 char *c = (char *) *sys_errlist
26313 rm -f conftest.$ac_objext conftest$ac_exeext
26314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26315 (eval $ac_link) 2>conftest.er1
26317 grep -v '^ *+' conftest.er1 >conftest.err
26319 cat conftest.err >&5
26320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26321 (exit $ac_status); } &&
26322 { ac_try='test -z "$ac_c_werror_flag"
26323 || test ! -s conftest.err'
26324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26325 (eval $ac_try) 2>&5
26327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26328 (exit $ac_status); }; } &&
26329 { ac_try='test -s conftest$ac_exeext'
26330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26331 (eval $ac_try) 2>&5
26333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26334 (exit $ac_status); }; }; then
26335 ol_cv_have_sys_errlist=yes
26337 echo "$as_me: failed program was:" >&5
26338 sed 's/^/| /' conftest.$ac_ext >&5
26340 ol_cv_have_sys_errlist=no
26342 rm -f conftest.err conftest.$ac_objext \
26343 conftest$ac_exeext conftest.$ac_ext
26345 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
26346 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
26348 if test $ol_cv_have_sys_errlist = yes ; then
26350 cat >>confdefs.h <<\_ACEOF
26351 #define HAVE_SYS_ERRLIST 1
26360 for ac_header in regex.h
26362 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26364 echo "$as_me:$LINENO: checking for $ac_header" >&5
26365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26367 echo $ECHO_N "(cached) $ECHO_C" >&6
26369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26370 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26372 # Is the header compilable?
26373 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26374 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26375 cat >conftest.$ac_ext <<_ACEOF
26378 cat confdefs.h >>conftest.$ac_ext
26379 cat >>conftest.$ac_ext <<_ACEOF
26380 /* end confdefs.h. */
26381 $ac_includes_default
26382 #include <$ac_header>
26384 rm -f conftest.$ac_objext
26385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26386 (eval $ac_compile) 2>conftest.er1
26388 grep -v '^ *+' conftest.er1 >conftest.err
26390 cat conftest.err >&5
26391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26392 (exit $ac_status); } &&
26393 { ac_try='test -z "$ac_c_werror_flag"
26394 || test ! -s conftest.err'
26395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26396 (eval $ac_try) 2>&5
26398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26399 (exit $ac_status); }; } &&
26400 { ac_try='test -s conftest.$ac_objext'
26401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26402 (eval $ac_try) 2>&5
26404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26405 (exit $ac_status); }; }; then
26406 ac_header_compiler=yes
26408 echo "$as_me: failed program was:" >&5
26409 sed 's/^/| /' conftest.$ac_ext >&5
26411 ac_header_compiler=no
26413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26414 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26415 echo "${ECHO_T}$ac_header_compiler" >&6
26417 # Is the header present?
26418 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26419 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26420 cat >conftest.$ac_ext <<_ACEOF
26423 cat confdefs.h >>conftest.$ac_ext
26424 cat >>conftest.$ac_ext <<_ACEOF
26425 /* end confdefs.h. */
26426 #include <$ac_header>
26428 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26429 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26431 grep -v '^ *+' conftest.er1 >conftest.err
26433 cat conftest.err >&5
26434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26435 (exit $ac_status); } >/dev/null; then
26436 if test -s conftest.err; then
26437 ac_cpp_err=$ac_c_preproc_warn_flag
26438 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26445 if test -z "$ac_cpp_err"; then
26446 ac_header_preproc=yes
26448 echo "$as_me: failed program was:" >&5
26449 sed 's/^/| /' conftest.$ac_ext >&5
26451 ac_header_preproc=no
26453 rm -f conftest.err conftest.$ac_ext
26454 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26455 echo "${ECHO_T}$ac_header_preproc" >&6
26457 # So? What about this header?
26458 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26460 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26461 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26463 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26464 ac_header_preproc=yes
26467 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26468 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26469 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26470 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26471 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26472 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26473 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26474 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26475 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26476 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26477 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26478 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26481 ## ------------------------------------------ ##
26482 ## Report this to the AC_PACKAGE_NAME lists. ##
26483 ## ------------------------------------------ ##
26486 sed "s/^/$as_me: WARNING: /" >&2
26489 echo "$as_me:$LINENO: checking for $ac_header" >&5
26490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26492 echo $ECHO_N "(cached) $ECHO_C" >&6
26494 eval "$as_ac_Header=\$ac_header_preproc"
26496 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26497 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26500 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26501 cat >>confdefs.h <<_ACEOF
26502 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26509 if test "$ac_cv_header_regex_h" != yes ; then
26510 { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
26511 echo "$as_me: error: POSIX regex.h required." >&2;}
26512 { (exit 1); exit 1; }; }
26514 echo "$as_me:$LINENO: checking for library containing regfree" >&5
26515 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
26516 if test "${ac_cv_search_regfree+set}" = set; then
26517 echo $ECHO_N "(cached) $ECHO_C" >&6
26519 ac_func_search_save_LIBS=$LIBS
26520 ac_cv_search_regfree=no
26521 cat >conftest.$ac_ext <<_ACEOF
26524 cat confdefs.h >>conftest.$ac_ext
26525 cat >>conftest.$ac_ext <<_ACEOF
26526 /* end confdefs.h. */
26528 /* Override any gcc2 internal prototype to avoid an error. */
26532 /* We use char because int might match the return type of a gcc2
26533 builtin and then its argument prototype would still apply. */
26543 rm -f conftest.$ac_objext conftest$ac_exeext
26544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26545 (eval $ac_link) 2>conftest.er1
26547 grep -v '^ *+' conftest.er1 >conftest.err
26549 cat conftest.err >&5
26550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26551 (exit $ac_status); } &&
26552 { ac_try='test -z "$ac_c_werror_flag"
26553 || test ! -s conftest.err'
26554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26555 (eval $ac_try) 2>&5
26557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26558 (exit $ac_status); }; } &&
26559 { ac_try='test -s conftest$ac_exeext'
26560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26561 (eval $ac_try) 2>&5
26563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26564 (exit $ac_status); }; }; then
26565 ac_cv_search_regfree="none required"
26567 echo "$as_me: failed program was:" >&5
26568 sed 's/^/| /' conftest.$ac_ext >&5
26571 rm -f conftest.err conftest.$ac_objext \
26572 conftest$ac_exeext conftest.$ac_ext
26573 if test "$ac_cv_search_regfree" = no; then
26574 for ac_lib in regex gnuregex; do
26575 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26576 cat >conftest.$ac_ext <<_ACEOF
26579 cat confdefs.h >>conftest.$ac_ext
26580 cat >>conftest.$ac_ext <<_ACEOF
26581 /* end confdefs.h. */
26583 /* Override any gcc2 internal prototype to avoid an error. */
26587 /* We use char because int might match the return type of a gcc2
26588 builtin and then its argument prototype would still apply. */
26598 rm -f conftest.$ac_objext conftest$ac_exeext
26599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26600 (eval $ac_link) 2>conftest.er1
26602 grep -v '^ *+' conftest.er1 >conftest.err
26604 cat conftest.err >&5
26605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26606 (exit $ac_status); } &&
26607 { ac_try='test -z "$ac_c_werror_flag"
26608 || test ! -s conftest.err'
26609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26610 (eval $ac_try) 2>&5
26612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26613 (exit $ac_status); }; } &&
26614 { ac_try='test -s conftest$ac_exeext'
26615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26616 (eval $ac_try) 2>&5
26618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26619 (exit $ac_status); }; }; then
26620 ac_cv_search_regfree="-l$ac_lib"
26623 echo "$as_me: failed program was:" >&5
26624 sed 's/^/| /' conftest.$ac_ext >&5
26627 rm -f conftest.err conftest.$ac_objext \
26628 conftest$ac_exeext conftest.$ac_ext
26631 LIBS=$ac_func_search_save_LIBS
26633 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
26634 echo "${ECHO_T}$ac_cv_search_regfree" >&6
26635 if test "$ac_cv_search_regfree" != no; then
26636 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
26639 { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
26640 echo "$as_me: error: POSIX regex required." >&2;}
26641 { (exit 1); exit 1; }; }
26646 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
26647 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
26648 if test "${ol_cv_c_posix_regex+set}" = set; then
26649 echo $ECHO_N "(cached) $ECHO_C" >&6
26652 if test "$cross_compiling" = yes; then
26653 ol_cv_c_posix_regex=cross
26655 cat >conftest.$ac_ext <<_ACEOF
26658 cat confdefs.h >>conftest.$ac_ext
26659 cat >>conftest.$ac_ext <<_ACEOF
26660 /* end confdefs.h. */
26662 #include <sys/types.h>
26664 static char *pattern, *string;
26672 if(regcomp(&re, pattern, 0)) {
26676 string = "ALL MATCH";
26678 rc = regexec(&re, string, 0, (void*)0, 0);
26685 rm -f conftest$ac_exeext
26686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26687 (eval $ac_link) 2>&5
26689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26690 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26692 (eval $ac_try) 2>&5
26694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26695 (exit $ac_status); }; }; then
26696 ol_cv_c_posix_regex=yes
26698 echo "$as_me: program exited with status $ac_status" >&5
26699 echo "$as_me: failed program was:" >&5
26700 sed 's/^/| /' conftest.$ac_ext >&5
26702 ( exit $ac_status )
26703 ol_cv_c_posix_regex=no
26705 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26708 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
26709 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
26711 if test "$ol_cv_c_posix_regex" = no ; then
26712 { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
26713 echo "$as_me: error: broken POSIX regex!" >&2;}
26714 { (exit 1); exit 1; }; }
26720 for ac_header in sys/uuid.h
26722 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26724 echo "$as_me:$LINENO: checking for $ac_header" >&5
26725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26727 echo $ECHO_N "(cached) $ECHO_C" >&6
26729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26730 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26732 # Is the header compilable?
26733 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26734 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26735 cat >conftest.$ac_ext <<_ACEOF
26738 cat confdefs.h >>conftest.$ac_ext
26739 cat >>conftest.$ac_ext <<_ACEOF
26740 /* end confdefs.h. */
26741 $ac_includes_default
26742 #include <$ac_header>
26744 rm -f conftest.$ac_objext
26745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26746 (eval $ac_compile) 2>conftest.er1
26748 grep -v '^ *+' conftest.er1 >conftest.err
26750 cat conftest.err >&5
26751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26752 (exit $ac_status); } &&
26753 { ac_try='test -z "$ac_c_werror_flag"
26754 || test ! -s conftest.err'
26755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26756 (eval $ac_try) 2>&5
26758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26759 (exit $ac_status); }; } &&
26760 { ac_try='test -s conftest.$ac_objext'
26761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26762 (eval $ac_try) 2>&5
26764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26765 (exit $ac_status); }; }; then
26766 ac_header_compiler=yes
26768 echo "$as_me: failed program was:" >&5
26769 sed 's/^/| /' conftest.$ac_ext >&5
26771 ac_header_compiler=no
26773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26774 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26775 echo "${ECHO_T}$ac_header_compiler" >&6
26777 # Is the header present?
26778 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26779 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26780 cat >conftest.$ac_ext <<_ACEOF
26783 cat confdefs.h >>conftest.$ac_ext
26784 cat >>conftest.$ac_ext <<_ACEOF
26785 /* end confdefs.h. */
26786 #include <$ac_header>
26788 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26789 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26791 grep -v '^ *+' conftest.er1 >conftest.err
26793 cat conftest.err >&5
26794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26795 (exit $ac_status); } >/dev/null; then
26796 if test -s conftest.err; then
26797 ac_cpp_err=$ac_c_preproc_warn_flag
26798 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26805 if test -z "$ac_cpp_err"; then
26806 ac_header_preproc=yes
26808 echo "$as_me: failed program was:" >&5
26809 sed 's/^/| /' conftest.$ac_ext >&5
26811 ac_header_preproc=no
26813 rm -f conftest.err conftest.$ac_ext
26814 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26815 echo "${ECHO_T}$ac_header_preproc" >&6
26817 # So? What about this header?
26818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26820 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26821 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26823 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26824 ac_header_preproc=yes
26827 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26828 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26829 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26830 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26831 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26832 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26833 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26834 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26836 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26837 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26838 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26841 ## ------------------------------------------ ##
26842 ## Report this to the AC_PACKAGE_NAME lists. ##
26843 ## ------------------------------------------ ##
26846 sed "s/^/$as_me: WARNING: /" >&2
26849 echo "$as_me:$LINENO: checking for $ac_header" >&5
26850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26852 echo $ECHO_N "(cached) $ECHO_C" >&6
26854 eval "$as_ac_Header=\$ac_header_preproc"
26856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26857 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26860 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26861 cat >>confdefs.h <<_ACEOF
26862 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26869 if test $ac_cv_header_sys_uuid_h = yes ; then
26871 echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
26872 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
26873 if test "${ac_cv_search_uuid_to_str+set}" = set; then
26874 echo $ECHO_N "(cached) $ECHO_C" >&6
26876 ac_func_search_save_LIBS=$LIBS
26877 ac_cv_search_uuid_to_str=no
26878 cat >conftest.$ac_ext <<_ACEOF
26881 cat confdefs.h >>conftest.$ac_ext
26882 cat >>conftest.$ac_ext <<_ACEOF
26883 /* end confdefs.h. */
26885 /* Override any gcc2 internal prototype to avoid an error. */
26889 /* We use char because int might match the return type of a gcc2
26890 builtin and then its argument prototype would still apply. */
26891 char uuid_to_str ();
26900 rm -f conftest.$ac_objext conftest$ac_exeext
26901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26902 (eval $ac_link) 2>conftest.er1
26904 grep -v '^ *+' conftest.er1 >conftest.err
26906 cat conftest.err >&5
26907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26908 (exit $ac_status); } &&
26909 { ac_try='test -z "$ac_c_werror_flag"
26910 || test ! -s conftest.err'
26911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26912 (eval $ac_try) 2>&5
26914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26915 (exit $ac_status); }; } &&
26916 { ac_try='test -s conftest$ac_exeext'
26917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26918 (eval $ac_try) 2>&5
26920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26921 (exit $ac_status); }; }; then
26922 ac_cv_search_uuid_to_str="none required"
26924 echo "$as_me: failed program was:" >&5
26925 sed 's/^/| /' conftest.$ac_ext >&5
26928 rm -f conftest.err conftest.$ac_objext \
26929 conftest$ac_exeext conftest.$ac_ext
26930 if test "$ac_cv_search_uuid_to_str" = no; then
26931 for ac_lib in uuid; do
26932 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26933 cat >conftest.$ac_ext <<_ACEOF
26936 cat confdefs.h >>conftest.$ac_ext
26937 cat >>conftest.$ac_ext <<_ACEOF
26938 /* end confdefs.h. */
26940 /* Override any gcc2 internal prototype to avoid an error. */
26944 /* We use char because int might match the return type of a gcc2
26945 builtin and then its argument prototype would still apply. */
26946 char uuid_to_str ();
26955 rm -f conftest.$ac_objext conftest$ac_exeext
26956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26957 (eval $ac_link) 2>conftest.er1
26959 grep -v '^ *+' conftest.er1 >conftest.err
26961 cat conftest.err >&5
26962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26963 (exit $ac_status); } &&
26964 { ac_try='test -z "$ac_c_werror_flag"
26965 || test ! -s conftest.err'
26966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26967 (eval $ac_try) 2>&5
26969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26970 (exit $ac_status); }; } &&
26971 { ac_try='test -s conftest$ac_exeext'
26972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26973 (eval $ac_try) 2>&5
26975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26976 (exit $ac_status); }; }; then
26977 ac_cv_search_uuid_to_str="-l$ac_lib"
26980 echo "$as_me: failed program was:" >&5
26981 sed 's/^/| /' conftest.$ac_ext >&5
26984 rm -f conftest.err conftest.$ac_objext \
26985 conftest$ac_exeext conftest.$ac_ext
26988 LIBS=$ac_func_search_save_LIBS
26990 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
26991 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
26992 if test "$ac_cv_search_uuid_to_str" != no; then
26993 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
27001 if test have_uuid = yes ; then
27003 cat >>confdefs.h <<\_ACEOF
27004 #define HAVE_UUID_TO_STR 1
27008 test "$ac_cv_search_uuid_to_str" = "none required" || \
27009 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
27013 if test $have_uuid = no ; then
27014 echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
27015 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
27017 LIBS="$LIBS -lrpcrt4"
27018 cat >conftest.$ac_ext <<_ACEOF
27021 cat confdefs.h >>conftest.$ac_ext
27022 cat >>conftest.$ac_ext <<_ACEOF
27023 /* end confdefs.h. */
27025 int __stdcall UuidCreate(void *);
27026 int __stdcall UuidToStringA(void *,void **);
27033 UuidToStringA(0,0);
27039 rm -f conftest.$ac_objext conftest$ac_exeext
27040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27041 (eval $ac_link) 2>conftest.er1
27043 grep -v '^ *+' conftest.er1 >conftest.err
27045 cat conftest.err >&5
27046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27047 (exit $ac_status); } &&
27048 { ac_try='test -z "$ac_c_werror_flag"
27049 || test ! -s conftest.err'
27050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27051 (eval $ac_try) 2>&5
27053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27054 (exit $ac_status); }; } &&
27055 { ac_try='test -s conftest$ac_exeext'
27056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27057 (eval $ac_try) 2>&5
27059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27060 (exit $ac_status); }; }; then
27063 echo "$as_me: failed program was:" >&5
27064 sed 's/^/| /' conftest.$ac_ext >&5
27068 rm -f conftest.err conftest.$ac_objext \
27069 conftest$ac_exeext conftest.$ac_ext
27070 if test $need_rpcrt = yes; then
27071 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
27074 echo "$as_me:$LINENO: result: $need_rpcrt" >&5
27075 echo "${ECHO_T}$need_rpcrt" >&6
27078 ol_cv_lib_resolver=no
27079 if test $ol_cv_lib_resolver = no ; then
27080 echo "$as_me:$LINENO: checking for resolver link (default)" >&5
27081 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
27082 if test "${ol_cv_resolver_none+set}" = set; then
27083 echo $ECHO_N "(cached) $ECHO_C" >&6
27088 LIBS="$ol_RESOLVER_LIB $LIBS"
27090 cat >conftest.$ac_ext <<_ACEOF
27093 cat confdefs.h >>conftest.$ac_ext
27094 cat >>conftest.$ac_ext <<_ACEOF
27095 /* end confdefs.h. */
27097 #ifdef HAVE_SYS_TYPES_H
27098 # include <sys/types.h>
27100 #include <netinet/in.h>
27101 #ifdef HAVE_ARPA_NAMESER_H
27102 # include <arpa/nameser.h>
27104 #ifdef HAVE_RESOLV_H
27105 # include <resolv.h>
27113 char *request = NULL;
27114 unsigned char reply[64*1024];
27115 unsigned char host[64*1024];
27119 /* Bind 8/9 interface */
27120 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27122 /* Bind 4 interface */
27126 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27130 /* Bind 8/9 interface */
27132 #elif defined(HFIXEDSZ)
27133 /* Bind 4 interface w/ HFIXEDSZ */
27136 /* Bind 4 interface w/o HFIXEDSZ */
27137 p += sizeof(HEADER);
27139 status = dn_expand( reply, reply+len, p, host, sizeof(host));
27145 rm -f conftest.$ac_objext conftest$ac_exeext
27146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27147 (eval $ac_link) 2>conftest.er1
27149 grep -v '^ *+' conftest.er1 >conftest.err
27151 cat conftest.err >&5
27152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27153 (exit $ac_status); } &&
27154 { ac_try='test -z "$ac_c_werror_flag"
27155 || test ! -s conftest.err'
27156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27157 (eval $ac_try) 2>&5
27159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27160 (exit $ac_status); }; } &&
27161 { ac_try='test -s conftest$ac_exeext'
27162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27163 (eval $ac_try) 2>&5
27165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27166 (exit $ac_status); }; }; then
27167 ol_cv_resolver_none=yes
27169 echo "$as_me: failed program was:" >&5
27170 sed 's/^/| /' conftest.$ac_ext >&5
27172 ol_cv_resolver_none=no
27174 rm -f conftest.err conftest.$ac_objext \
27175 conftest$ac_exeext conftest.$ac_ext
27180 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
27181 echo "${ECHO_T}$ol_cv_resolver_none" >&6
27183 if test $ol_cv_resolver_none = yes ; then
27184 ol_cv_lib_resolver=yes
27188 if test $ol_cv_lib_resolver = no ; then
27189 echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
27190 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
27191 if test "${ol_cv_resolver_resolv+set}" = set; then
27192 echo $ECHO_N "(cached) $ECHO_C" >&6
27195 ol_RESOLVER_LIB=-lresolv
27197 LIBS="$ol_RESOLVER_LIB $LIBS"
27199 cat >conftest.$ac_ext <<_ACEOF
27202 cat confdefs.h >>conftest.$ac_ext
27203 cat >>conftest.$ac_ext <<_ACEOF
27204 /* end confdefs.h. */
27206 #ifdef HAVE_SYS_TYPES_H
27207 # include <sys/types.h>
27209 #include <netinet/in.h>
27210 #ifdef HAVE_ARPA_NAMESER_H
27211 # include <arpa/nameser.h>
27213 #ifdef HAVE_RESOLV_H
27214 # include <resolv.h>
27222 char *request = NULL;
27223 unsigned char reply[64*1024];
27224 unsigned char host[64*1024];
27228 /* Bind 8/9 interface */
27229 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27231 /* Bind 4 interface */
27235 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27239 /* Bind 8/9 interface */
27241 #elif defined(HFIXEDSZ)
27242 /* Bind 4 interface w/ HFIXEDSZ */
27245 /* Bind 4 interface w/o HFIXEDSZ */
27246 p += sizeof(HEADER);
27248 status = dn_expand( reply, reply+len, p, host, sizeof(host));
27254 rm -f conftest.$ac_objext conftest$ac_exeext
27255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27256 (eval $ac_link) 2>conftest.er1
27258 grep -v '^ *+' conftest.er1 >conftest.err
27260 cat conftest.err >&5
27261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27262 (exit $ac_status); } &&
27263 { ac_try='test -z "$ac_c_werror_flag"
27264 || test ! -s conftest.err'
27265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27266 (eval $ac_try) 2>&5
27268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27269 (exit $ac_status); }; } &&
27270 { ac_try='test -s conftest$ac_exeext'
27271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27272 (eval $ac_try) 2>&5
27274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27275 (exit $ac_status); }; }; then
27276 ol_cv_resolver_resolv=yes
27278 echo "$as_me: failed program was:" >&5
27279 sed 's/^/| /' conftest.$ac_ext >&5
27281 ol_cv_resolver_resolv=no
27283 rm -f conftest.err conftest.$ac_objext \
27284 conftest$ac_exeext conftest.$ac_ext
27289 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
27290 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
27292 if test $ol_cv_resolver_resolv = yes ; then
27293 ol_cv_lib_resolver=-lresolv
27297 if test $ol_cv_lib_resolver = no ; then
27298 echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
27299 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
27300 if test "${ol_cv_resolver_bind+set}" = set; then
27301 echo $ECHO_N "(cached) $ECHO_C" >&6
27304 ol_RESOLVER_LIB=-lbind
27306 LIBS="$ol_RESOLVER_LIB $LIBS"
27308 cat >conftest.$ac_ext <<_ACEOF
27311 cat confdefs.h >>conftest.$ac_ext
27312 cat >>conftest.$ac_ext <<_ACEOF
27313 /* end confdefs.h. */
27315 #ifdef HAVE_SYS_TYPES_H
27316 # include <sys/types.h>
27318 #include <netinet/in.h>
27319 #ifdef HAVE_ARPA_NAMESER_H
27320 # include <arpa/nameser.h>
27322 #ifdef HAVE_RESOLV_H
27323 # include <resolv.h>
27331 char *request = NULL;
27332 unsigned char reply[64*1024];
27333 unsigned char host[64*1024];
27337 /* Bind 8/9 interface */
27338 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27340 /* Bind 4 interface */
27344 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27348 /* Bind 8/9 interface */
27350 #elif defined(HFIXEDSZ)
27351 /* Bind 4 interface w/ HFIXEDSZ */
27354 /* Bind 4 interface w/o HFIXEDSZ */
27355 p += sizeof(HEADER);
27357 status = dn_expand( reply, reply+len, p, host, sizeof(host));
27363 rm -f conftest.$ac_objext conftest$ac_exeext
27364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27365 (eval $ac_link) 2>conftest.er1
27367 grep -v '^ *+' conftest.er1 >conftest.err
27369 cat conftest.err >&5
27370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27371 (exit $ac_status); } &&
27372 { ac_try='test -z "$ac_c_werror_flag"
27373 || test ! -s conftest.err'
27374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27375 (eval $ac_try) 2>&5
27377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27378 (exit $ac_status); }; } &&
27379 { ac_try='test -s conftest$ac_exeext'
27380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27381 (eval $ac_try) 2>&5
27383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27384 (exit $ac_status); }; }; then
27385 ol_cv_resolver_bind=yes
27387 echo "$as_me: failed program was:" >&5
27388 sed 's/^/| /' conftest.$ac_ext >&5
27390 ol_cv_resolver_bind=no
27392 rm -f conftest.err conftest.$ac_objext \
27393 conftest$ac_exeext conftest.$ac_ext
27398 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
27399 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
27401 if test $ol_cv_resolver_bind = yes ; then
27402 ol_cv_lib_resolver=-lbind
27409 if test "$ol_cv_lib_resolver" != no ; then
27411 cat >>confdefs.h <<\_ACEOF
27412 #define HAVE_RES_QUERY 1
27416 if test "$ol_enable_dnssrv" != no ; then
27420 if test "$ol_cv_lib_resolver" != yes ; then
27421 LIBS="$ol_cv_lib_resolver $LIBS"
27425 if test "$ol_enable_dnssrv" = yes -o "$ol_enable_dnssrv" = mod ; then
27426 if test "$ol_link_dnssrv" = no ; then
27427 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
27428 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
27429 { (exit 1); exit 1; }; }
27432 ol_enable_dnssrv=no
27436 for ac_func in hstrerror
27438 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27439 echo "$as_me:$LINENO: checking for $ac_func" >&5
27440 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27441 if eval "test \"\${$as_ac_var+set}\" = set"; then
27442 echo $ECHO_N "(cached) $ECHO_C" >&6
27444 cat >conftest.$ac_ext <<_ACEOF
27447 cat confdefs.h >>conftest.$ac_ext
27448 cat >>conftest.$ac_ext <<_ACEOF
27449 /* end confdefs.h. */
27450 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27451 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27452 #define $ac_func innocuous_$ac_func
27454 /* System header to define __stub macros and hopefully few prototypes,
27455 which can conflict with char $ac_func (); below.
27456 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27457 <limits.h> exists even on freestanding compilers. */
27460 # include <limits.h>
27462 # include <assert.h>
27467 /* Override any gcc2 internal prototype to avoid an error. */
27472 /* We use char because int might match the return type of a gcc2
27473 builtin and then its argument prototype would still apply. */
27475 /* The GNU C library defines this for functions which it implements
27476 to always fail with ENOSYS. Some functions are actually named
27477 something starting with __ and the normal name is an alias. */
27478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27481 char (*f) () = $ac_func;
27490 return f != $ac_func;
27495 rm -f conftest.$ac_objext conftest$ac_exeext
27496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27497 (eval $ac_link) 2>conftest.er1
27499 grep -v '^ *+' conftest.er1 >conftest.err
27501 cat conftest.err >&5
27502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27503 (exit $ac_status); } &&
27504 { ac_try='test -z "$ac_c_werror_flag"
27505 || test ! -s conftest.err'
27506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27507 (eval $ac_try) 2>&5
27509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27510 (exit $ac_status); }; } &&
27511 { ac_try='test -s conftest$ac_exeext'
27512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27513 (eval $ac_try) 2>&5
27515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27516 (exit $ac_status); }; }; then
27517 eval "$as_ac_var=yes"
27519 echo "$as_me: failed program was:" >&5
27520 sed 's/^/| /' conftest.$ac_ext >&5
27522 eval "$as_ac_var=no"
27524 rm -f conftest.err conftest.$ac_objext \
27525 conftest$ac_exeext conftest.$ac_ext
27527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27528 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27529 if test `eval echo '${'$as_ac_var'}'` = yes; then
27530 cat >>confdefs.h <<_ACEOF
27531 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27542 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
27544 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27545 echo "$as_me:$LINENO: checking for $ac_func" >&5
27546 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27547 if eval "test \"\${$as_ac_var+set}\" = set"; then
27548 echo $ECHO_N "(cached) $ECHO_C" >&6
27550 cat >conftest.$ac_ext <<_ACEOF
27553 cat confdefs.h >>conftest.$ac_ext
27554 cat >>conftest.$ac_ext <<_ACEOF
27555 /* end confdefs.h. */
27556 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27558 #define $ac_func innocuous_$ac_func
27560 /* System header to define __stub macros and hopefully few prototypes,
27561 which can conflict with char $ac_func (); below.
27562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27563 <limits.h> exists even on freestanding compilers. */
27566 # include <limits.h>
27568 # include <assert.h>
27573 /* Override any gcc2 internal prototype to avoid an error. */
27578 /* We use char because int might match the return type of a gcc2
27579 builtin and then its argument prototype would still apply. */
27581 /* The GNU C library defines this for functions which it implements
27582 to always fail with ENOSYS. Some functions are actually named
27583 something starting with __ and the normal name is an alias. */
27584 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27587 char (*f) () = $ac_func;
27596 return f != $ac_func;
27601 rm -f conftest.$ac_objext conftest$ac_exeext
27602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27603 (eval $ac_link) 2>conftest.er1
27605 grep -v '^ *+' conftest.er1 >conftest.err
27607 cat conftest.err >&5
27608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27609 (exit $ac_status); } &&
27610 { ac_try='test -z "$ac_c_werror_flag"
27611 || test ! -s conftest.err'
27612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27613 (eval $ac_try) 2>&5
27615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27616 (exit $ac_status); }; } &&
27617 { ac_try='test -s conftest$ac_exeext'
27618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27619 (eval $ac_try) 2>&5
27621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27622 (exit $ac_status); }; }; then
27623 eval "$as_ac_var=yes"
27625 echo "$as_me: failed program was:" >&5
27626 sed 's/^/| /' conftest.$ac_ext >&5
27628 eval "$as_ac_var=no"
27630 rm -f conftest.err conftest.$ac_objext \
27631 conftest$ac_exeext conftest.$ac_ext
27633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27634 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27635 if test `eval echo '${'$as_ac_var'}'` = yes; then
27636 cat >>confdefs.h <<_ACEOF
27637 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27645 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
27646 if test $ol_enable_ipv6 = yes ; then
27647 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
27648 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
27649 { (exit 1); exit 1; }; }
27651 elif test $ol_enable_ipv6 != no ; then
27652 echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
27653 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
27654 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
27655 echo $ECHO_N "(cached) $ECHO_C" >&6
27658 cat >conftest.$ac_ext <<_ACEOF
27661 cat confdefs.h >>conftest.$ac_ext
27662 cat >>conftest.$ac_ext <<_ACEOF
27663 /* end confdefs.h. */
27665 # include <netinet/in.h>
27666 # ifdef INET6_ADDRSTRLEN
27667 __has_inet6_addrstrlen__;
27671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27672 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
27673 ol_cv_inet6_addrstrlen=yes
27675 ol_cv_inet6_addrstrlen=no
27680 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
27681 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
27684 echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
27685 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
27686 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
27687 echo $ECHO_N "(cached) $ECHO_C" >&6
27690 cat >conftest.$ac_ext <<_ACEOF
27693 cat confdefs.h >>conftest.$ac_ext
27694 cat >>conftest.$ac_ext <<_ACEOF
27695 /* end confdefs.h. */
27697 #include <sys/types.h>
27698 #include <sys/socket.h>
27704 struct sockaddr_storage ss;
27710 rm -f conftest.$ac_objext
27711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27712 (eval $ac_compile) 2>conftest.er1
27714 grep -v '^ *+' conftest.er1 >conftest.err
27716 cat conftest.err >&5
27717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27718 (exit $ac_status); } &&
27719 { ac_try='test -z "$ac_c_werror_flag"
27720 || test ! -s conftest.err'
27721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27722 (eval $ac_try) 2>&5
27724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27725 (exit $ac_status); }; } &&
27726 { ac_try='test -s conftest.$ac_objext'
27727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27728 (eval $ac_try) 2>&5
27730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27731 (exit $ac_status); }; }; then
27732 ol_cv_struct_sockaddr_storage=yes
27734 echo "$as_me: failed program was:" >&5
27735 sed 's/^/| /' conftest.$ac_ext >&5
27737 ol_cv_struct_sockaddr_storage=no
27739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27741 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
27742 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
27744 if test $ol_cv_inet6_addrstrlen = yes \
27745 -a $ol_cv_struct_sockaddr_storage = yes ; then
27747 elif test $ol_enable_ipv6 = yes \
27748 -a $ol_cv_inet6_addrstrlen = no ; then
27749 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
27750 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
27751 { (exit 1); exit 1; }; }
27752 elif test $ol_enable_ipv6 = yes \
27753 -a $ol_cv_struct_sockaddr_storage = no ; then
27754 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
27755 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
27756 { (exit 1); exit 1; }; }
27760 if test $ol_enable_local != no ; then
27762 for ac_header in sys/un.h
27764 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27765 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27766 echo "$as_me:$LINENO: checking for $ac_header" >&5
27767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27769 echo $ECHO_N "(cached) $ECHO_C" >&6
27771 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27772 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27774 # Is the header compilable?
27775 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27776 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27777 cat >conftest.$ac_ext <<_ACEOF
27780 cat confdefs.h >>conftest.$ac_ext
27781 cat >>conftest.$ac_ext <<_ACEOF
27782 /* end confdefs.h. */
27783 $ac_includes_default
27784 #include <$ac_header>
27786 rm -f conftest.$ac_objext
27787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27788 (eval $ac_compile) 2>conftest.er1
27790 grep -v '^ *+' conftest.er1 >conftest.err
27792 cat conftest.err >&5
27793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27794 (exit $ac_status); } &&
27795 { ac_try='test -z "$ac_c_werror_flag"
27796 || test ! -s conftest.err'
27797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27798 (eval $ac_try) 2>&5
27800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27801 (exit $ac_status); }; } &&
27802 { ac_try='test -s conftest.$ac_objext'
27803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27804 (eval $ac_try) 2>&5
27806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27807 (exit $ac_status); }; }; then
27808 ac_header_compiler=yes
27810 echo "$as_me: failed program was:" >&5
27811 sed 's/^/| /' conftest.$ac_ext >&5
27813 ac_header_compiler=no
27815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27816 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27817 echo "${ECHO_T}$ac_header_compiler" >&6
27819 # Is the header present?
27820 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27821 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27822 cat >conftest.$ac_ext <<_ACEOF
27825 cat confdefs.h >>conftest.$ac_ext
27826 cat >>conftest.$ac_ext <<_ACEOF
27827 /* end confdefs.h. */
27828 #include <$ac_header>
27830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27831 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27833 grep -v '^ *+' conftest.er1 >conftest.err
27835 cat conftest.err >&5
27836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27837 (exit $ac_status); } >/dev/null; then
27838 if test -s conftest.err; then
27839 ac_cpp_err=$ac_c_preproc_warn_flag
27840 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27847 if test -z "$ac_cpp_err"; then
27848 ac_header_preproc=yes
27850 echo "$as_me: failed program was:" >&5
27851 sed 's/^/| /' conftest.$ac_ext >&5
27853 ac_header_preproc=no
27855 rm -f conftest.err conftest.$ac_ext
27856 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27857 echo "${ECHO_T}$ac_header_preproc" >&6
27859 # So? What about this header?
27860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27862 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27863 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27865 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27866 ac_header_preproc=yes
27869 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27870 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27871 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27872 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27873 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27874 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27875 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27876 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27878 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27879 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27880 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27883 ## ------------------------------------------ ##
27884 ## Report this to the AC_PACKAGE_NAME lists. ##
27885 ## ------------------------------------------ ##
27888 sed "s/^/$as_me: WARNING: /" >&2
27891 echo "$as_me:$LINENO: checking for $ac_header" >&5
27892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27893 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27894 echo $ECHO_N "(cached) $ECHO_C" >&6
27896 eval "$as_ac_Header=\$ac_header_preproc"
27898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27899 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27902 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27903 cat >>confdefs.h <<_ACEOF
27904 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27912 if test $ol_enable_local = auto ; then
27913 ol_enable_local=$ac_cv_header_sys_un_h
27914 elif test $ac_cv_header_sys_un_h = no ; then
27915 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
27916 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
27917 { (exit 1); exit 1; }; }
27925 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
27926 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
27927 -o $ol_with_kerberos = k425 ; then
27930 for ac_header in krb5.h
27932 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27934 echo "$as_me:$LINENO: checking for $ac_header" >&5
27935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27937 echo $ECHO_N "(cached) $ECHO_C" >&6
27939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27940 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27942 # Is the header compilable?
27943 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27944 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27945 cat >conftest.$ac_ext <<_ACEOF
27948 cat confdefs.h >>conftest.$ac_ext
27949 cat >>conftest.$ac_ext <<_ACEOF
27950 /* end confdefs.h. */
27951 $ac_includes_default
27952 #include <$ac_header>
27954 rm -f conftest.$ac_objext
27955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27956 (eval $ac_compile) 2>conftest.er1
27958 grep -v '^ *+' conftest.er1 >conftest.err
27960 cat conftest.err >&5
27961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27962 (exit $ac_status); } &&
27963 { ac_try='test -z "$ac_c_werror_flag"
27964 || test ! -s conftest.err'
27965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27966 (eval $ac_try) 2>&5
27968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27969 (exit $ac_status); }; } &&
27970 { ac_try='test -s conftest.$ac_objext'
27971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27972 (eval $ac_try) 2>&5
27974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27975 (exit $ac_status); }; }; then
27976 ac_header_compiler=yes
27978 echo "$as_me: failed program was:" >&5
27979 sed 's/^/| /' conftest.$ac_ext >&5
27981 ac_header_compiler=no
27983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27984 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27985 echo "${ECHO_T}$ac_header_compiler" >&6
27987 # Is the header present?
27988 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27989 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27990 cat >conftest.$ac_ext <<_ACEOF
27993 cat confdefs.h >>conftest.$ac_ext
27994 cat >>conftest.$ac_ext <<_ACEOF
27995 /* end confdefs.h. */
27996 #include <$ac_header>
27998 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27999 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28001 grep -v '^ *+' conftest.er1 >conftest.err
28003 cat conftest.err >&5
28004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28005 (exit $ac_status); } >/dev/null; then
28006 if test -s conftest.err; then
28007 ac_cpp_err=$ac_c_preproc_warn_flag
28008 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28015 if test -z "$ac_cpp_err"; then
28016 ac_header_preproc=yes
28018 echo "$as_me: failed program was:" >&5
28019 sed 's/^/| /' conftest.$ac_ext >&5
28021 ac_header_preproc=no
28023 rm -f conftest.err conftest.$ac_ext
28024 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28025 echo "${ECHO_T}$ac_header_preproc" >&6
28027 # So? What about this header?
28028 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28030 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28031 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28032 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28033 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28034 ac_header_preproc=yes
28037 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28038 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28039 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28040 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28041 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28042 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28043 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28044 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28046 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28047 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28048 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28051 ## ------------------------------------------ ##
28052 ## Report this to the AC_PACKAGE_NAME lists. ##
28053 ## ------------------------------------------ ##
28056 sed "s/^/$as_me: WARNING: /" >&2
28059 echo "$as_me:$LINENO: checking for $ac_header" >&5
28060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28061 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28062 echo $ECHO_N "(cached) $ECHO_C" >&6
28064 eval "$as_ac_Header=\$ac_header_preproc"
28066 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28067 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28070 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28071 cat >>confdefs.h <<_ACEOF
28072 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28080 if test $ac_cv_header_krb5_h = yes ; then
28082 for ac_header in heim_err.h
28084 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28085 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28086 echo "$as_me:$LINENO: checking for $ac_header" >&5
28087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28088 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28089 echo $ECHO_N "(cached) $ECHO_C" >&6
28091 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28092 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28094 # Is the header compilable?
28095 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28096 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28097 cat >conftest.$ac_ext <<_ACEOF
28100 cat confdefs.h >>conftest.$ac_ext
28101 cat >>conftest.$ac_ext <<_ACEOF
28102 /* end confdefs.h. */
28103 $ac_includes_default
28104 #include <$ac_header>
28106 rm -f conftest.$ac_objext
28107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28108 (eval $ac_compile) 2>conftest.er1
28110 grep -v '^ *+' conftest.er1 >conftest.err
28112 cat conftest.err >&5
28113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28114 (exit $ac_status); } &&
28115 { ac_try='test -z "$ac_c_werror_flag"
28116 || test ! -s conftest.err'
28117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28118 (eval $ac_try) 2>&5
28120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28121 (exit $ac_status); }; } &&
28122 { ac_try='test -s conftest.$ac_objext'
28123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28124 (eval $ac_try) 2>&5
28126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28127 (exit $ac_status); }; }; then
28128 ac_header_compiler=yes
28130 echo "$as_me: failed program was:" >&5
28131 sed 's/^/| /' conftest.$ac_ext >&5
28133 ac_header_compiler=no
28135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28136 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28137 echo "${ECHO_T}$ac_header_compiler" >&6
28139 # Is the header present?
28140 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28141 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28142 cat >conftest.$ac_ext <<_ACEOF
28145 cat confdefs.h >>conftest.$ac_ext
28146 cat >>conftest.$ac_ext <<_ACEOF
28147 /* end confdefs.h. */
28148 #include <$ac_header>
28150 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28151 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28153 grep -v '^ *+' conftest.er1 >conftest.err
28155 cat conftest.err >&5
28156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28157 (exit $ac_status); } >/dev/null; then
28158 if test -s conftest.err; then
28159 ac_cpp_err=$ac_c_preproc_warn_flag
28160 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28167 if test -z "$ac_cpp_err"; then
28168 ac_header_preproc=yes
28170 echo "$as_me: failed program was:" >&5
28171 sed 's/^/| /' conftest.$ac_ext >&5
28173 ac_header_preproc=no
28175 rm -f conftest.err conftest.$ac_ext
28176 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28177 echo "${ECHO_T}$ac_header_preproc" >&6
28179 # So? What about this header?
28180 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28182 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28183 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28185 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28186 ac_header_preproc=yes
28189 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28190 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28191 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28192 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28193 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28194 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28195 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28196 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28198 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28199 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28200 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28203 ## ------------------------------------------ ##
28204 ## Report this to the AC_PACKAGE_NAME lists. ##
28205 ## ------------------------------------------ ##
28208 sed "s/^/$as_me: WARNING: /" >&2
28211 echo "$as_me:$LINENO: checking for $ac_header" >&5
28212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28214 echo $ECHO_N "(cached) $ECHO_C" >&6
28216 eval "$as_ac_Header=\$ac_header_preproc"
28218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28219 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28222 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28223 cat >>confdefs.h <<_ACEOF
28224 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28231 if test $ac_cv_header_heim_err_h = yes ; then
28237 if test $krb5_impl = mit; then
28238 echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
28239 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
28240 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
28241 echo $ECHO_N "(cached) $ECHO_C" >&6
28243 ac_check_lib_save_LIBS=$LIBS
28244 LIBS="-lk5crypto $LIBS"
28245 cat >conftest.$ac_ext <<_ACEOF
28248 cat confdefs.h >>conftest.$ac_ext
28249 cat >>conftest.$ac_ext <<_ACEOF
28250 /* end confdefs.h. */
28261 rm -f conftest.$ac_objext conftest$ac_exeext
28262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28263 (eval $ac_link) 2>conftest.er1
28265 grep -v '^ *+' conftest.er1 >conftest.err
28267 cat conftest.err >&5
28268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28269 (exit $ac_status); } &&
28270 { ac_try='test -z "$ac_c_werror_flag"
28271 || test ! -s conftest.err'
28272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28273 (eval $ac_try) 2>&5
28275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28276 (exit $ac_status); }; } &&
28277 { ac_try='test -s conftest$ac_exeext'
28278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28279 (eval $ac_try) 2>&5
28281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28282 (exit $ac_status); }; }; then
28283 ac_cv_lib_k5crypto_main=yes
28285 echo "$as_me: failed program was:" >&5
28286 sed 's/^/| /' conftest.$ac_ext >&5
28288 ac_cv_lib_k5crypto_main=no
28290 rm -f conftest.err conftest.$ac_objext \
28291 conftest$ac_exeext conftest.$ac_ext
28292 LIBS=$ac_check_lib_save_LIBS
28294 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
28295 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
28296 if test $ac_cv_lib_k5crypto_main = yes; then
28297 krb5crypto=k5crypto
28303 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
28304 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
28305 if test "${ac_cv_lib_krb5_main+set}" = set; then
28306 echo $ECHO_N "(cached) $ECHO_C" >&6
28308 ac_check_lib_save_LIBS=$LIBS
28309 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
28310 cat >conftest.$ac_ext <<_ACEOF
28313 cat confdefs.h >>conftest.$ac_ext
28314 cat >>conftest.$ac_ext <<_ACEOF
28315 /* end confdefs.h. */
28326 rm -f conftest.$ac_objext conftest$ac_exeext
28327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28328 (eval $ac_link) 2>conftest.er1
28330 grep -v '^ *+' conftest.er1 >conftest.err
28332 cat conftest.err >&5
28333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28334 (exit $ac_status); } &&
28335 { ac_try='test -z "$ac_c_werror_flag"
28336 || test ! -s conftest.err'
28337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28338 (eval $ac_try) 2>&5
28340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28341 (exit $ac_status); }; } &&
28342 { ac_try='test -s conftest$ac_exeext'
28343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28344 (eval $ac_try) 2>&5
28346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28347 (exit $ac_status); }; }; then
28348 ac_cv_lib_krb5_main=yes
28350 echo "$as_me: failed program was:" >&5
28351 sed 's/^/| /' conftest.$ac_ext >&5
28353 ac_cv_lib_krb5_main=no
28355 rm -f conftest.err conftest.$ac_objext \
28356 conftest$ac_exeext conftest.$ac_ext
28357 LIBS=$ac_check_lib_save_LIBS
28359 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
28360 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
28361 if test $ac_cv_lib_krb5_main = yes; then
28363 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
28369 elif test $krb5_impl = heimdal; then
28370 echo "$as_me:$LINENO: checking for main in -ldes" >&5
28371 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
28372 if test "${ac_cv_lib_des_main+set}" = set; then
28373 echo $ECHO_N "(cached) $ECHO_C" >&6
28375 ac_check_lib_save_LIBS=$LIBS
28377 cat >conftest.$ac_ext <<_ACEOF
28380 cat confdefs.h >>conftest.$ac_ext
28381 cat >>conftest.$ac_ext <<_ACEOF
28382 /* end confdefs.h. */
28393 rm -f conftest.$ac_objext conftest$ac_exeext
28394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28395 (eval $ac_link) 2>conftest.er1
28397 grep -v '^ *+' conftest.er1 >conftest.err
28399 cat conftest.err >&5
28400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28401 (exit $ac_status); } &&
28402 { ac_try='test -z "$ac_c_werror_flag"
28403 || test ! -s conftest.err'
28404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28405 (eval $ac_try) 2>&5
28407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28408 (exit $ac_status); }; } &&
28409 { ac_try='test -s conftest$ac_exeext'
28410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28411 (eval $ac_try) 2>&5
28413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28414 (exit $ac_status); }; }; then
28415 ac_cv_lib_des_main=yes
28417 echo "$as_me: failed program was:" >&5
28418 sed 's/^/| /' conftest.$ac_ext >&5
28420 ac_cv_lib_des_main=no
28422 rm -f conftest.err conftest.$ac_objext \
28423 conftest$ac_exeext conftest.$ac_ext
28424 LIBS=$ac_check_lib_save_LIBS
28426 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
28427 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
28428 if test $ac_cv_lib_des_main = yes; then
28435 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
28436 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
28437 if test "${ac_cv_lib_krb5_main+set}" = set; then
28438 echo $ECHO_N "(cached) $ECHO_C" >&6
28440 ac_check_lib_save_LIBS=$LIBS
28441 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
28442 cat >conftest.$ac_ext <<_ACEOF
28445 cat confdefs.h >>conftest.$ac_ext
28446 cat >>conftest.$ac_ext <<_ACEOF
28447 /* end confdefs.h. */
28458 rm -f conftest.$ac_objext conftest$ac_exeext
28459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28460 (eval $ac_link) 2>conftest.er1
28462 grep -v '^ *+' conftest.er1 >conftest.err
28464 cat conftest.err >&5
28465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28466 (exit $ac_status); } &&
28467 { ac_try='test -z "$ac_c_werror_flag"
28468 || test ! -s conftest.err'
28469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28470 (eval $ac_try) 2>&5
28472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28473 (exit $ac_status); }; } &&
28474 { ac_try='test -s conftest$ac_exeext'
28475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28476 (eval $ac_try) 2>&5
28478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28479 (exit $ac_status); }; }; then
28480 ac_cv_lib_krb5_main=yes
28482 echo "$as_me: failed program was:" >&5
28483 sed 's/^/| /' conftest.$ac_ext >&5
28485 ac_cv_lib_krb5_main=no
28487 rm -f conftest.err conftest.$ac_objext \
28488 conftest$ac_exeext conftest.$ac_ext
28489 LIBS=$ac_check_lib_save_LIBS
28491 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
28492 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
28493 if test $ac_cv_lib_krb5_main = yes; then
28495 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
28502 cat >>confdefs.h <<\_ACEOF
28503 #define HAVE_HEIMDAL_KERBEROS 1
28509 { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
28510 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
28513 if test $have_krb5 = yes ; then
28517 cat >>confdefs.h <<\_ACEOF
28518 #define HAVE_KRB5 1
28522 if test $ol_with_kerberos = k5only ; then
28523 ol_with_kerberos=found
28526 elif test $ol_with_kerberos != auto ; then
28527 { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
28528 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
28529 { (exit 1); exit 1; }; }
28535 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
28536 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
28540 for ac_header in kerberosIV/krb.h kerberosIV/des.h
28542 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28544 echo "$as_me:$LINENO: checking for $ac_header" >&5
28545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28547 echo $ECHO_N "(cached) $ECHO_C" >&6
28549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28550 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28552 # Is the header compilable?
28553 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28554 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28555 cat >conftest.$ac_ext <<_ACEOF
28558 cat confdefs.h >>conftest.$ac_ext
28559 cat >>conftest.$ac_ext <<_ACEOF
28560 /* end confdefs.h. */
28561 $ac_includes_default
28562 #include <$ac_header>
28564 rm -f conftest.$ac_objext
28565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28566 (eval $ac_compile) 2>conftest.er1
28568 grep -v '^ *+' conftest.er1 >conftest.err
28570 cat conftest.err >&5
28571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28572 (exit $ac_status); } &&
28573 { ac_try='test -z "$ac_c_werror_flag"
28574 || test ! -s conftest.err'
28575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28576 (eval $ac_try) 2>&5
28578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28579 (exit $ac_status); }; } &&
28580 { ac_try='test -s conftest.$ac_objext'
28581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28582 (eval $ac_try) 2>&5
28584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28585 (exit $ac_status); }; }; then
28586 ac_header_compiler=yes
28588 echo "$as_me: failed program was:" >&5
28589 sed 's/^/| /' conftest.$ac_ext >&5
28591 ac_header_compiler=no
28593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28594 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28595 echo "${ECHO_T}$ac_header_compiler" >&6
28597 # Is the header present?
28598 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28599 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28600 cat >conftest.$ac_ext <<_ACEOF
28603 cat confdefs.h >>conftest.$ac_ext
28604 cat >>conftest.$ac_ext <<_ACEOF
28605 /* end confdefs.h. */
28606 #include <$ac_header>
28608 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28609 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28611 grep -v '^ *+' conftest.er1 >conftest.err
28613 cat conftest.err >&5
28614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28615 (exit $ac_status); } >/dev/null; then
28616 if test -s conftest.err; then
28617 ac_cpp_err=$ac_c_preproc_warn_flag
28618 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28625 if test -z "$ac_cpp_err"; then
28626 ac_header_preproc=yes
28628 echo "$as_me: failed program was:" >&5
28629 sed 's/^/| /' conftest.$ac_ext >&5
28631 ac_header_preproc=no
28633 rm -f conftest.err conftest.$ac_ext
28634 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28635 echo "${ECHO_T}$ac_header_preproc" >&6
28637 # So? What about this header?
28638 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28640 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28641 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28643 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28644 ac_header_preproc=yes
28647 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28648 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28649 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28650 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28651 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28652 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28653 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28654 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28656 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28657 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28658 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28661 ## ------------------------------------------ ##
28662 ## Report this to the AC_PACKAGE_NAME lists. ##
28663 ## ------------------------------------------ ##
28666 sed "s/^/$as_me: WARNING: /" >&2
28669 echo "$as_me:$LINENO: checking for $ac_header" >&5
28670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28671 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28672 echo $ECHO_N "(cached) $ECHO_C" >&6
28674 eval "$as_ac_Header=\$ac_header_preproc"
28676 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28677 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28680 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28681 cat >>confdefs.h <<_ACEOF
28682 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28690 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
28691 if test $krb5_impl = mit; then
28692 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
28693 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
28694 if test "${ac_cv_lib_krb4_main+set}" = set; then
28695 echo $ECHO_N "(cached) $ECHO_C" >&6
28697 ac_check_lib_save_LIBS=$LIBS
28698 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
28699 cat >conftest.$ac_ext <<_ACEOF
28702 cat confdefs.h >>conftest.$ac_ext
28703 cat >>conftest.$ac_ext <<_ACEOF
28704 /* end confdefs.h. */
28715 rm -f conftest.$ac_objext conftest$ac_exeext
28716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28717 (eval $ac_link) 2>conftest.er1
28719 grep -v '^ *+' conftest.er1 >conftest.err
28721 cat conftest.err >&5
28722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28723 (exit $ac_status); } &&
28724 { ac_try='test -z "$ac_c_werror_flag"
28725 || test ! -s conftest.err'
28726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28727 (eval $ac_try) 2>&5
28729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28730 (exit $ac_status); }; } &&
28731 { ac_try='test -s conftest$ac_exeext'
28732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28733 (eval $ac_try) 2>&5
28735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28736 (exit $ac_status); }; }; then
28737 ac_cv_lib_krb4_main=yes
28739 echo "$as_me: failed program was:" >&5
28740 sed 's/^/| /' conftest.$ac_ext >&5
28742 ac_cv_lib_krb4_main=no
28744 rm -f conftest.err conftest.$ac_objext \
28745 conftest$ac_exeext conftest.$ac_ext
28746 LIBS=$ac_check_lib_save_LIBS
28748 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
28749 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
28750 if test $ac_cv_lib_krb4_main = yes; then
28752 KRB4_LIBS="-lkrb4 -ldes425"
28758 elif test $krb5_impl = heimdal; then
28759 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
28760 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
28761 if test "${ac_cv_lib_krb4_main+set}" = set; then
28762 echo $ECHO_N "(cached) $ECHO_C" >&6
28764 ac_check_lib_save_LIBS=$LIBS
28765 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
28766 cat >conftest.$ac_ext <<_ACEOF
28769 cat confdefs.h >>conftest.$ac_ext
28770 cat >>conftest.$ac_ext <<_ACEOF
28771 /* end confdefs.h. */
28782 rm -f conftest.$ac_objext conftest$ac_exeext
28783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28784 (eval $ac_link) 2>conftest.er1
28786 grep -v '^ *+' conftest.er1 >conftest.err
28788 cat conftest.err >&5
28789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28790 (exit $ac_status); } &&
28791 { ac_try='test -z "$ac_c_werror_flag"
28792 || test ! -s conftest.err'
28793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28794 (eval $ac_try) 2>&5
28796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28797 (exit $ac_status); }; } &&
28798 { ac_try='test -s conftest$ac_exeext'
28799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28800 (eval $ac_try) 2>&5
28802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28803 (exit $ac_status); }; }; then
28804 ac_cv_lib_krb4_main=yes
28806 echo "$as_me: failed program was:" >&5
28807 sed 's/^/| /' conftest.$ac_ext >&5
28809 ac_cv_lib_krb4_main=no
28811 rm -f conftest.err conftest.$ac_objext \
28812 conftest$ac_exeext conftest.$ac_ext
28813 LIBS=$ac_check_lib_save_LIBS
28815 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
28816 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
28817 if test $ac_cv_lib_krb4_main = yes; then
28827 { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
28828 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
28831 if test $have_k425 = yes ; then
28832 ol_with_kerberos=found
28836 cat >>confdefs.h <<\_ACEOF
28837 #define HAVE_KRB425 1
28841 cat >>confdefs.h <<\_ACEOF
28842 #define HAVE_KRB4 1
28846 echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
28847 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
28848 if test "${ol_cv_var_des_debug+set}" = set; then
28849 echo $ECHO_N "(cached) $ECHO_C" >&6
28853 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
28854 cat >conftest.$ac_ext <<_ACEOF
28857 cat confdefs.h >>conftest.$ac_ext
28858 cat >>conftest.$ac_ext <<_ACEOF
28859 /* end confdefs.h. */
28861 #include <kerberosIV/krb.h>
28862 #include <kerberosIV/des.h>
28863 extern int des_debug;
28875 rm -f conftest.$ac_objext conftest$ac_exeext
28876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28877 (eval $ac_link) 2>conftest.er1
28879 grep -v '^ *+' conftest.er1 >conftest.err
28881 cat conftest.err >&5
28882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28883 (exit $ac_status); } &&
28884 { ac_try='test -z "$ac_c_werror_flag"
28885 || test ! -s conftest.err'
28886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28887 (eval $ac_try) 2>&5
28889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28890 (exit $ac_status); }; } &&
28891 { ac_try='test -s conftest$ac_exeext'
28892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28893 (eval $ac_try) 2>&5
28895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28896 (exit $ac_status); }; }; then
28897 ol_cv_var_des_debug=yes
28899 echo "$as_me: failed program was:" >&5
28900 sed 's/^/| /' conftest.$ac_ext >&5
28902 ol_cv_var_des_debug=no
28904 rm -f conftest.err conftest.$ac_objext \
28905 conftest$ac_exeext conftest.$ac_ext
28909 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
28910 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
28912 if test $ol_cv_var_des_debug = yes ; then
28914 cat >>confdefs.h <<\_ACEOF
28915 #define HAVE_DES_DEBUG 1
28925 if test $ol_link_krb5 = yes ; then
28926 ol_with_kerberos=found
28929 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
28930 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
28935 for ac_header in krb.h des.h krb-archaeology.h
28937 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28938 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28939 echo "$as_me:$LINENO: checking for $ac_header" >&5
28940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28942 echo $ECHO_N "(cached) $ECHO_C" >&6
28944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28945 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28947 # Is the header compilable?
28948 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28949 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28950 cat >conftest.$ac_ext <<_ACEOF
28953 cat confdefs.h >>conftest.$ac_ext
28954 cat >>conftest.$ac_ext <<_ACEOF
28955 /* end confdefs.h. */
28956 $ac_includes_default
28957 #include <$ac_header>
28959 rm -f conftest.$ac_objext
28960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28961 (eval $ac_compile) 2>conftest.er1
28963 grep -v '^ *+' conftest.er1 >conftest.err
28965 cat conftest.err >&5
28966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28967 (exit $ac_status); } &&
28968 { ac_try='test -z "$ac_c_werror_flag"
28969 || test ! -s conftest.err'
28970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28971 (eval $ac_try) 2>&5
28973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28974 (exit $ac_status); }; } &&
28975 { ac_try='test -s conftest.$ac_objext'
28976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28977 (eval $ac_try) 2>&5
28979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28980 (exit $ac_status); }; }; then
28981 ac_header_compiler=yes
28983 echo "$as_me: failed program was:" >&5
28984 sed 's/^/| /' conftest.$ac_ext >&5
28986 ac_header_compiler=no
28988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28989 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28990 echo "${ECHO_T}$ac_header_compiler" >&6
28992 # Is the header present?
28993 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28994 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28995 cat >conftest.$ac_ext <<_ACEOF
28998 cat confdefs.h >>conftest.$ac_ext
28999 cat >>conftest.$ac_ext <<_ACEOF
29000 /* end confdefs.h. */
29001 #include <$ac_header>
29003 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29004 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29006 grep -v '^ *+' conftest.er1 >conftest.err
29008 cat conftest.err >&5
29009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29010 (exit $ac_status); } >/dev/null; then
29011 if test -s conftest.err; then
29012 ac_cpp_err=$ac_c_preproc_warn_flag
29013 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29020 if test -z "$ac_cpp_err"; then
29021 ac_header_preproc=yes
29023 echo "$as_me: failed program was:" >&5
29024 sed 's/^/| /' conftest.$ac_ext >&5
29026 ac_header_preproc=no
29028 rm -f conftest.err conftest.$ac_ext
29029 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29030 echo "${ECHO_T}$ac_header_preproc" >&6
29032 # So? What about this header?
29033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29035 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29036 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29038 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29039 ac_header_preproc=yes
29042 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29043 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29044 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29045 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29046 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29047 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29048 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29049 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29052 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29053 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29056 ## ------------------------------------------ ##
29057 ## Report this to the AC_PACKAGE_NAME lists. ##
29058 ## ------------------------------------------ ##
29061 sed "s/^/$as_me: WARNING: /" >&2
29064 echo "$as_me:$LINENO: checking for $ac_header" >&5
29065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29067 echo $ECHO_N "(cached) $ECHO_C" >&6
29069 eval "$as_ac_Header=\$ac_header_preproc"
29071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29072 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29076 cat >>confdefs.h <<_ACEOF
29077 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29085 if test $ac_cv_header_krb_h = yes ; then
29086 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
29087 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
29088 if test "${ac_cv_lib_krb_main+set}" = set; then
29089 echo $ECHO_N "(cached) $ECHO_C" >&6
29091 ac_check_lib_save_LIBS=$LIBS
29092 LIBS="-lkrb -ldes $LIBS"
29093 cat >conftest.$ac_ext <<_ACEOF
29096 cat confdefs.h >>conftest.$ac_ext
29097 cat >>conftest.$ac_ext <<_ACEOF
29098 /* end confdefs.h. */
29109 rm -f conftest.$ac_objext conftest$ac_exeext
29110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29111 (eval $ac_link) 2>conftest.er1
29113 grep -v '^ *+' conftest.er1 >conftest.err
29115 cat conftest.err >&5
29116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29117 (exit $ac_status); } &&
29118 { ac_try='test -z "$ac_c_werror_flag"
29119 || test ! -s conftest.err'
29120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29121 (eval $ac_try) 2>&5
29123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29124 (exit $ac_status); }; } &&
29125 { ac_try='test -s conftest$ac_exeext'
29126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29127 (eval $ac_try) 2>&5
29129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29130 (exit $ac_status); }; }; then
29131 ac_cv_lib_krb_main=yes
29133 echo "$as_me: failed program was:" >&5
29134 sed 's/^/| /' conftest.$ac_ext >&5
29136 ac_cv_lib_krb_main=no
29138 rm -f conftest.err conftest.$ac_objext \
29139 conftest$ac_exeext conftest.$ac_ext
29140 LIBS=$ac_check_lib_save_LIBS
29142 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
29143 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
29144 if test $ac_cv_lib_krb_main = yes; then
29151 if test $have_k4 = yes ; then
29152 ol_with_kerberos=found
29156 cat >>confdefs.h <<\_ACEOF
29157 #define HAVE_KRB4 1
29161 KRB4_LIBS="-lkrb -ldes"
29163 if test $ac_cv_header_krb_archaeology_h = yes ; then
29165 cat >>confdefs.h <<\_ACEOF
29166 #define HAVE_KTH_KERBEROS 1
29174 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
29177 elif test $ol_enable_kbind = yes ; then
29178 { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
29179 echo "$as_me: error: Kerberos IV detection failed" >&2;}
29180 { (exit 1); exit 1; }; }
29183 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
29185 cat >>confdefs.h <<\_ACEOF
29186 #define HAVE_KERBEROS 1
29190 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
29191 { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
29192 echo "$as_me: error: Kerberos detection failed" >&2;}
29193 { (exit 1); exit 1; }; }
29198 if test $ol_with_tls != no ; then
29201 for ac_header in openssl/ssl.h ssl.h
29203 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29204 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29205 echo "$as_me:$LINENO: checking for $ac_header" >&5
29206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29207 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29208 echo $ECHO_N "(cached) $ECHO_C" >&6
29210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29211 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29213 # Is the header compilable?
29214 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29215 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29216 cat >conftest.$ac_ext <<_ACEOF
29219 cat confdefs.h >>conftest.$ac_ext
29220 cat >>conftest.$ac_ext <<_ACEOF
29221 /* end confdefs.h. */
29222 $ac_includes_default
29223 #include <$ac_header>
29225 rm -f conftest.$ac_objext
29226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29227 (eval $ac_compile) 2>conftest.er1
29229 grep -v '^ *+' conftest.er1 >conftest.err
29231 cat conftest.err >&5
29232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29233 (exit $ac_status); } &&
29234 { ac_try='test -z "$ac_c_werror_flag"
29235 || test ! -s conftest.err'
29236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29237 (eval $ac_try) 2>&5
29239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29240 (exit $ac_status); }; } &&
29241 { ac_try='test -s conftest.$ac_objext'
29242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29243 (eval $ac_try) 2>&5
29245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29246 (exit $ac_status); }; }; then
29247 ac_header_compiler=yes
29249 echo "$as_me: failed program was:" >&5
29250 sed 's/^/| /' conftest.$ac_ext >&5
29252 ac_header_compiler=no
29254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29255 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29256 echo "${ECHO_T}$ac_header_compiler" >&6
29258 # Is the header present?
29259 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29260 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29261 cat >conftest.$ac_ext <<_ACEOF
29264 cat confdefs.h >>conftest.$ac_ext
29265 cat >>conftest.$ac_ext <<_ACEOF
29266 /* end confdefs.h. */
29267 #include <$ac_header>
29269 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29270 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29272 grep -v '^ *+' conftest.er1 >conftest.err
29274 cat conftest.err >&5
29275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29276 (exit $ac_status); } >/dev/null; then
29277 if test -s conftest.err; then
29278 ac_cpp_err=$ac_c_preproc_warn_flag
29279 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29286 if test -z "$ac_cpp_err"; then
29287 ac_header_preproc=yes
29289 echo "$as_me: failed program was:" >&5
29290 sed 's/^/| /' conftest.$ac_ext >&5
29292 ac_header_preproc=no
29294 rm -f conftest.err conftest.$ac_ext
29295 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29296 echo "${ECHO_T}$ac_header_preproc" >&6
29298 # So? What about this header?
29299 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29301 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29302 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29304 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29305 ac_header_preproc=yes
29308 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29309 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29310 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29311 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29312 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29313 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29314 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29315 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29317 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29318 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29319 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29322 ## ------------------------------------------ ##
29323 ## Report this to the AC_PACKAGE_NAME lists. ##
29324 ## ------------------------------------------ ##
29327 sed "s/^/$as_me: WARNING: /" >&2
29330 echo "$as_me:$LINENO: checking for $ac_header" >&5
29331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29333 echo $ECHO_N "(cached) $ECHO_C" >&6
29335 eval "$as_ac_Header=\$ac_header_preproc"
29337 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29338 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29341 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29342 cat >>confdefs.h <<_ACEOF
29343 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29351 if test $ac_cv_header_openssl_ssl_h = yes \
29352 -o $ac_cv_header_ssl_h = yes ; then
29353 echo "$as_me:$LINENO: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
29354 echo $ECHO_N "checking for SSLeay_add_ssl_algorithms in -lssl... $ECHO_C" >&6
29355 if test "${ac_cv_lib_ssl_SSLeay_add_ssl_algorithms+set}" = set; then
29356 echo $ECHO_N "(cached) $ECHO_C" >&6
29358 ac_check_lib_save_LIBS=$LIBS
29359 LIBS="-lssl -lcrypto $LIBS"
29360 cat >conftest.$ac_ext <<_ACEOF
29363 cat confdefs.h >>conftest.$ac_ext
29364 cat >>conftest.$ac_ext <<_ACEOF
29365 /* end confdefs.h. */
29367 /* Override any gcc2 internal prototype to avoid an error. */
29371 /* We use char because int might match the return type of a gcc2
29372 builtin and then its argument prototype would still apply. */
29373 char SSLeay_add_ssl_algorithms ();
29377 SSLeay_add_ssl_algorithms ();
29382 rm -f conftest.$ac_objext conftest$ac_exeext
29383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29384 (eval $ac_link) 2>conftest.er1
29386 grep -v '^ *+' conftest.er1 >conftest.err
29388 cat conftest.err >&5
29389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29390 (exit $ac_status); } &&
29391 { ac_try='test -z "$ac_c_werror_flag"
29392 || test ! -s conftest.err'
29393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29394 (eval $ac_try) 2>&5
29396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29397 (exit $ac_status); }; } &&
29398 { ac_try='test -s conftest$ac_exeext'
29399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29400 (eval $ac_try) 2>&5
29402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29403 (exit $ac_status); }; }; then
29404 ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=yes
29406 echo "$as_me: failed program was:" >&5
29407 sed 's/^/| /' conftest.$ac_ext >&5
29409 ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=no
29411 rm -f conftest.err conftest.$ac_objext \
29412 conftest$ac_exeext conftest.$ac_ext
29413 LIBS=$ac_check_lib_save_LIBS
29415 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&5
29416 echo "${ECHO_T}$ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&6
29417 if test $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms = yes; then
29425 if test $have_ssleay = no ; then
29426 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
29427 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
29428 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
29429 echo $ECHO_N "(cached) $ECHO_C" >&6
29431 ac_check_lib_save_LIBS=$LIBS
29432 LIBS="-lssl -lcrypto $LIBS"
29433 cat >conftest.$ac_ext <<_ACEOF
29436 cat confdefs.h >>conftest.$ac_ext
29437 cat >>conftest.$ac_ext <<_ACEOF
29438 /* end confdefs.h. */
29440 /* Override any gcc2 internal prototype to avoid an error. */
29444 /* We use char because int might match the return type of a gcc2
29445 builtin and then its argument prototype would still apply. */
29446 char SSL_library_init ();
29450 SSL_library_init ();
29455 rm -f conftest.$ac_objext conftest$ac_exeext
29456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29457 (eval $ac_link) 2>conftest.er1
29459 grep -v '^ *+' conftest.er1 >conftest.err
29461 cat conftest.err >&5
29462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29463 (exit $ac_status); } &&
29464 { ac_try='test -z "$ac_c_werror_flag"
29465 || test ! -s conftest.err'
29466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29467 (eval $ac_try) 2>&5
29469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29470 (exit $ac_status); }; } &&
29471 { ac_try='test -s conftest$ac_exeext'
29472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29473 (eval $ac_try) 2>&5
29475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29476 (exit $ac_status); }; }; then
29477 ac_cv_lib_ssl_SSL_library_init=yes
29479 echo "$as_me: failed program was:" >&5
29480 sed 's/^/| /' conftest.$ac_ext >&5
29482 ac_cv_lib_ssl_SSL_library_init=no
29484 rm -f conftest.err conftest.$ac_objext \
29485 conftest$ac_exeext conftest.$ac_ext
29486 LIBS=$ac_check_lib_save_LIBS
29488 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
29489 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
29490 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
29499 if test $have_ssleay = no ; then
29500 echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
29501 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
29502 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
29503 echo $ECHO_N "(cached) $ECHO_C" >&6
29505 ac_check_lib_save_LIBS=$LIBS
29506 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
29507 cat >conftest.$ac_ext <<_ACEOF
29510 cat confdefs.h >>conftest.$ac_ext
29511 cat >>conftest.$ac_ext <<_ACEOF
29512 /* end confdefs.h. */
29514 /* Override any gcc2 internal prototype to avoid an error. */
29518 /* We use char because int might match the return type of a gcc2
29519 builtin and then its argument prototype would still apply. */
29520 char ssl3_accept ();
29529 rm -f conftest.$ac_objext conftest$ac_exeext
29530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29531 (eval $ac_link) 2>conftest.er1
29533 grep -v '^ *+' conftest.er1 >conftest.err
29535 cat conftest.err >&5
29536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29537 (exit $ac_status); } &&
29538 { ac_try='test -z "$ac_c_werror_flag"
29539 || test ! -s conftest.err'
29540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29541 (eval $ac_try) 2>&5
29543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29544 (exit $ac_status); }; } &&
29545 { ac_try='test -s conftest$ac_exeext'
29546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29547 (eval $ac_try) 2>&5
29549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29550 (exit $ac_status); }; }; then
29551 ac_cv_lib_ssl_ssl3_accept=yes
29553 echo "$as_me: failed program was:" >&5
29554 sed 's/^/| /' conftest.$ac_ext >&5
29556 ac_cv_lib_ssl_ssl3_accept=no
29558 rm -f conftest.err conftest.$ac_objext \
29559 conftest$ac_exeext conftest.$ac_ext
29560 LIBS=$ac_check_lib_save_LIBS
29562 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
29563 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
29564 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
29573 if test $have_ssleay = yes ; then
29578 cat >>confdefs.h <<\_ACEOF
29579 #define HAVE_SSLEAY 1
29583 if test $need_rsaref = yes; then
29585 cat >>confdefs.h <<\_ACEOF
29586 #define HAVE_RSAREF 1
29590 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
29592 TLS_LIBS="-lssl -lcrypto"
29595 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
29596 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
29597 if test "${ol_cv_ssl_crl_compat+set}" = set; then
29598 echo $ECHO_N "(cached) $ECHO_C" >&6
29601 cat >conftest.$ac_ext <<_ACEOF
29604 cat confdefs.h >>conftest.$ac_ext
29605 cat >>conftest.$ac_ext <<_ACEOF
29606 /* end confdefs.h. */
29608 #ifdef HAVE_OPENSSL_SSL_H
29609 #include <openssl/ssl.h>
29614 /* Require 0.9.7d+ */
29615 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
29616 char *__ssl_compat = "0.9.7d";
29620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29621 $EGREP "__ssl_compat" >/dev/null 2>&1; then
29622 ol_cv_ssl_crl_compat=yes
29624 ol_cv_ssl_crl_compat=no
29629 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
29630 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
29632 if test $ol_cv_ssl_crl_compat = no ; then
29636 cat >>confdefs.h <<\_ACEOF
29637 #define HAVE_OPENSSL_CRL 1
29644 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
29645 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
29649 if test $ol_link_tls = yes ; then
29651 cat >>confdefs.h <<\_ACEOF
29657 elif test $ol_with_tls = auto ; then
29658 { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
29659 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
29660 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
29661 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
29663 elif test $ol_with_tls != no ; then
29664 { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
29665 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
29666 { (exit 1); exit 1; }; }
29669 if test $ol_enable_lmpasswd != no; then
29670 if test $ol_link_tls != yes ; then
29671 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
29672 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
29673 { (exit 1); exit 1; }; }
29677 cat >>confdefs.h <<\_ACEOF
29678 #define SLAPD_LMHASH 1
29685 if test $ol_with_threads = auto -o $ol_with_threads = yes \
29686 -o $ol_with_threads = nt ; then
29689 echo "$as_me:$LINENO: checking for _beginthread" >&5
29690 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
29691 if test "${ac_cv_func__beginthread+set}" = set; then
29692 echo $ECHO_N "(cached) $ECHO_C" >&6
29694 cat >conftest.$ac_ext <<_ACEOF
29697 cat confdefs.h >>conftest.$ac_ext
29698 cat >>conftest.$ac_ext <<_ACEOF
29699 /* end confdefs.h. */
29700 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
29701 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29702 #define _beginthread innocuous__beginthread
29704 /* System header to define __stub macros and hopefully few prototypes,
29705 which can conflict with char _beginthread (); below.
29706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29707 <limits.h> exists even on freestanding compilers. */
29710 # include <limits.h>
29712 # include <assert.h>
29715 #undef _beginthread
29717 /* Override any gcc2 internal prototype to avoid an error. */
29722 /* We use char because int might match the return type of a gcc2
29723 builtin and then its argument prototype would still apply. */
29724 char _beginthread ();
29725 /* The GNU C library defines this for functions which it implements
29726 to always fail with ENOSYS. Some functions are actually named
29727 something starting with __ and the normal name is an alias. */
29728 #if defined (__stub__beginthread) || defined (__stub____beginthread)
29731 char (*f) () = _beginthread;
29740 return f != _beginthread;
29745 rm -f conftest.$ac_objext conftest$ac_exeext
29746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29747 (eval $ac_link) 2>conftest.er1
29749 grep -v '^ *+' conftest.er1 >conftest.err
29751 cat conftest.err >&5
29752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29753 (exit $ac_status); } &&
29754 { ac_try='test -z "$ac_c_werror_flag"
29755 || test ! -s conftest.err'
29756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29757 (eval $ac_try) 2>&5
29759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29760 (exit $ac_status); }; } &&
29761 { ac_try='test -s conftest$ac_exeext'
29762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29763 (eval $ac_try) 2>&5
29765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29766 (exit $ac_status); }; }; then
29767 ac_cv_func__beginthread=yes
29769 echo "$as_me: failed program was:" >&5
29770 sed 's/^/| /' conftest.$ac_ext >&5
29772 ac_cv_func__beginthread=no
29774 rm -f conftest.err conftest.$ac_objext \
29775 conftest$ac_exeext conftest.$ac_ext
29777 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
29778 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
29781 if test $ac_cv_func__beginthread = yes ; then
29783 cat >>confdefs.h <<\_ACEOF
29784 #define HAVE_NT_THREADS 1
29787 ol_cv_nt_threads=yes
29791 if test "$ol_cv_nt_threads" = yes ; then
29793 ol_with_threads=found
29794 ol_with_yielding_select=yes
29797 cat >>confdefs.h <<\_ACEOF
29798 #define HAVE_NT_SERVICE_MANAGER 1
29802 cat >>confdefs.h <<\_ACEOF
29803 #define HAVE_NT_EVENT_LOG 1
29808 if test $ol_with_threads = nt ; then
29809 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
29810 echo "$as_me: error: could not locate NT Threads" >&2;}
29811 { (exit 1); exit 1; }; }
29815 if test $ol_with_threads = auto -o $ol_with_threads = yes \
29816 -o $ol_with_threads = posix ; then
29819 for ac_header in pthread.h
29821 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29822 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29823 echo "$as_me:$LINENO: checking for $ac_header" >&5
29824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29825 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29826 echo $ECHO_N "(cached) $ECHO_C" >&6
29828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29829 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29831 # Is the header compilable?
29832 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29833 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29834 cat >conftest.$ac_ext <<_ACEOF
29837 cat confdefs.h >>conftest.$ac_ext
29838 cat >>conftest.$ac_ext <<_ACEOF
29839 /* end confdefs.h. */
29840 $ac_includes_default
29841 #include <$ac_header>
29843 rm -f conftest.$ac_objext
29844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29845 (eval $ac_compile) 2>conftest.er1
29847 grep -v '^ *+' conftest.er1 >conftest.err
29849 cat conftest.err >&5
29850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29851 (exit $ac_status); } &&
29852 { ac_try='test -z "$ac_c_werror_flag"
29853 || test ! -s conftest.err'
29854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29855 (eval $ac_try) 2>&5
29857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29858 (exit $ac_status); }; } &&
29859 { ac_try='test -s conftest.$ac_objext'
29860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29861 (eval $ac_try) 2>&5
29863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29864 (exit $ac_status); }; }; then
29865 ac_header_compiler=yes
29867 echo "$as_me: failed program was:" >&5
29868 sed 's/^/| /' conftest.$ac_ext >&5
29870 ac_header_compiler=no
29872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29873 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29874 echo "${ECHO_T}$ac_header_compiler" >&6
29876 # Is the header present?
29877 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29878 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29879 cat >conftest.$ac_ext <<_ACEOF
29882 cat confdefs.h >>conftest.$ac_ext
29883 cat >>conftest.$ac_ext <<_ACEOF
29884 /* end confdefs.h. */
29885 #include <$ac_header>
29887 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29888 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29890 grep -v '^ *+' conftest.er1 >conftest.err
29892 cat conftest.err >&5
29893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29894 (exit $ac_status); } >/dev/null; then
29895 if test -s conftest.err; then
29896 ac_cpp_err=$ac_c_preproc_warn_flag
29897 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29904 if test -z "$ac_cpp_err"; then
29905 ac_header_preproc=yes
29907 echo "$as_me: failed program was:" >&5
29908 sed 's/^/| /' conftest.$ac_ext >&5
29910 ac_header_preproc=no
29912 rm -f conftest.err conftest.$ac_ext
29913 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29914 echo "${ECHO_T}$ac_header_preproc" >&6
29916 # So? What about this header?
29917 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29919 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29920 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29922 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29923 ac_header_preproc=yes
29926 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29927 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29928 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29929 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29930 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29931 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29932 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29933 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29935 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29936 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29937 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29940 ## ------------------------------------------ ##
29941 ## Report this to the AC_PACKAGE_NAME lists. ##
29942 ## ------------------------------------------ ##
29945 sed "s/^/$as_me: WARNING: /" >&2
29948 echo "$as_me:$LINENO: checking for $ac_header" >&5
29949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29950 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29951 echo $ECHO_N "(cached) $ECHO_C" >&6
29953 eval "$as_ac_Header=\$ac_header_preproc"
29955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29956 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29959 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29960 cat >>confdefs.h <<_ACEOF
29961 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29969 if test $ac_cv_header_pthread_h = yes ; then
29970 echo "$as_me:$LINENO: checking POSIX thread version" >&5
29971 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
29972 if test "${ol_cv_pthread_version+set}" = set; then
29973 echo $ECHO_N "(cached) $ECHO_C" >&6
29976 cat >conftest.$ac_ext <<_ACEOF
29979 cat confdefs.h >>conftest.$ac_ext
29980 cat >>conftest.$ac_ext <<_ACEOF
29981 /* end confdefs.h. */
29983 # include <pthread.h>
29989 int i = PTHREAD_CREATE_JOINABLE;
29995 rm -f conftest.$ac_objext
29996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29997 (eval $ac_compile) 2>conftest.er1
29999 grep -v '^ *+' conftest.er1 >conftest.err
30001 cat conftest.err >&5
30002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30003 (exit $ac_status); } &&
30004 { ac_try='test -z "$ac_c_werror_flag"
30005 || test ! -s conftest.err'
30006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30007 (eval $ac_try) 2>&5
30009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30010 (exit $ac_status); }; } &&
30011 { ac_try='test -s conftest.$ac_objext'
30012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30013 (eval $ac_try) 2>&5
30015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30016 (exit $ac_status); }; }; then
30018 cat >conftest.$ac_ext <<_ACEOF
30021 cat confdefs.h >>conftest.$ac_ext
30022 cat >>conftest.$ac_ext <<_ACEOF
30023 /* end confdefs.h. */
30024 #include <pthread.h>
30027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30028 $EGREP "pthread_detach" >/dev/null 2>&1; then
30029 ol_cv_pthread_version=10
30031 ol_cv_pthread_version=8
30036 echo "$as_me: failed program was:" >&5
30037 sed 's/^/| /' conftest.$ac_ext >&5
30040 cat >conftest.$ac_ext <<_ACEOF
30043 cat confdefs.h >>conftest.$ac_ext
30044 cat >>conftest.$ac_ext <<_ACEOF
30045 /* end confdefs.h. */
30047 # include <pthread.h>
30048 # ifdef PTHREAD_CREATE_UNDETACHED
30053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30054 $EGREP "draft7" >/dev/null 2>&1; then
30055 ol_cv_pthread_version=7
30058 cat >conftest.$ac_ext <<_ACEOF
30061 cat confdefs.h >>conftest.$ac_ext
30062 cat >>conftest.$ac_ext <<_ACEOF
30063 /* end confdefs.h. */
30064 #include <pthread.h>
30067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30068 $EGREP "pthread_attr_init" >/dev/null 2>&1; then
30069 ol_cv_pthread_version=6
30072 cat >conftest.$ac_ext <<_ACEOF
30075 cat confdefs.h >>conftest.$ac_ext
30076 cat >>conftest.$ac_ext <<_ACEOF
30077 /* end confdefs.h. */
30079 # include <pthread.h>
30080 #ifdef PTHREAD_MUTEX_INITIALIZER
30085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30086 $EGREP "draft5" >/dev/null 2>&1; then
30087 ol_cv_pthread_version=5
30089 ol_cv_pthread_version=4
30100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30103 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
30104 echo "${ECHO_T}$ol_cv_pthread_version" >&6
30107 if test $ol_cv_pthread_version != 0 ; then
30109 cat >>confdefs.h <<_ACEOF
30110 #define HAVE_PTHREADS $ol_cv_pthread_version
30114 { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
30115 echo "$as_me: error: unknown pthread version" >&2;}
30116 { (exit 1); exit 1; }; }
30119 # consider threads found
30120 ol_with_threads=found
30123 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
30124 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
30125 if test "${ol_cv_header_linux_threads+set}" = set; then
30126 echo $ECHO_N "(cached) $ECHO_C" >&6
30128 cat >conftest.$ac_ext <<_ACEOF
30131 cat confdefs.h >>conftest.$ac_ext
30132 cat >>conftest.$ac_ext <<_ACEOF
30133 /* end confdefs.h. */
30134 #include <pthread.h>
30136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30137 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
30138 ol_cv_header_linux_threads=yes
30140 ol_cv_header_linux_threads=no
30146 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
30147 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
30148 if test $ol_cv_header_linux_threads = yes; then
30150 cat >>confdefs.h <<\_ACEOF
30151 #define HAVE_LINUX_THREADS 1
30157 echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
30158 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
30159 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
30160 echo $ECHO_N "(cached) $ECHO_C" >&6
30162 cat >conftest.$ac_ext <<_ACEOF
30165 cat confdefs.h >>conftest.$ac_ext
30166 cat >>conftest.$ac_ext <<_ACEOF
30167 /* end confdefs.h. */
30168 #include <pthread.h>
30169 #ifdef _POSIX_THREAD_IS_GNU_PTH
30174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30175 $EGREP "__gnu_pth__" >/dev/null 2>&1; then
30176 ol_cv_header_gnu_pth_pthread_h=yes
30178 ol_cv_header_gnu_pth_pthread_h=no
30184 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
30185 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
30188 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
30190 for ac_header in sched.h
30192 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30194 echo "$as_me:$LINENO: checking for $ac_header" >&5
30195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30196 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30197 echo $ECHO_N "(cached) $ECHO_C" >&6
30199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30200 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30202 # Is the header compilable?
30203 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30204 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30205 cat >conftest.$ac_ext <<_ACEOF
30208 cat confdefs.h >>conftest.$ac_ext
30209 cat >>conftest.$ac_ext <<_ACEOF
30210 /* end confdefs.h. */
30211 $ac_includes_default
30212 #include <$ac_header>
30214 rm -f conftest.$ac_objext
30215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30216 (eval $ac_compile) 2>conftest.er1
30218 grep -v '^ *+' conftest.er1 >conftest.err
30220 cat conftest.err >&5
30221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30222 (exit $ac_status); } &&
30223 { ac_try='test -z "$ac_c_werror_flag"
30224 || test ! -s conftest.err'
30225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30226 (eval $ac_try) 2>&5
30228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30229 (exit $ac_status); }; } &&
30230 { ac_try='test -s conftest.$ac_objext'
30231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30232 (eval $ac_try) 2>&5
30234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30235 (exit $ac_status); }; }; then
30236 ac_header_compiler=yes
30238 echo "$as_me: failed program was:" >&5
30239 sed 's/^/| /' conftest.$ac_ext >&5
30241 ac_header_compiler=no
30243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30244 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30245 echo "${ECHO_T}$ac_header_compiler" >&6
30247 # Is the header present?
30248 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30249 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30250 cat >conftest.$ac_ext <<_ACEOF
30253 cat confdefs.h >>conftest.$ac_ext
30254 cat >>conftest.$ac_ext <<_ACEOF
30255 /* end confdefs.h. */
30256 #include <$ac_header>
30258 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30259 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30261 grep -v '^ *+' conftest.er1 >conftest.err
30263 cat conftest.err >&5
30264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30265 (exit $ac_status); } >/dev/null; then
30266 if test -s conftest.err; then
30267 ac_cpp_err=$ac_c_preproc_warn_flag
30268 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30275 if test -z "$ac_cpp_err"; then
30276 ac_header_preproc=yes
30278 echo "$as_me: failed program was:" >&5
30279 sed 's/^/| /' conftest.$ac_ext >&5
30281 ac_header_preproc=no
30283 rm -f conftest.err conftest.$ac_ext
30284 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30285 echo "${ECHO_T}$ac_header_preproc" >&6
30287 # So? What about this header?
30288 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30290 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30291 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30293 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30294 ac_header_preproc=yes
30297 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30298 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30299 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30300 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30301 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30302 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30303 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30304 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30306 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30307 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30308 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30311 ## ------------------------------------------ ##
30312 ## Report this to the AC_PACKAGE_NAME lists. ##
30313 ## ------------------------------------------ ##
30316 sed "s/^/$as_me: WARNING: /" >&2
30319 echo "$as_me:$LINENO: checking for $ac_header" >&5
30320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30322 echo $ECHO_N "(cached) $ECHO_C" >&6
30324 eval "$as_ac_Header=\$ac_header_preproc"
30326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30327 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30330 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30331 cat >>confdefs.h <<_ACEOF
30332 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30342 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
30343 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
30344 if test "${ol_cv_pthread_create+set}" = set; then
30345 echo $ECHO_N "(cached) $ECHO_C" >&6
30348 if test "$cross_compiling" = yes; then
30349 cat >conftest.$ac_ext <<_ACEOF
30352 cat confdefs.h >>conftest.$ac_ext
30353 cat >>conftest.$ac_ext <<_ACEOF
30354 /* end confdefs.h. */
30355 /* pthread test headers */
30356 #include <pthread.h>
30357 #if HAVE_PTHREADS < 7
30361 #define NULL (void*)0
30364 static void *task(p)
30367 return (void *) (p == NULL);
30374 /* pthread test function */
30375 #ifndef PTHREAD_CREATE_DETACHED
30376 #define PTHREAD_CREATE_DETACHED 1
30380 int detach = PTHREAD_CREATE_DETACHED;
30382 #if HAVE_PTHREADS > 4
30383 /* Final pthreads */
30384 pthread_attr_t attr;
30386 status = pthread_attr_init(&attr);
30387 if( status ) return status;
30389 #if HAVE_PTHREADS < 7
30390 status = pthread_attr_setdetachstate(&attr, &detach);
30391 if( status < 0 ) status = errno;
30393 status = pthread_attr_setdetachstate(&attr, detach);
30395 if( status ) return status;
30396 status = pthread_create( &t, &attr, task, NULL );
30397 #if HAVE_PTHREADS < 7
30398 if( status < 0 ) status = errno;
30400 if( status ) return status;
30402 /* Draft 4 pthreads */
30403 status = pthread_create( &t, pthread_attr_default, task, NULL );
30404 if( status ) return errno;
30406 /* give thread a chance to complete */
30407 /* it should remain joinable and hence detachable */
30410 status = pthread_detach( &t );
30411 if( status ) return errno;
30414 #ifdef HAVE_LINUX_THREADS
30415 pthread_kill_other_threads_np();
30424 rm -f conftest.$ac_objext conftest$ac_exeext
30425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30426 (eval $ac_link) 2>conftest.er1
30428 grep -v '^ *+' conftest.er1 >conftest.err
30430 cat conftest.err >&5
30431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30432 (exit $ac_status); } &&
30433 { ac_try='test -z "$ac_c_werror_flag"
30434 || test ! -s conftest.err'
30435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30436 (eval $ac_try) 2>&5
30438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30439 (exit $ac_status); }; } &&
30440 { ac_try='test -s conftest$ac_exeext'
30441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30442 (eval $ac_try) 2>&5
30444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30445 (exit $ac_status); }; }; then
30446 ol_cv_pthread_create=yes
30448 echo "$as_me: failed program was:" >&5
30449 sed 's/^/| /' conftest.$ac_ext >&5
30451 ol_cv_pthread_create=no
30453 rm -f conftest.err conftest.$ac_objext \
30454 conftest$ac_exeext conftest.$ac_ext
30456 cat >conftest.$ac_ext <<_ACEOF
30459 cat confdefs.h >>conftest.$ac_ext
30460 cat >>conftest.$ac_ext <<_ACEOF
30461 /* end confdefs.h. */
30462 /* pthread test headers */
30463 #include <pthread.h>
30464 #if HAVE_PTHREADS < 7
30468 #define NULL (void*)0
30471 static void *task(p)
30474 return (void *) (p == NULL);
30478 int main(argc, argv)
30483 /* pthread test function */
30484 #ifndef PTHREAD_CREATE_DETACHED
30485 #define PTHREAD_CREATE_DETACHED 1
30489 int detach = PTHREAD_CREATE_DETACHED;
30491 #if HAVE_PTHREADS > 4
30492 /* Final pthreads */
30493 pthread_attr_t attr;
30495 status = pthread_attr_init(&attr);
30496 if( status ) return status;
30498 #if HAVE_PTHREADS < 7
30499 status = pthread_attr_setdetachstate(&attr, &detach);
30500 if( status < 0 ) status = errno;
30502 status = pthread_attr_setdetachstate(&attr, detach);
30504 if( status ) return status;
30505 status = pthread_create( &t, &attr, task, NULL );
30506 #if HAVE_PTHREADS < 7
30507 if( status < 0 ) status = errno;
30509 if( status ) return status;
30511 /* Draft 4 pthreads */
30512 status = pthread_create( &t, pthread_attr_default, task, NULL );
30513 if( status ) return errno;
30515 /* give thread a chance to complete */
30516 /* it should remain joinable and hence detachable */
30519 status = pthread_detach( &t );
30520 if( status ) return errno;
30523 #ifdef HAVE_LINUX_THREADS
30524 pthread_kill_other_threads_np();
30532 rm -f conftest$ac_exeext
30533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30534 (eval $ac_link) 2>&5
30536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30537 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30539 (eval $ac_try) 2>&5
30541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30542 (exit $ac_status); }; }; then
30543 ol_cv_pthread_create=yes
30545 echo "$as_me: program exited with status $ac_status" >&5
30546 echo "$as_me: failed program was:" >&5
30547 sed 's/^/| /' conftest.$ac_ext >&5
30549 ( exit $ac_status )
30550 ol_cv_pthread_create=no
30552 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30555 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
30556 echo "${ECHO_T}$ol_cv_pthread_create" >&6
30558 if test $ol_cv_pthread_create != no ; then
30559 ol_link_threads=posix
30560 ol_link_pthreads=""
30563 # Pthread try link: -kthread (ol_cv_pthread_kthread)
30564 if test "$ol_link_threads" = no ; then
30566 echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
30567 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
30568 if test "${ol_cv_pthread_kthread+set}" = set; then
30569 echo $ECHO_N "(cached) $ECHO_C" >&6
30574 LIBS="-kthread $LIBS"
30576 if test "$cross_compiling" = yes; then
30577 cat >conftest.$ac_ext <<_ACEOF
30580 cat confdefs.h >>conftest.$ac_ext
30581 cat >>conftest.$ac_ext <<_ACEOF
30582 /* end confdefs.h. */
30583 /* pthread test headers */
30584 #include <pthread.h>
30585 #if HAVE_PTHREADS < 7
30589 #define NULL (void*)0
30592 static void *task(p)
30595 return (void *) (p == NULL);
30602 /* pthread test function */
30603 #ifndef PTHREAD_CREATE_DETACHED
30604 #define PTHREAD_CREATE_DETACHED 1
30608 int detach = PTHREAD_CREATE_DETACHED;
30610 #if HAVE_PTHREADS > 4
30611 /* Final pthreads */
30612 pthread_attr_t attr;
30614 status = pthread_attr_init(&attr);
30615 if( status ) return status;
30617 #if HAVE_PTHREADS < 7
30618 status = pthread_attr_setdetachstate(&attr, &detach);
30619 if( status < 0 ) status = errno;
30621 status = pthread_attr_setdetachstate(&attr, detach);
30623 if( status ) return status;
30624 status = pthread_create( &t, &attr, task, NULL );
30625 #if HAVE_PTHREADS < 7
30626 if( status < 0 ) status = errno;
30628 if( status ) return status;
30630 /* Draft 4 pthreads */
30631 status = pthread_create( &t, pthread_attr_default, task, NULL );
30632 if( status ) return errno;
30634 /* give thread a chance to complete */
30635 /* it should remain joinable and hence detachable */
30638 status = pthread_detach( &t );
30639 if( status ) return errno;
30642 #ifdef HAVE_LINUX_THREADS
30643 pthread_kill_other_threads_np();
30652 rm -f conftest.$ac_objext conftest$ac_exeext
30653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30654 (eval $ac_link) 2>conftest.er1
30656 grep -v '^ *+' conftest.er1 >conftest.err
30658 cat conftest.err >&5
30659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30660 (exit $ac_status); } &&
30661 { ac_try='test -z "$ac_c_werror_flag"
30662 || test ! -s conftest.err'
30663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30664 (eval $ac_try) 2>&5
30666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30667 (exit $ac_status); }; } &&
30668 { ac_try='test -s conftest$ac_exeext'
30669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30670 (eval $ac_try) 2>&5
30672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30673 (exit $ac_status); }; }; then
30674 ol_cv_pthread_kthread=yes
30676 echo "$as_me: failed program was:" >&5
30677 sed 's/^/| /' conftest.$ac_ext >&5
30679 ol_cv_pthread_kthread=no
30681 rm -f conftest.err conftest.$ac_objext \
30682 conftest$ac_exeext conftest.$ac_ext
30684 cat >conftest.$ac_ext <<_ACEOF
30687 cat confdefs.h >>conftest.$ac_ext
30688 cat >>conftest.$ac_ext <<_ACEOF
30689 /* end confdefs.h. */
30690 /* pthread test headers */
30691 #include <pthread.h>
30692 #if HAVE_PTHREADS < 7
30696 #define NULL (void*)0
30699 static void *task(p)
30702 return (void *) (p == NULL);
30706 int main(argc, argv)
30711 /* pthread test function */
30712 #ifndef PTHREAD_CREATE_DETACHED
30713 #define PTHREAD_CREATE_DETACHED 1
30717 int detach = PTHREAD_CREATE_DETACHED;
30719 #if HAVE_PTHREADS > 4
30720 /* Final pthreads */
30721 pthread_attr_t attr;
30723 status = pthread_attr_init(&attr);
30724 if( status ) return status;
30726 #if HAVE_PTHREADS < 7
30727 status = pthread_attr_setdetachstate(&attr, &detach);
30728 if( status < 0 ) status = errno;
30730 status = pthread_attr_setdetachstate(&attr, detach);
30732 if( status ) return status;
30733 status = pthread_create( &t, &attr, task, NULL );
30734 #if HAVE_PTHREADS < 7
30735 if( status < 0 ) status = errno;
30737 if( status ) return status;
30739 /* Draft 4 pthreads */
30740 status = pthread_create( &t, pthread_attr_default, task, NULL );
30741 if( status ) return errno;
30743 /* give thread a chance to complete */
30744 /* it should remain joinable and hence detachable */
30747 status = pthread_detach( &t );
30748 if( status ) return errno;
30751 #ifdef HAVE_LINUX_THREADS
30752 pthread_kill_other_threads_np();
30760 rm -f conftest$ac_exeext
30761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30762 (eval $ac_link) 2>&5
30764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30765 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30767 (eval $ac_try) 2>&5
30769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30770 (exit $ac_status); }; }; then
30771 ol_cv_pthread_kthread=yes
30773 echo "$as_me: program exited with status $ac_status" >&5
30774 echo "$as_me: failed program was:" >&5
30775 sed 's/^/| /' conftest.$ac_ext >&5
30777 ( exit $ac_status )
30778 ol_cv_pthread_kthread=no
30780 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30787 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
30788 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
30790 if test $ol_cv_pthread_kthread = yes ; then
30791 ol_link_pthreads="-kthread"
30792 ol_link_threads=posix
30796 # Pthread try link: -pthread (ol_cv_pthread_pthread)
30797 if test "$ol_link_threads" = no ; then
30799 echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
30800 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
30801 if test "${ol_cv_pthread_pthread+set}" = set; then
30802 echo $ECHO_N "(cached) $ECHO_C" >&6
30807 LIBS="-pthread $LIBS"
30809 if test "$cross_compiling" = yes; then
30810 cat >conftest.$ac_ext <<_ACEOF
30813 cat confdefs.h >>conftest.$ac_ext
30814 cat >>conftest.$ac_ext <<_ACEOF
30815 /* end confdefs.h. */
30816 /* pthread test headers */
30817 #include <pthread.h>
30818 #if HAVE_PTHREADS < 7
30822 #define NULL (void*)0
30825 static void *task(p)
30828 return (void *) (p == NULL);
30835 /* pthread test function */
30836 #ifndef PTHREAD_CREATE_DETACHED
30837 #define PTHREAD_CREATE_DETACHED 1
30841 int detach = PTHREAD_CREATE_DETACHED;
30843 #if HAVE_PTHREADS > 4
30844 /* Final pthreads */
30845 pthread_attr_t attr;
30847 status = pthread_attr_init(&attr);
30848 if( status ) return status;
30850 #if HAVE_PTHREADS < 7
30851 status = pthread_attr_setdetachstate(&attr, &detach);
30852 if( status < 0 ) status = errno;
30854 status = pthread_attr_setdetachstate(&attr, detach);
30856 if( status ) return status;
30857 status = pthread_create( &t, &attr, task, NULL );
30858 #if HAVE_PTHREADS < 7
30859 if( status < 0 ) status = errno;
30861 if( status ) return status;
30863 /* Draft 4 pthreads */
30864 status = pthread_create( &t, pthread_attr_default, task, NULL );
30865 if( status ) return errno;
30867 /* give thread a chance to complete */
30868 /* it should remain joinable and hence detachable */
30871 status = pthread_detach( &t );
30872 if( status ) return errno;
30875 #ifdef HAVE_LINUX_THREADS
30876 pthread_kill_other_threads_np();
30885 rm -f conftest.$ac_objext conftest$ac_exeext
30886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30887 (eval $ac_link) 2>conftest.er1
30889 grep -v '^ *+' conftest.er1 >conftest.err
30891 cat conftest.err >&5
30892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30893 (exit $ac_status); } &&
30894 { ac_try='test -z "$ac_c_werror_flag"
30895 || test ! -s conftest.err'
30896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30897 (eval $ac_try) 2>&5
30899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30900 (exit $ac_status); }; } &&
30901 { ac_try='test -s conftest$ac_exeext'
30902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30903 (eval $ac_try) 2>&5
30905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30906 (exit $ac_status); }; }; then
30907 ol_cv_pthread_pthread=yes
30909 echo "$as_me: failed program was:" >&5
30910 sed 's/^/| /' conftest.$ac_ext >&5
30912 ol_cv_pthread_pthread=no
30914 rm -f conftest.err conftest.$ac_objext \
30915 conftest$ac_exeext conftest.$ac_ext
30917 cat >conftest.$ac_ext <<_ACEOF
30920 cat confdefs.h >>conftest.$ac_ext
30921 cat >>conftest.$ac_ext <<_ACEOF
30922 /* end confdefs.h. */
30923 /* pthread test headers */
30924 #include <pthread.h>
30925 #if HAVE_PTHREADS < 7
30929 #define NULL (void*)0
30932 static void *task(p)
30935 return (void *) (p == NULL);
30939 int main(argc, argv)
30944 /* pthread test function */
30945 #ifndef PTHREAD_CREATE_DETACHED
30946 #define PTHREAD_CREATE_DETACHED 1
30950 int detach = PTHREAD_CREATE_DETACHED;
30952 #if HAVE_PTHREADS > 4
30953 /* Final pthreads */
30954 pthread_attr_t attr;
30956 status = pthread_attr_init(&attr);
30957 if( status ) return status;
30959 #if HAVE_PTHREADS < 7
30960 status = pthread_attr_setdetachstate(&attr, &detach);
30961 if( status < 0 ) status = errno;
30963 status = pthread_attr_setdetachstate(&attr, detach);
30965 if( status ) return status;
30966 status = pthread_create( &t, &attr, task, NULL );
30967 #if HAVE_PTHREADS < 7
30968 if( status < 0 ) status = errno;
30970 if( status ) return status;
30972 /* Draft 4 pthreads */
30973 status = pthread_create( &t, pthread_attr_default, task, NULL );
30974 if( status ) return errno;
30976 /* give thread a chance to complete */
30977 /* it should remain joinable and hence detachable */
30980 status = pthread_detach( &t );
30981 if( status ) return errno;
30984 #ifdef HAVE_LINUX_THREADS
30985 pthread_kill_other_threads_np();
30993 rm -f conftest$ac_exeext
30994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30995 (eval $ac_link) 2>&5
30997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30998 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31000 (eval $ac_try) 2>&5
31002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31003 (exit $ac_status); }; }; then
31004 ol_cv_pthread_pthread=yes
31006 echo "$as_me: program exited with status $ac_status" >&5
31007 echo "$as_me: failed program was:" >&5
31008 sed 's/^/| /' conftest.$ac_ext >&5
31010 ( exit $ac_status )
31011 ol_cv_pthread_pthread=no
31013 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31020 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
31021 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
31023 if test $ol_cv_pthread_pthread = yes ; then
31024 ol_link_pthreads="-pthread"
31025 ol_link_threads=posix
31029 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
31030 if test "$ol_link_threads" = no ; then
31032 echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
31033 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
31034 if test "${ol_cv_pthread_pthreads+set}" = set; then
31035 echo $ECHO_N "(cached) $ECHO_C" >&6
31040 LIBS="-pthreads $LIBS"
31042 if test "$cross_compiling" = yes; then
31043 cat >conftest.$ac_ext <<_ACEOF
31046 cat confdefs.h >>conftest.$ac_ext
31047 cat >>conftest.$ac_ext <<_ACEOF
31048 /* end confdefs.h. */
31049 /* pthread test headers */
31050 #include <pthread.h>
31051 #if HAVE_PTHREADS < 7
31055 #define NULL (void*)0
31058 static void *task(p)
31061 return (void *) (p == NULL);
31068 /* pthread test function */
31069 #ifndef PTHREAD_CREATE_DETACHED
31070 #define PTHREAD_CREATE_DETACHED 1
31074 int detach = PTHREAD_CREATE_DETACHED;
31076 #if HAVE_PTHREADS > 4
31077 /* Final pthreads */
31078 pthread_attr_t attr;
31080 status = pthread_attr_init(&attr);
31081 if( status ) return status;
31083 #if HAVE_PTHREADS < 7
31084 status = pthread_attr_setdetachstate(&attr, &detach);
31085 if( status < 0 ) status = errno;
31087 status = pthread_attr_setdetachstate(&attr, detach);
31089 if( status ) return status;
31090 status = pthread_create( &t, &attr, task, NULL );
31091 #if HAVE_PTHREADS < 7
31092 if( status < 0 ) status = errno;
31094 if( status ) return status;
31096 /* Draft 4 pthreads */
31097 status = pthread_create( &t, pthread_attr_default, task, NULL );
31098 if( status ) return errno;
31100 /* give thread a chance to complete */
31101 /* it should remain joinable and hence detachable */
31104 status = pthread_detach( &t );
31105 if( status ) return errno;
31108 #ifdef HAVE_LINUX_THREADS
31109 pthread_kill_other_threads_np();
31118 rm -f conftest.$ac_objext conftest$ac_exeext
31119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31120 (eval $ac_link) 2>conftest.er1
31122 grep -v '^ *+' conftest.er1 >conftest.err
31124 cat conftest.err >&5
31125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31126 (exit $ac_status); } &&
31127 { ac_try='test -z "$ac_c_werror_flag"
31128 || test ! -s conftest.err'
31129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31130 (eval $ac_try) 2>&5
31132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31133 (exit $ac_status); }; } &&
31134 { ac_try='test -s conftest$ac_exeext'
31135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31136 (eval $ac_try) 2>&5
31138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31139 (exit $ac_status); }; }; then
31140 ol_cv_pthread_pthreads=yes
31142 echo "$as_me: failed program was:" >&5
31143 sed 's/^/| /' conftest.$ac_ext >&5
31145 ol_cv_pthread_pthreads=no
31147 rm -f conftest.err conftest.$ac_objext \
31148 conftest$ac_exeext conftest.$ac_ext
31150 cat >conftest.$ac_ext <<_ACEOF
31153 cat confdefs.h >>conftest.$ac_ext
31154 cat >>conftest.$ac_ext <<_ACEOF
31155 /* end confdefs.h. */
31156 /* pthread test headers */
31157 #include <pthread.h>
31158 #if HAVE_PTHREADS < 7
31162 #define NULL (void*)0
31165 static void *task(p)
31168 return (void *) (p == NULL);
31172 int main(argc, argv)
31177 /* pthread test function */
31178 #ifndef PTHREAD_CREATE_DETACHED
31179 #define PTHREAD_CREATE_DETACHED 1
31183 int detach = PTHREAD_CREATE_DETACHED;
31185 #if HAVE_PTHREADS > 4
31186 /* Final pthreads */
31187 pthread_attr_t attr;
31189 status = pthread_attr_init(&attr);
31190 if( status ) return status;
31192 #if HAVE_PTHREADS < 7
31193 status = pthread_attr_setdetachstate(&attr, &detach);
31194 if( status < 0 ) status = errno;
31196 status = pthread_attr_setdetachstate(&attr, detach);
31198 if( status ) return status;
31199 status = pthread_create( &t, &attr, task, NULL );
31200 #if HAVE_PTHREADS < 7
31201 if( status < 0 ) status = errno;
31203 if( status ) return status;
31205 /* Draft 4 pthreads */
31206 status = pthread_create( &t, pthread_attr_default, task, NULL );
31207 if( status ) return errno;
31209 /* give thread a chance to complete */
31210 /* it should remain joinable and hence detachable */
31213 status = pthread_detach( &t );
31214 if( status ) return errno;
31217 #ifdef HAVE_LINUX_THREADS
31218 pthread_kill_other_threads_np();
31226 rm -f conftest$ac_exeext
31227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31228 (eval $ac_link) 2>&5
31230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31231 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31233 (eval $ac_try) 2>&5
31235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31236 (exit $ac_status); }; }; then
31237 ol_cv_pthread_pthreads=yes
31239 echo "$as_me: program exited with status $ac_status" >&5
31240 echo "$as_me: failed program was:" >&5
31241 sed 's/^/| /' conftest.$ac_ext >&5
31243 ( exit $ac_status )
31244 ol_cv_pthread_pthreads=no
31246 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31253 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
31254 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
31256 if test $ol_cv_pthread_pthreads = yes ; then
31257 ol_link_pthreads="-pthreads"
31258 ol_link_threads=posix
31262 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
31263 if test "$ol_link_threads" = no ; then
31265 echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
31266 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
31267 if test "${ol_cv_pthread_mthreads+set}" = set; then
31268 echo $ECHO_N "(cached) $ECHO_C" >&6
31273 LIBS="-mthreads $LIBS"
31275 if test "$cross_compiling" = yes; then
31276 cat >conftest.$ac_ext <<_ACEOF
31279 cat confdefs.h >>conftest.$ac_ext
31280 cat >>conftest.$ac_ext <<_ACEOF
31281 /* end confdefs.h. */
31282 /* pthread test headers */
31283 #include <pthread.h>
31284 #if HAVE_PTHREADS < 7
31288 #define NULL (void*)0
31291 static void *task(p)
31294 return (void *) (p == NULL);
31301 /* pthread test function */
31302 #ifndef PTHREAD_CREATE_DETACHED
31303 #define PTHREAD_CREATE_DETACHED 1
31307 int detach = PTHREAD_CREATE_DETACHED;
31309 #if HAVE_PTHREADS > 4
31310 /* Final pthreads */
31311 pthread_attr_t attr;
31313 status = pthread_attr_init(&attr);
31314 if( status ) return status;
31316 #if HAVE_PTHREADS < 7
31317 status = pthread_attr_setdetachstate(&attr, &detach);
31318 if( status < 0 ) status = errno;
31320 status = pthread_attr_setdetachstate(&attr, detach);
31322 if( status ) return status;
31323 status = pthread_create( &t, &attr, task, NULL );
31324 #if HAVE_PTHREADS < 7
31325 if( status < 0 ) status = errno;
31327 if( status ) return status;
31329 /* Draft 4 pthreads */
31330 status = pthread_create( &t, pthread_attr_default, task, NULL );
31331 if( status ) return errno;
31333 /* give thread a chance to complete */
31334 /* it should remain joinable and hence detachable */
31337 status = pthread_detach( &t );
31338 if( status ) return errno;
31341 #ifdef HAVE_LINUX_THREADS
31342 pthread_kill_other_threads_np();
31351 rm -f conftest.$ac_objext conftest$ac_exeext
31352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31353 (eval $ac_link) 2>conftest.er1
31355 grep -v '^ *+' conftest.er1 >conftest.err
31357 cat conftest.err >&5
31358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31359 (exit $ac_status); } &&
31360 { ac_try='test -z "$ac_c_werror_flag"
31361 || test ! -s conftest.err'
31362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31363 (eval $ac_try) 2>&5
31365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31366 (exit $ac_status); }; } &&
31367 { ac_try='test -s conftest$ac_exeext'
31368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31369 (eval $ac_try) 2>&5
31371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31372 (exit $ac_status); }; }; then
31373 ol_cv_pthread_mthreads=yes
31375 echo "$as_me: failed program was:" >&5
31376 sed 's/^/| /' conftest.$ac_ext >&5
31378 ol_cv_pthread_mthreads=no
31380 rm -f conftest.err conftest.$ac_objext \
31381 conftest$ac_exeext conftest.$ac_ext
31383 cat >conftest.$ac_ext <<_ACEOF
31386 cat confdefs.h >>conftest.$ac_ext
31387 cat >>conftest.$ac_ext <<_ACEOF
31388 /* end confdefs.h. */
31389 /* pthread test headers */
31390 #include <pthread.h>
31391 #if HAVE_PTHREADS < 7
31395 #define NULL (void*)0
31398 static void *task(p)
31401 return (void *) (p == NULL);
31405 int main(argc, argv)
31410 /* pthread test function */
31411 #ifndef PTHREAD_CREATE_DETACHED
31412 #define PTHREAD_CREATE_DETACHED 1
31416 int detach = PTHREAD_CREATE_DETACHED;
31418 #if HAVE_PTHREADS > 4
31419 /* Final pthreads */
31420 pthread_attr_t attr;
31422 status = pthread_attr_init(&attr);
31423 if( status ) return status;
31425 #if HAVE_PTHREADS < 7
31426 status = pthread_attr_setdetachstate(&attr, &detach);
31427 if( status < 0 ) status = errno;
31429 status = pthread_attr_setdetachstate(&attr, detach);
31431 if( status ) return status;
31432 status = pthread_create( &t, &attr, task, NULL );
31433 #if HAVE_PTHREADS < 7
31434 if( status < 0 ) status = errno;
31436 if( status ) return status;
31438 /* Draft 4 pthreads */
31439 status = pthread_create( &t, pthread_attr_default, task, NULL );
31440 if( status ) return errno;
31442 /* give thread a chance to complete */
31443 /* it should remain joinable and hence detachable */
31446 status = pthread_detach( &t );
31447 if( status ) return errno;
31450 #ifdef HAVE_LINUX_THREADS
31451 pthread_kill_other_threads_np();
31459 rm -f conftest$ac_exeext
31460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31461 (eval $ac_link) 2>&5
31463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31464 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31466 (eval $ac_try) 2>&5
31468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31469 (exit $ac_status); }; }; then
31470 ol_cv_pthread_mthreads=yes
31472 echo "$as_me: program exited with status $ac_status" >&5
31473 echo "$as_me: failed program was:" >&5
31474 sed 's/^/| /' conftest.$ac_ext >&5
31476 ( exit $ac_status )
31477 ol_cv_pthread_mthreads=no
31479 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31486 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
31487 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
31489 if test $ol_cv_pthread_mthreads = yes ; then
31490 ol_link_pthreads="-mthreads"
31491 ol_link_threads=posix
31495 # Pthread try link: -thread (ol_cv_pthread_thread)
31496 if test "$ol_link_threads" = no ; then
31498 echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
31499 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
31500 if test "${ol_cv_pthread_thread+set}" = set; then
31501 echo $ECHO_N "(cached) $ECHO_C" >&6
31506 LIBS="-thread $LIBS"
31508 if test "$cross_compiling" = yes; then
31509 cat >conftest.$ac_ext <<_ACEOF
31512 cat confdefs.h >>conftest.$ac_ext
31513 cat >>conftest.$ac_ext <<_ACEOF
31514 /* end confdefs.h. */
31515 /* pthread test headers */
31516 #include <pthread.h>
31517 #if HAVE_PTHREADS < 7
31521 #define NULL (void*)0
31524 static void *task(p)
31527 return (void *) (p == NULL);
31534 /* pthread test function */
31535 #ifndef PTHREAD_CREATE_DETACHED
31536 #define PTHREAD_CREATE_DETACHED 1
31540 int detach = PTHREAD_CREATE_DETACHED;
31542 #if HAVE_PTHREADS > 4
31543 /* Final pthreads */
31544 pthread_attr_t attr;
31546 status = pthread_attr_init(&attr);
31547 if( status ) return status;
31549 #if HAVE_PTHREADS < 7
31550 status = pthread_attr_setdetachstate(&attr, &detach);
31551 if( status < 0 ) status = errno;
31553 status = pthread_attr_setdetachstate(&attr, detach);
31555 if( status ) return status;
31556 status = pthread_create( &t, &attr, task, NULL );
31557 #if HAVE_PTHREADS < 7
31558 if( status < 0 ) status = errno;
31560 if( status ) return status;
31562 /* Draft 4 pthreads */
31563 status = pthread_create( &t, pthread_attr_default, task, NULL );
31564 if( status ) return errno;
31566 /* give thread a chance to complete */
31567 /* it should remain joinable and hence detachable */
31570 status = pthread_detach( &t );
31571 if( status ) return errno;
31574 #ifdef HAVE_LINUX_THREADS
31575 pthread_kill_other_threads_np();
31584 rm -f conftest.$ac_objext conftest$ac_exeext
31585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31586 (eval $ac_link) 2>conftest.er1
31588 grep -v '^ *+' conftest.er1 >conftest.err
31590 cat conftest.err >&5
31591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31592 (exit $ac_status); } &&
31593 { ac_try='test -z "$ac_c_werror_flag"
31594 || test ! -s conftest.err'
31595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31596 (eval $ac_try) 2>&5
31598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31599 (exit $ac_status); }; } &&
31600 { ac_try='test -s conftest$ac_exeext'
31601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31602 (eval $ac_try) 2>&5
31604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31605 (exit $ac_status); }; }; then
31606 ol_cv_pthread_thread=yes
31608 echo "$as_me: failed program was:" >&5
31609 sed 's/^/| /' conftest.$ac_ext >&5
31611 ol_cv_pthread_thread=no
31613 rm -f conftest.err conftest.$ac_objext \
31614 conftest$ac_exeext conftest.$ac_ext
31616 cat >conftest.$ac_ext <<_ACEOF
31619 cat confdefs.h >>conftest.$ac_ext
31620 cat >>conftest.$ac_ext <<_ACEOF
31621 /* end confdefs.h. */
31622 /* pthread test headers */
31623 #include <pthread.h>
31624 #if HAVE_PTHREADS < 7
31628 #define NULL (void*)0
31631 static void *task(p)
31634 return (void *) (p == NULL);
31638 int main(argc, argv)
31643 /* pthread test function */
31644 #ifndef PTHREAD_CREATE_DETACHED
31645 #define PTHREAD_CREATE_DETACHED 1
31649 int detach = PTHREAD_CREATE_DETACHED;
31651 #if HAVE_PTHREADS > 4
31652 /* Final pthreads */
31653 pthread_attr_t attr;
31655 status = pthread_attr_init(&attr);
31656 if( status ) return status;
31658 #if HAVE_PTHREADS < 7
31659 status = pthread_attr_setdetachstate(&attr, &detach);
31660 if( status < 0 ) status = errno;
31662 status = pthread_attr_setdetachstate(&attr, detach);
31664 if( status ) return status;
31665 status = pthread_create( &t, &attr, task, NULL );
31666 #if HAVE_PTHREADS < 7
31667 if( status < 0 ) status = errno;
31669 if( status ) return status;
31671 /* Draft 4 pthreads */
31672 status = pthread_create( &t, pthread_attr_default, task, NULL );
31673 if( status ) return errno;
31675 /* give thread a chance to complete */
31676 /* it should remain joinable and hence detachable */
31679 status = pthread_detach( &t );
31680 if( status ) return errno;
31683 #ifdef HAVE_LINUX_THREADS
31684 pthread_kill_other_threads_np();
31692 rm -f conftest$ac_exeext
31693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31694 (eval $ac_link) 2>&5
31696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31697 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31699 (eval $ac_try) 2>&5
31701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31702 (exit $ac_status); }; }; then
31703 ol_cv_pthread_thread=yes
31705 echo "$as_me: program exited with status $ac_status" >&5
31706 echo "$as_me: failed program was:" >&5
31707 sed 's/^/| /' conftest.$ac_ext >&5
31709 ( exit $ac_status )
31710 ol_cv_pthread_thread=no
31712 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31719 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
31720 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
31722 if test $ol_cv_pthread_thread = yes ; then
31723 ol_link_pthreads="-thread"
31724 ol_link_threads=posix
31729 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
31730 if test "$ol_link_threads" = no ; then
31731 # try -lpthread -lmach -lexc -lc_r
31732 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
31733 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
31734 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
31735 echo $ECHO_N "(cached) $ECHO_C" >&6
31740 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
31742 if test "$cross_compiling" = yes; then
31743 cat >conftest.$ac_ext <<_ACEOF
31746 cat confdefs.h >>conftest.$ac_ext
31747 cat >>conftest.$ac_ext <<_ACEOF
31748 /* end confdefs.h. */
31749 /* pthread test headers */
31750 #include <pthread.h>
31751 #if HAVE_PTHREADS < 7
31755 #define NULL (void*)0
31758 static void *task(p)
31761 return (void *) (p == NULL);
31768 /* pthread test function */
31769 #ifndef PTHREAD_CREATE_DETACHED
31770 #define PTHREAD_CREATE_DETACHED 1
31774 int detach = PTHREAD_CREATE_DETACHED;
31776 #if HAVE_PTHREADS > 4
31777 /* Final pthreads */
31778 pthread_attr_t attr;
31780 status = pthread_attr_init(&attr);
31781 if( status ) return status;
31783 #if HAVE_PTHREADS < 7
31784 status = pthread_attr_setdetachstate(&attr, &detach);
31785 if( status < 0 ) status = errno;
31787 status = pthread_attr_setdetachstate(&attr, detach);
31789 if( status ) return status;
31790 status = pthread_create( &t, &attr, task, NULL );
31791 #if HAVE_PTHREADS < 7
31792 if( status < 0 ) status = errno;
31794 if( status ) return status;
31796 /* Draft 4 pthreads */
31797 status = pthread_create( &t, pthread_attr_default, task, NULL );
31798 if( status ) return errno;
31800 /* give thread a chance to complete */
31801 /* it should remain joinable and hence detachable */
31804 status = pthread_detach( &t );
31805 if( status ) return errno;
31808 #ifdef HAVE_LINUX_THREADS
31809 pthread_kill_other_threads_np();
31818 rm -f conftest.$ac_objext conftest$ac_exeext
31819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31820 (eval $ac_link) 2>conftest.er1
31822 grep -v '^ *+' conftest.er1 >conftest.err
31824 cat conftest.err >&5
31825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31826 (exit $ac_status); } &&
31827 { ac_try='test -z "$ac_c_werror_flag"
31828 || test ! -s conftest.err'
31829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31830 (eval $ac_try) 2>&5
31832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31833 (exit $ac_status); }; } &&
31834 { ac_try='test -s conftest$ac_exeext'
31835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31836 (eval $ac_try) 2>&5
31838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31839 (exit $ac_status); }; }; then
31840 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
31842 echo "$as_me: failed program was:" >&5
31843 sed 's/^/| /' conftest.$ac_ext >&5
31845 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
31847 rm -f conftest.err conftest.$ac_objext \
31848 conftest$ac_exeext conftest.$ac_ext
31850 cat >conftest.$ac_ext <<_ACEOF
31853 cat confdefs.h >>conftest.$ac_ext
31854 cat >>conftest.$ac_ext <<_ACEOF
31855 /* end confdefs.h. */
31856 /* pthread test headers */
31857 #include <pthread.h>
31858 #if HAVE_PTHREADS < 7
31862 #define NULL (void*)0
31865 static void *task(p)
31868 return (void *) (p == NULL);
31872 int main(argc, argv)
31877 /* pthread test function */
31878 #ifndef PTHREAD_CREATE_DETACHED
31879 #define PTHREAD_CREATE_DETACHED 1
31883 int detach = PTHREAD_CREATE_DETACHED;
31885 #if HAVE_PTHREADS > 4
31886 /* Final pthreads */
31887 pthread_attr_t attr;
31889 status = pthread_attr_init(&attr);
31890 if( status ) return status;
31892 #if HAVE_PTHREADS < 7
31893 status = pthread_attr_setdetachstate(&attr, &detach);
31894 if( status < 0 ) status = errno;
31896 status = pthread_attr_setdetachstate(&attr, detach);
31898 if( status ) return status;
31899 status = pthread_create( &t, &attr, task, NULL );
31900 #if HAVE_PTHREADS < 7
31901 if( status < 0 ) status = errno;
31903 if( status ) return status;
31905 /* Draft 4 pthreads */
31906 status = pthread_create( &t, pthread_attr_default, task, NULL );
31907 if( status ) return errno;
31909 /* give thread a chance to complete */
31910 /* it should remain joinable and hence detachable */
31913 status = pthread_detach( &t );
31914 if( status ) return errno;
31917 #ifdef HAVE_LINUX_THREADS
31918 pthread_kill_other_threads_np();
31926 rm -f conftest$ac_exeext
31927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31928 (eval $ac_link) 2>&5
31930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31931 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31933 (eval $ac_try) 2>&5
31935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31936 (exit $ac_status); }; }; then
31937 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
31939 echo "$as_me: program exited with status $ac_status" >&5
31940 echo "$as_me: failed program was:" >&5
31941 sed 's/^/| /' conftest.$ac_ext >&5
31943 ( exit $ac_status )
31944 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
31946 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31953 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
31954 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
31956 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
31957 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
31958 ol_link_threads=posix
31962 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
31963 if test "$ol_link_threads" = no ; then
31964 # try -lpthread -lmach -lexc
31965 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
31966 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
31967 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
31968 echo $ECHO_N "(cached) $ECHO_C" >&6
31973 LIBS="-lpthread -lmach -lexc $LIBS"
31975 if test "$cross_compiling" = yes; then
31976 cat >conftest.$ac_ext <<_ACEOF
31979 cat confdefs.h >>conftest.$ac_ext
31980 cat >>conftest.$ac_ext <<_ACEOF
31981 /* end confdefs.h. */
31982 /* pthread test headers */
31983 #include <pthread.h>
31984 #if HAVE_PTHREADS < 7
31988 #define NULL (void*)0
31991 static void *task(p)
31994 return (void *) (p == NULL);
32001 /* pthread test function */
32002 #ifndef PTHREAD_CREATE_DETACHED
32003 #define PTHREAD_CREATE_DETACHED 1
32007 int detach = PTHREAD_CREATE_DETACHED;
32009 #if HAVE_PTHREADS > 4
32010 /* Final pthreads */
32011 pthread_attr_t attr;
32013 status = pthread_attr_init(&attr);
32014 if( status ) return status;
32016 #if HAVE_PTHREADS < 7
32017 status = pthread_attr_setdetachstate(&attr, &detach);
32018 if( status < 0 ) status = errno;
32020 status = pthread_attr_setdetachstate(&attr, detach);
32022 if( status ) return status;
32023 status = pthread_create( &t, &attr, task, NULL );
32024 #if HAVE_PTHREADS < 7
32025 if( status < 0 ) status = errno;
32027 if( status ) return status;
32029 /* Draft 4 pthreads */
32030 status = pthread_create( &t, pthread_attr_default, task, NULL );
32031 if( status ) return errno;
32033 /* give thread a chance to complete */
32034 /* it should remain joinable and hence detachable */
32037 status = pthread_detach( &t );
32038 if( status ) return errno;
32041 #ifdef HAVE_LINUX_THREADS
32042 pthread_kill_other_threads_np();
32051 rm -f conftest.$ac_objext conftest$ac_exeext
32052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32053 (eval $ac_link) 2>conftest.er1
32055 grep -v '^ *+' conftest.er1 >conftest.err
32057 cat conftest.err >&5
32058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32059 (exit $ac_status); } &&
32060 { ac_try='test -z "$ac_c_werror_flag"
32061 || test ! -s conftest.err'
32062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32063 (eval $ac_try) 2>&5
32065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32066 (exit $ac_status); }; } &&
32067 { ac_try='test -s conftest$ac_exeext'
32068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32069 (eval $ac_try) 2>&5
32071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32072 (exit $ac_status); }; }; then
32073 ol_cv_pthread_lpthread_lmach_lexc=yes
32075 echo "$as_me: failed program was:" >&5
32076 sed 's/^/| /' conftest.$ac_ext >&5
32078 ol_cv_pthread_lpthread_lmach_lexc=no
32080 rm -f conftest.err conftest.$ac_objext \
32081 conftest$ac_exeext conftest.$ac_ext
32083 cat >conftest.$ac_ext <<_ACEOF
32086 cat confdefs.h >>conftest.$ac_ext
32087 cat >>conftest.$ac_ext <<_ACEOF
32088 /* end confdefs.h. */
32089 /* pthread test headers */
32090 #include <pthread.h>
32091 #if HAVE_PTHREADS < 7
32095 #define NULL (void*)0
32098 static void *task(p)
32101 return (void *) (p == NULL);
32105 int main(argc, argv)
32110 /* pthread test function */
32111 #ifndef PTHREAD_CREATE_DETACHED
32112 #define PTHREAD_CREATE_DETACHED 1
32116 int detach = PTHREAD_CREATE_DETACHED;
32118 #if HAVE_PTHREADS > 4
32119 /* Final pthreads */
32120 pthread_attr_t attr;
32122 status = pthread_attr_init(&attr);
32123 if( status ) return status;
32125 #if HAVE_PTHREADS < 7
32126 status = pthread_attr_setdetachstate(&attr, &detach);
32127 if( status < 0 ) status = errno;
32129 status = pthread_attr_setdetachstate(&attr, detach);
32131 if( status ) return status;
32132 status = pthread_create( &t, &attr, task, NULL );
32133 #if HAVE_PTHREADS < 7
32134 if( status < 0 ) status = errno;
32136 if( status ) return status;
32138 /* Draft 4 pthreads */
32139 status = pthread_create( &t, pthread_attr_default, task, NULL );
32140 if( status ) return errno;
32142 /* give thread a chance to complete */
32143 /* it should remain joinable and hence detachable */
32146 status = pthread_detach( &t );
32147 if( status ) return errno;
32150 #ifdef HAVE_LINUX_THREADS
32151 pthread_kill_other_threads_np();
32159 rm -f conftest$ac_exeext
32160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32161 (eval $ac_link) 2>&5
32163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32164 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32166 (eval $ac_try) 2>&5
32168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32169 (exit $ac_status); }; }; then
32170 ol_cv_pthread_lpthread_lmach_lexc=yes
32172 echo "$as_me: program exited with status $ac_status" >&5
32173 echo "$as_me: failed program was:" >&5
32174 sed 's/^/| /' conftest.$ac_ext >&5
32176 ( exit $ac_status )
32177 ol_cv_pthread_lpthread_lmach_lexc=no
32179 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32186 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
32187 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
32189 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
32190 ol_link_pthreads="-lpthread -lmach -lexc"
32191 ol_link_threads=posix
32196 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
32197 if test "$ol_link_threads" = no ; then
32198 # try -lpthread -Wl,-woff,85
32199 echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
32200 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
32201 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
32202 echo $ECHO_N "(cached) $ECHO_C" >&6
32207 LIBS="-lpthread -Wl,-woff,85 $LIBS"
32209 if test "$cross_compiling" = yes; then
32210 cat >conftest.$ac_ext <<_ACEOF
32213 cat confdefs.h >>conftest.$ac_ext
32214 cat >>conftest.$ac_ext <<_ACEOF
32215 /* end confdefs.h. */
32216 /* pthread test headers */
32217 #include <pthread.h>
32218 #if HAVE_PTHREADS < 7
32222 #define NULL (void*)0
32225 static void *task(p)
32228 return (void *) (p == NULL);
32235 /* pthread test function */
32236 #ifndef PTHREAD_CREATE_DETACHED
32237 #define PTHREAD_CREATE_DETACHED 1
32241 int detach = PTHREAD_CREATE_DETACHED;
32243 #if HAVE_PTHREADS > 4
32244 /* Final pthreads */
32245 pthread_attr_t attr;
32247 status = pthread_attr_init(&attr);
32248 if( status ) return status;
32250 #if HAVE_PTHREADS < 7
32251 status = pthread_attr_setdetachstate(&attr, &detach);
32252 if( status < 0 ) status = errno;
32254 status = pthread_attr_setdetachstate(&attr, detach);
32256 if( status ) return status;
32257 status = pthread_create( &t, &attr, task, NULL );
32258 #if HAVE_PTHREADS < 7
32259 if( status < 0 ) status = errno;
32261 if( status ) return status;
32263 /* Draft 4 pthreads */
32264 status = pthread_create( &t, pthread_attr_default, task, NULL );
32265 if( status ) return errno;
32267 /* give thread a chance to complete */
32268 /* it should remain joinable and hence detachable */
32271 status = pthread_detach( &t );
32272 if( status ) return errno;
32275 #ifdef HAVE_LINUX_THREADS
32276 pthread_kill_other_threads_np();
32285 rm -f conftest.$ac_objext conftest$ac_exeext
32286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32287 (eval $ac_link) 2>conftest.er1
32289 grep -v '^ *+' conftest.er1 >conftest.err
32291 cat conftest.err >&5
32292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32293 (exit $ac_status); } &&
32294 { ac_try='test -z "$ac_c_werror_flag"
32295 || test ! -s conftest.err'
32296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32297 (eval $ac_try) 2>&5
32299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32300 (exit $ac_status); }; } &&
32301 { ac_try='test -s conftest$ac_exeext'
32302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32303 (eval $ac_try) 2>&5
32305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32306 (exit $ac_status); }; }; then
32307 ol_cv_pthread_lib_lpthread_woff=yes
32309 echo "$as_me: failed program was:" >&5
32310 sed 's/^/| /' conftest.$ac_ext >&5
32312 ol_cv_pthread_lib_lpthread_woff=no
32314 rm -f conftest.err conftest.$ac_objext \
32315 conftest$ac_exeext conftest.$ac_ext
32317 cat >conftest.$ac_ext <<_ACEOF
32320 cat confdefs.h >>conftest.$ac_ext
32321 cat >>conftest.$ac_ext <<_ACEOF
32322 /* end confdefs.h. */
32323 /* pthread test headers */
32324 #include <pthread.h>
32325 #if HAVE_PTHREADS < 7
32329 #define NULL (void*)0
32332 static void *task(p)
32335 return (void *) (p == NULL);
32339 int main(argc, argv)
32344 /* pthread test function */
32345 #ifndef PTHREAD_CREATE_DETACHED
32346 #define PTHREAD_CREATE_DETACHED 1
32350 int detach = PTHREAD_CREATE_DETACHED;
32352 #if HAVE_PTHREADS > 4
32353 /* Final pthreads */
32354 pthread_attr_t attr;
32356 status = pthread_attr_init(&attr);
32357 if( status ) return status;
32359 #if HAVE_PTHREADS < 7
32360 status = pthread_attr_setdetachstate(&attr, &detach);
32361 if( status < 0 ) status = errno;
32363 status = pthread_attr_setdetachstate(&attr, detach);
32365 if( status ) return status;
32366 status = pthread_create( &t, &attr, task, NULL );
32367 #if HAVE_PTHREADS < 7
32368 if( status < 0 ) status = errno;
32370 if( status ) return status;
32372 /* Draft 4 pthreads */
32373 status = pthread_create( &t, pthread_attr_default, task, NULL );
32374 if( status ) return errno;
32376 /* give thread a chance to complete */
32377 /* it should remain joinable and hence detachable */
32380 status = pthread_detach( &t );
32381 if( status ) return errno;
32384 #ifdef HAVE_LINUX_THREADS
32385 pthread_kill_other_threads_np();
32393 rm -f conftest$ac_exeext
32394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32395 (eval $ac_link) 2>&5
32397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32398 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32400 (eval $ac_try) 2>&5
32402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32403 (exit $ac_status); }; }; then
32404 ol_cv_pthread_lib_lpthread_woff=yes
32406 echo "$as_me: program exited with status $ac_status" >&5
32407 echo "$as_me: failed program was:" >&5
32408 sed 's/^/| /' conftest.$ac_ext >&5
32410 ( exit $ac_status )
32411 ol_cv_pthread_lib_lpthread_woff=no
32413 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32420 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
32421 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
32423 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
32424 ol_link_pthreads="-lpthread -Wl,-woff,85"
32425 ol_link_threads=posix
32430 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
32431 if test "$ol_link_threads" = no ; then
32433 echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
32434 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
32435 if test "${ol_cv_pthread_lpthread+set}" = set; then
32436 echo $ECHO_N "(cached) $ECHO_C" >&6
32441 LIBS="-lpthread $LIBS"
32443 if test "$cross_compiling" = yes; then
32444 cat >conftest.$ac_ext <<_ACEOF
32447 cat confdefs.h >>conftest.$ac_ext
32448 cat >>conftest.$ac_ext <<_ACEOF
32449 /* end confdefs.h. */
32450 /* pthread test headers */
32451 #include <pthread.h>
32452 #if HAVE_PTHREADS < 7
32456 #define NULL (void*)0
32459 static void *task(p)
32462 return (void *) (p == NULL);
32469 /* pthread test function */
32470 #ifndef PTHREAD_CREATE_DETACHED
32471 #define PTHREAD_CREATE_DETACHED 1
32475 int detach = PTHREAD_CREATE_DETACHED;
32477 #if HAVE_PTHREADS > 4
32478 /* Final pthreads */
32479 pthread_attr_t attr;
32481 status = pthread_attr_init(&attr);
32482 if( status ) return status;
32484 #if HAVE_PTHREADS < 7
32485 status = pthread_attr_setdetachstate(&attr, &detach);
32486 if( status < 0 ) status = errno;
32488 status = pthread_attr_setdetachstate(&attr, detach);
32490 if( status ) return status;
32491 status = pthread_create( &t, &attr, task, NULL );
32492 #if HAVE_PTHREADS < 7
32493 if( status < 0 ) status = errno;
32495 if( status ) return status;
32497 /* Draft 4 pthreads */
32498 status = pthread_create( &t, pthread_attr_default, task, NULL );
32499 if( status ) return errno;
32501 /* give thread a chance to complete */
32502 /* it should remain joinable and hence detachable */
32505 status = pthread_detach( &t );
32506 if( status ) return errno;
32509 #ifdef HAVE_LINUX_THREADS
32510 pthread_kill_other_threads_np();
32519 rm -f conftest.$ac_objext conftest$ac_exeext
32520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32521 (eval $ac_link) 2>conftest.er1
32523 grep -v '^ *+' conftest.er1 >conftest.err
32525 cat conftest.err >&5
32526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32527 (exit $ac_status); } &&
32528 { ac_try='test -z "$ac_c_werror_flag"
32529 || test ! -s conftest.err'
32530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32531 (eval $ac_try) 2>&5
32533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32534 (exit $ac_status); }; } &&
32535 { ac_try='test -s conftest$ac_exeext'
32536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32537 (eval $ac_try) 2>&5
32539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32540 (exit $ac_status); }; }; then
32541 ol_cv_pthread_lpthread=yes
32543 echo "$as_me: failed program was:" >&5
32544 sed 's/^/| /' conftest.$ac_ext >&5
32546 ol_cv_pthread_lpthread=no
32548 rm -f conftest.err conftest.$ac_objext \
32549 conftest$ac_exeext conftest.$ac_ext
32551 cat >conftest.$ac_ext <<_ACEOF
32554 cat confdefs.h >>conftest.$ac_ext
32555 cat >>conftest.$ac_ext <<_ACEOF
32556 /* end confdefs.h. */
32557 /* pthread test headers */
32558 #include <pthread.h>
32559 #if HAVE_PTHREADS < 7
32563 #define NULL (void*)0
32566 static void *task(p)
32569 return (void *) (p == NULL);
32573 int main(argc, argv)
32578 /* pthread test function */
32579 #ifndef PTHREAD_CREATE_DETACHED
32580 #define PTHREAD_CREATE_DETACHED 1
32584 int detach = PTHREAD_CREATE_DETACHED;
32586 #if HAVE_PTHREADS > 4
32587 /* Final pthreads */
32588 pthread_attr_t attr;
32590 status = pthread_attr_init(&attr);
32591 if( status ) return status;
32593 #if HAVE_PTHREADS < 7
32594 status = pthread_attr_setdetachstate(&attr, &detach);
32595 if( status < 0 ) status = errno;
32597 status = pthread_attr_setdetachstate(&attr, detach);
32599 if( status ) return status;
32600 status = pthread_create( &t, &attr, task, NULL );
32601 #if HAVE_PTHREADS < 7
32602 if( status < 0 ) status = errno;
32604 if( status ) return status;
32606 /* Draft 4 pthreads */
32607 status = pthread_create( &t, pthread_attr_default, task, NULL );
32608 if( status ) return errno;
32610 /* give thread a chance to complete */
32611 /* it should remain joinable and hence detachable */
32614 status = pthread_detach( &t );
32615 if( status ) return errno;
32618 #ifdef HAVE_LINUX_THREADS
32619 pthread_kill_other_threads_np();
32627 rm -f conftest$ac_exeext
32628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32629 (eval $ac_link) 2>&5
32631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32632 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32634 (eval $ac_try) 2>&5
32636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32637 (exit $ac_status); }; }; then
32638 ol_cv_pthread_lpthread=yes
32640 echo "$as_me: program exited with status $ac_status" >&5
32641 echo "$as_me: failed program was:" >&5
32642 sed 's/^/| /' conftest.$ac_ext >&5
32644 ( exit $ac_status )
32645 ol_cv_pthread_lpthread=no
32647 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32654 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
32655 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
32657 if test $ol_cv_pthread_lpthread = yes ; then
32658 ol_link_pthreads="-lpthread"
32659 ol_link_threads=posix
32663 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
32664 if test "$ol_link_threads" = no ; then
32666 echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
32667 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
32668 if test "${ol_cv_pthread_lc_r+set}" = set; then
32669 echo $ECHO_N "(cached) $ECHO_C" >&6
32676 if test "$cross_compiling" = yes; then
32677 cat >conftest.$ac_ext <<_ACEOF
32680 cat confdefs.h >>conftest.$ac_ext
32681 cat >>conftest.$ac_ext <<_ACEOF
32682 /* end confdefs.h. */
32683 /* pthread test headers */
32684 #include <pthread.h>
32685 #if HAVE_PTHREADS < 7
32689 #define NULL (void*)0
32692 static void *task(p)
32695 return (void *) (p == NULL);
32702 /* pthread test function */
32703 #ifndef PTHREAD_CREATE_DETACHED
32704 #define PTHREAD_CREATE_DETACHED 1
32708 int detach = PTHREAD_CREATE_DETACHED;
32710 #if HAVE_PTHREADS > 4
32711 /* Final pthreads */
32712 pthread_attr_t attr;
32714 status = pthread_attr_init(&attr);
32715 if( status ) return status;
32717 #if HAVE_PTHREADS < 7
32718 status = pthread_attr_setdetachstate(&attr, &detach);
32719 if( status < 0 ) status = errno;
32721 status = pthread_attr_setdetachstate(&attr, detach);
32723 if( status ) return status;
32724 status = pthread_create( &t, &attr, task, NULL );
32725 #if HAVE_PTHREADS < 7
32726 if( status < 0 ) status = errno;
32728 if( status ) return status;
32730 /* Draft 4 pthreads */
32731 status = pthread_create( &t, pthread_attr_default, task, NULL );
32732 if( status ) return errno;
32734 /* give thread a chance to complete */
32735 /* it should remain joinable and hence detachable */
32738 status = pthread_detach( &t );
32739 if( status ) return errno;
32742 #ifdef HAVE_LINUX_THREADS
32743 pthread_kill_other_threads_np();
32752 rm -f conftest.$ac_objext conftest$ac_exeext
32753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32754 (eval $ac_link) 2>conftest.er1
32756 grep -v '^ *+' conftest.er1 >conftest.err
32758 cat conftest.err >&5
32759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32760 (exit $ac_status); } &&
32761 { ac_try='test -z "$ac_c_werror_flag"
32762 || test ! -s conftest.err'
32763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32764 (eval $ac_try) 2>&5
32766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32767 (exit $ac_status); }; } &&
32768 { ac_try='test -s conftest$ac_exeext'
32769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32770 (eval $ac_try) 2>&5
32772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32773 (exit $ac_status); }; }; then
32774 ol_cv_pthread_lc_r=yes
32776 echo "$as_me: failed program was:" >&5
32777 sed 's/^/| /' conftest.$ac_ext >&5
32779 ol_cv_pthread_lc_r=no
32781 rm -f conftest.err conftest.$ac_objext \
32782 conftest$ac_exeext conftest.$ac_ext
32784 cat >conftest.$ac_ext <<_ACEOF
32787 cat confdefs.h >>conftest.$ac_ext
32788 cat >>conftest.$ac_ext <<_ACEOF
32789 /* end confdefs.h. */
32790 /* pthread test headers */
32791 #include <pthread.h>
32792 #if HAVE_PTHREADS < 7
32796 #define NULL (void*)0
32799 static void *task(p)
32802 return (void *) (p == NULL);
32806 int main(argc, argv)
32811 /* pthread test function */
32812 #ifndef PTHREAD_CREATE_DETACHED
32813 #define PTHREAD_CREATE_DETACHED 1
32817 int detach = PTHREAD_CREATE_DETACHED;
32819 #if HAVE_PTHREADS > 4
32820 /* Final pthreads */
32821 pthread_attr_t attr;
32823 status = pthread_attr_init(&attr);
32824 if( status ) return status;
32826 #if HAVE_PTHREADS < 7
32827 status = pthread_attr_setdetachstate(&attr, &detach);
32828 if( status < 0 ) status = errno;
32830 status = pthread_attr_setdetachstate(&attr, detach);
32832 if( status ) return status;
32833 status = pthread_create( &t, &attr, task, NULL );
32834 #if HAVE_PTHREADS < 7
32835 if( status < 0 ) status = errno;
32837 if( status ) return status;
32839 /* Draft 4 pthreads */
32840 status = pthread_create( &t, pthread_attr_default, task, NULL );
32841 if( status ) return errno;
32843 /* give thread a chance to complete */
32844 /* it should remain joinable and hence detachable */
32847 status = pthread_detach( &t );
32848 if( status ) return errno;
32851 #ifdef HAVE_LINUX_THREADS
32852 pthread_kill_other_threads_np();
32860 rm -f conftest$ac_exeext
32861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32862 (eval $ac_link) 2>&5
32864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32865 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32867 (eval $ac_try) 2>&5
32869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32870 (exit $ac_status); }; }; then
32871 ol_cv_pthread_lc_r=yes
32873 echo "$as_me: program exited with status $ac_status" >&5
32874 echo "$as_me: failed program was:" >&5
32875 sed 's/^/| /' conftest.$ac_ext >&5
32877 ( exit $ac_status )
32878 ol_cv_pthread_lc_r=no
32880 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32887 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
32888 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
32890 if test $ol_cv_pthread_lc_r = yes ; then
32891 ol_link_pthreads="-lc_r"
32892 ol_link_threads=posix
32897 # Pthread try link: -threads (ol_cv_pthread_threads)
32898 if test "$ol_link_threads" = no ; then
32900 echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
32901 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
32902 if test "${ol_cv_pthread_threads+set}" = set; then
32903 echo $ECHO_N "(cached) $ECHO_C" >&6
32908 LIBS="-threads $LIBS"
32910 if test "$cross_compiling" = yes; then
32911 cat >conftest.$ac_ext <<_ACEOF
32914 cat confdefs.h >>conftest.$ac_ext
32915 cat >>conftest.$ac_ext <<_ACEOF
32916 /* end confdefs.h. */
32917 /* pthread test headers */
32918 #include <pthread.h>
32919 #if HAVE_PTHREADS < 7
32923 #define NULL (void*)0
32926 static void *task(p)
32929 return (void *) (p == NULL);
32936 /* pthread test function */
32937 #ifndef PTHREAD_CREATE_DETACHED
32938 #define PTHREAD_CREATE_DETACHED 1
32942 int detach = PTHREAD_CREATE_DETACHED;
32944 #if HAVE_PTHREADS > 4
32945 /* Final pthreads */
32946 pthread_attr_t attr;
32948 status = pthread_attr_init(&attr);
32949 if( status ) return status;
32951 #if HAVE_PTHREADS < 7
32952 status = pthread_attr_setdetachstate(&attr, &detach);
32953 if( status < 0 ) status = errno;
32955 status = pthread_attr_setdetachstate(&attr, detach);
32957 if( status ) return status;
32958 status = pthread_create( &t, &attr, task, NULL );
32959 #if HAVE_PTHREADS < 7
32960 if( status < 0 ) status = errno;
32962 if( status ) return status;
32964 /* Draft 4 pthreads */
32965 status = pthread_create( &t, pthread_attr_default, task, NULL );
32966 if( status ) return errno;
32968 /* give thread a chance to complete */
32969 /* it should remain joinable and hence detachable */
32972 status = pthread_detach( &t );
32973 if( status ) return errno;
32976 #ifdef HAVE_LINUX_THREADS
32977 pthread_kill_other_threads_np();
32986 rm -f conftest.$ac_objext conftest$ac_exeext
32987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32988 (eval $ac_link) 2>conftest.er1
32990 grep -v '^ *+' conftest.er1 >conftest.err
32992 cat conftest.err >&5
32993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32994 (exit $ac_status); } &&
32995 { ac_try='test -z "$ac_c_werror_flag"
32996 || test ! -s conftest.err'
32997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32998 (eval $ac_try) 2>&5
33000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33001 (exit $ac_status); }; } &&
33002 { ac_try='test -s conftest$ac_exeext'
33003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33004 (eval $ac_try) 2>&5
33006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33007 (exit $ac_status); }; }; then
33008 ol_cv_pthread_threads=yes
33010 echo "$as_me: failed program was:" >&5
33011 sed 's/^/| /' conftest.$ac_ext >&5
33013 ol_cv_pthread_threads=no
33015 rm -f conftest.err conftest.$ac_objext \
33016 conftest$ac_exeext conftest.$ac_ext
33018 cat >conftest.$ac_ext <<_ACEOF
33021 cat confdefs.h >>conftest.$ac_ext
33022 cat >>conftest.$ac_ext <<_ACEOF
33023 /* end confdefs.h. */
33024 /* pthread test headers */
33025 #include <pthread.h>
33026 #if HAVE_PTHREADS < 7
33030 #define NULL (void*)0
33033 static void *task(p)
33036 return (void *) (p == NULL);
33040 int main(argc, argv)
33045 /* pthread test function */
33046 #ifndef PTHREAD_CREATE_DETACHED
33047 #define PTHREAD_CREATE_DETACHED 1
33051 int detach = PTHREAD_CREATE_DETACHED;
33053 #if HAVE_PTHREADS > 4
33054 /* Final pthreads */
33055 pthread_attr_t attr;
33057 status = pthread_attr_init(&attr);
33058 if( status ) return status;
33060 #if HAVE_PTHREADS < 7
33061 status = pthread_attr_setdetachstate(&attr, &detach);
33062 if( status < 0 ) status = errno;
33064 status = pthread_attr_setdetachstate(&attr, detach);
33066 if( status ) return status;
33067 status = pthread_create( &t, &attr, task, NULL );
33068 #if HAVE_PTHREADS < 7
33069 if( status < 0 ) status = errno;
33071 if( status ) return status;
33073 /* Draft 4 pthreads */
33074 status = pthread_create( &t, pthread_attr_default, task, NULL );
33075 if( status ) return errno;
33077 /* give thread a chance to complete */
33078 /* it should remain joinable and hence detachable */
33081 status = pthread_detach( &t );
33082 if( status ) return errno;
33085 #ifdef HAVE_LINUX_THREADS
33086 pthread_kill_other_threads_np();
33094 rm -f conftest$ac_exeext
33095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33096 (eval $ac_link) 2>&5
33098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33099 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33101 (eval $ac_try) 2>&5
33103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33104 (exit $ac_status); }; }; then
33105 ol_cv_pthread_threads=yes
33107 echo "$as_me: program exited with status $ac_status" >&5
33108 echo "$as_me: failed program was:" >&5
33109 sed 's/^/| /' conftest.$ac_ext >&5
33111 ( exit $ac_status )
33112 ol_cv_pthread_threads=no
33114 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33121 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
33122 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
33124 if test $ol_cv_pthread_threads = yes ; then
33125 ol_link_pthreads="-threads"
33126 ol_link_threads=posix
33131 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
33132 if test "$ol_link_threads" = no ; then
33133 # try -lpthreads -lmach -lexc -lc_r
33134 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
33135 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
33136 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
33137 echo $ECHO_N "(cached) $ECHO_C" >&6
33142 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
33144 if test "$cross_compiling" = yes; then
33145 cat >conftest.$ac_ext <<_ACEOF
33148 cat confdefs.h >>conftest.$ac_ext
33149 cat >>conftest.$ac_ext <<_ACEOF
33150 /* end confdefs.h. */
33151 /* pthread test headers */
33152 #include <pthread.h>
33153 #if HAVE_PTHREADS < 7
33157 #define NULL (void*)0
33160 static void *task(p)
33163 return (void *) (p == NULL);
33170 /* pthread test function */
33171 #ifndef PTHREAD_CREATE_DETACHED
33172 #define PTHREAD_CREATE_DETACHED 1
33176 int detach = PTHREAD_CREATE_DETACHED;
33178 #if HAVE_PTHREADS > 4
33179 /* Final pthreads */
33180 pthread_attr_t attr;
33182 status = pthread_attr_init(&attr);
33183 if( status ) return status;
33185 #if HAVE_PTHREADS < 7
33186 status = pthread_attr_setdetachstate(&attr, &detach);
33187 if( status < 0 ) status = errno;
33189 status = pthread_attr_setdetachstate(&attr, detach);
33191 if( status ) return status;
33192 status = pthread_create( &t, &attr, task, NULL );
33193 #if HAVE_PTHREADS < 7
33194 if( status < 0 ) status = errno;
33196 if( status ) return status;
33198 /* Draft 4 pthreads */
33199 status = pthread_create( &t, pthread_attr_default, task, NULL );
33200 if( status ) return errno;
33202 /* give thread a chance to complete */
33203 /* it should remain joinable and hence detachable */
33206 status = pthread_detach( &t );
33207 if( status ) return errno;
33210 #ifdef HAVE_LINUX_THREADS
33211 pthread_kill_other_threads_np();
33220 rm -f conftest.$ac_objext conftest$ac_exeext
33221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33222 (eval $ac_link) 2>conftest.er1
33224 grep -v '^ *+' conftest.er1 >conftest.err
33226 cat conftest.err >&5
33227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33228 (exit $ac_status); } &&
33229 { ac_try='test -z "$ac_c_werror_flag"
33230 || test ! -s conftest.err'
33231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33232 (eval $ac_try) 2>&5
33234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33235 (exit $ac_status); }; } &&
33236 { ac_try='test -s conftest$ac_exeext'
33237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33238 (eval $ac_try) 2>&5
33240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33241 (exit $ac_status); }; }; then
33242 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
33244 echo "$as_me: failed program was:" >&5
33245 sed 's/^/| /' conftest.$ac_ext >&5
33247 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
33249 rm -f conftest.err conftest.$ac_objext \
33250 conftest$ac_exeext conftest.$ac_ext
33252 cat >conftest.$ac_ext <<_ACEOF
33255 cat confdefs.h >>conftest.$ac_ext
33256 cat >>conftest.$ac_ext <<_ACEOF
33257 /* end confdefs.h. */
33258 /* pthread test headers */
33259 #include <pthread.h>
33260 #if HAVE_PTHREADS < 7
33264 #define NULL (void*)0
33267 static void *task(p)
33270 return (void *) (p == NULL);
33274 int main(argc, argv)
33279 /* pthread test function */
33280 #ifndef PTHREAD_CREATE_DETACHED
33281 #define PTHREAD_CREATE_DETACHED 1
33285 int detach = PTHREAD_CREATE_DETACHED;
33287 #if HAVE_PTHREADS > 4
33288 /* Final pthreads */
33289 pthread_attr_t attr;
33291 status = pthread_attr_init(&attr);
33292 if( status ) return status;
33294 #if HAVE_PTHREADS < 7
33295 status = pthread_attr_setdetachstate(&attr, &detach);
33296 if( status < 0 ) status = errno;
33298 status = pthread_attr_setdetachstate(&attr, detach);
33300 if( status ) return status;
33301 status = pthread_create( &t, &attr, task, NULL );
33302 #if HAVE_PTHREADS < 7
33303 if( status < 0 ) status = errno;
33305 if( status ) return status;
33307 /* Draft 4 pthreads */
33308 status = pthread_create( &t, pthread_attr_default, task, NULL );
33309 if( status ) return errno;
33311 /* give thread a chance to complete */
33312 /* it should remain joinable and hence detachable */
33315 status = pthread_detach( &t );
33316 if( status ) return errno;
33319 #ifdef HAVE_LINUX_THREADS
33320 pthread_kill_other_threads_np();
33328 rm -f conftest$ac_exeext
33329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33330 (eval $ac_link) 2>&5
33332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33333 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33335 (eval $ac_try) 2>&5
33337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33338 (exit $ac_status); }; }; then
33339 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
33341 echo "$as_me: program exited with status $ac_status" >&5
33342 echo "$as_me: failed program was:" >&5
33343 sed 's/^/| /' conftest.$ac_ext >&5
33345 ( exit $ac_status )
33346 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
33348 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33355 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
33356 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
33358 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
33359 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
33360 ol_link_threads=posix
33364 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
33365 if test "$ol_link_threads" = no ; then
33366 # try -lpthreads -lmach -lexc
33367 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
33368 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
33369 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
33370 echo $ECHO_N "(cached) $ECHO_C" >&6
33375 LIBS="-lpthreads -lmach -lexc $LIBS"
33377 if test "$cross_compiling" = yes; then
33378 cat >conftest.$ac_ext <<_ACEOF
33381 cat confdefs.h >>conftest.$ac_ext
33382 cat >>conftest.$ac_ext <<_ACEOF
33383 /* end confdefs.h. */
33384 /* pthread test headers */
33385 #include <pthread.h>
33386 #if HAVE_PTHREADS < 7
33390 #define NULL (void*)0
33393 static void *task(p)
33396 return (void *) (p == NULL);
33403 /* pthread test function */
33404 #ifndef PTHREAD_CREATE_DETACHED
33405 #define PTHREAD_CREATE_DETACHED 1
33409 int detach = PTHREAD_CREATE_DETACHED;
33411 #if HAVE_PTHREADS > 4
33412 /* Final pthreads */
33413 pthread_attr_t attr;
33415 status = pthread_attr_init(&attr);
33416 if( status ) return status;
33418 #if HAVE_PTHREADS < 7
33419 status = pthread_attr_setdetachstate(&attr, &detach);
33420 if( status < 0 ) status = errno;
33422 status = pthread_attr_setdetachstate(&attr, detach);
33424 if( status ) return status;
33425 status = pthread_create( &t, &attr, task, NULL );
33426 #if HAVE_PTHREADS < 7
33427 if( status < 0 ) status = errno;
33429 if( status ) return status;
33431 /* Draft 4 pthreads */
33432 status = pthread_create( &t, pthread_attr_default, task, NULL );
33433 if( status ) return errno;
33435 /* give thread a chance to complete */
33436 /* it should remain joinable and hence detachable */
33439 status = pthread_detach( &t );
33440 if( status ) return errno;
33443 #ifdef HAVE_LINUX_THREADS
33444 pthread_kill_other_threads_np();
33453 rm -f conftest.$ac_objext conftest$ac_exeext
33454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33455 (eval $ac_link) 2>conftest.er1
33457 grep -v '^ *+' conftest.er1 >conftest.err
33459 cat conftest.err >&5
33460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33461 (exit $ac_status); } &&
33462 { ac_try='test -z "$ac_c_werror_flag"
33463 || test ! -s conftest.err'
33464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33465 (eval $ac_try) 2>&5
33467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33468 (exit $ac_status); }; } &&
33469 { ac_try='test -s conftest$ac_exeext'
33470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33471 (eval $ac_try) 2>&5
33473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33474 (exit $ac_status); }; }; then
33475 ol_cv_pthread_lpthreads_lmach_lexc=yes
33477 echo "$as_me: failed program was:" >&5
33478 sed 's/^/| /' conftest.$ac_ext >&5
33480 ol_cv_pthread_lpthreads_lmach_lexc=no
33482 rm -f conftest.err conftest.$ac_objext \
33483 conftest$ac_exeext conftest.$ac_ext
33485 cat >conftest.$ac_ext <<_ACEOF
33488 cat confdefs.h >>conftest.$ac_ext
33489 cat >>conftest.$ac_ext <<_ACEOF
33490 /* end confdefs.h. */
33491 /* pthread test headers */
33492 #include <pthread.h>
33493 #if HAVE_PTHREADS < 7
33497 #define NULL (void*)0
33500 static void *task(p)
33503 return (void *) (p == NULL);
33507 int main(argc, argv)
33512 /* pthread test function */
33513 #ifndef PTHREAD_CREATE_DETACHED
33514 #define PTHREAD_CREATE_DETACHED 1
33518 int detach = PTHREAD_CREATE_DETACHED;
33520 #if HAVE_PTHREADS > 4
33521 /* Final pthreads */
33522 pthread_attr_t attr;
33524 status = pthread_attr_init(&attr);
33525 if( status ) return status;
33527 #if HAVE_PTHREADS < 7
33528 status = pthread_attr_setdetachstate(&attr, &detach);
33529 if( status < 0 ) status = errno;
33531 status = pthread_attr_setdetachstate(&attr, detach);
33533 if( status ) return status;
33534 status = pthread_create( &t, &attr, task, NULL );
33535 #if HAVE_PTHREADS < 7
33536 if( status < 0 ) status = errno;
33538 if( status ) return status;
33540 /* Draft 4 pthreads */
33541 status = pthread_create( &t, pthread_attr_default, task, NULL );
33542 if( status ) return errno;
33544 /* give thread a chance to complete */
33545 /* it should remain joinable and hence detachable */
33548 status = pthread_detach( &t );
33549 if( status ) return errno;
33552 #ifdef HAVE_LINUX_THREADS
33553 pthread_kill_other_threads_np();
33561 rm -f conftest$ac_exeext
33562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33563 (eval $ac_link) 2>&5
33565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33566 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33568 (eval $ac_try) 2>&5
33570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33571 (exit $ac_status); }; }; then
33572 ol_cv_pthread_lpthreads_lmach_lexc=yes
33574 echo "$as_me: program exited with status $ac_status" >&5
33575 echo "$as_me: failed program was:" >&5
33576 sed 's/^/| /' conftest.$ac_ext >&5
33578 ( exit $ac_status )
33579 ol_cv_pthread_lpthreads_lmach_lexc=no
33581 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33588 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
33589 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
33591 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
33592 ol_link_pthreads="-lpthreads -lmach -lexc"
33593 ol_link_threads=posix
33597 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
33598 if test "$ol_link_threads" = no ; then
33599 # try -lpthreads -lexc
33600 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
33601 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
33602 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
33603 echo $ECHO_N "(cached) $ECHO_C" >&6
33608 LIBS="-lpthreads -lexc $LIBS"
33610 if test "$cross_compiling" = yes; then
33611 cat >conftest.$ac_ext <<_ACEOF
33614 cat confdefs.h >>conftest.$ac_ext
33615 cat >>conftest.$ac_ext <<_ACEOF
33616 /* end confdefs.h. */
33617 /* pthread test headers */
33618 #include <pthread.h>
33619 #if HAVE_PTHREADS < 7
33623 #define NULL (void*)0
33626 static void *task(p)
33629 return (void *) (p == NULL);
33636 /* pthread test function */
33637 #ifndef PTHREAD_CREATE_DETACHED
33638 #define PTHREAD_CREATE_DETACHED 1
33642 int detach = PTHREAD_CREATE_DETACHED;
33644 #if HAVE_PTHREADS > 4
33645 /* Final pthreads */
33646 pthread_attr_t attr;
33648 status = pthread_attr_init(&attr);
33649 if( status ) return status;
33651 #if HAVE_PTHREADS < 7
33652 status = pthread_attr_setdetachstate(&attr, &detach);
33653 if( status < 0 ) status = errno;
33655 status = pthread_attr_setdetachstate(&attr, detach);
33657 if( status ) return status;
33658 status = pthread_create( &t, &attr, task, NULL );
33659 #if HAVE_PTHREADS < 7
33660 if( status < 0 ) status = errno;
33662 if( status ) return status;
33664 /* Draft 4 pthreads */
33665 status = pthread_create( &t, pthread_attr_default, task, NULL );
33666 if( status ) return errno;
33668 /* give thread a chance to complete */
33669 /* it should remain joinable and hence detachable */
33672 status = pthread_detach( &t );
33673 if( status ) return errno;
33676 #ifdef HAVE_LINUX_THREADS
33677 pthread_kill_other_threads_np();
33686 rm -f conftest.$ac_objext conftest$ac_exeext
33687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33688 (eval $ac_link) 2>conftest.er1
33690 grep -v '^ *+' conftest.er1 >conftest.err
33692 cat conftest.err >&5
33693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33694 (exit $ac_status); } &&
33695 { ac_try='test -z "$ac_c_werror_flag"
33696 || test ! -s conftest.err'
33697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33698 (eval $ac_try) 2>&5
33700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33701 (exit $ac_status); }; } &&
33702 { ac_try='test -s conftest$ac_exeext'
33703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33704 (eval $ac_try) 2>&5
33706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33707 (exit $ac_status); }; }; then
33708 ol_cv_pthread_lpthreads_lexc=yes
33710 echo "$as_me: failed program was:" >&5
33711 sed 's/^/| /' conftest.$ac_ext >&5
33713 ol_cv_pthread_lpthreads_lexc=no
33715 rm -f conftest.err conftest.$ac_objext \
33716 conftest$ac_exeext conftest.$ac_ext
33718 cat >conftest.$ac_ext <<_ACEOF
33721 cat confdefs.h >>conftest.$ac_ext
33722 cat >>conftest.$ac_ext <<_ACEOF
33723 /* end confdefs.h. */
33724 /* pthread test headers */
33725 #include <pthread.h>
33726 #if HAVE_PTHREADS < 7
33730 #define NULL (void*)0
33733 static void *task(p)
33736 return (void *) (p == NULL);
33740 int main(argc, argv)
33745 /* pthread test function */
33746 #ifndef PTHREAD_CREATE_DETACHED
33747 #define PTHREAD_CREATE_DETACHED 1
33751 int detach = PTHREAD_CREATE_DETACHED;
33753 #if HAVE_PTHREADS > 4
33754 /* Final pthreads */
33755 pthread_attr_t attr;
33757 status = pthread_attr_init(&attr);
33758 if( status ) return status;
33760 #if HAVE_PTHREADS < 7
33761 status = pthread_attr_setdetachstate(&attr, &detach);
33762 if( status < 0 ) status = errno;
33764 status = pthread_attr_setdetachstate(&attr, detach);
33766 if( status ) return status;
33767 status = pthread_create( &t, &attr, task, NULL );
33768 #if HAVE_PTHREADS < 7
33769 if( status < 0 ) status = errno;
33771 if( status ) return status;
33773 /* Draft 4 pthreads */
33774 status = pthread_create( &t, pthread_attr_default, task, NULL );
33775 if( status ) return errno;
33777 /* give thread a chance to complete */
33778 /* it should remain joinable and hence detachable */
33781 status = pthread_detach( &t );
33782 if( status ) return errno;
33785 #ifdef HAVE_LINUX_THREADS
33786 pthread_kill_other_threads_np();
33794 rm -f conftest$ac_exeext
33795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33796 (eval $ac_link) 2>&5
33798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33799 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33801 (eval $ac_try) 2>&5
33803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33804 (exit $ac_status); }; }; then
33805 ol_cv_pthread_lpthreads_lexc=yes
33807 echo "$as_me: program exited with status $ac_status" >&5
33808 echo "$as_me: failed program was:" >&5
33809 sed 's/^/| /' conftest.$ac_ext >&5
33811 ( exit $ac_status )
33812 ol_cv_pthread_lpthreads_lexc=no
33814 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33821 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
33822 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
33824 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
33825 ol_link_pthreads="-lpthreads -lexc"
33826 ol_link_threads=posix
33831 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
33832 if test "$ol_link_threads" = no ; then
33834 echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
33835 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
33836 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
33837 echo $ECHO_N "(cached) $ECHO_C" >&6
33842 LIBS="-lpthreads $LIBS"
33844 if test "$cross_compiling" = yes; then
33845 cat >conftest.$ac_ext <<_ACEOF
33848 cat confdefs.h >>conftest.$ac_ext
33849 cat >>conftest.$ac_ext <<_ACEOF
33850 /* end confdefs.h. */
33851 /* pthread test headers */
33852 #include <pthread.h>
33853 #if HAVE_PTHREADS < 7
33857 #define NULL (void*)0
33860 static void *task(p)
33863 return (void *) (p == NULL);
33870 /* pthread test function */
33871 #ifndef PTHREAD_CREATE_DETACHED
33872 #define PTHREAD_CREATE_DETACHED 1
33876 int detach = PTHREAD_CREATE_DETACHED;
33878 #if HAVE_PTHREADS > 4
33879 /* Final pthreads */
33880 pthread_attr_t attr;
33882 status = pthread_attr_init(&attr);
33883 if( status ) return status;
33885 #if HAVE_PTHREADS < 7
33886 status = pthread_attr_setdetachstate(&attr, &detach);
33887 if( status < 0 ) status = errno;
33889 status = pthread_attr_setdetachstate(&attr, detach);
33891 if( status ) return status;
33892 status = pthread_create( &t, &attr, task, NULL );
33893 #if HAVE_PTHREADS < 7
33894 if( status < 0 ) status = errno;
33896 if( status ) return status;
33898 /* Draft 4 pthreads */
33899 status = pthread_create( &t, pthread_attr_default, task, NULL );
33900 if( status ) return errno;
33902 /* give thread a chance to complete */
33903 /* it should remain joinable and hence detachable */
33906 status = pthread_detach( &t );
33907 if( status ) return errno;
33910 #ifdef HAVE_LINUX_THREADS
33911 pthread_kill_other_threads_np();
33920 rm -f conftest.$ac_objext conftest$ac_exeext
33921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33922 (eval $ac_link) 2>conftest.er1
33924 grep -v '^ *+' conftest.er1 >conftest.err
33926 cat conftest.err >&5
33927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33928 (exit $ac_status); } &&
33929 { ac_try='test -z "$ac_c_werror_flag"
33930 || test ! -s conftest.err'
33931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33932 (eval $ac_try) 2>&5
33934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33935 (exit $ac_status); }; } &&
33936 { ac_try='test -s conftest$ac_exeext'
33937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33938 (eval $ac_try) 2>&5
33940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33941 (exit $ac_status); }; }; then
33942 ol_cv_pthread_lib_lpthreads=yes
33944 echo "$as_me: failed program was:" >&5
33945 sed 's/^/| /' conftest.$ac_ext >&5
33947 ol_cv_pthread_lib_lpthreads=no
33949 rm -f conftest.err conftest.$ac_objext \
33950 conftest$ac_exeext conftest.$ac_ext
33952 cat >conftest.$ac_ext <<_ACEOF
33955 cat confdefs.h >>conftest.$ac_ext
33956 cat >>conftest.$ac_ext <<_ACEOF
33957 /* end confdefs.h. */
33958 /* pthread test headers */
33959 #include <pthread.h>
33960 #if HAVE_PTHREADS < 7
33964 #define NULL (void*)0
33967 static void *task(p)
33970 return (void *) (p == NULL);
33974 int main(argc, argv)
33979 /* pthread test function */
33980 #ifndef PTHREAD_CREATE_DETACHED
33981 #define PTHREAD_CREATE_DETACHED 1
33985 int detach = PTHREAD_CREATE_DETACHED;
33987 #if HAVE_PTHREADS > 4
33988 /* Final pthreads */
33989 pthread_attr_t attr;
33991 status = pthread_attr_init(&attr);
33992 if( status ) return status;
33994 #if HAVE_PTHREADS < 7
33995 status = pthread_attr_setdetachstate(&attr, &detach);
33996 if( status < 0 ) status = errno;
33998 status = pthread_attr_setdetachstate(&attr, detach);
34000 if( status ) return status;
34001 status = pthread_create( &t, &attr, task, NULL );
34002 #if HAVE_PTHREADS < 7
34003 if( status < 0 ) status = errno;
34005 if( status ) return status;
34007 /* Draft 4 pthreads */
34008 status = pthread_create( &t, pthread_attr_default, task, NULL );
34009 if( status ) return errno;
34011 /* give thread a chance to complete */
34012 /* it should remain joinable and hence detachable */
34015 status = pthread_detach( &t );
34016 if( status ) return errno;
34019 #ifdef HAVE_LINUX_THREADS
34020 pthread_kill_other_threads_np();
34028 rm -f conftest$ac_exeext
34029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34030 (eval $ac_link) 2>&5
34032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34033 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34035 (eval $ac_try) 2>&5
34037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34038 (exit $ac_status); }; }; then
34039 ol_cv_pthread_lib_lpthreads=yes
34041 echo "$as_me: program exited with status $ac_status" >&5
34042 echo "$as_me: failed program was:" >&5
34043 sed 's/^/| /' conftest.$ac_ext >&5
34045 ( exit $ac_status )
34046 ol_cv_pthread_lib_lpthreads=no
34048 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34055 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
34056 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
34058 if test $ol_cv_pthread_lib_lpthreads = yes ; then
34059 ol_link_pthreads="-lpthreads"
34060 ol_link_threads=posix
34065 if test $ol_link_threads != no ; then
34066 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
34068 save_CPPFLAGS="$CPPFLAGS"
34070 LIBS="$LTHREAD_LIBS $LIBS"
34075 for ac_func in sched_yield pthread_yield thr_yield
34077 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34078 echo "$as_me:$LINENO: checking for $ac_func" >&5
34079 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34080 if eval "test \"\${$as_ac_var+set}\" = set"; then
34081 echo $ECHO_N "(cached) $ECHO_C" >&6
34083 cat >conftest.$ac_ext <<_ACEOF
34086 cat confdefs.h >>conftest.$ac_ext
34087 cat >>conftest.$ac_ext <<_ACEOF
34088 /* end confdefs.h. */
34089 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34091 #define $ac_func innocuous_$ac_func
34093 /* System header to define __stub macros and hopefully few prototypes,
34094 which can conflict with char $ac_func (); below.
34095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34096 <limits.h> exists even on freestanding compilers. */
34099 # include <limits.h>
34101 # include <assert.h>
34106 /* Override any gcc2 internal prototype to avoid an error. */
34111 /* We use char because int might match the return type of a gcc2
34112 builtin and then its argument prototype would still apply. */
34114 /* The GNU C library defines this for functions which it implements
34115 to always fail with ENOSYS. Some functions are actually named
34116 something starting with __ and the normal name is an alias. */
34117 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34120 char (*f) () = $ac_func;
34129 return f != $ac_func;
34134 rm -f conftest.$ac_objext conftest$ac_exeext
34135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34136 (eval $ac_link) 2>conftest.er1
34138 grep -v '^ *+' conftest.er1 >conftest.err
34140 cat conftest.err >&5
34141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34142 (exit $ac_status); } &&
34143 { ac_try='test -z "$ac_c_werror_flag"
34144 || test ! -s conftest.err'
34145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34146 (eval $ac_try) 2>&5
34148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34149 (exit $ac_status); }; } &&
34150 { ac_try='test -s conftest$ac_exeext'
34151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34152 (eval $ac_try) 2>&5
34154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34155 (exit $ac_status); }; }; then
34156 eval "$as_ac_var=yes"
34158 echo "$as_me: failed program was:" >&5
34159 sed 's/^/| /' conftest.$ac_ext >&5
34161 eval "$as_ac_var=no"
34163 rm -f conftest.err conftest.$ac_objext \
34164 conftest$ac_exeext conftest.$ac_ext
34166 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34167 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34168 if test `eval echo '${'$as_ac_var'}'` = yes; then
34169 cat >>confdefs.h <<_ACEOF
34170 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34177 if test $ac_cv_func_sched_yield = no -a \
34178 $ac_cv_func_pthread_yield = no -a \
34179 $ac_cv_func_thr_yield = no ; then
34180 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
34181 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
34182 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
34183 echo $ECHO_N "(cached) $ECHO_C" >&6
34185 ac_check_lib_save_LIBS=$LIBS
34187 cat >conftest.$ac_ext <<_ACEOF
34190 cat confdefs.h >>conftest.$ac_ext
34191 cat >>conftest.$ac_ext <<_ACEOF
34192 /* end confdefs.h. */
34194 /* Override any gcc2 internal prototype to avoid an error. */
34198 /* We use char because int might match the return type of a gcc2
34199 builtin and then its argument prototype would still apply. */
34200 char sched_yield ();
34209 rm -f conftest.$ac_objext conftest$ac_exeext
34210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34211 (eval $ac_link) 2>conftest.er1
34213 grep -v '^ *+' conftest.er1 >conftest.err
34215 cat conftest.err >&5
34216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34217 (exit $ac_status); } &&
34218 { ac_try='test -z "$ac_c_werror_flag"
34219 || test ! -s conftest.err'
34220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34221 (eval $ac_try) 2>&5
34223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34224 (exit $ac_status); }; } &&
34225 { ac_try='test -s conftest$ac_exeext'
34226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34227 (eval $ac_try) 2>&5
34229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34230 (exit $ac_status); }; }; then
34231 ac_cv_lib_rt_sched_yield=yes
34233 echo "$as_me: failed program was:" >&5
34234 sed 's/^/| /' conftest.$ac_ext >&5
34236 ac_cv_lib_rt_sched_yield=no
34238 rm -f conftest.err conftest.$ac_objext \
34239 conftest$ac_exeext conftest.$ac_ext
34240 LIBS=$ac_check_lib_save_LIBS
34242 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
34243 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
34244 if test $ac_cv_lib_rt_sched_yield = yes; then
34245 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
34247 cat >>confdefs.h <<\_ACEOF
34248 #define HAVE_SCHED_YIELD 1
34251 ac_cv_func_sched_yield=yes
34253 ac_cv_func_sched_yield=no
34257 if test $ac_cv_func_sched_yield = no -a \
34258 $ac_cv_func_pthread_yield = no -a \
34259 "$ac_cv_func_thr_yield" = no ; then
34260 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
34261 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
34266 for ac_func in pthread_kill pthread_rwlock_destroy
34268 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34269 echo "$as_me:$LINENO: checking for $ac_func" >&5
34270 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34271 if eval "test \"\${$as_ac_var+set}\" = set"; then
34272 echo $ECHO_N "(cached) $ECHO_C" >&6
34274 cat >conftest.$ac_ext <<_ACEOF
34277 cat confdefs.h >>conftest.$ac_ext
34278 cat >>conftest.$ac_ext <<_ACEOF
34279 /* end confdefs.h. */
34280 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34281 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34282 #define $ac_func innocuous_$ac_func
34284 /* System header to define __stub macros and hopefully few prototypes,
34285 which can conflict with char $ac_func (); below.
34286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34287 <limits.h> exists even on freestanding compilers. */
34290 # include <limits.h>
34292 # include <assert.h>
34297 /* Override any gcc2 internal prototype to avoid an error. */
34302 /* We use char because int might match the return type of a gcc2
34303 builtin and then its argument prototype would still apply. */
34305 /* The GNU C library defines this for functions which it implements
34306 to always fail with ENOSYS. Some functions are actually named
34307 something starting with __ and the normal name is an alias. */
34308 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34311 char (*f) () = $ac_func;
34320 return f != $ac_func;
34325 rm -f conftest.$ac_objext conftest$ac_exeext
34326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34327 (eval $ac_link) 2>conftest.er1
34329 grep -v '^ *+' conftest.er1 >conftest.err
34331 cat conftest.err >&5
34332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34333 (exit $ac_status); } &&
34334 { ac_try='test -z "$ac_c_werror_flag"
34335 || test ! -s conftest.err'
34336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34337 (eval $ac_try) 2>&5
34339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34340 (exit $ac_status); }; } &&
34341 { ac_try='test -s conftest$ac_exeext'
34342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34343 (eval $ac_try) 2>&5
34345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34346 (exit $ac_status); }; }; then
34347 eval "$as_ac_var=yes"
34349 echo "$as_me: failed program was:" >&5
34350 sed 's/^/| /' conftest.$ac_ext >&5
34352 eval "$as_ac_var=no"
34354 rm -f conftest.err conftest.$ac_objext \
34355 conftest$ac_exeext conftest.$ac_ext
34357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34358 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34359 if test `eval echo '${'$as_ac_var'}'` = yes; then
34360 cat >>confdefs.h <<_ACEOF
34361 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34368 echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
34369 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
34370 if test "${ol_cv_func_pthread_detach+set}" = set; then
34371 echo $ECHO_N "(cached) $ECHO_C" >&6
34374 cat >conftest.$ac_ext <<_ACEOF
34377 cat confdefs.h >>conftest.$ac_ext
34378 cat >>conftest.$ac_ext <<_ACEOF
34379 /* end confdefs.h. */
34381 #include <pthread.h>
34383 #define NULL (void*)0
34389 pthread_detach(NULL);
34394 rm -f conftest.$ac_objext conftest$ac_exeext
34395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34396 (eval $ac_link) 2>conftest.er1
34398 grep -v '^ *+' conftest.er1 >conftest.err
34400 cat conftest.err >&5
34401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34402 (exit $ac_status); } &&
34403 { ac_try='test -z "$ac_c_werror_flag"
34404 || test ! -s conftest.err'
34405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34406 (eval $ac_try) 2>&5
34408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34409 (exit $ac_status); }; } &&
34410 { ac_try='test -s conftest$ac_exeext'
34411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34412 (eval $ac_try) 2>&5
34414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34415 (exit $ac_status); }; }; then
34416 ol_cv_func_pthread_detach=yes
34418 echo "$as_me: failed program was:" >&5
34419 sed 's/^/| /' conftest.$ac_ext >&5
34421 ol_cv_func_pthread_detach=no
34423 rm -f conftest.err conftest.$ac_objext \
34424 conftest$ac_exeext conftest.$ac_ext
34427 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
34428 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
34430 if test $ol_cv_func_pthread_detach = no ; then
34431 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
34432 echo "$as_me: error: could not locate pthread_detach()" >&2;}
34433 { (exit 1); exit 1; }; }
34437 cat >>confdefs.h <<\_ACEOF
34438 #define HAVE_PTHREAD_DETACH 1
34447 pthread_setconcurrency \
34448 pthread_getconcurrency \
34449 thr_setconcurrency \
34450 thr_getconcurrency \
34453 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34454 echo "$as_me:$LINENO: checking for $ac_func" >&5
34455 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34456 if eval "test \"\${$as_ac_var+set}\" = set"; then
34457 echo $ECHO_N "(cached) $ECHO_C" >&6
34459 cat >conftest.$ac_ext <<_ACEOF
34462 cat confdefs.h >>conftest.$ac_ext
34463 cat >>conftest.$ac_ext <<_ACEOF
34464 /* end confdefs.h. */
34465 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34466 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34467 #define $ac_func innocuous_$ac_func
34469 /* System header to define __stub macros and hopefully few prototypes,
34470 which can conflict with char $ac_func (); below.
34471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34472 <limits.h> exists even on freestanding compilers. */
34475 # include <limits.h>
34477 # include <assert.h>
34482 /* Override any gcc2 internal prototype to avoid an error. */
34487 /* We use char because int might match the return type of a gcc2
34488 builtin and then its argument prototype would still apply. */
34490 /* The GNU C library defines this for functions which it implements
34491 to always fail with ENOSYS. Some functions are actually named
34492 something starting with __ and the normal name is an alias. */
34493 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34496 char (*f) () = $ac_func;
34505 return f != $ac_func;
34510 rm -f conftest.$ac_objext conftest$ac_exeext
34511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34512 (eval $ac_link) 2>conftest.er1
34514 grep -v '^ *+' conftest.er1 >conftest.err
34516 cat conftest.err >&5
34517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34518 (exit $ac_status); } &&
34519 { ac_try='test -z "$ac_c_werror_flag"
34520 || test ! -s conftest.err'
34521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34522 (eval $ac_try) 2>&5
34524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34525 (exit $ac_status); }; } &&
34526 { ac_try='test -s conftest$ac_exeext'
34527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34528 (eval $ac_try) 2>&5
34530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34531 (exit $ac_status); }; }; then
34532 eval "$as_ac_var=yes"
34534 echo "$as_me: failed program was:" >&5
34535 sed 's/^/| /' conftest.$ac_ext >&5
34537 eval "$as_ac_var=no"
34539 rm -f conftest.err conftest.$ac_objext \
34540 conftest$ac_exeext conftest.$ac_ext
34542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34543 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34544 if test `eval echo '${'$as_ac_var'}'` = yes; then
34545 cat >>confdefs.h <<_ACEOF
34546 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34555 for ac_func in pthread_kill_other_threads_np
34557 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34558 echo "$as_me:$LINENO: checking for $ac_func" >&5
34559 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34560 if eval "test \"\${$as_ac_var+set}\" = set"; then
34561 echo $ECHO_N "(cached) $ECHO_C" >&6
34563 cat >conftest.$ac_ext <<_ACEOF
34566 cat confdefs.h >>conftest.$ac_ext
34567 cat >>conftest.$ac_ext <<_ACEOF
34568 /* end confdefs.h. */
34569 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34570 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34571 #define $ac_func innocuous_$ac_func
34573 /* System header to define __stub macros and hopefully few prototypes,
34574 which can conflict with char $ac_func (); below.
34575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34576 <limits.h> exists even on freestanding compilers. */
34579 # include <limits.h>
34581 # include <assert.h>
34586 /* Override any gcc2 internal prototype to avoid an error. */
34591 /* We use char because int might match the return type of a gcc2
34592 builtin and then its argument prototype would still apply. */
34594 /* The GNU C library defines this for functions which it implements
34595 to always fail with ENOSYS. Some functions are actually named
34596 something starting with __ and the normal name is an alias. */
34597 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34600 char (*f) () = $ac_func;
34609 return f != $ac_func;
34614 rm -f conftest.$ac_objext conftest$ac_exeext
34615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34616 (eval $ac_link) 2>conftest.er1
34618 grep -v '^ *+' conftest.er1 >conftest.err
34620 cat conftest.err >&5
34621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34622 (exit $ac_status); } &&
34623 { ac_try='test -z "$ac_c_werror_flag"
34624 || test ! -s conftest.err'
34625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34626 (eval $ac_try) 2>&5
34628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34629 (exit $ac_status); }; } &&
34630 { ac_try='test -s conftest$ac_exeext'
34631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34632 (eval $ac_try) 2>&5
34634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34635 (exit $ac_status); }; }; then
34636 eval "$as_ac_var=yes"
34638 echo "$as_me: failed program was:" >&5
34639 sed 's/^/| /' conftest.$ac_ext >&5
34641 eval "$as_ac_var=no"
34643 rm -f conftest.err conftest.$ac_objext \
34644 conftest$ac_exeext conftest.$ac_ext
34646 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34647 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34648 if test `eval echo '${'$as_ac_var'}'` = yes; then
34649 cat >>confdefs.h <<_ACEOF
34650 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34656 echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
34657 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
34658 if test "${ol_cv_sys_linux_threads+set}" = set; then
34659 echo $ECHO_N "(cached) $ECHO_C" >&6
34661 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
34663 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
34664 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
34669 echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
34670 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
34671 if test "${ol_cv_linux_threads+set}" = set; then
34672 echo $ECHO_N "(cached) $ECHO_C" >&6
34675 if test $ol_cv_header_linux_threads = yes -a \
34676 $ol_cv_sys_linux_threads = yes; then
34677 ol_cv_linux_threads=yes
34678 elif test $ol_cv_header_linux_threads = no -a \
34679 $ol_cv_sys_linux_threads = no; then
34680 ol_cv_linux_threads=no
34682 ol_cv_linux_threads=error
34686 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
34687 echo "${ECHO_T}$ol_cv_linux_threads" >&6
34690 if test $ol_cv_linux_threads = error; then
34691 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
34692 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
34693 { (exit 1); exit 1; }; };
34696 echo "$as_me:$LINENO: checking if pthread_create() works" >&5
34697 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
34698 if test "${ol_cv_pthread_create_works+set}" = set; then
34699 echo $ECHO_N "(cached) $ECHO_C" >&6
34702 if test "$cross_compiling" = yes; then
34703 ol_cv_pthread_create_works=yes
34705 cat >conftest.$ac_ext <<_ACEOF
34708 cat confdefs.h >>conftest.$ac_ext
34709 cat >>conftest.$ac_ext <<_ACEOF
34710 /* end confdefs.h. */
34711 /* pthread test headers */
34712 #include <pthread.h>
34713 #if HAVE_PTHREADS < 7
34717 #define NULL (void*)0
34720 static void *task(p)
34723 return (void *) (p == NULL);
34727 int main(argc, argv)
34732 /* pthread test function */
34733 #ifndef PTHREAD_CREATE_DETACHED
34734 #define PTHREAD_CREATE_DETACHED 1
34738 int detach = PTHREAD_CREATE_DETACHED;
34740 #if HAVE_PTHREADS > 4
34741 /* Final pthreads */
34742 pthread_attr_t attr;
34744 status = pthread_attr_init(&attr);
34745 if( status ) return status;
34747 #if HAVE_PTHREADS < 7
34748 status = pthread_attr_setdetachstate(&attr, &detach);
34749 if( status < 0 ) status = errno;
34751 status = pthread_attr_setdetachstate(&attr, detach);
34753 if( status ) return status;
34754 status = pthread_create( &t, &attr, task, NULL );
34755 #if HAVE_PTHREADS < 7
34756 if( status < 0 ) status = errno;
34758 if( status ) return status;
34760 /* Draft 4 pthreads */
34761 status = pthread_create( &t, pthread_attr_default, task, NULL );
34762 if( status ) return errno;
34764 /* give thread a chance to complete */
34765 /* it should remain joinable and hence detachable */
34768 status = pthread_detach( &t );
34769 if( status ) return errno;
34772 #ifdef HAVE_LINUX_THREADS
34773 pthread_kill_other_threads_np();
34781 rm -f conftest$ac_exeext
34782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34783 (eval $ac_link) 2>&5
34785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34786 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34788 (eval $ac_try) 2>&5
34790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34791 (exit $ac_status); }; }; then
34792 ol_cv_pthread_create_works=yes
34794 echo "$as_me: program exited with status $ac_status" >&5
34795 echo "$as_me: failed program was:" >&5
34796 sed 's/^/| /' conftest.$ac_ext >&5
34798 ( exit $ac_status )
34799 ol_cv_pthread_create_works=no
34801 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34804 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
34805 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
34807 if test $ol_cv_pthread_create_works = no ; then
34808 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
34809 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
34810 { (exit 1); exit 1; }; }
34813 if test $ol_with_yielding_select = auto ; then
34814 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
34815 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
34816 if test "${ol_cv_pthread_select_yields+set}" = set; then
34817 echo $ECHO_N "(cached) $ECHO_C" >&6
34820 if test "$cross_compiling" = yes; then
34821 ol_cv_pthread_select_yields=cross
34823 cat >conftest.$ac_ext <<_ACEOF
34826 cat confdefs.h >>conftest.$ac_ext
34827 cat >>conftest.$ac_ext <<_ACEOF
34828 /* end confdefs.h. */
34830 #include <sys/types.h>
34831 #include <sys/time.h>
34832 #include <unistd.h>
34833 #include <pthread.h>
34835 #define NULL (void*) 0
34838 static int fildes[2];
34840 static void *task(p)
34852 FD_SET(fildes[0], &rfds);
34854 /* we're not interested in any fds */
34855 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
34862 exit(0); /* if we exit here, the select blocked the whole process */
34865 int main(argc, argv)
34871 /* create a pipe to select */
34872 if(pipe(&fildes[0])) {
34877 #ifdef HAVE_PTHREAD_SETCONCURRENCY
34878 (void) pthread_setconcurrency(2);
34880 #ifdef HAVE_THR_SETCONCURRENCY
34881 /* Set Solaris LWP concurrency to 2 */
34882 thr_setconcurrency(2);
34886 #if HAVE_PTHREADS < 6
34887 pthread_create(&t, pthread_attr_default, task, NULL);
34889 pthread_create(&t, NULL, task, NULL);
34892 /* make sure task runs first */
34895 #elif defined( HAVE_SCHED_YIELD )
34897 #elif defined( HAVE_PTHREAD_YIELD )
34904 rm -f conftest$ac_exeext
34905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34906 (eval $ac_link) 2>&5
34908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34909 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34911 (eval $ac_try) 2>&5
34913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34914 (exit $ac_status); }; }; then
34915 ol_cv_pthread_select_yields=no
34917 echo "$as_me: program exited with status $ac_status" >&5
34918 echo "$as_me: failed program was:" >&5
34919 sed 's/^/| /' conftest.$ac_ext >&5
34921 ( exit $ac_status )
34922 ol_cv_pthread_select_yields=yes
34924 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34927 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
34928 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
34930 if test $ol_cv_pthread_select_yields = cross ; then
34931 { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
34932 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
34933 { (exit 1); exit 1; }; }
34936 if test $ol_cv_pthread_select_yields = yes ; then
34937 ol_with_yielding_select=yes
34941 CPPFLAGS="$save_CPPFLAGS"
34944 { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
34945 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
34946 { (exit 1); exit 1; }; }
34950 if test $ol_with_threads = posix ; then
34951 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
34952 echo "$as_me: error: could not locate POSIX Threads" >&2;}
34953 { (exit 1); exit 1; }; }
34957 if test $ol_with_threads = auto -o $ol_with_threads = yes \
34958 -o $ol_with_threads = mach ; then
34962 for ac_header in mach/cthreads.h cthreads.h
34964 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34965 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34966 echo "$as_me:$LINENO: checking for $ac_header" >&5
34967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34969 echo $ECHO_N "(cached) $ECHO_C" >&6
34971 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34972 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34974 # Is the header compilable?
34975 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34976 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34977 cat >conftest.$ac_ext <<_ACEOF
34980 cat confdefs.h >>conftest.$ac_ext
34981 cat >>conftest.$ac_ext <<_ACEOF
34982 /* end confdefs.h. */
34983 $ac_includes_default
34984 #include <$ac_header>
34986 rm -f conftest.$ac_objext
34987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34988 (eval $ac_compile) 2>conftest.er1
34990 grep -v '^ *+' conftest.er1 >conftest.err
34992 cat conftest.err >&5
34993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34994 (exit $ac_status); } &&
34995 { ac_try='test -z "$ac_c_werror_flag"
34996 || test ! -s conftest.err'
34997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34998 (eval $ac_try) 2>&5
35000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35001 (exit $ac_status); }; } &&
35002 { ac_try='test -s conftest.$ac_objext'
35003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35004 (eval $ac_try) 2>&5
35006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35007 (exit $ac_status); }; }; then
35008 ac_header_compiler=yes
35010 echo "$as_me: failed program was:" >&5
35011 sed 's/^/| /' conftest.$ac_ext >&5
35013 ac_header_compiler=no
35015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35016 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35017 echo "${ECHO_T}$ac_header_compiler" >&6
35019 # Is the header present?
35020 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35021 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35022 cat >conftest.$ac_ext <<_ACEOF
35025 cat confdefs.h >>conftest.$ac_ext
35026 cat >>conftest.$ac_ext <<_ACEOF
35027 /* end confdefs.h. */
35028 #include <$ac_header>
35030 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35031 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35033 grep -v '^ *+' conftest.er1 >conftest.err
35035 cat conftest.err >&5
35036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35037 (exit $ac_status); } >/dev/null; then
35038 if test -s conftest.err; then
35039 ac_cpp_err=$ac_c_preproc_warn_flag
35040 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35047 if test -z "$ac_cpp_err"; then
35048 ac_header_preproc=yes
35050 echo "$as_me: failed program was:" >&5
35051 sed 's/^/| /' conftest.$ac_ext >&5
35053 ac_header_preproc=no
35055 rm -f conftest.err conftest.$ac_ext
35056 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35057 echo "${ECHO_T}$ac_header_preproc" >&6
35059 # So? What about this header?
35060 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35062 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35063 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35064 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35065 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35066 ac_header_preproc=yes
35069 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35070 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35071 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35072 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35073 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35074 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35075 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35076 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35077 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35078 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35079 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35080 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35083 ## ------------------------------------------ ##
35084 ## Report this to the AC_PACKAGE_NAME lists. ##
35085 ## ------------------------------------------ ##
35088 sed "s/^/$as_me: WARNING: /" >&2
35091 echo "$as_me:$LINENO: checking for $ac_header" >&5
35092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35093 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35094 echo $ECHO_N "(cached) $ECHO_C" >&6
35096 eval "$as_ac_Header=\$ac_header_preproc"
35098 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35099 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35102 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35103 cat >>confdefs.h <<_ACEOF
35104 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35111 if test $ac_cv_header_mach_cthreads_h = yes ; then
35112 ol_with_threads=found
35114 echo "$as_me:$LINENO: checking for cthread_fork" >&5
35115 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
35116 if test "${ac_cv_func_cthread_fork+set}" = set; then
35117 echo $ECHO_N "(cached) $ECHO_C" >&6
35119 cat >conftest.$ac_ext <<_ACEOF
35122 cat confdefs.h >>conftest.$ac_ext
35123 cat >>conftest.$ac_ext <<_ACEOF
35124 /* end confdefs.h. */
35125 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
35126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35127 #define cthread_fork innocuous_cthread_fork
35129 /* System header to define __stub macros and hopefully few prototypes,
35130 which can conflict with char cthread_fork (); below.
35131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35132 <limits.h> exists even on freestanding compilers. */
35135 # include <limits.h>
35137 # include <assert.h>
35140 #undef cthread_fork
35142 /* Override any gcc2 internal prototype to avoid an error. */
35147 /* We use char because int might match the return type of a gcc2
35148 builtin and then its argument prototype would still apply. */
35149 char cthread_fork ();
35150 /* The GNU C library defines this for functions which it implements
35151 to always fail with ENOSYS. Some functions are actually named
35152 something starting with __ and the normal name is an alias. */
35153 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
35156 char (*f) () = cthread_fork;
35165 return f != cthread_fork;
35170 rm -f conftest.$ac_objext conftest$ac_exeext
35171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35172 (eval $ac_link) 2>conftest.er1
35174 grep -v '^ *+' conftest.er1 >conftest.err
35176 cat conftest.err >&5
35177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35178 (exit $ac_status); } &&
35179 { ac_try='test -z "$ac_c_werror_flag"
35180 || test ! -s conftest.err'
35181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35182 (eval $ac_try) 2>&5
35184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35185 (exit $ac_status); }; } &&
35186 { ac_try='test -s conftest$ac_exeext'
35187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35188 (eval $ac_try) 2>&5
35190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35191 (exit $ac_status); }; }; then
35192 ac_cv_func_cthread_fork=yes
35194 echo "$as_me: failed program was:" >&5
35195 sed 's/^/| /' conftest.$ac_ext >&5
35197 ac_cv_func_cthread_fork=no
35199 rm -f conftest.err conftest.$ac_objext \
35200 conftest$ac_exeext conftest.$ac_ext
35202 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
35203 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
35204 if test $ac_cv_func_cthread_fork = yes; then
35205 ol_link_threads=yes
35209 if test $ol_link_threads = no ; then
35210 echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
35211 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
35212 if test "${ol_cv_cthread_all_load+set}" = set; then
35213 echo $ECHO_N "(cached) $ECHO_C" >&6
35217 LIBS="-all_load $LIBS"
35218 cat >conftest.$ac_ext <<_ACEOF
35221 cat confdefs.h >>conftest.$ac_ext
35222 cat >>conftest.$ac_ext <<_ACEOF
35223 /* end confdefs.h. */
35224 #include <mach/cthreads.h>
35229 cthread_fork((void *)0, (void *)0);
35235 rm -f conftest.$ac_objext conftest$ac_exeext
35236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35237 (eval $ac_link) 2>conftest.er1
35239 grep -v '^ *+' conftest.er1 >conftest.err
35241 cat conftest.err >&5
35242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35243 (exit $ac_status); } &&
35244 { ac_try='test -z "$ac_c_werror_flag"
35245 || test ! -s conftest.err'
35246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35247 (eval $ac_try) 2>&5
35249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35250 (exit $ac_status); }; } &&
35251 { ac_try='test -s conftest$ac_exeext'
35252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35253 (eval $ac_try) 2>&5
35255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35256 (exit $ac_status); }; }; then
35257 ol_cv_cthread_all_load=yes
35259 echo "$as_me: failed program was:" >&5
35260 sed 's/^/| /' conftest.$ac_ext >&5
35262 ol_cv_cthread_all_load=no
35264 rm -f conftest.err conftest.$ac_objext \
35265 conftest$ac_exeext conftest.$ac_ext
35269 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
35270 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
35272 if test $ol_cv_cthread_all_load = yes ; then
35273 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
35274 ol_link_threads=mach
35275 ol_with_threads=found
35279 elif test $ac_cv_header_cthreads_h = yes ; then
35281 ol_with_threads=found
35284 LIBS="$LIBS -lthreads"
35285 echo "$as_me:$LINENO: checking for cthread_fork" >&5
35286 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
35287 if test "${ac_cv_func_cthread_fork+set}" = set; then
35288 echo $ECHO_N "(cached) $ECHO_C" >&6
35290 cat >conftest.$ac_ext <<_ACEOF
35293 cat confdefs.h >>conftest.$ac_ext
35294 cat >>conftest.$ac_ext <<_ACEOF
35295 /* end confdefs.h. */
35296 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
35297 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35298 #define cthread_fork innocuous_cthread_fork
35300 /* System header to define __stub macros and hopefully few prototypes,
35301 which can conflict with char cthread_fork (); below.
35302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35303 <limits.h> exists even on freestanding compilers. */
35306 # include <limits.h>
35308 # include <assert.h>
35311 #undef cthread_fork
35313 /* Override any gcc2 internal prototype to avoid an error. */
35318 /* We use char because int might match the return type of a gcc2
35319 builtin and then its argument prototype would still apply. */
35320 char cthread_fork ();
35321 /* The GNU C library defines this for functions which it implements
35322 to always fail with ENOSYS. Some functions are actually named
35323 something starting with __ and the normal name is an alias. */
35324 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
35327 char (*f) () = cthread_fork;
35336 return f != cthread_fork;
35341 rm -f conftest.$ac_objext conftest$ac_exeext
35342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35343 (eval $ac_link) 2>conftest.er1
35345 grep -v '^ *+' conftest.er1 >conftest.err
35347 cat conftest.err >&5
35348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35349 (exit $ac_status); } &&
35350 { ac_try='test -z "$ac_c_werror_flag"
35351 || test ! -s conftest.err'
35352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35353 (eval $ac_try) 2>&5
35355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35356 (exit $ac_status); }; } &&
35357 { ac_try='test -s conftest$ac_exeext'
35358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35359 (eval $ac_try) 2>&5
35361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35362 (exit $ac_status); }; }; then
35363 ac_cv_func_cthread_fork=yes
35365 echo "$as_me: failed program was:" >&5
35366 sed 's/^/| /' conftest.$ac_ext >&5
35368 ac_cv_func_cthread_fork=no
35370 rm -f conftest.err conftest.$ac_objext \
35371 conftest$ac_exeext conftest.$ac_ext
35373 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
35374 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
35375 if test $ac_cv_func_cthread_fork = yes; then
35376 ol_link_threads=yes
35381 if test $ol_link_threads = yes ; then
35382 LTHREAD_LIBS="-lthreads"
35383 ol_link_threads=mach
35384 ol_with_threads=found
35386 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
35387 echo "$as_me: error: could not link with Mach CThreads" >&2;}
35388 { (exit 1); exit 1; }; }
35391 elif test $ol_with_threads = mach ; then
35392 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
35393 echo "$as_me: error: could not locate Mach CThreads" >&2;}
35394 { (exit 1); exit 1; }; }
35397 if test $ol_link_threads = mach ; then
35399 cat >>confdefs.h <<\_ACEOF
35400 #define HAVE_MACH_CTHREADS 1
35403 elif test $ol_with_threads = found ; then
35404 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
35405 echo "$as_me: error: could not link with Mach CThreads" >&2;}
35406 { (exit 1); exit 1; }; }
35410 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35411 -o $ol_with_threads = pth ; then
35414 for ac_header in pth.h
35416 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35418 echo "$as_me:$LINENO: checking for $ac_header" >&5
35419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35421 echo $ECHO_N "(cached) $ECHO_C" >&6
35423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35424 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35426 # Is the header compilable?
35427 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35428 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35429 cat >conftest.$ac_ext <<_ACEOF
35432 cat confdefs.h >>conftest.$ac_ext
35433 cat >>conftest.$ac_ext <<_ACEOF
35434 /* end confdefs.h. */
35435 $ac_includes_default
35436 #include <$ac_header>
35438 rm -f conftest.$ac_objext
35439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35440 (eval $ac_compile) 2>conftest.er1
35442 grep -v '^ *+' conftest.er1 >conftest.err
35444 cat conftest.err >&5
35445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35446 (exit $ac_status); } &&
35447 { ac_try='test -z "$ac_c_werror_flag"
35448 || test ! -s conftest.err'
35449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35450 (eval $ac_try) 2>&5
35452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35453 (exit $ac_status); }; } &&
35454 { ac_try='test -s conftest.$ac_objext'
35455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35456 (eval $ac_try) 2>&5
35458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35459 (exit $ac_status); }; }; then
35460 ac_header_compiler=yes
35462 echo "$as_me: failed program was:" >&5
35463 sed 's/^/| /' conftest.$ac_ext >&5
35465 ac_header_compiler=no
35467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35468 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35469 echo "${ECHO_T}$ac_header_compiler" >&6
35471 # Is the header present?
35472 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35473 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35474 cat >conftest.$ac_ext <<_ACEOF
35477 cat confdefs.h >>conftest.$ac_ext
35478 cat >>conftest.$ac_ext <<_ACEOF
35479 /* end confdefs.h. */
35480 #include <$ac_header>
35482 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35483 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35485 grep -v '^ *+' conftest.er1 >conftest.err
35487 cat conftest.err >&5
35488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35489 (exit $ac_status); } >/dev/null; then
35490 if test -s conftest.err; then
35491 ac_cpp_err=$ac_c_preproc_warn_flag
35492 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35499 if test -z "$ac_cpp_err"; then
35500 ac_header_preproc=yes
35502 echo "$as_me: failed program was:" >&5
35503 sed 's/^/| /' conftest.$ac_ext >&5
35505 ac_header_preproc=no
35507 rm -f conftest.err conftest.$ac_ext
35508 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35509 echo "${ECHO_T}$ac_header_preproc" >&6
35511 # So? What about this header?
35512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35514 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35515 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35517 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35518 ac_header_preproc=yes
35521 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35522 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35523 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35524 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35525 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35526 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35527 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35528 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35530 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35531 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35532 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35535 ## ------------------------------------------ ##
35536 ## Report this to the AC_PACKAGE_NAME lists. ##
35537 ## ------------------------------------------ ##
35540 sed "s/^/$as_me: WARNING: /" >&2
35543 echo "$as_me:$LINENO: checking for $ac_header" >&5
35544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35546 echo $ECHO_N "(cached) $ECHO_C" >&6
35548 eval "$as_ac_Header=\$ac_header_preproc"
35550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35555 cat >>confdefs.h <<_ACEOF
35556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35564 if test $ac_cv_header_pth_h = yes ; then
35565 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
35566 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
35567 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
35568 echo $ECHO_N "(cached) $ECHO_C" >&6
35570 ac_check_lib_save_LIBS=$LIBS
35572 cat >conftest.$ac_ext <<_ACEOF
35575 cat confdefs.h >>conftest.$ac_ext
35576 cat >>conftest.$ac_ext <<_ACEOF
35577 /* end confdefs.h. */
35579 /* Override any gcc2 internal prototype to avoid an error. */
35583 /* We use char because int might match the return type of a gcc2
35584 builtin and then its argument prototype would still apply. */
35585 char pth_version ();
35594 rm -f conftest.$ac_objext conftest$ac_exeext
35595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35596 (eval $ac_link) 2>conftest.er1
35598 grep -v '^ *+' conftest.er1 >conftest.err
35600 cat conftest.err >&5
35601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35602 (exit $ac_status); } &&
35603 { ac_try='test -z "$ac_c_werror_flag"
35604 || test ! -s conftest.err'
35605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35606 (eval $ac_try) 2>&5
35608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35609 (exit $ac_status); }; } &&
35610 { ac_try='test -s conftest$ac_exeext'
35611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35612 (eval $ac_try) 2>&5
35614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35615 (exit $ac_status); }; }; then
35616 ac_cv_lib_pth_pth_version=yes
35618 echo "$as_me: failed program was:" >&5
35619 sed 's/^/| /' conftest.$ac_ext >&5
35621 ac_cv_lib_pth_pth_version=no
35623 rm -f conftest.err conftest.$ac_objext \
35624 conftest$ac_exeext conftest.$ac_ext
35625 LIBS=$ac_check_lib_save_LIBS
35627 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
35628 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
35629 if test $ac_cv_lib_pth_pth_version = yes; then
35636 if test $have_pth = yes ; then
35638 cat >>confdefs.h <<\_ACEOF
35639 #define HAVE_GNU_PTH 1
35642 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
35643 ol_link_threads=pth
35644 ol_with_threads=found
35646 if test $ol_with_yielding_select = auto ; then
35647 ol_with_yielding_select=yes
35653 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35654 -o $ol_with_threads = lwp ; then
35658 for ac_header in thread.h synch.h
35660 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35662 echo "$as_me:$LINENO: checking for $ac_header" >&5
35663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35665 echo $ECHO_N "(cached) $ECHO_C" >&6
35667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35668 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35670 # Is the header compilable?
35671 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35672 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35673 cat >conftest.$ac_ext <<_ACEOF
35676 cat confdefs.h >>conftest.$ac_ext
35677 cat >>conftest.$ac_ext <<_ACEOF
35678 /* end confdefs.h. */
35679 $ac_includes_default
35680 #include <$ac_header>
35682 rm -f conftest.$ac_objext
35683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35684 (eval $ac_compile) 2>conftest.er1
35686 grep -v '^ *+' conftest.er1 >conftest.err
35688 cat conftest.err >&5
35689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35690 (exit $ac_status); } &&
35691 { ac_try='test -z "$ac_c_werror_flag"
35692 || test ! -s conftest.err'
35693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35694 (eval $ac_try) 2>&5
35696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35697 (exit $ac_status); }; } &&
35698 { ac_try='test -s conftest.$ac_objext'
35699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35700 (eval $ac_try) 2>&5
35702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35703 (exit $ac_status); }; }; then
35704 ac_header_compiler=yes
35706 echo "$as_me: failed program was:" >&5
35707 sed 's/^/| /' conftest.$ac_ext >&5
35709 ac_header_compiler=no
35711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35712 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35713 echo "${ECHO_T}$ac_header_compiler" >&6
35715 # Is the header present?
35716 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35717 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35718 cat >conftest.$ac_ext <<_ACEOF
35721 cat confdefs.h >>conftest.$ac_ext
35722 cat >>conftest.$ac_ext <<_ACEOF
35723 /* end confdefs.h. */
35724 #include <$ac_header>
35726 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35727 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35729 grep -v '^ *+' conftest.er1 >conftest.err
35731 cat conftest.err >&5
35732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35733 (exit $ac_status); } >/dev/null; then
35734 if test -s conftest.err; then
35735 ac_cpp_err=$ac_c_preproc_warn_flag
35736 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35743 if test -z "$ac_cpp_err"; then
35744 ac_header_preproc=yes
35746 echo "$as_me: failed program was:" >&5
35747 sed 's/^/| /' conftest.$ac_ext >&5
35749 ac_header_preproc=no
35751 rm -f conftest.err conftest.$ac_ext
35752 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35753 echo "${ECHO_T}$ac_header_preproc" >&6
35755 # So? What about this header?
35756 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35758 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35759 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35761 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35762 ac_header_preproc=yes
35765 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35766 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35767 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35768 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35769 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35770 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35771 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35772 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35774 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35775 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35776 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35779 ## ------------------------------------------ ##
35780 ## Report this to the AC_PACKAGE_NAME lists. ##
35781 ## ------------------------------------------ ##
35784 sed "s/^/$as_me: WARNING: /" >&2
35787 echo "$as_me:$LINENO: checking for $ac_header" >&5
35788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35789 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35790 echo $ECHO_N "(cached) $ECHO_C" >&6
35792 eval "$as_ac_Header=\$ac_header_preproc"
35794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35798 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35799 cat >>confdefs.h <<_ACEOF
35800 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35807 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
35808 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
35809 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
35810 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
35811 echo $ECHO_N "(cached) $ECHO_C" >&6
35813 ac_check_lib_save_LIBS=$LIBS
35814 LIBS="-lthread $LIBS"
35815 cat >conftest.$ac_ext <<_ACEOF
35818 cat confdefs.h >>conftest.$ac_ext
35819 cat >>conftest.$ac_ext <<_ACEOF
35820 /* end confdefs.h. */
35822 /* Override any gcc2 internal prototype to avoid an error. */
35826 /* We use char because int might match the return type of a gcc2
35827 builtin and then its argument prototype would still apply. */
35828 char thr_create ();
35837 rm -f conftest.$ac_objext conftest$ac_exeext
35838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35839 (eval $ac_link) 2>conftest.er1
35841 grep -v '^ *+' conftest.er1 >conftest.err
35843 cat conftest.err >&5
35844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35845 (exit $ac_status); } &&
35846 { ac_try='test -z "$ac_c_werror_flag"
35847 || test ! -s conftest.err'
35848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35849 (eval $ac_try) 2>&5
35851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35852 (exit $ac_status); }; } &&
35853 { ac_try='test -s conftest$ac_exeext'
35854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35855 (eval $ac_try) 2>&5
35857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35858 (exit $ac_status); }; }; then
35859 ac_cv_lib_thread_thr_create=yes
35861 echo "$as_me: failed program was:" >&5
35862 sed 's/^/| /' conftest.$ac_ext >&5
35864 ac_cv_lib_thread_thr_create=no
35866 rm -f conftest.err conftest.$ac_objext \
35867 conftest$ac_exeext conftest.$ac_ext
35868 LIBS=$ac_check_lib_save_LIBS
35870 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
35871 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
35872 if test $ac_cv_lib_thread_thr_create = yes; then
35879 if test $have_thr = yes ; then
35881 cat >>confdefs.h <<\_ACEOF
35885 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
35886 ol_link_threads=thr
35888 if test $ol_with_yielding_select = auto ; then
35889 ol_with_yielding_select=yes
35895 thr_setconcurrency \
35896 thr_getconcurrency \
35899 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35900 echo "$as_me:$LINENO: checking for $ac_func" >&5
35901 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35902 if eval "test \"\${$as_ac_var+set}\" = set"; then
35903 echo $ECHO_N "(cached) $ECHO_C" >&6
35905 cat >conftest.$ac_ext <<_ACEOF
35908 cat confdefs.h >>conftest.$ac_ext
35909 cat >>conftest.$ac_ext <<_ACEOF
35910 /* end confdefs.h. */
35911 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35913 #define $ac_func innocuous_$ac_func
35915 /* System header to define __stub macros and hopefully few prototypes,
35916 which can conflict with char $ac_func (); below.
35917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35918 <limits.h> exists even on freestanding compilers. */
35921 # include <limits.h>
35923 # include <assert.h>
35928 /* Override any gcc2 internal prototype to avoid an error. */
35933 /* We use char because int might match the return type of a gcc2
35934 builtin and then its argument prototype would still apply. */
35936 /* The GNU C library defines this for functions which it implements
35937 to always fail with ENOSYS. Some functions are actually named
35938 something starting with __ and the normal name is an alias. */
35939 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35942 char (*f) () = $ac_func;
35951 return f != $ac_func;
35956 rm -f conftest.$ac_objext conftest$ac_exeext
35957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35958 (eval $ac_link) 2>conftest.er1
35960 grep -v '^ *+' conftest.er1 >conftest.err
35962 cat conftest.err >&5
35963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35964 (exit $ac_status); } &&
35965 { ac_try='test -z "$ac_c_werror_flag"
35966 || test ! -s conftest.err'
35967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35968 (eval $ac_try) 2>&5
35970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35971 (exit $ac_status); }; } &&
35972 { ac_try='test -s conftest$ac_exeext'
35973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35974 (eval $ac_try) 2>&5
35976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35977 (exit $ac_status); }; }; then
35978 eval "$as_ac_var=yes"
35980 echo "$as_me: failed program was:" >&5
35981 sed 's/^/| /' conftest.$ac_ext >&5
35983 eval "$as_ac_var=no"
35985 rm -f conftest.err conftest.$ac_objext \
35986 conftest$ac_exeext conftest.$ac_ext
35988 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35989 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35990 if test `eval echo '${'$as_ac_var'}'` = yes; then
35991 cat >>confdefs.h <<_ACEOF
35992 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36002 for ac_header in lwp/lwp.h
36004 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36005 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36006 echo "$as_me:$LINENO: checking for $ac_header" >&5
36007 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36008 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36009 echo $ECHO_N "(cached) $ECHO_C" >&6
36011 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36012 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36014 # Is the header compilable?
36015 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36016 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36017 cat >conftest.$ac_ext <<_ACEOF
36020 cat confdefs.h >>conftest.$ac_ext
36021 cat >>conftest.$ac_ext <<_ACEOF
36022 /* end confdefs.h. */
36023 $ac_includes_default
36024 #include <$ac_header>
36026 rm -f conftest.$ac_objext
36027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36028 (eval $ac_compile) 2>conftest.er1
36030 grep -v '^ *+' conftest.er1 >conftest.err
36032 cat conftest.err >&5
36033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36034 (exit $ac_status); } &&
36035 { ac_try='test -z "$ac_c_werror_flag"
36036 || test ! -s conftest.err'
36037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36038 (eval $ac_try) 2>&5
36040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36041 (exit $ac_status); }; } &&
36042 { ac_try='test -s conftest.$ac_objext'
36043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36044 (eval $ac_try) 2>&5
36046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36047 (exit $ac_status); }; }; then
36048 ac_header_compiler=yes
36050 echo "$as_me: failed program was:" >&5
36051 sed 's/^/| /' conftest.$ac_ext >&5
36053 ac_header_compiler=no
36055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36056 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36057 echo "${ECHO_T}$ac_header_compiler" >&6
36059 # Is the header present?
36060 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36061 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36062 cat >conftest.$ac_ext <<_ACEOF
36065 cat confdefs.h >>conftest.$ac_ext
36066 cat >>conftest.$ac_ext <<_ACEOF
36067 /* end confdefs.h. */
36068 #include <$ac_header>
36070 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36071 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36073 grep -v '^ *+' conftest.er1 >conftest.err
36075 cat conftest.err >&5
36076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36077 (exit $ac_status); } >/dev/null; then
36078 if test -s conftest.err; then
36079 ac_cpp_err=$ac_c_preproc_warn_flag
36080 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36087 if test -z "$ac_cpp_err"; then
36088 ac_header_preproc=yes
36090 echo "$as_me: failed program was:" >&5
36091 sed 's/^/| /' conftest.$ac_ext >&5
36093 ac_header_preproc=no
36095 rm -f conftest.err conftest.$ac_ext
36096 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36097 echo "${ECHO_T}$ac_header_preproc" >&6
36099 # So? What about this header?
36100 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36102 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36103 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36104 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36105 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36106 ac_header_preproc=yes
36109 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36110 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36111 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36112 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36113 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36114 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36115 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36116 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36118 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36119 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36120 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36123 ## ------------------------------------------ ##
36124 ## Report this to the AC_PACKAGE_NAME lists. ##
36125 ## ------------------------------------------ ##
36128 sed "s/^/$as_me: WARNING: /" >&2
36131 echo "$as_me:$LINENO: checking for $ac_header" >&5
36132 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36133 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36134 echo $ECHO_N "(cached) $ECHO_C" >&6
36136 eval "$as_ac_Header=\$ac_header_preproc"
36138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36139 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36142 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36143 cat >>confdefs.h <<_ACEOF
36144 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36151 if test $ac_cv_header_lwp_lwp_h = yes ; then
36152 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
36153 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
36154 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
36155 echo $ECHO_N "(cached) $ECHO_C" >&6
36157 ac_check_lib_save_LIBS=$LIBS
36159 cat >conftest.$ac_ext <<_ACEOF
36162 cat confdefs.h >>conftest.$ac_ext
36163 cat >>conftest.$ac_ext <<_ACEOF
36164 /* end confdefs.h. */
36166 /* Override any gcc2 internal prototype to avoid an error. */
36170 /* We use char because int might match the return type of a gcc2
36171 builtin and then its argument prototype would still apply. */
36172 char lwp_create ();
36181 rm -f conftest.$ac_objext conftest$ac_exeext
36182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36183 (eval $ac_link) 2>conftest.er1
36185 grep -v '^ *+' conftest.er1 >conftest.err
36187 cat conftest.err >&5
36188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36189 (exit $ac_status); } &&
36190 { ac_try='test -z "$ac_c_werror_flag"
36191 || test ! -s conftest.err'
36192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36193 (eval $ac_try) 2>&5
36195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36196 (exit $ac_status); }; } &&
36197 { ac_try='test -s conftest$ac_exeext'
36198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36199 (eval $ac_try) 2>&5
36201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36202 (exit $ac_status); }; }; then
36203 ac_cv_lib_lwp_lwp_create=yes
36205 echo "$as_me: failed program was:" >&5
36206 sed 's/^/| /' conftest.$ac_ext >&5
36208 ac_cv_lib_lwp_lwp_create=no
36210 rm -f conftest.err conftest.$ac_objext \
36211 conftest$ac_exeext conftest.$ac_ext
36212 LIBS=$ac_check_lib_save_LIBS
36214 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
36215 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
36216 if test $ac_cv_lib_lwp_lwp_create = yes; then
36223 if test $have_lwp = yes ; then
36225 cat >>confdefs.h <<\_ACEOF
36229 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
36230 ol_link_threads=lwp
36232 if test $ol_with_yielding_select = auto ; then
36233 ol_with_yielding_select=no
36239 if test $ol_with_yielding_select = yes ; then
36241 cat >>confdefs.h <<\_ACEOF
36242 #define HAVE_YIELDING_SELECT 1
36247 if test $ol_with_threads = manual ; then
36248 ol_link_threads=yes
36250 { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
36251 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
36255 for ac_header in pthread.h sched.h
36257 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36259 echo "$as_me:$LINENO: checking for $ac_header" >&5
36260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36261 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36262 echo $ECHO_N "(cached) $ECHO_C" >&6
36264 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36265 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36267 # Is the header compilable?
36268 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36269 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36270 cat >conftest.$ac_ext <<_ACEOF
36273 cat confdefs.h >>conftest.$ac_ext
36274 cat >>conftest.$ac_ext <<_ACEOF
36275 /* end confdefs.h. */
36276 $ac_includes_default
36277 #include <$ac_header>
36279 rm -f conftest.$ac_objext
36280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36281 (eval $ac_compile) 2>conftest.er1
36283 grep -v '^ *+' conftest.er1 >conftest.err
36285 cat conftest.err >&5
36286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36287 (exit $ac_status); } &&
36288 { ac_try='test -z "$ac_c_werror_flag"
36289 || test ! -s conftest.err'
36290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36291 (eval $ac_try) 2>&5
36293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36294 (exit $ac_status); }; } &&
36295 { ac_try='test -s conftest.$ac_objext'
36296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36297 (eval $ac_try) 2>&5
36299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36300 (exit $ac_status); }; }; then
36301 ac_header_compiler=yes
36303 echo "$as_me: failed program was:" >&5
36304 sed 's/^/| /' conftest.$ac_ext >&5
36306 ac_header_compiler=no
36308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36309 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36310 echo "${ECHO_T}$ac_header_compiler" >&6
36312 # Is the header present?
36313 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36314 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36315 cat >conftest.$ac_ext <<_ACEOF
36318 cat confdefs.h >>conftest.$ac_ext
36319 cat >>conftest.$ac_ext <<_ACEOF
36320 /* end confdefs.h. */
36321 #include <$ac_header>
36323 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36324 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36326 grep -v '^ *+' conftest.er1 >conftest.err
36328 cat conftest.err >&5
36329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36330 (exit $ac_status); } >/dev/null; then
36331 if test -s conftest.err; then
36332 ac_cpp_err=$ac_c_preproc_warn_flag
36333 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36340 if test -z "$ac_cpp_err"; then
36341 ac_header_preproc=yes
36343 echo "$as_me: failed program was:" >&5
36344 sed 's/^/| /' conftest.$ac_ext >&5
36346 ac_header_preproc=no
36348 rm -f conftest.err conftest.$ac_ext
36349 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36350 echo "${ECHO_T}$ac_header_preproc" >&6
36352 # So? What about this header?
36353 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36355 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36356 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36358 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36359 ac_header_preproc=yes
36362 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36363 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36364 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36365 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36366 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36367 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36368 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36369 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36370 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36371 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36372 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36373 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36376 ## ------------------------------------------ ##
36377 ## Report this to the AC_PACKAGE_NAME lists. ##
36378 ## ------------------------------------------ ##
36381 sed "s/^/$as_me: WARNING: /" >&2
36384 echo "$as_me:$LINENO: checking for $ac_header" >&5
36385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36387 echo $ECHO_N "(cached) $ECHO_C" >&6
36389 eval "$as_ac_Header=\$ac_header_preproc"
36391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36392 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36395 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36396 cat >>confdefs.h <<_ACEOF
36397 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36406 for ac_func in sched_yield pthread_yield
36408 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36409 echo "$as_me:$LINENO: checking for $ac_func" >&5
36410 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36411 if eval "test \"\${$as_ac_var+set}\" = set"; then
36412 echo $ECHO_N "(cached) $ECHO_C" >&6
36414 cat >conftest.$ac_ext <<_ACEOF
36417 cat confdefs.h >>conftest.$ac_ext
36418 cat >>conftest.$ac_ext <<_ACEOF
36419 /* end confdefs.h. */
36420 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36421 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36422 #define $ac_func innocuous_$ac_func
36424 /* System header to define __stub macros and hopefully few prototypes,
36425 which can conflict with char $ac_func (); below.
36426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36427 <limits.h> exists even on freestanding compilers. */
36430 # include <limits.h>
36432 # include <assert.h>
36437 /* Override any gcc2 internal prototype to avoid an error. */
36442 /* We use char because int might match the return type of a gcc2
36443 builtin and then its argument prototype would still apply. */
36445 /* The GNU C library defines this for functions which it implements
36446 to always fail with ENOSYS. Some functions are actually named
36447 something starting with __ and the normal name is an alias. */
36448 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36451 char (*f) () = $ac_func;
36460 return f != $ac_func;
36465 rm -f conftest.$ac_objext conftest$ac_exeext
36466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36467 (eval $ac_link) 2>conftest.er1
36469 grep -v '^ *+' conftest.er1 >conftest.err
36471 cat conftest.err >&5
36472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36473 (exit $ac_status); } &&
36474 { ac_try='test -z "$ac_c_werror_flag"
36475 || test ! -s conftest.err'
36476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36477 (eval $ac_try) 2>&5
36479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36480 (exit $ac_status); }; } &&
36481 { ac_try='test -s conftest$ac_exeext'
36482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36483 (eval $ac_try) 2>&5
36485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36486 (exit $ac_status); }; }; then
36487 eval "$as_ac_var=yes"
36489 echo "$as_me: failed program was:" >&5
36490 sed 's/^/| /' conftest.$ac_ext >&5
36492 eval "$as_ac_var=no"
36494 rm -f conftest.err conftest.$ac_objext \
36495 conftest$ac_exeext conftest.$ac_ext
36497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36498 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36499 if test `eval echo '${'$as_ac_var'}'` = yes; then
36500 cat >>confdefs.h <<_ACEOF
36501 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36508 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
36509 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
36510 if test "${ol_cv_header_linux_threads+set}" = set; then
36511 echo $ECHO_N "(cached) $ECHO_C" >&6
36513 cat >conftest.$ac_ext <<_ACEOF
36516 cat confdefs.h >>conftest.$ac_ext
36517 cat >>conftest.$ac_ext <<_ACEOF
36518 /* end confdefs.h. */
36519 #include <pthread.h>
36521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36522 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
36523 ol_cv_header_linux_threads=yes
36525 ol_cv_header_linux_threads=no
36531 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
36532 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
36533 if test $ol_cv_header_linux_threads = yes; then
36535 cat >>confdefs.h <<\_ACEOF
36536 #define HAVE_LINUX_THREADS 1
36543 for ac_header in mach/cthreads.h
36545 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36547 echo "$as_me:$LINENO: checking for $ac_header" >&5
36548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36549 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36550 echo $ECHO_N "(cached) $ECHO_C" >&6
36552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36553 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36555 # Is the header compilable?
36556 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36557 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36558 cat >conftest.$ac_ext <<_ACEOF
36561 cat confdefs.h >>conftest.$ac_ext
36562 cat >>conftest.$ac_ext <<_ACEOF
36563 /* end confdefs.h. */
36564 $ac_includes_default
36565 #include <$ac_header>
36567 rm -f conftest.$ac_objext
36568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36569 (eval $ac_compile) 2>conftest.er1
36571 grep -v '^ *+' conftest.er1 >conftest.err
36573 cat conftest.err >&5
36574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36575 (exit $ac_status); } &&
36576 { ac_try='test -z "$ac_c_werror_flag"
36577 || test ! -s conftest.err'
36578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36579 (eval $ac_try) 2>&5
36581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36582 (exit $ac_status); }; } &&
36583 { ac_try='test -s conftest.$ac_objext'
36584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36585 (eval $ac_try) 2>&5
36587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36588 (exit $ac_status); }; }; then
36589 ac_header_compiler=yes
36591 echo "$as_me: failed program was:" >&5
36592 sed 's/^/| /' conftest.$ac_ext >&5
36594 ac_header_compiler=no
36596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36597 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36598 echo "${ECHO_T}$ac_header_compiler" >&6
36600 # Is the header present?
36601 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36602 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36603 cat >conftest.$ac_ext <<_ACEOF
36606 cat confdefs.h >>conftest.$ac_ext
36607 cat >>conftest.$ac_ext <<_ACEOF
36608 /* end confdefs.h. */
36609 #include <$ac_header>
36611 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36612 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36614 grep -v '^ *+' conftest.er1 >conftest.err
36616 cat conftest.err >&5
36617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36618 (exit $ac_status); } >/dev/null; then
36619 if test -s conftest.err; then
36620 ac_cpp_err=$ac_c_preproc_warn_flag
36621 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36628 if test -z "$ac_cpp_err"; then
36629 ac_header_preproc=yes
36631 echo "$as_me: failed program was:" >&5
36632 sed 's/^/| /' conftest.$ac_ext >&5
36634 ac_header_preproc=no
36636 rm -f conftest.err conftest.$ac_ext
36637 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36638 echo "${ECHO_T}$ac_header_preproc" >&6
36640 # So? What about this header?
36641 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36643 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36644 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36645 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36646 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36647 ac_header_preproc=yes
36650 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36651 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36652 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36653 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36654 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36655 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36656 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36657 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36658 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36659 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36660 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36661 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36664 ## ------------------------------------------ ##
36665 ## Report this to the AC_PACKAGE_NAME lists. ##
36666 ## ------------------------------------------ ##
36669 sed "s/^/$as_me: WARNING: /" >&2
36672 echo "$as_me:$LINENO: checking for $ac_header" >&5
36673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36674 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36675 echo $ECHO_N "(cached) $ECHO_C" >&6
36677 eval "$as_ac_Header=\$ac_header_preproc"
36679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36680 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36683 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36684 cat >>confdefs.h <<_ACEOF
36685 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36693 for ac_header in lwp/lwp.h
36695 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36696 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36697 echo "$as_me:$LINENO: checking for $ac_header" >&5
36698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36700 echo $ECHO_N "(cached) $ECHO_C" >&6
36702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36703 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36705 # Is the header compilable?
36706 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36707 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36708 cat >conftest.$ac_ext <<_ACEOF
36711 cat confdefs.h >>conftest.$ac_ext
36712 cat >>conftest.$ac_ext <<_ACEOF
36713 /* end confdefs.h. */
36714 $ac_includes_default
36715 #include <$ac_header>
36717 rm -f conftest.$ac_objext
36718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36719 (eval $ac_compile) 2>conftest.er1
36721 grep -v '^ *+' conftest.er1 >conftest.err
36723 cat conftest.err >&5
36724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36725 (exit $ac_status); } &&
36726 { ac_try='test -z "$ac_c_werror_flag"
36727 || test ! -s conftest.err'
36728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36729 (eval $ac_try) 2>&5
36731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36732 (exit $ac_status); }; } &&
36733 { ac_try='test -s conftest.$ac_objext'
36734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36735 (eval $ac_try) 2>&5
36737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36738 (exit $ac_status); }; }; then
36739 ac_header_compiler=yes
36741 echo "$as_me: failed program was:" >&5
36742 sed 's/^/| /' conftest.$ac_ext >&5
36744 ac_header_compiler=no
36746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36747 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36748 echo "${ECHO_T}$ac_header_compiler" >&6
36750 # Is the header present?
36751 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36752 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36753 cat >conftest.$ac_ext <<_ACEOF
36756 cat confdefs.h >>conftest.$ac_ext
36757 cat >>conftest.$ac_ext <<_ACEOF
36758 /* end confdefs.h. */
36759 #include <$ac_header>
36761 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36762 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36764 grep -v '^ *+' conftest.er1 >conftest.err
36766 cat conftest.err >&5
36767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36768 (exit $ac_status); } >/dev/null; then
36769 if test -s conftest.err; then
36770 ac_cpp_err=$ac_c_preproc_warn_flag
36771 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36778 if test -z "$ac_cpp_err"; then
36779 ac_header_preproc=yes
36781 echo "$as_me: failed program was:" >&5
36782 sed 's/^/| /' conftest.$ac_ext >&5
36784 ac_header_preproc=no
36786 rm -f conftest.err conftest.$ac_ext
36787 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36788 echo "${ECHO_T}$ac_header_preproc" >&6
36790 # So? What about this header?
36791 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36793 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36794 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36795 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36796 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36797 ac_header_preproc=yes
36800 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36801 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36802 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36803 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36804 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36805 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36806 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36807 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36808 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36809 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36810 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36811 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36814 ## ------------------------------------------ ##
36815 ## Report this to the AC_PACKAGE_NAME lists. ##
36816 ## ------------------------------------------ ##
36819 sed "s/^/$as_me: WARNING: /" >&2
36822 echo "$as_me:$LINENO: checking for $ac_header" >&5
36823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36825 echo $ECHO_N "(cached) $ECHO_C" >&6
36827 eval "$as_ac_Header=\$ac_header_preproc"
36829 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36830 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36833 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36834 cat >>confdefs.h <<_ACEOF
36835 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36844 for ac_header in thread.h synch.h
36846 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36847 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36848 echo "$as_me:$LINENO: checking for $ac_header" >&5
36849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36851 echo $ECHO_N "(cached) $ECHO_C" >&6
36853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36854 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36856 # Is the header compilable?
36857 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36858 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36859 cat >conftest.$ac_ext <<_ACEOF
36862 cat confdefs.h >>conftest.$ac_ext
36863 cat >>conftest.$ac_ext <<_ACEOF
36864 /* end confdefs.h. */
36865 $ac_includes_default
36866 #include <$ac_header>
36868 rm -f conftest.$ac_objext
36869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36870 (eval $ac_compile) 2>conftest.er1
36872 grep -v '^ *+' conftest.er1 >conftest.err
36874 cat conftest.err >&5
36875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36876 (exit $ac_status); } &&
36877 { ac_try='test -z "$ac_c_werror_flag"
36878 || test ! -s conftest.err'
36879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36880 (eval $ac_try) 2>&5
36882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36883 (exit $ac_status); }; } &&
36884 { ac_try='test -s conftest.$ac_objext'
36885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36886 (eval $ac_try) 2>&5
36888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36889 (exit $ac_status); }; }; then
36890 ac_header_compiler=yes
36892 echo "$as_me: failed program was:" >&5
36893 sed 's/^/| /' conftest.$ac_ext >&5
36895 ac_header_compiler=no
36897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36898 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36899 echo "${ECHO_T}$ac_header_compiler" >&6
36901 # Is the header present?
36902 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36903 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36904 cat >conftest.$ac_ext <<_ACEOF
36907 cat confdefs.h >>conftest.$ac_ext
36908 cat >>conftest.$ac_ext <<_ACEOF
36909 /* end confdefs.h. */
36910 #include <$ac_header>
36912 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36913 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36915 grep -v '^ *+' conftest.er1 >conftest.err
36917 cat conftest.err >&5
36918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36919 (exit $ac_status); } >/dev/null; then
36920 if test -s conftest.err; then
36921 ac_cpp_err=$ac_c_preproc_warn_flag
36922 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36929 if test -z "$ac_cpp_err"; then
36930 ac_header_preproc=yes
36932 echo "$as_me: failed program was:" >&5
36933 sed 's/^/| /' conftest.$ac_ext >&5
36935 ac_header_preproc=no
36937 rm -f conftest.err conftest.$ac_ext
36938 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36939 echo "${ECHO_T}$ac_header_preproc" >&6
36941 # So? What about this header?
36942 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36944 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36945 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36947 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36948 ac_header_preproc=yes
36951 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36952 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36953 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36954 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36955 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36956 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36957 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36958 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36959 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36960 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36961 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36962 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36965 ## ------------------------------------------ ##
36966 ## Report this to the AC_PACKAGE_NAME lists. ##
36967 ## ------------------------------------------ ##
36970 sed "s/^/$as_me: WARNING: /" >&2
36973 echo "$as_me:$LINENO: checking for $ac_header" >&5
36974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36975 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36976 echo $ECHO_N "(cached) $ECHO_C" >&6
36978 eval "$as_ac_Header=\$ac_header_preproc"
36980 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36981 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36984 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36985 cat >>confdefs.h <<_ACEOF
36986 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36995 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
36996 cat >>confdefs.h <<\_ACEOF
36997 #define REENTRANT 1
37000 cat >>confdefs.h <<\_ACEOF
37001 #define _REENTRANT 1
37004 cat >>confdefs.h <<\_ACEOF
37005 #define THREAD_SAFE 1
37008 cat >>confdefs.h <<\_ACEOF
37009 #define _THREAD_SAFE 1
37012 cat >>confdefs.h <<\_ACEOF
37013 #define THREADSAFE 1
37016 cat >>confdefs.h <<\_ACEOF
37017 #define _THREADSAFE 1
37020 cat >>confdefs.h <<\_ACEOF
37021 #define _SGI_MP_SOURCE 1
37025 echo "$as_me:$LINENO: checking for thread specific errno" >&5
37026 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
37027 if test "${ol_cv_errno_thread_specific+set}" = set; then
37028 echo $ECHO_N "(cached) $ECHO_C" >&6
37031 cat >conftest.$ac_ext <<_ACEOF
37034 cat confdefs.h >>conftest.$ac_ext
37035 cat >>conftest.$ac_ext <<_ACEOF
37036 /* end confdefs.h. */
37046 rm -f conftest.$ac_objext conftest$ac_exeext
37047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37048 (eval $ac_link) 2>conftest.er1
37050 grep -v '^ *+' conftest.er1 >conftest.err
37052 cat conftest.err >&5
37053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37054 (exit $ac_status); } &&
37055 { ac_try='test -z "$ac_c_werror_flag"
37056 || test ! -s conftest.err'
37057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37058 (eval $ac_try) 2>&5
37060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37061 (exit $ac_status); }; } &&
37062 { ac_try='test -s conftest$ac_exeext'
37063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37064 (eval $ac_try) 2>&5
37066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37067 (exit $ac_status); }; }; then
37068 ol_cv_errno_thread_specific=yes
37070 echo "$as_me: failed program was:" >&5
37071 sed 's/^/| /' conftest.$ac_ext >&5
37073 ol_cv_errno_thread_specific=no
37075 rm -f conftest.err conftest.$ac_objext \
37076 conftest$ac_exeext conftest.$ac_ext
37079 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
37080 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
37082 echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
37083 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
37084 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
37085 echo $ECHO_N "(cached) $ECHO_C" >&6
37088 cat >conftest.$ac_ext <<_ACEOF
37091 cat confdefs.h >>conftest.$ac_ext
37092 cat >>conftest.$ac_ext <<_ACEOF
37093 /* end confdefs.h. */
37103 rm -f conftest.$ac_objext conftest$ac_exeext
37104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37105 (eval $ac_link) 2>conftest.er1
37107 grep -v '^ *+' conftest.er1 >conftest.err
37109 cat conftest.err >&5
37110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37111 (exit $ac_status); } &&
37112 { ac_try='test -z "$ac_c_werror_flag"
37113 || test ! -s conftest.err'
37114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37115 (eval $ac_try) 2>&5
37117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37118 (exit $ac_status); }; } &&
37119 { ac_try='test -s conftest$ac_exeext'
37120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37121 (eval $ac_try) 2>&5
37123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37124 (exit $ac_status); }; }; then
37125 ol_cv_h_errno_thread_specific=yes
37127 echo "$as_me: failed program was:" >&5
37128 sed 's/^/| /' conftest.$ac_ext >&5
37130 ol_cv_h_errno_thread_specific=no
37132 rm -f conftest.err conftest.$ac_objext \
37133 conftest$ac_exeext conftest.$ac_ext
37136 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
37137 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
37139 if test $ol_cv_errno_thread_specific != yes \
37140 -o $ol_cv_h_errno_thread_specific != yes ; then
37141 LIBS="$LTHREAD_LIBS $LIBS"
37147 if test $ol_link_threads = no ; then
37148 if test $ol_with_threads = yes ; then
37149 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
37150 echo "$as_me: error: no suitable thread support" >&2;}
37151 { (exit 1); exit 1; }; }
37154 if test $ol_with_threads = auto ; then
37155 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
37156 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
37161 cat >>confdefs.h <<\_ACEOF
37162 #define NO_THREADS 1
37168 if test $ol_link_threads != no ; then
37169 cat >>confdefs.h <<\_ACEOF
37170 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
37180 gethostbyname_r gethostbyaddr_r \
37183 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37184 echo "$as_me:$LINENO: checking for $ac_func" >&5
37185 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37186 if eval "test \"\${$as_ac_var+set}\" = set"; then
37187 echo $ECHO_N "(cached) $ECHO_C" >&6
37189 cat >conftest.$ac_ext <<_ACEOF
37192 cat confdefs.h >>conftest.$ac_ext
37193 cat >>conftest.$ac_ext <<_ACEOF
37194 /* end confdefs.h. */
37195 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37196 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37197 #define $ac_func innocuous_$ac_func
37199 /* System header to define __stub macros and hopefully few prototypes,
37200 which can conflict with char $ac_func (); below.
37201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37202 <limits.h> exists even on freestanding compilers. */
37205 # include <limits.h>
37207 # include <assert.h>
37212 /* Override any gcc2 internal prototype to avoid an error. */
37217 /* We use char because int might match the return type of a gcc2
37218 builtin and then its argument prototype would still apply. */
37220 /* The GNU C library defines this for functions which it implements
37221 to always fail with ENOSYS. Some functions are actually named
37222 something starting with __ and the normal name is an alias. */
37223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37226 char (*f) () = $ac_func;
37235 return f != $ac_func;
37240 rm -f conftest.$ac_objext conftest$ac_exeext
37241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37242 (eval $ac_link) 2>conftest.er1
37244 grep -v '^ *+' conftest.er1 >conftest.err
37246 cat conftest.err >&5
37247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37248 (exit $ac_status); } &&
37249 { ac_try='test -z "$ac_c_werror_flag"
37250 || test ! -s conftest.err'
37251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37252 (eval $ac_try) 2>&5
37254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37255 (exit $ac_status); }; } &&
37256 { ac_try='test -s conftest$ac_exeext'
37257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37258 (eval $ac_try) 2>&5
37260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37261 (exit $ac_status); }; }; then
37262 eval "$as_ac_var=yes"
37264 echo "$as_me: failed program was:" >&5
37265 sed 's/^/| /' conftest.$ac_ext >&5
37267 eval "$as_ac_var=no"
37269 rm -f conftest.err conftest.$ac_objext \
37270 conftest$ac_exeext conftest.$ac_ext
37272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37273 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37274 if test `eval echo '${'$as_ac_var'}'` = yes; then
37275 cat >>confdefs.h <<_ACEOF
37276 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37283 if test "$ac_cv_func_ctime_r" = no ; then
37284 ol_cv_func_ctime_r_nargs=0
37286 echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
37287 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
37288 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
37289 echo $ECHO_N "(cached) $ECHO_C" >&6
37291 cat >conftest.$ac_ext <<_ACEOF
37294 cat confdefs.h >>conftest.$ac_ext
37295 cat >>conftest.$ac_ext <<_ACEOF
37296 /* end confdefs.h. */
37301 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
37306 rm -f conftest.$ac_objext
37307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37308 (eval $ac_compile) 2>conftest.er1
37310 grep -v '^ *+' conftest.er1 >conftest.err
37312 cat conftest.err >&5
37313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37314 (exit $ac_status); } &&
37315 { ac_try='test -z "$ac_c_werror_flag"
37316 || test ! -s conftest.err'
37317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37318 (eval $ac_try) 2>&5
37320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37321 (exit $ac_status); }; } &&
37322 { ac_try='test -s conftest.$ac_objext'
37323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37324 (eval $ac_try) 2>&5
37326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37327 (exit $ac_status); }; }; then
37328 ol_cv_func_ctime_r_nargs3=yes
37330 echo "$as_me: failed program was:" >&5
37331 sed 's/^/| /' conftest.$ac_ext >&5
37333 ol_cv_func_ctime_r_nargs3=no
37335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37337 cat >conftest.$ac_ext <<_ACEOF
37340 cat confdefs.h >>conftest.$ac_ext
37341 cat >>conftest.$ac_ext <<_ACEOF
37342 /* end confdefs.h. */
37347 time_t ti; char *buffer; ctime_r(&ti,buffer);
37352 rm -f conftest.$ac_objext
37353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37354 (eval $ac_compile) 2>conftest.er1
37356 grep -v '^ *+' conftest.er1 >conftest.err
37358 cat conftest.err >&5
37359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37360 (exit $ac_status); } &&
37361 { ac_try='test -z "$ac_c_werror_flag"
37362 || test ! -s conftest.err'
37363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37364 (eval $ac_try) 2>&5
37366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37367 (exit $ac_status); }; } &&
37368 { ac_try='test -s conftest.$ac_objext'
37369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37370 (eval $ac_try) 2>&5
37372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37373 (exit $ac_status); }; }; then
37374 ol_cv_func_ctime_r_nargs2=yes
37376 echo "$as_me: failed program was:" >&5
37377 sed 's/^/| /' conftest.$ac_ext >&5
37379 ol_cv_func_ctime_r_nargs2=no
37381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37383 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
37384 $ol_cv_func_ctime_r_nargs2 = no ; then
37386 ol_cv_func_ctime_r_nargs=3
37388 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
37389 $ol_cv_func_ctime_r_nargs2 = yes ; then
37391 ol_cv_func_ctime_r_nargs=2
37394 ol_cv_func_ctime_r_nargs=0
37398 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
37399 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
37401 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
37403 cat >>confdefs.h <<_ACEOF
37404 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
37411 if test "$ac_cv_func_gethostbyname_r" = yes ; then
37412 echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
37413 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
37414 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
37415 echo $ECHO_N "(cached) $ECHO_C" >&6
37417 cat >conftest.$ac_ext <<_ACEOF
37420 cat confdefs.h >>conftest.$ac_ext
37421 cat >>conftest.$ac_ext <<_ACEOF
37422 /* end confdefs.h. */
37423 #include <sys/types.h>
37424 #include <sys/socket.h>
37425 #include <netinet/in.h>
37427 #define BUFSIZE (sizeof(struct hostent)+10)
37431 struct hostent hent; char buffer[BUFSIZE];
37432 int bufsize=BUFSIZE;int h_errno;
37433 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
37434 buffer, bufsize, &h_errno);
37439 rm -f conftest.$ac_objext
37440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37441 (eval $ac_compile) 2>conftest.er1
37443 grep -v '^ *+' conftest.er1 >conftest.err
37445 cat conftest.err >&5
37446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37447 (exit $ac_status); } &&
37448 { ac_try='test -z "$ac_c_werror_flag"
37449 || test ! -s conftest.err'
37450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37451 (eval $ac_try) 2>&5
37453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37454 (exit $ac_status); }; } &&
37455 { ac_try='test -s conftest.$ac_objext'
37456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37457 (eval $ac_try) 2>&5
37459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37460 (exit $ac_status); }; }; then
37461 ol_cv_func_gethostbyname_r_nargs5=yes
37463 echo "$as_me: failed program was:" >&5
37464 sed 's/^/| /' conftest.$ac_ext >&5
37466 ol_cv_func_gethostbyname_r_nargs5=no
37468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37470 cat >conftest.$ac_ext <<_ACEOF
37473 cat confdefs.h >>conftest.$ac_ext
37474 cat >>conftest.$ac_ext <<_ACEOF
37475 /* end confdefs.h. */
37476 #include <sys/types.h>
37477 #include <sys/socket.h>
37478 #include <netinet/in.h>
37480 #define BUFSIZE (sizeof(struct hostent)+10)
37484 struct hostent hent;struct hostent *rhent;
37485 char buffer[BUFSIZE];
37486 int bufsize=BUFSIZE;int h_errno;
37487 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
37493 rm -f conftest.$ac_objext
37494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37495 (eval $ac_compile) 2>conftest.er1
37497 grep -v '^ *+' conftest.er1 >conftest.err
37499 cat conftest.err >&5
37500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37501 (exit $ac_status); } &&
37502 { ac_try='test -z "$ac_c_werror_flag"
37503 || test ! -s conftest.err'
37504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37505 (eval $ac_try) 2>&5
37507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37508 (exit $ac_status); }; } &&
37509 { ac_try='test -s conftest.$ac_objext'
37510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37511 (eval $ac_try) 2>&5
37513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37514 (exit $ac_status); }; }; then
37515 ol_cv_func_gethostbyname_r_nargs6=yes
37517 echo "$as_me: failed program was:" >&5
37518 sed 's/^/| /' conftest.$ac_ext >&5
37520 ol_cv_func_gethostbyname_r_nargs6=no
37522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37524 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
37525 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
37527 ol_cv_func_gethostbyname_r_nargs=5
37529 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
37530 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
37532 ol_cv_func_gethostbyname_r_nargs=6
37535 ol_cv_func_gethostbyname_r_nargs=0
37539 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
37540 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
37541 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
37543 cat >>confdefs.h <<_ACEOF
37544 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
37550 ol_cv_func_gethostbyname_r_nargs=0
37553 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
37554 echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
37555 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
37556 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
37557 echo $ECHO_N "(cached) $ECHO_C" >&6
37559 cat >conftest.$ac_ext <<_ACEOF
37562 cat confdefs.h >>conftest.$ac_ext
37563 cat >>conftest.$ac_ext <<_ACEOF
37564 /* end confdefs.h. */
37565 #include <sys/types.h>
37566 #include <sys/socket.h>
37567 #include <netinet/in.h>
37569 #define BUFSIZE (sizeof(struct hostent)+10)
37573 struct hostent hent; char buffer[BUFSIZE];
37574 struct in_addr add;
37575 size_t alen=sizeof(struct in_addr);
37576 int bufsize=BUFSIZE;int h_errno;
37577 (void)gethostbyaddr_r( (void *)&(add.s_addr),
37578 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
37583 rm -f conftest.$ac_objext
37584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37585 (eval $ac_compile) 2>conftest.er1
37587 grep -v '^ *+' conftest.er1 >conftest.err
37589 cat conftest.err >&5
37590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37591 (exit $ac_status); } &&
37592 { ac_try='test -z "$ac_c_werror_flag"
37593 || test ! -s conftest.err'
37594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37595 (eval $ac_try) 2>&5
37597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37598 (exit $ac_status); }; } &&
37599 { ac_try='test -s conftest.$ac_objext'
37600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37601 (eval $ac_try) 2>&5
37603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37604 (exit $ac_status); }; }; then
37605 ol_cv_func_gethostbyaddr_r_nargs7=yes
37607 echo "$as_me: failed program was:" >&5
37608 sed 's/^/| /' conftest.$ac_ext >&5
37610 ol_cv_func_gethostbyaddr_r_nargs7=no
37612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37614 cat >conftest.$ac_ext <<_ACEOF
37617 cat confdefs.h >>conftest.$ac_ext
37618 cat >>conftest.$ac_ext <<_ACEOF
37619 /* end confdefs.h. */
37620 #include <sys/types.h>
37621 #include <sys/socket.h>
37622 #include <netinet/in.h>
37624 #define BUFSIZE (sizeof(struct hostent)+10)
37628 struct hostent hent;
37629 struct hostent *rhent; char buffer[BUFSIZE];
37630 struct in_addr add;
37631 size_t alen=sizeof(struct in_addr);
37632 int bufsize=BUFSIZE;int h_errno;
37633 (void)gethostbyaddr_r( (void *)&(add.s_addr),
37634 alen, AF_INET, &hent, buffer, bufsize,
37640 rm -f conftest.$ac_objext
37641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37642 (eval $ac_compile) 2>conftest.er1
37644 grep -v '^ *+' conftest.er1 >conftest.err
37646 cat conftest.err >&5
37647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37648 (exit $ac_status); } &&
37649 { ac_try='test -z "$ac_c_werror_flag"
37650 || test ! -s conftest.err'
37651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37652 (eval $ac_try) 2>&5
37654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37655 (exit $ac_status); }; } &&
37656 { ac_try='test -s conftest.$ac_objext'
37657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37658 (eval $ac_try) 2>&5
37660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37661 (exit $ac_status); }; }; then
37662 ol_cv_func_gethostbyaddr_r_nargs8=yes
37664 echo "$as_me: failed program was:" >&5
37665 sed 's/^/| /' conftest.$ac_ext >&5
37667 ol_cv_func_gethostbyaddr_r_nargs8=no
37669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37671 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
37672 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
37674 ol_cv_func_gethostbyaddr_r_nargs=7
37676 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
37677 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
37679 ol_cv_func_gethostbyaddr_r_nargs=8
37682 ol_cv_func_gethostbyaddr_r_nargs=0
37686 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
37687 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
37688 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
37690 cat >>confdefs.h <<_ACEOF
37691 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
37697 ol_cv_func_gethostbyaddr_r_nargs=0
37702 if test $ol_with_ldbm_api = auto \
37703 -o $ol_with_ldbm_api = berkeley \
37704 -o $ol_with_ldbm_api = bcompat ; then
37706 if test $ol_with_ldbm_api = bcompat; then \
37709 for ac_header in db_185.h db.h
37711 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37713 echo "$as_me:$LINENO: checking for $ac_header" >&5
37714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37716 echo $ECHO_N "(cached) $ECHO_C" >&6
37718 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37719 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37721 # Is the header compilable?
37722 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37723 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37724 cat >conftest.$ac_ext <<_ACEOF
37727 cat confdefs.h >>conftest.$ac_ext
37728 cat >>conftest.$ac_ext <<_ACEOF
37729 /* end confdefs.h. */
37730 $ac_includes_default
37731 #include <$ac_header>
37733 rm -f conftest.$ac_objext
37734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37735 (eval $ac_compile) 2>conftest.er1
37737 grep -v '^ *+' conftest.er1 >conftest.err
37739 cat conftest.err >&5
37740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37741 (exit $ac_status); } &&
37742 { ac_try='test -z "$ac_c_werror_flag"
37743 || test ! -s conftest.err'
37744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37745 (eval $ac_try) 2>&5
37747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37748 (exit $ac_status); }; } &&
37749 { ac_try='test -s conftest.$ac_objext'
37750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37751 (eval $ac_try) 2>&5
37753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37754 (exit $ac_status); }; }; then
37755 ac_header_compiler=yes
37757 echo "$as_me: failed program was:" >&5
37758 sed 's/^/| /' conftest.$ac_ext >&5
37760 ac_header_compiler=no
37762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37763 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37764 echo "${ECHO_T}$ac_header_compiler" >&6
37766 # Is the header present?
37767 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37768 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37769 cat >conftest.$ac_ext <<_ACEOF
37772 cat confdefs.h >>conftest.$ac_ext
37773 cat >>conftest.$ac_ext <<_ACEOF
37774 /* end confdefs.h. */
37775 #include <$ac_header>
37777 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37778 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37780 grep -v '^ *+' conftest.er1 >conftest.err
37782 cat conftest.err >&5
37783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37784 (exit $ac_status); } >/dev/null; then
37785 if test -s conftest.err; then
37786 ac_cpp_err=$ac_c_preproc_warn_flag
37787 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37794 if test -z "$ac_cpp_err"; then
37795 ac_header_preproc=yes
37797 echo "$as_me: failed program was:" >&5
37798 sed 's/^/| /' conftest.$ac_ext >&5
37800 ac_header_preproc=no
37802 rm -f conftest.err conftest.$ac_ext
37803 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37804 echo "${ECHO_T}$ac_header_preproc" >&6
37806 # So? What about this header?
37807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37809 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37810 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37811 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37812 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37813 ac_header_preproc=yes
37816 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37817 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37818 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37819 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37820 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37821 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37822 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37823 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37824 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37825 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37826 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37827 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37830 ## ------------------------------------------ ##
37831 ## Report this to the AC_PACKAGE_NAME lists. ##
37832 ## ------------------------------------------ ##
37835 sed "s/^/$as_me: WARNING: /" >&2
37838 echo "$as_me:$LINENO: checking for $ac_header" >&5
37839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37841 echo $ECHO_N "(cached) $ECHO_C" >&6
37843 eval "$as_ac_Header=\$ac_header_preproc"
37845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37846 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37849 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37850 cat >>confdefs.h <<_ACEOF
37851 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37858 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
37859 echo "$as_me:$LINENO: checking if Berkeley DB header compatibility" >&5
37860 echo $ECHO_N "checking if Berkeley DB header compatibility... $ECHO_C" >&6
37861 if test "${ol_cv_header_db1+set}" = set; then
37862 echo $ECHO_N "(cached) $ECHO_C" >&6
37865 cat >conftest.$ac_ext <<_ACEOF
37868 cat confdefs.h >>conftest.$ac_ext
37869 cat >>conftest.$ac_ext <<_ACEOF
37870 /* end confdefs.h. */
37873 # include <db_185.h>
37878 /* this check could be improved */
37879 #ifndef DB_VERSION_MAJOR
37880 # define DB_VERSION_MAJOR 1
37883 #if DB_VERSION_MAJOR == 1
37888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37889 $EGREP "__db_version_1" >/dev/null 2>&1; then
37890 ol_cv_header_db1=yes
37892 ol_cv_header_db1=no
37897 echo "$as_me:$LINENO: result: $ol_cv_header_db1" >&5
37898 echo "${ECHO_T}$ol_cv_header_db1" >&6
37900 if test $ol_cv_header_db1 = yes ; then
37902 if test $ol_cv_lib_db = no ; then
37903 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
37904 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
37905 if test "${ol_cv_db_none+set}" = set; then
37906 echo $ECHO_N "(cached) $ECHO_C" >&6
37911 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
37913 cat >conftest.$ac_ext <<_ACEOF
37916 cat confdefs.h >>conftest.$ac_ext
37917 cat >>conftest.$ac_ext <<_ACEOF
37918 /* end confdefs.h. */
37920 #ifdef HAVE_DB_185_H
37921 # include <db_185.h>
37926 #ifndef DB_VERSION_MAJOR
37927 # define DB_VERSION_MAJOR 1
37931 #define NULL ((void*)0)
37938 #if DB_VERSION_MAJOR > 1
37941 int major, minor, patch;
37943 version = db_version( &major, &minor, &patch );
37945 if( major != DB_VERSION_MAJOR ||
37946 minor < DB_VERSION_MINOR )
37948 printf("Berkeley DB version mismatch\n"
37949 "\theader: %s\n\tlibrary: %s\n",
37950 DB_VERSION_STRING, version);
37956 #if DB_VERSION_MAJOR > 2
37957 db_env_create( NULL, 0 );
37958 #elif DB_VERSION_MAJOR > 1
37959 db_appexit( NULL );
37961 (void) dbopen( NULL, 0, 0, 0, NULL);
37968 rm -f conftest.$ac_objext conftest$ac_exeext
37969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37970 (eval $ac_link) 2>conftest.er1
37972 grep -v '^ *+' conftest.er1 >conftest.err
37974 cat conftest.err >&5
37975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37976 (exit $ac_status); } &&
37977 { ac_try='test -z "$ac_c_werror_flag"
37978 || test ! -s conftest.err'
37979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37980 (eval $ac_try) 2>&5
37982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37983 (exit $ac_status); }; } &&
37984 { ac_try='test -s conftest$ac_exeext'
37985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37986 (eval $ac_try) 2>&5
37988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37989 (exit $ac_status); }; }; then
37992 echo "$as_me: failed program was:" >&5
37993 sed 's/^/| /' conftest.$ac_ext >&5
37997 rm -f conftest.err conftest.$ac_objext \
37998 conftest$ac_exeext conftest.$ac_ext
38003 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
38004 echo "${ECHO_T}$ol_cv_db_none" >&6
38006 if test $ol_cv_db_none = yes ; then
38011 if test $ol_cv_lib_db = no ; then
38012 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
38013 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
38014 if test "${ol_cv_db_db43+set}" = set; then
38015 echo $ECHO_N "(cached) $ECHO_C" >&6
38020 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38022 cat >conftest.$ac_ext <<_ACEOF
38025 cat confdefs.h >>conftest.$ac_ext
38026 cat >>conftest.$ac_ext <<_ACEOF
38027 /* end confdefs.h. */
38029 #ifdef HAVE_DB_185_H
38030 # include <db_185.h>
38035 #ifndef DB_VERSION_MAJOR
38036 # define DB_VERSION_MAJOR 1
38040 #define NULL ((void*)0)
38047 #if DB_VERSION_MAJOR > 1
38050 int major, minor, patch;
38052 version = db_version( &major, &minor, &patch );
38054 if( major != DB_VERSION_MAJOR ||
38055 minor < DB_VERSION_MINOR )
38057 printf("Berkeley DB version mismatch\n"
38058 "\theader: %s\n\tlibrary: %s\n",
38059 DB_VERSION_STRING, version);
38065 #if DB_VERSION_MAJOR > 2
38066 db_env_create( NULL, 0 );
38067 #elif DB_VERSION_MAJOR > 1
38068 db_appexit( NULL );
38070 (void) dbopen( NULL, 0, 0, 0, NULL);
38077 rm -f conftest.$ac_objext conftest$ac_exeext
38078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38079 (eval $ac_link) 2>conftest.er1
38081 grep -v '^ *+' conftest.er1 >conftest.err
38083 cat conftest.err >&5
38084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38085 (exit $ac_status); } &&
38086 { ac_try='test -z "$ac_c_werror_flag"
38087 || test ! -s conftest.err'
38088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38089 (eval $ac_try) 2>&5
38091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38092 (exit $ac_status); }; } &&
38093 { ac_try='test -s conftest$ac_exeext'
38094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38095 (eval $ac_try) 2>&5
38097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38098 (exit $ac_status); }; }; then
38101 echo "$as_me: failed program was:" >&5
38102 sed 's/^/| /' conftest.$ac_ext >&5
38106 rm -f conftest.err conftest.$ac_objext \
38107 conftest$ac_exeext conftest.$ac_ext
38112 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
38113 echo "${ECHO_T}$ol_cv_db_db43" >&6
38115 if test $ol_cv_db_db43 = yes ; then
38116 ol_cv_lib_db=-ldb43
38120 if test $ol_cv_lib_db = no ; then
38121 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
38122 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
38123 if test "${ol_cv_db_db_43+set}" = set; then
38124 echo $ECHO_N "(cached) $ECHO_C" >&6
38129 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38131 cat >conftest.$ac_ext <<_ACEOF
38134 cat confdefs.h >>conftest.$ac_ext
38135 cat >>conftest.$ac_ext <<_ACEOF
38136 /* end confdefs.h. */
38138 #ifdef HAVE_DB_185_H
38139 # include <db_185.h>
38144 #ifndef DB_VERSION_MAJOR
38145 # define DB_VERSION_MAJOR 1
38149 #define NULL ((void*)0)
38156 #if DB_VERSION_MAJOR > 1
38159 int major, minor, patch;
38161 version = db_version( &major, &minor, &patch );
38163 if( major != DB_VERSION_MAJOR ||
38164 minor < DB_VERSION_MINOR )
38166 printf("Berkeley DB version mismatch\n"
38167 "\theader: %s\n\tlibrary: %s\n",
38168 DB_VERSION_STRING, version);
38174 #if DB_VERSION_MAJOR > 2
38175 db_env_create( NULL, 0 );
38176 #elif DB_VERSION_MAJOR > 1
38177 db_appexit( NULL );
38179 (void) dbopen( NULL, 0, 0, 0, NULL);
38186 rm -f conftest.$ac_objext conftest$ac_exeext
38187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38188 (eval $ac_link) 2>conftest.er1
38190 grep -v '^ *+' conftest.er1 >conftest.err
38192 cat conftest.err >&5
38193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38194 (exit $ac_status); } &&
38195 { ac_try='test -z "$ac_c_werror_flag"
38196 || test ! -s conftest.err'
38197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38198 (eval $ac_try) 2>&5
38200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38201 (exit $ac_status); }; } &&
38202 { ac_try='test -s conftest$ac_exeext'
38203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38204 (eval $ac_try) 2>&5
38206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38207 (exit $ac_status); }; }; then
38210 echo "$as_me: failed program was:" >&5
38211 sed 's/^/| /' conftest.$ac_ext >&5
38215 rm -f conftest.err conftest.$ac_objext \
38216 conftest$ac_exeext conftest.$ac_ext
38221 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
38222 echo "${ECHO_T}$ol_cv_db_db_43" >&6
38224 if test $ol_cv_db_db_43 = yes ; then
38225 ol_cv_lib_db=-ldb-43
38229 if test $ol_cv_lib_db = no ; then
38230 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
38231 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
38232 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
38233 echo $ECHO_N "(cached) $ECHO_C" >&6
38238 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38240 cat >conftest.$ac_ext <<_ACEOF
38243 cat confdefs.h >>conftest.$ac_ext
38244 cat >>conftest.$ac_ext <<_ACEOF
38245 /* end confdefs.h. */
38247 #ifdef HAVE_DB_185_H
38248 # include <db_185.h>
38253 #ifndef DB_VERSION_MAJOR
38254 # define DB_VERSION_MAJOR 1
38258 #define NULL ((void*)0)
38265 #if DB_VERSION_MAJOR > 1
38268 int major, minor, patch;
38270 version = db_version( &major, &minor, &patch );
38272 if( major != DB_VERSION_MAJOR ||
38273 minor < DB_VERSION_MINOR )
38275 printf("Berkeley DB version mismatch\n"
38276 "\theader: %s\n\tlibrary: %s\n",
38277 DB_VERSION_STRING, version);
38283 #if DB_VERSION_MAJOR > 2
38284 db_env_create( NULL, 0 );
38285 #elif DB_VERSION_MAJOR > 1
38286 db_appexit( NULL );
38288 (void) dbopen( NULL, 0, 0, 0, NULL);
38295 rm -f conftest.$ac_objext conftest$ac_exeext
38296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38297 (eval $ac_link) 2>conftest.er1
38299 grep -v '^ *+' conftest.er1 >conftest.err
38301 cat conftest.err >&5
38302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38303 (exit $ac_status); } &&
38304 { ac_try='test -z "$ac_c_werror_flag"
38305 || test ! -s conftest.err'
38306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38307 (eval $ac_try) 2>&5
38309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38310 (exit $ac_status); }; } &&
38311 { ac_try='test -s conftest$ac_exeext'
38312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38313 (eval $ac_try) 2>&5
38315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38316 (exit $ac_status); }; }; then
38317 ol_cv_db_db_4_dot_3=yes
38319 echo "$as_me: failed program was:" >&5
38320 sed 's/^/| /' conftest.$ac_ext >&5
38322 ol_cv_db_db_4_dot_3=no
38324 rm -f conftest.err conftest.$ac_objext \
38325 conftest$ac_exeext conftest.$ac_ext
38330 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
38331 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
38333 if test $ol_cv_db_db_4_dot_3 = yes ; then
38334 ol_cv_lib_db=-ldb-4.3
38338 if test $ol_cv_lib_db = no ; then
38339 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
38340 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
38341 if test "${ol_cv_db_db_4_3+set}" = set; then
38342 echo $ECHO_N "(cached) $ECHO_C" >&6
38347 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38349 cat >conftest.$ac_ext <<_ACEOF
38352 cat confdefs.h >>conftest.$ac_ext
38353 cat >>conftest.$ac_ext <<_ACEOF
38354 /* end confdefs.h. */
38356 #ifdef HAVE_DB_185_H
38357 # include <db_185.h>
38362 #ifndef DB_VERSION_MAJOR
38363 # define DB_VERSION_MAJOR 1
38367 #define NULL ((void*)0)
38374 #if DB_VERSION_MAJOR > 1
38377 int major, minor, patch;
38379 version = db_version( &major, &minor, &patch );
38381 if( major != DB_VERSION_MAJOR ||
38382 minor < DB_VERSION_MINOR )
38384 printf("Berkeley DB version mismatch\n"
38385 "\theader: %s\n\tlibrary: %s\n",
38386 DB_VERSION_STRING, version);
38392 #if DB_VERSION_MAJOR > 2
38393 db_env_create( NULL, 0 );
38394 #elif DB_VERSION_MAJOR > 1
38395 db_appexit( NULL );
38397 (void) dbopen( NULL, 0, 0, 0, NULL);
38404 rm -f conftest.$ac_objext conftest$ac_exeext
38405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38406 (eval $ac_link) 2>conftest.er1
38408 grep -v '^ *+' conftest.er1 >conftest.err
38410 cat conftest.err >&5
38411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38412 (exit $ac_status); } &&
38413 { ac_try='test -z "$ac_c_werror_flag"
38414 || test ! -s conftest.err'
38415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38416 (eval $ac_try) 2>&5
38418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38419 (exit $ac_status); }; } &&
38420 { ac_try='test -s conftest$ac_exeext'
38421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38422 (eval $ac_try) 2>&5
38424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38425 (exit $ac_status); }; }; then
38426 ol_cv_db_db_4_3=yes
38428 echo "$as_me: failed program was:" >&5
38429 sed 's/^/| /' conftest.$ac_ext >&5
38433 rm -f conftest.err conftest.$ac_objext \
38434 conftest$ac_exeext conftest.$ac_ext
38439 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
38440 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
38442 if test $ol_cv_db_db_4_3 = yes ; then
38443 ol_cv_lib_db=-ldb-4-3
38447 if test $ol_cv_lib_db = no ; then
38448 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
38449 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
38450 if test "${ol_cv_db_db42+set}" = set; then
38451 echo $ECHO_N "(cached) $ECHO_C" >&6
38456 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38458 cat >conftest.$ac_ext <<_ACEOF
38461 cat confdefs.h >>conftest.$ac_ext
38462 cat >>conftest.$ac_ext <<_ACEOF
38463 /* end confdefs.h. */
38465 #ifdef HAVE_DB_185_H
38466 # include <db_185.h>
38471 #ifndef DB_VERSION_MAJOR
38472 # define DB_VERSION_MAJOR 1
38476 #define NULL ((void*)0)
38483 #if DB_VERSION_MAJOR > 1
38486 int major, minor, patch;
38488 version = db_version( &major, &minor, &patch );
38490 if( major != DB_VERSION_MAJOR ||
38491 minor < DB_VERSION_MINOR )
38493 printf("Berkeley DB version mismatch\n"
38494 "\theader: %s\n\tlibrary: %s\n",
38495 DB_VERSION_STRING, version);
38501 #if DB_VERSION_MAJOR > 2
38502 db_env_create( NULL, 0 );
38503 #elif DB_VERSION_MAJOR > 1
38504 db_appexit( NULL );
38506 (void) dbopen( NULL, 0, 0, 0, NULL);
38513 rm -f conftest.$ac_objext conftest$ac_exeext
38514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38515 (eval $ac_link) 2>conftest.er1
38517 grep -v '^ *+' conftest.er1 >conftest.err
38519 cat conftest.err >&5
38520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38521 (exit $ac_status); } &&
38522 { ac_try='test -z "$ac_c_werror_flag"
38523 || test ! -s conftest.err'
38524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38525 (eval $ac_try) 2>&5
38527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38528 (exit $ac_status); }; } &&
38529 { ac_try='test -s conftest$ac_exeext'
38530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38531 (eval $ac_try) 2>&5
38533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38534 (exit $ac_status); }; }; then
38537 echo "$as_me: failed program was:" >&5
38538 sed 's/^/| /' conftest.$ac_ext >&5
38542 rm -f conftest.err conftest.$ac_objext \
38543 conftest$ac_exeext conftest.$ac_ext
38548 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
38549 echo "${ECHO_T}$ol_cv_db_db42" >&6
38551 if test $ol_cv_db_db42 = yes ; then
38552 ol_cv_lib_db=-ldb42
38556 if test $ol_cv_lib_db = no ; then
38557 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
38558 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
38559 if test "${ol_cv_db_db_42+set}" = set; then
38560 echo $ECHO_N "(cached) $ECHO_C" >&6
38565 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38567 cat >conftest.$ac_ext <<_ACEOF
38570 cat confdefs.h >>conftest.$ac_ext
38571 cat >>conftest.$ac_ext <<_ACEOF
38572 /* end confdefs.h. */
38574 #ifdef HAVE_DB_185_H
38575 # include <db_185.h>
38580 #ifndef DB_VERSION_MAJOR
38581 # define DB_VERSION_MAJOR 1
38585 #define NULL ((void*)0)
38592 #if DB_VERSION_MAJOR > 1
38595 int major, minor, patch;
38597 version = db_version( &major, &minor, &patch );
38599 if( major != DB_VERSION_MAJOR ||
38600 minor < DB_VERSION_MINOR )
38602 printf("Berkeley DB version mismatch\n"
38603 "\theader: %s\n\tlibrary: %s\n",
38604 DB_VERSION_STRING, version);
38610 #if DB_VERSION_MAJOR > 2
38611 db_env_create( NULL, 0 );
38612 #elif DB_VERSION_MAJOR > 1
38613 db_appexit( NULL );
38615 (void) dbopen( NULL, 0, 0, 0, NULL);
38622 rm -f conftest.$ac_objext conftest$ac_exeext
38623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38624 (eval $ac_link) 2>conftest.er1
38626 grep -v '^ *+' conftest.er1 >conftest.err
38628 cat conftest.err >&5
38629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38630 (exit $ac_status); } &&
38631 { ac_try='test -z "$ac_c_werror_flag"
38632 || test ! -s conftest.err'
38633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38634 (eval $ac_try) 2>&5
38636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38637 (exit $ac_status); }; } &&
38638 { ac_try='test -s conftest$ac_exeext'
38639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38640 (eval $ac_try) 2>&5
38642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38643 (exit $ac_status); }; }; then
38646 echo "$as_me: failed program was:" >&5
38647 sed 's/^/| /' conftest.$ac_ext >&5
38651 rm -f conftest.err conftest.$ac_objext \
38652 conftest$ac_exeext conftest.$ac_ext
38657 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
38658 echo "${ECHO_T}$ol_cv_db_db_42" >&6
38660 if test $ol_cv_db_db_42 = yes ; then
38661 ol_cv_lib_db=-ldb-42
38665 if test $ol_cv_lib_db = no ; then
38666 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
38667 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
38668 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
38669 echo $ECHO_N "(cached) $ECHO_C" >&6
38674 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38676 cat >conftest.$ac_ext <<_ACEOF
38679 cat confdefs.h >>conftest.$ac_ext
38680 cat >>conftest.$ac_ext <<_ACEOF
38681 /* end confdefs.h. */
38683 #ifdef HAVE_DB_185_H
38684 # include <db_185.h>
38689 #ifndef DB_VERSION_MAJOR
38690 # define DB_VERSION_MAJOR 1
38694 #define NULL ((void*)0)
38701 #if DB_VERSION_MAJOR > 1
38704 int major, minor, patch;
38706 version = db_version( &major, &minor, &patch );
38708 if( major != DB_VERSION_MAJOR ||
38709 minor < DB_VERSION_MINOR )
38711 printf("Berkeley DB version mismatch\n"
38712 "\theader: %s\n\tlibrary: %s\n",
38713 DB_VERSION_STRING, version);
38719 #if DB_VERSION_MAJOR > 2
38720 db_env_create( NULL, 0 );
38721 #elif DB_VERSION_MAJOR > 1
38722 db_appexit( NULL );
38724 (void) dbopen( NULL, 0, 0, 0, NULL);
38731 rm -f conftest.$ac_objext conftest$ac_exeext
38732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38733 (eval $ac_link) 2>conftest.er1
38735 grep -v '^ *+' conftest.er1 >conftest.err
38737 cat conftest.err >&5
38738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38739 (exit $ac_status); } &&
38740 { ac_try='test -z "$ac_c_werror_flag"
38741 || test ! -s conftest.err'
38742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38743 (eval $ac_try) 2>&5
38745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38746 (exit $ac_status); }; } &&
38747 { ac_try='test -s conftest$ac_exeext'
38748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38749 (eval $ac_try) 2>&5
38751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38752 (exit $ac_status); }; }; then
38753 ol_cv_db_db_4_dot_2=yes
38755 echo "$as_me: failed program was:" >&5
38756 sed 's/^/| /' conftest.$ac_ext >&5
38758 ol_cv_db_db_4_dot_2=no
38760 rm -f conftest.err conftest.$ac_objext \
38761 conftest$ac_exeext conftest.$ac_ext
38766 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
38767 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
38769 if test $ol_cv_db_db_4_dot_2 = yes ; then
38770 ol_cv_lib_db=-ldb-4.2
38774 if test $ol_cv_lib_db = no ; then
38775 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
38776 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
38777 if test "${ol_cv_db_db_4_2+set}" = set; then
38778 echo $ECHO_N "(cached) $ECHO_C" >&6
38783 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38785 cat >conftest.$ac_ext <<_ACEOF
38788 cat confdefs.h >>conftest.$ac_ext
38789 cat >>conftest.$ac_ext <<_ACEOF
38790 /* end confdefs.h. */
38792 #ifdef HAVE_DB_185_H
38793 # include <db_185.h>
38798 #ifndef DB_VERSION_MAJOR
38799 # define DB_VERSION_MAJOR 1
38803 #define NULL ((void*)0)
38810 #if DB_VERSION_MAJOR > 1
38813 int major, minor, patch;
38815 version = db_version( &major, &minor, &patch );
38817 if( major != DB_VERSION_MAJOR ||
38818 minor < DB_VERSION_MINOR )
38820 printf("Berkeley DB version mismatch\n"
38821 "\theader: %s\n\tlibrary: %s\n",
38822 DB_VERSION_STRING, version);
38828 #if DB_VERSION_MAJOR > 2
38829 db_env_create( NULL, 0 );
38830 #elif DB_VERSION_MAJOR > 1
38831 db_appexit( NULL );
38833 (void) dbopen( NULL, 0, 0, 0, NULL);
38840 rm -f conftest.$ac_objext conftest$ac_exeext
38841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38842 (eval $ac_link) 2>conftest.er1
38844 grep -v '^ *+' conftest.er1 >conftest.err
38846 cat conftest.err >&5
38847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38848 (exit $ac_status); } &&
38849 { ac_try='test -z "$ac_c_werror_flag"
38850 || test ! -s conftest.err'
38851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38852 (eval $ac_try) 2>&5
38854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38855 (exit $ac_status); }; } &&
38856 { ac_try='test -s conftest$ac_exeext'
38857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38858 (eval $ac_try) 2>&5
38860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38861 (exit $ac_status); }; }; then
38862 ol_cv_db_db_4_2=yes
38864 echo "$as_me: failed program was:" >&5
38865 sed 's/^/| /' conftest.$ac_ext >&5
38869 rm -f conftest.err conftest.$ac_objext \
38870 conftest$ac_exeext conftest.$ac_ext
38875 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
38876 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
38878 if test $ol_cv_db_db_4_2 = yes ; then
38879 ol_cv_lib_db=-ldb-4-2
38883 if test $ol_cv_lib_db = no ; then
38884 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
38885 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
38886 if test "${ol_cv_db_db_4+set}" = set; then
38887 echo $ECHO_N "(cached) $ECHO_C" >&6
38892 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38894 cat >conftest.$ac_ext <<_ACEOF
38897 cat confdefs.h >>conftest.$ac_ext
38898 cat >>conftest.$ac_ext <<_ACEOF
38899 /* end confdefs.h. */
38901 #ifdef HAVE_DB_185_H
38902 # include <db_185.h>
38907 #ifndef DB_VERSION_MAJOR
38908 # define DB_VERSION_MAJOR 1
38912 #define NULL ((void*)0)
38919 #if DB_VERSION_MAJOR > 1
38922 int major, minor, patch;
38924 version = db_version( &major, &minor, &patch );
38926 if( major != DB_VERSION_MAJOR ||
38927 minor < DB_VERSION_MINOR )
38929 printf("Berkeley DB version mismatch\n"
38930 "\theader: %s\n\tlibrary: %s\n",
38931 DB_VERSION_STRING, version);
38937 #if DB_VERSION_MAJOR > 2
38938 db_env_create( NULL, 0 );
38939 #elif DB_VERSION_MAJOR > 1
38940 db_appexit( NULL );
38942 (void) dbopen( NULL, 0, 0, 0, NULL);
38949 rm -f conftest.$ac_objext conftest$ac_exeext
38950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38951 (eval $ac_link) 2>conftest.er1
38953 grep -v '^ *+' conftest.er1 >conftest.err
38955 cat conftest.err >&5
38956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38957 (exit $ac_status); } &&
38958 { ac_try='test -z "$ac_c_werror_flag"
38959 || test ! -s conftest.err'
38960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38961 (eval $ac_try) 2>&5
38963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38964 (exit $ac_status); }; } &&
38965 { ac_try='test -s conftest$ac_exeext'
38966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38967 (eval $ac_try) 2>&5
38969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38970 (exit $ac_status); }; }; then
38973 echo "$as_me: failed program was:" >&5
38974 sed 's/^/| /' conftest.$ac_ext >&5
38978 rm -f conftest.err conftest.$ac_objext \
38979 conftest$ac_exeext conftest.$ac_ext
38984 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
38985 echo "${ECHO_T}$ol_cv_db_db_4" >&6
38987 if test $ol_cv_db_db_4 = yes ; then
38988 ol_cv_lib_db=-ldb-4
38992 if test $ol_cv_lib_db = no ; then
38993 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
38994 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
38995 if test "${ol_cv_db_db4+set}" = set; then
38996 echo $ECHO_N "(cached) $ECHO_C" >&6
39001 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39003 cat >conftest.$ac_ext <<_ACEOF
39006 cat confdefs.h >>conftest.$ac_ext
39007 cat >>conftest.$ac_ext <<_ACEOF
39008 /* end confdefs.h. */
39010 #ifdef HAVE_DB_185_H
39011 # include <db_185.h>
39016 #ifndef DB_VERSION_MAJOR
39017 # define DB_VERSION_MAJOR 1
39021 #define NULL ((void*)0)
39028 #if DB_VERSION_MAJOR > 1
39031 int major, minor, patch;
39033 version = db_version( &major, &minor, &patch );
39035 if( major != DB_VERSION_MAJOR ||
39036 minor < DB_VERSION_MINOR )
39038 printf("Berkeley DB version mismatch\n"
39039 "\theader: %s\n\tlibrary: %s\n",
39040 DB_VERSION_STRING, version);
39046 #if DB_VERSION_MAJOR > 2
39047 db_env_create( NULL, 0 );
39048 #elif DB_VERSION_MAJOR > 1
39049 db_appexit( NULL );
39051 (void) dbopen( NULL, 0, 0, 0, NULL);
39058 rm -f conftest.$ac_objext conftest$ac_exeext
39059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39060 (eval $ac_link) 2>conftest.er1
39062 grep -v '^ *+' conftest.er1 >conftest.err
39064 cat conftest.err >&5
39065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39066 (exit $ac_status); } &&
39067 { ac_try='test -z "$ac_c_werror_flag"
39068 || test ! -s conftest.err'
39069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39070 (eval $ac_try) 2>&5
39072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39073 (exit $ac_status); }; } &&
39074 { ac_try='test -s conftest$ac_exeext'
39075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39076 (eval $ac_try) 2>&5
39078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39079 (exit $ac_status); }; }; then
39082 echo "$as_me: failed program was:" >&5
39083 sed 's/^/| /' conftest.$ac_ext >&5
39087 rm -f conftest.err conftest.$ac_objext \
39088 conftest$ac_exeext conftest.$ac_ext
39093 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
39094 echo "${ECHO_T}$ol_cv_db_db4" >&6
39096 if test $ol_cv_db_db4 = yes ; then
39101 if test $ol_cv_lib_db = no ; then
39102 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
39103 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
39104 if test "${ol_cv_db_db+set}" = set; then
39105 echo $ECHO_N "(cached) $ECHO_C" >&6
39110 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39112 cat >conftest.$ac_ext <<_ACEOF
39115 cat confdefs.h >>conftest.$ac_ext
39116 cat >>conftest.$ac_ext <<_ACEOF
39117 /* end confdefs.h. */
39119 #ifdef HAVE_DB_185_H
39120 # include <db_185.h>
39125 #ifndef DB_VERSION_MAJOR
39126 # define DB_VERSION_MAJOR 1
39130 #define NULL ((void*)0)
39137 #if DB_VERSION_MAJOR > 1
39140 int major, minor, patch;
39142 version = db_version( &major, &minor, &patch );
39144 if( major != DB_VERSION_MAJOR ||
39145 minor < DB_VERSION_MINOR )
39147 printf("Berkeley DB version mismatch\n"
39148 "\theader: %s\n\tlibrary: %s\n",
39149 DB_VERSION_STRING, version);
39155 #if DB_VERSION_MAJOR > 2
39156 db_env_create( NULL, 0 );
39157 #elif DB_VERSION_MAJOR > 1
39158 db_appexit( NULL );
39160 (void) dbopen( NULL, 0, 0, 0, NULL);
39167 rm -f conftest.$ac_objext conftest$ac_exeext
39168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39169 (eval $ac_link) 2>conftest.er1
39171 grep -v '^ *+' conftest.er1 >conftest.err
39173 cat conftest.err >&5
39174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39175 (exit $ac_status); } &&
39176 { ac_try='test -z "$ac_c_werror_flag"
39177 || test ! -s conftest.err'
39178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39179 (eval $ac_try) 2>&5
39181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39182 (exit $ac_status); }; } &&
39183 { ac_try='test -s conftest$ac_exeext'
39184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39185 (eval $ac_try) 2>&5
39187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39188 (exit $ac_status); }; }; then
39191 echo "$as_me: failed program was:" >&5
39192 sed 's/^/| /' conftest.$ac_ext >&5
39196 rm -f conftest.err conftest.$ac_objext \
39197 conftest$ac_exeext conftest.$ac_ext
39202 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
39203 echo "${ECHO_T}$ol_cv_db_db" >&6
39205 if test $ol_cv_db_db = yes ; then
39210 if test $ol_cv_lib_db = no ; then
39211 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
39212 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
39213 if test "${ol_cv_db_db41+set}" = set; then
39214 echo $ECHO_N "(cached) $ECHO_C" >&6
39219 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39221 cat >conftest.$ac_ext <<_ACEOF
39224 cat confdefs.h >>conftest.$ac_ext
39225 cat >>conftest.$ac_ext <<_ACEOF
39226 /* end confdefs.h. */
39228 #ifdef HAVE_DB_185_H
39229 # include <db_185.h>
39234 #ifndef DB_VERSION_MAJOR
39235 # define DB_VERSION_MAJOR 1
39239 #define NULL ((void*)0)
39246 #if DB_VERSION_MAJOR > 1
39249 int major, minor, patch;
39251 version = db_version( &major, &minor, &patch );
39253 if( major != DB_VERSION_MAJOR ||
39254 minor < DB_VERSION_MINOR )
39256 printf("Berkeley DB version mismatch\n"
39257 "\theader: %s\n\tlibrary: %s\n",
39258 DB_VERSION_STRING, version);
39264 #if DB_VERSION_MAJOR > 2
39265 db_env_create( NULL, 0 );
39266 #elif DB_VERSION_MAJOR > 1
39267 db_appexit( NULL );
39269 (void) dbopen( NULL, 0, 0, 0, NULL);
39276 rm -f conftest.$ac_objext conftest$ac_exeext
39277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39278 (eval $ac_link) 2>conftest.er1
39280 grep -v '^ *+' conftest.er1 >conftest.err
39282 cat conftest.err >&5
39283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39284 (exit $ac_status); } &&
39285 { ac_try='test -z "$ac_c_werror_flag"
39286 || test ! -s conftest.err'
39287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39288 (eval $ac_try) 2>&5
39290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39291 (exit $ac_status); }; } &&
39292 { ac_try='test -s conftest$ac_exeext'
39293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39294 (eval $ac_try) 2>&5
39296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39297 (exit $ac_status); }; }; then
39300 echo "$as_me: failed program was:" >&5
39301 sed 's/^/| /' conftest.$ac_ext >&5
39305 rm -f conftest.err conftest.$ac_objext \
39306 conftest$ac_exeext conftest.$ac_ext
39311 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
39312 echo "${ECHO_T}$ol_cv_db_db41" >&6
39314 if test $ol_cv_db_db41 = yes ; then
39315 ol_cv_lib_db=-ldb41
39319 if test $ol_cv_lib_db = no ; then
39320 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
39321 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
39322 if test "${ol_cv_db_db_41+set}" = set; then
39323 echo $ECHO_N "(cached) $ECHO_C" >&6
39328 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39330 cat >conftest.$ac_ext <<_ACEOF
39333 cat confdefs.h >>conftest.$ac_ext
39334 cat >>conftest.$ac_ext <<_ACEOF
39335 /* end confdefs.h. */
39337 #ifdef HAVE_DB_185_H
39338 # include <db_185.h>
39343 #ifndef DB_VERSION_MAJOR
39344 # define DB_VERSION_MAJOR 1
39348 #define NULL ((void*)0)
39355 #if DB_VERSION_MAJOR > 1
39358 int major, minor, patch;
39360 version = db_version( &major, &minor, &patch );
39362 if( major != DB_VERSION_MAJOR ||
39363 minor < DB_VERSION_MINOR )
39365 printf("Berkeley DB version mismatch\n"
39366 "\theader: %s\n\tlibrary: %s\n",
39367 DB_VERSION_STRING, version);
39373 #if DB_VERSION_MAJOR > 2
39374 db_env_create( NULL, 0 );
39375 #elif DB_VERSION_MAJOR > 1
39376 db_appexit( NULL );
39378 (void) dbopen( NULL, 0, 0, 0, NULL);
39385 rm -f conftest.$ac_objext conftest$ac_exeext
39386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39387 (eval $ac_link) 2>conftest.er1
39389 grep -v '^ *+' conftest.er1 >conftest.err
39391 cat conftest.err >&5
39392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39393 (exit $ac_status); } &&
39394 { ac_try='test -z "$ac_c_werror_flag"
39395 || test ! -s conftest.err'
39396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39397 (eval $ac_try) 2>&5
39399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39400 (exit $ac_status); }; } &&
39401 { ac_try='test -s conftest$ac_exeext'
39402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39403 (eval $ac_try) 2>&5
39405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39406 (exit $ac_status); }; }; then
39409 echo "$as_me: failed program was:" >&5
39410 sed 's/^/| /' conftest.$ac_ext >&5
39414 rm -f conftest.err conftest.$ac_objext \
39415 conftest$ac_exeext conftest.$ac_ext
39420 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
39421 echo "${ECHO_T}$ol_cv_db_db_41" >&6
39423 if test $ol_cv_db_db_41 = yes ; then
39424 ol_cv_lib_db=-ldb-41
39428 if test $ol_cv_lib_db = no ; then
39429 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
39430 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
39431 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
39432 echo $ECHO_N "(cached) $ECHO_C" >&6
39437 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39439 cat >conftest.$ac_ext <<_ACEOF
39442 cat confdefs.h >>conftest.$ac_ext
39443 cat >>conftest.$ac_ext <<_ACEOF
39444 /* end confdefs.h. */
39446 #ifdef HAVE_DB_185_H
39447 # include <db_185.h>
39452 #ifndef DB_VERSION_MAJOR
39453 # define DB_VERSION_MAJOR 1
39457 #define NULL ((void*)0)
39464 #if DB_VERSION_MAJOR > 1
39467 int major, minor, patch;
39469 version = db_version( &major, &minor, &patch );
39471 if( major != DB_VERSION_MAJOR ||
39472 minor < DB_VERSION_MINOR )
39474 printf("Berkeley DB version mismatch\n"
39475 "\theader: %s\n\tlibrary: %s\n",
39476 DB_VERSION_STRING, version);
39482 #if DB_VERSION_MAJOR > 2
39483 db_env_create( NULL, 0 );
39484 #elif DB_VERSION_MAJOR > 1
39485 db_appexit( NULL );
39487 (void) dbopen( NULL, 0, 0, 0, NULL);
39494 rm -f conftest.$ac_objext conftest$ac_exeext
39495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39496 (eval $ac_link) 2>conftest.er1
39498 grep -v '^ *+' conftest.er1 >conftest.err
39500 cat conftest.err >&5
39501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39502 (exit $ac_status); } &&
39503 { ac_try='test -z "$ac_c_werror_flag"
39504 || test ! -s conftest.err'
39505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39506 (eval $ac_try) 2>&5
39508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39509 (exit $ac_status); }; } &&
39510 { ac_try='test -s conftest$ac_exeext'
39511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39512 (eval $ac_try) 2>&5
39514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39515 (exit $ac_status); }; }; then
39516 ol_cv_db_db_4_dot_1=yes
39518 echo "$as_me: failed program was:" >&5
39519 sed 's/^/| /' conftest.$ac_ext >&5
39521 ol_cv_db_db_4_dot_1=no
39523 rm -f conftest.err conftest.$ac_objext \
39524 conftest$ac_exeext conftest.$ac_ext
39529 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
39530 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
39532 if test $ol_cv_db_db_4_dot_1 = yes ; then
39533 ol_cv_lib_db=-ldb-4.1
39537 if test $ol_cv_lib_db = no ; then
39538 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
39539 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
39540 if test "${ol_cv_db_db_4_1+set}" = set; then
39541 echo $ECHO_N "(cached) $ECHO_C" >&6
39546 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39548 cat >conftest.$ac_ext <<_ACEOF
39551 cat confdefs.h >>conftest.$ac_ext
39552 cat >>conftest.$ac_ext <<_ACEOF
39553 /* end confdefs.h. */
39555 #ifdef HAVE_DB_185_H
39556 # include <db_185.h>
39561 #ifndef DB_VERSION_MAJOR
39562 # define DB_VERSION_MAJOR 1
39566 #define NULL ((void*)0)
39573 #if DB_VERSION_MAJOR > 1
39576 int major, minor, patch;
39578 version = db_version( &major, &minor, &patch );
39580 if( major != DB_VERSION_MAJOR ||
39581 minor < DB_VERSION_MINOR )
39583 printf("Berkeley DB version mismatch\n"
39584 "\theader: %s\n\tlibrary: %s\n",
39585 DB_VERSION_STRING, version);
39591 #if DB_VERSION_MAJOR > 2
39592 db_env_create( NULL, 0 );
39593 #elif DB_VERSION_MAJOR > 1
39594 db_appexit( NULL );
39596 (void) dbopen( NULL, 0, 0, 0, NULL);
39603 rm -f conftest.$ac_objext conftest$ac_exeext
39604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39605 (eval $ac_link) 2>conftest.er1
39607 grep -v '^ *+' conftest.er1 >conftest.err
39609 cat conftest.err >&5
39610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39611 (exit $ac_status); } &&
39612 { ac_try='test -z "$ac_c_werror_flag"
39613 || test ! -s conftest.err'
39614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39615 (eval $ac_try) 2>&5
39617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39618 (exit $ac_status); }; } &&
39619 { ac_try='test -s conftest$ac_exeext'
39620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39621 (eval $ac_try) 2>&5
39623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39624 (exit $ac_status); }; }; then
39625 ol_cv_db_db_4_1=yes
39627 echo "$as_me: failed program was:" >&5
39628 sed 's/^/| /' conftest.$ac_ext >&5
39632 rm -f conftest.err conftest.$ac_objext \
39633 conftest$ac_exeext conftest.$ac_ext
39638 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
39639 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
39641 if test $ol_cv_db_db_4_1 = yes ; then
39642 ol_cv_lib_db=-ldb-4-1
39646 if test $ol_cv_lib_db = no ; then
39647 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
39648 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
39649 if test "${ol_cv_db_db3+set}" = set; then
39650 echo $ECHO_N "(cached) $ECHO_C" >&6
39655 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39657 cat >conftest.$ac_ext <<_ACEOF
39660 cat confdefs.h >>conftest.$ac_ext
39661 cat >>conftest.$ac_ext <<_ACEOF
39662 /* end confdefs.h. */
39664 #ifdef HAVE_DB_185_H
39665 # include <db_185.h>
39670 #ifndef DB_VERSION_MAJOR
39671 # define DB_VERSION_MAJOR 1
39675 #define NULL ((void*)0)
39682 #if DB_VERSION_MAJOR > 1
39685 int major, minor, patch;
39687 version = db_version( &major, &minor, &patch );
39689 if( major != DB_VERSION_MAJOR ||
39690 minor < DB_VERSION_MINOR )
39692 printf("Berkeley DB version mismatch\n"
39693 "\theader: %s\n\tlibrary: %s\n",
39694 DB_VERSION_STRING, version);
39700 #if DB_VERSION_MAJOR > 2
39701 db_env_create( NULL, 0 );
39702 #elif DB_VERSION_MAJOR > 1
39703 db_appexit( NULL );
39705 (void) dbopen( NULL, 0, 0, 0, NULL);
39712 rm -f conftest.$ac_objext conftest$ac_exeext
39713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39714 (eval $ac_link) 2>conftest.er1
39716 grep -v '^ *+' conftest.er1 >conftest.err
39718 cat conftest.err >&5
39719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39720 (exit $ac_status); } &&
39721 { ac_try='test -z "$ac_c_werror_flag"
39722 || test ! -s conftest.err'
39723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39724 (eval $ac_try) 2>&5
39726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39727 (exit $ac_status); }; } &&
39728 { ac_try='test -s conftest$ac_exeext'
39729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39730 (eval $ac_try) 2>&5
39732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39733 (exit $ac_status); }; }; then
39736 echo "$as_me: failed program was:" >&5
39737 sed 's/^/| /' conftest.$ac_ext >&5
39741 rm -f conftest.err conftest.$ac_objext \
39742 conftest$ac_exeext conftest.$ac_ext
39747 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
39748 echo "${ECHO_T}$ol_cv_db_db3" >&6
39750 if test $ol_cv_db_db3 = yes ; then
39755 if test $ol_cv_lib_db = no ; then
39756 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
39757 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
39758 if test "${ol_cv_db_db_3+set}" = set; then
39759 echo $ECHO_N "(cached) $ECHO_C" >&6
39764 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39766 cat >conftest.$ac_ext <<_ACEOF
39769 cat confdefs.h >>conftest.$ac_ext
39770 cat >>conftest.$ac_ext <<_ACEOF
39771 /* end confdefs.h. */
39773 #ifdef HAVE_DB_185_H
39774 # include <db_185.h>
39779 #ifndef DB_VERSION_MAJOR
39780 # define DB_VERSION_MAJOR 1
39784 #define NULL ((void*)0)
39791 #if DB_VERSION_MAJOR > 1
39794 int major, minor, patch;
39796 version = db_version( &major, &minor, &patch );
39798 if( major != DB_VERSION_MAJOR ||
39799 minor < DB_VERSION_MINOR )
39801 printf("Berkeley DB version mismatch\n"
39802 "\theader: %s\n\tlibrary: %s\n",
39803 DB_VERSION_STRING, version);
39809 #if DB_VERSION_MAJOR > 2
39810 db_env_create( NULL, 0 );
39811 #elif DB_VERSION_MAJOR > 1
39812 db_appexit( NULL );
39814 (void) dbopen( NULL, 0, 0, 0, NULL);
39821 rm -f conftest.$ac_objext conftest$ac_exeext
39822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39823 (eval $ac_link) 2>conftest.er1
39825 grep -v '^ *+' conftest.er1 >conftest.err
39827 cat conftest.err >&5
39828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39829 (exit $ac_status); } &&
39830 { ac_try='test -z "$ac_c_werror_flag"
39831 || test ! -s conftest.err'
39832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39833 (eval $ac_try) 2>&5
39835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39836 (exit $ac_status); }; } &&
39837 { ac_try='test -s conftest$ac_exeext'
39838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39839 (eval $ac_try) 2>&5
39841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39842 (exit $ac_status); }; }; then
39845 echo "$as_me: failed program was:" >&5
39846 sed 's/^/| /' conftest.$ac_ext >&5
39850 rm -f conftest.err conftest.$ac_objext \
39851 conftest$ac_exeext conftest.$ac_ext
39856 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
39857 echo "${ECHO_T}$ol_cv_db_db_3" >&6
39859 if test $ol_cv_db_db_3 = yes ; then
39860 ol_cv_lib_db=-ldb-3
39864 if test $ol_cv_lib_db = no ; then
39865 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
39866 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
39867 if test "${ol_cv_db_db2+set}" = set; then
39868 echo $ECHO_N "(cached) $ECHO_C" >&6
39873 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39875 cat >conftest.$ac_ext <<_ACEOF
39878 cat confdefs.h >>conftest.$ac_ext
39879 cat >>conftest.$ac_ext <<_ACEOF
39880 /* end confdefs.h. */
39882 #ifdef HAVE_DB_185_H
39883 # include <db_185.h>
39888 #ifndef DB_VERSION_MAJOR
39889 # define DB_VERSION_MAJOR 1
39893 #define NULL ((void*)0)
39900 #if DB_VERSION_MAJOR > 1
39903 int major, minor, patch;
39905 version = db_version( &major, &minor, &patch );
39907 if( major != DB_VERSION_MAJOR ||
39908 minor < DB_VERSION_MINOR )
39910 printf("Berkeley DB version mismatch\n"
39911 "\theader: %s\n\tlibrary: %s\n",
39912 DB_VERSION_STRING, version);
39918 #if DB_VERSION_MAJOR > 2
39919 db_env_create( NULL, 0 );
39920 #elif DB_VERSION_MAJOR > 1
39921 db_appexit( NULL );
39923 (void) dbopen( NULL, 0, 0, 0, NULL);
39930 rm -f conftest.$ac_objext conftest$ac_exeext
39931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39932 (eval $ac_link) 2>conftest.er1
39934 grep -v '^ *+' conftest.er1 >conftest.err
39936 cat conftest.err >&5
39937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39938 (exit $ac_status); } &&
39939 { ac_try='test -z "$ac_c_werror_flag"
39940 || test ! -s conftest.err'
39941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39942 (eval $ac_try) 2>&5
39944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39945 (exit $ac_status); }; } &&
39946 { ac_try='test -s conftest$ac_exeext'
39947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39948 (eval $ac_try) 2>&5
39950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39951 (exit $ac_status); }; }; then
39954 echo "$as_me: failed program was:" >&5
39955 sed 's/^/| /' conftest.$ac_ext >&5
39959 rm -f conftest.err conftest.$ac_objext \
39960 conftest$ac_exeext conftest.$ac_ext
39965 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
39966 echo "${ECHO_T}$ol_cv_db_db2" >&6
39968 if test $ol_cv_db_db2 = yes ; then
39973 if test $ol_cv_lib_db = no ; then
39974 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
39975 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
39976 if test "${ol_cv_db_db_2+set}" = set; then
39977 echo $ECHO_N "(cached) $ECHO_C" >&6
39982 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39984 cat >conftest.$ac_ext <<_ACEOF
39987 cat confdefs.h >>conftest.$ac_ext
39988 cat >>conftest.$ac_ext <<_ACEOF
39989 /* end confdefs.h. */
39991 #ifdef HAVE_DB_185_H
39992 # include <db_185.h>
39997 #ifndef DB_VERSION_MAJOR
39998 # define DB_VERSION_MAJOR 1
40002 #define NULL ((void*)0)
40009 #if DB_VERSION_MAJOR > 1
40012 int major, minor, patch;
40014 version = db_version( &major, &minor, &patch );
40016 if( major != DB_VERSION_MAJOR ||
40017 minor < DB_VERSION_MINOR )
40019 printf("Berkeley DB version mismatch\n"
40020 "\theader: %s\n\tlibrary: %s\n",
40021 DB_VERSION_STRING, version);
40027 #if DB_VERSION_MAJOR > 2
40028 db_env_create( NULL, 0 );
40029 #elif DB_VERSION_MAJOR > 1
40030 db_appexit( NULL );
40032 (void) dbopen( NULL, 0, 0, 0, NULL);
40039 rm -f conftest.$ac_objext conftest$ac_exeext
40040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40041 (eval $ac_link) 2>conftest.er1
40043 grep -v '^ *+' conftest.er1 >conftest.err
40045 cat conftest.err >&5
40046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40047 (exit $ac_status); } &&
40048 { ac_try='test -z "$ac_c_werror_flag"
40049 || test ! -s conftest.err'
40050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40051 (eval $ac_try) 2>&5
40053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40054 (exit $ac_status); }; } &&
40055 { ac_try='test -s conftest$ac_exeext'
40056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40057 (eval $ac_try) 2>&5
40059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40060 (exit $ac_status); }; }; then
40063 echo "$as_me: failed program was:" >&5
40064 sed 's/^/| /' conftest.$ac_ext >&5
40068 rm -f conftest.err conftest.$ac_objext \
40069 conftest$ac_exeext conftest.$ac_ext
40074 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
40075 echo "${ECHO_T}$ol_cv_db_db_2" >&6
40077 if test $ol_cv_db_db_2 = yes ; then
40078 ol_cv_lib_db=-ldb-2
40082 if test $ol_cv_lib_db = no ; then
40083 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
40084 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
40085 if test "${ol_cv_db_db1+set}" = set; then
40086 echo $ECHO_N "(cached) $ECHO_C" >&6
40091 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40093 cat >conftest.$ac_ext <<_ACEOF
40096 cat confdefs.h >>conftest.$ac_ext
40097 cat >>conftest.$ac_ext <<_ACEOF
40098 /* end confdefs.h. */
40100 #ifdef HAVE_DB_185_H
40101 # include <db_185.h>
40106 #ifndef DB_VERSION_MAJOR
40107 # define DB_VERSION_MAJOR 1
40111 #define NULL ((void*)0)
40118 #if DB_VERSION_MAJOR > 1
40121 int major, minor, patch;
40123 version = db_version( &major, &minor, &patch );
40125 if( major != DB_VERSION_MAJOR ||
40126 minor < DB_VERSION_MINOR )
40128 printf("Berkeley DB version mismatch\n"
40129 "\theader: %s\n\tlibrary: %s\n",
40130 DB_VERSION_STRING, version);
40136 #if DB_VERSION_MAJOR > 2
40137 db_env_create( NULL, 0 );
40138 #elif DB_VERSION_MAJOR > 1
40139 db_appexit( NULL );
40141 (void) dbopen( NULL, 0, 0, 0, NULL);
40148 rm -f conftest.$ac_objext conftest$ac_exeext
40149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40150 (eval $ac_link) 2>conftest.er1
40152 grep -v '^ *+' conftest.er1 >conftest.err
40154 cat conftest.err >&5
40155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40156 (exit $ac_status); } &&
40157 { ac_try='test -z "$ac_c_werror_flag"
40158 || test ! -s conftest.err'
40159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40160 (eval $ac_try) 2>&5
40162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40163 (exit $ac_status); }; } &&
40164 { ac_try='test -s conftest$ac_exeext'
40165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40166 (eval $ac_try) 2>&5
40168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40169 (exit $ac_status); }; }; then
40172 echo "$as_me: failed program was:" >&5
40173 sed 's/^/| /' conftest.$ac_ext >&5
40177 rm -f conftest.err conftest.$ac_objext \
40178 conftest$ac_exeext conftest.$ac_ext
40183 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
40184 echo "${ECHO_T}$ol_cv_db_db1" >&6
40186 if test $ol_cv_db_db1 = yes ; then
40191 if test $ol_cv_lib_db = no ; then
40192 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
40193 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
40194 if test "${ol_cv_db_db_1+set}" = set; then
40195 echo $ECHO_N "(cached) $ECHO_C" >&6
40200 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40202 cat >conftest.$ac_ext <<_ACEOF
40205 cat confdefs.h >>conftest.$ac_ext
40206 cat >>conftest.$ac_ext <<_ACEOF
40207 /* end confdefs.h. */
40209 #ifdef HAVE_DB_185_H
40210 # include <db_185.h>
40215 #ifndef DB_VERSION_MAJOR
40216 # define DB_VERSION_MAJOR 1
40220 #define NULL ((void*)0)
40227 #if DB_VERSION_MAJOR > 1
40230 int major, minor, patch;
40232 version = db_version( &major, &minor, &patch );
40234 if( major != DB_VERSION_MAJOR ||
40235 minor < DB_VERSION_MINOR )
40237 printf("Berkeley DB version mismatch\n"
40238 "\theader: %s\n\tlibrary: %s\n",
40239 DB_VERSION_STRING, version);
40245 #if DB_VERSION_MAJOR > 2
40246 db_env_create( NULL, 0 );
40247 #elif DB_VERSION_MAJOR > 1
40248 db_appexit( NULL );
40250 (void) dbopen( NULL, 0, 0, 0, NULL);
40257 rm -f conftest.$ac_objext conftest$ac_exeext
40258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40259 (eval $ac_link) 2>conftest.er1
40261 grep -v '^ *+' conftest.er1 >conftest.err
40263 cat conftest.err >&5
40264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40265 (exit $ac_status); } &&
40266 { ac_try='test -z "$ac_c_werror_flag"
40267 || test ! -s conftest.err'
40268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40269 (eval $ac_try) 2>&5
40271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40272 (exit $ac_status); }; } &&
40273 { ac_try='test -s conftest$ac_exeext'
40274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40275 (eval $ac_try) 2>&5
40277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40278 (exit $ac_status); }; }; then
40281 echo "$as_me: failed program was:" >&5
40282 sed 's/^/| /' conftest.$ac_ext >&5
40286 rm -f conftest.err conftest.$ac_objext \
40287 conftest$ac_exeext conftest.$ac_ext
40292 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
40293 echo "${ECHO_T}$ol_cv_db_db_1" >&6
40295 if test $ol_cv_db_db_1 = yes ; then
40296 ol_cv_lib_db=-ldb-1
40301 if test "$ol_cv_lib_db" != no ; then
40302 ol_cv_berkeley_db=yes
40308 ol_cv_berkeley_db=no
40310 for ac_header in db.h
40312 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40314 echo "$as_me:$LINENO: checking for $ac_header" >&5
40315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40316 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40317 echo $ECHO_N "(cached) $ECHO_C" >&6
40319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40320 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40322 # Is the header compilable?
40323 echo "$as_me:$LINENO: checking $ac_header usability" >&5
40324 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
40325 cat >conftest.$ac_ext <<_ACEOF
40328 cat confdefs.h >>conftest.$ac_ext
40329 cat >>conftest.$ac_ext <<_ACEOF
40330 /* end confdefs.h. */
40331 $ac_includes_default
40332 #include <$ac_header>
40334 rm -f conftest.$ac_objext
40335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40336 (eval $ac_compile) 2>conftest.er1
40338 grep -v '^ *+' conftest.er1 >conftest.err
40340 cat conftest.err >&5
40341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40342 (exit $ac_status); } &&
40343 { ac_try='test -z "$ac_c_werror_flag"
40344 || test ! -s conftest.err'
40345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40346 (eval $ac_try) 2>&5
40348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40349 (exit $ac_status); }; } &&
40350 { ac_try='test -s conftest.$ac_objext'
40351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40352 (eval $ac_try) 2>&5
40354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40355 (exit $ac_status); }; }; then
40356 ac_header_compiler=yes
40358 echo "$as_me: failed program was:" >&5
40359 sed 's/^/| /' conftest.$ac_ext >&5
40361 ac_header_compiler=no
40363 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40364 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40365 echo "${ECHO_T}$ac_header_compiler" >&6
40367 # Is the header present?
40368 echo "$as_me:$LINENO: checking $ac_header presence" >&5
40369 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
40370 cat >conftest.$ac_ext <<_ACEOF
40373 cat confdefs.h >>conftest.$ac_ext
40374 cat >>conftest.$ac_ext <<_ACEOF
40375 /* end confdefs.h. */
40376 #include <$ac_header>
40378 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
40379 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
40381 grep -v '^ *+' conftest.er1 >conftest.err
40383 cat conftest.err >&5
40384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40385 (exit $ac_status); } >/dev/null; then
40386 if test -s conftest.err; then
40387 ac_cpp_err=$ac_c_preproc_warn_flag
40388 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
40395 if test -z "$ac_cpp_err"; then
40396 ac_header_preproc=yes
40398 echo "$as_me: failed program was:" >&5
40399 sed 's/^/| /' conftest.$ac_ext >&5
40401 ac_header_preproc=no
40403 rm -f conftest.err conftest.$ac_ext
40404 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40405 echo "${ECHO_T}$ac_header_preproc" >&6
40407 # So? What about this header?
40408 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40410 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40411 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40412 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40413 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40414 ac_header_preproc=yes
40417 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40418 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40419 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40420 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40421 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40422 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40423 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40424 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
40425 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40426 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40427 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40428 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40431 ## ------------------------------------------ ##
40432 ## Report this to the AC_PACKAGE_NAME lists. ##
40433 ## ------------------------------------------ ##
40436 sed "s/^/$as_me: WARNING: /" >&2
40439 echo "$as_me:$LINENO: checking for $ac_header" >&5
40440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40441 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40442 echo $ECHO_N "(cached) $ECHO_C" >&6
40444 eval "$as_ac_Header=\$ac_header_preproc"
40446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40447 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40450 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40451 cat >>confdefs.h <<_ACEOF
40452 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40459 if test $ac_cv_header_db_h = yes; then
40461 if test $ol_cv_lib_db = no ; then
40462 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
40463 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
40464 if test "${ol_cv_db_none+set}" = set; then
40465 echo $ECHO_N "(cached) $ECHO_C" >&6
40470 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40472 cat >conftest.$ac_ext <<_ACEOF
40475 cat confdefs.h >>conftest.$ac_ext
40476 cat >>conftest.$ac_ext <<_ACEOF
40477 /* end confdefs.h. */
40479 #ifdef HAVE_DB_185_H
40480 # include <db_185.h>
40485 #ifndef DB_VERSION_MAJOR
40486 # define DB_VERSION_MAJOR 1
40490 #define NULL ((void*)0)
40497 #if DB_VERSION_MAJOR > 1
40500 int major, minor, patch;
40502 version = db_version( &major, &minor, &patch );
40504 if( major != DB_VERSION_MAJOR ||
40505 minor < DB_VERSION_MINOR )
40507 printf("Berkeley DB version mismatch\n"
40508 "\theader: %s\n\tlibrary: %s\n",
40509 DB_VERSION_STRING, version);
40515 #if DB_VERSION_MAJOR > 2
40516 db_env_create( NULL, 0 );
40517 #elif DB_VERSION_MAJOR > 1
40518 db_appexit( NULL );
40520 (void) dbopen( NULL, 0, 0, 0, NULL);
40527 rm -f conftest.$ac_objext conftest$ac_exeext
40528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40529 (eval $ac_link) 2>conftest.er1
40531 grep -v '^ *+' conftest.er1 >conftest.err
40533 cat conftest.err >&5
40534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40535 (exit $ac_status); } &&
40536 { ac_try='test -z "$ac_c_werror_flag"
40537 || test ! -s conftest.err'
40538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40539 (eval $ac_try) 2>&5
40541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40542 (exit $ac_status); }; } &&
40543 { ac_try='test -s conftest$ac_exeext'
40544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40545 (eval $ac_try) 2>&5
40547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40548 (exit $ac_status); }; }; then
40551 echo "$as_me: failed program was:" >&5
40552 sed 's/^/| /' conftest.$ac_ext >&5
40556 rm -f conftest.err conftest.$ac_objext \
40557 conftest$ac_exeext conftest.$ac_ext
40562 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
40563 echo "${ECHO_T}$ol_cv_db_none" >&6
40565 if test $ol_cv_db_none = yes ; then
40570 if test $ol_cv_lib_db = no ; then
40571 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
40572 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
40573 if test "${ol_cv_db_db43+set}" = set; then
40574 echo $ECHO_N "(cached) $ECHO_C" >&6
40579 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40581 cat >conftest.$ac_ext <<_ACEOF
40584 cat confdefs.h >>conftest.$ac_ext
40585 cat >>conftest.$ac_ext <<_ACEOF
40586 /* end confdefs.h. */
40588 #ifdef HAVE_DB_185_H
40589 # include <db_185.h>
40594 #ifndef DB_VERSION_MAJOR
40595 # define DB_VERSION_MAJOR 1
40599 #define NULL ((void*)0)
40606 #if DB_VERSION_MAJOR > 1
40609 int major, minor, patch;
40611 version = db_version( &major, &minor, &patch );
40613 if( major != DB_VERSION_MAJOR ||
40614 minor < DB_VERSION_MINOR )
40616 printf("Berkeley DB version mismatch\n"
40617 "\theader: %s\n\tlibrary: %s\n",
40618 DB_VERSION_STRING, version);
40624 #if DB_VERSION_MAJOR > 2
40625 db_env_create( NULL, 0 );
40626 #elif DB_VERSION_MAJOR > 1
40627 db_appexit( NULL );
40629 (void) dbopen( NULL, 0, 0, 0, NULL);
40636 rm -f conftest.$ac_objext conftest$ac_exeext
40637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40638 (eval $ac_link) 2>conftest.er1
40640 grep -v '^ *+' conftest.er1 >conftest.err
40642 cat conftest.err >&5
40643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40644 (exit $ac_status); } &&
40645 { ac_try='test -z "$ac_c_werror_flag"
40646 || test ! -s conftest.err'
40647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40648 (eval $ac_try) 2>&5
40650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40651 (exit $ac_status); }; } &&
40652 { ac_try='test -s conftest$ac_exeext'
40653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40654 (eval $ac_try) 2>&5
40656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40657 (exit $ac_status); }; }; then
40660 echo "$as_me: failed program was:" >&5
40661 sed 's/^/| /' conftest.$ac_ext >&5
40665 rm -f conftest.err conftest.$ac_objext \
40666 conftest$ac_exeext conftest.$ac_ext
40671 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
40672 echo "${ECHO_T}$ol_cv_db_db43" >&6
40674 if test $ol_cv_db_db43 = yes ; then
40675 ol_cv_lib_db=-ldb43
40679 if test $ol_cv_lib_db = no ; then
40680 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
40681 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
40682 if test "${ol_cv_db_db_43+set}" = set; then
40683 echo $ECHO_N "(cached) $ECHO_C" >&6
40688 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40690 cat >conftest.$ac_ext <<_ACEOF
40693 cat confdefs.h >>conftest.$ac_ext
40694 cat >>conftest.$ac_ext <<_ACEOF
40695 /* end confdefs.h. */
40697 #ifdef HAVE_DB_185_H
40698 # include <db_185.h>
40703 #ifndef DB_VERSION_MAJOR
40704 # define DB_VERSION_MAJOR 1
40708 #define NULL ((void*)0)
40715 #if DB_VERSION_MAJOR > 1
40718 int major, minor, patch;
40720 version = db_version( &major, &minor, &patch );
40722 if( major != DB_VERSION_MAJOR ||
40723 minor < DB_VERSION_MINOR )
40725 printf("Berkeley DB version mismatch\n"
40726 "\theader: %s\n\tlibrary: %s\n",
40727 DB_VERSION_STRING, version);
40733 #if DB_VERSION_MAJOR > 2
40734 db_env_create( NULL, 0 );
40735 #elif DB_VERSION_MAJOR > 1
40736 db_appexit( NULL );
40738 (void) dbopen( NULL, 0, 0, 0, NULL);
40745 rm -f conftest.$ac_objext conftest$ac_exeext
40746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40747 (eval $ac_link) 2>conftest.er1
40749 grep -v '^ *+' conftest.er1 >conftest.err
40751 cat conftest.err >&5
40752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40753 (exit $ac_status); } &&
40754 { ac_try='test -z "$ac_c_werror_flag"
40755 || test ! -s conftest.err'
40756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40757 (eval $ac_try) 2>&5
40759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40760 (exit $ac_status); }; } &&
40761 { ac_try='test -s conftest$ac_exeext'
40762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40763 (eval $ac_try) 2>&5
40765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40766 (exit $ac_status); }; }; then
40769 echo "$as_me: failed program was:" >&5
40770 sed 's/^/| /' conftest.$ac_ext >&5
40774 rm -f conftest.err conftest.$ac_objext \
40775 conftest$ac_exeext conftest.$ac_ext
40780 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
40781 echo "${ECHO_T}$ol_cv_db_db_43" >&6
40783 if test $ol_cv_db_db_43 = yes ; then
40784 ol_cv_lib_db=-ldb-43
40788 if test $ol_cv_lib_db = no ; then
40789 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
40790 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
40791 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
40792 echo $ECHO_N "(cached) $ECHO_C" >&6
40797 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40799 cat >conftest.$ac_ext <<_ACEOF
40802 cat confdefs.h >>conftest.$ac_ext
40803 cat >>conftest.$ac_ext <<_ACEOF
40804 /* end confdefs.h. */
40806 #ifdef HAVE_DB_185_H
40807 # include <db_185.h>
40812 #ifndef DB_VERSION_MAJOR
40813 # define DB_VERSION_MAJOR 1
40817 #define NULL ((void*)0)
40824 #if DB_VERSION_MAJOR > 1
40827 int major, minor, patch;
40829 version = db_version( &major, &minor, &patch );
40831 if( major != DB_VERSION_MAJOR ||
40832 minor < DB_VERSION_MINOR )
40834 printf("Berkeley DB version mismatch\n"
40835 "\theader: %s\n\tlibrary: %s\n",
40836 DB_VERSION_STRING, version);
40842 #if DB_VERSION_MAJOR > 2
40843 db_env_create( NULL, 0 );
40844 #elif DB_VERSION_MAJOR > 1
40845 db_appexit( NULL );
40847 (void) dbopen( NULL, 0, 0, 0, NULL);
40854 rm -f conftest.$ac_objext conftest$ac_exeext
40855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40856 (eval $ac_link) 2>conftest.er1
40858 grep -v '^ *+' conftest.er1 >conftest.err
40860 cat conftest.err >&5
40861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40862 (exit $ac_status); } &&
40863 { ac_try='test -z "$ac_c_werror_flag"
40864 || test ! -s conftest.err'
40865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40866 (eval $ac_try) 2>&5
40868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40869 (exit $ac_status); }; } &&
40870 { ac_try='test -s conftest$ac_exeext'
40871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40872 (eval $ac_try) 2>&5
40874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40875 (exit $ac_status); }; }; then
40876 ol_cv_db_db_4_dot_3=yes
40878 echo "$as_me: failed program was:" >&5
40879 sed 's/^/| /' conftest.$ac_ext >&5
40881 ol_cv_db_db_4_dot_3=no
40883 rm -f conftest.err conftest.$ac_objext \
40884 conftest$ac_exeext conftest.$ac_ext
40889 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
40890 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
40892 if test $ol_cv_db_db_4_dot_3 = yes ; then
40893 ol_cv_lib_db=-ldb-4.3
40897 if test $ol_cv_lib_db = no ; then
40898 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
40899 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
40900 if test "${ol_cv_db_db_4_3+set}" = set; then
40901 echo $ECHO_N "(cached) $ECHO_C" >&6
40906 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40908 cat >conftest.$ac_ext <<_ACEOF
40911 cat confdefs.h >>conftest.$ac_ext
40912 cat >>conftest.$ac_ext <<_ACEOF
40913 /* end confdefs.h. */
40915 #ifdef HAVE_DB_185_H
40916 # include <db_185.h>
40921 #ifndef DB_VERSION_MAJOR
40922 # define DB_VERSION_MAJOR 1
40926 #define NULL ((void*)0)
40933 #if DB_VERSION_MAJOR > 1
40936 int major, minor, patch;
40938 version = db_version( &major, &minor, &patch );
40940 if( major != DB_VERSION_MAJOR ||
40941 minor < DB_VERSION_MINOR )
40943 printf("Berkeley DB version mismatch\n"
40944 "\theader: %s\n\tlibrary: %s\n",
40945 DB_VERSION_STRING, version);
40951 #if DB_VERSION_MAJOR > 2
40952 db_env_create( NULL, 0 );
40953 #elif DB_VERSION_MAJOR > 1
40954 db_appexit( NULL );
40956 (void) dbopen( NULL, 0, 0, 0, NULL);
40963 rm -f conftest.$ac_objext conftest$ac_exeext
40964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40965 (eval $ac_link) 2>conftest.er1
40967 grep -v '^ *+' conftest.er1 >conftest.err
40969 cat conftest.err >&5
40970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40971 (exit $ac_status); } &&
40972 { ac_try='test -z "$ac_c_werror_flag"
40973 || test ! -s conftest.err'
40974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40975 (eval $ac_try) 2>&5
40977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40978 (exit $ac_status); }; } &&
40979 { ac_try='test -s conftest$ac_exeext'
40980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40981 (eval $ac_try) 2>&5
40983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40984 (exit $ac_status); }; }; then
40985 ol_cv_db_db_4_3=yes
40987 echo "$as_me: failed program was:" >&5
40988 sed 's/^/| /' conftest.$ac_ext >&5
40992 rm -f conftest.err conftest.$ac_objext \
40993 conftest$ac_exeext conftest.$ac_ext
40998 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
40999 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
41001 if test $ol_cv_db_db_4_3 = yes ; then
41002 ol_cv_lib_db=-ldb-4-3
41006 if test $ol_cv_lib_db = no ; then
41007 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
41008 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
41009 if test "${ol_cv_db_db42+set}" = set; then
41010 echo $ECHO_N "(cached) $ECHO_C" >&6
41015 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41017 cat >conftest.$ac_ext <<_ACEOF
41020 cat confdefs.h >>conftest.$ac_ext
41021 cat >>conftest.$ac_ext <<_ACEOF
41022 /* end confdefs.h. */
41024 #ifdef HAVE_DB_185_H
41025 # include <db_185.h>
41030 #ifndef DB_VERSION_MAJOR
41031 # define DB_VERSION_MAJOR 1
41035 #define NULL ((void*)0)
41042 #if DB_VERSION_MAJOR > 1
41045 int major, minor, patch;
41047 version = db_version( &major, &minor, &patch );
41049 if( major != DB_VERSION_MAJOR ||
41050 minor < DB_VERSION_MINOR )
41052 printf("Berkeley DB version mismatch\n"
41053 "\theader: %s\n\tlibrary: %s\n",
41054 DB_VERSION_STRING, version);
41060 #if DB_VERSION_MAJOR > 2
41061 db_env_create( NULL, 0 );
41062 #elif DB_VERSION_MAJOR > 1
41063 db_appexit( NULL );
41065 (void) dbopen( NULL, 0, 0, 0, NULL);
41072 rm -f conftest.$ac_objext conftest$ac_exeext
41073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41074 (eval $ac_link) 2>conftest.er1
41076 grep -v '^ *+' conftest.er1 >conftest.err
41078 cat conftest.err >&5
41079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41080 (exit $ac_status); } &&
41081 { ac_try='test -z "$ac_c_werror_flag"
41082 || test ! -s conftest.err'
41083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41084 (eval $ac_try) 2>&5
41086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41087 (exit $ac_status); }; } &&
41088 { ac_try='test -s conftest$ac_exeext'
41089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41090 (eval $ac_try) 2>&5
41092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41093 (exit $ac_status); }; }; then
41096 echo "$as_me: failed program was:" >&5
41097 sed 's/^/| /' conftest.$ac_ext >&5
41101 rm -f conftest.err conftest.$ac_objext \
41102 conftest$ac_exeext conftest.$ac_ext
41107 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
41108 echo "${ECHO_T}$ol_cv_db_db42" >&6
41110 if test $ol_cv_db_db42 = yes ; then
41111 ol_cv_lib_db=-ldb42
41115 if test $ol_cv_lib_db = no ; then
41116 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
41117 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
41118 if test "${ol_cv_db_db_42+set}" = set; then
41119 echo $ECHO_N "(cached) $ECHO_C" >&6
41124 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41126 cat >conftest.$ac_ext <<_ACEOF
41129 cat confdefs.h >>conftest.$ac_ext
41130 cat >>conftest.$ac_ext <<_ACEOF
41131 /* end confdefs.h. */
41133 #ifdef HAVE_DB_185_H
41134 # include <db_185.h>
41139 #ifndef DB_VERSION_MAJOR
41140 # define DB_VERSION_MAJOR 1
41144 #define NULL ((void*)0)
41151 #if DB_VERSION_MAJOR > 1
41154 int major, minor, patch;
41156 version = db_version( &major, &minor, &patch );
41158 if( major != DB_VERSION_MAJOR ||
41159 minor < DB_VERSION_MINOR )
41161 printf("Berkeley DB version mismatch\n"
41162 "\theader: %s\n\tlibrary: %s\n",
41163 DB_VERSION_STRING, version);
41169 #if DB_VERSION_MAJOR > 2
41170 db_env_create( NULL, 0 );
41171 #elif DB_VERSION_MAJOR > 1
41172 db_appexit( NULL );
41174 (void) dbopen( NULL, 0, 0, 0, NULL);
41181 rm -f conftest.$ac_objext conftest$ac_exeext
41182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41183 (eval $ac_link) 2>conftest.er1
41185 grep -v '^ *+' conftest.er1 >conftest.err
41187 cat conftest.err >&5
41188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41189 (exit $ac_status); } &&
41190 { ac_try='test -z "$ac_c_werror_flag"
41191 || test ! -s conftest.err'
41192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41193 (eval $ac_try) 2>&5
41195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41196 (exit $ac_status); }; } &&
41197 { ac_try='test -s conftest$ac_exeext'
41198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41199 (eval $ac_try) 2>&5
41201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41202 (exit $ac_status); }; }; then
41205 echo "$as_me: failed program was:" >&5
41206 sed 's/^/| /' conftest.$ac_ext >&5
41210 rm -f conftest.err conftest.$ac_objext \
41211 conftest$ac_exeext conftest.$ac_ext
41216 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
41217 echo "${ECHO_T}$ol_cv_db_db_42" >&6
41219 if test $ol_cv_db_db_42 = yes ; then
41220 ol_cv_lib_db=-ldb-42
41224 if test $ol_cv_lib_db = no ; then
41225 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
41226 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
41227 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
41228 echo $ECHO_N "(cached) $ECHO_C" >&6
41233 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41235 cat >conftest.$ac_ext <<_ACEOF
41238 cat confdefs.h >>conftest.$ac_ext
41239 cat >>conftest.$ac_ext <<_ACEOF
41240 /* end confdefs.h. */
41242 #ifdef HAVE_DB_185_H
41243 # include <db_185.h>
41248 #ifndef DB_VERSION_MAJOR
41249 # define DB_VERSION_MAJOR 1
41253 #define NULL ((void*)0)
41260 #if DB_VERSION_MAJOR > 1
41263 int major, minor, patch;
41265 version = db_version( &major, &minor, &patch );
41267 if( major != DB_VERSION_MAJOR ||
41268 minor < DB_VERSION_MINOR )
41270 printf("Berkeley DB version mismatch\n"
41271 "\theader: %s\n\tlibrary: %s\n",
41272 DB_VERSION_STRING, version);
41278 #if DB_VERSION_MAJOR > 2
41279 db_env_create( NULL, 0 );
41280 #elif DB_VERSION_MAJOR > 1
41281 db_appexit( NULL );
41283 (void) dbopen( NULL, 0, 0, 0, NULL);
41290 rm -f conftest.$ac_objext conftest$ac_exeext
41291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41292 (eval $ac_link) 2>conftest.er1
41294 grep -v '^ *+' conftest.er1 >conftest.err
41296 cat conftest.err >&5
41297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41298 (exit $ac_status); } &&
41299 { ac_try='test -z "$ac_c_werror_flag"
41300 || test ! -s conftest.err'
41301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41302 (eval $ac_try) 2>&5
41304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41305 (exit $ac_status); }; } &&
41306 { ac_try='test -s conftest$ac_exeext'
41307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41308 (eval $ac_try) 2>&5
41310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41311 (exit $ac_status); }; }; then
41312 ol_cv_db_db_4_dot_2=yes
41314 echo "$as_me: failed program was:" >&5
41315 sed 's/^/| /' conftest.$ac_ext >&5
41317 ol_cv_db_db_4_dot_2=no
41319 rm -f conftest.err conftest.$ac_objext \
41320 conftest$ac_exeext conftest.$ac_ext
41325 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
41326 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
41328 if test $ol_cv_db_db_4_dot_2 = yes ; then
41329 ol_cv_lib_db=-ldb-4.2
41333 if test $ol_cv_lib_db = no ; then
41334 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
41335 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
41336 if test "${ol_cv_db_db_4_2+set}" = set; then
41337 echo $ECHO_N "(cached) $ECHO_C" >&6
41342 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41344 cat >conftest.$ac_ext <<_ACEOF
41347 cat confdefs.h >>conftest.$ac_ext
41348 cat >>conftest.$ac_ext <<_ACEOF
41349 /* end confdefs.h. */
41351 #ifdef HAVE_DB_185_H
41352 # include <db_185.h>
41357 #ifndef DB_VERSION_MAJOR
41358 # define DB_VERSION_MAJOR 1
41362 #define NULL ((void*)0)
41369 #if DB_VERSION_MAJOR > 1
41372 int major, minor, patch;
41374 version = db_version( &major, &minor, &patch );
41376 if( major != DB_VERSION_MAJOR ||
41377 minor < DB_VERSION_MINOR )
41379 printf("Berkeley DB version mismatch\n"
41380 "\theader: %s\n\tlibrary: %s\n",
41381 DB_VERSION_STRING, version);
41387 #if DB_VERSION_MAJOR > 2
41388 db_env_create( NULL, 0 );
41389 #elif DB_VERSION_MAJOR > 1
41390 db_appexit( NULL );
41392 (void) dbopen( NULL, 0, 0, 0, NULL);
41399 rm -f conftest.$ac_objext conftest$ac_exeext
41400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41401 (eval $ac_link) 2>conftest.er1
41403 grep -v '^ *+' conftest.er1 >conftest.err
41405 cat conftest.err >&5
41406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41407 (exit $ac_status); } &&
41408 { ac_try='test -z "$ac_c_werror_flag"
41409 || test ! -s conftest.err'
41410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41411 (eval $ac_try) 2>&5
41413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41414 (exit $ac_status); }; } &&
41415 { ac_try='test -s conftest$ac_exeext'
41416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41417 (eval $ac_try) 2>&5
41419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41420 (exit $ac_status); }; }; then
41421 ol_cv_db_db_4_2=yes
41423 echo "$as_me: failed program was:" >&5
41424 sed 's/^/| /' conftest.$ac_ext >&5
41428 rm -f conftest.err conftest.$ac_objext \
41429 conftest$ac_exeext conftest.$ac_ext
41434 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
41435 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
41437 if test $ol_cv_db_db_4_2 = yes ; then
41438 ol_cv_lib_db=-ldb-4-2
41442 if test $ol_cv_lib_db = no ; then
41443 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
41444 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
41445 if test "${ol_cv_db_db_4+set}" = set; then
41446 echo $ECHO_N "(cached) $ECHO_C" >&6
41451 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41453 cat >conftest.$ac_ext <<_ACEOF
41456 cat confdefs.h >>conftest.$ac_ext
41457 cat >>conftest.$ac_ext <<_ACEOF
41458 /* end confdefs.h. */
41460 #ifdef HAVE_DB_185_H
41461 # include <db_185.h>
41466 #ifndef DB_VERSION_MAJOR
41467 # define DB_VERSION_MAJOR 1
41471 #define NULL ((void*)0)
41478 #if DB_VERSION_MAJOR > 1
41481 int major, minor, patch;
41483 version = db_version( &major, &minor, &patch );
41485 if( major != DB_VERSION_MAJOR ||
41486 minor < DB_VERSION_MINOR )
41488 printf("Berkeley DB version mismatch\n"
41489 "\theader: %s\n\tlibrary: %s\n",
41490 DB_VERSION_STRING, version);
41496 #if DB_VERSION_MAJOR > 2
41497 db_env_create( NULL, 0 );
41498 #elif DB_VERSION_MAJOR > 1
41499 db_appexit( NULL );
41501 (void) dbopen( NULL, 0, 0, 0, NULL);
41508 rm -f conftest.$ac_objext conftest$ac_exeext
41509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41510 (eval $ac_link) 2>conftest.er1
41512 grep -v '^ *+' conftest.er1 >conftest.err
41514 cat conftest.err >&5
41515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41516 (exit $ac_status); } &&
41517 { ac_try='test -z "$ac_c_werror_flag"
41518 || test ! -s conftest.err'
41519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41520 (eval $ac_try) 2>&5
41522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41523 (exit $ac_status); }; } &&
41524 { ac_try='test -s conftest$ac_exeext'
41525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41526 (eval $ac_try) 2>&5
41528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41529 (exit $ac_status); }; }; then
41532 echo "$as_me: failed program was:" >&5
41533 sed 's/^/| /' conftest.$ac_ext >&5
41537 rm -f conftest.err conftest.$ac_objext \
41538 conftest$ac_exeext conftest.$ac_ext
41543 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
41544 echo "${ECHO_T}$ol_cv_db_db_4" >&6
41546 if test $ol_cv_db_db_4 = yes ; then
41547 ol_cv_lib_db=-ldb-4
41551 if test $ol_cv_lib_db = no ; then
41552 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
41553 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
41554 if test "${ol_cv_db_db4+set}" = set; then
41555 echo $ECHO_N "(cached) $ECHO_C" >&6
41560 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41562 cat >conftest.$ac_ext <<_ACEOF
41565 cat confdefs.h >>conftest.$ac_ext
41566 cat >>conftest.$ac_ext <<_ACEOF
41567 /* end confdefs.h. */
41569 #ifdef HAVE_DB_185_H
41570 # include <db_185.h>
41575 #ifndef DB_VERSION_MAJOR
41576 # define DB_VERSION_MAJOR 1
41580 #define NULL ((void*)0)
41587 #if DB_VERSION_MAJOR > 1
41590 int major, minor, patch;
41592 version = db_version( &major, &minor, &patch );
41594 if( major != DB_VERSION_MAJOR ||
41595 minor < DB_VERSION_MINOR )
41597 printf("Berkeley DB version mismatch\n"
41598 "\theader: %s\n\tlibrary: %s\n",
41599 DB_VERSION_STRING, version);
41605 #if DB_VERSION_MAJOR > 2
41606 db_env_create( NULL, 0 );
41607 #elif DB_VERSION_MAJOR > 1
41608 db_appexit( NULL );
41610 (void) dbopen( NULL, 0, 0, 0, NULL);
41617 rm -f conftest.$ac_objext conftest$ac_exeext
41618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41619 (eval $ac_link) 2>conftest.er1
41621 grep -v '^ *+' conftest.er1 >conftest.err
41623 cat conftest.err >&5
41624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41625 (exit $ac_status); } &&
41626 { ac_try='test -z "$ac_c_werror_flag"
41627 || test ! -s conftest.err'
41628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41629 (eval $ac_try) 2>&5
41631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41632 (exit $ac_status); }; } &&
41633 { ac_try='test -s conftest$ac_exeext'
41634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41635 (eval $ac_try) 2>&5
41637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41638 (exit $ac_status); }; }; then
41641 echo "$as_me: failed program was:" >&5
41642 sed 's/^/| /' conftest.$ac_ext >&5
41646 rm -f conftest.err conftest.$ac_objext \
41647 conftest$ac_exeext conftest.$ac_ext
41652 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
41653 echo "${ECHO_T}$ol_cv_db_db4" >&6
41655 if test $ol_cv_db_db4 = yes ; then
41660 if test $ol_cv_lib_db = no ; then
41661 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
41662 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
41663 if test "${ol_cv_db_db+set}" = set; then
41664 echo $ECHO_N "(cached) $ECHO_C" >&6
41669 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41671 cat >conftest.$ac_ext <<_ACEOF
41674 cat confdefs.h >>conftest.$ac_ext
41675 cat >>conftest.$ac_ext <<_ACEOF
41676 /* end confdefs.h. */
41678 #ifdef HAVE_DB_185_H
41679 # include <db_185.h>
41684 #ifndef DB_VERSION_MAJOR
41685 # define DB_VERSION_MAJOR 1
41689 #define NULL ((void*)0)
41696 #if DB_VERSION_MAJOR > 1
41699 int major, minor, patch;
41701 version = db_version( &major, &minor, &patch );
41703 if( major != DB_VERSION_MAJOR ||
41704 minor < DB_VERSION_MINOR )
41706 printf("Berkeley DB version mismatch\n"
41707 "\theader: %s\n\tlibrary: %s\n",
41708 DB_VERSION_STRING, version);
41714 #if DB_VERSION_MAJOR > 2
41715 db_env_create( NULL, 0 );
41716 #elif DB_VERSION_MAJOR > 1
41717 db_appexit( NULL );
41719 (void) dbopen( NULL, 0, 0, 0, NULL);
41726 rm -f conftest.$ac_objext conftest$ac_exeext
41727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41728 (eval $ac_link) 2>conftest.er1
41730 grep -v '^ *+' conftest.er1 >conftest.err
41732 cat conftest.err >&5
41733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41734 (exit $ac_status); } &&
41735 { ac_try='test -z "$ac_c_werror_flag"
41736 || test ! -s conftest.err'
41737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41738 (eval $ac_try) 2>&5
41740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41741 (exit $ac_status); }; } &&
41742 { ac_try='test -s conftest$ac_exeext'
41743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41744 (eval $ac_try) 2>&5
41746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41747 (exit $ac_status); }; }; then
41750 echo "$as_me: failed program was:" >&5
41751 sed 's/^/| /' conftest.$ac_ext >&5
41755 rm -f conftest.err conftest.$ac_objext \
41756 conftest$ac_exeext conftest.$ac_ext
41761 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
41762 echo "${ECHO_T}$ol_cv_db_db" >&6
41764 if test $ol_cv_db_db = yes ; then
41769 if test $ol_cv_lib_db = no ; then
41770 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
41771 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
41772 if test "${ol_cv_db_db41+set}" = set; then
41773 echo $ECHO_N "(cached) $ECHO_C" >&6
41778 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41780 cat >conftest.$ac_ext <<_ACEOF
41783 cat confdefs.h >>conftest.$ac_ext
41784 cat >>conftest.$ac_ext <<_ACEOF
41785 /* end confdefs.h. */
41787 #ifdef HAVE_DB_185_H
41788 # include <db_185.h>
41793 #ifndef DB_VERSION_MAJOR
41794 # define DB_VERSION_MAJOR 1
41798 #define NULL ((void*)0)
41805 #if DB_VERSION_MAJOR > 1
41808 int major, minor, patch;
41810 version = db_version( &major, &minor, &patch );
41812 if( major != DB_VERSION_MAJOR ||
41813 minor < DB_VERSION_MINOR )
41815 printf("Berkeley DB version mismatch\n"
41816 "\theader: %s\n\tlibrary: %s\n",
41817 DB_VERSION_STRING, version);
41823 #if DB_VERSION_MAJOR > 2
41824 db_env_create( NULL, 0 );
41825 #elif DB_VERSION_MAJOR > 1
41826 db_appexit( NULL );
41828 (void) dbopen( NULL, 0, 0, 0, NULL);
41835 rm -f conftest.$ac_objext conftest$ac_exeext
41836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41837 (eval $ac_link) 2>conftest.er1
41839 grep -v '^ *+' conftest.er1 >conftest.err
41841 cat conftest.err >&5
41842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41843 (exit $ac_status); } &&
41844 { ac_try='test -z "$ac_c_werror_flag"
41845 || test ! -s conftest.err'
41846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41847 (eval $ac_try) 2>&5
41849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41850 (exit $ac_status); }; } &&
41851 { ac_try='test -s conftest$ac_exeext'
41852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41853 (eval $ac_try) 2>&5
41855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41856 (exit $ac_status); }; }; then
41859 echo "$as_me: failed program was:" >&5
41860 sed 's/^/| /' conftest.$ac_ext >&5
41864 rm -f conftest.err conftest.$ac_objext \
41865 conftest$ac_exeext conftest.$ac_ext
41870 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
41871 echo "${ECHO_T}$ol_cv_db_db41" >&6
41873 if test $ol_cv_db_db41 = yes ; then
41874 ol_cv_lib_db=-ldb41
41878 if test $ol_cv_lib_db = no ; then
41879 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
41880 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
41881 if test "${ol_cv_db_db_41+set}" = set; then
41882 echo $ECHO_N "(cached) $ECHO_C" >&6
41887 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41889 cat >conftest.$ac_ext <<_ACEOF
41892 cat confdefs.h >>conftest.$ac_ext
41893 cat >>conftest.$ac_ext <<_ACEOF
41894 /* end confdefs.h. */
41896 #ifdef HAVE_DB_185_H
41897 # include <db_185.h>
41902 #ifndef DB_VERSION_MAJOR
41903 # define DB_VERSION_MAJOR 1
41907 #define NULL ((void*)0)
41914 #if DB_VERSION_MAJOR > 1
41917 int major, minor, patch;
41919 version = db_version( &major, &minor, &patch );
41921 if( major != DB_VERSION_MAJOR ||
41922 minor < DB_VERSION_MINOR )
41924 printf("Berkeley DB version mismatch\n"
41925 "\theader: %s\n\tlibrary: %s\n",
41926 DB_VERSION_STRING, version);
41932 #if DB_VERSION_MAJOR > 2
41933 db_env_create( NULL, 0 );
41934 #elif DB_VERSION_MAJOR > 1
41935 db_appexit( NULL );
41937 (void) dbopen( NULL, 0, 0, 0, NULL);
41944 rm -f conftest.$ac_objext conftest$ac_exeext
41945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41946 (eval $ac_link) 2>conftest.er1
41948 grep -v '^ *+' conftest.er1 >conftest.err
41950 cat conftest.err >&5
41951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41952 (exit $ac_status); } &&
41953 { ac_try='test -z "$ac_c_werror_flag"
41954 || test ! -s conftest.err'
41955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41956 (eval $ac_try) 2>&5
41958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41959 (exit $ac_status); }; } &&
41960 { ac_try='test -s conftest$ac_exeext'
41961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41962 (eval $ac_try) 2>&5
41964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41965 (exit $ac_status); }; }; then
41968 echo "$as_me: failed program was:" >&5
41969 sed 's/^/| /' conftest.$ac_ext >&5
41973 rm -f conftest.err conftest.$ac_objext \
41974 conftest$ac_exeext conftest.$ac_ext
41979 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
41980 echo "${ECHO_T}$ol_cv_db_db_41" >&6
41982 if test $ol_cv_db_db_41 = yes ; then
41983 ol_cv_lib_db=-ldb-41
41987 if test $ol_cv_lib_db = no ; then
41988 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
41989 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
41990 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
41991 echo $ECHO_N "(cached) $ECHO_C" >&6
41996 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41998 cat >conftest.$ac_ext <<_ACEOF
42001 cat confdefs.h >>conftest.$ac_ext
42002 cat >>conftest.$ac_ext <<_ACEOF
42003 /* end confdefs.h. */
42005 #ifdef HAVE_DB_185_H
42006 # include <db_185.h>
42011 #ifndef DB_VERSION_MAJOR
42012 # define DB_VERSION_MAJOR 1
42016 #define NULL ((void*)0)
42023 #if DB_VERSION_MAJOR > 1
42026 int major, minor, patch;
42028 version = db_version( &major, &minor, &patch );
42030 if( major != DB_VERSION_MAJOR ||
42031 minor < DB_VERSION_MINOR )
42033 printf("Berkeley DB version mismatch\n"
42034 "\theader: %s\n\tlibrary: %s\n",
42035 DB_VERSION_STRING, version);
42041 #if DB_VERSION_MAJOR > 2
42042 db_env_create( NULL, 0 );
42043 #elif DB_VERSION_MAJOR > 1
42044 db_appexit( NULL );
42046 (void) dbopen( NULL, 0, 0, 0, NULL);
42053 rm -f conftest.$ac_objext conftest$ac_exeext
42054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42055 (eval $ac_link) 2>conftest.er1
42057 grep -v '^ *+' conftest.er1 >conftest.err
42059 cat conftest.err >&5
42060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42061 (exit $ac_status); } &&
42062 { ac_try='test -z "$ac_c_werror_flag"
42063 || test ! -s conftest.err'
42064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42065 (eval $ac_try) 2>&5
42067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42068 (exit $ac_status); }; } &&
42069 { ac_try='test -s conftest$ac_exeext'
42070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42071 (eval $ac_try) 2>&5
42073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42074 (exit $ac_status); }; }; then
42075 ol_cv_db_db_4_dot_1=yes
42077 echo "$as_me: failed program was:" >&5
42078 sed 's/^/| /' conftest.$ac_ext >&5
42080 ol_cv_db_db_4_dot_1=no
42082 rm -f conftest.err conftest.$ac_objext \
42083 conftest$ac_exeext conftest.$ac_ext
42088 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
42089 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
42091 if test $ol_cv_db_db_4_dot_1 = yes ; then
42092 ol_cv_lib_db=-ldb-4.1
42096 if test $ol_cv_lib_db = no ; then
42097 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
42098 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
42099 if test "${ol_cv_db_db_4_1+set}" = set; then
42100 echo $ECHO_N "(cached) $ECHO_C" >&6
42105 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42107 cat >conftest.$ac_ext <<_ACEOF
42110 cat confdefs.h >>conftest.$ac_ext
42111 cat >>conftest.$ac_ext <<_ACEOF
42112 /* end confdefs.h. */
42114 #ifdef HAVE_DB_185_H
42115 # include <db_185.h>
42120 #ifndef DB_VERSION_MAJOR
42121 # define DB_VERSION_MAJOR 1
42125 #define NULL ((void*)0)
42132 #if DB_VERSION_MAJOR > 1
42135 int major, minor, patch;
42137 version = db_version( &major, &minor, &patch );
42139 if( major != DB_VERSION_MAJOR ||
42140 minor < DB_VERSION_MINOR )
42142 printf("Berkeley DB version mismatch\n"
42143 "\theader: %s\n\tlibrary: %s\n",
42144 DB_VERSION_STRING, version);
42150 #if DB_VERSION_MAJOR > 2
42151 db_env_create( NULL, 0 );
42152 #elif DB_VERSION_MAJOR > 1
42153 db_appexit( NULL );
42155 (void) dbopen( NULL, 0, 0, 0, NULL);
42162 rm -f conftest.$ac_objext conftest$ac_exeext
42163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42164 (eval $ac_link) 2>conftest.er1
42166 grep -v '^ *+' conftest.er1 >conftest.err
42168 cat conftest.err >&5
42169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42170 (exit $ac_status); } &&
42171 { ac_try='test -z "$ac_c_werror_flag"
42172 || test ! -s conftest.err'
42173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42174 (eval $ac_try) 2>&5
42176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42177 (exit $ac_status); }; } &&
42178 { ac_try='test -s conftest$ac_exeext'
42179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42180 (eval $ac_try) 2>&5
42182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42183 (exit $ac_status); }; }; then
42184 ol_cv_db_db_4_1=yes
42186 echo "$as_me: failed program was:" >&5
42187 sed 's/^/| /' conftest.$ac_ext >&5
42191 rm -f conftest.err conftest.$ac_objext \
42192 conftest$ac_exeext conftest.$ac_ext
42197 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
42198 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
42200 if test $ol_cv_db_db_4_1 = yes ; then
42201 ol_cv_lib_db=-ldb-4-1
42205 if test $ol_cv_lib_db = no ; then
42206 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
42207 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
42208 if test "${ol_cv_db_db3+set}" = set; then
42209 echo $ECHO_N "(cached) $ECHO_C" >&6
42214 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42216 cat >conftest.$ac_ext <<_ACEOF
42219 cat confdefs.h >>conftest.$ac_ext
42220 cat >>conftest.$ac_ext <<_ACEOF
42221 /* end confdefs.h. */
42223 #ifdef HAVE_DB_185_H
42224 # include <db_185.h>
42229 #ifndef DB_VERSION_MAJOR
42230 # define DB_VERSION_MAJOR 1
42234 #define NULL ((void*)0)
42241 #if DB_VERSION_MAJOR > 1
42244 int major, minor, patch;
42246 version = db_version( &major, &minor, &patch );
42248 if( major != DB_VERSION_MAJOR ||
42249 minor < DB_VERSION_MINOR )
42251 printf("Berkeley DB version mismatch\n"
42252 "\theader: %s\n\tlibrary: %s\n",
42253 DB_VERSION_STRING, version);
42259 #if DB_VERSION_MAJOR > 2
42260 db_env_create( NULL, 0 );
42261 #elif DB_VERSION_MAJOR > 1
42262 db_appexit( NULL );
42264 (void) dbopen( NULL, 0, 0, 0, NULL);
42271 rm -f conftest.$ac_objext conftest$ac_exeext
42272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42273 (eval $ac_link) 2>conftest.er1
42275 grep -v '^ *+' conftest.er1 >conftest.err
42277 cat conftest.err >&5
42278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42279 (exit $ac_status); } &&
42280 { ac_try='test -z "$ac_c_werror_flag"
42281 || test ! -s conftest.err'
42282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42283 (eval $ac_try) 2>&5
42285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42286 (exit $ac_status); }; } &&
42287 { ac_try='test -s conftest$ac_exeext'
42288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42289 (eval $ac_try) 2>&5
42291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42292 (exit $ac_status); }; }; then
42295 echo "$as_me: failed program was:" >&5
42296 sed 's/^/| /' conftest.$ac_ext >&5
42300 rm -f conftest.err conftest.$ac_objext \
42301 conftest$ac_exeext conftest.$ac_ext
42306 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
42307 echo "${ECHO_T}$ol_cv_db_db3" >&6
42309 if test $ol_cv_db_db3 = yes ; then
42314 if test $ol_cv_lib_db = no ; then
42315 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
42316 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
42317 if test "${ol_cv_db_db_3+set}" = set; then
42318 echo $ECHO_N "(cached) $ECHO_C" >&6
42323 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42325 cat >conftest.$ac_ext <<_ACEOF
42328 cat confdefs.h >>conftest.$ac_ext
42329 cat >>conftest.$ac_ext <<_ACEOF
42330 /* end confdefs.h. */
42332 #ifdef HAVE_DB_185_H
42333 # include <db_185.h>
42338 #ifndef DB_VERSION_MAJOR
42339 # define DB_VERSION_MAJOR 1
42343 #define NULL ((void*)0)
42350 #if DB_VERSION_MAJOR > 1
42353 int major, minor, patch;
42355 version = db_version( &major, &minor, &patch );
42357 if( major != DB_VERSION_MAJOR ||
42358 minor < DB_VERSION_MINOR )
42360 printf("Berkeley DB version mismatch\n"
42361 "\theader: %s\n\tlibrary: %s\n",
42362 DB_VERSION_STRING, version);
42368 #if DB_VERSION_MAJOR > 2
42369 db_env_create( NULL, 0 );
42370 #elif DB_VERSION_MAJOR > 1
42371 db_appexit( NULL );
42373 (void) dbopen( NULL, 0, 0, 0, NULL);
42380 rm -f conftest.$ac_objext conftest$ac_exeext
42381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42382 (eval $ac_link) 2>conftest.er1
42384 grep -v '^ *+' conftest.er1 >conftest.err
42386 cat conftest.err >&5
42387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42388 (exit $ac_status); } &&
42389 { ac_try='test -z "$ac_c_werror_flag"
42390 || test ! -s conftest.err'
42391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42392 (eval $ac_try) 2>&5
42394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42395 (exit $ac_status); }; } &&
42396 { ac_try='test -s conftest$ac_exeext'
42397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42398 (eval $ac_try) 2>&5
42400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42401 (exit $ac_status); }; }; then
42404 echo "$as_me: failed program was:" >&5
42405 sed 's/^/| /' conftest.$ac_ext >&5
42409 rm -f conftest.err conftest.$ac_objext \
42410 conftest$ac_exeext conftest.$ac_ext
42415 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
42416 echo "${ECHO_T}$ol_cv_db_db_3" >&6
42418 if test $ol_cv_db_db_3 = yes ; then
42419 ol_cv_lib_db=-ldb-3
42423 if test $ol_cv_lib_db = no ; then
42424 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
42425 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
42426 if test "${ol_cv_db_db2+set}" = set; then
42427 echo $ECHO_N "(cached) $ECHO_C" >&6
42432 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42434 cat >conftest.$ac_ext <<_ACEOF
42437 cat confdefs.h >>conftest.$ac_ext
42438 cat >>conftest.$ac_ext <<_ACEOF
42439 /* end confdefs.h. */
42441 #ifdef HAVE_DB_185_H
42442 # include <db_185.h>
42447 #ifndef DB_VERSION_MAJOR
42448 # define DB_VERSION_MAJOR 1
42452 #define NULL ((void*)0)
42459 #if DB_VERSION_MAJOR > 1
42462 int major, minor, patch;
42464 version = db_version( &major, &minor, &patch );
42466 if( major != DB_VERSION_MAJOR ||
42467 minor < DB_VERSION_MINOR )
42469 printf("Berkeley DB version mismatch\n"
42470 "\theader: %s\n\tlibrary: %s\n",
42471 DB_VERSION_STRING, version);
42477 #if DB_VERSION_MAJOR > 2
42478 db_env_create( NULL, 0 );
42479 #elif DB_VERSION_MAJOR > 1
42480 db_appexit( NULL );
42482 (void) dbopen( NULL, 0, 0, 0, NULL);
42489 rm -f conftest.$ac_objext conftest$ac_exeext
42490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42491 (eval $ac_link) 2>conftest.er1
42493 grep -v '^ *+' conftest.er1 >conftest.err
42495 cat conftest.err >&5
42496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42497 (exit $ac_status); } &&
42498 { ac_try='test -z "$ac_c_werror_flag"
42499 || test ! -s conftest.err'
42500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42501 (eval $ac_try) 2>&5
42503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42504 (exit $ac_status); }; } &&
42505 { ac_try='test -s conftest$ac_exeext'
42506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42507 (eval $ac_try) 2>&5
42509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42510 (exit $ac_status); }; }; then
42513 echo "$as_me: failed program was:" >&5
42514 sed 's/^/| /' conftest.$ac_ext >&5
42518 rm -f conftest.err conftest.$ac_objext \
42519 conftest$ac_exeext conftest.$ac_ext
42524 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
42525 echo "${ECHO_T}$ol_cv_db_db2" >&6
42527 if test $ol_cv_db_db2 = yes ; then
42532 if test $ol_cv_lib_db = no ; then
42533 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
42534 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
42535 if test "${ol_cv_db_db_2+set}" = set; then
42536 echo $ECHO_N "(cached) $ECHO_C" >&6
42541 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42543 cat >conftest.$ac_ext <<_ACEOF
42546 cat confdefs.h >>conftest.$ac_ext
42547 cat >>conftest.$ac_ext <<_ACEOF
42548 /* end confdefs.h. */
42550 #ifdef HAVE_DB_185_H
42551 # include <db_185.h>
42556 #ifndef DB_VERSION_MAJOR
42557 # define DB_VERSION_MAJOR 1
42561 #define NULL ((void*)0)
42568 #if DB_VERSION_MAJOR > 1
42571 int major, minor, patch;
42573 version = db_version( &major, &minor, &patch );
42575 if( major != DB_VERSION_MAJOR ||
42576 minor < DB_VERSION_MINOR )
42578 printf("Berkeley DB version mismatch\n"
42579 "\theader: %s\n\tlibrary: %s\n",
42580 DB_VERSION_STRING, version);
42586 #if DB_VERSION_MAJOR > 2
42587 db_env_create( NULL, 0 );
42588 #elif DB_VERSION_MAJOR > 1
42589 db_appexit( NULL );
42591 (void) dbopen( NULL, 0, 0, 0, NULL);
42598 rm -f conftest.$ac_objext conftest$ac_exeext
42599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42600 (eval $ac_link) 2>conftest.er1
42602 grep -v '^ *+' conftest.er1 >conftest.err
42604 cat conftest.err >&5
42605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42606 (exit $ac_status); } &&
42607 { ac_try='test -z "$ac_c_werror_flag"
42608 || test ! -s conftest.err'
42609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42610 (eval $ac_try) 2>&5
42612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42613 (exit $ac_status); }; } &&
42614 { ac_try='test -s conftest$ac_exeext'
42615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42616 (eval $ac_try) 2>&5
42618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42619 (exit $ac_status); }; }; then
42622 echo "$as_me: failed program was:" >&5
42623 sed 's/^/| /' conftest.$ac_ext >&5
42627 rm -f conftest.err conftest.$ac_objext \
42628 conftest$ac_exeext conftest.$ac_ext
42633 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
42634 echo "${ECHO_T}$ol_cv_db_db_2" >&6
42636 if test $ol_cv_db_db_2 = yes ; then
42637 ol_cv_lib_db=-ldb-2
42641 if test $ol_cv_lib_db = no ; then
42642 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
42643 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
42644 if test "${ol_cv_db_db1+set}" = set; then
42645 echo $ECHO_N "(cached) $ECHO_C" >&6
42650 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42652 cat >conftest.$ac_ext <<_ACEOF
42655 cat confdefs.h >>conftest.$ac_ext
42656 cat >>conftest.$ac_ext <<_ACEOF
42657 /* end confdefs.h. */
42659 #ifdef HAVE_DB_185_H
42660 # include <db_185.h>
42665 #ifndef DB_VERSION_MAJOR
42666 # define DB_VERSION_MAJOR 1
42670 #define NULL ((void*)0)
42677 #if DB_VERSION_MAJOR > 1
42680 int major, minor, patch;
42682 version = db_version( &major, &minor, &patch );
42684 if( major != DB_VERSION_MAJOR ||
42685 minor < DB_VERSION_MINOR )
42687 printf("Berkeley DB version mismatch\n"
42688 "\theader: %s\n\tlibrary: %s\n",
42689 DB_VERSION_STRING, version);
42695 #if DB_VERSION_MAJOR > 2
42696 db_env_create( NULL, 0 );
42697 #elif DB_VERSION_MAJOR > 1
42698 db_appexit( NULL );
42700 (void) dbopen( NULL, 0, 0, 0, NULL);
42707 rm -f conftest.$ac_objext conftest$ac_exeext
42708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42709 (eval $ac_link) 2>conftest.er1
42711 grep -v '^ *+' conftest.er1 >conftest.err
42713 cat conftest.err >&5
42714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42715 (exit $ac_status); } &&
42716 { ac_try='test -z "$ac_c_werror_flag"
42717 || test ! -s conftest.err'
42718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42719 (eval $ac_try) 2>&5
42721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42722 (exit $ac_status); }; } &&
42723 { ac_try='test -s conftest$ac_exeext'
42724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42725 (eval $ac_try) 2>&5
42727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42728 (exit $ac_status); }; }; then
42731 echo "$as_me: failed program was:" >&5
42732 sed 's/^/| /' conftest.$ac_ext >&5
42736 rm -f conftest.err conftest.$ac_objext \
42737 conftest$ac_exeext conftest.$ac_ext
42742 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
42743 echo "${ECHO_T}$ol_cv_db_db1" >&6
42745 if test $ol_cv_db_db1 = yes ; then
42750 if test $ol_cv_lib_db = no ; then
42751 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
42752 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
42753 if test "${ol_cv_db_db_1+set}" = set; then
42754 echo $ECHO_N "(cached) $ECHO_C" >&6
42759 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42761 cat >conftest.$ac_ext <<_ACEOF
42764 cat confdefs.h >>conftest.$ac_ext
42765 cat >>conftest.$ac_ext <<_ACEOF
42766 /* end confdefs.h. */
42768 #ifdef HAVE_DB_185_H
42769 # include <db_185.h>
42774 #ifndef DB_VERSION_MAJOR
42775 # define DB_VERSION_MAJOR 1
42779 #define NULL ((void*)0)
42786 #if DB_VERSION_MAJOR > 1
42789 int major, minor, patch;
42791 version = db_version( &major, &minor, &patch );
42793 if( major != DB_VERSION_MAJOR ||
42794 minor < DB_VERSION_MINOR )
42796 printf("Berkeley DB version mismatch\n"
42797 "\theader: %s\n\tlibrary: %s\n",
42798 DB_VERSION_STRING, version);
42804 #if DB_VERSION_MAJOR > 2
42805 db_env_create( NULL, 0 );
42806 #elif DB_VERSION_MAJOR > 1
42807 db_appexit( NULL );
42809 (void) dbopen( NULL, 0, 0, 0, NULL);
42816 rm -f conftest.$ac_objext conftest$ac_exeext
42817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42818 (eval $ac_link) 2>conftest.er1
42820 grep -v '^ *+' conftest.er1 >conftest.err
42822 cat conftest.err >&5
42823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42824 (exit $ac_status); } &&
42825 { ac_try='test -z "$ac_c_werror_flag"
42826 || test ! -s conftest.err'
42827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42828 (eval $ac_try) 2>&5
42830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42831 (exit $ac_status); }; } &&
42832 { ac_try='test -s conftest$ac_exeext'
42833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42834 (eval $ac_try) 2>&5
42836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42837 (exit $ac_status); }; }; then
42840 echo "$as_me: failed program was:" >&5
42841 sed 's/^/| /' conftest.$ac_ext >&5
42845 rm -f conftest.err conftest.$ac_objext \
42846 conftest$ac_exeext conftest.$ac_ext
42851 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
42852 echo "${ECHO_T}$ol_cv_db_db_1" >&6
42854 if test $ol_cv_db_db_1 = yes ; then
42855 ol_cv_lib_db=-ldb-1
42860 if test "$ol_cv_lib_db" != no ; then
42861 ol_cv_berkeley_db=yes
42862 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
42863 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
42864 if test "${ol_cv_berkeley_db_version+set}" = set; then
42865 echo $ECHO_N "(cached) $ECHO_C" >&6
42869 LIBS="$LTHREAD_LIBS $LIBS"
42870 if test $ol_cv_lib_db != yes ; then
42871 LIBS="$ol_cv_lib_db $LIBS"
42874 if test "$cross_compiling" = yes; then
42875 ol_cv_berkeley_db_version=cross
42877 cat >conftest.$ac_ext <<_ACEOF
42880 cat confdefs.h >>conftest.$ac_ext
42881 cat >>conftest.$ac_ext <<_ACEOF
42882 /* end confdefs.h. */
42884 #ifdef HAVE_DB_185_H
42889 #ifndef DB_VERSION_MAJOR
42890 # define DB_VERSION_MAJOR 1
42893 #define NULL ((void *)0)
42897 #if DB_VERSION_MAJOR > 1
42899 int major, minor, patch;
42901 version = db_version( &major, &minor, &patch );
42903 if( major != DB_VERSION_MAJOR ||
42904 minor != DB_VERSION_MINOR ||
42905 patch != DB_VERSION_PATCH )
42907 printf("Berkeley DB version mismatch\n"
42908 "\theader: %s\n\tlibrary: %s\n",
42909 DB_VERSION_STRING, version);
42917 rm -f conftest$ac_exeext
42918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42919 (eval $ac_link) 2>&5
42921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42922 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42924 (eval $ac_try) 2>&5
42926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42927 (exit $ac_status); }; }; then
42928 ol_cv_berkeley_db_version=yes
42930 echo "$as_me: program exited with status $ac_status" >&5
42931 echo "$as_me: failed program was:" >&5
42932 sed 's/^/| /' conftest.$ac_ext >&5
42934 ( exit $ac_status )
42935 ol_cv_berkeley_db_version=no
42937 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42943 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
42944 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
42946 if test $ol_cv_berkeley_db_version = no ; then
42947 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
42948 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
42949 { (exit 1); exit 1; }; }
42952 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
42953 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
42954 if test "${ol_cv_berkeley_db_thread+set}" = set; then
42955 echo $ECHO_N "(cached) $ECHO_C" >&6
42959 LIBS="$LTHREAD_LIBS $LIBS"
42960 if test $ol_cv_lib_db != yes ; then
42961 LIBS="$ol_cv_lib_db $LIBS"
42964 if test "$cross_compiling" = yes; then
42965 ol_cv_berkeley_db_thread=cross
42967 cat >conftest.$ac_ext <<_ACEOF
42970 cat confdefs.h >>conftest.$ac_ext
42971 cat >>conftest.$ac_ext <<_ACEOF
42972 /* end confdefs.h. */
42974 #ifdef HAVE_DB_185_H
42980 #define NULL ((void *)0)
42985 u_int32_t flags = DB_CREATE |
42991 #if DB_VERSION_MAJOR > 2
42992 DB_ENV *env = NULL;
42994 rc = db_env_create( &env, 0 );
42996 flags |= DB_INIT_MPOOL;
42997 #ifdef DB_MPOOL_PRIVATE
42998 flags |= DB_MPOOL_PRIVATE;
43002 printf("BerkeleyDB: %s\n", db_strerror(rc) );
43006 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
43007 rc = env->open( env, NULL, flags, 0 );
43009 rc = env->open( env, NULL, NULL, flags, 0 );
43013 rc = env->close( env, 0 );
43017 printf("BerkeleyDB: %s\n", db_strerror(rc) );
43023 memset( &env, '\0', sizeof(env) );
43025 rc = db_appinit( NULL, NULL, &env, flags );
43028 db_appexit( &env );
43031 unlink("__db_mpool.share");
43032 unlink("__db_lock.share");
43038 rm -f conftest$ac_exeext
43039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43040 (eval $ac_link) 2>&5
43042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43043 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43045 (eval $ac_try) 2>&5
43047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43048 (exit $ac_status); }; }; then
43049 ol_cv_berkeley_db_thread=yes
43051 echo "$as_me: program exited with status $ac_status" >&5
43052 echo "$as_me: failed program was:" >&5
43053 sed 's/^/| /' conftest.$ac_ext >&5
43055 ( exit $ac_status )
43056 ol_cv_berkeley_db_thread=no
43058 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43064 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
43065 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
43067 if test $ol_cv_berkeley_db_thread != no ; then
43069 cat >>confdefs.h <<\_ACEOF
43070 #define HAVE_BERKELEY_DB_THREAD 1
43080 if test $ol_cv_berkeley_db != no ; then
43082 cat >>confdefs.h <<\_ACEOF
43083 #define HAVE_BERKELEY_DB 1
43087 ol_link_ldbm=berkeley
43088 ol_with_ldbm_api=berkeley
43090 if test $ol_with_ldbm_type = hash ; then
43092 cat >>confdefs.h <<\_ACEOF
43093 #define LDBM_USE_DBHASH 1
43098 cat >>confdefs.h <<\_ACEOF
43099 #define LDBM_USE_DBBTREE 1
43104 if test $ol_cv_lib_db != yes ; then
43105 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
43110 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
43111 if test $ol_link_ldbm != berkeley ; then
43112 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
43113 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
43114 { (exit 1); exit 1; }; }
43116 echo "$as_me:$LINENO: checking Berkeley DB version for BDB backend" >&5
43117 echo $ECHO_N "checking Berkeley DB version for BDB backend... $ECHO_C" >&6
43118 if test "${ol_cv_bdb_compat+set}" = set; then
43119 echo $ECHO_N "(cached) $ECHO_C" >&6
43122 cat >conftest.$ac_ext <<_ACEOF
43125 cat confdefs.h >>conftest.$ac_ext
43126 cat >>conftest.$ac_ext <<_ACEOF
43127 /* end confdefs.h. */
43131 /* this check could be improved */
43132 #ifndef DB_VERSION_MAJOR
43133 # define DB_VERSION_MAJOR 1
43135 #ifndef DB_VERSION_MINOR
43136 # define DB_VERSION_MINOR 0
43139 /* require 4.2 or later */
43140 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
43141 __db_version_compat
43145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43146 $EGREP "__db_version_compat" >/dev/null 2>&1; then
43147 ol_cv_bdb_compat=yes
43149 ol_cv_bdb_compat=no
43154 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
43155 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
43158 if test $ol_cv_bdb_compat != yes ; then
43159 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
43160 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
43161 { (exit 1); exit 1; }; }
43166 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
43167 { echo "$as_me:$LINENO: WARNING: Could not find LDBM with BTREE support" >&5
43168 echo "$as_me: WARNING: Could not find LDBM with BTREE support" >&2;}
43169 ol_with_ldbm_api=none
43172 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
43173 echo "$as_me:$LINENO: checking for MDBM library" >&5
43174 echo $ECHO_N "checking for MDBM library... $ECHO_C" >&6
43175 if test "${ol_cv_lib_mdbm+set}" = set; then
43176 echo $ECHO_N "(cached) $ECHO_C" >&6
43179 echo "$as_me:$LINENO: checking for mdbm_set_chain" >&5
43180 echo $ECHO_N "checking for mdbm_set_chain... $ECHO_C" >&6
43181 if test "${ac_cv_func_mdbm_set_chain+set}" = set; then
43182 echo $ECHO_N "(cached) $ECHO_C" >&6
43184 cat >conftest.$ac_ext <<_ACEOF
43187 cat confdefs.h >>conftest.$ac_ext
43188 cat >>conftest.$ac_ext <<_ACEOF
43189 /* end confdefs.h. */
43190 /* Define mdbm_set_chain to an innocuous variant, in case <limits.h> declares mdbm_set_chain.
43191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43192 #define mdbm_set_chain innocuous_mdbm_set_chain
43194 /* System header to define __stub macros and hopefully few prototypes,
43195 which can conflict with char mdbm_set_chain (); below.
43196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43197 <limits.h> exists even on freestanding compilers. */
43200 # include <limits.h>
43202 # include <assert.h>
43205 #undef mdbm_set_chain
43207 /* Override any gcc2 internal prototype to avoid an error. */
43212 /* We use char because int might match the return type of a gcc2
43213 builtin and then its argument prototype would still apply. */
43214 char mdbm_set_chain ();
43215 /* The GNU C library defines this for functions which it implements
43216 to always fail with ENOSYS. Some functions are actually named
43217 something starting with __ and the normal name is an alias. */
43218 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
43221 char (*f) () = mdbm_set_chain;
43230 return f != mdbm_set_chain;
43235 rm -f conftest.$ac_objext conftest$ac_exeext
43236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43237 (eval $ac_link) 2>conftest.er1
43239 grep -v '^ *+' conftest.er1 >conftest.err
43241 cat conftest.err >&5
43242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43243 (exit $ac_status); } &&
43244 { ac_try='test -z "$ac_c_werror_flag"
43245 || test ! -s conftest.err'
43246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43247 (eval $ac_try) 2>&5
43249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43250 (exit $ac_status); }; } &&
43251 { ac_try='test -s conftest$ac_exeext'
43252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43253 (eval $ac_try) 2>&5
43255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43256 (exit $ac_status); }; }; then
43257 ac_cv_func_mdbm_set_chain=yes
43259 echo "$as_me: failed program was:" >&5
43260 sed 's/^/| /' conftest.$ac_ext >&5
43262 ac_cv_func_mdbm_set_chain=no
43264 rm -f conftest.err conftest.$ac_objext \
43265 conftest$ac_exeext conftest.$ac_ext
43267 echo "$as_me:$LINENO: result: $ac_cv_func_mdbm_set_chain" >&5
43268 echo "${ECHO_T}$ac_cv_func_mdbm_set_chain" >&6
43269 if test $ac_cv_func_mdbm_set_chain = yes; then
43273 echo "$as_me:$LINENO: checking for mdbm_set_chain in -lmdbm" >&5
43274 echo $ECHO_N "checking for mdbm_set_chain in -lmdbm... $ECHO_C" >&6
43275 if test "${ac_cv_lib_mdbm_mdbm_set_chain+set}" = set; then
43276 echo $ECHO_N "(cached) $ECHO_C" >&6
43278 ac_check_lib_save_LIBS=$LIBS
43279 LIBS="-lmdbm $LIBS"
43280 cat >conftest.$ac_ext <<_ACEOF
43283 cat confdefs.h >>conftest.$ac_ext
43284 cat >>conftest.$ac_ext <<_ACEOF
43285 /* end confdefs.h. */
43287 /* Override any gcc2 internal prototype to avoid an error. */
43291 /* We use char because int might match the return type of a gcc2
43292 builtin and then its argument prototype would still apply. */
43293 char mdbm_set_chain ();
43302 rm -f conftest.$ac_objext conftest$ac_exeext
43303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43304 (eval $ac_link) 2>conftest.er1
43306 grep -v '^ *+' conftest.er1 >conftest.err
43308 cat conftest.err >&5
43309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43310 (exit $ac_status); } &&
43311 { ac_try='test -z "$ac_c_werror_flag"
43312 || test ! -s conftest.err'
43313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43314 (eval $ac_try) 2>&5
43316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43317 (exit $ac_status); }; } &&
43318 { ac_try='test -s conftest$ac_exeext'
43319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43320 (eval $ac_try) 2>&5
43322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43323 (exit $ac_status); }; }; then
43324 ac_cv_lib_mdbm_mdbm_set_chain=yes
43326 echo "$as_me: failed program was:" >&5
43327 sed 's/^/| /' conftest.$ac_ext >&5
43329 ac_cv_lib_mdbm_mdbm_set_chain=no
43331 rm -f conftest.err conftest.$ac_objext \
43332 conftest$ac_exeext conftest.$ac_ext
43333 LIBS=$ac_check_lib_save_LIBS
43335 echo "$as_me:$LINENO: result: $ac_cv_lib_mdbm_mdbm_set_chain" >&5
43336 echo "${ECHO_T}$ac_cv_lib_mdbm_mdbm_set_chain" >&6
43337 if test $ac_cv_lib_mdbm_mdbm_set_chain = yes; then
43338 ol_cv_lib_mdbm=-lmdbm
43349 echo "$as_me:$LINENO: result: $ol_cv_lib_mdbm" >&5
43350 echo "${ECHO_T}$ol_cv_lib_mdbm" >&6
43354 for ac_header in mdbm.h
43356 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43357 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43358 echo "$as_me:$LINENO: checking for $ac_header" >&5
43359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43361 echo $ECHO_N "(cached) $ECHO_C" >&6
43363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43364 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43366 # Is the header compilable?
43367 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43368 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43369 cat >conftest.$ac_ext <<_ACEOF
43372 cat confdefs.h >>conftest.$ac_ext
43373 cat >>conftest.$ac_ext <<_ACEOF
43374 /* end confdefs.h. */
43375 $ac_includes_default
43376 #include <$ac_header>
43378 rm -f conftest.$ac_objext
43379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43380 (eval $ac_compile) 2>conftest.er1
43382 grep -v '^ *+' conftest.er1 >conftest.err
43384 cat conftest.err >&5
43385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43386 (exit $ac_status); } &&
43387 { ac_try='test -z "$ac_c_werror_flag"
43388 || test ! -s conftest.err'
43389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43390 (eval $ac_try) 2>&5
43392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43393 (exit $ac_status); }; } &&
43394 { ac_try='test -s conftest.$ac_objext'
43395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43396 (eval $ac_try) 2>&5
43398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43399 (exit $ac_status); }; }; then
43400 ac_header_compiler=yes
43402 echo "$as_me: failed program was:" >&5
43403 sed 's/^/| /' conftest.$ac_ext >&5
43405 ac_header_compiler=no
43407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43408 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43409 echo "${ECHO_T}$ac_header_compiler" >&6
43411 # Is the header present?
43412 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43413 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43414 cat >conftest.$ac_ext <<_ACEOF
43417 cat confdefs.h >>conftest.$ac_ext
43418 cat >>conftest.$ac_ext <<_ACEOF
43419 /* end confdefs.h. */
43420 #include <$ac_header>
43422 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43423 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43425 grep -v '^ *+' conftest.er1 >conftest.err
43427 cat conftest.err >&5
43428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43429 (exit $ac_status); } >/dev/null; then
43430 if test -s conftest.err; then
43431 ac_cpp_err=$ac_c_preproc_warn_flag
43432 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43439 if test -z "$ac_cpp_err"; then
43440 ac_header_preproc=yes
43442 echo "$as_me: failed program was:" >&5
43443 sed 's/^/| /' conftest.$ac_ext >&5
43445 ac_header_preproc=no
43447 rm -f conftest.err conftest.$ac_ext
43448 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43449 echo "${ECHO_T}$ac_header_preproc" >&6
43451 # So? What about this header?
43452 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43454 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43455 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43457 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43458 ac_header_preproc=yes
43461 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43462 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43463 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43464 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43465 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43466 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43467 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43468 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
43469 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43470 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43471 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43472 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43475 ## ------------------------------------------ ##
43476 ## Report this to the AC_PACKAGE_NAME lists. ##
43477 ## ------------------------------------------ ##
43480 sed "s/^/$as_me: WARNING: /" >&2
43483 echo "$as_me:$LINENO: checking for $ac_header" >&5
43484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43486 echo $ECHO_N "(cached) $ECHO_C" >&6
43488 eval "$as_ac_Header=\$ac_header_preproc"
43490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43491 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43494 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43495 cat >>confdefs.h <<_ACEOF
43496 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43503 echo "$as_me:$LINENO: checking for db" >&5
43504 echo $ECHO_N "checking for db... $ECHO_C" >&6
43505 if test "${ol_cv_mdbm+set}" = set; then
43506 echo $ECHO_N "(cached) $ECHO_C" >&6
43509 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
43516 echo "$as_me:$LINENO: result: $ol_cv_mdbm" >&5
43517 echo "${ECHO_T}$ol_cv_mdbm" >&6
43518 if test $ol_cv_mdbm = yes ; then
43520 cat >>confdefs.h <<\_ACEOF
43521 #define HAVE_MDBM 1
43527 if test $ol_cv_mdbm = yes ; then
43529 ol_with_ldbm_api=mdbm
43530 if test $ol_cv_lib_mdbm != yes ; then
43531 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
43536 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
43537 echo "$as_me:$LINENO: checking for GDBM library" >&5
43538 echo $ECHO_N "checking for GDBM library... $ECHO_C" >&6
43539 if test "${ol_cv_lib_gdbm+set}" = set; then
43540 echo $ECHO_N "(cached) $ECHO_C" >&6
43543 echo "$as_me:$LINENO: checking for gdbm_open" >&5
43544 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
43545 if test "${ac_cv_func_gdbm_open+set}" = set; then
43546 echo $ECHO_N "(cached) $ECHO_C" >&6
43548 cat >conftest.$ac_ext <<_ACEOF
43551 cat confdefs.h >>conftest.$ac_ext
43552 cat >>conftest.$ac_ext <<_ACEOF
43553 /* end confdefs.h. */
43554 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
43555 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43556 #define gdbm_open innocuous_gdbm_open
43558 /* System header to define __stub macros and hopefully few prototypes,
43559 which can conflict with char gdbm_open (); below.
43560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43561 <limits.h> exists even on freestanding compilers. */
43564 # include <limits.h>
43566 # include <assert.h>
43571 /* Override any gcc2 internal prototype to avoid an error. */
43576 /* We use char because int might match the return type of a gcc2
43577 builtin and then its argument prototype would still apply. */
43579 /* The GNU C library defines this for functions which it implements
43580 to always fail with ENOSYS. Some functions are actually named
43581 something starting with __ and the normal name is an alias. */
43582 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
43585 char (*f) () = gdbm_open;
43594 return f != gdbm_open;
43599 rm -f conftest.$ac_objext conftest$ac_exeext
43600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43601 (eval $ac_link) 2>conftest.er1
43603 grep -v '^ *+' conftest.er1 >conftest.err
43605 cat conftest.err >&5
43606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43607 (exit $ac_status); } &&
43608 { ac_try='test -z "$ac_c_werror_flag"
43609 || test ! -s conftest.err'
43610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43611 (eval $ac_try) 2>&5
43613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43614 (exit $ac_status); }; } &&
43615 { ac_try='test -s conftest$ac_exeext'
43616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43617 (eval $ac_try) 2>&5
43619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43620 (exit $ac_status); }; }; then
43621 ac_cv_func_gdbm_open=yes
43623 echo "$as_me: failed program was:" >&5
43624 sed 's/^/| /' conftest.$ac_ext >&5
43626 ac_cv_func_gdbm_open=no
43628 rm -f conftest.err conftest.$ac_objext \
43629 conftest$ac_exeext conftest.$ac_ext
43631 echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
43632 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6
43633 if test $ac_cv_func_gdbm_open = yes; then
43637 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
43638 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
43639 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
43640 echo $ECHO_N "(cached) $ECHO_C" >&6
43642 ac_check_lib_save_LIBS=$LIBS
43643 LIBS="-lgdbm $LIBS"
43644 cat >conftest.$ac_ext <<_ACEOF
43647 cat confdefs.h >>conftest.$ac_ext
43648 cat >>conftest.$ac_ext <<_ACEOF
43649 /* end confdefs.h. */
43651 /* Override any gcc2 internal prototype to avoid an error. */
43655 /* We use char because int might match the return type of a gcc2
43656 builtin and then its argument prototype would still apply. */
43666 rm -f conftest.$ac_objext conftest$ac_exeext
43667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43668 (eval $ac_link) 2>conftest.er1
43670 grep -v '^ *+' conftest.er1 >conftest.err
43672 cat conftest.err >&5
43673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43674 (exit $ac_status); } &&
43675 { ac_try='test -z "$ac_c_werror_flag"
43676 || test ! -s conftest.err'
43677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43678 (eval $ac_try) 2>&5
43680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43681 (exit $ac_status); }; } &&
43682 { ac_try='test -s conftest$ac_exeext'
43683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43684 (eval $ac_try) 2>&5
43686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43687 (exit $ac_status); }; }; then
43688 ac_cv_lib_gdbm_gdbm_open=yes
43690 echo "$as_me: failed program was:" >&5
43691 sed 's/^/| /' conftest.$ac_ext >&5
43693 ac_cv_lib_gdbm_gdbm_open=no
43695 rm -f conftest.err conftest.$ac_objext \
43696 conftest$ac_exeext conftest.$ac_ext
43697 LIBS=$ac_check_lib_save_LIBS
43699 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
43700 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
43701 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
43702 ol_cv_lib_gdbm=-lgdbm
43713 echo "$as_me:$LINENO: result: $ol_cv_lib_gdbm" >&5
43714 echo "${ECHO_T}$ol_cv_lib_gdbm" >&6
43718 for ac_header in gdbm.h
43720 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43721 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43722 echo "$as_me:$LINENO: checking for $ac_header" >&5
43723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43725 echo $ECHO_N "(cached) $ECHO_C" >&6
43727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43728 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43730 # Is the header compilable?
43731 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43732 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43733 cat >conftest.$ac_ext <<_ACEOF
43736 cat confdefs.h >>conftest.$ac_ext
43737 cat >>conftest.$ac_ext <<_ACEOF
43738 /* end confdefs.h. */
43739 $ac_includes_default
43740 #include <$ac_header>
43742 rm -f conftest.$ac_objext
43743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43744 (eval $ac_compile) 2>conftest.er1
43746 grep -v '^ *+' conftest.er1 >conftest.err
43748 cat conftest.err >&5
43749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43750 (exit $ac_status); } &&
43751 { ac_try='test -z "$ac_c_werror_flag"
43752 || test ! -s conftest.err'
43753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43754 (eval $ac_try) 2>&5
43756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43757 (exit $ac_status); }; } &&
43758 { ac_try='test -s conftest.$ac_objext'
43759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43760 (eval $ac_try) 2>&5
43762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43763 (exit $ac_status); }; }; then
43764 ac_header_compiler=yes
43766 echo "$as_me: failed program was:" >&5
43767 sed 's/^/| /' conftest.$ac_ext >&5
43769 ac_header_compiler=no
43771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43772 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43773 echo "${ECHO_T}$ac_header_compiler" >&6
43775 # Is the header present?
43776 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43777 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43778 cat >conftest.$ac_ext <<_ACEOF
43781 cat confdefs.h >>conftest.$ac_ext
43782 cat >>conftest.$ac_ext <<_ACEOF
43783 /* end confdefs.h. */
43784 #include <$ac_header>
43786 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43787 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43789 grep -v '^ *+' conftest.er1 >conftest.err
43791 cat conftest.err >&5
43792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43793 (exit $ac_status); } >/dev/null; then
43794 if test -s conftest.err; then
43795 ac_cpp_err=$ac_c_preproc_warn_flag
43796 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43803 if test -z "$ac_cpp_err"; then
43804 ac_header_preproc=yes
43806 echo "$as_me: failed program was:" >&5
43807 sed 's/^/| /' conftest.$ac_ext >&5
43809 ac_header_preproc=no
43811 rm -f conftest.err conftest.$ac_ext
43812 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43813 echo "${ECHO_T}$ac_header_preproc" >&6
43815 # So? What about this header?
43816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43818 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43819 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43821 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43822 ac_header_preproc=yes
43825 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43826 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43827 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43828 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43829 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43830 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43831 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43832 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
43833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43834 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43835 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43836 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43839 ## ------------------------------------------ ##
43840 ## Report this to the AC_PACKAGE_NAME lists. ##
43841 ## ------------------------------------------ ##
43844 sed "s/^/$as_me: WARNING: /" >&2
43847 echo "$as_me:$LINENO: checking for $ac_header" >&5
43848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43850 echo $ECHO_N "(cached) $ECHO_C" >&6
43852 eval "$as_ac_Header=\$ac_header_preproc"
43854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43858 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43859 cat >>confdefs.h <<_ACEOF
43860 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43867 echo "$as_me:$LINENO: checking for db" >&5
43868 echo $ECHO_N "checking for db... $ECHO_C" >&6
43869 if test "${ol_cv_gdbm+set}" = set; then
43870 echo $ECHO_N "(cached) $ECHO_C" >&6
43873 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
43880 echo "$as_me:$LINENO: result: $ol_cv_gdbm" >&5
43881 echo "${ECHO_T}$ol_cv_gdbm" >&6
43882 if test $ol_cv_gdbm = yes ; then
43884 cat >>confdefs.h <<\_ACEOF
43885 #define HAVE_GDBM 1
43891 if test $ol_cv_gdbm = yes ; then
43893 ol_with_ldbm_api=gdbm
43895 if test $ol_cv_lib_gdbm != yes ; then
43896 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
43901 if test $ol_with_ldbm_api = ndbm ; then
43902 echo "$as_me:$LINENO: checking for NDBM library" >&5
43903 echo $ECHO_N "checking for NDBM library... $ECHO_C" >&6
43904 if test "${ol_cv_lib_ndbm+set}" = set; then
43905 echo $ECHO_N "(cached) $ECHO_C" >&6
43908 echo "$as_me:$LINENO: checking for dbm_open" >&5
43909 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
43910 if test "${ac_cv_func_dbm_open+set}" = set; then
43911 echo $ECHO_N "(cached) $ECHO_C" >&6
43913 cat >conftest.$ac_ext <<_ACEOF
43916 cat confdefs.h >>conftest.$ac_ext
43917 cat >>conftest.$ac_ext <<_ACEOF
43918 /* end confdefs.h. */
43919 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
43920 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43921 #define dbm_open innocuous_dbm_open
43923 /* System header to define __stub macros and hopefully few prototypes,
43924 which can conflict with char dbm_open (); below.
43925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43926 <limits.h> exists even on freestanding compilers. */
43929 # include <limits.h>
43931 # include <assert.h>
43936 /* Override any gcc2 internal prototype to avoid an error. */
43941 /* We use char because int might match the return type of a gcc2
43942 builtin and then its argument prototype would still apply. */
43944 /* The GNU C library defines this for functions which it implements
43945 to always fail with ENOSYS. Some functions are actually named
43946 something starting with __ and the normal name is an alias. */
43947 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
43950 char (*f) () = dbm_open;
43959 return f != dbm_open;
43964 rm -f conftest.$ac_objext conftest$ac_exeext
43965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43966 (eval $ac_link) 2>conftest.er1
43968 grep -v '^ *+' conftest.er1 >conftest.err
43970 cat conftest.err >&5
43971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43972 (exit $ac_status); } &&
43973 { ac_try='test -z "$ac_c_werror_flag"
43974 || test ! -s conftest.err'
43975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43976 (eval $ac_try) 2>&5
43978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43979 (exit $ac_status); }; } &&
43980 { ac_try='test -s conftest$ac_exeext'
43981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43982 (eval $ac_try) 2>&5
43984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43985 (exit $ac_status); }; }; then
43986 ac_cv_func_dbm_open=yes
43988 echo "$as_me: failed program was:" >&5
43989 sed 's/^/| /' conftest.$ac_ext >&5
43991 ac_cv_func_dbm_open=no
43993 rm -f conftest.err conftest.$ac_objext \
43994 conftest$ac_exeext conftest.$ac_ext
43996 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
43997 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
43998 if test $ac_cv_func_dbm_open = yes; then
44002 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
44003 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
44004 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
44005 echo $ECHO_N "(cached) $ECHO_C" >&6
44007 ac_check_lib_save_LIBS=$LIBS
44008 LIBS="-lndbm $LIBS"
44009 cat >conftest.$ac_ext <<_ACEOF
44012 cat confdefs.h >>conftest.$ac_ext
44013 cat >>conftest.$ac_ext <<_ACEOF
44014 /* end confdefs.h. */
44016 /* Override any gcc2 internal prototype to avoid an error. */
44020 /* We use char because int might match the return type of a gcc2
44021 builtin and then its argument prototype would still apply. */
44031 rm -f conftest.$ac_objext conftest$ac_exeext
44032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44033 (eval $ac_link) 2>conftest.er1
44035 grep -v '^ *+' conftest.er1 >conftest.err
44037 cat conftest.err >&5
44038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44039 (exit $ac_status); } &&
44040 { ac_try='test -z "$ac_c_werror_flag"
44041 || test ! -s conftest.err'
44042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44043 (eval $ac_try) 2>&5
44045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44046 (exit $ac_status); }; } &&
44047 { ac_try='test -s conftest$ac_exeext'
44048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44049 (eval $ac_try) 2>&5
44051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44052 (exit $ac_status); }; }; then
44053 ac_cv_lib_ndbm_dbm_open=yes
44055 echo "$as_me: failed program was:" >&5
44056 sed 's/^/| /' conftest.$ac_ext >&5
44058 ac_cv_lib_ndbm_dbm_open=no
44060 rm -f conftest.err conftest.$ac_objext \
44061 conftest$ac_exeext conftest.$ac_ext
44062 LIBS=$ac_check_lib_save_LIBS
44064 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
44065 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
44066 if test $ac_cv_lib_ndbm_dbm_open = yes; then
44067 ol_cv_lib_ndbm=-lndbm
44070 echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
44071 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
44072 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
44073 echo $ECHO_N "(cached) $ECHO_C" >&6
44075 ac_check_lib_save_LIBS=$LIBS
44077 cat >conftest.$ac_ext <<_ACEOF
44080 cat confdefs.h >>conftest.$ac_ext
44081 cat >>conftest.$ac_ext <<_ACEOF
44082 /* end confdefs.h. */
44084 /* Override any gcc2 internal prototype to avoid an error. */
44088 /* We use char because int might match the return type of a gcc2
44089 builtin and then its argument prototype would still apply. */
44099 rm -f conftest.$ac_objext conftest$ac_exeext
44100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44101 (eval $ac_link) 2>conftest.er1
44103 grep -v '^ *+' conftest.er1 >conftest.err
44105 cat conftest.err >&5
44106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44107 (exit $ac_status); } &&
44108 { ac_try='test -z "$ac_c_werror_flag"
44109 || test ! -s conftest.err'
44110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44111 (eval $ac_try) 2>&5
44113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44114 (exit $ac_status); }; } &&
44115 { ac_try='test -s conftest$ac_exeext'
44116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44117 (eval $ac_try) 2>&5
44119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44120 (exit $ac_status); }; }; then
44121 ac_cv_lib_dbm_dbm_open=yes
44123 echo "$as_me: failed program was:" >&5
44124 sed 's/^/| /' conftest.$ac_ext >&5
44126 ac_cv_lib_dbm_dbm_open=no
44128 rm -f conftest.err conftest.$ac_objext \
44129 conftest$ac_exeext conftest.$ac_ext
44130 LIBS=$ac_check_lib_save_LIBS
44132 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
44133 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
44134 if test $ac_cv_lib_dbm_dbm_open = yes; then
44135 ol_cv_lib_ndbm=-ldbm
44148 echo "$as_me:$LINENO: result: $ol_cv_lib_ndbm" >&5
44149 echo "${ECHO_T}$ol_cv_lib_ndbm" >&6
44153 for ac_header in ndbm.h
44155 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44157 echo "$as_me:$LINENO: checking for $ac_header" >&5
44158 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44159 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44160 echo $ECHO_N "(cached) $ECHO_C" >&6
44162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44163 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44165 # Is the header compilable?
44166 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44167 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44168 cat >conftest.$ac_ext <<_ACEOF
44171 cat confdefs.h >>conftest.$ac_ext
44172 cat >>conftest.$ac_ext <<_ACEOF
44173 /* end confdefs.h. */
44174 $ac_includes_default
44175 #include <$ac_header>
44177 rm -f conftest.$ac_objext
44178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44179 (eval $ac_compile) 2>conftest.er1
44181 grep -v '^ *+' conftest.er1 >conftest.err
44183 cat conftest.err >&5
44184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44185 (exit $ac_status); } &&
44186 { ac_try='test -z "$ac_c_werror_flag"
44187 || test ! -s conftest.err'
44188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44189 (eval $ac_try) 2>&5
44191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44192 (exit $ac_status); }; } &&
44193 { ac_try='test -s conftest.$ac_objext'
44194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44195 (eval $ac_try) 2>&5
44197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44198 (exit $ac_status); }; }; then
44199 ac_header_compiler=yes
44201 echo "$as_me: failed program was:" >&5
44202 sed 's/^/| /' conftest.$ac_ext >&5
44204 ac_header_compiler=no
44206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44207 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44208 echo "${ECHO_T}$ac_header_compiler" >&6
44210 # Is the header present?
44211 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44212 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44213 cat >conftest.$ac_ext <<_ACEOF
44216 cat confdefs.h >>conftest.$ac_ext
44217 cat >>conftest.$ac_ext <<_ACEOF
44218 /* end confdefs.h. */
44219 #include <$ac_header>
44221 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44222 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44224 grep -v '^ *+' conftest.er1 >conftest.err
44226 cat conftest.err >&5
44227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44228 (exit $ac_status); } >/dev/null; then
44229 if test -s conftest.err; then
44230 ac_cpp_err=$ac_c_preproc_warn_flag
44231 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44238 if test -z "$ac_cpp_err"; then
44239 ac_header_preproc=yes
44241 echo "$as_me: failed program was:" >&5
44242 sed 's/^/| /' conftest.$ac_ext >&5
44244 ac_header_preproc=no
44246 rm -f conftest.err conftest.$ac_ext
44247 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44248 echo "${ECHO_T}$ac_header_preproc" >&6
44250 # So? What about this header?
44251 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44253 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44254 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44256 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44257 ac_header_preproc=yes
44260 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44261 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44262 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44263 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44264 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44265 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44266 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44267 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44269 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44270 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44271 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44274 ## ------------------------------------------ ##
44275 ## Report this to the AC_PACKAGE_NAME lists. ##
44276 ## ------------------------------------------ ##
44279 sed "s/^/$as_me: WARNING: /" >&2
44282 echo "$as_me:$LINENO: checking for $ac_header" >&5
44283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44284 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44285 echo $ECHO_N "(cached) $ECHO_C" >&6
44287 eval "$as_ac_Header=\$ac_header_preproc"
44289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44290 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44293 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44294 cat >>confdefs.h <<_ACEOF
44295 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44302 echo "$as_me:$LINENO: checking for db" >&5
44303 echo $ECHO_N "checking for db... $ECHO_C" >&6
44304 if test "${ol_cv_ndbm+set}" = set; then
44305 echo $ECHO_N "(cached) $ECHO_C" >&6
44308 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
44315 echo "$as_me:$LINENO: result: $ol_cv_ndbm" >&5
44316 echo "${ECHO_T}$ol_cv_ndbm" >&6
44317 if test $ol_cv_ndbm = yes ; then
44319 cat >>confdefs.h <<\_ACEOF
44320 #define HAVE_NDBM 1
44326 if test $ol_cv_ndbm = yes ; then
44328 ol_with_ldbm_api=ndbm
44330 if test $ol_cv_lib_ndbm != yes ; then
44331 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
44336 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
44337 { { echo "$as_me:$LINENO: error: could not find suitable LDBM backend" >&5
44338 echo "$as_me: error: could not find suitable LDBM backend" >&2;}
44339 { (exit 1); exit 1; }; }
44342 if test $ol_enable_bdb = yes -o \
44343 $ol_enable_hdb = yes -o \
44344 $ol_enable_ldbm = yes ; then
44345 SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
44349 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
44350 BUILD_LIBS_DYNAMIC=shared
44352 cat >>confdefs.h <<\_ACEOF
44353 #define LDAP_LIBS_DYNAMIC 1
44358 BUILD_LIBS_DYNAMIC=static
44362 if test $ol_enable_wrappers != no ; then
44364 for ac_header in tcpd.h
44366 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44368 echo "$as_me:$LINENO: checking for $ac_header" >&5
44369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44371 echo $ECHO_N "(cached) $ECHO_C" >&6
44373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44374 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44376 # Is the header compilable?
44377 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44378 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44379 cat >conftest.$ac_ext <<_ACEOF
44382 cat confdefs.h >>conftest.$ac_ext
44383 cat >>conftest.$ac_ext <<_ACEOF
44384 /* end confdefs.h. */
44385 $ac_includes_default
44386 #include <$ac_header>
44388 rm -f conftest.$ac_objext
44389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44390 (eval $ac_compile) 2>conftest.er1
44392 grep -v '^ *+' conftest.er1 >conftest.err
44394 cat conftest.err >&5
44395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44396 (exit $ac_status); } &&
44397 { ac_try='test -z "$ac_c_werror_flag"
44398 || test ! -s conftest.err'
44399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44400 (eval $ac_try) 2>&5
44402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44403 (exit $ac_status); }; } &&
44404 { ac_try='test -s conftest.$ac_objext'
44405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44406 (eval $ac_try) 2>&5
44408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44409 (exit $ac_status); }; }; then
44410 ac_header_compiler=yes
44412 echo "$as_me: failed program was:" >&5
44413 sed 's/^/| /' conftest.$ac_ext >&5
44415 ac_header_compiler=no
44417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44418 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44419 echo "${ECHO_T}$ac_header_compiler" >&6
44421 # Is the header present?
44422 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44423 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44424 cat >conftest.$ac_ext <<_ACEOF
44427 cat confdefs.h >>conftest.$ac_ext
44428 cat >>conftest.$ac_ext <<_ACEOF
44429 /* end confdefs.h. */
44430 #include <$ac_header>
44432 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44433 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44435 grep -v '^ *+' conftest.er1 >conftest.err
44437 cat conftest.err >&5
44438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44439 (exit $ac_status); } >/dev/null; then
44440 if test -s conftest.err; then
44441 ac_cpp_err=$ac_c_preproc_warn_flag
44442 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44449 if test -z "$ac_cpp_err"; then
44450 ac_header_preproc=yes
44452 echo "$as_me: failed program was:" >&5
44453 sed 's/^/| /' conftest.$ac_ext >&5
44455 ac_header_preproc=no
44457 rm -f conftest.err conftest.$ac_ext
44458 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44459 echo "${ECHO_T}$ac_header_preproc" >&6
44461 # So? What about this header?
44462 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44464 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44465 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44467 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44468 ac_header_preproc=yes
44471 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44472 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44473 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44474 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44475 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44476 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44477 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44478 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44480 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44481 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44482 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44485 ## ------------------------------------------ ##
44486 ## Report this to the AC_PACKAGE_NAME lists. ##
44487 ## ------------------------------------------ ##
44490 sed "s/^/$as_me: WARNING: /" >&2
44493 echo "$as_me:$LINENO: checking for $ac_header" >&5
44494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44496 echo $ECHO_N "(cached) $ECHO_C" >&6
44498 eval "$as_ac_Header=\$ac_header_preproc"
44500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44501 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44504 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44505 cat >>confdefs.h <<_ACEOF
44506 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44509 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
44510 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
44512 LIBS="$LIBS -lwrap"
44513 cat >conftest.$ac_ext <<_ACEOF
44516 cat confdefs.h >>conftest.$ac_ext
44517 cat >>conftest.$ac_ext <<_ACEOF
44518 /* end confdefs.h. */
44521 int allow_severity = 0;
44522 int deny_severity = 0;
44524 struct request_info *req;
44536 rm -f conftest.$ac_objext conftest$ac_exeext
44537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44538 (eval $ac_link) 2>conftest.er1
44540 grep -v '^ *+' conftest.er1 >conftest.err
44542 cat conftest.err >&5
44543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44544 (exit $ac_status); } &&
44545 { ac_try='test -z "$ac_c_werror_flag"
44546 || test ! -s conftest.err'
44547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44548 (eval $ac_try) 2>&5
44550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44551 (exit $ac_status); }; } &&
44552 { ac_try='test -s conftest$ac_exeext'
44553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44554 (eval $ac_try) 2>&5
44556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44557 (exit $ac_status); }; }; then
44558 echo "$as_me:$LINENO: result: -lwrap" >&5
44559 echo "${ECHO_T}-lwrap" >&6
44563 echo "$as_me: failed program was:" >&5
44564 sed 's/^/| /' conftest.$ac_ext >&5
44568 cat >conftest.$ac_ext <<_ACEOF
44571 cat confdefs.h >>conftest.$ac_ext
44572 cat >>conftest.$ac_ext <<_ACEOF
44573 /* end confdefs.h. */
44576 int allow_severity = 0;
44577 int deny_severity = 0;
44579 struct request_info *req;
44591 rm -f conftest.$ac_objext conftest$ac_exeext
44592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44593 (eval $ac_link) 2>conftest.er1
44595 grep -v '^ *+' conftest.er1 >conftest.err
44597 cat conftest.err >&5
44598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44599 (exit $ac_status); } &&
44600 { ac_try='test -z "$ac_c_werror_flag"
44601 || test ! -s conftest.err'
44602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44603 (eval $ac_try) 2>&5
44605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44606 (exit $ac_status); }; } &&
44607 { ac_try='test -s conftest$ac_exeext'
44608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44609 (eval $ac_try) 2>&5
44611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44612 (exit $ac_status); }; }; then
44613 echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
44614 echo "${ECHO_T}-lwrap -lnsl" >&6
44616 LIBS="$save_LIBS -lnsl"
44618 echo "$as_me: failed program was:" >&5
44619 sed 's/^/| /' conftest.$ac_ext >&5
44622 echo "$as_me:$LINENO: result: no" >&5
44623 echo "${ECHO_T}no" >&6
44627 rm -f conftest.err conftest.$ac_objext \
44628 conftest$ac_exeext conftest.$ac_ext
44630 rm -f conftest.err conftest.$ac_objext \
44631 conftest$ac_exeext conftest.$ac_ext
44639 if test $have_wrappers = yes ; then
44641 cat >>confdefs.h <<\_ACEOF
44642 #define HAVE_TCPD 1
44646 elif test $ol_enable_wrappers = yes ; then
44647 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
44648 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
44649 { (exit 1); exit 1; }; }
44651 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
44652 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
44657 if test $ol_enable_syslog != no ; then
44658 echo "$as_me:$LINENO: checking for openlog" >&5
44659 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
44660 if test "${ac_cv_func_openlog+set}" = set; then
44661 echo $ECHO_N "(cached) $ECHO_C" >&6
44663 cat >conftest.$ac_ext <<_ACEOF
44666 cat confdefs.h >>conftest.$ac_ext
44667 cat >>conftest.$ac_ext <<_ACEOF
44668 /* end confdefs.h. */
44669 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
44670 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44671 #define openlog innocuous_openlog
44673 /* System header to define __stub macros and hopefully few prototypes,
44674 which can conflict with char openlog (); below.
44675 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44676 <limits.h> exists even on freestanding compilers. */
44679 # include <limits.h>
44681 # include <assert.h>
44686 /* Override any gcc2 internal prototype to avoid an error. */
44691 /* We use char because int might match the return type of a gcc2
44692 builtin and then its argument prototype would still apply. */
44694 /* The GNU C library defines this for functions which it implements
44695 to always fail with ENOSYS. Some functions are actually named
44696 something starting with __ and the normal name is an alias. */
44697 #if defined (__stub_openlog) || defined (__stub___openlog)
44700 char (*f) () = openlog;
44709 return f != openlog;
44714 rm -f conftest.$ac_objext conftest$ac_exeext
44715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44716 (eval $ac_link) 2>conftest.er1
44718 grep -v '^ *+' conftest.er1 >conftest.err
44720 cat conftest.err >&5
44721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44722 (exit $ac_status); } &&
44723 { ac_try='test -z "$ac_c_werror_flag"
44724 || test ! -s conftest.err'
44725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44726 (eval $ac_try) 2>&5
44728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44729 (exit $ac_status); }; } &&
44730 { ac_try='test -s conftest$ac_exeext'
44731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44732 (eval $ac_try) 2>&5
44734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44735 (exit $ac_status); }; }; then
44736 ac_cv_func_openlog=yes
44738 echo "$as_me: failed program was:" >&5
44739 sed 's/^/| /' conftest.$ac_ext >&5
44741 ac_cv_func_openlog=no
44743 rm -f conftest.err conftest.$ac_objext \
44744 conftest$ac_exeext conftest.$ac_ext
44746 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
44747 echo "${ECHO_T}$ac_cv_func_openlog" >&6
44749 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
44750 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
44751 echo "$as_me: error: could not find syslog" >&2;}
44752 { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
44754 ol_enable_syslog=$ac_cv_func_openlog
44759 if test $ol_enable_sql != no ; then
44762 for ac_header in sql.h sqlext.h
44764 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44765 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44766 echo "$as_me:$LINENO: checking for $ac_header" >&5
44767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44769 echo $ECHO_N "(cached) $ECHO_C" >&6
44771 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44772 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44774 # Is the header compilable?
44775 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44776 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44777 cat >conftest.$ac_ext <<_ACEOF
44780 cat confdefs.h >>conftest.$ac_ext
44781 cat >>conftest.$ac_ext <<_ACEOF
44782 /* end confdefs.h. */
44783 $ac_includes_default
44784 #include <$ac_header>
44786 rm -f conftest.$ac_objext
44787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44788 (eval $ac_compile) 2>conftest.er1
44790 grep -v '^ *+' conftest.er1 >conftest.err
44792 cat conftest.err >&5
44793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44794 (exit $ac_status); } &&
44795 { ac_try='test -z "$ac_c_werror_flag"
44796 || test ! -s conftest.err'
44797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44798 (eval $ac_try) 2>&5
44800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44801 (exit $ac_status); }; } &&
44802 { ac_try='test -s conftest.$ac_objext'
44803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44804 (eval $ac_try) 2>&5
44806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44807 (exit $ac_status); }; }; then
44808 ac_header_compiler=yes
44810 echo "$as_me: failed program was:" >&5
44811 sed 's/^/| /' conftest.$ac_ext >&5
44813 ac_header_compiler=no
44815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44816 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44817 echo "${ECHO_T}$ac_header_compiler" >&6
44819 # Is the header present?
44820 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44821 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44822 cat >conftest.$ac_ext <<_ACEOF
44825 cat confdefs.h >>conftest.$ac_ext
44826 cat >>conftest.$ac_ext <<_ACEOF
44827 /* end confdefs.h. */
44828 #include <$ac_header>
44830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44831 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44833 grep -v '^ *+' conftest.er1 >conftest.err
44835 cat conftest.err >&5
44836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44837 (exit $ac_status); } >/dev/null; then
44838 if test -s conftest.err; then
44839 ac_cpp_err=$ac_c_preproc_warn_flag
44840 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44847 if test -z "$ac_cpp_err"; then
44848 ac_header_preproc=yes
44850 echo "$as_me: failed program was:" >&5
44851 sed 's/^/| /' conftest.$ac_ext >&5
44853 ac_header_preproc=no
44855 rm -f conftest.err conftest.$ac_ext
44856 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44857 echo "${ECHO_T}$ac_header_preproc" >&6
44859 # So? What about this header?
44860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44862 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44863 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44865 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44866 ac_header_preproc=yes
44869 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44870 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44871 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44872 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44873 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44874 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44875 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44876 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44878 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44879 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44880 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44883 ## ------------------------------------------ ##
44884 ## Report this to the AC_PACKAGE_NAME lists. ##
44885 ## ------------------------------------------ ##
44888 sed "s/^/$as_me: WARNING: /" >&2
44891 echo "$as_me:$LINENO: checking for $ac_header" >&5
44892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44893 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44894 echo $ECHO_N "(cached) $ECHO_C" >&6
44896 eval "$as_ac_Header=\$ac_header_preproc"
44898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44899 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44902 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44903 cat >>confdefs.h <<_ACEOF
44904 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44909 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
44910 echo "$as_me: error: could not locate SQL headers" >&2;}
44911 { (exit 1); exit 1; }; }
44919 LIBS="$LTHREAD_LIBS"
44921 echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
44922 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
44923 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
44924 echo $ECHO_N "(cached) $ECHO_C" >&6
44926 ac_check_lib_save_LIBS=$LIBS
44927 LIBS="-liodbc $LIBS"
44928 cat >conftest.$ac_ext <<_ACEOF
44931 cat confdefs.h >>conftest.$ac_ext
44932 cat >>conftest.$ac_ext <<_ACEOF
44933 /* end confdefs.h. */
44935 /* Override any gcc2 internal prototype to avoid an error. */
44939 /* We use char because int might match the return type of a gcc2
44940 builtin and then its argument prototype would still apply. */
44941 char SQLDriverConnect ();
44945 SQLDriverConnect ();
44950 rm -f conftest.$ac_objext conftest$ac_exeext
44951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44952 (eval $ac_link) 2>conftest.er1
44954 grep -v '^ *+' conftest.er1 >conftest.err
44956 cat conftest.err >&5
44957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44958 (exit $ac_status); } &&
44959 { ac_try='test -z "$ac_c_werror_flag"
44960 || test ! -s conftest.err'
44961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44962 (eval $ac_try) 2>&5
44964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44965 (exit $ac_status); }; } &&
44966 { ac_try='test -s conftest$ac_exeext'
44967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44968 (eval $ac_try) 2>&5
44970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44971 (exit $ac_status); }; }; then
44972 ac_cv_lib_iodbc_SQLDriverConnect=yes
44974 echo "$as_me: failed program was:" >&5
44975 sed 's/^/| /' conftest.$ac_ext >&5
44977 ac_cv_lib_iodbc_SQLDriverConnect=no
44979 rm -f conftest.err conftest.$ac_objext \
44980 conftest$ac_exeext conftest.$ac_ext
44981 LIBS=$ac_check_lib_save_LIBS
44983 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
44984 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
44985 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
44991 if test $have_iodbc = yes ; then
44992 ol_link_sql="-liodbc"
44994 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
44995 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
44996 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
44997 echo $ECHO_N "(cached) $ECHO_C" >&6
44999 ac_check_lib_save_LIBS=$LIBS
45000 LIBS="-lodbc $LIBS"
45001 cat >conftest.$ac_ext <<_ACEOF
45004 cat confdefs.h >>conftest.$ac_ext
45005 cat >>conftest.$ac_ext <<_ACEOF
45006 /* end confdefs.h. */
45008 /* Override any gcc2 internal prototype to avoid an error. */
45012 /* We use char because int might match the return type of a gcc2
45013 builtin and then its argument prototype would still apply. */
45014 char SQLDriverConnect ();
45018 SQLDriverConnect ();
45023 rm -f conftest.$ac_objext conftest$ac_exeext
45024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45025 (eval $ac_link) 2>conftest.er1
45027 grep -v '^ *+' conftest.er1 >conftest.err
45029 cat conftest.err >&5
45030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45031 (exit $ac_status); } &&
45032 { ac_try='test -z "$ac_c_werror_flag"
45033 || test ! -s conftest.err'
45034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45035 (eval $ac_try) 2>&5
45037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45038 (exit $ac_status); }; } &&
45039 { ac_try='test -s conftest$ac_exeext'
45040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45041 (eval $ac_try) 2>&5
45043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45044 (exit $ac_status); }; }; then
45045 ac_cv_lib_odbc_SQLDriverConnect=yes
45047 echo "$as_me: failed program was:" >&5
45048 sed 's/^/| /' conftest.$ac_ext >&5
45050 ac_cv_lib_odbc_SQLDriverConnect=no
45052 rm -f conftest.err conftest.$ac_objext \
45053 conftest$ac_exeext conftest.$ac_ext
45054 LIBS=$ac_check_lib_save_LIBS
45056 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
45057 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
45058 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
45064 if test $have_odbc = yes ; then
45065 ol_link_sql="-lodbc"
45071 if test $ol_link_sql != no ; then
45072 SLAPD_SQL_LIBS="$ol_link_sql"
45074 elif test $ol_enable_sql != auto ; then
45075 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
45076 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
45077 { (exit 1); exit 1; }; }
45084 if test $ol_with_cyrus_sasl != no ; then
45087 for ac_header in sasl/sasl.h sasl.h
45089 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45090 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45091 echo "$as_me:$LINENO: checking for $ac_header" >&5
45092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45093 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45094 echo $ECHO_N "(cached) $ECHO_C" >&6
45096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45097 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45099 # Is the header compilable?
45100 echo "$as_me:$LINENO: checking $ac_header usability" >&5
45101 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
45102 cat >conftest.$ac_ext <<_ACEOF
45105 cat confdefs.h >>conftest.$ac_ext
45106 cat >>conftest.$ac_ext <<_ACEOF
45107 /* end confdefs.h. */
45108 $ac_includes_default
45109 #include <$ac_header>
45111 rm -f conftest.$ac_objext
45112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45113 (eval $ac_compile) 2>conftest.er1
45115 grep -v '^ *+' conftest.er1 >conftest.err
45117 cat conftest.err >&5
45118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45119 (exit $ac_status); } &&
45120 { ac_try='test -z "$ac_c_werror_flag"
45121 || test ! -s conftest.err'
45122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45123 (eval $ac_try) 2>&5
45125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45126 (exit $ac_status); }; } &&
45127 { ac_try='test -s conftest.$ac_objext'
45128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45129 (eval $ac_try) 2>&5
45131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45132 (exit $ac_status); }; }; then
45133 ac_header_compiler=yes
45135 echo "$as_me: failed program was:" >&5
45136 sed 's/^/| /' conftest.$ac_ext >&5
45138 ac_header_compiler=no
45140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45141 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45142 echo "${ECHO_T}$ac_header_compiler" >&6
45144 # Is the header present?
45145 echo "$as_me:$LINENO: checking $ac_header presence" >&5
45146 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45147 cat >conftest.$ac_ext <<_ACEOF
45150 cat confdefs.h >>conftest.$ac_ext
45151 cat >>conftest.$ac_ext <<_ACEOF
45152 /* end confdefs.h. */
45153 #include <$ac_header>
45155 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45156 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45158 grep -v '^ *+' conftest.er1 >conftest.err
45160 cat conftest.err >&5
45161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45162 (exit $ac_status); } >/dev/null; then
45163 if test -s conftest.err; then
45164 ac_cpp_err=$ac_c_preproc_warn_flag
45165 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
45172 if test -z "$ac_cpp_err"; then
45173 ac_header_preproc=yes
45175 echo "$as_me: failed program was:" >&5
45176 sed 's/^/| /' conftest.$ac_ext >&5
45178 ac_header_preproc=no
45180 rm -f conftest.err conftest.$ac_ext
45181 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45182 echo "${ECHO_T}$ac_header_preproc" >&6
45184 # So? What about this header?
45185 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45187 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45188 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45190 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45191 ac_header_preproc=yes
45194 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45195 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45196 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
45197 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
45198 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45199 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45200 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
45201 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
45202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45203 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45204 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45205 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45208 ## ------------------------------------------ ##
45209 ## Report this to the AC_PACKAGE_NAME lists. ##
45210 ## ------------------------------------------ ##
45213 sed "s/^/$as_me: WARNING: /" >&2
45216 echo "$as_me:$LINENO: checking for $ac_header" >&5
45217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45219 echo $ECHO_N "(cached) $ECHO_C" >&6
45221 eval "$as_ac_Header=\$ac_header_preproc"
45223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45224 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45227 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45228 cat >>confdefs.h <<_ACEOF
45229 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45237 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
45238 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
45239 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
45240 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
45241 echo $ECHO_N "(cached) $ECHO_C" >&6
45243 ac_check_lib_save_LIBS=$LIBS
45244 LIBS="-lsasl2 $LIBS"
45245 cat >conftest.$ac_ext <<_ACEOF
45248 cat confdefs.h >>conftest.$ac_ext
45249 cat >>conftest.$ac_ext <<_ACEOF
45250 /* end confdefs.h. */
45252 /* Override any gcc2 internal prototype to avoid an error. */
45256 /* We use char because int might match the return type of a gcc2
45257 builtin and then its argument prototype would still apply. */
45258 char sasl_client_init ();
45262 sasl_client_init ();
45267 rm -f conftest.$ac_objext conftest$ac_exeext
45268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45269 (eval $ac_link) 2>conftest.er1
45271 grep -v '^ *+' conftest.er1 >conftest.err
45273 cat conftest.err >&5
45274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45275 (exit $ac_status); } &&
45276 { ac_try='test -z "$ac_c_werror_flag"
45277 || test ! -s conftest.err'
45278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45279 (eval $ac_try) 2>&5
45281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45282 (exit $ac_status); }; } &&
45283 { ac_try='test -s conftest$ac_exeext'
45284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45285 (eval $ac_try) 2>&5
45287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45288 (exit $ac_status); }; }; then
45289 ac_cv_lib_sasl2_sasl_client_init=yes
45291 echo "$as_me: failed program was:" >&5
45292 sed 's/^/| /' conftest.$ac_ext >&5
45294 ac_cv_lib_sasl2_sasl_client_init=no
45296 rm -f conftest.err conftest.$ac_objext \
45297 conftest$ac_exeext conftest.$ac_ext
45298 LIBS=$ac_check_lib_save_LIBS
45300 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
45301 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
45302 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
45303 ol_link_sasl="-lsasl2"
45305 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
45306 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
45307 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
45308 echo $ECHO_N "(cached) $ECHO_C" >&6
45310 ac_check_lib_save_LIBS=$LIBS
45311 LIBS="-lsasl $LIBS"
45312 cat >conftest.$ac_ext <<_ACEOF
45315 cat confdefs.h >>conftest.$ac_ext
45316 cat >>conftest.$ac_ext <<_ACEOF
45317 /* end confdefs.h. */
45319 /* Override any gcc2 internal prototype to avoid an error. */
45323 /* We use char because int might match the return type of a gcc2
45324 builtin and then its argument prototype would still apply. */
45325 char sasl_client_init ();
45329 sasl_client_init ();
45334 rm -f conftest.$ac_objext conftest$ac_exeext
45335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45336 (eval $ac_link) 2>conftest.er1
45338 grep -v '^ *+' conftest.er1 >conftest.err
45340 cat conftest.err >&5
45341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45342 (exit $ac_status); } &&
45343 { ac_try='test -z "$ac_c_werror_flag"
45344 || test ! -s conftest.err'
45345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45346 (eval $ac_try) 2>&5
45348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45349 (exit $ac_status); }; } &&
45350 { ac_try='test -s conftest$ac_exeext'
45351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45352 (eval $ac_try) 2>&5
45354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45355 (exit $ac_status); }; }; then
45356 ac_cv_lib_sasl_sasl_client_init=yes
45358 echo "$as_me: failed program was:" >&5
45359 sed 's/^/| /' conftest.$ac_ext >&5
45361 ac_cv_lib_sasl_sasl_client_init=no
45363 rm -f conftest.err conftest.$ac_objext \
45364 conftest$ac_exeext conftest.$ac_ext
45365 LIBS=$ac_check_lib_save_LIBS
45367 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
45368 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
45369 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
45370 ol_link_sasl="-lsasl"
45377 if test $ol_link_sasl = no ; then
45378 if test $ol_with_cyrus_sasl != auto ; then
45379 { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
45380 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
45381 { (exit 1); exit 1; }; }
45383 { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
45384 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
45385 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
45386 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
45387 if test $ol_link_tls = no ; then
45388 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
45389 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
45393 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
45394 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
45395 if test "${ol_cv_sasl_compat+set}" = set; then
45396 echo $ECHO_N "(cached) $ECHO_C" >&6
45399 cat >conftest.$ac_ext <<_ACEOF
45402 cat confdefs.h >>conftest.$ac_ext
45403 cat >>conftest.$ac_ext <<_ACEOF
45404 /* end confdefs.h. */
45406 #ifdef HAVE_SASL_SASL_H
45407 #include <sasl/sasl.h>
45412 /* Require 2.1.15+ */
45413 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
45414 char *__sasl_compat = "2.2+ or better okay (we guess)";
45415 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
45416 && SASL_VERSION_STEP >=15
45417 char *__sasl_compat = "2.1.15+ or better okay";
45421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45422 $EGREP "__sasl_compat" >/dev/null 2>&1; then
45423 ol_cv_sasl_compat=yes
45425 ol_cv_sasl_compat=no
45430 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
45431 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
45433 if test $ol_cv_sasl_compat = no ; then
45435 { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
45436 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
45437 { (exit 1); exit 1; }; }
45441 cat >>confdefs.h <<\_ACEOF
45442 #define HAVE_CYRUS_SASL 1
45445 SASL_LIBS="$ol_link_sasl"
45446 if test $ol_enable_spasswd != no ; then
45447 ol_link_spasswd=yes
45450 ac_save_LIBS="$LIBS"
45451 LIBS="$LIBS $ol_link_sasl"
45452 echo "$as_me:$LINENO: checking for sasl_version" >&5
45453 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
45454 if test "${ac_cv_func_sasl_version+set}" = set; then
45455 echo $ECHO_N "(cached) $ECHO_C" >&6
45457 cat >conftest.$ac_ext <<_ACEOF
45460 cat confdefs.h >>conftest.$ac_ext
45461 cat >>conftest.$ac_ext <<_ACEOF
45462 /* end confdefs.h. */
45463 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
45464 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45465 #define sasl_version innocuous_sasl_version
45467 /* System header to define __stub macros and hopefully few prototypes,
45468 which can conflict with char sasl_version (); below.
45469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45470 <limits.h> exists even on freestanding compilers. */
45473 # include <limits.h>
45475 # include <assert.h>
45478 #undef sasl_version
45480 /* Override any gcc2 internal prototype to avoid an error. */
45485 /* We use char because int might match the return type of a gcc2
45486 builtin and then its argument prototype would still apply. */
45487 char sasl_version ();
45488 /* The GNU C library defines this for functions which it implements
45489 to always fail with ENOSYS. Some functions are actually named
45490 something starting with __ and the normal name is an alias. */
45491 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
45494 char (*f) () = sasl_version;
45503 return f != sasl_version;
45508 rm -f conftest.$ac_objext conftest$ac_exeext
45509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45510 (eval $ac_link) 2>conftest.er1
45512 grep -v '^ *+' conftest.er1 >conftest.err
45514 cat conftest.err >&5
45515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45516 (exit $ac_status); } &&
45517 { ac_try='test -z "$ac_c_werror_flag"
45518 || test ! -s conftest.err'
45519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45520 (eval $ac_try) 2>&5
45522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45523 (exit $ac_status); }; } &&
45524 { ac_try='test -s conftest$ac_exeext'
45525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45526 (eval $ac_try) 2>&5
45528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45529 (exit $ac_status); }; }; then
45530 ac_cv_func_sasl_version=yes
45532 echo "$as_me: failed program was:" >&5
45533 sed 's/^/| /' conftest.$ac_ext >&5
45535 ac_cv_func_sasl_version=no
45537 rm -f conftest.err conftest.$ac_objext \
45538 conftest$ac_exeext conftest.$ac_ext
45540 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
45541 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
45542 if test $ac_cv_func_sasl_version = yes; then
45544 cat >>confdefs.h <<\_ACEOF
45545 #define HAVE_SASL_VERSION 1
45550 LIBS="$ac_save_LIBS"
45556 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
45557 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
45558 if test $ol_link_tls = no ; then
45559 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
45560 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
45564 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
45566 if test -r /dev/urandom ; then
45567 dev="/dev/urandom";
45568 elif test -r /idev/urandom ; then
45569 dev="/idev/urandom";
45570 elif test -r /dev/srandom ; then
45571 dev="/dev/srandom";
45572 elif test -r /dev/random ; then
45574 elif test -r /idev/random ; then
45575 dev="/idev/random";
45578 if test $dev != no ; then
45580 cat >>confdefs.h <<_ACEOF
45581 #define URANDOM_DEVICE "$dev"
45588 if test $ol_with_fetch != no ; then
45590 LIBS="-lfetch -lcom_err $LIBS"
45591 echo "$as_me:$LINENO: checking fetch(3) library" >&5
45592 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
45593 if test "${ol_cv_lib_fetch+set}" = set; then
45594 echo $ECHO_N "(cached) $ECHO_C" >&6
45597 cat >conftest.$ac_ext <<_ACEOF
45600 cat confdefs.h >>conftest.$ac_ext
45601 cat >>conftest.$ac_ext <<_ACEOF
45602 /* end confdefs.h. */
45604 #include <sys/param.h>
45610 struct url *u = fetchParseURL("file:///");
45615 rm -f conftest.$ac_objext conftest$ac_exeext
45616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45617 (eval $ac_link) 2>conftest.er1
45619 grep -v '^ *+' conftest.er1 >conftest.err
45621 cat conftest.err >&5
45622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45623 (exit $ac_status); } &&
45624 { ac_try='test -z "$ac_c_werror_flag"
45625 || test ! -s conftest.err'
45626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45627 (eval $ac_try) 2>&5
45629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45630 (exit $ac_status); }; } &&
45631 { ac_try='test -s conftest$ac_exeext'
45632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45633 (eval $ac_try) 2>&5
45635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45636 (exit $ac_status); }; }; then
45637 ol_cv_lib_fetch=yes
45639 echo "$as_me: failed program was:" >&5
45640 sed 's/^/| /' conftest.$ac_ext >&5
45644 rm -f conftest.err conftest.$ac_objext \
45645 conftest$ac_exeext conftest.$ac_ext
45647 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
45648 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
45650 if test $ol_cv_lib_fetch != no ; then
45651 ol_link_fetch="-lfetch -lcom_err"
45653 cat >>confdefs.h <<\_ACEOF
45654 #define HAVE_FETCH 1
45660 if test $ol_cv_lib_fetch != no ; then
45661 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
45662 ol_link_fetch=freebsd
45664 elif test $ol_with_fetch != auto ; then
45665 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
45666 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
45667 { (exit 1); exit 1; }; }
45671 if test $ol_enable_crypt != no ; then
45673 LIBS="$TLS_LIBS $LIBS"
45675 echo "$as_me:$LINENO: checking for crypt" >&5
45676 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
45677 if test "${ac_cv_func_crypt+set}" = set; then
45678 echo $ECHO_N "(cached) $ECHO_C" >&6
45680 cat >conftest.$ac_ext <<_ACEOF
45683 cat confdefs.h >>conftest.$ac_ext
45684 cat >>conftest.$ac_ext <<_ACEOF
45685 /* end confdefs.h. */
45686 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
45687 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45688 #define crypt innocuous_crypt
45690 /* System header to define __stub macros and hopefully few prototypes,
45691 which can conflict with char crypt (); below.
45692 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45693 <limits.h> exists even on freestanding compilers. */
45696 # include <limits.h>
45698 # include <assert.h>
45703 /* Override any gcc2 internal prototype to avoid an error. */
45708 /* We use char because int might match the return type of a gcc2
45709 builtin and then its argument prototype would still apply. */
45711 /* The GNU C library defines this for functions which it implements
45712 to always fail with ENOSYS. Some functions are actually named
45713 something starting with __ and the normal name is an alias. */
45714 #if defined (__stub_crypt) || defined (__stub___crypt)
45717 char (*f) () = crypt;
45731 rm -f conftest.$ac_objext conftest$ac_exeext
45732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45733 (eval $ac_link) 2>conftest.er1
45735 grep -v '^ *+' conftest.er1 >conftest.err
45737 cat conftest.err >&5
45738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45739 (exit $ac_status); } &&
45740 { ac_try='test -z "$ac_c_werror_flag"
45741 || test ! -s conftest.err'
45742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45743 (eval $ac_try) 2>&5
45745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45746 (exit $ac_status); }; } &&
45747 { ac_try='test -s conftest$ac_exeext'
45748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45749 (eval $ac_try) 2>&5
45751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45752 (exit $ac_status); }; }; then
45753 ac_cv_func_crypt=yes
45755 echo "$as_me: failed program was:" >&5
45756 sed 's/^/| /' conftest.$ac_ext >&5
45758 ac_cv_func_crypt=no
45760 rm -f conftest.err conftest.$ac_objext \
45761 conftest$ac_exeext conftest.$ac_ext
45763 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
45764 echo "${ECHO_T}$ac_cv_func_crypt" >&6
45765 if test $ac_cv_func_crypt = yes; then
45770 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
45771 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
45772 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
45773 echo $ECHO_N "(cached) $ECHO_C" >&6
45775 ac_check_lib_save_LIBS=$LIBS
45776 LIBS="-lcrypt $LIBS"
45777 cat >conftest.$ac_ext <<_ACEOF
45780 cat confdefs.h >>conftest.$ac_ext
45781 cat >>conftest.$ac_ext <<_ACEOF
45782 /* end confdefs.h. */
45784 /* Override any gcc2 internal prototype to avoid an error. */
45788 /* We use char because int might match the return type of a gcc2
45789 builtin and then its argument prototype would still apply. */
45799 rm -f conftest.$ac_objext conftest$ac_exeext
45800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45801 (eval $ac_link) 2>conftest.er1
45803 grep -v '^ *+' conftest.er1 >conftest.err
45805 cat conftest.err >&5
45806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45807 (exit $ac_status); } &&
45808 { ac_try='test -z "$ac_c_werror_flag"
45809 || test ! -s conftest.err'
45810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45811 (eval $ac_try) 2>&5
45813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45814 (exit $ac_status); }; } &&
45815 { ac_try='test -s conftest$ac_exeext'
45816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45817 (eval $ac_try) 2>&5
45819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45820 (exit $ac_status); }; }; then
45821 ac_cv_lib_crypt_crypt=yes
45823 echo "$as_me: failed program was:" >&5
45824 sed 's/^/| /' conftest.$ac_ext >&5
45826 ac_cv_lib_crypt_crypt=no
45828 rm -f conftest.err conftest.$ac_objext \
45829 conftest$ac_exeext conftest.$ac_ext
45830 LIBS=$ac_check_lib_save_LIBS
45832 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
45833 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
45834 if test $ac_cv_lib_crypt_crypt = yes; then
45835 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
45846 if test $have_crypt = yes ; then
45848 cat >>confdefs.h <<\_ACEOF
45849 #define HAVE_CRYPT 1
45853 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
45854 echo "$as_me: WARNING: could not find crypt" >&2;}
45855 if test $ol_enable_crypt = yes ; then
45856 { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
45857 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
45858 { (exit 1); exit 1; }; }
45861 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
45862 echo "$as_me: WARNING: disabling crypt support" >&2;}
45867 if test $ol_enable_proctitle != no ; then
45868 echo "$as_me:$LINENO: checking for setproctitle" >&5
45869 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
45870 if test "${ac_cv_func_setproctitle+set}" = set; then
45871 echo $ECHO_N "(cached) $ECHO_C" >&6
45873 cat >conftest.$ac_ext <<_ACEOF
45876 cat confdefs.h >>conftest.$ac_ext
45877 cat >>conftest.$ac_ext <<_ACEOF
45878 /* end confdefs.h. */
45879 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
45880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45881 #define setproctitle innocuous_setproctitle
45883 /* System header to define __stub macros and hopefully few prototypes,
45884 which can conflict with char setproctitle (); below.
45885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45886 <limits.h> exists even on freestanding compilers. */
45889 # include <limits.h>
45891 # include <assert.h>
45894 #undef setproctitle
45896 /* Override any gcc2 internal prototype to avoid an error. */
45901 /* We use char because int might match the return type of a gcc2
45902 builtin and then its argument prototype would still apply. */
45903 char setproctitle ();
45904 /* The GNU C library defines this for functions which it implements
45905 to always fail with ENOSYS. Some functions are actually named
45906 something starting with __ and the normal name is an alias. */
45907 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
45910 char (*f) () = setproctitle;
45919 return f != setproctitle;
45924 rm -f conftest.$ac_objext conftest$ac_exeext
45925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45926 (eval $ac_link) 2>conftest.er1
45928 grep -v '^ *+' conftest.er1 >conftest.err
45930 cat conftest.err >&5
45931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45932 (exit $ac_status); } &&
45933 { ac_try='test -z "$ac_c_werror_flag"
45934 || test ! -s conftest.err'
45935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45936 (eval $ac_try) 2>&5
45938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45939 (exit $ac_status); }; } &&
45940 { ac_try='test -s conftest$ac_exeext'
45941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45942 (eval $ac_try) 2>&5
45944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45945 (exit $ac_status); }; }; then
45946 ac_cv_func_setproctitle=yes
45948 echo "$as_me: failed program was:" >&5
45949 sed 's/^/| /' conftest.$ac_ext >&5
45951 ac_cv_func_setproctitle=no
45953 rm -f conftest.err conftest.$ac_objext \
45954 conftest$ac_exeext conftest.$ac_ext
45956 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
45957 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
45958 if test $ac_cv_func_setproctitle = yes; then
45959 have_setproctitle=yes
45962 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
45963 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
45964 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
45965 echo $ECHO_N "(cached) $ECHO_C" >&6
45967 ac_check_lib_save_LIBS=$LIBS
45968 LIBS="-lutil $LIBS"
45969 cat >conftest.$ac_ext <<_ACEOF
45972 cat confdefs.h >>conftest.$ac_ext
45973 cat >>conftest.$ac_ext <<_ACEOF
45974 /* end confdefs.h. */
45976 /* Override any gcc2 internal prototype to avoid an error. */
45980 /* We use char because int might match the return type of a gcc2
45981 builtin and then its argument prototype would still apply. */
45982 char setproctitle ();
45991 rm -f conftest.$ac_objext conftest$ac_exeext
45992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45993 (eval $ac_link) 2>conftest.er1
45995 grep -v '^ *+' conftest.er1 >conftest.err
45997 cat conftest.err >&5
45998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45999 (exit $ac_status); } &&
46000 { ac_try='test -z "$ac_c_werror_flag"
46001 || test ! -s conftest.err'
46002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46003 (eval $ac_try) 2>&5
46005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46006 (exit $ac_status); }; } &&
46007 { ac_try='test -s conftest$ac_exeext'
46008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46009 (eval $ac_try) 2>&5
46011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46012 (exit $ac_status); }; }; then
46013 ac_cv_lib_util_setproctitle=yes
46015 echo "$as_me: failed program was:" >&5
46016 sed 's/^/| /' conftest.$ac_ext >&5
46018 ac_cv_lib_util_setproctitle=no
46020 rm -f conftest.err conftest.$ac_objext \
46021 conftest$ac_exeext conftest.$ac_ext
46022 LIBS=$ac_check_lib_save_LIBS
46024 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
46025 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
46026 if test $ac_cv_lib_util_setproctitle = yes; then
46027 have_setproctitle=yes
46028 LUTIL_LIBS="$LUTIL_LIBS -lutil"
46030 have_setproctitle=no
46032 "setproctitle.$ac_objext" | \
46033 *" setproctitle.$ac_objext" | \
46034 "setproctitle.$ac_objext "* | \
46035 *" setproctitle.$ac_objext "* ) ;;
46036 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
46039 LIBSRCS="$LIBSRCS setproctitle.c"
46045 if test $have_setproctitle = yes ; then
46047 cat >>confdefs.h <<\_ACEOF
46048 #define HAVE_SETPROCTITLE 1
46054 if test $ol_enable_slp != no ; then
46056 for ac_header in slp.h
46058 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46060 echo "$as_me:$LINENO: checking for $ac_header" >&5
46061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46063 echo $ECHO_N "(cached) $ECHO_C" >&6
46065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46066 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46068 # Is the header compilable?
46069 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46070 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46071 cat >conftest.$ac_ext <<_ACEOF
46074 cat confdefs.h >>conftest.$ac_ext
46075 cat >>conftest.$ac_ext <<_ACEOF
46076 /* end confdefs.h. */
46077 $ac_includes_default
46078 #include <$ac_header>
46080 rm -f conftest.$ac_objext
46081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46082 (eval $ac_compile) 2>conftest.er1
46084 grep -v '^ *+' conftest.er1 >conftest.err
46086 cat conftest.err >&5
46087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46088 (exit $ac_status); } &&
46089 { ac_try='test -z "$ac_c_werror_flag"
46090 || test ! -s conftest.err'
46091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46092 (eval $ac_try) 2>&5
46094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46095 (exit $ac_status); }; } &&
46096 { ac_try='test -s conftest.$ac_objext'
46097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46098 (eval $ac_try) 2>&5
46100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46101 (exit $ac_status); }; }; then
46102 ac_header_compiler=yes
46104 echo "$as_me: failed program was:" >&5
46105 sed 's/^/| /' conftest.$ac_ext >&5
46107 ac_header_compiler=no
46109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46110 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46111 echo "${ECHO_T}$ac_header_compiler" >&6
46113 # Is the header present?
46114 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46115 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46116 cat >conftest.$ac_ext <<_ACEOF
46119 cat confdefs.h >>conftest.$ac_ext
46120 cat >>conftest.$ac_ext <<_ACEOF
46121 /* end confdefs.h. */
46122 #include <$ac_header>
46124 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46125 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46127 grep -v '^ *+' conftest.er1 >conftest.err
46129 cat conftest.err >&5
46130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46131 (exit $ac_status); } >/dev/null; then
46132 if test -s conftest.err; then
46133 ac_cpp_err=$ac_c_preproc_warn_flag
46134 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46141 if test -z "$ac_cpp_err"; then
46142 ac_header_preproc=yes
46144 echo "$as_me: failed program was:" >&5
46145 sed 's/^/| /' conftest.$ac_ext >&5
46147 ac_header_preproc=no
46149 rm -f conftest.err conftest.$ac_ext
46150 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46151 echo "${ECHO_T}$ac_header_preproc" >&6
46153 # So? What about this header?
46154 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46156 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46157 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46158 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46159 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46160 ac_header_preproc=yes
46163 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46164 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46165 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46166 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46167 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46168 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46169 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
46170 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
46171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46172 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46173 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46174 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46177 ## ------------------------------------------ ##
46178 ## Report this to the AC_PACKAGE_NAME lists. ##
46179 ## ------------------------------------------ ##
46182 sed "s/^/$as_me: WARNING: /" >&2
46185 echo "$as_me:$LINENO: checking for $ac_header" >&5
46186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46187 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46188 echo $ECHO_N "(cached) $ECHO_C" >&6
46190 eval "$as_ac_Header=\$ac_header_preproc"
46192 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46193 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46196 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46197 cat >>confdefs.h <<_ACEOF
46198 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46206 if test $ac_cv_header_slp_h = yes ; then
46207 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
46208 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
46209 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
46210 echo $ECHO_N "(cached) $ECHO_C" >&6
46212 ac_check_lib_save_LIBS=$LIBS
46214 cat >conftest.$ac_ext <<_ACEOF
46217 cat confdefs.h >>conftest.$ac_ext
46218 cat >>conftest.$ac_ext <<_ACEOF
46219 /* end confdefs.h. */
46221 /* Override any gcc2 internal prototype to avoid an error. */
46225 /* We use char because int might match the return type of a gcc2
46226 builtin and then its argument prototype would still apply. */
46236 rm -f conftest.$ac_objext conftest$ac_exeext
46237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46238 (eval $ac_link) 2>conftest.er1
46240 grep -v '^ *+' conftest.er1 >conftest.err
46242 cat conftest.err >&5
46243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46244 (exit $ac_status); } &&
46245 { ac_try='test -z "$ac_c_werror_flag"
46246 || test ! -s conftest.err'
46247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46248 (eval $ac_try) 2>&5
46250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46251 (exit $ac_status); }; } &&
46252 { ac_try='test -s conftest$ac_exeext'
46253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46254 (eval $ac_try) 2>&5
46256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46257 (exit $ac_status); }; }; then
46258 ac_cv_lib_slp_SLPOpen=yes
46260 echo "$as_me: failed program was:" >&5
46261 sed 's/^/| /' conftest.$ac_ext >&5
46263 ac_cv_lib_slp_SLPOpen=no
46265 rm -f conftest.err conftest.$ac_objext \
46266 conftest$ac_exeext conftest.$ac_ext
46267 LIBS=$ac_check_lib_save_LIBS
46269 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
46270 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
46271 if test $ac_cv_lib_slp_SLPOpen = yes; then
46277 if test $have_slp = yes ; then
46279 cat >>confdefs.h <<\_ACEOF
46283 SLAPD_SLP_LIBS=-lslp
46286 elif test $ol_enable_slp = yes ; then
46287 { { echo "$as_me:$LINENO: error: SLP not found" >&5
46288 echo "$as_me: error: SLP not found" >&2;}
46289 { (exit 1); exit 1; }; }
46293 if test "$ol_with_multiple_precision" != "no" ; then
46299 for ac_header in openssl/bn.h bn.h
46301 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46303 echo "$as_me:$LINENO: checking for $ac_header" >&5
46304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46306 echo $ECHO_N "(cached) $ECHO_C" >&6
46308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46309 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46311 # Is the header compilable?
46312 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46313 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46314 cat >conftest.$ac_ext <<_ACEOF
46317 cat confdefs.h >>conftest.$ac_ext
46318 cat >>conftest.$ac_ext <<_ACEOF
46319 /* end confdefs.h. */
46320 $ac_includes_default
46321 #include <$ac_header>
46323 rm -f conftest.$ac_objext
46324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46325 (eval $ac_compile) 2>conftest.er1
46327 grep -v '^ *+' conftest.er1 >conftest.err
46329 cat conftest.err >&5
46330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46331 (exit $ac_status); } &&
46332 { ac_try='test -z "$ac_c_werror_flag"
46333 || test ! -s conftest.err'
46334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46335 (eval $ac_try) 2>&5
46337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46338 (exit $ac_status); }; } &&
46339 { ac_try='test -s conftest.$ac_objext'
46340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46341 (eval $ac_try) 2>&5
46343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46344 (exit $ac_status); }; }; then
46345 ac_header_compiler=yes
46347 echo "$as_me: failed program was:" >&5
46348 sed 's/^/| /' conftest.$ac_ext >&5
46350 ac_header_compiler=no
46352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46353 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46354 echo "${ECHO_T}$ac_header_compiler" >&6
46356 # Is the header present?
46357 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46358 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46359 cat >conftest.$ac_ext <<_ACEOF
46362 cat confdefs.h >>conftest.$ac_ext
46363 cat >>conftest.$ac_ext <<_ACEOF
46364 /* end confdefs.h. */
46365 #include <$ac_header>
46367 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46368 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46370 grep -v '^ *+' conftest.er1 >conftest.err
46372 cat conftest.err >&5
46373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46374 (exit $ac_status); } >/dev/null; then
46375 if test -s conftest.err; then
46376 ac_cpp_err=$ac_c_preproc_warn_flag
46377 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46384 if test -z "$ac_cpp_err"; then
46385 ac_header_preproc=yes
46387 echo "$as_me: failed program was:" >&5
46388 sed 's/^/| /' conftest.$ac_ext >&5
46390 ac_header_preproc=no
46392 rm -f conftest.err conftest.$ac_ext
46393 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46394 echo "${ECHO_T}$ac_header_preproc" >&6
46396 # So? What about this header?
46397 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46399 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46400 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46401 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46402 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46403 ac_header_preproc=yes
46406 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46407 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46408 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46409 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46410 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46411 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46412 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
46413 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
46414 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46415 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46416 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46417 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46420 ## ------------------------------------------ ##
46421 ## Report this to the AC_PACKAGE_NAME lists. ##
46422 ## ------------------------------------------ ##
46425 sed "s/^/$as_me: WARNING: /" >&2
46428 echo "$as_me:$LINENO: checking for $ac_header" >&5
46429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46430 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46431 echo $ECHO_N "(cached) $ECHO_C" >&6
46433 eval "$as_ac_Header=\$ac_header_preproc"
46435 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46436 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46439 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46440 cat >>confdefs.h <<_ACEOF
46441 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46450 for ac_header in openssl/crypto.h crypto.h
46452 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46453 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46454 echo "$as_me:$LINENO: checking for $ac_header" >&5
46455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46457 echo $ECHO_N "(cached) $ECHO_C" >&6
46459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46460 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46462 # Is the header compilable?
46463 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46464 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46465 cat >conftest.$ac_ext <<_ACEOF
46468 cat confdefs.h >>conftest.$ac_ext
46469 cat >>conftest.$ac_ext <<_ACEOF
46470 /* end confdefs.h. */
46471 $ac_includes_default
46472 #include <$ac_header>
46474 rm -f conftest.$ac_objext
46475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46476 (eval $ac_compile) 2>conftest.er1
46478 grep -v '^ *+' conftest.er1 >conftest.err
46480 cat conftest.err >&5
46481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46482 (exit $ac_status); } &&
46483 { ac_try='test -z "$ac_c_werror_flag"
46484 || test ! -s conftest.err'
46485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46486 (eval $ac_try) 2>&5
46488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46489 (exit $ac_status); }; } &&
46490 { ac_try='test -s conftest.$ac_objext'
46491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46492 (eval $ac_try) 2>&5
46494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46495 (exit $ac_status); }; }; then
46496 ac_header_compiler=yes
46498 echo "$as_me: failed program was:" >&5
46499 sed 's/^/| /' conftest.$ac_ext >&5
46501 ac_header_compiler=no
46503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46504 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46505 echo "${ECHO_T}$ac_header_compiler" >&6
46507 # Is the header present?
46508 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46509 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46510 cat >conftest.$ac_ext <<_ACEOF
46513 cat confdefs.h >>conftest.$ac_ext
46514 cat >>conftest.$ac_ext <<_ACEOF
46515 /* end confdefs.h. */
46516 #include <$ac_header>
46518 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46519 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46521 grep -v '^ *+' conftest.er1 >conftest.err
46523 cat conftest.err >&5
46524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46525 (exit $ac_status); } >/dev/null; then
46526 if test -s conftest.err; then
46527 ac_cpp_err=$ac_c_preproc_warn_flag
46528 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46535 if test -z "$ac_cpp_err"; then
46536 ac_header_preproc=yes
46538 echo "$as_me: failed program was:" >&5
46539 sed 's/^/| /' conftest.$ac_ext >&5
46541 ac_header_preproc=no
46543 rm -f conftest.err conftest.$ac_ext
46544 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46545 echo "${ECHO_T}$ac_header_preproc" >&6
46547 # So? What about this header?
46548 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46550 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46551 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46553 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46554 ac_header_preproc=yes
46557 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46558 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46559 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46560 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46561 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46562 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46563 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
46564 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
46565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46566 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46567 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46568 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46571 ## ------------------------------------------ ##
46572 ## Report this to the AC_PACKAGE_NAME lists. ##
46573 ## ------------------------------------------ ##
46576 sed "s/^/$as_me: WARNING: /" >&2
46579 echo "$as_me:$LINENO: checking for $ac_header" >&5
46580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46582 echo $ECHO_N "(cached) $ECHO_C" >&6
46584 eval "$as_ac_Header=\$ac_header_preproc"
46586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46587 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46590 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46591 cat >>confdefs.h <<_ACEOF
46592 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46600 for ac_header in gmp.h
46602 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46604 echo "$as_me:$LINENO: checking for $ac_header" >&5
46605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46607 echo $ECHO_N "(cached) $ECHO_C" >&6
46609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46610 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46612 # Is the header compilable?
46613 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46614 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46615 cat >conftest.$ac_ext <<_ACEOF
46618 cat confdefs.h >>conftest.$ac_ext
46619 cat >>conftest.$ac_ext <<_ACEOF
46620 /* end confdefs.h. */
46621 $ac_includes_default
46622 #include <$ac_header>
46624 rm -f conftest.$ac_objext
46625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46626 (eval $ac_compile) 2>conftest.er1
46628 grep -v '^ *+' conftest.er1 >conftest.err
46630 cat conftest.err >&5
46631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46632 (exit $ac_status); } &&
46633 { ac_try='test -z "$ac_c_werror_flag"
46634 || test ! -s conftest.err'
46635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46636 (eval $ac_try) 2>&5
46638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46639 (exit $ac_status); }; } &&
46640 { ac_try='test -s conftest.$ac_objext'
46641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46642 (eval $ac_try) 2>&5
46644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46645 (exit $ac_status); }; }; then
46646 ac_header_compiler=yes
46648 echo "$as_me: failed program was:" >&5
46649 sed 's/^/| /' conftest.$ac_ext >&5
46651 ac_header_compiler=no
46653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46654 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46655 echo "${ECHO_T}$ac_header_compiler" >&6
46657 # Is the header present?
46658 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46659 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46660 cat >conftest.$ac_ext <<_ACEOF
46663 cat confdefs.h >>conftest.$ac_ext
46664 cat >>conftest.$ac_ext <<_ACEOF
46665 /* end confdefs.h. */
46666 #include <$ac_header>
46668 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46669 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46671 grep -v '^ *+' conftest.er1 >conftest.err
46673 cat conftest.err >&5
46674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46675 (exit $ac_status); } >/dev/null; then
46676 if test -s conftest.err; then
46677 ac_cpp_err=$ac_c_preproc_warn_flag
46678 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46685 if test -z "$ac_cpp_err"; then
46686 ac_header_preproc=yes
46688 echo "$as_me: failed program was:" >&5
46689 sed 's/^/| /' conftest.$ac_ext >&5
46691 ac_header_preproc=no
46693 rm -f conftest.err conftest.$ac_ext
46694 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46695 echo "${ECHO_T}$ac_header_preproc" >&6
46697 # So? What about this header?
46698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46700 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46701 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46703 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46704 ac_header_preproc=yes
46707 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46708 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46709 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46710 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46711 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46712 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46713 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
46714 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
46715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46716 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46717 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46718 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46721 ## ------------------------------------------ ##
46722 ## Report this to the AC_PACKAGE_NAME lists. ##
46723 ## ------------------------------------------ ##
46726 sed "s/^/$as_me: WARNING: /" >&2
46729 echo "$as_me:$LINENO: checking for $ac_header" >&5
46730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46732 echo $ECHO_N "(cached) $ECHO_C" >&6
46734 eval "$as_ac_Header=\$ac_header_preproc"
46736 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46737 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46740 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46741 cat >>confdefs.h <<_ACEOF
46742 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46750 if test "$ol_with_tls" = "found" ; then
46752 ol_have_crypto_h=no
46754 if test "$ac_cv_header_openssl_bn_h" = "yes" \
46755 -o "$ac_cv_header_bn_h" = "yes" ; then
46759 if test "$ac_cv_header_openssl_crypto_h" = "yes" \
46760 -o "$ac_cv_header_crypto_h" = "yes" ; then
46761 ol_have_crypto_h=yes
46764 if test "$ol_have_bn_h" = "yes" \
46765 -a "$ol_have_crypto_h" = "yes" ; then
46770 if test $ac_cv_header_gmp_h = yes ; then
46771 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
46772 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
46773 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
46774 echo $ECHO_N "(cached) $ECHO_C" >&6
46776 ac_check_lib_save_LIBS=$LIBS
46778 cat >conftest.$ac_ext <<_ACEOF
46781 cat confdefs.h >>conftest.$ac_ext
46782 cat >>conftest.$ac_ext <<_ACEOF
46783 /* end confdefs.h. */
46785 /* Override any gcc2 internal prototype to avoid an error. */
46789 /* We use char because int might match the return type of a gcc2
46790 builtin and then its argument prototype would still apply. */
46791 char __gmpz_add_ui ();
46800 rm -f conftest.$ac_objext conftest$ac_exeext
46801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46802 (eval $ac_link) 2>conftest.er1
46804 grep -v '^ *+' conftest.er1 >conftest.err
46806 cat conftest.err >&5
46807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46808 (exit $ac_status); } &&
46809 { ac_try='test -z "$ac_c_werror_flag"
46810 || test ! -s conftest.err'
46811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46812 (eval $ac_try) 2>&5
46814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46815 (exit $ac_status); }; } &&
46816 { ac_try='test -s conftest$ac_exeext'
46817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46818 (eval $ac_try) 2>&5
46820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46821 (exit $ac_status); }; }; then
46822 ac_cv_lib_gmp___gmpz_add_ui=yes
46824 echo "$as_me: failed program was:" >&5
46825 sed 's/^/| /' conftest.$ac_ext >&5
46827 ac_cv_lib_gmp___gmpz_add_ui=no
46829 rm -f conftest.err conftest.$ac_objext \
46830 conftest$ac_exeext conftest.$ac_ext
46831 LIBS=$ac_check_lib_save_LIBS
46833 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
46834 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
46835 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
46841 if test $have_gmp = yes ; then
46846 echo "$as_me:$LINENO: checking for multiple precision support" >&5
46847 echo $ECHO_N "checking for multiple precision support... $ECHO_C" >&6
46849 ol_mp_support="none"
46850 case "$ol_with_multiple_precision" in
46852 if test "$ol_have_bignum" = "yes" ; then
46853 ol_mp_support="bignum"
46855 if test "$ol_have_gmp" = "yes" ; then
46856 ol_mp_support="gmp"
46861 if test "$ol_have_bignum" != "yes" ; then
46862 { { echo "$as_me:$LINENO: error: OpenSSL's BIGNUM not available" >&5
46863 echo "$as_me: error: OpenSSL's BIGNUM not available" >&2;}
46864 { (exit 1); exit 1; }; }
46866 ol_mp_support="bignum"
46869 if test "$ol_have_gmp" != "yes" ; then
46870 { { echo "$as_me:$LINENO: error: GMP not available" >&5
46871 echo "$as_me: error: GMP not available" >&2;}
46872 { (exit 1); exit 1; }; }
46874 ol_mp_support="gmp"
46877 if test "$ol_have_bignum" = "yes" ; then
46878 ol_mp_support="bignum"
46879 elif test "$ol_have_gmp" = "yes" ; then
46880 ol_mp_support="gmp"
46882 { { echo "$as_me:$LINENO: error: not available" >&5
46883 echo "$as_me: error: not available" >&2;}
46884 { (exit 1); exit 1; }; }
46889 case "$ol_mp_support" in
46892 cat >>confdefs.h <<\_ACEOF
46893 #define HAVE_BIGNUM 1
46899 cat >>confdefs.h <<\_ACEOF
46903 SLAPD_GMP_LIBS=-lgmp
46909 echo "$as_me:$LINENO: result: $ol_mp_support" >&5
46910 echo "${ECHO_T}$ol_mp_support" >&6
46914 echo "$as_me:$LINENO: checking long long" >&5
46915 echo $ECHO_N "checking long long... $ECHO_C" >&6
46916 if test "${ol_cv_type_long_long+set}" = set; then
46917 echo $ECHO_N "(cached) $ECHO_C" >&6
46920 cat >conftest.$ac_ext <<_ACEOF
46923 cat confdefs.h >>conftest.$ac_ext
46924 cat >>conftest.$ac_ext <<_ACEOF
46925 /* end confdefs.h. */
46935 rm -f conftest.$ac_objext
46936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46937 (eval $ac_compile) 2>conftest.er1
46939 grep -v '^ *+' conftest.er1 >conftest.err
46941 cat conftest.err >&5
46942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46943 (exit $ac_status); } &&
46944 { ac_try='test -z "$ac_c_werror_flag"
46945 || test ! -s conftest.err'
46946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46947 (eval $ac_try) 2>&5
46949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46950 (exit $ac_status); }; } &&
46951 { ac_try='test -s conftest.$ac_objext'
46952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46953 (eval $ac_try) 2>&5
46955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46956 (exit $ac_status); }; }; then
46957 ol_cv_type_long_long=yes
46959 echo "$as_me: failed program was:" >&5
46960 sed 's/^/| /' conftest.$ac_ext >&5
46962 ol_cv_type_long_long=no
46964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46966 echo "$as_me:$LINENO: result: $ol_cv_type_long_long" >&5
46967 echo "${ECHO_T}$ol_cv_type_long_long" >&6
46968 if test $ol_cv_type_long_long = yes; then
46970 cat >>confdefs.h <<\_ACEOF
46971 #define HAVE_LONG_LONG 1
46976 echo "$as_me:$LINENO: checking for mode_t" >&5
46977 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
46978 if test "${ac_cv_type_mode_t+set}" = set; then
46979 echo $ECHO_N "(cached) $ECHO_C" >&6
46981 cat >conftest.$ac_ext <<_ACEOF
46984 cat confdefs.h >>conftest.$ac_ext
46985 cat >>conftest.$ac_ext <<_ACEOF
46986 /* end confdefs.h. */
46987 $ac_includes_default
46993 if (sizeof (mode_t))
46999 rm -f conftest.$ac_objext
47000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47001 (eval $ac_compile) 2>conftest.er1
47003 grep -v '^ *+' conftest.er1 >conftest.err
47005 cat conftest.err >&5
47006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47007 (exit $ac_status); } &&
47008 { ac_try='test -z "$ac_c_werror_flag"
47009 || test ! -s conftest.err'
47010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47011 (eval $ac_try) 2>&5
47013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47014 (exit $ac_status); }; } &&
47015 { ac_try='test -s conftest.$ac_objext'
47016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47017 (eval $ac_try) 2>&5
47019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47020 (exit $ac_status); }; }; then
47021 ac_cv_type_mode_t=yes
47023 echo "$as_me: failed program was:" >&5
47024 sed 's/^/| /' conftest.$ac_ext >&5
47026 ac_cv_type_mode_t=no
47028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47030 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
47031 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
47032 if test $ac_cv_type_mode_t = yes; then
47036 cat >>confdefs.h <<_ACEOF
47042 echo "$as_me:$LINENO: checking for off_t" >&5
47043 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
47044 if test "${ac_cv_type_off_t+set}" = set; then
47045 echo $ECHO_N "(cached) $ECHO_C" >&6
47047 cat >conftest.$ac_ext <<_ACEOF
47050 cat confdefs.h >>conftest.$ac_ext
47051 cat >>conftest.$ac_ext <<_ACEOF
47052 /* end confdefs.h. */
47053 $ac_includes_default
47059 if (sizeof (off_t))
47065 rm -f conftest.$ac_objext
47066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47067 (eval $ac_compile) 2>conftest.er1
47069 grep -v '^ *+' conftest.er1 >conftest.err
47071 cat conftest.err >&5
47072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47073 (exit $ac_status); } &&
47074 { ac_try='test -z "$ac_c_werror_flag"
47075 || test ! -s conftest.err'
47076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47077 (eval $ac_try) 2>&5
47079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47080 (exit $ac_status); }; } &&
47081 { ac_try='test -s conftest.$ac_objext'
47082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47083 (eval $ac_try) 2>&5
47085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47086 (exit $ac_status); }; }; then
47087 ac_cv_type_off_t=yes
47089 echo "$as_me: failed program was:" >&5
47090 sed 's/^/| /' conftest.$ac_ext >&5
47092 ac_cv_type_off_t=no
47094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47096 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
47097 echo "${ECHO_T}$ac_cv_type_off_t" >&6
47098 if test $ac_cv_type_off_t = yes; then
47102 cat >>confdefs.h <<_ACEOF
47108 echo "$as_me:$LINENO: checking for pid_t" >&5
47109 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
47110 if test "${ac_cv_type_pid_t+set}" = set; then
47111 echo $ECHO_N "(cached) $ECHO_C" >&6
47113 cat >conftest.$ac_ext <<_ACEOF
47116 cat confdefs.h >>conftest.$ac_ext
47117 cat >>conftest.$ac_ext <<_ACEOF
47118 /* end confdefs.h. */
47119 $ac_includes_default
47125 if (sizeof (pid_t))
47131 rm -f conftest.$ac_objext
47132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47133 (eval $ac_compile) 2>conftest.er1
47135 grep -v '^ *+' conftest.er1 >conftest.err
47137 cat conftest.err >&5
47138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47139 (exit $ac_status); } &&
47140 { ac_try='test -z "$ac_c_werror_flag"
47141 || test ! -s conftest.err'
47142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47143 (eval $ac_try) 2>&5
47145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47146 (exit $ac_status); }; } &&
47147 { ac_try='test -s conftest.$ac_objext'
47148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47149 (eval $ac_try) 2>&5
47151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47152 (exit $ac_status); }; }; then
47153 ac_cv_type_pid_t=yes
47155 echo "$as_me: failed program was:" >&5
47156 sed 's/^/| /' conftest.$ac_ext >&5
47158 ac_cv_type_pid_t=no
47160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47162 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
47163 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
47164 if test $ac_cv_type_pid_t = yes; then
47168 cat >>confdefs.h <<_ACEOF
47174 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
47175 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
47176 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
47177 echo $ECHO_N "(cached) $ECHO_C" >&6
47179 cat >conftest.$ac_ext <<_ACEOF
47182 cat confdefs.h >>conftest.$ac_ext
47183 cat >>conftest.$ac_ext <<_ACEOF
47184 /* end confdefs.h. */
47185 $ac_includes_default
47189 if ((ptrdiff_t *) 0)
47191 if (sizeof (ptrdiff_t))
47197 rm -f conftest.$ac_objext
47198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47199 (eval $ac_compile) 2>conftest.er1
47201 grep -v '^ *+' conftest.er1 >conftest.err
47203 cat conftest.err >&5
47204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47205 (exit $ac_status); } &&
47206 { ac_try='test -z "$ac_c_werror_flag"
47207 || test ! -s conftest.err'
47208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47209 (eval $ac_try) 2>&5
47211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47212 (exit $ac_status); }; } &&
47213 { ac_try='test -s conftest.$ac_objext'
47214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47215 (eval $ac_try) 2>&5
47217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47218 (exit $ac_status); }; }; then
47219 ac_cv_type_ptrdiff_t=yes
47221 echo "$as_me: failed program was:" >&5
47222 sed 's/^/| /' conftest.$ac_ext >&5
47224 ac_cv_type_ptrdiff_t=no
47226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47228 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
47229 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
47230 if test $ac_cv_type_ptrdiff_t = yes; then
47232 cat >>confdefs.h <<_ACEOF
47233 #define HAVE_PTRDIFF_T 1
47239 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
47240 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
47241 if test "${ac_cv_type_signal+set}" = set; then
47242 echo $ECHO_N "(cached) $ECHO_C" >&6
47244 cat >conftest.$ac_ext <<_ACEOF
47247 cat confdefs.h >>conftest.$ac_ext
47248 cat >>conftest.$ac_ext <<_ACEOF
47249 /* end confdefs.h. */
47250 #include <sys/types.h>
47251 #include <signal.h>
47256 extern "C" void (*signal (int, void (*)(int)))(int);
47258 void (*signal ()) ();
47269 rm -f conftest.$ac_objext
47270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47271 (eval $ac_compile) 2>conftest.er1
47273 grep -v '^ *+' conftest.er1 >conftest.err
47275 cat conftest.err >&5
47276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47277 (exit $ac_status); } &&
47278 { ac_try='test -z "$ac_c_werror_flag"
47279 || test ! -s conftest.err'
47280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47281 (eval $ac_try) 2>&5
47283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47284 (exit $ac_status); }; } &&
47285 { ac_try='test -s conftest.$ac_objext'
47286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47287 (eval $ac_try) 2>&5
47289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47290 (exit $ac_status); }; }; then
47291 ac_cv_type_signal=void
47293 echo "$as_me: failed program was:" >&5
47294 sed 's/^/| /' conftest.$ac_ext >&5
47296 ac_cv_type_signal=int
47298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47300 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
47301 echo "${ECHO_T}$ac_cv_type_signal" >&6
47303 cat >>confdefs.h <<_ACEOF
47304 #define RETSIGTYPE $ac_cv_type_signal
47308 echo "$as_me:$LINENO: checking for size_t" >&5
47309 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
47310 if test "${ac_cv_type_size_t+set}" = set; then
47311 echo $ECHO_N "(cached) $ECHO_C" >&6
47313 cat >conftest.$ac_ext <<_ACEOF
47316 cat confdefs.h >>conftest.$ac_ext
47317 cat >>conftest.$ac_ext <<_ACEOF
47318 /* end confdefs.h. */
47319 $ac_includes_default
47325 if (sizeof (size_t))
47331 rm -f conftest.$ac_objext
47332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47333 (eval $ac_compile) 2>conftest.er1
47335 grep -v '^ *+' conftest.er1 >conftest.err
47337 cat conftest.err >&5
47338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47339 (exit $ac_status); } &&
47340 { ac_try='test -z "$ac_c_werror_flag"
47341 || test ! -s conftest.err'
47342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47343 (eval $ac_try) 2>&5
47345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47346 (exit $ac_status); }; } &&
47347 { ac_try='test -s conftest.$ac_objext'
47348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47349 (eval $ac_try) 2>&5
47351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47352 (exit $ac_status); }; }; then
47353 ac_cv_type_size_t=yes
47355 echo "$as_me: failed program was:" >&5
47356 sed 's/^/| /' conftest.$ac_ext >&5
47358 ac_cv_type_size_t=no
47360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47362 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
47363 echo "${ECHO_T}$ac_cv_type_size_t" >&6
47364 if test $ac_cv_type_size_t = yes; then
47368 cat >>confdefs.h <<_ACEOF
47369 #define size_t unsigned
47375 echo "$as_me:$LINENO: checking for ssize_t" >&5
47376 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
47377 if test "${ac_cv_type_ssize_t+set}" = set; then
47378 echo $ECHO_N "(cached) $ECHO_C" >&6
47380 cat >conftest.$ac_ext <<_ACEOF
47383 cat confdefs.h >>conftest.$ac_ext
47384 cat >>conftest.$ac_ext <<_ACEOF
47385 /* end confdefs.h. */
47386 $ac_includes_default
47392 if (sizeof (ssize_t))
47398 rm -f conftest.$ac_objext
47399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47400 (eval $ac_compile) 2>conftest.er1
47402 grep -v '^ *+' conftest.er1 >conftest.err
47404 cat conftest.err >&5
47405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47406 (exit $ac_status); } &&
47407 { ac_try='test -z "$ac_c_werror_flag"
47408 || test ! -s conftest.err'
47409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47410 (eval $ac_try) 2>&5
47412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47413 (exit $ac_status); }; } &&
47414 { ac_try='test -s conftest.$ac_objext'
47415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47416 (eval $ac_try) 2>&5
47418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47419 (exit $ac_status); }; }; then
47420 ac_cv_type_ssize_t=yes
47422 echo "$as_me: failed program was:" >&5
47423 sed 's/^/| /' conftest.$ac_ext >&5
47425 ac_cv_type_ssize_t=no
47427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47429 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
47430 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
47431 if test $ac_cv_type_ssize_t = yes; then
47435 cat >>confdefs.h <<_ACEOF
47436 #define ssize_t signed int
47441 echo "$as_me:$LINENO: checking for caddr_t" >&5
47442 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
47443 if test "${ac_cv_type_caddr_t+set}" = set; then
47444 echo $ECHO_N "(cached) $ECHO_C" >&6
47446 cat >conftest.$ac_ext <<_ACEOF
47449 cat confdefs.h >>conftest.$ac_ext
47450 cat >>conftest.$ac_ext <<_ACEOF
47451 /* end confdefs.h. */
47452 $ac_includes_default
47458 if (sizeof (caddr_t))
47464 rm -f conftest.$ac_objext
47465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47466 (eval $ac_compile) 2>conftest.er1
47468 grep -v '^ *+' conftest.er1 >conftest.err
47470 cat conftest.err >&5
47471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47472 (exit $ac_status); } &&
47473 { ac_try='test -z "$ac_c_werror_flag"
47474 || test ! -s conftest.err'
47475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47476 (eval $ac_try) 2>&5
47478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47479 (exit $ac_status); }; } &&
47480 { ac_try='test -s conftest.$ac_objext'
47481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47482 (eval $ac_try) 2>&5
47484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47485 (exit $ac_status); }; }; then
47486 ac_cv_type_caddr_t=yes
47488 echo "$as_me: failed program was:" >&5
47489 sed 's/^/| /' conftest.$ac_ext >&5
47491 ac_cv_type_caddr_t=no
47493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47495 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
47496 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
47497 if test $ac_cv_type_caddr_t = yes; then
47501 cat >>confdefs.h <<_ACEOF
47502 #define caddr_t char *
47508 echo "$as_me:$LINENO: checking for socklen_t" >&5
47509 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
47510 if test "${ol_cv_type_socklen_t+set}" = set; then
47511 echo $ECHO_N "(cached) $ECHO_C" >&6
47513 cat >conftest.$ac_ext <<_ACEOF
47516 cat confdefs.h >>conftest.$ac_ext
47517 cat >>conftest.$ac_ext <<_ACEOF
47518 /* end confdefs.h. */
47520 #ifdef HAVE_SYS_TYPES_H
47521 #include <sys/types.h>
47523 #ifdef HAVE_SYS_SOCKET_H
47524 #include <sys/socket.h>
47535 rm -f conftest.$ac_objext
47536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47537 (eval $ac_compile) 2>conftest.er1
47539 grep -v '^ *+' conftest.er1 >conftest.err
47541 cat conftest.err >&5
47542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47543 (exit $ac_status); } &&
47544 { ac_try='test -z "$ac_c_werror_flag"
47545 || test ! -s conftest.err'
47546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47547 (eval $ac_try) 2>&5
47549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47550 (exit $ac_status); }; } &&
47551 { ac_try='test -s conftest.$ac_objext'
47552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47553 (eval $ac_try) 2>&5
47555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47556 (exit $ac_status); }; }; then
47557 ol_cv_type_socklen_t=yes
47559 echo "$as_me: failed program was:" >&5
47560 sed 's/^/| /' conftest.$ac_ext >&5
47562 ol_cv_type_socklen_t=no
47564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47566 echo "$as_me:$LINENO: result: $ol_cv_type_socklen_t" >&5
47567 echo "${ECHO_T}$ol_cv_type_socklen_t" >&6
47568 if test $ol_cv_type_socklen_t = no; then
47570 cat >>confdefs.h <<\_ACEOF
47571 #define socklen_t int
47577 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
47578 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
47579 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
47580 echo $ECHO_N "(cached) $ECHO_C" >&6
47582 cat >conftest.$ac_ext <<_ACEOF
47585 cat confdefs.h >>conftest.$ac_ext
47586 cat >>conftest.$ac_ext <<_ACEOF
47587 /* end confdefs.h. */
47588 $ac_includes_default
47592 static struct stat ac_aggr;
47593 if (ac_aggr.st_blksize)
47599 rm -f conftest.$ac_objext
47600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47601 (eval $ac_compile) 2>conftest.er1
47603 grep -v '^ *+' conftest.er1 >conftest.err
47605 cat conftest.err >&5
47606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47607 (exit $ac_status); } &&
47608 { ac_try='test -z "$ac_c_werror_flag"
47609 || test ! -s conftest.err'
47610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47611 (eval $ac_try) 2>&5
47613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47614 (exit $ac_status); }; } &&
47615 { ac_try='test -s conftest.$ac_objext'
47616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47617 (eval $ac_try) 2>&5
47619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47620 (exit $ac_status); }; }; then
47621 ac_cv_member_struct_stat_st_blksize=yes
47623 echo "$as_me: failed program was:" >&5
47624 sed 's/^/| /' conftest.$ac_ext >&5
47626 cat >conftest.$ac_ext <<_ACEOF
47629 cat confdefs.h >>conftest.$ac_ext
47630 cat >>conftest.$ac_ext <<_ACEOF
47631 /* end confdefs.h. */
47632 $ac_includes_default
47636 static struct stat ac_aggr;
47637 if (sizeof ac_aggr.st_blksize)
47643 rm -f conftest.$ac_objext
47644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47645 (eval $ac_compile) 2>conftest.er1
47647 grep -v '^ *+' conftest.er1 >conftest.err
47649 cat conftest.err >&5
47650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47651 (exit $ac_status); } &&
47652 { ac_try='test -z "$ac_c_werror_flag"
47653 || test ! -s conftest.err'
47654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47655 (eval $ac_try) 2>&5
47657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47658 (exit $ac_status); }; } &&
47659 { ac_try='test -s conftest.$ac_objext'
47660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47661 (eval $ac_try) 2>&5
47663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47664 (exit $ac_status); }; }; then
47665 ac_cv_member_struct_stat_st_blksize=yes
47667 echo "$as_me: failed program was:" >&5
47668 sed 's/^/| /' conftest.$ac_ext >&5
47670 ac_cv_member_struct_stat_st_blksize=no
47672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47676 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
47677 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
47678 if test $ac_cv_member_struct_stat_st_blksize = yes; then
47680 cat >>confdefs.h <<_ACEOF
47681 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
47685 cat >>confdefs.h <<\_ACEOF
47686 #define HAVE_ST_BLKSIZE 1
47692 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
47693 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
47694 if test "${ac_cv_header_time+set}" = set; then
47695 echo $ECHO_N "(cached) $ECHO_C" >&6
47697 cat >conftest.$ac_ext <<_ACEOF
47700 cat confdefs.h >>conftest.$ac_ext
47701 cat >>conftest.$ac_ext <<_ACEOF
47702 /* end confdefs.h. */
47703 #include <sys/types.h>
47704 #include <sys/time.h>
47710 if ((struct tm *) 0)
47716 rm -f conftest.$ac_objext
47717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47718 (eval $ac_compile) 2>conftest.er1
47720 grep -v '^ *+' conftest.er1 >conftest.err
47722 cat conftest.err >&5
47723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47724 (exit $ac_status); } &&
47725 { ac_try='test -z "$ac_c_werror_flag"
47726 || test ! -s conftest.err'
47727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47728 (eval $ac_try) 2>&5
47730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47731 (exit $ac_status); }; } &&
47732 { ac_try='test -s conftest.$ac_objext'
47733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47734 (eval $ac_try) 2>&5
47736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47737 (exit $ac_status); }; }; then
47738 ac_cv_header_time=yes
47740 echo "$as_me: failed program was:" >&5
47741 sed 's/^/| /' conftest.$ac_ext >&5
47743 ac_cv_header_time=no
47745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47747 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
47748 echo "${ECHO_T}$ac_cv_header_time" >&6
47749 if test $ac_cv_header_time = yes; then
47751 cat >>confdefs.h <<\_ACEOF
47752 #define TIME_WITH_SYS_TIME 1
47757 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
47758 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
47759 if test "${ac_cv_struct_tm+set}" = set; then
47760 echo $ECHO_N "(cached) $ECHO_C" >&6
47762 cat >conftest.$ac_ext <<_ACEOF
47765 cat confdefs.h >>conftest.$ac_ext
47766 cat >>conftest.$ac_ext <<_ACEOF
47767 /* end confdefs.h. */
47768 #include <sys/types.h>
47774 struct tm *tp; tp->tm_sec;
47779 rm -f conftest.$ac_objext
47780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47781 (eval $ac_compile) 2>conftest.er1
47783 grep -v '^ *+' conftest.er1 >conftest.err
47785 cat conftest.err >&5
47786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47787 (exit $ac_status); } &&
47788 { ac_try='test -z "$ac_c_werror_flag"
47789 || test ! -s conftest.err'
47790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47791 (eval $ac_try) 2>&5
47793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47794 (exit $ac_status); }; } &&
47795 { ac_try='test -s conftest.$ac_objext'
47796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47797 (eval $ac_try) 2>&5
47799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47800 (exit $ac_status); }; }; then
47801 ac_cv_struct_tm=time.h
47803 echo "$as_me: failed program was:" >&5
47804 sed 's/^/| /' conftest.$ac_ext >&5
47806 ac_cv_struct_tm=sys/time.h
47808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47810 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
47811 echo "${ECHO_T}$ac_cv_struct_tm" >&6
47812 if test $ac_cv_struct_tm = sys/time.h; then
47814 cat >>confdefs.h <<\_ACEOF
47815 #define TM_IN_SYS_TIME 1
47820 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
47821 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
47822 if test "${ac_cv_type_uid_t+set}" = set; then
47823 echo $ECHO_N "(cached) $ECHO_C" >&6
47825 cat >conftest.$ac_ext <<_ACEOF
47828 cat confdefs.h >>conftest.$ac_ext
47829 cat >>conftest.$ac_ext <<_ACEOF
47830 /* end confdefs.h. */
47831 #include <sys/types.h>
47834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47835 $EGREP "uid_t" >/dev/null 2>&1; then
47836 ac_cv_type_uid_t=yes
47838 ac_cv_type_uid_t=no
47843 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
47844 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
47845 if test $ac_cv_type_uid_t = no; then
47847 cat >>confdefs.h <<\_ACEOF
47852 cat >>confdefs.h <<\_ACEOF
47858 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
47859 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
47860 if test "${ol_cv_type_sig_atomic_t+set}" = set; then
47861 echo $ECHO_N "(cached) $ECHO_C" >&6
47863 cat >conftest.$ac_ext <<_ACEOF
47866 cat confdefs.h >>conftest.$ac_ext
47867 cat >>conftest.$ac_ext <<_ACEOF
47868 /* end confdefs.h. */
47869 #include <signal.h>
47873 sig_atomic_t atomic;
47878 rm -f conftest.$ac_objext
47879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47880 (eval $ac_compile) 2>conftest.er1
47882 grep -v '^ *+' conftest.er1 >conftest.err
47884 cat conftest.err >&5
47885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47886 (exit $ac_status); } &&
47887 { ac_try='test -z "$ac_c_werror_flag"
47888 || test ! -s conftest.err'
47889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47890 (eval $ac_try) 2>&5
47892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47893 (exit $ac_status); }; } &&
47894 { ac_try='test -s conftest.$ac_objext'
47895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47896 (eval $ac_try) 2>&5
47898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47899 (exit $ac_status); }; }; then
47900 ol_cv_type_sig_atomic_t=yes
47902 echo "$as_me: failed program was:" >&5
47903 sed 's/^/| /' conftest.$ac_ext >&5
47905 ol_cv_type_sig_atomic_t=no
47907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47909 echo "$as_me:$LINENO: result: $ol_cv_type_sig_atomic_t" >&5
47910 echo "${ECHO_T}$ol_cv_type_sig_atomic_t" >&6
47911 if test $ol_cv_type_sig_atomic_t = no; then
47913 cat >>confdefs.h <<\_ACEOF
47914 #define sig_atomic_t int
47921 # test for pw_gecos in struct passwd
47922 echo "$as_me:$LINENO: checking struct passwd for pw_gecos" >&5
47923 echo $ECHO_N "checking struct passwd for pw_gecos... $ECHO_C" >&6
47924 if test "${ol_cv_struct_passwd_pw_gecos+set}" = set; then
47925 echo $ECHO_N "(cached) $ECHO_C" >&6
47928 cat >conftest.$ac_ext <<_ACEOF
47931 cat confdefs.h >>conftest.$ac_ext
47932 cat >>conftest.$ac_ext <<_ACEOF
47933 /* end confdefs.h. */
47940 pwd.pw_gecos = pwd.pw_name;
47946 rm -f conftest.$ac_objext
47947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47948 (eval $ac_compile) 2>conftest.er1
47950 grep -v '^ *+' conftest.er1 >conftest.err
47952 cat conftest.err >&5
47953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47954 (exit $ac_status); } &&
47955 { ac_try='test -z "$ac_c_werror_flag"
47956 || test ! -s conftest.err'
47957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47958 (eval $ac_try) 2>&5
47960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47961 (exit $ac_status); }; } &&
47962 { ac_try='test -s conftest.$ac_objext'
47963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47964 (eval $ac_try) 2>&5
47966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47967 (exit $ac_status); }; }; then
47968 ol_cv_struct_passwd_pw_gecos=yes
47970 echo "$as_me: failed program was:" >&5
47971 sed 's/^/| /' conftest.$ac_ext >&5
47973 ol_cv_struct_passwd_pw_gecos=no
47975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47977 echo "$as_me:$LINENO: result: $ol_cv_struct_passwd_pw_gecos" >&5
47978 echo "${ECHO_T}$ol_cv_struct_passwd_pw_gecos" >&6
47979 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
47981 cat >>confdefs.h <<\_ACEOF
47982 #define HAVE_PW_GECOS 1
47987 # test for pw_passwd in struct passwd
47988 echo "$as_me:$LINENO: checking struct passwd for pw_passwd" >&5
47989 echo $ECHO_N "checking struct passwd for pw_passwd... $ECHO_C" >&6
47990 if test "${ol_cv_struct_passwd_pw_passwd+set}" = set; then
47991 echo $ECHO_N "(cached) $ECHO_C" >&6
47994 cat >conftest.$ac_ext <<_ACEOF
47997 cat confdefs.h >>conftest.$ac_ext
47998 cat >>conftest.$ac_ext <<_ACEOF
47999 /* end confdefs.h. */
48006 pwd.pw_passwd = pwd.pw_name;
48012 rm -f conftest.$ac_objext
48013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48014 (eval $ac_compile) 2>conftest.er1
48016 grep -v '^ *+' conftest.er1 >conftest.err
48018 cat conftest.err >&5
48019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48020 (exit $ac_status); } &&
48021 { ac_try='test -z "$ac_c_werror_flag"
48022 || test ! -s conftest.err'
48023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48024 (eval $ac_try) 2>&5
48026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48027 (exit $ac_status); }; } &&
48028 { ac_try='test -s conftest.$ac_objext'
48029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48030 (eval $ac_try) 2>&5
48032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48033 (exit $ac_status); }; }; then
48034 ol_cv_struct_passwd_pw_passwd=yes
48036 echo "$as_me: failed program was:" >&5
48037 sed 's/^/| /' conftest.$ac_ext >&5
48039 ol_cv_struct_passwd_pw_passwd=no
48041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48043 echo "$as_me:$LINENO: result: $ol_cv_struct_passwd_pw_passwd" >&5
48044 echo "${ECHO_T}$ol_cv_struct_passwd_pw_passwd" >&6
48045 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
48047 cat >>confdefs.h <<\_ACEOF
48048 #define HAVE_PW_PASSWD 1
48054 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
48055 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
48056 if test "${ol_cv_c_upper_lower+set}" = set; then
48057 echo $ECHO_N "(cached) $ECHO_C" >&6
48060 if test "$cross_compiling" = yes; then
48061 ol_cv_c_upper_lower=safe
48063 cat >conftest.$ac_ext <<_ACEOF
48066 cat confdefs.h >>conftest.$ac_ext
48067 cat >>conftest.$ac_ext <<_ACEOF
48068 /* end confdefs.h. */
48073 if ('C' == toupper('C'))
48079 rm -f conftest$ac_exeext
48080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48081 (eval $ac_link) 2>&5
48083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48084 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48086 (eval $ac_try) 2>&5
48088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48089 (exit $ac_status); }; }; then
48090 ol_cv_c_upper_lower=no
48092 echo "$as_me: program exited with status $ac_status" >&5
48093 echo "$as_me: failed program was:" >&5
48094 sed 's/^/| /' conftest.$ac_ext >&5
48096 ( exit $ac_status )
48097 ol_cv_c_upper_lower=yes
48099 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48102 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
48103 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
48104 if test $ol_cv_c_upper_lower != no ; then
48106 cat >>confdefs.h <<\_ACEOF
48107 #define C_UPPER_LOWER 1
48112 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
48113 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
48114 if test "${ac_cv_c_const+set}" = set; then
48115 echo $ECHO_N "(cached) $ECHO_C" >&6
48117 cat >conftest.$ac_ext <<_ACEOF
48120 cat confdefs.h >>conftest.$ac_ext
48121 cat >>conftest.$ac_ext <<_ACEOF
48122 /* end confdefs.h. */
48127 /* FIXME: Include the comments suggested by Paul. */
48128 #ifndef __cplusplus
48129 /* Ultrix mips cc rejects this. */
48130 typedef int charset[2];
48132 /* SunOS 4.1.1 cc rejects this. */
48133 char const *const *ccp;
48135 /* NEC SVR4.0.2 mips cc rejects this. */
48136 struct point {int x, y;};
48137 static struct point const zero = {0,0};
48138 /* AIX XL C 1.02.0.0 rejects this.
48139 It does not let you subtract one const X* pointer from another in
48140 an arm of an if-expression whose if-part is not a constant
48142 const char *g = "string";
48143 ccp = &g + (g ? g-g : 0);
48144 /* HPUX 7.0 cc rejects these. */
48147 ccp = (char const *const *) p;
48148 { /* SCO 3.2v4 cc rejects this. */
48150 char const *s = 0 ? (char *) 0 : (char const *) 0;
48154 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
48155 int x[] = {25, 17};
48156 const int *foo = &x[0];
48159 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
48160 typedef const int *iptr;
48164 { /* AIX XL C 1.02.0.0 rejects this saying
48165 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
48166 struct s { int j; const int *ap[3]; };
48167 struct s *b; b->j = 5;
48169 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
48170 const int foo = 10;
48178 rm -f conftest.$ac_objext
48179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48180 (eval $ac_compile) 2>conftest.er1
48182 grep -v '^ *+' conftest.er1 >conftest.err
48184 cat conftest.err >&5
48185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48186 (exit $ac_status); } &&
48187 { ac_try='test -z "$ac_c_werror_flag"
48188 || test ! -s conftest.err'
48189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48190 (eval $ac_try) 2>&5
48192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48193 (exit $ac_status); }; } &&
48194 { ac_try='test -s conftest.$ac_objext'
48195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48196 (eval $ac_try) 2>&5
48198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48199 (exit $ac_status); }; }; then
48202 echo "$as_me: failed program was:" >&5
48203 sed 's/^/| /' conftest.$ac_ext >&5
48207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48209 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
48210 echo "${ECHO_T}$ac_cv_c_const" >&6
48211 if test $ac_cv_c_const = no; then
48213 cat >>confdefs.h <<\_ACEOF
48219 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
48220 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
48221 if test "${ol_cv_c_volatile+set}" = set; then
48222 echo $ECHO_N "(cached) $ECHO_C" >&6
48224 cat >conftest.$ac_ext <<_ACEOF
48227 cat confdefs.h >>conftest.$ac_ext
48228 cat >>conftest.$ac_ext <<_ACEOF
48229 /* end confdefs.h. */
48234 volatile int a; int * volatile b = x ? &y : &z;
48235 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
48241 rm -f conftest.$ac_objext
48242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48243 (eval $ac_compile) 2>conftest.er1
48245 grep -v '^ *+' conftest.er1 >conftest.err
48247 cat conftest.err >&5
48248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48249 (exit $ac_status); } &&
48250 { ac_try='test -z "$ac_c_werror_flag"
48251 || test ! -s conftest.err'
48252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48253 (eval $ac_try) 2>&5
48255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48256 (exit $ac_status); }; } &&
48257 { ac_try='test -s conftest.$ac_objext'
48258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48259 (eval $ac_try) 2>&5
48261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48262 (exit $ac_status); }; }; then
48263 ol_cv_c_volatile=yes
48265 echo "$as_me: failed program was:" >&5
48266 sed 's/^/| /' conftest.$ac_ext >&5
48268 ol_cv_c_volatile=no
48270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48272 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
48273 echo "${ECHO_T}$ol_cv_c_volatile" >&6
48274 if test $ol_cv_c_volatile = yes; then
48278 cat >>confdefs.h <<\_ACEOF
48285 if test $cross_compiling = yes ; then
48286 { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
48287 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
48289 cat >>confdefs.h <<\_ACEOF
48290 #define CROSS_COMPILING 1
48294 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
48295 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
48296 if test "${ac_cv_c_bigendian+set}" = set; then
48297 echo $ECHO_N "(cached) $ECHO_C" >&6
48299 # See if sys/param.h defines the BYTE_ORDER macro.
48300 cat >conftest.$ac_ext <<_ACEOF
48303 cat confdefs.h >>conftest.$ac_ext
48304 cat >>conftest.$ac_ext <<_ACEOF
48305 /* end confdefs.h. */
48306 #include <sys/types.h>
48307 #include <sys/param.h>
48312 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
48313 bogus endian macros
48320 rm -f conftest.$ac_objext
48321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48322 (eval $ac_compile) 2>conftest.er1
48324 grep -v '^ *+' conftest.er1 >conftest.err
48326 cat conftest.err >&5
48327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48328 (exit $ac_status); } &&
48329 { ac_try='test -z "$ac_c_werror_flag"
48330 || test ! -s conftest.err'
48331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48332 (eval $ac_try) 2>&5
48334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48335 (exit $ac_status); }; } &&
48336 { ac_try='test -s conftest.$ac_objext'
48337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48338 (eval $ac_try) 2>&5
48340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48341 (exit $ac_status); }; }; then
48342 # It does; now see whether it defined to BIG_ENDIAN or not.
48343 cat >conftest.$ac_ext <<_ACEOF
48346 cat confdefs.h >>conftest.$ac_ext
48347 cat >>conftest.$ac_ext <<_ACEOF
48348 /* end confdefs.h. */
48349 #include <sys/types.h>
48350 #include <sys/param.h>
48355 #if BYTE_ORDER != BIG_ENDIAN
48363 rm -f conftest.$ac_objext
48364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48365 (eval $ac_compile) 2>conftest.er1
48367 grep -v '^ *+' conftest.er1 >conftest.err
48369 cat conftest.err >&5
48370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48371 (exit $ac_status); } &&
48372 { ac_try='test -z "$ac_c_werror_flag"
48373 || test ! -s conftest.err'
48374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48375 (eval $ac_try) 2>&5
48377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48378 (exit $ac_status); }; } &&
48379 { ac_try='test -s conftest.$ac_objext'
48380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48381 (eval $ac_try) 2>&5
48383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48384 (exit $ac_status); }; }; then
48385 ac_cv_c_bigendian=yes
48387 echo "$as_me: failed program was:" >&5
48388 sed 's/^/| /' conftest.$ac_ext >&5
48390 ac_cv_c_bigendian=no
48392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48394 echo "$as_me: failed program was:" >&5
48395 sed 's/^/| /' conftest.$ac_ext >&5
48397 # It does not; compile a test program.
48398 if test "$cross_compiling" = yes; then
48399 # try to guess the endianness by grepping values into an object file
48400 ac_cv_c_bigendian=unknown
48401 cat >conftest.$ac_ext <<_ACEOF
48404 cat confdefs.h >>conftest.$ac_ext
48405 cat >>conftest.$ac_ext <<_ACEOF
48406 /* end confdefs.h. */
48407 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
48408 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
48409 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
48410 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
48411 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
48412 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
48416 _ascii (); _ebcdic ();
48421 rm -f conftest.$ac_objext
48422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48423 (eval $ac_compile) 2>conftest.er1
48425 grep -v '^ *+' conftest.er1 >conftest.err
48427 cat conftest.err >&5
48428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48429 (exit $ac_status); } &&
48430 { ac_try='test -z "$ac_c_werror_flag"
48431 || test ! -s conftest.err'
48432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48433 (eval $ac_try) 2>&5
48435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48436 (exit $ac_status); }; } &&
48437 { ac_try='test -s conftest.$ac_objext'
48438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48439 (eval $ac_try) 2>&5
48441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48442 (exit $ac_status); }; }; then
48443 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
48444 ac_cv_c_bigendian=yes
48446 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
48447 if test "$ac_cv_c_bigendian" = unknown; then
48448 ac_cv_c_bigendian=no
48450 # finding both strings is unlikely to happen, but who knows?
48451 ac_cv_c_bigendian=unknown
48455 echo "$as_me: failed program was:" >&5
48456 sed 's/^/| /' conftest.$ac_ext >&5
48459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48461 cat >conftest.$ac_ext <<_ACEOF
48464 cat confdefs.h >>conftest.$ac_ext
48465 cat >>conftest.$ac_ext <<_ACEOF
48466 /* end confdefs.h. */
48470 /* Are we little or big endian? From Harbison&Steele. */
48474 char c[sizeof (long)];
48477 exit (u.c[sizeof (long) - 1] == 1);
48480 rm -f conftest$ac_exeext
48481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48482 (eval $ac_link) 2>&5
48484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48485 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48487 (eval $ac_try) 2>&5
48489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48490 (exit $ac_status); }; }; then
48491 ac_cv_c_bigendian=no
48493 echo "$as_me: program exited with status $ac_status" >&5
48494 echo "$as_me: failed program was:" >&5
48495 sed 's/^/| /' conftest.$ac_ext >&5
48497 ( exit $ac_status )
48498 ac_cv_c_bigendian=yes
48500 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48505 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
48506 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
48507 case $ac_cv_c_bigendian in
48510 cat >>confdefs.h <<\_ACEOF
48511 #define WORDS_BIGENDIAN 1
48517 { { echo "$as_me:$LINENO: error: unknown endianness
48518 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
48519 echo "$as_me: error: unknown endianness
48520 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
48521 { (exit 1); exit 1; }; } ;;
48526 echo "$as_me:$LINENO: checking size of short" >&5
48527 echo $ECHO_N "checking size of short... $ECHO_C" >&6
48528 if test "${ac_cv_sizeof_short+set}" = set; then
48529 echo $ECHO_N "(cached) $ECHO_C" >&6
48531 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
48532 cat >conftest.$ac_ext <<_ACEOF
48535 cat confdefs.h >>conftest.$ac_ext
48536 cat >>conftest.$ac_ext <<_ACEOF
48537 /* end confdefs.h. */
48538 #include "confdefs.h"
48539 #include <stdlib.h>
48540 #include <sys/types.h>
48546 switch (0) case 0: case (sizeof (short) == $ac_size):;
48551 rm -f conftest.$ac_objext
48552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48553 (eval $ac_compile) 2>conftest.er1
48555 grep -v '^ *+' conftest.er1 >conftest.err
48557 cat conftest.err >&5
48558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48559 (exit $ac_status); } &&
48560 { ac_try='test -z "$ac_c_werror_flag"
48561 || test ! -s conftest.err'
48562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48563 (eval $ac_try) 2>&5
48565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48566 (exit $ac_status); }; } &&
48567 { ac_try='test -s conftest.$ac_objext'
48568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48569 (eval $ac_try) 2>&5
48571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48572 (exit $ac_status); }; }; then
48573 ac_cv_sizeof_short=$ac_size
48575 echo "$as_me: failed program was:" >&5
48576 sed 's/^/| /' conftest.$ac_ext >&5
48579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48580 if test x$ac_cv_sizeof_short != x ; then break; fi
48585 if test x$ac_cv_sizeof_short = x ; then
48586 { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
48587 echo "$as_me: error: cannot determine a size for short" >&2;}
48588 { (exit 1); exit 1; }; }
48590 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
48591 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
48593 cat >>confdefs.h <<_ACEOF
48594 #define SIZEOF_SHORT $ac_cv_sizeof_short
48598 echo "$as_me:$LINENO: checking size of int" >&5
48599 echo $ECHO_N "checking size of int... $ECHO_C" >&6
48600 if test "${ac_cv_sizeof_int+set}" = set; then
48601 echo $ECHO_N "(cached) $ECHO_C" >&6
48603 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
48604 cat >conftest.$ac_ext <<_ACEOF
48607 cat confdefs.h >>conftest.$ac_ext
48608 cat >>conftest.$ac_ext <<_ACEOF
48609 /* end confdefs.h. */
48610 #include "confdefs.h"
48611 #include <stdlib.h>
48612 #include <sys/types.h>
48618 switch (0) case 0: case (sizeof (int) == $ac_size):;
48623 rm -f conftest.$ac_objext
48624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48625 (eval $ac_compile) 2>conftest.er1
48627 grep -v '^ *+' conftest.er1 >conftest.err
48629 cat conftest.err >&5
48630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48631 (exit $ac_status); } &&
48632 { ac_try='test -z "$ac_c_werror_flag"
48633 || test ! -s conftest.err'
48634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48635 (eval $ac_try) 2>&5
48637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48638 (exit $ac_status); }; } &&
48639 { ac_try='test -s conftest.$ac_objext'
48640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48641 (eval $ac_try) 2>&5
48643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48644 (exit $ac_status); }; }; then
48645 ac_cv_sizeof_int=$ac_size
48647 echo "$as_me: failed program was:" >&5
48648 sed 's/^/| /' conftest.$ac_ext >&5
48651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48652 if test x$ac_cv_sizeof_int != x ; then break; fi
48657 if test x$ac_cv_sizeof_int = x ; then
48658 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
48659 echo "$as_me: error: cannot determine a size for int" >&2;}
48660 { (exit 1); exit 1; }; }
48662 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
48663 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
48665 cat >>confdefs.h <<_ACEOF
48666 #define SIZEOF_INT $ac_cv_sizeof_int
48670 echo "$as_me:$LINENO: checking size of long" >&5
48671 echo $ECHO_N "checking size of long... $ECHO_C" >&6
48672 if test "${ac_cv_sizeof_long+set}" = set; then
48673 echo $ECHO_N "(cached) $ECHO_C" >&6
48675 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
48676 cat >conftest.$ac_ext <<_ACEOF
48679 cat confdefs.h >>conftest.$ac_ext
48680 cat >>conftest.$ac_ext <<_ACEOF
48681 /* end confdefs.h. */
48682 #include "confdefs.h"
48683 #include <stdlib.h>
48684 #include <sys/types.h>
48690 switch (0) case 0: case (sizeof (long) == $ac_size):;
48695 rm -f conftest.$ac_objext
48696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48697 (eval $ac_compile) 2>conftest.er1
48699 grep -v '^ *+' conftest.er1 >conftest.err
48701 cat conftest.err >&5
48702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48703 (exit $ac_status); } &&
48704 { ac_try='test -z "$ac_c_werror_flag"
48705 || test ! -s conftest.err'
48706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48707 (eval $ac_try) 2>&5
48709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48710 (exit $ac_status); }; } &&
48711 { ac_try='test -s conftest.$ac_objext'
48712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48713 (eval $ac_try) 2>&5
48715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48716 (exit $ac_status); }; }; then
48717 ac_cv_sizeof_long=$ac_size
48719 echo "$as_me: failed program was:" >&5
48720 sed 's/^/| /' conftest.$ac_ext >&5
48723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48724 if test x$ac_cv_sizeof_long != x ; then break; fi
48729 if test x$ac_cv_sizeof_long = x ; then
48730 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
48731 echo "$as_me: error: cannot determine a size for long" >&2;}
48732 { (exit 1); exit 1; }; }
48734 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
48735 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
48737 cat >>confdefs.h <<_ACEOF
48738 #define SIZEOF_LONG $ac_cv_sizeof_long
48742 echo "$as_me:$LINENO: checking size of wchar_t" >&5
48743 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
48744 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
48745 echo $ECHO_N "(cached) $ECHO_C" >&6
48747 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
48748 cat >conftest.$ac_ext <<_ACEOF
48751 cat confdefs.h >>conftest.$ac_ext
48752 cat >>conftest.$ac_ext <<_ACEOF
48753 /* end confdefs.h. */
48754 #include "confdefs.h"
48755 #include <stdlib.h>
48756 #include <sys/types.h>
48762 switch (0) case 0: case (sizeof (wchar_t) == $ac_size):;
48767 rm -f conftest.$ac_objext
48768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48769 (eval $ac_compile) 2>conftest.er1
48771 grep -v '^ *+' conftest.er1 >conftest.err
48773 cat conftest.err >&5
48774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48775 (exit $ac_status); } &&
48776 { ac_try='test -z "$ac_c_werror_flag"
48777 || test ! -s conftest.err'
48778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48779 (eval $ac_try) 2>&5
48781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48782 (exit $ac_status); }; } &&
48783 { ac_try='test -s conftest.$ac_objext'
48784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48785 (eval $ac_try) 2>&5
48787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48788 (exit $ac_status); }; }; then
48789 ac_cv_sizeof_wchar_t=$ac_size
48791 echo "$as_me: failed program was:" >&5
48792 sed 's/^/| /' conftest.$ac_ext >&5
48795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48796 if test x$ac_cv_sizeof_wchar_t != x ; then break; fi
48801 if test x$ac_cv_sizeof_wchar_t = x ; then
48802 { { echo "$as_me:$LINENO: error: cannot determine a size for wchar_t" >&5
48803 echo "$as_me: error: cannot determine a size for wchar_t" >&2;}
48804 { (exit 1); exit 1; }; }
48806 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
48807 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
48809 cat >>confdefs.h <<_ACEOF
48810 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
48815 if test "$ac_cv_sizeof_int" -lt 4 ; then
48816 { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
48817 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
48819 cat >>confdefs.h <<\_ACEOF
48820 #define LBER_INT_T long
48824 cat >>confdefs.h <<\_ACEOF
48825 #define LBER_INT_T int
48830 cat >>confdefs.h <<\_ACEOF
48831 #define LBER_LEN_T long
48834 cat >>confdefs.h <<\_ACEOF
48835 #define LBER_SOCKET_T int
48838 cat >>confdefs.h <<\_ACEOF
48839 #define LBER_TAG_T long
48843 echo "$as_me:$LINENO: checking for working memcmp" >&5
48844 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
48845 if test "${ac_cv_func_memcmp_working+set}" = set; then
48846 echo $ECHO_N "(cached) $ECHO_C" >&6
48848 if test "$cross_compiling" = yes; then
48849 ac_cv_func_memcmp_working=no
48851 cat >conftest.$ac_ext <<_ACEOF
48854 cat confdefs.h >>conftest.$ac_ext
48855 cat >>conftest.$ac_ext <<_ACEOF
48856 /* end confdefs.h. */
48857 $ac_includes_default
48862 /* Some versions of memcmp are not 8-bit clean. */
48863 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
48864 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
48867 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
48868 or more and with at least one buffer not starting on a 4-byte boundary.
48869 William Lewis provided this test program. */
48874 for (i = 0; i < 4; i++)
48878 strcpy (a, "--------01111111");
48879 strcpy (b, "--------10000000");
48880 if (memcmp (a, b, 16) >= 0)
48890 rm -f conftest$ac_exeext
48891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48892 (eval $ac_link) 2>&5
48894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48895 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48897 (eval $ac_try) 2>&5
48899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48900 (exit $ac_status); }; }; then
48901 ac_cv_func_memcmp_working=yes
48903 echo "$as_me: program exited with status $ac_status" >&5
48904 echo "$as_me: failed program was:" >&5
48905 sed 's/^/| /' conftest.$ac_ext >&5
48907 ( exit $ac_status )
48908 ac_cv_func_memcmp_working=no
48910 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48913 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
48914 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
48915 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
48916 "memcmp.$ac_objext" | \
48917 *" memcmp.$ac_objext" | \
48918 "memcmp.$ac_objext "* | \
48919 *" memcmp.$ac_objext "* ) ;;
48920 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
48925 if test $ac_cv_func_memcmp_working = no ; then
48927 cat >>confdefs.h <<\_ACEOF
48928 #define NEED_MEMCMP_REPLACEMENT 1
48934 for ac_func in strftime
48936 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48937 echo "$as_me:$LINENO: checking for $ac_func" >&5
48938 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48939 if eval "test \"\${$as_ac_var+set}\" = set"; then
48940 echo $ECHO_N "(cached) $ECHO_C" >&6
48942 cat >conftest.$ac_ext <<_ACEOF
48945 cat confdefs.h >>conftest.$ac_ext
48946 cat >>conftest.$ac_ext <<_ACEOF
48947 /* end confdefs.h. */
48948 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48949 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48950 #define $ac_func innocuous_$ac_func
48952 /* System header to define __stub macros and hopefully few prototypes,
48953 which can conflict with char $ac_func (); below.
48954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48955 <limits.h> exists even on freestanding compilers. */
48958 # include <limits.h>
48960 # include <assert.h>
48965 /* Override any gcc2 internal prototype to avoid an error. */
48970 /* We use char because int might match the return type of a gcc2
48971 builtin and then its argument prototype would still apply. */
48973 /* The GNU C library defines this for functions which it implements
48974 to always fail with ENOSYS. Some functions are actually named
48975 something starting with __ and the normal name is an alias. */
48976 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48979 char (*f) () = $ac_func;
48988 return f != $ac_func;
48993 rm -f conftest.$ac_objext conftest$ac_exeext
48994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48995 (eval $ac_link) 2>conftest.er1
48997 grep -v '^ *+' conftest.er1 >conftest.err
48999 cat conftest.err >&5
49000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49001 (exit $ac_status); } &&
49002 { ac_try='test -z "$ac_c_werror_flag"
49003 || test ! -s conftest.err'
49004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49005 (eval $ac_try) 2>&5
49007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49008 (exit $ac_status); }; } &&
49009 { ac_try='test -s conftest$ac_exeext'
49010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49011 (eval $ac_try) 2>&5
49013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49014 (exit $ac_status); }; }; then
49015 eval "$as_ac_var=yes"
49017 echo "$as_me: failed program was:" >&5
49018 sed 's/^/| /' conftest.$ac_ext >&5
49020 eval "$as_ac_var=no"
49022 rm -f conftest.err conftest.$ac_objext \
49023 conftest$ac_exeext conftest.$ac_ext
49025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49026 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49027 if test `eval echo '${'$as_ac_var'}'` = yes; then
49028 cat >>confdefs.h <<_ACEOF
49029 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49033 # strftime is in -lintl on SCO UNIX.
49034 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
49035 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
49036 if test "${ac_cv_lib_intl_strftime+set}" = set; then
49037 echo $ECHO_N "(cached) $ECHO_C" >&6
49039 ac_check_lib_save_LIBS=$LIBS
49040 LIBS="-lintl $LIBS"
49041 cat >conftest.$ac_ext <<_ACEOF
49044 cat confdefs.h >>conftest.$ac_ext
49045 cat >>conftest.$ac_ext <<_ACEOF
49046 /* end confdefs.h. */
49048 /* Override any gcc2 internal prototype to avoid an error. */
49052 /* We use char because int might match the return type of a gcc2
49053 builtin and then its argument prototype would still apply. */
49063 rm -f conftest.$ac_objext conftest$ac_exeext
49064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49065 (eval $ac_link) 2>conftest.er1
49067 grep -v '^ *+' conftest.er1 >conftest.err
49069 cat conftest.err >&5
49070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49071 (exit $ac_status); } &&
49072 { ac_try='test -z "$ac_c_werror_flag"
49073 || test ! -s conftest.err'
49074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49075 (eval $ac_try) 2>&5
49077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49078 (exit $ac_status); }; } &&
49079 { ac_try='test -s conftest$ac_exeext'
49080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49081 (eval $ac_try) 2>&5
49083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49084 (exit $ac_status); }; }; then
49085 ac_cv_lib_intl_strftime=yes
49087 echo "$as_me: failed program was:" >&5
49088 sed 's/^/| /' conftest.$ac_ext >&5
49090 ac_cv_lib_intl_strftime=no
49092 rm -f conftest.err conftest.$ac_objext \
49093 conftest$ac_exeext conftest.$ac_ext
49094 LIBS=$ac_check_lib_save_LIBS
49096 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
49097 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
49098 if test $ac_cv_lib_intl_strftime = yes; then
49099 cat >>confdefs.h <<\_ACEOF
49100 #define HAVE_STRFTIME 1
49103 LIBS="-lintl $LIBS"
49110 echo "$as_me:$LINENO: checking for inet_aton()" >&5
49111 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
49112 if test "${ol_cv_func_inet_aton+set}" = set; then
49113 echo $ECHO_N "(cached) $ECHO_C" >&6
49115 cat >conftest.$ac_ext <<_ACEOF
49118 cat confdefs.h >>conftest.$ac_ext
49119 cat >>conftest.$ac_ext <<_ACEOF
49120 /* end confdefs.h. */
49122 #ifdef HAVE_SYS_TYPES_H
49123 # include <sys/types.h>
49125 #ifdef HAVE_SYS_SOCKET_H
49126 # include <sys/socket.h>
49127 # ifdef HAVE_SYS_SELECT_H
49128 # include <sys/select.h>
49130 # include <netinet/in.h>
49131 # ifdef HAVE_ARPA_INET_H
49132 # include <arpa/inet.h>
49140 int rc = inet_aton( "255.255.255.255", &in );
49145 rm -f conftest.$ac_objext conftest$ac_exeext
49146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49147 (eval $ac_link) 2>conftest.er1
49149 grep -v '^ *+' conftest.er1 >conftest.err
49151 cat conftest.err >&5
49152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49153 (exit $ac_status); } &&
49154 { ac_try='test -z "$ac_c_werror_flag"
49155 || test ! -s conftest.err'
49156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49157 (eval $ac_try) 2>&5
49159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49160 (exit $ac_status); }; } &&
49161 { ac_try='test -s conftest$ac_exeext'
49162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49163 (eval $ac_try) 2>&5
49165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49166 (exit $ac_status); }; }; then
49167 ol_cv_func_inet_aton=yes
49169 echo "$as_me: failed program was:" >&5
49170 sed 's/^/| /' conftest.$ac_ext >&5
49172 ol_cv_func_inet_aton=no
49174 rm -f conftest.err conftest.$ac_objext \
49175 conftest$ac_exeext conftest.$ac_ext
49177 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
49178 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
49179 if test $ol_cv_func_inet_aton != no; then
49181 cat >>confdefs.h <<\_ACEOF
49182 #define HAVE_INET_ATON 1
49188 echo "$as_me:$LINENO: checking for _spawnlp" >&5
49189 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
49190 if test "${ac_cv_func__spawnlp+set}" = set; then
49191 echo $ECHO_N "(cached) $ECHO_C" >&6
49193 cat >conftest.$ac_ext <<_ACEOF
49196 cat confdefs.h >>conftest.$ac_ext
49197 cat >>conftest.$ac_ext <<_ACEOF
49198 /* end confdefs.h. */
49199 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
49200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49201 #define _spawnlp innocuous__spawnlp
49203 /* System header to define __stub macros and hopefully few prototypes,
49204 which can conflict with char _spawnlp (); below.
49205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49206 <limits.h> exists even on freestanding compilers. */
49209 # include <limits.h>
49211 # include <assert.h>
49216 /* Override any gcc2 internal prototype to avoid an error. */
49221 /* We use char because int might match the return type of a gcc2
49222 builtin and then its argument prototype would still apply. */
49224 /* The GNU C library defines this for functions which it implements
49225 to always fail with ENOSYS. Some functions are actually named
49226 something starting with __ and the normal name is an alias. */
49227 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
49230 char (*f) () = _spawnlp;
49239 return f != _spawnlp;
49244 rm -f conftest.$ac_objext conftest$ac_exeext
49245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49246 (eval $ac_link) 2>conftest.er1
49248 grep -v '^ *+' conftest.er1 >conftest.err
49250 cat conftest.err >&5
49251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49252 (exit $ac_status); } &&
49253 { ac_try='test -z "$ac_c_werror_flag"
49254 || test ! -s conftest.err'
49255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49256 (eval $ac_try) 2>&5
49258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49259 (exit $ac_status); }; } &&
49260 { ac_try='test -s conftest$ac_exeext'
49261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49262 (eval $ac_try) 2>&5
49264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49265 (exit $ac_status); }; }; then
49266 ac_cv_func__spawnlp=yes
49268 echo "$as_me: failed program was:" >&5
49269 sed 's/^/| /' conftest.$ac_ext >&5
49271 ac_cv_func__spawnlp=no
49273 rm -f conftest.err conftest.$ac_objext \
49274 conftest$ac_exeext conftest.$ac_ext
49276 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
49277 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
49278 if test $ac_cv_func__spawnlp = yes; then
49280 cat >>confdefs.h <<\_ACEOF
49281 #define HAVE_SPAWNLP 1
49287 echo "$as_me:$LINENO: checking for _snprintf" >&5
49288 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
49289 if test "${ac_cv_func__snprintf+set}" = set; then
49290 echo $ECHO_N "(cached) $ECHO_C" >&6
49292 cat >conftest.$ac_ext <<_ACEOF
49295 cat confdefs.h >>conftest.$ac_ext
49296 cat >>conftest.$ac_ext <<_ACEOF
49297 /* end confdefs.h. */
49298 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
49299 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49300 #define _snprintf innocuous__snprintf
49302 /* System header to define __stub macros and hopefully few prototypes,
49303 which can conflict with char _snprintf (); below.
49304 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49305 <limits.h> exists even on freestanding compilers. */
49308 # include <limits.h>
49310 # include <assert.h>
49315 /* Override any gcc2 internal prototype to avoid an error. */
49320 /* We use char because int might match the return type of a gcc2
49321 builtin and then its argument prototype would still apply. */
49323 /* The GNU C library defines this for functions which it implements
49324 to always fail with ENOSYS. Some functions are actually named
49325 something starting with __ and the normal name is an alias. */
49326 #if defined (__stub__snprintf) || defined (__stub____snprintf)
49329 char (*f) () = _snprintf;
49338 return f != _snprintf;
49343 rm -f conftest.$ac_objext conftest$ac_exeext
49344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49345 (eval $ac_link) 2>conftest.er1
49347 grep -v '^ *+' conftest.er1 >conftest.err
49349 cat conftest.err >&5
49350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49351 (exit $ac_status); } &&
49352 { ac_try='test -z "$ac_c_werror_flag"
49353 || test ! -s conftest.err'
49354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49355 (eval $ac_try) 2>&5
49357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49358 (exit $ac_status); }; } &&
49359 { ac_try='test -s conftest$ac_exeext'
49360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49361 (eval $ac_try) 2>&5
49363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49364 (exit $ac_status); }; }; then
49365 ac_cv_func__snprintf=yes
49367 echo "$as_me: failed program was:" >&5
49368 sed 's/^/| /' conftest.$ac_ext >&5
49370 ac_cv_func__snprintf=no
49372 rm -f conftest.err conftest.$ac_objext \
49373 conftest$ac_exeext conftest.$ac_ext
49375 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
49376 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
49377 if test $ac_cv_func__snprintf = yes; then
49378 ac_cv_func_snprintf=yes
49380 cat >>confdefs.h <<\_ACEOF
49381 #define snprintf _snprintf
49388 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
49389 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
49390 if test "${ac_cv_func__vsnprintf+set}" = set; then
49391 echo $ECHO_N "(cached) $ECHO_C" >&6
49393 cat >conftest.$ac_ext <<_ACEOF
49396 cat confdefs.h >>conftest.$ac_ext
49397 cat >>conftest.$ac_ext <<_ACEOF
49398 /* end confdefs.h. */
49399 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
49400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49401 #define _vsnprintf innocuous__vsnprintf
49403 /* System header to define __stub macros and hopefully few prototypes,
49404 which can conflict with char _vsnprintf (); below.
49405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49406 <limits.h> exists even on freestanding compilers. */
49409 # include <limits.h>
49411 # include <assert.h>
49416 /* Override any gcc2 internal prototype to avoid an error. */
49421 /* We use char because int might match the return type of a gcc2
49422 builtin and then its argument prototype would still apply. */
49423 char _vsnprintf ();
49424 /* The GNU C library defines this for functions which it implements
49425 to always fail with ENOSYS. Some functions are actually named
49426 something starting with __ and the normal name is an alias. */
49427 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
49430 char (*f) () = _vsnprintf;
49439 return f != _vsnprintf;
49444 rm -f conftest.$ac_objext conftest$ac_exeext
49445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49446 (eval $ac_link) 2>conftest.er1
49448 grep -v '^ *+' conftest.er1 >conftest.err
49450 cat conftest.err >&5
49451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49452 (exit $ac_status); } &&
49453 { ac_try='test -z "$ac_c_werror_flag"
49454 || test ! -s conftest.err'
49455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49456 (eval $ac_try) 2>&5
49458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49459 (exit $ac_status); }; } &&
49460 { ac_try='test -s conftest$ac_exeext'
49461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49462 (eval $ac_try) 2>&5
49464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49465 (exit $ac_status); }; }; then
49466 ac_cv_func__vsnprintf=yes
49468 echo "$as_me: failed program was:" >&5
49469 sed 's/^/| /' conftest.$ac_ext >&5
49471 ac_cv_func__vsnprintf=no
49473 rm -f conftest.err conftest.$ac_objext \
49474 conftest$ac_exeext conftest.$ac_ext
49476 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
49477 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
49478 if test $ac_cv_func__vsnprintf = yes; then
49479 ac_cv_func_vsnprintf=yes
49481 cat >>confdefs.h <<\_ACEOF
49482 #define vsnprintf _vsnprintf
49490 for ac_func in vprintf
49492 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49493 echo "$as_me:$LINENO: checking for $ac_func" >&5
49494 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49495 if eval "test \"\${$as_ac_var+set}\" = set"; then
49496 echo $ECHO_N "(cached) $ECHO_C" >&6
49498 cat >conftest.$ac_ext <<_ACEOF
49501 cat confdefs.h >>conftest.$ac_ext
49502 cat >>conftest.$ac_ext <<_ACEOF
49503 /* end confdefs.h. */
49504 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49505 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49506 #define $ac_func innocuous_$ac_func
49508 /* System header to define __stub macros and hopefully few prototypes,
49509 which can conflict with char $ac_func (); below.
49510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49511 <limits.h> exists even on freestanding compilers. */
49514 # include <limits.h>
49516 # include <assert.h>
49521 /* Override any gcc2 internal prototype to avoid an error. */
49526 /* We use char because int might match the return type of a gcc2
49527 builtin and then its argument prototype would still apply. */
49529 /* The GNU C library defines this for functions which it implements
49530 to always fail with ENOSYS. Some functions are actually named
49531 something starting with __ and the normal name is an alias. */
49532 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49535 char (*f) () = $ac_func;
49544 return f != $ac_func;
49549 rm -f conftest.$ac_objext conftest$ac_exeext
49550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49551 (eval $ac_link) 2>conftest.er1
49553 grep -v '^ *+' conftest.er1 >conftest.err
49555 cat conftest.err >&5
49556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49557 (exit $ac_status); } &&
49558 { ac_try='test -z "$ac_c_werror_flag"
49559 || test ! -s conftest.err'
49560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49561 (eval $ac_try) 2>&5
49563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49564 (exit $ac_status); }; } &&
49565 { ac_try='test -s conftest$ac_exeext'
49566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49567 (eval $ac_try) 2>&5
49569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49570 (exit $ac_status); }; }; then
49571 eval "$as_ac_var=yes"
49573 echo "$as_me: failed program was:" >&5
49574 sed 's/^/| /' conftest.$ac_ext >&5
49576 eval "$as_ac_var=no"
49578 rm -f conftest.err conftest.$ac_objext \
49579 conftest$ac_exeext conftest.$ac_ext
49581 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49582 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49583 if test `eval echo '${'$as_ac_var'}'` = yes; then
49584 cat >>confdefs.h <<_ACEOF
49585 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49588 echo "$as_me:$LINENO: checking for _doprnt" >&5
49589 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
49590 if test "${ac_cv_func__doprnt+set}" = set; then
49591 echo $ECHO_N "(cached) $ECHO_C" >&6
49593 cat >conftest.$ac_ext <<_ACEOF
49596 cat confdefs.h >>conftest.$ac_ext
49597 cat >>conftest.$ac_ext <<_ACEOF
49598 /* end confdefs.h. */
49599 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
49600 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49601 #define _doprnt innocuous__doprnt
49603 /* System header to define __stub macros and hopefully few prototypes,
49604 which can conflict with char _doprnt (); below.
49605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49606 <limits.h> exists even on freestanding compilers. */
49609 # include <limits.h>
49611 # include <assert.h>
49616 /* Override any gcc2 internal prototype to avoid an error. */
49621 /* We use char because int might match the return type of a gcc2
49622 builtin and then its argument prototype would still apply. */
49624 /* The GNU C library defines this for functions which it implements
49625 to always fail with ENOSYS. Some functions are actually named
49626 something starting with __ and the normal name is an alias. */
49627 #if defined (__stub__doprnt) || defined (__stub____doprnt)
49630 char (*f) () = _doprnt;
49639 return f != _doprnt;
49644 rm -f conftest.$ac_objext conftest$ac_exeext
49645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49646 (eval $ac_link) 2>conftest.er1
49648 grep -v '^ *+' conftest.er1 >conftest.err
49650 cat conftest.err >&5
49651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49652 (exit $ac_status); } &&
49653 { ac_try='test -z "$ac_c_werror_flag"
49654 || test ! -s conftest.err'
49655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49656 (eval $ac_try) 2>&5
49658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49659 (exit $ac_status); }; } &&
49660 { ac_try='test -s conftest$ac_exeext'
49661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49662 (eval $ac_try) 2>&5
49664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49665 (exit $ac_status); }; }; then
49666 ac_cv_func__doprnt=yes
49668 echo "$as_me: failed program was:" >&5
49669 sed 's/^/| /' conftest.$ac_ext >&5
49671 ac_cv_func__doprnt=no
49673 rm -f conftest.err conftest.$ac_objext \
49674 conftest$ac_exeext conftest.$ac_ext
49676 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
49677 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
49678 if test $ac_cv_func__doprnt = yes; then
49680 cat >>confdefs.h <<\_ACEOF
49681 #define HAVE_DOPRNT 1
49691 if test $ac_cv_func_vprintf = yes ; then
49694 for ac_func in snprintf vsnprintf
49696 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49697 echo "$as_me:$LINENO: checking for $ac_func" >&5
49698 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49699 if eval "test \"\${$as_ac_var+set}\" = set"; then
49700 echo $ECHO_N "(cached) $ECHO_C" >&6
49702 cat >conftest.$ac_ext <<_ACEOF
49705 cat confdefs.h >>conftest.$ac_ext
49706 cat >>conftest.$ac_ext <<_ACEOF
49707 /* end confdefs.h. */
49708 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49709 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49710 #define $ac_func innocuous_$ac_func
49712 /* System header to define __stub macros and hopefully few prototypes,
49713 which can conflict with char $ac_func (); below.
49714 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49715 <limits.h> exists even on freestanding compilers. */
49718 # include <limits.h>
49720 # include <assert.h>
49725 /* Override any gcc2 internal prototype to avoid an error. */
49730 /* We use char because int might match the return type of a gcc2
49731 builtin and then its argument prototype would still apply. */
49733 /* The GNU C library defines this for functions which it implements
49734 to always fail with ENOSYS. Some functions are actually named
49735 something starting with __ and the normal name is an alias. */
49736 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49739 char (*f) () = $ac_func;
49748 return f != $ac_func;
49753 rm -f conftest.$ac_objext conftest$ac_exeext
49754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49755 (eval $ac_link) 2>conftest.er1
49757 grep -v '^ *+' conftest.er1 >conftest.err
49759 cat conftest.err >&5
49760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49761 (exit $ac_status); } &&
49762 { ac_try='test -z "$ac_c_werror_flag"
49763 || test ! -s conftest.err'
49764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49765 (eval $ac_try) 2>&5
49767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49768 (exit $ac_status); }; } &&
49769 { ac_try='test -s conftest$ac_exeext'
49770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49771 (eval $ac_try) 2>&5
49773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49774 (exit $ac_status); }; }; then
49775 eval "$as_ac_var=yes"
49777 echo "$as_me: failed program was:" >&5
49778 sed 's/^/| /' conftest.$ac_ext >&5
49780 eval "$as_ac_var=no"
49782 rm -f conftest.err conftest.$ac_objext \
49783 conftest$ac_exeext conftest.$ac_ext
49785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49786 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49787 if test `eval echo '${'$as_ac_var'}'` = yes; then
49788 cat >>confdefs.h <<_ACEOF
49789 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49906 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49907 echo "$as_me:$LINENO: checking for $ac_func" >&5
49908 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49909 if eval "test \"\${$as_ac_var+set}\" = set"; then
49910 echo $ECHO_N "(cached) $ECHO_C" >&6
49912 cat >conftest.$ac_ext <<_ACEOF
49915 cat confdefs.h >>conftest.$ac_ext
49916 cat >>conftest.$ac_ext <<_ACEOF
49917 /* end confdefs.h. */
49918 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49919 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49920 #define $ac_func innocuous_$ac_func
49922 /* System header to define __stub macros and hopefully few prototypes,
49923 which can conflict with char $ac_func (); below.
49924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49925 <limits.h> exists even on freestanding compilers. */
49928 # include <limits.h>
49930 # include <assert.h>
49935 /* Override any gcc2 internal prototype to avoid an error. */
49940 /* We use char because int might match the return type of a gcc2
49941 builtin and then its argument prototype would still apply. */
49943 /* The GNU C library defines this for functions which it implements
49944 to always fail with ENOSYS. Some functions are actually named
49945 something starting with __ and the normal name is an alias. */
49946 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49949 char (*f) () = $ac_func;
49958 return f != $ac_func;
49963 rm -f conftest.$ac_objext conftest$ac_exeext
49964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49965 (eval $ac_link) 2>conftest.er1
49967 grep -v '^ *+' conftest.er1 >conftest.err
49969 cat conftest.err >&5
49970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49971 (exit $ac_status); } &&
49972 { ac_try='test -z "$ac_c_werror_flag"
49973 || test ! -s conftest.err'
49974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49975 (eval $ac_try) 2>&5
49977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49978 (exit $ac_status); }; } &&
49979 { ac_try='test -s conftest$ac_exeext'
49980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49981 (eval $ac_try) 2>&5
49983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49984 (exit $ac_status); }; }; then
49985 eval "$as_ac_var=yes"
49987 echo "$as_me: failed program was:" >&5
49988 sed 's/^/| /' conftest.$ac_ext >&5
49990 eval "$as_ac_var=no"
49992 rm -f conftest.err conftest.$ac_objext \
49993 conftest$ac_exeext conftest.$ac_ext
49995 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49996 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49997 if test `eval echo '${'$as_ac_var'}'` = yes; then
49998 cat >>confdefs.h <<_ACEOF
49999 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50008 for ac_func in getopt getpeereid
50010 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50011 echo "$as_me:$LINENO: checking for $ac_func" >&5
50012 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50013 if eval "test \"\${$as_ac_var+set}\" = set"; then
50014 echo $ECHO_N "(cached) $ECHO_C" >&6
50016 cat >conftest.$ac_ext <<_ACEOF
50019 cat confdefs.h >>conftest.$ac_ext
50020 cat >>conftest.$ac_ext <<_ACEOF
50021 /* end confdefs.h. */
50022 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50023 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50024 #define $ac_func innocuous_$ac_func
50026 /* System header to define __stub macros and hopefully few prototypes,
50027 which can conflict with char $ac_func (); below.
50028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50029 <limits.h> exists even on freestanding compilers. */
50032 # include <limits.h>
50034 # include <assert.h>
50039 /* Override any gcc2 internal prototype to avoid an error. */
50044 /* We use char because int might match the return type of a gcc2
50045 builtin and then its argument prototype would still apply. */
50047 /* The GNU C library defines this for functions which it implements
50048 to always fail with ENOSYS. Some functions are actually named
50049 something starting with __ and the normal name is an alias. */
50050 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50053 char (*f) () = $ac_func;
50062 return f != $ac_func;
50067 rm -f conftest.$ac_objext conftest$ac_exeext
50068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50069 (eval $ac_link) 2>conftest.er1
50071 grep -v '^ *+' conftest.er1 >conftest.err
50073 cat conftest.err >&5
50074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50075 (exit $ac_status); } &&
50076 { ac_try='test -z "$ac_c_werror_flag"
50077 || test ! -s conftest.err'
50078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50079 (eval $ac_try) 2>&5
50081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50082 (exit $ac_status); }; } &&
50083 { ac_try='test -s conftest$ac_exeext'
50084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50085 (eval $ac_try) 2>&5
50087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50088 (exit $ac_status); }; }; then
50089 eval "$as_ac_var=yes"
50091 echo "$as_me: failed program was:" >&5
50092 sed 's/^/| /' conftest.$ac_ext >&5
50094 eval "$as_ac_var=no"
50096 rm -f conftest.err conftest.$ac_objext \
50097 conftest$ac_exeext conftest.$ac_ext
50099 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50100 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50101 if test `eval echo '${'$as_ac_var'}'` = yes; then
50102 cat >>confdefs.h <<_ACEOF
50103 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50108 "$ac_func.$ac_objext" | \
50109 *" $ac_func.$ac_objext" | \
50110 "$ac_func.$ac_objext "* | \
50111 *" $ac_func.$ac_objext "* ) ;;
50112 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
50120 if test "$ac_cv_func_getopt" != yes; then
50121 LIBSRCS="$LIBSRCS getopt.c"
50123 if test "$ac_cv_func_getpeereid" != yes; then
50124 echo "$as_me:$LINENO: checking for msg_accrights in msghdr" >&5
50125 echo $ECHO_N "checking for msg_accrights in msghdr... $ECHO_C" >&6
50126 if test "${ol_cv_msghdr_msg_accrights+set}" = set; then
50127 echo $ECHO_N "(cached) $ECHO_C" >&6
50129 cat >conftest.$ac_ext <<_ACEOF
50132 cat confdefs.h >>conftest.$ac_ext
50133 cat >>conftest.$ac_ext <<_ACEOF
50134 /* end confdefs.h. */
50135 #include <sys/socket.h>
50139 struct msghdr m; m.msg_accrightslen=0
50144 rm -f conftest.$ac_objext
50145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50146 (eval $ac_compile) 2>conftest.er1
50148 grep -v '^ *+' conftest.er1 >conftest.err
50150 cat conftest.err >&5
50151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50152 (exit $ac_status); } &&
50153 { ac_try='test -z "$ac_c_werror_flag"
50154 || test ! -s conftest.err'
50155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50156 (eval $ac_try) 2>&5
50158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50159 (exit $ac_status); }; } &&
50160 { ac_try='test -s conftest.$ac_objext'
50161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50162 (eval $ac_try) 2>&5
50164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50165 (exit $ac_status); }; }; then
50166 ol_cv_msghdr_msg_accrights=yes
50168 echo "$as_me: failed program was:" >&5
50169 sed 's/^/| /' conftest.$ac_ext >&5
50171 ol_cv_msghdr_msg_accrights=no
50173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50176 echo "$as_me:$LINENO: result: $ol_cv_msghdr_msg_accrights" >&5
50177 echo "${ECHO_T}$ol_cv_msghdr_msg_accrights" >&6
50178 if test $ol_cv_msghdr_msg_accrights = "yes" ; then
50180 cat >>confdefs.h <<\_ACEOF
50181 #define HAVE_MSGHDR_MSG_ACCRIGHTS 1
50186 if test "$ac_cv_func_getpeereid" != yes; then
50187 echo "$as_me:$LINENO: checking for msg_control in msghdr" >&5
50188 echo $ECHO_N "checking for msg_control in msghdr... $ECHO_C" >&6
50189 if test "${ol_cv_msghdr_msg_control+set}" = set; then
50190 echo $ECHO_N "(cached) $ECHO_C" >&6
50192 cat >conftest.$ac_ext <<_ACEOF
50195 cat confdefs.h >>conftest.$ac_ext
50196 cat >>conftest.$ac_ext <<_ACEOF
50197 /* end confdefs.h. */
50198 #include <sys/socket.h>
50202 struct msghdr m; m.msg_control=(struct cmsghdr *)0
50207 rm -f conftest.$ac_objext
50208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50209 (eval $ac_compile) 2>conftest.er1
50211 grep -v '^ *+' conftest.er1 >conftest.err
50213 cat conftest.err >&5
50214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50215 (exit $ac_status); } &&
50216 { ac_try='test -z "$ac_c_werror_flag"
50217 || test ! -s conftest.err'
50218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50219 (eval $ac_try) 2>&5
50221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50222 (exit $ac_status); }; } &&
50223 { ac_try='test -s conftest.$ac_objext'
50224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50225 (eval $ac_try) 2>&5
50227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50228 (exit $ac_status); }; }; then
50229 ol_cv_msghdr_msg_control=yes
50231 echo "$as_me: failed program was:" >&5
50232 sed 's/^/| /' conftest.$ac_ext >&5
50234 ol_cv_msghdr_msg_control=no
50236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50239 echo "$as_me:$LINENO: result: $ol_cv_msghdr_msg_control" >&5
50240 echo "${ECHO_T}$ol_cv_msghdr_msg_control" >&6
50241 if test $ol_cv_msghdr_msg_control = "yes" ; then
50243 cat >>confdefs.h <<\_ACEOF
50244 #define HAVE_MSGHDR_MSG_CONTROL 1
50250 LIBSRCS="$LIBSRCS getpeereid.c"
50252 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
50253 if test "$ac_cv_func_snprintf" != yes; then
50255 cat >>confdefs.h <<\_ACEOF
50256 #define snprintf ber_pvt_snprintf
50260 if test "$ac_cv_func_vsnprintf" != yes; then
50262 cat >>confdefs.h <<\_ACEOF
50263 #define vsnprintf ber_pvt_vsnprintf
50270 if test "$ol_enable_slapi" != no ; then
50272 for ac_header in ltdl.h
50274 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
50275 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50276 echo "$as_me:$LINENO: checking for $ac_header" >&5
50277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
50278 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50279 echo $ECHO_N "(cached) $ECHO_C" >&6
50281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
50282 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
50284 # Is the header compilable?
50285 echo "$as_me:$LINENO: checking $ac_header usability" >&5
50286 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
50287 cat >conftest.$ac_ext <<_ACEOF
50290 cat confdefs.h >>conftest.$ac_ext
50291 cat >>conftest.$ac_ext <<_ACEOF
50292 /* end confdefs.h. */
50293 $ac_includes_default
50294 #include <$ac_header>
50296 rm -f conftest.$ac_objext
50297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50298 (eval $ac_compile) 2>conftest.er1
50300 grep -v '^ *+' conftest.er1 >conftest.err
50302 cat conftest.err >&5
50303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50304 (exit $ac_status); } &&
50305 { ac_try='test -z "$ac_c_werror_flag"
50306 || test ! -s conftest.err'
50307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50308 (eval $ac_try) 2>&5
50310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50311 (exit $ac_status); }; } &&
50312 { ac_try='test -s conftest.$ac_objext'
50313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50314 (eval $ac_try) 2>&5
50316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50317 (exit $ac_status); }; }; then
50318 ac_header_compiler=yes
50320 echo "$as_me: failed program was:" >&5
50321 sed 's/^/| /' conftest.$ac_ext >&5
50323 ac_header_compiler=no
50325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50326 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
50327 echo "${ECHO_T}$ac_header_compiler" >&6
50329 # Is the header present?
50330 echo "$as_me:$LINENO: checking $ac_header presence" >&5
50331 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
50332 cat >conftest.$ac_ext <<_ACEOF
50335 cat confdefs.h >>conftest.$ac_ext
50336 cat >>conftest.$ac_ext <<_ACEOF
50337 /* end confdefs.h. */
50338 #include <$ac_header>
50340 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
50341 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
50343 grep -v '^ *+' conftest.er1 >conftest.err
50345 cat conftest.err >&5
50346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50347 (exit $ac_status); } >/dev/null; then
50348 if test -s conftest.err; then
50349 ac_cpp_err=$ac_c_preproc_warn_flag
50350 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
50357 if test -z "$ac_cpp_err"; then
50358 ac_header_preproc=yes
50360 echo "$as_me: failed program was:" >&5
50361 sed 's/^/| /' conftest.$ac_ext >&5
50363 ac_header_preproc=no
50365 rm -f conftest.err conftest.$ac_ext
50366 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
50367 echo "${ECHO_T}$ac_header_preproc" >&6
50369 # So? What about this header?
50370 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
50372 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
50373 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
50374 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
50375 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
50376 ac_header_preproc=yes
50379 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
50380 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
50381 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
50382 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
50383 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
50384 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
50385 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
50386 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
50387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
50388 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
50389 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
50390 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
50393 ## ------------------------------------------ ##
50394 ## Report this to the AC_PACKAGE_NAME lists. ##
50395 ## ------------------------------------------ ##
50398 sed "s/^/$as_me: WARNING: /" >&2
50401 echo "$as_me:$LINENO: checking for $ac_header" >&5
50402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
50403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50404 echo $ECHO_N "(cached) $ECHO_C" >&6
50406 eval "$as_ac_Header=\$ac_header_preproc"
50408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
50409 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
50412 if test `eval echo '${'$as_ac_Header'}'` = yes; then
50413 cat >>confdefs.h <<_ACEOF
50414 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
50422 if test $ac_cv_header_ltdl_h != yes ; then
50423 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
50424 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
50425 { (exit 1); exit 1; }; }
50427 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
50428 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
50429 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
50430 echo $ECHO_N "(cached) $ECHO_C" >&6
50432 ac_check_lib_save_LIBS=$LIBS
50433 LIBS="-lltdl $LIBS"
50434 cat >conftest.$ac_ext <<_ACEOF
50437 cat confdefs.h >>conftest.$ac_ext
50438 cat >>conftest.$ac_ext <<_ACEOF
50439 /* end confdefs.h. */
50441 /* Override any gcc2 internal prototype to avoid an error. */
50445 /* We use char because int might match the return type of a gcc2
50446 builtin and then its argument prototype would still apply. */
50456 rm -f conftest.$ac_objext conftest$ac_exeext
50457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50458 (eval $ac_link) 2>conftest.er1
50460 grep -v '^ *+' conftest.er1 >conftest.err
50462 cat conftest.err >&5
50463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50464 (exit $ac_status); } &&
50465 { ac_try='test -z "$ac_c_werror_flag"
50466 || test ! -s conftest.err'
50467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50468 (eval $ac_try) 2>&5
50470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50471 (exit $ac_status); }; } &&
50472 { ac_try='test -s conftest$ac_exeext'
50473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50474 (eval $ac_try) 2>&5
50476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50477 (exit $ac_status); }; }; then
50478 ac_cv_lib_ltdl_lt_dlinit=yes
50480 echo "$as_me: failed program was:" >&5
50481 sed 's/^/| /' conftest.$ac_ext >&5
50483 ac_cv_lib_ltdl_lt_dlinit=no
50485 rm -f conftest.err conftest.$ac_objext \
50486 conftest$ac_exeext conftest.$ac_ext
50487 LIBS=$ac_check_lib_save_LIBS
50489 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
50490 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
50491 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
50494 LIBSLAPI=libslapi.a
50495 LIBSLAPITOOLS=../libslapi.a
50497 cat >>confdefs.h <<\_ACEOF
50498 #define HAVE_LIBLTDL 1
50503 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
50504 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
50505 { (exit 1); exit 1; }; }
50510 cat >>confdefs.h <<\_ACEOF
50511 #define LDAP_SLAPI 1
50516 if test "$ol_enable_debug" != no ; then
50518 cat >>confdefs.h <<\_ACEOF
50519 #define LDAP_DEBUG 1
50523 if test "$ol_enable_syslog" = yes ; then
50525 cat >>confdefs.h <<\_ACEOF
50526 #define LDAP_SYSLOG 1
50530 if test "$ol_link_kbind" != no ; then
50531 cat >>confdefs.h <<\_ACEOF
50532 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
50536 if test "$ol_enable_proctitle" != no ; then
50538 cat >>confdefs.h <<\_ACEOF
50539 #define LDAP_PROCTITLE 1
50543 if test "$ol_enable_referrals" != no ; then
50544 cat >>confdefs.h <<\_ACEOF
50545 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
50549 if test "$ol_enable_local" != no; then
50551 cat >>confdefs.h <<\_ACEOF
50552 #define LDAP_PF_LOCAL 1
50556 if test "$ol_link_ipv6" != no; then
50558 cat >>confdefs.h <<\_ACEOF
50559 #define LDAP_PF_INET6 1
50563 if test "$ol_enable_cleartext" != no ; then
50565 cat >>confdefs.h <<\_ACEOF
50566 #define SLAPD_CLEARTEXT 1
50570 if test "$ol_enable_crypt" != no ; then
50572 cat >>confdefs.h <<\_ACEOF
50573 #define SLAPD_CRYPT 1
50577 if test "$ol_link_spasswd" != no ; then
50579 cat >>confdefs.h <<\_ACEOF
50580 #define SLAPD_SPASSWD 1
50584 if test "$ol_enable_multimaster" != no ; then
50586 cat >>confdefs.h <<\_ACEOF
50587 #define SLAPD_MULTIMASTER 1
50591 if test "$ol_enable_rlookups" != no ; then
50593 cat >>confdefs.h <<\_ACEOF
50594 #define SLAPD_RLOOKUPS 1
50598 if test "$ol_enable_aci" != no ; then
50600 cat >>confdefs.h <<\_ACEOF
50601 #define SLAPD_ACI_ENABLED 1
50606 if test "$ol_link_modules" != no ; then
50608 cat >>confdefs.h <<\_ACEOF
50609 #define SLAPD_MODULES 1
50613 SLAPD_MODULES_LDFLAGS="-dlopen self"
50617 cat >>confdefs.h <<\_ACEOF
50618 #define SLAPD_MOD_STATIC 1
50622 cat >>confdefs.h <<\_ACEOF
50623 #define SLAPD_MOD_DYNAMIC 2
50627 if test "$ol_enable_bdb" != no ; then
50629 BUILD_BDB=$ol_enable_bdb
50630 if test "$ol_enable_bdb" = mod ; then
50631 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
50632 MFLAG=SLAPD_MOD_DYNAMIC
50634 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
50635 MFLAG=SLAPD_MOD_STATIC
50638 cat >>confdefs.h <<_ACEOF
50639 #define SLAPD_BDB $MFLAG
50644 if test "$ol_enable_dnssrv" != no ; then
50646 BUILD_DNSSRV=$ol_enable_dnssrv
50647 if test "$ol_enable_dnssrv" = mod ; then
50648 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
50649 MFLAG=SLAPD_MOD_DYNAMIC
50651 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
50652 MFLAG=SLAPD_MOD_STATIC
50655 cat >>confdefs.h <<_ACEOF
50656 #define SLAPD_DNSSRV $MFLAG
50661 if test "$ol_enable_hdb" != no ; then
50663 BUILD_HDB=$ol_enable_hdb
50664 if test "$ol_enable_hdb" = mod ; then
50665 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
50666 MFLAG=SLAPD_MOD_DYNAMIC
50668 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
50669 MFLAG=SLAPD_MOD_STATIC
50672 cat >>confdefs.h <<_ACEOF
50673 #define SLAPD_HDB $MFLAG
50678 if test "$ol_enable_ldap" != no ; then
50680 BUILD_LDAP=$ol_enable_ldap
50681 if test "$ol_enable_ldap" = mod ; then
50682 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
50683 MFLAG=SLAPD_MOD_DYNAMIC
50685 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
50686 MFLAG=SLAPD_MOD_STATIC
50689 cat >>confdefs.h <<_ACEOF
50690 #define SLAPD_LDAP $MFLAG
50695 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
50697 BUILD_LDBM=$ol_enable_ldbm
50698 if test "$ol_enable_ldbm" = mod ; then
50699 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
50700 MFLAG=SLAPD_MOD_DYNAMIC
50702 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
50703 MFLAG=SLAPD_MOD_STATIC
50706 cat >>confdefs.h <<_ACEOF
50707 #define SLAPD_LDBM $MFLAG
50712 if test "$ol_enable_meta" != no ; then
50714 BUILD_META=$ol_enable_meta
50716 if test "$ol_enable_meta" = mod ; then
50717 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
50718 MFLAG=SLAPD_MOD_DYNAMIC
50720 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
50721 MFLAG=SLAPD_MOD_STATIC
50724 cat >>confdefs.h <<_ACEOF
50725 #define SLAPD_META $MFLAG
50730 if test "$ol_enable_monitor" != no ; then
50732 BUILD_MONITOR=$ol_enable_monitor
50733 if test "$ol_enable_monitor" = mod ; then
50734 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
50735 MFLAG=SLAPD_MOD_DYNAMIC
50737 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
50738 MFLAG=SLAPD_MOD_STATIC
50741 cat >>confdefs.h <<_ACEOF
50742 #define SLAPD_MONITOR $MFLAG
50747 if test "$ol_enable_null" != no ; then
50749 BUILD_NULL=$ol_enable_null
50750 if test "$ol_enable_null" = mod ; then
50751 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
50752 MFLAG=SLAPD_MOD_DYNAMIC
50754 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
50755 MFLAG=SLAPD_MOD_STATIC
50758 cat >>confdefs.h <<_ACEOF
50759 #define SLAPD_NULL $MFLAG
50764 if test "$ol_enable_passwd" != no ; then
50766 BUILD_PASSWD=$ol_enable_passwd
50767 if test "$ol_enable_passwd" = mod ; then
50768 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
50769 MFLAG=SLAPD_MOD_DYNAMIC
50771 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
50772 MFLAG=SLAPD_MOD_STATIC
50775 cat >>confdefs.h <<_ACEOF
50776 #define SLAPD_PASSWD $MFLAG
50781 if test "$ol_link_perl" != no ; then
50783 BUILD_PERL=$ol_enable_perl
50784 if test "$ol_enable_perl" = mod ; then
50785 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
50786 MFLAG=SLAPD_MOD_DYNAMIC
50788 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
50789 MFLAG=SLAPD_MOD_STATIC
50792 cat >>confdefs.h <<_ACEOF
50793 #define SLAPD_PERL $MFLAG
50798 if test "$ol_enable_relay" != no ; then
50800 BUILD_RELAY=$ol_enable_relay
50801 if test "$ol_enable_relay" = mod ; then
50802 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
50803 MFLAG=SLAPD_MOD_DYNAMIC
50805 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
50806 MFLAG=SLAPD_MOD_STATIC
50809 cat >>confdefs.h <<_ACEOF
50810 #define SLAPD_RELAY $MFLAG
50815 if test "$ol_enable_shell" != no ; then
50816 if test "$ol_link_thread" != no ; then
50817 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
50818 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
50821 BUILD_SHELL=$ol_enable_shell
50822 if test "$ol_enable_shell" = mod ; then
50823 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
50824 MFLAG=SLAPD_MOD_DYNAMIC
50826 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
50827 MFLAG=SLAPD_MOD_STATIC
50830 cat >>confdefs.h <<_ACEOF
50831 #define SLAPD_SHELL $MFLAG
50836 if test "$ol_link_sql" != no ; then
50838 BUILD_SQL=$ol_enable_sql
50839 if test "$ol_enable_sql" = mod; then
50840 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
50841 MFLAG=SLAPD_MOD_DYNAMIC
50843 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
50844 MFLAG=SLAPD_MOD_STATIC
50847 cat >>confdefs.h <<_ACEOF
50848 #define SLAPD_SQL $MFLAG
50853 if test "$ol_enable_accesslog" != no ; then
50854 BUILD_ACCESSLOG=$ol_enable_accesslog
50855 if test "$ol_enable_accesslog" = mod ; then
50856 MFLAG=SLAPD_MOD_DYNAMIC
50857 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
50859 MFLAG=SLAPD_MOD_STATIC
50860 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
50863 cat >>confdefs.h <<_ACEOF
50864 #define SLAPD_OVER_ACCESSLOG $MFLAG
50869 if test "$ol_enable_denyop" != no ; then
50870 BUILD_DENYOP=$ol_enable_denyop
50871 if test "$ol_enable_denyop" = mod ; then
50872 MFLAG=SLAPD_MOD_DYNAMIC
50873 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
50875 MFLAG=SLAPD_MOD_STATIC
50876 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
50879 cat >>confdefs.h <<_ACEOF
50880 #define SLAPD_OVER_DENYOP $MFLAG
50885 if test "$ol_enable_dyngroup" != no ; then
50886 BUILD_DYNGROUP=$ol_enable_dyngroup
50887 if test "$ol_enable_dyngroup" = mod ; then
50888 MFLAG=SLAPD_MOD_DYNAMIC
50889 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
50891 MFLAG=SLAPD_MOD_STATIC
50892 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
50895 cat >>confdefs.h <<_ACEOF
50896 #define SLAPD_OVER_DYNGROUP $MFLAG
50901 if test "$ol_enable_dynlist" != no ; then
50902 BUILD_DYNLIST=$ol_enable_dynlist
50903 if test "$ol_enable_dynlist" = mod ; then
50904 MFLAG=SLAPD_MOD_DYNAMIC
50905 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
50907 MFLAG=SLAPD_MOD_STATIC
50908 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
50911 cat >>confdefs.h <<_ACEOF
50912 #define SLAPD_OVER_DYNLIST $MFLAG
50917 if test "$ol_enable_glue" != no ; then
50918 BUILD_GLUE=$ol_enable_glue
50919 if test "$ol_enable_glue" = mod ; then
50920 MFLAG=SLAPD_MOD_DYNAMIC
50921 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS glue.la"
50923 MFLAG=SLAPD_MOD_STATIC
50924 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS glue.o"
50927 cat >>confdefs.h <<_ACEOF
50928 #define SLAPD_OVER_GLUE $MFLAG
50933 if test "$ol_enable_lastmod" != no ; then
50934 BUILD_LASTMOD=$ol_enable_lastmod
50935 if test "$ol_enable_lastmod" = mod ; then
50936 MFLAG=SLAPD_MOD_DYNAMIC
50937 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
50939 MFLAG=SLAPD_MOD_STATIC
50940 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
50943 cat >>confdefs.h <<_ACEOF
50944 #define SLAPD_OVER_LASTMOD $MFLAG
50949 if test "$ol_enable_ppolicy" != no ; then
50950 BUILD_PPOLICY=$ol_enable_ppolicy
50951 if test "$ol_enable_ppolicy" = mod ; then
50952 MFLAG=SLAPD_MOD_DYNAMIC
50953 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
50955 MFLAG=SLAPD_MOD_STATIC
50956 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
50959 cat >>confdefs.h <<_ACEOF
50960 #define SLAPD_OVER_PPOLICY $MFLAG
50965 if test "$ol_enable_proxycache" != no ; then
50966 BUILD_PROXYCACHE=$ol_enable_proxycache
50967 if test "$ol_enable_proxycache" = mod ; then
50968 MFLAG=SLAPD_MOD_DYNAMIC
50969 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
50971 MFLAG=SLAPD_MOD_STATIC
50972 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
50975 cat >>confdefs.h <<_ACEOF
50976 #define SLAPD_OVER_PROXYCACHE $MFLAG
50981 if test "$ol_enable_refint" != no ; then
50982 BUILD_REFINT=$ol_enable_refint
50983 if test "$ol_enable_refint" = mod ; then
50984 MFLAG=SLAPD_MOD_DYNAMIC
50985 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
50987 MFLAG=SLAPD_MOD_STATIC
50988 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
50991 cat >>confdefs.h <<_ACEOF
50992 #define SLAPD_OVER_REFINT $MFLAG
50997 if test "$ol_enable_retcode" != no ; then
50998 BUILD_RETCODE=$ol_enable_retcode
50999 if test "$ol_enable_retcode" = mod ; then
51000 MFLAG=SLAPD_MOD_DYNAMIC
51001 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
51003 MFLAG=SLAPD_MOD_STATIC
51004 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
51007 cat >>confdefs.h <<_ACEOF
51008 #define SLAPD_OVER_RETCODE $MFLAG
51013 if test "$ol_enable_rwm" != no ; then
51015 BUILD_RWM=$ol_enable_rwm
51016 if test "$ol_enable_rwm" = mod ; then
51017 MFLAG=SLAPD_MOD_DYNAMIC
51018 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
51020 MFLAG=SLAPD_MOD_STATIC
51021 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
51024 cat >>confdefs.h <<_ACEOF
51025 #define SLAPD_OVER_RWM $MFLAG
51030 if test "$ol_enable_syncprov" != no ; then
51031 BUILD_SYNCPROV=$ol_enable_syncprov
51032 if test "$ol_enable_syncprov" = mod ; then
51033 MFLAG=SLAPD_MOD_DYNAMIC
51034 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
51036 MFLAG=SLAPD_MOD_STATIC
51037 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
51040 cat >>confdefs.h <<_ACEOF
51041 #define SLAPD_OVER_SYNCPROV $MFLAG
51046 if test "$ol_enable_translucent" != no ; then
51047 BUILD_TRANSLUCENT=$ol_enable_translucent
51048 if test "$ol_enable_translucent" = mod ; then
51049 MFLAG=SLAPD_MOD_DYNAMIC
51050 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
51052 MFLAG=SLAPD_MOD_STATIC
51053 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
51056 cat >>confdefs.h <<_ACEOF
51057 #define SLAPD_OVER_TRANSLUCENT $MFLAG
51062 if test "$ol_enable_unique" != no ; then
51063 BUILD_UNIQUE=$ol_enable_unique
51064 if test "$ol_enable_unique" = mod ; then
51065 MFLAG=SLAPD_MOD_DYNAMIC
51066 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
51068 MFLAG=SLAPD_MOD_STATIC
51069 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
51072 cat >>confdefs.h <<_ACEOF
51073 #define SLAPD_OVER_UNIQUE $MFLAG
51078 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
51079 $BUILD_SLAPD = yes ; then
51083 if test "$ol_enable_rewrite" != no ; then
51085 cat >>confdefs.h <<\_ACEOF
51086 #define ENABLE_REWRITE 1
51092 if test "$ol_enable_slapi" != no ; then
51094 cat >>confdefs.h <<\_ACEOF
51095 #define ENABLE_SLAPI 1
51099 SLAPD_SLAPI_DEPEND=libslapi.a
51104 if test "$ac_cv_mingw32" = yes ; then
51106 SLAPD_MODULES_LDFLAGS=
51189 # Check whether --with-xxinstall or --without-xxinstall was given.
51190 if test "${with_xxinstall+set}" = set; then
51191 withval="$with_xxinstall"
51196 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"
51197 ac_config_commands="$ac_config_commands default"
51200 test "x$prefix" = xNONE && prefix=$ac_default_prefix
51201 # Let make expand exec_prefix.
51202 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
51204 # VPATH may cause trouble with some makes, so we remove $(srcdir),
51205 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
51206 # trailing colons and then remove the whole line if VPATH becomes empty
51207 # (actually we leave an empty line to preserve line numbers).
51208 if test "x$srcdir" = x.; then
51209 ac_vpsub='/^[ ]*VPATH[ ]*=/{
51210 s/:*\$(srcdir):*/:/;
51211 s/:*\${srcdir}:*/:/;
51213 s/^\([^=]*=[ ]*\):*/\1/;
51219 DEFS=-DHAVE_CONFIG_H
51223 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
51224 # 1. Remove the extension, and $U if already installed.
51225 ac_i=`echo "$ac_i" |
51226 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
51228 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
51229 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
51231 LIBOBJS=$ac_libobjs
51233 LTLIBOBJS=$ac_ltlibobjs
51236 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
51237 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
51238 Usually this means the macro was only invoked conditionally." >&5
51239 echo "$as_me: error: conditional \"AMDEP\" was never defined.
51240 Usually this means the macro was only invoked conditionally." >&2;}
51241 { (exit 1); exit 1; }; }
51243 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
51244 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
51245 Usually this means the macro was only invoked conditionally." >&5
51246 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
51247 Usually this means the macro was only invoked conditionally." >&2;}
51248 { (exit 1); exit 1; }; }
51250 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
51251 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
51252 Usually this means the macro was only invoked conditionally." >&5
51253 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
51254 Usually this means the macro was only invoked conditionally." >&2;}
51255 { (exit 1); exit 1; }; }
51257 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
51258 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
51259 Usually this means the macro was only invoked conditionally." >&5
51260 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
51261 Usually this means the macro was only invoked conditionally." >&2;}
51262 { (exit 1); exit 1; }; }
51265 : ${CONFIG_STATUS=./config.status}
51266 ac_clean_files_save=$ac_clean_files
51267 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
51268 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
51269 echo "$as_me: creating $CONFIG_STATUS" >&6;}
51270 cat >$CONFIG_STATUS <<_ACEOF
51272 # Generated by $as_me.
51273 # Run this file to recreate the current configuration.
51274 # Compiler output produced by configure, useful for debugging
51275 # configure, is in config.log if it exists.
51278 ac_cs_recheck=false
51280 SHELL=\${CONFIG_SHELL-$SHELL}
51283 cat >>$CONFIG_STATUS <<\_ACEOF
51284 ## --------------------- ##
51285 ## M4sh Initialization. ##
51286 ## --------------------- ##
51288 # Be Bourne compatible
51289 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
51292 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
51293 # is contrary to our usage. Disable this feature.
51294 alias -g '${1+"$@"}'='"$@"'
51295 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
51298 DUALCASE=1; export DUALCASE # for MKS sh
51300 # Support unset when possible.
51301 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51308 # Work around bugs in pre-3.0 UWIN ksh.
51309 $as_unset ENV MAIL MAILPATH
51316 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
51317 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
51318 LC_TELEPHONE LC_TIME
51320 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
51321 eval $as_var=C; export $as_var
51327 # Required to use basename.
51328 if expr a : '\(a\)' >/dev/null 2>&1; then
51334 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
51335 as_basename=basename
51341 # Name of the executable.
51342 as_me=`$as_basename "$0" ||
51343 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
51344 X"$0" : 'X\(//\)$' \| \
51345 X"$0" : 'X\(/\)$' \| \
51346 . : '\(.\)' 2>/dev/null ||
51348 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
51349 /^X\/\(\/\/\)$/{ s//\1/; q; }
51350 /^X\/\(\/\).*/{ s//\1/; q; }
51354 # PATH needs CR, and LINENO needs CR and PATH.
51355 # Avoid depending upon Character Ranges.
51356 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
51357 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
51358 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
51359 as_cr_digits='0123456789'
51360 as_cr_alnum=$as_cr_Letters$as_cr_digits
51362 # The user is always right.
51363 if test "${PATH_SEPARATOR+set}" != set; then
51364 echo "#! /bin/sh" >conf$$.sh
51365 echo "exit 0" >>conf$$.sh
51367 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
51376 as_lineno_1=$LINENO
51377 as_lineno_2=$LINENO
51378 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
51379 test "x$as_lineno_1" != "x$as_lineno_2" &&
51380 test "x$as_lineno_3" = "x$as_lineno_2" || {
51381 # Find who we are. Look in the path if we contain no path at all
51384 *[\\/]* ) as_myself=$0 ;;
51385 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51386 for as_dir in $PATH
51389 test -z "$as_dir" && as_dir=.
51390 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
51395 # We did not find ourselves, most probably we were run as `sh COMMAND'
51396 # in which case we are not to be found in the path.
51397 if test "x$as_myself" = x; then
51400 if test ! -f "$as_myself"; then
51401 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
51402 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
51403 { (exit 1); exit 1; }; }
51405 case $CONFIG_SHELL in
51407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51408 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
51411 test -z "$as_dir" && as_dir=.
51412 for as_base in sh bash ksh sh5; do
51415 if ("$as_dir/$as_base" -c '
51416 as_lineno_1=$LINENO
51417 as_lineno_2=$LINENO
51418 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
51419 test "x$as_lineno_1" != "x$as_lineno_2" &&
51420 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
51421 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
51422 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
51423 CONFIG_SHELL=$as_dir/$as_base
51424 export CONFIG_SHELL
51425 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
51433 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
51434 # uniformly replaced by the line number. The first 'sed' inserts a
51435 # line-number line before each line; the second 'sed' does the real
51436 # work. The second script uses 'N' to pair each line-number line
51437 # with the numbered line, and appends trailing '-' during
51438 # substitution so that $LINENO is not a special case at line end.
51439 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
51440 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
51441 sed '=' <$as_myself |
51446 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
51449 s,^['$as_cr_digits']*\n,,
51450 ' >$as_me.lineno &&
51451 chmod +x $as_me.lineno ||
51452 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
51453 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
51454 { (exit 1); exit 1; }; }
51456 # Don't try to exec as it changes $[0], causing all sort of problems
51457 # (the dirname of $[0] is not the place where we might find the
51458 # original and so on. Autoconf is especially sensible to this).
51460 # Exit status is that of the last command.
51465 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
51466 *c*,-n*) ECHO_N= ECHO_C='
51468 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
51469 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
51472 if expr a : '\(a\)' >/dev/null 2>&1; then
51478 rm -f conf$$ conf$$.exe conf$$.file
51480 if ln -s conf$$.file conf$$ 2>/dev/null; then
51481 # We could just check for DJGPP; but this test a) works b) is more generic
51482 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
51483 if test -f conf$$.exe; then
51484 # Don't use ln at all; we don't have any links
51489 elif ln conf$$.file conf$$ 2>/dev/null; then
51494 rm -f conf$$ conf$$.exe conf$$.file
51496 if mkdir -p . 2>/dev/null; then
51499 test -d ./-p && rmdir ./-p
51503 as_executable_p="test -f"
51505 # Sed expression to map a string onto a valid CPP name.
51506 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
51508 # Sed expression to map a string onto a valid variable name.
51509 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
51513 # We need space, tab and new line, in precisely that order.
51523 # Open the log real soon, to keep \$[0] and so on meaningful, and to
51524 # report actual input values of CONFIG_FILES etc. instead of their
51525 # values after options handling. Logging --version etc. is OK.
51529 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
51530 ## Running $as_me. ##
51535 This file was extended by $as_me, which was
51536 generated by GNU Autoconf 2.59. Invocation command line was
51538 CONFIG_FILES = $CONFIG_FILES
51539 CONFIG_HEADERS = $CONFIG_HEADERS
51540 CONFIG_LINKS = $CONFIG_LINKS
51541 CONFIG_COMMANDS = $CONFIG_COMMANDS
51545 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
51549 # Files that config.status was made for.
51550 if test -n "$ac_config_files"; then
51551 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
51554 if test -n "$ac_config_headers"; then
51555 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
51558 if test -n "$ac_config_links"; then
51559 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
51562 if test -n "$ac_config_commands"; then
51563 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
51566 cat >>$CONFIG_STATUS <<\_ACEOF
51569 \`$as_me' instantiates files from templates according to the
51570 current configuration.
51572 Usage: $0 [OPTIONS] [FILE]...
51574 -h, --help print this help, then exit
51575 -V, --version print version number, then exit
51576 -q, --quiet do not print progress messages
51577 -d, --debug don't remove temporary files
51578 --recheck update $as_me by reconfiguring in the same conditions
51579 --file=FILE[:TEMPLATE]
51580 instantiate the configuration file FILE
51581 --header=FILE[:TEMPLATE]
51582 instantiate the configuration header FILE
51584 Configuration files:
51587 Configuration headers:
51590 Configuration commands:
51593 Report bugs to <bug-autoconf@gnu.org>."
51596 cat >>$CONFIG_STATUS <<_ACEOF
51599 configured by $0, generated by GNU Autoconf 2.59,
51600 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
51602 Copyright (C) 2003 Free Software Foundation, Inc.
51603 This config.status script is free software; the Free Software Foundation
51604 gives unlimited permission to copy, distribute and modify it."
51609 cat >>$CONFIG_STATUS <<\_ACEOF
51610 # If no file are specified by the user, then we need to provide default
51611 # value. By we need to know if files were specified by the user.
51617 ac_option=`expr "x$1" : 'x\([^=]*\)='`
51618 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
51626 *) # This is not an option, so the user has probably given explicit
51629 ac_need_defaults=false;;
51633 # Handling of the options.
51635 cat >>$CONFIG_STATUS <<\_ACEOF
51636 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
51638 --version | --vers* | -V )
51639 echo "$ac_cs_version"; exit 0 ;;
51641 # Conflict between --help and --header
51642 { { echo "$as_me:$LINENO: error: ambiguous option: $1
51643 Try \`$0 --help' for more information." >&5
51644 echo "$as_me: error: ambiguous option: $1
51645 Try \`$0 --help' for more information." >&2;}
51646 { (exit 1); exit 1; }; };;
51647 --help | --hel | -h )
51648 echo "$ac_cs_usage"; exit 0 ;;
51649 --debug | --d* | -d )
51651 --file | --fil | --fi | --f )
51653 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
51654 ac_need_defaults=false;;
51655 --header | --heade | --head | --hea )
51657 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
51658 ac_need_defaults=false;;
51659 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
51660 | -silent | --silent | --silen | --sile | --sil | --si | --s)
51663 # This is an error.
51664 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
51665 Try \`$0 --help' for more information." >&5
51666 echo "$as_me: error: unrecognized option: $1
51667 Try \`$0 --help' for more information." >&2;}
51668 { (exit 1); exit 1; }; } ;;
51670 *) ac_config_targets="$ac_config_targets $1" ;;
51676 ac_configure_extra_args=
51678 if $ac_cs_silent; then
51680 ac_configure_extra_args="$ac_configure_extra_args --silent"
51684 cat >>$CONFIG_STATUS <<_ACEOF
51685 if \$ac_cs_recheck; then
51686 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
51687 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
51692 cat >>$CONFIG_STATUS <<_ACEOF
51694 # INIT-COMMANDS section.
51697 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
51698 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
51704 cat >>$CONFIG_STATUS <<\_ACEOF
51705 for ac_config_target in $ac_config_targets
51707 case "$ac_config_target" in
51708 # Handling of arguments.
51709 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
51710 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
51711 "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
51712 "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
51713 "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
51714 "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
51715 "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
51716 "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
51717 "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
51718 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
51719 "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
51720 "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
51721 "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
51722 "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" ;;
51723 "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
51724 "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
51725 "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
51726 "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
51727 "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
51728 "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" ;;
51729 "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" ;;
51730 "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" ;;
51731 "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" ;;
51732 "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" ;;
51733 "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" ;;
51734 "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" ;;
51735 "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" ;;
51736 "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" ;;
51737 "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" ;;
51738 "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" ;;
51739 "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" ;;
51740 "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" ;;
51741 "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" ;;
51742 "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" ;;
51743 "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" ;;
51744 "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
51745 "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
51746 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
51747 "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
51748 "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
51749 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
51750 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
51751 "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h" ;;
51752 "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h" ;;
51753 "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h" ;;
51754 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
51755 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
51756 { (exit 1); exit 1; }; };;
51760 # If the user did not use the arguments to specify the items to instantiate,
51761 # then the envvar interface is used. Set only those that are not.
51762 # We use the long form for the default assignment because of an extremely
51763 # bizarre bug on SunOS 4.1.3.
51764 if $ac_need_defaults; then
51765 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
51766 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
51767 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
51770 # Have a temporary directory for convenience. Make it in the build tree
51771 # simply because there is no reason to put it here, and in addition,
51772 # creating and moving files from /tmp can sometimes cause problems.
51773 # Create a temporary directory, and hook for its removal unless debugging.
51776 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
51777 trap '{ (exit 1); exit 1; }' 1 2 13 15
51780 # Create a (secure) tmp directory for tmp files.
51783 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
51784 test -n "$tmp" && test -d "$tmp"
51787 tmp=./confstat$$-$RANDOM
51788 (umask 077 && mkdir $tmp)
51791 echo "$me: cannot create a temporary directory in ." >&2
51792 { (exit 1); exit 1; }
51797 cat >>$CONFIG_STATUS <<_ACEOF
51800 # CONFIG_FILES section.
51803 # No need to generate the scripts if there are no CONFIG_FILES.
51804 # This happens for instance when ./config.status config.h
51805 if test -n "\$CONFIG_FILES"; then
51806 # Protect against being on the right side of a sed subst in config.status.
51807 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
51808 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
51809 s,@SHELL@,$SHELL,;t t
51810 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
51811 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
51812 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
51813 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
51814 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
51815 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
51816 s,@exec_prefix@,$exec_prefix,;t t
51817 s,@prefix@,$prefix,;t t
51818 s,@program_transform_name@,$program_transform_name,;t t
51819 s,@bindir@,$bindir,;t t
51820 s,@sbindir@,$sbindir,;t t
51821 s,@libexecdir@,$libexecdir,;t t
51822 s,@datadir@,$datadir,;t t
51823 s,@sysconfdir@,$sysconfdir,;t t
51824 s,@sharedstatedir@,$sharedstatedir,;t t
51825 s,@localstatedir@,$localstatedir,;t t
51826 s,@libdir@,$libdir,;t t
51827 s,@includedir@,$includedir,;t t
51828 s,@oldincludedir@,$oldincludedir,;t t
51829 s,@infodir@,$infodir,;t t
51830 s,@mandir@,$mandir,;t t
51831 s,@build_alias@,$build_alias,;t t
51832 s,@host_alias@,$host_alias,;t t
51833 s,@target_alias@,$target_alias,;t t
51834 s,@DEFS@,$DEFS,;t t
51835 s,@ECHO_C@,$ECHO_C,;t t
51836 s,@ECHO_N@,$ECHO_N,;t t
51837 s,@ECHO_T@,$ECHO_T,;t t
51838 s,@LIBS@,$LIBS,;t t
51839 s,@build@,$build,;t t
51840 s,@build_cpu@,$build_cpu,;t t
51841 s,@build_vendor@,$build_vendor,;t t
51842 s,@build_os@,$build_os,;t t
51843 s,@host@,$host,;t t
51844 s,@host_cpu@,$host_cpu,;t t
51845 s,@host_vendor@,$host_vendor,;t t
51846 s,@host_os@,$host_os,;t t
51847 s,@target@,$target,;t t
51848 s,@target_cpu@,$target_cpu,;t t
51849 s,@target_vendor@,$target_vendor,;t t
51850 s,@target_os@,$target_os,;t t
51851 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
51852 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
51853 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
51854 s,@CYGPATH_W@,$CYGPATH_W,;t t
51855 s,@PACKAGE@,$PACKAGE,;t t
51856 s,@VERSION@,$VERSION,;t t
51857 s,@ACLOCAL@,$ACLOCAL,;t t
51858 s,@AUTOCONF@,$AUTOCONF,;t t
51859 s,@AUTOMAKE@,$AUTOMAKE,;t t
51860 s,@AUTOHEADER@,$AUTOHEADER,;t t
51861 s,@MAKEINFO@,$MAKEINFO,;t t
51862 s,@install_sh@,$install_sh,;t t
51863 s,@STRIP@,$STRIP,;t t
51864 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
51865 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
51866 s,@mkdir_p@,$mkdir_p,;t t
51868 s,@SET_MAKE@,$SET_MAKE,;t t
51869 s,@am__leading_dot@,$am__leading_dot,;t t
51870 s,@AMTAR@,$AMTAR,;t t
51871 s,@am__tar@,$am__tar,;t t
51872 s,@am__untar@,$am__untar,;t t
51873 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
51874 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
51875 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
51876 s,@top_builddir@,$top_builddir,;t t
51877 s,@ldap_subdir@,$ldap_subdir,;t t
51880 s,@CFLAGS@,$CFLAGS,;t t
51881 s,@LDFLAGS@,$LDFLAGS,;t t
51882 s,@CPPFLAGS@,$CPPFLAGS,;t t
51883 s,@ac_ct_CC@,$ac_ct_CC,;t t
51884 s,@EXEEXT@,$EXEEXT,;t t
51885 s,@OBJEXT@,$OBJEXT,;t t
51886 s,@DEPDIR@,$DEPDIR,;t t
51887 s,@am__include@,$am__include,;t t
51888 s,@am__quote@,$am__quote,;t t
51889 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
51890 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
51891 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
51892 s,@CCDEPMODE@,$CCDEPMODE,;t t
51893 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
51894 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
51895 s,@EGREP@,$EGREP,;t t
51896 s,@LN_S@,$LN_S,;t t
51897 s,@ECHO@,$ECHO,;t t
51898 s,@ac_ct_AR@,$ac_ct_AR,;t t
51899 s,@RANLIB@,$RANLIB,;t t
51900 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
51901 s,@DLLTOOL@,$DLLTOOL,;t t
51902 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
51904 s,@ac_ct_AS@,$ac_ct_AS,;t t
51905 s,@OBJDUMP@,$OBJDUMP,;t t
51906 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
51909 s,@CXXFLAGS@,$CXXFLAGS,;t t
51910 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
51911 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
51912 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
51913 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
51914 s,@CXXCPP@,$CXXCPP,;t t
51916 s,@FFLAGS@,$FFLAGS,;t t
51917 s,@ac_ct_F77@,$ac_ct_F77,;t t
51918 s,@LIBTOOL@,$LIBTOOL,;t t
51919 s,@PERLBIN@,$PERLBIN,;t t
51920 s,@OL_MKDEP@,$OL_MKDEP,;t t
51921 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
51922 s,@LTSTATIC@,$LTSTATIC,;t t
51923 s,@LIBOBJS@,$LIBOBJS,;t t
51924 s,@LIBSRCS@,$LIBSRCS,;t t
51925 s,@PLAT@,$PLAT,;t t
51926 s,@WITH_SASL@,$WITH_SASL,;t t
51927 s,@WITH_TLS@,$WITH_TLS,;t t
51928 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
51929 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
51930 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
51931 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
51932 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
51933 s,@BUILD_BDB@,$BUILD_BDB,;t t
51934 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
51935 s,@BUILD_HDB@,$BUILD_HDB,;t t
51936 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
51937 s,@BUILD_LDBM@,$BUILD_LDBM,;t t
51938 s,@BUILD_META@,$BUILD_META,;t t
51939 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
51940 s,@BUILD_NULL@,$BUILD_NULL,;t t
51941 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
51942 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
51943 s,@BUILD_PERL@,$BUILD_PERL,;t t
51944 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
51945 s,@BUILD_SQL@,$BUILD_SQL,;t t
51946 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
51947 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
51948 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
51949 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
51950 s,@BUILD_GLUE@,$BUILD_GLUE,;t t
51951 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
51952 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
51953 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
51954 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
51955 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
51956 s,@BUILD_RWM@,$BUILD_RWM,;t t
51957 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
51958 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
51959 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
51960 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
51961 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
51962 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
51963 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
51964 s,@LDBM_LIBS@,$LDBM_LIBS,;t t
51965 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
51966 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
51967 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
51968 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
51969 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
51970 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
51971 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
51972 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
51973 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
51974 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
51975 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
51976 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
51977 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
51978 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
51979 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
51980 s,@SASL_LIBS@,$SASL_LIBS,;t t
51981 s,@TLS_LIBS@,$TLS_LIBS,;t t
51982 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
51983 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
51984 s,@LIBSLAPI@,$LIBSLAPI,;t t
51985 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
51986 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
51987 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
51988 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
51989 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
51990 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
51991 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
51992 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
51997 cat >>$CONFIG_STATUS <<\_ACEOF
51998 # Split the substitutions into bite-sized pieces for seds with
51999 # small command number limits, like on Digital OSF/1 and HP-UX.
52000 ac_max_sed_lines=48
52001 ac_sed_frag=1 # Number of current file.
52002 ac_beg=1 # First line for current file.
52003 ac_end=$ac_max_sed_lines # Line after last line for current file.
52006 while $ac_more_lines; do
52007 if test $ac_beg -gt 1; then
52008 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
52010 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
52012 if test ! -s $tmp/subs.frag; then
52013 ac_more_lines=false
52015 # The purpose of the label and of the branching condition is to
52016 # speed up the sed processing (if there are no `@' at all, there
52017 # is no need to browse any of the substitutions).
52018 # These are the two extra sed commands mentioned above.
52020 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
52021 if test -z "$ac_sed_cmds"; then
52022 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
52024 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
52026 ac_sed_frag=`expr $ac_sed_frag + 1`
52028 ac_end=`expr $ac_end + $ac_max_sed_lines`
52031 if test -z "$ac_sed_cmds"; then
52034 fi # test -n "$CONFIG_FILES"
52037 cat >>$CONFIG_STATUS <<\_ACEOF
52038 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
52039 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
52041 - | *:- | *:-:* ) # input from stdin
52043 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
52044 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
52045 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
52046 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
52047 * ) ac_file_in=$ac_file.in ;;
52050 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
52051 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
52052 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52053 X"$ac_file" : 'X\(//\)[^/]' \| \
52054 X"$ac_file" : 'X\(//\)$' \| \
52055 X"$ac_file" : 'X\(/\)' \| \
52056 . : '\(.\)' 2>/dev/null ||
52058 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52059 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52060 /^X\(\/\/\)$/{ s//\1/; q; }
52061 /^X\(\/\).*/{ s//\1/; q; }
52063 { if $as_mkdir_p; then
52068 while test ! -d "$as_dir"; do
52069 as_dirs="$as_dir $as_dirs"
52070 as_dir=`(dirname "$as_dir") 2>/dev/null ||
52071 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52072 X"$as_dir" : 'X\(//\)[^/]' \| \
52073 X"$as_dir" : 'X\(//\)$' \| \
52074 X"$as_dir" : 'X\(/\)' \| \
52075 . : '\(.\)' 2>/dev/null ||
52077 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52078 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52079 /^X\(\/\/\)$/{ s//\1/; q; }
52080 /^X\(\/\).*/{ s//\1/; q; }
52083 test ! -n "$as_dirs" || mkdir $as_dirs
52084 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52085 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52086 { (exit 1); exit 1; }; }; }
52090 if test "$ac_dir" != .; then
52091 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52092 # A "../" for each directory in $ac_dir_suffix.
52093 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
52095 ac_dir_suffix= ac_top_builddir=
52099 .) # No --srcdir option. We are building in place.
52101 if test -z "$ac_top_builddir"; then
52104 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
52106 [\\/]* | ?:[\\/]* ) # Absolute path.
52107 ac_srcdir=$srcdir$ac_dir_suffix;
52108 ac_top_srcdir=$srcdir ;;
52109 *) # Relative path.
52110 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
52111 ac_top_srcdir=$ac_top_builddir$srcdir ;;
52114 # Do not use `cd foo && pwd` to compute absolute paths, because
52115 # the directories may not exist.
52117 .) ac_abs_builddir="$ac_dir";;
52120 .) ac_abs_builddir=`pwd`;;
52121 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
52122 *) ac_abs_builddir=`pwd`/"$ac_dir";;
52125 case $ac_abs_builddir in
52126 .) ac_abs_top_builddir=${ac_top_builddir}.;;
52128 case ${ac_top_builddir}. in
52129 .) ac_abs_top_builddir=$ac_abs_builddir;;
52130 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
52131 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
52134 case $ac_abs_builddir in
52135 .) ac_abs_srcdir=$ac_srcdir;;
52138 .) ac_abs_srcdir=$ac_abs_builddir;;
52139 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
52140 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
52143 case $ac_abs_builddir in
52144 .) ac_abs_top_srcdir=$ac_top_srcdir;;
52146 case $ac_top_srcdir in
52147 .) ac_abs_top_srcdir=$ac_abs_builddir;;
52148 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
52149 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
52155 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
52156 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
52159 if test x"$ac_file" != x-; then
52160 { echo "$as_me:$LINENO: creating $ac_file" >&5
52161 echo "$as_me: creating $ac_file" >&6;}
52164 # Let's still pretend it is `configure' which instantiates (i.e., don't
52165 # use $as_me), people would be surprised to read:
52166 # /* config.h. Generated by config.status. */
52167 if test x"$ac_file" = x-; then
52170 configure_input="$ac_file. "
52172 configure_input=$configure_input"Generated from `echo $ac_file_in |
52173 sed 's,.*/,,'` by configure."
52175 # First look for the input files in the build tree, otherwise in the
52177 ac_file_inputs=`IFS=:
52178 for f in $ac_file_in; do
52180 -) echo $tmp/stdin ;;
52182 # Absolute (can't be DOS-style, as IFS=:)
52183 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
52184 echo "$as_me: error: cannot find input file: $f" >&2;}
52185 { (exit 1); exit 1; }; }
52188 if test -f "$f"; then
52191 elif test -f "$srcdir/$f"; then
52196 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
52197 echo "$as_me: error: cannot find input file: $f" >&2;}
52198 { (exit 1); exit 1; }; }
52201 done` || { (exit 1); exit 1; }
52203 cat >>$CONFIG_STATUS <<_ACEOF
52207 cat >>$CONFIG_STATUS <<\_ACEOF
52209 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
52210 s,@configure_input@,$configure_input,;t t
52211 s,@srcdir@,$ac_srcdir,;t t
52212 s,@abs_srcdir@,$ac_abs_srcdir,;t t
52213 s,@top_srcdir@,$ac_top_srcdir,;t t
52214 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
52215 s,@builddir@,$ac_builddir,;t t
52216 s,@abs_builddir@,$ac_abs_builddir,;t t
52217 s,@top_builddir@,$ac_top_builddir,;t t
52218 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
52219 s,@INSTALL@,$ac_INSTALL,;t t
52220 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
52222 if test x"$ac_file" != x-; then
52223 mv $tmp/out $ac_file
52231 cat >>$CONFIG_STATUS <<\_ACEOF
52234 # CONFIG_HEADER section.
52237 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
52238 # NAME is the cpp macro being defined and VALUE is the value it is being given.
52240 # ac_d sets the value in "#define NAME VALUE" lines.
52241 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
52242 ac_dB='[ ].*$,\1#\2'
52245 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
52246 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
52247 ac_uB='$,\1#\2define\3'
52251 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
52252 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
52254 - | *:- | *:-:* ) # input from stdin
52256 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
52257 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
52258 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
52259 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
52260 * ) ac_file_in=$ac_file.in ;;
52263 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
52264 echo "$as_me: creating $ac_file" >&6;}
52266 # First look for the input files in the build tree, otherwise in the
52268 ac_file_inputs=`IFS=:
52269 for f in $ac_file_in; do
52271 -) echo $tmp/stdin ;;
52273 # Absolute (can't be DOS-style, as IFS=:)
52274 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
52275 echo "$as_me: error: cannot find input file: $f" >&2;}
52276 { (exit 1); exit 1; }; }
52277 # Do quote $f, to prevent DOS paths from being IFS'd.
52280 if test -f "$f"; then
52283 elif test -f "$srcdir/$f"; then
52288 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
52289 echo "$as_me: error: cannot find input file: $f" >&2;}
52290 { (exit 1); exit 1; }; }
52293 done` || { (exit 1); exit 1; }
52294 # Remove the trailing spaces.
52295 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
52299 # Transform confdefs.h into two sed scripts, `conftest.defines' and
52300 # `conftest.undefs', that substitutes the proper values into
52301 # config.h.in to produce config.h. The first handles `#define'
52302 # templates, and the second `#undef' templates.
52303 # And first: Protect against being on the right side of a sed subst in
52304 # config.status. Protect against being in an unquoted here document
52305 # in config.status.
52306 rm -f conftest.defines conftest.undefs
52307 # Using a here document instead of a string reduces the quoting nightmare.
52308 # Putting comments in sed scripts is not portable.
52310 # `end' is used to avoid that the second main sed command (meant for
52311 # 0-ary CPP macros) applies to n-ary macro definitions.
52312 # See the Autoconf documentation for `clear'.
52313 cat >confdef2sed.sed <<\_ACEOF
52318 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
52320 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
52323 # If some macros were called several times there might be several times
52324 # the same #defines, which is useless. Nevertheless, we may not want to
52325 # sort them, since we want the *last* AC-DEFINE to be honored.
52326 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
52327 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
52328 rm -f confdef2sed.sed
52330 # This sed command replaces #undef with comments. This is necessary, for
52331 # example, in the case of _POSIX_SOURCE, which is predefined and required
52332 # on some systems where configure will not decide to define it.
52333 cat >>conftest.undefs <<\_ACEOF
52334 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
52337 # Break up conftest.defines because some shells have a limit on the size
52338 # of here documents, and old seds have small limits too (100 cmds).
52339 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
52340 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
52341 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
52342 echo ' :' >>$CONFIG_STATUS
52343 rm -f conftest.tail
52344 while grep . conftest.defines >/dev/null
52346 # Write a limited-size here document to $tmp/defines.sed.
52347 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
52348 # Speed up: don't consider the non `#define' lines.
52349 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
52350 # Work around the forget-to-reset-the-flag bug.
52351 echo 't clr' >>$CONFIG_STATUS
52352 echo ': clr' >>$CONFIG_STATUS
52353 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
52355 sed -f $tmp/defines.sed $tmp/in >$tmp/out
52357 mv $tmp/out $tmp/in
52359 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
52360 rm -f conftest.defines
52361 mv conftest.tail conftest.defines
52363 rm -f conftest.defines
52364 echo ' fi # grep' >>$CONFIG_STATUS
52365 echo >>$CONFIG_STATUS
52367 # Break up conftest.undefs because some shells have a limit on the size
52368 # of here documents, and old seds have small limits too (100 cmds).
52369 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
52370 rm -f conftest.tail
52371 while grep . conftest.undefs >/dev/null
52373 # Write a limited-size here document to $tmp/undefs.sed.
52374 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
52375 # Speed up: don't consider the non `#undef'
52376 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
52377 # Work around the forget-to-reset-the-flag bug.
52378 echo 't clr' >>$CONFIG_STATUS
52379 echo ': clr' >>$CONFIG_STATUS
52380 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
52382 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
52384 mv $tmp/out $tmp/in
52386 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
52387 rm -f conftest.undefs
52388 mv conftest.tail conftest.undefs
52390 rm -f conftest.undefs
52392 cat >>$CONFIG_STATUS <<\_ACEOF
52393 # Let's still pretend it is `configure' which instantiates (i.e., don't
52394 # use $as_me), people would be surprised to read:
52395 # /* config.h. Generated by config.status. */
52396 if test x"$ac_file" = x-; then
52397 echo "/* Generated by configure. */" >$tmp/config.h
52399 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
52401 cat $tmp/in >>$tmp/config.h
52403 if test x"$ac_file" != x-; then
52404 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
52405 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
52406 echo "$as_me: $ac_file is unchanged" >&6;}
52408 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
52409 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52410 X"$ac_file" : 'X\(//\)[^/]' \| \
52411 X"$ac_file" : 'X\(//\)$' \| \
52412 X"$ac_file" : 'X\(/\)' \| \
52413 . : '\(.\)' 2>/dev/null ||
52415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52416 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52417 /^X\(\/\/\)$/{ s//\1/; q; }
52418 /^X\(\/\).*/{ s//\1/; q; }
52420 { if $as_mkdir_p; then
52425 while test ! -d "$as_dir"; do
52426 as_dirs="$as_dir $as_dirs"
52427 as_dir=`(dirname "$as_dir") 2>/dev/null ||
52428 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52429 X"$as_dir" : 'X\(//\)[^/]' \| \
52430 X"$as_dir" : 'X\(//\)$' \| \
52431 X"$as_dir" : 'X\(/\)' \| \
52432 . : '\(.\)' 2>/dev/null ||
52434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52435 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52436 /^X\(\/\/\)$/{ s//\1/; q; }
52437 /^X\(\/\).*/{ s//\1/; q; }
52440 test ! -n "$as_dirs" || mkdir $as_dirs
52441 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52442 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52443 { (exit 1); exit 1; }; }; }
52446 mv $tmp/config.h $ac_file
52450 rm -f $tmp/config.h
52452 # Compute $ac_file's index in $config_headers.
52454 for _am_header in $config_headers :; do
52455 case $_am_header in
52456 $ac_file | $ac_file:* )
52459 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
52462 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
52463 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52464 X$ac_file : 'X\(//\)[^/]' \| \
52465 X$ac_file : 'X\(//\)$' \| \
52466 X$ac_file : 'X\(/\)' \| \
52467 . : '\(.\)' 2>/dev/null ||
52469 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52470 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52471 /^X\(\/\/\)$/{ s//\1/; q; }
52472 /^X\(\/\).*/{ s//\1/; q; }
52473 s/.*/./; q'`/stamp-h$_am_stamp_count
52476 cat >>$CONFIG_STATUS <<\_ACEOF
52479 # CONFIG_COMMANDS section.
52481 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
52482 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
52483 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
52484 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
52485 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52486 X"$ac_dest" : 'X\(//\)[^/]' \| \
52487 X"$ac_dest" : 'X\(//\)$' \| \
52488 X"$ac_dest" : 'X\(/\)' \| \
52489 . : '\(.\)' 2>/dev/null ||
52491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52492 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52493 /^X\(\/\/\)$/{ s//\1/; q; }
52494 /^X\(\/\).*/{ s//\1/; q; }
52496 { if $as_mkdir_p; then
52501 while test ! -d "$as_dir"; do
52502 as_dirs="$as_dir $as_dirs"
52503 as_dir=`(dirname "$as_dir") 2>/dev/null ||
52504 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52505 X"$as_dir" : 'X\(//\)[^/]' \| \
52506 X"$as_dir" : 'X\(//\)$' \| \
52507 X"$as_dir" : 'X\(/\)' \| \
52508 . : '\(.\)' 2>/dev/null ||
52510 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52511 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52512 /^X\(\/\/\)$/{ s//\1/; q; }
52513 /^X\(\/\).*/{ s//\1/; q; }
52516 test ! -n "$as_dirs" || mkdir $as_dirs
52517 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52518 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52519 { (exit 1); exit 1; }; }; }
52523 if test "$ac_dir" != .; then
52524 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52525 # A "../" for each directory in $ac_dir_suffix.
52526 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
52528 ac_dir_suffix= ac_top_builddir=
52532 .) # No --srcdir option. We are building in place.
52534 if test -z "$ac_top_builddir"; then
52537 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
52539 [\\/]* | ?:[\\/]* ) # Absolute path.
52540 ac_srcdir=$srcdir$ac_dir_suffix;
52541 ac_top_srcdir=$srcdir ;;
52542 *) # Relative path.
52543 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
52544 ac_top_srcdir=$ac_top_builddir$srcdir ;;
52547 # Do not use `cd foo && pwd` to compute absolute paths, because
52548 # the directories may not exist.
52550 .) ac_abs_builddir="$ac_dir";;
52553 .) ac_abs_builddir=`pwd`;;
52554 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
52555 *) ac_abs_builddir=`pwd`/"$ac_dir";;
52558 case $ac_abs_builddir in
52559 .) ac_abs_top_builddir=${ac_top_builddir}.;;
52561 case ${ac_top_builddir}. in
52562 .) ac_abs_top_builddir=$ac_abs_builddir;;
52563 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
52564 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
52567 case $ac_abs_builddir in
52568 .) ac_abs_srcdir=$ac_srcdir;;
52571 .) ac_abs_srcdir=$ac_abs_builddir;;
52572 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
52573 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
52576 case $ac_abs_builddir in
52577 .) ac_abs_top_srcdir=$ac_top_srcdir;;
52579 case $ac_top_srcdir in
52580 .) ac_abs_top_srcdir=$ac_abs_builddir;;
52581 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
52582 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
52587 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
52588 echo "$as_me: executing $ac_dest commands" >&6;}
52590 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
52591 # Strip MF so we end up with the name of the file.
52592 mf=`echo "$mf" | sed -e 's/:.*$//'`
52593 # Check whether this is an Automake generated Makefile or not.
52594 # We used to match only the files named `Makefile.in', but
52595 # some people rename them; so instead we look at the file content.
52596 # Grep'ing the first line is not enough: some people post-process
52597 # each Makefile.in and add a new line on top of each file to say so.
52598 # So let's grep whole file.
52599 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
52600 dirpart=`(dirname "$mf") 2>/dev/null ||
52601 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52602 X"$mf" : 'X\(//\)[^/]' \| \
52603 X"$mf" : 'X\(//\)$' \| \
52604 X"$mf" : 'X\(/\)' \| \
52605 . : '\(.\)' 2>/dev/null ||
52607 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52608 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52609 /^X\(\/\/\)$/{ s//\1/; q; }
52610 /^X\(\/\).*/{ s//\1/; q; }
52615 # Extract the definition of DEPDIR, am__include, and am__quote
52616 # from the Makefile without running `make'.
52617 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
52618 test -z "$DEPDIR" && continue
52619 am__include=`sed -n 's/^am__include = //p' < "$mf"`
52620 test -z "am__include" && continue
52621 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
52622 # When using ansi2knr, U may be empty or an underscore; expand it
52623 U=`sed -n 's/^U = //p' < "$mf"`
52624 # Find all dependency output files, they are included files with
52625 # $(DEPDIR) in their names. We invoke sed twice because it is the
52626 # simplest approach to changing $(DEPDIR) to its actual value in the
52628 for file in `sed -n "
52629 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
52630 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
52631 # Make sure the directory exists.
52632 test -f "$dirpart/$file" && continue
52633 fdir=`(dirname "$file") 2>/dev/null ||
52634 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52635 X"$file" : 'X\(//\)[^/]' \| \
52636 X"$file" : 'X\(//\)$' \| \
52637 X"$file" : 'X\(/\)' \| \
52638 . : '\(.\)' 2>/dev/null ||
52640 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52641 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52642 /^X\(\/\/\)$/{ s//\1/; q; }
52643 /^X\(\/\).*/{ s//\1/; q; }
52645 { if $as_mkdir_p; then
52646 mkdir -p $dirpart/$fdir
52648 as_dir=$dirpart/$fdir
52650 while test ! -d "$as_dir"; do
52651 as_dirs="$as_dir $as_dirs"
52652 as_dir=`(dirname "$as_dir") 2>/dev/null ||
52653 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52654 X"$as_dir" : 'X\(//\)[^/]' \| \
52655 X"$as_dir" : 'X\(//\)$' \| \
52656 X"$as_dir" : 'X\(/\)' \| \
52657 . : '\(.\)' 2>/dev/null ||
52659 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52660 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52661 /^X\(\/\/\)$/{ s//\1/; q; }
52662 /^X\(\/\).*/{ s//\1/; q; }
52665 test ! -n "$as_dirs" || mkdir $as_dirs
52666 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
52667 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
52668 { (exit 1); exit 1; }; }; }
52670 # echo "creating $dirpart/$file"
52671 echo '# dummy' > "$dirpart/$file"
52678 BACKENDSC="servers/slapd/backends.c"
52679 echo "Making $BACKENDSC"
52681 cat > $BACKENDSC << ENDX
52682 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
52684 * Copyright 1998-2005 The OpenLDAP Foundation.
52685 * All rights reserved.
52687 * Redistribution and use in source and binary forms, with or without
52688 * modification, are permitted only as authorized by the OpenLDAP
52691 * A copy of this license is available in the file LICENSE in the
52692 * top-level directory of the distribution or, alternatively, at
52693 * <http://www.OpenLDAP.org/license.html>.
52695 /* This file is automatically generated by configure; please do not edit. */
52697 #include "portable.h"
52701 if test "${STATIC_BACKENDS}"; then
52702 for b in config ${STATIC_BACKENDS}; do
52703 bb=`echo "${b}" | sed -e 's/back-//'`
52704 cat >> $BACKENDSC << ENDX
52705 extern BI_init ${bb}_back_initialize;
52709 cat >> $BACKENDSC << ENDX
52711 BackendInfo slap_binfo[] = {
52714 for b in config ${STATIC_BACKENDS}; do
52715 bb=`echo "${b}" | sed -e 's/back-//'`
52716 echo " Add ${bb} ..."
52717 cat >> $BACKENDSC << ENDX
52718 { "${bb}", ${bb}_back_initialize },
52722 cat >> $BACKENDSC << ENDX
52726 /* end of generated file */
52730 echo Please run \"make depend\" to build dependencies
52736 cat >>$CONFIG_STATUS <<\_ACEOF
52738 { (exit 0); exit 0; }
52740 chmod +x $CONFIG_STATUS
52741 ac_clean_files=$ac_clean_files_save
52744 # configure is writing to config.log, and then calls config.status.
52745 # config.status does its own redirection, appending to config.log.
52746 # Unfortunately, on DOS this fails, as config.log is still kept open
52747 # by configure, so config.status won't be able to write to it; its
52748 # output is simply discarded. So we exec the FD to /dev/null,
52749 # effectively closing config.log, so it can be properly (re)opened and
52750 # appended to by config.status. When coming back to configure, we
52751 # need to make the FD available again.
52752 if test "$no_create" != yes; then
52754 ac_config_status_args=
52755 test "$silent" = yes &&
52756 ac_config_status_args="$ac_config_status_args --quiet"
52758 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
52760 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
52761 # would make configure fail if this is the last instruction.
52762 $ac_cs_success || { (exit 1); exit 1; }