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
24119 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24120 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24121 echo "$as_me:$LINENO: checking for $ac_header" >&5
24122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24124 echo $ECHO_N "(cached) $ECHO_C" >&6
24126 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24127 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24129 # Is the header compilable?
24130 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24131 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24132 cat >conftest.$ac_ext <<_ACEOF
24135 cat confdefs.h >>conftest.$ac_ext
24136 cat >>conftest.$ac_ext <<_ACEOF
24137 /* end confdefs.h. */
24138 $ac_includes_default
24139 #include <$ac_header>
24141 rm -f conftest.$ac_objext
24142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24143 (eval $ac_compile) 2>conftest.er1
24145 grep -v '^ *+' conftest.er1 >conftest.err
24147 cat conftest.err >&5
24148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24149 (exit $ac_status); } &&
24150 { ac_try='test -z "$ac_c_werror_flag"
24151 || test ! -s conftest.err'
24152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24153 (eval $ac_try) 2>&5
24155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24156 (exit $ac_status); }; } &&
24157 { ac_try='test -s conftest.$ac_objext'
24158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24159 (eval $ac_try) 2>&5
24161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24162 (exit $ac_status); }; }; then
24163 ac_header_compiler=yes
24165 echo "$as_me: failed program was:" >&5
24166 sed 's/^/| /' conftest.$ac_ext >&5
24168 ac_header_compiler=no
24170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24171 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24172 echo "${ECHO_T}$ac_header_compiler" >&6
24174 # Is the header present?
24175 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24176 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24177 cat >conftest.$ac_ext <<_ACEOF
24180 cat confdefs.h >>conftest.$ac_ext
24181 cat >>conftest.$ac_ext <<_ACEOF
24182 /* end confdefs.h. */
24183 #include <$ac_header>
24185 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24186 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24188 grep -v '^ *+' conftest.er1 >conftest.err
24190 cat conftest.err >&5
24191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24192 (exit $ac_status); } >/dev/null; then
24193 if test -s conftest.err; then
24194 ac_cpp_err=$ac_c_preproc_warn_flag
24195 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24202 if test -z "$ac_cpp_err"; then
24203 ac_header_preproc=yes
24205 echo "$as_me: failed program was:" >&5
24206 sed 's/^/| /' conftest.$ac_ext >&5
24208 ac_header_preproc=no
24210 rm -f conftest.err conftest.$ac_ext
24211 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24212 echo "${ECHO_T}$ac_header_preproc" >&6
24214 # So? What about this header?
24215 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24217 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24218 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24220 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24221 ac_header_preproc=yes
24224 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24225 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24226 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24227 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24228 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24229 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24230 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24231 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24232 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24233 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24234 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24235 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24238 ## ------------------------------------------ ##
24239 ## Report this to the AC_PACKAGE_NAME lists. ##
24240 ## ------------------------------------------ ##
24243 sed "s/^/$as_me: WARNING: /" >&2
24246 echo "$as_me:$LINENO: checking for $ac_header" >&5
24247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24249 echo $ECHO_N "(cached) $ECHO_C" >&6
24251 eval "$as_ac_Header=\$ac_header_preproc"
24253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24254 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24257 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24258 cat >>confdefs.h <<_ACEOF
24259 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24270 for ac_func in sigaction sigset
24272 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24273 echo "$as_me:$LINENO: checking for $ac_func" >&5
24274 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24275 if eval "test \"\${$as_ac_var+set}\" = set"; then
24276 echo $ECHO_N "(cached) $ECHO_C" >&6
24278 cat >conftest.$ac_ext <<_ACEOF
24281 cat confdefs.h >>conftest.$ac_ext
24282 cat >>conftest.$ac_ext <<_ACEOF
24283 /* end confdefs.h. */
24284 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24285 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24286 #define $ac_func innocuous_$ac_func
24288 /* System header to define __stub macros and hopefully few prototypes,
24289 which can conflict with char $ac_func (); below.
24290 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24291 <limits.h> exists even on freestanding compilers. */
24294 # include <limits.h>
24296 # include <assert.h>
24301 /* Override any gcc2 internal prototype to avoid an error. */
24306 /* We use char because int might match the return type of a gcc2
24307 builtin and then its argument prototype would still apply. */
24309 /* The GNU C library defines this for functions which it implements
24310 to always fail with ENOSYS. Some functions are actually named
24311 something starting with __ and the normal name is an alias. */
24312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24315 char (*f) () = $ac_func;
24324 return f != $ac_func;
24329 rm -f conftest.$ac_objext conftest$ac_exeext
24330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24331 (eval $ac_link) 2>conftest.er1
24333 grep -v '^ *+' conftest.er1 >conftest.err
24335 cat conftest.err >&5
24336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24337 (exit $ac_status); } &&
24338 { ac_try='test -z "$ac_c_werror_flag"
24339 || test ! -s conftest.err'
24340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24341 (eval $ac_try) 2>&5
24343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24344 (exit $ac_status); }; } &&
24345 { ac_try='test -s conftest$ac_exeext'
24346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24347 (eval $ac_try) 2>&5
24349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24350 (exit $ac_status); }; }; then
24351 eval "$as_ac_var=yes"
24353 echo "$as_me: failed program was:" >&5
24354 sed 's/^/| /' conftest.$ac_ext >&5
24356 eval "$as_ac_var=no"
24358 rm -f conftest.err conftest.$ac_objext \
24359 conftest$ac_exeext conftest.$ac_ext
24361 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24362 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24363 if test `eval echo '${'$as_ac_var'}'` = yes; then
24364 cat >>confdefs.h <<_ACEOF
24365 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24372 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
24374 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
24375 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
24376 if test "${ac_cv_lib_V3_sigset+set}" = set; then
24377 echo $ECHO_N "(cached) $ECHO_C" >&6
24379 ac_check_lib_save_LIBS=$LIBS
24381 cat >conftest.$ac_ext <<_ACEOF
24384 cat confdefs.h >>conftest.$ac_ext
24385 cat >>conftest.$ac_ext <<_ACEOF
24386 /* end confdefs.h. */
24388 /* Override any gcc2 internal prototype to avoid an error. */
24392 /* We use char because int might match the return type of a gcc2
24393 builtin and then its argument prototype would still apply. */
24403 rm -f conftest.$ac_objext conftest$ac_exeext
24404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24405 (eval $ac_link) 2>conftest.er1
24407 grep -v '^ *+' conftest.er1 >conftest.err
24409 cat conftest.err >&5
24410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24411 (exit $ac_status); } &&
24412 { ac_try='test -z "$ac_c_werror_flag"
24413 || test ! -s conftest.err'
24414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24415 (eval $ac_try) 2>&5
24417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24418 (exit $ac_status); }; } &&
24419 { ac_try='test -s conftest$ac_exeext'
24420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24421 (eval $ac_try) 2>&5
24423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24424 (exit $ac_status); }; }; then
24425 ac_cv_lib_V3_sigset=yes
24427 echo "$as_me: failed program was:" >&5
24428 sed 's/^/| /' conftest.$ac_ext >&5
24430 ac_cv_lib_V3_sigset=no
24432 rm -f conftest.err conftest.$ac_objext \
24433 conftest$ac_exeext conftest.$ac_ext
24434 LIBS=$ac_check_lib_save_LIBS
24436 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
24437 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
24438 if test $ac_cv_lib_V3_sigset = yes; then
24439 cat >>confdefs.h <<_ACEOF
24440 #define HAVE_LIBV3 1
24449 if test "$ac_cv_cygwin" != yes && test "$ac_cv_header_winsock_h" = yes; then
24450 echo "$as_me:$LINENO: checking for winsock" >&5
24451 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
24452 if test "${ol_cv_winsock+set}" = set; then
24453 echo $ECHO_N "(cached) $ECHO_C" >&6
24456 for curlib in ws2_32 wsock32; do
24457 LIBS="$LIBS -l$curlib"
24458 cat >conftest.$ac_ext <<_ACEOF
24461 cat confdefs.h >>conftest.$ac_ext
24462 cat >>conftest.$ac_ext <<_ACEOF
24463 /* end confdefs.h. */
24464 #include <winsock.h>
24471 select(0,NULL,NULL,NULL,NULL);
24473 gethostname(NULL,0);
24479 rm -f conftest.$ac_objext conftest$ac_exeext
24480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24481 (eval $ac_link) 2>conftest.er1
24483 grep -v '^ *+' conftest.er1 >conftest.err
24485 cat conftest.err >&5
24486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24487 (exit $ac_status); } &&
24488 { ac_try='test -z "$ac_c_werror_flag"
24489 || test ! -s conftest.err'
24490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24491 (eval $ac_try) 2>&5
24493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24494 (exit $ac_status); }; } &&
24495 { ac_try='test -s conftest$ac_exeext'
24496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24497 (eval $ac_try) 2>&5
24499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24500 (exit $ac_status); }; }; then
24503 echo "$as_me: failed program was:" >&5
24504 sed 's/^/| /' conftest.$ac_ext >&5
24508 rm -f conftest.err conftest.$ac_objext \
24509 conftest$ac_exeext conftest.$ac_ext
24511 if test $ol_cv_winsock = yes; then
24513 cat >>confdefs.h <<\_ACEOF
24514 #define HAVE_WINSOCK 1
24517 ac_cv_func_socket=yes
24518 ac_cv_func_select=yes
24519 ac_cv_func_closesocket=yes
24520 ac_cv_func_gethostname=yes
24521 if test $curlib = ws2_32; then
24522 ol_cv_winsock=winsock2
24524 cat >>confdefs.h <<\_ACEOF
24525 #define HAVE_WINSOCK2 1
24534 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
24535 echo "${ECHO_T}$ol_cv_winsock" >&6
24539 echo "$as_me:$LINENO: checking for socket" >&5
24540 echo $ECHO_N "checking for socket... $ECHO_C" >&6
24541 if test "${ac_cv_func_socket+set}" = set; then
24542 echo $ECHO_N "(cached) $ECHO_C" >&6
24544 cat >conftest.$ac_ext <<_ACEOF
24547 cat confdefs.h >>conftest.$ac_ext
24548 cat >>conftest.$ac_ext <<_ACEOF
24549 /* end confdefs.h. */
24550 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24551 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24552 #define socket innocuous_socket
24554 /* System header to define __stub macros and hopefully few prototypes,
24555 which can conflict with char socket (); below.
24556 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24557 <limits.h> exists even on freestanding compilers. */
24560 # include <limits.h>
24562 # include <assert.h>
24567 /* Override any gcc2 internal prototype to avoid an error. */
24572 /* We use char because int might match the return type of a gcc2
24573 builtin and then its argument prototype would still apply. */
24575 /* The GNU C library defines this for functions which it implements
24576 to always fail with ENOSYS. Some functions are actually named
24577 something starting with __ and the normal name is an alias. */
24578 #if defined (__stub_socket) || defined (__stub___socket)
24581 char (*f) () = socket;
24590 return f != socket;
24595 rm -f conftest.$ac_objext conftest$ac_exeext
24596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24597 (eval $ac_link) 2>conftest.er1
24599 grep -v '^ *+' conftest.er1 >conftest.err
24601 cat conftest.err >&5
24602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24603 (exit $ac_status); } &&
24604 { ac_try='test -z "$ac_c_werror_flag"
24605 || test ! -s conftest.err'
24606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24607 (eval $ac_try) 2>&5
24609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24610 (exit $ac_status); }; } &&
24611 { ac_try='test -s conftest$ac_exeext'
24612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24613 (eval $ac_try) 2>&5
24615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24616 (exit $ac_status); }; }; then
24617 ac_cv_func_socket=yes
24619 echo "$as_me: failed program was:" >&5
24620 sed 's/^/| /' conftest.$ac_ext >&5
24622 ac_cv_func_socket=no
24624 rm -f conftest.err conftest.$ac_objext \
24625 conftest$ac_exeext conftest.$ac_ext
24627 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24628 echo "${ECHO_T}$ac_cv_func_socket" >&6
24629 if test $ac_cv_func_socket = yes; then
24634 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
24635 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
24636 if test "${ac_cv_lib_socket_main+set}" = set; then
24637 echo $ECHO_N "(cached) $ECHO_C" >&6
24639 ac_check_lib_save_LIBS=$LIBS
24640 LIBS="-lsocket $LIBS"
24641 cat >conftest.$ac_ext <<_ACEOF
24644 cat confdefs.h >>conftest.$ac_ext
24645 cat >>conftest.$ac_ext <<_ACEOF
24646 /* end confdefs.h. */
24657 rm -f conftest.$ac_objext conftest$ac_exeext
24658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24659 (eval $ac_link) 2>conftest.er1
24661 grep -v '^ *+' conftest.er1 >conftest.err
24663 cat conftest.err >&5
24664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24665 (exit $ac_status); } &&
24666 { ac_try='test -z "$ac_c_werror_flag"
24667 || test ! -s conftest.err'
24668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24669 (eval $ac_try) 2>&5
24671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24672 (exit $ac_status); }; } &&
24673 { ac_try='test -s conftest$ac_exeext'
24674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24675 (eval $ac_try) 2>&5
24677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24678 (exit $ac_status); }; }; then
24679 ac_cv_lib_socket_main=yes
24681 echo "$as_me: failed program was:" >&5
24682 sed 's/^/| /' conftest.$ac_ext >&5
24684 ac_cv_lib_socket_main=no
24686 rm -f conftest.err conftest.$ac_objext \
24687 conftest$ac_exeext conftest.$ac_ext
24688 LIBS=$ac_check_lib_save_LIBS
24690 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
24691 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
24692 if test $ac_cv_lib_socket_main = yes; then
24693 cat >>confdefs.h <<_ACEOF
24694 #define HAVE_LIBSOCKET 1
24697 LIBS="-lsocket $LIBS"
24702 echo "$as_me:$LINENO: checking for main in -lnet" >&5
24703 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
24704 if test "${ac_cv_lib_net_main+set}" = set; then
24705 echo $ECHO_N "(cached) $ECHO_C" >&6
24707 ac_check_lib_save_LIBS=$LIBS
24709 cat >conftest.$ac_ext <<_ACEOF
24712 cat confdefs.h >>conftest.$ac_ext
24713 cat >>conftest.$ac_ext <<_ACEOF
24714 /* end confdefs.h. */
24725 rm -f conftest.$ac_objext conftest$ac_exeext
24726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24727 (eval $ac_link) 2>conftest.er1
24729 grep -v '^ *+' conftest.er1 >conftest.err
24731 cat conftest.err >&5
24732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24733 (exit $ac_status); } &&
24734 { ac_try='test -z "$ac_c_werror_flag"
24735 || test ! -s conftest.err'
24736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24737 (eval $ac_try) 2>&5
24739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24740 (exit $ac_status); }; } &&
24741 { ac_try='test -s conftest$ac_exeext'
24742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24743 (eval $ac_try) 2>&5
24745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24746 (exit $ac_status); }; }; then
24747 ac_cv_lib_net_main=yes
24749 echo "$as_me: failed program was:" >&5
24750 sed 's/^/| /' conftest.$ac_ext >&5
24752 ac_cv_lib_net_main=no
24754 rm -f conftest.err conftest.$ac_objext \
24755 conftest$ac_exeext conftest.$ac_ext
24756 LIBS=$ac_check_lib_save_LIBS
24758 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
24759 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
24760 if test $ac_cv_lib_net_main = yes; then
24761 cat >>confdefs.h <<_ACEOF
24762 #define HAVE_LIBNET 1
24770 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
24771 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
24772 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
24773 echo $ECHO_N "(cached) $ECHO_C" >&6
24775 ac_check_lib_save_LIBS=$LIBS
24776 LIBS="-lnsl_s $LIBS"
24777 cat >conftest.$ac_ext <<_ACEOF
24780 cat confdefs.h >>conftest.$ac_ext
24781 cat >>conftest.$ac_ext <<_ACEOF
24782 /* end confdefs.h. */
24793 rm -f conftest.$ac_objext conftest$ac_exeext
24794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24795 (eval $ac_link) 2>conftest.er1
24797 grep -v '^ *+' conftest.er1 >conftest.err
24799 cat conftest.err >&5
24800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24801 (exit $ac_status); } &&
24802 { ac_try='test -z "$ac_c_werror_flag"
24803 || test ! -s conftest.err'
24804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24805 (eval $ac_try) 2>&5
24807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24808 (exit $ac_status); }; } &&
24809 { ac_try='test -s conftest$ac_exeext'
24810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24811 (eval $ac_try) 2>&5
24813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24814 (exit $ac_status); }; }; then
24815 ac_cv_lib_nsl_s_main=yes
24817 echo "$as_me: failed program was:" >&5
24818 sed 's/^/| /' conftest.$ac_ext >&5
24820 ac_cv_lib_nsl_s_main=no
24822 rm -f conftest.err conftest.$ac_objext \
24823 conftest$ac_exeext conftest.$ac_ext
24824 LIBS=$ac_check_lib_save_LIBS
24826 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
24827 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
24828 if test $ac_cv_lib_nsl_s_main = yes; then
24829 cat >>confdefs.h <<_ACEOF
24830 #define HAVE_LIBNSL_S 1
24833 LIBS="-lnsl_s $LIBS"
24838 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
24839 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
24840 if test "${ac_cv_lib_nsl_main+set}" = set; then
24841 echo $ECHO_N "(cached) $ECHO_C" >&6
24843 ac_check_lib_save_LIBS=$LIBS
24845 cat >conftest.$ac_ext <<_ACEOF
24848 cat confdefs.h >>conftest.$ac_ext
24849 cat >>conftest.$ac_ext <<_ACEOF
24850 /* end confdefs.h. */
24861 rm -f conftest.$ac_objext conftest$ac_exeext
24862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24863 (eval $ac_link) 2>conftest.er1
24865 grep -v '^ *+' conftest.er1 >conftest.err
24867 cat conftest.err >&5
24868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24869 (exit $ac_status); } &&
24870 { ac_try='test -z "$ac_c_werror_flag"
24871 || test ! -s conftest.err'
24872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24873 (eval $ac_try) 2>&5
24875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24876 (exit $ac_status); }; } &&
24877 { ac_try='test -s conftest$ac_exeext'
24878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24879 (eval $ac_try) 2>&5
24881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24882 (exit $ac_status); }; }; then
24883 ac_cv_lib_nsl_main=yes
24885 echo "$as_me: failed program was:" >&5
24886 sed 's/^/| /' conftest.$ac_ext >&5
24888 ac_cv_lib_nsl_main=no
24890 rm -f conftest.err conftest.$ac_objext \
24891 conftest$ac_exeext conftest.$ac_ext
24892 LIBS=$ac_check_lib_save_LIBS
24894 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
24895 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
24896 if test $ac_cv_lib_nsl_main = yes; then
24897 cat >>confdefs.h <<_ACEOF
24898 #define HAVE_LIBNSL 1
24906 echo "$as_me:$LINENO: checking for socket in -linet" >&5
24907 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
24908 if test "${ac_cv_lib_inet_socket+set}" = set; then
24909 echo $ECHO_N "(cached) $ECHO_C" >&6
24911 ac_check_lib_save_LIBS=$LIBS
24912 LIBS="-linet $LIBS"
24913 cat >conftest.$ac_ext <<_ACEOF
24916 cat confdefs.h >>conftest.$ac_ext
24917 cat >>conftest.$ac_ext <<_ACEOF
24918 /* end confdefs.h. */
24920 /* Override any gcc2 internal prototype to avoid an error. */
24924 /* We use char because int might match the return type of a gcc2
24925 builtin and then its argument prototype would still apply. */
24935 rm -f conftest.$ac_objext conftest$ac_exeext
24936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24937 (eval $ac_link) 2>conftest.er1
24939 grep -v '^ *+' conftest.er1 >conftest.err
24941 cat conftest.err >&5
24942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24943 (exit $ac_status); } &&
24944 { ac_try='test -z "$ac_c_werror_flag"
24945 || test ! -s conftest.err'
24946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24947 (eval $ac_try) 2>&5
24949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24950 (exit $ac_status); }; } &&
24951 { ac_try='test -s conftest$ac_exeext'
24952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24953 (eval $ac_try) 2>&5
24955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24956 (exit $ac_status); }; }; then
24957 ac_cv_lib_inet_socket=yes
24959 echo "$as_me: failed program was:" >&5
24960 sed 's/^/| /' conftest.$ac_ext >&5
24962 ac_cv_lib_inet_socket=no
24964 rm -f conftest.err conftest.$ac_objext \
24965 conftest$ac_exeext conftest.$ac_ext
24966 LIBS=$ac_check_lib_save_LIBS
24968 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
24969 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
24970 if test $ac_cv_lib_inet_socket = yes; then
24971 cat >>confdefs.h <<_ACEOF
24972 #define HAVE_LIBINET 1
24975 LIBS="-linet $LIBS"
24980 echo "$as_me:$LINENO: checking for main in -lgen" >&5
24981 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
24982 if test "${ac_cv_lib_gen_main+set}" = set; then
24983 echo $ECHO_N "(cached) $ECHO_C" >&6
24985 ac_check_lib_save_LIBS=$LIBS
24987 cat >conftest.$ac_ext <<_ACEOF
24990 cat confdefs.h >>conftest.$ac_ext
24991 cat >>conftest.$ac_ext <<_ACEOF
24992 /* end confdefs.h. */
25003 rm -f conftest.$ac_objext conftest$ac_exeext
25004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25005 (eval $ac_link) 2>conftest.er1
25007 grep -v '^ *+' conftest.er1 >conftest.err
25009 cat conftest.err >&5
25010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25011 (exit $ac_status); } &&
25012 { ac_try='test -z "$ac_c_werror_flag"
25013 || test ! -s conftest.err'
25014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25015 (eval $ac_try) 2>&5
25017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25018 (exit $ac_status); }; } &&
25019 { ac_try='test -s conftest$ac_exeext'
25020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25021 (eval $ac_try) 2>&5
25023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25024 (exit $ac_status); }; }; then
25025 ac_cv_lib_gen_main=yes
25027 echo "$as_me: failed program was:" >&5
25028 sed 's/^/| /' conftest.$ac_ext >&5
25030 ac_cv_lib_gen_main=no
25032 rm -f conftest.err conftest.$ac_objext \
25033 conftest$ac_exeext conftest.$ac_ext
25034 LIBS=$ac_check_lib_save_LIBS
25036 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
25037 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
25038 if test $ac_cv_lib_gen_main = yes; then
25039 cat >>confdefs.h <<_ACEOF
25040 #define HAVE_LIBGEN 1
25051 echo "$as_me:$LINENO: checking for select" >&5
25052 echo $ECHO_N "checking for select... $ECHO_C" >&6
25053 if test "${ac_cv_func_select+set}" = set; then
25054 echo $ECHO_N "(cached) $ECHO_C" >&6
25056 cat >conftest.$ac_ext <<_ACEOF
25059 cat confdefs.h >>conftest.$ac_ext
25060 cat >>conftest.$ac_ext <<_ACEOF
25061 /* end confdefs.h. */
25062 /* Define select to an innocuous variant, in case <limits.h> declares select.
25063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25064 #define select innocuous_select
25066 /* System header to define __stub macros and hopefully few prototypes,
25067 which can conflict with char select (); below.
25068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25069 <limits.h> exists even on freestanding compilers. */
25072 # include <limits.h>
25074 # include <assert.h>
25079 /* Override any gcc2 internal prototype to avoid an error. */
25084 /* We use char because int might match the return type of a gcc2
25085 builtin and then its argument prototype would still apply. */
25087 /* The GNU C library defines this for functions which it implements
25088 to always fail with ENOSYS. Some functions are actually named
25089 something starting with __ and the normal name is an alias. */
25090 #if defined (__stub_select) || defined (__stub___select)
25093 char (*f) () = select;
25102 return f != select;
25107 rm -f conftest.$ac_objext conftest$ac_exeext
25108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25109 (eval $ac_link) 2>conftest.er1
25111 grep -v '^ *+' conftest.er1 >conftest.err
25113 cat conftest.err >&5
25114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25115 (exit $ac_status); } &&
25116 { ac_try='test -z "$ac_c_werror_flag"
25117 || test ! -s conftest.err'
25118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25119 (eval $ac_try) 2>&5
25121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25122 (exit $ac_status); }; } &&
25123 { ac_try='test -s conftest$ac_exeext'
25124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25125 (eval $ac_try) 2>&5
25127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25128 (exit $ac_status); }; }; then
25129 ac_cv_func_select=yes
25131 echo "$as_me: failed program was:" >&5
25132 sed 's/^/| /' conftest.$ac_ext >&5
25134 ac_cv_func_select=no
25136 rm -f conftest.err conftest.$ac_objext \
25137 conftest$ac_exeext conftest.$ac_ext
25139 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
25140 echo "${ECHO_T}$ac_cv_func_select" >&6
25141 if test $ac_cv_func_select = yes; then
25144 { { echo "$as_me:$LINENO: error: select() required." >&5
25145 echo "$as_me: error: select() required." >&2;}
25146 { (exit 1); exit 1; }; }
25150 if test "${ac_cv_header_winsock_h}" != yes; then
25153 for ac_header in sys/select.h sys/socket.h
25155 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25157 echo "$as_me:$LINENO: checking for $ac_header" >&5
25158 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25159 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25160 echo $ECHO_N "(cached) $ECHO_C" >&6
25162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25163 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25165 # Is the header compilable?
25166 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25167 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25168 cat >conftest.$ac_ext <<_ACEOF
25171 cat confdefs.h >>conftest.$ac_ext
25172 cat >>conftest.$ac_ext <<_ACEOF
25173 /* end confdefs.h. */
25174 $ac_includes_default
25175 #include <$ac_header>
25177 rm -f conftest.$ac_objext
25178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25179 (eval $ac_compile) 2>conftest.er1
25181 grep -v '^ *+' conftest.er1 >conftest.err
25183 cat conftest.err >&5
25184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25185 (exit $ac_status); } &&
25186 { ac_try='test -z "$ac_c_werror_flag"
25187 || test ! -s conftest.err'
25188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25189 (eval $ac_try) 2>&5
25191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25192 (exit $ac_status); }; } &&
25193 { ac_try='test -s conftest.$ac_objext'
25194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25195 (eval $ac_try) 2>&5
25197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25198 (exit $ac_status); }; }; then
25199 ac_header_compiler=yes
25201 echo "$as_me: failed program was:" >&5
25202 sed 's/^/| /' conftest.$ac_ext >&5
25204 ac_header_compiler=no
25206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25207 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25208 echo "${ECHO_T}$ac_header_compiler" >&6
25210 # Is the header present?
25211 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25212 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25213 cat >conftest.$ac_ext <<_ACEOF
25216 cat confdefs.h >>conftest.$ac_ext
25217 cat >>conftest.$ac_ext <<_ACEOF
25218 /* end confdefs.h. */
25219 #include <$ac_header>
25221 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25222 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25224 grep -v '^ *+' conftest.er1 >conftest.err
25226 cat conftest.err >&5
25227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25228 (exit $ac_status); } >/dev/null; then
25229 if test -s conftest.err; then
25230 ac_cpp_err=$ac_c_preproc_warn_flag
25231 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25238 if test -z "$ac_cpp_err"; then
25239 ac_header_preproc=yes
25241 echo "$as_me: failed program was:" >&5
25242 sed 's/^/| /' conftest.$ac_ext >&5
25244 ac_header_preproc=no
25246 rm -f conftest.err conftest.$ac_ext
25247 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25248 echo "${ECHO_T}$ac_header_preproc" >&6
25250 # So? What about this header?
25251 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25253 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25254 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25256 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25257 ac_header_preproc=yes
25260 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25261 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25262 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25263 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25264 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25265 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25266 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25267 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25269 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25270 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25271 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25274 ## ------------------------------------------ ##
25275 ## Report this to the AC_PACKAGE_NAME lists. ##
25276 ## ------------------------------------------ ##
25279 sed "s/^/$as_me: WARNING: /" >&2
25282 echo "$as_me:$LINENO: checking for $ac_header" >&5
25283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25284 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25285 echo $ECHO_N "(cached) $ECHO_C" >&6
25287 eval "$as_ac_Header=\$ac_header_preproc"
25289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25290 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25293 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25294 cat >>confdefs.h <<_ACEOF
25295 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25302 echo "$as_me:$LINENO: checking types of arguments for select" >&5
25303 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
25304 if test "${ac_cv_func_select_args+set}" = set; then
25305 echo $ECHO_N "(cached) $ECHO_C" >&6
25307 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25308 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
25309 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
25310 cat >conftest.$ac_ext <<_ACEOF
25313 cat confdefs.h >>conftest.$ac_ext
25314 cat >>conftest.$ac_ext <<_ACEOF
25315 /* end confdefs.h. */
25316 $ac_includes_default
25317 #if HAVE_SYS_SELECT_H
25318 # include <sys/select.h>
25320 #if HAVE_SYS_SOCKET_H
25321 # include <sys/socket.h>
25327 extern int select ($ac_arg1,
25328 $ac_arg234, $ac_arg234, $ac_arg234,
25334 rm -f conftest.$ac_objext
25335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25336 (eval $ac_compile) 2>conftest.er1
25338 grep -v '^ *+' conftest.er1 >conftest.err
25340 cat conftest.err >&5
25341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25342 (exit $ac_status); } &&
25343 { ac_try='test -z "$ac_c_werror_flag"
25344 || test ! -s conftest.err'
25345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25346 (eval $ac_try) 2>&5
25348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25349 (exit $ac_status); }; } &&
25350 { ac_try='test -s conftest.$ac_objext'
25351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25352 (eval $ac_try) 2>&5
25354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25355 (exit $ac_status); }; }; then
25356 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
25358 echo "$as_me: failed program was:" >&5
25359 sed 's/^/| /' conftest.$ac_ext >&5
25362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25366 # Provide a safe default value.
25367 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
25370 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
25371 echo "${ECHO_T}$ac_cv_func_select_args" >&6
25372 ac_save_IFS=$IFS; IFS=','
25373 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25377 cat >>confdefs.h <<_ACEOF
25378 #define SELECT_TYPE_ARG1 $1
25382 cat >>confdefs.h <<_ACEOF
25383 #define SELECT_TYPE_ARG234 ($2)
25387 cat >>confdefs.h <<_ACEOF
25388 #define SELECT_TYPE_ARG5 ($3)
25397 for ac_func in poll
25399 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25400 echo "$as_me:$LINENO: checking for $ac_func" >&5
25401 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25402 if eval "test \"\${$as_ac_var+set}\" = set"; then
25403 echo $ECHO_N "(cached) $ECHO_C" >&6
25405 cat >conftest.$ac_ext <<_ACEOF
25408 cat confdefs.h >>conftest.$ac_ext
25409 cat >>conftest.$ac_ext <<_ACEOF
25410 /* end confdefs.h. */
25411 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25412 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25413 #define $ac_func innocuous_$ac_func
25415 /* System header to define __stub macros and hopefully few prototypes,
25416 which can conflict with char $ac_func (); below.
25417 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25418 <limits.h> exists even on freestanding compilers. */
25421 # include <limits.h>
25423 # include <assert.h>
25428 /* Override any gcc2 internal prototype to avoid an error. */
25433 /* We use char because int might match the return type of a gcc2
25434 builtin and then its argument prototype would still apply. */
25436 /* The GNU C library defines this for functions which it implements
25437 to always fail with ENOSYS. Some functions are actually named
25438 something starting with __ and the normal name is an alias. */
25439 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25442 char (*f) () = $ac_func;
25451 return f != $ac_func;
25456 rm -f conftest.$ac_objext conftest$ac_exeext
25457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25458 (eval $ac_link) 2>conftest.er1
25460 grep -v '^ *+' conftest.er1 >conftest.err
25462 cat conftest.err >&5
25463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25464 (exit $ac_status); } &&
25465 { ac_try='test -z "$ac_c_werror_flag"
25466 || test ! -s conftest.err'
25467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25468 (eval $ac_try) 2>&5
25470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25471 (exit $ac_status); }; } &&
25472 { ac_try='test -s conftest$ac_exeext'
25473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25474 (eval $ac_try) 2>&5
25476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25477 (exit $ac_status); }; }; then
25478 eval "$as_ac_var=yes"
25480 echo "$as_me: failed program was:" >&5
25481 sed 's/^/| /' conftest.$ac_ext >&5
25483 eval "$as_ac_var=no"
25485 rm -f conftest.err conftest.$ac_objext \
25486 conftest$ac_exeext conftest.$ac_ext
25488 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25489 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25490 if test `eval echo '${'$as_ac_var'}'` = yes; then
25491 cat >>confdefs.h <<_ACEOF
25492 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25499 for ac_header in poll.h
25501 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25502 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25503 echo "$as_me:$LINENO: checking for $ac_header" >&5
25504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25505 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25506 echo $ECHO_N "(cached) $ECHO_C" >&6
25508 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25509 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25511 # Is the header compilable?
25512 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25513 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25514 cat >conftest.$ac_ext <<_ACEOF
25517 cat confdefs.h >>conftest.$ac_ext
25518 cat >>conftest.$ac_ext <<_ACEOF
25519 /* end confdefs.h. */
25520 $ac_includes_default
25521 #include <$ac_header>
25523 rm -f conftest.$ac_objext
25524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25525 (eval $ac_compile) 2>conftest.er1
25527 grep -v '^ *+' conftest.er1 >conftest.err
25529 cat conftest.err >&5
25530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25531 (exit $ac_status); } &&
25532 { ac_try='test -z "$ac_c_werror_flag"
25533 || test ! -s conftest.err'
25534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25535 (eval $ac_try) 2>&5
25537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25538 (exit $ac_status); }; } &&
25539 { ac_try='test -s conftest.$ac_objext'
25540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25541 (eval $ac_try) 2>&5
25543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25544 (exit $ac_status); }; }; then
25545 ac_header_compiler=yes
25547 echo "$as_me: failed program was:" >&5
25548 sed 's/^/| /' conftest.$ac_ext >&5
25550 ac_header_compiler=no
25552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25553 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25554 echo "${ECHO_T}$ac_header_compiler" >&6
25556 # Is the header present?
25557 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25558 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25559 cat >conftest.$ac_ext <<_ACEOF
25562 cat confdefs.h >>conftest.$ac_ext
25563 cat >>conftest.$ac_ext <<_ACEOF
25564 /* end confdefs.h. */
25565 #include <$ac_header>
25567 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25568 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25570 grep -v '^ *+' conftest.er1 >conftest.err
25572 cat conftest.err >&5
25573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25574 (exit $ac_status); } >/dev/null; then
25575 if test -s conftest.err; then
25576 ac_cpp_err=$ac_c_preproc_warn_flag
25577 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25584 if test -z "$ac_cpp_err"; then
25585 ac_header_preproc=yes
25587 echo "$as_me: failed program was:" >&5
25588 sed 's/^/| /' conftest.$ac_ext >&5
25590 ac_header_preproc=no
25592 rm -f conftest.err conftest.$ac_ext
25593 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25594 echo "${ECHO_T}$ac_header_preproc" >&6
25596 # So? What about this header?
25597 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25599 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25600 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25602 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25603 ac_header_preproc=yes
25606 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25607 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25608 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25609 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25610 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25611 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25612 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25613 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25614 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25615 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25616 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25617 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25620 ## ------------------------------------------ ##
25621 ## Report this to the AC_PACKAGE_NAME lists. ##
25622 ## ------------------------------------------ ##
25625 sed "s/^/$as_me: WARNING: /" >&2
25628 echo "$as_me:$LINENO: checking for $ac_header" >&5
25629 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25630 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25631 echo $ECHO_N "(cached) $ECHO_C" >&6
25633 eval "$as_ac_Header=\$ac_header_preproc"
25635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25636 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25639 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25640 cat >>confdefs.h <<_ACEOF
25641 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25650 for ac_header in sys/epoll.h
25652 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25653 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25654 echo "$as_me:$LINENO: checking for $ac_header" >&5
25655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25656 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25657 echo $ECHO_N "(cached) $ECHO_C" >&6
25659 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25660 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25662 # Is the header compilable?
25663 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25664 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25665 cat >conftest.$ac_ext <<_ACEOF
25668 cat confdefs.h >>conftest.$ac_ext
25669 cat >>conftest.$ac_ext <<_ACEOF
25670 /* end confdefs.h. */
25671 $ac_includes_default
25672 #include <$ac_header>
25674 rm -f conftest.$ac_objext
25675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25676 (eval $ac_compile) 2>conftest.er1
25678 grep -v '^ *+' conftest.er1 >conftest.err
25680 cat conftest.err >&5
25681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25682 (exit $ac_status); } &&
25683 { ac_try='test -z "$ac_c_werror_flag"
25684 || test ! -s conftest.err'
25685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25686 (eval $ac_try) 2>&5
25688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25689 (exit $ac_status); }; } &&
25690 { ac_try='test -s conftest.$ac_objext'
25691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25692 (eval $ac_try) 2>&5
25694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25695 (exit $ac_status); }; }; then
25696 ac_header_compiler=yes
25698 echo "$as_me: failed program was:" >&5
25699 sed 's/^/| /' conftest.$ac_ext >&5
25701 ac_header_compiler=no
25703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25704 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25705 echo "${ECHO_T}$ac_header_compiler" >&6
25707 # Is the header present?
25708 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25709 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25710 cat >conftest.$ac_ext <<_ACEOF
25713 cat confdefs.h >>conftest.$ac_ext
25714 cat >>conftest.$ac_ext <<_ACEOF
25715 /* end confdefs.h. */
25716 #include <$ac_header>
25718 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25719 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25721 grep -v '^ *+' conftest.er1 >conftest.err
25723 cat conftest.err >&5
25724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25725 (exit $ac_status); } >/dev/null; then
25726 if test -s conftest.err; then
25727 ac_cpp_err=$ac_c_preproc_warn_flag
25728 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25735 if test -z "$ac_cpp_err"; then
25736 ac_header_preproc=yes
25738 echo "$as_me: failed program was:" >&5
25739 sed 's/^/| /' conftest.$ac_ext >&5
25741 ac_header_preproc=no
25743 rm -f conftest.err conftest.$ac_ext
25744 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25745 echo "${ECHO_T}$ac_header_preproc" >&6
25747 # So? What about this header?
25748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25750 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25751 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25753 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25754 ac_header_preproc=yes
25757 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25758 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25759 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25760 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25761 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25762 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25763 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25764 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25766 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25767 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25768 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25771 ## ------------------------------------------ ##
25772 ## Report this to the AC_PACKAGE_NAME lists. ##
25773 ## ------------------------------------------ ##
25776 sed "s/^/$as_me: WARNING: /" >&2
25779 echo "$as_me:$LINENO: checking for $ac_header" >&5
25780 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25782 echo $ECHO_N "(cached) $ECHO_C" >&6
25784 eval "$as_ac_Header=\$ac_header_preproc"
25786 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25787 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25790 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25791 cat >>confdefs.h <<_ACEOF
25792 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25799 if test "${ac_cv_header_sys_epoll_h}" = yes; then
25800 echo "$as_me:$LINENO: checking for epoll system call" >&5
25801 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
25802 if test "$cross_compiling" = yes; then
25803 echo "$as_me:$LINENO: result: no" >&5
25804 echo "${ECHO_T}no" >&6
25806 cat >conftest.$ac_ext <<_ACEOF
25809 cat confdefs.h >>conftest.$ac_ext
25810 cat >>conftest.$ac_ext <<_ACEOF
25811 /* end confdefs.h. */
25812 int main(int argc, char *argv)
25814 int epfd = epoll_create(256);
25815 exit (epfd == -1 ? 1 : 0);
25818 rm -f conftest$ac_exeext
25819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25820 (eval $ac_link) 2>&5
25822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25823 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25825 (eval $ac_try) 2>&5
25827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25828 (exit $ac_status); }; }; then
25829 echo "$as_me:$LINENO: result: yes" >&5
25830 echo "${ECHO_T}yes" >&6
25832 cat >>confdefs.h <<\_ACEOF
25833 #define HAVE_EPOLL 1
25837 echo "$as_me: program exited with status $ac_status" >&5
25838 echo "$as_me: failed program was:" >&5
25839 sed 's/^/| /' conftest.$ac_ext >&5
25841 ( exit $ac_status )
25842 echo "$as_me:$LINENO: result: no" >&5
25843 echo "${ECHO_T}no" >&6
25845 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25850 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
25851 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
25852 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
25853 echo $ECHO_N "(cached) $ECHO_C" >&6
25856 cat >conftest.$ac_ext <<_ACEOF
25859 cat confdefs.h >>conftest.$ac_ext
25860 cat >>conftest.$ac_ext <<_ACEOF
25861 /* end confdefs.h. */
25864 #include <sys/types.h>
25867 #include <stdlib.h>
25872 char *c = (char *) *sys_errlist
25877 rm -f conftest.$ac_objext
25878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25879 (eval $ac_compile) 2>conftest.er1
25881 grep -v '^ *+' conftest.er1 >conftest.err
25883 cat conftest.err >&5
25884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25885 (exit $ac_status); } &&
25886 { ac_try='test -z "$ac_c_werror_flag"
25887 || test ! -s conftest.err'
25888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25889 (eval $ac_try) 2>&5
25891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25892 (exit $ac_status); }; } &&
25893 { ac_try='test -s conftest.$ac_objext'
25894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25895 (eval $ac_try) 2>&5
25897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25898 (exit $ac_status); }; }; then
25899 ol_cv_dcl_sys_errlist=yes
25900 ol_cv_have_sys_errlist=yes
25902 echo "$as_me: failed program was:" >&5
25903 sed 's/^/| /' conftest.$ac_ext >&5
25905 ol_cv_dcl_sys_errlist=no
25907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25909 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
25910 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
25912 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
25913 if test $ol_cv_dcl_sys_errlist = no ; then
25915 cat >>confdefs.h <<\_ACEOF
25916 #define DECL_SYS_ERRLIST 1
25920 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
25921 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
25922 if test "${ol_cv_have_sys_errlist+set}" = set; then
25923 echo $ECHO_N "(cached) $ECHO_C" >&6
25926 cat >conftest.$ac_ext <<_ACEOF
25929 cat confdefs.h >>conftest.$ac_ext
25930 cat >>conftest.$ac_ext <<_ACEOF
25931 /* end confdefs.h. */
25936 char *c = (char *) *sys_errlist
25941 rm -f conftest.$ac_objext conftest$ac_exeext
25942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25943 (eval $ac_link) 2>conftest.er1
25945 grep -v '^ *+' conftest.er1 >conftest.err
25947 cat conftest.err >&5
25948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25949 (exit $ac_status); } &&
25950 { ac_try='test -z "$ac_c_werror_flag"
25951 || test ! -s conftest.err'
25952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25953 (eval $ac_try) 2>&5
25955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25956 (exit $ac_status); }; } &&
25957 { ac_try='test -s conftest$ac_exeext'
25958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25959 (eval $ac_try) 2>&5
25961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25962 (exit $ac_status); }; }; then
25963 ol_cv_have_sys_errlist=yes
25965 echo "$as_me: failed program was:" >&5
25966 sed 's/^/| /' conftest.$ac_ext >&5
25968 ol_cv_have_sys_errlist=no
25970 rm -f conftest.err conftest.$ac_objext \
25971 conftest$ac_exeext conftest.$ac_ext
25973 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
25974 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
25976 if test $ol_cv_have_sys_errlist = yes ; then
25978 cat >>confdefs.h <<\_ACEOF
25979 #define HAVE_SYS_ERRLIST 1
25985 for ac_func in strerror strerror_r
25987 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25988 echo "$as_me:$LINENO: checking for $ac_func" >&5
25989 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25990 if eval "test \"\${$as_ac_var+set}\" = set"; then
25991 echo $ECHO_N "(cached) $ECHO_C" >&6
25993 cat >conftest.$ac_ext <<_ACEOF
25996 cat confdefs.h >>conftest.$ac_ext
25997 cat >>conftest.$ac_ext <<_ACEOF
25998 /* end confdefs.h. */
25999 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26001 #define $ac_func innocuous_$ac_func
26003 /* System header to define __stub macros and hopefully few prototypes,
26004 which can conflict with char $ac_func (); below.
26005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26006 <limits.h> exists even on freestanding compilers. */
26009 # include <limits.h>
26011 # include <assert.h>
26016 /* Override any gcc2 internal prototype to avoid an error. */
26021 /* We use char because int might match the return type of a gcc2
26022 builtin and then its argument prototype would still apply. */
26024 /* The GNU C library defines this for functions which it implements
26025 to always fail with ENOSYS. Some functions are actually named
26026 something starting with __ and the normal name is an alias. */
26027 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26030 char (*f) () = $ac_func;
26039 return f != $ac_func;
26044 rm -f conftest.$ac_objext conftest$ac_exeext
26045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26046 (eval $ac_link) 2>conftest.er1
26048 grep -v '^ *+' conftest.er1 >conftest.err
26050 cat conftest.err >&5
26051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26052 (exit $ac_status); } &&
26053 { ac_try='test -z "$ac_c_werror_flag"
26054 || test ! -s conftest.err'
26055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26056 (eval $ac_try) 2>&5
26058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26059 (exit $ac_status); }; } &&
26060 { ac_try='test -s conftest$ac_exeext'
26061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26062 (eval $ac_try) 2>&5
26064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26065 (exit $ac_status); }; }; then
26066 eval "$as_ac_var=yes"
26068 echo "$as_me: failed program was:" >&5
26069 sed 's/^/| /' conftest.$ac_ext >&5
26071 eval "$as_ac_var=no"
26073 rm -f conftest.err conftest.$ac_objext \
26074 conftest$ac_exeext conftest.$ac_ext
26076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26077 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26078 if test `eval echo '${'$as_ac_var'}'` = yes; then
26079 cat >>confdefs.h <<_ACEOF
26080 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26086 ol_cv_func_strerror_r=no
26087 if test "${ac_cv_func_strerror_r}" = yes ; then
26088 echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
26089 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
26090 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
26091 echo $ECHO_N "(cached) $ECHO_C" >&6
26094 cat >conftest.$ac_ext <<_ACEOF
26097 cat confdefs.h >>conftest.$ac_ext
26098 cat >>conftest.$ac_ext <<_ACEOF
26099 /* end confdefs.h. */
26100 #include <string.h>
26102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26103 $EGREP "strerror_r" >/dev/null 2>&1; then
26104 ol_decl_strerror_r=yes
26106 ol_decl_strerror_r=no
26110 if test $ol_decl_strerror_r = yes ; then
26111 cat >conftest.$ac_ext <<_ACEOF
26114 cat confdefs.h >>conftest.$ac_ext
26115 cat >>conftest.$ac_ext <<_ACEOF
26116 /* end confdefs.h. */
26117 #include <string.h>
26121 /* from autoconf 2.59 */
26123 char x = *strerror_r (0, buf, sizeof buf);
26124 char *p = strerror_r (0, buf, sizeof buf);
26130 rm -f conftest.$ac_objext
26131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26132 (eval $ac_compile) 2>conftest.er1
26134 grep -v '^ *+' conftest.er1 >conftest.err
26136 cat conftest.err >&5
26137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26138 (exit $ac_status); } &&
26139 { ac_try='test -z "$ac_c_werror_flag"
26140 || test ! -s conftest.err'
26141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26142 (eval $ac_try) 2>&5
26144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26145 (exit $ac_status); }; } &&
26146 { ac_try='test -s conftest.$ac_objext'
26147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26148 (eval $ac_try) 2>&5
26150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26151 (exit $ac_status); }; }; then
26152 ol_cv_nonposix_strerror_r=yes
26154 echo "$as_me: failed program was:" >&5
26155 sed 's/^/| /' conftest.$ac_ext >&5
26157 ol_cv_nonposix_strerror_r=no
26159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26161 if test "$cross_compiling" = yes; then
26162 ol_cv_nonposix_strerror=no
26164 cat >conftest.$ac_ext <<_ACEOF
26167 cat confdefs.h >>conftest.$ac_ext
26168 cat >>conftest.$ac_ext <<_ACEOF
26169 /* end confdefs.h. */
26174 strerror_r( 1, buf, sizeof buf );
26175 exit( buf[0] == 0 );
26179 rm -f conftest$ac_exeext
26180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26181 (eval $ac_link) 2>&5
26183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26184 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26186 (eval $ac_try) 2>&5
26188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26189 (exit $ac_status); }; }; then
26190 ol_cv_nonposix_strerror_r=yes
26192 echo "$as_me: program exited with status $ac_status" >&5
26193 echo "$as_me: failed program was:" >&5
26194 sed 's/^/| /' conftest.$ac_ext >&5
26196 ( exit $ac_status )
26197 ol_cv_nonposix_strerror=no
26199 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26204 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
26205 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
26206 if test $ol_cv_nonposix_strerror_r = yes ; then
26208 cat >>confdefs.h <<\_ACEOF
26209 #define HAVE_NONPOSIX_STRERROR_R 1
26214 elif test "${ac_cv_func_strerror}" = no ; then
26215 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
26216 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
26217 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
26218 echo $ECHO_N "(cached) $ECHO_C" >&6
26221 cat >conftest.$ac_ext <<_ACEOF
26224 cat confdefs.h >>conftest.$ac_ext
26225 cat >>conftest.$ac_ext <<_ACEOF
26226 /* end confdefs.h. */
26229 #include <sys/types.h>
26232 #include <stdlib.h>
26237 char *c = (char *) *sys_errlist
26242 rm -f conftest.$ac_objext
26243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26244 (eval $ac_compile) 2>conftest.er1
26246 grep -v '^ *+' conftest.er1 >conftest.err
26248 cat conftest.err >&5
26249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26250 (exit $ac_status); } &&
26251 { ac_try='test -z "$ac_c_werror_flag"
26252 || test ! -s conftest.err'
26253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26254 (eval $ac_try) 2>&5
26256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26257 (exit $ac_status); }; } &&
26258 { ac_try='test -s conftest.$ac_objext'
26259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26260 (eval $ac_try) 2>&5
26262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26263 (exit $ac_status); }; }; then
26264 ol_cv_dcl_sys_errlist=yes
26265 ol_cv_have_sys_errlist=yes
26267 echo "$as_me: failed program was:" >&5
26268 sed 's/^/| /' conftest.$ac_ext >&5
26270 ol_cv_dcl_sys_errlist=no
26272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26274 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
26275 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
26277 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
26278 if test $ol_cv_dcl_sys_errlist = no ; then
26280 cat >>confdefs.h <<\_ACEOF
26281 #define DECL_SYS_ERRLIST 1
26285 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
26286 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
26287 if test "${ol_cv_have_sys_errlist+set}" = set; then
26288 echo $ECHO_N "(cached) $ECHO_C" >&6
26291 cat >conftest.$ac_ext <<_ACEOF
26294 cat confdefs.h >>conftest.$ac_ext
26295 cat >>conftest.$ac_ext <<_ACEOF
26296 /* end confdefs.h. */
26301 char *c = (char *) *sys_errlist
26306 rm -f conftest.$ac_objext conftest$ac_exeext
26307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26308 (eval $ac_link) 2>conftest.er1
26310 grep -v '^ *+' conftest.er1 >conftest.err
26312 cat conftest.err >&5
26313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26314 (exit $ac_status); } &&
26315 { ac_try='test -z "$ac_c_werror_flag"
26316 || test ! -s conftest.err'
26317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26318 (eval $ac_try) 2>&5
26320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26321 (exit $ac_status); }; } &&
26322 { ac_try='test -s conftest$ac_exeext'
26323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26324 (eval $ac_try) 2>&5
26326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26327 (exit $ac_status); }; }; then
26328 ol_cv_have_sys_errlist=yes
26330 echo "$as_me: failed program was:" >&5
26331 sed 's/^/| /' conftest.$ac_ext >&5
26333 ol_cv_have_sys_errlist=no
26335 rm -f conftest.err conftest.$ac_objext \
26336 conftest$ac_exeext conftest.$ac_ext
26338 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
26339 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
26341 if test $ol_cv_have_sys_errlist = yes ; then
26343 cat >>confdefs.h <<\_ACEOF
26344 #define HAVE_SYS_ERRLIST 1
26353 for ac_header in regex.h
26355 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26357 echo "$as_me:$LINENO: checking for $ac_header" >&5
26358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26359 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26360 echo $ECHO_N "(cached) $ECHO_C" >&6
26362 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26363 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26365 # Is the header compilable?
26366 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26367 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26368 cat >conftest.$ac_ext <<_ACEOF
26371 cat confdefs.h >>conftest.$ac_ext
26372 cat >>conftest.$ac_ext <<_ACEOF
26373 /* end confdefs.h. */
26374 $ac_includes_default
26375 #include <$ac_header>
26377 rm -f conftest.$ac_objext
26378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26379 (eval $ac_compile) 2>conftest.er1
26381 grep -v '^ *+' conftest.er1 >conftest.err
26383 cat conftest.err >&5
26384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26385 (exit $ac_status); } &&
26386 { ac_try='test -z "$ac_c_werror_flag"
26387 || test ! -s conftest.err'
26388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26389 (eval $ac_try) 2>&5
26391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26392 (exit $ac_status); }; } &&
26393 { ac_try='test -s conftest.$ac_objext'
26394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26395 (eval $ac_try) 2>&5
26397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26398 (exit $ac_status); }; }; then
26399 ac_header_compiler=yes
26401 echo "$as_me: failed program was:" >&5
26402 sed 's/^/| /' conftest.$ac_ext >&5
26404 ac_header_compiler=no
26406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26407 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26408 echo "${ECHO_T}$ac_header_compiler" >&6
26410 # Is the header present?
26411 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26412 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26413 cat >conftest.$ac_ext <<_ACEOF
26416 cat confdefs.h >>conftest.$ac_ext
26417 cat >>conftest.$ac_ext <<_ACEOF
26418 /* end confdefs.h. */
26419 #include <$ac_header>
26421 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26422 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26424 grep -v '^ *+' conftest.er1 >conftest.err
26426 cat conftest.err >&5
26427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26428 (exit $ac_status); } >/dev/null; then
26429 if test -s conftest.err; then
26430 ac_cpp_err=$ac_c_preproc_warn_flag
26431 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26438 if test -z "$ac_cpp_err"; then
26439 ac_header_preproc=yes
26441 echo "$as_me: failed program was:" >&5
26442 sed 's/^/| /' conftest.$ac_ext >&5
26444 ac_header_preproc=no
26446 rm -f conftest.err conftest.$ac_ext
26447 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26448 echo "${ECHO_T}$ac_header_preproc" >&6
26450 # So? What about this header?
26451 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26453 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26454 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26455 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26456 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26457 ac_header_preproc=yes
26460 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26461 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26462 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26463 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26464 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26465 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26466 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26467 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26469 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26470 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26471 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26474 ## ------------------------------------------ ##
26475 ## Report this to the AC_PACKAGE_NAME lists. ##
26476 ## ------------------------------------------ ##
26479 sed "s/^/$as_me: WARNING: /" >&2
26482 echo "$as_me:$LINENO: checking for $ac_header" >&5
26483 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26484 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26485 echo $ECHO_N "(cached) $ECHO_C" >&6
26487 eval "$as_ac_Header=\$ac_header_preproc"
26489 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26490 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26493 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26494 cat >>confdefs.h <<_ACEOF
26495 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26502 if test "$ac_cv_header_regex_h" != yes ; then
26503 { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
26504 echo "$as_me: error: POSIX regex.h required." >&2;}
26505 { (exit 1); exit 1; }; }
26507 echo "$as_me:$LINENO: checking for library containing regfree" >&5
26508 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
26509 if test "${ac_cv_search_regfree+set}" = set; then
26510 echo $ECHO_N "(cached) $ECHO_C" >&6
26512 ac_func_search_save_LIBS=$LIBS
26513 ac_cv_search_regfree=no
26514 cat >conftest.$ac_ext <<_ACEOF
26517 cat confdefs.h >>conftest.$ac_ext
26518 cat >>conftest.$ac_ext <<_ACEOF
26519 /* end confdefs.h. */
26521 /* Override any gcc2 internal prototype to avoid an error. */
26525 /* We use char because int might match the return type of a gcc2
26526 builtin and then its argument prototype would still apply. */
26536 rm -f conftest.$ac_objext conftest$ac_exeext
26537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26538 (eval $ac_link) 2>conftest.er1
26540 grep -v '^ *+' conftest.er1 >conftest.err
26542 cat conftest.err >&5
26543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26544 (exit $ac_status); } &&
26545 { ac_try='test -z "$ac_c_werror_flag"
26546 || test ! -s conftest.err'
26547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26548 (eval $ac_try) 2>&5
26550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26551 (exit $ac_status); }; } &&
26552 { ac_try='test -s conftest$ac_exeext'
26553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26554 (eval $ac_try) 2>&5
26556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26557 (exit $ac_status); }; }; then
26558 ac_cv_search_regfree="none required"
26560 echo "$as_me: failed program was:" >&5
26561 sed 's/^/| /' conftest.$ac_ext >&5
26564 rm -f conftest.err conftest.$ac_objext \
26565 conftest$ac_exeext conftest.$ac_ext
26566 if test "$ac_cv_search_regfree" = no; then
26567 for ac_lib in regex gnuregex; do
26568 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26569 cat >conftest.$ac_ext <<_ACEOF
26572 cat confdefs.h >>conftest.$ac_ext
26573 cat >>conftest.$ac_ext <<_ACEOF
26574 /* end confdefs.h. */
26576 /* Override any gcc2 internal prototype to avoid an error. */
26580 /* We use char because int might match the return type of a gcc2
26581 builtin and then its argument prototype would still apply. */
26591 rm -f conftest.$ac_objext conftest$ac_exeext
26592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26593 (eval $ac_link) 2>conftest.er1
26595 grep -v '^ *+' conftest.er1 >conftest.err
26597 cat conftest.err >&5
26598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26599 (exit $ac_status); } &&
26600 { ac_try='test -z "$ac_c_werror_flag"
26601 || test ! -s conftest.err'
26602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26603 (eval $ac_try) 2>&5
26605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26606 (exit $ac_status); }; } &&
26607 { ac_try='test -s conftest$ac_exeext'
26608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26609 (eval $ac_try) 2>&5
26611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26612 (exit $ac_status); }; }; then
26613 ac_cv_search_regfree="-l$ac_lib"
26616 echo "$as_me: failed program was:" >&5
26617 sed 's/^/| /' conftest.$ac_ext >&5
26620 rm -f conftest.err conftest.$ac_objext \
26621 conftest$ac_exeext conftest.$ac_ext
26624 LIBS=$ac_func_search_save_LIBS
26626 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
26627 echo "${ECHO_T}$ac_cv_search_regfree" >&6
26628 if test "$ac_cv_search_regfree" != no; then
26629 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
26632 { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
26633 echo "$as_me: error: POSIX regex required." >&2;}
26634 { (exit 1); exit 1; }; }
26639 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
26640 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
26641 if test "${ol_cv_c_posix_regex+set}" = set; then
26642 echo $ECHO_N "(cached) $ECHO_C" >&6
26645 if test "$cross_compiling" = yes; then
26646 ol_cv_c_posix_regex=cross
26648 cat >conftest.$ac_ext <<_ACEOF
26651 cat confdefs.h >>conftest.$ac_ext
26652 cat >>conftest.$ac_ext <<_ACEOF
26653 /* end confdefs.h. */
26655 #include <sys/types.h>
26657 static char *pattern, *string;
26665 if(regcomp(&re, pattern, 0)) {
26669 string = "ALL MATCH";
26671 rc = regexec(&re, string, 0, (void*)0, 0);
26678 rm -f conftest$ac_exeext
26679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26680 (eval $ac_link) 2>&5
26682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26683 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26685 (eval $ac_try) 2>&5
26687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26688 (exit $ac_status); }; }; then
26689 ol_cv_c_posix_regex=yes
26691 echo "$as_me: program exited with status $ac_status" >&5
26692 echo "$as_me: failed program was:" >&5
26693 sed 's/^/| /' conftest.$ac_ext >&5
26695 ( exit $ac_status )
26696 ol_cv_c_posix_regex=no
26698 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26701 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
26702 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
26704 if test "$ol_cv_c_posix_regex" = no ; then
26705 { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
26706 echo "$as_me: error: broken POSIX regex!" >&2;}
26707 { (exit 1); exit 1; }; }
26713 for ac_header in sys/uuid.h
26715 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26717 echo "$as_me:$LINENO: checking for $ac_header" >&5
26718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26720 echo $ECHO_N "(cached) $ECHO_C" >&6
26722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26723 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26725 # Is the header compilable?
26726 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26727 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26728 cat >conftest.$ac_ext <<_ACEOF
26731 cat confdefs.h >>conftest.$ac_ext
26732 cat >>conftest.$ac_ext <<_ACEOF
26733 /* end confdefs.h. */
26734 $ac_includes_default
26735 #include <$ac_header>
26737 rm -f conftest.$ac_objext
26738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26739 (eval $ac_compile) 2>conftest.er1
26741 grep -v '^ *+' conftest.er1 >conftest.err
26743 cat conftest.err >&5
26744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26745 (exit $ac_status); } &&
26746 { ac_try='test -z "$ac_c_werror_flag"
26747 || test ! -s conftest.err'
26748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26749 (eval $ac_try) 2>&5
26751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26752 (exit $ac_status); }; } &&
26753 { ac_try='test -s conftest.$ac_objext'
26754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26755 (eval $ac_try) 2>&5
26757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26758 (exit $ac_status); }; }; then
26759 ac_header_compiler=yes
26761 echo "$as_me: failed program was:" >&5
26762 sed 's/^/| /' conftest.$ac_ext >&5
26764 ac_header_compiler=no
26766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26767 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26768 echo "${ECHO_T}$ac_header_compiler" >&6
26770 # Is the header present?
26771 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26772 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26773 cat >conftest.$ac_ext <<_ACEOF
26776 cat confdefs.h >>conftest.$ac_ext
26777 cat >>conftest.$ac_ext <<_ACEOF
26778 /* end confdefs.h. */
26779 #include <$ac_header>
26781 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26782 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26784 grep -v '^ *+' conftest.er1 >conftest.err
26786 cat conftest.err >&5
26787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26788 (exit $ac_status); } >/dev/null; then
26789 if test -s conftest.err; then
26790 ac_cpp_err=$ac_c_preproc_warn_flag
26791 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26798 if test -z "$ac_cpp_err"; then
26799 ac_header_preproc=yes
26801 echo "$as_me: failed program was:" >&5
26802 sed 's/^/| /' conftest.$ac_ext >&5
26804 ac_header_preproc=no
26806 rm -f conftest.err conftest.$ac_ext
26807 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26808 echo "${ECHO_T}$ac_header_preproc" >&6
26810 # So? What about this header?
26811 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26813 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26814 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26815 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26816 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26817 ac_header_preproc=yes
26820 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26821 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26822 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26823 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26824 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26825 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26826 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26827 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26829 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26830 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26831 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26834 ## ------------------------------------------ ##
26835 ## Report this to the AC_PACKAGE_NAME lists. ##
26836 ## ------------------------------------------ ##
26839 sed "s/^/$as_me: WARNING: /" >&2
26842 echo "$as_me:$LINENO: checking for $ac_header" >&5
26843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26844 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26845 echo $ECHO_N "(cached) $ECHO_C" >&6
26847 eval "$as_ac_Header=\$ac_header_preproc"
26849 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26850 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26853 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26854 cat >>confdefs.h <<_ACEOF
26855 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26862 if test $ac_cv_header_sys_uuid_h = yes ; then
26864 echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
26865 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
26866 if test "${ac_cv_search_uuid_to_str+set}" = set; then
26867 echo $ECHO_N "(cached) $ECHO_C" >&6
26869 ac_func_search_save_LIBS=$LIBS
26870 ac_cv_search_uuid_to_str=no
26871 cat >conftest.$ac_ext <<_ACEOF
26874 cat confdefs.h >>conftest.$ac_ext
26875 cat >>conftest.$ac_ext <<_ACEOF
26876 /* end confdefs.h. */
26878 /* Override any gcc2 internal prototype to avoid an error. */
26882 /* We use char because int might match the return type of a gcc2
26883 builtin and then its argument prototype would still apply. */
26884 char uuid_to_str ();
26893 rm -f conftest.$ac_objext conftest$ac_exeext
26894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26895 (eval $ac_link) 2>conftest.er1
26897 grep -v '^ *+' conftest.er1 >conftest.err
26899 cat conftest.err >&5
26900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26901 (exit $ac_status); } &&
26902 { ac_try='test -z "$ac_c_werror_flag"
26903 || test ! -s conftest.err'
26904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26905 (eval $ac_try) 2>&5
26907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26908 (exit $ac_status); }; } &&
26909 { ac_try='test -s conftest$ac_exeext'
26910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26911 (eval $ac_try) 2>&5
26913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26914 (exit $ac_status); }; }; then
26915 ac_cv_search_uuid_to_str="none required"
26917 echo "$as_me: failed program was:" >&5
26918 sed 's/^/| /' conftest.$ac_ext >&5
26921 rm -f conftest.err conftest.$ac_objext \
26922 conftest$ac_exeext conftest.$ac_ext
26923 if test "$ac_cv_search_uuid_to_str" = no; then
26924 for ac_lib in uuid; do
26925 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26926 cat >conftest.$ac_ext <<_ACEOF
26929 cat confdefs.h >>conftest.$ac_ext
26930 cat >>conftest.$ac_ext <<_ACEOF
26931 /* end confdefs.h. */
26933 /* Override any gcc2 internal prototype to avoid an error. */
26937 /* We use char because int might match the return type of a gcc2
26938 builtin and then its argument prototype would still apply. */
26939 char uuid_to_str ();
26948 rm -f conftest.$ac_objext conftest$ac_exeext
26949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26950 (eval $ac_link) 2>conftest.er1
26952 grep -v '^ *+' conftest.er1 >conftest.err
26954 cat conftest.err >&5
26955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26956 (exit $ac_status); } &&
26957 { ac_try='test -z "$ac_c_werror_flag"
26958 || test ! -s conftest.err'
26959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26960 (eval $ac_try) 2>&5
26962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26963 (exit $ac_status); }; } &&
26964 { ac_try='test -s conftest$ac_exeext'
26965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26966 (eval $ac_try) 2>&5
26968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26969 (exit $ac_status); }; }; then
26970 ac_cv_search_uuid_to_str="-l$ac_lib"
26973 echo "$as_me: failed program was:" >&5
26974 sed 's/^/| /' conftest.$ac_ext >&5
26977 rm -f conftest.err conftest.$ac_objext \
26978 conftest$ac_exeext conftest.$ac_ext
26981 LIBS=$ac_func_search_save_LIBS
26983 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
26984 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
26985 if test "$ac_cv_search_uuid_to_str" != no; then
26986 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
26994 if test have_uuid = yes ; then
26996 cat >>confdefs.h <<\_ACEOF
26997 #define HAVE_UUID_TO_STR 1
27001 test "$ac_cv_search_uuid_to_str" = "none required" || \
27002 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
27006 if test $have_uuid = no ; then
27007 echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
27008 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
27010 LIBS="$LIBS -lrpcrt4"
27011 cat >conftest.$ac_ext <<_ACEOF
27014 cat confdefs.h >>conftest.$ac_ext
27015 cat >>conftest.$ac_ext <<_ACEOF
27016 /* end confdefs.h. */
27018 int __stdcall UuidCreate(void *);
27019 int __stdcall UuidToStringA(void *,void **);
27026 UuidToStringA(0,0);
27032 rm -f conftest.$ac_objext conftest$ac_exeext
27033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27034 (eval $ac_link) 2>conftest.er1
27036 grep -v '^ *+' conftest.er1 >conftest.err
27038 cat conftest.err >&5
27039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27040 (exit $ac_status); } &&
27041 { ac_try='test -z "$ac_c_werror_flag"
27042 || test ! -s conftest.err'
27043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27044 (eval $ac_try) 2>&5
27046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27047 (exit $ac_status); }; } &&
27048 { ac_try='test -s conftest$ac_exeext'
27049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27050 (eval $ac_try) 2>&5
27052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27053 (exit $ac_status); }; }; then
27056 echo "$as_me: failed program was:" >&5
27057 sed 's/^/| /' conftest.$ac_ext >&5
27061 rm -f conftest.err conftest.$ac_objext \
27062 conftest$ac_exeext conftest.$ac_ext
27063 if test $need_rpcrt = yes; then
27064 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
27067 echo "$as_me:$LINENO: result: $need_rpcrt" >&5
27068 echo "${ECHO_T}$need_rpcrt" >&6
27071 ol_cv_lib_resolver=no
27072 if test $ol_cv_lib_resolver = no ; then
27073 echo "$as_me:$LINENO: checking for resolver link (default)" >&5
27074 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
27075 if test "${ol_cv_resolver_none+set}" = set; then
27076 echo $ECHO_N "(cached) $ECHO_C" >&6
27081 LIBS="$ol_RESOLVER_LIB $LIBS"
27083 cat >conftest.$ac_ext <<_ACEOF
27086 cat confdefs.h >>conftest.$ac_ext
27087 cat >>conftest.$ac_ext <<_ACEOF
27088 /* end confdefs.h. */
27090 #ifdef HAVE_SYS_TYPES_H
27091 # include <sys/types.h>
27093 #include <netinet/in.h>
27094 #ifdef HAVE_ARPA_NAMESER_H
27095 # include <arpa/nameser.h>
27097 #ifdef HAVE_RESOLV_H
27098 # include <resolv.h>
27106 char *request = NULL;
27107 unsigned char reply[64*1024];
27108 unsigned char host[64*1024];
27112 /* Bind 8/9 interface */
27113 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27115 /* Bind 4 interface */
27119 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27123 /* Bind 8/9 interface */
27125 #elif defined(HFIXEDSZ)
27126 /* Bind 4 interface w/ HFIXEDSZ */
27129 /* Bind 4 interface w/o HFIXEDSZ */
27130 p += sizeof(HEADER);
27132 status = dn_expand( reply, reply+len, p, host, sizeof(host));
27138 rm -f conftest.$ac_objext conftest$ac_exeext
27139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27140 (eval $ac_link) 2>conftest.er1
27142 grep -v '^ *+' conftest.er1 >conftest.err
27144 cat conftest.err >&5
27145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27146 (exit $ac_status); } &&
27147 { ac_try='test -z "$ac_c_werror_flag"
27148 || test ! -s conftest.err'
27149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27150 (eval $ac_try) 2>&5
27152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27153 (exit $ac_status); }; } &&
27154 { ac_try='test -s conftest$ac_exeext'
27155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27156 (eval $ac_try) 2>&5
27158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27159 (exit $ac_status); }; }; then
27160 ol_cv_resolver_none=yes
27162 echo "$as_me: failed program was:" >&5
27163 sed 's/^/| /' conftest.$ac_ext >&5
27165 ol_cv_resolver_none=no
27167 rm -f conftest.err conftest.$ac_objext \
27168 conftest$ac_exeext conftest.$ac_ext
27173 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
27174 echo "${ECHO_T}$ol_cv_resolver_none" >&6
27176 if test $ol_cv_resolver_none = yes ; then
27177 ol_cv_lib_resolver=yes
27181 if test $ol_cv_lib_resolver = no ; then
27182 echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
27183 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
27184 if test "${ol_cv_resolver_resolv+set}" = set; then
27185 echo $ECHO_N "(cached) $ECHO_C" >&6
27188 ol_RESOLVER_LIB=-lresolv
27190 LIBS="$ol_RESOLVER_LIB $LIBS"
27192 cat >conftest.$ac_ext <<_ACEOF
27195 cat confdefs.h >>conftest.$ac_ext
27196 cat >>conftest.$ac_ext <<_ACEOF
27197 /* end confdefs.h. */
27199 #ifdef HAVE_SYS_TYPES_H
27200 # include <sys/types.h>
27202 #include <netinet/in.h>
27203 #ifdef HAVE_ARPA_NAMESER_H
27204 # include <arpa/nameser.h>
27206 #ifdef HAVE_RESOLV_H
27207 # include <resolv.h>
27215 char *request = NULL;
27216 unsigned char reply[64*1024];
27217 unsigned char host[64*1024];
27221 /* Bind 8/9 interface */
27222 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27224 /* Bind 4 interface */
27228 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27232 /* Bind 8/9 interface */
27234 #elif defined(HFIXEDSZ)
27235 /* Bind 4 interface w/ HFIXEDSZ */
27238 /* Bind 4 interface w/o HFIXEDSZ */
27239 p += sizeof(HEADER);
27241 status = dn_expand( reply, reply+len, p, host, sizeof(host));
27247 rm -f conftest.$ac_objext conftest$ac_exeext
27248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27249 (eval $ac_link) 2>conftest.er1
27251 grep -v '^ *+' conftest.er1 >conftest.err
27253 cat conftest.err >&5
27254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27255 (exit $ac_status); } &&
27256 { ac_try='test -z "$ac_c_werror_flag"
27257 || test ! -s conftest.err'
27258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27259 (eval $ac_try) 2>&5
27261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27262 (exit $ac_status); }; } &&
27263 { ac_try='test -s conftest$ac_exeext'
27264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27265 (eval $ac_try) 2>&5
27267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27268 (exit $ac_status); }; }; then
27269 ol_cv_resolver_resolv=yes
27271 echo "$as_me: failed program was:" >&5
27272 sed 's/^/| /' conftest.$ac_ext >&5
27274 ol_cv_resolver_resolv=no
27276 rm -f conftest.err conftest.$ac_objext \
27277 conftest$ac_exeext conftest.$ac_ext
27282 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
27283 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
27285 if test $ol_cv_resolver_resolv = yes ; then
27286 ol_cv_lib_resolver=-lresolv
27290 if test $ol_cv_lib_resolver = no ; then
27291 echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
27292 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
27293 if test "${ol_cv_resolver_bind+set}" = set; then
27294 echo $ECHO_N "(cached) $ECHO_C" >&6
27297 ol_RESOLVER_LIB=-lbind
27299 LIBS="$ol_RESOLVER_LIB $LIBS"
27301 cat >conftest.$ac_ext <<_ACEOF
27304 cat confdefs.h >>conftest.$ac_ext
27305 cat >>conftest.$ac_ext <<_ACEOF
27306 /* end confdefs.h. */
27308 #ifdef HAVE_SYS_TYPES_H
27309 # include <sys/types.h>
27311 #include <netinet/in.h>
27312 #ifdef HAVE_ARPA_NAMESER_H
27313 # include <arpa/nameser.h>
27315 #ifdef HAVE_RESOLV_H
27316 # include <resolv.h>
27324 char *request = NULL;
27325 unsigned char reply[64*1024];
27326 unsigned char host[64*1024];
27330 /* Bind 8/9 interface */
27331 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27333 /* Bind 4 interface */
27337 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27341 /* Bind 8/9 interface */
27343 #elif defined(HFIXEDSZ)
27344 /* Bind 4 interface w/ HFIXEDSZ */
27347 /* Bind 4 interface w/o HFIXEDSZ */
27348 p += sizeof(HEADER);
27350 status = dn_expand( reply, reply+len, p, host, sizeof(host));
27356 rm -f conftest.$ac_objext conftest$ac_exeext
27357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27358 (eval $ac_link) 2>conftest.er1
27360 grep -v '^ *+' conftest.er1 >conftest.err
27362 cat conftest.err >&5
27363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27364 (exit $ac_status); } &&
27365 { ac_try='test -z "$ac_c_werror_flag"
27366 || test ! -s conftest.err'
27367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27368 (eval $ac_try) 2>&5
27370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27371 (exit $ac_status); }; } &&
27372 { ac_try='test -s conftest$ac_exeext'
27373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27374 (eval $ac_try) 2>&5
27376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27377 (exit $ac_status); }; }; then
27378 ol_cv_resolver_bind=yes
27380 echo "$as_me: failed program was:" >&5
27381 sed 's/^/| /' conftest.$ac_ext >&5
27383 ol_cv_resolver_bind=no
27385 rm -f conftest.err conftest.$ac_objext \
27386 conftest$ac_exeext conftest.$ac_ext
27391 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
27392 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
27394 if test $ol_cv_resolver_bind = yes ; then
27395 ol_cv_lib_resolver=-lbind
27402 if test "$ol_cv_lib_resolver" != no ; then
27404 cat >>confdefs.h <<\_ACEOF
27405 #define HAVE_RES_QUERY 1
27409 if test "$ol_enable_dnssrv" != no ; then
27413 if test "$ol_cv_lib_resolver" != yes ; then
27414 LIBS="$ol_cv_lib_resolver $LIBS"
27418 if test "$ol_enable_dnssrv" = yes -o "$ol_enable_dnssrv" = mod ; then
27419 if test "$ol_link_dnssrv" = no ; then
27420 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
27421 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
27422 { (exit 1); exit 1; }; }
27425 ol_enable_dnssrv=no
27429 for ac_func in hstrerror
27431 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27432 echo "$as_me:$LINENO: checking for $ac_func" >&5
27433 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27434 if eval "test \"\${$as_ac_var+set}\" = set"; then
27435 echo $ECHO_N "(cached) $ECHO_C" >&6
27437 cat >conftest.$ac_ext <<_ACEOF
27440 cat confdefs.h >>conftest.$ac_ext
27441 cat >>conftest.$ac_ext <<_ACEOF
27442 /* end confdefs.h. */
27443 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27444 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27445 #define $ac_func innocuous_$ac_func
27447 /* System header to define __stub macros and hopefully few prototypes,
27448 which can conflict with char $ac_func (); below.
27449 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27450 <limits.h> exists even on freestanding compilers. */
27453 # include <limits.h>
27455 # include <assert.h>
27460 /* Override any gcc2 internal prototype to avoid an error. */
27465 /* We use char because int might match the return type of a gcc2
27466 builtin and then its argument prototype would still apply. */
27468 /* The GNU C library defines this for functions which it implements
27469 to always fail with ENOSYS. Some functions are actually named
27470 something starting with __ and the normal name is an alias. */
27471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27474 char (*f) () = $ac_func;
27483 return f != $ac_func;
27488 rm -f conftest.$ac_objext conftest$ac_exeext
27489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27490 (eval $ac_link) 2>conftest.er1
27492 grep -v '^ *+' conftest.er1 >conftest.err
27494 cat conftest.err >&5
27495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27496 (exit $ac_status); } &&
27497 { ac_try='test -z "$ac_c_werror_flag"
27498 || test ! -s conftest.err'
27499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27500 (eval $ac_try) 2>&5
27502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27503 (exit $ac_status); }; } &&
27504 { ac_try='test -s conftest$ac_exeext'
27505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27506 (eval $ac_try) 2>&5
27508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27509 (exit $ac_status); }; }; then
27510 eval "$as_ac_var=yes"
27512 echo "$as_me: failed program was:" >&5
27513 sed 's/^/| /' conftest.$ac_ext >&5
27515 eval "$as_ac_var=no"
27517 rm -f conftest.err conftest.$ac_objext \
27518 conftest$ac_exeext conftest.$ac_ext
27520 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27521 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27522 if test `eval echo '${'$as_ac_var'}'` = yes; then
27523 cat >>confdefs.h <<_ACEOF
27524 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27535 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
27537 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27538 echo "$as_me:$LINENO: checking for $ac_func" >&5
27539 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27540 if eval "test \"\${$as_ac_var+set}\" = set"; then
27541 echo $ECHO_N "(cached) $ECHO_C" >&6
27543 cat >conftest.$ac_ext <<_ACEOF
27546 cat confdefs.h >>conftest.$ac_ext
27547 cat >>conftest.$ac_ext <<_ACEOF
27548 /* end confdefs.h. */
27549 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27550 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27551 #define $ac_func innocuous_$ac_func
27553 /* System header to define __stub macros and hopefully few prototypes,
27554 which can conflict with char $ac_func (); below.
27555 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27556 <limits.h> exists even on freestanding compilers. */
27559 # include <limits.h>
27561 # include <assert.h>
27566 /* Override any gcc2 internal prototype to avoid an error. */
27571 /* We use char because int might match the return type of a gcc2
27572 builtin and then its argument prototype would still apply. */
27574 /* The GNU C library defines this for functions which it implements
27575 to always fail with ENOSYS. Some functions are actually named
27576 something starting with __ and the normal name is an alias. */
27577 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27580 char (*f) () = $ac_func;
27589 return f != $ac_func;
27594 rm -f conftest.$ac_objext conftest$ac_exeext
27595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27596 (eval $ac_link) 2>conftest.er1
27598 grep -v '^ *+' conftest.er1 >conftest.err
27600 cat conftest.err >&5
27601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27602 (exit $ac_status); } &&
27603 { ac_try='test -z "$ac_c_werror_flag"
27604 || test ! -s conftest.err'
27605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27606 (eval $ac_try) 2>&5
27608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27609 (exit $ac_status); }; } &&
27610 { ac_try='test -s conftest$ac_exeext'
27611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27612 (eval $ac_try) 2>&5
27614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27615 (exit $ac_status); }; }; then
27616 eval "$as_ac_var=yes"
27618 echo "$as_me: failed program was:" >&5
27619 sed 's/^/| /' conftest.$ac_ext >&5
27621 eval "$as_ac_var=no"
27623 rm -f conftest.err conftest.$ac_objext \
27624 conftest$ac_exeext conftest.$ac_ext
27626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27627 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27628 if test `eval echo '${'$as_ac_var'}'` = yes; then
27629 cat >>confdefs.h <<_ACEOF
27630 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27638 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
27639 if test $ol_enable_ipv6 = yes ; then
27640 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
27641 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
27642 { (exit 1); exit 1; }; }
27644 elif test $ol_enable_ipv6 != no ; then
27645 echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
27646 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
27647 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
27648 echo $ECHO_N "(cached) $ECHO_C" >&6
27651 cat >conftest.$ac_ext <<_ACEOF
27654 cat confdefs.h >>conftest.$ac_ext
27655 cat >>conftest.$ac_ext <<_ACEOF
27656 /* end confdefs.h. */
27658 # include <netinet/in.h>
27659 # ifdef INET6_ADDRSTRLEN
27660 __has_inet6_addrstrlen__;
27664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27665 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
27666 ol_cv_inet6_addrstrlen=yes
27668 ol_cv_inet6_addrstrlen=no
27673 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
27674 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
27677 echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
27678 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
27679 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
27680 echo $ECHO_N "(cached) $ECHO_C" >&6
27683 cat >conftest.$ac_ext <<_ACEOF
27686 cat confdefs.h >>conftest.$ac_ext
27687 cat >>conftest.$ac_ext <<_ACEOF
27688 /* end confdefs.h. */
27690 #include <sys/types.h>
27691 #include <sys/socket.h>
27697 struct sockaddr_storage ss;
27703 rm -f conftest.$ac_objext
27704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27705 (eval $ac_compile) 2>conftest.er1
27707 grep -v '^ *+' conftest.er1 >conftest.err
27709 cat conftest.err >&5
27710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27711 (exit $ac_status); } &&
27712 { ac_try='test -z "$ac_c_werror_flag"
27713 || test ! -s conftest.err'
27714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27715 (eval $ac_try) 2>&5
27717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27718 (exit $ac_status); }; } &&
27719 { ac_try='test -s conftest.$ac_objext'
27720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27721 (eval $ac_try) 2>&5
27723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27724 (exit $ac_status); }; }; then
27725 ol_cv_struct_sockaddr_storage=yes
27727 echo "$as_me: failed program was:" >&5
27728 sed 's/^/| /' conftest.$ac_ext >&5
27730 ol_cv_struct_sockaddr_storage=no
27732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27734 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
27735 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
27737 if test $ol_cv_inet6_addrstrlen = yes \
27738 -a $ol_cv_struct_sockaddr_storage = yes ; then
27740 elif test $ol_enable_ipv6 = yes \
27741 -a $ol_cv_inet6_addrstrlen = no ; then
27742 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
27743 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
27744 { (exit 1); exit 1; }; }
27745 elif test $ol_enable_ipv6 = yes \
27746 -a $ol_cv_struct_sockaddr_storage = no ; then
27747 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
27748 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
27749 { (exit 1); exit 1; }; }
27753 if test $ol_enable_local != no ; then
27755 for ac_header in sys/un.h
27757 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27758 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27759 echo "$as_me:$LINENO: checking for $ac_header" >&5
27760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27762 echo $ECHO_N "(cached) $ECHO_C" >&6
27764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27765 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27767 # Is the header compilable?
27768 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27769 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27770 cat >conftest.$ac_ext <<_ACEOF
27773 cat confdefs.h >>conftest.$ac_ext
27774 cat >>conftest.$ac_ext <<_ACEOF
27775 /* end confdefs.h. */
27776 $ac_includes_default
27777 #include <$ac_header>
27779 rm -f conftest.$ac_objext
27780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27781 (eval $ac_compile) 2>conftest.er1
27783 grep -v '^ *+' conftest.er1 >conftest.err
27785 cat conftest.err >&5
27786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27787 (exit $ac_status); } &&
27788 { ac_try='test -z "$ac_c_werror_flag"
27789 || test ! -s conftest.err'
27790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27791 (eval $ac_try) 2>&5
27793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27794 (exit $ac_status); }; } &&
27795 { ac_try='test -s conftest.$ac_objext'
27796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27797 (eval $ac_try) 2>&5
27799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27800 (exit $ac_status); }; }; then
27801 ac_header_compiler=yes
27803 echo "$as_me: failed program was:" >&5
27804 sed 's/^/| /' conftest.$ac_ext >&5
27806 ac_header_compiler=no
27808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27809 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27810 echo "${ECHO_T}$ac_header_compiler" >&6
27812 # Is the header present?
27813 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27814 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27815 cat >conftest.$ac_ext <<_ACEOF
27818 cat confdefs.h >>conftest.$ac_ext
27819 cat >>conftest.$ac_ext <<_ACEOF
27820 /* end confdefs.h. */
27821 #include <$ac_header>
27823 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27824 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27826 grep -v '^ *+' conftest.er1 >conftest.err
27828 cat conftest.err >&5
27829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27830 (exit $ac_status); } >/dev/null; then
27831 if test -s conftest.err; then
27832 ac_cpp_err=$ac_c_preproc_warn_flag
27833 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27840 if test -z "$ac_cpp_err"; then
27841 ac_header_preproc=yes
27843 echo "$as_me: failed program was:" >&5
27844 sed 's/^/| /' conftest.$ac_ext >&5
27846 ac_header_preproc=no
27848 rm -f conftest.err conftest.$ac_ext
27849 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27850 echo "${ECHO_T}$ac_header_preproc" >&6
27852 # So? What about this header?
27853 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27855 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27856 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27857 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27858 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27859 ac_header_preproc=yes
27862 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27863 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27864 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27865 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27866 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27867 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27868 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27869 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27870 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27871 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27872 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27873 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27876 ## ------------------------------------------ ##
27877 ## Report this to the AC_PACKAGE_NAME lists. ##
27878 ## ------------------------------------------ ##
27881 sed "s/^/$as_me: WARNING: /" >&2
27884 echo "$as_me:$LINENO: checking for $ac_header" >&5
27885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27886 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27887 echo $ECHO_N "(cached) $ECHO_C" >&6
27889 eval "$as_ac_Header=\$ac_header_preproc"
27891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27892 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27895 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27896 cat >>confdefs.h <<_ACEOF
27897 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27905 if test $ol_enable_local = auto ; then
27906 ol_enable_local=$ac_cv_header_sys_un_h
27907 elif test $ac_cv_header_sys_un_h = no ; then
27908 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
27909 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
27910 { (exit 1); exit 1; }; }
27918 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
27919 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
27920 -o $ol_with_kerberos = k425 ; then
27923 for ac_header in krb5.h
27925 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27926 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27927 echo "$as_me:$LINENO: checking for $ac_header" >&5
27928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27930 echo $ECHO_N "(cached) $ECHO_C" >&6
27932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27933 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27935 # Is the header compilable?
27936 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27937 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27938 cat >conftest.$ac_ext <<_ACEOF
27941 cat confdefs.h >>conftest.$ac_ext
27942 cat >>conftest.$ac_ext <<_ACEOF
27943 /* end confdefs.h. */
27944 $ac_includes_default
27945 #include <$ac_header>
27947 rm -f conftest.$ac_objext
27948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27949 (eval $ac_compile) 2>conftest.er1
27951 grep -v '^ *+' conftest.er1 >conftest.err
27953 cat conftest.err >&5
27954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27955 (exit $ac_status); } &&
27956 { ac_try='test -z "$ac_c_werror_flag"
27957 || test ! -s conftest.err'
27958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27959 (eval $ac_try) 2>&5
27961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27962 (exit $ac_status); }; } &&
27963 { ac_try='test -s conftest.$ac_objext'
27964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27965 (eval $ac_try) 2>&5
27967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27968 (exit $ac_status); }; }; then
27969 ac_header_compiler=yes
27971 echo "$as_me: failed program was:" >&5
27972 sed 's/^/| /' conftest.$ac_ext >&5
27974 ac_header_compiler=no
27976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27977 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27978 echo "${ECHO_T}$ac_header_compiler" >&6
27980 # Is the header present?
27981 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27982 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27983 cat >conftest.$ac_ext <<_ACEOF
27986 cat confdefs.h >>conftest.$ac_ext
27987 cat >>conftest.$ac_ext <<_ACEOF
27988 /* end confdefs.h. */
27989 #include <$ac_header>
27991 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27992 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27994 grep -v '^ *+' conftest.er1 >conftest.err
27996 cat conftest.err >&5
27997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27998 (exit $ac_status); } >/dev/null; then
27999 if test -s conftest.err; then
28000 ac_cpp_err=$ac_c_preproc_warn_flag
28001 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28008 if test -z "$ac_cpp_err"; then
28009 ac_header_preproc=yes
28011 echo "$as_me: failed program was:" >&5
28012 sed 's/^/| /' conftest.$ac_ext >&5
28014 ac_header_preproc=no
28016 rm -f conftest.err conftest.$ac_ext
28017 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28018 echo "${ECHO_T}$ac_header_preproc" >&6
28020 # So? What about this header?
28021 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28023 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28024 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28025 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28026 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28027 ac_header_preproc=yes
28030 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28031 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28032 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28033 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28034 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28035 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28036 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28037 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28039 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28040 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28041 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28044 ## ------------------------------------------ ##
28045 ## Report this to the AC_PACKAGE_NAME lists. ##
28046 ## ------------------------------------------ ##
28049 sed "s/^/$as_me: WARNING: /" >&2
28052 echo "$as_me:$LINENO: checking for $ac_header" >&5
28053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28055 echo $ECHO_N "(cached) $ECHO_C" >&6
28057 eval "$as_ac_Header=\$ac_header_preproc"
28059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28060 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28063 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28064 cat >>confdefs.h <<_ACEOF
28065 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28073 if test $ac_cv_header_krb5_h = yes ; then
28075 for ac_header in heim_err.h
28077 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28079 echo "$as_me:$LINENO: checking for $ac_header" >&5
28080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28082 echo $ECHO_N "(cached) $ECHO_C" >&6
28084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28085 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28087 # Is the header compilable?
28088 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28089 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28090 cat >conftest.$ac_ext <<_ACEOF
28093 cat confdefs.h >>conftest.$ac_ext
28094 cat >>conftest.$ac_ext <<_ACEOF
28095 /* end confdefs.h. */
28096 $ac_includes_default
28097 #include <$ac_header>
28099 rm -f conftest.$ac_objext
28100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28101 (eval $ac_compile) 2>conftest.er1
28103 grep -v '^ *+' conftest.er1 >conftest.err
28105 cat conftest.err >&5
28106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28107 (exit $ac_status); } &&
28108 { ac_try='test -z "$ac_c_werror_flag"
28109 || test ! -s conftest.err'
28110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28111 (eval $ac_try) 2>&5
28113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28114 (exit $ac_status); }; } &&
28115 { ac_try='test -s conftest.$ac_objext'
28116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28117 (eval $ac_try) 2>&5
28119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28120 (exit $ac_status); }; }; then
28121 ac_header_compiler=yes
28123 echo "$as_me: failed program was:" >&5
28124 sed 's/^/| /' conftest.$ac_ext >&5
28126 ac_header_compiler=no
28128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28129 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28130 echo "${ECHO_T}$ac_header_compiler" >&6
28132 # Is the header present?
28133 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28134 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28135 cat >conftest.$ac_ext <<_ACEOF
28138 cat confdefs.h >>conftest.$ac_ext
28139 cat >>conftest.$ac_ext <<_ACEOF
28140 /* end confdefs.h. */
28141 #include <$ac_header>
28143 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28144 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28146 grep -v '^ *+' conftest.er1 >conftest.err
28148 cat conftest.err >&5
28149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28150 (exit $ac_status); } >/dev/null; then
28151 if test -s conftest.err; then
28152 ac_cpp_err=$ac_c_preproc_warn_flag
28153 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28160 if test -z "$ac_cpp_err"; then
28161 ac_header_preproc=yes
28163 echo "$as_me: failed program was:" >&5
28164 sed 's/^/| /' conftest.$ac_ext >&5
28166 ac_header_preproc=no
28168 rm -f conftest.err conftest.$ac_ext
28169 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28170 echo "${ECHO_T}$ac_header_preproc" >&6
28172 # So? What about this header?
28173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28175 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28176 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28178 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28179 ac_header_preproc=yes
28182 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28183 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28184 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28185 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28186 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28187 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28188 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28189 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28191 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28192 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28193 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28196 ## ------------------------------------------ ##
28197 ## Report this to the AC_PACKAGE_NAME lists. ##
28198 ## ------------------------------------------ ##
28201 sed "s/^/$as_me: WARNING: /" >&2
28204 echo "$as_me:$LINENO: checking for $ac_header" >&5
28205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28206 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28207 echo $ECHO_N "(cached) $ECHO_C" >&6
28209 eval "$as_ac_Header=\$ac_header_preproc"
28211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28212 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28215 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28216 cat >>confdefs.h <<_ACEOF
28217 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28224 if test $ac_cv_header_heim_err_h = yes ; then
28230 if test $krb5_impl = mit; then
28231 echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
28232 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
28233 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
28234 echo $ECHO_N "(cached) $ECHO_C" >&6
28236 ac_check_lib_save_LIBS=$LIBS
28237 LIBS="-lk5crypto $LIBS"
28238 cat >conftest.$ac_ext <<_ACEOF
28241 cat confdefs.h >>conftest.$ac_ext
28242 cat >>conftest.$ac_ext <<_ACEOF
28243 /* end confdefs.h. */
28254 rm -f conftest.$ac_objext conftest$ac_exeext
28255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28256 (eval $ac_link) 2>conftest.er1
28258 grep -v '^ *+' conftest.er1 >conftest.err
28260 cat conftest.err >&5
28261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28262 (exit $ac_status); } &&
28263 { ac_try='test -z "$ac_c_werror_flag"
28264 || test ! -s conftest.err'
28265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28266 (eval $ac_try) 2>&5
28268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28269 (exit $ac_status); }; } &&
28270 { ac_try='test -s conftest$ac_exeext'
28271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28272 (eval $ac_try) 2>&5
28274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28275 (exit $ac_status); }; }; then
28276 ac_cv_lib_k5crypto_main=yes
28278 echo "$as_me: failed program was:" >&5
28279 sed 's/^/| /' conftest.$ac_ext >&5
28281 ac_cv_lib_k5crypto_main=no
28283 rm -f conftest.err conftest.$ac_objext \
28284 conftest$ac_exeext conftest.$ac_ext
28285 LIBS=$ac_check_lib_save_LIBS
28287 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
28288 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
28289 if test $ac_cv_lib_k5crypto_main = yes; then
28290 krb5crypto=k5crypto
28296 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
28297 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
28298 if test "${ac_cv_lib_krb5_main+set}" = set; then
28299 echo $ECHO_N "(cached) $ECHO_C" >&6
28301 ac_check_lib_save_LIBS=$LIBS
28302 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
28303 cat >conftest.$ac_ext <<_ACEOF
28306 cat confdefs.h >>conftest.$ac_ext
28307 cat >>conftest.$ac_ext <<_ACEOF
28308 /* end confdefs.h. */
28319 rm -f conftest.$ac_objext conftest$ac_exeext
28320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28321 (eval $ac_link) 2>conftest.er1
28323 grep -v '^ *+' conftest.er1 >conftest.err
28325 cat conftest.err >&5
28326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28327 (exit $ac_status); } &&
28328 { ac_try='test -z "$ac_c_werror_flag"
28329 || test ! -s conftest.err'
28330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28331 (eval $ac_try) 2>&5
28333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28334 (exit $ac_status); }; } &&
28335 { ac_try='test -s conftest$ac_exeext'
28336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28337 (eval $ac_try) 2>&5
28339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28340 (exit $ac_status); }; }; then
28341 ac_cv_lib_krb5_main=yes
28343 echo "$as_me: failed program was:" >&5
28344 sed 's/^/| /' conftest.$ac_ext >&5
28346 ac_cv_lib_krb5_main=no
28348 rm -f conftest.err conftest.$ac_objext \
28349 conftest$ac_exeext conftest.$ac_ext
28350 LIBS=$ac_check_lib_save_LIBS
28352 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
28353 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
28354 if test $ac_cv_lib_krb5_main = yes; then
28356 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
28362 elif test $krb5_impl = heimdal; then
28363 echo "$as_me:$LINENO: checking for main in -ldes" >&5
28364 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
28365 if test "${ac_cv_lib_des_main+set}" = set; then
28366 echo $ECHO_N "(cached) $ECHO_C" >&6
28368 ac_check_lib_save_LIBS=$LIBS
28370 cat >conftest.$ac_ext <<_ACEOF
28373 cat confdefs.h >>conftest.$ac_ext
28374 cat >>conftest.$ac_ext <<_ACEOF
28375 /* end confdefs.h. */
28386 rm -f conftest.$ac_objext conftest$ac_exeext
28387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28388 (eval $ac_link) 2>conftest.er1
28390 grep -v '^ *+' conftest.er1 >conftest.err
28392 cat conftest.err >&5
28393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28394 (exit $ac_status); } &&
28395 { ac_try='test -z "$ac_c_werror_flag"
28396 || test ! -s conftest.err'
28397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28398 (eval $ac_try) 2>&5
28400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28401 (exit $ac_status); }; } &&
28402 { ac_try='test -s conftest$ac_exeext'
28403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28404 (eval $ac_try) 2>&5
28406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28407 (exit $ac_status); }; }; then
28408 ac_cv_lib_des_main=yes
28410 echo "$as_me: failed program was:" >&5
28411 sed 's/^/| /' conftest.$ac_ext >&5
28413 ac_cv_lib_des_main=no
28415 rm -f conftest.err conftest.$ac_objext \
28416 conftest$ac_exeext conftest.$ac_ext
28417 LIBS=$ac_check_lib_save_LIBS
28419 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
28420 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
28421 if test $ac_cv_lib_des_main = yes; then
28428 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
28429 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
28430 if test "${ac_cv_lib_krb5_main+set}" = set; then
28431 echo $ECHO_N "(cached) $ECHO_C" >&6
28433 ac_check_lib_save_LIBS=$LIBS
28434 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
28435 cat >conftest.$ac_ext <<_ACEOF
28438 cat confdefs.h >>conftest.$ac_ext
28439 cat >>conftest.$ac_ext <<_ACEOF
28440 /* end confdefs.h. */
28451 rm -f conftest.$ac_objext conftest$ac_exeext
28452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28453 (eval $ac_link) 2>conftest.er1
28455 grep -v '^ *+' conftest.er1 >conftest.err
28457 cat conftest.err >&5
28458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28459 (exit $ac_status); } &&
28460 { ac_try='test -z "$ac_c_werror_flag"
28461 || test ! -s conftest.err'
28462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28463 (eval $ac_try) 2>&5
28465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28466 (exit $ac_status); }; } &&
28467 { ac_try='test -s conftest$ac_exeext'
28468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28469 (eval $ac_try) 2>&5
28471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28472 (exit $ac_status); }; }; then
28473 ac_cv_lib_krb5_main=yes
28475 echo "$as_me: failed program was:" >&5
28476 sed 's/^/| /' conftest.$ac_ext >&5
28478 ac_cv_lib_krb5_main=no
28480 rm -f conftest.err conftest.$ac_objext \
28481 conftest$ac_exeext conftest.$ac_ext
28482 LIBS=$ac_check_lib_save_LIBS
28484 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
28485 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
28486 if test $ac_cv_lib_krb5_main = yes; then
28488 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
28495 cat >>confdefs.h <<\_ACEOF
28496 #define HAVE_HEIMDAL_KERBEROS 1
28502 { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
28503 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
28506 if test $have_krb5 = yes ; then
28510 cat >>confdefs.h <<\_ACEOF
28511 #define HAVE_KRB5 1
28515 if test $ol_with_kerberos = k5only ; then
28516 ol_with_kerberos=found
28519 elif test $ol_with_kerberos != auto ; then
28520 { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
28521 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
28522 { (exit 1); exit 1; }; }
28528 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
28529 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
28533 for ac_header in kerberosIV/krb.h kerberosIV/des.h
28535 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28536 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28537 echo "$as_me:$LINENO: checking for $ac_header" >&5
28538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28540 echo $ECHO_N "(cached) $ECHO_C" >&6
28542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28543 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28545 # Is the header compilable?
28546 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28547 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28548 cat >conftest.$ac_ext <<_ACEOF
28551 cat confdefs.h >>conftest.$ac_ext
28552 cat >>conftest.$ac_ext <<_ACEOF
28553 /* end confdefs.h. */
28554 $ac_includes_default
28555 #include <$ac_header>
28557 rm -f conftest.$ac_objext
28558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28559 (eval $ac_compile) 2>conftest.er1
28561 grep -v '^ *+' conftest.er1 >conftest.err
28563 cat conftest.err >&5
28564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28565 (exit $ac_status); } &&
28566 { ac_try='test -z "$ac_c_werror_flag"
28567 || test ! -s conftest.err'
28568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28569 (eval $ac_try) 2>&5
28571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28572 (exit $ac_status); }; } &&
28573 { ac_try='test -s conftest.$ac_objext'
28574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28575 (eval $ac_try) 2>&5
28577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28578 (exit $ac_status); }; }; then
28579 ac_header_compiler=yes
28581 echo "$as_me: failed program was:" >&5
28582 sed 's/^/| /' conftest.$ac_ext >&5
28584 ac_header_compiler=no
28586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28587 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28588 echo "${ECHO_T}$ac_header_compiler" >&6
28590 # Is the header present?
28591 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28592 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28593 cat >conftest.$ac_ext <<_ACEOF
28596 cat confdefs.h >>conftest.$ac_ext
28597 cat >>conftest.$ac_ext <<_ACEOF
28598 /* end confdefs.h. */
28599 #include <$ac_header>
28601 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28602 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28604 grep -v '^ *+' conftest.er1 >conftest.err
28606 cat conftest.err >&5
28607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28608 (exit $ac_status); } >/dev/null; then
28609 if test -s conftest.err; then
28610 ac_cpp_err=$ac_c_preproc_warn_flag
28611 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28618 if test -z "$ac_cpp_err"; then
28619 ac_header_preproc=yes
28621 echo "$as_me: failed program was:" >&5
28622 sed 's/^/| /' conftest.$ac_ext >&5
28624 ac_header_preproc=no
28626 rm -f conftest.err conftest.$ac_ext
28627 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28628 echo "${ECHO_T}$ac_header_preproc" >&6
28630 # So? What about this header?
28631 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28633 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28634 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28636 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28637 ac_header_preproc=yes
28640 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28641 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28642 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28643 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28644 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28645 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28646 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28647 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28649 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28650 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28651 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28654 ## ------------------------------------------ ##
28655 ## Report this to the AC_PACKAGE_NAME lists. ##
28656 ## ------------------------------------------ ##
28659 sed "s/^/$as_me: WARNING: /" >&2
28662 echo "$as_me:$LINENO: checking for $ac_header" >&5
28663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28665 echo $ECHO_N "(cached) $ECHO_C" >&6
28667 eval "$as_ac_Header=\$ac_header_preproc"
28669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28670 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28673 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28674 cat >>confdefs.h <<_ACEOF
28675 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28683 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
28684 if test $krb5_impl = mit; then
28685 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
28686 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
28687 if test "${ac_cv_lib_krb4_main+set}" = set; then
28688 echo $ECHO_N "(cached) $ECHO_C" >&6
28690 ac_check_lib_save_LIBS=$LIBS
28691 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
28692 cat >conftest.$ac_ext <<_ACEOF
28695 cat confdefs.h >>conftest.$ac_ext
28696 cat >>conftest.$ac_ext <<_ACEOF
28697 /* end confdefs.h. */
28708 rm -f conftest.$ac_objext conftest$ac_exeext
28709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28710 (eval $ac_link) 2>conftest.er1
28712 grep -v '^ *+' conftest.er1 >conftest.err
28714 cat conftest.err >&5
28715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28716 (exit $ac_status); } &&
28717 { ac_try='test -z "$ac_c_werror_flag"
28718 || test ! -s conftest.err'
28719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28720 (eval $ac_try) 2>&5
28722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28723 (exit $ac_status); }; } &&
28724 { ac_try='test -s conftest$ac_exeext'
28725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28726 (eval $ac_try) 2>&5
28728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28729 (exit $ac_status); }; }; then
28730 ac_cv_lib_krb4_main=yes
28732 echo "$as_me: failed program was:" >&5
28733 sed 's/^/| /' conftest.$ac_ext >&5
28735 ac_cv_lib_krb4_main=no
28737 rm -f conftest.err conftest.$ac_objext \
28738 conftest$ac_exeext conftest.$ac_ext
28739 LIBS=$ac_check_lib_save_LIBS
28741 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
28742 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
28743 if test $ac_cv_lib_krb4_main = yes; then
28745 KRB4_LIBS="-lkrb4 -ldes425"
28751 elif test $krb5_impl = heimdal; then
28752 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
28753 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
28754 if test "${ac_cv_lib_krb4_main+set}" = set; then
28755 echo $ECHO_N "(cached) $ECHO_C" >&6
28757 ac_check_lib_save_LIBS=$LIBS
28758 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
28759 cat >conftest.$ac_ext <<_ACEOF
28762 cat confdefs.h >>conftest.$ac_ext
28763 cat >>conftest.$ac_ext <<_ACEOF
28764 /* end confdefs.h. */
28775 rm -f conftest.$ac_objext conftest$ac_exeext
28776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28777 (eval $ac_link) 2>conftest.er1
28779 grep -v '^ *+' conftest.er1 >conftest.err
28781 cat conftest.err >&5
28782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28783 (exit $ac_status); } &&
28784 { ac_try='test -z "$ac_c_werror_flag"
28785 || test ! -s conftest.err'
28786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28787 (eval $ac_try) 2>&5
28789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28790 (exit $ac_status); }; } &&
28791 { ac_try='test -s conftest$ac_exeext'
28792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28793 (eval $ac_try) 2>&5
28795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28796 (exit $ac_status); }; }; then
28797 ac_cv_lib_krb4_main=yes
28799 echo "$as_me: failed program was:" >&5
28800 sed 's/^/| /' conftest.$ac_ext >&5
28802 ac_cv_lib_krb4_main=no
28804 rm -f conftest.err conftest.$ac_objext \
28805 conftest$ac_exeext conftest.$ac_ext
28806 LIBS=$ac_check_lib_save_LIBS
28808 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
28809 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
28810 if test $ac_cv_lib_krb4_main = yes; then
28820 { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
28821 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
28824 if test $have_k425 = yes ; then
28825 ol_with_kerberos=found
28829 cat >>confdefs.h <<\_ACEOF
28830 #define HAVE_KRB425 1
28834 cat >>confdefs.h <<\_ACEOF
28835 #define HAVE_KRB4 1
28839 echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
28840 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
28841 if test "${ol_cv_var_des_debug+set}" = set; then
28842 echo $ECHO_N "(cached) $ECHO_C" >&6
28846 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
28847 cat >conftest.$ac_ext <<_ACEOF
28850 cat confdefs.h >>conftest.$ac_ext
28851 cat >>conftest.$ac_ext <<_ACEOF
28852 /* end confdefs.h. */
28854 #include <kerberosIV/krb.h>
28855 #include <kerberosIV/des.h>
28856 extern int des_debug;
28868 rm -f conftest.$ac_objext conftest$ac_exeext
28869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28870 (eval $ac_link) 2>conftest.er1
28872 grep -v '^ *+' conftest.er1 >conftest.err
28874 cat conftest.err >&5
28875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28876 (exit $ac_status); } &&
28877 { ac_try='test -z "$ac_c_werror_flag"
28878 || test ! -s conftest.err'
28879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28880 (eval $ac_try) 2>&5
28882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28883 (exit $ac_status); }; } &&
28884 { ac_try='test -s conftest$ac_exeext'
28885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28886 (eval $ac_try) 2>&5
28888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28889 (exit $ac_status); }; }; then
28890 ol_cv_var_des_debug=yes
28892 echo "$as_me: failed program was:" >&5
28893 sed 's/^/| /' conftest.$ac_ext >&5
28895 ol_cv_var_des_debug=no
28897 rm -f conftest.err conftest.$ac_objext \
28898 conftest$ac_exeext conftest.$ac_ext
28902 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
28903 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
28905 if test $ol_cv_var_des_debug = yes ; then
28907 cat >>confdefs.h <<\_ACEOF
28908 #define HAVE_DES_DEBUG 1
28918 if test $ol_link_krb5 = yes ; then
28919 ol_with_kerberos=found
28922 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
28923 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
28928 for ac_header in krb.h des.h krb-archaeology.h
28930 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28932 echo "$as_me:$LINENO: checking for $ac_header" >&5
28933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28934 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28935 echo $ECHO_N "(cached) $ECHO_C" >&6
28937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28938 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28940 # Is the header compilable?
28941 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28942 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28943 cat >conftest.$ac_ext <<_ACEOF
28946 cat confdefs.h >>conftest.$ac_ext
28947 cat >>conftest.$ac_ext <<_ACEOF
28948 /* end confdefs.h. */
28949 $ac_includes_default
28950 #include <$ac_header>
28952 rm -f conftest.$ac_objext
28953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28954 (eval $ac_compile) 2>conftest.er1
28956 grep -v '^ *+' conftest.er1 >conftest.err
28958 cat conftest.err >&5
28959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28960 (exit $ac_status); } &&
28961 { ac_try='test -z "$ac_c_werror_flag"
28962 || test ! -s conftest.err'
28963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28964 (eval $ac_try) 2>&5
28966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28967 (exit $ac_status); }; } &&
28968 { ac_try='test -s conftest.$ac_objext'
28969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28970 (eval $ac_try) 2>&5
28972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28973 (exit $ac_status); }; }; then
28974 ac_header_compiler=yes
28976 echo "$as_me: failed program was:" >&5
28977 sed 's/^/| /' conftest.$ac_ext >&5
28979 ac_header_compiler=no
28981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28982 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28983 echo "${ECHO_T}$ac_header_compiler" >&6
28985 # Is the header present?
28986 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28987 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28988 cat >conftest.$ac_ext <<_ACEOF
28991 cat confdefs.h >>conftest.$ac_ext
28992 cat >>conftest.$ac_ext <<_ACEOF
28993 /* end confdefs.h. */
28994 #include <$ac_header>
28996 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28997 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28999 grep -v '^ *+' conftest.er1 >conftest.err
29001 cat conftest.err >&5
29002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29003 (exit $ac_status); } >/dev/null; then
29004 if test -s conftest.err; then
29005 ac_cpp_err=$ac_c_preproc_warn_flag
29006 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29013 if test -z "$ac_cpp_err"; then
29014 ac_header_preproc=yes
29016 echo "$as_me: failed program was:" >&5
29017 sed 's/^/| /' conftest.$ac_ext >&5
29019 ac_header_preproc=no
29021 rm -f conftest.err conftest.$ac_ext
29022 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29023 echo "${ECHO_T}$ac_header_preproc" >&6
29025 # So? What about this header?
29026 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29028 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29029 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29030 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29031 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29032 ac_header_preproc=yes
29035 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29036 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29037 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29038 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29039 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29040 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29041 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29042 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29044 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29045 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29046 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29049 ## ------------------------------------------ ##
29050 ## Report this to the AC_PACKAGE_NAME lists. ##
29051 ## ------------------------------------------ ##
29054 sed "s/^/$as_me: WARNING: /" >&2
29057 echo "$as_me:$LINENO: checking for $ac_header" >&5
29058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29060 echo $ECHO_N "(cached) $ECHO_C" >&6
29062 eval "$as_ac_Header=\$ac_header_preproc"
29064 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29065 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29068 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29069 cat >>confdefs.h <<_ACEOF
29070 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29078 if test $ac_cv_header_krb_h = yes ; then
29079 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
29080 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
29081 if test "${ac_cv_lib_krb_main+set}" = set; then
29082 echo $ECHO_N "(cached) $ECHO_C" >&6
29084 ac_check_lib_save_LIBS=$LIBS
29085 LIBS="-lkrb -ldes $LIBS"
29086 cat >conftest.$ac_ext <<_ACEOF
29089 cat confdefs.h >>conftest.$ac_ext
29090 cat >>conftest.$ac_ext <<_ACEOF
29091 /* end confdefs.h. */
29102 rm -f conftest.$ac_objext conftest$ac_exeext
29103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29104 (eval $ac_link) 2>conftest.er1
29106 grep -v '^ *+' conftest.er1 >conftest.err
29108 cat conftest.err >&5
29109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29110 (exit $ac_status); } &&
29111 { ac_try='test -z "$ac_c_werror_flag"
29112 || test ! -s conftest.err'
29113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29114 (eval $ac_try) 2>&5
29116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29117 (exit $ac_status); }; } &&
29118 { ac_try='test -s conftest$ac_exeext'
29119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29120 (eval $ac_try) 2>&5
29122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29123 (exit $ac_status); }; }; then
29124 ac_cv_lib_krb_main=yes
29126 echo "$as_me: failed program was:" >&5
29127 sed 's/^/| /' conftest.$ac_ext >&5
29129 ac_cv_lib_krb_main=no
29131 rm -f conftest.err conftest.$ac_objext \
29132 conftest$ac_exeext conftest.$ac_ext
29133 LIBS=$ac_check_lib_save_LIBS
29135 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
29136 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
29137 if test $ac_cv_lib_krb_main = yes; then
29144 if test $have_k4 = yes ; then
29145 ol_with_kerberos=found
29149 cat >>confdefs.h <<\_ACEOF
29150 #define HAVE_KRB4 1
29154 KRB4_LIBS="-lkrb -ldes"
29156 if test $ac_cv_header_krb_archaeology_h = yes ; then
29158 cat >>confdefs.h <<\_ACEOF
29159 #define HAVE_KTH_KERBEROS 1
29167 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
29170 elif test $ol_enable_kbind = yes ; then
29171 { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
29172 echo "$as_me: error: Kerberos IV detection failed" >&2;}
29173 { (exit 1); exit 1; }; }
29176 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
29178 cat >>confdefs.h <<\_ACEOF
29179 #define HAVE_KERBEROS 1
29183 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
29184 { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
29185 echo "$as_me: error: Kerberos detection failed" >&2;}
29186 { (exit 1); exit 1; }; }
29191 if test $ol_with_tls != no ; then
29194 for ac_header in openssl/ssl.h ssl.h
29196 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29198 echo "$as_me:$LINENO: checking for $ac_header" >&5
29199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29201 echo $ECHO_N "(cached) $ECHO_C" >&6
29203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29204 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29206 # Is the header compilable?
29207 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29208 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29209 cat >conftest.$ac_ext <<_ACEOF
29212 cat confdefs.h >>conftest.$ac_ext
29213 cat >>conftest.$ac_ext <<_ACEOF
29214 /* end confdefs.h. */
29215 $ac_includes_default
29216 #include <$ac_header>
29218 rm -f conftest.$ac_objext
29219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29220 (eval $ac_compile) 2>conftest.er1
29222 grep -v '^ *+' conftest.er1 >conftest.err
29224 cat conftest.err >&5
29225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29226 (exit $ac_status); } &&
29227 { ac_try='test -z "$ac_c_werror_flag"
29228 || test ! -s conftest.err'
29229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29230 (eval $ac_try) 2>&5
29232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29233 (exit $ac_status); }; } &&
29234 { ac_try='test -s conftest.$ac_objext'
29235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29236 (eval $ac_try) 2>&5
29238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29239 (exit $ac_status); }; }; then
29240 ac_header_compiler=yes
29242 echo "$as_me: failed program was:" >&5
29243 sed 's/^/| /' conftest.$ac_ext >&5
29245 ac_header_compiler=no
29247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29248 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29249 echo "${ECHO_T}$ac_header_compiler" >&6
29251 # Is the header present?
29252 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29253 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29254 cat >conftest.$ac_ext <<_ACEOF
29257 cat confdefs.h >>conftest.$ac_ext
29258 cat >>conftest.$ac_ext <<_ACEOF
29259 /* end confdefs.h. */
29260 #include <$ac_header>
29262 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29263 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29265 grep -v '^ *+' conftest.er1 >conftest.err
29267 cat conftest.err >&5
29268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29269 (exit $ac_status); } >/dev/null; then
29270 if test -s conftest.err; then
29271 ac_cpp_err=$ac_c_preproc_warn_flag
29272 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29279 if test -z "$ac_cpp_err"; then
29280 ac_header_preproc=yes
29282 echo "$as_me: failed program was:" >&5
29283 sed 's/^/| /' conftest.$ac_ext >&5
29285 ac_header_preproc=no
29287 rm -f conftest.err conftest.$ac_ext
29288 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29289 echo "${ECHO_T}$ac_header_preproc" >&6
29291 # So? What about this header?
29292 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29294 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29295 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29297 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29298 ac_header_preproc=yes
29301 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29302 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29303 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29304 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29305 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29306 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29307 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29308 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29309 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29310 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29311 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29312 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29315 ## ------------------------------------------ ##
29316 ## Report this to the AC_PACKAGE_NAME lists. ##
29317 ## ------------------------------------------ ##
29320 sed "s/^/$as_me: WARNING: /" >&2
29323 echo "$as_me:$LINENO: checking for $ac_header" >&5
29324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29325 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29326 echo $ECHO_N "(cached) $ECHO_C" >&6
29328 eval "$as_ac_Header=\$ac_header_preproc"
29330 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29331 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29334 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29335 cat >>confdefs.h <<_ACEOF
29336 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29344 if test $ac_cv_header_openssl_ssl_h = yes \
29345 -o $ac_cv_header_ssl_h = yes ; then
29346 echo "$as_me:$LINENO: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
29347 echo $ECHO_N "checking for SSLeay_add_ssl_algorithms in -lssl... $ECHO_C" >&6
29348 if test "${ac_cv_lib_ssl_SSLeay_add_ssl_algorithms+set}" = set; then
29349 echo $ECHO_N "(cached) $ECHO_C" >&6
29351 ac_check_lib_save_LIBS=$LIBS
29352 LIBS="-lssl -lcrypto $LIBS"
29353 cat >conftest.$ac_ext <<_ACEOF
29356 cat confdefs.h >>conftest.$ac_ext
29357 cat >>conftest.$ac_ext <<_ACEOF
29358 /* end confdefs.h. */
29360 /* Override any gcc2 internal prototype to avoid an error. */
29364 /* We use char because int might match the return type of a gcc2
29365 builtin and then its argument prototype would still apply. */
29366 char SSLeay_add_ssl_algorithms ();
29370 SSLeay_add_ssl_algorithms ();
29375 rm -f conftest.$ac_objext conftest$ac_exeext
29376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29377 (eval $ac_link) 2>conftest.er1
29379 grep -v '^ *+' conftest.er1 >conftest.err
29381 cat conftest.err >&5
29382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29383 (exit $ac_status); } &&
29384 { ac_try='test -z "$ac_c_werror_flag"
29385 || test ! -s conftest.err'
29386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29387 (eval $ac_try) 2>&5
29389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29390 (exit $ac_status); }; } &&
29391 { ac_try='test -s conftest$ac_exeext'
29392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29393 (eval $ac_try) 2>&5
29395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29396 (exit $ac_status); }; }; then
29397 ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=yes
29399 echo "$as_me: failed program was:" >&5
29400 sed 's/^/| /' conftest.$ac_ext >&5
29402 ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=no
29404 rm -f conftest.err conftest.$ac_objext \
29405 conftest$ac_exeext conftest.$ac_ext
29406 LIBS=$ac_check_lib_save_LIBS
29408 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&5
29409 echo "${ECHO_T}$ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&6
29410 if test $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms = yes; then
29418 if test $have_ssleay = no ; then
29419 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
29420 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
29421 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
29422 echo $ECHO_N "(cached) $ECHO_C" >&6
29424 ac_check_lib_save_LIBS=$LIBS
29425 LIBS="-lssl -lcrypto $LIBS"
29426 cat >conftest.$ac_ext <<_ACEOF
29429 cat confdefs.h >>conftest.$ac_ext
29430 cat >>conftest.$ac_ext <<_ACEOF
29431 /* end confdefs.h. */
29433 /* Override any gcc2 internal prototype to avoid an error. */
29437 /* We use char because int might match the return type of a gcc2
29438 builtin and then its argument prototype would still apply. */
29439 char SSL_library_init ();
29443 SSL_library_init ();
29448 rm -f conftest.$ac_objext conftest$ac_exeext
29449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29450 (eval $ac_link) 2>conftest.er1
29452 grep -v '^ *+' conftest.er1 >conftest.err
29454 cat conftest.err >&5
29455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29456 (exit $ac_status); } &&
29457 { ac_try='test -z "$ac_c_werror_flag"
29458 || test ! -s conftest.err'
29459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29460 (eval $ac_try) 2>&5
29462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29463 (exit $ac_status); }; } &&
29464 { ac_try='test -s conftest$ac_exeext'
29465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29466 (eval $ac_try) 2>&5
29468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29469 (exit $ac_status); }; }; then
29470 ac_cv_lib_ssl_SSL_library_init=yes
29472 echo "$as_me: failed program was:" >&5
29473 sed 's/^/| /' conftest.$ac_ext >&5
29475 ac_cv_lib_ssl_SSL_library_init=no
29477 rm -f conftest.err conftest.$ac_objext \
29478 conftest$ac_exeext conftest.$ac_ext
29479 LIBS=$ac_check_lib_save_LIBS
29481 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
29482 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
29483 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
29492 if test $have_ssleay = no ; then
29493 echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
29494 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
29495 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
29496 echo $ECHO_N "(cached) $ECHO_C" >&6
29498 ac_check_lib_save_LIBS=$LIBS
29499 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
29500 cat >conftest.$ac_ext <<_ACEOF
29503 cat confdefs.h >>conftest.$ac_ext
29504 cat >>conftest.$ac_ext <<_ACEOF
29505 /* end confdefs.h. */
29507 /* Override any gcc2 internal prototype to avoid an error. */
29511 /* We use char because int might match the return type of a gcc2
29512 builtin and then its argument prototype would still apply. */
29513 char ssl3_accept ();
29522 rm -f conftest.$ac_objext conftest$ac_exeext
29523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29524 (eval $ac_link) 2>conftest.er1
29526 grep -v '^ *+' conftest.er1 >conftest.err
29528 cat conftest.err >&5
29529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29530 (exit $ac_status); } &&
29531 { ac_try='test -z "$ac_c_werror_flag"
29532 || test ! -s conftest.err'
29533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29534 (eval $ac_try) 2>&5
29536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29537 (exit $ac_status); }; } &&
29538 { ac_try='test -s conftest$ac_exeext'
29539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29540 (eval $ac_try) 2>&5
29542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29543 (exit $ac_status); }; }; then
29544 ac_cv_lib_ssl_ssl3_accept=yes
29546 echo "$as_me: failed program was:" >&5
29547 sed 's/^/| /' conftest.$ac_ext >&5
29549 ac_cv_lib_ssl_ssl3_accept=no
29551 rm -f conftest.err conftest.$ac_objext \
29552 conftest$ac_exeext conftest.$ac_ext
29553 LIBS=$ac_check_lib_save_LIBS
29555 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
29556 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
29557 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
29566 if test $have_ssleay = yes ; then
29571 cat >>confdefs.h <<\_ACEOF
29572 #define HAVE_SSLEAY 1
29576 if test $need_rsaref = yes; then
29578 cat >>confdefs.h <<\_ACEOF
29579 #define HAVE_RSAREF 1
29583 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
29585 TLS_LIBS="-lssl -lcrypto"
29588 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
29589 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
29590 if test "${ol_cv_ssl_crl_compat+set}" = set; then
29591 echo $ECHO_N "(cached) $ECHO_C" >&6
29594 cat >conftest.$ac_ext <<_ACEOF
29597 cat confdefs.h >>conftest.$ac_ext
29598 cat >>conftest.$ac_ext <<_ACEOF
29599 /* end confdefs.h. */
29601 #ifdef HAVE_OPENSSL_SSL_H
29602 #include <openssl/ssl.h>
29607 /* Require 0.9.7d+ */
29608 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
29609 char *__ssl_compat = "0.9.7d";
29613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29614 $EGREP "__ssl_compat" >/dev/null 2>&1; then
29615 ol_cv_ssl_crl_compat=yes
29617 ol_cv_ssl_crl_compat=no
29622 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
29623 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
29625 if test $ol_cv_ssl_crl_compat = no ; then
29629 cat >>confdefs.h <<\_ACEOF
29630 #define HAVE_OPENSSL_CRL 1
29637 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
29638 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
29642 if test $ol_link_tls = yes ; then
29644 cat >>confdefs.h <<\_ACEOF
29650 elif test $ol_with_tls = auto ; then
29651 { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
29652 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
29653 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
29654 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
29656 elif test $ol_with_tls != no ; then
29657 { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
29658 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
29659 { (exit 1); exit 1; }; }
29662 if test $ol_enable_lmpasswd != no; then
29663 if test $ol_link_tls != yes ; then
29664 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
29665 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
29666 { (exit 1); exit 1; }; }
29670 cat >>confdefs.h <<\_ACEOF
29671 #define SLAPD_LMHASH 1
29678 if test $ol_with_threads = auto -o $ol_with_threads = yes \
29679 -o $ol_with_threads = nt ; then
29682 echo "$as_me:$LINENO: checking for _beginthread" >&5
29683 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
29684 if test "${ac_cv_func__beginthread+set}" = set; then
29685 echo $ECHO_N "(cached) $ECHO_C" >&6
29687 cat >conftest.$ac_ext <<_ACEOF
29690 cat confdefs.h >>conftest.$ac_ext
29691 cat >>conftest.$ac_ext <<_ACEOF
29692 /* end confdefs.h. */
29693 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
29694 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29695 #define _beginthread innocuous__beginthread
29697 /* System header to define __stub macros and hopefully few prototypes,
29698 which can conflict with char _beginthread (); below.
29699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29700 <limits.h> exists even on freestanding compilers. */
29703 # include <limits.h>
29705 # include <assert.h>
29708 #undef _beginthread
29710 /* Override any gcc2 internal prototype to avoid an error. */
29715 /* We use char because int might match the return type of a gcc2
29716 builtin and then its argument prototype would still apply. */
29717 char _beginthread ();
29718 /* The GNU C library defines this for functions which it implements
29719 to always fail with ENOSYS. Some functions are actually named
29720 something starting with __ and the normal name is an alias. */
29721 #if defined (__stub__beginthread) || defined (__stub____beginthread)
29724 char (*f) () = _beginthread;
29733 return f != _beginthread;
29738 rm -f conftest.$ac_objext conftest$ac_exeext
29739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29740 (eval $ac_link) 2>conftest.er1
29742 grep -v '^ *+' conftest.er1 >conftest.err
29744 cat conftest.err >&5
29745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29746 (exit $ac_status); } &&
29747 { ac_try='test -z "$ac_c_werror_flag"
29748 || test ! -s conftest.err'
29749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29750 (eval $ac_try) 2>&5
29752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29753 (exit $ac_status); }; } &&
29754 { ac_try='test -s conftest$ac_exeext'
29755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29756 (eval $ac_try) 2>&5
29758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29759 (exit $ac_status); }; }; then
29760 ac_cv_func__beginthread=yes
29762 echo "$as_me: failed program was:" >&5
29763 sed 's/^/| /' conftest.$ac_ext >&5
29765 ac_cv_func__beginthread=no
29767 rm -f conftest.err conftest.$ac_objext \
29768 conftest$ac_exeext conftest.$ac_ext
29770 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
29771 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
29774 if test $ac_cv_func__beginthread = yes ; then
29776 cat >>confdefs.h <<\_ACEOF
29777 #define HAVE_NT_THREADS 1
29780 ol_cv_nt_threads=yes
29784 if test "$ol_cv_nt_threads" = yes ; then
29786 ol_with_threads=found
29787 ol_with_yielding_select=yes
29790 cat >>confdefs.h <<\_ACEOF
29791 #define HAVE_NT_SERVICE_MANAGER 1
29795 cat >>confdefs.h <<\_ACEOF
29796 #define HAVE_NT_EVENT_LOG 1
29801 if test $ol_with_threads = nt ; then
29802 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
29803 echo "$as_me: error: could not locate NT Threads" >&2;}
29804 { (exit 1); exit 1; }; }
29808 if test $ol_with_threads = auto -o $ol_with_threads = yes \
29809 -o $ol_with_threads = posix ; then
29812 for ac_header in pthread.h
29814 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29816 echo "$as_me:$LINENO: checking for $ac_header" >&5
29817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29818 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29819 echo $ECHO_N "(cached) $ECHO_C" >&6
29821 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29822 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29824 # Is the header compilable?
29825 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29826 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29827 cat >conftest.$ac_ext <<_ACEOF
29830 cat confdefs.h >>conftest.$ac_ext
29831 cat >>conftest.$ac_ext <<_ACEOF
29832 /* end confdefs.h. */
29833 $ac_includes_default
29834 #include <$ac_header>
29836 rm -f conftest.$ac_objext
29837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29838 (eval $ac_compile) 2>conftest.er1
29840 grep -v '^ *+' conftest.er1 >conftest.err
29842 cat conftest.err >&5
29843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29844 (exit $ac_status); } &&
29845 { ac_try='test -z "$ac_c_werror_flag"
29846 || test ! -s conftest.err'
29847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29848 (eval $ac_try) 2>&5
29850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29851 (exit $ac_status); }; } &&
29852 { ac_try='test -s conftest.$ac_objext'
29853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29854 (eval $ac_try) 2>&5
29856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29857 (exit $ac_status); }; }; then
29858 ac_header_compiler=yes
29860 echo "$as_me: failed program was:" >&5
29861 sed 's/^/| /' conftest.$ac_ext >&5
29863 ac_header_compiler=no
29865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29866 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29867 echo "${ECHO_T}$ac_header_compiler" >&6
29869 # Is the header present?
29870 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29871 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29872 cat >conftest.$ac_ext <<_ACEOF
29875 cat confdefs.h >>conftest.$ac_ext
29876 cat >>conftest.$ac_ext <<_ACEOF
29877 /* end confdefs.h. */
29878 #include <$ac_header>
29880 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29881 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29883 grep -v '^ *+' conftest.er1 >conftest.err
29885 cat conftest.err >&5
29886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29887 (exit $ac_status); } >/dev/null; then
29888 if test -s conftest.err; then
29889 ac_cpp_err=$ac_c_preproc_warn_flag
29890 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29897 if test -z "$ac_cpp_err"; then
29898 ac_header_preproc=yes
29900 echo "$as_me: failed program was:" >&5
29901 sed 's/^/| /' conftest.$ac_ext >&5
29903 ac_header_preproc=no
29905 rm -f conftest.err conftest.$ac_ext
29906 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29907 echo "${ECHO_T}$ac_header_preproc" >&6
29909 # So? What about this header?
29910 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29912 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29913 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29915 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29916 ac_header_preproc=yes
29919 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29920 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29921 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29922 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29923 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29924 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29925 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29926 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29928 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29929 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29930 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29933 ## ------------------------------------------ ##
29934 ## Report this to the AC_PACKAGE_NAME lists. ##
29935 ## ------------------------------------------ ##
29938 sed "s/^/$as_me: WARNING: /" >&2
29941 echo "$as_me:$LINENO: checking for $ac_header" >&5
29942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29944 echo $ECHO_N "(cached) $ECHO_C" >&6
29946 eval "$as_ac_Header=\$ac_header_preproc"
29948 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29949 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29952 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29953 cat >>confdefs.h <<_ACEOF
29954 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29962 if test $ac_cv_header_pthread_h = yes ; then
29963 echo "$as_me:$LINENO: checking POSIX thread version" >&5
29964 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
29965 if test "${ol_cv_pthread_version+set}" = set; then
29966 echo $ECHO_N "(cached) $ECHO_C" >&6
29969 cat >conftest.$ac_ext <<_ACEOF
29972 cat confdefs.h >>conftest.$ac_ext
29973 cat >>conftest.$ac_ext <<_ACEOF
29974 /* end confdefs.h. */
29976 # include <pthread.h>
29982 int i = PTHREAD_CREATE_JOINABLE;
29988 rm -f conftest.$ac_objext
29989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29990 (eval $ac_compile) 2>conftest.er1
29992 grep -v '^ *+' conftest.er1 >conftest.err
29994 cat conftest.err >&5
29995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29996 (exit $ac_status); } &&
29997 { ac_try='test -z "$ac_c_werror_flag"
29998 || test ! -s conftest.err'
29999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30000 (eval $ac_try) 2>&5
30002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30003 (exit $ac_status); }; } &&
30004 { ac_try='test -s conftest.$ac_objext'
30005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30006 (eval $ac_try) 2>&5
30008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30009 (exit $ac_status); }; }; then
30011 cat >conftest.$ac_ext <<_ACEOF
30014 cat confdefs.h >>conftest.$ac_ext
30015 cat >>conftest.$ac_ext <<_ACEOF
30016 /* end confdefs.h. */
30017 #include <pthread.h>
30020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30021 $EGREP "pthread_detach" >/dev/null 2>&1; then
30022 ol_cv_pthread_version=10
30024 ol_cv_pthread_version=8
30029 echo "$as_me: failed program was:" >&5
30030 sed 's/^/| /' conftest.$ac_ext >&5
30033 cat >conftest.$ac_ext <<_ACEOF
30036 cat confdefs.h >>conftest.$ac_ext
30037 cat >>conftest.$ac_ext <<_ACEOF
30038 /* end confdefs.h. */
30040 # include <pthread.h>
30041 # ifdef PTHREAD_CREATE_UNDETACHED
30046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30047 $EGREP "draft7" >/dev/null 2>&1; then
30048 ol_cv_pthread_version=7
30051 cat >conftest.$ac_ext <<_ACEOF
30054 cat confdefs.h >>conftest.$ac_ext
30055 cat >>conftest.$ac_ext <<_ACEOF
30056 /* end confdefs.h. */
30057 #include <pthread.h>
30060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30061 $EGREP "pthread_attr_init" >/dev/null 2>&1; then
30062 ol_cv_pthread_version=6
30065 cat >conftest.$ac_ext <<_ACEOF
30068 cat confdefs.h >>conftest.$ac_ext
30069 cat >>conftest.$ac_ext <<_ACEOF
30070 /* end confdefs.h. */
30072 # include <pthread.h>
30073 #ifdef PTHREAD_MUTEX_INITIALIZER
30078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30079 $EGREP "draft5" >/dev/null 2>&1; then
30080 ol_cv_pthread_version=5
30082 ol_cv_pthread_version=4
30093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30096 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
30097 echo "${ECHO_T}$ol_cv_pthread_version" >&6
30100 if test $ol_cv_pthread_version != 0 ; then
30102 cat >>confdefs.h <<_ACEOF
30103 #define HAVE_PTHREADS $ol_cv_pthread_version
30107 { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
30108 echo "$as_me: error: unknown pthread version" >&2;}
30109 { (exit 1); exit 1; }; }
30112 # consider threads found
30113 ol_with_threads=found
30116 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
30117 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
30118 if test "${ol_cv_header_linux_threads+set}" = set; then
30119 echo $ECHO_N "(cached) $ECHO_C" >&6
30121 cat >conftest.$ac_ext <<_ACEOF
30124 cat confdefs.h >>conftest.$ac_ext
30125 cat >>conftest.$ac_ext <<_ACEOF
30126 /* end confdefs.h. */
30127 #include <pthread.h>
30129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30130 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
30131 ol_cv_header_linux_threads=yes
30133 ol_cv_header_linux_threads=no
30139 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
30140 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
30141 if test $ol_cv_header_linux_threads = yes; then
30143 cat >>confdefs.h <<\_ACEOF
30144 #define HAVE_LINUX_THREADS 1
30150 echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
30151 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
30152 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
30153 echo $ECHO_N "(cached) $ECHO_C" >&6
30155 cat >conftest.$ac_ext <<_ACEOF
30158 cat confdefs.h >>conftest.$ac_ext
30159 cat >>conftest.$ac_ext <<_ACEOF
30160 /* end confdefs.h. */
30161 #include <pthread.h>
30162 #ifdef _POSIX_THREAD_IS_GNU_PTH
30167 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30168 $EGREP "__gnu_pth__" >/dev/null 2>&1; then
30169 ol_cv_header_gnu_pth_pthread_h=yes
30171 ol_cv_header_gnu_pth_pthread_h=no
30177 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
30178 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
30181 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
30183 for ac_header in sched.h
30185 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30186 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30187 echo "$as_me:$LINENO: checking for $ac_header" >&5
30188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30189 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30190 echo $ECHO_N "(cached) $ECHO_C" >&6
30192 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30193 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30195 # Is the header compilable?
30196 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30197 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30198 cat >conftest.$ac_ext <<_ACEOF
30201 cat confdefs.h >>conftest.$ac_ext
30202 cat >>conftest.$ac_ext <<_ACEOF
30203 /* end confdefs.h. */
30204 $ac_includes_default
30205 #include <$ac_header>
30207 rm -f conftest.$ac_objext
30208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30209 (eval $ac_compile) 2>conftest.er1
30211 grep -v '^ *+' conftest.er1 >conftest.err
30213 cat conftest.err >&5
30214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30215 (exit $ac_status); } &&
30216 { ac_try='test -z "$ac_c_werror_flag"
30217 || test ! -s conftest.err'
30218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30219 (eval $ac_try) 2>&5
30221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30222 (exit $ac_status); }; } &&
30223 { ac_try='test -s conftest.$ac_objext'
30224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30225 (eval $ac_try) 2>&5
30227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30228 (exit $ac_status); }; }; then
30229 ac_header_compiler=yes
30231 echo "$as_me: failed program was:" >&5
30232 sed 's/^/| /' conftest.$ac_ext >&5
30234 ac_header_compiler=no
30236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30237 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30238 echo "${ECHO_T}$ac_header_compiler" >&6
30240 # Is the header present?
30241 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30242 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30243 cat >conftest.$ac_ext <<_ACEOF
30246 cat confdefs.h >>conftest.$ac_ext
30247 cat >>conftest.$ac_ext <<_ACEOF
30248 /* end confdefs.h. */
30249 #include <$ac_header>
30251 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30252 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30254 grep -v '^ *+' conftest.er1 >conftest.err
30256 cat conftest.err >&5
30257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30258 (exit $ac_status); } >/dev/null; then
30259 if test -s conftest.err; then
30260 ac_cpp_err=$ac_c_preproc_warn_flag
30261 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30268 if test -z "$ac_cpp_err"; then
30269 ac_header_preproc=yes
30271 echo "$as_me: failed program was:" >&5
30272 sed 's/^/| /' conftest.$ac_ext >&5
30274 ac_header_preproc=no
30276 rm -f conftest.err conftest.$ac_ext
30277 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30278 echo "${ECHO_T}$ac_header_preproc" >&6
30280 # So? What about this header?
30281 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30283 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30284 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30285 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30286 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30287 ac_header_preproc=yes
30290 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30291 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30292 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30293 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30294 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30295 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30296 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30297 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30298 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30299 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30300 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30301 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30304 ## ------------------------------------------ ##
30305 ## Report this to the AC_PACKAGE_NAME lists. ##
30306 ## ------------------------------------------ ##
30309 sed "s/^/$as_me: WARNING: /" >&2
30312 echo "$as_me:$LINENO: checking for $ac_header" >&5
30313 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30314 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30315 echo $ECHO_N "(cached) $ECHO_C" >&6
30317 eval "$as_ac_Header=\$ac_header_preproc"
30319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30320 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30323 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30324 cat >>confdefs.h <<_ACEOF
30325 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30335 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
30336 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
30337 if test "${ol_cv_pthread_create+set}" = set; then
30338 echo $ECHO_N "(cached) $ECHO_C" >&6
30341 if test "$cross_compiling" = yes; then
30342 cat >conftest.$ac_ext <<_ACEOF
30345 cat confdefs.h >>conftest.$ac_ext
30346 cat >>conftest.$ac_ext <<_ACEOF
30347 /* end confdefs.h. */
30348 /* pthread test headers */
30349 #include <pthread.h>
30350 #if HAVE_PTHREADS < 7
30354 #define NULL (void*)0
30357 static void *task(p)
30360 return (void *) (p == NULL);
30367 /* pthread test function */
30368 #ifndef PTHREAD_CREATE_DETACHED
30369 #define PTHREAD_CREATE_DETACHED 1
30373 int detach = PTHREAD_CREATE_DETACHED;
30375 #if HAVE_PTHREADS > 4
30376 /* Final pthreads */
30377 pthread_attr_t attr;
30379 status = pthread_attr_init(&attr);
30380 if( status ) return status;
30382 #if HAVE_PTHREADS < 7
30383 status = pthread_attr_setdetachstate(&attr, &detach);
30384 if( status < 0 ) status = errno;
30386 status = pthread_attr_setdetachstate(&attr, detach);
30388 if( status ) return status;
30389 status = pthread_create( &t, &attr, task, NULL );
30390 #if HAVE_PTHREADS < 7
30391 if( status < 0 ) status = errno;
30393 if( status ) return status;
30395 /* Draft 4 pthreads */
30396 status = pthread_create( &t, pthread_attr_default, task, NULL );
30397 if( status ) return errno;
30399 /* give thread a chance to complete */
30400 /* it should remain joinable and hence detachable */
30403 status = pthread_detach( &t );
30404 if( status ) return errno;
30407 #ifdef HAVE_LINUX_THREADS
30408 pthread_kill_other_threads_np();
30417 rm -f conftest.$ac_objext conftest$ac_exeext
30418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30419 (eval $ac_link) 2>conftest.er1
30421 grep -v '^ *+' conftest.er1 >conftest.err
30423 cat conftest.err >&5
30424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30425 (exit $ac_status); } &&
30426 { ac_try='test -z "$ac_c_werror_flag"
30427 || test ! -s conftest.err'
30428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30429 (eval $ac_try) 2>&5
30431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30432 (exit $ac_status); }; } &&
30433 { ac_try='test -s conftest$ac_exeext'
30434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30435 (eval $ac_try) 2>&5
30437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30438 (exit $ac_status); }; }; then
30439 ol_cv_pthread_create=yes
30441 echo "$as_me: failed program was:" >&5
30442 sed 's/^/| /' conftest.$ac_ext >&5
30444 ol_cv_pthread_create=no
30446 rm -f conftest.err conftest.$ac_objext \
30447 conftest$ac_exeext conftest.$ac_ext
30449 cat >conftest.$ac_ext <<_ACEOF
30452 cat confdefs.h >>conftest.$ac_ext
30453 cat >>conftest.$ac_ext <<_ACEOF
30454 /* end confdefs.h. */
30455 /* pthread test headers */
30456 #include <pthread.h>
30457 #if HAVE_PTHREADS < 7
30461 #define NULL (void*)0
30464 static void *task(p)
30467 return (void *) (p == NULL);
30471 int main(argc, argv)
30476 /* pthread test function */
30477 #ifndef PTHREAD_CREATE_DETACHED
30478 #define PTHREAD_CREATE_DETACHED 1
30482 int detach = PTHREAD_CREATE_DETACHED;
30484 #if HAVE_PTHREADS > 4
30485 /* Final pthreads */
30486 pthread_attr_t attr;
30488 status = pthread_attr_init(&attr);
30489 if( status ) return status;
30491 #if HAVE_PTHREADS < 7
30492 status = pthread_attr_setdetachstate(&attr, &detach);
30493 if( status < 0 ) status = errno;
30495 status = pthread_attr_setdetachstate(&attr, detach);
30497 if( status ) return status;
30498 status = pthread_create( &t, &attr, task, NULL );
30499 #if HAVE_PTHREADS < 7
30500 if( status < 0 ) status = errno;
30502 if( status ) return status;
30504 /* Draft 4 pthreads */
30505 status = pthread_create( &t, pthread_attr_default, task, NULL );
30506 if( status ) return errno;
30508 /* give thread a chance to complete */
30509 /* it should remain joinable and hence detachable */
30512 status = pthread_detach( &t );
30513 if( status ) return errno;
30516 #ifdef HAVE_LINUX_THREADS
30517 pthread_kill_other_threads_np();
30525 rm -f conftest$ac_exeext
30526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30527 (eval $ac_link) 2>&5
30529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30530 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30532 (eval $ac_try) 2>&5
30534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30535 (exit $ac_status); }; }; then
30536 ol_cv_pthread_create=yes
30538 echo "$as_me: program exited with status $ac_status" >&5
30539 echo "$as_me: failed program was:" >&5
30540 sed 's/^/| /' conftest.$ac_ext >&5
30542 ( exit $ac_status )
30543 ol_cv_pthread_create=no
30545 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30548 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
30549 echo "${ECHO_T}$ol_cv_pthread_create" >&6
30551 if test $ol_cv_pthread_create != no ; then
30552 ol_link_threads=posix
30553 ol_link_pthreads=""
30556 # Pthread try link: -kthread (ol_cv_pthread_kthread)
30557 if test "$ol_link_threads" = no ; then
30559 echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
30560 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
30561 if test "${ol_cv_pthread_kthread+set}" = set; then
30562 echo $ECHO_N "(cached) $ECHO_C" >&6
30567 LIBS="-kthread $LIBS"
30569 if test "$cross_compiling" = yes; then
30570 cat >conftest.$ac_ext <<_ACEOF
30573 cat confdefs.h >>conftest.$ac_ext
30574 cat >>conftest.$ac_ext <<_ACEOF
30575 /* end confdefs.h. */
30576 /* pthread test headers */
30577 #include <pthread.h>
30578 #if HAVE_PTHREADS < 7
30582 #define NULL (void*)0
30585 static void *task(p)
30588 return (void *) (p == NULL);
30595 /* pthread test function */
30596 #ifndef PTHREAD_CREATE_DETACHED
30597 #define PTHREAD_CREATE_DETACHED 1
30601 int detach = PTHREAD_CREATE_DETACHED;
30603 #if HAVE_PTHREADS > 4
30604 /* Final pthreads */
30605 pthread_attr_t attr;
30607 status = pthread_attr_init(&attr);
30608 if( status ) return status;
30610 #if HAVE_PTHREADS < 7
30611 status = pthread_attr_setdetachstate(&attr, &detach);
30612 if( status < 0 ) status = errno;
30614 status = pthread_attr_setdetachstate(&attr, detach);
30616 if( status ) return status;
30617 status = pthread_create( &t, &attr, task, NULL );
30618 #if HAVE_PTHREADS < 7
30619 if( status < 0 ) status = errno;
30621 if( status ) return status;
30623 /* Draft 4 pthreads */
30624 status = pthread_create( &t, pthread_attr_default, task, NULL );
30625 if( status ) return errno;
30627 /* give thread a chance to complete */
30628 /* it should remain joinable and hence detachable */
30631 status = pthread_detach( &t );
30632 if( status ) return errno;
30635 #ifdef HAVE_LINUX_THREADS
30636 pthread_kill_other_threads_np();
30645 rm -f conftest.$ac_objext conftest$ac_exeext
30646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30647 (eval $ac_link) 2>conftest.er1
30649 grep -v '^ *+' conftest.er1 >conftest.err
30651 cat conftest.err >&5
30652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30653 (exit $ac_status); } &&
30654 { ac_try='test -z "$ac_c_werror_flag"
30655 || test ! -s conftest.err'
30656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30657 (eval $ac_try) 2>&5
30659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30660 (exit $ac_status); }; } &&
30661 { ac_try='test -s conftest$ac_exeext'
30662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30663 (eval $ac_try) 2>&5
30665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30666 (exit $ac_status); }; }; then
30667 ol_cv_pthread_kthread=yes
30669 echo "$as_me: failed program was:" >&5
30670 sed 's/^/| /' conftest.$ac_ext >&5
30672 ol_cv_pthread_kthread=no
30674 rm -f conftest.err conftest.$ac_objext \
30675 conftest$ac_exeext conftest.$ac_ext
30677 cat >conftest.$ac_ext <<_ACEOF
30680 cat confdefs.h >>conftest.$ac_ext
30681 cat >>conftest.$ac_ext <<_ACEOF
30682 /* end confdefs.h. */
30683 /* pthread test headers */
30684 #include <pthread.h>
30685 #if HAVE_PTHREADS < 7
30689 #define NULL (void*)0
30692 static void *task(p)
30695 return (void *) (p == NULL);
30699 int main(argc, argv)
30704 /* pthread test function */
30705 #ifndef PTHREAD_CREATE_DETACHED
30706 #define PTHREAD_CREATE_DETACHED 1
30710 int detach = PTHREAD_CREATE_DETACHED;
30712 #if HAVE_PTHREADS > 4
30713 /* Final pthreads */
30714 pthread_attr_t attr;
30716 status = pthread_attr_init(&attr);
30717 if( status ) return status;
30719 #if HAVE_PTHREADS < 7
30720 status = pthread_attr_setdetachstate(&attr, &detach);
30721 if( status < 0 ) status = errno;
30723 status = pthread_attr_setdetachstate(&attr, detach);
30725 if( status ) return status;
30726 status = pthread_create( &t, &attr, task, NULL );
30727 #if HAVE_PTHREADS < 7
30728 if( status < 0 ) status = errno;
30730 if( status ) return status;
30732 /* Draft 4 pthreads */
30733 status = pthread_create( &t, pthread_attr_default, task, NULL );
30734 if( status ) return errno;
30736 /* give thread a chance to complete */
30737 /* it should remain joinable and hence detachable */
30740 status = pthread_detach( &t );
30741 if( status ) return errno;
30744 #ifdef HAVE_LINUX_THREADS
30745 pthread_kill_other_threads_np();
30753 rm -f conftest$ac_exeext
30754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30755 (eval $ac_link) 2>&5
30757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30758 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30760 (eval $ac_try) 2>&5
30762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30763 (exit $ac_status); }; }; then
30764 ol_cv_pthread_kthread=yes
30766 echo "$as_me: program exited with status $ac_status" >&5
30767 echo "$as_me: failed program was:" >&5
30768 sed 's/^/| /' conftest.$ac_ext >&5
30770 ( exit $ac_status )
30771 ol_cv_pthread_kthread=no
30773 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30780 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
30781 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
30783 if test $ol_cv_pthread_kthread = yes ; then
30784 ol_link_pthreads="-kthread"
30785 ol_link_threads=posix
30789 # Pthread try link: -pthread (ol_cv_pthread_pthread)
30790 if test "$ol_link_threads" = no ; then
30792 echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
30793 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
30794 if test "${ol_cv_pthread_pthread+set}" = set; then
30795 echo $ECHO_N "(cached) $ECHO_C" >&6
30800 LIBS="-pthread $LIBS"
30802 if test "$cross_compiling" = yes; then
30803 cat >conftest.$ac_ext <<_ACEOF
30806 cat confdefs.h >>conftest.$ac_ext
30807 cat >>conftest.$ac_ext <<_ACEOF
30808 /* end confdefs.h. */
30809 /* pthread test headers */
30810 #include <pthread.h>
30811 #if HAVE_PTHREADS < 7
30815 #define NULL (void*)0
30818 static void *task(p)
30821 return (void *) (p == NULL);
30828 /* pthread test function */
30829 #ifndef PTHREAD_CREATE_DETACHED
30830 #define PTHREAD_CREATE_DETACHED 1
30834 int detach = PTHREAD_CREATE_DETACHED;
30836 #if HAVE_PTHREADS > 4
30837 /* Final pthreads */
30838 pthread_attr_t attr;
30840 status = pthread_attr_init(&attr);
30841 if( status ) return status;
30843 #if HAVE_PTHREADS < 7
30844 status = pthread_attr_setdetachstate(&attr, &detach);
30845 if( status < 0 ) status = errno;
30847 status = pthread_attr_setdetachstate(&attr, detach);
30849 if( status ) return status;
30850 status = pthread_create( &t, &attr, task, NULL );
30851 #if HAVE_PTHREADS < 7
30852 if( status < 0 ) status = errno;
30854 if( status ) return status;
30856 /* Draft 4 pthreads */
30857 status = pthread_create( &t, pthread_attr_default, task, NULL );
30858 if( status ) return errno;
30860 /* give thread a chance to complete */
30861 /* it should remain joinable and hence detachable */
30864 status = pthread_detach( &t );
30865 if( status ) return errno;
30868 #ifdef HAVE_LINUX_THREADS
30869 pthread_kill_other_threads_np();
30878 rm -f conftest.$ac_objext conftest$ac_exeext
30879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30880 (eval $ac_link) 2>conftest.er1
30882 grep -v '^ *+' conftest.er1 >conftest.err
30884 cat conftest.err >&5
30885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30886 (exit $ac_status); } &&
30887 { ac_try='test -z "$ac_c_werror_flag"
30888 || test ! -s conftest.err'
30889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30890 (eval $ac_try) 2>&5
30892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30893 (exit $ac_status); }; } &&
30894 { ac_try='test -s conftest$ac_exeext'
30895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30896 (eval $ac_try) 2>&5
30898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30899 (exit $ac_status); }; }; then
30900 ol_cv_pthread_pthread=yes
30902 echo "$as_me: failed program was:" >&5
30903 sed 's/^/| /' conftest.$ac_ext >&5
30905 ol_cv_pthread_pthread=no
30907 rm -f conftest.err conftest.$ac_objext \
30908 conftest$ac_exeext conftest.$ac_ext
30910 cat >conftest.$ac_ext <<_ACEOF
30913 cat confdefs.h >>conftest.$ac_ext
30914 cat >>conftest.$ac_ext <<_ACEOF
30915 /* end confdefs.h. */
30916 /* pthread test headers */
30917 #include <pthread.h>
30918 #if HAVE_PTHREADS < 7
30922 #define NULL (void*)0
30925 static void *task(p)
30928 return (void *) (p == NULL);
30932 int main(argc, argv)
30937 /* pthread test function */
30938 #ifndef PTHREAD_CREATE_DETACHED
30939 #define PTHREAD_CREATE_DETACHED 1
30943 int detach = PTHREAD_CREATE_DETACHED;
30945 #if HAVE_PTHREADS > 4
30946 /* Final pthreads */
30947 pthread_attr_t attr;
30949 status = pthread_attr_init(&attr);
30950 if( status ) return status;
30952 #if HAVE_PTHREADS < 7
30953 status = pthread_attr_setdetachstate(&attr, &detach);
30954 if( status < 0 ) status = errno;
30956 status = pthread_attr_setdetachstate(&attr, detach);
30958 if( status ) return status;
30959 status = pthread_create( &t, &attr, task, NULL );
30960 #if HAVE_PTHREADS < 7
30961 if( status < 0 ) status = errno;
30963 if( status ) return status;
30965 /* Draft 4 pthreads */
30966 status = pthread_create( &t, pthread_attr_default, task, NULL );
30967 if( status ) return errno;
30969 /* give thread a chance to complete */
30970 /* it should remain joinable and hence detachable */
30973 status = pthread_detach( &t );
30974 if( status ) return errno;
30977 #ifdef HAVE_LINUX_THREADS
30978 pthread_kill_other_threads_np();
30986 rm -f conftest$ac_exeext
30987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30988 (eval $ac_link) 2>&5
30990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30991 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30993 (eval $ac_try) 2>&5
30995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30996 (exit $ac_status); }; }; then
30997 ol_cv_pthread_pthread=yes
30999 echo "$as_me: program exited with status $ac_status" >&5
31000 echo "$as_me: failed program was:" >&5
31001 sed 's/^/| /' conftest.$ac_ext >&5
31003 ( exit $ac_status )
31004 ol_cv_pthread_pthread=no
31006 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31013 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
31014 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
31016 if test $ol_cv_pthread_pthread = yes ; then
31017 ol_link_pthreads="-pthread"
31018 ol_link_threads=posix
31022 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
31023 if test "$ol_link_threads" = no ; then
31025 echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
31026 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
31027 if test "${ol_cv_pthread_pthreads+set}" = set; then
31028 echo $ECHO_N "(cached) $ECHO_C" >&6
31033 LIBS="-pthreads $LIBS"
31035 if test "$cross_compiling" = yes; then
31036 cat >conftest.$ac_ext <<_ACEOF
31039 cat confdefs.h >>conftest.$ac_ext
31040 cat >>conftest.$ac_ext <<_ACEOF
31041 /* end confdefs.h. */
31042 /* pthread test headers */
31043 #include <pthread.h>
31044 #if HAVE_PTHREADS < 7
31048 #define NULL (void*)0
31051 static void *task(p)
31054 return (void *) (p == NULL);
31061 /* pthread test function */
31062 #ifndef PTHREAD_CREATE_DETACHED
31063 #define PTHREAD_CREATE_DETACHED 1
31067 int detach = PTHREAD_CREATE_DETACHED;
31069 #if HAVE_PTHREADS > 4
31070 /* Final pthreads */
31071 pthread_attr_t attr;
31073 status = pthread_attr_init(&attr);
31074 if( status ) return status;
31076 #if HAVE_PTHREADS < 7
31077 status = pthread_attr_setdetachstate(&attr, &detach);
31078 if( status < 0 ) status = errno;
31080 status = pthread_attr_setdetachstate(&attr, detach);
31082 if( status ) return status;
31083 status = pthread_create( &t, &attr, task, NULL );
31084 #if HAVE_PTHREADS < 7
31085 if( status < 0 ) status = errno;
31087 if( status ) return status;
31089 /* Draft 4 pthreads */
31090 status = pthread_create( &t, pthread_attr_default, task, NULL );
31091 if( status ) return errno;
31093 /* give thread a chance to complete */
31094 /* it should remain joinable and hence detachable */
31097 status = pthread_detach( &t );
31098 if( status ) return errno;
31101 #ifdef HAVE_LINUX_THREADS
31102 pthread_kill_other_threads_np();
31111 rm -f conftest.$ac_objext conftest$ac_exeext
31112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31113 (eval $ac_link) 2>conftest.er1
31115 grep -v '^ *+' conftest.er1 >conftest.err
31117 cat conftest.err >&5
31118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31119 (exit $ac_status); } &&
31120 { ac_try='test -z "$ac_c_werror_flag"
31121 || test ! -s conftest.err'
31122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31123 (eval $ac_try) 2>&5
31125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31126 (exit $ac_status); }; } &&
31127 { ac_try='test -s conftest$ac_exeext'
31128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31129 (eval $ac_try) 2>&5
31131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31132 (exit $ac_status); }; }; then
31133 ol_cv_pthread_pthreads=yes
31135 echo "$as_me: failed program was:" >&5
31136 sed 's/^/| /' conftest.$ac_ext >&5
31138 ol_cv_pthread_pthreads=no
31140 rm -f conftest.err conftest.$ac_objext \
31141 conftest$ac_exeext conftest.$ac_ext
31143 cat >conftest.$ac_ext <<_ACEOF
31146 cat confdefs.h >>conftest.$ac_ext
31147 cat >>conftest.$ac_ext <<_ACEOF
31148 /* end confdefs.h. */
31149 /* pthread test headers */
31150 #include <pthread.h>
31151 #if HAVE_PTHREADS < 7
31155 #define NULL (void*)0
31158 static void *task(p)
31161 return (void *) (p == NULL);
31165 int main(argc, argv)
31170 /* pthread test function */
31171 #ifndef PTHREAD_CREATE_DETACHED
31172 #define PTHREAD_CREATE_DETACHED 1
31176 int detach = PTHREAD_CREATE_DETACHED;
31178 #if HAVE_PTHREADS > 4
31179 /* Final pthreads */
31180 pthread_attr_t attr;
31182 status = pthread_attr_init(&attr);
31183 if( status ) return status;
31185 #if HAVE_PTHREADS < 7
31186 status = pthread_attr_setdetachstate(&attr, &detach);
31187 if( status < 0 ) status = errno;
31189 status = pthread_attr_setdetachstate(&attr, detach);
31191 if( status ) return status;
31192 status = pthread_create( &t, &attr, task, NULL );
31193 #if HAVE_PTHREADS < 7
31194 if( status < 0 ) status = errno;
31196 if( status ) return status;
31198 /* Draft 4 pthreads */
31199 status = pthread_create( &t, pthread_attr_default, task, NULL );
31200 if( status ) return errno;
31202 /* give thread a chance to complete */
31203 /* it should remain joinable and hence detachable */
31206 status = pthread_detach( &t );
31207 if( status ) return errno;
31210 #ifdef HAVE_LINUX_THREADS
31211 pthread_kill_other_threads_np();
31219 rm -f conftest$ac_exeext
31220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31221 (eval $ac_link) 2>&5
31223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31224 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31226 (eval $ac_try) 2>&5
31228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31229 (exit $ac_status); }; }; then
31230 ol_cv_pthread_pthreads=yes
31232 echo "$as_me: program exited with status $ac_status" >&5
31233 echo "$as_me: failed program was:" >&5
31234 sed 's/^/| /' conftest.$ac_ext >&5
31236 ( exit $ac_status )
31237 ol_cv_pthread_pthreads=no
31239 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31246 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
31247 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
31249 if test $ol_cv_pthread_pthreads = yes ; then
31250 ol_link_pthreads="-pthreads"
31251 ol_link_threads=posix
31255 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
31256 if test "$ol_link_threads" = no ; then
31258 echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
31259 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
31260 if test "${ol_cv_pthread_mthreads+set}" = set; then
31261 echo $ECHO_N "(cached) $ECHO_C" >&6
31266 LIBS="-mthreads $LIBS"
31268 if test "$cross_compiling" = yes; then
31269 cat >conftest.$ac_ext <<_ACEOF
31272 cat confdefs.h >>conftest.$ac_ext
31273 cat >>conftest.$ac_ext <<_ACEOF
31274 /* end confdefs.h. */
31275 /* pthread test headers */
31276 #include <pthread.h>
31277 #if HAVE_PTHREADS < 7
31281 #define NULL (void*)0
31284 static void *task(p)
31287 return (void *) (p == NULL);
31294 /* pthread test function */
31295 #ifndef PTHREAD_CREATE_DETACHED
31296 #define PTHREAD_CREATE_DETACHED 1
31300 int detach = PTHREAD_CREATE_DETACHED;
31302 #if HAVE_PTHREADS > 4
31303 /* Final pthreads */
31304 pthread_attr_t attr;
31306 status = pthread_attr_init(&attr);
31307 if( status ) return status;
31309 #if HAVE_PTHREADS < 7
31310 status = pthread_attr_setdetachstate(&attr, &detach);
31311 if( status < 0 ) status = errno;
31313 status = pthread_attr_setdetachstate(&attr, detach);
31315 if( status ) return status;
31316 status = pthread_create( &t, &attr, task, NULL );
31317 #if HAVE_PTHREADS < 7
31318 if( status < 0 ) status = errno;
31320 if( status ) return status;
31322 /* Draft 4 pthreads */
31323 status = pthread_create( &t, pthread_attr_default, task, NULL );
31324 if( status ) return errno;
31326 /* give thread a chance to complete */
31327 /* it should remain joinable and hence detachable */
31330 status = pthread_detach( &t );
31331 if( status ) return errno;
31334 #ifdef HAVE_LINUX_THREADS
31335 pthread_kill_other_threads_np();
31344 rm -f conftest.$ac_objext conftest$ac_exeext
31345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31346 (eval $ac_link) 2>conftest.er1
31348 grep -v '^ *+' conftest.er1 >conftest.err
31350 cat conftest.err >&5
31351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31352 (exit $ac_status); } &&
31353 { ac_try='test -z "$ac_c_werror_flag"
31354 || test ! -s conftest.err'
31355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31356 (eval $ac_try) 2>&5
31358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31359 (exit $ac_status); }; } &&
31360 { ac_try='test -s conftest$ac_exeext'
31361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31362 (eval $ac_try) 2>&5
31364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31365 (exit $ac_status); }; }; then
31366 ol_cv_pthread_mthreads=yes
31368 echo "$as_me: failed program was:" >&5
31369 sed 's/^/| /' conftest.$ac_ext >&5
31371 ol_cv_pthread_mthreads=no
31373 rm -f conftest.err conftest.$ac_objext \
31374 conftest$ac_exeext conftest.$ac_ext
31376 cat >conftest.$ac_ext <<_ACEOF
31379 cat confdefs.h >>conftest.$ac_ext
31380 cat >>conftest.$ac_ext <<_ACEOF
31381 /* end confdefs.h. */
31382 /* pthread test headers */
31383 #include <pthread.h>
31384 #if HAVE_PTHREADS < 7
31388 #define NULL (void*)0
31391 static void *task(p)
31394 return (void *) (p == NULL);
31398 int main(argc, argv)
31403 /* pthread test function */
31404 #ifndef PTHREAD_CREATE_DETACHED
31405 #define PTHREAD_CREATE_DETACHED 1
31409 int detach = PTHREAD_CREATE_DETACHED;
31411 #if HAVE_PTHREADS > 4
31412 /* Final pthreads */
31413 pthread_attr_t attr;
31415 status = pthread_attr_init(&attr);
31416 if( status ) return status;
31418 #if HAVE_PTHREADS < 7
31419 status = pthread_attr_setdetachstate(&attr, &detach);
31420 if( status < 0 ) status = errno;
31422 status = pthread_attr_setdetachstate(&attr, detach);
31424 if( status ) return status;
31425 status = pthread_create( &t, &attr, task, NULL );
31426 #if HAVE_PTHREADS < 7
31427 if( status < 0 ) status = errno;
31429 if( status ) return status;
31431 /* Draft 4 pthreads */
31432 status = pthread_create( &t, pthread_attr_default, task, NULL );
31433 if( status ) return errno;
31435 /* give thread a chance to complete */
31436 /* it should remain joinable and hence detachable */
31439 status = pthread_detach( &t );
31440 if( status ) return errno;
31443 #ifdef HAVE_LINUX_THREADS
31444 pthread_kill_other_threads_np();
31452 rm -f conftest$ac_exeext
31453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31454 (eval $ac_link) 2>&5
31456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31457 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31459 (eval $ac_try) 2>&5
31461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31462 (exit $ac_status); }; }; then
31463 ol_cv_pthread_mthreads=yes
31465 echo "$as_me: program exited with status $ac_status" >&5
31466 echo "$as_me: failed program was:" >&5
31467 sed 's/^/| /' conftest.$ac_ext >&5
31469 ( exit $ac_status )
31470 ol_cv_pthread_mthreads=no
31472 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31479 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
31480 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
31482 if test $ol_cv_pthread_mthreads = yes ; then
31483 ol_link_pthreads="-mthreads"
31484 ol_link_threads=posix
31488 # Pthread try link: -thread (ol_cv_pthread_thread)
31489 if test "$ol_link_threads" = no ; then
31491 echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
31492 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
31493 if test "${ol_cv_pthread_thread+set}" = set; then
31494 echo $ECHO_N "(cached) $ECHO_C" >&6
31499 LIBS="-thread $LIBS"
31501 if test "$cross_compiling" = yes; then
31502 cat >conftest.$ac_ext <<_ACEOF
31505 cat confdefs.h >>conftest.$ac_ext
31506 cat >>conftest.$ac_ext <<_ACEOF
31507 /* end confdefs.h. */
31508 /* pthread test headers */
31509 #include <pthread.h>
31510 #if HAVE_PTHREADS < 7
31514 #define NULL (void*)0
31517 static void *task(p)
31520 return (void *) (p == NULL);
31527 /* pthread test function */
31528 #ifndef PTHREAD_CREATE_DETACHED
31529 #define PTHREAD_CREATE_DETACHED 1
31533 int detach = PTHREAD_CREATE_DETACHED;
31535 #if HAVE_PTHREADS > 4
31536 /* Final pthreads */
31537 pthread_attr_t attr;
31539 status = pthread_attr_init(&attr);
31540 if( status ) return status;
31542 #if HAVE_PTHREADS < 7
31543 status = pthread_attr_setdetachstate(&attr, &detach);
31544 if( status < 0 ) status = errno;
31546 status = pthread_attr_setdetachstate(&attr, detach);
31548 if( status ) return status;
31549 status = pthread_create( &t, &attr, task, NULL );
31550 #if HAVE_PTHREADS < 7
31551 if( status < 0 ) status = errno;
31553 if( status ) return status;
31555 /* Draft 4 pthreads */
31556 status = pthread_create( &t, pthread_attr_default, task, NULL );
31557 if( status ) return errno;
31559 /* give thread a chance to complete */
31560 /* it should remain joinable and hence detachable */
31563 status = pthread_detach( &t );
31564 if( status ) return errno;
31567 #ifdef HAVE_LINUX_THREADS
31568 pthread_kill_other_threads_np();
31577 rm -f conftest.$ac_objext conftest$ac_exeext
31578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31579 (eval $ac_link) 2>conftest.er1
31581 grep -v '^ *+' conftest.er1 >conftest.err
31583 cat conftest.err >&5
31584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31585 (exit $ac_status); } &&
31586 { ac_try='test -z "$ac_c_werror_flag"
31587 || test ! -s conftest.err'
31588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31589 (eval $ac_try) 2>&5
31591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31592 (exit $ac_status); }; } &&
31593 { ac_try='test -s conftest$ac_exeext'
31594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31595 (eval $ac_try) 2>&5
31597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31598 (exit $ac_status); }; }; then
31599 ol_cv_pthread_thread=yes
31601 echo "$as_me: failed program was:" >&5
31602 sed 's/^/| /' conftest.$ac_ext >&5
31604 ol_cv_pthread_thread=no
31606 rm -f conftest.err conftest.$ac_objext \
31607 conftest$ac_exeext conftest.$ac_ext
31609 cat >conftest.$ac_ext <<_ACEOF
31612 cat confdefs.h >>conftest.$ac_ext
31613 cat >>conftest.$ac_ext <<_ACEOF
31614 /* end confdefs.h. */
31615 /* pthread test headers */
31616 #include <pthread.h>
31617 #if HAVE_PTHREADS < 7
31621 #define NULL (void*)0
31624 static void *task(p)
31627 return (void *) (p == NULL);
31631 int main(argc, argv)
31636 /* pthread test function */
31637 #ifndef PTHREAD_CREATE_DETACHED
31638 #define PTHREAD_CREATE_DETACHED 1
31642 int detach = PTHREAD_CREATE_DETACHED;
31644 #if HAVE_PTHREADS > 4
31645 /* Final pthreads */
31646 pthread_attr_t attr;
31648 status = pthread_attr_init(&attr);
31649 if( status ) return status;
31651 #if HAVE_PTHREADS < 7
31652 status = pthread_attr_setdetachstate(&attr, &detach);
31653 if( status < 0 ) status = errno;
31655 status = pthread_attr_setdetachstate(&attr, detach);
31657 if( status ) return status;
31658 status = pthread_create( &t, &attr, task, NULL );
31659 #if HAVE_PTHREADS < 7
31660 if( status < 0 ) status = errno;
31662 if( status ) return status;
31664 /* Draft 4 pthreads */
31665 status = pthread_create( &t, pthread_attr_default, task, NULL );
31666 if( status ) return errno;
31668 /* give thread a chance to complete */
31669 /* it should remain joinable and hence detachable */
31672 status = pthread_detach( &t );
31673 if( status ) return errno;
31676 #ifdef HAVE_LINUX_THREADS
31677 pthread_kill_other_threads_np();
31685 rm -f conftest$ac_exeext
31686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31687 (eval $ac_link) 2>&5
31689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31690 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31692 (eval $ac_try) 2>&5
31694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31695 (exit $ac_status); }; }; then
31696 ol_cv_pthread_thread=yes
31698 echo "$as_me: program exited with status $ac_status" >&5
31699 echo "$as_me: failed program was:" >&5
31700 sed 's/^/| /' conftest.$ac_ext >&5
31702 ( exit $ac_status )
31703 ol_cv_pthread_thread=no
31705 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31712 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
31713 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
31715 if test $ol_cv_pthread_thread = yes ; then
31716 ol_link_pthreads="-thread"
31717 ol_link_threads=posix
31722 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
31723 if test "$ol_link_threads" = no ; then
31724 # try -lpthread -lmach -lexc -lc_r
31725 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
31726 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
31727 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
31728 echo $ECHO_N "(cached) $ECHO_C" >&6
31733 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
31735 if test "$cross_compiling" = yes; then
31736 cat >conftest.$ac_ext <<_ACEOF
31739 cat confdefs.h >>conftest.$ac_ext
31740 cat >>conftest.$ac_ext <<_ACEOF
31741 /* end confdefs.h. */
31742 /* pthread test headers */
31743 #include <pthread.h>
31744 #if HAVE_PTHREADS < 7
31748 #define NULL (void*)0
31751 static void *task(p)
31754 return (void *) (p == NULL);
31761 /* pthread test function */
31762 #ifndef PTHREAD_CREATE_DETACHED
31763 #define PTHREAD_CREATE_DETACHED 1
31767 int detach = PTHREAD_CREATE_DETACHED;
31769 #if HAVE_PTHREADS > 4
31770 /* Final pthreads */
31771 pthread_attr_t attr;
31773 status = pthread_attr_init(&attr);
31774 if( status ) return status;
31776 #if HAVE_PTHREADS < 7
31777 status = pthread_attr_setdetachstate(&attr, &detach);
31778 if( status < 0 ) status = errno;
31780 status = pthread_attr_setdetachstate(&attr, detach);
31782 if( status ) return status;
31783 status = pthread_create( &t, &attr, task, NULL );
31784 #if HAVE_PTHREADS < 7
31785 if( status < 0 ) status = errno;
31787 if( status ) return status;
31789 /* Draft 4 pthreads */
31790 status = pthread_create( &t, pthread_attr_default, task, NULL );
31791 if( status ) return errno;
31793 /* give thread a chance to complete */
31794 /* it should remain joinable and hence detachable */
31797 status = pthread_detach( &t );
31798 if( status ) return errno;
31801 #ifdef HAVE_LINUX_THREADS
31802 pthread_kill_other_threads_np();
31811 rm -f conftest.$ac_objext conftest$ac_exeext
31812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31813 (eval $ac_link) 2>conftest.er1
31815 grep -v '^ *+' conftest.er1 >conftest.err
31817 cat conftest.err >&5
31818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31819 (exit $ac_status); } &&
31820 { ac_try='test -z "$ac_c_werror_flag"
31821 || test ! -s conftest.err'
31822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31823 (eval $ac_try) 2>&5
31825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31826 (exit $ac_status); }; } &&
31827 { ac_try='test -s conftest$ac_exeext'
31828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31829 (eval $ac_try) 2>&5
31831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31832 (exit $ac_status); }; }; then
31833 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
31835 echo "$as_me: failed program was:" >&5
31836 sed 's/^/| /' conftest.$ac_ext >&5
31838 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
31840 rm -f conftest.err conftest.$ac_objext \
31841 conftest$ac_exeext conftest.$ac_ext
31843 cat >conftest.$ac_ext <<_ACEOF
31846 cat confdefs.h >>conftest.$ac_ext
31847 cat >>conftest.$ac_ext <<_ACEOF
31848 /* end confdefs.h. */
31849 /* pthread test headers */
31850 #include <pthread.h>
31851 #if HAVE_PTHREADS < 7
31855 #define NULL (void*)0
31858 static void *task(p)
31861 return (void *) (p == NULL);
31865 int main(argc, argv)
31870 /* pthread test function */
31871 #ifndef PTHREAD_CREATE_DETACHED
31872 #define PTHREAD_CREATE_DETACHED 1
31876 int detach = PTHREAD_CREATE_DETACHED;
31878 #if HAVE_PTHREADS > 4
31879 /* Final pthreads */
31880 pthread_attr_t attr;
31882 status = pthread_attr_init(&attr);
31883 if( status ) return status;
31885 #if HAVE_PTHREADS < 7
31886 status = pthread_attr_setdetachstate(&attr, &detach);
31887 if( status < 0 ) status = errno;
31889 status = pthread_attr_setdetachstate(&attr, detach);
31891 if( status ) return status;
31892 status = pthread_create( &t, &attr, task, NULL );
31893 #if HAVE_PTHREADS < 7
31894 if( status < 0 ) status = errno;
31896 if( status ) return status;
31898 /* Draft 4 pthreads */
31899 status = pthread_create( &t, pthread_attr_default, task, NULL );
31900 if( status ) return errno;
31902 /* give thread a chance to complete */
31903 /* it should remain joinable and hence detachable */
31906 status = pthread_detach( &t );
31907 if( status ) return errno;
31910 #ifdef HAVE_LINUX_THREADS
31911 pthread_kill_other_threads_np();
31919 rm -f conftest$ac_exeext
31920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31921 (eval $ac_link) 2>&5
31923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31924 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31926 (eval $ac_try) 2>&5
31928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31929 (exit $ac_status); }; }; then
31930 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
31932 echo "$as_me: program exited with status $ac_status" >&5
31933 echo "$as_me: failed program was:" >&5
31934 sed 's/^/| /' conftest.$ac_ext >&5
31936 ( exit $ac_status )
31937 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
31939 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31946 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
31947 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
31949 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
31950 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
31951 ol_link_threads=posix
31955 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
31956 if test "$ol_link_threads" = no ; then
31957 # try -lpthread -lmach -lexc
31958 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
31959 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
31960 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
31961 echo $ECHO_N "(cached) $ECHO_C" >&6
31966 LIBS="-lpthread -lmach -lexc $LIBS"
31968 if test "$cross_compiling" = yes; then
31969 cat >conftest.$ac_ext <<_ACEOF
31972 cat confdefs.h >>conftest.$ac_ext
31973 cat >>conftest.$ac_ext <<_ACEOF
31974 /* end confdefs.h. */
31975 /* pthread test headers */
31976 #include <pthread.h>
31977 #if HAVE_PTHREADS < 7
31981 #define NULL (void*)0
31984 static void *task(p)
31987 return (void *) (p == NULL);
31994 /* pthread test function */
31995 #ifndef PTHREAD_CREATE_DETACHED
31996 #define PTHREAD_CREATE_DETACHED 1
32000 int detach = PTHREAD_CREATE_DETACHED;
32002 #if HAVE_PTHREADS > 4
32003 /* Final pthreads */
32004 pthread_attr_t attr;
32006 status = pthread_attr_init(&attr);
32007 if( status ) return status;
32009 #if HAVE_PTHREADS < 7
32010 status = pthread_attr_setdetachstate(&attr, &detach);
32011 if( status < 0 ) status = errno;
32013 status = pthread_attr_setdetachstate(&attr, detach);
32015 if( status ) return status;
32016 status = pthread_create( &t, &attr, task, NULL );
32017 #if HAVE_PTHREADS < 7
32018 if( status < 0 ) status = errno;
32020 if( status ) return status;
32022 /* Draft 4 pthreads */
32023 status = pthread_create( &t, pthread_attr_default, task, NULL );
32024 if( status ) return errno;
32026 /* give thread a chance to complete */
32027 /* it should remain joinable and hence detachable */
32030 status = pthread_detach( &t );
32031 if( status ) return errno;
32034 #ifdef HAVE_LINUX_THREADS
32035 pthread_kill_other_threads_np();
32044 rm -f conftest.$ac_objext conftest$ac_exeext
32045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32046 (eval $ac_link) 2>conftest.er1
32048 grep -v '^ *+' conftest.er1 >conftest.err
32050 cat conftest.err >&5
32051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32052 (exit $ac_status); } &&
32053 { ac_try='test -z "$ac_c_werror_flag"
32054 || test ! -s conftest.err'
32055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32056 (eval $ac_try) 2>&5
32058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32059 (exit $ac_status); }; } &&
32060 { ac_try='test -s conftest$ac_exeext'
32061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32062 (eval $ac_try) 2>&5
32064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32065 (exit $ac_status); }; }; then
32066 ol_cv_pthread_lpthread_lmach_lexc=yes
32068 echo "$as_me: failed program was:" >&5
32069 sed 's/^/| /' conftest.$ac_ext >&5
32071 ol_cv_pthread_lpthread_lmach_lexc=no
32073 rm -f conftest.err conftest.$ac_objext \
32074 conftest$ac_exeext conftest.$ac_ext
32076 cat >conftest.$ac_ext <<_ACEOF
32079 cat confdefs.h >>conftest.$ac_ext
32080 cat >>conftest.$ac_ext <<_ACEOF
32081 /* end confdefs.h. */
32082 /* pthread test headers */
32083 #include <pthread.h>
32084 #if HAVE_PTHREADS < 7
32088 #define NULL (void*)0
32091 static void *task(p)
32094 return (void *) (p == NULL);
32098 int main(argc, argv)
32103 /* pthread test function */
32104 #ifndef PTHREAD_CREATE_DETACHED
32105 #define PTHREAD_CREATE_DETACHED 1
32109 int detach = PTHREAD_CREATE_DETACHED;
32111 #if HAVE_PTHREADS > 4
32112 /* Final pthreads */
32113 pthread_attr_t attr;
32115 status = pthread_attr_init(&attr);
32116 if( status ) return status;
32118 #if HAVE_PTHREADS < 7
32119 status = pthread_attr_setdetachstate(&attr, &detach);
32120 if( status < 0 ) status = errno;
32122 status = pthread_attr_setdetachstate(&attr, detach);
32124 if( status ) return status;
32125 status = pthread_create( &t, &attr, task, NULL );
32126 #if HAVE_PTHREADS < 7
32127 if( status < 0 ) status = errno;
32129 if( status ) return status;
32131 /* Draft 4 pthreads */
32132 status = pthread_create( &t, pthread_attr_default, task, NULL );
32133 if( status ) return errno;
32135 /* give thread a chance to complete */
32136 /* it should remain joinable and hence detachable */
32139 status = pthread_detach( &t );
32140 if( status ) return errno;
32143 #ifdef HAVE_LINUX_THREADS
32144 pthread_kill_other_threads_np();
32152 rm -f conftest$ac_exeext
32153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32154 (eval $ac_link) 2>&5
32156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32157 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32159 (eval $ac_try) 2>&5
32161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32162 (exit $ac_status); }; }; then
32163 ol_cv_pthread_lpthread_lmach_lexc=yes
32165 echo "$as_me: program exited with status $ac_status" >&5
32166 echo "$as_me: failed program was:" >&5
32167 sed 's/^/| /' conftest.$ac_ext >&5
32169 ( exit $ac_status )
32170 ol_cv_pthread_lpthread_lmach_lexc=no
32172 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32179 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
32180 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
32182 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
32183 ol_link_pthreads="-lpthread -lmach -lexc"
32184 ol_link_threads=posix
32189 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
32190 if test "$ol_link_threads" = no ; then
32191 # try -lpthread -Wl,-woff,85
32192 echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
32193 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
32194 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
32195 echo $ECHO_N "(cached) $ECHO_C" >&6
32200 LIBS="-lpthread -Wl,-woff,85 $LIBS"
32202 if test "$cross_compiling" = yes; then
32203 cat >conftest.$ac_ext <<_ACEOF
32206 cat confdefs.h >>conftest.$ac_ext
32207 cat >>conftest.$ac_ext <<_ACEOF
32208 /* end confdefs.h. */
32209 /* pthread test headers */
32210 #include <pthread.h>
32211 #if HAVE_PTHREADS < 7
32215 #define NULL (void*)0
32218 static void *task(p)
32221 return (void *) (p == NULL);
32228 /* pthread test function */
32229 #ifndef PTHREAD_CREATE_DETACHED
32230 #define PTHREAD_CREATE_DETACHED 1
32234 int detach = PTHREAD_CREATE_DETACHED;
32236 #if HAVE_PTHREADS > 4
32237 /* Final pthreads */
32238 pthread_attr_t attr;
32240 status = pthread_attr_init(&attr);
32241 if( status ) return status;
32243 #if HAVE_PTHREADS < 7
32244 status = pthread_attr_setdetachstate(&attr, &detach);
32245 if( status < 0 ) status = errno;
32247 status = pthread_attr_setdetachstate(&attr, detach);
32249 if( status ) return status;
32250 status = pthread_create( &t, &attr, task, NULL );
32251 #if HAVE_PTHREADS < 7
32252 if( status < 0 ) status = errno;
32254 if( status ) return status;
32256 /* Draft 4 pthreads */
32257 status = pthread_create( &t, pthread_attr_default, task, NULL );
32258 if( status ) return errno;
32260 /* give thread a chance to complete */
32261 /* it should remain joinable and hence detachable */
32264 status = pthread_detach( &t );
32265 if( status ) return errno;
32268 #ifdef HAVE_LINUX_THREADS
32269 pthread_kill_other_threads_np();
32278 rm -f conftest.$ac_objext conftest$ac_exeext
32279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32280 (eval $ac_link) 2>conftest.er1
32282 grep -v '^ *+' conftest.er1 >conftest.err
32284 cat conftest.err >&5
32285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32286 (exit $ac_status); } &&
32287 { ac_try='test -z "$ac_c_werror_flag"
32288 || test ! -s conftest.err'
32289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32290 (eval $ac_try) 2>&5
32292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32293 (exit $ac_status); }; } &&
32294 { ac_try='test -s conftest$ac_exeext'
32295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32296 (eval $ac_try) 2>&5
32298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32299 (exit $ac_status); }; }; then
32300 ol_cv_pthread_lib_lpthread_woff=yes
32302 echo "$as_me: failed program was:" >&5
32303 sed 's/^/| /' conftest.$ac_ext >&5
32305 ol_cv_pthread_lib_lpthread_woff=no
32307 rm -f conftest.err conftest.$ac_objext \
32308 conftest$ac_exeext conftest.$ac_ext
32310 cat >conftest.$ac_ext <<_ACEOF
32313 cat confdefs.h >>conftest.$ac_ext
32314 cat >>conftest.$ac_ext <<_ACEOF
32315 /* end confdefs.h. */
32316 /* pthread test headers */
32317 #include <pthread.h>
32318 #if HAVE_PTHREADS < 7
32322 #define NULL (void*)0
32325 static void *task(p)
32328 return (void *) (p == NULL);
32332 int main(argc, argv)
32337 /* pthread test function */
32338 #ifndef PTHREAD_CREATE_DETACHED
32339 #define PTHREAD_CREATE_DETACHED 1
32343 int detach = PTHREAD_CREATE_DETACHED;
32345 #if HAVE_PTHREADS > 4
32346 /* Final pthreads */
32347 pthread_attr_t attr;
32349 status = pthread_attr_init(&attr);
32350 if( status ) return status;
32352 #if HAVE_PTHREADS < 7
32353 status = pthread_attr_setdetachstate(&attr, &detach);
32354 if( status < 0 ) status = errno;
32356 status = pthread_attr_setdetachstate(&attr, detach);
32358 if( status ) return status;
32359 status = pthread_create( &t, &attr, task, NULL );
32360 #if HAVE_PTHREADS < 7
32361 if( status < 0 ) status = errno;
32363 if( status ) return status;
32365 /* Draft 4 pthreads */
32366 status = pthread_create( &t, pthread_attr_default, task, NULL );
32367 if( status ) return errno;
32369 /* give thread a chance to complete */
32370 /* it should remain joinable and hence detachable */
32373 status = pthread_detach( &t );
32374 if( status ) return errno;
32377 #ifdef HAVE_LINUX_THREADS
32378 pthread_kill_other_threads_np();
32386 rm -f conftest$ac_exeext
32387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32388 (eval $ac_link) 2>&5
32390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32391 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32393 (eval $ac_try) 2>&5
32395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32396 (exit $ac_status); }; }; then
32397 ol_cv_pthread_lib_lpthread_woff=yes
32399 echo "$as_me: program exited with status $ac_status" >&5
32400 echo "$as_me: failed program was:" >&5
32401 sed 's/^/| /' conftest.$ac_ext >&5
32403 ( exit $ac_status )
32404 ol_cv_pthread_lib_lpthread_woff=no
32406 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32413 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
32414 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
32416 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
32417 ol_link_pthreads="-lpthread -Wl,-woff,85"
32418 ol_link_threads=posix
32423 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
32424 if test "$ol_link_threads" = no ; then
32426 echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
32427 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
32428 if test "${ol_cv_pthread_lpthread+set}" = set; then
32429 echo $ECHO_N "(cached) $ECHO_C" >&6
32434 LIBS="-lpthread $LIBS"
32436 if test "$cross_compiling" = yes; then
32437 cat >conftest.$ac_ext <<_ACEOF
32440 cat confdefs.h >>conftest.$ac_ext
32441 cat >>conftest.$ac_ext <<_ACEOF
32442 /* end confdefs.h. */
32443 /* pthread test headers */
32444 #include <pthread.h>
32445 #if HAVE_PTHREADS < 7
32449 #define NULL (void*)0
32452 static void *task(p)
32455 return (void *) (p == NULL);
32462 /* pthread test function */
32463 #ifndef PTHREAD_CREATE_DETACHED
32464 #define PTHREAD_CREATE_DETACHED 1
32468 int detach = PTHREAD_CREATE_DETACHED;
32470 #if HAVE_PTHREADS > 4
32471 /* Final pthreads */
32472 pthread_attr_t attr;
32474 status = pthread_attr_init(&attr);
32475 if( status ) return status;
32477 #if HAVE_PTHREADS < 7
32478 status = pthread_attr_setdetachstate(&attr, &detach);
32479 if( status < 0 ) status = errno;
32481 status = pthread_attr_setdetachstate(&attr, detach);
32483 if( status ) return status;
32484 status = pthread_create( &t, &attr, task, NULL );
32485 #if HAVE_PTHREADS < 7
32486 if( status < 0 ) status = errno;
32488 if( status ) return status;
32490 /* Draft 4 pthreads */
32491 status = pthread_create( &t, pthread_attr_default, task, NULL );
32492 if( status ) return errno;
32494 /* give thread a chance to complete */
32495 /* it should remain joinable and hence detachable */
32498 status = pthread_detach( &t );
32499 if( status ) return errno;
32502 #ifdef HAVE_LINUX_THREADS
32503 pthread_kill_other_threads_np();
32512 rm -f conftest.$ac_objext conftest$ac_exeext
32513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32514 (eval $ac_link) 2>conftest.er1
32516 grep -v '^ *+' conftest.er1 >conftest.err
32518 cat conftest.err >&5
32519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32520 (exit $ac_status); } &&
32521 { ac_try='test -z "$ac_c_werror_flag"
32522 || test ! -s conftest.err'
32523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32524 (eval $ac_try) 2>&5
32526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32527 (exit $ac_status); }; } &&
32528 { ac_try='test -s conftest$ac_exeext'
32529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32530 (eval $ac_try) 2>&5
32532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32533 (exit $ac_status); }; }; then
32534 ol_cv_pthread_lpthread=yes
32536 echo "$as_me: failed program was:" >&5
32537 sed 's/^/| /' conftest.$ac_ext >&5
32539 ol_cv_pthread_lpthread=no
32541 rm -f conftest.err conftest.$ac_objext \
32542 conftest$ac_exeext conftest.$ac_ext
32544 cat >conftest.$ac_ext <<_ACEOF
32547 cat confdefs.h >>conftest.$ac_ext
32548 cat >>conftest.$ac_ext <<_ACEOF
32549 /* end confdefs.h. */
32550 /* pthread test headers */
32551 #include <pthread.h>
32552 #if HAVE_PTHREADS < 7
32556 #define NULL (void*)0
32559 static void *task(p)
32562 return (void *) (p == NULL);
32566 int main(argc, argv)
32571 /* pthread test function */
32572 #ifndef PTHREAD_CREATE_DETACHED
32573 #define PTHREAD_CREATE_DETACHED 1
32577 int detach = PTHREAD_CREATE_DETACHED;
32579 #if HAVE_PTHREADS > 4
32580 /* Final pthreads */
32581 pthread_attr_t attr;
32583 status = pthread_attr_init(&attr);
32584 if( status ) return status;
32586 #if HAVE_PTHREADS < 7
32587 status = pthread_attr_setdetachstate(&attr, &detach);
32588 if( status < 0 ) status = errno;
32590 status = pthread_attr_setdetachstate(&attr, detach);
32592 if( status ) return status;
32593 status = pthread_create( &t, &attr, task, NULL );
32594 #if HAVE_PTHREADS < 7
32595 if( status < 0 ) status = errno;
32597 if( status ) return status;
32599 /* Draft 4 pthreads */
32600 status = pthread_create( &t, pthread_attr_default, task, NULL );
32601 if( status ) return errno;
32603 /* give thread a chance to complete */
32604 /* it should remain joinable and hence detachable */
32607 status = pthread_detach( &t );
32608 if( status ) return errno;
32611 #ifdef HAVE_LINUX_THREADS
32612 pthread_kill_other_threads_np();
32620 rm -f conftest$ac_exeext
32621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32622 (eval $ac_link) 2>&5
32624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32625 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32627 (eval $ac_try) 2>&5
32629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32630 (exit $ac_status); }; }; then
32631 ol_cv_pthread_lpthread=yes
32633 echo "$as_me: program exited with status $ac_status" >&5
32634 echo "$as_me: failed program was:" >&5
32635 sed 's/^/| /' conftest.$ac_ext >&5
32637 ( exit $ac_status )
32638 ol_cv_pthread_lpthread=no
32640 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32647 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
32648 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
32650 if test $ol_cv_pthread_lpthread = yes ; then
32651 ol_link_pthreads="-lpthread"
32652 ol_link_threads=posix
32656 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
32657 if test "$ol_link_threads" = no ; then
32659 echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
32660 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
32661 if test "${ol_cv_pthread_lc_r+set}" = set; then
32662 echo $ECHO_N "(cached) $ECHO_C" >&6
32669 if test "$cross_compiling" = yes; then
32670 cat >conftest.$ac_ext <<_ACEOF
32673 cat confdefs.h >>conftest.$ac_ext
32674 cat >>conftest.$ac_ext <<_ACEOF
32675 /* end confdefs.h. */
32676 /* pthread test headers */
32677 #include <pthread.h>
32678 #if HAVE_PTHREADS < 7
32682 #define NULL (void*)0
32685 static void *task(p)
32688 return (void *) (p == NULL);
32695 /* pthread test function */
32696 #ifndef PTHREAD_CREATE_DETACHED
32697 #define PTHREAD_CREATE_DETACHED 1
32701 int detach = PTHREAD_CREATE_DETACHED;
32703 #if HAVE_PTHREADS > 4
32704 /* Final pthreads */
32705 pthread_attr_t attr;
32707 status = pthread_attr_init(&attr);
32708 if( status ) return status;
32710 #if HAVE_PTHREADS < 7
32711 status = pthread_attr_setdetachstate(&attr, &detach);
32712 if( status < 0 ) status = errno;
32714 status = pthread_attr_setdetachstate(&attr, detach);
32716 if( status ) return status;
32717 status = pthread_create( &t, &attr, task, NULL );
32718 #if HAVE_PTHREADS < 7
32719 if( status < 0 ) status = errno;
32721 if( status ) return status;
32723 /* Draft 4 pthreads */
32724 status = pthread_create( &t, pthread_attr_default, task, NULL );
32725 if( status ) return errno;
32727 /* give thread a chance to complete */
32728 /* it should remain joinable and hence detachable */
32731 status = pthread_detach( &t );
32732 if( status ) return errno;
32735 #ifdef HAVE_LINUX_THREADS
32736 pthread_kill_other_threads_np();
32745 rm -f conftest.$ac_objext conftest$ac_exeext
32746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32747 (eval $ac_link) 2>conftest.er1
32749 grep -v '^ *+' conftest.er1 >conftest.err
32751 cat conftest.err >&5
32752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32753 (exit $ac_status); } &&
32754 { ac_try='test -z "$ac_c_werror_flag"
32755 || test ! -s conftest.err'
32756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32757 (eval $ac_try) 2>&5
32759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32760 (exit $ac_status); }; } &&
32761 { ac_try='test -s conftest$ac_exeext'
32762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32763 (eval $ac_try) 2>&5
32765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32766 (exit $ac_status); }; }; then
32767 ol_cv_pthread_lc_r=yes
32769 echo "$as_me: failed program was:" >&5
32770 sed 's/^/| /' conftest.$ac_ext >&5
32772 ol_cv_pthread_lc_r=no
32774 rm -f conftest.err conftest.$ac_objext \
32775 conftest$ac_exeext conftest.$ac_ext
32777 cat >conftest.$ac_ext <<_ACEOF
32780 cat confdefs.h >>conftest.$ac_ext
32781 cat >>conftest.$ac_ext <<_ACEOF
32782 /* end confdefs.h. */
32783 /* pthread test headers */
32784 #include <pthread.h>
32785 #if HAVE_PTHREADS < 7
32789 #define NULL (void*)0
32792 static void *task(p)
32795 return (void *) (p == NULL);
32799 int main(argc, argv)
32804 /* pthread test function */
32805 #ifndef PTHREAD_CREATE_DETACHED
32806 #define PTHREAD_CREATE_DETACHED 1
32810 int detach = PTHREAD_CREATE_DETACHED;
32812 #if HAVE_PTHREADS > 4
32813 /* Final pthreads */
32814 pthread_attr_t attr;
32816 status = pthread_attr_init(&attr);
32817 if( status ) return status;
32819 #if HAVE_PTHREADS < 7
32820 status = pthread_attr_setdetachstate(&attr, &detach);
32821 if( status < 0 ) status = errno;
32823 status = pthread_attr_setdetachstate(&attr, detach);
32825 if( status ) return status;
32826 status = pthread_create( &t, &attr, task, NULL );
32827 #if HAVE_PTHREADS < 7
32828 if( status < 0 ) status = errno;
32830 if( status ) return status;
32832 /* Draft 4 pthreads */
32833 status = pthread_create( &t, pthread_attr_default, task, NULL );
32834 if( status ) return errno;
32836 /* give thread a chance to complete */
32837 /* it should remain joinable and hence detachable */
32840 status = pthread_detach( &t );
32841 if( status ) return errno;
32844 #ifdef HAVE_LINUX_THREADS
32845 pthread_kill_other_threads_np();
32853 rm -f conftest$ac_exeext
32854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32855 (eval $ac_link) 2>&5
32857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32858 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32860 (eval $ac_try) 2>&5
32862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32863 (exit $ac_status); }; }; then
32864 ol_cv_pthread_lc_r=yes
32866 echo "$as_me: program exited with status $ac_status" >&5
32867 echo "$as_me: failed program was:" >&5
32868 sed 's/^/| /' conftest.$ac_ext >&5
32870 ( exit $ac_status )
32871 ol_cv_pthread_lc_r=no
32873 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32880 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
32881 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
32883 if test $ol_cv_pthread_lc_r = yes ; then
32884 ol_link_pthreads="-lc_r"
32885 ol_link_threads=posix
32890 # Pthread try link: -threads (ol_cv_pthread_threads)
32891 if test "$ol_link_threads" = no ; then
32893 echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
32894 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
32895 if test "${ol_cv_pthread_threads+set}" = set; then
32896 echo $ECHO_N "(cached) $ECHO_C" >&6
32901 LIBS="-threads $LIBS"
32903 if test "$cross_compiling" = yes; then
32904 cat >conftest.$ac_ext <<_ACEOF
32907 cat confdefs.h >>conftest.$ac_ext
32908 cat >>conftest.$ac_ext <<_ACEOF
32909 /* end confdefs.h. */
32910 /* pthread test headers */
32911 #include <pthread.h>
32912 #if HAVE_PTHREADS < 7
32916 #define NULL (void*)0
32919 static void *task(p)
32922 return (void *) (p == NULL);
32929 /* pthread test function */
32930 #ifndef PTHREAD_CREATE_DETACHED
32931 #define PTHREAD_CREATE_DETACHED 1
32935 int detach = PTHREAD_CREATE_DETACHED;
32937 #if HAVE_PTHREADS > 4
32938 /* Final pthreads */
32939 pthread_attr_t attr;
32941 status = pthread_attr_init(&attr);
32942 if( status ) return status;
32944 #if HAVE_PTHREADS < 7
32945 status = pthread_attr_setdetachstate(&attr, &detach);
32946 if( status < 0 ) status = errno;
32948 status = pthread_attr_setdetachstate(&attr, detach);
32950 if( status ) return status;
32951 status = pthread_create( &t, &attr, task, NULL );
32952 #if HAVE_PTHREADS < 7
32953 if( status < 0 ) status = errno;
32955 if( status ) return status;
32957 /* Draft 4 pthreads */
32958 status = pthread_create( &t, pthread_attr_default, task, NULL );
32959 if( status ) return errno;
32961 /* give thread a chance to complete */
32962 /* it should remain joinable and hence detachable */
32965 status = pthread_detach( &t );
32966 if( status ) return errno;
32969 #ifdef HAVE_LINUX_THREADS
32970 pthread_kill_other_threads_np();
32979 rm -f conftest.$ac_objext conftest$ac_exeext
32980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32981 (eval $ac_link) 2>conftest.er1
32983 grep -v '^ *+' conftest.er1 >conftest.err
32985 cat conftest.err >&5
32986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32987 (exit $ac_status); } &&
32988 { ac_try='test -z "$ac_c_werror_flag"
32989 || test ! -s conftest.err'
32990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32991 (eval $ac_try) 2>&5
32993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32994 (exit $ac_status); }; } &&
32995 { ac_try='test -s conftest$ac_exeext'
32996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32997 (eval $ac_try) 2>&5
32999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33000 (exit $ac_status); }; }; then
33001 ol_cv_pthread_threads=yes
33003 echo "$as_me: failed program was:" >&5
33004 sed 's/^/| /' conftest.$ac_ext >&5
33006 ol_cv_pthread_threads=no
33008 rm -f conftest.err conftest.$ac_objext \
33009 conftest$ac_exeext conftest.$ac_ext
33011 cat >conftest.$ac_ext <<_ACEOF
33014 cat confdefs.h >>conftest.$ac_ext
33015 cat >>conftest.$ac_ext <<_ACEOF
33016 /* end confdefs.h. */
33017 /* pthread test headers */
33018 #include <pthread.h>
33019 #if HAVE_PTHREADS < 7
33023 #define NULL (void*)0
33026 static void *task(p)
33029 return (void *) (p == NULL);
33033 int main(argc, argv)
33038 /* pthread test function */
33039 #ifndef PTHREAD_CREATE_DETACHED
33040 #define PTHREAD_CREATE_DETACHED 1
33044 int detach = PTHREAD_CREATE_DETACHED;
33046 #if HAVE_PTHREADS > 4
33047 /* Final pthreads */
33048 pthread_attr_t attr;
33050 status = pthread_attr_init(&attr);
33051 if( status ) return status;
33053 #if HAVE_PTHREADS < 7
33054 status = pthread_attr_setdetachstate(&attr, &detach);
33055 if( status < 0 ) status = errno;
33057 status = pthread_attr_setdetachstate(&attr, detach);
33059 if( status ) return status;
33060 status = pthread_create( &t, &attr, task, NULL );
33061 #if HAVE_PTHREADS < 7
33062 if( status < 0 ) status = errno;
33064 if( status ) return status;
33066 /* Draft 4 pthreads */
33067 status = pthread_create( &t, pthread_attr_default, task, NULL );
33068 if( status ) return errno;
33070 /* give thread a chance to complete */
33071 /* it should remain joinable and hence detachable */
33074 status = pthread_detach( &t );
33075 if( status ) return errno;
33078 #ifdef HAVE_LINUX_THREADS
33079 pthread_kill_other_threads_np();
33087 rm -f conftest$ac_exeext
33088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33089 (eval $ac_link) 2>&5
33091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33092 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33094 (eval $ac_try) 2>&5
33096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33097 (exit $ac_status); }; }; then
33098 ol_cv_pthread_threads=yes
33100 echo "$as_me: program exited with status $ac_status" >&5
33101 echo "$as_me: failed program was:" >&5
33102 sed 's/^/| /' conftest.$ac_ext >&5
33104 ( exit $ac_status )
33105 ol_cv_pthread_threads=no
33107 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33114 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
33115 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
33117 if test $ol_cv_pthread_threads = yes ; then
33118 ol_link_pthreads="-threads"
33119 ol_link_threads=posix
33124 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
33125 if test "$ol_link_threads" = no ; then
33126 # try -lpthreads -lmach -lexc -lc_r
33127 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
33128 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
33129 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
33130 echo $ECHO_N "(cached) $ECHO_C" >&6
33135 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
33137 if test "$cross_compiling" = yes; then
33138 cat >conftest.$ac_ext <<_ACEOF
33141 cat confdefs.h >>conftest.$ac_ext
33142 cat >>conftest.$ac_ext <<_ACEOF
33143 /* end confdefs.h. */
33144 /* pthread test headers */
33145 #include <pthread.h>
33146 #if HAVE_PTHREADS < 7
33150 #define NULL (void*)0
33153 static void *task(p)
33156 return (void *) (p == NULL);
33163 /* pthread test function */
33164 #ifndef PTHREAD_CREATE_DETACHED
33165 #define PTHREAD_CREATE_DETACHED 1
33169 int detach = PTHREAD_CREATE_DETACHED;
33171 #if HAVE_PTHREADS > 4
33172 /* Final pthreads */
33173 pthread_attr_t attr;
33175 status = pthread_attr_init(&attr);
33176 if( status ) return status;
33178 #if HAVE_PTHREADS < 7
33179 status = pthread_attr_setdetachstate(&attr, &detach);
33180 if( status < 0 ) status = errno;
33182 status = pthread_attr_setdetachstate(&attr, detach);
33184 if( status ) return status;
33185 status = pthread_create( &t, &attr, task, NULL );
33186 #if HAVE_PTHREADS < 7
33187 if( status < 0 ) status = errno;
33189 if( status ) return status;
33191 /* Draft 4 pthreads */
33192 status = pthread_create( &t, pthread_attr_default, task, NULL );
33193 if( status ) return errno;
33195 /* give thread a chance to complete */
33196 /* it should remain joinable and hence detachable */
33199 status = pthread_detach( &t );
33200 if( status ) return errno;
33203 #ifdef HAVE_LINUX_THREADS
33204 pthread_kill_other_threads_np();
33213 rm -f conftest.$ac_objext conftest$ac_exeext
33214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33215 (eval $ac_link) 2>conftest.er1
33217 grep -v '^ *+' conftest.er1 >conftest.err
33219 cat conftest.err >&5
33220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33221 (exit $ac_status); } &&
33222 { ac_try='test -z "$ac_c_werror_flag"
33223 || test ! -s conftest.err'
33224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33225 (eval $ac_try) 2>&5
33227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33228 (exit $ac_status); }; } &&
33229 { ac_try='test -s conftest$ac_exeext'
33230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33231 (eval $ac_try) 2>&5
33233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33234 (exit $ac_status); }; }; then
33235 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
33237 echo "$as_me: failed program was:" >&5
33238 sed 's/^/| /' conftest.$ac_ext >&5
33240 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
33242 rm -f conftest.err conftest.$ac_objext \
33243 conftest$ac_exeext conftest.$ac_ext
33245 cat >conftest.$ac_ext <<_ACEOF
33248 cat confdefs.h >>conftest.$ac_ext
33249 cat >>conftest.$ac_ext <<_ACEOF
33250 /* end confdefs.h. */
33251 /* pthread test headers */
33252 #include <pthread.h>
33253 #if HAVE_PTHREADS < 7
33257 #define NULL (void*)0
33260 static void *task(p)
33263 return (void *) (p == NULL);
33267 int main(argc, argv)
33272 /* pthread test function */
33273 #ifndef PTHREAD_CREATE_DETACHED
33274 #define PTHREAD_CREATE_DETACHED 1
33278 int detach = PTHREAD_CREATE_DETACHED;
33280 #if HAVE_PTHREADS > 4
33281 /* Final pthreads */
33282 pthread_attr_t attr;
33284 status = pthread_attr_init(&attr);
33285 if( status ) return status;
33287 #if HAVE_PTHREADS < 7
33288 status = pthread_attr_setdetachstate(&attr, &detach);
33289 if( status < 0 ) status = errno;
33291 status = pthread_attr_setdetachstate(&attr, detach);
33293 if( status ) return status;
33294 status = pthread_create( &t, &attr, task, NULL );
33295 #if HAVE_PTHREADS < 7
33296 if( status < 0 ) status = errno;
33298 if( status ) return status;
33300 /* Draft 4 pthreads */
33301 status = pthread_create( &t, pthread_attr_default, task, NULL );
33302 if( status ) return errno;
33304 /* give thread a chance to complete */
33305 /* it should remain joinable and hence detachable */
33308 status = pthread_detach( &t );
33309 if( status ) return errno;
33312 #ifdef HAVE_LINUX_THREADS
33313 pthread_kill_other_threads_np();
33321 rm -f conftest$ac_exeext
33322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33323 (eval $ac_link) 2>&5
33325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33326 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33328 (eval $ac_try) 2>&5
33330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33331 (exit $ac_status); }; }; then
33332 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
33334 echo "$as_me: program exited with status $ac_status" >&5
33335 echo "$as_me: failed program was:" >&5
33336 sed 's/^/| /' conftest.$ac_ext >&5
33338 ( exit $ac_status )
33339 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
33341 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33348 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
33349 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
33351 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
33352 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
33353 ol_link_threads=posix
33357 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
33358 if test "$ol_link_threads" = no ; then
33359 # try -lpthreads -lmach -lexc
33360 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
33361 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
33362 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
33363 echo $ECHO_N "(cached) $ECHO_C" >&6
33368 LIBS="-lpthreads -lmach -lexc $LIBS"
33370 if test "$cross_compiling" = yes; then
33371 cat >conftest.$ac_ext <<_ACEOF
33374 cat confdefs.h >>conftest.$ac_ext
33375 cat >>conftest.$ac_ext <<_ACEOF
33376 /* end confdefs.h. */
33377 /* pthread test headers */
33378 #include <pthread.h>
33379 #if HAVE_PTHREADS < 7
33383 #define NULL (void*)0
33386 static void *task(p)
33389 return (void *) (p == NULL);
33396 /* pthread test function */
33397 #ifndef PTHREAD_CREATE_DETACHED
33398 #define PTHREAD_CREATE_DETACHED 1
33402 int detach = PTHREAD_CREATE_DETACHED;
33404 #if HAVE_PTHREADS > 4
33405 /* Final pthreads */
33406 pthread_attr_t attr;
33408 status = pthread_attr_init(&attr);
33409 if( status ) return status;
33411 #if HAVE_PTHREADS < 7
33412 status = pthread_attr_setdetachstate(&attr, &detach);
33413 if( status < 0 ) status = errno;
33415 status = pthread_attr_setdetachstate(&attr, detach);
33417 if( status ) return status;
33418 status = pthread_create( &t, &attr, task, NULL );
33419 #if HAVE_PTHREADS < 7
33420 if( status < 0 ) status = errno;
33422 if( status ) return status;
33424 /* Draft 4 pthreads */
33425 status = pthread_create( &t, pthread_attr_default, task, NULL );
33426 if( status ) return errno;
33428 /* give thread a chance to complete */
33429 /* it should remain joinable and hence detachable */
33432 status = pthread_detach( &t );
33433 if( status ) return errno;
33436 #ifdef HAVE_LINUX_THREADS
33437 pthread_kill_other_threads_np();
33446 rm -f conftest.$ac_objext conftest$ac_exeext
33447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33448 (eval $ac_link) 2>conftest.er1
33450 grep -v '^ *+' conftest.er1 >conftest.err
33452 cat conftest.err >&5
33453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33454 (exit $ac_status); } &&
33455 { ac_try='test -z "$ac_c_werror_flag"
33456 || test ! -s conftest.err'
33457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33458 (eval $ac_try) 2>&5
33460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33461 (exit $ac_status); }; } &&
33462 { ac_try='test -s conftest$ac_exeext'
33463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33464 (eval $ac_try) 2>&5
33466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33467 (exit $ac_status); }; }; then
33468 ol_cv_pthread_lpthreads_lmach_lexc=yes
33470 echo "$as_me: failed program was:" >&5
33471 sed 's/^/| /' conftest.$ac_ext >&5
33473 ol_cv_pthread_lpthreads_lmach_lexc=no
33475 rm -f conftest.err conftest.$ac_objext \
33476 conftest$ac_exeext conftest.$ac_ext
33478 cat >conftest.$ac_ext <<_ACEOF
33481 cat confdefs.h >>conftest.$ac_ext
33482 cat >>conftest.$ac_ext <<_ACEOF
33483 /* end confdefs.h. */
33484 /* pthread test headers */
33485 #include <pthread.h>
33486 #if HAVE_PTHREADS < 7
33490 #define NULL (void*)0
33493 static void *task(p)
33496 return (void *) (p == NULL);
33500 int main(argc, argv)
33505 /* pthread test function */
33506 #ifndef PTHREAD_CREATE_DETACHED
33507 #define PTHREAD_CREATE_DETACHED 1
33511 int detach = PTHREAD_CREATE_DETACHED;
33513 #if HAVE_PTHREADS > 4
33514 /* Final pthreads */
33515 pthread_attr_t attr;
33517 status = pthread_attr_init(&attr);
33518 if( status ) return status;
33520 #if HAVE_PTHREADS < 7
33521 status = pthread_attr_setdetachstate(&attr, &detach);
33522 if( status < 0 ) status = errno;
33524 status = pthread_attr_setdetachstate(&attr, detach);
33526 if( status ) return status;
33527 status = pthread_create( &t, &attr, task, NULL );
33528 #if HAVE_PTHREADS < 7
33529 if( status < 0 ) status = errno;
33531 if( status ) return status;
33533 /* Draft 4 pthreads */
33534 status = pthread_create( &t, pthread_attr_default, task, NULL );
33535 if( status ) return errno;
33537 /* give thread a chance to complete */
33538 /* it should remain joinable and hence detachable */
33541 status = pthread_detach( &t );
33542 if( status ) return errno;
33545 #ifdef HAVE_LINUX_THREADS
33546 pthread_kill_other_threads_np();
33554 rm -f conftest$ac_exeext
33555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33556 (eval $ac_link) 2>&5
33558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33559 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33561 (eval $ac_try) 2>&5
33563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33564 (exit $ac_status); }; }; then
33565 ol_cv_pthread_lpthreads_lmach_lexc=yes
33567 echo "$as_me: program exited with status $ac_status" >&5
33568 echo "$as_me: failed program was:" >&5
33569 sed 's/^/| /' conftest.$ac_ext >&5
33571 ( exit $ac_status )
33572 ol_cv_pthread_lpthreads_lmach_lexc=no
33574 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33581 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
33582 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
33584 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
33585 ol_link_pthreads="-lpthreads -lmach -lexc"
33586 ol_link_threads=posix
33590 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
33591 if test "$ol_link_threads" = no ; then
33592 # try -lpthreads -lexc
33593 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
33594 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
33595 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
33596 echo $ECHO_N "(cached) $ECHO_C" >&6
33601 LIBS="-lpthreads -lexc $LIBS"
33603 if test "$cross_compiling" = yes; then
33604 cat >conftest.$ac_ext <<_ACEOF
33607 cat confdefs.h >>conftest.$ac_ext
33608 cat >>conftest.$ac_ext <<_ACEOF
33609 /* end confdefs.h. */
33610 /* pthread test headers */
33611 #include <pthread.h>
33612 #if HAVE_PTHREADS < 7
33616 #define NULL (void*)0
33619 static void *task(p)
33622 return (void *) (p == NULL);
33629 /* pthread test function */
33630 #ifndef PTHREAD_CREATE_DETACHED
33631 #define PTHREAD_CREATE_DETACHED 1
33635 int detach = PTHREAD_CREATE_DETACHED;
33637 #if HAVE_PTHREADS > 4
33638 /* Final pthreads */
33639 pthread_attr_t attr;
33641 status = pthread_attr_init(&attr);
33642 if( status ) return status;
33644 #if HAVE_PTHREADS < 7
33645 status = pthread_attr_setdetachstate(&attr, &detach);
33646 if( status < 0 ) status = errno;
33648 status = pthread_attr_setdetachstate(&attr, detach);
33650 if( status ) return status;
33651 status = pthread_create( &t, &attr, task, NULL );
33652 #if HAVE_PTHREADS < 7
33653 if( status < 0 ) status = errno;
33655 if( status ) return status;
33657 /* Draft 4 pthreads */
33658 status = pthread_create( &t, pthread_attr_default, task, NULL );
33659 if( status ) return errno;
33661 /* give thread a chance to complete */
33662 /* it should remain joinable and hence detachable */
33665 status = pthread_detach( &t );
33666 if( status ) return errno;
33669 #ifdef HAVE_LINUX_THREADS
33670 pthread_kill_other_threads_np();
33679 rm -f conftest.$ac_objext conftest$ac_exeext
33680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33681 (eval $ac_link) 2>conftest.er1
33683 grep -v '^ *+' conftest.er1 >conftest.err
33685 cat conftest.err >&5
33686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33687 (exit $ac_status); } &&
33688 { ac_try='test -z "$ac_c_werror_flag"
33689 || test ! -s conftest.err'
33690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33691 (eval $ac_try) 2>&5
33693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33694 (exit $ac_status); }; } &&
33695 { ac_try='test -s conftest$ac_exeext'
33696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33697 (eval $ac_try) 2>&5
33699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33700 (exit $ac_status); }; }; then
33701 ol_cv_pthread_lpthreads_lexc=yes
33703 echo "$as_me: failed program was:" >&5
33704 sed 's/^/| /' conftest.$ac_ext >&5
33706 ol_cv_pthread_lpthreads_lexc=no
33708 rm -f conftest.err conftest.$ac_objext \
33709 conftest$ac_exeext conftest.$ac_ext
33711 cat >conftest.$ac_ext <<_ACEOF
33714 cat confdefs.h >>conftest.$ac_ext
33715 cat >>conftest.$ac_ext <<_ACEOF
33716 /* end confdefs.h. */
33717 /* pthread test headers */
33718 #include <pthread.h>
33719 #if HAVE_PTHREADS < 7
33723 #define NULL (void*)0
33726 static void *task(p)
33729 return (void *) (p == NULL);
33733 int main(argc, argv)
33738 /* pthread test function */
33739 #ifndef PTHREAD_CREATE_DETACHED
33740 #define PTHREAD_CREATE_DETACHED 1
33744 int detach = PTHREAD_CREATE_DETACHED;
33746 #if HAVE_PTHREADS > 4
33747 /* Final pthreads */
33748 pthread_attr_t attr;
33750 status = pthread_attr_init(&attr);
33751 if( status ) return status;
33753 #if HAVE_PTHREADS < 7
33754 status = pthread_attr_setdetachstate(&attr, &detach);
33755 if( status < 0 ) status = errno;
33757 status = pthread_attr_setdetachstate(&attr, detach);
33759 if( status ) return status;
33760 status = pthread_create( &t, &attr, task, NULL );
33761 #if HAVE_PTHREADS < 7
33762 if( status < 0 ) status = errno;
33764 if( status ) return status;
33766 /* Draft 4 pthreads */
33767 status = pthread_create( &t, pthread_attr_default, task, NULL );
33768 if( status ) return errno;
33770 /* give thread a chance to complete */
33771 /* it should remain joinable and hence detachable */
33774 status = pthread_detach( &t );
33775 if( status ) return errno;
33778 #ifdef HAVE_LINUX_THREADS
33779 pthread_kill_other_threads_np();
33787 rm -f conftest$ac_exeext
33788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33789 (eval $ac_link) 2>&5
33791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33792 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33794 (eval $ac_try) 2>&5
33796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33797 (exit $ac_status); }; }; then
33798 ol_cv_pthread_lpthreads_lexc=yes
33800 echo "$as_me: program exited with status $ac_status" >&5
33801 echo "$as_me: failed program was:" >&5
33802 sed 's/^/| /' conftest.$ac_ext >&5
33804 ( exit $ac_status )
33805 ol_cv_pthread_lpthreads_lexc=no
33807 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33814 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
33815 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
33817 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
33818 ol_link_pthreads="-lpthreads -lexc"
33819 ol_link_threads=posix
33824 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
33825 if test "$ol_link_threads" = no ; then
33827 echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
33828 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
33829 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
33830 echo $ECHO_N "(cached) $ECHO_C" >&6
33835 LIBS="-lpthreads $LIBS"
33837 if test "$cross_compiling" = yes; then
33838 cat >conftest.$ac_ext <<_ACEOF
33841 cat confdefs.h >>conftest.$ac_ext
33842 cat >>conftest.$ac_ext <<_ACEOF
33843 /* end confdefs.h. */
33844 /* pthread test headers */
33845 #include <pthread.h>
33846 #if HAVE_PTHREADS < 7
33850 #define NULL (void*)0
33853 static void *task(p)
33856 return (void *) (p == NULL);
33863 /* pthread test function */
33864 #ifndef PTHREAD_CREATE_DETACHED
33865 #define PTHREAD_CREATE_DETACHED 1
33869 int detach = PTHREAD_CREATE_DETACHED;
33871 #if HAVE_PTHREADS > 4
33872 /* Final pthreads */
33873 pthread_attr_t attr;
33875 status = pthread_attr_init(&attr);
33876 if( status ) return status;
33878 #if HAVE_PTHREADS < 7
33879 status = pthread_attr_setdetachstate(&attr, &detach);
33880 if( status < 0 ) status = errno;
33882 status = pthread_attr_setdetachstate(&attr, detach);
33884 if( status ) return status;
33885 status = pthread_create( &t, &attr, task, NULL );
33886 #if HAVE_PTHREADS < 7
33887 if( status < 0 ) status = errno;
33889 if( status ) return status;
33891 /* Draft 4 pthreads */
33892 status = pthread_create( &t, pthread_attr_default, task, NULL );
33893 if( status ) return errno;
33895 /* give thread a chance to complete */
33896 /* it should remain joinable and hence detachable */
33899 status = pthread_detach( &t );
33900 if( status ) return errno;
33903 #ifdef HAVE_LINUX_THREADS
33904 pthread_kill_other_threads_np();
33913 rm -f conftest.$ac_objext conftest$ac_exeext
33914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33915 (eval $ac_link) 2>conftest.er1
33917 grep -v '^ *+' conftest.er1 >conftest.err
33919 cat conftest.err >&5
33920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33921 (exit $ac_status); } &&
33922 { ac_try='test -z "$ac_c_werror_flag"
33923 || test ! -s conftest.err'
33924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33925 (eval $ac_try) 2>&5
33927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33928 (exit $ac_status); }; } &&
33929 { ac_try='test -s conftest$ac_exeext'
33930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33931 (eval $ac_try) 2>&5
33933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33934 (exit $ac_status); }; }; then
33935 ol_cv_pthread_lib_lpthreads=yes
33937 echo "$as_me: failed program was:" >&5
33938 sed 's/^/| /' conftest.$ac_ext >&5
33940 ol_cv_pthread_lib_lpthreads=no
33942 rm -f conftest.err conftest.$ac_objext \
33943 conftest$ac_exeext conftest.$ac_ext
33945 cat >conftest.$ac_ext <<_ACEOF
33948 cat confdefs.h >>conftest.$ac_ext
33949 cat >>conftest.$ac_ext <<_ACEOF
33950 /* end confdefs.h. */
33951 /* pthread test headers */
33952 #include <pthread.h>
33953 #if HAVE_PTHREADS < 7
33957 #define NULL (void*)0
33960 static void *task(p)
33963 return (void *) (p == NULL);
33967 int main(argc, argv)
33972 /* pthread test function */
33973 #ifndef PTHREAD_CREATE_DETACHED
33974 #define PTHREAD_CREATE_DETACHED 1
33978 int detach = PTHREAD_CREATE_DETACHED;
33980 #if HAVE_PTHREADS > 4
33981 /* Final pthreads */
33982 pthread_attr_t attr;
33984 status = pthread_attr_init(&attr);
33985 if( status ) return status;
33987 #if HAVE_PTHREADS < 7
33988 status = pthread_attr_setdetachstate(&attr, &detach);
33989 if( status < 0 ) status = errno;
33991 status = pthread_attr_setdetachstate(&attr, detach);
33993 if( status ) return status;
33994 status = pthread_create( &t, &attr, task, NULL );
33995 #if HAVE_PTHREADS < 7
33996 if( status < 0 ) status = errno;
33998 if( status ) return status;
34000 /* Draft 4 pthreads */
34001 status = pthread_create( &t, pthread_attr_default, task, NULL );
34002 if( status ) return errno;
34004 /* give thread a chance to complete */
34005 /* it should remain joinable and hence detachable */
34008 status = pthread_detach( &t );
34009 if( status ) return errno;
34012 #ifdef HAVE_LINUX_THREADS
34013 pthread_kill_other_threads_np();
34021 rm -f conftest$ac_exeext
34022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34023 (eval $ac_link) 2>&5
34025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34026 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34028 (eval $ac_try) 2>&5
34030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34031 (exit $ac_status); }; }; then
34032 ol_cv_pthread_lib_lpthreads=yes
34034 echo "$as_me: program exited with status $ac_status" >&5
34035 echo "$as_me: failed program was:" >&5
34036 sed 's/^/| /' conftest.$ac_ext >&5
34038 ( exit $ac_status )
34039 ol_cv_pthread_lib_lpthreads=no
34041 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34048 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
34049 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
34051 if test $ol_cv_pthread_lib_lpthreads = yes ; then
34052 ol_link_pthreads="-lpthreads"
34053 ol_link_threads=posix
34058 if test $ol_link_threads != no ; then
34059 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
34061 save_CPPFLAGS="$CPPFLAGS"
34063 LIBS="$LTHREAD_LIBS $LIBS"
34068 for ac_func in sched_yield pthread_yield thr_yield
34070 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34071 echo "$as_me:$LINENO: checking for $ac_func" >&5
34072 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34073 if eval "test \"\${$as_ac_var+set}\" = set"; then
34074 echo $ECHO_N "(cached) $ECHO_C" >&6
34076 cat >conftest.$ac_ext <<_ACEOF
34079 cat confdefs.h >>conftest.$ac_ext
34080 cat >>conftest.$ac_ext <<_ACEOF
34081 /* end confdefs.h. */
34082 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34083 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34084 #define $ac_func innocuous_$ac_func
34086 /* System header to define __stub macros and hopefully few prototypes,
34087 which can conflict with char $ac_func (); below.
34088 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34089 <limits.h> exists even on freestanding compilers. */
34092 # include <limits.h>
34094 # include <assert.h>
34099 /* Override any gcc2 internal prototype to avoid an error. */
34104 /* We use char because int might match the return type of a gcc2
34105 builtin and then its argument prototype would still apply. */
34107 /* The GNU C library defines this for functions which it implements
34108 to always fail with ENOSYS. Some functions are actually named
34109 something starting with __ and the normal name is an alias. */
34110 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34113 char (*f) () = $ac_func;
34122 return f != $ac_func;
34127 rm -f conftest.$ac_objext conftest$ac_exeext
34128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34129 (eval $ac_link) 2>conftest.er1
34131 grep -v '^ *+' conftest.er1 >conftest.err
34133 cat conftest.err >&5
34134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34135 (exit $ac_status); } &&
34136 { ac_try='test -z "$ac_c_werror_flag"
34137 || test ! -s conftest.err'
34138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34139 (eval $ac_try) 2>&5
34141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34142 (exit $ac_status); }; } &&
34143 { ac_try='test -s conftest$ac_exeext'
34144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34145 (eval $ac_try) 2>&5
34147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34148 (exit $ac_status); }; }; then
34149 eval "$as_ac_var=yes"
34151 echo "$as_me: failed program was:" >&5
34152 sed 's/^/| /' conftest.$ac_ext >&5
34154 eval "$as_ac_var=no"
34156 rm -f conftest.err conftest.$ac_objext \
34157 conftest$ac_exeext conftest.$ac_ext
34159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34160 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34161 if test `eval echo '${'$as_ac_var'}'` = yes; then
34162 cat >>confdefs.h <<_ACEOF
34163 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34170 if test $ac_cv_func_sched_yield = no -a \
34171 $ac_cv_func_pthread_yield = no -a \
34172 $ac_cv_func_thr_yield = no ; then
34173 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
34174 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
34175 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
34176 echo $ECHO_N "(cached) $ECHO_C" >&6
34178 ac_check_lib_save_LIBS=$LIBS
34180 cat >conftest.$ac_ext <<_ACEOF
34183 cat confdefs.h >>conftest.$ac_ext
34184 cat >>conftest.$ac_ext <<_ACEOF
34185 /* end confdefs.h. */
34187 /* Override any gcc2 internal prototype to avoid an error. */
34191 /* We use char because int might match the return type of a gcc2
34192 builtin and then its argument prototype would still apply. */
34193 char sched_yield ();
34202 rm -f conftest.$ac_objext conftest$ac_exeext
34203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34204 (eval $ac_link) 2>conftest.er1
34206 grep -v '^ *+' conftest.er1 >conftest.err
34208 cat conftest.err >&5
34209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34210 (exit $ac_status); } &&
34211 { ac_try='test -z "$ac_c_werror_flag"
34212 || test ! -s conftest.err'
34213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34214 (eval $ac_try) 2>&5
34216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34217 (exit $ac_status); }; } &&
34218 { ac_try='test -s conftest$ac_exeext'
34219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34220 (eval $ac_try) 2>&5
34222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34223 (exit $ac_status); }; }; then
34224 ac_cv_lib_rt_sched_yield=yes
34226 echo "$as_me: failed program was:" >&5
34227 sed 's/^/| /' conftest.$ac_ext >&5
34229 ac_cv_lib_rt_sched_yield=no
34231 rm -f conftest.err conftest.$ac_objext \
34232 conftest$ac_exeext conftest.$ac_ext
34233 LIBS=$ac_check_lib_save_LIBS
34235 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
34236 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
34237 if test $ac_cv_lib_rt_sched_yield = yes; then
34238 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
34240 cat >>confdefs.h <<\_ACEOF
34241 #define HAVE_SCHED_YIELD 1
34244 ac_cv_func_sched_yield=yes
34246 ac_cv_func_sched_yield=no
34250 if test $ac_cv_func_sched_yield = no -a \
34251 $ac_cv_func_pthread_yield = no -a \
34252 "$ac_cv_func_thr_yield" = no ; then
34253 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
34254 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
34259 for ac_func in pthread_kill pthread_rwlock_destroy
34261 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34262 echo "$as_me:$LINENO: checking for $ac_func" >&5
34263 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34264 if eval "test \"\${$as_ac_var+set}\" = set"; then
34265 echo $ECHO_N "(cached) $ECHO_C" >&6
34267 cat >conftest.$ac_ext <<_ACEOF
34270 cat confdefs.h >>conftest.$ac_ext
34271 cat >>conftest.$ac_ext <<_ACEOF
34272 /* end confdefs.h. */
34273 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34275 #define $ac_func innocuous_$ac_func
34277 /* System header to define __stub macros and hopefully few prototypes,
34278 which can conflict with char $ac_func (); below.
34279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34280 <limits.h> exists even on freestanding compilers. */
34283 # include <limits.h>
34285 # include <assert.h>
34290 /* Override any gcc2 internal prototype to avoid an error. */
34295 /* We use char because int might match the return type of a gcc2
34296 builtin and then its argument prototype would still apply. */
34298 /* The GNU C library defines this for functions which it implements
34299 to always fail with ENOSYS. Some functions are actually named
34300 something starting with __ and the normal name is an alias. */
34301 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34304 char (*f) () = $ac_func;
34313 return f != $ac_func;
34318 rm -f conftest.$ac_objext conftest$ac_exeext
34319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34320 (eval $ac_link) 2>conftest.er1
34322 grep -v '^ *+' conftest.er1 >conftest.err
34324 cat conftest.err >&5
34325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34326 (exit $ac_status); } &&
34327 { ac_try='test -z "$ac_c_werror_flag"
34328 || test ! -s conftest.err'
34329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34330 (eval $ac_try) 2>&5
34332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34333 (exit $ac_status); }; } &&
34334 { ac_try='test -s conftest$ac_exeext'
34335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34336 (eval $ac_try) 2>&5
34338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34339 (exit $ac_status); }; }; then
34340 eval "$as_ac_var=yes"
34342 echo "$as_me: failed program was:" >&5
34343 sed 's/^/| /' conftest.$ac_ext >&5
34345 eval "$as_ac_var=no"
34347 rm -f conftest.err conftest.$ac_objext \
34348 conftest$ac_exeext conftest.$ac_ext
34350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34351 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34352 if test `eval echo '${'$as_ac_var'}'` = yes; then
34353 cat >>confdefs.h <<_ACEOF
34354 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34361 echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
34362 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
34363 if test "${ol_cv_func_pthread_detach+set}" = set; then
34364 echo $ECHO_N "(cached) $ECHO_C" >&6
34367 cat >conftest.$ac_ext <<_ACEOF
34370 cat confdefs.h >>conftest.$ac_ext
34371 cat >>conftest.$ac_ext <<_ACEOF
34372 /* end confdefs.h. */
34374 #include <pthread.h>
34376 #define NULL (void*)0
34382 pthread_detach(NULL);
34387 rm -f conftest.$ac_objext conftest$ac_exeext
34388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34389 (eval $ac_link) 2>conftest.er1
34391 grep -v '^ *+' conftest.er1 >conftest.err
34393 cat conftest.err >&5
34394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34395 (exit $ac_status); } &&
34396 { ac_try='test -z "$ac_c_werror_flag"
34397 || test ! -s conftest.err'
34398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34399 (eval $ac_try) 2>&5
34401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34402 (exit $ac_status); }; } &&
34403 { ac_try='test -s conftest$ac_exeext'
34404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34405 (eval $ac_try) 2>&5
34407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34408 (exit $ac_status); }; }; then
34409 ol_cv_func_pthread_detach=yes
34411 echo "$as_me: failed program was:" >&5
34412 sed 's/^/| /' conftest.$ac_ext >&5
34414 ol_cv_func_pthread_detach=no
34416 rm -f conftest.err conftest.$ac_objext \
34417 conftest$ac_exeext conftest.$ac_ext
34420 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
34421 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
34423 if test $ol_cv_func_pthread_detach = no ; then
34424 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
34425 echo "$as_me: error: could not locate pthread_detach()" >&2;}
34426 { (exit 1); exit 1; }; }
34430 cat >>confdefs.h <<\_ACEOF
34431 #define HAVE_PTHREAD_DETACH 1
34440 pthread_setconcurrency \
34441 pthread_getconcurrency \
34442 thr_setconcurrency \
34443 thr_getconcurrency \
34446 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34447 echo "$as_me:$LINENO: checking for $ac_func" >&5
34448 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34449 if eval "test \"\${$as_ac_var+set}\" = set"; then
34450 echo $ECHO_N "(cached) $ECHO_C" >&6
34452 cat >conftest.$ac_ext <<_ACEOF
34455 cat confdefs.h >>conftest.$ac_ext
34456 cat >>conftest.$ac_ext <<_ACEOF
34457 /* end confdefs.h. */
34458 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34459 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34460 #define $ac_func innocuous_$ac_func
34462 /* System header to define __stub macros and hopefully few prototypes,
34463 which can conflict with char $ac_func (); below.
34464 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34465 <limits.h> exists even on freestanding compilers. */
34468 # include <limits.h>
34470 # include <assert.h>
34475 /* Override any gcc2 internal prototype to avoid an error. */
34480 /* We use char because int might match the return type of a gcc2
34481 builtin and then its argument prototype would still apply. */
34483 /* The GNU C library defines this for functions which it implements
34484 to always fail with ENOSYS. Some functions are actually named
34485 something starting with __ and the normal name is an alias. */
34486 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34489 char (*f) () = $ac_func;
34498 return f != $ac_func;
34503 rm -f conftest.$ac_objext conftest$ac_exeext
34504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34505 (eval $ac_link) 2>conftest.er1
34507 grep -v '^ *+' conftest.er1 >conftest.err
34509 cat conftest.err >&5
34510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34511 (exit $ac_status); } &&
34512 { ac_try='test -z "$ac_c_werror_flag"
34513 || test ! -s conftest.err'
34514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34515 (eval $ac_try) 2>&5
34517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34518 (exit $ac_status); }; } &&
34519 { ac_try='test -s conftest$ac_exeext'
34520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34521 (eval $ac_try) 2>&5
34523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34524 (exit $ac_status); }; }; then
34525 eval "$as_ac_var=yes"
34527 echo "$as_me: failed program was:" >&5
34528 sed 's/^/| /' conftest.$ac_ext >&5
34530 eval "$as_ac_var=no"
34532 rm -f conftest.err conftest.$ac_objext \
34533 conftest$ac_exeext conftest.$ac_ext
34535 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34536 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34537 if test `eval echo '${'$as_ac_var'}'` = yes; then
34538 cat >>confdefs.h <<_ACEOF
34539 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34548 for ac_func in pthread_kill_other_threads_np
34550 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34551 echo "$as_me:$LINENO: checking for $ac_func" >&5
34552 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34553 if eval "test \"\${$as_ac_var+set}\" = set"; then
34554 echo $ECHO_N "(cached) $ECHO_C" >&6
34556 cat >conftest.$ac_ext <<_ACEOF
34559 cat confdefs.h >>conftest.$ac_ext
34560 cat >>conftest.$ac_ext <<_ACEOF
34561 /* end confdefs.h. */
34562 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34563 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34564 #define $ac_func innocuous_$ac_func
34566 /* System header to define __stub macros and hopefully few prototypes,
34567 which can conflict with char $ac_func (); below.
34568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34569 <limits.h> exists even on freestanding compilers. */
34572 # include <limits.h>
34574 # include <assert.h>
34579 /* Override any gcc2 internal prototype to avoid an error. */
34584 /* We use char because int might match the return type of a gcc2
34585 builtin and then its argument prototype would still apply. */
34587 /* The GNU C library defines this for functions which it implements
34588 to always fail with ENOSYS. Some functions are actually named
34589 something starting with __ and the normal name is an alias. */
34590 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34593 char (*f) () = $ac_func;
34602 return f != $ac_func;
34607 rm -f conftest.$ac_objext conftest$ac_exeext
34608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34609 (eval $ac_link) 2>conftest.er1
34611 grep -v '^ *+' conftest.er1 >conftest.err
34613 cat conftest.err >&5
34614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34615 (exit $ac_status); } &&
34616 { ac_try='test -z "$ac_c_werror_flag"
34617 || test ! -s conftest.err'
34618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34619 (eval $ac_try) 2>&5
34621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34622 (exit $ac_status); }; } &&
34623 { ac_try='test -s conftest$ac_exeext'
34624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34625 (eval $ac_try) 2>&5
34627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34628 (exit $ac_status); }; }; then
34629 eval "$as_ac_var=yes"
34631 echo "$as_me: failed program was:" >&5
34632 sed 's/^/| /' conftest.$ac_ext >&5
34634 eval "$as_ac_var=no"
34636 rm -f conftest.err conftest.$ac_objext \
34637 conftest$ac_exeext conftest.$ac_ext
34639 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34640 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34641 if test `eval echo '${'$as_ac_var'}'` = yes; then
34642 cat >>confdefs.h <<_ACEOF
34643 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34649 echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
34650 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
34651 if test "${ol_cv_sys_linux_threads+set}" = set; then
34652 echo $ECHO_N "(cached) $ECHO_C" >&6
34654 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
34656 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
34657 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
34662 echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
34663 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
34664 if test "${ol_cv_linux_threads+set}" = set; then
34665 echo $ECHO_N "(cached) $ECHO_C" >&6
34668 if test $ol_cv_header_linux_threads = yes -a \
34669 $ol_cv_sys_linux_threads = yes; then
34670 ol_cv_linux_threads=yes
34671 elif test $ol_cv_header_linux_threads = no -a \
34672 $ol_cv_sys_linux_threads = no; then
34673 ol_cv_linux_threads=no
34675 ol_cv_linux_threads=error
34679 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
34680 echo "${ECHO_T}$ol_cv_linux_threads" >&6
34683 if test $ol_cv_linux_threads = error; then
34684 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
34685 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
34686 { (exit 1); exit 1; }; };
34689 echo "$as_me:$LINENO: checking if pthread_create() works" >&5
34690 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
34691 if test "${ol_cv_pthread_create_works+set}" = set; then
34692 echo $ECHO_N "(cached) $ECHO_C" >&6
34695 if test "$cross_compiling" = yes; then
34696 ol_cv_pthread_create_works=yes
34698 cat >conftest.$ac_ext <<_ACEOF
34701 cat confdefs.h >>conftest.$ac_ext
34702 cat >>conftest.$ac_ext <<_ACEOF
34703 /* end confdefs.h. */
34704 /* pthread test headers */
34705 #include <pthread.h>
34706 #if HAVE_PTHREADS < 7
34710 #define NULL (void*)0
34713 static void *task(p)
34716 return (void *) (p == NULL);
34720 int main(argc, argv)
34725 /* pthread test function */
34726 #ifndef PTHREAD_CREATE_DETACHED
34727 #define PTHREAD_CREATE_DETACHED 1
34731 int detach = PTHREAD_CREATE_DETACHED;
34733 #if HAVE_PTHREADS > 4
34734 /* Final pthreads */
34735 pthread_attr_t attr;
34737 status = pthread_attr_init(&attr);
34738 if( status ) return status;
34740 #if HAVE_PTHREADS < 7
34741 status = pthread_attr_setdetachstate(&attr, &detach);
34742 if( status < 0 ) status = errno;
34744 status = pthread_attr_setdetachstate(&attr, detach);
34746 if( status ) return status;
34747 status = pthread_create( &t, &attr, task, NULL );
34748 #if HAVE_PTHREADS < 7
34749 if( status < 0 ) status = errno;
34751 if( status ) return status;
34753 /* Draft 4 pthreads */
34754 status = pthread_create( &t, pthread_attr_default, task, NULL );
34755 if( status ) return errno;
34757 /* give thread a chance to complete */
34758 /* it should remain joinable and hence detachable */
34761 status = pthread_detach( &t );
34762 if( status ) return errno;
34765 #ifdef HAVE_LINUX_THREADS
34766 pthread_kill_other_threads_np();
34774 rm -f conftest$ac_exeext
34775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34776 (eval $ac_link) 2>&5
34778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34779 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34781 (eval $ac_try) 2>&5
34783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34784 (exit $ac_status); }; }; then
34785 ol_cv_pthread_create_works=yes
34787 echo "$as_me: program exited with status $ac_status" >&5
34788 echo "$as_me: failed program was:" >&5
34789 sed 's/^/| /' conftest.$ac_ext >&5
34791 ( exit $ac_status )
34792 ol_cv_pthread_create_works=no
34794 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34797 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
34798 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
34800 if test $ol_cv_pthread_create_works = no ; then
34801 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
34802 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
34803 { (exit 1); exit 1; }; }
34806 if test $ol_with_yielding_select = auto ; then
34807 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
34808 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
34809 if test "${ol_cv_pthread_select_yields+set}" = set; then
34810 echo $ECHO_N "(cached) $ECHO_C" >&6
34813 if test "$cross_compiling" = yes; then
34814 ol_cv_pthread_select_yields=cross
34816 cat >conftest.$ac_ext <<_ACEOF
34819 cat confdefs.h >>conftest.$ac_ext
34820 cat >>conftest.$ac_ext <<_ACEOF
34821 /* end confdefs.h. */
34823 #include <sys/types.h>
34824 #include <sys/time.h>
34825 #include <unistd.h>
34826 #include <pthread.h>
34828 #define NULL (void*) 0
34831 static int fildes[2];
34833 static void *task(p)
34845 FD_SET(fildes[0], &rfds);
34847 /* we're not interested in any fds */
34848 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
34855 exit(0); /* if we exit here, the select blocked the whole process */
34858 int main(argc, argv)
34864 /* create a pipe to select */
34865 if(pipe(&fildes[0])) {
34870 #ifdef HAVE_PTHREAD_SETCONCURRENCY
34871 (void) pthread_setconcurrency(2);
34873 #ifdef HAVE_THR_SETCONCURRENCY
34874 /* Set Solaris LWP concurrency to 2 */
34875 thr_setconcurrency(2);
34879 #if HAVE_PTHREADS < 6
34880 pthread_create(&t, pthread_attr_default, task, NULL);
34882 pthread_create(&t, NULL, task, NULL);
34885 /* make sure task runs first */
34888 #elif defined( HAVE_SCHED_YIELD )
34890 #elif defined( HAVE_PTHREAD_YIELD )
34897 rm -f conftest$ac_exeext
34898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34899 (eval $ac_link) 2>&5
34901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34902 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34904 (eval $ac_try) 2>&5
34906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34907 (exit $ac_status); }; }; then
34908 ol_cv_pthread_select_yields=no
34910 echo "$as_me: program exited with status $ac_status" >&5
34911 echo "$as_me: failed program was:" >&5
34912 sed 's/^/| /' conftest.$ac_ext >&5
34914 ( exit $ac_status )
34915 ol_cv_pthread_select_yields=yes
34917 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34920 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
34921 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
34923 if test $ol_cv_pthread_select_yields = cross ; then
34924 { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
34925 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
34926 { (exit 1); exit 1; }; }
34929 if test $ol_cv_pthread_select_yields = yes ; then
34930 ol_with_yielding_select=yes
34934 CPPFLAGS="$save_CPPFLAGS"
34937 { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
34938 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
34939 { (exit 1); exit 1; }; }
34943 if test $ol_with_threads = posix ; then
34944 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
34945 echo "$as_me: error: could not locate POSIX Threads" >&2;}
34946 { (exit 1); exit 1; }; }
34950 if test $ol_with_threads = auto -o $ol_with_threads = yes \
34951 -o $ol_with_threads = mach ; then
34955 for ac_header in mach/cthreads.h cthreads.h
34957 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34958 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34959 echo "$as_me:$LINENO: checking for $ac_header" >&5
34960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34962 echo $ECHO_N "(cached) $ECHO_C" >&6
34964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34965 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34967 # Is the header compilable?
34968 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34969 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34970 cat >conftest.$ac_ext <<_ACEOF
34973 cat confdefs.h >>conftest.$ac_ext
34974 cat >>conftest.$ac_ext <<_ACEOF
34975 /* end confdefs.h. */
34976 $ac_includes_default
34977 #include <$ac_header>
34979 rm -f conftest.$ac_objext
34980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34981 (eval $ac_compile) 2>conftest.er1
34983 grep -v '^ *+' conftest.er1 >conftest.err
34985 cat conftest.err >&5
34986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34987 (exit $ac_status); } &&
34988 { ac_try='test -z "$ac_c_werror_flag"
34989 || test ! -s conftest.err'
34990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34991 (eval $ac_try) 2>&5
34993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34994 (exit $ac_status); }; } &&
34995 { ac_try='test -s conftest.$ac_objext'
34996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34997 (eval $ac_try) 2>&5
34999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35000 (exit $ac_status); }; }; then
35001 ac_header_compiler=yes
35003 echo "$as_me: failed program was:" >&5
35004 sed 's/^/| /' conftest.$ac_ext >&5
35006 ac_header_compiler=no
35008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35009 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35010 echo "${ECHO_T}$ac_header_compiler" >&6
35012 # Is the header present?
35013 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35014 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35015 cat >conftest.$ac_ext <<_ACEOF
35018 cat confdefs.h >>conftest.$ac_ext
35019 cat >>conftest.$ac_ext <<_ACEOF
35020 /* end confdefs.h. */
35021 #include <$ac_header>
35023 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35024 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35026 grep -v '^ *+' conftest.er1 >conftest.err
35028 cat conftest.err >&5
35029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35030 (exit $ac_status); } >/dev/null; then
35031 if test -s conftest.err; then
35032 ac_cpp_err=$ac_c_preproc_warn_flag
35033 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35040 if test -z "$ac_cpp_err"; then
35041 ac_header_preproc=yes
35043 echo "$as_me: failed program was:" >&5
35044 sed 's/^/| /' conftest.$ac_ext >&5
35046 ac_header_preproc=no
35048 rm -f conftest.err conftest.$ac_ext
35049 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35050 echo "${ECHO_T}$ac_header_preproc" >&6
35052 # So? What about this header?
35053 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35055 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35056 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35057 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35058 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35059 ac_header_preproc=yes
35062 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35063 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35064 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35065 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35066 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35067 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35068 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35069 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35070 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35071 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35072 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35073 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35076 ## ------------------------------------------ ##
35077 ## Report this to the AC_PACKAGE_NAME lists. ##
35078 ## ------------------------------------------ ##
35081 sed "s/^/$as_me: WARNING: /" >&2
35084 echo "$as_me:$LINENO: checking for $ac_header" >&5
35085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35086 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35087 echo $ECHO_N "(cached) $ECHO_C" >&6
35089 eval "$as_ac_Header=\$ac_header_preproc"
35091 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35092 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35095 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35096 cat >>confdefs.h <<_ACEOF
35097 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35104 if test $ac_cv_header_mach_cthreads_h = yes ; then
35105 ol_with_threads=found
35107 echo "$as_me:$LINENO: checking for cthread_fork" >&5
35108 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
35109 if test "${ac_cv_func_cthread_fork+set}" = set; then
35110 echo $ECHO_N "(cached) $ECHO_C" >&6
35112 cat >conftest.$ac_ext <<_ACEOF
35115 cat confdefs.h >>conftest.$ac_ext
35116 cat >>conftest.$ac_ext <<_ACEOF
35117 /* end confdefs.h. */
35118 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
35119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35120 #define cthread_fork innocuous_cthread_fork
35122 /* System header to define __stub macros and hopefully few prototypes,
35123 which can conflict with char cthread_fork (); below.
35124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35125 <limits.h> exists even on freestanding compilers. */
35128 # include <limits.h>
35130 # include <assert.h>
35133 #undef cthread_fork
35135 /* Override any gcc2 internal prototype to avoid an error. */
35140 /* We use char because int might match the return type of a gcc2
35141 builtin and then its argument prototype would still apply. */
35142 char cthread_fork ();
35143 /* The GNU C library defines this for functions which it implements
35144 to always fail with ENOSYS. Some functions are actually named
35145 something starting with __ and the normal name is an alias. */
35146 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
35149 char (*f) () = cthread_fork;
35158 return f != cthread_fork;
35163 rm -f conftest.$ac_objext conftest$ac_exeext
35164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35165 (eval $ac_link) 2>conftest.er1
35167 grep -v '^ *+' conftest.er1 >conftest.err
35169 cat conftest.err >&5
35170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35171 (exit $ac_status); } &&
35172 { ac_try='test -z "$ac_c_werror_flag"
35173 || test ! -s conftest.err'
35174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35175 (eval $ac_try) 2>&5
35177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35178 (exit $ac_status); }; } &&
35179 { ac_try='test -s conftest$ac_exeext'
35180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35181 (eval $ac_try) 2>&5
35183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35184 (exit $ac_status); }; }; then
35185 ac_cv_func_cthread_fork=yes
35187 echo "$as_me: failed program was:" >&5
35188 sed 's/^/| /' conftest.$ac_ext >&5
35190 ac_cv_func_cthread_fork=no
35192 rm -f conftest.err conftest.$ac_objext \
35193 conftest$ac_exeext conftest.$ac_ext
35195 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
35196 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
35197 if test $ac_cv_func_cthread_fork = yes; then
35198 ol_link_threads=yes
35202 if test $ol_link_threads = no ; then
35203 echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
35204 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
35205 if test "${ol_cv_cthread_all_load+set}" = set; then
35206 echo $ECHO_N "(cached) $ECHO_C" >&6
35210 LIBS="-all_load $LIBS"
35211 cat >conftest.$ac_ext <<_ACEOF
35214 cat confdefs.h >>conftest.$ac_ext
35215 cat >>conftest.$ac_ext <<_ACEOF
35216 /* end confdefs.h. */
35217 #include <mach/cthreads.h>
35222 cthread_fork((void *)0, (void *)0);
35228 rm -f conftest.$ac_objext conftest$ac_exeext
35229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35230 (eval $ac_link) 2>conftest.er1
35232 grep -v '^ *+' conftest.er1 >conftest.err
35234 cat conftest.err >&5
35235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35236 (exit $ac_status); } &&
35237 { ac_try='test -z "$ac_c_werror_flag"
35238 || test ! -s conftest.err'
35239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35240 (eval $ac_try) 2>&5
35242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35243 (exit $ac_status); }; } &&
35244 { ac_try='test -s conftest$ac_exeext'
35245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35246 (eval $ac_try) 2>&5
35248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35249 (exit $ac_status); }; }; then
35250 ol_cv_cthread_all_load=yes
35252 echo "$as_me: failed program was:" >&5
35253 sed 's/^/| /' conftest.$ac_ext >&5
35255 ol_cv_cthread_all_load=no
35257 rm -f conftest.err conftest.$ac_objext \
35258 conftest$ac_exeext conftest.$ac_ext
35262 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
35263 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
35265 if test $ol_cv_cthread_all_load = yes ; then
35266 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
35267 ol_link_threads=mach
35268 ol_with_threads=found
35272 elif test $ac_cv_header_cthreads_h = yes ; then
35274 ol_with_threads=found
35277 LIBS="$LIBS -lthreads"
35278 echo "$as_me:$LINENO: checking for cthread_fork" >&5
35279 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
35280 if test "${ac_cv_func_cthread_fork+set}" = set; then
35281 echo $ECHO_N "(cached) $ECHO_C" >&6
35283 cat >conftest.$ac_ext <<_ACEOF
35286 cat confdefs.h >>conftest.$ac_ext
35287 cat >>conftest.$ac_ext <<_ACEOF
35288 /* end confdefs.h. */
35289 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
35290 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35291 #define cthread_fork innocuous_cthread_fork
35293 /* System header to define __stub macros and hopefully few prototypes,
35294 which can conflict with char cthread_fork (); below.
35295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35296 <limits.h> exists even on freestanding compilers. */
35299 # include <limits.h>
35301 # include <assert.h>
35304 #undef cthread_fork
35306 /* Override any gcc2 internal prototype to avoid an error. */
35311 /* We use char because int might match the return type of a gcc2
35312 builtin and then its argument prototype would still apply. */
35313 char cthread_fork ();
35314 /* The GNU C library defines this for functions which it implements
35315 to always fail with ENOSYS. Some functions are actually named
35316 something starting with __ and the normal name is an alias. */
35317 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
35320 char (*f) () = cthread_fork;
35329 return f != cthread_fork;
35334 rm -f conftest.$ac_objext conftest$ac_exeext
35335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35336 (eval $ac_link) 2>conftest.er1
35338 grep -v '^ *+' conftest.er1 >conftest.err
35340 cat conftest.err >&5
35341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35342 (exit $ac_status); } &&
35343 { ac_try='test -z "$ac_c_werror_flag"
35344 || test ! -s conftest.err'
35345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35346 (eval $ac_try) 2>&5
35348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35349 (exit $ac_status); }; } &&
35350 { ac_try='test -s conftest$ac_exeext'
35351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35352 (eval $ac_try) 2>&5
35354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35355 (exit $ac_status); }; }; then
35356 ac_cv_func_cthread_fork=yes
35358 echo "$as_me: failed program was:" >&5
35359 sed 's/^/| /' conftest.$ac_ext >&5
35361 ac_cv_func_cthread_fork=no
35363 rm -f conftest.err conftest.$ac_objext \
35364 conftest$ac_exeext conftest.$ac_ext
35366 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
35367 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
35368 if test $ac_cv_func_cthread_fork = yes; then
35369 ol_link_threads=yes
35374 if test $ol_link_threads = yes ; then
35375 LTHREAD_LIBS="-lthreads"
35376 ol_link_threads=mach
35377 ol_with_threads=found
35379 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
35380 echo "$as_me: error: could not link with Mach CThreads" >&2;}
35381 { (exit 1); exit 1; }; }
35384 elif test $ol_with_threads = mach ; then
35385 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
35386 echo "$as_me: error: could not locate Mach CThreads" >&2;}
35387 { (exit 1); exit 1; }; }
35390 if test $ol_link_threads = mach ; then
35392 cat >>confdefs.h <<\_ACEOF
35393 #define HAVE_MACH_CTHREADS 1
35396 elif test $ol_with_threads = found ; then
35397 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
35398 echo "$as_me: error: could not link with Mach CThreads" >&2;}
35399 { (exit 1); exit 1; }; }
35403 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35404 -o $ol_with_threads = pth ; then
35407 for ac_header in pth.h
35409 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35411 echo "$as_me:$LINENO: checking for $ac_header" >&5
35412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35413 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35414 echo $ECHO_N "(cached) $ECHO_C" >&6
35416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35417 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35419 # Is the header compilable?
35420 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35421 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35422 cat >conftest.$ac_ext <<_ACEOF
35425 cat confdefs.h >>conftest.$ac_ext
35426 cat >>conftest.$ac_ext <<_ACEOF
35427 /* end confdefs.h. */
35428 $ac_includes_default
35429 #include <$ac_header>
35431 rm -f conftest.$ac_objext
35432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35433 (eval $ac_compile) 2>conftest.er1
35435 grep -v '^ *+' conftest.er1 >conftest.err
35437 cat conftest.err >&5
35438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35439 (exit $ac_status); } &&
35440 { ac_try='test -z "$ac_c_werror_flag"
35441 || test ! -s conftest.err'
35442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35443 (eval $ac_try) 2>&5
35445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35446 (exit $ac_status); }; } &&
35447 { ac_try='test -s conftest.$ac_objext'
35448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35449 (eval $ac_try) 2>&5
35451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35452 (exit $ac_status); }; }; then
35453 ac_header_compiler=yes
35455 echo "$as_me: failed program was:" >&5
35456 sed 's/^/| /' conftest.$ac_ext >&5
35458 ac_header_compiler=no
35460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35461 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35462 echo "${ECHO_T}$ac_header_compiler" >&6
35464 # Is the header present?
35465 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35466 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35467 cat >conftest.$ac_ext <<_ACEOF
35470 cat confdefs.h >>conftest.$ac_ext
35471 cat >>conftest.$ac_ext <<_ACEOF
35472 /* end confdefs.h. */
35473 #include <$ac_header>
35475 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35476 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35478 grep -v '^ *+' conftest.er1 >conftest.err
35480 cat conftest.err >&5
35481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35482 (exit $ac_status); } >/dev/null; then
35483 if test -s conftest.err; then
35484 ac_cpp_err=$ac_c_preproc_warn_flag
35485 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35492 if test -z "$ac_cpp_err"; then
35493 ac_header_preproc=yes
35495 echo "$as_me: failed program was:" >&5
35496 sed 's/^/| /' conftest.$ac_ext >&5
35498 ac_header_preproc=no
35500 rm -f conftest.err conftest.$ac_ext
35501 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35502 echo "${ECHO_T}$ac_header_preproc" >&6
35504 # So? What about this header?
35505 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35507 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35508 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35510 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35511 ac_header_preproc=yes
35514 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35515 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35516 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35517 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35518 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35519 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35520 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35521 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35522 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35523 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35524 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35525 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35528 ## ------------------------------------------ ##
35529 ## Report this to the AC_PACKAGE_NAME lists. ##
35530 ## ------------------------------------------ ##
35533 sed "s/^/$as_me: WARNING: /" >&2
35536 echo "$as_me:$LINENO: checking for $ac_header" >&5
35537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35538 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35539 echo $ECHO_N "(cached) $ECHO_C" >&6
35541 eval "$as_ac_Header=\$ac_header_preproc"
35543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35544 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35547 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35548 cat >>confdefs.h <<_ACEOF
35549 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35557 if test $ac_cv_header_pth_h = yes ; then
35558 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
35559 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
35560 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
35561 echo $ECHO_N "(cached) $ECHO_C" >&6
35563 ac_check_lib_save_LIBS=$LIBS
35565 cat >conftest.$ac_ext <<_ACEOF
35568 cat confdefs.h >>conftest.$ac_ext
35569 cat >>conftest.$ac_ext <<_ACEOF
35570 /* end confdefs.h. */
35572 /* Override any gcc2 internal prototype to avoid an error. */
35576 /* We use char because int might match the return type of a gcc2
35577 builtin and then its argument prototype would still apply. */
35578 char pth_version ();
35587 rm -f conftest.$ac_objext conftest$ac_exeext
35588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35589 (eval $ac_link) 2>conftest.er1
35591 grep -v '^ *+' conftest.er1 >conftest.err
35593 cat conftest.err >&5
35594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35595 (exit $ac_status); } &&
35596 { ac_try='test -z "$ac_c_werror_flag"
35597 || test ! -s conftest.err'
35598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35599 (eval $ac_try) 2>&5
35601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35602 (exit $ac_status); }; } &&
35603 { ac_try='test -s conftest$ac_exeext'
35604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35605 (eval $ac_try) 2>&5
35607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35608 (exit $ac_status); }; }; then
35609 ac_cv_lib_pth_pth_version=yes
35611 echo "$as_me: failed program was:" >&5
35612 sed 's/^/| /' conftest.$ac_ext >&5
35614 ac_cv_lib_pth_pth_version=no
35616 rm -f conftest.err conftest.$ac_objext \
35617 conftest$ac_exeext conftest.$ac_ext
35618 LIBS=$ac_check_lib_save_LIBS
35620 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
35621 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
35622 if test $ac_cv_lib_pth_pth_version = yes; then
35629 if test $have_pth = yes ; then
35631 cat >>confdefs.h <<\_ACEOF
35632 #define HAVE_GNU_PTH 1
35635 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
35636 ol_link_threads=pth
35637 ol_with_threads=found
35639 if test $ol_with_yielding_select = auto ; then
35640 ol_with_yielding_select=yes
35646 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35647 -o $ol_with_threads = lwp ; then
35651 for ac_header in thread.h synch.h
35653 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35654 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35655 echo "$as_me:$LINENO: checking for $ac_header" >&5
35656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35657 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35658 echo $ECHO_N "(cached) $ECHO_C" >&6
35660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35661 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35663 # Is the header compilable?
35664 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35665 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35666 cat >conftest.$ac_ext <<_ACEOF
35669 cat confdefs.h >>conftest.$ac_ext
35670 cat >>conftest.$ac_ext <<_ACEOF
35671 /* end confdefs.h. */
35672 $ac_includes_default
35673 #include <$ac_header>
35675 rm -f conftest.$ac_objext
35676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35677 (eval $ac_compile) 2>conftest.er1
35679 grep -v '^ *+' conftest.er1 >conftest.err
35681 cat conftest.err >&5
35682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35683 (exit $ac_status); } &&
35684 { ac_try='test -z "$ac_c_werror_flag"
35685 || test ! -s conftest.err'
35686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35687 (eval $ac_try) 2>&5
35689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35690 (exit $ac_status); }; } &&
35691 { ac_try='test -s conftest.$ac_objext'
35692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35693 (eval $ac_try) 2>&5
35695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35696 (exit $ac_status); }; }; then
35697 ac_header_compiler=yes
35699 echo "$as_me: failed program was:" >&5
35700 sed 's/^/| /' conftest.$ac_ext >&5
35702 ac_header_compiler=no
35704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35705 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35706 echo "${ECHO_T}$ac_header_compiler" >&6
35708 # Is the header present?
35709 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35710 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35711 cat >conftest.$ac_ext <<_ACEOF
35714 cat confdefs.h >>conftest.$ac_ext
35715 cat >>conftest.$ac_ext <<_ACEOF
35716 /* end confdefs.h. */
35717 #include <$ac_header>
35719 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35720 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35722 grep -v '^ *+' conftest.er1 >conftest.err
35724 cat conftest.err >&5
35725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35726 (exit $ac_status); } >/dev/null; then
35727 if test -s conftest.err; then
35728 ac_cpp_err=$ac_c_preproc_warn_flag
35729 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35736 if test -z "$ac_cpp_err"; then
35737 ac_header_preproc=yes
35739 echo "$as_me: failed program was:" >&5
35740 sed 's/^/| /' conftest.$ac_ext >&5
35742 ac_header_preproc=no
35744 rm -f conftest.err conftest.$ac_ext
35745 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35746 echo "${ECHO_T}$ac_header_preproc" >&6
35748 # So? What about this header?
35749 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35751 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35752 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35754 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35755 ac_header_preproc=yes
35758 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35759 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35760 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35761 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35762 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35763 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35764 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35765 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35767 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35768 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35769 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35772 ## ------------------------------------------ ##
35773 ## Report this to the AC_PACKAGE_NAME lists. ##
35774 ## ------------------------------------------ ##
35777 sed "s/^/$as_me: WARNING: /" >&2
35780 echo "$as_me:$LINENO: checking for $ac_header" >&5
35781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35783 echo $ECHO_N "(cached) $ECHO_C" >&6
35785 eval "$as_ac_Header=\$ac_header_preproc"
35787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35791 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35792 cat >>confdefs.h <<_ACEOF
35793 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35800 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
35801 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
35802 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
35803 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
35804 echo $ECHO_N "(cached) $ECHO_C" >&6
35806 ac_check_lib_save_LIBS=$LIBS
35807 LIBS="-lthread $LIBS"
35808 cat >conftest.$ac_ext <<_ACEOF
35811 cat confdefs.h >>conftest.$ac_ext
35812 cat >>conftest.$ac_ext <<_ACEOF
35813 /* end confdefs.h. */
35815 /* Override any gcc2 internal prototype to avoid an error. */
35819 /* We use char because int might match the return type of a gcc2
35820 builtin and then its argument prototype would still apply. */
35821 char thr_create ();
35830 rm -f conftest.$ac_objext conftest$ac_exeext
35831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35832 (eval $ac_link) 2>conftest.er1
35834 grep -v '^ *+' conftest.er1 >conftest.err
35836 cat conftest.err >&5
35837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35838 (exit $ac_status); } &&
35839 { ac_try='test -z "$ac_c_werror_flag"
35840 || test ! -s conftest.err'
35841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35842 (eval $ac_try) 2>&5
35844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35845 (exit $ac_status); }; } &&
35846 { ac_try='test -s conftest$ac_exeext'
35847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35848 (eval $ac_try) 2>&5
35850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35851 (exit $ac_status); }; }; then
35852 ac_cv_lib_thread_thr_create=yes
35854 echo "$as_me: failed program was:" >&5
35855 sed 's/^/| /' conftest.$ac_ext >&5
35857 ac_cv_lib_thread_thr_create=no
35859 rm -f conftest.err conftest.$ac_objext \
35860 conftest$ac_exeext conftest.$ac_ext
35861 LIBS=$ac_check_lib_save_LIBS
35863 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
35864 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
35865 if test $ac_cv_lib_thread_thr_create = yes; then
35872 if test $have_thr = yes ; then
35874 cat >>confdefs.h <<\_ACEOF
35878 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
35879 ol_link_threads=thr
35881 if test $ol_with_yielding_select = auto ; then
35882 ol_with_yielding_select=yes
35888 thr_setconcurrency \
35889 thr_getconcurrency \
35892 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35893 echo "$as_me:$LINENO: checking for $ac_func" >&5
35894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35895 if eval "test \"\${$as_ac_var+set}\" = set"; then
35896 echo $ECHO_N "(cached) $ECHO_C" >&6
35898 cat >conftest.$ac_ext <<_ACEOF
35901 cat confdefs.h >>conftest.$ac_ext
35902 cat >>conftest.$ac_ext <<_ACEOF
35903 /* end confdefs.h. */
35904 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35906 #define $ac_func innocuous_$ac_func
35908 /* System header to define __stub macros and hopefully few prototypes,
35909 which can conflict with char $ac_func (); below.
35910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35911 <limits.h> exists even on freestanding compilers. */
35914 # include <limits.h>
35916 # include <assert.h>
35921 /* Override any gcc2 internal prototype to avoid an error. */
35926 /* We use char because int might match the return type of a gcc2
35927 builtin and then its argument prototype would still apply. */
35929 /* The GNU C library defines this for functions which it implements
35930 to always fail with ENOSYS. Some functions are actually named
35931 something starting with __ and the normal name is an alias. */
35932 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35935 char (*f) () = $ac_func;
35944 return f != $ac_func;
35949 rm -f conftest.$ac_objext conftest$ac_exeext
35950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35951 (eval $ac_link) 2>conftest.er1
35953 grep -v '^ *+' conftest.er1 >conftest.err
35955 cat conftest.err >&5
35956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35957 (exit $ac_status); } &&
35958 { ac_try='test -z "$ac_c_werror_flag"
35959 || test ! -s conftest.err'
35960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35961 (eval $ac_try) 2>&5
35963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35964 (exit $ac_status); }; } &&
35965 { ac_try='test -s conftest$ac_exeext'
35966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35967 (eval $ac_try) 2>&5
35969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35970 (exit $ac_status); }; }; then
35971 eval "$as_ac_var=yes"
35973 echo "$as_me: failed program was:" >&5
35974 sed 's/^/| /' conftest.$ac_ext >&5
35976 eval "$as_ac_var=no"
35978 rm -f conftest.err conftest.$ac_objext \
35979 conftest$ac_exeext conftest.$ac_ext
35981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35982 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35983 if test `eval echo '${'$as_ac_var'}'` = yes; then
35984 cat >>confdefs.h <<_ACEOF
35985 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35995 for ac_header in lwp/lwp.h
35997 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35998 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35999 echo "$as_me:$LINENO: checking for $ac_header" >&5
36000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36002 echo $ECHO_N "(cached) $ECHO_C" >&6
36004 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36005 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36007 # Is the header compilable?
36008 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36009 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36010 cat >conftest.$ac_ext <<_ACEOF
36013 cat confdefs.h >>conftest.$ac_ext
36014 cat >>conftest.$ac_ext <<_ACEOF
36015 /* end confdefs.h. */
36016 $ac_includes_default
36017 #include <$ac_header>
36019 rm -f conftest.$ac_objext
36020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36021 (eval $ac_compile) 2>conftest.er1
36023 grep -v '^ *+' conftest.er1 >conftest.err
36025 cat conftest.err >&5
36026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36027 (exit $ac_status); } &&
36028 { ac_try='test -z "$ac_c_werror_flag"
36029 || test ! -s conftest.err'
36030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36031 (eval $ac_try) 2>&5
36033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36034 (exit $ac_status); }; } &&
36035 { ac_try='test -s conftest.$ac_objext'
36036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36037 (eval $ac_try) 2>&5
36039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36040 (exit $ac_status); }; }; then
36041 ac_header_compiler=yes
36043 echo "$as_me: failed program was:" >&5
36044 sed 's/^/| /' conftest.$ac_ext >&5
36046 ac_header_compiler=no
36048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36049 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36050 echo "${ECHO_T}$ac_header_compiler" >&6
36052 # Is the header present?
36053 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36054 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36055 cat >conftest.$ac_ext <<_ACEOF
36058 cat confdefs.h >>conftest.$ac_ext
36059 cat >>conftest.$ac_ext <<_ACEOF
36060 /* end confdefs.h. */
36061 #include <$ac_header>
36063 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36064 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36066 grep -v '^ *+' conftest.er1 >conftest.err
36068 cat conftest.err >&5
36069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36070 (exit $ac_status); } >/dev/null; then
36071 if test -s conftest.err; then
36072 ac_cpp_err=$ac_c_preproc_warn_flag
36073 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36080 if test -z "$ac_cpp_err"; then
36081 ac_header_preproc=yes
36083 echo "$as_me: failed program was:" >&5
36084 sed 's/^/| /' conftest.$ac_ext >&5
36086 ac_header_preproc=no
36088 rm -f conftest.err conftest.$ac_ext
36089 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36090 echo "${ECHO_T}$ac_header_preproc" >&6
36092 # So? What about this header?
36093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36095 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36096 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36098 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36099 ac_header_preproc=yes
36102 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36103 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36104 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36105 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36106 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36107 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36108 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36109 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36111 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36112 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36113 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36116 ## ------------------------------------------ ##
36117 ## Report this to the AC_PACKAGE_NAME lists. ##
36118 ## ------------------------------------------ ##
36121 sed "s/^/$as_me: WARNING: /" >&2
36124 echo "$as_me:$LINENO: checking for $ac_header" >&5
36125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36126 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36127 echo $ECHO_N "(cached) $ECHO_C" >&6
36129 eval "$as_ac_Header=\$ac_header_preproc"
36131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36132 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36135 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36136 cat >>confdefs.h <<_ACEOF
36137 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36144 if test $ac_cv_header_lwp_lwp_h = yes ; then
36145 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
36146 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
36147 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
36148 echo $ECHO_N "(cached) $ECHO_C" >&6
36150 ac_check_lib_save_LIBS=$LIBS
36152 cat >conftest.$ac_ext <<_ACEOF
36155 cat confdefs.h >>conftest.$ac_ext
36156 cat >>conftest.$ac_ext <<_ACEOF
36157 /* end confdefs.h. */
36159 /* Override any gcc2 internal prototype to avoid an error. */
36163 /* We use char because int might match the return type of a gcc2
36164 builtin and then its argument prototype would still apply. */
36165 char lwp_create ();
36174 rm -f conftest.$ac_objext conftest$ac_exeext
36175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36176 (eval $ac_link) 2>conftest.er1
36178 grep -v '^ *+' conftest.er1 >conftest.err
36180 cat conftest.err >&5
36181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36182 (exit $ac_status); } &&
36183 { ac_try='test -z "$ac_c_werror_flag"
36184 || test ! -s conftest.err'
36185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36186 (eval $ac_try) 2>&5
36188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36189 (exit $ac_status); }; } &&
36190 { ac_try='test -s conftest$ac_exeext'
36191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36192 (eval $ac_try) 2>&5
36194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36195 (exit $ac_status); }; }; then
36196 ac_cv_lib_lwp_lwp_create=yes
36198 echo "$as_me: failed program was:" >&5
36199 sed 's/^/| /' conftest.$ac_ext >&5
36201 ac_cv_lib_lwp_lwp_create=no
36203 rm -f conftest.err conftest.$ac_objext \
36204 conftest$ac_exeext conftest.$ac_ext
36205 LIBS=$ac_check_lib_save_LIBS
36207 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
36208 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
36209 if test $ac_cv_lib_lwp_lwp_create = yes; then
36216 if test $have_lwp = yes ; then
36218 cat >>confdefs.h <<\_ACEOF
36222 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
36223 ol_link_threads=lwp
36225 if test $ol_with_yielding_select = auto ; then
36226 ol_with_yielding_select=no
36232 if test $ol_with_yielding_select = yes ; then
36234 cat >>confdefs.h <<\_ACEOF
36235 #define HAVE_YIELDING_SELECT 1
36240 if test $ol_with_threads = manual ; then
36241 ol_link_threads=yes
36243 { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
36244 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
36248 for ac_header in pthread.h sched.h
36250 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36252 echo "$as_me:$LINENO: checking for $ac_header" >&5
36253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36254 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36255 echo $ECHO_N "(cached) $ECHO_C" >&6
36257 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36258 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36260 # Is the header compilable?
36261 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36262 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36263 cat >conftest.$ac_ext <<_ACEOF
36266 cat confdefs.h >>conftest.$ac_ext
36267 cat >>conftest.$ac_ext <<_ACEOF
36268 /* end confdefs.h. */
36269 $ac_includes_default
36270 #include <$ac_header>
36272 rm -f conftest.$ac_objext
36273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36274 (eval $ac_compile) 2>conftest.er1
36276 grep -v '^ *+' conftest.er1 >conftest.err
36278 cat conftest.err >&5
36279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36280 (exit $ac_status); } &&
36281 { ac_try='test -z "$ac_c_werror_flag"
36282 || test ! -s conftest.err'
36283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36284 (eval $ac_try) 2>&5
36286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36287 (exit $ac_status); }; } &&
36288 { ac_try='test -s conftest.$ac_objext'
36289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36290 (eval $ac_try) 2>&5
36292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36293 (exit $ac_status); }; }; then
36294 ac_header_compiler=yes
36296 echo "$as_me: failed program was:" >&5
36297 sed 's/^/| /' conftest.$ac_ext >&5
36299 ac_header_compiler=no
36301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36302 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36303 echo "${ECHO_T}$ac_header_compiler" >&6
36305 # Is the header present?
36306 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36307 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36308 cat >conftest.$ac_ext <<_ACEOF
36311 cat confdefs.h >>conftest.$ac_ext
36312 cat >>conftest.$ac_ext <<_ACEOF
36313 /* end confdefs.h. */
36314 #include <$ac_header>
36316 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36317 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36319 grep -v '^ *+' conftest.er1 >conftest.err
36321 cat conftest.err >&5
36322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36323 (exit $ac_status); } >/dev/null; then
36324 if test -s conftest.err; then
36325 ac_cpp_err=$ac_c_preproc_warn_flag
36326 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36333 if test -z "$ac_cpp_err"; then
36334 ac_header_preproc=yes
36336 echo "$as_me: failed program was:" >&5
36337 sed 's/^/| /' conftest.$ac_ext >&5
36339 ac_header_preproc=no
36341 rm -f conftest.err conftest.$ac_ext
36342 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36343 echo "${ECHO_T}$ac_header_preproc" >&6
36345 # So? What about this header?
36346 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36348 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36349 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36351 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36352 ac_header_preproc=yes
36355 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36356 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36357 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36358 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36359 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36360 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36361 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36362 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36364 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36365 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36366 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36369 ## ------------------------------------------ ##
36370 ## Report this to the AC_PACKAGE_NAME lists. ##
36371 ## ------------------------------------------ ##
36374 sed "s/^/$as_me: WARNING: /" >&2
36377 echo "$as_me:$LINENO: checking for $ac_header" >&5
36378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36379 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36380 echo $ECHO_N "(cached) $ECHO_C" >&6
36382 eval "$as_ac_Header=\$ac_header_preproc"
36384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36385 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36388 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36389 cat >>confdefs.h <<_ACEOF
36390 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36399 for ac_func in sched_yield pthread_yield
36401 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36402 echo "$as_me:$LINENO: checking for $ac_func" >&5
36403 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36404 if eval "test \"\${$as_ac_var+set}\" = set"; then
36405 echo $ECHO_N "(cached) $ECHO_C" >&6
36407 cat >conftest.$ac_ext <<_ACEOF
36410 cat confdefs.h >>conftest.$ac_ext
36411 cat >>conftest.$ac_ext <<_ACEOF
36412 /* end confdefs.h. */
36413 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36414 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36415 #define $ac_func innocuous_$ac_func
36417 /* System header to define __stub macros and hopefully few prototypes,
36418 which can conflict with char $ac_func (); below.
36419 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36420 <limits.h> exists even on freestanding compilers. */
36423 # include <limits.h>
36425 # include <assert.h>
36430 /* Override any gcc2 internal prototype to avoid an error. */
36435 /* We use char because int might match the return type of a gcc2
36436 builtin and then its argument prototype would still apply. */
36438 /* The GNU C library defines this for functions which it implements
36439 to always fail with ENOSYS. Some functions are actually named
36440 something starting with __ and the normal name is an alias. */
36441 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36444 char (*f) () = $ac_func;
36453 return f != $ac_func;
36458 rm -f conftest.$ac_objext conftest$ac_exeext
36459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36460 (eval $ac_link) 2>conftest.er1
36462 grep -v '^ *+' conftest.er1 >conftest.err
36464 cat conftest.err >&5
36465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36466 (exit $ac_status); } &&
36467 { ac_try='test -z "$ac_c_werror_flag"
36468 || test ! -s conftest.err'
36469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36470 (eval $ac_try) 2>&5
36472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36473 (exit $ac_status); }; } &&
36474 { ac_try='test -s conftest$ac_exeext'
36475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36476 (eval $ac_try) 2>&5
36478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36479 (exit $ac_status); }; }; then
36480 eval "$as_ac_var=yes"
36482 echo "$as_me: failed program was:" >&5
36483 sed 's/^/| /' conftest.$ac_ext >&5
36485 eval "$as_ac_var=no"
36487 rm -f conftest.err conftest.$ac_objext \
36488 conftest$ac_exeext conftest.$ac_ext
36490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36491 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36492 if test `eval echo '${'$as_ac_var'}'` = yes; then
36493 cat >>confdefs.h <<_ACEOF
36494 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36501 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
36502 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
36503 if test "${ol_cv_header_linux_threads+set}" = set; then
36504 echo $ECHO_N "(cached) $ECHO_C" >&6
36506 cat >conftest.$ac_ext <<_ACEOF
36509 cat confdefs.h >>conftest.$ac_ext
36510 cat >>conftest.$ac_ext <<_ACEOF
36511 /* end confdefs.h. */
36512 #include <pthread.h>
36514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36515 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
36516 ol_cv_header_linux_threads=yes
36518 ol_cv_header_linux_threads=no
36524 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
36525 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
36526 if test $ol_cv_header_linux_threads = yes; then
36528 cat >>confdefs.h <<\_ACEOF
36529 #define HAVE_LINUX_THREADS 1
36536 for ac_header in mach/cthreads.h
36538 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36540 echo "$as_me:$LINENO: checking for $ac_header" >&5
36541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36542 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36543 echo $ECHO_N "(cached) $ECHO_C" >&6
36545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36546 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36548 # Is the header compilable?
36549 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36550 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36551 cat >conftest.$ac_ext <<_ACEOF
36554 cat confdefs.h >>conftest.$ac_ext
36555 cat >>conftest.$ac_ext <<_ACEOF
36556 /* end confdefs.h. */
36557 $ac_includes_default
36558 #include <$ac_header>
36560 rm -f conftest.$ac_objext
36561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36562 (eval $ac_compile) 2>conftest.er1
36564 grep -v '^ *+' conftest.er1 >conftest.err
36566 cat conftest.err >&5
36567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36568 (exit $ac_status); } &&
36569 { ac_try='test -z "$ac_c_werror_flag"
36570 || test ! -s conftest.err'
36571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36572 (eval $ac_try) 2>&5
36574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36575 (exit $ac_status); }; } &&
36576 { ac_try='test -s conftest.$ac_objext'
36577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36578 (eval $ac_try) 2>&5
36580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36581 (exit $ac_status); }; }; then
36582 ac_header_compiler=yes
36584 echo "$as_me: failed program was:" >&5
36585 sed 's/^/| /' conftest.$ac_ext >&5
36587 ac_header_compiler=no
36589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36590 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36591 echo "${ECHO_T}$ac_header_compiler" >&6
36593 # Is the header present?
36594 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36595 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36596 cat >conftest.$ac_ext <<_ACEOF
36599 cat confdefs.h >>conftest.$ac_ext
36600 cat >>conftest.$ac_ext <<_ACEOF
36601 /* end confdefs.h. */
36602 #include <$ac_header>
36604 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36605 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36607 grep -v '^ *+' conftest.er1 >conftest.err
36609 cat conftest.err >&5
36610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36611 (exit $ac_status); } >/dev/null; then
36612 if test -s conftest.err; then
36613 ac_cpp_err=$ac_c_preproc_warn_flag
36614 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36621 if test -z "$ac_cpp_err"; then
36622 ac_header_preproc=yes
36624 echo "$as_me: failed program was:" >&5
36625 sed 's/^/| /' conftest.$ac_ext >&5
36627 ac_header_preproc=no
36629 rm -f conftest.err conftest.$ac_ext
36630 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36631 echo "${ECHO_T}$ac_header_preproc" >&6
36633 # So? What about this header?
36634 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36636 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36637 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36638 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36639 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36640 ac_header_preproc=yes
36643 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36644 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36645 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36646 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36647 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36648 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36649 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36650 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36651 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36652 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36653 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36654 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36657 ## ------------------------------------------ ##
36658 ## Report this to the AC_PACKAGE_NAME lists. ##
36659 ## ------------------------------------------ ##
36662 sed "s/^/$as_me: WARNING: /" >&2
36665 echo "$as_me:$LINENO: checking for $ac_header" >&5
36666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36667 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36668 echo $ECHO_N "(cached) $ECHO_C" >&6
36670 eval "$as_ac_Header=\$ac_header_preproc"
36672 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36673 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36676 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36677 cat >>confdefs.h <<_ACEOF
36678 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36686 for ac_header in lwp/lwp.h
36688 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36690 echo "$as_me:$LINENO: checking for $ac_header" >&5
36691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36692 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36693 echo $ECHO_N "(cached) $ECHO_C" >&6
36695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36696 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36698 # Is the header compilable?
36699 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36700 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36701 cat >conftest.$ac_ext <<_ACEOF
36704 cat confdefs.h >>conftest.$ac_ext
36705 cat >>conftest.$ac_ext <<_ACEOF
36706 /* end confdefs.h. */
36707 $ac_includes_default
36708 #include <$ac_header>
36710 rm -f conftest.$ac_objext
36711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36712 (eval $ac_compile) 2>conftest.er1
36714 grep -v '^ *+' conftest.er1 >conftest.err
36716 cat conftest.err >&5
36717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36718 (exit $ac_status); } &&
36719 { ac_try='test -z "$ac_c_werror_flag"
36720 || test ! -s conftest.err'
36721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36722 (eval $ac_try) 2>&5
36724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36725 (exit $ac_status); }; } &&
36726 { ac_try='test -s conftest.$ac_objext'
36727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36728 (eval $ac_try) 2>&5
36730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36731 (exit $ac_status); }; }; then
36732 ac_header_compiler=yes
36734 echo "$as_me: failed program was:" >&5
36735 sed 's/^/| /' conftest.$ac_ext >&5
36737 ac_header_compiler=no
36739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36740 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36741 echo "${ECHO_T}$ac_header_compiler" >&6
36743 # Is the header present?
36744 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36745 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36746 cat >conftest.$ac_ext <<_ACEOF
36749 cat confdefs.h >>conftest.$ac_ext
36750 cat >>conftest.$ac_ext <<_ACEOF
36751 /* end confdefs.h. */
36752 #include <$ac_header>
36754 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36755 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36757 grep -v '^ *+' conftest.er1 >conftest.err
36759 cat conftest.err >&5
36760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36761 (exit $ac_status); } >/dev/null; then
36762 if test -s conftest.err; then
36763 ac_cpp_err=$ac_c_preproc_warn_flag
36764 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36771 if test -z "$ac_cpp_err"; then
36772 ac_header_preproc=yes
36774 echo "$as_me: failed program was:" >&5
36775 sed 's/^/| /' conftest.$ac_ext >&5
36777 ac_header_preproc=no
36779 rm -f conftest.err conftest.$ac_ext
36780 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36781 echo "${ECHO_T}$ac_header_preproc" >&6
36783 # So? What about this header?
36784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36786 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36787 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36788 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36789 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36790 ac_header_preproc=yes
36793 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36794 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36795 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36796 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36797 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36798 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36799 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36800 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36802 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36803 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36804 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36807 ## ------------------------------------------ ##
36808 ## Report this to the AC_PACKAGE_NAME lists. ##
36809 ## ------------------------------------------ ##
36812 sed "s/^/$as_me: WARNING: /" >&2
36815 echo "$as_me:$LINENO: checking for $ac_header" >&5
36816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36818 echo $ECHO_N "(cached) $ECHO_C" >&6
36820 eval "$as_ac_Header=\$ac_header_preproc"
36822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36823 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36826 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36827 cat >>confdefs.h <<_ACEOF
36828 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36837 for ac_header in thread.h synch.h
36839 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36841 echo "$as_me:$LINENO: checking for $ac_header" >&5
36842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36843 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36844 echo $ECHO_N "(cached) $ECHO_C" >&6
36846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36847 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36849 # Is the header compilable?
36850 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36851 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36852 cat >conftest.$ac_ext <<_ACEOF
36855 cat confdefs.h >>conftest.$ac_ext
36856 cat >>conftest.$ac_ext <<_ACEOF
36857 /* end confdefs.h. */
36858 $ac_includes_default
36859 #include <$ac_header>
36861 rm -f conftest.$ac_objext
36862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36863 (eval $ac_compile) 2>conftest.er1
36865 grep -v '^ *+' conftest.er1 >conftest.err
36867 cat conftest.err >&5
36868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36869 (exit $ac_status); } &&
36870 { ac_try='test -z "$ac_c_werror_flag"
36871 || test ! -s conftest.err'
36872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36873 (eval $ac_try) 2>&5
36875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36876 (exit $ac_status); }; } &&
36877 { ac_try='test -s conftest.$ac_objext'
36878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36879 (eval $ac_try) 2>&5
36881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36882 (exit $ac_status); }; }; then
36883 ac_header_compiler=yes
36885 echo "$as_me: failed program was:" >&5
36886 sed 's/^/| /' conftest.$ac_ext >&5
36888 ac_header_compiler=no
36890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36891 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36892 echo "${ECHO_T}$ac_header_compiler" >&6
36894 # Is the header present?
36895 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36896 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36897 cat >conftest.$ac_ext <<_ACEOF
36900 cat confdefs.h >>conftest.$ac_ext
36901 cat >>conftest.$ac_ext <<_ACEOF
36902 /* end confdefs.h. */
36903 #include <$ac_header>
36905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36906 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36908 grep -v '^ *+' conftest.er1 >conftest.err
36910 cat conftest.err >&5
36911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36912 (exit $ac_status); } >/dev/null; then
36913 if test -s conftest.err; then
36914 ac_cpp_err=$ac_c_preproc_warn_flag
36915 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36922 if test -z "$ac_cpp_err"; then
36923 ac_header_preproc=yes
36925 echo "$as_me: failed program was:" >&5
36926 sed 's/^/| /' conftest.$ac_ext >&5
36928 ac_header_preproc=no
36930 rm -f conftest.err conftest.$ac_ext
36931 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36932 echo "${ECHO_T}$ac_header_preproc" >&6
36934 # So? What about this header?
36935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36937 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36938 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36940 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36941 ac_header_preproc=yes
36944 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36945 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36946 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36947 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36948 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36949 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36950 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36951 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36953 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36954 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36955 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36958 ## ------------------------------------------ ##
36959 ## Report this to the AC_PACKAGE_NAME lists. ##
36960 ## ------------------------------------------ ##
36963 sed "s/^/$as_me: WARNING: /" >&2
36966 echo "$as_me:$LINENO: checking for $ac_header" >&5
36967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36969 echo $ECHO_N "(cached) $ECHO_C" >&6
36971 eval "$as_ac_Header=\$ac_header_preproc"
36973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36974 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36977 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36978 cat >>confdefs.h <<_ACEOF
36979 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36988 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
36989 cat >>confdefs.h <<\_ACEOF
36990 #define REENTRANT 1
36993 cat >>confdefs.h <<\_ACEOF
36994 #define _REENTRANT 1
36997 cat >>confdefs.h <<\_ACEOF
36998 #define THREAD_SAFE 1
37001 cat >>confdefs.h <<\_ACEOF
37002 #define _THREAD_SAFE 1
37005 cat >>confdefs.h <<\_ACEOF
37006 #define THREADSAFE 1
37009 cat >>confdefs.h <<\_ACEOF
37010 #define _THREADSAFE 1
37013 cat >>confdefs.h <<\_ACEOF
37014 #define _SGI_MP_SOURCE 1
37018 echo "$as_me:$LINENO: checking for thread specific errno" >&5
37019 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
37020 if test "${ol_cv_errno_thread_specific+set}" = set; then
37021 echo $ECHO_N "(cached) $ECHO_C" >&6
37024 cat >conftest.$ac_ext <<_ACEOF
37027 cat confdefs.h >>conftest.$ac_ext
37028 cat >>conftest.$ac_ext <<_ACEOF
37029 /* end confdefs.h. */
37039 rm -f conftest.$ac_objext conftest$ac_exeext
37040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37041 (eval $ac_link) 2>conftest.er1
37043 grep -v '^ *+' conftest.er1 >conftest.err
37045 cat conftest.err >&5
37046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37047 (exit $ac_status); } &&
37048 { ac_try='test -z "$ac_c_werror_flag"
37049 || test ! -s conftest.err'
37050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37051 (eval $ac_try) 2>&5
37053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37054 (exit $ac_status); }; } &&
37055 { ac_try='test -s conftest$ac_exeext'
37056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37057 (eval $ac_try) 2>&5
37059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37060 (exit $ac_status); }; }; then
37061 ol_cv_errno_thread_specific=yes
37063 echo "$as_me: failed program was:" >&5
37064 sed 's/^/| /' conftest.$ac_ext >&5
37066 ol_cv_errno_thread_specific=no
37068 rm -f conftest.err conftest.$ac_objext \
37069 conftest$ac_exeext conftest.$ac_ext
37072 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
37073 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
37075 echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
37076 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
37077 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
37078 echo $ECHO_N "(cached) $ECHO_C" >&6
37081 cat >conftest.$ac_ext <<_ACEOF
37084 cat confdefs.h >>conftest.$ac_ext
37085 cat >>conftest.$ac_ext <<_ACEOF
37086 /* end confdefs.h. */
37096 rm -f conftest.$ac_objext conftest$ac_exeext
37097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37098 (eval $ac_link) 2>conftest.er1
37100 grep -v '^ *+' conftest.er1 >conftest.err
37102 cat conftest.err >&5
37103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37104 (exit $ac_status); } &&
37105 { ac_try='test -z "$ac_c_werror_flag"
37106 || test ! -s conftest.err'
37107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37108 (eval $ac_try) 2>&5
37110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37111 (exit $ac_status); }; } &&
37112 { ac_try='test -s conftest$ac_exeext'
37113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37114 (eval $ac_try) 2>&5
37116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37117 (exit $ac_status); }; }; then
37118 ol_cv_h_errno_thread_specific=yes
37120 echo "$as_me: failed program was:" >&5
37121 sed 's/^/| /' conftest.$ac_ext >&5
37123 ol_cv_h_errno_thread_specific=no
37125 rm -f conftest.err conftest.$ac_objext \
37126 conftest$ac_exeext conftest.$ac_ext
37129 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
37130 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
37132 if test $ol_cv_errno_thread_specific != yes \
37133 -o $ol_cv_h_errno_thread_specific != yes ; then
37134 LIBS="$LTHREAD_LIBS $LIBS"
37140 if test $ol_link_threads = no ; then
37141 if test $ol_with_threads = yes ; then
37142 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
37143 echo "$as_me: error: no suitable thread support" >&2;}
37144 { (exit 1); exit 1; }; }
37147 if test $ol_with_threads = auto ; then
37148 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
37149 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
37154 cat >>confdefs.h <<\_ACEOF
37155 #define NO_THREADS 1
37161 if test $ol_link_threads != no ; then
37162 cat >>confdefs.h <<\_ACEOF
37163 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
37173 gethostbyname_r gethostbyaddr_r \
37176 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37177 echo "$as_me:$LINENO: checking for $ac_func" >&5
37178 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37179 if eval "test \"\${$as_ac_var+set}\" = set"; then
37180 echo $ECHO_N "(cached) $ECHO_C" >&6
37182 cat >conftest.$ac_ext <<_ACEOF
37185 cat confdefs.h >>conftest.$ac_ext
37186 cat >>conftest.$ac_ext <<_ACEOF
37187 /* end confdefs.h. */
37188 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37190 #define $ac_func innocuous_$ac_func
37192 /* System header to define __stub macros and hopefully few prototypes,
37193 which can conflict with char $ac_func (); below.
37194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37195 <limits.h> exists even on freestanding compilers. */
37198 # include <limits.h>
37200 # include <assert.h>
37205 /* Override any gcc2 internal prototype to avoid an error. */
37210 /* We use char because int might match the return type of a gcc2
37211 builtin and then its argument prototype would still apply. */
37213 /* The GNU C library defines this for functions which it implements
37214 to always fail with ENOSYS. Some functions are actually named
37215 something starting with __ and the normal name is an alias. */
37216 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37219 char (*f) () = $ac_func;
37228 return f != $ac_func;
37233 rm -f conftest.$ac_objext conftest$ac_exeext
37234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37235 (eval $ac_link) 2>conftest.er1
37237 grep -v '^ *+' conftest.er1 >conftest.err
37239 cat conftest.err >&5
37240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37241 (exit $ac_status); } &&
37242 { ac_try='test -z "$ac_c_werror_flag"
37243 || test ! -s conftest.err'
37244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37245 (eval $ac_try) 2>&5
37247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37248 (exit $ac_status); }; } &&
37249 { ac_try='test -s conftest$ac_exeext'
37250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37251 (eval $ac_try) 2>&5
37253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37254 (exit $ac_status); }; }; then
37255 eval "$as_ac_var=yes"
37257 echo "$as_me: failed program was:" >&5
37258 sed 's/^/| /' conftest.$ac_ext >&5
37260 eval "$as_ac_var=no"
37262 rm -f conftest.err conftest.$ac_objext \
37263 conftest$ac_exeext conftest.$ac_ext
37265 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37266 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37267 if test `eval echo '${'$as_ac_var'}'` = yes; then
37268 cat >>confdefs.h <<_ACEOF
37269 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37276 if test "$ac_cv_func_ctime_r" = no ; then
37277 ol_cv_func_ctime_r_nargs=0
37279 echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
37280 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
37281 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
37282 echo $ECHO_N "(cached) $ECHO_C" >&6
37284 cat >conftest.$ac_ext <<_ACEOF
37287 cat confdefs.h >>conftest.$ac_ext
37288 cat >>conftest.$ac_ext <<_ACEOF
37289 /* end confdefs.h. */
37294 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
37299 rm -f conftest.$ac_objext
37300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37301 (eval $ac_compile) 2>conftest.er1
37303 grep -v '^ *+' conftest.er1 >conftest.err
37305 cat conftest.err >&5
37306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37307 (exit $ac_status); } &&
37308 { ac_try='test -z "$ac_c_werror_flag"
37309 || test ! -s conftest.err'
37310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37311 (eval $ac_try) 2>&5
37313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37314 (exit $ac_status); }; } &&
37315 { ac_try='test -s conftest.$ac_objext'
37316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37317 (eval $ac_try) 2>&5
37319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37320 (exit $ac_status); }; }; then
37321 ol_cv_func_ctime_r_nargs3=yes
37323 echo "$as_me: failed program was:" >&5
37324 sed 's/^/| /' conftest.$ac_ext >&5
37326 ol_cv_func_ctime_r_nargs3=no
37328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37330 cat >conftest.$ac_ext <<_ACEOF
37333 cat confdefs.h >>conftest.$ac_ext
37334 cat >>conftest.$ac_ext <<_ACEOF
37335 /* end confdefs.h. */
37340 time_t ti; char *buffer; ctime_r(&ti,buffer);
37345 rm -f conftest.$ac_objext
37346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37347 (eval $ac_compile) 2>conftest.er1
37349 grep -v '^ *+' conftest.er1 >conftest.err
37351 cat conftest.err >&5
37352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37353 (exit $ac_status); } &&
37354 { ac_try='test -z "$ac_c_werror_flag"
37355 || test ! -s conftest.err'
37356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37357 (eval $ac_try) 2>&5
37359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37360 (exit $ac_status); }; } &&
37361 { ac_try='test -s conftest.$ac_objext'
37362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37363 (eval $ac_try) 2>&5
37365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37366 (exit $ac_status); }; }; then
37367 ol_cv_func_ctime_r_nargs2=yes
37369 echo "$as_me: failed program was:" >&5
37370 sed 's/^/| /' conftest.$ac_ext >&5
37372 ol_cv_func_ctime_r_nargs2=no
37374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37376 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
37377 $ol_cv_func_ctime_r_nargs2 = no ; then
37379 ol_cv_func_ctime_r_nargs=3
37381 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
37382 $ol_cv_func_ctime_r_nargs2 = yes ; then
37384 ol_cv_func_ctime_r_nargs=2
37387 ol_cv_func_ctime_r_nargs=0
37391 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
37392 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
37394 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
37396 cat >>confdefs.h <<_ACEOF
37397 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
37404 if test "$ac_cv_func_gethostbyname_r" = yes ; then
37405 echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
37406 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
37407 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
37408 echo $ECHO_N "(cached) $ECHO_C" >&6
37410 cat >conftest.$ac_ext <<_ACEOF
37413 cat confdefs.h >>conftest.$ac_ext
37414 cat >>conftest.$ac_ext <<_ACEOF
37415 /* end confdefs.h. */
37416 #include <sys/types.h>
37417 #include <sys/socket.h>
37418 #include <netinet/in.h>
37420 #define BUFSIZE (sizeof(struct hostent)+10)
37424 struct hostent hent; char buffer[BUFSIZE];
37425 int bufsize=BUFSIZE;int h_errno;
37426 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
37427 buffer, bufsize, &h_errno);
37432 rm -f conftest.$ac_objext
37433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37434 (eval $ac_compile) 2>conftest.er1
37436 grep -v '^ *+' conftest.er1 >conftest.err
37438 cat conftest.err >&5
37439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37440 (exit $ac_status); } &&
37441 { ac_try='test -z "$ac_c_werror_flag"
37442 || test ! -s conftest.err'
37443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37444 (eval $ac_try) 2>&5
37446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37447 (exit $ac_status); }; } &&
37448 { ac_try='test -s conftest.$ac_objext'
37449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37450 (eval $ac_try) 2>&5
37452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37453 (exit $ac_status); }; }; then
37454 ol_cv_func_gethostbyname_r_nargs5=yes
37456 echo "$as_me: failed program was:" >&5
37457 sed 's/^/| /' conftest.$ac_ext >&5
37459 ol_cv_func_gethostbyname_r_nargs5=no
37461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37463 cat >conftest.$ac_ext <<_ACEOF
37466 cat confdefs.h >>conftest.$ac_ext
37467 cat >>conftest.$ac_ext <<_ACEOF
37468 /* end confdefs.h. */
37469 #include <sys/types.h>
37470 #include <sys/socket.h>
37471 #include <netinet/in.h>
37473 #define BUFSIZE (sizeof(struct hostent)+10)
37477 struct hostent hent;struct hostent *rhent;
37478 char buffer[BUFSIZE];
37479 int bufsize=BUFSIZE;int h_errno;
37480 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
37486 rm -f conftest.$ac_objext
37487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37488 (eval $ac_compile) 2>conftest.er1
37490 grep -v '^ *+' conftest.er1 >conftest.err
37492 cat conftest.err >&5
37493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37494 (exit $ac_status); } &&
37495 { ac_try='test -z "$ac_c_werror_flag"
37496 || test ! -s conftest.err'
37497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37498 (eval $ac_try) 2>&5
37500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37501 (exit $ac_status); }; } &&
37502 { ac_try='test -s conftest.$ac_objext'
37503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37504 (eval $ac_try) 2>&5
37506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37507 (exit $ac_status); }; }; then
37508 ol_cv_func_gethostbyname_r_nargs6=yes
37510 echo "$as_me: failed program was:" >&5
37511 sed 's/^/| /' conftest.$ac_ext >&5
37513 ol_cv_func_gethostbyname_r_nargs6=no
37515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37517 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
37518 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
37520 ol_cv_func_gethostbyname_r_nargs=5
37522 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
37523 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
37525 ol_cv_func_gethostbyname_r_nargs=6
37528 ol_cv_func_gethostbyname_r_nargs=0
37532 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
37533 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
37534 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
37536 cat >>confdefs.h <<_ACEOF
37537 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
37543 ol_cv_func_gethostbyname_r_nargs=0
37546 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
37547 echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
37548 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
37549 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
37550 echo $ECHO_N "(cached) $ECHO_C" >&6
37552 cat >conftest.$ac_ext <<_ACEOF
37555 cat confdefs.h >>conftest.$ac_ext
37556 cat >>conftest.$ac_ext <<_ACEOF
37557 /* end confdefs.h. */
37558 #include <sys/types.h>
37559 #include <sys/socket.h>
37560 #include <netinet/in.h>
37562 #define BUFSIZE (sizeof(struct hostent)+10)
37566 struct hostent hent; char buffer[BUFSIZE];
37567 struct in_addr add;
37568 size_t alen=sizeof(struct in_addr);
37569 int bufsize=BUFSIZE;int h_errno;
37570 (void)gethostbyaddr_r( (void *)&(add.s_addr),
37571 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
37576 rm -f conftest.$ac_objext
37577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37578 (eval $ac_compile) 2>conftest.er1
37580 grep -v '^ *+' conftest.er1 >conftest.err
37582 cat conftest.err >&5
37583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37584 (exit $ac_status); } &&
37585 { ac_try='test -z "$ac_c_werror_flag"
37586 || test ! -s conftest.err'
37587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37588 (eval $ac_try) 2>&5
37590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37591 (exit $ac_status); }; } &&
37592 { ac_try='test -s conftest.$ac_objext'
37593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37594 (eval $ac_try) 2>&5
37596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37597 (exit $ac_status); }; }; then
37598 ol_cv_func_gethostbyaddr_r_nargs7=yes
37600 echo "$as_me: failed program was:" >&5
37601 sed 's/^/| /' conftest.$ac_ext >&5
37603 ol_cv_func_gethostbyaddr_r_nargs7=no
37605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37607 cat >conftest.$ac_ext <<_ACEOF
37610 cat confdefs.h >>conftest.$ac_ext
37611 cat >>conftest.$ac_ext <<_ACEOF
37612 /* end confdefs.h. */
37613 #include <sys/types.h>
37614 #include <sys/socket.h>
37615 #include <netinet/in.h>
37617 #define BUFSIZE (sizeof(struct hostent)+10)
37621 struct hostent hent;
37622 struct hostent *rhent; char buffer[BUFSIZE];
37623 struct in_addr add;
37624 size_t alen=sizeof(struct in_addr);
37625 int bufsize=BUFSIZE;int h_errno;
37626 (void)gethostbyaddr_r( (void *)&(add.s_addr),
37627 alen, AF_INET, &hent, buffer, bufsize,
37633 rm -f conftest.$ac_objext
37634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37635 (eval $ac_compile) 2>conftest.er1
37637 grep -v '^ *+' conftest.er1 >conftest.err
37639 cat conftest.err >&5
37640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37641 (exit $ac_status); } &&
37642 { ac_try='test -z "$ac_c_werror_flag"
37643 || test ! -s conftest.err'
37644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37645 (eval $ac_try) 2>&5
37647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37648 (exit $ac_status); }; } &&
37649 { ac_try='test -s conftest.$ac_objext'
37650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37651 (eval $ac_try) 2>&5
37653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37654 (exit $ac_status); }; }; then
37655 ol_cv_func_gethostbyaddr_r_nargs8=yes
37657 echo "$as_me: failed program was:" >&5
37658 sed 's/^/| /' conftest.$ac_ext >&5
37660 ol_cv_func_gethostbyaddr_r_nargs8=no
37662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37664 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
37665 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
37667 ol_cv_func_gethostbyaddr_r_nargs=7
37669 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
37670 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
37672 ol_cv_func_gethostbyaddr_r_nargs=8
37675 ol_cv_func_gethostbyaddr_r_nargs=0
37679 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
37680 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
37681 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
37683 cat >>confdefs.h <<_ACEOF
37684 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
37690 ol_cv_func_gethostbyaddr_r_nargs=0
37695 if test $ol_with_ldbm_api = auto \
37696 -o $ol_with_ldbm_api = berkeley \
37697 -o $ol_with_ldbm_api = bcompat ; then
37699 if test $ol_with_ldbm_api = bcompat; then \
37702 for ac_header in db_185.h db.h
37704 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37705 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37706 echo "$as_me:$LINENO: checking for $ac_header" >&5
37707 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37708 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37709 echo $ECHO_N "(cached) $ECHO_C" >&6
37711 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37712 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37714 # Is the header compilable?
37715 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37716 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37717 cat >conftest.$ac_ext <<_ACEOF
37720 cat confdefs.h >>conftest.$ac_ext
37721 cat >>conftest.$ac_ext <<_ACEOF
37722 /* end confdefs.h. */
37723 $ac_includes_default
37724 #include <$ac_header>
37726 rm -f conftest.$ac_objext
37727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37728 (eval $ac_compile) 2>conftest.er1
37730 grep -v '^ *+' conftest.er1 >conftest.err
37732 cat conftest.err >&5
37733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37734 (exit $ac_status); } &&
37735 { ac_try='test -z "$ac_c_werror_flag"
37736 || test ! -s conftest.err'
37737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37738 (eval $ac_try) 2>&5
37740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37741 (exit $ac_status); }; } &&
37742 { ac_try='test -s conftest.$ac_objext'
37743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37744 (eval $ac_try) 2>&5
37746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37747 (exit $ac_status); }; }; then
37748 ac_header_compiler=yes
37750 echo "$as_me: failed program was:" >&5
37751 sed 's/^/| /' conftest.$ac_ext >&5
37753 ac_header_compiler=no
37755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37756 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37757 echo "${ECHO_T}$ac_header_compiler" >&6
37759 # Is the header present?
37760 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37761 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37762 cat >conftest.$ac_ext <<_ACEOF
37765 cat confdefs.h >>conftest.$ac_ext
37766 cat >>conftest.$ac_ext <<_ACEOF
37767 /* end confdefs.h. */
37768 #include <$ac_header>
37770 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37771 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37773 grep -v '^ *+' conftest.er1 >conftest.err
37775 cat conftest.err >&5
37776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37777 (exit $ac_status); } >/dev/null; then
37778 if test -s conftest.err; then
37779 ac_cpp_err=$ac_c_preproc_warn_flag
37780 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37787 if test -z "$ac_cpp_err"; then
37788 ac_header_preproc=yes
37790 echo "$as_me: failed program was:" >&5
37791 sed 's/^/| /' conftest.$ac_ext >&5
37793 ac_header_preproc=no
37795 rm -f conftest.err conftest.$ac_ext
37796 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37797 echo "${ECHO_T}$ac_header_preproc" >&6
37799 # So? What about this header?
37800 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37802 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37803 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37805 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37806 ac_header_preproc=yes
37809 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37810 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37811 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37812 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37813 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37814 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37815 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37816 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37818 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37819 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37820 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37823 ## ------------------------------------------ ##
37824 ## Report this to the AC_PACKAGE_NAME lists. ##
37825 ## ------------------------------------------ ##
37828 sed "s/^/$as_me: WARNING: /" >&2
37831 echo "$as_me:$LINENO: checking for $ac_header" >&5
37832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37834 echo $ECHO_N "(cached) $ECHO_C" >&6
37836 eval "$as_ac_Header=\$ac_header_preproc"
37838 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37839 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37842 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37843 cat >>confdefs.h <<_ACEOF
37844 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37851 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
37852 echo "$as_me:$LINENO: checking if Berkeley DB header compatibility" >&5
37853 echo $ECHO_N "checking if Berkeley DB header compatibility... $ECHO_C" >&6
37854 if test "${ol_cv_header_db1+set}" = set; then
37855 echo $ECHO_N "(cached) $ECHO_C" >&6
37858 cat >conftest.$ac_ext <<_ACEOF
37861 cat confdefs.h >>conftest.$ac_ext
37862 cat >>conftest.$ac_ext <<_ACEOF
37863 /* end confdefs.h. */
37866 # include <db_185.h>
37871 /* this check could be improved */
37872 #ifndef DB_VERSION_MAJOR
37873 # define DB_VERSION_MAJOR 1
37876 #if DB_VERSION_MAJOR == 1
37881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37882 $EGREP "__db_version_1" >/dev/null 2>&1; then
37883 ol_cv_header_db1=yes
37885 ol_cv_header_db1=no
37890 echo "$as_me:$LINENO: result: $ol_cv_header_db1" >&5
37891 echo "${ECHO_T}$ol_cv_header_db1" >&6
37893 if test $ol_cv_header_db1 = yes ; then
37895 if test $ol_cv_lib_db = no ; then
37896 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
37897 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
37898 if test "${ol_cv_db_none+set}" = set; then
37899 echo $ECHO_N "(cached) $ECHO_C" >&6
37904 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
37906 cat >conftest.$ac_ext <<_ACEOF
37909 cat confdefs.h >>conftest.$ac_ext
37910 cat >>conftest.$ac_ext <<_ACEOF
37911 /* end confdefs.h. */
37913 #ifdef HAVE_DB_185_H
37914 # include <db_185.h>
37919 #ifndef DB_VERSION_MAJOR
37920 # define DB_VERSION_MAJOR 1
37924 #define NULL ((void*)0)
37931 #if DB_VERSION_MAJOR > 1
37934 int major, minor, patch;
37936 version = db_version( &major, &minor, &patch );
37938 if( major != DB_VERSION_MAJOR ||
37939 minor < DB_VERSION_MINOR )
37941 printf("Berkeley DB version mismatch\n"
37942 "\theader: %s\n\tlibrary: %s\n",
37943 DB_VERSION_STRING, version);
37949 #if DB_VERSION_MAJOR > 2
37950 db_env_create( NULL, 0 );
37951 #elif DB_VERSION_MAJOR > 1
37952 db_appexit( NULL );
37954 (void) dbopen( NULL, 0, 0, 0, NULL);
37961 rm -f conftest.$ac_objext conftest$ac_exeext
37962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37963 (eval $ac_link) 2>conftest.er1
37965 grep -v '^ *+' conftest.er1 >conftest.err
37967 cat conftest.err >&5
37968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37969 (exit $ac_status); } &&
37970 { ac_try='test -z "$ac_c_werror_flag"
37971 || test ! -s conftest.err'
37972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37973 (eval $ac_try) 2>&5
37975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37976 (exit $ac_status); }; } &&
37977 { ac_try='test -s conftest$ac_exeext'
37978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37979 (eval $ac_try) 2>&5
37981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37982 (exit $ac_status); }; }; then
37985 echo "$as_me: failed program was:" >&5
37986 sed 's/^/| /' conftest.$ac_ext >&5
37990 rm -f conftest.err conftest.$ac_objext \
37991 conftest$ac_exeext conftest.$ac_ext
37996 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
37997 echo "${ECHO_T}$ol_cv_db_none" >&6
37999 if test $ol_cv_db_none = yes ; then
38004 if test $ol_cv_lib_db = no ; then
38005 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
38006 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
38007 if test "${ol_cv_db_db43+set}" = set; then
38008 echo $ECHO_N "(cached) $ECHO_C" >&6
38013 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38015 cat >conftest.$ac_ext <<_ACEOF
38018 cat confdefs.h >>conftest.$ac_ext
38019 cat >>conftest.$ac_ext <<_ACEOF
38020 /* end confdefs.h. */
38022 #ifdef HAVE_DB_185_H
38023 # include <db_185.h>
38028 #ifndef DB_VERSION_MAJOR
38029 # define DB_VERSION_MAJOR 1
38033 #define NULL ((void*)0)
38040 #if DB_VERSION_MAJOR > 1
38043 int major, minor, patch;
38045 version = db_version( &major, &minor, &patch );
38047 if( major != DB_VERSION_MAJOR ||
38048 minor < DB_VERSION_MINOR )
38050 printf("Berkeley DB version mismatch\n"
38051 "\theader: %s\n\tlibrary: %s\n",
38052 DB_VERSION_STRING, version);
38058 #if DB_VERSION_MAJOR > 2
38059 db_env_create( NULL, 0 );
38060 #elif DB_VERSION_MAJOR > 1
38061 db_appexit( NULL );
38063 (void) dbopen( NULL, 0, 0, 0, NULL);
38070 rm -f conftest.$ac_objext conftest$ac_exeext
38071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38072 (eval $ac_link) 2>conftest.er1
38074 grep -v '^ *+' conftest.er1 >conftest.err
38076 cat conftest.err >&5
38077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38078 (exit $ac_status); } &&
38079 { ac_try='test -z "$ac_c_werror_flag"
38080 || test ! -s conftest.err'
38081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38082 (eval $ac_try) 2>&5
38084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38085 (exit $ac_status); }; } &&
38086 { ac_try='test -s conftest$ac_exeext'
38087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38088 (eval $ac_try) 2>&5
38090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38091 (exit $ac_status); }; }; then
38094 echo "$as_me: failed program was:" >&5
38095 sed 's/^/| /' conftest.$ac_ext >&5
38099 rm -f conftest.err conftest.$ac_objext \
38100 conftest$ac_exeext conftest.$ac_ext
38105 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
38106 echo "${ECHO_T}$ol_cv_db_db43" >&6
38108 if test $ol_cv_db_db43 = yes ; then
38109 ol_cv_lib_db=-ldb43
38113 if test $ol_cv_lib_db = no ; then
38114 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
38115 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
38116 if test "${ol_cv_db_db_43+set}" = set; then
38117 echo $ECHO_N "(cached) $ECHO_C" >&6
38122 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38124 cat >conftest.$ac_ext <<_ACEOF
38127 cat confdefs.h >>conftest.$ac_ext
38128 cat >>conftest.$ac_ext <<_ACEOF
38129 /* end confdefs.h. */
38131 #ifdef HAVE_DB_185_H
38132 # include <db_185.h>
38137 #ifndef DB_VERSION_MAJOR
38138 # define DB_VERSION_MAJOR 1
38142 #define NULL ((void*)0)
38149 #if DB_VERSION_MAJOR > 1
38152 int major, minor, patch;
38154 version = db_version( &major, &minor, &patch );
38156 if( major != DB_VERSION_MAJOR ||
38157 minor < DB_VERSION_MINOR )
38159 printf("Berkeley DB version mismatch\n"
38160 "\theader: %s\n\tlibrary: %s\n",
38161 DB_VERSION_STRING, version);
38167 #if DB_VERSION_MAJOR > 2
38168 db_env_create( NULL, 0 );
38169 #elif DB_VERSION_MAJOR > 1
38170 db_appexit( NULL );
38172 (void) dbopen( NULL, 0, 0, 0, NULL);
38179 rm -f conftest.$ac_objext conftest$ac_exeext
38180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38181 (eval $ac_link) 2>conftest.er1
38183 grep -v '^ *+' conftest.er1 >conftest.err
38185 cat conftest.err >&5
38186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38187 (exit $ac_status); } &&
38188 { ac_try='test -z "$ac_c_werror_flag"
38189 || test ! -s conftest.err'
38190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38191 (eval $ac_try) 2>&5
38193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38194 (exit $ac_status); }; } &&
38195 { ac_try='test -s conftest$ac_exeext'
38196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38197 (eval $ac_try) 2>&5
38199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38200 (exit $ac_status); }; }; then
38203 echo "$as_me: failed program was:" >&5
38204 sed 's/^/| /' conftest.$ac_ext >&5
38208 rm -f conftest.err conftest.$ac_objext \
38209 conftest$ac_exeext conftest.$ac_ext
38214 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
38215 echo "${ECHO_T}$ol_cv_db_db_43" >&6
38217 if test $ol_cv_db_db_43 = yes ; then
38218 ol_cv_lib_db=-ldb-43
38222 if test $ol_cv_lib_db = no ; then
38223 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
38224 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
38225 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
38226 echo $ECHO_N "(cached) $ECHO_C" >&6
38231 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38233 cat >conftest.$ac_ext <<_ACEOF
38236 cat confdefs.h >>conftest.$ac_ext
38237 cat >>conftest.$ac_ext <<_ACEOF
38238 /* end confdefs.h. */
38240 #ifdef HAVE_DB_185_H
38241 # include <db_185.h>
38246 #ifndef DB_VERSION_MAJOR
38247 # define DB_VERSION_MAJOR 1
38251 #define NULL ((void*)0)
38258 #if DB_VERSION_MAJOR > 1
38261 int major, minor, patch;
38263 version = db_version( &major, &minor, &patch );
38265 if( major != DB_VERSION_MAJOR ||
38266 minor < DB_VERSION_MINOR )
38268 printf("Berkeley DB version mismatch\n"
38269 "\theader: %s\n\tlibrary: %s\n",
38270 DB_VERSION_STRING, version);
38276 #if DB_VERSION_MAJOR > 2
38277 db_env_create( NULL, 0 );
38278 #elif DB_VERSION_MAJOR > 1
38279 db_appexit( NULL );
38281 (void) dbopen( NULL, 0, 0, 0, NULL);
38288 rm -f conftest.$ac_objext conftest$ac_exeext
38289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38290 (eval $ac_link) 2>conftest.er1
38292 grep -v '^ *+' conftest.er1 >conftest.err
38294 cat conftest.err >&5
38295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38296 (exit $ac_status); } &&
38297 { ac_try='test -z "$ac_c_werror_flag"
38298 || test ! -s conftest.err'
38299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38300 (eval $ac_try) 2>&5
38302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38303 (exit $ac_status); }; } &&
38304 { ac_try='test -s conftest$ac_exeext'
38305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38306 (eval $ac_try) 2>&5
38308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38309 (exit $ac_status); }; }; then
38310 ol_cv_db_db_4_dot_3=yes
38312 echo "$as_me: failed program was:" >&5
38313 sed 's/^/| /' conftest.$ac_ext >&5
38315 ol_cv_db_db_4_dot_3=no
38317 rm -f conftest.err conftest.$ac_objext \
38318 conftest$ac_exeext conftest.$ac_ext
38323 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
38324 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
38326 if test $ol_cv_db_db_4_dot_3 = yes ; then
38327 ol_cv_lib_db=-ldb-4.3
38331 if test $ol_cv_lib_db = no ; then
38332 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
38333 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
38334 if test "${ol_cv_db_db_4_3+set}" = set; then
38335 echo $ECHO_N "(cached) $ECHO_C" >&6
38340 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38342 cat >conftest.$ac_ext <<_ACEOF
38345 cat confdefs.h >>conftest.$ac_ext
38346 cat >>conftest.$ac_ext <<_ACEOF
38347 /* end confdefs.h. */
38349 #ifdef HAVE_DB_185_H
38350 # include <db_185.h>
38355 #ifndef DB_VERSION_MAJOR
38356 # define DB_VERSION_MAJOR 1
38360 #define NULL ((void*)0)
38367 #if DB_VERSION_MAJOR > 1
38370 int major, minor, patch;
38372 version = db_version( &major, &minor, &patch );
38374 if( major != DB_VERSION_MAJOR ||
38375 minor < DB_VERSION_MINOR )
38377 printf("Berkeley DB version mismatch\n"
38378 "\theader: %s\n\tlibrary: %s\n",
38379 DB_VERSION_STRING, version);
38385 #if DB_VERSION_MAJOR > 2
38386 db_env_create( NULL, 0 );
38387 #elif DB_VERSION_MAJOR > 1
38388 db_appexit( NULL );
38390 (void) dbopen( NULL, 0, 0, 0, NULL);
38397 rm -f conftest.$ac_objext conftest$ac_exeext
38398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38399 (eval $ac_link) 2>conftest.er1
38401 grep -v '^ *+' conftest.er1 >conftest.err
38403 cat conftest.err >&5
38404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38405 (exit $ac_status); } &&
38406 { ac_try='test -z "$ac_c_werror_flag"
38407 || test ! -s conftest.err'
38408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38409 (eval $ac_try) 2>&5
38411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38412 (exit $ac_status); }; } &&
38413 { ac_try='test -s conftest$ac_exeext'
38414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38415 (eval $ac_try) 2>&5
38417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38418 (exit $ac_status); }; }; then
38419 ol_cv_db_db_4_3=yes
38421 echo "$as_me: failed program was:" >&5
38422 sed 's/^/| /' conftest.$ac_ext >&5
38426 rm -f conftest.err conftest.$ac_objext \
38427 conftest$ac_exeext conftest.$ac_ext
38432 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
38433 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
38435 if test $ol_cv_db_db_4_3 = yes ; then
38436 ol_cv_lib_db=-ldb-4-3
38440 if test $ol_cv_lib_db = no ; then
38441 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
38442 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
38443 if test "${ol_cv_db_db42+set}" = set; then
38444 echo $ECHO_N "(cached) $ECHO_C" >&6
38449 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38451 cat >conftest.$ac_ext <<_ACEOF
38454 cat confdefs.h >>conftest.$ac_ext
38455 cat >>conftest.$ac_ext <<_ACEOF
38456 /* end confdefs.h. */
38458 #ifdef HAVE_DB_185_H
38459 # include <db_185.h>
38464 #ifndef DB_VERSION_MAJOR
38465 # define DB_VERSION_MAJOR 1
38469 #define NULL ((void*)0)
38476 #if DB_VERSION_MAJOR > 1
38479 int major, minor, patch;
38481 version = db_version( &major, &minor, &patch );
38483 if( major != DB_VERSION_MAJOR ||
38484 minor < DB_VERSION_MINOR )
38486 printf("Berkeley DB version mismatch\n"
38487 "\theader: %s\n\tlibrary: %s\n",
38488 DB_VERSION_STRING, version);
38494 #if DB_VERSION_MAJOR > 2
38495 db_env_create( NULL, 0 );
38496 #elif DB_VERSION_MAJOR > 1
38497 db_appexit( NULL );
38499 (void) dbopen( NULL, 0, 0, 0, NULL);
38506 rm -f conftest.$ac_objext conftest$ac_exeext
38507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38508 (eval $ac_link) 2>conftest.er1
38510 grep -v '^ *+' conftest.er1 >conftest.err
38512 cat conftest.err >&5
38513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38514 (exit $ac_status); } &&
38515 { ac_try='test -z "$ac_c_werror_flag"
38516 || test ! -s conftest.err'
38517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38518 (eval $ac_try) 2>&5
38520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38521 (exit $ac_status); }; } &&
38522 { ac_try='test -s conftest$ac_exeext'
38523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38524 (eval $ac_try) 2>&5
38526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38527 (exit $ac_status); }; }; then
38530 echo "$as_me: failed program was:" >&5
38531 sed 's/^/| /' conftest.$ac_ext >&5
38535 rm -f conftest.err conftest.$ac_objext \
38536 conftest$ac_exeext conftest.$ac_ext
38541 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
38542 echo "${ECHO_T}$ol_cv_db_db42" >&6
38544 if test $ol_cv_db_db42 = yes ; then
38545 ol_cv_lib_db=-ldb42
38549 if test $ol_cv_lib_db = no ; then
38550 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
38551 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
38552 if test "${ol_cv_db_db_42+set}" = set; then
38553 echo $ECHO_N "(cached) $ECHO_C" >&6
38558 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38560 cat >conftest.$ac_ext <<_ACEOF
38563 cat confdefs.h >>conftest.$ac_ext
38564 cat >>conftest.$ac_ext <<_ACEOF
38565 /* end confdefs.h. */
38567 #ifdef HAVE_DB_185_H
38568 # include <db_185.h>
38573 #ifndef DB_VERSION_MAJOR
38574 # define DB_VERSION_MAJOR 1
38578 #define NULL ((void*)0)
38585 #if DB_VERSION_MAJOR > 1
38588 int major, minor, patch;
38590 version = db_version( &major, &minor, &patch );
38592 if( major != DB_VERSION_MAJOR ||
38593 minor < DB_VERSION_MINOR )
38595 printf("Berkeley DB version mismatch\n"
38596 "\theader: %s\n\tlibrary: %s\n",
38597 DB_VERSION_STRING, version);
38603 #if DB_VERSION_MAJOR > 2
38604 db_env_create( NULL, 0 );
38605 #elif DB_VERSION_MAJOR > 1
38606 db_appexit( NULL );
38608 (void) dbopen( NULL, 0, 0, 0, NULL);
38615 rm -f conftest.$ac_objext conftest$ac_exeext
38616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38617 (eval $ac_link) 2>conftest.er1
38619 grep -v '^ *+' conftest.er1 >conftest.err
38621 cat conftest.err >&5
38622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38623 (exit $ac_status); } &&
38624 { ac_try='test -z "$ac_c_werror_flag"
38625 || test ! -s conftest.err'
38626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38627 (eval $ac_try) 2>&5
38629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38630 (exit $ac_status); }; } &&
38631 { ac_try='test -s conftest$ac_exeext'
38632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38633 (eval $ac_try) 2>&5
38635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38636 (exit $ac_status); }; }; then
38639 echo "$as_me: failed program was:" >&5
38640 sed 's/^/| /' conftest.$ac_ext >&5
38644 rm -f conftest.err conftest.$ac_objext \
38645 conftest$ac_exeext conftest.$ac_ext
38650 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
38651 echo "${ECHO_T}$ol_cv_db_db_42" >&6
38653 if test $ol_cv_db_db_42 = yes ; then
38654 ol_cv_lib_db=-ldb-42
38658 if test $ol_cv_lib_db = no ; then
38659 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
38660 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
38661 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
38662 echo $ECHO_N "(cached) $ECHO_C" >&6
38667 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38669 cat >conftest.$ac_ext <<_ACEOF
38672 cat confdefs.h >>conftest.$ac_ext
38673 cat >>conftest.$ac_ext <<_ACEOF
38674 /* end confdefs.h. */
38676 #ifdef HAVE_DB_185_H
38677 # include <db_185.h>
38682 #ifndef DB_VERSION_MAJOR
38683 # define DB_VERSION_MAJOR 1
38687 #define NULL ((void*)0)
38694 #if DB_VERSION_MAJOR > 1
38697 int major, minor, patch;
38699 version = db_version( &major, &minor, &patch );
38701 if( major != DB_VERSION_MAJOR ||
38702 minor < DB_VERSION_MINOR )
38704 printf("Berkeley DB version mismatch\n"
38705 "\theader: %s\n\tlibrary: %s\n",
38706 DB_VERSION_STRING, version);
38712 #if DB_VERSION_MAJOR > 2
38713 db_env_create( NULL, 0 );
38714 #elif DB_VERSION_MAJOR > 1
38715 db_appexit( NULL );
38717 (void) dbopen( NULL, 0, 0, 0, NULL);
38724 rm -f conftest.$ac_objext conftest$ac_exeext
38725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38726 (eval $ac_link) 2>conftest.er1
38728 grep -v '^ *+' conftest.er1 >conftest.err
38730 cat conftest.err >&5
38731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38732 (exit $ac_status); } &&
38733 { ac_try='test -z "$ac_c_werror_flag"
38734 || test ! -s conftest.err'
38735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38736 (eval $ac_try) 2>&5
38738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38739 (exit $ac_status); }; } &&
38740 { ac_try='test -s conftest$ac_exeext'
38741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38742 (eval $ac_try) 2>&5
38744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38745 (exit $ac_status); }; }; then
38746 ol_cv_db_db_4_dot_2=yes
38748 echo "$as_me: failed program was:" >&5
38749 sed 's/^/| /' conftest.$ac_ext >&5
38751 ol_cv_db_db_4_dot_2=no
38753 rm -f conftest.err conftest.$ac_objext \
38754 conftest$ac_exeext conftest.$ac_ext
38759 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
38760 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
38762 if test $ol_cv_db_db_4_dot_2 = yes ; then
38763 ol_cv_lib_db=-ldb-4.2
38767 if test $ol_cv_lib_db = no ; then
38768 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
38769 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
38770 if test "${ol_cv_db_db_4_2+set}" = set; then
38771 echo $ECHO_N "(cached) $ECHO_C" >&6
38776 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38778 cat >conftest.$ac_ext <<_ACEOF
38781 cat confdefs.h >>conftest.$ac_ext
38782 cat >>conftest.$ac_ext <<_ACEOF
38783 /* end confdefs.h. */
38785 #ifdef HAVE_DB_185_H
38786 # include <db_185.h>
38791 #ifndef DB_VERSION_MAJOR
38792 # define DB_VERSION_MAJOR 1
38796 #define NULL ((void*)0)
38803 #if DB_VERSION_MAJOR > 1
38806 int major, minor, patch;
38808 version = db_version( &major, &minor, &patch );
38810 if( major != DB_VERSION_MAJOR ||
38811 minor < DB_VERSION_MINOR )
38813 printf("Berkeley DB version mismatch\n"
38814 "\theader: %s\n\tlibrary: %s\n",
38815 DB_VERSION_STRING, version);
38821 #if DB_VERSION_MAJOR > 2
38822 db_env_create( NULL, 0 );
38823 #elif DB_VERSION_MAJOR > 1
38824 db_appexit( NULL );
38826 (void) dbopen( NULL, 0, 0, 0, NULL);
38833 rm -f conftest.$ac_objext conftest$ac_exeext
38834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38835 (eval $ac_link) 2>conftest.er1
38837 grep -v '^ *+' conftest.er1 >conftest.err
38839 cat conftest.err >&5
38840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38841 (exit $ac_status); } &&
38842 { ac_try='test -z "$ac_c_werror_flag"
38843 || test ! -s conftest.err'
38844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38845 (eval $ac_try) 2>&5
38847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38848 (exit $ac_status); }; } &&
38849 { ac_try='test -s conftest$ac_exeext'
38850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38851 (eval $ac_try) 2>&5
38853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38854 (exit $ac_status); }; }; then
38855 ol_cv_db_db_4_2=yes
38857 echo "$as_me: failed program was:" >&5
38858 sed 's/^/| /' conftest.$ac_ext >&5
38862 rm -f conftest.err conftest.$ac_objext \
38863 conftest$ac_exeext conftest.$ac_ext
38868 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
38869 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
38871 if test $ol_cv_db_db_4_2 = yes ; then
38872 ol_cv_lib_db=-ldb-4-2
38876 if test $ol_cv_lib_db = no ; then
38877 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
38878 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
38879 if test "${ol_cv_db_db_4+set}" = set; then
38880 echo $ECHO_N "(cached) $ECHO_C" >&6
38885 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38887 cat >conftest.$ac_ext <<_ACEOF
38890 cat confdefs.h >>conftest.$ac_ext
38891 cat >>conftest.$ac_ext <<_ACEOF
38892 /* end confdefs.h. */
38894 #ifdef HAVE_DB_185_H
38895 # include <db_185.h>
38900 #ifndef DB_VERSION_MAJOR
38901 # define DB_VERSION_MAJOR 1
38905 #define NULL ((void*)0)
38912 #if DB_VERSION_MAJOR > 1
38915 int major, minor, patch;
38917 version = db_version( &major, &minor, &patch );
38919 if( major != DB_VERSION_MAJOR ||
38920 minor < DB_VERSION_MINOR )
38922 printf("Berkeley DB version mismatch\n"
38923 "\theader: %s\n\tlibrary: %s\n",
38924 DB_VERSION_STRING, version);
38930 #if DB_VERSION_MAJOR > 2
38931 db_env_create( NULL, 0 );
38932 #elif DB_VERSION_MAJOR > 1
38933 db_appexit( NULL );
38935 (void) dbopen( NULL, 0, 0, 0, NULL);
38942 rm -f conftest.$ac_objext conftest$ac_exeext
38943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38944 (eval $ac_link) 2>conftest.er1
38946 grep -v '^ *+' conftest.er1 >conftest.err
38948 cat conftest.err >&5
38949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38950 (exit $ac_status); } &&
38951 { ac_try='test -z "$ac_c_werror_flag"
38952 || test ! -s conftest.err'
38953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38954 (eval $ac_try) 2>&5
38956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38957 (exit $ac_status); }; } &&
38958 { ac_try='test -s conftest$ac_exeext'
38959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38960 (eval $ac_try) 2>&5
38962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38963 (exit $ac_status); }; }; then
38966 echo "$as_me: failed program was:" >&5
38967 sed 's/^/| /' conftest.$ac_ext >&5
38971 rm -f conftest.err conftest.$ac_objext \
38972 conftest$ac_exeext conftest.$ac_ext
38977 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
38978 echo "${ECHO_T}$ol_cv_db_db_4" >&6
38980 if test $ol_cv_db_db_4 = yes ; then
38981 ol_cv_lib_db=-ldb-4
38985 if test $ol_cv_lib_db = no ; then
38986 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
38987 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
38988 if test "${ol_cv_db_db4+set}" = set; then
38989 echo $ECHO_N "(cached) $ECHO_C" >&6
38994 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38996 cat >conftest.$ac_ext <<_ACEOF
38999 cat confdefs.h >>conftest.$ac_ext
39000 cat >>conftest.$ac_ext <<_ACEOF
39001 /* end confdefs.h. */
39003 #ifdef HAVE_DB_185_H
39004 # include <db_185.h>
39009 #ifndef DB_VERSION_MAJOR
39010 # define DB_VERSION_MAJOR 1
39014 #define NULL ((void*)0)
39021 #if DB_VERSION_MAJOR > 1
39024 int major, minor, patch;
39026 version = db_version( &major, &minor, &patch );
39028 if( major != DB_VERSION_MAJOR ||
39029 minor < DB_VERSION_MINOR )
39031 printf("Berkeley DB version mismatch\n"
39032 "\theader: %s\n\tlibrary: %s\n",
39033 DB_VERSION_STRING, version);
39039 #if DB_VERSION_MAJOR > 2
39040 db_env_create( NULL, 0 );
39041 #elif DB_VERSION_MAJOR > 1
39042 db_appexit( NULL );
39044 (void) dbopen( NULL, 0, 0, 0, NULL);
39051 rm -f conftest.$ac_objext conftest$ac_exeext
39052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39053 (eval $ac_link) 2>conftest.er1
39055 grep -v '^ *+' conftest.er1 >conftest.err
39057 cat conftest.err >&5
39058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39059 (exit $ac_status); } &&
39060 { ac_try='test -z "$ac_c_werror_flag"
39061 || test ! -s conftest.err'
39062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39063 (eval $ac_try) 2>&5
39065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39066 (exit $ac_status); }; } &&
39067 { ac_try='test -s conftest$ac_exeext'
39068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39069 (eval $ac_try) 2>&5
39071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39072 (exit $ac_status); }; }; then
39075 echo "$as_me: failed program was:" >&5
39076 sed 's/^/| /' conftest.$ac_ext >&5
39080 rm -f conftest.err conftest.$ac_objext \
39081 conftest$ac_exeext conftest.$ac_ext
39086 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
39087 echo "${ECHO_T}$ol_cv_db_db4" >&6
39089 if test $ol_cv_db_db4 = yes ; then
39094 if test $ol_cv_lib_db = no ; then
39095 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
39096 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
39097 if test "${ol_cv_db_db+set}" = set; then
39098 echo $ECHO_N "(cached) $ECHO_C" >&6
39103 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39105 cat >conftest.$ac_ext <<_ACEOF
39108 cat confdefs.h >>conftest.$ac_ext
39109 cat >>conftest.$ac_ext <<_ACEOF
39110 /* end confdefs.h. */
39112 #ifdef HAVE_DB_185_H
39113 # include <db_185.h>
39118 #ifndef DB_VERSION_MAJOR
39119 # define DB_VERSION_MAJOR 1
39123 #define NULL ((void*)0)
39130 #if DB_VERSION_MAJOR > 1
39133 int major, minor, patch;
39135 version = db_version( &major, &minor, &patch );
39137 if( major != DB_VERSION_MAJOR ||
39138 minor < DB_VERSION_MINOR )
39140 printf("Berkeley DB version mismatch\n"
39141 "\theader: %s\n\tlibrary: %s\n",
39142 DB_VERSION_STRING, version);
39148 #if DB_VERSION_MAJOR > 2
39149 db_env_create( NULL, 0 );
39150 #elif DB_VERSION_MAJOR > 1
39151 db_appexit( NULL );
39153 (void) dbopen( NULL, 0, 0, 0, NULL);
39160 rm -f conftest.$ac_objext conftest$ac_exeext
39161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39162 (eval $ac_link) 2>conftest.er1
39164 grep -v '^ *+' conftest.er1 >conftest.err
39166 cat conftest.err >&5
39167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39168 (exit $ac_status); } &&
39169 { ac_try='test -z "$ac_c_werror_flag"
39170 || test ! -s conftest.err'
39171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39172 (eval $ac_try) 2>&5
39174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39175 (exit $ac_status); }; } &&
39176 { ac_try='test -s conftest$ac_exeext'
39177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39178 (eval $ac_try) 2>&5
39180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39181 (exit $ac_status); }; }; then
39184 echo "$as_me: failed program was:" >&5
39185 sed 's/^/| /' conftest.$ac_ext >&5
39189 rm -f conftest.err conftest.$ac_objext \
39190 conftest$ac_exeext conftest.$ac_ext
39195 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
39196 echo "${ECHO_T}$ol_cv_db_db" >&6
39198 if test $ol_cv_db_db = yes ; then
39203 if test $ol_cv_lib_db = no ; then
39204 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
39205 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
39206 if test "${ol_cv_db_db41+set}" = set; then
39207 echo $ECHO_N "(cached) $ECHO_C" >&6
39212 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39214 cat >conftest.$ac_ext <<_ACEOF
39217 cat confdefs.h >>conftest.$ac_ext
39218 cat >>conftest.$ac_ext <<_ACEOF
39219 /* end confdefs.h. */
39221 #ifdef HAVE_DB_185_H
39222 # include <db_185.h>
39227 #ifndef DB_VERSION_MAJOR
39228 # define DB_VERSION_MAJOR 1
39232 #define NULL ((void*)0)
39239 #if DB_VERSION_MAJOR > 1
39242 int major, minor, patch;
39244 version = db_version( &major, &minor, &patch );
39246 if( major != DB_VERSION_MAJOR ||
39247 minor < DB_VERSION_MINOR )
39249 printf("Berkeley DB version mismatch\n"
39250 "\theader: %s\n\tlibrary: %s\n",
39251 DB_VERSION_STRING, version);
39257 #if DB_VERSION_MAJOR > 2
39258 db_env_create( NULL, 0 );
39259 #elif DB_VERSION_MAJOR > 1
39260 db_appexit( NULL );
39262 (void) dbopen( NULL, 0, 0, 0, NULL);
39269 rm -f conftest.$ac_objext conftest$ac_exeext
39270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39271 (eval $ac_link) 2>conftest.er1
39273 grep -v '^ *+' conftest.er1 >conftest.err
39275 cat conftest.err >&5
39276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39277 (exit $ac_status); } &&
39278 { ac_try='test -z "$ac_c_werror_flag"
39279 || test ! -s conftest.err'
39280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39281 (eval $ac_try) 2>&5
39283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39284 (exit $ac_status); }; } &&
39285 { ac_try='test -s conftest$ac_exeext'
39286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39287 (eval $ac_try) 2>&5
39289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39290 (exit $ac_status); }; }; then
39293 echo "$as_me: failed program was:" >&5
39294 sed 's/^/| /' conftest.$ac_ext >&5
39298 rm -f conftest.err conftest.$ac_objext \
39299 conftest$ac_exeext conftest.$ac_ext
39304 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
39305 echo "${ECHO_T}$ol_cv_db_db41" >&6
39307 if test $ol_cv_db_db41 = yes ; then
39308 ol_cv_lib_db=-ldb41
39312 if test $ol_cv_lib_db = no ; then
39313 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
39314 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
39315 if test "${ol_cv_db_db_41+set}" = set; then
39316 echo $ECHO_N "(cached) $ECHO_C" >&6
39321 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39323 cat >conftest.$ac_ext <<_ACEOF
39326 cat confdefs.h >>conftest.$ac_ext
39327 cat >>conftest.$ac_ext <<_ACEOF
39328 /* end confdefs.h. */
39330 #ifdef HAVE_DB_185_H
39331 # include <db_185.h>
39336 #ifndef DB_VERSION_MAJOR
39337 # define DB_VERSION_MAJOR 1
39341 #define NULL ((void*)0)
39348 #if DB_VERSION_MAJOR > 1
39351 int major, minor, patch;
39353 version = db_version( &major, &minor, &patch );
39355 if( major != DB_VERSION_MAJOR ||
39356 minor < DB_VERSION_MINOR )
39358 printf("Berkeley DB version mismatch\n"
39359 "\theader: %s\n\tlibrary: %s\n",
39360 DB_VERSION_STRING, version);
39366 #if DB_VERSION_MAJOR > 2
39367 db_env_create( NULL, 0 );
39368 #elif DB_VERSION_MAJOR > 1
39369 db_appexit( NULL );
39371 (void) dbopen( NULL, 0, 0, 0, NULL);
39378 rm -f conftest.$ac_objext conftest$ac_exeext
39379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39380 (eval $ac_link) 2>conftest.er1
39382 grep -v '^ *+' conftest.er1 >conftest.err
39384 cat conftest.err >&5
39385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39386 (exit $ac_status); } &&
39387 { ac_try='test -z "$ac_c_werror_flag"
39388 || test ! -s conftest.err'
39389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39390 (eval $ac_try) 2>&5
39392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39393 (exit $ac_status); }; } &&
39394 { ac_try='test -s conftest$ac_exeext'
39395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39396 (eval $ac_try) 2>&5
39398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39399 (exit $ac_status); }; }; then
39402 echo "$as_me: failed program was:" >&5
39403 sed 's/^/| /' conftest.$ac_ext >&5
39407 rm -f conftest.err conftest.$ac_objext \
39408 conftest$ac_exeext conftest.$ac_ext
39413 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
39414 echo "${ECHO_T}$ol_cv_db_db_41" >&6
39416 if test $ol_cv_db_db_41 = yes ; then
39417 ol_cv_lib_db=-ldb-41
39421 if test $ol_cv_lib_db = no ; then
39422 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
39423 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
39424 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
39425 echo $ECHO_N "(cached) $ECHO_C" >&6
39430 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39432 cat >conftest.$ac_ext <<_ACEOF
39435 cat confdefs.h >>conftest.$ac_ext
39436 cat >>conftest.$ac_ext <<_ACEOF
39437 /* end confdefs.h. */
39439 #ifdef HAVE_DB_185_H
39440 # include <db_185.h>
39445 #ifndef DB_VERSION_MAJOR
39446 # define DB_VERSION_MAJOR 1
39450 #define NULL ((void*)0)
39457 #if DB_VERSION_MAJOR > 1
39460 int major, minor, patch;
39462 version = db_version( &major, &minor, &patch );
39464 if( major != DB_VERSION_MAJOR ||
39465 minor < DB_VERSION_MINOR )
39467 printf("Berkeley DB version mismatch\n"
39468 "\theader: %s\n\tlibrary: %s\n",
39469 DB_VERSION_STRING, version);
39475 #if DB_VERSION_MAJOR > 2
39476 db_env_create( NULL, 0 );
39477 #elif DB_VERSION_MAJOR > 1
39478 db_appexit( NULL );
39480 (void) dbopen( NULL, 0, 0, 0, NULL);
39487 rm -f conftest.$ac_objext conftest$ac_exeext
39488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39489 (eval $ac_link) 2>conftest.er1
39491 grep -v '^ *+' conftest.er1 >conftest.err
39493 cat conftest.err >&5
39494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39495 (exit $ac_status); } &&
39496 { ac_try='test -z "$ac_c_werror_flag"
39497 || test ! -s conftest.err'
39498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39499 (eval $ac_try) 2>&5
39501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39502 (exit $ac_status); }; } &&
39503 { ac_try='test -s conftest$ac_exeext'
39504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39505 (eval $ac_try) 2>&5
39507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39508 (exit $ac_status); }; }; then
39509 ol_cv_db_db_4_dot_1=yes
39511 echo "$as_me: failed program was:" >&5
39512 sed 's/^/| /' conftest.$ac_ext >&5
39514 ol_cv_db_db_4_dot_1=no
39516 rm -f conftest.err conftest.$ac_objext \
39517 conftest$ac_exeext conftest.$ac_ext
39522 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
39523 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
39525 if test $ol_cv_db_db_4_dot_1 = yes ; then
39526 ol_cv_lib_db=-ldb-4.1
39530 if test $ol_cv_lib_db = no ; then
39531 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
39532 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
39533 if test "${ol_cv_db_db_4_1+set}" = set; then
39534 echo $ECHO_N "(cached) $ECHO_C" >&6
39539 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39541 cat >conftest.$ac_ext <<_ACEOF
39544 cat confdefs.h >>conftest.$ac_ext
39545 cat >>conftest.$ac_ext <<_ACEOF
39546 /* end confdefs.h. */
39548 #ifdef HAVE_DB_185_H
39549 # include <db_185.h>
39554 #ifndef DB_VERSION_MAJOR
39555 # define DB_VERSION_MAJOR 1
39559 #define NULL ((void*)0)
39566 #if DB_VERSION_MAJOR > 1
39569 int major, minor, patch;
39571 version = db_version( &major, &minor, &patch );
39573 if( major != DB_VERSION_MAJOR ||
39574 minor < DB_VERSION_MINOR )
39576 printf("Berkeley DB version mismatch\n"
39577 "\theader: %s\n\tlibrary: %s\n",
39578 DB_VERSION_STRING, version);
39584 #if DB_VERSION_MAJOR > 2
39585 db_env_create( NULL, 0 );
39586 #elif DB_VERSION_MAJOR > 1
39587 db_appexit( NULL );
39589 (void) dbopen( NULL, 0, 0, 0, NULL);
39596 rm -f conftest.$ac_objext conftest$ac_exeext
39597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39598 (eval $ac_link) 2>conftest.er1
39600 grep -v '^ *+' conftest.er1 >conftest.err
39602 cat conftest.err >&5
39603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39604 (exit $ac_status); } &&
39605 { ac_try='test -z "$ac_c_werror_flag"
39606 || test ! -s conftest.err'
39607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39608 (eval $ac_try) 2>&5
39610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39611 (exit $ac_status); }; } &&
39612 { ac_try='test -s conftest$ac_exeext'
39613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39614 (eval $ac_try) 2>&5
39616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39617 (exit $ac_status); }; }; then
39618 ol_cv_db_db_4_1=yes
39620 echo "$as_me: failed program was:" >&5
39621 sed 's/^/| /' conftest.$ac_ext >&5
39625 rm -f conftest.err conftest.$ac_objext \
39626 conftest$ac_exeext conftest.$ac_ext
39631 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
39632 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
39634 if test $ol_cv_db_db_4_1 = yes ; then
39635 ol_cv_lib_db=-ldb-4-1
39639 if test $ol_cv_lib_db = no ; then
39640 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
39641 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
39642 if test "${ol_cv_db_db3+set}" = set; then
39643 echo $ECHO_N "(cached) $ECHO_C" >&6
39648 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39650 cat >conftest.$ac_ext <<_ACEOF
39653 cat confdefs.h >>conftest.$ac_ext
39654 cat >>conftest.$ac_ext <<_ACEOF
39655 /* end confdefs.h. */
39657 #ifdef HAVE_DB_185_H
39658 # include <db_185.h>
39663 #ifndef DB_VERSION_MAJOR
39664 # define DB_VERSION_MAJOR 1
39668 #define NULL ((void*)0)
39675 #if DB_VERSION_MAJOR > 1
39678 int major, minor, patch;
39680 version = db_version( &major, &minor, &patch );
39682 if( major != DB_VERSION_MAJOR ||
39683 minor < DB_VERSION_MINOR )
39685 printf("Berkeley DB version mismatch\n"
39686 "\theader: %s\n\tlibrary: %s\n",
39687 DB_VERSION_STRING, version);
39693 #if DB_VERSION_MAJOR > 2
39694 db_env_create( NULL, 0 );
39695 #elif DB_VERSION_MAJOR > 1
39696 db_appexit( NULL );
39698 (void) dbopen( NULL, 0, 0, 0, NULL);
39705 rm -f conftest.$ac_objext conftest$ac_exeext
39706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39707 (eval $ac_link) 2>conftest.er1
39709 grep -v '^ *+' conftest.er1 >conftest.err
39711 cat conftest.err >&5
39712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39713 (exit $ac_status); } &&
39714 { ac_try='test -z "$ac_c_werror_flag"
39715 || test ! -s conftest.err'
39716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39717 (eval $ac_try) 2>&5
39719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39720 (exit $ac_status); }; } &&
39721 { ac_try='test -s conftest$ac_exeext'
39722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39723 (eval $ac_try) 2>&5
39725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39726 (exit $ac_status); }; }; then
39729 echo "$as_me: failed program was:" >&5
39730 sed 's/^/| /' conftest.$ac_ext >&5
39734 rm -f conftest.err conftest.$ac_objext \
39735 conftest$ac_exeext conftest.$ac_ext
39740 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
39741 echo "${ECHO_T}$ol_cv_db_db3" >&6
39743 if test $ol_cv_db_db3 = yes ; then
39748 if test $ol_cv_lib_db = no ; then
39749 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
39750 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
39751 if test "${ol_cv_db_db_3+set}" = set; then
39752 echo $ECHO_N "(cached) $ECHO_C" >&6
39757 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39759 cat >conftest.$ac_ext <<_ACEOF
39762 cat confdefs.h >>conftest.$ac_ext
39763 cat >>conftest.$ac_ext <<_ACEOF
39764 /* end confdefs.h. */
39766 #ifdef HAVE_DB_185_H
39767 # include <db_185.h>
39772 #ifndef DB_VERSION_MAJOR
39773 # define DB_VERSION_MAJOR 1
39777 #define NULL ((void*)0)
39784 #if DB_VERSION_MAJOR > 1
39787 int major, minor, patch;
39789 version = db_version( &major, &minor, &patch );
39791 if( major != DB_VERSION_MAJOR ||
39792 minor < DB_VERSION_MINOR )
39794 printf("Berkeley DB version mismatch\n"
39795 "\theader: %s\n\tlibrary: %s\n",
39796 DB_VERSION_STRING, version);
39802 #if DB_VERSION_MAJOR > 2
39803 db_env_create( NULL, 0 );
39804 #elif DB_VERSION_MAJOR > 1
39805 db_appexit( NULL );
39807 (void) dbopen( NULL, 0, 0, 0, NULL);
39814 rm -f conftest.$ac_objext conftest$ac_exeext
39815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39816 (eval $ac_link) 2>conftest.er1
39818 grep -v '^ *+' conftest.er1 >conftest.err
39820 cat conftest.err >&5
39821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39822 (exit $ac_status); } &&
39823 { ac_try='test -z "$ac_c_werror_flag"
39824 || test ! -s conftest.err'
39825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39826 (eval $ac_try) 2>&5
39828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39829 (exit $ac_status); }; } &&
39830 { ac_try='test -s conftest$ac_exeext'
39831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39832 (eval $ac_try) 2>&5
39834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39835 (exit $ac_status); }; }; then
39838 echo "$as_me: failed program was:" >&5
39839 sed 's/^/| /' conftest.$ac_ext >&5
39843 rm -f conftest.err conftest.$ac_objext \
39844 conftest$ac_exeext conftest.$ac_ext
39849 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
39850 echo "${ECHO_T}$ol_cv_db_db_3" >&6
39852 if test $ol_cv_db_db_3 = yes ; then
39853 ol_cv_lib_db=-ldb-3
39857 if test $ol_cv_lib_db = no ; then
39858 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
39859 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
39860 if test "${ol_cv_db_db2+set}" = set; then
39861 echo $ECHO_N "(cached) $ECHO_C" >&6
39866 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39868 cat >conftest.$ac_ext <<_ACEOF
39871 cat confdefs.h >>conftest.$ac_ext
39872 cat >>conftest.$ac_ext <<_ACEOF
39873 /* end confdefs.h. */
39875 #ifdef HAVE_DB_185_H
39876 # include <db_185.h>
39881 #ifndef DB_VERSION_MAJOR
39882 # define DB_VERSION_MAJOR 1
39886 #define NULL ((void*)0)
39893 #if DB_VERSION_MAJOR > 1
39896 int major, minor, patch;
39898 version = db_version( &major, &minor, &patch );
39900 if( major != DB_VERSION_MAJOR ||
39901 minor < DB_VERSION_MINOR )
39903 printf("Berkeley DB version mismatch\n"
39904 "\theader: %s\n\tlibrary: %s\n",
39905 DB_VERSION_STRING, version);
39911 #if DB_VERSION_MAJOR > 2
39912 db_env_create( NULL, 0 );
39913 #elif DB_VERSION_MAJOR > 1
39914 db_appexit( NULL );
39916 (void) dbopen( NULL, 0, 0, 0, NULL);
39923 rm -f conftest.$ac_objext conftest$ac_exeext
39924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39925 (eval $ac_link) 2>conftest.er1
39927 grep -v '^ *+' conftest.er1 >conftest.err
39929 cat conftest.err >&5
39930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39931 (exit $ac_status); } &&
39932 { ac_try='test -z "$ac_c_werror_flag"
39933 || test ! -s conftest.err'
39934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39935 (eval $ac_try) 2>&5
39937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39938 (exit $ac_status); }; } &&
39939 { ac_try='test -s conftest$ac_exeext'
39940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39941 (eval $ac_try) 2>&5
39943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39944 (exit $ac_status); }; }; then
39947 echo "$as_me: failed program was:" >&5
39948 sed 's/^/| /' conftest.$ac_ext >&5
39952 rm -f conftest.err conftest.$ac_objext \
39953 conftest$ac_exeext conftest.$ac_ext
39958 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
39959 echo "${ECHO_T}$ol_cv_db_db2" >&6
39961 if test $ol_cv_db_db2 = yes ; then
39966 if test $ol_cv_lib_db = no ; then
39967 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
39968 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
39969 if test "${ol_cv_db_db_2+set}" = set; then
39970 echo $ECHO_N "(cached) $ECHO_C" >&6
39975 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39977 cat >conftest.$ac_ext <<_ACEOF
39980 cat confdefs.h >>conftest.$ac_ext
39981 cat >>conftest.$ac_ext <<_ACEOF
39982 /* end confdefs.h. */
39984 #ifdef HAVE_DB_185_H
39985 # include <db_185.h>
39990 #ifndef DB_VERSION_MAJOR
39991 # define DB_VERSION_MAJOR 1
39995 #define NULL ((void*)0)
40002 #if DB_VERSION_MAJOR > 1
40005 int major, minor, patch;
40007 version = db_version( &major, &minor, &patch );
40009 if( major != DB_VERSION_MAJOR ||
40010 minor < DB_VERSION_MINOR )
40012 printf("Berkeley DB version mismatch\n"
40013 "\theader: %s\n\tlibrary: %s\n",
40014 DB_VERSION_STRING, version);
40020 #if DB_VERSION_MAJOR > 2
40021 db_env_create( NULL, 0 );
40022 #elif DB_VERSION_MAJOR > 1
40023 db_appexit( NULL );
40025 (void) dbopen( NULL, 0, 0, 0, NULL);
40032 rm -f conftest.$ac_objext conftest$ac_exeext
40033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40034 (eval $ac_link) 2>conftest.er1
40036 grep -v '^ *+' conftest.er1 >conftest.err
40038 cat conftest.err >&5
40039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40040 (exit $ac_status); } &&
40041 { ac_try='test -z "$ac_c_werror_flag"
40042 || test ! -s conftest.err'
40043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40044 (eval $ac_try) 2>&5
40046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40047 (exit $ac_status); }; } &&
40048 { ac_try='test -s conftest$ac_exeext'
40049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40050 (eval $ac_try) 2>&5
40052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40053 (exit $ac_status); }; }; then
40056 echo "$as_me: failed program was:" >&5
40057 sed 's/^/| /' conftest.$ac_ext >&5
40061 rm -f conftest.err conftest.$ac_objext \
40062 conftest$ac_exeext conftest.$ac_ext
40067 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
40068 echo "${ECHO_T}$ol_cv_db_db_2" >&6
40070 if test $ol_cv_db_db_2 = yes ; then
40071 ol_cv_lib_db=-ldb-2
40075 if test $ol_cv_lib_db = no ; then
40076 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
40077 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
40078 if test "${ol_cv_db_db1+set}" = set; then
40079 echo $ECHO_N "(cached) $ECHO_C" >&6
40084 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40086 cat >conftest.$ac_ext <<_ACEOF
40089 cat confdefs.h >>conftest.$ac_ext
40090 cat >>conftest.$ac_ext <<_ACEOF
40091 /* end confdefs.h. */
40093 #ifdef HAVE_DB_185_H
40094 # include <db_185.h>
40099 #ifndef DB_VERSION_MAJOR
40100 # define DB_VERSION_MAJOR 1
40104 #define NULL ((void*)0)
40111 #if DB_VERSION_MAJOR > 1
40114 int major, minor, patch;
40116 version = db_version( &major, &minor, &patch );
40118 if( major != DB_VERSION_MAJOR ||
40119 minor < DB_VERSION_MINOR )
40121 printf("Berkeley DB version mismatch\n"
40122 "\theader: %s\n\tlibrary: %s\n",
40123 DB_VERSION_STRING, version);
40129 #if DB_VERSION_MAJOR > 2
40130 db_env_create( NULL, 0 );
40131 #elif DB_VERSION_MAJOR > 1
40132 db_appexit( NULL );
40134 (void) dbopen( NULL, 0, 0, 0, NULL);
40141 rm -f conftest.$ac_objext conftest$ac_exeext
40142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40143 (eval $ac_link) 2>conftest.er1
40145 grep -v '^ *+' conftest.er1 >conftest.err
40147 cat conftest.err >&5
40148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40149 (exit $ac_status); } &&
40150 { ac_try='test -z "$ac_c_werror_flag"
40151 || test ! -s conftest.err'
40152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40153 (eval $ac_try) 2>&5
40155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40156 (exit $ac_status); }; } &&
40157 { ac_try='test -s conftest$ac_exeext'
40158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40159 (eval $ac_try) 2>&5
40161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40162 (exit $ac_status); }; }; then
40165 echo "$as_me: failed program was:" >&5
40166 sed 's/^/| /' conftest.$ac_ext >&5
40170 rm -f conftest.err conftest.$ac_objext \
40171 conftest$ac_exeext conftest.$ac_ext
40176 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
40177 echo "${ECHO_T}$ol_cv_db_db1" >&6
40179 if test $ol_cv_db_db1 = yes ; then
40184 if test $ol_cv_lib_db = no ; then
40185 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
40186 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
40187 if test "${ol_cv_db_db_1+set}" = set; then
40188 echo $ECHO_N "(cached) $ECHO_C" >&6
40193 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40195 cat >conftest.$ac_ext <<_ACEOF
40198 cat confdefs.h >>conftest.$ac_ext
40199 cat >>conftest.$ac_ext <<_ACEOF
40200 /* end confdefs.h. */
40202 #ifdef HAVE_DB_185_H
40203 # include <db_185.h>
40208 #ifndef DB_VERSION_MAJOR
40209 # define DB_VERSION_MAJOR 1
40213 #define NULL ((void*)0)
40220 #if DB_VERSION_MAJOR > 1
40223 int major, minor, patch;
40225 version = db_version( &major, &minor, &patch );
40227 if( major != DB_VERSION_MAJOR ||
40228 minor < DB_VERSION_MINOR )
40230 printf("Berkeley DB version mismatch\n"
40231 "\theader: %s\n\tlibrary: %s\n",
40232 DB_VERSION_STRING, version);
40238 #if DB_VERSION_MAJOR > 2
40239 db_env_create( NULL, 0 );
40240 #elif DB_VERSION_MAJOR > 1
40241 db_appexit( NULL );
40243 (void) dbopen( NULL, 0, 0, 0, NULL);
40250 rm -f conftest.$ac_objext conftest$ac_exeext
40251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40252 (eval $ac_link) 2>conftest.er1
40254 grep -v '^ *+' conftest.er1 >conftest.err
40256 cat conftest.err >&5
40257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40258 (exit $ac_status); } &&
40259 { ac_try='test -z "$ac_c_werror_flag"
40260 || test ! -s conftest.err'
40261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40262 (eval $ac_try) 2>&5
40264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40265 (exit $ac_status); }; } &&
40266 { ac_try='test -s conftest$ac_exeext'
40267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40268 (eval $ac_try) 2>&5
40270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40271 (exit $ac_status); }; }; then
40274 echo "$as_me: failed program was:" >&5
40275 sed 's/^/| /' conftest.$ac_ext >&5
40279 rm -f conftest.err conftest.$ac_objext \
40280 conftest$ac_exeext conftest.$ac_ext
40285 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
40286 echo "${ECHO_T}$ol_cv_db_db_1" >&6
40288 if test $ol_cv_db_db_1 = yes ; then
40289 ol_cv_lib_db=-ldb-1
40294 if test "$ol_cv_lib_db" != no ; then
40295 ol_cv_berkeley_db=yes
40301 ol_cv_berkeley_db=no
40303 for ac_header in db.h
40305 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40307 echo "$as_me:$LINENO: checking for $ac_header" >&5
40308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40310 echo $ECHO_N "(cached) $ECHO_C" >&6
40312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40313 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40315 # Is the header compilable?
40316 echo "$as_me:$LINENO: checking $ac_header usability" >&5
40317 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
40318 cat >conftest.$ac_ext <<_ACEOF
40321 cat confdefs.h >>conftest.$ac_ext
40322 cat >>conftest.$ac_ext <<_ACEOF
40323 /* end confdefs.h. */
40324 $ac_includes_default
40325 #include <$ac_header>
40327 rm -f conftest.$ac_objext
40328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40329 (eval $ac_compile) 2>conftest.er1
40331 grep -v '^ *+' conftest.er1 >conftest.err
40333 cat conftest.err >&5
40334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40335 (exit $ac_status); } &&
40336 { ac_try='test -z "$ac_c_werror_flag"
40337 || test ! -s conftest.err'
40338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40339 (eval $ac_try) 2>&5
40341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40342 (exit $ac_status); }; } &&
40343 { ac_try='test -s conftest.$ac_objext'
40344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40345 (eval $ac_try) 2>&5
40347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40348 (exit $ac_status); }; }; then
40349 ac_header_compiler=yes
40351 echo "$as_me: failed program was:" >&5
40352 sed 's/^/| /' conftest.$ac_ext >&5
40354 ac_header_compiler=no
40356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40357 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40358 echo "${ECHO_T}$ac_header_compiler" >&6
40360 # Is the header present?
40361 echo "$as_me:$LINENO: checking $ac_header presence" >&5
40362 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
40363 cat >conftest.$ac_ext <<_ACEOF
40366 cat confdefs.h >>conftest.$ac_ext
40367 cat >>conftest.$ac_ext <<_ACEOF
40368 /* end confdefs.h. */
40369 #include <$ac_header>
40371 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
40372 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
40374 grep -v '^ *+' conftest.er1 >conftest.err
40376 cat conftest.err >&5
40377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40378 (exit $ac_status); } >/dev/null; then
40379 if test -s conftest.err; then
40380 ac_cpp_err=$ac_c_preproc_warn_flag
40381 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
40388 if test -z "$ac_cpp_err"; then
40389 ac_header_preproc=yes
40391 echo "$as_me: failed program was:" >&5
40392 sed 's/^/| /' conftest.$ac_ext >&5
40394 ac_header_preproc=no
40396 rm -f conftest.err conftest.$ac_ext
40397 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40398 echo "${ECHO_T}$ac_header_preproc" >&6
40400 # So? What about this header?
40401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40403 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40404 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40406 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40407 ac_header_preproc=yes
40410 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40411 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40412 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40413 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40414 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40415 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40416 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40417 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
40418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40419 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40420 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40421 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40424 ## ------------------------------------------ ##
40425 ## Report this to the AC_PACKAGE_NAME lists. ##
40426 ## ------------------------------------------ ##
40429 sed "s/^/$as_me: WARNING: /" >&2
40432 echo "$as_me:$LINENO: checking for $ac_header" >&5
40433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40434 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40435 echo $ECHO_N "(cached) $ECHO_C" >&6
40437 eval "$as_ac_Header=\$ac_header_preproc"
40439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40440 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40443 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40444 cat >>confdefs.h <<_ACEOF
40445 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40452 if test $ac_cv_header_db_h = yes; then
40454 if test $ol_cv_lib_db = no ; then
40455 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
40456 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
40457 if test "${ol_cv_db_none+set}" = set; then
40458 echo $ECHO_N "(cached) $ECHO_C" >&6
40463 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40465 cat >conftest.$ac_ext <<_ACEOF
40468 cat confdefs.h >>conftest.$ac_ext
40469 cat >>conftest.$ac_ext <<_ACEOF
40470 /* end confdefs.h. */
40472 #ifdef HAVE_DB_185_H
40473 # include <db_185.h>
40478 #ifndef DB_VERSION_MAJOR
40479 # define DB_VERSION_MAJOR 1
40483 #define NULL ((void*)0)
40490 #if DB_VERSION_MAJOR > 1
40493 int major, minor, patch;
40495 version = db_version( &major, &minor, &patch );
40497 if( major != DB_VERSION_MAJOR ||
40498 minor < DB_VERSION_MINOR )
40500 printf("Berkeley DB version mismatch\n"
40501 "\theader: %s\n\tlibrary: %s\n",
40502 DB_VERSION_STRING, version);
40508 #if DB_VERSION_MAJOR > 2
40509 db_env_create( NULL, 0 );
40510 #elif DB_VERSION_MAJOR > 1
40511 db_appexit( NULL );
40513 (void) dbopen( NULL, 0, 0, 0, NULL);
40520 rm -f conftest.$ac_objext conftest$ac_exeext
40521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40522 (eval $ac_link) 2>conftest.er1
40524 grep -v '^ *+' conftest.er1 >conftest.err
40526 cat conftest.err >&5
40527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40528 (exit $ac_status); } &&
40529 { ac_try='test -z "$ac_c_werror_flag"
40530 || test ! -s conftest.err'
40531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40532 (eval $ac_try) 2>&5
40534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40535 (exit $ac_status); }; } &&
40536 { ac_try='test -s conftest$ac_exeext'
40537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40538 (eval $ac_try) 2>&5
40540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40541 (exit $ac_status); }; }; then
40544 echo "$as_me: failed program was:" >&5
40545 sed 's/^/| /' conftest.$ac_ext >&5
40549 rm -f conftest.err conftest.$ac_objext \
40550 conftest$ac_exeext conftest.$ac_ext
40555 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
40556 echo "${ECHO_T}$ol_cv_db_none" >&6
40558 if test $ol_cv_db_none = yes ; then
40563 if test $ol_cv_lib_db = no ; then
40564 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
40565 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
40566 if test "${ol_cv_db_db43+set}" = set; then
40567 echo $ECHO_N "(cached) $ECHO_C" >&6
40572 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40574 cat >conftest.$ac_ext <<_ACEOF
40577 cat confdefs.h >>conftest.$ac_ext
40578 cat >>conftest.$ac_ext <<_ACEOF
40579 /* end confdefs.h. */
40581 #ifdef HAVE_DB_185_H
40582 # include <db_185.h>
40587 #ifndef DB_VERSION_MAJOR
40588 # define DB_VERSION_MAJOR 1
40592 #define NULL ((void*)0)
40599 #if DB_VERSION_MAJOR > 1
40602 int major, minor, patch;
40604 version = db_version( &major, &minor, &patch );
40606 if( major != DB_VERSION_MAJOR ||
40607 minor < DB_VERSION_MINOR )
40609 printf("Berkeley DB version mismatch\n"
40610 "\theader: %s\n\tlibrary: %s\n",
40611 DB_VERSION_STRING, version);
40617 #if DB_VERSION_MAJOR > 2
40618 db_env_create( NULL, 0 );
40619 #elif DB_VERSION_MAJOR > 1
40620 db_appexit( NULL );
40622 (void) dbopen( NULL, 0, 0, 0, NULL);
40629 rm -f conftest.$ac_objext conftest$ac_exeext
40630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40631 (eval $ac_link) 2>conftest.er1
40633 grep -v '^ *+' conftest.er1 >conftest.err
40635 cat conftest.err >&5
40636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40637 (exit $ac_status); } &&
40638 { ac_try='test -z "$ac_c_werror_flag"
40639 || test ! -s conftest.err'
40640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40641 (eval $ac_try) 2>&5
40643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40644 (exit $ac_status); }; } &&
40645 { ac_try='test -s conftest$ac_exeext'
40646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40647 (eval $ac_try) 2>&5
40649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40650 (exit $ac_status); }; }; then
40653 echo "$as_me: failed program was:" >&5
40654 sed 's/^/| /' conftest.$ac_ext >&5
40658 rm -f conftest.err conftest.$ac_objext \
40659 conftest$ac_exeext conftest.$ac_ext
40664 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
40665 echo "${ECHO_T}$ol_cv_db_db43" >&6
40667 if test $ol_cv_db_db43 = yes ; then
40668 ol_cv_lib_db=-ldb43
40672 if test $ol_cv_lib_db = no ; then
40673 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
40674 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
40675 if test "${ol_cv_db_db_43+set}" = set; then
40676 echo $ECHO_N "(cached) $ECHO_C" >&6
40681 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40683 cat >conftest.$ac_ext <<_ACEOF
40686 cat confdefs.h >>conftest.$ac_ext
40687 cat >>conftest.$ac_ext <<_ACEOF
40688 /* end confdefs.h. */
40690 #ifdef HAVE_DB_185_H
40691 # include <db_185.h>
40696 #ifndef DB_VERSION_MAJOR
40697 # define DB_VERSION_MAJOR 1
40701 #define NULL ((void*)0)
40708 #if DB_VERSION_MAJOR > 1
40711 int major, minor, patch;
40713 version = db_version( &major, &minor, &patch );
40715 if( major != DB_VERSION_MAJOR ||
40716 minor < DB_VERSION_MINOR )
40718 printf("Berkeley DB version mismatch\n"
40719 "\theader: %s\n\tlibrary: %s\n",
40720 DB_VERSION_STRING, version);
40726 #if DB_VERSION_MAJOR > 2
40727 db_env_create( NULL, 0 );
40728 #elif DB_VERSION_MAJOR > 1
40729 db_appexit( NULL );
40731 (void) dbopen( NULL, 0, 0, 0, NULL);
40738 rm -f conftest.$ac_objext conftest$ac_exeext
40739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40740 (eval $ac_link) 2>conftest.er1
40742 grep -v '^ *+' conftest.er1 >conftest.err
40744 cat conftest.err >&5
40745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40746 (exit $ac_status); } &&
40747 { ac_try='test -z "$ac_c_werror_flag"
40748 || test ! -s conftest.err'
40749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40750 (eval $ac_try) 2>&5
40752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40753 (exit $ac_status); }; } &&
40754 { ac_try='test -s conftest$ac_exeext'
40755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40756 (eval $ac_try) 2>&5
40758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40759 (exit $ac_status); }; }; then
40762 echo "$as_me: failed program was:" >&5
40763 sed 's/^/| /' conftest.$ac_ext >&5
40767 rm -f conftest.err conftest.$ac_objext \
40768 conftest$ac_exeext conftest.$ac_ext
40773 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
40774 echo "${ECHO_T}$ol_cv_db_db_43" >&6
40776 if test $ol_cv_db_db_43 = yes ; then
40777 ol_cv_lib_db=-ldb-43
40781 if test $ol_cv_lib_db = no ; then
40782 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
40783 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
40784 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
40785 echo $ECHO_N "(cached) $ECHO_C" >&6
40790 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40792 cat >conftest.$ac_ext <<_ACEOF
40795 cat confdefs.h >>conftest.$ac_ext
40796 cat >>conftest.$ac_ext <<_ACEOF
40797 /* end confdefs.h. */
40799 #ifdef HAVE_DB_185_H
40800 # include <db_185.h>
40805 #ifndef DB_VERSION_MAJOR
40806 # define DB_VERSION_MAJOR 1
40810 #define NULL ((void*)0)
40817 #if DB_VERSION_MAJOR > 1
40820 int major, minor, patch;
40822 version = db_version( &major, &minor, &patch );
40824 if( major != DB_VERSION_MAJOR ||
40825 minor < DB_VERSION_MINOR )
40827 printf("Berkeley DB version mismatch\n"
40828 "\theader: %s\n\tlibrary: %s\n",
40829 DB_VERSION_STRING, version);
40835 #if DB_VERSION_MAJOR > 2
40836 db_env_create( NULL, 0 );
40837 #elif DB_VERSION_MAJOR > 1
40838 db_appexit( NULL );
40840 (void) dbopen( NULL, 0, 0, 0, NULL);
40847 rm -f conftest.$ac_objext conftest$ac_exeext
40848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40849 (eval $ac_link) 2>conftest.er1
40851 grep -v '^ *+' conftest.er1 >conftest.err
40853 cat conftest.err >&5
40854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40855 (exit $ac_status); } &&
40856 { ac_try='test -z "$ac_c_werror_flag"
40857 || test ! -s conftest.err'
40858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40859 (eval $ac_try) 2>&5
40861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40862 (exit $ac_status); }; } &&
40863 { ac_try='test -s conftest$ac_exeext'
40864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40865 (eval $ac_try) 2>&5
40867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40868 (exit $ac_status); }; }; then
40869 ol_cv_db_db_4_dot_3=yes
40871 echo "$as_me: failed program was:" >&5
40872 sed 's/^/| /' conftest.$ac_ext >&5
40874 ol_cv_db_db_4_dot_3=no
40876 rm -f conftest.err conftest.$ac_objext \
40877 conftest$ac_exeext conftest.$ac_ext
40882 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
40883 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
40885 if test $ol_cv_db_db_4_dot_3 = yes ; then
40886 ol_cv_lib_db=-ldb-4.3
40890 if test $ol_cv_lib_db = no ; then
40891 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
40892 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
40893 if test "${ol_cv_db_db_4_3+set}" = set; then
40894 echo $ECHO_N "(cached) $ECHO_C" >&6
40899 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40901 cat >conftest.$ac_ext <<_ACEOF
40904 cat confdefs.h >>conftest.$ac_ext
40905 cat >>conftest.$ac_ext <<_ACEOF
40906 /* end confdefs.h. */
40908 #ifdef HAVE_DB_185_H
40909 # include <db_185.h>
40914 #ifndef DB_VERSION_MAJOR
40915 # define DB_VERSION_MAJOR 1
40919 #define NULL ((void*)0)
40926 #if DB_VERSION_MAJOR > 1
40929 int major, minor, patch;
40931 version = db_version( &major, &minor, &patch );
40933 if( major != DB_VERSION_MAJOR ||
40934 minor < DB_VERSION_MINOR )
40936 printf("Berkeley DB version mismatch\n"
40937 "\theader: %s\n\tlibrary: %s\n",
40938 DB_VERSION_STRING, version);
40944 #if DB_VERSION_MAJOR > 2
40945 db_env_create( NULL, 0 );
40946 #elif DB_VERSION_MAJOR > 1
40947 db_appexit( NULL );
40949 (void) dbopen( NULL, 0, 0, 0, NULL);
40956 rm -f conftest.$ac_objext conftest$ac_exeext
40957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40958 (eval $ac_link) 2>conftest.er1
40960 grep -v '^ *+' conftest.er1 >conftest.err
40962 cat conftest.err >&5
40963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40964 (exit $ac_status); } &&
40965 { ac_try='test -z "$ac_c_werror_flag"
40966 || test ! -s conftest.err'
40967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40968 (eval $ac_try) 2>&5
40970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40971 (exit $ac_status); }; } &&
40972 { ac_try='test -s conftest$ac_exeext'
40973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40974 (eval $ac_try) 2>&5
40976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40977 (exit $ac_status); }; }; then
40978 ol_cv_db_db_4_3=yes
40980 echo "$as_me: failed program was:" >&5
40981 sed 's/^/| /' conftest.$ac_ext >&5
40985 rm -f conftest.err conftest.$ac_objext \
40986 conftest$ac_exeext conftest.$ac_ext
40991 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
40992 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
40994 if test $ol_cv_db_db_4_3 = yes ; then
40995 ol_cv_lib_db=-ldb-4-3
40999 if test $ol_cv_lib_db = no ; then
41000 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
41001 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
41002 if test "${ol_cv_db_db42+set}" = set; then
41003 echo $ECHO_N "(cached) $ECHO_C" >&6
41008 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41010 cat >conftest.$ac_ext <<_ACEOF
41013 cat confdefs.h >>conftest.$ac_ext
41014 cat >>conftest.$ac_ext <<_ACEOF
41015 /* end confdefs.h. */
41017 #ifdef HAVE_DB_185_H
41018 # include <db_185.h>
41023 #ifndef DB_VERSION_MAJOR
41024 # define DB_VERSION_MAJOR 1
41028 #define NULL ((void*)0)
41035 #if DB_VERSION_MAJOR > 1
41038 int major, minor, patch;
41040 version = db_version( &major, &minor, &patch );
41042 if( major != DB_VERSION_MAJOR ||
41043 minor < DB_VERSION_MINOR )
41045 printf("Berkeley DB version mismatch\n"
41046 "\theader: %s\n\tlibrary: %s\n",
41047 DB_VERSION_STRING, version);
41053 #if DB_VERSION_MAJOR > 2
41054 db_env_create( NULL, 0 );
41055 #elif DB_VERSION_MAJOR > 1
41056 db_appexit( NULL );
41058 (void) dbopen( NULL, 0, 0, 0, NULL);
41065 rm -f conftest.$ac_objext conftest$ac_exeext
41066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41067 (eval $ac_link) 2>conftest.er1
41069 grep -v '^ *+' conftest.er1 >conftest.err
41071 cat conftest.err >&5
41072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41073 (exit $ac_status); } &&
41074 { ac_try='test -z "$ac_c_werror_flag"
41075 || test ! -s conftest.err'
41076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41077 (eval $ac_try) 2>&5
41079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41080 (exit $ac_status); }; } &&
41081 { ac_try='test -s conftest$ac_exeext'
41082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41083 (eval $ac_try) 2>&5
41085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41086 (exit $ac_status); }; }; then
41089 echo "$as_me: failed program was:" >&5
41090 sed 's/^/| /' conftest.$ac_ext >&5
41094 rm -f conftest.err conftest.$ac_objext \
41095 conftest$ac_exeext conftest.$ac_ext
41100 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
41101 echo "${ECHO_T}$ol_cv_db_db42" >&6
41103 if test $ol_cv_db_db42 = yes ; then
41104 ol_cv_lib_db=-ldb42
41108 if test $ol_cv_lib_db = no ; then
41109 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
41110 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
41111 if test "${ol_cv_db_db_42+set}" = set; then
41112 echo $ECHO_N "(cached) $ECHO_C" >&6
41117 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41119 cat >conftest.$ac_ext <<_ACEOF
41122 cat confdefs.h >>conftest.$ac_ext
41123 cat >>conftest.$ac_ext <<_ACEOF
41124 /* end confdefs.h. */
41126 #ifdef HAVE_DB_185_H
41127 # include <db_185.h>
41132 #ifndef DB_VERSION_MAJOR
41133 # define DB_VERSION_MAJOR 1
41137 #define NULL ((void*)0)
41144 #if DB_VERSION_MAJOR > 1
41147 int major, minor, patch;
41149 version = db_version( &major, &minor, &patch );
41151 if( major != DB_VERSION_MAJOR ||
41152 minor < DB_VERSION_MINOR )
41154 printf("Berkeley DB version mismatch\n"
41155 "\theader: %s\n\tlibrary: %s\n",
41156 DB_VERSION_STRING, version);
41162 #if DB_VERSION_MAJOR > 2
41163 db_env_create( NULL, 0 );
41164 #elif DB_VERSION_MAJOR > 1
41165 db_appexit( NULL );
41167 (void) dbopen( NULL, 0, 0, 0, NULL);
41174 rm -f conftest.$ac_objext conftest$ac_exeext
41175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41176 (eval $ac_link) 2>conftest.er1
41178 grep -v '^ *+' conftest.er1 >conftest.err
41180 cat conftest.err >&5
41181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41182 (exit $ac_status); } &&
41183 { ac_try='test -z "$ac_c_werror_flag"
41184 || test ! -s conftest.err'
41185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41186 (eval $ac_try) 2>&5
41188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41189 (exit $ac_status); }; } &&
41190 { ac_try='test -s conftest$ac_exeext'
41191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41192 (eval $ac_try) 2>&5
41194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41195 (exit $ac_status); }; }; then
41198 echo "$as_me: failed program was:" >&5
41199 sed 's/^/| /' conftest.$ac_ext >&5
41203 rm -f conftest.err conftest.$ac_objext \
41204 conftest$ac_exeext conftest.$ac_ext
41209 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
41210 echo "${ECHO_T}$ol_cv_db_db_42" >&6
41212 if test $ol_cv_db_db_42 = yes ; then
41213 ol_cv_lib_db=-ldb-42
41217 if test $ol_cv_lib_db = no ; then
41218 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
41219 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
41220 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
41221 echo $ECHO_N "(cached) $ECHO_C" >&6
41226 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41228 cat >conftest.$ac_ext <<_ACEOF
41231 cat confdefs.h >>conftest.$ac_ext
41232 cat >>conftest.$ac_ext <<_ACEOF
41233 /* end confdefs.h. */
41235 #ifdef HAVE_DB_185_H
41236 # include <db_185.h>
41241 #ifndef DB_VERSION_MAJOR
41242 # define DB_VERSION_MAJOR 1
41246 #define NULL ((void*)0)
41253 #if DB_VERSION_MAJOR > 1
41256 int major, minor, patch;
41258 version = db_version( &major, &minor, &patch );
41260 if( major != DB_VERSION_MAJOR ||
41261 minor < DB_VERSION_MINOR )
41263 printf("Berkeley DB version mismatch\n"
41264 "\theader: %s\n\tlibrary: %s\n",
41265 DB_VERSION_STRING, version);
41271 #if DB_VERSION_MAJOR > 2
41272 db_env_create( NULL, 0 );
41273 #elif DB_VERSION_MAJOR > 1
41274 db_appexit( NULL );
41276 (void) dbopen( NULL, 0, 0, 0, NULL);
41283 rm -f conftest.$ac_objext conftest$ac_exeext
41284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41285 (eval $ac_link) 2>conftest.er1
41287 grep -v '^ *+' conftest.er1 >conftest.err
41289 cat conftest.err >&5
41290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41291 (exit $ac_status); } &&
41292 { ac_try='test -z "$ac_c_werror_flag"
41293 || test ! -s conftest.err'
41294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41295 (eval $ac_try) 2>&5
41297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41298 (exit $ac_status); }; } &&
41299 { ac_try='test -s conftest$ac_exeext'
41300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41301 (eval $ac_try) 2>&5
41303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41304 (exit $ac_status); }; }; then
41305 ol_cv_db_db_4_dot_2=yes
41307 echo "$as_me: failed program was:" >&5
41308 sed 's/^/| /' conftest.$ac_ext >&5
41310 ol_cv_db_db_4_dot_2=no
41312 rm -f conftest.err conftest.$ac_objext \
41313 conftest$ac_exeext conftest.$ac_ext
41318 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
41319 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
41321 if test $ol_cv_db_db_4_dot_2 = yes ; then
41322 ol_cv_lib_db=-ldb-4.2
41326 if test $ol_cv_lib_db = no ; then
41327 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
41328 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
41329 if test "${ol_cv_db_db_4_2+set}" = set; then
41330 echo $ECHO_N "(cached) $ECHO_C" >&6
41335 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41337 cat >conftest.$ac_ext <<_ACEOF
41340 cat confdefs.h >>conftest.$ac_ext
41341 cat >>conftest.$ac_ext <<_ACEOF
41342 /* end confdefs.h. */
41344 #ifdef HAVE_DB_185_H
41345 # include <db_185.h>
41350 #ifndef DB_VERSION_MAJOR
41351 # define DB_VERSION_MAJOR 1
41355 #define NULL ((void*)0)
41362 #if DB_VERSION_MAJOR > 1
41365 int major, minor, patch;
41367 version = db_version( &major, &minor, &patch );
41369 if( major != DB_VERSION_MAJOR ||
41370 minor < DB_VERSION_MINOR )
41372 printf("Berkeley DB version mismatch\n"
41373 "\theader: %s\n\tlibrary: %s\n",
41374 DB_VERSION_STRING, version);
41380 #if DB_VERSION_MAJOR > 2
41381 db_env_create( NULL, 0 );
41382 #elif DB_VERSION_MAJOR > 1
41383 db_appexit( NULL );
41385 (void) dbopen( NULL, 0, 0, 0, NULL);
41392 rm -f conftest.$ac_objext conftest$ac_exeext
41393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41394 (eval $ac_link) 2>conftest.er1
41396 grep -v '^ *+' conftest.er1 >conftest.err
41398 cat conftest.err >&5
41399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41400 (exit $ac_status); } &&
41401 { ac_try='test -z "$ac_c_werror_flag"
41402 || test ! -s conftest.err'
41403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41404 (eval $ac_try) 2>&5
41406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41407 (exit $ac_status); }; } &&
41408 { ac_try='test -s conftest$ac_exeext'
41409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41410 (eval $ac_try) 2>&5
41412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41413 (exit $ac_status); }; }; then
41414 ol_cv_db_db_4_2=yes
41416 echo "$as_me: failed program was:" >&5
41417 sed 's/^/| /' conftest.$ac_ext >&5
41421 rm -f conftest.err conftest.$ac_objext \
41422 conftest$ac_exeext conftest.$ac_ext
41427 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
41428 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
41430 if test $ol_cv_db_db_4_2 = yes ; then
41431 ol_cv_lib_db=-ldb-4-2
41435 if test $ol_cv_lib_db = no ; then
41436 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
41437 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
41438 if test "${ol_cv_db_db_4+set}" = set; then
41439 echo $ECHO_N "(cached) $ECHO_C" >&6
41444 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41446 cat >conftest.$ac_ext <<_ACEOF
41449 cat confdefs.h >>conftest.$ac_ext
41450 cat >>conftest.$ac_ext <<_ACEOF
41451 /* end confdefs.h. */
41453 #ifdef HAVE_DB_185_H
41454 # include <db_185.h>
41459 #ifndef DB_VERSION_MAJOR
41460 # define DB_VERSION_MAJOR 1
41464 #define NULL ((void*)0)
41471 #if DB_VERSION_MAJOR > 1
41474 int major, minor, patch;
41476 version = db_version( &major, &minor, &patch );
41478 if( major != DB_VERSION_MAJOR ||
41479 minor < DB_VERSION_MINOR )
41481 printf("Berkeley DB version mismatch\n"
41482 "\theader: %s\n\tlibrary: %s\n",
41483 DB_VERSION_STRING, version);
41489 #if DB_VERSION_MAJOR > 2
41490 db_env_create( NULL, 0 );
41491 #elif DB_VERSION_MAJOR > 1
41492 db_appexit( NULL );
41494 (void) dbopen( NULL, 0, 0, 0, NULL);
41501 rm -f conftest.$ac_objext conftest$ac_exeext
41502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41503 (eval $ac_link) 2>conftest.er1
41505 grep -v '^ *+' conftest.er1 >conftest.err
41507 cat conftest.err >&5
41508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41509 (exit $ac_status); } &&
41510 { ac_try='test -z "$ac_c_werror_flag"
41511 || test ! -s conftest.err'
41512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41513 (eval $ac_try) 2>&5
41515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41516 (exit $ac_status); }; } &&
41517 { ac_try='test -s conftest$ac_exeext'
41518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41519 (eval $ac_try) 2>&5
41521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41522 (exit $ac_status); }; }; then
41525 echo "$as_me: failed program was:" >&5
41526 sed 's/^/| /' conftest.$ac_ext >&5
41530 rm -f conftest.err conftest.$ac_objext \
41531 conftest$ac_exeext conftest.$ac_ext
41536 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
41537 echo "${ECHO_T}$ol_cv_db_db_4" >&6
41539 if test $ol_cv_db_db_4 = yes ; then
41540 ol_cv_lib_db=-ldb-4
41544 if test $ol_cv_lib_db = no ; then
41545 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
41546 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
41547 if test "${ol_cv_db_db4+set}" = set; then
41548 echo $ECHO_N "(cached) $ECHO_C" >&6
41553 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41555 cat >conftest.$ac_ext <<_ACEOF
41558 cat confdefs.h >>conftest.$ac_ext
41559 cat >>conftest.$ac_ext <<_ACEOF
41560 /* end confdefs.h. */
41562 #ifdef HAVE_DB_185_H
41563 # include <db_185.h>
41568 #ifndef DB_VERSION_MAJOR
41569 # define DB_VERSION_MAJOR 1
41573 #define NULL ((void*)0)
41580 #if DB_VERSION_MAJOR > 1
41583 int major, minor, patch;
41585 version = db_version( &major, &minor, &patch );
41587 if( major != DB_VERSION_MAJOR ||
41588 minor < DB_VERSION_MINOR )
41590 printf("Berkeley DB version mismatch\n"
41591 "\theader: %s\n\tlibrary: %s\n",
41592 DB_VERSION_STRING, version);
41598 #if DB_VERSION_MAJOR > 2
41599 db_env_create( NULL, 0 );
41600 #elif DB_VERSION_MAJOR > 1
41601 db_appexit( NULL );
41603 (void) dbopen( NULL, 0, 0, 0, NULL);
41610 rm -f conftest.$ac_objext conftest$ac_exeext
41611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41612 (eval $ac_link) 2>conftest.er1
41614 grep -v '^ *+' conftest.er1 >conftest.err
41616 cat conftest.err >&5
41617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41618 (exit $ac_status); } &&
41619 { ac_try='test -z "$ac_c_werror_flag"
41620 || test ! -s conftest.err'
41621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41622 (eval $ac_try) 2>&5
41624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41625 (exit $ac_status); }; } &&
41626 { ac_try='test -s conftest$ac_exeext'
41627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41628 (eval $ac_try) 2>&5
41630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41631 (exit $ac_status); }; }; then
41634 echo "$as_me: failed program was:" >&5
41635 sed 's/^/| /' conftest.$ac_ext >&5
41639 rm -f conftest.err conftest.$ac_objext \
41640 conftest$ac_exeext conftest.$ac_ext
41645 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
41646 echo "${ECHO_T}$ol_cv_db_db4" >&6
41648 if test $ol_cv_db_db4 = yes ; then
41653 if test $ol_cv_lib_db = no ; then
41654 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
41655 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
41656 if test "${ol_cv_db_db+set}" = set; then
41657 echo $ECHO_N "(cached) $ECHO_C" >&6
41662 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41664 cat >conftest.$ac_ext <<_ACEOF
41667 cat confdefs.h >>conftest.$ac_ext
41668 cat >>conftest.$ac_ext <<_ACEOF
41669 /* end confdefs.h. */
41671 #ifdef HAVE_DB_185_H
41672 # include <db_185.h>
41677 #ifndef DB_VERSION_MAJOR
41678 # define DB_VERSION_MAJOR 1
41682 #define NULL ((void*)0)
41689 #if DB_VERSION_MAJOR > 1
41692 int major, minor, patch;
41694 version = db_version( &major, &minor, &patch );
41696 if( major != DB_VERSION_MAJOR ||
41697 minor < DB_VERSION_MINOR )
41699 printf("Berkeley DB version mismatch\n"
41700 "\theader: %s\n\tlibrary: %s\n",
41701 DB_VERSION_STRING, version);
41707 #if DB_VERSION_MAJOR > 2
41708 db_env_create( NULL, 0 );
41709 #elif DB_VERSION_MAJOR > 1
41710 db_appexit( NULL );
41712 (void) dbopen( NULL, 0, 0, 0, NULL);
41719 rm -f conftest.$ac_objext conftest$ac_exeext
41720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41721 (eval $ac_link) 2>conftest.er1
41723 grep -v '^ *+' conftest.er1 >conftest.err
41725 cat conftest.err >&5
41726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41727 (exit $ac_status); } &&
41728 { ac_try='test -z "$ac_c_werror_flag"
41729 || test ! -s conftest.err'
41730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41731 (eval $ac_try) 2>&5
41733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41734 (exit $ac_status); }; } &&
41735 { ac_try='test -s conftest$ac_exeext'
41736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41737 (eval $ac_try) 2>&5
41739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41740 (exit $ac_status); }; }; then
41743 echo "$as_me: failed program was:" >&5
41744 sed 's/^/| /' conftest.$ac_ext >&5
41748 rm -f conftest.err conftest.$ac_objext \
41749 conftest$ac_exeext conftest.$ac_ext
41754 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
41755 echo "${ECHO_T}$ol_cv_db_db" >&6
41757 if test $ol_cv_db_db = yes ; then
41762 if test $ol_cv_lib_db = no ; then
41763 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
41764 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
41765 if test "${ol_cv_db_db41+set}" = set; then
41766 echo $ECHO_N "(cached) $ECHO_C" >&6
41771 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41773 cat >conftest.$ac_ext <<_ACEOF
41776 cat confdefs.h >>conftest.$ac_ext
41777 cat >>conftest.$ac_ext <<_ACEOF
41778 /* end confdefs.h. */
41780 #ifdef HAVE_DB_185_H
41781 # include <db_185.h>
41786 #ifndef DB_VERSION_MAJOR
41787 # define DB_VERSION_MAJOR 1
41791 #define NULL ((void*)0)
41798 #if DB_VERSION_MAJOR > 1
41801 int major, minor, patch;
41803 version = db_version( &major, &minor, &patch );
41805 if( major != DB_VERSION_MAJOR ||
41806 minor < DB_VERSION_MINOR )
41808 printf("Berkeley DB version mismatch\n"
41809 "\theader: %s\n\tlibrary: %s\n",
41810 DB_VERSION_STRING, version);
41816 #if DB_VERSION_MAJOR > 2
41817 db_env_create( NULL, 0 );
41818 #elif DB_VERSION_MAJOR > 1
41819 db_appexit( NULL );
41821 (void) dbopen( NULL, 0, 0, 0, NULL);
41828 rm -f conftest.$ac_objext conftest$ac_exeext
41829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41830 (eval $ac_link) 2>conftest.er1
41832 grep -v '^ *+' conftest.er1 >conftest.err
41834 cat conftest.err >&5
41835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41836 (exit $ac_status); } &&
41837 { ac_try='test -z "$ac_c_werror_flag"
41838 || test ! -s conftest.err'
41839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41840 (eval $ac_try) 2>&5
41842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41843 (exit $ac_status); }; } &&
41844 { ac_try='test -s conftest$ac_exeext'
41845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41846 (eval $ac_try) 2>&5
41848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41849 (exit $ac_status); }; }; then
41852 echo "$as_me: failed program was:" >&5
41853 sed 's/^/| /' conftest.$ac_ext >&5
41857 rm -f conftest.err conftest.$ac_objext \
41858 conftest$ac_exeext conftest.$ac_ext
41863 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
41864 echo "${ECHO_T}$ol_cv_db_db41" >&6
41866 if test $ol_cv_db_db41 = yes ; then
41867 ol_cv_lib_db=-ldb41
41871 if test $ol_cv_lib_db = no ; then
41872 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
41873 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
41874 if test "${ol_cv_db_db_41+set}" = set; then
41875 echo $ECHO_N "(cached) $ECHO_C" >&6
41880 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41882 cat >conftest.$ac_ext <<_ACEOF
41885 cat confdefs.h >>conftest.$ac_ext
41886 cat >>conftest.$ac_ext <<_ACEOF
41887 /* end confdefs.h. */
41889 #ifdef HAVE_DB_185_H
41890 # include <db_185.h>
41895 #ifndef DB_VERSION_MAJOR
41896 # define DB_VERSION_MAJOR 1
41900 #define NULL ((void*)0)
41907 #if DB_VERSION_MAJOR > 1
41910 int major, minor, patch;
41912 version = db_version( &major, &minor, &patch );
41914 if( major != DB_VERSION_MAJOR ||
41915 minor < DB_VERSION_MINOR )
41917 printf("Berkeley DB version mismatch\n"
41918 "\theader: %s\n\tlibrary: %s\n",
41919 DB_VERSION_STRING, version);
41925 #if DB_VERSION_MAJOR > 2
41926 db_env_create( NULL, 0 );
41927 #elif DB_VERSION_MAJOR > 1
41928 db_appexit( NULL );
41930 (void) dbopen( NULL, 0, 0, 0, NULL);
41937 rm -f conftest.$ac_objext conftest$ac_exeext
41938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41939 (eval $ac_link) 2>conftest.er1
41941 grep -v '^ *+' conftest.er1 >conftest.err
41943 cat conftest.err >&5
41944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41945 (exit $ac_status); } &&
41946 { ac_try='test -z "$ac_c_werror_flag"
41947 || test ! -s conftest.err'
41948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41949 (eval $ac_try) 2>&5
41951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41952 (exit $ac_status); }; } &&
41953 { ac_try='test -s conftest$ac_exeext'
41954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41955 (eval $ac_try) 2>&5
41957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41958 (exit $ac_status); }; }; then
41961 echo "$as_me: failed program was:" >&5
41962 sed 's/^/| /' conftest.$ac_ext >&5
41966 rm -f conftest.err conftest.$ac_objext \
41967 conftest$ac_exeext conftest.$ac_ext
41972 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
41973 echo "${ECHO_T}$ol_cv_db_db_41" >&6
41975 if test $ol_cv_db_db_41 = yes ; then
41976 ol_cv_lib_db=-ldb-41
41980 if test $ol_cv_lib_db = no ; then
41981 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
41982 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
41983 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
41984 echo $ECHO_N "(cached) $ECHO_C" >&6
41989 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41991 cat >conftest.$ac_ext <<_ACEOF
41994 cat confdefs.h >>conftest.$ac_ext
41995 cat >>conftest.$ac_ext <<_ACEOF
41996 /* end confdefs.h. */
41998 #ifdef HAVE_DB_185_H
41999 # include <db_185.h>
42004 #ifndef DB_VERSION_MAJOR
42005 # define DB_VERSION_MAJOR 1
42009 #define NULL ((void*)0)
42016 #if DB_VERSION_MAJOR > 1
42019 int major, minor, patch;
42021 version = db_version( &major, &minor, &patch );
42023 if( major != DB_VERSION_MAJOR ||
42024 minor < DB_VERSION_MINOR )
42026 printf("Berkeley DB version mismatch\n"
42027 "\theader: %s\n\tlibrary: %s\n",
42028 DB_VERSION_STRING, version);
42034 #if DB_VERSION_MAJOR > 2
42035 db_env_create( NULL, 0 );
42036 #elif DB_VERSION_MAJOR > 1
42037 db_appexit( NULL );
42039 (void) dbopen( NULL, 0, 0, 0, NULL);
42046 rm -f conftest.$ac_objext conftest$ac_exeext
42047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42048 (eval $ac_link) 2>conftest.er1
42050 grep -v '^ *+' conftest.er1 >conftest.err
42052 cat conftest.err >&5
42053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42054 (exit $ac_status); } &&
42055 { ac_try='test -z "$ac_c_werror_flag"
42056 || test ! -s conftest.err'
42057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42058 (eval $ac_try) 2>&5
42060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42061 (exit $ac_status); }; } &&
42062 { ac_try='test -s conftest$ac_exeext'
42063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42064 (eval $ac_try) 2>&5
42066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42067 (exit $ac_status); }; }; then
42068 ol_cv_db_db_4_dot_1=yes
42070 echo "$as_me: failed program was:" >&5
42071 sed 's/^/| /' conftest.$ac_ext >&5
42073 ol_cv_db_db_4_dot_1=no
42075 rm -f conftest.err conftest.$ac_objext \
42076 conftest$ac_exeext conftest.$ac_ext
42081 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
42082 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
42084 if test $ol_cv_db_db_4_dot_1 = yes ; then
42085 ol_cv_lib_db=-ldb-4.1
42089 if test $ol_cv_lib_db = no ; then
42090 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
42091 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
42092 if test "${ol_cv_db_db_4_1+set}" = set; then
42093 echo $ECHO_N "(cached) $ECHO_C" >&6
42098 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42100 cat >conftest.$ac_ext <<_ACEOF
42103 cat confdefs.h >>conftest.$ac_ext
42104 cat >>conftest.$ac_ext <<_ACEOF
42105 /* end confdefs.h. */
42107 #ifdef HAVE_DB_185_H
42108 # include <db_185.h>
42113 #ifndef DB_VERSION_MAJOR
42114 # define DB_VERSION_MAJOR 1
42118 #define NULL ((void*)0)
42125 #if DB_VERSION_MAJOR > 1
42128 int major, minor, patch;
42130 version = db_version( &major, &minor, &patch );
42132 if( major != DB_VERSION_MAJOR ||
42133 minor < DB_VERSION_MINOR )
42135 printf("Berkeley DB version mismatch\n"
42136 "\theader: %s\n\tlibrary: %s\n",
42137 DB_VERSION_STRING, version);
42143 #if DB_VERSION_MAJOR > 2
42144 db_env_create( NULL, 0 );
42145 #elif DB_VERSION_MAJOR > 1
42146 db_appexit( NULL );
42148 (void) dbopen( NULL, 0, 0, 0, NULL);
42155 rm -f conftest.$ac_objext conftest$ac_exeext
42156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42157 (eval $ac_link) 2>conftest.er1
42159 grep -v '^ *+' conftest.er1 >conftest.err
42161 cat conftest.err >&5
42162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42163 (exit $ac_status); } &&
42164 { ac_try='test -z "$ac_c_werror_flag"
42165 || test ! -s conftest.err'
42166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42167 (eval $ac_try) 2>&5
42169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42170 (exit $ac_status); }; } &&
42171 { ac_try='test -s conftest$ac_exeext'
42172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42173 (eval $ac_try) 2>&5
42175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42176 (exit $ac_status); }; }; then
42177 ol_cv_db_db_4_1=yes
42179 echo "$as_me: failed program was:" >&5
42180 sed 's/^/| /' conftest.$ac_ext >&5
42184 rm -f conftest.err conftest.$ac_objext \
42185 conftest$ac_exeext conftest.$ac_ext
42190 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
42191 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
42193 if test $ol_cv_db_db_4_1 = yes ; then
42194 ol_cv_lib_db=-ldb-4-1
42198 if test $ol_cv_lib_db = no ; then
42199 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
42200 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
42201 if test "${ol_cv_db_db3+set}" = set; then
42202 echo $ECHO_N "(cached) $ECHO_C" >&6
42207 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42209 cat >conftest.$ac_ext <<_ACEOF
42212 cat confdefs.h >>conftest.$ac_ext
42213 cat >>conftest.$ac_ext <<_ACEOF
42214 /* end confdefs.h. */
42216 #ifdef HAVE_DB_185_H
42217 # include <db_185.h>
42222 #ifndef DB_VERSION_MAJOR
42223 # define DB_VERSION_MAJOR 1
42227 #define NULL ((void*)0)
42234 #if DB_VERSION_MAJOR > 1
42237 int major, minor, patch;
42239 version = db_version( &major, &minor, &patch );
42241 if( major != DB_VERSION_MAJOR ||
42242 minor < DB_VERSION_MINOR )
42244 printf("Berkeley DB version mismatch\n"
42245 "\theader: %s\n\tlibrary: %s\n",
42246 DB_VERSION_STRING, version);
42252 #if DB_VERSION_MAJOR > 2
42253 db_env_create( NULL, 0 );
42254 #elif DB_VERSION_MAJOR > 1
42255 db_appexit( NULL );
42257 (void) dbopen( NULL, 0, 0, 0, NULL);
42264 rm -f conftest.$ac_objext conftest$ac_exeext
42265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42266 (eval $ac_link) 2>conftest.er1
42268 grep -v '^ *+' conftest.er1 >conftest.err
42270 cat conftest.err >&5
42271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42272 (exit $ac_status); } &&
42273 { ac_try='test -z "$ac_c_werror_flag"
42274 || test ! -s conftest.err'
42275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42276 (eval $ac_try) 2>&5
42278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42279 (exit $ac_status); }; } &&
42280 { ac_try='test -s conftest$ac_exeext'
42281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42282 (eval $ac_try) 2>&5
42284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42285 (exit $ac_status); }; }; then
42288 echo "$as_me: failed program was:" >&5
42289 sed 's/^/| /' conftest.$ac_ext >&5
42293 rm -f conftest.err conftest.$ac_objext \
42294 conftest$ac_exeext conftest.$ac_ext
42299 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
42300 echo "${ECHO_T}$ol_cv_db_db3" >&6
42302 if test $ol_cv_db_db3 = yes ; then
42307 if test $ol_cv_lib_db = no ; then
42308 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
42309 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
42310 if test "${ol_cv_db_db_3+set}" = set; then
42311 echo $ECHO_N "(cached) $ECHO_C" >&6
42316 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42318 cat >conftest.$ac_ext <<_ACEOF
42321 cat confdefs.h >>conftest.$ac_ext
42322 cat >>conftest.$ac_ext <<_ACEOF
42323 /* end confdefs.h. */
42325 #ifdef HAVE_DB_185_H
42326 # include <db_185.h>
42331 #ifndef DB_VERSION_MAJOR
42332 # define DB_VERSION_MAJOR 1
42336 #define NULL ((void*)0)
42343 #if DB_VERSION_MAJOR > 1
42346 int major, minor, patch;
42348 version = db_version( &major, &minor, &patch );
42350 if( major != DB_VERSION_MAJOR ||
42351 minor < DB_VERSION_MINOR )
42353 printf("Berkeley DB version mismatch\n"
42354 "\theader: %s\n\tlibrary: %s\n",
42355 DB_VERSION_STRING, version);
42361 #if DB_VERSION_MAJOR > 2
42362 db_env_create( NULL, 0 );
42363 #elif DB_VERSION_MAJOR > 1
42364 db_appexit( NULL );
42366 (void) dbopen( NULL, 0, 0, 0, NULL);
42373 rm -f conftest.$ac_objext conftest$ac_exeext
42374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42375 (eval $ac_link) 2>conftest.er1
42377 grep -v '^ *+' conftest.er1 >conftest.err
42379 cat conftest.err >&5
42380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42381 (exit $ac_status); } &&
42382 { ac_try='test -z "$ac_c_werror_flag"
42383 || test ! -s conftest.err'
42384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42385 (eval $ac_try) 2>&5
42387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42388 (exit $ac_status); }; } &&
42389 { ac_try='test -s conftest$ac_exeext'
42390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42391 (eval $ac_try) 2>&5
42393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42394 (exit $ac_status); }; }; then
42397 echo "$as_me: failed program was:" >&5
42398 sed 's/^/| /' conftest.$ac_ext >&5
42402 rm -f conftest.err conftest.$ac_objext \
42403 conftest$ac_exeext conftest.$ac_ext
42408 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
42409 echo "${ECHO_T}$ol_cv_db_db_3" >&6
42411 if test $ol_cv_db_db_3 = yes ; then
42412 ol_cv_lib_db=-ldb-3
42416 if test $ol_cv_lib_db = no ; then
42417 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
42418 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
42419 if test "${ol_cv_db_db2+set}" = set; then
42420 echo $ECHO_N "(cached) $ECHO_C" >&6
42425 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42427 cat >conftest.$ac_ext <<_ACEOF
42430 cat confdefs.h >>conftest.$ac_ext
42431 cat >>conftest.$ac_ext <<_ACEOF
42432 /* end confdefs.h. */
42434 #ifdef HAVE_DB_185_H
42435 # include <db_185.h>
42440 #ifndef DB_VERSION_MAJOR
42441 # define DB_VERSION_MAJOR 1
42445 #define NULL ((void*)0)
42452 #if DB_VERSION_MAJOR > 1
42455 int major, minor, patch;
42457 version = db_version( &major, &minor, &patch );
42459 if( major != DB_VERSION_MAJOR ||
42460 minor < DB_VERSION_MINOR )
42462 printf("Berkeley DB version mismatch\n"
42463 "\theader: %s\n\tlibrary: %s\n",
42464 DB_VERSION_STRING, version);
42470 #if DB_VERSION_MAJOR > 2
42471 db_env_create( NULL, 0 );
42472 #elif DB_VERSION_MAJOR > 1
42473 db_appexit( NULL );
42475 (void) dbopen( NULL, 0, 0, 0, NULL);
42482 rm -f conftest.$ac_objext conftest$ac_exeext
42483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42484 (eval $ac_link) 2>conftest.er1
42486 grep -v '^ *+' conftest.er1 >conftest.err
42488 cat conftest.err >&5
42489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42490 (exit $ac_status); } &&
42491 { ac_try='test -z "$ac_c_werror_flag"
42492 || test ! -s conftest.err'
42493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42494 (eval $ac_try) 2>&5
42496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42497 (exit $ac_status); }; } &&
42498 { ac_try='test -s conftest$ac_exeext'
42499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42500 (eval $ac_try) 2>&5
42502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42503 (exit $ac_status); }; }; then
42506 echo "$as_me: failed program was:" >&5
42507 sed 's/^/| /' conftest.$ac_ext >&5
42511 rm -f conftest.err conftest.$ac_objext \
42512 conftest$ac_exeext conftest.$ac_ext
42517 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
42518 echo "${ECHO_T}$ol_cv_db_db2" >&6
42520 if test $ol_cv_db_db2 = yes ; then
42525 if test $ol_cv_lib_db = no ; then
42526 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
42527 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
42528 if test "${ol_cv_db_db_2+set}" = set; then
42529 echo $ECHO_N "(cached) $ECHO_C" >&6
42534 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42536 cat >conftest.$ac_ext <<_ACEOF
42539 cat confdefs.h >>conftest.$ac_ext
42540 cat >>conftest.$ac_ext <<_ACEOF
42541 /* end confdefs.h. */
42543 #ifdef HAVE_DB_185_H
42544 # include <db_185.h>
42549 #ifndef DB_VERSION_MAJOR
42550 # define DB_VERSION_MAJOR 1
42554 #define NULL ((void*)0)
42561 #if DB_VERSION_MAJOR > 1
42564 int major, minor, patch;
42566 version = db_version( &major, &minor, &patch );
42568 if( major != DB_VERSION_MAJOR ||
42569 minor < DB_VERSION_MINOR )
42571 printf("Berkeley DB version mismatch\n"
42572 "\theader: %s\n\tlibrary: %s\n",
42573 DB_VERSION_STRING, version);
42579 #if DB_VERSION_MAJOR > 2
42580 db_env_create( NULL, 0 );
42581 #elif DB_VERSION_MAJOR > 1
42582 db_appexit( NULL );
42584 (void) dbopen( NULL, 0, 0, 0, NULL);
42591 rm -f conftest.$ac_objext conftest$ac_exeext
42592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42593 (eval $ac_link) 2>conftest.er1
42595 grep -v '^ *+' conftest.er1 >conftest.err
42597 cat conftest.err >&5
42598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42599 (exit $ac_status); } &&
42600 { ac_try='test -z "$ac_c_werror_flag"
42601 || test ! -s conftest.err'
42602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42603 (eval $ac_try) 2>&5
42605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42606 (exit $ac_status); }; } &&
42607 { ac_try='test -s conftest$ac_exeext'
42608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42609 (eval $ac_try) 2>&5
42611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42612 (exit $ac_status); }; }; then
42615 echo "$as_me: failed program was:" >&5
42616 sed 's/^/| /' conftest.$ac_ext >&5
42620 rm -f conftest.err conftest.$ac_objext \
42621 conftest$ac_exeext conftest.$ac_ext
42626 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
42627 echo "${ECHO_T}$ol_cv_db_db_2" >&6
42629 if test $ol_cv_db_db_2 = yes ; then
42630 ol_cv_lib_db=-ldb-2
42634 if test $ol_cv_lib_db = no ; then
42635 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
42636 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
42637 if test "${ol_cv_db_db1+set}" = set; then
42638 echo $ECHO_N "(cached) $ECHO_C" >&6
42643 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42645 cat >conftest.$ac_ext <<_ACEOF
42648 cat confdefs.h >>conftest.$ac_ext
42649 cat >>conftest.$ac_ext <<_ACEOF
42650 /* end confdefs.h. */
42652 #ifdef HAVE_DB_185_H
42653 # include <db_185.h>
42658 #ifndef DB_VERSION_MAJOR
42659 # define DB_VERSION_MAJOR 1
42663 #define NULL ((void*)0)
42670 #if DB_VERSION_MAJOR > 1
42673 int major, minor, patch;
42675 version = db_version( &major, &minor, &patch );
42677 if( major != DB_VERSION_MAJOR ||
42678 minor < DB_VERSION_MINOR )
42680 printf("Berkeley DB version mismatch\n"
42681 "\theader: %s\n\tlibrary: %s\n",
42682 DB_VERSION_STRING, version);
42688 #if DB_VERSION_MAJOR > 2
42689 db_env_create( NULL, 0 );
42690 #elif DB_VERSION_MAJOR > 1
42691 db_appexit( NULL );
42693 (void) dbopen( NULL, 0, 0, 0, NULL);
42700 rm -f conftest.$ac_objext conftest$ac_exeext
42701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42702 (eval $ac_link) 2>conftest.er1
42704 grep -v '^ *+' conftest.er1 >conftest.err
42706 cat conftest.err >&5
42707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42708 (exit $ac_status); } &&
42709 { ac_try='test -z "$ac_c_werror_flag"
42710 || test ! -s conftest.err'
42711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42712 (eval $ac_try) 2>&5
42714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42715 (exit $ac_status); }; } &&
42716 { ac_try='test -s conftest$ac_exeext'
42717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42718 (eval $ac_try) 2>&5
42720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42721 (exit $ac_status); }; }; then
42724 echo "$as_me: failed program was:" >&5
42725 sed 's/^/| /' conftest.$ac_ext >&5
42729 rm -f conftest.err conftest.$ac_objext \
42730 conftest$ac_exeext conftest.$ac_ext
42735 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
42736 echo "${ECHO_T}$ol_cv_db_db1" >&6
42738 if test $ol_cv_db_db1 = yes ; then
42743 if test $ol_cv_lib_db = no ; then
42744 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
42745 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
42746 if test "${ol_cv_db_db_1+set}" = set; then
42747 echo $ECHO_N "(cached) $ECHO_C" >&6
42752 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42754 cat >conftest.$ac_ext <<_ACEOF
42757 cat confdefs.h >>conftest.$ac_ext
42758 cat >>conftest.$ac_ext <<_ACEOF
42759 /* end confdefs.h. */
42761 #ifdef HAVE_DB_185_H
42762 # include <db_185.h>
42767 #ifndef DB_VERSION_MAJOR
42768 # define DB_VERSION_MAJOR 1
42772 #define NULL ((void*)0)
42779 #if DB_VERSION_MAJOR > 1
42782 int major, minor, patch;
42784 version = db_version( &major, &minor, &patch );
42786 if( major != DB_VERSION_MAJOR ||
42787 minor < DB_VERSION_MINOR )
42789 printf("Berkeley DB version mismatch\n"
42790 "\theader: %s\n\tlibrary: %s\n",
42791 DB_VERSION_STRING, version);
42797 #if DB_VERSION_MAJOR > 2
42798 db_env_create( NULL, 0 );
42799 #elif DB_VERSION_MAJOR > 1
42800 db_appexit( NULL );
42802 (void) dbopen( NULL, 0, 0, 0, NULL);
42809 rm -f conftest.$ac_objext conftest$ac_exeext
42810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42811 (eval $ac_link) 2>conftest.er1
42813 grep -v '^ *+' conftest.er1 >conftest.err
42815 cat conftest.err >&5
42816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42817 (exit $ac_status); } &&
42818 { ac_try='test -z "$ac_c_werror_flag"
42819 || test ! -s conftest.err'
42820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42821 (eval $ac_try) 2>&5
42823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42824 (exit $ac_status); }; } &&
42825 { ac_try='test -s conftest$ac_exeext'
42826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42827 (eval $ac_try) 2>&5
42829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42830 (exit $ac_status); }; }; then
42833 echo "$as_me: failed program was:" >&5
42834 sed 's/^/| /' conftest.$ac_ext >&5
42838 rm -f conftest.err conftest.$ac_objext \
42839 conftest$ac_exeext conftest.$ac_ext
42844 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
42845 echo "${ECHO_T}$ol_cv_db_db_1" >&6
42847 if test $ol_cv_db_db_1 = yes ; then
42848 ol_cv_lib_db=-ldb-1
42853 if test "$ol_cv_lib_db" != no ; then
42854 ol_cv_berkeley_db=yes
42855 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
42856 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
42857 if test "${ol_cv_berkeley_db_version+set}" = set; then
42858 echo $ECHO_N "(cached) $ECHO_C" >&6
42862 LIBS="$LTHREAD_LIBS $LIBS"
42863 if test $ol_cv_lib_db != yes ; then
42864 LIBS="$ol_cv_lib_db $LIBS"
42867 if test "$cross_compiling" = yes; then
42868 ol_cv_berkeley_db_version=cross
42870 cat >conftest.$ac_ext <<_ACEOF
42873 cat confdefs.h >>conftest.$ac_ext
42874 cat >>conftest.$ac_ext <<_ACEOF
42875 /* end confdefs.h. */
42877 #ifdef HAVE_DB_185_H
42882 #ifndef DB_VERSION_MAJOR
42883 # define DB_VERSION_MAJOR 1
42886 #define NULL ((void *)0)
42890 #if DB_VERSION_MAJOR > 1
42892 int major, minor, patch;
42894 version = db_version( &major, &minor, &patch );
42896 if( major != DB_VERSION_MAJOR ||
42897 minor != DB_VERSION_MINOR ||
42898 patch != DB_VERSION_PATCH )
42900 printf("Berkeley DB version mismatch\n"
42901 "\theader: %s\n\tlibrary: %s\n",
42902 DB_VERSION_STRING, version);
42910 rm -f conftest$ac_exeext
42911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42912 (eval $ac_link) 2>&5
42914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42915 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42917 (eval $ac_try) 2>&5
42919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42920 (exit $ac_status); }; }; then
42921 ol_cv_berkeley_db_version=yes
42923 echo "$as_me: program exited with status $ac_status" >&5
42924 echo "$as_me: failed program was:" >&5
42925 sed 's/^/| /' conftest.$ac_ext >&5
42927 ( exit $ac_status )
42928 ol_cv_berkeley_db_version=no
42930 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42936 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
42937 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
42939 if test $ol_cv_berkeley_db_version = no ; then
42940 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
42941 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
42942 { (exit 1); exit 1; }; }
42945 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
42946 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
42947 if test "${ol_cv_berkeley_db_thread+set}" = set; then
42948 echo $ECHO_N "(cached) $ECHO_C" >&6
42952 LIBS="$LTHREAD_LIBS $LIBS"
42953 if test $ol_cv_lib_db != yes ; then
42954 LIBS="$ol_cv_lib_db $LIBS"
42957 if test "$cross_compiling" = yes; then
42958 ol_cv_berkeley_db_thread=cross
42960 cat >conftest.$ac_ext <<_ACEOF
42963 cat confdefs.h >>conftest.$ac_ext
42964 cat >>conftest.$ac_ext <<_ACEOF
42965 /* end confdefs.h. */
42967 #ifdef HAVE_DB_185_H
42973 #define NULL ((void *)0)
42978 u_int32_t flags = DB_CREATE |
42984 #if DB_VERSION_MAJOR > 2
42985 DB_ENV *env = NULL;
42987 rc = db_env_create( &env, 0 );
42989 flags |= DB_INIT_MPOOL;
42990 #ifdef DB_MPOOL_PRIVATE
42991 flags |= DB_MPOOL_PRIVATE;
42995 printf("BerkeleyDB: %s\n", db_strerror(rc) );
42999 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
43000 rc = env->open( env, NULL, flags, 0 );
43002 rc = env->open( env, NULL, NULL, flags, 0 );
43006 rc = env->close( env, 0 );
43010 printf("BerkeleyDB: %s\n", db_strerror(rc) );
43016 memset( &env, '\0', sizeof(env) );
43018 rc = db_appinit( NULL, NULL, &env, flags );
43021 db_appexit( &env );
43024 unlink("__db_mpool.share");
43025 unlink("__db_lock.share");
43031 rm -f conftest$ac_exeext
43032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43033 (eval $ac_link) 2>&5
43035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43036 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43038 (eval $ac_try) 2>&5
43040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43041 (exit $ac_status); }; }; then
43042 ol_cv_berkeley_db_thread=yes
43044 echo "$as_me: program exited with status $ac_status" >&5
43045 echo "$as_me: failed program was:" >&5
43046 sed 's/^/| /' conftest.$ac_ext >&5
43048 ( exit $ac_status )
43049 ol_cv_berkeley_db_thread=no
43051 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43057 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
43058 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
43060 if test $ol_cv_berkeley_db_thread != no ; then
43062 cat >>confdefs.h <<\_ACEOF
43063 #define HAVE_BERKELEY_DB_THREAD 1
43073 if test $ol_cv_berkeley_db != no ; then
43075 cat >>confdefs.h <<\_ACEOF
43076 #define HAVE_BERKELEY_DB 1
43080 ol_link_ldbm=berkeley
43081 ol_with_ldbm_api=berkeley
43083 if test $ol_with_ldbm_type = hash ; then
43085 cat >>confdefs.h <<\_ACEOF
43086 #define LDBM_USE_DBHASH 1
43091 cat >>confdefs.h <<\_ACEOF
43092 #define LDBM_USE_DBBTREE 1
43097 if test $ol_cv_lib_db != yes ; then
43098 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
43103 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
43104 if test $ol_link_ldbm != berkeley ; then
43105 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
43106 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
43107 { (exit 1); exit 1; }; }
43109 echo "$as_me:$LINENO: checking Berkeley DB version for BDB backend" >&5
43110 echo $ECHO_N "checking Berkeley DB version for BDB backend... $ECHO_C" >&6
43111 if test "${ol_cv_bdb_compat+set}" = set; then
43112 echo $ECHO_N "(cached) $ECHO_C" >&6
43115 cat >conftest.$ac_ext <<_ACEOF
43118 cat confdefs.h >>conftest.$ac_ext
43119 cat >>conftest.$ac_ext <<_ACEOF
43120 /* end confdefs.h. */
43124 /* this check could be improved */
43125 #ifndef DB_VERSION_MAJOR
43126 # define DB_VERSION_MAJOR 1
43128 #ifndef DB_VERSION_MINOR
43129 # define DB_VERSION_MINOR 0
43132 /* require 4.2 or later */
43133 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
43134 __db_version_compat
43138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43139 $EGREP "__db_version_compat" >/dev/null 2>&1; then
43140 ol_cv_bdb_compat=yes
43142 ol_cv_bdb_compat=no
43147 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
43148 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
43151 if test $ol_cv_bdb_compat != yes ; then
43152 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
43153 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
43154 { (exit 1); exit 1; }; }
43159 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
43160 { echo "$as_me:$LINENO: WARNING: Could not find LDBM with BTREE support" >&5
43161 echo "$as_me: WARNING: Could not find LDBM with BTREE support" >&2;}
43162 ol_with_ldbm_api=none
43165 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
43166 echo "$as_me:$LINENO: checking for MDBM library" >&5
43167 echo $ECHO_N "checking for MDBM library... $ECHO_C" >&6
43168 if test "${ol_cv_lib_mdbm+set}" = set; then
43169 echo $ECHO_N "(cached) $ECHO_C" >&6
43172 echo "$as_me:$LINENO: checking for mdbm_set_chain" >&5
43173 echo $ECHO_N "checking for mdbm_set_chain... $ECHO_C" >&6
43174 if test "${ac_cv_func_mdbm_set_chain+set}" = set; then
43175 echo $ECHO_N "(cached) $ECHO_C" >&6
43177 cat >conftest.$ac_ext <<_ACEOF
43180 cat confdefs.h >>conftest.$ac_ext
43181 cat >>conftest.$ac_ext <<_ACEOF
43182 /* end confdefs.h. */
43183 /* Define mdbm_set_chain to an innocuous variant, in case <limits.h> declares mdbm_set_chain.
43184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43185 #define mdbm_set_chain innocuous_mdbm_set_chain
43187 /* System header to define __stub macros and hopefully few prototypes,
43188 which can conflict with char mdbm_set_chain (); below.
43189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43190 <limits.h> exists even on freestanding compilers. */
43193 # include <limits.h>
43195 # include <assert.h>
43198 #undef mdbm_set_chain
43200 /* Override any gcc2 internal prototype to avoid an error. */
43205 /* We use char because int might match the return type of a gcc2
43206 builtin and then its argument prototype would still apply. */
43207 char mdbm_set_chain ();
43208 /* The GNU C library defines this for functions which it implements
43209 to always fail with ENOSYS. Some functions are actually named
43210 something starting with __ and the normal name is an alias. */
43211 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
43214 char (*f) () = mdbm_set_chain;
43223 return f != mdbm_set_chain;
43228 rm -f conftest.$ac_objext conftest$ac_exeext
43229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43230 (eval $ac_link) 2>conftest.er1
43232 grep -v '^ *+' conftest.er1 >conftest.err
43234 cat conftest.err >&5
43235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43236 (exit $ac_status); } &&
43237 { ac_try='test -z "$ac_c_werror_flag"
43238 || test ! -s conftest.err'
43239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43240 (eval $ac_try) 2>&5
43242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43243 (exit $ac_status); }; } &&
43244 { ac_try='test -s conftest$ac_exeext'
43245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43246 (eval $ac_try) 2>&5
43248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43249 (exit $ac_status); }; }; then
43250 ac_cv_func_mdbm_set_chain=yes
43252 echo "$as_me: failed program was:" >&5
43253 sed 's/^/| /' conftest.$ac_ext >&5
43255 ac_cv_func_mdbm_set_chain=no
43257 rm -f conftest.err conftest.$ac_objext \
43258 conftest$ac_exeext conftest.$ac_ext
43260 echo "$as_me:$LINENO: result: $ac_cv_func_mdbm_set_chain" >&5
43261 echo "${ECHO_T}$ac_cv_func_mdbm_set_chain" >&6
43262 if test $ac_cv_func_mdbm_set_chain = yes; then
43266 echo "$as_me:$LINENO: checking for mdbm_set_chain in -lmdbm" >&5
43267 echo $ECHO_N "checking for mdbm_set_chain in -lmdbm... $ECHO_C" >&6
43268 if test "${ac_cv_lib_mdbm_mdbm_set_chain+set}" = set; then
43269 echo $ECHO_N "(cached) $ECHO_C" >&6
43271 ac_check_lib_save_LIBS=$LIBS
43272 LIBS="-lmdbm $LIBS"
43273 cat >conftest.$ac_ext <<_ACEOF
43276 cat confdefs.h >>conftest.$ac_ext
43277 cat >>conftest.$ac_ext <<_ACEOF
43278 /* end confdefs.h. */
43280 /* Override any gcc2 internal prototype to avoid an error. */
43284 /* We use char because int might match the return type of a gcc2
43285 builtin and then its argument prototype would still apply. */
43286 char mdbm_set_chain ();
43295 rm -f conftest.$ac_objext conftest$ac_exeext
43296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43297 (eval $ac_link) 2>conftest.er1
43299 grep -v '^ *+' conftest.er1 >conftest.err
43301 cat conftest.err >&5
43302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43303 (exit $ac_status); } &&
43304 { ac_try='test -z "$ac_c_werror_flag"
43305 || test ! -s conftest.err'
43306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43307 (eval $ac_try) 2>&5
43309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43310 (exit $ac_status); }; } &&
43311 { ac_try='test -s conftest$ac_exeext'
43312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43313 (eval $ac_try) 2>&5
43315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43316 (exit $ac_status); }; }; then
43317 ac_cv_lib_mdbm_mdbm_set_chain=yes
43319 echo "$as_me: failed program was:" >&5
43320 sed 's/^/| /' conftest.$ac_ext >&5
43322 ac_cv_lib_mdbm_mdbm_set_chain=no
43324 rm -f conftest.err conftest.$ac_objext \
43325 conftest$ac_exeext conftest.$ac_ext
43326 LIBS=$ac_check_lib_save_LIBS
43328 echo "$as_me:$LINENO: result: $ac_cv_lib_mdbm_mdbm_set_chain" >&5
43329 echo "${ECHO_T}$ac_cv_lib_mdbm_mdbm_set_chain" >&6
43330 if test $ac_cv_lib_mdbm_mdbm_set_chain = yes; then
43331 ol_cv_lib_mdbm=-lmdbm
43342 echo "$as_me:$LINENO: result: $ol_cv_lib_mdbm" >&5
43343 echo "${ECHO_T}$ol_cv_lib_mdbm" >&6
43347 for ac_header in mdbm.h
43349 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43351 echo "$as_me:$LINENO: checking for $ac_header" >&5
43352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43354 echo $ECHO_N "(cached) $ECHO_C" >&6
43356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43357 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43359 # Is the header compilable?
43360 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43361 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43362 cat >conftest.$ac_ext <<_ACEOF
43365 cat confdefs.h >>conftest.$ac_ext
43366 cat >>conftest.$ac_ext <<_ACEOF
43367 /* end confdefs.h. */
43368 $ac_includes_default
43369 #include <$ac_header>
43371 rm -f conftest.$ac_objext
43372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43373 (eval $ac_compile) 2>conftest.er1
43375 grep -v '^ *+' conftest.er1 >conftest.err
43377 cat conftest.err >&5
43378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43379 (exit $ac_status); } &&
43380 { ac_try='test -z "$ac_c_werror_flag"
43381 || test ! -s conftest.err'
43382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43383 (eval $ac_try) 2>&5
43385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43386 (exit $ac_status); }; } &&
43387 { ac_try='test -s conftest.$ac_objext'
43388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43389 (eval $ac_try) 2>&5
43391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43392 (exit $ac_status); }; }; then
43393 ac_header_compiler=yes
43395 echo "$as_me: failed program was:" >&5
43396 sed 's/^/| /' conftest.$ac_ext >&5
43398 ac_header_compiler=no
43400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43401 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43402 echo "${ECHO_T}$ac_header_compiler" >&6
43404 # Is the header present?
43405 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43406 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43407 cat >conftest.$ac_ext <<_ACEOF
43410 cat confdefs.h >>conftest.$ac_ext
43411 cat >>conftest.$ac_ext <<_ACEOF
43412 /* end confdefs.h. */
43413 #include <$ac_header>
43415 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43416 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43418 grep -v '^ *+' conftest.er1 >conftest.err
43420 cat conftest.err >&5
43421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43422 (exit $ac_status); } >/dev/null; then
43423 if test -s conftest.err; then
43424 ac_cpp_err=$ac_c_preproc_warn_flag
43425 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43432 if test -z "$ac_cpp_err"; then
43433 ac_header_preproc=yes
43435 echo "$as_me: failed program was:" >&5
43436 sed 's/^/| /' conftest.$ac_ext >&5
43438 ac_header_preproc=no
43440 rm -f conftest.err conftest.$ac_ext
43441 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43442 echo "${ECHO_T}$ac_header_preproc" >&6
43444 # So? What about this header?
43445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43447 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43448 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43450 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43451 ac_header_preproc=yes
43454 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43455 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43456 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43457 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43458 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43459 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43460 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43461 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
43462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43463 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43464 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43465 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43468 ## ------------------------------------------ ##
43469 ## Report this to the AC_PACKAGE_NAME lists. ##
43470 ## ------------------------------------------ ##
43473 sed "s/^/$as_me: WARNING: /" >&2
43476 echo "$as_me:$LINENO: checking for $ac_header" >&5
43477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43479 echo $ECHO_N "(cached) $ECHO_C" >&6
43481 eval "$as_ac_Header=\$ac_header_preproc"
43483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43484 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43487 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43488 cat >>confdefs.h <<_ACEOF
43489 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43496 echo "$as_me:$LINENO: checking for db" >&5
43497 echo $ECHO_N "checking for db... $ECHO_C" >&6
43498 if test "${ol_cv_mdbm+set}" = set; then
43499 echo $ECHO_N "(cached) $ECHO_C" >&6
43502 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
43509 echo "$as_me:$LINENO: result: $ol_cv_mdbm" >&5
43510 echo "${ECHO_T}$ol_cv_mdbm" >&6
43511 if test $ol_cv_mdbm = yes ; then
43513 cat >>confdefs.h <<\_ACEOF
43514 #define HAVE_MDBM 1
43520 if test $ol_cv_mdbm = yes ; then
43522 ol_with_ldbm_api=mdbm
43523 if test $ol_cv_lib_mdbm != yes ; then
43524 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
43529 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
43530 echo "$as_me:$LINENO: checking for GDBM library" >&5
43531 echo $ECHO_N "checking for GDBM library... $ECHO_C" >&6
43532 if test "${ol_cv_lib_gdbm+set}" = set; then
43533 echo $ECHO_N "(cached) $ECHO_C" >&6
43536 echo "$as_me:$LINENO: checking for gdbm_open" >&5
43537 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
43538 if test "${ac_cv_func_gdbm_open+set}" = set; then
43539 echo $ECHO_N "(cached) $ECHO_C" >&6
43541 cat >conftest.$ac_ext <<_ACEOF
43544 cat confdefs.h >>conftest.$ac_ext
43545 cat >>conftest.$ac_ext <<_ACEOF
43546 /* end confdefs.h. */
43547 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
43548 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43549 #define gdbm_open innocuous_gdbm_open
43551 /* System header to define __stub macros and hopefully few prototypes,
43552 which can conflict with char gdbm_open (); below.
43553 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43554 <limits.h> exists even on freestanding compilers. */
43557 # include <limits.h>
43559 # include <assert.h>
43564 /* Override any gcc2 internal prototype to avoid an error. */
43569 /* We use char because int might match the return type of a gcc2
43570 builtin and then its argument prototype would still apply. */
43572 /* The GNU C library defines this for functions which it implements
43573 to always fail with ENOSYS. Some functions are actually named
43574 something starting with __ and the normal name is an alias. */
43575 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
43578 char (*f) () = gdbm_open;
43587 return f != gdbm_open;
43592 rm -f conftest.$ac_objext conftest$ac_exeext
43593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43594 (eval $ac_link) 2>conftest.er1
43596 grep -v '^ *+' conftest.er1 >conftest.err
43598 cat conftest.err >&5
43599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43600 (exit $ac_status); } &&
43601 { ac_try='test -z "$ac_c_werror_flag"
43602 || test ! -s conftest.err'
43603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43604 (eval $ac_try) 2>&5
43606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43607 (exit $ac_status); }; } &&
43608 { ac_try='test -s conftest$ac_exeext'
43609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43610 (eval $ac_try) 2>&5
43612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43613 (exit $ac_status); }; }; then
43614 ac_cv_func_gdbm_open=yes
43616 echo "$as_me: failed program was:" >&5
43617 sed 's/^/| /' conftest.$ac_ext >&5
43619 ac_cv_func_gdbm_open=no
43621 rm -f conftest.err conftest.$ac_objext \
43622 conftest$ac_exeext conftest.$ac_ext
43624 echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
43625 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6
43626 if test $ac_cv_func_gdbm_open = yes; then
43630 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
43631 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
43632 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
43633 echo $ECHO_N "(cached) $ECHO_C" >&6
43635 ac_check_lib_save_LIBS=$LIBS
43636 LIBS="-lgdbm $LIBS"
43637 cat >conftest.$ac_ext <<_ACEOF
43640 cat confdefs.h >>conftest.$ac_ext
43641 cat >>conftest.$ac_ext <<_ACEOF
43642 /* end confdefs.h. */
43644 /* Override any gcc2 internal prototype to avoid an error. */
43648 /* We use char because int might match the return type of a gcc2
43649 builtin and then its argument prototype would still apply. */
43659 rm -f conftest.$ac_objext conftest$ac_exeext
43660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43661 (eval $ac_link) 2>conftest.er1
43663 grep -v '^ *+' conftest.er1 >conftest.err
43665 cat conftest.err >&5
43666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43667 (exit $ac_status); } &&
43668 { ac_try='test -z "$ac_c_werror_flag"
43669 || test ! -s conftest.err'
43670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43671 (eval $ac_try) 2>&5
43673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43674 (exit $ac_status); }; } &&
43675 { ac_try='test -s conftest$ac_exeext'
43676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43677 (eval $ac_try) 2>&5
43679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43680 (exit $ac_status); }; }; then
43681 ac_cv_lib_gdbm_gdbm_open=yes
43683 echo "$as_me: failed program was:" >&5
43684 sed 's/^/| /' conftest.$ac_ext >&5
43686 ac_cv_lib_gdbm_gdbm_open=no
43688 rm -f conftest.err conftest.$ac_objext \
43689 conftest$ac_exeext conftest.$ac_ext
43690 LIBS=$ac_check_lib_save_LIBS
43692 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
43693 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
43694 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
43695 ol_cv_lib_gdbm=-lgdbm
43706 echo "$as_me:$LINENO: result: $ol_cv_lib_gdbm" >&5
43707 echo "${ECHO_T}$ol_cv_lib_gdbm" >&6
43711 for ac_header in gdbm.h
43713 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43714 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43715 echo "$as_me:$LINENO: checking for $ac_header" >&5
43716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43717 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43718 echo $ECHO_N "(cached) $ECHO_C" >&6
43720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43721 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43723 # Is the header compilable?
43724 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43725 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43726 cat >conftest.$ac_ext <<_ACEOF
43729 cat confdefs.h >>conftest.$ac_ext
43730 cat >>conftest.$ac_ext <<_ACEOF
43731 /* end confdefs.h. */
43732 $ac_includes_default
43733 #include <$ac_header>
43735 rm -f conftest.$ac_objext
43736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43737 (eval $ac_compile) 2>conftest.er1
43739 grep -v '^ *+' conftest.er1 >conftest.err
43741 cat conftest.err >&5
43742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43743 (exit $ac_status); } &&
43744 { ac_try='test -z "$ac_c_werror_flag"
43745 || test ! -s conftest.err'
43746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43747 (eval $ac_try) 2>&5
43749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43750 (exit $ac_status); }; } &&
43751 { ac_try='test -s conftest.$ac_objext'
43752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43753 (eval $ac_try) 2>&5
43755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43756 (exit $ac_status); }; }; then
43757 ac_header_compiler=yes
43759 echo "$as_me: failed program was:" >&5
43760 sed 's/^/| /' conftest.$ac_ext >&5
43762 ac_header_compiler=no
43764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43765 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43766 echo "${ECHO_T}$ac_header_compiler" >&6
43768 # Is the header present?
43769 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43770 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43771 cat >conftest.$ac_ext <<_ACEOF
43774 cat confdefs.h >>conftest.$ac_ext
43775 cat >>conftest.$ac_ext <<_ACEOF
43776 /* end confdefs.h. */
43777 #include <$ac_header>
43779 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43780 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43782 grep -v '^ *+' conftest.er1 >conftest.err
43784 cat conftest.err >&5
43785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43786 (exit $ac_status); } >/dev/null; then
43787 if test -s conftest.err; then
43788 ac_cpp_err=$ac_c_preproc_warn_flag
43789 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43796 if test -z "$ac_cpp_err"; then
43797 ac_header_preproc=yes
43799 echo "$as_me: failed program was:" >&5
43800 sed 's/^/| /' conftest.$ac_ext >&5
43802 ac_header_preproc=no
43804 rm -f conftest.err conftest.$ac_ext
43805 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43806 echo "${ECHO_T}$ac_header_preproc" >&6
43808 # So? What about this header?
43809 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43811 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43812 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43813 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43814 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43815 ac_header_preproc=yes
43818 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43819 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43820 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43821 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43822 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43823 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43824 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43825 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
43826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43827 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43828 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43829 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43832 ## ------------------------------------------ ##
43833 ## Report this to the AC_PACKAGE_NAME lists. ##
43834 ## ------------------------------------------ ##
43837 sed "s/^/$as_me: WARNING: /" >&2
43840 echo "$as_me:$LINENO: checking for $ac_header" >&5
43841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43842 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43843 echo $ECHO_N "(cached) $ECHO_C" >&6
43845 eval "$as_ac_Header=\$ac_header_preproc"
43847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43848 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43851 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43852 cat >>confdefs.h <<_ACEOF
43853 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43860 echo "$as_me:$LINENO: checking for db" >&5
43861 echo $ECHO_N "checking for db... $ECHO_C" >&6
43862 if test "${ol_cv_gdbm+set}" = set; then
43863 echo $ECHO_N "(cached) $ECHO_C" >&6
43866 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
43873 echo "$as_me:$LINENO: result: $ol_cv_gdbm" >&5
43874 echo "${ECHO_T}$ol_cv_gdbm" >&6
43875 if test $ol_cv_gdbm = yes ; then
43877 cat >>confdefs.h <<\_ACEOF
43878 #define HAVE_GDBM 1
43884 if test $ol_cv_gdbm = yes ; then
43886 ol_with_ldbm_api=gdbm
43888 if test $ol_cv_lib_gdbm != yes ; then
43889 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
43894 if test $ol_with_ldbm_api = ndbm ; then
43895 echo "$as_me:$LINENO: checking for NDBM library" >&5
43896 echo $ECHO_N "checking for NDBM library... $ECHO_C" >&6
43897 if test "${ol_cv_lib_ndbm+set}" = set; then
43898 echo $ECHO_N "(cached) $ECHO_C" >&6
43901 echo "$as_me:$LINENO: checking for dbm_open" >&5
43902 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
43903 if test "${ac_cv_func_dbm_open+set}" = set; then
43904 echo $ECHO_N "(cached) $ECHO_C" >&6
43906 cat >conftest.$ac_ext <<_ACEOF
43909 cat confdefs.h >>conftest.$ac_ext
43910 cat >>conftest.$ac_ext <<_ACEOF
43911 /* end confdefs.h. */
43912 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
43913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43914 #define dbm_open innocuous_dbm_open
43916 /* System header to define __stub macros and hopefully few prototypes,
43917 which can conflict with char dbm_open (); below.
43918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43919 <limits.h> exists even on freestanding compilers. */
43922 # include <limits.h>
43924 # include <assert.h>
43929 /* Override any gcc2 internal prototype to avoid an error. */
43934 /* We use char because int might match the return type of a gcc2
43935 builtin and then its argument prototype would still apply. */
43937 /* The GNU C library defines this for functions which it implements
43938 to always fail with ENOSYS. Some functions are actually named
43939 something starting with __ and the normal name is an alias. */
43940 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
43943 char (*f) () = dbm_open;
43952 return f != dbm_open;
43957 rm -f conftest.$ac_objext conftest$ac_exeext
43958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43959 (eval $ac_link) 2>conftest.er1
43961 grep -v '^ *+' conftest.er1 >conftest.err
43963 cat conftest.err >&5
43964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43965 (exit $ac_status); } &&
43966 { ac_try='test -z "$ac_c_werror_flag"
43967 || test ! -s conftest.err'
43968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43969 (eval $ac_try) 2>&5
43971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43972 (exit $ac_status); }; } &&
43973 { ac_try='test -s conftest$ac_exeext'
43974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43975 (eval $ac_try) 2>&5
43977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43978 (exit $ac_status); }; }; then
43979 ac_cv_func_dbm_open=yes
43981 echo "$as_me: failed program was:" >&5
43982 sed 's/^/| /' conftest.$ac_ext >&5
43984 ac_cv_func_dbm_open=no
43986 rm -f conftest.err conftest.$ac_objext \
43987 conftest$ac_exeext conftest.$ac_ext
43989 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
43990 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
43991 if test $ac_cv_func_dbm_open = yes; then
43995 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
43996 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
43997 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
43998 echo $ECHO_N "(cached) $ECHO_C" >&6
44000 ac_check_lib_save_LIBS=$LIBS
44001 LIBS="-lndbm $LIBS"
44002 cat >conftest.$ac_ext <<_ACEOF
44005 cat confdefs.h >>conftest.$ac_ext
44006 cat >>conftest.$ac_ext <<_ACEOF
44007 /* end confdefs.h. */
44009 /* Override any gcc2 internal prototype to avoid an error. */
44013 /* We use char because int might match the return type of a gcc2
44014 builtin and then its argument prototype would still apply. */
44024 rm -f conftest.$ac_objext conftest$ac_exeext
44025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44026 (eval $ac_link) 2>conftest.er1
44028 grep -v '^ *+' conftest.er1 >conftest.err
44030 cat conftest.err >&5
44031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44032 (exit $ac_status); } &&
44033 { ac_try='test -z "$ac_c_werror_flag"
44034 || test ! -s conftest.err'
44035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44036 (eval $ac_try) 2>&5
44038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44039 (exit $ac_status); }; } &&
44040 { ac_try='test -s conftest$ac_exeext'
44041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44042 (eval $ac_try) 2>&5
44044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44045 (exit $ac_status); }; }; then
44046 ac_cv_lib_ndbm_dbm_open=yes
44048 echo "$as_me: failed program was:" >&5
44049 sed 's/^/| /' conftest.$ac_ext >&5
44051 ac_cv_lib_ndbm_dbm_open=no
44053 rm -f conftest.err conftest.$ac_objext \
44054 conftest$ac_exeext conftest.$ac_ext
44055 LIBS=$ac_check_lib_save_LIBS
44057 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
44058 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
44059 if test $ac_cv_lib_ndbm_dbm_open = yes; then
44060 ol_cv_lib_ndbm=-lndbm
44063 echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
44064 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
44065 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
44066 echo $ECHO_N "(cached) $ECHO_C" >&6
44068 ac_check_lib_save_LIBS=$LIBS
44070 cat >conftest.$ac_ext <<_ACEOF
44073 cat confdefs.h >>conftest.$ac_ext
44074 cat >>conftest.$ac_ext <<_ACEOF
44075 /* end confdefs.h. */
44077 /* Override any gcc2 internal prototype to avoid an error. */
44081 /* We use char because int might match the return type of a gcc2
44082 builtin and then its argument prototype would still apply. */
44092 rm -f conftest.$ac_objext conftest$ac_exeext
44093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44094 (eval $ac_link) 2>conftest.er1
44096 grep -v '^ *+' conftest.er1 >conftest.err
44098 cat conftest.err >&5
44099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44100 (exit $ac_status); } &&
44101 { ac_try='test -z "$ac_c_werror_flag"
44102 || test ! -s conftest.err'
44103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44104 (eval $ac_try) 2>&5
44106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44107 (exit $ac_status); }; } &&
44108 { ac_try='test -s conftest$ac_exeext'
44109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44110 (eval $ac_try) 2>&5
44112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44113 (exit $ac_status); }; }; then
44114 ac_cv_lib_dbm_dbm_open=yes
44116 echo "$as_me: failed program was:" >&5
44117 sed 's/^/| /' conftest.$ac_ext >&5
44119 ac_cv_lib_dbm_dbm_open=no
44121 rm -f conftest.err conftest.$ac_objext \
44122 conftest$ac_exeext conftest.$ac_ext
44123 LIBS=$ac_check_lib_save_LIBS
44125 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
44126 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
44127 if test $ac_cv_lib_dbm_dbm_open = yes; then
44128 ol_cv_lib_ndbm=-ldbm
44141 echo "$as_me:$LINENO: result: $ol_cv_lib_ndbm" >&5
44142 echo "${ECHO_T}$ol_cv_lib_ndbm" >&6
44146 for ac_header in ndbm.h
44148 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44150 echo "$as_me:$LINENO: checking for $ac_header" >&5
44151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44152 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44153 echo $ECHO_N "(cached) $ECHO_C" >&6
44155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44156 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44158 # Is the header compilable?
44159 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44160 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44161 cat >conftest.$ac_ext <<_ACEOF
44164 cat confdefs.h >>conftest.$ac_ext
44165 cat >>conftest.$ac_ext <<_ACEOF
44166 /* end confdefs.h. */
44167 $ac_includes_default
44168 #include <$ac_header>
44170 rm -f conftest.$ac_objext
44171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44172 (eval $ac_compile) 2>conftest.er1
44174 grep -v '^ *+' conftest.er1 >conftest.err
44176 cat conftest.err >&5
44177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44178 (exit $ac_status); } &&
44179 { ac_try='test -z "$ac_c_werror_flag"
44180 || test ! -s conftest.err'
44181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44182 (eval $ac_try) 2>&5
44184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44185 (exit $ac_status); }; } &&
44186 { ac_try='test -s conftest.$ac_objext'
44187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44188 (eval $ac_try) 2>&5
44190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44191 (exit $ac_status); }; }; then
44192 ac_header_compiler=yes
44194 echo "$as_me: failed program was:" >&5
44195 sed 's/^/| /' conftest.$ac_ext >&5
44197 ac_header_compiler=no
44199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44200 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44201 echo "${ECHO_T}$ac_header_compiler" >&6
44203 # Is the header present?
44204 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44205 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44206 cat >conftest.$ac_ext <<_ACEOF
44209 cat confdefs.h >>conftest.$ac_ext
44210 cat >>conftest.$ac_ext <<_ACEOF
44211 /* end confdefs.h. */
44212 #include <$ac_header>
44214 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44215 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44217 grep -v '^ *+' conftest.er1 >conftest.err
44219 cat conftest.err >&5
44220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44221 (exit $ac_status); } >/dev/null; then
44222 if test -s conftest.err; then
44223 ac_cpp_err=$ac_c_preproc_warn_flag
44224 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44231 if test -z "$ac_cpp_err"; then
44232 ac_header_preproc=yes
44234 echo "$as_me: failed program was:" >&5
44235 sed 's/^/| /' conftest.$ac_ext >&5
44237 ac_header_preproc=no
44239 rm -f conftest.err conftest.$ac_ext
44240 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44241 echo "${ECHO_T}$ac_header_preproc" >&6
44243 # So? What about this header?
44244 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44246 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44247 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44248 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44249 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44250 ac_header_preproc=yes
44253 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44254 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44255 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44256 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44257 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44258 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44259 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44260 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44262 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44263 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44264 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44267 ## ------------------------------------------ ##
44268 ## Report this to the AC_PACKAGE_NAME lists. ##
44269 ## ------------------------------------------ ##
44272 sed "s/^/$as_me: WARNING: /" >&2
44275 echo "$as_me:$LINENO: checking for $ac_header" >&5
44276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44277 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44278 echo $ECHO_N "(cached) $ECHO_C" >&6
44280 eval "$as_ac_Header=\$ac_header_preproc"
44282 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44283 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44286 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44287 cat >>confdefs.h <<_ACEOF
44288 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44295 echo "$as_me:$LINENO: checking for db" >&5
44296 echo $ECHO_N "checking for db... $ECHO_C" >&6
44297 if test "${ol_cv_ndbm+set}" = set; then
44298 echo $ECHO_N "(cached) $ECHO_C" >&6
44301 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
44308 echo "$as_me:$LINENO: result: $ol_cv_ndbm" >&5
44309 echo "${ECHO_T}$ol_cv_ndbm" >&6
44310 if test $ol_cv_ndbm = yes ; then
44312 cat >>confdefs.h <<\_ACEOF
44313 #define HAVE_NDBM 1
44319 if test $ol_cv_ndbm = yes ; then
44321 ol_with_ldbm_api=ndbm
44323 if test $ol_cv_lib_ndbm != yes ; then
44324 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
44329 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
44330 { { echo "$as_me:$LINENO: error: could not find suitable LDBM backend" >&5
44331 echo "$as_me: error: could not find suitable LDBM backend" >&2;}
44332 { (exit 1); exit 1; }; }
44335 if test $ol_enable_bdb = yes -o \
44336 $ol_enable_hdb = yes -o \
44337 $ol_enable_ldbm = yes ; then
44338 SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
44342 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
44343 BUILD_LIBS_DYNAMIC=shared
44345 cat >>confdefs.h <<\_ACEOF
44346 #define LDAP_LIBS_DYNAMIC 1
44351 BUILD_LIBS_DYNAMIC=static
44355 if test $ol_enable_wrappers != no ; then
44357 for ac_header in tcpd.h
44359 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44361 echo "$as_me:$LINENO: checking for $ac_header" >&5
44362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44364 echo $ECHO_N "(cached) $ECHO_C" >&6
44366 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44367 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44369 # Is the header compilable?
44370 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44371 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44372 cat >conftest.$ac_ext <<_ACEOF
44375 cat confdefs.h >>conftest.$ac_ext
44376 cat >>conftest.$ac_ext <<_ACEOF
44377 /* end confdefs.h. */
44378 $ac_includes_default
44379 #include <$ac_header>
44381 rm -f conftest.$ac_objext
44382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44383 (eval $ac_compile) 2>conftest.er1
44385 grep -v '^ *+' conftest.er1 >conftest.err
44387 cat conftest.err >&5
44388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44389 (exit $ac_status); } &&
44390 { ac_try='test -z "$ac_c_werror_flag"
44391 || test ! -s conftest.err'
44392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44393 (eval $ac_try) 2>&5
44395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44396 (exit $ac_status); }; } &&
44397 { ac_try='test -s conftest.$ac_objext'
44398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44399 (eval $ac_try) 2>&5
44401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44402 (exit $ac_status); }; }; then
44403 ac_header_compiler=yes
44405 echo "$as_me: failed program was:" >&5
44406 sed 's/^/| /' conftest.$ac_ext >&5
44408 ac_header_compiler=no
44410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44411 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44412 echo "${ECHO_T}$ac_header_compiler" >&6
44414 # Is the header present?
44415 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44416 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44417 cat >conftest.$ac_ext <<_ACEOF
44420 cat confdefs.h >>conftest.$ac_ext
44421 cat >>conftest.$ac_ext <<_ACEOF
44422 /* end confdefs.h. */
44423 #include <$ac_header>
44425 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44426 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44428 grep -v '^ *+' conftest.er1 >conftest.err
44430 cat conftest.err >&5
44431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44432 (exit $ac_status); } >/dev/null; then
44433 if test -s conftest.err; then
44434 ac_cpp_err=$ac_c_preproc_warn_flag
44435 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44442 if test -z "$ac_cpp_err"; then
44443 ac_header_preproc=yes
44445 echo "$as_me: failed program was:" >&5
44446 sed 's/^/| /' conftest.$ac_ext >&5
44448 ac_header_preproc=no
44450 rm -f conftest.err conftest.$ac_ext
44451 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44452 echo "${ECHO_T}$ac_header_preproc" >&6
44454 # So? What about this header?
44455 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44457 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44458 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44460 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44461 ac_header_preproc=yes
44464 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44465 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44466 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44467 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44468 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44469 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44470 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44471 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44473 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44474 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44475 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44478 ## ------------------------------------------ ##
44479 ## Report this to the AC_PACKAGE_NAME lists. ##
44480 ## ------------------------------------------ ##
44483 sed "s/^/$as_me: WARNING: /" >&2
44486 echo "$as_me:$LINENO: checking for $ac_header" >&5
44487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44488 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44489 echo $ECHO_N "(cached) $ECHO_C" >&6
44491 eval "$as_ac_Header=\$ac_header_preproc"
44493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44494 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44497 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44498 cat >>confdefs.h <<_ACEOF
44499 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44502 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
44503 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
44505 LIBS="$LIBS -lwrap"
44506 cat >conftest.$ac_ext <<_ACEOF
44509 cat confdefs.h >>conftest.$ac_ext
44510 cat >>conftest.$ac_ext <<_ACEOF
44511 /* end confdefs.h. */
44514 int allow_severity = 0;
44515 int deny_severity = 0;
44517 struct request_info *req;
44529 rm -f conftest.$ac_objext conftest$ac_exeext
44530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44531 (eval $ac_link) 2>conftest.er1
44533 grep -v '^ *+' conftest.er1 >conftest.err
44535 cat conftest.err >&5
44536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44537 (exit $ac_status); } &&
44538 { ac_try='test -z "$ac_c_werror_flag"
44539 || test ! -s conftest.err'
44540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44541 (eval $ac_try) 2>&5
44543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44544 (exit $ac_status); }; } &&
44545 { ac_try='test -s conftest$ac_exeext'
44546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44547 (eval $ac_try) 2>&5
44549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44550 (exit $ac_status); }; }; then
44551 echo "$as_me:$LINENO: result: -lwrap" >&5
44552 echo "${ECHO_T}-lwrap" >&6
44556 echo "$as_me: failed program was:" >&5
44557 sed 's/^/| /' conftest.$ac_ext >&5
44561 cat >conftest.$ac_ext <<_ACEOF
44564 cat confdefs.h >>conftest.$ac_ext
44565 cat >>conftest.$ac_ext <<_ACEOF
44566 /* end confdefs.h. */
44569 int allow_severity = 0;
44570 int deny_severity = 0;
44572 struct request_info *req;
44584 rm -f conftest.$ac_objext conftest$ac_exeext
44585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44586 (eval $ac_link) 2>conftest.er1
44588 grep -v '^ *+' conftest.er1 >conftest.err
44590 cat conftest.err >&5
44591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44592 (exit $ac_status); } &&
44593 { ac_try='test -z "$ac_c_werror_flag"
44594 || test ! -s conftest.err'
44595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44596 (eval $ac_try) 2>&5
44598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44599 (exit $ac_status); }; } &&
44600 { ac_try='test -s conftest$ac_exeext'
44601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44602 (eval $ac_try) 2>&5
44604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44605 (exit $ac_status); }; }; then
44606 echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
44607 echo "${ECHO_T}-lwrap -lnsl" >&6
44609 LIBS="$save_LIBS -lnsl"
44611 echo "$as_me: failed program was:" >&5
44612 sed 's/^/| /' conftest.$ac_ext >&5
44615 echo "$as_me:$LINENO: result: no" >&5
44616 echo "${ECHO_T}no" >&6
44620 rm -f conftest.err conftest.$ac_objext \
44621 conftest$ac_exeext conftest.$ac_ext
44623 rm -f conftest.err conftest.$ac_objext \
44624 conftest$ac_exeext conftest.$ac_ext
44632 if test $have_wrappers = yes ; then
44634 cat >>confdefs.h <<\_ACEOF
44635 #define HAVE_TCPD 1
44639 elif test $ol_enable_wrappers = yes ; then
44640 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
44641 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
44642 { (exit 1); exit 1; }; }
44644 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
44645 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
44650 if test $ol_enable_syslog != no ; then
44651 echo "$as_me:$LINENO: checking for openlog" >&5
44652 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
44653 if test "${ac_cv_func_openlog+set}" = set; then
44654 echo $ECHO_N "(cached) $ECHO_C" >&6
44656 cat >conftest.$ac_ext <<_ACEOF
44659 cat confdefs.h >>conftest.$ac_ext
44660 cat >>conftest.$ac_ext <<_ACEOF
44661 /* end confdefs.h. */
44662 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
44663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44664 #define openlog innocuous_openlog
44666 /* System header to define __stub macros and hopefully few prototypes,
44667 which can conflict with char openlog (); below.
44668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44669 <limits.h> exists even on freestanding compilers. */
44672 # include <limits.h>
44674 # include <assert.h>
44679 /* Override any gcc2 internal prototype to avoid an error. */
44684 /* We use char because int might match the return type of a gcc2
44685 builtin and then its argument prototype would still apply. */
44687 /* The GNU C library defines this for functions which it implements
44688 to always fail with ENOSYS. Some functions are actually named
44689 something starting with __ and the normal name is an alias. */
44690 #if defined (__stub_openlog) || defined (__stub___openlog)
44693 char (*f) () = openlog;
44702 return f != openlog;
44707 rm -f conftest.$ac_objext conftest$ac_exeext
44708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44709 (eval $ac_link) 2>conftest.er1
44711 grep -v '^ *+' conftest.er1 >conftest.err
44713 cat conftest.err >&5
44714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44715 (exit $ac_status); } &&
44716 { ac_try='test -z "$ac_c_werror_flag"
44717 || test ! -s conftest.err'
44718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44719 (eval $ac_try) 2>&5
44721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44722 (exit $ac_status); }; } &&
44723 { ac_try='test -s conftest$ac_exeext'
44724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44725 (eval $ac_try) 2>&5
44727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44728 (exit $ac_status); }; }; then
44729 ac_cv_func_openlog=yes
44731 echo "$as_me: failed program was:" >&5
44732 sed 's/^/| /' conftest.$ac_ext >&5
44734 ac_cv_func_openlog=no
44736 rm -f conftest.err conftest.$ac_objext \
44737 conftest$ac_exeext conftest.$ac_ext
44739 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
44740 echo "${ECHO_T}$ac_cv_func_openlog" >&6
44742 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
44743 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
44744 echo "$as_me: error: could not find syslog" >&2;}
44745 { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
44747 ol_enable_syslog=$ac_cv_func_openlog
44752 if test $ol_enable_sql != no ; then
44755 for ac_header in sql.h sqlext.h
44757 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44758 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44759 echo "$as_me:$LINENO: checking for $ac_header" >&5
44760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44762 echo $ECHO_N "(cached) $ECHO_C" >&6
44764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44765 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44767 # Is the header compilable?
44768 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44769 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44770 cat >conftest.$ac_ext <<_ACEOF
44773 cat confdefs.h >>conftest.$ac_ext
44774 cat >>conftest.$ac_ext <<_ACEOF
44775 /* end confdefs.h. */
44776 $ac_includes_default
44777 #include <$ac_header>
44779 rm -f conftest.$ac_objext
44780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44781 (eval $ac_compile) 2>conftest.er1
44783 grep -v '^ *+' conftest.er1 >conftest.err
44785 cat conftest.err >&5
44786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44787 (exit $ac_status); } &&
44788 { ac_try='test -z "$ac_c_werror_flag"
44789 || test ! -s conftest.err'
44790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44791 (eval $ac_try) 2>&5
44793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44794 (exit $ac_status); }; } &&
44795 { ac_try='test -s conftest.$ac_objext'
44796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44797 (eval $ac_try) 2>&5
44799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44800 (exit $ac_status); }; }; then
44801 ac_header_compiler=yes
44803 echo "$as_me: failed program was:" >&5
44804 sed 's/^/| /' conftest.$ac_ext >&5
44806 ac_header_compiler=no
44808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44809 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44810 echo "${ECHO_T}$ac_header_compiler" >&6
44812 # Is the header present?
44813 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44814 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44815 cat >conftest.$ac_ext <<_ACEOF
44818 cat confdefs.h >>conftest.$ac_ext
44819 cat >>conftest.$ac_ext <<_ACEOF
44820 /* end confdefs.h. */
44821 #include <$ac_header>
44823 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44824 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44826 grep -v '^ *+' conftest.er1 >conftest.err
44828 cat conftest.err >&5
44829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44830 (exit $ac_status); } >/dev/null; then
44831 if test -s conftest.err; then
44832 ac_cpp_err=$ac_c_preproc_warn_flag
44833 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44840 if test -z "$ac_cpp_err"; then
44841 ac_header_preproc=yes
44843 echo "$as_me: failed program was:" >&5
44844 sed 's/^/| /' conftest.$ac_ext >&5
44846 ac_header_preproc=no
44848 rm -f conftest.err conftest.$ac_ext
44849 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44850 echo "${ECHO_T}$ac_header_preproc" >&6
44852 # So? What about this header?
44853 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44855 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44856 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44857 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44858 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44859 ac_header_preproc=yes
44862 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44863 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44864 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44865 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44866 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44867 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44868 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44869 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44870 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44871 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44872 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44873 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44876 ## ------------------------------------------ ##
44877 ## Report this to the AC_PACKAGE_NAME lists. ##
44878 ## ------------------------------------------ ##
44881 sed "s/^/$as_me: WARNING: /" >&2
44884 echo "$as_me:$LINENO: checking for $ac_header" >&5
44885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44886 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44887 echo $ECHO_N "(cached) $ECHO_C" >&6
44889 eval "$as_ac_Header=\$ac_header_preproc"
44891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44892 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44895 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44896 cat >>confdefs.h <<_ACEOF
44897 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44902 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
44903 echo "$as_me: error: could not locate SQL headers" >&2;}
44904 { (exit 1); exit 1; }; }
44912 LIBS="$LTHREAD_LIBS"
44914 echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
44915 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
44916 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
44917 echo $ECHO_N "(cached) $ECHO_C" >&6
44919 ac_check_lib_save_LIBS=$LIBS
44920 LIBS="-liodbc $LIBS"
44921 cat >conftest.$ac_ext <<_ACEOF
44924 cat confdefs.h >>conftest.$ac_ext
44925 cat >>conftest.$ac_ext <<_ACEOF
44926 /* end confdefs.h. */
44928 /* Override any gcc2 internal prototype to avoid an error. */
44932 /* We use char because int might match the return type of a gcc2
44933 builtin and then its argument prototype would still apply. */
44934 char SQLDriverConnect ();
44938 SQLDriverConnect ();
44943 rm -f conftest.$ac_objext conftest$ac_exeext
44944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44945 (eval $ac_link) 2>conftest.er1
44947 grep -v '^ *+' conftest.er1 >conftest.err
44949 cat conftest.err >&5
44950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44951 (exit $ac_status); } &&
44952 { ac_try='test -z "$ac_c_werror_flag"
44953 || test ! -s conftest.err'
44954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44955 (eval $ac_try) 2>&5
44957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44958 (exit $ac_status); }; } &&
44959 { ac_try='test -s conftest$ac_exeext'
44960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44961 (eval $ac_try) 2>&5
44963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44964 (exit $ac_status); }; }; then
44965 ac_cv_lib_iodbc_SQLDriverConnect=yes
44967 echo "$as_me: failed program was:" >&5
44968 sed 's/^/| /' conftest.$ac_ext >&5
44970 ac_cv_lib_iodbc_SQLDriverConnect=no
44972 rm -f conftest.err conftest.$ac_objext \
44973 conftest$ac_exeext conftest.$ac_ext
44974 LIBS=$ac_check_lib_save_LIBS
44976 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
44977 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
44978 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
44984 if test $have_iodbc = yes ; then
44985 ol_link_sql="-liodbc"
44987 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
44988 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
44989 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
44990 echo $ECHO_N "(cached) $ECHO_C" >&6
44992 ac_check_lib_save_LIBS=$LIBS
44993 LIBS="-lodbc $LIBS"
44994 cat >conftest.$ac_ext <<_ACEOF
44997 cat confdefs.h >>conftest.$ac_ext
44998 cat >>conftest.$ac_ext <<_ACEOF
44999 /* end confdefs.h. */
45001 /* Override any gcc2 internal prototype to avoid an error. */
45005 /* We use char because int might match the return type of a gcc2
45006 builtin and then its argument prototype would still apply. */
45007 char SQLDriverConnect ();
45011 SQLDriverConnect ();
45016 rm -f conftest.$ac_objext conftest$ac_exeext
45017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45018 (eval $ac_link) 2>conftest.er1
45020 grep -v '^ *+' conftest.er1 >conftest.err
45022 cat conftest.err >&5
45023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45024 (exit $ac_status); } &&
45025 { ac_try='test -z "$ac_c_werror_flag"
45026 || test ! -s conftest.err'
45027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45028 (eval $ac_try) 2>&5
45030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45031 (exit $ac_status); }; } &&
45032 { ac_try='test -s conftest$ac_exeext'
45033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45034 (eval $ac_try) 2>&5
45036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45037 (exit $ac_status); }; }; then
45038 ac_cv_lib_odbc_SQLDriverConnect=yes
45040 echo "$as_me: failed program was:" >&5
45041 sed 's/^/| /' conftest.$ac_ext >&5
45043 ac_cv_lib_odbc_SQLDriverConnect=no
45045 rm -f conftest.err conftest.$ac_objext \
45046 conftest$ac_exeext conftest.$ac_ext
45047 LIBS=$ac_check_lib_save_LIBS
45049 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
45050 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
45051 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
45057 if test $have_odbc = yes ; then
45058 ol_link_sql="-lodbc"
45064 if test $ol_link_sql != no ; then
45065 SLAPD_SQL_LIBS="$ol_link_sql"
45067 elif test $ol_enable_sql != auto ; then
45068 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
45069 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
45070 { (exit 1); exit 1; }; }
45077 if test $ol_with_cyrus_sasl != no ; then
45080 for ac_header in sasl/sasl.h sasl.h
45082 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45084 echo "$as_me:$LINENO: checking for $ac_header" >&5
45085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45086 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45087 echo $ECHO_N "(cached) $ECHO_C" >&6
45089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45090 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45092 # Is the header compilable?
45093 echo "$as_me:$LINENO: checking $ac_header usability" >&5
45094 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
45095 cat >conftest.$ac_ext <<_ACEOF
45098 cat confdefs.h >>conftest.$ac_ext
45099 cat >>conftest.$ac_ext <<_ACEOF
45100 /* end confdefs.h. */
45101 $ac_includes_default
45102 #include <$ac_header>
45104 rm -f conftest.$ac_objext
45105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45106 (eval $ac_compile) 2>conftest.er1
45108 grep -v '^ *+' conftest.er1 >conftest.err
45110 cat conftest.err >&5
45111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45112 (exit $ac_status); } &&
45113 { ac_try='test -z "$ac_c_werror_flag"
45114 || test ! -s conftest.err'
45115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45116 (eval $ac_try) 2>&5
45118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45119 (exit $ac_status); }; } &&
45120 { ac_try='test -s conftest.$ac_objext'
45121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45122 (eval $ac_try) 2>&5
45124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45125 (exit $ac_status); }; }; then
45126 ac_header_compiler=yes
45128 echo "$as_me: failed program was:" >&5
45129 sed 's/^/| /' conftest.$ac_ext >&5
45131 ac_header_compiler=no
45133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45134 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45135 echo "${ECHO_T}$ac_header_compiler" >&6
45137 # Is the header present?
45138 echo "$as_me:$LINENO: checking $ac_header presence" >&5
45139 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45140 cat >conftest.$ac_ext <<_ACEOF
45143 cat confdefs.h >>conftest.$ac_ext
45144 cat >>conftest.$ac_ext <<_ACEOF
45145 /* end confdefs.h. */
45146 #include <$ac_header>
45148 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45149 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45151 grep -v '^ *+' conftest.er1 >conftest.err
45153 cat conftest.err >&5
45154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45155 (exit $ac_status); } >/dev/null; then
45156 if test -s conftest.err; then
45157 ac_cpp_err=$ac_c_preproc_warn_flag
45158 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
45165 if test -z "$ac_cpp_err"; then
45166 ac_header_preproc=yes
45168 echo "$as_me: failed program was:" >&5
45169 sed 's/^/| /' conftest.$ac_ext >&5
45171 ac_header_preproc=no
45173 rm -f conftest.err conftest.$ac_ext
45174 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45175 echo "${ECHO_T}$ac_header_preproc" >&6
45177 # So? What about this header?
45178 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45180 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45181 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45183 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45184 ac_header_preproc=yes
45187 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45188 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45189 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
45190 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
45191 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45192 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45193 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
45194 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
45195 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45196 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45197 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45198 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45201 ## ------------------------------------------ ##
45202 ## Report this to the AC_PACKAGE_NAME lists. ##
45203 ## ------------------------------------------ ##
45206 sed "s/^/$as_me: WARNING: /" >&2
45209 echo "$as_me:$LINENO: checking for $ac_header" >&5
45210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45212 echo $ECHO_N "(cached) $ECHO_C" >&6
45214 eval "$as_ac_Header=\$ac_header_preproc"
45216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45217 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45220 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45221 cat >>confdefs.h <<_ACEOF
45222 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45230 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
45231 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
45232 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
45233 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
45234 echo $ECHO_N "(cached) $ECHO_C" >&6
45236 ac_check_lib_save_LIBS=$LIBS
45237 LIBS="-lsasl2 $LIBS"
45238 cat >conftest.$ac_ext <<_ACEOF
45241 cat confdefs.h >>conftest.$ac_ext
45242 cat >>conftest.$ac_ext <<_ACEOF
45243 /* end confdefs.h. */
45245 /* Override any gcc2 internal prototype to avoid an error. */
45249 /* We use char because int might match the return type of a gcc2
45250 builtin and then its argument prototype would still apply. */
45251 char sasl_client_init ();
45255 sasl_client_init ();
45260 rm -f conftest.$ac_objext conftest$ac_exeext
45261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45262 (eval $ac_link) 2>conftest.er1
45264 grep -v '^ *+' conftest.er1 >conftest.err
45266 cat conftest.err >&5
45267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45268 (exit $ac_status); } &&
45269 { ac_try='test -z "$ac_c_werror_flag"
45270 || test ! -s conftest.err'
45271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45272 (eval $ac_try) 2>&5
45274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45275 (exit $ac_status); }; } &&
45276 { ac_try='test -s conftest$ac_exeext'
45277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45278 (eval $ac_try) 2>&5
45280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45281 (exit $ac_status); }; }; then
45282 ac_cv_lib_sasl2_sasl_client_init=yes
45284 echo "$as_me: failed program was:" >&5
45285 sed 's/^/| /' conftest.$ac_ext >&5
45287 ac_cv_lib_sasl2_sasl_client_init=no
45289 rm -f conftest.err conftest.$ac_objext \
45290 conftest$ac_exeext conftest.$ac_ext
45291 LIBS=$ac_check_lib_save_LIBS
45293 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
45294 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
45295 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
45296 ol_link_sasl="-lsasl2"
45298 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
45299 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
45300 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
45301 echo $ECHO_N "(cached) $ECHO_C" >&6
45303 ac_check_lib_save_LIBS=$LIBS
45304 LIBS="-lsasl $LIBS"
45305 cat >conftest.$ac_ext <<_ACEOF
45308 cat confdefs.h >>conftest.$ac_ext
45309 cat >>conftest.$ac_ext <<_ACEOF
45310 /* end confdefs.h. */
45312 /* Override any gcc2 internal prototype to avoid an error. */
45316 /* We use char because int might match the return type of a gcc2
45317 builtin and then its argument prototype would still apply. */
45318 char sasl_client_init ();
45322 sasl_client_init ();
45327 rm -f conftest.$ac_objext conftest$ac_exeext
45328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45329 (eval $ac_link) 2>conftest.er1
45331 grep -v '^ *+' conftest.er1 >conftest.err
45333 cat conftest.err >&5
45334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45335 (exit $ac_status); } &&
45336 { ac_try='test -z "$ac_c_werror_flag"
45337 || test ! -s conftest.err'
45338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45339 (eval $ac_try) 2>&5
45341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45342 (exit $ac_status); }; } &&
45343 { ac_try='test -s conftest$ac_exeext'
45344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45345 (eval $ac_try) 2>&5
45347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45348 (exit $ac_status); }; }; then
45349 ac_cv_lib_sasl_sasl_client_init=yes
45351 echo "$as_me: failed program was:" >&5
45352 sed 's/^/| /' conftest.$ac_ext >&5
45354 ac_cv_lib_sasl_sasl_client_init=no
45356 rm -f conftest.err conftest.$ac_objext \
45357 conftest$ac_exeext conftest.$ac_ext
45358 LIBS=$ac_check_lib_save_LIBS
45360 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
45361 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
45362 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
45363 ol_link_sasl="-lsasl"
45370 if test $ol_link_sasl = no ; then
45371 if test $ol_with_cyrus_sasl != auto ; then
45372 { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
45373 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
45374 { (exit 1); exit 1; }; }
45376 { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
45377 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
45378 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
45379 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
45380 if test $ol_link_tls = no ; then
45381 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
45382 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
45386 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
45387 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
45388 if test "${ol_cv_sasl_compat+set}" = set; then
45389 echo $ECHO_N "(cached) $ECHO_C" >&6
45392 cat >conftest.$ac_ext <<_ACEOF
45395 cat confdefs.h >>conftest.$ac_ext
45396 cat >>conftest.$ac_ext <<_ACEOF
45397 /* end confdefs.h. */
45399 #ifdef HAVE_SASL_SASL_H
45400 #include <sasl/sasl.h>
45405 /* Require 2.1.15+ */
45406 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
45407 char *__sasl_compat = "2.2+ or better okay (we guess)";
45408 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
45409 && SASL_VERSION_STEP >=15
45410 char *__sasl_compat = "2.1.15+ or better okay";
45414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45415 $EGREP "__sasl_compat" >/dev/null 2>&1; then
45416 ol_cv_sasl_compat=yes
45418 ol_cv_sasl_compat=no
45423 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
45424 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
45426 if test $ol_cv_sasl_compat = no ; then
45428 { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
45429 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
45430 { (exit 1); exit 1; }; }
45434 cat >>confdefs.h <<\_ACEOF
45435 #define HAVE_CYRUS_SASL 1
45438 SASL_LIBS="$ol_link_sasl"
45439 if test $ol_enable_spasswd != no ; then
45440 ol_link_spasswd=yes
45443 ac_save_LIBS="$LIBS"
45444 LIBS="$LIBS $ol_link_sasl"
45445 echo "$as_me:$LINENO: checking for sasl_version" >&5
45446 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
45447 if test "${ac_cv_func_sasl_version+set}" = set; then
45448 echo $ECHO_N "(cached) $ECHO_C" >&6
45450 cat >conftest.$ac_ext <<_ACEOF
45453 cat confdefs.h >>conftest.$ac_ext
45454 cat >>conftest.$ac_ext <<_ACEOF
45455 /* end confdefs.h. */
45456 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
45457 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45458 #define sasl_version innocuous_sasl_version
45460 /* System header to define __stub macros and hopefully few prototypes,
45461 which can conflict with char sasl_version (); below.
45462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45463 <limits.h> exists even on freestanding compilers. */
45466 # include <limits.h>
45468 # include <assert.h>
45471 #undef sasl_version
45473 /* Override any gcc2 internal prototype to avoid an error. */
45478 /* We use char because int might match the return type of a gcc2
45479 builtin and then its argument prototype would still apply. */
45480 char sasl_version ();
45481 /* The GNU C library defines this for functions which it implements
45482 to always fail with ENOSYS. Some functions are actually named
45483 something starting with __ and the normal name is an alias. */
45484 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
45487 char (*f) () = sasl_version;
45496 return f != sasl_version;
45501 rm -f conftest.$ac_objext conftest$ac_exeext
45502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45503 (eval $ac_link) 2>conftest.er1
45505 grep -v '^ *+' conftest.er1 >conftest.err
45507 cat conftest.err >&5
45508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45509 (exit $ac_status); } &&
45510 { ac_try='test -z "$ac_c_werror_flag"
45511 || test ! -s conftest.err'
45512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45513 (eval $ac_try) 2>&5
45515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45516 (exit $ac_status); }; } &&
45517 { ac_try='test -s conftest$ac_exeext'
45518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45519 (eval $ac_try) 2>&5
45521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45522 (exit $ac_status); }; }; then
45523 ac_cv_func_sasl_version=yes
45525 echo "$as_me: failed program was:" >&5
45526 sed 's/^/| /' conftest.$ac_ext >&5
45528 ac_cv_func_sasl_version=no
45530 rm -f conftest.err conftest.$ac_objext \
45531 conftest$ac_exeext conftest.$ac_ext
45533 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
45534 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
45535 if test $ac_cv_func_sasl_version = yes; then
45537 cat >>confdefs.h <<\_ACEOF
45538 #define HAVE_SASL_VERSION 1
45543 LIBS="$ac_save_LIBS"
45549 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
45550 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
45551 if test $ol_link_tls = no ; then
45552 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
45553 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
45557 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
45559 if test -r /dev/urandom ; then
45560 dev="/dev/urandom";
45561 elif test -r /idev/urandom ; then
45562 dev="/idev/urandom";
45563 elif test -r /dev/srandom ; then
45564 dev="/dev/srandom";
45565 elif test -r /dev/random ; then
45567 elif test -r /idev/random ; then
45568 dev="/idev/random";
45571 if test $dev != no ; then
45573 cat >>confdefs.h <<_ACEOF
45574 #define URANDOM_DEVICE "$dev"
45581 if test $ol_with_fetch != no ; then
45583 LIBS="-lfetch -lcom_err $LIBS"
45584 echo "$as_me:$LINENO: checking fetch(3) library" >&5
45585 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
45586 if test "${ol_cv_lib_fetch+set}" = set; then
45587 echo $ECHO_N "(cached) $ECHO_C" >&6
45590 cat >conftest.$ac_ext <<_ACEOF
45593 cat confdefs.h >>conftest.$ac_ext
45594 cat >>conftest.$ac_ext <<_ACEOF
45595 /* end confdefs.h. */
45597 #include <sys/param.h>
45603 struct url *u = fetchParseURL("file:///");
45608 rm -f conftest.$ac_objext conftest$ac_exeext
45609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45610 (eval $ac_link) 2>conftest.er1
45612 grep -v '^ *+' conftest.er1 >conftest.err
45614 cat conftest.err >&5
45615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45616 (exit $ac_status); } &&
45617 { ac_try='test -z "$ac_c_werror_flag"
45618 || test ! -s conftest.err'
45619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45620 (eval $ac_try) 2>&5
45622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45623 (exit $ac_status); }; } &&
45624 { ac_try='test -s conftest$ac_exeext'
45625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45626 (eval $ac_try) 2>&5
45628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45629 (exit $ac_status); }; }; then
45630 ol_cv_lib_fetch=yes
45632 echo "$as_me: failed program was:" >&5
45633 sed 's/^/| /' conftest.$ac_ext >&5
45637 rm -f conftest.err conftest.$ac_objext \
45638 conftest$ac_exeext conftest.$ac_ext
45640 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
45641 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
45643 if test $ol_cv_lib_fetch != no ; then
45644 ol_link_fetch="-lfetch -lcom_err"
45646 cat >>confdefs.h <<\_ACEOF
45647 #define HAVE_FETCH 1
45653 if test $ol_cv_lib_fetch != no ; then
45654 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
45655 ol_link_fetch=freebsd
45657 elif test $ol_with_fetch != auto ; then
45658 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
45659 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
45660 { (exit 1); exit 1; }; }
45664 if test $ol_enable_crypt != no ; then
45666 LIBS="$TLS_LIBS $LIBS"
45668 echo "$as_me:$LINENO: checking for crypt" >&5
45669 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
45670 if test "${ac_cv_func_crypt+set}" = set; then
45671 echo $ECHO_N "(cached) $ECHO_C" >&6
45673 cat >conftest.$ac_ext <<_ACEOF
45676 cat confdefs.h >>conftest.$ac_ext
45677 cat >>conftest.$ac_ext <<_ACEOF
45678 /* end confdefs.h. */
45679 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
45680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45681 #define crypt innocuous_crypt
45683 /* System header to define __stub macros and hopefully few prototypes,
45684 which can conflict with char crypt (); below.
45685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45686 <limits.h> exists even on freestanding compilers. */
45689 # include <limits.h>
45691 # include <assert.h>
45696 /* Override any gcc2 internal prototype to avoid an error. */
45701 /* We use char because int might match the return type of a gcc2
45702 builtin and then its argument prototype would still apply. */
45704 /* The GNU C library defines this for functions which it implements
45705 to always fail with ENOSYS. Some functions are actually named
45706 something starting with __ and the normal name is an alias. */
45707 #if defined (__stub_crypt) || defined (__stub___crypt)
45710 char (*f) () = crypt;
45724 rm -f conftest.$ac_objext conftest$ac_exeext
45725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45726 (eval $ac_link) 2>conftest.er1
45728 grep -v '^ *+' conftest.er1 >conftest.err
45730 cat conftest.err >&5
45731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45732 (exit $ac_status); } &&
45733 { ac_try='test -z "$ac_c_werror_flag"
45734 || test ! -s conftest.err'
45735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45736 (eval $ac_try) 2>&5
45738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45739 (exit $ac_status); }; } &&
45740 { ac_try='test -s conftest$ac_exeext'
45741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45742 (eval $ac_try) 2>&5
45744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45745 (exit $ac_status); }; }; then
45746 ac_cv_func_crypt=yes
45748 echo "$as_me: failed program was:" >&5
45749 sed 's/^/| /' conftest.$ac_ext >&5
45751 ac_cv_func_crypt=no
45753 rm -f conftest.err conftest.$ac_objext \
45754 conftest$ac_exeext conftest.$ac_ext
45756 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
45757 echo "${ECHO_T}$ac_cv_func_crypt" >&6
45758 if test $ac_cv_func_crypt = yes; then
45763 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
45764 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
45765 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
45766 echo $ECHO_N "(cached) $ECHO_C" >&6
45768 ac_check_lib_save_LIBS=$LIBS
45769 LIBS="-lcrypt $LIBS"
45770 cat >conftest.$ac_ext <<_ACEOF
45773 cat confdefs.h >>conftest.$ac_ext
45774 cat >>conftest.$ac_ext <<_ACEOF
45775 /* end confdefs.h. */
45777 /* Override any gcc2 internal prototype to avoid an error. */
45781 /* We use char because int might match the return type of a gcc2
45782 builtin and then its argument prototype would still apply. */
45792 rm -f conftest.$ac_objext conftest$ac_exeext
45793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45794 (eval $ac_link) 2>conftest.er1
45796 grep -v '^ *+' conftest.er1 >conftest.err
45798 cat conftest.err >&5
45799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45800 (exit $ac_status); } &&
45801 { ac_try='test -z "$ac_c_werror_flag"
45802 || test ! -s conftest.err'
45803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45804 (eval $ac_try) 2>&5
45806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45807 (exit $ac_status); }; } &&
45808 { ac_try='test -s conftest$ac_exeext'
45809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45810 (eval $ac_try) 2>&5
45812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45813 (exit $ac_status); }; }; then
45814 ac_cv_lib_crypt_crypt=yes
45816 echo "$as_me: failed program was:" >&5
45817 sed 's/^/| /' conftest.$ac_ext >&5
45819 ac_cv_lib_crypt_crypt=no
45821 rm -f conftest.err conftest.$ac_objext \
45822 conftest$ac_exeext conftest.$ac_ext
45823 LIBS=$ac_check_lib_save_LIBS
45825 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
45826 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
45827 if test $ac_cv_lib_crypt_crypt = yes; then
45828 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
45839 if test $have_crypt = yes ; then
45841 cat >>confdefs.h <<\_ACEOF
45842 #define HAVE_CRYPT 1
45846 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
45847 echo "$as_me: WARNING: could not find crypt" >&2;}
45848 if test $ol_enable_crypt = yes ; then
45849 { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
45850 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
45851 { (exit 1); exit 1; }; }
45854 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
45855 echo "$as_me: WARNING: disabling crypt support" >&2;}
45860 if test $ol_enable_proctitle != no ; then
45861 echo "$as_me:$LINENO: checking for setproctitle" >&5
45862 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
45863 if test "${ac_cv_func_setproctitle+set}" = set; then
45864 echo $ECHO_N "(cached) $ECHO_C" >&6
45866 cat >conftest.$ac_ext <<_ACEOF
45869 cat confdefs.h >>conftest.$ac_ext
45870 cat >>conftest.$ac_ext <<_ACEOF
45871 /* end confdefs.h. */
45872 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
45873 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45874 #define setproctitle innocuous_setproctitle
45876 /* System header to define __stub macros and hopefully few prototypes,
45877 which can conflict with char setproctitle (); below.
45878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45879 <limits.h> exists even on freestanding compilers. */
45882 # include <limits.h>
45884 # include <assert.h>
45887 #undef setproctitle
45889 /* Override any gcc2 internal prototype to avoid an error. */
45894 /* We use char because int might match the return type of a gcc2
45895 builtin and then its argument prototype would still apply. */
45896 char setproctitle ();
45897 /* The GNU C library defines this for functions which it implements
45898 to always fail with ENOSYS. Some functions are actually named
45899 something starting with __ and the normal name is an alias. */
45900 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
45903 char (*f) () = setproctitle;
45912 return f != setproctitle;
45917 rm -f conftest.$ac_objext conftest$ac_exeext
45918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45919 (eval $ac_link) 2>conftest.er1
45921 grep -v '^ *+' conftest.er1 >conftest.err
45923 cat conftest.err >&5
45924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45925 (exit $ac_status); } &&
45926 { ac_try='test -z "$ac_c_werror_flag"
45927 || test ! -s conftest.err'
45928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45929 (eval $ac_try) 2>&5
45931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45932 (exit $ac_status); }; } &&
45933 { ac_try='test -s conftest$ac_exeext'
45934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45935 (eval $ac_try) 2>&5
45937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45938 (exit $ac_status); }; }; then
45939 ac_cv_func_setproctitle=yes
45941 echo "$as_me: failed program was:" >&5
45942 sed 's/^/| /' conftest.$ac_ext >&5
45944 ac_cv_func_setproctitle=no
45946 rm -f conftest.err conftest.$ac_objext \
45947 conftest$ac_exeext conftest.$ac_ext
45949 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
45950 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
45951 if test $ac_cv_func_setproctitle = yes; then
45952 have_setproctitle=yes
45955 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
45956 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
45957 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
45958 echo $ECHO_N "(cached) $ECHO_C" >&6
45960 ac_check_lib_save_LIBS=$LIBS
45961 LIBS="-lutil $LIBS"
45962 cat >conftest.$ac_ext <<_ACEOF
45965 cat confdefs.h >>conftest.$ac_ext
45966 cat >>conftest.$ac_ext <<_ACEOF
45967 /* end confdefs.h. */
45969 /* Override any gcc2 internal prototype to avoid an error. */
45973 /* We use char because int might match the return type of a gcc2
45974 builtin and then its argument prototype would still apply. */
45975 char setproctitle ();
45984 rm -f conftest.$ac_objext conftest$ac_exeext
45985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45986 (eval $ac_link) 2>conftest.er1
45988 grep -v '^ *+' conftest.er1 >conftest.err
45990 cat conftest.err >&5
45991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45992 (exit $ac_status); } &&
45993 { ac_try='test -z "$ac_c_werror_flag"
45994 || test ! -s conftest.err'
45995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45996 (eval $ac_try) 2>&5
45998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45999 (exit $ac_status); }; } &&
46000 { ac_try='test -s conftest$ac_exeext'
46001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46002 (eval $ac_try) 2>&5
46004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46005 (exit $ac_status); }; }; then
46006 ac_cv_lib_util_setproctitle=yes
46008 echo "$as_me: failed program was:" >&5
46009 sed 's/^/| /' conftest.$ac_ext >&5
46011 ac_cv_lib_util_setproctitle=no
46013 rm -f conftest.err conftest.$ac_objext \
46014 conftest$ac_exeext conftest.$ac_ext
46015 LIBS=$ac_check_lib_save_LIBS
46017 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
46018 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
46019 if test $ac_cv_lib_util_setproctitle = yes; then
46020 have_setproctitle=yes
46021 LUTIL_LIBS="$LUTIL_LIBS -lutil"
46023 have_setproctitle=no
46025 "setproctitle.$ac_objext" | \
46026 *" setproctitle.$ac_objext" | \
46027 "setproctitle.$ac_objext "* | \
46028 *" setproctitle.$ac_objext "* ) ;;
46029 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
46032 LIBSRCS="$LIBSRCS setproctitle.c"
46038 if test $have_setproctitle = yes ; then
46040 cat >>confdefs.h <<\_ACEOF
46041 #define HAVE_SETPROCTITLE 1
46047 if test $ol_enable_slp != no ; then
46049 for ac_header in slp.h
46051 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46052 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46053 echo "$as_me:$LINENO: checking for $ac_header" >&5
46054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46056 echo $ECHO_N "(cached) $ECHO_C" >&6
46058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46059 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46061 # Is the header compilable?
46062 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46063 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46064 cat >conftest.$ac_ext <<_ACEOF
46067 cat confdefs.h >>conftest.$ac_ext
46068 cat >>conftest.$ac_ext <<_ACEOF
46069 /* end confdefs.h. */
46070 $ac_includes_default
46071 #include <$ac_header>
46073 rm -f conftest.$ac_objext
46074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46075 (eval $ac_compile) 2>conftest.er1
46077 grep -v '^ *+' conftest.er1 >conftest.err
46079 cat conftest.err >&5
46080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46081 (exit $ac_status); } &&
46082 { ac_try='test -z "$ac_c_werror_flag"
46083 || test ! -s conftest.err'
46084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46085 (eval $ac_try) 2>&5
46087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46088 (exit $ac_status); }; } &&
46089 { ac_try='test -s conftest.$ac_objext'
46090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46091 (eval $ac_try) 2>&5
46093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46094 (exit $ac_status); }; }; then
46095 ac_header_compiler=yes
46097 echo "$as_me: failed program was:" >&5
46098 sed 's/^/| /' conftest.$ac_ext >&5
46100 ac_header_compiler=no
46102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46103 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46104 echo "${ECHO_T}$ac_header_compiler" >&6
46106 # Is the header present?
46107 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46108 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46109 cat >conftest.$ac_ext <<_ACEOF
46112 cat confdefs.h >>conftest.$ac_ext
46113 cat >>conftest.$ac_ext <<_ACEOF
46114 /* end confdefs.h. */
46115 #include <$ac_header>
46117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46118 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46120 grep -v '^ *+' conftest.er1 >conftest.err
46122 cat conftest.err >&5
46123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46124 (exit $ac_status); } >/dev/null; then
46125 if test -s conftest.err; then
46126 ac_cpp_err=$ac_c_preproc_warn_flag
46127 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46134 if test -z "$ac_cpp_err"; then
46135 ac_header_preproc=yes
46137 echo "$as_me: failed program was:" >&5
46138 sed 's/^/| /' conftest.$ac_ext >&5
46140 ac_header_preproc=no
46142 rm -f conftest.err conftest.$ac_ext
46143 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46144 echo "${ECHO_T}$ac_header_preproc" >&6
46146 # So? What about this header?
46147 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46149 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46150 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46151 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46152 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46153 ac_header_preproc=yes
46156 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46157 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46158 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46159 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46160 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46161 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46162 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
46163 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
46164 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46165 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46166 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46167 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46170 ## ------------------------------------------ ##
46171 ## Report this to the AC_PACKAGE_NAME lists. ##
46172 ## ------------------------------------------ ##
46175 sed "s/^/$as_me: WARNING: /" >&2
46178 echo "$as_me:$LINENO: checking for $ac_header" >&5
46179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46181 echo $ECHO_N "(cached) $ECHO_C" >&6
46183 eval "$as_ac_Header=\$ac_header_preproc"
46185 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46186 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46189 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46190 cat >>confdefs.h <<_ACEOF
46191 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46199 if test $ac_cv_header_slp_h = yes ; then
46200 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
46201 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
46202 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
46203 echo $ECHO_N "(cached) $ECHO_C" >&6
46205 ac_check_lib_save_LIBS=$LIBS
46207 cat >conftest.$ac_ext <<_ACEOF
46210 cat confdefs.h >>conftest.$ac_ext
46211 cat >>conftest.$ac_ext <<_ACEOF
46212 /* end confdefs.h. */
46214 /* Override any gcc2 internal prototype to avoid an error. */
46218 /* We use char because int might match the return type of a gcc2
46219 builtin and then its argument prototype would still apply. */
46229 rm -f conftest.$ac_objext conftest$ac_exeext
46230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46231 (eval $ac_link) 2>conftest.er1
46233 grep -v '^ *+' conftest.er1 >conftest.err
46235 cat conftest.err >&5
46236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46237 (exit $ac_status); } &&
46238 { ac_try='test -z "$ac_c_werror_flag"
46239 || test ! -s conftest.err'
46240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46241 (eval $ac_try) 2>&5
46243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46244 (exit $ac_status); }; } &&
46245 { ac_try='test -s conftest$ac_exeext'
46246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46247 (eval $ac_try) 2>&5
46249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46250 (exit $ac_status); }; }; then
46251 ac_cv_lib_slp_SLPOpen=yes
46253 echo "$as_me: failed program was:" >&5
46254 sed 's/^/| /' conftest.$ac_ext >&5
46256 ac_cv_lib_slp_SLPOpen=no
46258 rm -f conftest.err conftest.$ac_objext \
46259 conftest$ac_exeext conftest.$ac_ext
46260 LIBS=$ac_check_lib_save_LIBS
46262 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
46263 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
46264 if test $ac_cv_lib_slp_SLPOpen = yes; then
46270 if test $have_slp = yes ; then
46272 cat >>confdefs.h <<\_ACEOF
46276 SLAPD_SLP_LIBS=-lslp
46279 elif test $ol_enable_slp = yes ; then
46280 { { echo "$as_me:$LINENO: error: SLP not found" >&5
46281 echo "$as_me: error: SLP not found" >&2;}
46282 { (exit 1); exit 1; }; }
46286 if test "$ol_with_multiple_precision" != "no" ; then
46292 for ac_header in openssl/bn.h bn.h
46294 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46296 echo "$as_me:$LINENO: checking for $ac_header" >&5
46297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46299 echo $ECHO_N "(cached) $ECHO_C" >&6
46301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46302 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46304 # Is the header compilable?
46305 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46306 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46307 cat >conftest.$ac_ext <<_ACEOF
46310 cat confdefs.h >>conftest.$ac_ext
46311 cat >>conftest.$ac_ext <<_ACEOF
46312 /* end confdefs.h. */
46313 $ac_includes_default
46314 #include <$ac_header>
46316 rm -f conftest.$ac_objext
46317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46318 (eval $ac_compile) 2>conftest.er1
46320 grep -v '^ *+' conftest.er1 >conftest.err
46322 cat conftest.err >&5
46323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46324 (exit $ac_status); } &&
46325 { ac_try='test -z "$ac_c_werror_flag"
46326 || test ! -s conftest.err'
46327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46328 (eval $ac_try) 2>&5
46330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46331 (exit $ac_status); }; } &&
46332 { ac_try='test -s conftest.$ac_objext'
46333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46334 (eval $ac_try) 2>&5
46336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46337 (exit $ac_status); }; }; then
46338 ac_header_compiler=yes
46340 echo "$as_me: failed program was:" >&5
46341 sed 's/^/| /' conftest.$ac_ext >&5
46343 ac_header_compiler=no
46345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46346 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46347 echo "${ECHO_T}$ac_header_compiler" >&6
46349 # Is the header present?
46350 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46351 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46352 cat >conftest.$ac_ext <<_ACEOF
46355 cat confdefs.h >>conftest.$ac_ext
46356 cat >>conftest.$ac_ext <<_ACEOF
46357 /* end confdefs.h. */
46358 #include <$ac_header>
46360 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46361 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46363 grep -v '^ *+' conftest.er1 >conftest.err
46365 cat conftest.err >&5
46366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46367 (exit $ac_status); } >/dev/null; then
46368 if test -s conftest.err; then
46369 ac_cpp_err=$ac_c_preproc_warn_flag
46370 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46377 if test -z "$ac_cpp_err"; then
46378 ac_header_preproc=yes
46380 echo "$as_me: failed program was:" >&5
46381 sed 's/^/| /' conftest.$ac_ext >&5
46383 ac_header_preproc=no
46385 rm -f conftest.err conftest.$ac_ext
46386 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46387 echo "${ECHO_T}$ac_header_preproc" >&6
46389 # So? What about this header?
46390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46392 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46393 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46395 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46396 ac_header_preproc=yes
46399 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46400 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46401 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46402 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46403 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46404 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46405 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
46406 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
46407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46408 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46409 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46410 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46413 ## ------------------------------------------ ##
46414 ## Report this to the AC_PACKAGE_NAME lists. ##
46415 ## ------------------------------------------ ##
46418 sed "s/^/$as_me: WARNING: /" >&2
46421 echo "$as_me:$LINENO: checking for $ac_header" >&5
46422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46424 echo $ECHO_N "(cached) $ECHO_C" >&6
46426 eval "$as_ac_Header=\$ac_header_preproc"
46428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46432 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46433 cat >>confdefs.h <<_ACEOF
46434 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46443 for ac_header in openssl/crypto.h crypto.h
46445 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46446 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46447 echo "$as_me:$LINENO: checking for $ac_header" >&5
46448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46449 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46450 echo $ECHO_N "(cached) $ECHO_C" >&6
46452 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46453 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46455 # Is the header compilable?
46456 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46457 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46458 cat >conftest.$ac_ext <<_ACEOF
46461 cat confdefs.h >>conftest.$ac_ext
46462 cat >>conftest.$ac_ext <<_ACEOF
46463 /* end confdefs.h. */
46464 $ac_includes_default
46465 #include <$ac_header>
46467 rm -f conftest.$ac_objext
46468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46469 (eval $ac_compile) 2>conftest.er1
46471 grep -v '^ *+' conftest.er1 >conftest.err
46473 cat conftest.err >&5
46474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46475 (exit $ac_status); } &&
46476 { ac_try='test -z "$ac_c_werror_flag"
46477 || test ! -s conftest.err'
46478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46479 (eval $ac_try) 2>&5
46481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46482 (exit $ac_status); }; } &&
46483 { ac_try='test -s conftest.$ac_objext'
46484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46485 (eval $ac_try) 2>&5
46487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46488 (exit $ac_status); }; }; then
46489 ac_header_compiler=yes
46491 echo "$as_me: failed program was:" >&5
46492 sed 's/^/| /' conftest.$ac_ext >&5
46494 ac_header_compiler=no
46496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46497 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46498 echo "${ECHO_T}$ac_header_compiler" >&6
46500 # Is the header present?
46501 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46502 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46503 cat >conftest.$ac_ext <<_ACEOF
46506 cat confdefs.h >>conftest.$ac_ext
46507 cat >>conftest.$ac_ext <<_ACEOF
46508 /* end confdefs.h. */
46509 #include <$ac_header>
46511 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46512 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46514 grep -v '^ *+' conftest.er1 >conftest.err
46516 cat conftest.err >&5
46517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46518 (exit $ac_status); } >/dev/null; then
46519 if test -s conftest.err; then
46520 ac_cpp_err=$ac_c_preproc_warn_flag
46521 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46528 if test -z "$ac_cpp_err"; then
46529 ac_header_preproc=yes
46531 echo "$as_me: failed program was:" >&5
46532 sed 's/^/| /' conftest.$ac_ext >&5
46534 ac_header_preproc=no
46536 rm -f conftest.err conftest.$ac_ext
46537 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46538 echo "${ECHO_T}$ac_header_preproc" >&6
46540 # So? What about this header?
46541 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46543 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46544 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46546 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46547 ac_header_preproc=yes
46550 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46551 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46552 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46553 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46554 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46555 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46556 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
46557 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
46558 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46559 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46560 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46561 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46564 ## ------------------------------------------ ##
46565 ## Report this to the AC_PACKAGE_NAME lists. ##
46566 ## ------------------------------------------ ##
46569 sed "s/^/$as_me: WARNING: /" >&2
46572 echo "$as_me:$LINENO: checking for $ac_header" >&5
46573 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46574 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46575 echo $ECHO_N "(cached) $ECHO_C" >&6
46577 eval "$as_ac_Header=\$ac_header_preproc"
46579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46580 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46583 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46584 cat >>confdefs.h <<_ACEOF
46585 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46593 for ac_header in gmp.h
46595 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46597 echo "$as_me:$LINENO: checking for $ac_header" >&5
46598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46599 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46600 echo $ECHO_N "(cached) $ECHO_C" >&6
46602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46603 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46605 # Is the header compilable?
46606 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46607 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46608 cat >conftest.$ac_ext <<_ACEOF
46611 cat confdefs.h >>conftest.$ac_ext
46612 cat >>conftest.$ac_ext <<_ACEOF
46613 /* end confdefs.h. */
46614 $ac_includes_default
46615 #include <$ac_header>
46617 rm -f conftest.$ac_objext
46618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46619 (eval $ac_compile) 2>conftest.er1
46621 grep -v '^ *+' conftest.er1 >conftest.err
46623 cat conftest.err >&5
46624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46625 (exit $ac_status); } &&
46626 { ac_try='test -z "$ac_c_werror_flag"
46627 || test ! -s conftest.err'
46628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46629 (eval $ac_try) 2>&5
46631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46632 (exit $ac_status); }; } &&
46633 { ac_try='test -s conftest.$ac_objext'
46634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46635 (eval $ac_try) 2>&5
46637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46638 (exit $ac_status); }; }; then
46639 ac_header_compiler=yes
46641 echo "$as_me: failed program was:" >&5
46642 sed 's/^/| /' conftest.$ac_ext >&5
46644 ac_header_compiler=no
46646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46647 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46648 echo "${ECHO_T}$ac_header_compiler" >&6
46650 # Is the header present?
46651 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46652 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46653 cat >conftest.$ac_ext <<_ACEOF
46656 cat confdefs.h >>conftest.$ac_ext
46657 cat >>conftest.$ac_ext <<_ACEOF
46658 /* end confdefs.h. */
46659 #include <$ac_header>
46661 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46662 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46664 grep -v '^ *+' conftest.er1 >conftest.err
46666 cat conftest.err >&5
46667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46668 (exit $ac_status); } >/dev/null; then
46669 if test -s conftest.err; then
46670 ac_cpp_err=$ac_c_preproc_warn_flag
46671 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46678 if test -z "$ac_cpp_err"; then
46679 ac_header_preproc=yes
46681 echo "$as_me: failed program was:" >&5
46682 sed 's/^/| /' conftest.$ac_ext >&5
46684 ac_header_preproc=no
46686 rm -f conftest.err conftest.$ac_ext
46687 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46688 echo "${ECHO_T}$ac_header_preproc" >&6
46690 # So? What about this header?
46691 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46693 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46694 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46695 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46696 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46697 ac_header_preproc=yes
46700 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46701 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46702 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46703 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46704 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46705 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46706 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
46707 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
46708 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46709 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46710 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46711 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46714 ## ------------------------------------------ ##
46715 ## Report this to the AC_PACKAGE_NAME lists. ##
46716 ## ------------------------------------------ ##
46719 sed "s/^/$as_me: WARNING: /" >&2
46722 echo "$as_me:$LINENO: checking for $ac_header" >&5
46723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46725 echo $ECHO_N "(cached) $ECHO_C" >&6
46727 eval "$as_ac_Header=\$ac_header_preproc"
46729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46730 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46733 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46734 cat >>confdefs.h <<_ACEOF
46735 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46743 if test "$ol_with_tls" = "found" ; then
46745 ol_have_crypto_h=no
46747 if test "$ac_cv_header_openssl_bn_h" = "yes" \
46748 -o "$ac_cv_header_bn_h" = "yes" ; then
46752 if test "$ac_cv_header_openssl_crypto_h" = "yes" \
46753 -o "$ac_cv_header_crypto_h" = "yes" ; then
46754 ol_have_crypto_h=yes
46757 if test "$ol_have_bn_h" = "yes" \
46758 -a "$ol_have_crypto_h" = "yes" ; then
46763 if test $ac_cv_header_gmp_h = yes ; then
46764 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
46765 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
46766 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
46767 echo $ECHO_N "(cached) $ECHO_C" >&6
46769 ac_check_lib_save_LIBS=$LIBS
46771 cat >conftest.$ac_ext <<_ACEOF
46774 cat confdefs.h >>conftest.$ac_ext
46775 cat >>conftest.$ac_ext <<_ACEOF
46776 /* end confdefs.h. */
46778 /* Override any gcc2 internal prototype to avoid an error. */
46782 /* We use char because int might match the return type of a gcc2
46783 builtin and then its argument prototype would still apply. */
46784 char __gmpz_add_ui ();
46793 rm -f conftest.$ac_objext conftest$ac_exeext
46794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46795 (eval $ac_link) 2>conftest.er1
46797 grep -v '^ *+' conftest.er1 >conftest.err
46799 cat conftest.err >&5
46800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46801 (exit $ac_status); } &&
46802 { ac_try='test -z "$ac_c_werror_flag"
46803 || test ! -s conftest.err'
46804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46805 (eval $ac_try) 2>&5
46807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46808 (exit $ac_status); }; } &&
46809 { ac_try='test -s conftest$ac_exeext'
46810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46811 (eval $ac_try) 2>&5
46813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46814 (exit $ac_status); }; }; then
46815 ac_cv_lib_gmp___gmpz_add_ui=yes
46817 echo "$as_me: failed program was:" >&5
46818 sed 's/^/| /' conftest.$ac_ext >&5
46820 ac_cv_lib_gmp___gmpz_add_ui=no
46822 rm -f conftest.err conftest.$ac_objext \
46823 conftest$ac_exeext conftest.$ac_ext
46824 LIBS=$ac_check_lib_save_LIBS
46826 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
46827 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
46828 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
46834 if test $have_gmp = yes ; then
46839 echo "$as_me:$LINENO: checking for multiple precision support" >&5
46840 echo $ECHO_N "checking for multiple precision support... $ECHO_C" >&6
46842 ol_mp_support="none"
46843 case "$ol_with_multiple_precision" in
46845 if test "$ol_have_bignum" = "yes" ; then
46846 ol_mp_support="bignum"
46848 if test "$ol_have_gmp" = "yes" ; then
46849 ol_mp_support="gmp"
46854 if test "$ol_have_bignum" != "yes" ; then
46855 { { echo "$as_me:$LINENO: error: OpenSSL's BIGNUM not available" >&5
46856 echo "$as_me: error: OpenSSL's BIGNUM not available" >&2;}
46857 { (exit 1); exit 1; }; }
46859 ol_mp_support="bignum"
46862 if test "$ol_have_gmp" != "yes" ; then
46863 { { echo "$as_me:$LINENO: error: GMP not available" >&5
46864 echo "$as_me: error: GMP not available" >&2;}
46865 { (exit 1); exit 1; }; }
46867 ol_mp_support="gmp"
46870 if test "$ol_have_bignum" = "yes" ; then
46871 ol_mp_support="bignum"
46872 elif test "$ol_have_gmp" = "yes" ; then
46873 ol_mp_support="gmp"
46875 { { echo "$as_me:$LINENO: error: not available" >&5
46876 echo "$as_me: error: not available" >&2;}
46877 { (exit 1); exit 1; }; }
46882 case "$ol_mp_support" in
46885 cat >>confdefs.h <<\_ACEOF
46886 #define HAVE_BIGNUM 1
46892 cat >>confdefs.h <<\_ACEOF
46896 SLAPD_GMP_LIBS=-lgmp
46902 echo "$as_me:$LINENO: result: $ol_mp_support" >&5
46903 echo "${ECHO_T}$ol_mp_support" >&6
46907 echo "$as_me:$LINENO: checking long long" >&5
46908 echo $ECHO_N "checking long long... $ECHO_C" >&6
46909 if test "${ol_cv_type_long_long+set}" = set; then
46910 echo $ECHO_N "(cached) $ECHO_C" >&6
46913 cat >conftest.$ac_ext <<_ACEOF
46916 cat confdefs.h >>conftest.$ac_ext
46917 cat >>conftest.$ac_ext <<_ACEOF
46918 /* end confdefs.h. */
46928 rm -f conftest.$ac_objext
46929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46930 (eval $ac_compile) 2>conftest.er1
46932 grep -v '^ *+' conftest.er1 >conftest.err
46934 cat conftest.err >&5
46935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46936 (exit $ac_status); } &&
46937 { ac_try='test -z "$ac_c_werror_flag"
46938 || test ! -s conftest.err'
46939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46940 (eval $ac_try) 2>&5
46942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46943 (exit $ac_status); }; } &&
46944 { ac_try='test -s conftest.$ac_objext'
46945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46946 (eval $ac_try) 2>&5
46948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46949 (exit $ac_status); }; }; then
46950 ol_cv_type_long_long=yes
46952 echo "$as_me: failed program was:" >&5
46953 sed 's/^/| /' conftest.$ac_ext >&5
46955 ol_cv_type_long_long=no
46957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46959 echo "$as_me:$LINENO: result: $ol_cv_type_long_long" >&5
46960 echo "${ECHO_T}$ol_cv_type_long_long" >&6
46961 if test $ol_cv_type_long_long = yes; then
46963 cat >>confdefs.h <<\_ACEOF
46964 #define HAVE_LONG_LONG 1
46969 echo "$as_me:$LINENO: checking for mode_t" >&5
46970 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
46971 if test "${ac_cv_type_mode_t+set}" = set; then
46972 echo $ECHO_N "(cached) $ECHO_C" >&6
46974 cat >conftest.$ac_ext <<_ACEOF
46977 cat confdefs.h >>conftest.$ac_ext
46978 cat >>conftest.$ac_ext <<_ACEOF
46979 /* end confdefs.h. */
46980 $ac_includes_default
46986 if (sizeof (mode_t))
46992 rm -f conftest.$ac_objext
46993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46994 (eval $ac_compile) 2>conftest.er1
46996 grep -v '^ *+' conftest.er1 >conftest.err
46998 cat conftest.err >&5
46999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47000 (exit $ac_status); } &&
47001 { ac_try='test -z "$ac_c_werror_flag"
47002 || test ! -s conftest.err'
47003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47004 (eval $ac_try) 2>&5
47006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47007 (exit $ac_status); }; } &&
47008 { ac_try='test -s conftest.$ac_objext'
47009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47010 (eval $ac_try) 2>&5
47012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47013 (exit $ac_status); }; }; then
47014 ac_cv_type_mode_t=yes
47016 echo "$as_me: failed program was:" >&5
47017 sed 's/^/| /' conftest.$ac_ext >&5
47019 ac_cv_type_mode_t=no
47021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47023 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
47024 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
47025 if test $ac_cv_type_mode_t = yes; then
47029 cat >>confdefs.h <<_ACEOF
47035 echo "$as_me:$LINENO: checking for off_t" >&5
47036 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
47037 if test "${ac_cv_type_off_t+set}" = set; then
47038 echo $ECHO_N "(cached) $ECHO_C" >&6
47040 cat >conftest.$ac_ext <<_ACEOF
47043 cat confdefs.h >>conftest.$ac_ext
47044 cat >>conftest.$ac_ext <<_ACEOF
47045 /* end confdefs.h. */
47046 $ac_includes_default
47052 if (sizeof (off_t))
47058 rm -f conftest.$ac_objext
47059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47060 (eval $ac_compile) 2>conftest.er1
47062 grep -v '^ *+' conftest.er1 >conftest.err
47064 cat conftest.err >&5
47065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47066 (exit $ac_status); } &&
47067 { ac_try='test -z "$ac_c_werror_flag"
47068 || test ! -s conftest.err'
47069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47070 (eval $ac_try) 2>&5
47072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47073 (exit $ac_status); }; } &&
47074 { ac_try='test -s conftest.$ac_objext'
47075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47076 (eval $ac_try) 2>&5
47078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47079 (exit $ac_status); }; }; then
47080 ac_cv_type_off_t=yes
47082 echo "$as_me: failed program was:" >&5
47083 sed 's/^/| /' conftest.$ac_ext >&5
47085 ac_cv_type_off_t=no
47087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47089 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
47090 echo "${ECHO_T}$ac_cv_type_off_t" >&6
47091 if test $ac_cv_type_off_t = yes; then
47095 cat >>confdefs.h <<_ACEOF
47101 echo "$as_me:$LINENO: checking for pid_t" >&5
47102 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
47103 if test "${ac_cv_type_pid_t+set}" = set; then
47104 echo $ECHO_N "(cached) $ECHO_C" >&6
47106 cat >conftest.$ac_ext <<_ACEOF
47109 cat confdefs.h >>conftest.$ac_ext
47110 cat >>conftest.$ac_ext <<_ACEOF
47111 /* end confdefs.h. */
47112 $ac_includes_default
47118 if (sizeof (pid_t))
47124 rm -f conftest.$ac_objext
47125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47126 (eval $ac_compile) 2>conftest.er1
47128 grep -v '^ *+' conftest.er1 >conftest.err
47130 cat conftest.err >&5
47131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47132 (exit $ac_status); } &&
47133 { ac_try='test -z "$ac_c_werror_flag"
47134 || test ! -s conftest.err'
47135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47136 (eval $ac_try) 2>&5
47138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47139 (exit $ac_status); }; } &&
47140 { ac_try='test -s conftest.$ac_objext'
47141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47142 (eval $ac_try) 2>&5
47144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47145 (exit $ac_status); }; }; then
47146 ac_cv_type_pid_t=yes
47148 echo "$as_me: failed program was:" >&5
47149 sed 's/^/| /' conftest.$ac_ext >&5
47151 ac_cv_type_pid_t=no
47153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47155 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
47156 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
47157 if test $ac_cv_type_pid_t = yes; then
47161 cat >>confdefs.h <<_ACEOF
47167 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
47168 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
47169 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
47170 echo $ECHO_N "(cached) $ECHO_C" >&6
47172 cat >conftest.$ac_ext <<_ACEOF
47175 cat confdefs.h >>conftest.$ac_ext
47176 cat >>conftest.$ac_ext <<_ACEOF
47177 /* end confdefs.h. */
47178 $ac_includes_default
47182 if ((ptrdiff_t *) 0)
47184 if (sizeof (ptrdiff_t))
47190 rm -f conftest.$ac_objext
47191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47192 (eval $ac_compile) 2>conftest.er1
47194 grep -v '^ *+' conftest.er1 >conftest.err
47196 cat conftest.err >&5
47197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47198 (exit $ac_status); } &&
47199 { ac_try='test -z "$ac_c_werror_flag"
47200 || test ! -s conftest.err'
47201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47202 (eval $ac_try) 2>&5
47204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47205 (exit $ac_status); }; } &&
47206 { ac_try='test -s conftest.$ac_objext'
47207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47208 (eval $ac_try) 2>&5
47210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47211 (exit $ac_status); }; }; then
47212 ac_cv_type_ptrdiff_t=yes
47214 echo "$as_me: failed program was:" >&5
47215 sed 's/^/| /' conftest.$ac_ext >&5
47217 ac_cv_type_ptrdiff_t=no
47219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47221 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
47222 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
47223 if test $ac_cv_type_ptrdiff_t = yes; then
47225 cat >>confdefs.h <<_ACEOF
47226 #define HAVE_PTRDIFF_T 1
47232 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
47233 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
47234 if test "${ac_cv_type_signal+set}" = set; then
47235 echo $ECHO_N "(cached) $ECHO_C" >&6
47237 cat >conftest.$ac_ext <<_ACEOF
47240 cat confdefs.h >>conftest.$ac_ext
47241 cat >>conftest.$ac_ext <<_ACEOF
47242 /* end confdefs.h. */
47243 #include <sys/types.h>
47244 #include <signal.h>
47249 extern "C" void (*signal (int, void (*)(int)))(int);
47251 void (*signal ()) ();
47262 rm -f conftest.$ac_objext
47263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47264 (eval $ac_compile) 2>conftest.er1
47266 grep -v '^ *+' conftest.er1 >conftest.err
47268 cat conftest.err >&5
47269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47270 (exit $ac_status); } &&
47271 { ac_try='test -z "$ac_c_werror_flag"
47272 || test ! -s conftest.err'
47273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47274 (eval $ac_try) 2>&5
47276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47277 (exit $ac_status); }; } &&
47278 { ac_try='test -s conftest.$ac_objext'
47279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47280 (eval $ac_try) 2>&5
47282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47283 (exit $ac_status); }; }; then
47284 ac_cv_type_signal=void
47286 echo "$as_me: failed program was:" >&5
47287 sed 's/^/| /' conftest.$ac_ext >&5
47289 ac_cv_type_signal=int
47291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47293 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
47294 echo "${ECHO_T}$ac_cv_type_signal" >&6
47296 cat >>confdefs.h <<_ACEOF
47297 #define RETSIGTYPE $ac_cv_type_signal
47301 echo "$as_me:$LINENO: checking for size_t" >&5
47302 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
47303 if test "${ac_cv_type_size_t+set}" = set; then
47304 echo $ECHO_N "(cached) $ECHO_C" >&6
47306 cat >conftest.$ac_ext <<_ACEOF
47309 cat confdefs.h >>conftest.$ac_ext
47310 cat >>conftest.$ac_ext <<_ACEOF
47311 /* end confdefs.h. */
47312 $ac_includes_default
47318 if (sizeof (size_t))
47324 rm -f conftest.$ac_objext
47325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47326 (eval $ac_compile) 2>conftest.er1
47328 grep -v '^ *+' conftest.er1 >conftest.err
47330 cat conftest.err >&5
47331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47332 (exit $ac_status); } &&
47333 { ac_try='test -z "$ac_c_werror_flag"
47334 || test ! -s conftest.err'
47335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47336 (eval $ac_try) 2>&5
47338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47339 (exit $ac_status); }; } &&
47340 { ac_try='test -s conftest.$ac_objext'
47341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47342 (eval $ac_try) 2>&5
47344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47345 (exit $ac_status); }; }; then
47346 ac_cv_type_size_t=yes
47348 echo "$as_me: failed program was:" >&5
47349 sed 's/^/| /' conftest.$ac_ext >&5
47351 ac_cv_type_size_t=no
47353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47355 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
47356 echo "${ECHO_T}$ac_cv_type_size_t" >&6
47357 if test $ac_cv_type_size_t = yes; then
47361 cat >>confdefs.h <<_ACEOF
47362 #define size_t unsigned
47368 echo "$as_me:$LINENO: checking for ssize_t" >&5
47369 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
47370 if test "${ac_cv_type_ssize_t+set}" = set; then
47371 echo $ECHO_N "(cached) $ECHO_C" >&6
47373 cat >conftest.$ac_ext <<_ACEOF
47376 cat confdefs.h >>conftest.$ac_ext
47377 cat >>conftest.$ac_ext <<_ACEOF
47378 /* end confdefs.h. */
47379 $ac_includes_default
47385 if (sizeof (ssize_t))
47391 rm -f conftest.$ac_objext
47392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47393 (eval $ac_compile) 2>conftest.er1
47395 grep -v '^ *+' conftest.er1 >conftest.err
47397 cat conftest.err >&5
47398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47399 (exit $ac_status); } &&
47400 { ac_try='test -z "$ac_c_werror_flag"
47401 || test ! -s conftest.err'
47402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47403 (eval $ac_try) 2>&5
47405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47406 (exit $ac_status); }; } &&
47407 { ac_try='test -s conftest.$ac_objext'
47408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47409 (eval $ac_try) 2>&5
47411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47412 (exit $ac_status); }; }; then
47413 ac_cv_type_ssize_t=yes
47415 echo "$as_me: failed program was:" >&5
47416 sed 's/^/| /' conftest.$ac_ext >&5
47418 ac_cv_type_ssize_t=no
47420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47422 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
47423 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
47424 if test $ac_cv_type_ssize_t = yes; then
47428 cat >>confdefs.h <<_ACEOF
47429 #define ssize_t signed int
47434 echo "$as_me:$LINENO: checking for caddr_t" >&5
47435 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
47436 if test "${ac_cv_type_caddr_t+set}" = set; then
47437 echo $ECHO_N "(cached) $ECHO_C" >&6
47439 cat >conftest.$ac_ext <<_ACEOF
47442 cat confdefs.h >>conftest.$ac_ext
47443 cat >>conftest.$ac_ext <<_ACEOF
47444 /* end confdefs.h. */
47445 $ac_includes_default
47451 if (sizeof (caddr_t))
47457 rm -f conftest.$ac_objext
47458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47459 (eval $ac_compile) 2>conftest.er1
47461 grep -v '^ *+' conftest.er1 >conftest.err
47463 cat conftest.err >&5
47464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47465 (exit $ac_status); } &&
47466 { ac_try='test -z "$ac_c_werror_flag"
47467 || test ! -s conftest.err'
47468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47469 (eval $ac_try) 2>&5
47471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47472 (exit $ac_status); }; } &&
47473 { ac_try='test -s conftest.$ac_objext'
47474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47475 (eval $ac_try) 2>&5
47477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47478 (exit $ac_status); }; }; then
47479 ac_cv_type_caddr_t=yes
47481 echo "$as_me: failed program was:" >&5
47482 sed 's/^/| /' conftest.$ac_ext >&5
47484 ac_cv_type_caddr_t=no
47486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47488 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
47489 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
47490 if test $ac_cv_type_caddr_t = yes; then
47494 cat >>confdefs.h <<_ACEOF
47495 #define caddr_t char *
47501 echo "$as_me:$LINENO: checking for socklen_t" >&5
47502 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
47503 if test "${ol_cv_type_socklen_t+set}" = set; then
47504 echo $ECHO_N "(cached) $ECHO_C" >&6
47506 cat >conftest.$ac_ext <<_ACEOF
47509 cat confdefs.h >>conftest.$ac_ext
47510 cat >>conftest.$ac_ext <<_ACEOF
47511 /* end confdefs.h. */
47513 #ifdef HAVE_SYS_TYPES_H
47514 #include <sys/types.h>
47516 #ifdef HAVE_SYS_SOCKET_H
47517 #include <sys/socket.h>
47528 rm -f conftest.$ac_objext
47529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47530 (eval $ac_compile) 2>conftest.er1
47532 grep -v '^ *+' conftest.er1 >conftest.err
47534 cat conftest.err >&5
47535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47536 (exit $ac_status); } &&
47537 { ac_try='test -z "$ac_c_werror_flag"
47538 || test ! -s conftest.err'
47539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47540 (eval $ac_try) 2>&5
47542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47543 (exit $ac_status); }; } &&
47544 { ac_try='test -s conftest.$ac_objext'
47545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47546 (eval $ac_try) 2>&5
47548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47549 (exit $ac_status); }; }; then
47550 ol_cv_type_socklen_t=yes
47552 echo "$as_me: failed program was:" >&5
47553 sed 's/^/| /' conftest.$ac_ext >&5
47555 ol_cv_type_socklen_t=no
47557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47559 echo "$as_me:$LINENO: result: $ol_cv_type_socklen_t" >&5
47560 echo "${ECHO_T}$ol_cv_type_socklen_t" >&6
47561 if test $ol_cv_type_socklen_t = no; then
47563 cat >>confdefs.h <<\_ACEOF
47564 #define socklen_t int
47570 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
47571 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
47572 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
47573 echo $ECHO_N "(cached) $ECHO_C" >&6
47575 cat >conftest.$ac_ext <<_ACEOF
47578 cat confdefs.h >>conftest.$ac_ext
47579 cat >>conftest.$ac_ext <<_ACEOF
47580 /* end confdefs.h. */
47581 $ac_includes_default
47585 static struct stat ac_aggr;
47586 if (ac_aggr.st_blksize)
47592 rm -f conftest.$ac_objext
47593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47594 (eval $ac_compile) 2>conftest.er1
47596 grep -v '^ *+' conftest.er1 >conftest.err
47598 cat conftest.err >&5
47599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47600 (exit $ac_status); } &&
47601 { ac_try='test -z "$ac_c_werror_flag"
47602 || test ! -s conftest.err'
47603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47604 (eval $ac_try) 2>&5
47606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47607 (exit $ac_status); }; } &&
47608 { ac_try='test -s conftest.$ac_objext'
47609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47610 (eval $ac_try) 2>&5
47612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47613 (exit $ac_status); }; }; then
47614 ac_cv_member_struct_stat_st_blksize=yes
47616 echo "$as_me: failed program was:" >&5
47617 sed 's/^/| /' conftest.$ac_ext >&5
47619 cat >conftest.$ac_ext <<_ACEOF
47622 cat confdefs.h >>conftest.$ac_ext
47623 cat >>conftest.$ac_ext <<_ACEOF
47624 /* end confdefs.h. */
47625 $ac_includes_default
47629 static struct stat ac_aggr;
47630 if (sizeof ac_aggr.st_blksize)
47636 rm -f conftest.$ac_objext
47637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47638 (eval $ac_compile) 2>conftest.er1
47640 grep -v '^ *+' conftest.er1 >conftest.err
47642 cat conftest.err >&5
47643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47644 (exit $ac_status); } &&
47645 { ac_try='test -z "$ac_c_werror_flag"
47646 || test ! -s conftest.err'
47647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47648 (eval $ac_try) 2>&5
47650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47651 (exit $ac_status); }; } &&
47652 { ac_try='test -s conftest.$ac_objext'
47653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47654 (eval $ac_try) 2>&5
47656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47657 (exit $ac_status); }; }; then
47658 ac_cv_member_struct_stat_st_blksize=yes
47660 echo "$as_me: failed program was:" >&5
47661 sed 's/^/| /' conftest.$ac_ext >&5
47663 ac_cv_member_struct_stat_st_blksize=no
47665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47669 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
47670 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
47671 if test $ac_cv_member_struct_stat_st_blksize = yes; then
47673 cat >>confdefs.h <<_ACEOF
47674 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
47678 cat >>confdefs.h <<\_ACEOF
47679 #define HAVE_ST_BLKSIZE 1
47685 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
47686 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
47687 if test "${ac_cv_header_time+set}" = set; then
47688 echo $ECHO_N "(cached) $ECHO_C" >&6
47690 cat >conftest.$ac_ext <<_ACEOF
47693 cat confdefs.h >>conftest.$ac_ext
47694 cat >>conftest.$ac_ext <<_ACEOF
47695 /* end confdefs.h. */
47696 #include <sys/types.h>
47697 #include <sys/time.h>
47703 if ((struct tm *) 0)
47709 rm -f conftest.$ac_objext
47710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47711 (eval $ac_compile) 2>conftest.er1
47713 grep -v '^ *+' conftest.er1 >conftest.err
47715 cat conftest.err >&5
47716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47717 (exit $ac_status); } &&
47718 { ac_try='test -z "$ac_c_werror_flag"
47719 || test ! -s conftest.err'
47720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47721 (eval $ac_try) 2>&5
47723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47724 (exit $ac_status); }; } &&
47725 { ac_try='test -s conftest.$ac_objext'
47726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47727 (eval $ac_try) 2>&5
47729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47730 (exit $ac_status); }; }; then
47731 ac_cv_header_time=yes
47733 echo "$as_me: failed program was:" >&5
47734 sed 's/^/| /' conftest.$ac_ext >&5
47736 ac_cv_header_time=no
47738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47740 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
47741 echo "${ECHO_T}$ac_cv_header_time" >&6
47742 if test $ac_cv_header_time = yes; then
47744 cat >>confdefs.h <<\_ACEOF
47745 #define TIME_WITH_SYS_TIME 1
47750 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
47751 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
47752 if test "${ac_cv_struct_tm+set}" = set; then
47753 echo $ECHO_N "(cached) $ECHO_C" >&6
47755 cat >conftest.$ac_ext <<_ACEOF
47758 cat confdefs.h >>conftest.$ac_ext
47759 cat >>conftest.$ac_ext <<_ACEOF
47760 /* end confdefs.h. */
47761 #include <sys/types.h>
47767 struct tm *tp; tp->tm_sec;
47772 rm -f conftest.$ac_objext
47773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47774 (eval $ac_compile) 2>conftest.er1
47776 grep -v '^ *+' conftest.er1 >conftest.err
47778 cat conftest.err >&5
47779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47780 (exit $ac_status); } &&
47781 { ac_try='test -z "$ac_c_werror_flag"
47782 || test ! -s conftest.err'
47783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47784 (eval $ac_try) 2>&5
47786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47787 (exit $ac_status); }; } &&
47788 { ac_try='test -s conftest.$ac_objext'
47789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47790 (eval $ac_try) 2>&5
47792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47793 (exit $ac_status); }; }; then
47794 ac_cv_struct_tm=time.h
47796 echo "$as_me: failed program was:" >&5
47797 sed 's/^/| /' conftest.$ac_ext >&5
47799 ac_cv_struct_tm=sys/time.h
47801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47803 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
47804 echo "${ECHO_T}$ac_cv_struct_tm" >&6
47805 if test $ac_cv_struct_tm = sys/time.h; then
47807 cat >>confdefs.h <<\_ACEOF
47808 #define TM_IN_SYS_TIME 1
47813 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
47814 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
47815 if test "${ac_cv_type_uid_t+set}" = set; then
47816 echo $ECHO_N "(cached) $ECHO_C" >&6
47818 cat >conftest.$ac_ext <<_ACEOF
47821 cat confdefs.h >>conftest.$ac_ext
47822 cat >>conftest.$ac_ext <<_ACEOF
47823 /* end confdefs.h. */
47824 #include <sys/types.h>
47827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47828 $EGREP "uid_t" >/dev/null 2>&1; then
47829 ac_cv_type_uid_t=yes
47831 ac_cv_type_uid_t=no
47836 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
47837 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
47838 if test $ac_cv_type_uid_t = no; then
47840 cat >>confdefs.h <<\_ACEOF
47845 cat >>confdefs.h <<\_ACEOF
47851 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
47852 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
47853 if test "${ol_cv_type_sig_atomic_t+set}" = set; then
47854 echo $ECHO_N "(cached) $ECHO_C" >&6
47856 cat >conftest.$ac_ext <<_ACEOF
47859 cat confdefs.h >>conftest.$ac_ext
47860 cat >>conftest.$ac_ext <<_ACEOF
47861 /* end confdefs.h. */
47862 #include <signal.h>
47866 sig_atomic_t atomic;
47871 rm -f conftest.$ac_objext
47872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47873 (eval $ac_compile) 2>conftest.er1
47875 grep -v '^ *+' conftest.er1 >conftest.err
47877 cat conftest.err >&5
47878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47879 (exit $ac_status); } &&
47880 { ac_try='test -z "$ac_c_werror_flag"
47881 || test ! -s conftest.err'
47882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47883 (eval $ac_try) 2>&5
47885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47886 (exit $ac_status); }; } &&
47887 { ac_try='test -s conftest.$ac_objext'
47888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47889 (eval $ac_try) 2>&5
47891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47892 (exit $ac_status); }; }; then
47893 ol_cv_type_sig_atomic_t=yes
47895 echo "$as_me: failed program was:" >&5
47896 sed 's/^/| /' conftest.$ac_ext >&5
47898 ol_cv_type_sig_atomic_t=no
47900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47902 echo "$as_me:$LINENO: result: $ol_cv_type_sig_atomic_t" >&5
47903 echo "${ECHO_T}$ol_cv_type_sig_atomic_t" >&6
47904 if test $ol_cv_type_sig_atomic_t = no; then
47906 cat >>confdefs.h <<\_ACEOF
47907 #define sig_atomic_t int
47914 # test for pw_gecos in struct passwd
47915 echo "$as_me:$LINENO: checking struct passwd for pw_gecos" >&5
47916 echo $ECHO_N "checking struct passwd for pw_gecos... $ECHO_C" >&6
47917 if test "${ol_cv_struct_passwd_pw_gecos+set}" = set; then
47918 echo $ECHO_N "(cached) $ECHO_C" >&6
47921 cat >conftest.$ac_ext <<_ACEOF
47924 cat confdefs.h >>conftest.$ac_ext
47925 cat >>conftest.$ac_ext <<_ACEOF
47926 /* end confdefs.h. */
47933 pwd.pw_gecos = pwd.pw_name;
47939 rm -f conftest.$ac_objext
47940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47941 (eval $ac_compile) 2>conftest.er1
47943 grep -v '^ *+' conftest.er1 >conftest.err
47945 cat conftest.err >&5
47946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47947 (exit $ac_status); } &&
47948 { ac_try='test -z "$ac_c_werror_flag"
47949 || test ! -s conftest.err'
47950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47951 (eval $ac_try) 2>&5
47953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47954 (exit $ac_status); }; } &&
47955 { ac_try='test -s conftest.$ac_objext'
47956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47957 (eval $ac_try) 2>&5
47959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47960 (exit $ac_status); }; }; then
47961 ol_cv_struct_passwd_pw_gecos=yes
47963 echo "$as_me: failed program was:" >&5
47964 sed 's/^/| /' conftest.$ac_ext >&5
47966 ol_cv_struct_passwd_pw_gecos=no
47968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47970 echo "$as_me:$LINENO: result: $ol_cv_struct_passwd_pw_gecos" >&5
47971 echo "${ECHO_T}$ol_cv_struct_passwd_pw_gecos" >&6
47972 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
47974 cat >>confdefs.h <<\_ACEOF
47975 #define HAVE_PW_GECOS 1
47980 # test for pw_passwd in struct passwd
47981 echo "$as_me:$LINENO: checking struct passwd for pw_passwd" >&5
47982 echo $ECHO_N "checking struct passwd for pw_passwd... $ECHO_C" >&6
47983 if test "${ol_cv_struct_passwd_pw_passwd+set}" = set; then
47984 echo $ECHO_N "(cached) $ECHO_C" >&6
47987 cat >conftest.$ac_ext <<_ACEOF
47990 cat confdefs.h >>conftest.$ac_ext
47991 cat >>conftest.$ac_ext <<_ACEOF
47992 /* end confdefs.h. */
47999 pwd.pw_passwd = pwd.pw_name;
48005 rm -f conftest.$ac_objext
48006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48007 (eval $ac_compile) 2>conftest.er1
48009 grep -v '^ *+' conftest.er1 >conftest.err
48011 cat conftest.err >&5
48012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48013 (exit $ac_status); } &&
48014 { ac_try='test -z "$ac_c_werror_flag"
48015 || test ! -s conftest.err'
48016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48017 (eval $ac_try) 2>&5
48019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48020 (exit $ac_status); }; } &&
48021 { ac_try='test -s conftest.$ac_objext'
48022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48023 (eval $ac_try) 2>&5
48025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48026 (exit $ac_status); }; }; then
48027 ol_cv_struct_passwd_pw_passwd=yes
48029 echo "$as_me: failed program was:" >&5
48030 sed 's/^/| /' conftest.$ac_ext >&5
48032 ol_cv_struct_passwd_pw_passwd=no
48034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48036 echo "$as_me:$LINENO: result: $ol_cv_struct_passwd_pw_passwd" >&5
48037 echo "${ECHO_T}$ol_cv_struct_passwd_pw_passwd" >&6
48038 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
48040 cat >>confdefs.h <<\_ACEOF
48041 #define HAVE_PW_PASSWD 1
48047 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
48048 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
48049 if test "${ol_cv_c_upper_lower+set}" = set; then
48050 echo $ECHO_N "(cached) $ECHO_C" >&6
48053 if test "$cross_compiling" = yes; then
48054 ol_cv_c_upper_lower=safe
48056 cat >conftest.$ac_ext <<_ACEOF
48059 cat confdefs.h >>conftest.$ac_ext
48060 cat >>conftest.$ac_ext <<_ACEOF
48061 /* end confdefs.h. */
48066 if ('C' == toupper('C'))
48072 rm -f conftest$ac_exeext
48073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48074 (eval $ac_link) 2>&5
48076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48077 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48079 (eval $ac_try) 2>&5
48081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48082 (exit $ac_status); }; }; then
48083 ol_cv_c_upper_lower=no
48085 echo "$as_me: program exited with status $ac_status" >&5
48086 echo "$as_me: failed program was:" >&5
48087 sed 's/^/| /' conftest.$ac_ext >&5
48089 ( exit $ac_status )
48090 ol_cv_c_upper_lower=yes
48092 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48095 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
48096 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
48097 if test $ol_cv_c_upper_lower != no ; then
48099 cat >>confdefs.h <<\_ACEOF
48100 #define C_UPPER_LOWER 1
48105 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
48106 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
48107 if test "${ac_cv_c_const+set}" = set; then
48108 echo $ECHO_N "(cached) $ECHO_C" >&6
48110 cat >conftest.$ac_ext <<_ACEOF
48113 cat confdefs.h >>conftest.$ac_ext
48114 cat >>conftest.$ac_ext <<_ACEOF
48115 /* end confdefs.h. */
48120 /* FIXME: Include the comments suggested by Paul. */
48121 #ifndef __cplusplus
48122 /* Ultrix mips cc rejects this. */
48123 typedef int charset[2];
48125 /* SunOS 4.1.1 cc rejects this. */
48126 char const *const *ccp;
48128 /* NEC SVR4.0.2 mips cc rejects this. */
48129 struct point {int x, y;};
48130 static struct point const zero = {0,0};
48131 /* AIX XL C 1.02.0.0 rejects this.
48132 It does not let you subtract one const X* pointer from another in
48133 an arm of an if-expression whose if-part is not a constant
48135 const char *g = "string";
48136 ccp = &g + (g ? g-g : 0);
48137 /* HPUX 7.0 cc rejects these. */
48140 ccp = (char const *const *) p;
48141 { /* SCO 3.2v4 cc rejects this. */
48143 char const *s = 0 ? (char *) 0 : (char const *) 0;
48147 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
48148 int x[] = {25, 17};
48149 const int *foo = &x[0];
48152 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
48153 typedef const int *iptr;
48157 { /* AIX XL C 1.02.0.0 rejects this saying
48158 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
48159 struct s { int j; const int *ap[3]; };
48160 struct s *b; b->j = 5;
48162 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
48163 const int foo = 10;
48171 rm -f conftest.$ac_objext
48172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48173 (eval $ac_compile) 2>conftest.er1
48175 grep -v '^ *+' conftest.er1 >conftest.err
48177 cat conftest.err >&5
48178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48179 (exit $ac_status); } &&
48180 { ac_try='test -z "$ac_c_werror_flag"
48181 || test ! -s conftest.err'
48182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48183 (eval $ac_try) 2>&5
48185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48186 (exit $ac_status); }; } &&
48187 { ac_try='test -s conftest.$ac_objext'
48188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48189 (eval $ac_try) 2>&5
48191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48192 (exit $ac_status); }; }; then
48195 echo "$as_me: failed program was:" >&5
48196 sed 's/^/| /' conftest.$ac_ext >&5
48200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48202 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
48203 echo "${ECHO_T}$ac_cv_c_const" >&6
48204 if test $ac_cv_c_const = no; then
48206 cat >>confdefs.h <<\_ACEOF
48212 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
48213 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
48214 if test "${ol_cv_c_volatile+set}" = set; then
48215 echo $ECHO_N "(cached) $ECHO_C" >&6
48217 cat >conftest.$ac_ext <<_ACEOF
48220 cat confdefs.h >>conftest.$ac_ext
48221 cat >>conftest.$ac_ext <<_ACEOF
48222 /* end confdefs.h. */
48227 volatile int a; int * volatile b = x ? &y : &z;
48228 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
48234 rm -f conftest.$ac_objext
48235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48236 (eval $ac_compile) 2>conftest.er1
48238 grep -v '^ *+' conftest.er1 >conftest.err
48240 cat conftest.err >&5
48241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48242 (exit $ac_status); } &&
48243 { ac_try='test -z "$ac_c_werror_flag"
48244 || test ! -s conftest.err'
48245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48246 (eval $ac_try) 2>&5
48248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48249 (exit $ac_status); }; } &&
48250 { ac_try='test -s conftest.$ac_objext'
48251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48252 (eval $ac_try) 2>&5
48254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48255 (exit $ac_status); }; }; then
48256 ol_cv_c_volatile=yes
48258 echo "$as_me: failed program was:" >&5
48259 sed 's/^/| /' conftest.$ac_ext >&5
48261 ol_cv_c_volatile=no
48263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48265 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
48266 echo "${ECHO_T}$ol_cv_c_volatile" >&6
48267 if test $ol_cv_c_volatile = yes; then
48271 cat >>confdefs.h <<\_ACEOF
48278 if test $cross_compiling = yes ; then
48279 { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
48280 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
48282 cat >>confdefs.h <<\_ACEOF
48283 #define CROSS_COMPILING 1
48287 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
48288 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
48289 if test "${ac_cv_c_bigendian+set}" = set; then
48290 echo $ECHO_N "(cached) $ECHO_C" >&6
48292 # See if sys/param.h defines the BYTE_ORDER macro.
48293 cat >conftest.$ac_ext <<_ACEOF
48296 cat confdefs.h >>conftest.$ac_ext
48297 cat >>conftest.$ac_ext <<_ACEOF
48298 /* end confdefs.h. */
48299 #include <sys/types.h>
48300 #include <sys/param.h>
48305 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
48306 bogus endian macros
48313 rm -f conftest.$ac_objext
48314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48315 (eval $ac_compile) 2>conftest.er1
48317 grep -v '^ *+' conftest.er1 >conftest.err
48319 cat conftest.err >&5
48320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48321 (exit $ac_status); } &&
48322 { ac_try='test -z "$ac_c_werror_flag"
48323 || test ! -s conftest.err'
48324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48325 (eval $ac_try) 2>&5
48327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48328 (exit $ac_status); }; } &&
48329 { ac_try='test -s conftest.$ac_objext'
48330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48331 (eval $ac_try) 2>&5
48333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48334 (exit $ac_status); }; }; then
48335 # It does; now see whether it defined to BIG_ENDIAN or not.
48336 cat >conftest.$ac_ext <<_ACEOF
48339 cat confdefs.h >>conftest.$ac_ext
48340 cat >>conftest.$ac_ext <<_ACEOF
48341 /* end confdefs.h. */
48342 #include <sys/types.h>
48343 #include <sys/param.h>
48348 #if BYTE_ORDER != BIG_ENDIAN
48356 rm -f conftest.$ac_objext
48357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48358 (eval $ac_compile) 2>conftest.er1
48360 grep -v '^ *+' conftest.er1 >conftest.err
48362 cat conftest.err >&5
48363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48364 (exit $ac_status); } &&
48365 { ac_try='test -z "$ac_c_werror_flag"
48366 || test ! -s conftest.err'
48367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48368 (eval $ac_try) 2>&5
48370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48371 (exit $ac_status); }; } &&
48372 { ac_try='test -s conftest.$ac_objext'
48373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48374 (eval $ac_try) 2>&5
48376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48377 (exit $ac_status); }; }; then
48378 ac_cv_c_bigendian=yes
48380 echo "$as_me: failed program was:" >&5
48381 sed 's/^/| /' conftest.$ac_ext >&5
48383 ac_cv_c_bigendian=no
48385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48387 echo "$as_me: failed program was:" >&5
48388 sed 's/^/| /' conftest.$ac_ext >&5
48390 # It does not; compile a test program.
48391 if test "$cross_compiling" = yes; then
48392 # try to guess the endianness by grepping values into an object file
48393 ac_cv_c_bigendian=unknown
48394 cat >conftest.$ac_ext <<_ACEOF
48397 cat confdefs.h >>conftest.$ac_ext
48398 cat >>conftest.$ac_ext <<_ACEOF
48399 /* end confdefs.h. */
48400 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
48401 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
48402 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
48403 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
48404 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
48405 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
48409 _ascii (); _ebcdic ();
48414 rm -f conftest.$ac_objext
48415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48416 (eval $ac_compile) 2>conftest.er1
48418 grep -v '^ *+' conftest.er1 >conftest.err
48420 cat conftest.err >&5
48421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48422 (exit $ac_status); } &&
48423 { ac_try='test -z "$ac_c_werror_flag"
48424 || test ! -s conftest.err'
48425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48426 (eval $ac_try) 2>&5
48428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48429 (exit $ac_status); }; } &&
48430 { ac_try='test -s conftest.$ac_objext'
48431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48432 (eval $ac_try) 2>&5
48434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48435 (exit $ac_status); }; }; then
48436 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
48437 ac_cv_c_bigendian=yes
48439 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
48440 if test "$ac_cv_c_bigendian" = unknown; then
48441 ac_cv_c_bigendian=no
48443 # finding both strings is unlikely to happen, but who knows?
48444 ac_cv_c_bigendian=unknown
48448 echo "$as_me: failed program was:" >&5
48449 sed 's/^/| /' conftest.$ac_ext >&5
48452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48454 cat >conftest.$ac_ext <<_ACEOF
48457 cat confdefs.h >>conftest.$ac_ext
48458 cat >>conftest.$ac_ext <<_ACEOF
48459 /* end confdefs.h. */
48463 /* Are we little or big endian? From Harbison&Steele. */
48467 char c[sizeof (long)];
48470 exit (u.c[sizeof (long) - 1] == 1);
48473 rm -f conftest$ac_exeext
48474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48475 (eval $ac_link) 2>&5
48477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48478 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48480 (eval $ac_try) 2>&5
48482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48483 (exit $ac_status); }; }; then
48484 ac_cv_c_bigendian=no
48486 echo "$as_me: program exited with status $ac_status" >&5
48487 echo "$as_me: failed program was:" >&5
48488 sed 's/^/| /' conftest.$ac_ext >&5
48490 ( exit $ac_status )
48491 ac_cv_c_bigendian=yes
48493 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48498 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
48499 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
48500 case $ac_cv_c_bigendian in
48503 cat >>confdefs.h <<\_ACEOF
48504 #define WORDS_BIGENDIAN 1
48510 { { echo "$as_me:$LINENO: error: unknown endianness
48511 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
48512 echo "$as_me: error: unknown endianness
48513 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
48514 { (exit 1); exit 1; }; } ;;
48519 echo "$as_me:$LINENO: checking size of short" >&5
48520 echo $ECHO_N "checking size of short... $ECHO_C" >&6
48521 if test "${ac_cv_sizeof_short+set}" = set; then
48522 echo $ECHO_N "(cached) $ECHO_C" >&6
48524 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
48525 cat >conftest.$ac_ext <<_ACEOF
48528 cat confdefs.h >>conftest.$ac_ext
48529 cat >>conftest.$ac_ext <<_ACEOF
48530 /* end confdefs.h. */
48531 #include "confdefs.h"
48532 #include <stdlib.h>
48533 #include <sys/types.h>
48539 switch (0) case 0: case (sizeof (short) == $ac_size):;
48544 rm -f conftest.$ac_objext
48545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48546 (eval $ac_compile) 2>conftest.er1
48548 grep -v '^ *+' conftest.er1 >conftest.err
48550 cat conftest.err >&5
48551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48552 (exit $ac_status); } &&
48553 { ac_try='test -z "$ac_c_werror_flag"
48554 || test ! -s conftest.err'
48555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48556 (eval $ac_try) 2>&5
48558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48559 (exit $ac_status); }; } &&
48560 { ac_try='test -s conftest.$ac_objext'
48561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48562 (eval $ac_try) 2>&5
48564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48565 (exit $ac_status); }; }; then
48566 ac_cv_sizeof_short=$ac_size
48568 echo "$as_me: failed program was:" >&5
48569 sed 's/^/| /' conftest.$ac_ext >&5
48572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48573 if test x$ac_cv_sizeof_short != x ; then break; fi
48578 if test x$ac_cv_sizeof_short = x ; then
48579 { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
48580 echo "$as_me: error: cannot determine a size for short" >&2;}
48581 { (exit 1); exit 1; }; }
48583 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
48584 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
48586 cat >>confdefs.h <<_ACEOF
48587 #define SIZEOF_SHORT $ac_cv_sizeof_short
48591 echo "$as_me:$LINENO: checking size of int" >&5
48592 echo $ECHO_N "checking size of int... $ECHO_C" >&6
48593 if test "${ac_cv_sizeof_int+set}" = set; then
48594 echo $ECHO_N "(cached) $ECHO_C" >&6
48596 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
48597 cat >conftest.$ac_ext <<_ACEOF
48600 cat confdefs.h >>conftest.$ac_ext
48601 cat >>conftest.$ac_ext <<_ACEOF
48602 /* end confdefs.h. */
48603 #include "confdefs.h"
48604 #include <stdlib.h>
48605 #include <sys/types.h>
48611 switch (0) case 0: case (sizeof (int) == $ac_size):;
48616 rm -f conftest.$ac_objext
48617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48618 (eval $ac_compile) 2>conftest.er1
48620 grep -v '^ *+' conftest.er1 >conftest.err
48622 cat conftest.err >&5
48623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48624 (exit $ac_status); } &&
48625 { ac_try='test -z "$ac_c_werror_flag"
48626 || test ! -s conftest.err'
48627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48628 (eval $ac_try) 2>&5
48630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48631 (exit $ac_status); }; } &&
48632 { ac_try='test -s conftest.$ac_objext'
48633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48634 (eval $ac_try) 2>&5
48636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48637 (exit $ac_status); }; }; then
48638 ac_cv_sizeof_int=$ac_size
48640 echo "$as_me: failed program was:" >&5
48641 sed 's/^/| /' conftest.$ac_ext >&5
48644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48645 if test x$ac_cv_sizeof_int != x ; then break; fi
48650 if test x$ac_cv_sizeof_int = x ; then
48651 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
48652 echo "$as_me: error: cannot determine a size for int" >&2;}
48653 { (exit 1); exit 1; }; }
48655 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
48656 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
48658 cat >>confdefs.h <<_ACEOF
48659 #define SIZEOF_INT $ac_cv_sizeof_int
48663 echo "$as_me:$LINENO: checking size of long" >&5
48664 echo $ECHO_N "checking size of long... $ECHO_C" >&6
48665 if test "${ac_cv_sizeof_long+set}" = set; then
48666 echo $ECHO_N "(cached) $ECHO_C" >&6
48668 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
48669 cat >conftest.$ac_ext <<_ACEOF
48672 cat confdefs.h >>conftest.$ac_ext
48673 cat >>conftest.$ac_ext <<_ACEOF
48674 /* end confdefs.h. */
48675 #include "confdefs.h"
48676 #include <stdlib.h>
48677 #include <sys/types.h>
48683 switch (0) case 0: case (sizeof (long) == $ac_size):;
48688 rm -f conftest.$ac_objext
48689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48690 (eval $ac_compile) 2>conftest.er1
48692 grep -v '^ *+' conftest.er1 >conftest.err
48694 cat conftest.err >&5
48695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48696 (exit $ac_status); } &&
48697 { ac_try='test -z "$ac_c_werror_flag"
48698 || test ! -s conftest.err'
48699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48700 (eval $ac_try) 2>&5
48702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48703 (exit $ac_status); }; } &&
48704 { ac_try='test -s conftest.$ac_objext'
48705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48706 (eval $ac_try) 2>&5
48708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48709 (exit $ac_status); }; }; then
48710 ac_cv_sizeof_long=$ac_size
48712 echo "$as_me: failed program was:" >&5
48713 sed 's/^/| /' conftest.$ac_ext >&5
48716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48717 if test x$ac_cv_sizeof_long != x ; then break; fi
48722 if test x$ac_cv_sizeof_long = x ; then
48723 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
48724 echo "$as_me: error: cannot determine a size for long" >&2;}
48725 { (exit 1); exit 1; }; }
48727 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
48728 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
48730 cat >>confdefs.h <<_ACEOF
48731 #define SIZEOF_LONG $ac_cv_sizeof_long
48735 echo "$as_me:$LINENO: checking size of wchar_t" >&5
48736 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
48737 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
48738 echo $ECHO_N "(cached) $ECHO_C" >&6
48740 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
48741 cat >conftest.$ac_ext <<_ACEOF
48744 cat confdefs.h >>conftest.$ac_ext
48745 cat >>conftest.$ac_ext <<_ACEOF
48746 /* end confdefs.h. */
48747 #include "confdefs.h"
48748 #include <stdlib.h>
48749 #include <sys/types.h>
48755 switch (0) case 0: case (sizeof (wchar_t) == $ac_size):;
48760 rm -f conftest.$ac_objext
48761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48762 (eval $ac_compile) 2>conftest.er1
48764 grep -v '^ *+' conftest.er1 >conftest.err
48766 cat conftest.err >&5
48767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48768 (exit $ac_status); } &&
48769 { ac_try='test -z "$ac_c_werror_flag"
48770 || test ! -s conftest.err'
48771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48772 (eval $ac_try) 2>&5
48774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48775 (exit $ac_status); }; } &&
48776 { ac_try='test -s conftest.$ac_objext'
48777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48778 (eval $ac_try) 2>&5
48780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48781 (exit $ac_status); }; }; then
48782 ac_cv_sizeof_wchar_t=$ac_size
48784 echo "$as_me: failed program was:" >&5
48785 sed 's/^/| /' conftest.$ac_ext >&5
48788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48789 if test x$ac_cv_sizeof_wchar_t != x ; then break; fi
48794 if test x$ac_cv_sizeof_wchar_t = x ; then
48795 { { echo "$as_me:$LINENO: error: cannot determine a size for wchar_t" >&5
48796 echo "$as_me: error: cannot determine a size for wchar_t" >&2;}
48797 { (exit 1); exit 1; }; }
48799 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
48800 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
48802 cat >>confdefs.h <<_ACEOF
48803 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
48808 if test "$ac_cv_sizeof_int" -lt 4 ; then
48809 { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
48810 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
48812 cat >>confdefs.h <<\_ACEOF
48813 #define LBER_INT_T long
48817 cat >>confdefs.h <<\_ACEOF
48818 #define LBER_INT_T int
48823 cat >>confdefs.h <<\_ACEOF
48824 #define LBER_LEN_T long
48827 cat >>confdefs.h <<\_ACEOF
48828 #define LBER_SOCKET_T int
48831 cat >>confdefs.h <<\_ACEOF
48832 #define LBER_TAG_T long
48836 echo "$as_me:$LINENO: checking for working memcmp" >&5
48837 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
48838 if test "${ac_cv_func_memcmp_working+set}" = set; then
48839 echo $ECHO_N "(cached) $ECHO_C" >&6
48841 if test "$cross_compiling" = yes; then
48842 ac_cv_func_memcmp_working=no
48844 cat >conftest.$ac_ext <<_ACEOF
48847 cat confdefs.h >>conftest.$ac_ext
48848 cat >>conftest.$ac_ext <<_ACEOF
48849 /* end confdefs.h. */
48850 $ac_includes_default
48855 /* Some versions of memcmp are not 8-bit clean. */
48856 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
48857 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
48860 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
48861 or more and with at least one buffer not starting on a 4-byte boundary.
48862 William Lewis provided this test program. */
48867 for (i = 0; i < 4; i++)
48871 strcpy (a, "--------01111111");
48872 strcpy (b, "--------10000000");
48873 if (memcmp (a, b, 16) >= 0)
48883 rm -f conftest$ac_exeext
48884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48885 (eval $ac_link) 2>&5
48887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48888 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48890 (eval $ac_try) 2>&5
48892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48893 (exit $ac_status); }; }; then
48894 ac_cv_func_memcmp_working=yes
48896 echo "$as_me: program exited with status $ac_status" >&5
48897 echo "$as_me: failed program was:" >&5
48898 sed 's/^/| /' conftest.$ac_ext >&5
48900 ( exit $ac_status )
48901 ac_cv_func_memcmp_working=no
48903 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48906 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
48907 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
48908 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
48909 "memcmp.$ac_objext" | \
48910 *" memcmp.$ac_objext" | \
48911 "memcmp.$ac_objext "* | \
48912 *" memcmp.$ac_objext "* ) ;;
48913 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
48918 if test $ac_cv_func_memcmp_working = no ; then
48920 cat >>confdefs.h <<\_ACEOF
48921 #define NEED_MEMCMP_REPLACEMENT 1
48927 for ac_func in strftime
48929 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48930 echo "$as_me:$LINENO: checking for $ac_func" >&5
48931 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48932 if eval "test \"\${$as_ac_var+set}\" = set"; then
48933 echo $ECHO_N "(cached) $ECHO_C" >&6
48935 cat >conftest.$ac_ext <<_ACEOF
48938 cat confdefs.h >>conftest.$ac_ext
48939 cat >>conftest.$ac_ext <<_ACEOF
48940 /* end confdefs.h. */
48941 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48943 #define $ac_func innocuous_$ac_func
48945 /* System header to define __stub macros and hopefully few prototypes,
48946 which can conflict with char $ac_func (); below.
48947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48948 <limits.h> exists even on freestanding compilers. */
48951 # include <limits.h>
48953 # include <assert.h>
48958 /* Override any gcc2 internal prototype to avoid an error. */
48963 /* We use char because int might match the return type of a gcc2
48964 builtin and then its argument prototype would still apply. */
48966 /* The GNU C library defines this for functions which it implements
48967 to always fail with ENOSYS. Some functions are actually named
48968 something starting with __ and the normal name is an alias. */
48969 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48972 char (*f) () = $ac_func;
48981 return f != $ac_func;
48986 rm -f conftest.$ac_objext conftest$ac_exeext
48987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48988 (eval $ac_link) 2>conftest.er1
48990 grep -v '^ *+' conftest.er1 >conftest.err
48992 cat conftest.err >&5
48993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48994 (exit $ac_status); } &&
48995 { ac_try='test -z "$ac_c_werror_flag"
48996 || test ! -s conftest.err'
48997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48998 (eval $ac_try) 2>&5
49000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49001 (exit $ac_status); }; } &&
49002 { ac_try='test -s conftest$ac_exeext'
49003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49004 (eval $ac_try) 2>&5
49006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49007 (exit $ac_status); }; }; then
49008 eval "$as_ac_var=yes"
49010 echo "$as_me: failed program was:" >&5
49011 sed 's/^/| /' conftest.$ac_ext >&5
49013 eval "$as_ac_var=no"
49015 rm -f conftest.err conftest.$ac_objext \
49016 conftest$ac_exeext conftest.$ac_ext
49018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49019 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49020 if test `eval echo '${'$as_ac_var'}'` = yes; then
49021 cat >>confdefs.h <<_ACEOF
49022 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49026 # strftime is in -lintl on SCO UNIX.
49027 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
49028 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
49029 if test "${ac_cv_lib_intl_strftime+set}" = set; then
49030 echo $ECHO_N "(cached) $ECHO_C" >&6
49032 ac_check_lib_save_LIBS=$LIBS
49033 LIBS="-lintl $LIBS"
49034 cat >conftest.$ac_ext <<_ACEOF
49037 cat confdefs.h >>conftest.$ac_ext
49038 cat >>conftest.$ac_ext <<_ACEOF
49039 /* end confdefs.h. */
49041 /* Override any gcc2 internal prototype to avoid an error. */
49045 /* We use char because int might match the return type of a gcc2
49046 builtin and then its argument prototype would still apply. */
49056 rm -f conftest.$ac_objext conftest$ac_exeext
49057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49058 (eval $ac_link) 2>conftest.er1
49060 grep -v '^ *+' conftest.er1 >conftest.err
49062 cat conftest.err >&5
49063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49064 (exit $ac_status); } &&
49065 { ac_try='test -z "$ac_c_werror_flag"
49066 || test ! -s conftest.err'
49067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49068 (eval $ac_try) 2>&5
49070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49071 (exit $ac_status); }; } &&
49072 { ac_try='test -s conftest$ac_exeext'
49073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49074 (eval $ac_try) 2>&5
49076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49077 (exit $ac_status); }; }; then
49078 ac_cv_lib_intl_strftime=yes
49080 echo "$as_me: failed program was:" >&5
49081 sed 's/^/| /' conftest.$ac_ext >&5
49083 ac_cv_lib_intl_strftime=no
49085 rm -f conftest.err conftest.$ac_objext \
49086 conftest$ac_exeext conftest.$ac_ext
49087 LIBS=$ac_check_lib_save_LIBS
49089 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
49090 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
49091 if test $ac_cv_lib_intl_strftime = yes; then
49092 cat >>confdefs.h <<\_ACEOF
49093 #define HAVE_STRFTIME 1
49096 LIBS="-lintl $LIBS"
49103 echo "$as_me:$LINENO: checking for inet_aton()" >&5
49104 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
49105 if test "${ol_cv_func_inet_aton+set}" = set; then
49106 echo $ECHO_N "(cached) $ECHO_C" >&6
49108 cat >conftest.$ac_ext <<_ACEOF
49111 cat confdefs.h >>conftest.$ac_ext
49112 cat >>conftest.$ac_ext <<_ACEOF
49113 /* end confdefs.h. */
49115 #ifdef HAVE_SYS_TYPES_H
49116 # include <sys/types.h>
49118 #ifdef HAVE_SYS_SOCKET_H
49119 # include <sys/socket.h>
49120 # ifdef HAVE_SYS_SELECT_H
49121 # include <sys/select.h>
49123 # include <netinet/in.h>
49124 # ifdef HAVE_ARPA_INET_H
49125 # include <arpa/inet.h>
49133 int rc = inet_aton( "255.255.255.255", &in );
49138 rm -f conftest.$ac_objext conftest$ac_exeext
49139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49140 (eval $ac_link) 2>conftest.er1
49142 grep -v '^ *+' conftest.er1 >conftest.err
49144 cat conftest.err >&5
49145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49146 (exit $ac_status); } &&
49147 { ac_try='test -z "$ac_c_werror_flag"
49148 || test ! -s conftest.err'
49149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49150 (eval $ac_try) 2>&5
49152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49153 (exit $ac_status); }; } &&
49154 { ac_try='test -s conftest$ac_exeext'
49155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49156 (eval $ac_try) 2>&5
49158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49159 (exit $ac_status); }; }; then
49160 ol_cv_func_inet_aton=yes
49162 echo "$as_me: failed program was:" >&5
49163 sed 's/^/| /' conftest.$ac_ext >&5
49165 ol_cv_func_inet_aton=no
49167 rm -f conftest.err conftest.$ac_objext \
49168 conftest$ac_exeext conftest.$ac_ext
49170 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
49171 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
49172 if test $ol_cv_func_inet_aton != no; then
49174 cat >>confdefs.h <<\_ACEOF
49175 #define HAVE_INET_ATON 1
49181 echo "$as_me:$LINENO: checking for _spawnlp" >&5
49182 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
49183 if test "${ac_cv_func__spawnlp+set}" = set; then
49184 echo $ECHO_N "(cached) $ECHO_C" >&6
49186 cat >conftest.$ac_ext <<_ACEOF
49189 cat confdefs.h >>conftest.$ac_ext
49190 cat >>conftest.$ac_ext <<_ACEOF
49191 /* end confdefs.h. */
49192 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
49193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49194 #define _spawnlp innocuous__spawnlp
49196 /* System header to define __stub macros and hopefully few prototypes,
49197 which can conflict with char _spawnlp (); below.
49198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49199 <limits.h> exists even on freestanding compilers. */
49202 # include <limits.h>
49204 # include <assert.h>
49209 /* Override any gcc2 internal prototype to avoid an error. */
49214 /* We use char because int might match the return type of a gcc2
49215 builtin and then its argument prototype would still apply. */
49217 /* The GNU C library defines this for functions which it implements
49218 to always fail with ENOSYS. Some functions are actually named
49219 something starting with __ and the normal name is an alias. */
49220 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
49223 char (*f) () = _spawnlp;
49232 return f != _spawnlp;
49237 rm -f conftest.$ac_objext conftest$ac_exeext
49238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49239 (eval $ac_link) 2>conftest.er1
49241 grep -v '^ *+' conftest.er1 >conftest.err
49243 cat conftest.err >&5
49244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49245 (exit $ac_status); } &&
49246 { ac_try='test -z "$ac_c_werror_flag"
49247 || test ! -s conftest.err'
49248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49249 (eval $ac_try) 2>&5
49251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49252 (exit $ac_status); }; } &&
49253 { ac_try='test -s conftest$ac_exeext'
49254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49255 (eval $ac_try) 2>&5
49257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49258 (exit $ac_status); }; }; then
49259 ac_cv_func__spawnlp=yes
49261 echo "$as_me: failed program was:" >&5
49262 sed 's/^/| /' conftest.$ac_ext >&5
49264 ac_cv_func__spawnlp=no
49266 rm -f conftest.err conftest.$ac_objext \
49267 conftest$ac_exeext conftest.$ac_ext
49269 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
49270 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
49271 if test $ac_cv_func__spawnlp = yes; then
49273 cat >>confdefs.h <<\_ACEOF
49274 #define HAVE_SPAWNLP 1
49280 echo "$as_me:$LINENO: checking for _snprintf" >&5
49281 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
49282 if test "${ac_cv_func__snprintf+set}" = set; then
49283 echo $ECHO_N "(cached) $ECHO_C" >&6
49285 cat >conftest.$ac_ext <<_ACEOF
49288 cat confdefs.h >>conftest.$ac_ext
49289 cat >>conftest.$ac_ext <<_ACEOF
49290 /* end confdefs.h. */
49291 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
49292 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49293 #define _snprintf innocuous__snprintf
49295 /* System header to define __stub macros and hopefully few prototypes,
49296 which can conflict with char _snprintf (); below.
49297 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49298 <limits.h> exists even on freestanding compilers. */
49301 # include <limits.h>
49303 # include <assert.h>
49308 /* Override any gcc2 internal prototype to avoid an error. */
49313 /* We use char because int might match the return type of a gcc2
49314 builtin and then its argument prototype would still apply. */
49316 /* The GNU C library defines this for functions which it implements
49317 to always fail with ENOSYS. Some functions are actually named
49318 something starting with __ and the normal name is an alias. */
49319 #if defined (__stub__snprintf) || defined (__stub____snprintf)
49322 char (*f) () = _snprintf;
49331 return f != _snprintf;
49336 rm -f conftest.$ac_objext conftest$ac_exeext
49337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49338 (eval $ac_link) 2>conftest.er1
49340 grep -v '^ *+' conftest.er1 >conftest.err
49342 cat conftest.err >&5
49343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49344 (exit $ac_status); } &&
49345 { ac_try='test -z "$ac_c_werror_flag"
49346 || test ! -s conftest.err'
49347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49348 (eval $ac_try) 2>&5
49350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49351 (exit $ac_status); }; } &&
49352 { ac_try='test -s conftest$ac_exeext'
49353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49354 (eval $ac_try) 2>&5
49356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49357 (exit $ac_status); }; }; then
49358 ac_cv_func__snprintf=yes
49360 echo "$as_me: failed program was:" >&5
49361 sed 's/^/| /' conftest.$ac_ext >&5
49363 ac_cv_func__snprintf=no
49365 rm -f conftest.err conftest.$ac_objext \
49366 conftest$ac_exeext conftest.$ac_ext
49368 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
49369 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
49370 if test $ac_cv_func__snprintf = yes; then
49371 ac_cv_func_snprintf=yes
49373 cat >>confdefs.h <<\_ACEOF
49374 #define snprintf _snprintf
49381 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
49382 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
49383 if test "${ac_cv_func__vsnprintf+set}" = set; then
49384 echo $ECHO_N "(cached) $ECHO_C" >&6
49386 cat >conftest.$ac_ext <<_ACEOF
49389 cat confdefs.h >>conftest.$ac_ext
49390 cat >>conftest.$ac_ext <<_ACEOF
49391 /* end confdefs.h. */
49392 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
49393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49394 #define _vsnprintf innocuous__vsnprintf
49396 /* System header to define __stub macros and hopefully few prototypes,
49397 which can conflict with char _vsnprintf (); below.
49398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49399 <limits.h> exists even on freestanding compilers. */
49402 # include <limits.h>
49404 # include <assert.h>
49409 /* Override any gcc2 internal prototype to avoid an error. */
49414 /* We use char because int might match the return type of a gcc2
49415 builtin and then its argument prototype would still apply. */
49416 char _vsnprintf ();
49417 /* The GNU C library defines this for functions which it implements
49418 to always fail with ENOSYS. Some functions are actually named
49419 something starting with __ and the normal name is an alias. */
49420 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
49423 char (*f) () = _vsnprintf;
49432 return f != _vsnprintf;
49437 rm -f conftest.$ac_objext conftest$ac_exeext
49438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49439 (eval $ac_link) 2>conftest.er1
49441 grep -v '^ *+' conftest.er1 >conftest.err
49443 cat conftest.err >&5
49444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49445 (exit $ac_status); } &&
49446 { ac_try='test -z "$ac_c_werror_flag"
49447 || test ! -s conftest.err'
49448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49449 (eval $ac_try) 2>&5
49451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49452 (exit $ac_status); }; } &&
49453 { ac_try='test -s conftest$ac_exeext'
49454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49455 (eval $ac_try) 2>&5
49457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49458 (exit $ac_status); }; }; then
49459 ac_cv_func__vsnprintf=yes
49461 echo "$as_me: failed program was:" >&5
49462 sed 's/^/| /' conftest.$ac_ext >&5
49464 ac_cv_func__vsnprintf=no
49466 rm -f conftest.err conftest.$ac_objext \
49467 conftest$ac_exeext conftest.$ac_ext
49469 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
49470 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
49471 if test $ac_cv_func__vsnprintf = yes; then
49472 ac_cv_func_vsnprintf=yes
49474 cat >>confdefs.h <<\_ACEOF
49475 #define vsnprintf _vsnprintf
49483 for ac_func in vprintf
49485 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49486 echo "$as_me:$LINENO: checking for $ac_func" >&5
49487 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49488 if eval "test \"\${$as_ac_var+set}\" = set"; then
49489 echo $ECHO_N "(cached) $ECHO_C" >&6
49491 cat >conftest.$ac_ext <<_ACEOF
49494 cat confdefs.h >>conftest.$ac_ext
49495 cat >>conftest.$ac_ext <<_ACEOF
49496 /* end confdefs.h. */
49497 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49498 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49499 #define $ac_func innocuous_$ac_func
49501 /* System header to define __stub macros and hopefully few prototypes,
49502 which can conflict with char $ac_func (); below.
49503 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49504 <limits.h> exists even on freestanding compilers. */
49507 # include <limits.h>
49509 # include <assert.h>
49514 /* Override any gcc2 internal prototype to avoid an error. */
49519 /* We use char because int might match the return type of a gcc2
49520 builtin and then its argument prototype would still apply. */
49522 /* The GNU C library defines this for functions which it implements
49523 to always fail with ENOSYS. Some functions are actually named
49524 something starting with __ and the normal name is an alias. */
49525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49528 char (*f) () = $ac_func;
49537 return f != $ac_func;
49542 rm -f conftest.$ac_objext conftest$ac_exeext
49543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49544 (eval $ac_link) 2>conftest.er1
49546 grep -v '^ *+' conftest.er1 >conftest.err
49548 cat conftest.err >&5
49549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49550 (exit $ac_status); } &&
49551 { ac_try='test -z "$ac_c_werror_flag"
49552 || test ! -s conftest.err'
49553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49554 (eval $ac_try) 2>&5
49556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49557 (exit $ac_status); }; } &&
49558 { ac_try='test -s conftest$ac_exeext'
49559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49560 (eval $ac_try) 2>&5
49562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49563 (exit $ac_status); }; }; then
49564 eval "$as_ac_var=yes"
49566 echo "$as_me: failed program was:" >&5
49567 sed 's/^/| /' conftest.$ac_ext >&5
49569 eval "$as_ac_var=no"
49571 rm -f conftest.err conftest.$ac_objext \
49572 conftest$ac_exeext conftest.$ac_ext
49574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49575 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49576 if test `eval echo '${'$as_ac_var'}'` = yes; then
49577 cat >>confdefs.h <<_ACEOF
49578 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49581 echo "$as_me:$LINENO: checking for _doprnt" >&5
49582 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
49583 if test "${ac_cv_func__doprnt+set}" = set; then
49584 echo $ECHO_N "(cached) $ECHO_C" >&6
49586 cat >conftest.$ac_ext <<_ACEOF
49589 cat confdefs.h >>conftest.$ac_ext
49590 cat >>conftest.$ac_ext <<_ACEOF
49591 /* end confdefs.h. */
49592 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
49593 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49594 #define _doprnt innocuous__doprnt
49596 /* System header to define __stub macros and hopefully few prototypes,
49597 which can conflict with char _doprnt (); below.
49598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49599 <limits.h> exists even on freestanding compilers. */
49602 # include <limits.h>
49604 # include <assert.h>
49609 /* Override any gcc2 internal prototype to avoid an error. */
49614 /* We use char because int might match the return type of a gcc2
49615 builtin and then its argument prototype would still apply. */
49617 /* The GNU C library defines this for functions which it implements
49618 to always fail with ENOSYS. Some functions are actually named
49619 something starting with __ and the normal name is an alias. */
49620 #if defined (__stub__doprnt) || defined (__stub____doprnt)
49623 char (*f) () = _doprnt;
49632 return f != _doprnt;
49637 rm -f conftest.$ac_objext conftest$ac_exeext
49638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49639 (eval $ac_link) 2>conftest.er1
49641 grep -v '^ *+' conftest.er1 >conftest.err
49643 cat conftest.err >&5
49644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49645 (exit $ac_status); } &&
49646 { ac_try='test -z "$ac_c_werror_flag"
49647 || test ! -s conftest.err'
49648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49649 (eval $ac_try) 2>&5
49651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49652 (exit $ac_status); }; } &&
49653 { ac_try='test -s conftest$ac_exeext'
49654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49655 (eval $ac_try) 2>&5
49657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49658 (exit $ac_status); }; }; then
49659 ac_cv_func__doprnt=yes
49661 echo "$as_me: failed program was:" >&5
49662 sed 's/^/| /' conftest.$ac_ext >&5
49664 ac_cv_func__doprnt=no
49666 rm -f conftest.err conftest.$ac_objext \
49667 conftest$ac_exeext conftest.$ac_ext
49669 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
49670 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
49671 if test $ac_cv_func__doprnt = yes; then
49673 cat >>confdefs.h <<\_ACEOF
49674 #define HAVE_DOPRNT 1
49684 if test $ac_cv_func_vprintf = yes ; then
49687 for ac_func in snprintf vsnprintf
49689 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49690 echo "$as_me:$LINENO: checking for $ac_func" >&5
49691 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49692 if eval "test \"\${$as_ac_var+set}\" = set"; then
49693 echo $ECHO_N "(cached) $ECHO_C" >&6
49695 cat >conftest.$ac_ext <<_ACEOF
49698 cat confdefs.h >>conftest.$ac_ext
49699 cat >>conftest.$ac_ext <<_ACEOF
49700 /* end confdefs.h. */
49701 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49702 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49703 #define $ac_func innocuous_$ac_func
49705 /* System header to define __stub macros and hopefully few prototypes,
49706 which can conflict with char $ac_func (); below.
49707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49708 <limits.h> exists even on freestanding compilers. */
49711 # include <limits.h>
49713 # include <assert.h>
49718 /* Override any gcc2 internal prototype to avoid an error. */
49723 /* We use char because int might match the return type of a gcc2
49724 builtin and then its argument prototype would still apply. */
49726 /* The GNU C library defines this for functions which it implements
49727 to always fail with ENOSYS. Some functions are actually named
49728 something starting with __ and the normal name is an alias. */
49729 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49732 char (*f) () = $ac_func;
49741 return f != $ac_func;
49746 rm -f conftest.$ac_objext conftest$ac_exeext
49747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49748 (eval $ac_link) 2>conftest.er1
49750 grep -v '^ *+' conftest.er1 >conftest.err
49752 cat conftest.err >&5
49753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49754 (exit $ac_status); } &&
49755 { ac_try='test -z "$ac_c_werror_flag"
49756 || test ! -s conftest.err'
49757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49758 (eval $ac_try) 2>&5
49760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49761 (exit $ac_status); }; } &&
49762 { ac_try='test -s conftest$ac_exeext'
49763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49764 (eval $ac_try) 2>&5
49766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49767 (exit $ac_status); }; }; then
49768 eval "$as_ac_var=yes"
49770 echo "$as_me: failed program was:" >&5
49771 sed 's/^/| /' conftest.$ac_ext >&5
49773 eval "$as_ac_var=no"
49775 rm -f conftest.err conftest.$ac_objext \
49776 conftest$ac_exeext conftest.$ac_ext
49778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49779 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49780 if test `eval echo '${'$as_ac_var'}'` = yes; then
49781 cat >>confdefs.h <<_ACEOF
49782 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49899 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49900 echo "$as_me:$LINENO: checking for $ac_func" >&5
49901 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49902 if eval "test \"\${$as_ac_var+set}\" = set"; then
49903 echo $ECHO_N "(cached) $ECHO_C" >&6
49905 cat >conftest.$ac_ext <<_ACEOF
49908 cat confdefs.h >>conftest.$ac_ext
49909 cat >>conftest.$ac_ext <<_ACEOF
49910 /* end confdefs.h. */
49911 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49913 #define $ac_func innocuous_$ac_func
49915 /* System header to define __stub macros and hopefully few prototypes,
49916 which can conflict with char $ac_func (); below.
49917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49918 <limits.h> exists even on freestanding compilers. */
49921 # include <limits.h>
49923 # include <assert.h>
49928 /* Override any gcc2 internal prototype to avoid an error. */
49933 /* We use char because int might match the return type of a gcc2
49934 builtin and then its argument prototype would still apply. */
49936 /* The GNU C library defines this for functions which it implements
49937 to always fail with ENOSYS. Some functions are actually named
49938 something starting with __ and the normal name is an alias. */
49939 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49942 char (*f) () = $ac_func;
49951 return f != $ac_func;
49956 rm -f conftest.$ac_objext conftest$ac_exeext
49957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49958 (eval $ac_link) 2>conftest.er1
49960 grep -v '^ *+' conftest.er1 >conftest.err
49962 cat conftest.err >&5
49963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49964 (exit $ac_status); } &&
49965 { ac_try='test -z "$ac_c_werror_flag"
49966 || test ! -s conftest.err'
49967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49968 (eval $ac_try) 2>&5
49970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49971 (exit $ac_status); }; } &&
49972 { ac_try='test -s conftest$ac_exeext'
49973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49974 (eval $ac_try) 2>&5
49976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49977 (exit $ac_status); }; }; then
49978 eval "$as_ac_var=yes"
49980 echo "$as_me: failed program was:" >&5
49981 sed 's/^/| /' conftest.$ac_ext >&5
49983 eval "$as_ac_var=no"
49985 rm -f conftest.err conftest.$ac_objext \
49986 conftest$ac_exeext conftest.$ac_ext
49988 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49989 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49990 if test `eval echo '${'$as_ac_var'}'` = yes; then
49991 cat >>confdefs.h <<_ACEOF
49992 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50001 for ac_func in getopt getpeereid
50003 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50004 echo "$as_me:$LINENO: checking for $ac_func" >&5
50005 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50006 if eval "test \"\${$as_ac_var+set}\" = set"; then
50007 echo $ECHO_N "(cached) $ECHO_C" >&6
50009 cat >conftest.$ac_ext <<_ACEOF
50012 cat confdefs.h >>conftest.$ac_ext
50013 cat >>conftest.$ac_ext <<_ACEOF
50014 /* end confdefs.h. */
50015 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50016 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50017 #define $ac_func innocuous_$ac_func
50019 /* System header to define __stub macros and hopefully few prototypes,
50020 which can conflict with char $ac_func (); below.
50021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50022 <limits.h> exists even on freestanding compilers. */
50025 # include <limits.h>
50027 # include <assert.h>
50032 /* Override any gcc2 internal prototype to avoid an error. */
50037 /* We use char because int might match the return type of a gcc2
50038 builtin and then its argument prototype would still apply. */
50040 /* The GNU C library defines this for functions which it implements
50041 to always fail with ENOSYS. Some functions are actually named
50042 something starting with __ and the normal name is an alias. */
50043 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50046 char (*f) () = $ac_func;
50055 return f != $ac_func;
50060 rm -f conftest.$ac_objext conftest$ac_exeext
50061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50062 (eval $ac_link) 2>conftest.er1
50064 grep -v '^ *+' conftest.er1 >conftest.err
50066 cat conftest.err >&5
50067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50068 (exit $ac_status); } &&
50069 { ac_try='test -z "$ac_c_werror_flag"
50070 || test ! -s conftest.err'
50071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50072 (eval $ac_try) 2>&5
50074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50075 (exit $ac_status); }; } &&
50076 { ac_try='test -s conftest$ac_exeext'
50077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50078 (eval $ac_try) 2>&5
50080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50081 (exit $ac_status); }; }; then
50082 eval "$as_ac_var=yes"
50084 echo "$as_me: failed program was:" >&5
50085 sed 's/^/| /' conftest.$ac_ext >&5
50087 eval "$as_ac_var=no"
50089 rm -f conftest.err conftest.$ac_objext \
50090 conftest$ac_exeext conftest.$ac_ext
50092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50093 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50094 if test `eval echo '${'$as_ac_var'}'` = yes; then
50095 cat >>confdefs.h <<_ACEOF
50096 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50101 "$ac_func.$ac_objext" | \
50102 *" $ac_func.$ac_objext" | \
50103 "$ac_func.$ac_objext "* | \
50104 *" $ac_func.$ac_objext "* ) ;;
50105 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
50113 if test "$ac_cv_func_getopt" != yes; then
50114 LIBSRCS="$LIBSRCS getopt.c"
50116 if test "$ac_cv_func_getpeereid" != yes; then
50117 echo "$as_me:$LINENO: checking for msg_accrights in msghdr" >&5
50118 echo $ECHO_N "checking for msg_accrights in msghdr... $ECHO_C" >&6
50119 if test "${ol_cv_msghdr_msg_accrights+set}" = set; then
50120 echo $ECHO_N "(cached) $ECHO_C" >&6
50122 cat >conftest.$ac_ext <<_ACEOF
50125 cat confdefs.h >>conftest.$ac_ext
50126 cat >>conftest.$ac_ext <<_ACEOF
50127 /* end confdefs.h. */
50128 #include <sys/socket.h>
50132 struct msghdr m; m.msg_accrightslen=0
50137 rm -f conftest.$ac_objext
50138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50139 (eval $ac_compile) 2>conftest.er1
50141 grep -v '^ *+' conftest.er1 >conftest.err
50143 cat conftest.err >&5
50144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50145 (exit $ac_status); } &&
50146 { ac_try='test -z "$ac_c_werror_flag"
50147 || test ! -s conftest.err'
50148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50149 (eval $ac_try) 2>&5
50151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50152 (exit $ac_status); }; } &&
50153 { ac_try='test -s conftest.$ac_objext'
50154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50155 (eval $ac_try) 2>&5
50157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50158 (exit $ac_status); }; }; then
50159 ol_cv_msghdr_msg_accrights=yes
50161 echo "$as_me: failed program was:" >&5
50162 sed 's/^/| /' conftest.$ac_ext >&5
50164 ol_cv_msghdr_msg_accrights=no
50166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50169 echo "$as_me:$LINENO: result: $ol_cv_msghdr_msg_accrights" >&5
50170 echo "${ECHO_T}$ol_cv_msghdr_msg_accrights" >&6
50171 if test $ol_cv_msghdr_msg_accrights = "yes" ; then
50173 cat >>confdefs.h <<\_ACEOF
50174 #define HAVE_MSGHDR_MSG_ACCRIGHTS 1
50179 if test "$ac_cv_func_getpeereid" != yes; then
50180 echo "$as_me:$LINENO: checking for msg_control in msghdr" >&5
50181 echo $ECHO_N "checking for msg_control in msghdr... $ECHO_C" >&6
50182 if test "${ol_cv_msghdr_msg_control+set}" = set; then
50183 echo $ECHO_N "(cached) $ECHO_C" >&6
50185 cat >conftest.$ac_ext <<_ACEOF
50188 cat confdefs.h >>conftest.$ac_ext
50189 cat >>conftest.$ac_ext <<_ACEOF
50190 /* end confdefs.h. */
50191 #include <sys/socket.h>
50195 struct msghdr m; m.msg_control=(struct cmsghdr *)0
50200 rm -f conftest.$ac_objext
50201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50202 (eval $ac_compile) 2>conftest.er1
50204 grep -v '^ *+' conftest.er1 >conftest.err
50206 cat conftest.err >&5
50207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50208 (exit $ac_status); } &&
50209 { ac_try='test -z "$ac_c_werror_flag"
50210 || test ! -s conftest.err'
50211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50212 (eval $ac_try) 2>&5
50214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50215 (exit $ac_status); }; } &&
50216 { ac_try='test -s conftest.$ac_objext'
50217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50218 (eval $ac_try) 2>&5
50220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50221 (exit $ac_status); }; }; then
50222 ol_cv_msghdr_msg_control=yes
50224 echo "$as_me: failed program was:" >&5
50225 sed 's/^/| /' conftest.$ac_ext >&5
50227 ol_cv_msghdr_msg_control=no
50229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50232 echo "$as_me:$LINENO: result: $ol_cv_msghdr_msg_control" >&5
50233 echo "${ECHO_T}$ol_cv_msghdr_msg_control" >&6
50234 if test $ol_cv_msghdr_msg_control = "yes" ; then
50236 cat >>confdefs.h <<\_ACEOF
50237 #define HAVE_MSGHDR_MSG_CONTROL 1
50243 LIBSRCS="$LIBSRCS getpeereid.c"
50245 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
50246 if test "$ac_cv_func_snprintf" != yes; then
50248 cat >>confdefs.h <<\_ACEOF
50249 #define snprintf ber_pvt_snprintf
50253 if test "$ac_cv_func_vsnprintf" != yes; then
50255 cat >>confdefs.h <<\_ACEOF
50256 #define vsnprintf ber_pvt_vsnprintf
50263 if test "$ol_enable_slapi" != no ; then
50265 for ac_header in ltdl.h
50267 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
50268 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50269 echo "$as_me:$LINENO: checking for $ac_header" >&5
50270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
50271 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50272 echo $ECHO_N "(cached) $ECHO_C" >&6
50274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
50275 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
50277 # Is the header compilable?
50278 echo "$as_me:$LINENO: checking $ac_header usability" >&5
50279 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
50280 cat >conftest.$ac_ext <<_ACEOF
50283 cat confdefs.h >>conftest.$ac_ext
50284 cat >>conftest.$ac_ext <<_ACEOF
50285 /* end confdefs.h. */
50286 $ac_includes_default
50287 #include <$ac_header>
50289 rm -f conftest.$ac_objext
50290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50291 (eval $ac_compile) 2>conftest.er1
50293 grep -v '^ *+' conftest.er1 >conftest.err
50295 cat conftest.err >&5
50296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50297 (exit $ac_status); } &&
50298 { ac_try='test -z "$ac_c_werror_flag"
50299 || test ! -s conftest.err'
50300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50301 (eval $ac_try) 2>&5
50303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50304 (exit $ac_status); }; } &&
50305 { ac_try='test -s conftest.$ac_objext'
50306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50307 (eval $ac_try) 2>&5
50309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50310 (exit $ac_status); }; }; then
50311 ac_header_compiler=yes
50313 echo "$as_me: failed program was:" >&5
50314 sed 's/^/| /' conftest.$ac_ext >&5
50316 ac_header_compiler=no
50318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50319 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
50320 echo "${ECHO_T}$ac_header_compiler" >&6
50322 # Is the header present?
50323 echo "$as_me:$LINENO: checking $ac_header presence" >&5
50324 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
50325 cat >conftest.$ac_ext <<_ACEOF
50328 cat confdefs.h >>conftest.$ac_ext
50329 cat >>conftest.$ac_ext <<_ACEOF
50330 /* end confdefs.h. */
50331 #include <$ac_header>
50333 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
50334 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
50336 grep -v '^ *+' conftest.er1 >conftest.err
50338 cat conftest.err >&5
50339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50340 (exit $ac_status); } >/dev/null; then
50341 if test -s conftest.err; then
50342 ac_cpp_err=$ac_c_preproc_warn_flag
50343 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
50350 if test -z "$ac_cpp_err"; then
50351 ac_header_preproc=yes
50353 echo "$as_me: failed program was:" >&5
50354 sed 's/^/| /' conftest.$ac_ext >&5
50356 ac_header_preproc=no
50358 rm -f conftest.err conftest.$ac_ext
50359 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
50360 echo "${ECHO_T}$ac_header_preproc" >&6
50362 # So? What about this header?
50363 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
50365 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
50366 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
50367 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
50368 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
50369 ac_header_preproc=yes
50372 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
50373 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
50374 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
50375 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
50376 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
50377 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
50378 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
50379 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
50380 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
50381 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
50382 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
50383 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
50386 ## ------------------------------------------ ##
50387 ## Report this to the AC_PACKAGE_NAME lists. ##
50388 ## ------------------------------------------ ##
50391 sed "s/^/$as_me: WARNING: /" >&2
50394 echo "$as_me:$LINENO: checking for $ac_header" >&5
50395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
50396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50397 echo $ECHO_N "(cached) $ECHO_C" >&6
50399 eval "$as_ac_Header=\$ac_header_preproc"
50401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
50402 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
50405 if test `eval echo '${'$as_ac_Header'}'` = yes; then
50406 cat >>confdefs.h <<_ACEOF
50407 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
50415 if test $ac_cv_header_ltdl_h != yes ; then
50416 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
50417 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
50418 { (exit 1); exit 1; }; }
50420 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
50421 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
50422 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
50423 echo $ECHO_N "(cached) $ECHO_C" >&6
50425 ac_check_lib_save_LIBS=$LIBS
50426 LIBS="-lltdl $LIBS"
50427 cat >conftest.$ac_ext <<_ACEOF
50430 cat confdefs.h >>conftest.$ac_ext
50431 cat >>conftest.$ac_ext <<_ACEOF
50432 /* end confdefs.h. */
50434 /* Override any gcc2 internal prototype to avoid an error. */
50438 /* We use char because int might match the return type of a gcc2
50439 builtin and then its argument prototype would still apply. */
50449 rm -f conftest.$ac_objext conftest$ac_exeext
50450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50451 (eval $ac_link) 2>conftest.er1
50453 grep -v '^ *+' conftest.er1 >conftest.err
50455 cat conftest.err >&5
50456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50457 (exit $ac_status); } &&
50458 { ac_try='test -z "$ac_c_werror_flag"
50459 || test ! -s conftest.err'
50460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50461 (eval $ac_try) 2>&5
50463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50464 (exit $ac_status); }; } &&
50465 { ac_try='test -s conftest$ac_exeext'
50466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50467 (eval $ac_try) 2>&5
50469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50470 (exit $ac_status); }; }; then
50471 ac_cv_lib_ltdl_lt_dlinit=yes
50473 echo "$as_me: failed program was:" >&5
50474 sed 's/^/| /' conftest.$ac_ext >&5
50476 ac_cv_lib_ltdl_lt_dlinit=no
50478 rm -f conftest.err conftest.$ac_objext \
50479 conftest$ac_exeext conftest.$ac_ext
50480 LIBS=$ac_check_lib_save_LIBS
50482 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
50483 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
50484 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
50487 LIBSLAPI=libslapi.a
50488 LIBSLAPITOOLS=../libslapi.a
50490 cat >>confdefs.h <<\_ACEOF
50491 #define HAVE_LIBLTDL 1
50496 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
50497 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
50498 { (exit 1); exit 1; }; }
50503 cat >>confdefs.h <<\_ACEOF
50504 #define LDAP_SLAPI 1
50509 if test "$ol_enable_debug" != no ; then
50511 cat >>confdefs.h <<\_ACEOF
50512 #define LDAP_DEBUG 1
50516 if test "$ol_enable_syslog" = yes ; then
50518 cat >>confdefs.h <<\_ACEOF
50519 #define LDAP_SYSLOG 1
50523 if test "$ol_link_kbind" != no ; then
50524 cat >>confdefs.h <<\_ACEOF
50525 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
50529 if test "$ol_enable_proctitle" != no ; then
50531 cat >>confdefs.h <<\_ACEOF
50532 #define LDAP_PROCTITLE 1
50536 if test "$ol_enable_referrals" != no ; then
50537 cat >>confdefs.h <<\_ACEOF
50538 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
50542 if test "$ol_enable_local" != no; then
50544 cat >>confdefs.h <<\_ACEOF
50545 #define LDAP_PF_LOCAL 1
50549 if test "$ol_link_ipv6" != no; then
50551 cat >>confdefs.h <<\_ACEOF
50552 #define LDAP_PF_INET6 1
50556 if test "$ol_enable_cleartext" != no ; then
50558 cat >>confdefs.h <<\_ACEOF
50559 #define SLAPD_CLEARTEXT 1
50563 if test "$ol_enable_crypt" != no ; then
50565 cat >>confdefs.h <<\_ACEOF
50566 #define SLAPD_CRYPT 1
50570 if test "$ol_link_spasswd" != no ; then
50572 cat >>confdefs.h <<\_ACEOF
50573 #define SLAPD_SPASSWD 1
50577 if test "$ol_enable_multimaster" != no ; then
50579 cat >>confdefs.h <<\_ACEOF
50580 #define SLAPD_MULTIMASTER 1
50584 if test "$ol_enable_rlookups" != no ; then
50586 cat >>confdefs.h <<\_ACEOF
50587 #define SLAPD_RLOOKUPS 1
50591 if test "$ol_enable_aci" != no ; then
50593 cat >>confdefs.h <<\_ACEOF
50594 #define SLAPD_ACI_ENABLED 1
50599 if test "$ol_link_modules" != no ; then
50601 cat >>confdefs.h <<\_ACEOF
50602 #define SLAPD_MODULES 1
50606 SLAPD_MODULES_LDFLAGS="-dlopen self"
50610 cat >>confdefs.h <<\_ACEOF
50611 #define SLAPD_MOD_STATIC 1
50615 cat >>confdefs.h <<\_ACEOF
50616 #define SLAPD_MOD_DYNAMIC 2
50620 if test "$ol_enable_bdb" != no ; then
50622 BUILD_BDB=$ol_enable_bdb
50623 if test "$ol_enable_bdb" = mod ; then
50624 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
50625 MFLAG=SLAPD_MOD_DYNAMIC
50627 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
50628 MFLAG=SLAPD_MOD_STATIC
50631 cat >>confdefs.h <<_ACEOF
50632 #define SLAPD_BDB $MFLAG
50637 if test "$ol_enable_dnssrv" != no ; then
50639 BUILD_DNSSRV=$ol_enable_dnssrv
50640 if test "$ol_enable_dnssrv" = mod ; then
50641 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
50642 MFLAG=SLAPD_MOD_DYNAMIC
50644 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
50645 MFLAG=SLAPD_MOD_STATIC
50648 cat >>confdefs.h <<_ACEOF
50649 #define SLAPD_DNSSRV $MFLAG
50654 if test "$ol_enable_hdb" != no ; then
50656 BUILD_HDB=$ol_enable_hdb
50657 if test "$ol_enable_hdb" = mod ; then
50658 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
50659 MFLAG=SLAPD_MOD_DYNAMIC
50661 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
50662 MFLAG=SLAPD_MOD_STATIC
50665 cat >>confdefs.h <<_ACEOF
50666 #define SLAPD_HDB $MFLAG
50671 if test "$ol_enable_ldap" != no ; then
50673 BUILD_LDAP=$ol_enable_ldap
50674 if test "$ol_enable_ldap" = mod ; then
50675 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
50676 MFLAG=SLAPD_MOD_DYNAMIC
50678 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
50679 MFLAG=SLAPD_MOD_STATIC
50682 cat >>confdefs.h <<_ACEOF
50683 #define SLAPD_LDAP $MFLAG
50688 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
50690 BUILD_LDBM=$ol_enable_ldbm
50691 if test "$ol_enable_ldbm" = mod ; then
50692 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
50693 MFLAG=SLAPD_MOD_DYNAMIC
50695 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
50696 MFLAG=SLAPD_MOD_STATIC
50699 cat >>confdefs.h <<_ACEOF
50700 #define SLAPD_LDBM $MFLAG
50705 if test "$ol_enable_meta" != no ; then
50707 BUILD_META=$ol_enable_meta
50709 if test "$ol_enable_meta" = mod ; then
50710 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
50711 MFLAG=SLAPD_MOD_DYNAMIC
50713 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
50714 MFLAG=SLAPD_MOD_STATIC
50717 cat >>confdefs.h <<_ACEOF
50718 #define SLAPD_META $MFLAG
50723 if test "$ol_enable_monitor" != no ; then
50725 BUILD_MONITOR=$ol_enable_monitor
50726 if test "$ol_enable_monitor" = mod ; then
50727 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
50728 MFLAG=SLAPD_MOD_DYNAMIC
50730 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
50731 MFLAG=SLAPD_MOD_STATIC
50734 cat >>confdefs.h <<_ACEOF
50735 #define SLAPD_MONITOR $MFLAG
50740 if test "$ol_enable_null" != no ; then
50742 BUILD_NULL=$ol_enable_null
50743 if test "$ol_enable_null" = mod ; then
50744 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
50745 MFLAG=SLAPD_MOD_DYNAMIC
50747 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
50748 MFLAG=SLAPD_MOD_STATIC
50751 cat >>confdefs.h <<_ACEOF
50752 #define SLAPD_NULL $MFLAG
50757 if test "$ol_enable_passwd" != no ; then
50759 BUILD_PASSWD=$ol_enable_passwd
50760 if test "$ol_enable_passwd" = mod ; then
50761 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
50762 MFLAG=SLAPD_MOD_DYNAMIC
50764 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
50765 MFLAG=SLAPD_MOD_STATIC
50768 cat >>confdefs.h <<_ACEOF
50769 #define SLAPD_PASSWD $MFLAG
50774 if test "$ol_link_perl" != no ; then
50776 BUILD_PERL=$ol_enable_perl
50777 if test "$ol_enable_perl" = mod ; then
50778 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
50779 MFLAG=SLAPD_MOD_DYNAMIC
50781 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
50782 MFLAG=SLAPD_MOD_STATIC
50785 cat >>confdefs.h <<_ACEOF
50786 #define SLAPD_PERL $MFLAG
50791 if test "$ol_enable_relay" != no ; then
50793 BUILD_RELAY=$ol_enable_relay
50794 if test "$ol_enable_relay" = mod ; then
50795 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
50796 MFLAG=SLAPD_MOD_DYNAMIC
50798 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
50799 MFLAG=SLAPD_MOD_STATIC
50802 cat >>confdefs.h <<_ACEOF
50803 #define SLAPD_RELAY $MFLAG
50808 if test "$ol_enable_shell" != no ; then
50809 if test "$ol_link_thread" != no ; then
50810 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
50811 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
50814 BUILD_SHELL=$ol_enable_shell
50815 if test "$ol_enable_shell" = mod ; then
50816 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
50817 MFLAG=SLAPD_MOD_DYNAMIC
50819 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
50820 MFLAG=SLAPD_MOD_STATIC
50823 cat >>confdefs.h <<_ACEOF
50824 #define SLAPD_SHELL $MFLAG
50829 if test "$ol_link_sql" != no ; then
50831 BUILD_SQL=$ol_enable_sql
50832 if test "$ol_enable_sql" = mod; then
50833 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
50834 MFLAG=SLAPD_MOD_DYNAMIC
50836 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
50837 MFLAG=SLAPD_MOD_STATIC
50840 cat >>confdefs.h <<_ACEOF
50841 #define SLAPD_SQL $MFLAG
50846 if test "$ol_enable_accesslog" != no ; then
50847 BUILD_ACCESSLOG=$ol_enable_accesslog
50848 if test "$ol_enable_accesslog" = mod ; then
50849 MFLAG=SLAPD_MOD_DYNAMIC
50850 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
50852 MFLAG=SLAPD_MOD_STATIC
50853 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
50856 cat >>confdefs.h <<_ACEOF
50857 #define SLAPD_OVER_ACCESSLOG $MFLAG
50862 if test "$ol_enable_denyop" != no ; then
50863 BUILD_DENYOP=$ol_enable_denyop
50864 if test "$ol_enable_denyop" = mod ; then
50865 MFLAG=SLAPD_MOD_DYNAMIC
50866 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
50868 MFLAG=SLAPD_MOD_STATIC
50869 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
50872 cat >>confdefs.h <<_ACEOF
50873 #define SLAPD_OVER_DENYOP $MFLAG
50878 if test "$ol_enable_dyngroup" != no ; then
50879 BUILD_DYNGROUP=$ol_enable_dyngroup
50880 if test "$ol_enable_dyngroup" = mod ; then
50881 MFLAG=SLAPD_MOD_DYNAMIC
50882 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
50884 MFLAG=SLAPD_MOD_STATIC
50885 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
50888 cat >>confdefs.h <<_ACEOF
50889 #define SLAPD_OVER_DYNGROUP $MFLAG
50894 if test "$ol_enable_dynlist" != no ; then
50895 BUILD_DYNLIST=$ol_enable_dynlist
50896 if test "$ol_enable_dynlist" = mod ; then
50897 MFLAG=SLAPD_MOD_DYNAMIC
50898 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
50900 MFLAG=SLAPD_MOD_STATIC
50901 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
50904 cat >>confdefs.h <<_ACEOF
50905 #define SLAPD_OVER_DYNLIST $MFLAG
50910 if test "$ol_enable_glue" != no ; then
50911 BUILD_GLUE=$ol_enable_glue
50912 if test "$ol_enable_glue" = mod ; then
50913 MFLAG=SLAPD_MOD_DYNAMIC
50914 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS glue.la"
50916 MFLAG=SLAPD_MOD_STATIC
50917 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS glue.o"
50920 cat >>confdefs.h <<_ACEOF
50921 #define SLAPD_OVER_GLUE $MFLAG
50926 if test "$ol_enable_lastmod" != no ; then
50927 BUILD_LASTMOD=$ol_enable_lastmod
50928 if test "$ol_enable_lastmod" = mod ; then
50929 MFLAG=SLAPD_MOD_DYNAMIC
50930 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
50932 MFLAG=SLAPD_MOD_STATIC
50933 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
50936 cat >>confdefs.h <<_ACEOF
50937 #define SLAPD_OVER_LASTMOD $MFLAG
50942 if test "$ol_enable_ppolicy" != no ; then
50943 BUILD_PPOLICY=$ol_enable_ppolicy
50944 if test "$ol_enable_ppolicy" = mod ; then
50945 MFLAG=SLAPD_MOD_DYNAMIC
50946 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
50948 MFLAG=SLAPD_MOD_STATIC
50949 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
50952 cat >>confdefs.h <<_ACEOF
50953 #define SLAPD_OVER_PPOLICY $MFLAG
50958 if test "$ol_enable_proxycache" != no ; then
50959 BUILD_PROXYCACHE=$ol_enable_proxycache
50960 if test "$ol_enable_proxycache" = mod ; then
50961 MFLAG=SLAPD_MOD_DYNAMIC
50962 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
50964 MFLAG=SLAPD_MOD_STATIC
50965 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
50968 cat >>confdefs.h <<_ACEOF
50969 #define SLAPD_OVER_PROXYCACHE $MFLAG
50974 if test "$ol_enable_refint" != no ; then
50975 BUILD_REFINT=$ol_enable_refint
50976 if test "$ol_enable_refint" = mod ; then
50977 MFLAG=SLAPD_MOD_DYNAMIC
50978 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
50980 MFLAG=SLAPD_MOD_STATIC
50981 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
50984 cat >>confdefs.h <<_ACEOF
50985 #define SLAPD_OVER_REFINT $MFLAG
50990 if test "$ol_enable_retcode" != no ; then
50991 BUILD_RETCODE=$ol_enable_retcode
50992 if test "$ol_enable_retcode" = mod ; then
50993 MFLAG=SLAPD_MOD_DYNAMIC
50994 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
50996 MFLAG=SLAPD_MOD_STATIC
50997 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
51000 cat >>confdefs.h <<_ACEOF
51001 #define SLAPD_OVER_RETCODE $MFLAG
51006 if test "$ol_enable_rwm" != no ; then
51008 BUILD_RWM=$ol_enable_rwm
51009 if test "$ol_enable_rwm" = mod ; then
51010 MFLAG=SLAPD_MOD_DYNAMIC
51011 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
51013 MFLAG=SLAPD_MOD_STATIC
51014 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
51017 cat >>confdefs.h <<_ACEOF
51018 #define SLAPD_OVER_RWM $MFLAG
51023 if test "$ol_enable_syncprov" != no ; then
51024 BUILD_SYNCPROV=$ol_enable_syncprov
51025 if test "$ol_enable_syncprov" = mod ; then
51026 MFLAG=SLAPD_MOD_DYNAMIC
51027 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
51029 MFLAG=SLAPD_MOD_STATIC
51030 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
51033 cat >>confdefs.h <<_ACEOF
51034 #define SLAPD_OVER_SYNCPROV $MFLAG
51039 if test "$ol_enable_translucent" != no ; then
51040 BUILD_TRANSLUCENT=$ol_enable_translucent
51041 if test "$ol_enable_translucent" = mod ; then
51042 MFLAG=SLAPD_MOD_DYNAMIC
51043 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
51045 MFLAG=SLAPD_MOD_STATIC
51046 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
51049 cat >>confdefs.h <<_ACEOF
51050 #define SLAPD_OVER_TRANSLUCENT $MFLAG
51055 if test "$ol_enable_unique" != no ; then
51056 BUILD_UNIQUE=$ol_enable_unique
51057 if test "$ol_enable_unique" = mod ; then
51058 MFLAG=SLAPD_MOD_DYNAMIC
51059 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
51061 MFLAG=SLAPD_MOD_STATIC
51062 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
51065 cat >>confdefs.h <<_ACEOF
51066 #define SLAPD_OVER_UNIQUE $MFLAG
51071 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
51072 $BUILD_SLAPD = yes ; then
51076 if test "$ol_enable_rewrite" != no ; then
51078 cat >>confdefs.h <<\_ACEOF
51079 #define ENABLE_REWRITE 1
51085 if test "$ol_enable_slapi" != no ; then
51087 cat >>confdefs.h <<\_ACEOF
51088 #define ENABLE_SLAPI 1
51092 SLAPD_SLAPI_DEPEND=libslapi.a
51097 if test "$ac_cv_mingw32" = yes ; then
51099 SLAPD_MODULES_LDFLAGS=
51182 # Check whether --with-xxinstall or --without-xxinstall was given.
51183 if test "${with_xxinstall+set}" = set; then
51184 withval="$with_xxinstall"
51189 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"
51190 ac_config_commands="$ac_config_commands default"
51193 test "x$prefix" = xNONE && prefix=$ac_default_prefix
51194 # Let make expand exec_prefix.
51195 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
51197 # VPATH may cause trouble with some makes, so we remove $(srcdir),
51198 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
51199 # trailing colons and then remove the whole line if VPATH becomes empty
51200 # (actually we leave an empty line to preserve line numbers).
51201 if test "x$srcdir" = x.; then
51202 ac_vpsub='/^[ ]*VPATH[ ]*=/{
51203 s/:*\$(srcdir):*/:/;
51204 s/:*\${srcdir}:*/:/;
51206 s/^\([^=]*=[ ]*\):*/\1/;
51212 DEFS=-DHAVE_CONFIG_H
51216 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
51217 # 1. Remove the extension, and $U if already installed.
51218 ac_i=`echo "$ac_i" |
51219 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
51221 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
51222 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
51224 LIBOBJS=$ac_libobjs
51226 LTLIBOBJS=$ac_ltlibobjs
51229 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
51230 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
51231 Usually this means the macro was only invoked conditionally." >&5
51232 echo "$as_me: error: conditional \"AMDEP\" was never defined.
51233 Usually this means the macro was only invoked conditionally." >&2;}
51234 { (exit 1); exit 1; }; }
51236 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
51237 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
51238 Usually this means the macro was only invoked conditionally." >&5
51239 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
51240 Usually this means the macro was only invoked conditionally." >&2;}
51241 { (exit 1); exit 1; }; }
51243 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
51244 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
51245 Usually this means the macro was only invoked conditionally." >&5
51246 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
51247 Usually this means the macro was only invoked conditionally." >&2;}
51248 { (exit 1); exit 1; }; }
51250 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
51251 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
51252 Usually this means the macro was only invoked conditionally." >&5
51253 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
51254 Usually this means the macro was only invoked conditionally." >&2;}
51255 { (exit 1); exit 1; }; }
51258 : ${CONFIG_STATUS=./config.status}
51259 ac_clean_files_save=$ac_clean_files
51260 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
51261 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
51262 echo "$as_me: creating $CONFIG_STATUS" >&6;}
51263 cat >$CONFIG_STATUS <<_ACEOF
51265 # Generated by $as_me.
51266 # Run this file to recreate the current configuration.
51267 # Compiler output produced by configure, useful for debugging
51268 # configure, is in config.log if it exists.
51271 ac_cs_recheck=false
51273 SHELL=\${CONFIG_SHELL-$SHELL}
51276 cat >>$CONFIG_STATUS <<\_ACEOF
51277 ## --------------------- ##
51278 ## M4sh Initialization. ##
51279 ## --------------------- ##
51281 # Be Bourne compatible
51282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
51285 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
51286 # is contrary to our usage. Disable this feature.
51287 alias -g '${1+"$@"}'='"$@"'
51288 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
51291 DUALCASE=1; export DUALCASE # for MKS sh
51293 # Support unset when possible.
51294 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51301 # Work around bugs in pre-3.0 UWIN ksh.
51302 $as_unset ENV MAIL MAILPATH
51309 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
51310 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
51311 LC_TELEPHONE LC_TIME
51313 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
51314 eval $as_var=C; export $as_var
51320 # Required to use basename.
51321 if expr a : '\(a\)' >/dev/null 2>&1; then
51327 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
51328 as_basename=basename
51334 # Name of the executable.
51335 as_me=`$as_basename "$0" ||
51336 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
51337 X"$0" : 'X\(//\)$' \| \
51338 X"$0" : 'X\(/\)$' \| \
51339 . : '\(.\)' 2>/dev/null ||
51341 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
51342 /^X\/\(\/\/\)$/{ s//\1/; q; }
51343 /^X\/\(\/\).*/{ s//\1/; q; }
51347 # PATH needs CR, and LINENO needs CR and PATH.
51348 # Avoid depending upon Character Ranges.
51349 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
51350 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
51351 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
51352 as_cr_digits='0123456789'
51353 as_cr_alnum=$as_cr_Letters$as_cr_digits
51355 # The user is always right.
51356 if test "${PATH_SEPARATOR+set}" != set; then
51357 echo "#! /bin/sh" >conf$$.sh
51358 echo "exit 0" >>conf$$.sh
51360 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
51369 as_lineno_1=$LINENO
51370 as_lineno_2=$LINENO
51371 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
51372 test "x$as_lineno_1" != "x$as_lineno_2" &&
51373 test "x$as_lineno_3" = "x$as_lineno_2" || {
51374 # Find who we are. Look in the path if we contain no path at all
51377 *[\\/]* ) as_myself=$0 ;;
51378 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51379 for as_dir in $PATH
51382 test -z "$as_dir" && as_dir=.
51383 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
51388 # We did not find ourselves, most probably we were run as `sh COMMAND'
51389 # in which case we are not to be found in the path.
51390 if test "x$as_myself" = x; then
51393 if test ! -f "$as_myself"; then
51394 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
51395 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
51396 { (exit 1); exit 1; }; }
51398 case $CONFIG_SHELL in
51400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51401 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
51404 test -z "$as_dir" && as_dir=.
51405 for as_base in sh bash ksh sh5; do
51408 if ("$as_dir/$as_base" -c '
51409 as_lineno_1=$LINENO
51410 as_lineno_2=$LINENO
51411 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
51412 test "x$as_lineno_1" != "x$as_lineno_2" &&
51413 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
51414 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
51415 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
51416 CONFIG_SHELL=$as_dir/$as_base
51417 export CONFIG_SHELL
51418 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
51426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
51427 # uniformly replaced by the line number. The first 'sed' inserts a
51428 # line-number line before each line; the second 'sed' does the real
51429 # work. The second script uses 'N' to pair each line-number line
51430 # with the numbered line, and appends trailing '-' during
51431 # substitution so that $LINENO is not a special case at line end.
51432 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
51433 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
51434 sed '=' <$as_myself |
51439 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
51442 s,^['$as_cr_digits']*\n,,
51443 ' >$as_me.lineno &&
51444 chmod +x $as_me.lineno ||
51445 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
51446 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
51447 { (exit 1); exit 1; }; }
51449 # Don't try to exec as it changes $[0], causing all sort of problems
51450 # (the dirname of $[0] is not the place where we might find the
51451 # original and so on. Autoconf is especially sensible to this).
51453 # Exit status is that of the last command.
51458 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
51459 *c*,-n*) ECHO_N= ECHO_C='
51461 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
51462 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
51465 if expr a : '\(a\)' >/dev/null 2>&1; then
51471 rm -f conf$$ conf$$.exe conf$$.file
51473 if ln -s conf$$.file conf$$ 2>/dev/null; then
51474 # We could just check for DJGPP; but this test a) works b) is more generic
51475 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
51476 if test -f conf$$.exe; then
51477 # Don't use ln at all; we don't have any links
51482 elif ln conf$$.file conf$$ 2>/dev/null; then
51487 rm -f conf$$ conf$$.exe conf$$.file
51489 if mkdir -p . 2>/dev/null; then
51492 test -d ./-p && rmdir ./-p
51496 as_executable_p="test -f"
51498 # Sed expression to map a string onto a valid CPP name.
51499 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
51501 # Sed expression to map a string onto a valid variable name.
51502 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
51506 # We need space, tab and new line, in precisely that order.
51516 # Open the log real soon, to keep \$[0] and so on meaningful, and to
51517 # report actual input values of CONFIG_FILES etc. instead of their
51518 # values after options handling. Logging --version etc. is OK.
51522 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
51523 ## Running $as_me. ##
51528 This file was extended by $as_me, which was
51529 generated by GNU Autoconf 2.59. Invocation command line was
51531 CONFIG_FILES = $CONFIG_FILES
51532 CONFIG_HEADERS = $CONFIG_HEADERS
51533 CONFIG_LINKS = $CONFIG_LINKS
51534 CONFIG_COMMANDS = $CONFIG_COMMANDS
51538 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
51542 # Files that config.status was made for.
51543 if test -n "$ac_config_files"; then
51544 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
51547 if test -n "$ac_config_headers"; then
51548 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
51551 if test -n "$ac_config_links"; then
51552 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
51555 if test -n "$ac_config_commands"; then
51556 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
51559 cat >>$CONFIG_STATUS <<\_ACEOF
51562 \`$as_me' instantiates files from templates according to the
51563 current configuration.
51565 Usage: $0 [OPTIONS] [FILE]...
51567 -h, --help print this help, then exit
51568 -V, --version print version number, then exit
51569 -q, --quiet do not print progress messages
51570 -d, --debug don't remove temporary files
51571 --recheck update $as_me by reconfiguring in the same conditions
51572 --file=FILE[:TEMPLATE]
51573 instantiate the configuration file FILE
51574 --header=FILE[:TEMPLATE]
51575 instantiate the configuration header FILE
51577 Configuration files:
51580 Configuration headers:
51583 Configuration commands:
51586 Report bugs to <bug-autoconf@gnu.org>."
51589 cat >>$CONFIG_STATUS <<_ACEOF
51592 configured by $0, generated by GNU Autoconf 2.59,
51593 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
51595 Copyright (C) 2003 Free Software Foundation, Inc.
51596 This config.status script is free software; the Free Software Foundation
51597 gives unlimited permission to copy, distribute and modify it."
51602 cat >>$CONFIG_STATUS <<\_ACEOF
51603 # If no file are specified by the user, then we need to provide default
51604 # value. By we need to know if files were specified by the user.
51610 ac_option=`expr "x$1" : 'x\([^=]*\)='`
51611 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
51619 *) # This is not an option, so the user has probably given explicit
51622 ac_need_defaults=false;;
51626 # Handling of the options.
51628 cat >>$CONFIG_STATUS <<\_ACEOF
51629 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
51631 --version | --vers* | -V )
51632 echo "$ac_cs_version"; exit 0 ;;
51634 # Conflict between --help and --header
51635 { { echo "$as_me:$LINENO: error: ambiguous option: $1
51636 Try \`$0 --help' for more information." >&5
51637 echo "$as_me: error: ambiguous option: $1
51638 Try \`$0 --help' for more information." >&2;}
51639 { (exit 1); exit 1; }; };;
51640 --help | --hel | -h )
51641 echo "$ac_cs_usage"; exit 0 ;;
51642 --debug | --d* | -d )
51644 --file | --fil | --fi | --f )
51646 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
51647 ac_need_defaults=false;;
51648 --header | --heade | --head | --hea )
51650 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
51651 ac_need_defaults=false;;
51652 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
51653 | -silent | --silent | --silen | --sile | --sil | --si | --s)
51656 # This is an error.
51657 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
51658 Try \`$0 --help' for more information." >&5
51659 echo "$as_me: error: unrecognized option: $1
51660 Try \`$0 --help' for more information." >&2;}
51661 { (exit 1); exit 1; }; } ;;
51663 *) ac_config_targets="$ac_config_targets $1" ;;
51669 ac_configure_extra_args=
51671 if $ac_cs_silent; then
51673 ac_configure_extra_args="$ac_configure_extra_args --silent"
51677 cat >>$CONFIG_STATUS <<_ACEOF
51678 if \$ac_cs_recheck; then
51679 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
51680 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
51685 cat >>$CONFIG_STATUS <<_ACEOF
51687 # INIT-COMMANDS section.
51690 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
51691 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
51697 cat >>$CONFIG_STATUS <<\_ACEOF
51698 for ac_config_target in $ac_config_targets
51700 case "$ac_config_target" in
51701 # Handling of arguments.
51702 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
51703 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
51704 "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
51705 "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
51706 "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
51707 "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
51708 "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
51709 "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
51710 "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
51711 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
51712 "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
51713 "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
51714 "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
51715 "libraries/libldap_r/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
51716 "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
51717 "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
51718 "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
51719 "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
51720 "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
51721 "servers/slapd/back-bdb/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk" ;;
51722 "servers/slapd/back-dnssrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk" ;;
51723 "servers/slapd/back-hdb/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk" ;;
51724 "servers/slapd/back-ldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk" ;;
51725 "servers/slapd/back-ldbm/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk" ;;
51726 "servers/slapd/back-ldif/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-ldif/Makefile:build/top.mk:servers/slapd/back-ldif/Makefile.in:build/mod.mk" ;;
51727 "servers/slapd/back-meta/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk" ;;
51728 "servers/slapd/back-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk" ;;
51729 "servers/slapd/back-null/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk" ;;
51730 "servers/slapd/back-passwd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk" ;;
51731 "servers/slapd/back-perl/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk" ;;
51732 "servers/slapd/back-relay/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-relay/Makefile:build/top.mk:servers/slapd/back-relay/Makefile.in:build/mod.mk" ;;
51733 "servers/slapd/back-shell/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk" ;;
51734 "servers/slapd/back-sql/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk" ;;
51735 "servers/slapd/shell-backends/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk" ;;
51736 "servers/slapd/slapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
51737 "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
51738 "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
51739 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
51740 "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
51741 "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
51742 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
51743 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
51744 "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h" ;;
51745 "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h" ;;
51746 "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h" ;;
51747 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
51748 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
51749 { (exit 1); exit 1; }; };;
51753 # If the user did not use the arguments to specify the items to instantiate,
51754 # then the envvar interface is used. Set only those that are not.
51755 # We use the long form for the default assignment because of an extremely
51756 # bizarre bug on SunOS 4.1.3.
51757 if $ac_need_defaults; then
51758 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
51759 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
51760 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
51763 # Have a temporary directory for convenience. Make it in the build tree
51764 # simply because there is no reason to put it here, and in addition,
51765 # creating and moving files from /tmp can sometimes cause problems.
51766 # Create a temporary directory, and hook for its removal unless debugging.
51769 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
51770 trap '{ (exit 1); exit 1; }' 1 2 13 15
51773 # Create a (secure) tmp directory for tmp files.
51776 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
51777 test -n "$tmp" && test -d "$tmp"
51780 tmp=./confstat$$-$RANDOM
51781 (umask 077 && mkdir $tmp)
51784 echo "$me: cannot create a temporary directory in ." >&2
51785 { (exit 1); exit 1; }
51790 cat >>$CONFIG_STATUS <<_ACEOF
51793 # CONFIG_FILES section.
51796 # No need to generate the scripts if there are no CONFIG_FILES.
51797 # This happens for instance when ./config.status config.h
51798 if test -n "\$CONFIG_FILES"; then
51799 # Protect against being on the right side of a sed subst in config.status.
51800 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
51801 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
51802 s,@SHELL@,$SHELL,;t t
51803 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
51804 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
51805 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
51806 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
51807 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
51808 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
51809 s,@exec_prefix@,$exec_prefix,;t t
51810 s,@prefix@,$prefix,;t t
51811 s,@program_transform_name@,$program_transform_name,;t t
51812 s,@bindir@,$bindir,;t t
51813 s,@sbindir@,$sbindir,;t t
51814 s,@libexecdir@,$libexecdir,;t t
51815 s,@datadir@,$datadir,;t t
51816 s,@sysconfdir@,$sysconfdir,;t t
51817 s,@sharedstatedir@,$sharedstatedir,;t t
51818 s,@localstatedir@,$localstatedir,;t t
51819 s,@libdir@,$libdir,;t t
51820 s,@includedir@,$includedir,;t t
51821 s,@oldincludedir@,$oldincludedir,;t t
51822 s,@infodir@,$infodir,;t t
51823 s,@mandir@,$mandir,;t t
51824 s,@build_alias@,$build_alias,;t t
51825 s,@host_alias@,$host_alias,;t t
51826 s,@target_alias@,$target_alias,;t t
51827 s,@DEFS@,$DEFS,;t t
51828 s,@ECHO_C@,$ECHO_C,;t t
51829 s,@ECHO_N@,$ECHO_N,;t t
51830 s,@ECHO_T@,$ECHO_T,;t t
51831 s,@LIBS@,$LIBS,;t t
51832 s,@build@,$build,;t t
51833 s,@build_cpu@,$build_cpu,;t t
51834 s,@build_vendor@,$build_vendor,;t t
51835 s,@build_os@,$build_os,;t t
51836 s,@host@,$host,;t t
51837 s,@host_cpu@,$host_cpu,;t t
51838 s,@host_vendor@,$host_vendor,;t t
51839 s,@host_os@,$host_os,;t t
51840 s,@target@,$target,;t t
51841 s,@target_cpu@,$target_cpu,;t t
51842 s,@target_vendor@,$target_vendor,;t t
51843 s,@target_os@,$target_os,;t t
51844 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
51845 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
51846 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
51847 s,@CYGPATH_W@,$CYGPATH_W,;t t
51848 s,@PACKAGE@,$PACKAGE,;t t
51849 s,@VERSION@,$VERSION,;t t
51850 s,@ACLOCAL@,$ACLOCAL,;t t
51851 s,@AUTOCONF@,$AUTOCONF,;t t
51852 s,@AUTOMAKE@,$AUTOMAKE,;t t
51853 s,@AUTOHEADER@,$AUTOHEADER,;t t
51854 s,@MAKEINFO@,$MAKEINFO,;t t
51855 s,@install_sh@,$install_sh,;t t
51856 s,@STRIP@,$STRIP,;t t
51857 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
51858 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
51859 s,@mkdir_p@,$mkdir_p,;t t
51861 s,@SET_MAKE@,$SET_MAKE,;t t
51862 s,@am__leading_dot@,$am__leading_dot,;t t
51863 s,@AMTAR@,$AMTAR,;t t
51864 s,@am__tar@,$am__tar,;t t
51865 s,@am__untar@,$am__untar,;t t
51866 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
51867 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
51868 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
51869 s,@top_builddir@,$top_builddir,;t t
51870 s,@ldap_subdir@,$ldap_subdir,;t t
51873 s,@CFLAGS@,$CFLAGS,;t t
51874 s,@LDFLAGS@,$LDFLAGS,;t t
51875 s,@CPPFLAGS@,$CPPFLAGS,;t t
51876 s,@ac_ct_CC@,$ac_ct_CC,;t t
51877 s,@EXEEXT@,$EXEEXT,;t t
51878 s,@OBJEXT@,$OBJEXT,;t t
51879 s,@DEPDIR@,$DEPDIR,;t t
51880 s,@am__include@,$am__include,;t t
51881 s,@am__quote@,$am__quote,;t t
51882 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
51883 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
51884 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
51885 s,@CCDEPMODE@,$CCDEPMODE,;t t
51886 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
51887 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
51888 s,@EGREP@,$EGREP,;t t
51889 s,@LN_S@,$LN_S,;t t
51890 s,@ECHO@,$ECHO,;t t
51891 s,@ac_ct_AR@,$ac_ct_AR,;t t
51892 s,@RANLIB@,$RANLIB,;t t
51893 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
51894 s,@DLLTOOL@,$DLLTOOL,;t t
51895 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
51897 s,@ac_ct_AS@,$ac_ct_AS,;t t
51898 s,@OBJDUMP@,$OBJDUMP,;t t
51899 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
51902 s,@CXXFLAGS@,$CXXFLAGS,;t t
51903 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
51904 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
51905 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
51906 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
51907 s,@CXXCPP@,$CXXCPP,;t t
51909 s,@FFLAGS@,$FFLAGS,;t t
51910 s,@ac_ct_F77@,$ac_ct_F77,;t t
51911 s,@LIBTOOL@,$LIBTOOL,;t t
51912 s,@PERLBIN@,$PERLBIN,;t t
51913 s,@OL_MKDEP@,$OL_MKDEP,;t t
51914 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
51915 s,@LTSTATIC@,$LTSTATIC,;t t
51916 s,@LIBOBJS@,$LIBOBJS,;t t
51917 s,@LIBSRCS@,$LIBSRCS,;t t
51918 s,@PLAT@,$PLAT,;t t
51919 s,@WITH_SASL@,$WITH_SASL,;t t
51920 s,@WITH_TLS@,$WITH_TLS,;t t
51921 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
51922 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
51923 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
51924 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
51925 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
51926 s,@BUILD_BDB@,$BUILD_BDB,;t t
51927 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
51928 s,@BUILD_HDB@,$BUILD_HDB,;t t
51929 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
51930 s,@BUILD_LDBM@,$BUILD_LDBM,;t t
51931 s,@BUILD_META@,$BUILD_META,;t t
51932 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
51933 s,@BUILD_NULL@,$BUILD_NULL,;t t
51934 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
51935 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
51936 s,@BUILD_PERL@,$BUILD_PERL,;t t
51937 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
51938 s,@BUILD_SQL@,$BUILD_SQL,;t t
51939 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
51940 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
51941 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
51942 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
51943 s,@BUILD_GLUE@,$BUILD_GLUE,;t t
51944 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
51945 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
51946 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
51947 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
51948 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
51949 s,@BUILD_RWM@,$BUILD_RWM,;t t
51950 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
51951 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
51952 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
51953 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
51954 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
51955 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
51956 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
51957 s,@LDBM_LIBS@,$LDBM_LIBS,;t t
51958 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
51959 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
51960 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
51961 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
51962 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
51963 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
51964 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
51965 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
51966 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
51967 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
51968 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
51969 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
51970 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
51971 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
51972 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
51973 s,@SASL_LIBS@,$SASL_LIBS,;t t
51974 s,@TLS_LIBS@,$TLS_LIBS,;t t
51975 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
51976 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
51977 s,@LIBSLAPI@,$LIBSLAPI,;t t
51978 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
51979 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
51980 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
51981 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
51982 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
51983 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
51984 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
51985 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
51990 cat >>$CONFIG_STATUS <<\_ACEOF
51991 # Split the substitutions into bite-sized pieces for seds with
51992 # small command number limits, like on Digital OSF/1 and HP-UX.
51993 ac_max_sed_lines=48
51994 ac_sed_frag=1 # Number of current file.
51995 ac_beg=1 # First line for current file.
51996 ac_end=$ac_max_sed_lines # Line after last line for current file.
51999 while $ac_more_lines; do
52000 if test $ac_beg -gt 1; then
52001 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
52003 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
52005 if test ! -s $tmp/subs.frag; then
52006 ac_more_lines=false
52008 # The purpose of the label and of the branching condition is to
52009 # speed up the sed processing (if there are no `@' at all, there
52010 # is no need to browse any of the substitutions).
52011 # These are the two extra sed commands mentioned above.
52013 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
52014 if test -z "$ac_sed_cmds"; then
52015 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
52017 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
52019 ac_sed_frag=`expr $ac_sed_frag + 1`
52021 ac_end=`expr $ac_end + $ac_max_sed_lines`
52024 if test -z "$ac_sed_cmds"; then
52027 fi # test -n "$CONFIG_FILES"
52030 cat >>$CONFIG_STATUS <<\_ACEOF
52031 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
52032 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
52034 - | *:- | *:-:* ) # input from stdin
52036 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
52037 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
52038 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
52039 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
52040 * ) ac_file_in=$ac_file.in ;;
52043 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
52044 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
52045 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52046 X"$ac_file" : 'X\(//\)[^/]' \| \
52047 X"$ac_file" : 'X\(//\)$' \| \
52048 X"$ac_file" : 'X\(/\)' \| \
52049 . : '\(.\)' 2>/dev/null ||
52051 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52052 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52053 /^X\(\/\/\)$/{ s//\1/; q; }
52054 /^X\(\/\).*/{ s//\1/; q; }
52056 { if $as_mkdir_p; then
52061 while test ! -d "$as_dir"; do
52062 as_dirs="$as_dir $as_dirs"
52063 as_dir=`(dirname "$as_dir") 2>/dev/null ||
52064 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52065 X"$as_dir" : 'X\(//\)[^/]' \| \
52066 X"$as_dir" : 'X\(//\)$' \| \
52067 X"$as_dir" : 'X\(/\)' \| \
52068 . : '\(.\)' 2>/dev/null ||
52070 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52071 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52072 /^X\(\/\/\)$/{ s//\1/; q; }
52073 /^X\(\/\).*/{ s//\1/; q; }
52076 test ! -n "$as_dirs" || mkdir $as_dirs
52077 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52078 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52079 { (exit 1); exit 1; }; }; }
52083 if test "$ac_dir" != .; then
52084 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52085 # A "../" for each directory in $ac_dir_suffix.
52086 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
52088 ac_dir_suffix= ac_top_builddir=
52092 .) # No --srcdir option. We are building in place.
52094 if test -z "$ac_top_builddir"; then
52097 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
52099 [\\/]* | ?:[\\/]* ) # Absolute path.
52100 ac_srcdir=$srcdir$ac_dir_suffix;
52101 ac_top_srcdir=$srcdir ;;
52102 *) # Relative path.
52103 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
52104 ac_top_srcdir=$ac_top_builddir$srcdir ;;
52107 # Do not use `cd foo && pwd` to compute absolute paths, because
52108 # the directories may not exist.
52110 .) ac_abs_builddir="$ac_dir";;
52113 .) ac_abs_builddir=`pwd`;;
52114 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
52115 *) ac_abs_builddir=`pwd`/"$ac_dir";;
52118 case $ac_abs_builddir in
52119 .) ac_abs_top_builddir=${ac_top_builddir}.;;
52121 case ${ac_top_builddir}. in
52122 .) ac_abs_top_builddir=$ac_abs_builddir;;
52123 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
52124 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
52127 case $ac_abs_builddir in
52128 .) ac_abs_srcdir=$ac_srcdir;;
52131 .) ac_abs_srcdir=$ac_abs_builddir;;
52132 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
52133 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
52136 case $ac_abs_builddir in
52137 .) ac_abs_top_srcdir=$ac_top_srcdir;;
52139 case $ac_top_srcdir in
52140 .) ac_abs_top_srcdir=$ac_abs_builddir;;
52141 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
52142 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
52148 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
52149 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
52152 if test x"$ac_file" != x-; then
52153 { echo "$as_me:$LINENO: creating $ac_file" >&5
52154 echo "$as_me: creating $ac_file" >&6;}
52157 # Let's still pretend it is `configure' which instantiates (i.e., don't
52158 # use $as_me), people would be surprised to read:
52159 # /* config.h. Generated by config.status. */
52160 if test x"$ac_file" = x-; then
52163 configure_input="$ac_file. "
52165 configure_input=$configure_input"Generated from `echo $ac_file_in |
52166 sed 's,.*/,,'` by configure."
52168 # First look for the input files in the build tree, otherwise in the
52170 ac_file_inputs=`IFS=:
52171 for f in $ac_file_in; do
52173 -) echo $tmp/stdin ;;
52175 # Absolute (can't be DOS-style, as IFS=:)
52176 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
52177 echo "$as_me: error: cannot find input file: $f" >&2;}
52178 { (exit 1); exit 1; }; }
52181 if test -f "$f"; then
52184 elif test -f "$srcdir/$f"; then
52189 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
52190 echo "$as_me: error: cannot find input file: $f" >&2;}
52191 { (exit 1); exit 1; }; }
52194 done` || { (exit 1); exit 1; }
52196 cat >>$CONFIG_STATUS <<_ACEOF
52200 cat >>$CONFIG_STATUS <<\_ACEOF
52202 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
52203 s,@configure_input@,$configure_input,;t t
52204 s,@srcdir@,$ac_srcdir,;t t
52205 s,@abs_srcdir@,$ac_abs_srcdir,;t t
52206 s,@top_srcdir@,$ac_top_srcdir,;t t
52207 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
52208 s,@builddir@,$ac_builddir,;t t
52209 s,@abs_builddir@,$ac_abs_builddir,;t t
52210 s,@top_builddir@,$ac_top_builddir,;t t
52211 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
52212 s,@INSTALL@,$ac_INSTALL,;t t
52213 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
52215 if test x"$ac_file" != x-; then
52216 mv $tmp/out $ac_file
52224 cat >>$CONFIG_STATUS <<\_ACEOF
52227 # CONFIG_HEADER section.
52230 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
52231 # NAME is the cpp macro being defined and VALUE is the value it is being given.
52233 # ac_d sets the value in "#define NAME VALUE" lines.
52234 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
52235 ac_dB='[ ].*$,\1#\2'
52238 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
52239 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
52240 ac_uB='$,\1#\2define\3'
52244 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
52245 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
52247 - | *:- | *:-:* ) # input from stdin
52249 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
52250 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
52251 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
52252 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
52253 * ) ac_file_in=$ac_file.in ;;
52256 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
52257 echo "$as_me: creating $ac_file" >&6;}
52259 # First look for the input files in the build tree, otherwise in the
52261 ac_file_inputs=`IFS=:
52262 for f in $ac_file_in; do
52264 -) echo $tmp/stdin ;;
52266 # Absolute (can't be DOS-style, as IFS=:)
52267 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
52268 echo "$as_me: error: cannot find input file: $f" >&2;}
52269 { (exit 1); exit 1; }; }
52270 # Do quote $f, to prevent DOS paths from being IFS'd.
52273 if test -f "$f"; then
52276 elif test -f "$srcdir/$f"; then
52281 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
52282 echo "$as_me: error: cannot find input file: $f" >&2;}
52283 { (exit 1); exit 1; }; }
52286 done` || { (exit 1); exit 1; }
52287 # Remove the trailing spaces.
52288 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
52292 # Transform confdefs.h into two sed scripts, `conftest.defines' and
52293 # `conftest.undefs', that substitutes the proper values into
52294 # config.h.in to produce config.h. The first handles `#define'
52295 # templates, and the second `#undef' templates.
52296 # And first: Protect against being on the right side of a sed subst in
52297 # config.status. Protect against being in an unquoted here document
52298 # in config.status.
52299 rm -f conftest.defines conftest.undefs
52300 # Using a here document instead of a string reduces the quoting nightmare.
52301 # Putting comments in sed scripts is not portable.
52303 # `end' is used to avoid that the second main sed command (meant for
52304 # 0-ary CPP macros) applies to n-ary macro definitions.
52305 # See the Autoconf documentation for `clear'.
52306 cat >confdef2sed.sed <<\_ACEOF
52311 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
52313 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
52316 # If some macros were called several times there might be several times
52317 # the same #defines, which is useless. Nevertheless, we may not want to
52318 # sort them, since we want the *last* AC-DEFINE to be honored.
52319 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
52320 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
52321 rm -f confdef2sed.sed
52323 # This sed command replaces #undef with comments. This is necessary, for
52324 # example, in the case of _POSIX_SOURCE, which is predefined and required
52325 # on some systems where configure will not decide to define it.
52326 cat >>conftest.undefs <<\_ACEOF
52327 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
52330 # Break up conftest.defines because some shells have a limit on the size
52331 # of here documents, and old seds have small limits too (100 cmds).
52332 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
52333 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
52334 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
52335 echo ' :' >>$CONFIG_STATUS
52336 rm -f conftest.tail
52337 while grep . conftest.defines >/dev/null
52339 # Write a limited-size here document to $tmp/defines.sed.
52340 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
52341 # Speed up: don't consider the non `#define' lines.
52342 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
52343 # Work around the forget-to-reset-the-flag bug.
52344 echo 't clr' >>$CONFIG_STATUS
52345 echo ': clr' >>$CONFIG_STATUS
52346 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
52348 sed -f $tmp/defines.sed $tmp/in >$tmp/out
52350 mv $tmp/out $tmp/in
52352 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
52353 rm -f conftest.defines
52354 mv conftest.tail conftest.defines
52356 rm -f conftest.defines
52357 echo ' fi # grep' >>$CONFIG_STATUS
52358 echo >>$CONFIG_STATUS
52360 # Break up conftest.undefs because some shells have a limit on the size
52361 # of here documents, and old seds have small limits too (100 cmds).
52362 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
52363 rm -f conftest.tail
52364 while grep . conftest.undefs >/dev/null
52366 # Write a limited-size here document to $tmp/undefs.sed.
52367 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
52368 # Speed up: don't consider the non `#undef'
52369 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
52370 # Work around the forget-to-reset-the-flag bug.
52371 echo 't clr' >>$CONFIG_STATUS
52372 echo ': clr' >>$CONFIG_STATUS
52373 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
52375 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
52377 mv $tmp/out $tmp/in
52379 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
52380 rm -f conftest.undefs
52381 mv conftest.tail conftest.undefs
52383 rm -f conftest.undefs
52385 cat >>$CONFIG_STATUS <<\_ACEOF
52386 # Let's still pretend it is `configure' which instantiates (i.e., don't
52387 # use $as_me), people would be surprised to read:
52388 # /* config.h. Generated by config.status. */
52389 if test x"$ac_file" = x-; then
52390 echo "/* Generated by configure. */" >$tmp/config.h
52392 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
52394 cat $tmp/in >>$tmp/config.h
52396 if test x"$ac_file" != x-; then
52397 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
52398 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
52399 echo "$as_me: $ac_file is unchanged" >&6;}
52401 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
52402 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52403 X"$ac_file" : 'X\(//\)[^/]' \| \
52404 X"$ac_file" : 'X\(//\)$' \| \
52405 X"$ac_file" : 'X\(/\)' \| \
52406 . : '\(.\)' 2>/dev/null ||
52408 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52409 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52410 /^X\(\/\/\)$/{ s//\1/; q; }
52411 /^X\(\/\).*/{ s//\1/; q; }
52413 { if $as_mkdir_p; then
52418 while test ! -d "$as_dir"; do
52419 as_dirs="$as_dir $as_dirs"
52420 as_dir=`(dirname "$as_dir") 2>/dev/null ||
52421 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52422 X"$as_dir" : 'X\(//\)[^/]' \| \
52423 X"$as_dir" : 'X\(//\)$' \| \
52424 X"$as_dir" : 'X\(/\)' \| \
52425 . : '\(.\)' 2>/dev/null ||
52427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52428 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52429 /^X\(\/\/\)$/{ s//\1/; q; }
52430 /^X\(\/\).*/{ s//\1/; q; }
52433 test ! -n "$as_dirs" || mkdir $as_dirs
52434 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52435 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52436 { (exit 1); exit 1; }; }; }
52439 mv $tmp/config.h $ac_file
52443 rm -f $tmp/config.h
52445 # Compute $ac_file's index in $config_headers.
52447 for _am_header in $config_headers :; do
52448 case $_am_header in
52449 $ac_file | $ac_file:* )
52452 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
52455 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
52456 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52457 X$ac_file : 'X\(//\)[^/]' \| \
52458 X$ac_file : 'X\(//\)$' \| \
52459 X$ac_file : 'X\(/\)' \| \
52460 . : '\(.\)' 2>/dev/null ||
52462 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52463 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52464 /^X\(\/\/\)$/{ s//\1/; q; }
52465 /^X\(\/\).*/{ s//\1/; q; }
52466 s/.*/./; q'`/stamp-h$_am_stamp_count
52469 cat >>$CONFIG_STATUS <<\_ACEOF
52472 # CONFIG_COMMANDS section.
52474 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
52475 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
52476 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
52477 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
52478 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52479 X"$ac_dest" : 'X\(//\)[^/]' \| \
52480 X"$ac_dest" : 'X\(//\)$' \| \
52481 X"$ac_dest" : 'X\(/\)' \| \
52482 . : '\(.\)' 2>/dev/null ||
52484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52485 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52486 /^X\(\/\/\)$/{ s//\1/; q; }
52487 /^X\(\/\).*/{ s//\1/; q; }
52489 { if $as_mkdir_p; then
52494 while test ! -d "$as_dir"; do
52495 as_dirs="$as_dir $as_dirs"
52496 as_dir=`(dirname "$as_dir") 2>/dev/null ||
52497 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52498 X"$as_dir" : 'X\(//\)[^/]' \| \
52499 X"$as_dir" : 'X\(//\)$' \| \
52500 X"$as_dir" : 'X\(/\)' \| \
52501 . : '\(.\)' 2>/dev/null ||
52503 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52504 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52505 /^X\(\/\/\)$/{ s//\1/; q; }
52506 /^X\(\/\).*/{ s//\1/; q; }
52509 test ! -n "$as_dirs" || mkdir $as_dirs
52510 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52511 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52512 { (exit 1); exit 1; }; }; }
52516 if test "$ac_dir" != .; then
52517 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52518 # A "../" for each directory in $ac_dir_suffix.
52519 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
52521 ac_dir_suffix= ac_top_builddir=
52525 .) # No --srcdir option. We are building in place.
52527 if test -z "$ac_top_builddir"; then
52530 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
52532 [\\/]* | ?:[\\/]* ) # Absolute path.
52533 ac_srcdir=$srcdir$ac_dir_suffix;
52534 ac_top_srcdir=$srcdir ;;
52535 *) # Relative path.
52536 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
52537 ac_top_srcdir=$ac_top_builddir$srcdir ;;
52540 # Do not use `cd foo && pwd` to compute absolute paths, because
52541 # the directories may not exist.
52543 .) ac_abs_builddir="$ac_dir";;
52546 .) ac_abs_builddir=`pwd`;;
52547 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
52548 *) ac_abs_builddir=`pwd`/"$ac_dir";;
52551 case $ac_abs_builddir in
52552 .) ac_abs_top_builddir=${ac_top_builddir}.;;
52554 case ${ac_top_builddir}. in
52555 .) ac_abs_top_builddir=$ac_abs_builddir;;
52556 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
52557 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
52560 case $ac_abs_builddir in
52561 .) ac_abs_srcdir=$ac_srcdir;;
52564 .) ac_abs_srcdir=$ac_abs_builddir;;
52565 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
52566 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
52569 case $ac_abs_builddir in
52570 .) ac_abs_top_srcdir=$ac_top_srcdir;;
52572 case $ac_top_srcdir in
52573 .) ac_abs_top_srcdir=$ac_abs_builddir;;
52574 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
52575 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
52580 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
52581 echo "$as_me: executing $ac_dest commands" >&6;}
52583 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
52584 # Strip MF so we end up with the name of the file.
52585 mf=`echo "$mf" | sed -e 's/:.*$//'`
52586 # Check whether this is an Automake generated Makefile or not.
52587 # We used to match only the files named `Makefile.in', but
52588 # some people rename them; so instead we look at the file content.
52589 # Grep'ing the first line is not enough: some people post-process
52590 # each Makefile.in and add a new line on top of each file to say so.
52591 # So let's grep whole file.
52592 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
52593 dirpart=`(dirname "$mf") 2>/dev/null ||
52594 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52595 X"$mf" : 'X\(//\)[^/]' \| \
52596 X"$mf" : 'X\(//\)$' \| \
52597 X"$mf" : 'X\(/\)' \| \
52598 . : '\(.\)' 2>/dev/null ||
52600 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52601 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52602 /^X\(\/\/\)$/{ s//\1/; q; }
52603 /^X\(\/\).*/{ s//\1/; q; }
52608 # Extract the definition of DEPDIR, am__include, and am__quote
52609 # from the Makefile without running `make'.
52610 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
52611 test -z "$DEPDIR" && continue
52612 am__include=`sed -n 's/^am__include = //p' < "$mf"`
52613 test -z "am__include" && continue
52614 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
52615 # When using ansi2knr, U may be empty or an underscore; expand it
52616 U=`sed -n 's/^U = //p' < "$mf"`
52617 # Find all dependency output files, they are included files with
52618 # $(DEPDIR) in their names. We invoke sed twice because it is the
52619 # simplest approach to changing $(DEPDIR) to its actual value in the
52621 for file in `sed -n "
52622 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
52623 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
52624 # Make sure the directory exists.
52625 test -f "$dirpart/$file" && continue
52626 fdir=`(dirname "$file") 2>/dev/null ||
52627 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52628 X"$file" : 'X\(//\)[^/]' \| \
52629 X"$file" : 'X\(//\)$' \| \
52630 X"$file" : 'X\(/\)' \| \
52631 . : '\(.\)' 2>/dev/null ||
52633 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52634 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52635 /^X\(\/\/\)$/{ s//\1/; q; }
52636 /^X\(\/\).*/{ s//\1/; q; }
52638 { if $as_mkdir_p; then
52639 mkdir -p $dirpart/$fdir
52641 as_dir=$dirpart/$fdir
52643 while test ! -d "$as_dir"; do
52644 as_dirs="$as_dir $as_dirs"
52645 as_dir=`(dirname "$as_dir") 2>/dev/null ||
52646 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52647 X"$as_dir" : 'X\(//\)[^/]' \| \
52648 X"$as_dir" : 'X\(//\)$' \| \
52649 X"$as_dir" : 'X\(/\)' \| \
52650 . : '\(.\)' 2>/dev/null ||
52652 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52653 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52654 /^X\(\/\/\)$/{ s//\1/; q; }
52655 /^X\(\/\).*/{ s//\1/; q; }
52658 test ! -n "$as_dirs" || mkdir $as_dirs
52659 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
52660 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
52661 { (exit 1); exit 1; }; }; }
52663 # echo "creating $dirpart/$file"
52664 echo '# dummy' > "$dirpart/$file"
52671 BACKENDSC="servers/slapd/backends.c"
52672 echo "Making $BACKENDSC"
52674 cat > $BACKENDSC << ENDX
52675 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
52677 * Copyright 1998-2005 The OpenLDAP Foundation.
52678 * All rights reserved.
52680 * Redistribution and use in source and binary forms, with or without
52681 * modification, are permitted only as authorized by the OpenLDAP
52684 * A copy of this license is available in the file LICENSE in the
52685 * top-level directory of the distribution or, alternatively, at
52686 * <http://www.OpenLDAP.org/license.html>.
52688 /* This file is automatically generated by configure; please do not edit. */
52690 #include "portable.h"
52694 if test "${STATIC_BACKENDS}"; then
52695 for b in config ${STATIC_BACKENDS}; do
52696 bb=`echo "${b}" | sed -e 's/back-//'`
52697 cat >> $BACKENDSC << ENDX
52698 extern BI_init ${bb}_back_initialize;
52702 cat >> $BACKENDSC << ENDX
52704 BackendInfo slap_binfo[] = {
52707 for b in config ${STATIC_BACKENDS}; do
52708 bb=`echo "${b}" | sed -e 's/back-//'`
52709 echo " Add ${bb} ..."
52710 cat >> $BACKENDSC << ENDX
52711 { "${bb}", ${bb}_back_initialize },
52715 cat >> $BACKENDSC << ENDX
52719 /* end of generated file */
52723 echo Please run \"make depend\" to build dependencies
52729 cat >>$CONFIG_STATUS <<\_ACEOF
52731 { (exit 0); exit 0; }
52733 chmod +x $CONFIG_STATUS
52734 ac_clean_files=$ac_clean_files_save
52737 # configure is writing to config.log, and then calls config.status.
52738 # config.status does its own redirection, appending to config.log.
52739 # Unfortunately, on DOS this fails, as config.log is still kept open
52740 # by configure, so config.status won't be able to write to it; its
52741 # output is simply discarded. So we exec the FD to /dev/null,
52742 # effectively closing config.log, so it can be properly (re)opened and
52743 # appended to by config.status. When coming back to configure, we
52744 # need to make the FD available again.
52745 if test "$no_create" != yes; then
52747 ac_config_status_args=
52748 test "$silent" = yes &&
52749 ac_config_status_args="$ac_config_status_args --quiet"
52751 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
52753 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
52754 # would make configure fail if this is the last instruction.
52755 $ac_cs_success || { (exit 1); exit 1; }